regenerated
[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 LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC EXTRALIBS EXTRALIBS_XML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX SET_MAKE MAKE_SET INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE LIBPREFIX DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_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_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_OS2 COND_TOOLKIT_OS2_USE_GUI_1 COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WX_LIBRARY_IMPORTLIB WX_TARGET_LIBRARY WX_LIBRARY_LINK1 WX_LIBRARY_LINK2 PROGRAM_EXT WX_LIBRARY_NAME_STATIC_GL WX_LIBRARY_NAME_SHARED_GL WX_TARGET_LIBRARY_GL WX_LIBRARY_LINK1_GL WX_LIBRARY_LINK2_GL WX_ALL WX_ALL_INSTALLED SHARED_LD WX_TARGET_LIBRARY_TYPE STATIC_FLAG WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLKIT_VPATH TOOLCHAIN_NAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS top_builddir_wxconfig cross_compiling WXCONFIG_EXTRALIBS WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX ALL_OBJECTS ALL_HEADERS ALL_SOURCES GUIDIST PORT_FILES DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL LDFLAGS_VERSIONING LDFLAGS_EXE OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA MACOSX_BUNDLE LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL AS NM LD MAKEINFO INSTALL_LIBRARY LIBOBJS LTLIBOBJS'
316 ac_subst_files=''
317
318 # Initialize some variables set by options.
319 ac_init_help=
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
323 cache_file=/dev/null
324 exec_prefix=NONE
325 no_create=
326 no_recursion=
327 prefix=NONE
328 program_prefix=NONE
329 program_suffix=NONE
330 program_transform_name=s,x,x,
331 silent=
332 site=
333 srcdir=
334 verbose=
335 x_includes=NONE
336 x_libraries=NONE
337
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
355
356 ac_prev=
357 for ac_option
358 do
359   # If the previous option needs an argument, assign it.
360   if test -n "$ac_prev"; then
361     eval "$ac_prev=\$ac_option"
362     ac_prev=
363     continue
364   fi
365
366   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367
368   # Accept the important Cygnus configure options, so we can diagnose typos.
369
370   case $ac_option in
371
372   -bindir | --bindir | --bindi | --bind | --bin | --bi)
373     ac_prev=bindir ;;
374   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375     bindir=$ac_optarg ;;
376
377   -build | --build | --buil | --bui | --bu)
378     ac_prev=build_alias ;;
379   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380     build_alias=$ac_optarg ;;
381
382   -cache-file | --cache-file | --cache-fil | --cache-fi \
383   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384     ac_prev=cache_file ;;
385   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387     cache_file=$ac_optarg ;;
388
389   --config-cache | -C)
390     cache_file=config.cache ;;
391
392   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393     ac_prev=datadir ;;
394   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395   | --da=*)
396     datadir=$ac_optarg ;;
397
398   -disable-* | --disable-*)
399     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400     # Reject names that are not valid shell variable names.
401     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403    { (exit 1); exit 1; }; }
404     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405     eval "enable_$ac_feature=no" ;;
406
407   -enable-* | --enable-*)
408     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409     # Reject names that are not valid shell variable names.
410     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412    { (exit 1); exit 1; }; }
413     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414     case $ac_option in
415       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416       *) ac_optarg=yes ;;
417     esac
418     eval "enable_$ac_feature='$ac_optarg'" ;;
419
420   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422   | --exec | --exe | --ex)
423     ac_prev=exec_prefix ;;
424   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426   | --exec=* | --exe=* | --ex=*)
427     exec_prefix=$ac_optarg ;;
428
429   -gas | --gas | --ga | --g)
430     # Obsolete; use --with-gas.
431     with_gas=yes ;;
432
433   -help | --help | --hel | --he | -h)
434     ac_init_help=long ;;
435   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436     ac_init_help=recursive ;;
437   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438     ac_init_help=short ;;
439
440   -host | --host | --hos | --ho)
441     ac_prev=host_alias ;;
442   -host=* | --host=* | --hos=* | --ho=*)
443     host_alias=$ac_optarg ;;
444
445   -includedir | --includedir | --includedi | --included | --include \
446   | --includ | --inclu | --incl | --inc)
447     ac_prev=includedir ;;
448   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449   | --includ=* | --inclu=* | --incl=* | --inc=*)
450     includedir=$ac_optarg ;;
451
452   -infodir | --infodir | --infodi | --infod | --info | --inf)
453     ac_prev=infodir ;;
454   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455     infodir=$ac_optarg ;;
456
457   -libdir | --libdir | --libdi | --libd)
458     ac_prev=libdir ;;
459   -libdir=* | --libdir=* | --libdi=* | --libd=*)
460     libdir=$ac_optarg ;;
461
462   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463   | --libexe | --libex | --libe)
464     ac_prev=libexecdir ;;
465   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466   | --libexe=* | --libex=* | --libe=*)
467     libexecdir=$ac_optarg ;;
468
469   -localstatedir | --localstatedir | --localstatedi | --localstated \
470   | --localstate | --localstat | --localsta | --localst \
471   | --locals | --local | --loca | --loc | --lo)
472     ac_prev=localstatedir ;;
473   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476     localstatedir=$ac_optarg ;;
477
478   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479     ac_prev=mandir ;;
480   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481     mandir=$ac_optarg ;;
482
483   -nfp | --nfp | --nf)
484     # Obsolete; use --without-fp.
485     with_fp=no ;;
486
487   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488   | --no-cr | --no-c | -n)
489     no_create=yes ;;
490
491   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493     no_recursion=yes ;;
494
495   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497   | --oldin | --oldi | --old | --ol | --o)
498     ac_prev=oldincludedir ;;
499   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502     oldincludedir=$ac_optarg ;;
503
504   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505     ac_prev=prefix ;;
506   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507     prefix=$ac_optarg ;;
508
509   -program-prefix | --program-prefix | --program-prefi | --program-pref \
510   | --program-pre | --program-pr | --program-p)
511     ac_prev=program_prefix ;;
512   -program-prefix=* | --program-prefix=* | --program-prefi=* \
513   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514     program_prefix=$ac_optarg ;;
515
516   -program-suffix | --program-suffix | --program-suffi | --program-suff \
517   | --program-suf | --program-su | --program-s)
518     ac_prev=program_suffix ;;
519   -program-suffix=* | --program-suffix=* | --program-suffi=* \
520   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521     program_suffix=$ac_optarg ;;
522
523   -program-transform-name | --program-transform-name \
524   | --program-transform-nam | --program-transform-na \
525   | --program-transform-n | --program-transform- \
526   | --program-transform | --program-transfor \
527   | --program-transfo | --program-transf \
528   | --program-trans | --program-tran \
529   | --progr-tra | --program-tr | --program-t)
530     ac_prev=program_transform_name ;;
531   -program-transform-name=* | --program-transform-name=* \
532   | --program-transform-nam=* | --program-transform-na=* \
533   | --program-transform-n=* | --program-transform-=* \
534   | --program-transform=* | --program-transfor=* \
535   | --program-transfo=* | --program-transf=* \
536   | --program-trans=* | --program-tran=* \
537   | --progr-tra=* | --program-tr=* | --program-t=*)
538     program_transform_name=$ac_optarg ;;
539
540   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541   | -silent | --silent | --silen | --sile | --sil)
542     silent=yes ;;
543
544   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545     ac_prev=sbindir ;;
546   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547   | --sbi=* | --sb=*)
548     sbindir=$ac_optarg ;;
549
550   -sharedstatedir | --sharedstatedir | --sharedstatedi \
551   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552   | --sharedst | --shareds | --shared | --share | --shar \
553   | --sha | --sh)
554     ac_prev=sharedstatedir ;;
555   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558   | --sha=* | --sh=*)
559     sharedstatedir=$ac_optarg ;;
560
561   -site | --site | --sit)
562     ac_prev=site ;;
563   -site=* | --site=* | --sit=*)
564     site=$ac_optarg ;;
565
566   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567     ac_prev=srcdir ;;
568   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569     srcdir=$ac_optarg ;;
570
571   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572   | --syscon | --sysco | --sysc | --sys | --sy)
573     ac_prev=sysconfdir ;;
574   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576     sysconfdir=$ac_optarg ;;
577
578   -target | --target | --targe | --targ | --tar | --ta | --t)
579     ac_prev=target_alias ;;
580   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581     target_alias=$ac_optarg ;;
582
583   -v | -verbose | --verbose | --verbos | --verbo | --verb)
584     verbose=yes ;;
585
586   -version | --version | --versio | --versi | --vers | -V)
587     ac_init_version=: ;;
588
589   -with-* | --with-*)
590     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591     # Reject names that are not valid shell variable names.
592     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593       { echo "$as_me: error: invalid package name: $ac_package" >&2
594    { (exit 1); exit 1; }; }
595     ac_package=`echo $ac_package| sed 's/-/_/g'`
596     case $ac_option in
597       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598       *) ac_optarg=yes ;;
599     esac
600     eval "with_$ac_package='$ac_optarg'" ;;
601
602   -without-* | --without-*)
603     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604     # Reject names that are not valid shell variable names.
605     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606       { echo "$as_me: error: invalid package name: $ac_package" >&2
607    { (exit 1); exit 1; }; }
608     ac_package=`echo $ac_package | sed 's/-/_/g'`
609     eval "with_$ac_package=no" ;;
610
611   --x)
612     # Obsolete; use --with-x.
613     with_x=yes ;;
614
615   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616   | --x-incl | --x-inc | --x-in | --x-i)
617     ac_prev=x_includes ;;
618   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620     x_includes=$ac_optarg ;;
621
622   -x-libraries | --x-libraries | --x-librarie | --x-librari \
623   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624     ac_prev=x_libraries ;;
625   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627     x_libraries=$ac_optarg ;;
628
629   -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631    { (exit 1); exit 1; }; }
632     ;;
633
634   *=*)
635     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636     # Reject names that are not valid shell variable names.
637     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639    { (exit 1); exit 1; }; }
640     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641     eval "$ac_envvar='$ac_optarg'"
642     export $ac_envvar ;;
643
644   *)
645     # FIXME: should be removed in autoconf 3.0.
646     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650     ;;
651
652   esac
653 done
654
655 if test -n "$ac_prev"; then
656   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657   { echo "$as_me: error: missing argument to $ac_option" >&2
658    { (exit 1); exit 1; }; }
659 fi
660
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
663 do
664   eval ac_val=$`echo $ac_var`
665   case $ac_val in
666     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668    { (exit 1); exit 1; }; };;
669   esac
670 done
671
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674               localstatedir libdir includedir oldincludedir infodir mandir
675 do
676   eval ac_val=$`echo $ac_var`
677   case $ac_val in
678     [\\/$]* | ?:[\\/]* ) ;;
679     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680    { (exit 1); exit 1; }; };;
681   esac
682 done
683
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
687 build=$build_alias
688 host=$host_alias
689 target=$target_alias
690
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693   if test "x$build_alias" = x; then
694     cross_compiling=maybe
695     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696     If a cross compiler is detected then cross compile mode will be used." >&2
697   elif test "x$build_alias" != "x$host_alias"; then
698     cross_compiling=yes
699   fi
700 fi
701
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705 test "$silent" = yes && exec 6>/dev/null
706
707
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710   ac_srcdir_defaulted=yes
711   # Try the directory containing this script, then its parent.
712   ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714          X"$0" : 'X\(//\)[^/]' \| \
715          X"$0" : 'X\(//\)$' \| \
716          X"$0" : 'X\(/\)' \| \
717          .     : '\(.\)' 2>/dev/null ||
718 echo X"$0" |
719     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721           /^X\(\/\/\)$/{ s//\1/; q; }
722           /^X\(\/\).*/{ s//\1/; q; }
723           s/.*/./; q'`
724   srcdir=$ac_confdir
725   if test ! -r $srcdir/$ac_unique_file; then
726     srcdir=..
727   fi
728 else
729   ac_srcdir_defaulted=no
730 fi
731 if test ! -r $srcdir/$ac_unique_file; then
732   if test "$ac_srcdir_defaulted" = yes; then
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734    { (exit 1); exit 1; }; }
735   else
736     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737    { (exit 1); exit 1; }; }
738   fi
739 fi
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742    { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_CC_set=${CC+set}
757 ac_env_CC_value=$CC
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CPP_set=${CPP+set}
773 ac_env_CPP_value=$CPP
774 ac_cv_env_CPP_set=${CPP+set}
775 ac_cv_env_CPP_value=$CPP
776 ac_env_CXX_set=${CXX+set}
777 ac_env_CXX_value=$CXX
778 ac_cv_env_CXX_set=${CXX+set}
779 ac_cv_env_CXX_value=$CXX
780 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
781 ac_env_CXXFLAGS_value=$CXXFLAGS
782 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
783 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
784 ac_env_CXXCPP_set=${CXXCPP+set}
785 ac_env_CXXCPP_value=$CXXCPP
786 ac_cv_env_CXXCPP_set=${CXXCPP+set}
787 ac_cv_env_CXXCPP_value=$CXXCPP
788
789 #
790 # Report the --help message.
791 #
792 if test "$ac_init_help" = "long"; then
793   # Omit some internal or obsolete options to make the list less imposing.
794   # This message is too long to be a string in the A/UX 3.1 sh.
795   cat <<_ACEOF
796 \`configure' configures wxWindows 2.5.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-compat22       enable wxWindows 2.2 compatibility
889   --disable-compat24      disable wxWindows 2.4 compatibility
890   --enable-rpath=DIR      output the rpath flag from wx-config
891   --enable-intl           use internationalization system
892   --enable-config         use wxConfig (and derived) classes
893   --enable-protocols      use wxProtocol and derived classes
894   --enable-ftp            use wxFTP (requires wxProtocol
895   --enable-http           use wxHTTP (requires wxProtocol
896   --enable-fileproto      use wxFileProto class (requires wxProtocol
897   --enable-sockets        use socket/network classes
898   --enable-ole            use OLE classes
899   --enable-dataobj        use data object classes
900   --enable-ipc            use interprocess communication (wxSocket etc.)
901   --enable-cmdline        use wxCmdLineParser class
902   --enable-datetime       use wxDateTime class
903   --enable-stopwatch      use wxStopWatch class
904   --enable-dialupman      use dialup network classes
905   --enable-apple_ieee     use the Apple IEEE codec
906   --enable-timer          use wxTimer class
907   --enable-wave           use wxWave class
908   --enable-fraction       use wxFraction class
909   --enable-dynlib         use wxLibrary class for DLL loading
910   --enable-dynamicloader  use (new) wxDynamicLibrary class
911   --enable-longlong       use wxLongLong class
912   --enable-geometry       use geometry class
913   --enable-log            use logging system
914   --enable-streams        use wxStream etc classes
915   --enable-file           use wxFile classes
916   --enable-ffile          use wxFFile classes
917   --enable-textbuf        use wxTextBuffer class
918   --enable-textfile       use wxTextFile class
919   --enable-fontmap        use font encodings conversion classes
920   --enable-unicode        compile wxString with Unicode support
921   --enable-mslu           use MS Layer for Unicode on Windows 9x (win32 only)
922   --enable-wxprintfv      use wxWindows implementation of vprintf()
923   --enable-std_iostreams  use standard C++ stream classes
924   --enable-filesystem     use virtual file systems classes
925   --enable-fs_inet        use virtual HTTP/FTP filesystems
926   --enable-fs_zip         use virtual ZIP filesystems
927   --enable-zipstream      use wxZipInputStream
928   --enable-catch_segvs    catch signals and pass them to wxApp::OnFatalException
929   --enable-snglinst       use wxSingleInstanceChecker class
930   --enable-mimetype       use wxMimeTypesManager
931   --enable-sysoptions     use wxSystemOptions
932   --enable-url            use wxURL class
933   --enable-protocol       use wxProtocol class
934   --enable-protocol-http  HTTP support in wxProtocol
935   --enable-protocol-ftp   FTP support in wxProtocol
936   --enable-protocol-file  FILE support in wxProtocol
937   --enable-threads        use threads
938   --enable-docview        use document view architecture
939   --enable-help           use help subsystem
940   --enable-mshtmlhelp     use MS HTML Help (win32)
941   --enable-html           use wxHTML sub-library
942   --enable-htmlhelp       use wxHTML-based help
943   --enable-constraints    use layout-constraints system
944   --enable-printarch      use printing architecture
945   --enable-mdi            use multiple document interface architecture
946   --enable-loggui         use standard GUI logger
947   --enable-logwin         use wxLogWindow
948   --enable-logdialog      use wxLogDialog
949   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
950   --enable-prologio       not available; see contrib
951   --enable-resources      not available; see contrib
952   --enable-clipboard      use wxClipboard class
953   --enable-dnd            use Drag'n'Drop classes
954   --enable-metafile       use win32 metafiles
955   --enable-controls       use all usual controls
956   --enable-accel          use accelerators
957   --enable-button         use wxButton class
958   --enable-bmpbutton      use wxBitmapButton class
959   --enable-calendar       use wxCalendarCtrl class
960   --enable-caret          use wxCaret class
961   --enable-checkbox       use wxCheckBox class
962   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
963   --enable-choice         use wxChoice class
964   --enable-combobox       use wxComboBox class
965   --enable-display        use wxDisplay class
966   --enable-gauge          use wxGauge class
967   --enable-grid           use wxGrid class
968   --enable-imaglist       use wxImageList class
969   --enable-listbook       use wxListbook 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   --enable-official_build official build of wxWindows (win32 DLL only)
1028   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1029   --disable-largefile     omit support for large files
1030   --disable-gtktest       do not try to compile and run a test GTK+ program
1031   --disable-gtktest       Do not try to compile and run a test GTK program
1032   --disable-precomp-headers  don't use precompiled headers even if compiler can
1033
1034 Optional Packages:
1035   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1036   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1037   --with-gtk              use GTK+
1038   --with-motif            use Motif/Lesstif
1039   --with-mac              use Mac OS X
1040   --with-cocoa            use Cocoa
1041   --with-wine             use Wine
1042   --with-msw              use MS-Windows
1043   --with-pm               use OS/2 Presentation Manager
1044   --with-mgl              use SciTech MGL
1045   --with-microwin         use MicroWindows
1046   --with-x11              use X11
1047   --with-libpng           use libpng (PNG image format)
1048   --with-libjpeg          use libjpeg (JPEG file format)
1049   --with-libtiff          use libtiff (TIFF file format)
1050   --with-opengl           use OpenGL (or Mesa)
1051   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1052   --with-regex            enable support for wxRegEx class
1053   --with-zlib             use zlib for LZW compression
1054   --with-odbc             use the IODBC and wxODBC classes
1055   --with-expat            enable XML support using expat parser
1056   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1057   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1058   --with-x                use the X Window System
1059   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1060
1061 Some influential environment variables:
1062   CC          C compiler command
1063   CFLAGS      C compiler flags
1064   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1065               nonstandard directory <lib dir>
1066   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1067               headers in a nonstandard directory <include dir>
1068   CPP         C preprocessor
1069   CXX         C++ compiler command
1070   CXXFLAGS    C++ compiler flags
1071   CXXCPP      C++ preprocessor
1072
1073 Use these variables to override the choices made by `configure' or to help
1074 it to find libraries and programs with nonstandard names/locations.
1075
1076 Report bugs to <wx-dev@lists.wxwindows.org>.
1077 _ACEOF
1078 fi
1079
1080 if test "$ac_init_help" = "recursive"; then
1081   # If there are subdirs, report their specific --help.
1082   ac_popdir=`pwd`
1083   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1084     test -d $ac_dir || continue
1085     ac_builddir=.
1086
1087 if test "$ac_dir" != .; then
1088   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1089   # A "../" for each directory in $ac_dir_suffix.
1090   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1091 else
1092   ac_dir_suffix= ac_top_builddir=
1093 fi
1094
1095 case $srcdir in
1096   .)  # No --srcdir option.  We are building in place.
1097     ac_srcdir=.
1098     if test -z "$ac_top_builddir"; then
1099        ac_top_srcdir=.
1100     else
1101        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1102     fi ;;
1103   [\\/]* | ?:[\\/]* )  # Absolute path.
1104     ac_srcdir=$srcdir$ac_dir_suffix;
1105     ac_top_srcdir=$srcdir ;;
1106   *) # Relative path.
1107     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1108     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1109 esac
1110 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1111 # absolute.
1112 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1113 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1114 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1115 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1116
1117     cd $ac_dir
1118     # Check for guested configure; otherwise get Cygnus style configure.
1119     if test -f $ac_srcdir/configure.gnu; then
1120       echo
1121       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1122     elif test -f $ac_srcdir/configure; then
1123       echo
1124       $SHELL $ac_srcdir/configure  --help=recursive
1125     elif test -f $ac_srcdir/configure.ac ||
1126            test -f $ac_srcdir/configure.in; then
1127       echo
1128       $ac_configure --help
1129     else
1130       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1131     fi
1132     cd $ac_popdir
1133   done
1134 fi
1135
1136 test -n "$ac_init_help" && exit 0
1137 if $ac_init_version; then
1138   cat <<\_ACEOF
1139 wxWindows configure 2.5.0
1140 generated by GNU Autoconf 2.57
1141
1142 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1143 Free Software Foundation, Inc.
1144 This configure script is free software; the Free Software Foundation
1145 gives unlimited permission to copy, distribute and modify it.
1146 _ACEOF
1147   exit 0
1148 fi
1149 exec 5>config.log
1150 cat >&5 <<_ACEOF
1151 This file contains any messages produced by compilers while
1152 running configure, to aid debugging if configure makes a mistake.
1153
1154 It was created by wxWindows $as_me 2.5.0, which was
1155 generated by GNU Autoconf 2.57.  Invocation command line was
1156
1157   $ $0 $@
1158
1159 _ACEOF
1160 {
1161 cat <<_ASUNAME
1162 ## --------- ##
1163 ## Platform. ##
1164 ## --------- ##
1165
1166 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1167 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1168 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1169 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1170 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1171
1172 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1173 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1174
1175 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1176 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1177 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1178 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1179 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1180 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1181 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1182
1183 _ASUNAME
1184
1185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1186 for as_dir in $PATH
1187 do
1188   IFS=$as_save_IFS
1189   test -z "$as_dir" && as_dir=.
1190   echo "PATH: $as_dir"
1191 done
1192
1193 } >&5
1194
1195 cat >&5 <<_ACEOF
1196
1197
1198 ## ----------- ##
1199 ## Core tests. ##
1200 ## ----------- ##
1201
1202 _ACEOF
1203
1204
1205 # Keep a trace of the command line.
1206 # Strip out --no-create and --no-recursion so they do not pile up.
1207 # Strip out --silent because we don't want to record it for future runs.
1208 # Also quote any args containing shell meta-characters.
1209 # Make two passes to allow for proper duplicate-argument suppression.
1210 ac_configure_args=
1211 ac_configure_args0=
1212 ac_configure_args1=
1213 ac_sep=
1214 ac_must_keep_next=false
1215 for ac_pass in 1 2
1216 do
1217   for ac_arg
1218   do
1219     case $ac_arg in
1220     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1221     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222     | -silent | --silent | --silen | --sile | --sil)
1223       continue ;;
1224     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1225       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1226     esac
1227     case $ac_pass in
1228     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1229     2)
1230       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1231       if test $ac_must_keep_next = true; then
1232         ac_must_keep_next=false # Got value, back to normal.
1233       else
1234         case $ac_arg in
1235           *=* | --config-cache | -C | -disable-* | --disable-* \
1236           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1237           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1238           | -with-* | --with-* | -without-* | --without-* | --x)
1239             case "$ac_configure_args0 " in
1240               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1241             esac
1242             ;;
1243           -* ) ac_must_keep_next=true ;;
1244         esac
1245       fi
1246       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1247       # Get rid of the leading space.
1248       ac_sep=" "
1249       ;;
1250     esac
1251   done
1252 done
1253 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1254 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1255
1256 # When interrupted or exit'd, cleanup temporary files, and complete
1257 # config.log.  We remove comments because anyway the quotes in there
1258 # would cause problems or look ugly.
1259 # WARNING: Be sure not to use single quotes in there, as some shells,
1260 # such as our DU 5.0 friend, will then `close' the trap.
1261 trap 'exit_status=$?
1262   # Save into config.log some information that might help in debugging.
1263   {
1264     echo
1265
1266     cat <<\_ASBOX
1267 ## ---------------- ##
1268 ## Cache variables. ##
1269 ## ---------------- ##
1270 _ASBOX
1271     echo
1272     # The following way of writing the cache mishandles newlines in values,
1273 {
1274   (set) 2>&1 |
1275     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1276     *ac_space=\ *)
1277       sed -n \
1278         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1279           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1280       ;;
1281     *)
1282       sed -n \
1283         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1284       ;;
1285     esac;
1286 }
1287     echo
1288
1289     cat <<\_ASBOX
1290 ## ----------------- ##
1291 ## Output variables. ##
1292 ## ----------------- ##
1293 _ASBOX
1294     echo
1295     for ac_var in $ac_subst_vars
1296     do
1297       eval ac_val=$`echo $ac_var`
1298       echo "$ac_var='"'"'$ac_val'"'"'"
1299     done | sort
1300     echo
1301
1302     if test -n "$ac_subst_files"; then
1303       cat <<\_ASBOX
1304 ## ------------- ##
1305 ## Output files. ##
1306 ## ------------- ##
1307 _ASBOX
1308       echo
1309       for ac_var in $ac_subst_files
1310       do
1311         eval ac_val=$`echo $ac_var`
1312         echo "$ac_var='"'"'$ac_val'"'"'"
1313       done | sort
1314       echo
1315     fi
1316
1317     if test -s confdefs.h; then
1318       cat <<\_ASBOX
1319 ## ----------- ##
1320 ## confdefs.h. ##
1321 ## ----------- ##
1322 _ASBOX
1323       echo
1324       sed "/^$/d" confdefs.h | sort
1325       echo
1326     fi
1327     test "$ac_signal" != 0 &&
1328       echo "$as_me: caught signal $ac_signal"
1329     echo "$as_me: exit $exit_status"
1330   } >&5
1331   rm -f core core.* *.core &&
1332   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1333     exit $exit_status
1334      ' 0
1335 for ac_signal in 1 2 13 15; do
1336   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1337 done
1338 ac_signal=0
1339
1340 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1341 rm -rf conftest* confdefs.h
1342 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1343 echo >confdefs.h
1344
1345 # Predefined preprocessor variables.
1346
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_NAME "$PACKAGE_NAME"
1349 _ACEOF
1350
1351
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1354 _ACEOF
1355
1356
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1359 _ACEOF
1360
1361
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_STRING "$PACKAGE_STRING"
1364 _ACEOF
1365
1366
1367 cat >>confdefs.h <<_ACEOF
1368 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1369 _ACEOF
1370
1371
1372 # Let the site file select an alternate cache file if it wants to.
1373 # Prefer explicitly selected file to automatically selected ones.
1374 if test -z "$CONFIG_SITE"; then
1375   if test "x$prefix" != xNONE; then
1376     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1377   else
1378     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1379   fi
1380 fi
1381 for ac_site_file in $CONFIG_SITE; do
1382   if test -r "$ac_site_file"; then
1383     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1384 echo "$as_me: loading site script $ac_site_file" >&6;}
1385     sed 's/^/| /' "$ac_site_file" >&5
1386     . "$ac_site_file"
1387   fi
1388 done
1389
1390 if test -r "$cache_file"; then
1391   # Some versions of bash will fail to source /dev/null (special
1392   # files actually), so we avoid doing that.
1393   if test -f "$cache_file"; then
1394     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1395 echo "$as_me: loading cache $cache_file" >&6;}
1396     case $cache_file in
1397       [\\/]* | ?:[\\/]* ) . $cache_file;;
1398       *)                      . ./$cache_file;;
1399     esac
1400   fi
1401 else
1402   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1403 echo "$as_me: creating cache $cache_file" >&6;}
1404   >$cache_file
1405 fi
1406
1407 # Check that the precious variables saved in the cache have kept the same
1408 # value.
1409 ac_cache_corrupted=false
1410 for ac_var in `(set) 2>&1 |
1411                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1412   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1413   eval ac_new_set=\$ac_env_${ac_var}_set
1414   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1415   eval ac_new_val="\$ac_env_${ac_var}_value"
1416   case $ac_old_set,$ac_new_set in
1417     set,)
1418       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1419 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1420       ac_cache_corrupted=: ;;
1421     ,set)
1422       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1423 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1424       ac_cache_corrupted=: ;;
1425     ,);;
1426     *)
1427       if test "x$ac_old_val" != "x$ac_new_val"; then
1428         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1429 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1430         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1431 echo "$as_me:   former value:  $ac_old_val" >&2;}
1432         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1433 echo "$as_me:   current value: $ac_new_val" >&2;}
1434         ac_cache_corrupted=:
1435       fi;;
1436   esac
1437   # Pass precious variables to config.status.
1438   if test "$ac_new_set" = set; then
1439     case $ac_new_val in
1440     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1441       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1442     *) ac_arg=$ac_var=$ac_new_val ;;
1443     esac
1444     case " $ac_configure_args " in
1445       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1446       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1447     esac
1448   fi
1449 done
1450 if $ac_cache_corrupted; then
1451   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1452 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1453   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1454 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1455    { (exit 1); exit 1; }; }
1456 fi
1457
1458 ac_ext=c
1459 ac_cpp='$CPP $CPPFLAGS'
1460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1491
1492
1493 ac_aux_dir=
1494 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1495   if test -f $ac_dir/install-sh; then
1496     ac_aux_dir=$ac_dir
1497     ac_install_sh="$ac_aux_dir/install-sh -c"
1498     break
1499   elif test -f $ac_dir/install.sh; then
1500     ac_aux_dir=$ac_dir
1501     ac_install_sh="$ac_aux_dir/install.sh -c"
1502     break
1503   elif test -f $ac_dir/shtool; then
1504     ac_aux_dir=$ac_dir
1505     ac_install_sh="$ac_aux_dir/shtool install -c"
1506     break
1507   fi
1508 done
1509 if test -z "$ac_aux_dir"; then
1510   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1511 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1512    { (exit 1); exit 1; }; }
1513 fi
1514 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1515 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1516 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1517
1518 # Make sure we can run config.sub.
1519 $ac_config_sub sun4 >/dev/null 2>&1 ||
1520   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1521 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1522    { (exit 1); exit 1; }; }
1523
1524 echo "$as_me:$LINENO: checking build system type" >&5
1525 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1526 if test "${ac_cv_build+set}" = set; then
1527   echo $ECHO_N "(cached) $ECHO_C" >&6
1528 else
1529   ac_cv_build_alias=$build_alias
1530 test -z "$ac_cv_build_alias" &&
1531   ac_cv_build_alias=`$ac_config_guess`
1532 test -z "$ac_cv_build_alias" &&
1533   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1534 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1535    { (exit 1); exit 1; }; }
1536 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1537   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1538 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1539    { (exit 1); exit 1; }; }
1540
1541 fi
1542 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1543 echo "${ECHO_T}$ac_cv_build" >&6
1544 build=$ac_cv_build
1545 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1546 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1547 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1548
1549
1550 echo "$as_me:$LINENO: checking host system type" >&5
1551 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1552 if test "${ac_cv_host+set}" = set; then
1553   echo $ECHO_N "(cached) $ECHO_C" >&6
1554 else
1555   ac_cv_host_alias=$host_alias
1556 test -z "$ac_cv_host_alias" &&
1557   ac_cv_host_alias=$ac_cv_build_alias
1558 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1559   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1560 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1561    { (exit 1); exit 1; }; }
1562
1563 fi
1564 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1565 echo "${ECHO_T}$ac_cv_host" >&6
1566 host=$ac_cv_host
1567 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1568 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1569 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1570
1571
1572 echo "$as_me:$LINENO: checking target system type" >&5
1573 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1574 if test "${ac_cv_target+set}" = set; then
1575   echo $ECHO_N "(cached) $ECHO_C" >&6
1576 else
1577   ac_cv_target_alias=$target_alias
1578 test "x$ac_cv_target_alias" = "x" &&
1579   ac_cv_target_alias=$ac_cv_host_alias
1580 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1581   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1582 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1583    { (exit 1); exit 1; }; }
1584
1585 fi
1586 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1587 echo "${ECHO_T}$ac_cv_target" >&6
1588 target=$ac_cv_target
1589 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1590 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1591 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1592
1593
1594 # The aliases save the names the user supplied, while $host etc.
1595 # will get canonicalized.
1596 test -n "$target_alias" &&
1597   test "$program_prefix$program_suffix$program_transform_name" = \
1598     NONENONEs,x,x, &&
1599   program_prefix=${target_alias}-
1600
1601
1602
1603 WX_MAJOR_VERSION_NUMBER=2
1604 WX_MINOR_VERSION_NUMBER=5
1605 WX_RELEASE_NUMBER=0
1606
1607 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1608 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1609
1610 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1611
1612 WX_CURRENT=0
1613 WX_REVISION=0
1614 WX_AGE=0
1615
1616
1617
1618 USE_UNIX=1
1619 USE_WIN32=0
1620 USE_DOS=0
1621 USE_BEOS=0
1622 USE_MAC=0
1623
1624 USE_AIX=
1625 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
1626 USE_GNU=                            USE_HPUX=
1627 USE_LINUX=
1628 USE_NETBSD=
1629 USE_OPENBSD=
1630 USE_OSF=                            USE_SGI=
1631 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
1632 USE_ULTRIX=
1633 USE_UNIXWARE=
1634
1635 USE_ALPHA=
1636
1637 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1638
1639 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1640
1641 DEFAULT_wxUSE_COCOA=0
1642 DEFAULT_wxUSE_GTK=0
1643 DEFAULT_wxUSE_MAC=0
1644 DEFAULT_wxUSE_MGL=0
1645 DEFAULT_wxUSE_MICROWIN=0
1646 DEFAULT_wxUSE_MOTIF=0
1647 DEFAULT_wxUSE_MSW=0
1648 DEFAULT_wxUSE_PM=0
1649 DEFAULT_wxUSE_X11=0
1650
1651 DEFAULT_DEFAULT_wxUSE_COCOA=0
1652 DEFAULT_DEFAULT_wxUSE_GTK=0
1653 DEFAULT_DEFAULT_wxUSE_MAC=0
1654 DEFAULT_DEFAULT_wxUSE_MGL=0
1655 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1656 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1657 DEFAULT_DEFAULT_wxUSE_MSW=0
1658 DEFAULT_DEFAULT_wxUSE_PM=0
1659 DEFAULT_DEFAULT_wxUSE_X11=0
1660
1661 PROGRAM_EXT=
1662 SO_SUFFIX=so
1663 SAMPLES_RPATH_FLAG=
1664 SAMPLES_RPATH_POSTLINK=
1665
1666 case "${host}" in
1667   *-hp-hpux* )
1668     USE_HPUX=1
1669     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1670     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1671     SO_SUFFIX=sl
1672     cat >>confdefs.h <<\_ACEOF
1673 #define __HPUX__ 1
1674 _ACEOF
1675
1676   ;;
1677   *-*-linux* )
1678     USE_LINUX=1
1679     cat >>confdefs.h <<\_ACEOF
1680 #define __LINUX__ 1
1681 _ACEOF
1682
1683     TMP=`uname -m`
1684     if test "x$TMP" = "xalpha"; then
1685       USE_ALPHA=1
1686       cat >>confdefs.h <<\_ACEOF
1687 #define __ALPHA__ 1
1688 _ACEOF
1689
1690     fi
1691     DEFAULT_DEFAULT_wxUSE_GTK=1
1692   ;;
1693   *-*-gnu* )
1694     USE_GNU=1
1695     cat >>confdefs.h <<\_ACEOF
1696 #define __GNU__ 1
1697 _ACEOF
1698
1699     TMP=`uname -m`
1700     if test "x$TMP" = "xalpha"; then
1701       USE_ALPHA=1
1702       cat >>confdefs.h <<\_ACEOF
1703 #define __ALPHA__ 1
1704 _ACEOF
1705
1706     fi
1707     DEFAULT_DEFAULT_wxUSE_GTK=1
1708   ;;
1709   *-*-irix5* | *-*-irix6* )
1710     USE_SGI=1
1711     USE_SVR4=1
1712     cat >>confdefs.h <<\_ACEOF
1713 #define __SGI__ 1
1714 _ACEOF
1715
1716     cat >>confdefs.h <<\_ACEOF
1717 #define __SVR4__ 1
1718 _ACEOF
1719
1720     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1721   ;;
1722   *-*-solaris2* )
1723     USE_SUN=1
1724     USE_SOLARIS=1
1725     USE_SVR4=1
1726     cat >>confdefs.h <<\_ACEOF
1727 #define __SUN__ 1
1728 _ACEOF
1729
1730     cat >>confdefs.h <<\_ACEOF
1731 #define __SOLARIS__ 1
1732 _ACEOF
1733
1734     cat >>confdefs.h <<\_ACEOF
1735 #define __SVR4__ 1
1736 _ACEOF
1737
1738     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1739     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1740   ;;
1741   *-*-sunos4* )
1742     USE_SUN=1
1743     USE_SUNOS=1
1744     USE_BSD=1
1745     cat >>confdefs.h <<\_ACEOF
1746 #define __SUN__ 1
1747 _ACEOF
1748
1749     cat >>confdefs.h <<\_ACEOF
1750 #define __SUNOS__ 1
1751 _ACEOF
1752
1753     cat >>confdefs.h <<\_ACEOF
1754 #define __BSD__ 1
1755 _ACEOF
1756
1757     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1758   ;;
1759   *-*-freebsd*)
1760     USE_BSD=1
1761     USE_FREEBSD=1
1762     cat >>confdefs.h <<\_ACEOF
1763 #define __FREEBSD__ 1
1764 _ACEOF
1765
1766     cat >>confdefs.h <<\_ACEOF
1767 #define __BSD__ 1
1768 _ACEOF
1769
1770     DEFAULT_DEFAULT_wxUSE_GTK=1
1771   ;;
1772   *-*-openbsd*)
1773     USE_BSD=1
1774     USE_OPENBSD=1
1775     cat >>confdefs.h <<\_ACEOF
1776 #define __OPENBSD__ 1
1777 _ACEOF
1778
1779     cat >>confdefs.h <<\_ACEOF
1780 #define __BSD__ 1
1781 _ACEOF
1782
1783     DEFAULT_DEFAULT_wxUSE_GTK=1
1784   ;;
1785   *-*-netbsd*)
1786     USE_BSD=1
1787     USE_NETBSD=1
1788     cat >>confdefs.h <<\_ACEOF
1789 #define __NETBSD__ 1
1790 _ACEOF
1791
1792     cat >>confdefs.h <<\_ACEOF
1793 #define __BSD__ 1
1794 _ACEOF
1795
1796     DEFAULT_DEFAULT_wxUSE_GTK=1
1797   ;;
1798   *-*-osf* )
1799     USE_ALPHA=1
1800     USE_OSF=1
1801     cat >>confdefs.h <<\_ACEOF
1802 #define __ALPHA__ 1
1803 _ACEOF
1804
1805     cat >>confdefs.h <<\_ACEOF
1806 #define __OSF__ 1
1807 _ACEOF
1808
1809     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1810     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1811   ;;
1812   *-*-dgux5* )
1813     USE_ALPHA=1
1814     USE_SVR4=1
1815     cat >>confdefs.h <<\_ACEOF
1816 #define __ALPHA__ 1
1817 _ACEOF
1818
1819     cat >>confdefs.h <<\_ACEOF
1820 #define __SVR4__ 1
1821 _ACEOF
1822
1823     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1824   ;;
1825   *-*-sysv5* )
1826     USE_SYSV=1
1827     USE_SVR4=1
1828     cat >>confdefs.h <<\_ACEOF
1829 #define __SYSV__ 1
1830 _ACEOF
1831
1832     cat >>confdefs.h <<\_ACEOF
1833 #define __SVR4__ 1
1834 _ACEOF
1835
1836     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1837   ;;
1838   *-*-aix* )
1839     USE_AIX=1
1840     USE_SYSV=1
1841     USE_SVR4=1
1842                         SO_SUFFIX=a
1843     cat >>confdefs.h <<\_ACEOF
1844 #define __AIX__ 1
1845 _ACEOF
1846
1847     cat >>confdefs.h <<\_ACEOF
1848 #define __SYSV__ 1
1849 _ACEOF
1850
1851     cat >>confdefs.h <<\_ACEOF
1852 #define __SVR4__ 1
1853 _ACEOF
1854
1855     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1856   ;;
1857
1858   *-*-*UnixWare*)
1859     USE_SYSV=1
1860     USE_SVR4=1
1861     USE_UNIXWARE=1
1862     cat >>confdefs.h <<\_ACEOF
1863 #define __UNIXWARE__ 1
1864 _ACEOF
1865
1866   ;;
1867
1868   *-*-cygwin* | *-*-mingw32* )
1869                 SO_SUFFIX=dll
1870     PROGRAM_EXT=".exe"
1871     RESCOMP=windres
1872     DEFAULT_DEFAULT_wxUSE_MSW=1
1873   ;;
1874
1875   *-pc-msdosdjgpp )
1876     USE_UNIX=0
1877     USE_DOS=1
1878     cat >>confdefs.h <<\_ACEOF
1879 #define __DOS__ 1
1880 _ACEOF
1881
1882     PROGRAM_EXT=".exe"
1883     DEFAULT_DEFAULT_wxUSE_MGL=1
1884         LIBS="$LIBS -lstdc++"
1885   ;;
1886
1887   *-pc-os2_emx | *-pc-os2-emx )
1888     cat >>confdefs.h <<\_ACEOF
1889 #define __EMX__ 1
1890 _ACEOF
1891
1892     PROGRAM_EXT=".exe"
1893     DEFAULT_DEFAULT_wxUSE_PM=1
1894         CXX=gcc
1895         LIBS="$LIBS -lstdcpp"
1896                         ac_executable_extensions=".exe"
1897     export ac_executable_extensions
1898             ac_save_IFS="$IFS"
1899     IFS="\\"
1900     ac_TEMP_PATH=
1901     for ac_dir in $PATH; do
1902       IFS=$ac_save_IFS
1903       if test -z "$ac_TEMP_PATH"; then
1904         ac_TEMP_PATH="$ac_dir"
1905       else
1906         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1907       fi
1908     done
1909     export PATH="$ac_TEMP_PATH"
1910     unset ac_TEMP_PATH
1911   ;;
1912
1913   powerpc-*-darwin* )
1914         USE_BSD=1
1915     USE_DARWIN=1
1916     SO_SUFFIX=dylib
1917     cat >>confdefs.h <<\_ACEOF
1918 #define __BSD__ 1
1919 _ACEOF
1920
1921     cat >>confdefs.h <<\_ACEOF
1922 #define __DARWIN__ 1
1923 _ACEOF
1924
1925     cat >>confdefs.h <<\_ACEOF
1926 #define __POWERPC__ 1
1927 _ACEOF
1928
1929     cat >>confdefs.h <<\_ACEOF
1930 #define TARGET_CARBON 1
1931 _ACEOF
1932
1933     DEFAULT_DEFAULT_wxUSE_MAC=1
1934   ;;
1935
1936   *-*-beos* )
1937         USE_BEOS=1
1938     cat >>confdefs.h <<\_ACEOF
1939 #define __BEOS__ 1
1940 _ACEOF
1941
1942   ;;
1943
1944   *)
1945     { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1946 echo "$as_me: error: unknown system type ${host}." >&2;}
1947    { (exit 1); exit 1; }; }
1948 esac
1949
1950
1951
1952
1953           wx_arg_cache_file="configarg.cache"
1954           echo "loading argument cache $wx_arg_cache_file"
1955           rm -f ${wx_arg_cache_file}.tmp
1956           touch ${wx_arg_cache_file}.tmp
1957           touch ${wx_arg_cache_file}
1958
1959
1960 DEBUG_CONFIGURE=0
1961 if test $DEBUG_CONFIGURE = 1; then
1962   DEFAULT_wxUSE_UNIVERSAL=no
1963   DEFAULT_wxUSE_STL=no
1964
1965   DEFAULT_wxUSE_NANOX=no
1966
1967   DEFAULT_wxUSE_THREADS=yes
1968
1969   DEFAULT_wxUSE_SHARED=yes
1970   DEFAULT_wxUSE_OPTIMISE=no
1971   DEFAULT_wxUSE_PROFILE=no
1972   DEFAULT_wxUSE_NO_DEPS=no
1973   DEFAULT_wxUSE_NO_RTTI=no
1974   DEFAULT_wxUSE_NO_EXCEPTIONS=no
1975   DEFAULT_wxUSE_PERMISSIVE=no
1976   DEFAULT_wxUSE_DEBUG_FLAG=yes
1977   DEFAULT_wxUSE_DEBUG_INFO=yes
1978   DEFAULT_wxUSE_DEBUG_GDB=yes
1979   DEFAULT_wxUSE_MEM_TRACING=no
1980   DEFAULT_wxUSE_DEBUG_CONTEXT=no
1981   DEFAULT_wxUSE_DMALLOC=no
1982   DEFAULT_wxUSE_APPLE_IEEE=no
1983
1984   DEFAULT_wxUSE_LOG=yes
1985   DEFAULT_wxUSE_LOGWINDOW=no
1986   DEFAULT_wxUSE_LOGGUI=no
1987   DEFAULT_wxUSE_LOGDIALOG=no
1988
1989   DEFAULT_wxUSE_GUI=yes
1990   DEFAULT_wxUSE_CONTROLS=no
1991
1992   DEFAULT_wxUSE_REGEX=no
1993   DEFAULT_wxUSE_XML=no
1994   DEFAULT_wxUSE_EXPAT=no
1995   DEFAULT_wxUSE_ZLIB=no
1996   DEFAULT_wxUSE_LIBPNG=no
1997   DEFAULT_wxUSE_LIBJPEG=no
1998   DEFAULT_wxUSE_LIBTIFF=no
1999   DEFAULT_wxUSE_ODBC=no
2000   DEFAULT_wxUSE_OPENGL=no
2001
2002   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2003   DEFAULT_wxUSE_SNGLINST_CHECKER=no
2004   DEFAULT_wxUSE_STD_IOSTREAM=no
2005   DEFAULT_wxUSE_CMDLINE_PARSER=no
2006   DEFAULT_wxUSE_DATETIME=no
2007   DEFAULT_wxUSE_TIMER=no
2008   DEFAULT_wxUSE_STOPWATCH=no
2009   DEFAULT_wxUSE_FILE=no
2010   DEFAULT_wxUSE_FFILE=no
2011   DEFAULT_wxUSE_TEXTBUFFER=no
2012   DEFAULT_wxUSE_TEXTFILE=no
2013   DEFAULT_wxUSE_WAVE=no
2014   DEFAULT_wxUSE_INTL=no
2015   DEFAULT_wxUSE_CONFIG=no
2016   DEFAULT_wxUSE_FONTMAP=no
2017   DEFAULT_wxUSE_STREAMS=no
2018   DEFAULT_wxUSE_SOCKETS=no
2019   DEFAULT_wxUSE_OLE=no
2020   DEFAULT_wxUSE_DATAOBJ=no
2021   DEFAULT_wxUSE_DIALUP_MANAGER=no
2022   DEFAULT_wxUSE_JOYSTICK=no
2023   DEFAULT_wxUSE_DYNLIB_CLASS=no
2024   DEFAULT_wxUSE_DYNAMIC_LOADER=no
2025   DEFAULT_wxUSE_LONGLONG=no
2026   DEFAULT_wxUSE_GEOMETRY=no
2027
2028   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2029   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2030   DEFAULT_wxUSE_POSTSCRIPT=no
2031
2032   DEFAULT_wxUSE_CLIPBOARD=no
2033   DEFAULT_wxUSE_TOOLTIPS=no
2034   DEFAULT_wxUSE_DRAG_AND_DROP=no
2035   DEFAULT_wxUSE_DRAGIMAGE=no
2036   DEFAULT_wxUSE_SPLINES=no
2037
2038   DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2039   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2040   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2041
2042   DEFAULT_wxUSE_RESOURCES=no
2043   DEFAULT_wxUSE_CONSTRAINTS=no
2044   DEFAULT_wxUSE_IPC=no
2045   DEFAULT_wxUSE_HELP=no
2046   DEFAULT_wxUSE_MS_HTML_HELP=no
2047   DEFAULT_wxUSE_WXHTML_HELP=no
2048   DEFAULT_wxUSE_TREELAYOUT=no
2049   DEFAULT_wxUSE_METAFILE=no
2050   DEFAULT_wxUSE_MIMETYPE=no
2051   DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2052   DEFAULT_wxUSE_PROTOCOL=no
2053   DEFAULT_wxUSE_PROTOCOL_HTTP=no
2054   DEFAULT_wxUSE_PROTOCOL_FTP=no
2055   DEFAULT_wxUSE_PROTOCOL_FILE=no
2056   DEFAULT_wxUSE_URL=no
2057
2058   DEFAULT_wxUSE_COMMONDLGS=no
2059   DEFAULT_wxUSE_CHOICEDLG=no
2060   DEFAULT_wxUSE_COLOURDLG=no
2061   DEFAULT_wxUSE_DIRDLG=no
2062   DEFAULT_wxUSE_FILEDLG=no
2063   DEFAULT_wxUSE_FINDREPLDLG=no
2064   DEFAULT_wxUSE_FONTDLG=no
2065   DEFAULT_wxUSE_MSGDLG=no
2066   DEFAULT_wxUSE_NUMBERDLG=no
2067   DEFAULT_wxUSE_TEXTDLG=no
2068   DEFAULT_wxUSE_SPLASH=no
2069   DEFAULT_wxUSE_STARTUP_TIPS=no
2070   DEFAULT_wxUSE_PROGRESSDLG=no
2071   DEFAULT_wxUSE_WIZARDDLG=no
2072
2073   DEFAULT_wxUSE_MENUS=no
2074   DEFAULT_wxUSE_MINIFRAME=no
2075   DEFAULT_wxUSE_HTML=no
2076   DEFAULT_wxUSE_FILESYSTEM=no
2077   DEFAULT_wxUSE_FS_INET=no
2078   DEFAULT_wxUSE_FS_ZIP=no
2079   DEFAULT_wxUSE_BUSYINFO=no
2080   DEFAULT_wxUSE_ZIPSTREAM=no
2081   DEFAULT_wxUSE_VALIDATORS=no
2082
2083   DEFAULT_wxUSE_ACCEL=no
2084   DEFAULT_wxUSE_BUTTON=no
2085   DEFAULT_wxUSE_BMPBUTTON=no
2086   DEFAULT_wxUSE_CALCTRL=no
2087   DEFAULT_wxUSE_CARET=no
2088   DEFAULT_wxUSE_CHECKBOX=no
2089   DEFAULT_wxUSE_CHECKLST=no
2090   DEFAULT_wxUSE_CHOICE=no
2091   DEFAULT_wxUSE_COMBOBOX=no
2092   DEFAULT_wxUSE_DISPLAY=no
2093   DEFAULT_wxUSE_GAUGE=no
2094   DEFAULT_wxUSE_GRID=no
2095   DEFAULT_wxUSE_IMAGLIST=no
2096   DEFAULT_wxUSE_LISTBOOK=no
2097   DEFAULT_wxUSE_LISTBOX=no
2098   DEFAULT_wxUSE_LISTCTRL=no
2099   DEFAULT_wxUSE_NOTEBOOK=no
2100   DEFAULT_wxUSE_RADIOBOX=no
2101   DEFAULT_wxUSE_RADIOBTN=no
2102   DEFAULT_wxUSE_SASH=no
2103   DEFAULT_wxUSE_SCROLLBAR=no
2104   DEFAULT_wxUSE_SLIDER=no
2105   DEFAULT_wxUSE_SPINBTN=no
2106   DEFAULT_wxUSE_SPINCTRL=no
2107   DEFAULT_wxUSE_SPLITTER=no
2108   DEFAULT_wxUSE_STATBMP=no
2109   DEFAULT_wxUSE_STATBOX=no
2110   DEFAULT_wxUSE_STATLINE=no
2111   DEFAULT_wxUSE_STATTEXT=no
2112   DEFAULT_wxUSE_STATUSBAR=yes
2113   DEFAULT_wxUSE_TABDIALOG=no
2114   DEFAULT_wxUSE_TEXTCTRL=no
2115   DEFAULT_wxUSE_TOGGLEBTN=no
2116   DEFAULT_wxUSE_TOOLBAR=no
2117   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2118   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2119   DEFAULT_wxUSE_TREECTRL=no
2120   DEFAULT_wxUSE_POPUPWIN=no
2121   DEFAULT_wxUSE_TIPWINDOW=no
2122
2123   DEFAULT_wxUSE_UNICODE=no
2124   DEFAULT_wxUSE_UNICODE_MSLU=no
2125   DEFAULT_wxUSE_WCSRTOMBS=no
2126
2127   DEFAULT_wxUSE_PALETTE=no
2128   DEFAULT_wxUSE_IMAGE=no
2129   DEFAULT_wxUSE_GIF=no
2130   DEFAULT_wxUSE_PCX=no
2131   DEFAULT_wxUSE_PNM=no
2132   DEFAULT_wxUSE_IFF=no
2133   DEFAULT_wxUSE_XPM=no
2134   DEFAULT_wxUSE_ICO_CUR=no
2135   DEFAULT_wxUSE_ACCESSIBILITY=no
2136
2137   DEFAULT_wxUSE_MONOLITHIC=no
2138   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2139 else
2140   DEFAULT_wxUSE_UNIVERSAL=no
2141   DEFAULT_wxUSE_STL=no
2142
2143   DEFAULT_wxUSE_NANOX=no
2144
2145   DEFAULT_wxUSE_THREADS=yes
2146
2147   DEFAULT_wxUSE_SHARED=yes
2148   DEFAULT_wxUSE_OPTIMISE=yes
2149   DEFAULT_wxUSE_PROFILE=no
2150   DEFAULT_wxUSE_NO_DEPS=no
2151   DEFAULT_wxUSE_NO_RTTI=no
2152   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2153   DEFAULT_wxUSE_PERMISSIVE=no
2154   DEFAULT_wxUSE_DEBUG_FLAG=no
2155   DEFAULT_wxUSE_DEBUG_INFO=no
2156   DEFAULT_wxUSE_DEBUG_GDB=no
2157   DEFAULT_wxUSE_MEM_TRACING=no
2158   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2159   DEFAULT_wxUSE_DMALLOC=no
2160   DEFAULT_wxUSE_APPLE_IEEE=yes
2161
2162   DEFAULT_wxUSE_LOG=yes
2163   DEFAULT_wxUSE_LOGWINDOW=yes
2164   DEFAULT_wxUSE_LOGGUI=yes
2165   DEFAULT_wxUSE_LOGDIALOG=yes
2166
2167   DEFAULT_wxUSE_GUI=yes
2168
2169   DEFAULT_wxUSE_REGEX=yes
2170   DEFAULT_wxUSE_XML=yes
2171   DEFAULT_wxUSE_EXPAT=yes
2172   DEFAULT_wxUSE_ZLIB=yes
2173   DEFAULT_wxUSE_LIBPNG=yes
2174   DEFAULT_wxUSE_LIBJPEG=yes
2175   DEFAULT_wxUSE_LIBTIFF=yes
2176   DEFAULT_wxUSE_ODBC=no
2177   DEFAULT_wxUSE_OPENGL=no
2178
2179   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2180   DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2181   DEFAULT_wxUSE_STD_IOSTREAM=no
2182   DEFAULT_wxUSE_CMDLINE_PARSER=yes
2183   DEFAULT_wxUSE_DATETIME=yes
2184   DEFAULT_wxUSE_TIMER=yes
2185   DEFAULT_wxUSE_STOPWATCH=yes
2186   DEFAULT_wxUSE_FILE=yes
2187   DEFAULT_wxUSE_FFILE=yes
2188   DEFAULT_wxUSE_TEXTBUFFER=yes
2189   DEFAULT_wxUSE_TEXTFILE=yes
2190   DEFAULT_wxUSE_WAVE=no
2191   DEFAULT_wxUSE_INTL=yes
2192   DEFAULT_wxUSE_CONFIG=yes
2193   DEFAULT_wxUSE_FONTMAP=yes
2194   DEFAULT_wxUSE_STREAMS=yes
2195   DEFAULT_wxUSE_SOCKETS=yes
2196   DEFAULT_wxUSE_OLE=yes
2197   DEFAULT_wxUSE_DATAOBJ=yes
2198   DEFAULT_wxUSE_DIALUP_MANAGER=yes
2199   DEFAULT_wxUSE_JOYSTICK=yes
2200   DEFAULT_wxUSE_DYNLIB_CLASS=yes
2201   DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2202   DEFAULT_wxUSE_LONGLONG=yes
2203   DEFAULT_wxUSE_GEOMETRY=yes
2204
2205   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2206   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2207   DEFAULT_wxUSE_POSTSCRIPT=yes
2208
2209   DEFAULT_wxUSE_CLIPBOARD=yes
2210   DEFAULT_wxUSE_TOOLTIPS=yes
2211   DEFAULT_wxUSE_DRAG_AND_DROP=yes
2212   DEFAULT_wxUSE_DRAGIMAGE=yes
2213   DEFAULT_wxUSE_SPLINES=yes
2214
2215   DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2216   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2217   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2218
2219   DEFAULT_wxUSE_RESOURCES=no
2220   DEFAULT_wxUSE_CONSTRAINTS=yes
2221   DEFAULT_wxUSE_IPC=yes
2222   DEFAULT_wxUSE_HELP=yes
2223   DEFAULT_wxUSE_MS_HTML_HELP=yes
2224   DEFAULT_wxUSE_WXHTML_HELP=yes
2225   DEFAULT_wxUSE_TREELAYOUT=yes
2226   DEFAULT_wxUSE_METAFILE=yes
2227   DEFAULT_wxUSE_MIMETYPE=yes
2228   DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2229   DEFAULT_wxUSE_PROTOCOL=yes
2230   DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2231   DEFAULT_wxUSE_PROTOCOL_FTP=yes
2232   DEFAULT_wxUSE_PROTOCOL_FILE=yes
2233   DEFAULT_wxUSE_URL=yes
2234
2235   DEFAULT_wxUSE_COMMONDLGS=yes
2236   DEFAULT_wxUSE_CHOICEDLG=yes
2237   DEFAULT_wxUSE_COLOURDLG=yes
2238   DEFAULT_wxUSE_DIRDLG=yes
2239   DEFAULT_wxUSE_FILEDLG=yes
2240   DEFAULT_wxUSE_FINDREPLDLG=yes
2241   DEFAULT_wxUSE_FONTDLG=yes
2242   DEFAULT_wxUSE_MSGDLG=yes
2243   DEFAULT_wxUSE_NUMBERDLG=yes
2244   DEFAULT_wxUSE_TEXTDLG=yes
2245   DEFAULT_wxUSE_SPLASH=yes
2246   DEFAULT_wxUSE_STARTUP_TIPS=yes
2247   DEFAULT_wxUSE_PROGRESSDLG=yes
2248   DEFAULT_wxUSE_WIZARDDLG=yes
2249
2250   DEFAULT_wxUSE_MENUS=yes
2251   DEFAULT_wxUSE_MINIFRAME=yes
2252   DEFAULT_wxUSE_HTML=yes
2253   DEFAULT_wxUSE_FILESYSTEM=yes
2254   DEFAULT_wxUSE_FS_INET=yes
2255   DEFAULT_wxUSE_FS_ZIP=yes
2256   DEFAULT_wxUSE_BUSYINFO=yes
2257   DEFAULT_wxUSE_ZIPSTREAM=yes
2258   DEFAULT_wxUSE_VALIDATORS=yes
2259
2260   DEFAULT_wxUSE_ACCEL=yes
2261   DEFAULT_wxUSE_BUTTON=yes
2262   DEFAULT_wxUSE_BMPBUTTON=yes
2263   DEFAULT_wxUSE_CALCTRL=yes
2264   DEFAULT_wxUSE_CARET=yes
2265   DEFAULT_wxUSE_CHECKBOX=yes
2266   DEFAULT_wxUSE_CHECKLST=yes
2267   DEFAULT_wxUSE_CHOICE=yes
2268   DEFAULT_wxUSE_COMBOBOX=yes
2269   DEFAULT_wxUSE_DISPLAY=no
2270   DEFAULT_wxUSE_GAUGE=yes
2271   DEFAULT_wxUSE_GRID=yes
2272   DEFAULT_wxUSE_IMAGLIST=yes
2273   DEFAULT_wxUSE_LISTBOOK=yes
2274   DEFAULT_wxUSE_LISTBOX=yes
2275   DEFAULT_wxUSE_LISTCTRL=yes
2276   DEFAULT_wxUSE_NOTEBOOK=yes
2277   DEFAULT_wxUSE_RADIOBOX=yes
2278   DEFAULT_wxUSE_RADIOBTN=yes
2279   DEFAULT_wxUSE_SASH=yes
2280   DEFAULT_wxUSE_SCROLLBAR=yes
2281   DEFAULT_wxUSE_SLIDER=yes
2282   DEFAULT_wxUSE_SPINBTN=yes
2283   DEFAULT_wxUSE_SPINCTRL=yes
2284   DEFAULT_wxUSE_SPLITTER=yes
2285   DEFAULT_wxUSE_STATBMP=yes
2286   DEFAULT_wxUSE_STATBOX=yes
2287   DEFAULT_wxUSE_STATLINE=yes
2288   DEFAULT_wxUSE_STATTEXT=yes
2289   DEFAULT_wxUSE_STATUSBAR=yes
2290   DEFAULT_wxUSE_TABDIALOG=no
2291   DEFAULT_wxUSE_TEXTCTRL=yes
2292   DEFAULT_wxUSE_TOGGLEBTN=yes
2293   DEFAULT_wxUSE_TOOLBAR=yes
2294   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2295   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2296   DEFAULT_wxUSE_TREECTRL=yes
2297   DEFAULT_wxUSE_POPUPWIN=yes
2298   DEFAULT_wxUSE_TIPWINDOW=yes
2299
2300   DEFAULT_wxUSE_UNICODE=no
2301   DEFAULT_wxUSE_UNICODE_MSLU=yes
2302   DEFAULT_wxUSE_WCSRTOMBS=no
2303
2304   DEFAULT_wxUSE_PALETTE=yes
2305   DEFAULT_wxUSE_IMAGE=yes
2306   DEFAULT_wxUSE_GIF=yes
2307   DEFAULT_wxUSE_PCX=yes
2308   DEFAULT_wxUSE_IFF=no
2309   DEFAULT_wxUSE_PNM=yes
2310   DEFAULT_wxUSE_XPM=yes
2311   DEFAULT_wxUSE_ICO_CUR=yes
2312   DEFAULT_wxUSE_ACCESSIBILITY=no
2313
2314   DEFAULT_wxUSE_MONOLITHIC=no
2315   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2316 fi
2317
2318
2319
2320 for toolkit in `echo $ALL_TOOLKITS`; do
2321   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2322   if test "x$LINE" != "x" ; then
2323     has_toolkit_in_cache=1
2324     eval "DEFAULT_$LINE"
2325     eval "CACHE_$toolkit=1"
2326   fi
2327 done
2328
2329
2330
2331           enablestring=
2332           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2333 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2334           no_cache=0
2335           # Check whether --enable-gui or --disable-gui was given.
2336 if test "${enable_gui+set}" = set; then
2337   enableval="$enable_gui"
2338
2339                           if test "$enableval" = yes; then
2340                             ac_cv_use_gui='wxUSE_GUI=yes'
2341                           else
2342                             ac_cv_use_gui='wxUSE_GUI=no'
2343                           fi
2344
2345 else
2346
2347                           LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2348                           if test "x$LINE" != x ; then
2349                             eval "DEFAULT_$LINE"
2350                           else
2351                             no_cache=1
2352                           fi
2353
2354                           ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2355
2356 fi;
2357
2358           eval "$ac_cv_use_gui"
2359           if test "$no_cache" != 1; then
2360             echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2361           fi
2362
2363           if test "$wxUSE_GUI" = yes; then
2364             echo "$as_me:$LINENO: result: yes" >&5
2365 echo "${ECHO_T}yes" >&6
2366           else
2367             echo "$as_me:$LINENO: result: no" >&5
2368 echo "${ECHO_T}no" >&6
2369           fi
2370
2371
2372           enablestring=
2373           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2374 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2375           no_cache=0
2376           # Check whether --enable-monolithic or --disable-monolithic was given.
2377 if test "${enable_monolithic+set}" = set; then
2378   enableval="$enable_monolithic"
2379
2380                           if test "$enableval" = yes; then
2381                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2382                           else
2383                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2384                           fi
2385
2386 else
2387
2388                           LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2389                           if test "x$LINE" != x ; then
2390                             eval "DEFAULT_$LINE"
2391                           else
2392                             no_cache=1
2393                           fi
2394
2395                           ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2396
2397 fi;
2398
2399           eval "$ac_cv_use_monolithic"
2400           if test "$no_cache" != 1; then
2401             echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2402           fi
2403
2404           if test "$wxUSE_MONOLITHIC" = yes; then
2405             echo "$as_me:$LINENO: result: yes" >&5
2406 echo "${ECHO_T}yes" >&6
2407           else
2408             echo "$as_me:$LINENO: result: no" >&5
2409 echo "${ECHO_T}no" >&6
2410           fi
2411
2412
2413 if test "$wxUSE_GUI" = "yes"; then
2414
2415
2416           enablestring=
2417           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2418 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2419           no_cache=0
2420           # Check whether --enable-universal or --disable-universal was given.
2421 if test "${enable_universal+set}" = set; then
2422   enableval="$enable_universal"
2423
2424                           if test "$enableval" = yes; then
2425                             ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2426                           else
2427                             ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2428                           fi
2429
2430 else
2431
2432                           LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2433                           if test "x$LINE" != x ; then
2434                             eval "DEFAULT_$LINE"
2435                           else
2436                             no_cache=1
2437                           fi
2438
2439                           ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2440
2441 fi;
2442
2443           eval "$ac_cv_use_universal"
2444           if test "$no_cache" != 1; then
2445             echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2446           fi
2447
2448           if test "$wxUSE_UNIVERSAL" = yes; then
2449             echo "$as_me:$LINENO: result: yes" >&5
2450 echo "${ECHO_T}yes" >&6
2451           else
2452             echo "$as_me:$LINENO: result: no" >&5
2453 echo "${ECHO_T}no" >&6
2454           fi
2455
2456
2457 # Check whether --with-gtk or --without-gtk was given.
2458 if test "${with_gtk+set}" = set; then
2459   withval="$with_gtk"
2460   wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2461 fi;
2462
2463 # Check whether --with-motif or --without-motif was given.
2464 if test "${with_motif+set}" = set; then
2465   withval="$with_motif"
2466   wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2467 fi;
2468
2469 # Check whether --with-mac or --without-mac was given.
2470 if test "${with_mac+set}" = set; then
2471   withval="$with_mac"
2472   wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
2473 fi;
2474
2475 # Check whether --with-cocoa or --without-cocoa was given.
2476 if test "${with_cocoa+set}" = set; then
2477   withval="$with_cocoa"
2478   wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
2479 fi;
2480
2481 # Check whether --with-wine or --without-wine was given.
2482 if test "${with_wine+set}" = set; then
2483   withval="$with_wine"
2484   wxUSE_WINE="$withval" CACHE_WINE=1
2485 fi;
2486
2487 # Check whether --with-msw or --without-msw was given.
2488 if test "${with_msw+set}" = set; then
2489   withval="$with_msw"
2490   wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2491 fi;
2492
2493 # Check whether --with-pm or --without-pm was given.
2494 if test "${with_pm+set}" = set; then
2495   withval="$with_pm"
2496   wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2497 fi;
2498
2499 # Check whether --with-mgl or --without-mgl was given.
2500 if test "${with_mgl+set}" = set; then
2501   withval="$with_mgl"
2502   wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2503 fi;
2504
2505 # Check whether --with-microwin or --without-microwin was given.
2506 if test "${with_microwin+set}" = set; then
2507   withval="$with_microwin"
2508   wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2509 fi;
2510
2511 # Check whether --with-x11 or --without-x11 was given.
2512 if test "${with_x11+set}" = set; then
2513   withval="$with_x11"
2514   wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2515 fi;
2516
2517           enablestring=
2518           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2519 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2520           no_cache=0
2521           # Check whether --enable-nanox or --disable-nanox was given.
2522 if test "${enable_nanox+set}" = set; then
2523   enableval="$enable_nanox"
2524
2525                           if test "$enableval" = yes; then
2526                             ac_cv_use_nanox='wxUSE_NANOX=yes'
2527                           else
2528                             ac_cv_use_nanox='wxUSE_NANOX=no'
2529                           fi
2530
2531 else
2532
2533                           LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2534                           if test "x$LINE" != x ; then
2535                             eval "DEFAULT_$LINE"
2536                           else
2537                             no_cache=1
2538                           fi
2539
2540                           ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2541
2542 fi;
2543
2544           eval "$ac_cv_use_nanox"
2545           if test "$no_cache" != 1; then
2546             echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2547           fi
2548
2549           if test "$wxUSE_NANOX" = yes; then
2550             echo "$as_me:$LINENO: result: yes" >&5
2551 echo "${ECHO_T}yes" >&6
2552           else
2553             echo "$as_me:$LINENO: result: no" >&5
2554 echo "${ECHO_T}no" >&6
2555           fi
2556
2557
2558
2559           enablestring=
2560           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2561 echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2562           no_cache=0
2563           # Check whether --enable-gtk2 or --disable-gtk2 was given.
2564 if test "${enable_gtk2+set}" = set; then
2565   enableval="$enable_gtk2"
2566
2567                           if test "$enableval" = yes; then
2568                             ac_cv_use_gtk2='wxUSE_GTK2=yes'
2569                           else
2570                             ac_cv_use_gtk2='wxUSE_GTK2=no'
2571                           fi
2572
2573 else
2574
2575                           LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2576                           if test "x$LINE" != x ; then
2577                             eval "DEFAULT_$LINE"
2578                           else
2579                             no_cache=1
2580                           fi
2581
2582                           ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2583
2584 fi;
2585
2586           eval "$ac_cv_use_gtk2"
2587           if test "$no_cache" != 1; then
2588             echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2589           fi
2590
2591           if test "$wxUSE_GTK2" = yes; then
2592             echo "$as_me:$LINENO: result: yes" >&5
2593 echo "${ECHO_T}yes" >&6
2594           else
2595             echo "$as_me:$LINENO: result: no" >&5
2596 echo "${ECHO_T}no" >&6
2597           fi
2598
2599
2600
2601           echo "$as_me:$LINENO: checking for --with-libpng" >&5
2602 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2603           no_cache=0
2604
2605 # Check whether --with-libpng or --without-libpng was given.
2606 if test "${with_libpng+set}" = set; then
2607   withval="$with_libpng"
2608
2609                         if test "$withval" = yes; then
2610                           ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2611                         elif test "$withval" = no; then
2612                           ac_cv_use_libpng='wxUSE_LIBPNG=no'
2613                         elif test "$withval" = sys; then
2614                           ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2615                         elif test "$withval" = builtin; then
2616                           ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2617                         else
2618                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2619 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2620    { (exit 1); exit 1; }; }
2621                         fi
2622
2623 else
2624
2625                         LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2626                         if test "x$LINE" != x ; then
2627                           eval "DEFAULT_$LINE"
2628                         else
2629                           no_cache=1
2630                         fi
2631
2632                         ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2633
2634 fi;
2635
2636           eval "$ac_cv_use_libpng"
2637           if test "$no_cache" != 1; then
2638             echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2639           fi
2640
2641           if test "$wxUSE_LIBPNG" = yes; then
2642             echo "$as_me:$LINENO: result: yes" >&5
2643 echo "${ECHO_T}yes" >&6
2644           elif test "$wxUSE_LIBPNG" = no; then
2645             echo "$as_me:$LINENO: result: no" >&5
2646 echo "${ECHO_T}no" >&6
2647           elif test "$wxUSE_LIBPNG" = sys; then
2648             echo "$as_me:$LINENO: result: system version" >&5
2649 echo "${ECHO_T}system version" >&6
2650           elif test "$wxUSE_LIBPNG" = builtin; then
2651             echo "$as_me:$LINENO: result: builtin version" >&5
2652 echo "${ECHO_T}builtin version" >&6
2653           else
2654             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2655 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2656    { (exit 1); exit 1; }; }
2657           fi
2658
2659
2660           echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2661 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2662           no_cache=0
2663
2664 # Check whether --with-libjpeg or --without-libjpeg was given.
2665 if test "${with_libjpeg+set}" = set; then
2666   withval="$with_libjpeg"
2667
2668                         if test "$withval" = yes; then
2669                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2670                         elif test "$withval" = no; then
2671                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2672                         elif test "$withval" = sys; then
2673                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2674                         elif test "$withval" = builtin; then
2675                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2676                         else
2677                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2678 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2679    { (exit 1); exit 1; }; }
2680                         fi
2681
2682 else
2683
2684                         LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2685                         if test "x$LINE" != x ; then
2686                           eval "DEFAULT_$LINE"
2687                         else
2688                           no_cache=1
2689                         fi
2690
2691                         ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2692
2693 fi;
2694
2695           eval "$ac_cv_use_libjpeg"
2696           if test "$no_cache" != 1; then
2697             echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2698           fi
2699
2700           if test "$wxUSE_LIBJPEG" = yes; then
2701             echo "$as_me:$LINENO: result: yes" >&5
2702 echo "${ECHO_T}yes" >&6
2703           elif test "$wxUSE_LIBJPEG" = no; then
2704             echo "$as_me:$LINENO: result: no" >&5
2705 echo "${ECHO_T}no" >&6
2706           elif test "$wxUSE_LIBJPEG" = sys; then
2707             echo "$as_me:$LINENO: result: system version" >&5
2708 echo "${ECHO_T}system version" >&6
2709           elif test "$wxUSE_LIBJPEG" = builtin; then
2710             echo "$as_me:$LINENO: result: builtin version" >&5
2711 echo "${ECHO_T}builtin version" >&6
2712           else
2713             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2714 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2715    { (exit 1); exit 1; }; }
2716           fi
2717
2718
2719           echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2720 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2721           no_cache=0
2722
2723 # Check whether --with-libtiff or --without-libtiff was given.
2724 if test "${with_libtiff+set}" = set; then
2725   withval="$with_libtiff"
2726
2727                         if test "$withval" = yes; then
2728                           ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2729                         elif test "$withval" = no; then
2730                           ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2731                         elif test "$withval" = sys; then
2732                           ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2733                         elif test "$withval" = builtin; then
2734                           ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2735                         else
2736                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2737 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2738    { (exit 1); exit 1; }; }
2739                         fi
2740
2741 else
2742
2743                         LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2744                         if test "x$LINE" != x ; then
2745                           eval "DEFAULT_$LINE"
2746                         else
2747                           no_cache=1
2748                         fi
2749
2750                         ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2751
2752 fi;
2753
2754           eval "$ac_cv_use_libtiff"
2755           if test "$no_cache" != 1; then
2756             echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2757           fi
2758
2759           if test "$wxUSE_LIBTIFF" = yes; then
2760             echo "$as_me:$LINENO: result: yes" >&5
2761 echo "${ECHO_T}yes" >&6
2762           elif test "$wxUSE_LIBTIFF" = no; then
2763             echo "$as_me:$LINENO: result: no" >&5
2764 echo "${ECHO_T}no" >&6
2765           elif test "$wxUSE_LIBTIFF" = sys; then
2766             echo "$as_me:$LINENO: result: system version" >&5
2767 echo "${ECHO_T}system version" >&6
2768           elif test "$wxUSE_LIBTIFF" = builtin; then
2769             echo "$as_me:$LINENO: result: builtin version" >&5
2770 echo "${ECHO_T}builtin version" >&6
2771           else
2772             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2773 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2774    { (exit 1); exit 1; }; }
2775           fi
2776
2777
2778           echo "$as_me:$LINENO: checking for --with-opengl" >&5
2779 echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
2780           no_cache=0
2781
2782 # Check whether --with-opengl or --without-opengl was given.
2783 if test "${with_opengl+set}" = set; then
2784   withval="$with_opengl"
2785
2786                         if test "$withval" = yes; then
2787                           ac_cv_use_opengl='wxUSE_OPENGL=yes'
2788                         else
2789                           ac_cv_use_opengl='wxUSE_OPENGL=no'
2790                         fi
2791
2792 else
2793
2794                         LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2795                         if test "x$LINE" != x ; then
2796                           eval "DEFAULT_$LINE"
2797                         else
2798                           no_cache=1
2799                         fi
2800
2801                         ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2802
2803 fi;
2804
2805           eval "$ac_cv_use_opengl"
2806           if test "$no_cache" != 1; then
2807             echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2808           fi
2809
2810           if test "$wxUSE_OPENGL" = yes; then
2811             echo "$as_me:$LINENO: result: yes" >&5
2812 echo "${ECHO_T}yes" >&6
2813           else
2814             echo "$as_me:$LINENO: result: no" >&5
2815 echo "${ECHO_T}no" >&6
2816           fi
2817
2818
2819 fi
2820
2821
2822           echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
2823 echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
2824           no_cache=0
2825
2826 # Check whether --with-dmalloc or --without-dmalloc was given.
2827 if test "${with_dmalloc+set}" = set; then
2828   withval="$with_dmalloc"
2829
2830                         if test "$withval" = yes; then
2831                           ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2832                         else
2833                           ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2834                         fi
2835
2836 else
2837
2838                         LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2839                         if test "x$LINE" != x ; then
2840                           eval "DEFAULT_$LINE"
2841                         else
2842                           no_cache=1
2843                         fi
2844
2845                         ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2846
2847 fi;
2848
2849           eval "$ac_cv_use_dmalloc"
2850           if test "$no_cache" != 1; then
2851             echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2852           fi
2853
2854           if test "$wxUSE_DMALLOC" = yes; then
2855             echo "$as_me:$LINENO: result: yes" >&5
2856 echo "${ECHO_T}yes" >&6
2857           else
2858             echo "$as_me:$LINENO: result: no" >&5
2859 echo "${ECHO_T}no" >&6
2860           fi
2861
2862
2863           echo "$as_me:$LINENO: checking for --with-regex" >&5
2864 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
2865           no_cache=0
2866
2867 # Check whether --with-regex or --without-regex was given.
2868 if test "${with_regex+set}" = set; then
2869   withval="$with_regex"
2870
2871                         if test "$withval" = yes; then
2872                           ac_cv_use_regex='wxUSE_REGEX=yes'
2873                         elif test "$withval" = no; then
2874                           ac_cv_use_regex='wxUSE_REGEX=no'
2875                         elif test "$withval" = sys; then
2876                           ac_cv_use_regex='wxUSE_REGEX=sys'
2877                         elif test "$withval" = builtin; then
2878                           ac_cv_use_regex='wxUSE_REGEX=builtin'
2879                         else
2880                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2881 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2882    { (exit 1); exit 1; }; }
2883                         fi
2884
2885 else
2886
2887                         LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2888                         if test "x$LINE" != x ; then
2889                           eval "DEFAULT_$LINE"
2890                         else
2891                           no_cache=1
2892                         fi
2893
2894                         ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2895
2896 fi;
2897
2898           eval "$ac_cv_use_regex"
2899           if test "$no_cache" != 1; then
2900             echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2901           fi
2902
2903           if test "$wxUSE_REGEX" = yes; then
2904             echo "$as_me:$LINENO: result: yes" >&5
2905 echo "${ECHO_T}yes" >&6
2906           elif test "$wxUSE_REGEX" = no; then
2907             echo "$as_me:$LINENO: result: no" >&5
2908 echo "${ECHO_T}no" >&6
2909           elif test "$wxUSE_REGEX" = sys; then
2910             echo "$as_me:$LINENO: result: system version" >&5
2911 echo "${ECHO_T}system version" >&6
2912           elif test "$wxUSE_REGEX" = builtin; then
2913             echo "$as_me:$LINENO: result: builtin version" >&5
2914 echo "${ECHO_T}builtin version" >&6
2915           else
2916             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2917 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2918    { (exit 1); exit 1; }; }
2919           fi
2920
2921
2922           echo "$as_me:$LINENO: checking for --with-zlib" >&5
2923 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
2924           no_cache=0
2925
2926 # Check whether --with-zlib or --without-zlib was given.
2927 if test "${with_zlib+set}" = set; then
2928   withval="$with_zlib"
2929
2930                         if test "$withval" = yes; then
2931                           ac_cv_use_zlib='wxUSE_ZLIB=yes'
2932                         elif test "$withval" = no; then
2933                           ac_cv_use_zlib='wxUSE_ZLIB=no'
2934                         elif test "$withval" = sys; then
2935                           ac_cv_use_zlib='wxUSE_ZLIB=sys'
2936                         elif test "$withval" = builtin; then
2937                           ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2938                         else
2939                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2940 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2941    { (exit 1); exit 1; }; }
2942                         fi
2943
2944 else
2945
2946                         LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2947                         if test "x$LINE" != x ; then
2948                           eval "DEFAULT_$LINE"
2949                         else
2950                           no_cache=1
2951                         fi
2952
2953                         ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2954
2955 fi;
2956
2957           eval "$ac_cv_use_zlib"
2958           if test "$no_cache" != 1; then
2959             echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2960           fi
2961
2962           if test "$wxUSE_ZLIB" = yes; then
2963             echo "$as_me:$LINENO: result: yes" >&5
2964 echo "${ECHO_T}yes" >&6
2965           elif test "$wxUSE_ZLIB" = no; then
2966             echo "$as_me:$LINENO: result: no" >&5
2967 echo "${ECHO_T}no" >&6
2968           elif test "$wxUSE_ZLIB" = sys; then
2969             echo "$as_me:$LINENO: result: system version" >&5
2970 echo "${ECHO_T}system version" >&6
2971           elif test "$wxUSE_ZLIB" = builtin; then
2972             echo "$as_me:$LINENO: result: builtin version" >&5
2973 echo "${ECHO_T}builtin version" >&6
2974           else
2975             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2976 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2977    { (exit 1); exit 1; }; }
2978           fi
2979
2980
2981           echo "$as_me:$LINENO: checking for --with-odbc" >&5
2982 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
2983           no_cache=0
2984
2985 # Check whether --with-odbc or --without-odbc was given.
2986 if test "${with_odbc+set}" = set; then
2987   withval="$with_odbc"
2988
2989                         if test "$withval" = yes; then
2990                           ac_cv_use_odbc='wxUSE_ODBC=yes'
2991                         elif test "$withval" = no; then
2992                           ac_cv_use_odbc='wxUSE_ODBC=no'
2993                         elif test "$withval" = sys; then
2994                           ac_cv_use_odbc='wxUSE_ODBC=sys'
2995                         elif test "$withval" = builtin; then
2996                           ac_cv_use_odbc='wxUSE_ODBC=builtin'
2997                         else
2998                           { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
2999 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3000    { (exit 1); exit 1; }; }
3001                         fi
3002
3003 else
3004
3005                         LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3006                         if test "x$LINE" != x ; then
3007                           eval "DEFAULT_$LINE"
3008                         else
3009                           no_cache=1
3010                         fi
3011
3012                         ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3013
3014 fi;
3015
3016           eval "$ac_cv_use_odbc"
3017           if test "$no_cache" != 1; then
3018             echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3019           fi
3020
3021           if test "$wxUSE_ODBC" = yes; then
3022             echo "$as_me:$LINENO: result: yes" >&5
3023 echo "${ECHO_T}yes" >&6
3024           elif test "$wxUSE_ODBC" = no; then
3025             echo "$as_me:$LINENO: result: no" >&5
3026 echo "${ECHO_T}no" >&6
3027           elif test "$wxUSE_ODBC" = sys; then
3028             echo "$as_me:$LINENO: result: system version" >&5
3029 echo "${ECHO_T}system version" >&6
3030           elif test "$wxUSE_ODBC" = builtin; then
3031             echo "$as_me:$LINENO: result: builtin version" >&5
3032 echo "${ECHO_T}builtin version" >&6
3033           else
3034             { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3035 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3036    { (exit 1); exit 1; }; }
3037           fi
3038
3039
3040           echo "$as_me:$LINENO: checking for --with-expat" >&5
3041 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3042           no_cache=0
3043
3044 # Check whether --with-expat or --without-expat was given.
3045 if test "${with_expat+set}" = set; then
3046   withval="$with_expat"
3047
3048                         if test "$withval" = yes; then
3049                           ac_cv_use_expat='wxUSE_EXPAT=yes'
3050                         elif test "$withval" = no; then
3051                           ac_cv_use_expat='wxUSE_EXPAT=no'
3052                         elif test "$withval" = sys; then
3053                           ac_cv_use_expat='wxUSE_EXPAT=sys'
3054                         elif test "$withval" = builtin; then
3055                           ac_cv_use_expat='wxUSE_EXPAT=builtin'
3056                         else
3057                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3058 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3059    { (exit 1); exit 1; }; }
3060                         fi
3061
3062 else
3063
3064                         LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3065                         if test "x$LINE" != x ; then
3066                           eval "DEFAULT_$LINE"
3067                         else
3068                           no_cache=1
3069                         fi
3070
3071                         ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3072
3073 fi;
3074
3075           eval "$ac_cv_use_expat"
3076           if test "$no_cache" != 1; then
3077             echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3078           fi
3079
3080           if test "$wxUSE_EXPAT" = yes; then
3081             echo "$as_me:$LINENO: result: yes" >&5
3082 echo "${ECHO_T}yes" >&6
3083           elif test "$wxUSE_EXPAT" = no; then
3084             echo "$as_me:$LINENO: result: no" >&5
3085 echo "${ECHO_T}no" >&6
3086           elif test "$wxUSE_EXPAT" = sys; then
3087             echo "$as_me:$LINENO: result: system version" >&5
3088 echo "${ECHO_T}system version" >&6
3089           elif test "$wxUSE_EXPAT" = builtin; then
3090             echo "$as_me:$LINENO: result: builtin version" >&5
3091 echo "${ECHO_T}builtin version" >&6
3092           else
3093             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3094 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3095    { (exit 1); exit 1; }; }
3096           fi
3097
3098
3099
3100
3101           enablestring=
3102           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3103 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3104           no_cache=0
3105           # Check whether --enable-shared or --disable-shared was given.
3106 if test "${enable_shared+set}" = set; then
3107   enableval="$enable_shared"
3108
3109                           if test "$enableval" = yes; then
3110                             ac_cv_use_shared='wxUSE_SHARED=yes'
3111                           else
3112                             ac_cv_use_shared='wxUSE_SHARED=no'
3113                           fi
3114
3115 else
3116
3117                           LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3118                           if test "x$LINE" != x ; then
3119                             eval "DEFAULT_$LINE"
3120                           else
3121                             no_cache=1
3122                           fi
3123
3124                           ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3125
3126 fi;
3127
3128           eval "$ac_cv_use_shared"
3129           if test "$no_cache" != 1; then
3130             echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3131           fi
3132
3133           if test "$wxUSE_SHARED" = yes; then
3134             echo "$as_me:$LINENO: result: yes" >&5
3135 echo "${ECHO_T}yes" >&6
3136           else
3137             echo "$as_me:$LINENO: result: no" >&5
3138 echo "${ECHO_T}no" >&6
3139           fi
3140
3141
3142           enablestring=
3143           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3144 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3145           no_cache=0
3146           # Check whether --enable-optimise or --disable-optimise was given.
3147 if test "${enable_optimise+set}" = set; then
3148   enableval="$enable_optimise"
3149
3150                           if test "$enableval" = yes; then
3151                             ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3152                           else
3153                             ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3154                           fi
3155
3156 else
3157
3158                           LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3159                           if test "x$LINE" != x ; then
3160                             eval "DEFAULT_$LINE"
3161                           else
3162                             no_cache=1
3163                           fi
3164
3165                           ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3166
3167 fi;
3168
3169           eval "$ac_cv_use_optimise"
3170           if test "$no_cache" != 1; then
3171             echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3172           fi
3173
3174           if test "$wxUSE_OPTIMISE" = yes; then
3175             echo "$as_me:$LINENO: result: yes" >&5
3176 echo "${ECHO_T}yes" >&6
3177           else
3178             echo "$as_me:$LINENO: result: no" >&5
3179 echo "${ECHO_T}no" >&6
3180           fi
3181
3182
3183           enablestring=
3184           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3185 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3186           no_cache=0
3187           # Check whether --enable-debug or --disable-debug was given.
3188 if test "${enable_debug+set}" = set; then
3189   enableval="$enable_debug"
3190
3191                           if test "$enableval" = yes; then
3192                             ac_cv_use_debug='wxUSE_DEBUG=yes'
3193                           else
3194                             ac_cv_use_debug='wxUSE_DEBUG=no'
3195                           fi
3196
3197 else
3198
3199                           LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3200                           if test "x$LINE" != x ; then
3201                             eval "DEFAULT_$LINE"
3202                           else
3203                             no_cache=1
3204                           fi
3205
3206                           ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3207
3208 fi;
3209
3210           eval "$ac_cv_use_debug"
3211           if test "$no_cache" != 1; then
3212             echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3213           fi
3214
3215           if test "$wxUSE_DEBUG" = yes; then
3216             echo "$as_me:$LINENO: result: yes" >&5
3217 echo "${ECHO_T}yes" >&6
3218           else
3219             echo "$as_me:$LINENO: result: no" >&5
3220 echo "${ECHO_T}no" >&6
3221           fi
3222
3223
3224           enablestring=
3225           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3226 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3227           no_cache=0
3228           # Check whether --enable-stl or --disable-stl was given.
3229 if test "${enable_stl+set}" = set; then
3230   enableval="$enable_stl"
3231
3232                           if test "$enableval" = yes; then
3233                             ac_cv_use_stl='wxUSE_STL=yes'
3234                           else
3235                             ac_cv_use_stl='wxUSE_STL=no'
3236                           fi
3237
3238 else
3239
3240                           LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3241                           if test "x$LINE" != x ; then
3242                             eval "DEFAULT_$LINE"
3243                           else
3244                             no_cache=1
3245                           fi
3246
3247                           ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3248
3249 fi;
3250
3251           eval "$ac_cv_use_stl"
3252           if test "$no_cache" != 1; then
3253             echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3254           fi
3255
3256           if test "$wxUSE_STL" = yes; then
3257             echo "$as_me:$LINENO: result: yes" >&5
3258 echo "${ECHO_T}yes" >&6
3259           else
3260             echo "$as_me:$LINENO: result: no" >&5
3261 echo "${ECHO_T}no" >&6
3262           fi
3263
3264
3265 if test "$wxUSE_DEBUG" = "yes"; then
3266   DEFAULT_wxUSE_DEBUG_FLAG=yes
3267   DEFAULT_wxUSE_DEBUG_INFO=yes
3268   BUILD=debug
3269 elif test "$wxUSE_DEBUG" = "no"; then
3270   DEFAULT_wxUSE_DEBUG_FLAG=no
3271   DEFAULT_wxUSE_DEBUG_INFO=no
3272   BUILD=release
3273 fi
3274
3275
3276           enablestring=
3277           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3278 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3279           no_cache=0
3280           # Check whether --enable-debug_flag or --disable-debug_flag was given.
3281 if test "${enable_debug_flag+set}" = set; then
3282   enableval="$enable_debug_flag"
3283
3284                           if test "$enableval" = yes; then
3285                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3286                           else
3287                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3288                           fi
3289
3290 else
3291
3292                           LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3293                           if test "x$LINE" != x ; then
3294                             eval "DEFAULT_$LINE"
3295                           else
3296                             no_cache=1
3297                           fi
3298
3299                           ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3300
3301 fi;
3302
3303           eval "$ac_cv_use_debug_flag"
3304           if test "$no_cache" != 1; then
3305             echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3306           fi
3307
3308           if test "$wxUSE_DEBUG_FLAG" = yes; then
3309             echo "$as_me:$LINENO: result: yes" >&5
3310 echo "${ECHO_T}yes" >&6
3311           else
3312             echo "$as_me:$LINENO: result: no" >&5
3313 echo "${ECHO_T}no" >&6
3314           fi
3315
3316
3317           enablestring=
3318           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3319 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3320           no_cache=0
3321           # Check whether --enable-debug_info or --disable-debug_info was given.
3322 if test "${enable_debug_info+set}" = set; then
3323   enableval="$enable_debug_info"
3324
3325                           if test "$enableval" = yes; then
3326                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3327                           else
3328                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3329                           fi
3330
3331 else
3332
3333                           LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3334                           if test "x$LINE" != x ; then
3335                             eval "DEFAULT_$LINE"
3336                           else
3337                             no_cache=1
3338                           fi
3339
3340                           ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3341
3342 fi;
3343
3344           eval "$ac_cv_use_debug_info"
3345           if test "$no_cache" != 1; then
3346             echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3347           fi
3348
3349           if test "$wxUSE_DEBUG_INFO" = yes; then
3350             echo "$as_me:$LINENO: result: yes" >&5
3351 echo "${ECHO_T}yes" >&6
3352           else
3353             echo "$as_me:$LINENO: result: no" >&5
3354 echo "${ECHO_T}no" >&6
3355           fi
3356
3357
3358           enablestring=
3359           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3360 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3361           no_cache=0
3362           # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3363 if test "${enable_debug_gdb+set}" = set; then
3364   enableval="$enable_debug_gdb"
3365
3366                           if test "$enableval" = yes; then
3367                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3368                           else
3369                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3370                           fi
3371
3372 else
3373
3374                           LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3375                           if test "x$LINE" != x ; then
3376                             eval "DEFAULT_$LINE"
3377                           else
3378                             no_cache=1
3379                           fi
3380
3381                           ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3382
3383 fi;
3384
3385           eval "$ac_cv_use_debug_gdb"
3386           if test "$no_cache" != 1; then
3387             echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3388           fi
3389
3390           if test "$wxUSE_DEBUG_GDB" = yes; then
3391             echo "$as_me:$LINENO: result: yes" >&5
3392 echo "${ECHO_T}yes" >&6
3393           else
3394             echo "$as_me:$LINENO: result: no" >&5
3395 echo "${ECHO_T}no" >&6
3396           fi
3397
3398
3399           enablestring=
3400           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3401 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3402           no_cache=0
3403           # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3404 if test "${enable_debug_cntxt+set}" = set; then
3405   enableval="$enable_debug_cntxt"
3406
3407                           if test "$enableval" = yes; then
3408                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3409                           else
3410                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3411                           fi
3412
3413 else
3414
3415                           LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3416                           if test "x$LINE" != x ; then
3417                             eval "DEFAULT_$LINE"
3418                           else
3419                             no_cache=1
3420                           fi
3421
3422                           ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3423
3424 fi;
3425
3426           eval "$ac_cv_use_debug_cntxt"
3427           if test "$no_cache" != 1; then
3428             echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3429           fi
3430
3431           if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3432             echo "$as_me:$LINENO: result: yes" >&5
3433 echo "${ECHO_T}yes" >&6
3434           else
3435             echo "$as_me:$LINENO: result: no" >&5
3436 echo "${ECHO_T}no" >&6
3437           fi
3438
3439
3440           enablestring=
3441           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3442 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3443           no_cache=0
3444           # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3445 if test "${enable_mem_tracing+set}" = set; then
3446   enableval="$enable_mem_tracing"
3447
3448                           if test "$enableval" = yes; then
3449                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3450                           else
3451                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3452                           fi
3453
3454 else
3455
3456                           LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3457                           if test "x$LINE" != x ; then
3458                             eval "DEFAULT_$LINE"
3459                           else
3460                             no_cache=1
3461                           fi
3462
3463                           ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3464
3465 fi;
3466
3467           eval "$ac_cv_use_mem_tracing"
3468           if test "$no_cache" != 1; then
3469             echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3470           fi
3471
3472           if test "$wxUSE_MEM_TRACING" = yes; then
3473             echo "$as_me:$LINENO: result: yes" >&5
3474 echo "${ECHO_T}yes" >&6
3475           else
3476             echo "$as_me:$LINENO: result: no" >&5
3477 echo "${ECHO_T}no" >&6
3478           fi
3479
3480
3481           enablestring=
3482           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3483 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3484           no_cache=0
3485           # Check whether --enable-profile or --disable-profile was given.
3486 if test "${enable_profile+set}" = set; then
3487   enableval="$enable_profile"
3488
3489                           if test "$enableval" = yes; then
3490                             ac_cv_use_profile='wxUSE_PROFILE=yes'
3491                           else
3492                             ac_cv_use_profile='wxUSE_PROFILE=no'
3493                           fi
3494
3495 else
3496
3497                           LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3498                           if test "x$LINE" != x ; then
3499                             eval "DEFAULT_$LINE"
3500                           else
3501                             no_cache=1
3502                           fi
3503
3504                           ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3505
3506 fi;
3507
3508           eval "$ac_cv_use_profile"
3509           if test "$no_cache" != 1; then
3510             echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3511           fi
3512
3513           if test "$wxUSE_PROFILE" = yes; then
3514             echo "$as_me:$LINENO: result: yes" >&5
3515 echo "${ECHO_T}yes" >&6
3516           else
3517             echo "$as_me:$LINENO: result: no" >&5
3518 echo "${ECHO_T}no" >&6
3519           fi
3520
3521
3522           enablestring=
3523           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3524 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3525           no_cache=0
3526           # Check whether --enable-no_rtti or --disable-no_rtti was given.
3527 if test "${enable_no_rtti+set}" = set; then
3528   enableval="$enable_no_rtti"
3529
3530                           if test "$enableval" = yes; then
3531                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3532                           else
3533                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3534                           fi
3535
3536 else
3537
3538                           LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3539                           if test "x$LINE" != x ; then
3540                             eval "DEFAULT_$LINE"
3541                           else
3542                             no_cache=1
3543                           fi
3544
3545                           ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3546
3547 fi;
3548
3549           eval "$ac_cv_use_no_rtti"
3550           if test "$no_cache" != 1; then
3551             echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3552           fi
3553
3554           if test "$wxUSE_NO_RTTI" = yes; then
3555             echo "$as_me:$LINENO: result: yes" >&5
3556 echo "${ECHO_T}yes" >&6
3557           else
3558             echo "$as_me:$LINENO: result: no" >&5
3559 echo "${ECHO_T}no" >&6
3560           fi
3561
3562
3563           enablestring=
3564           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3565 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3566           no_cache=0
3567           # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3568 if test "${enable_no_exceptions+set}" = set; then
3569   enableval="$enable_no_exceptions"
3570
3571                           if test "$enableval" = yes; then
3572                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3573                           else
3574                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3575                           fi
3576
3577 else
3578
3579                           LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3580                           if test "x$LINE" != x ; then
3581                             eval "DEFAULT_$LINE"
3582                           else
3583                             no_cache=1
3584                           fi
3585
3586                           ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3587
3588 fi;
3589
3590           eval "$ac_cv_use_no_exceptions"
3591           if test "$no_cache" != 1; then
3592             echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3593           fi
3594
3595           if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3596             echo "$as_me:$LINENO: result: yes" >&5
3597 echo "${ECHO_T}yes" >&6
3598           else
3599             echo "$as_me:$LINENO: result: no" >&5
3600 echo "${ECHO_T}no" >&6
3601           fi
3602
3603
3604           enablestring=
3605           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3606 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3607           no_cache=0
3608           # Check whether --enable-permissive or --disable-permissive was given.
3609 if test "${enable_permissive+set}" = set; then
3610   enableval="$enable_permissive"
3611
3612                           if test "$enableval" = yes; then
3613                             ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3614                           else
3615                             ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3616                           fi
3617
3618 else
3619
3620                           LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3621                           if test "x$LINE" != x ; then
3622                             eval "DEFAULT_$LINE"
3623                           else
3624                             no_cache=1
3625                           fi
3626
3627                           ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
3628
3629 fi;
3630
3631           eval "$ac_cv_use_permissive"
3632           if test "$no_cache" != 1; then
3633             echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3634           fi
3635
3636           if test "$wxUSE_PERMISSIVE" = yes; then
3637             echo "$as_me:$LINENO: result: yes" >&5
3638 echo "${ECHO_T}yes" >&6
3639           else
3640             echo "$as_me:$LINENO: result: no" >&5
3641 echo "${ECHO_T}no" >&6
3642           fi
3643
3644
3645           enablestring=
3646           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3647 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
3648           no_cache=0
3649           # Check whether --enable-no_deps or --disable-no_deps was given.
3650 if test "${enable_no_deps+set}" = set; then
3651   enableval="$enable_no_deps"
3652
3653                           if test "$enableval" = yes; then
3654                             ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3655                           else
3656                             ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3657                           fi
3658
3659 else
3660
3661                           LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3662                           if test "x$LINE" != x ; then
3663                             eval "DEFAULT_$LINE"
3664                           else
3665                             no_cache=1
3666                           fi
3667
3668                           ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
3669
3670 fi;
3671
3672           eval "$ac_cv_use_no_deps"
3673           if test "$no_cache" != 1; then
3674             echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3675           fi
3676
3677           if test "$wxUSE_NO_DEPS" = yes; then
3678             echo "$as_me:$LINENO: result: yes" >&5
3679 echo "${ECHO_T}yes" >&6
3680           else
3681             echo "$as_me:$LINENO: result: no" >&5
3682 echo "${ECHO_T}no" >&6
3683           fi
3684
3685
3686
3687           enablestring=
3688           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3689 echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
3690           no_cache=0
3691           # Check whether --enable-compat22 or --disable-compat22 was given.
3692 if test "${enable_compat22+set}" = set; then
3693   enableval="$enable_compat22"
3694
3695                           if test "$enableval" = yes; then
3696                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3697                           else
3698                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3699                           fi
3700
3701 else
3702
3703                           LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3704                           if test "x$LINE" != x ; then
3705                             eval "DEFAULT_$LINE"
3706                           else
3707                             no_cache=1
3708                           fi
3709
3710                           ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3711
3712 fi;
3713
3714           eval "$ac_cv_use_compat22"
3715           if test "$no_cache" != 1; then
3716             echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3717           fi
3718
3719           if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3720             echo "$as_me:$LINENO: result: yes" >&5
3721 echo "${ECHO_T}yes" >&6
3722           else
3723             echo "$as_me:$LINENO: result: no" >&5
3724 echo "${ECHO_T}no" >&6
3725           fi
3726
3727
3728           enablestring=disable
3729           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
3730 echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
3731           no_cache=0
3732           # Check whether --enable-compat24 or --disable-compat24 was given.
3733 if test "${enable_compat24+set}" = set; then
3734   enableval="$enable_compat24"
3735
3736                           if test "$enableval" = yes; then
3737                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3738                           else
3739                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3740                           fi
3741
3742 else
3743
3744                           LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3745                           if test "x$LINE" != x ; then
3746                             eval "DEFAULT_$LINE"
3747                           else
3748                             no_cache=1
3749                           fi
3750
3751                           ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
3752
3753 fi;
3754
3755           eval "$ac_cv_use_compat24"
3756           if test "$no_cache" != 1; then
3757             echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3758           fi
3759
3760           if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
3761             echo "$as_me:$LINENO: result: yes" >&5
3762 echo "${ECHO_T}yes" >&6
3763           else
3764             echo "$as_me:$LINENO: result: no" >&5
3765 echo "${ECHO_T}no" >&6
3766           fi
3767
3768
3769 # Check whether --enable-rpath or --disable-rpath was given.
3770 if test "${enable_rpath+set}" = set; then
3771   enableval="$enable_rpath"
3772   wxRPATH_DIR="$enableval"
3773 fi;
3774
3775 if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3776    WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3777 fi
3778
3779
3780
3781
3782           enablestring=
3783           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
3784 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
3785           no_cache=0
3786           # Check whether --enable-intl or --disable-intl was given.
3787 if test "${enable_intl+set}" = set; then
3788   enableval="$enable_intl"
3789
3790                           if test "$enableval" = yes; then
3791                             ac_cv_use_intl='wxUSE_INTL=yes'
3792                           else
3793                             ac_cv_use_intl='wxUSE_INTL=no'
3794                           fi
3795
3796 else
3797
3798                           LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3799                           if test "x$LINE" != x ; then
3800                             eval "DEFAULT_$LINE"
3801                           else
3802                             no_cache=1
3803                           fi
3804
3805                           ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3806
3807 fi;
3808
3809           eval "$ac_cv_use_intl"
3810           if test "$no_cache" != 1; then
3811             echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3812           fi
3813
3814           if test "$wxUSE_INTL" = yes; then
3815             echo "$as_me:$LINENO: result: yes" >&5
3816 echo "${ECHO_T}yes" >&6
3817           else
3818             echo "$as_me:$LINENO: result: no" >&5
3819 echo "${ECHO_T}no" >&6
3820           fi
3821
3822
3823           enablestring=
3824           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
3825 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
3826           no_cache=0
3827           # Check whether --enable-config or --disable-config was given.
3828 if test "${enable_config+set}" = set; then
3829   enableval="$enable_config"
3830
3831                           if test "$enableval" = yes; then
3832                             ac_cv_use_config='wxUSE_CONFIG=yes'
3833                           else
3834                             ac_cv_use_config='wxUSE_CONFIG=no'
3835                           fi
3836
3837 else
3838
3839                           LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3840                           if test "x$LINE" != x ; then
3841                             eval "DEFAULT_$LINE"
3842                           else
3843                             no_cache=1
3844                           fi
3845
3846                           ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3847
3848 fi;
3849
3850           eval "$ac_cv_use_config"
3851           if test "$no_cache" != 1; then
3852             echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3853           fi
3854
3855           if test "$wxUSE_CONFIG" = yes; then
3856             echo "$as_me:$LINENO: result: yes" >&5
3857 echo "${ECHO_T}yes" >&6
3858           else
3859             echo "$as_me:$LINENO: result: no" >&5
3860 echo "${ECHO_T}no" >&6
3861           fi
3862
3863
3864
3865           enablestring=
3866           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
3867 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
3868           no_cache=0
3869           # Check whether --enable-protocols or --disable-protocols was given.
3870 if test "${enable_protocols+set}" = set; then
3871   enableval="$enable_protocols"
3872
3873                           if test "$enableval" = yes; then
3874                             ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3875                           else
3876                             ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3877                           fi
3878
3879 else
3880
3881                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3882                           if test "x$LINE" != x ; then
3883                             eval "DEFAULT_$LINE"
3884                           else
3885                             no_cache=1
3886                           fi
3887
3888                           ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3889
3890 fi;
3891
3892           eval "$ac_cv_use_protocols"
3893           if test "$no_cache" != 1; then
3894             echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3895           fi
3896
3897           if test "$wxUSE_PROTOCOL" = yes; then
3898             echo "$as_me:$LINENO: result: yes" >&5
3899 echo "${ECHO_T}yes" >&6
3900           else
3901             echo "$as_me:$LINENO: result: no" >&5
3902 echo "${ECHO_T}no" >&6
3903           fi
3904
3905
3906           enablestring=
3907           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
3908 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
3909           no_cache=0
3910           # Check whether --enable-ftp or --disable-ftp was given.
3911 if test "${enable_ftp+set}" = set; then
3912   enableval="$enable_ftp"
3913
3914                           if test "$enableval" = yes; then
3915                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3916                           else
3917                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3918                           fi
3919
3920 else
3921
3922                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3923                           if test "x$LINE" != x ; then
3924                             eval "DEFAULT_$LINE"
3925                           else
3926                             no_cache=1
3927                           fi
3928
3929                           ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3930
3931 fi;
3932
3933           eval "$ac_cv_use_ftp"
3934           if test "$no_cache" != 1; then
3935             echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3936           fi
3937
3938           if test "$wxUSE_PROTOCOL_FTP" = yes; then
3939             echo "$as_me:$LINENO: result: yes" >&5
3940 echo "${ECHO_T}yes" >&6
3941           else
3942             echo "$as_me:$LINENO: result: no" >&5
3943 echo "${ECHO_T}no" >&6
3944           fi
3945
3946
3947           enablestring=
3948           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
3949 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
3950           no_cache=0
3951           # Check whether --enable-http or --disable-http was given.
3952 if test "${enable_http+set}" = set; then
3953   enableval="$enable_http"
3954
3955                           if test "$enableval" = yes; then
3956                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3957                           else
3958                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3959                           fi
3960
3961 else
3962
3963                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3964                           if test "x$LINE" != x ; then
3965                             eval "DEFAULT_$LINE"
3966                           else
3967                             no_cache=1
3968                           fi
3969
3970                           ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3971
3972 fi;
3973
3974           eval "$ac_cv_use_http"
3975           if test "$no_cache" != 1; then
3976             echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3977           fi
3978
3979           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3980             echo "$as_me:$LINENO: result: yes" >&5
3981 echo "${ECHO_T}yes" >&6
3982           else
3983             echo "$as_me:$LINENO: result: no" >&5
3984 echo "${ECHO_T}no" >&6
3985           fi
3986
3987
3988           enablestring=
3989           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
3990 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
3991           no_cache=0
3992           # Check whether --enable-fileproto or --disable-fileproto was given.
3993 if test "${enable_fileproto+set}" = set; then
3994   enableval="$enable_fileproto"
3995
3996                           if test "$enableval" = yes; then
3997                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3998                           else
3999                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4000                           fi
4001
4002 else
4003
4004                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4005                           if test "x$LINE" != x ; then
4006                             eval "DEFAULT_$LINE"
4007                           else
4008                             no_cache=1
4009                           fi
4010
4011                           ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4012
4013 fi;
4014
4015           eval "$ac_cv_use_fileproto"
4016           if test "$no_cache" != 1; then
4017             echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4018           fi
4019
4020           if test "$wxUSE_PROTOCOL_FILE" = yes; then
4021             echo "$as_me:$LINENO: result: yes" >&5
4022 echo "${ECHO_T}yes" >&6
4023           else
4024             echo "$as_me:$LINENO: result: no" >&5
4025 echo "${ECHO_T}no" >&6
4026           fi
4027
4028
4029           enablestring=
4030           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4031 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4032           no_cache=0
4033           # Check whether --enable-sockets or --disable-sockets was given.
4034 if test "${enable_sockets+set}" = set; then
4035   enableval="$enable_sockets"
4036
4037                           if test "$enableval" = yes; then
4038                             ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4039                           else
4040                             ac_cv_use_sockets='wxUSE_SOCKETS=no'
4041                           fi
4042
4043 else
4044
4045                           LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4046                           if test "x$LINE" != x ; then
4047                             eval "DEFAULT_$LINE"
4048                           else
4049                             no_cache=1
4050                           fi
4051
4052                           ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4053
4054 fi;
4055
4056           eval "$ac_cv_use_sockets"
4057           if test "$no_cache" != 1; then
4058             echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4059           fi
4060
4061           if test "$wxUSE_SOCKETS" = yes; then
4062             echo "$as_me:$LINENO: result: yes" >&5
4063 echo "${ECHO_T}yes" >&6
4064           else
4065             echo "$as_me:$LINENO: result: no" >&5
4066 echo "${ECHO_T}no" >&6
4067           fi
4068
4069
4070           enablestring=
4071           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4072 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4073           no_cache=0
4074           # Check whether --enable-ole or --disable-ole was given.
4075 if test "${enable_ole+set}" = set; then
4076   enableval="$enable_ole"
4077
4078                           if test "$enableval" = yes; then
4079                             ac_cv_use_ole='wxUSE_OLE=yes'
4080                           else
4081                             ac_cv_use_ole='wxUSE_OLE=no'
4082                           fi
4083
4084 else
4085
4086                           LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4087                           if test "x$LINE" != x ; then
4088                             eval "DEFAULT_$LINE"
4089                           else
4090                             no_cache=1
4091                           fi
4092
4093                           ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4094
4095 fi;
4096
4097           eval "$ac_cv_use_ole"
4098           if test "$no_cache" != 1; then
4099             echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4100           fi
4101
4102           if test "$wxUSE_OLE" = yes; then
4103             echo "$as_me:$LINENO: result: yes" >&5
4104 echo "${ECHO_T}yes" >&6
4105           else
4106             echo "$as_me:$LINENO: result: no" >&5
4107 echo "${ECHO_T}no" >&6
4108           fi
4109
4110
4111           enablestring=
4112           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4113 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4114           no_cache=0
4115           # Check whether --enable-dataobj or --disable-dataobj was given.
4116 if test "${enable_dataobj+set}" = set; then
4117   enableval="$enable_dataobj"
4118
4119                           if test "$enableval" = yes; then
4120                             ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4121                           else
4122                             ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4123                           fi
4124
4125 else
4126
4127                           LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4128                           if test "x$LINE" != x ; then
4129                             eval "DEFAULT_$LINE"
4130                           else
4131                             no_cache=1
4132                           fi
4133
4134                           ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4135
4136 fi;
4137
4138           eval "$ac_cv_use_dataobj"
4139           if test "$no_cache" != 1; then
4140             echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4141           fi
4142
4143           if test "$wxUSE_DATAOBJ" = yes; then
4144             echo "$as_me:$LINENO: result: yes" >&5
4145 echo "${ECHO_T}yes" >&6
4146           else
4147             echo "$as_me:$LINENO: result: no" >&5
4148 echo "${ECHO_T}no" >&6
4149           fi
4150
4151
4152
4153           enablestring=
4154           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4155 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4156           no_cache=0
4157           # Check whether --enable-ipc or --disable-ipc was given.
4158 if test "${enable_ipc+set}" = set; then
4159   enableval="$enable_ipc"
4160
4161                           if test "$enableval" = yes; then
4162                             ac_cv_use_ipc='wxUSE_IPC=yes'
4163                           else
4164                             ac_cv_use_ipc='wxUSE_IPC=no'
4165                           fi
4166
4167 else
4168
4169                           LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4170                           if test "x$LINE" != x ; then
4171                             eval "DEFAULT_$LINE"
4172                           else
4173                             no_cache=1
4174                           fi
4175
4176                           ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4177
4178 fi;
4179
4180           eval "$ac_cv_use_ipc"
4181           if test "$no_cache" != 1; then
4182             echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4183           fi
4184
4185           if test "$wxUSE_IPC" = yes; then
4186             echo "$as_me:$LINENO: result: yes" >&5
4187 echo "${ECHO_T}yes" >&6
4188           else
4189             echo "$as_me:$LINENO: result: no" >&5
4190 echo "${ECHO_T}no" >&6
4191           fi
4192
4193
4194
4195           enablestring=
4196           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4197 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4198           no_cache=0
4199           # Check whether --enable-cmdline or --disable-cmdline was given.
4200 if test "${enable_cmdline+set}" = set; then
4201   enableval="$enable_cmdline"
4202
4203                           if test "$enableval" = yes; then
4204                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4205                           else
4206                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4207                           fi
4208
4209 else
4210
4211                           LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4212                           if test "x$LINE" != x ; then
4213                             eval "DEFAULT_$LINE"
4214                           else
4215                             no_cache=1
4216                           fi
4217
4218                           ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4219
4220 fi;
4221
4222           eval "$ac_cv_use_cmdline"
4223           if test "$no_cache" != 1; then
4224             echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4225           fi
4226
4227           if test "$wxUSE_CMDLINE_PARSER" = yes; then
4228             echo "$as_me:$LINENO: result: yes" >&5
4229 echo "${ECHO_T}yes" >&6
4230           else
4231             echo "$as_me:$LINENO: result: no" >&5
4232 echo "${ECHO_T}no" >&6
4233           fi
4234
4235
4236           enablestring=
4237           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4238 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4239           no_cache=0
4240           # Check whether --enable-datetime or --disable-datetime was given.
4241 if test "${enable_datetime+set}" = set; then
4242   enableval="$enable_datetime"
4243
4244                           if test "$enableval" = yes; then
4245                             ac_cv_use_datetime='wxUSE_DATETIME=yes'
4246                           else
4247                             ac_cv_use_datetime='wxUSE_DATETIME=no'
4248                           fi
4249
4250 else
4251
4252                           LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4253                           if test "x$LINE" != x ; then
4254                             eval "DEFAULT_$LINE"
4255                           else
4256                             no_cache=1
4257                           fi
4258
4259                           ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4260
4261 fi;
4262
4263           eval "$ac_cv_use_datetime"
4264           if test "$no_cache" != 1; then
4265             echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4266           fi
4267
4268           if test "$wxUSE_DATETIME" = yes; then
4269             echo "$as_me:$LINENO: result: yes" >&5
4270 echo "${ECHO_T}yes" >&6
4271           else
4272             echo "$as_me:$LINENO: result: no" >&5
4273 echo "${ECHO_T}no" >&6
4274           fi
4275
4276
4277           enablestring=
4278           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
4279 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
4280           no_cache=0
4281           # Check whether --enable-stopwatch or --disable-stopwatch was given.
4282 if test "${enable_stopwatch+set}" = set; then
4283   enableval="$enable_stopwatch"
4284
4285                           if test "$enableval" = yes; then
4286                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
4287                           else
4288                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
4289                           fi
4290
4291 else
4292
4293                           LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
4294                           if test "x$LINE" != x ; then
4295                             eval "DEFAULT_$LINE"
4296                           else
4297                             no_cache=1
4298                           fi
4299
4300                           ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
4301
4302 fi;
4303
4304           eval "$ac_cv_use_stopwatch"
4305           if test "$no_cache" != 1; then
4306             echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
4307           fi
4308
4309           if test "$wxUSE_STOPWATCH" = yes; then
4310             echo "$as_me:$LINENO: result: yes" >&5
4311 echo "${ECHO_T}yes" >&6
4312           else
4313             echo "$as_me:$LINENO: result: no" >&5
4314 echo "${ECHO_T}no" >&6
4315           fi
4316
4317
4318           enablestring=
4319           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4320 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4321           no_cache=0
4322           # Check whether --enable-dialupman or --disable-dialupman was given.
4323 if test "${enable_dialupman+set}" = set; then
4324   enableval="$enable_dialupman"
4325
4326                           if test "$enableval" = yes; then
4327                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4328                           else
4329                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4330                           fi
4331
4332 else
4333
4334                           LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4335                           if test "x$LINE" != x ; then
4336                             eval "DEFAULT_$LINE"
4337                           else
4338                             no_cache=1
4339                           fi
4340
4341                           ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4342
4343 fi;
4344
4345           eval "$ac_cv_use_dialupman"
4346           if test "$no_cache" != 1; then
4347             echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4348           fi
4349
4350           if test "$wxUSE_DIALUP_MANAGER" = yes; then
4351             echo "$as_me:$LINENO: result: yes" >&5
4352 echo "${ECHO_T}yes" >&6
4353           else
4354             echo "$as_me:$LINENO: result: no" >&5
4355 echo "${ECHO_T}no" >&6
4356           fi
4357
4358
4359           enablestring=
4360           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4361 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4362           no_cache=0
4363           # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4364 if test "${enable_apple_ieee+set}" = set; then
4365   enableval="$enable_apple_ieee"
4366
4367                           if test "$enableval" = yes; then
4368                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4369                           else
4370                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4371                           fi
4372
4373 else
4374
4375                           LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4376                           if test "x$LINE" != x ; then
4377                             eval "DEFAULT_$LINE"
4378                           else
4379                             no_cache=1
4380                           fi
4381
4382                           ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4383
4384 fi;
4385
4386           eval "$ac_cv_use_apple_ieee"
4387           if test "$no_cache" != 1; then
4388             echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4389           fi
4390
4391           if test "$wxUSE_APPLE_IEEE" = yes; then
4392             echo "$as_me:$LINENO: result: yes" >&5
4393 echo "${ECHO_T}yes" >&6
4394           else
4395             echo "$as_me:$LINENO: result: no" >&5
4396 echo "${ECHO_T}no" >&6
4397           fi
4398
4399
4400           enablestring=
4401           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
4402 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
4403           no_cache=0
4404           # Check whether --enable-timer or --disable-timer was given.
4405 if test "${enable_timer+set}" = set; then
4406   enableval="$enable_timer"
4407
4408                           if test "$enableval" = yes; then
4409                             ac_cv_use_timer='wxUSE_TIMER=yes'
4410                           else
4411                             ac_cv_use_timer='wxUSE_TIMER=no'
4412                           fi
4413
4414 else
4415
4416                           LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
4417                           if test "x$LINE" != x ; then
4418                             eval "DEFAULT_$LINE"
4419                           else
4420                             no_cache=1
4421                           fi
4422
4423                           ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
4424
4425 fi;
4426
4427           eval "$ac_cv_use_timer"
4428           if test "$no_cache" != 1; then
4429             echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
4430           fi
4431
4432           if test "$wxUSE_TIMER" = yes; then
4433             echo "$as_me:$LINENO: result: yes" >&5
4434 echo "${ECHO_T}yes" >&6
4435           else
4436             echo "$as_me:$LINENO: result: no" >&5
4437 echo "${ECHO_T}no" >&6
4438           fi
4439
4440
4441           enablestring=
4442           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5
4443 echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6
4444           no_cache=0
4445           # Check whether --enable-wave or --disable-wave was given.
4446 if test "${enable_wave+set}" = set; then
4447   enableval="$enable_wave"
4448
4449                           if test "$enableval" = yes; then
4450                             ac_cv_use_wave='wxUSE_WAVE=yes'
4451                           else
4452                             ac_cv_use_wave='wxUSE_WAVE=no'
4453                           fi
4454
4455 else
4456
4457                           LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
4458                           if test "x$LINE" != x ; then
4459                             eval "DEFAULT_$LINE"
4460                           else
4461                             no_cache=1
4462                           fi
4463
4464                           ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
4465
4466 fi;
4467
4468           eval "$ac_cv_use_wave"
4469           if test "$no_cache" != 1; then
4470             echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
4471           fi
4472
4473           if test "$wxUSE_WAVE" = yes; then
4474             echo "$as_me:$LINENO: result: yes" >&5
4475 echo "${ECHO_T}yes" >&6
4476           else
4477             echo "$as_me:$LINENO: result: no" >&5
4478 echo "${ECHO_T}no" >&6
4479           fi
4480
4481
4482           enablestring=
4483           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fraction" >&5
4484 echo $ECHO_N "checking for --${enablestring:-enable}-fraction... $ECHO_C" >&6
4485           no_cache=0
4486           # Check whether --enable-fraction or --disable-fraction was given.
4487 if test "${enable_fraction+set}" = set; then
4488   enableval="$enable_fraction"
4489
4490                           if test "$enableval" = yes; then
4491                             ac_cv_use_fraction='wxUSE_FRACTION=yes'
4492                           else
4493                             ac_cv_use_fraction='wxUSE_FRACTION=no'
4494                           fi
4495
4496 else
4497
4498                           LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
4499                           if test "x$LINE" != x ; then
4500                             eval "DEFAULT_$LINE"
4501                           else
4502                             no_cache=1
4503                           fi
4504
4505                           ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
4506
4507 fi;
4508
4509           eval "$ac_cv_use_fraction"
4510           if test "$no_cache" != 1; then
4511             echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
4512           fi
4513
4514           if test "$wxUSE_FRACTION" = yes; then
4515             echo "$as_me:$LINENO: result: yes" >&5
4516 echo "${ECHO_T}yes" >&6
4517           else
4518             echo "$as_me:$LINENO: result: no" >&5
4519 echo "${ECHO_T}no" >&6
4520           fi
4521
4522
4523           enablestring=
4524           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4525 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4526           no_cache=0
4527           # Check whether --enable-dynlib or --disable-dynlib was given.
4528 if test "${enable_dynlib+set}" = set; then
4529   enableval="$enable_dynlib"
4530
4531                           if test "$enableval" = yes; then
4532                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4533                           else
4534                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4535                           fi
4536
4537 else
4538
4539                           LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4540                           if test "x$LINE" != x ; then
4541                             eval "DEFAULT_$LINE"
4542                           else
4543                             no_cache=1
4544                           fi
4545
4546                           ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4547
4548 fi;
4549
4550           eval "$ac_cv_use_dynlib"
4551           if test "$no_cache" != 1; then
4552             echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4553           fi
4554
4555           if test "$wxUSE_DYNLIB_CLASS" = yes; then
4556             echo "$as_me:$LINENO: result: yes" >&5
4557 echo "${ECHO_T}yes" >&6
4558           else
4559             echo "$as_me:$LINENO: result: no" >&5
4560 echo "${ECHO_T}no" >&6
4561           fi
4562
4563
4564           enablestring=
4565           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4566 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4567           no_cache=0
4568           # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4569 if test "${enable_dynamicloader+set}" = set; then
4570   enableval="$enable_dynamicloader"
4571
4572                           if test "$enableval" = yes; then
4573                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4574                           else
4575                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4576                           fi
4577
4578 else
4579
4580                           LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4581                           if test "x$LINE" != x ; then
4582                             eval "DEFAULT_$LINE"
4583                           else
4584                             no_cache=1
4585                           fi
4586
4587                           ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4588
4589 fi;
4590
4591           eval "$ac_cv_use_dynamicloader"
4592           if test "$no_cache" != 1; then
4593             echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4594           fi
4595
4596           if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4597             echo "$as_me:$LINENO: result: yes" >&5
4598 echo "${ECHO_T}yes" >&6
4599           else
4600             echo "$as_me:$LINENO: result: no" >&5
4601 echo "${ECHO_T}no" >&6
4602           fi
4603
4604
4605           enablestring=
4606           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
4607 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
4608           no_cache=0
4609           # Check whether --enable-longlong or --disable-longlong was given.
4610 if test "${enable_longlong+set}" = set; then
4611   enableval="$enable_longlong"
4612
4613                           if test "$enableval" = yes; then
4614                             ac_cv_use_longlong='wxUSE_LONGLONG=yes'
4615                           else
4616                             ac_cv_use_longlong='wxUSE_LONGLONG=no'
4617                           fi
4618
4619 else
4620
4621                           LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
4622                           if test "x$LINE" != x ; then
4623                             eval "DEFAULT_$LINE"
4624                           else
4625                             no_cache=1
4626                           fi
4627
4628                           ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
4629
4630 fi;
4631
4632           eval "$ac_cv_use_longlong"
4633           if test "$no_cache" != 1; then
4634             echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
4635           fi
4636
4637           if test "$wxUSE_LONGLONG" = yes; then
4638             echo "$as_me:$LINENO: result: yes" >&5
4639 echo "${ECHO_T}yes" >&6
4640           else
4641             echo "$as_me:$LINENO: result: no" >&5
4642 echo "${ECHO_T}no" >&6
4643           fi
4644
4645
4646           enablestring=
4647           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
4648 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
4649           no_cache=0
4650           # Check whether --enable-geometry or --disable-geometry was given.
4651 if test "${enable_geometry+set}" = set; then
4652   enableval="$enable_geometry"
4653
4654                           if test "$enableval" = yes; then
4655                             ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
4656                           else
4657                             ac_cv_use_geometry='wxUSE_GEOMETRY=no'
4658                           fi
4659
4660 else
4661
4662                           LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
4663                           if test "x$LINE" != x ; then
4664                             eval "DEFAULT_$LINE"
4665                           else
4666                             no_cache=1
4667                           fi
4668
4669                           ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
4670
4671 fi;
4672
4673           eval "$ac_cv_use_geometry"
4674           if test "$no_cache" != 1; then
4675             echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4676           fi
4677
4678           if test "$wxUSE_GEOMETRY" = yes; then
4679             echo "$as_me:$LINENO: result: yes" >&5
4680 echo "${ECHO_T}yes" >&6
4681           else
4682             echo "$as_me:$LINENO: result: no" >&5
4683 echo "${ECHO_T}no" >&6
4684           fi
4685
4686
4687           enablestring=
4688           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
4689 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
4690           no_cache=0
4691           # Check whether --enable-log or --disable-log was given.
4692 if test "${enable_log+set}" = set; then
4693   enableval="$enable_log"
4694
4695                           if test "$enableval" = yes; then
4696                             ac_cv_use_log='wxUSE_LOG=yes'
4697                           else
4698                             ac_cv_use_log='wxUSE_LOG=no'
4699                           fi
4700
4701 else
4702
4703                           LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4704                           if test "x$LINE" != x ; then
4705                             eval "DEFAULT_$LINE"
4706                           else
4707                             no_cache=1
4708                           fi
4709
4710                           ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
4711
4712 fi;
4713
4714           eval "$ac_cv_use_log"
4715           if test "$no_cache" != 1; then
4716             echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4717           fi
4718
4719           if test "$wxUSE_LOG" = yes; then
4720             echo "$as_me:$LINENO: result: yes" >&5
4721 echo "${ECHO_T}yes" >&6
4722           else
4723             echo "$as_me:$LINENO: result: no" >&5
4724 echo "${ECHO_T}no" >&6
4725           fi
4726
4727
4728           enablestring=
4729           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
4730 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
4731           no_cache=0
4732           # Check whether --enable-streams or --disable-streams was given.
4733 if test "${enable_streams+set}" = set; then
4734   enableval="$enable_streams"
4735
4736                           if test "$enableval" = yes; then
4737                             ac_cv_use_streams='wxUSE_STREAMS=yes'
4738                           else
4739                             ac_cv_use_streams='wxUSE_STREAMS=no'
4740                           fi
4741
4742 else
4743
4744                           LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4745                           if test "x$LINE" != x ; then
4746                             eval "DEFAULT_$LINE"
4747                           else
4748                             no_cache=1
4749                           fi
4750
4751                           ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
4752
4753 fi;
4754
4755           eval "$ac_cv_use_streams"
4756           if test "$no_cache" != 1; then
4757             echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4758           fi
4759
4760           if test "$wxUSE_STREAMS" = yes; then
4761             echo "$as_me:$LINENO: result: yes" >&5
4762 echo "${ECHO_T}yes" >&6
4763           else
4764             echo "$as_me:$LINENO: result: no" >&5
4765 echo "${ECHO_T}no" >&6
4766           fi
4767
4768
4769           enablestring=
4770           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4771 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4772           no_cache=0
4773           # Check whether --enable-file or --disable-file was given.
4774 if test "${enable_file+set}" = set; then
4775   enableval="$enable_file"
4776
4777                           if test "$enableval" = yes; then
4778                             ac_cv_use_file='wxUSE_FILE=yes'
4779                           else
4780                             ac_cv_use_file='wxUSE_FILE=no'
4781                           fi
4782
4783 else
4784
4785                           LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4786                           if test "x$LINE" != x ; then
4787                             eval "DEFAULT_$LINE"
4788                           else
4789                             no_cache=1
4790                           fi
4791
4792                           ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4793
4794 fi;
4795
4796           eval "$ac_cv_use_file"
4797           if test "$no_cache" != 1; then
4798             echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4799           fi
4800
4801           if test "$wxUSE_FILE" = yes; then
4802             echo "$as_me:$LINENO: result: yes" >&5
4803 echo "${ECHO_T}yes" >&6
4804           else
4805             echo "$as_me:$LINENO: result: no" >&5
4806 echo "${ECHO_T}no" >&6
4807           fi
4808
4809
4810           enablestring=
4811           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4812 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4813           no_cache=0
4814           # Check whether --enable-ffile or --disable-ffile was given.
4815 if test "${enable_ffile+set}" = set; then
4816   enableval="$enable_ffile"
4817
4818                           if test "$enableval" = yes; then
4819                             ac_cv_use_ffile='wxUSE_FFILE=yes'
4820                           else
4821                             ac_cv_use_ffile='wxUSE_FFILE=no'
4822                           fi
4823
4824 else
4825
4826                           LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4827                           if test "x$LINE" != x ; then
4828                             eval "DEFAULT_$LINE"
4829                           else
4830                             no_cache=1
4831                           fi
4832
4833                           ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4834
4835 fi;
4836
4837           eval "$ac_cv_use_ffile"
4838           if test "$no_cache" != 1; then
4839             echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4840           fi
4841
4842           if test "$wxUSE_FFILE" = yes; then
4843             echo "$as_me:$LINENO: result: yes" >&5
4844 echo "${ECHO_T}yes" >&6
4845           else
4846             echo "$as_me:$LINENO: result: no" >&5
4847 echo "${ECHO_T}no" >&6
4848           fi
4849
4850
4851           enablestring=
4852           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
4853 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
4854           no_cache=0
4855           # Check whether --enable-textbuf or --disable-textbuf was given.
4856 if test "${enable_textbuf+set}" = set; then
4857   enableval="$enable_textbuf"
4858
4859                           if test "$enableval" = yes; then
4860                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4861                           else
4862                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4863                           fi
4864
4865 else
4866
4867                           LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4868                           if test "x$LINE" != x ; then
4869                             eval "DEFAULT_$LINE"
4870                           else
4871                             no_cache=1
4872                           fi
4873
4874                           ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4875
4876 fi;
4877
4878           eval "$ac_cv_use_textbuf"
4879           if test "$no_cache" != 1; then
4880             echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4881           fi
4882
4883           if test "$wxUSE_TEXTBUFFER" = yes; then
4884             echo "$as_me:$LINENO: result: yes" >&5
4885 echo "${ECHO_T}yes" >&6
4886           else
4887             echo "$as_me:$LINENO: result: no" >&5
4888 echo "${ECHO_T}no" >&6
4889           fi
4890
4891
4892           enablestring=
4893           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
4894 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
4895           no_cache=0
4896           # Check whether --enable-textfile or --disable-textfile was given.
4897 if test "${enable_textfile+set}" = set; then
4898   enableval="$enable_textfile"
4899
4900                           if test "$enableval" = yes; then
4901                             ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4902                           else
4903                             ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4904                           fi
4905
4906 else
4907
4908                           LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4909                           if test "x$LINE" != x ; then
4910                             eval "DEFAULT_$LINE"
4911                           else
4912                             no_cache=1
4913                           fi
4914
4915                           ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4916
4917 fi;
4918
4919           eval "$ac_cv_use_textfile"
4920           if test "$no_cache" != 1; then
4921             echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4922           fi
4923
4924           if test "$wxUSE_TEXTFILE" = yes; then
4925             echo "$as_me:$LINENO: result: yes" >&5
4926 echo "${ECHO_T}yes" >&6
4927           else
4928             echo "$as_me:$LINENO: result: no" >&5
4929 echo "${ECHO_T}no" >&6
4930           fi
4931
4932
4933           enablestring=
4934           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4935 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
4936           no_cache=0
4937           # Check whether --enable-fontmap or --disable-fontmap was given.
4938 if test "${enable_fontmap+set}" = set; then
4939   enableval="$enable_fontmap"
4940
4941                           if test "$enableval" = yes; then
4942                             ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4943                           else
4944                             ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4945                           fi
4946
4947 else
4948
4949                           LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4950                           if test "x$LINE" != x ; then
4951                             eval "DEFAULT_$LINE"
4952                           else
4953                             no_cache=1
4954                           fi
4955
4956                           ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4957
4958 fi;
4959
4960           eval "$ac_cv_use_fontmap"
4961           if test "$no_cache" != 1; then
4962             echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4963           fi
4964
4965           if test "$wxUSE_FONTMAP" = yes; then
4966             echo "$as_me:$LINENO: result: yes" >&5
4967 echo "${ECHO_T}yes" >&6
4968           else
4969             echo "$as_me:$LINENO: result: no" >&5
4970 echo "${ECHO_T}no" >&6
4971           fi
4972
4973
4974           enablestring=
4975           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4976 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
4977           no_cache=0
4978           # Check whether --enable-unicode or --disable-unicode was given.
4979 if test "${enable_unicode+set}" = set; then
4980   enableval="$enable_unicode"
4981
4982                           if test "$enableval" = yes; then
4983                             ac_cv_use_unicode='wxUSE_UNICODE=yes'
4984                           else
4985                             ac_cv_use_unicode='wxUSE_UNICODE=no'
4986                           fi
4987
4988 else
4989
4990                           LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4991                           if test "x$LINE" != x ; then
4992                             eval "DEFAULT_$LINE"
4993                           else
4994                             no_cache=1
4995                           fi
4996
4997                           ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4998
4999 fi;
5000
5001           eval "$ac_cv_use_unicode"
5002           if test "$no_cache" != 1; then
5003             echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5004           fi
5005
5006           if test "$wxUSE_UNICODE" = yes; then
5007             echo "$as_me:$LINENO: result: yes" >&5
5008 echo "${ECHO_T}yes" >&6
5009           else
5010             echo "$as_me:$LINENO: result: no" >&5
5011 echo "${ECHO_T}no" >&6
5012           fi
5013
5014
5015           enablestring=
5016           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5017 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5018           no_cache=0
5019           # Check whether --enable-mslu or --disable-mslu was given.
5020 if test "${enable_mslu+set}" = set; then
5021   enableval="$enable_mslu"
5022
5023                           if test "$enableval" = yes; then
5024                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5025                           else
5026                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5027                           fi
5028
5029 else
5030
5031                           LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5032                           if test "x$LINE" != x ; then
5033                             eval "DEFAULT_$LINE"
5034                           else
5035                             no_cache=1
5036                           fi
5037
5038                           ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5039
5040 fi;
5041
5042           eval "$ac_cv_use_mslu"
5043           if test "$no_cache" != 1; then
5044             echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5045           fi
5046
5047           if test "$wxUSE_UNICODE_MSLU" = yes; then
5048             echo "$as_me:$LINENO: result: yes" >&5
5049 echo "${ECHO_T}yes" >&6
5050           else
5051             echo "$as_me:$LINENO: result: no" >&5
5052 echo "${ECHO_T}no" >&6
5053           fi
5054
5055
5056           enablestring=
5057           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5058 echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5059           no_cache=0
5060           # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5061 if test "${enable_wxprintfv+set}" = set; then
5062   enableval="$enable_wxprintfv"
5063
5064                           if test "$enableval" = yes; then
5065                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5066                           else
5067                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5068                           fi
5069
5070 else
5071
5072                           LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5073                           if test "x$LINE" != x ; then
5074                             eval "DEFAULT_$LINE"
5075                           else
5076                             no_cache=1
5077                           fi
5078
5079                           ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5080
5081 fi;
5082
5083           eval "$ac_cv_use_wxprintfv"
5084           if test "$no_cache" != 1; then
5085             echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5086           fi
5087
5088           if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5089             echo "$as_me:$LINENO: result: yes" >&5
5090 echo "${ECHO_T}yes" >&6
5091           else
5092             echo "$as_me:$LINENO: result: no" >&5
5093 echo "${ECHO_T}no" >&6
5094           fi
5095
5096
5097           enablestring=
5098           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5099 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5100           no_cache=0
5101           # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5102 if test "${enable_std_iostreams+set}" = set; then
5103   enableval="$enable_std_iostreams"
5104
5105                           if test "$enableval" = yes; then
5106                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5107                           else
5108                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5109                           fi
5110
5111 else
5112
5113                           LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5114                           if test "x$LINE" != x ; then
5115                             eval "DEFAULT_$LINE"
5116                           else
5117                             no_cache=1
5118                           fi
5119
5120                           ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5121
5122 fi;
5123
5124           eval "$ac_cv_use_std_iostreams"
5125           if test "$no_cache" != 1; then
5126             echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5127           fi
5128
5129           if test "$wxUSE_STD_IOSTREAM" = yes; then
5130             echo "$as_me:$LINENO: result: yes" >&5
5131 echo "${ECHO_T}yes" >&6
5132           else
5133             echo "$as_me:$LINENO: result: no" >&5
5134 echo "${ECHO_T}no" >&6
5135           fi
5136
5137
5138           enablestring=
5139           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5140 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5141           no_cache=0
5142           # Check whether --enable-filesystem or --disable-filesystem was given.
5143 if test "${enable_filesystem+set}" = set; then
5144   enableval="$enable_filesystem"
5145
5146                           if test "$enableval" = yes; then
5147                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5148                           else
5149                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5150                           fi
5151
5152 else
5153
5154                           LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5155                           if test "x$LINE" != x ; then
5156                             eval "DEFAULT_$LINE"
5157                           else
5158                             no_cache=1
5159                           fi
5160
5161                           ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5162
5163 fi;
5164
5165           eval "$ac_cv_use_filesystem"
5166           if test "$no_cache" != 1; then
5167             echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5168           fi
5169
5170           if test "$wxUSE_FILESYSTEM" = yes; then
5171             echo "$as_me:$LINENO: result: yes" >&5
5172 echo "${ECHO_T}yes" >&6
5173           else
5174             echo "$as_me:$LINENO: result: no" >&5
5175 echo "${ECHO_T}no" >&6
5176           fi
5177
5178
5179           enablestring=
5180           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5181 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5182           no_cache=0
5183           # Check whether --enable-fs_inet or --disable-fs_inet was given.
5184 if test "${enable_fs_inet+set}" = set; then
5185   enableval="$enable_fs_inet"
5186
5187                           if test "$enableval" = yes; then
5188                             ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5189                           else
5190                             ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5191                           fi
5192
5193 else
5194
5195                           LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5196                           if test "x$LINE" != x ; then
5197                             eval "DEFAULT_$LINE"
5198                           else
5199                             no_cache=1
5200                           fi
5201
5202                           ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5203
5204 fi;
5205
5206           eval "$ac_cv_use_fs_inet"
5207           if test "$no_cache" != 1; then
5208             echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5209           fi
5210
5211           if test "$wxUSE_FS_INET" = yes; then
5212             echo "$as_me:$LINENO: result: yes" >&5
5213 echo "${ECHO_T}yes" >&6
5214           else
5215             echo "$as_me:$LINENO: result: no" >&5
5216 echo "${ECHO_T}no" >&6
5217           fi
5218
5219
5220           enablestring=
5221           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5222 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5223           no_cache=0
5224           # Check whether --enable-fs_zip or --disable-fs_zip was given.
5225 if test "${enable_fs_zip+set}" = set; then
5226   enableval="$enable_fs_zip"
5227
5228                           if test "$enableval" = yes; then
5229                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5230                           else
5231                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5232                           fi
5233
5234 else
5235
5236                           LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5237                           if test "x$LINE" != x ; then
5238                             eval "DEFAULT_$LINE"
5239                           else
5240                             no_cache=1
5241                           fi
5242
5243                           ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5244
5245 fi;
5246
5247           eval "$ac_cv_use_fs_zip"
5248           if test "$no_cache" != 1; then
5249             echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5250           fi
5251
5252           if test "$wxUSE_FS_ZIP" = yes; then
5253             echo "$as_me:$LINENO: result: yes" >&5
5254 echo "${ECHO_T}yes" >&6
5255           else
5256             echo "$as_me:$LINENO: result: no" >&5
5257 echo "${ECHO_T}no" >&6
5258           fi
5259
5260
5261           enablestring=
5262           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5263 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5264           no_cache=0
5265           # Check whether --enable-zipstream or --disable-zipstream was given.
5266 if test "${enable_zipstream+set}" = set; then
5267   enableval="$enable_zipstream"
5268
5269                           if test "$enableval" = yes; then
5270                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5271                           else
5272                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5273                           fi
5274
5275 else
5276
5277                           LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5278                           if test "x$LINE" != x ; then
5279                             eval "DEFAULT_$LINE"
5280                           else
5281                             no_cache=1
5282                           fi
5283
5284                           ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5285
5286 fi;
5287
5288           eval "$ac_cv_use_zipstream"
5289           if test "$no_cache" != 1; then
5290             echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5291           fi
5292
5293           if test "$wxUSE_ZIPSTREAM" = yes; then
5294             echo "$as_me:$LINENO: result: yes" >&5
5295 echo "${ECHO_T}yes" >&6
5296           else
5297             echo "$as_me:$LINENO: result: no" >&5
5298 echo "${ECHO_T}no" >&6
5299           fi
5300
5301
5302
5303           enablestring=
5304           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5305 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
5306           no_cache=0
5307           # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5308 if test "${enable_catch_segvs+set}" = set; then
5309   enableval="$enable_catch_segvs"
5310
5311                           if test "$enableval" = yes; then
5312                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
5313                           else
5314                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
5315                           fi
5316
5317 else
5318
5319                           LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
5320                           if test "x$LINE" != x ; then
5321                             eval "DEFAULT_$LINE"
5322                           else
5323                             no_cache=1
5324                           fi
5325
5326                           ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
5327
5328 fi;
5329
5330           eval "$ac_cv_use_catch_segvs"
5331           if test "$no_cache" != 1; then
5332             echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
5333           fi
5334
5335           if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
5336             echo "$as_me:$LINENO: result: yes" >&5
5337 echo "${ECHO_T}yes" >&6
5338           else
5339             echo "$as_me:$LINENO: result: no" >&5
5340 echo "${ECHO_T}no" >&6
5341           fi
5342
5343
5344           enablestring=
5345           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5346 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5347           no_cache=0
5348           # Check whether --enable-snglinst or --disable-snglinst was given.
5349 if test "${enable_snglinst+set}" = set; then
5350   enableval="$enable_snglinst"
5351
5352                           if test "$enableval" = yes; then
5353                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5354                           else
5355                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5356                           fi
5357
5358 else
5359
5360                           LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5361                           if test "x$LINE" != x ; then
5362                             eval "DEFAULT_$LINE"
5363                           else
5364                             no_cache=1
5365                           fi
5366
5367                           ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5368
5369 fi;
5370
5371           eval "$ac_cv_use_snglinst"
5372           if test "$no_cache" != 1; then
5373             echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5374           fi
5375
5376           if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5377             echo "$as_me:$LINENO: result: yes" >&5
5378 echo "${ECHO_T}yes" >&6
5379           else
5380             echo "$as_me:$LINENO: result: no" >&5
5381 echo "${ECHO_T}no" >&6
5382           fi
5383
5384
5385
5386           enablestring=
5387           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5388 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5389           no_cache=0
5390           # Check whether --enable-mimetype or --disable-mimetype was given.
5391 if test "${enable_mimetype+set}" = set; then
5392   enableval="$enable_mimetype"
5393
5394                           if test "$enableval" = yes; then
5395                             ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5396                           else
5397                             ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5398                           fi
5399
5400 else
5401
5402                           LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5403                           if test "x$LINE" != x ; then
5404                             eval "DEFAULT_$LINE"
5405                           else
5406                             no_cache=1
5407                           fi
5408
5409                           ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5410
5411 fi;
5412
5413           eval "$ac_cv_use_mimetype"
5414           if test "$no_cache" != 1; then
5415             echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5416           fi
5417
5418           if test "$wxUSE_MIMETYPE" = yes; then
5419             echo "$as_me:$LINENO: result: yes" >&5
5420 echo "${ECHO_T}yes" >&6
5421           else
5422             echo "$as_me:$LINENO: result: no" >&5
5423 echo "${ECHO_T}no" >&6
5424           fi
5425
5426
5427           enablestring=
5428           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5429 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5430           no_cache=0
5431           # Check whether --enable-system_options or --disable-system_options was given.
5432 if test "${enable_system_options+set}" = set; then
5433   enableval="$enable_system_options"
5434
5435                           if test "$enableval" = yes; then
5436                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5437                           else
5438                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5439                           fi
5440
5441 else
5442
5443                           LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5444                           if test "x$LINE" != x ; then
5445                             eval "DEFAULT_$LINE"
5446                           else
5447                             no_cache=1
5448                           fi
5449
5450                           ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5451
5452 fi;
5453
5454           eval "$ac_cv_use_system_options"
5455           if test "$no_cache" != 1; then
5456             echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5457           fi
5458
5459           if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5460             echo "$as_me:$LINENO: result: yes" >&5
5461 echo "${ECHO_T}yes" >&6
5462           else
5463             echo "$as_me:$LINENO: result: no" >&5
5464 echo "${ECHO_T}no" >&6
5465           fi
5466
5467
5468
5469           enablestring=
5470           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5471 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5472           no_cache=0
5473           # Check whether --enable-url or --disable-url was given.
5474 if test "${enable_url+set}" = set; then
5475   enableval="$enable_url"
5476
5477                           if test "$enableval" = yes; then
5478                             ac_cv_use_url='wxUSE_URL=yes'
5479                           else
5480                             ac_cv_use_url='wxUSE_URL=no'
5481                           fi
5482
5483 else
5484
5485                           LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5486                           if test "x$LINE" != x ; then
5487                             eval "DEFAULT_$LINE"
5488                           else
5489                             no_cache=1
5490                           fi
5491
5492                           ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5493
5494 fi;
5495
5496           eval "$ac_cv_use_url"
5497           if test "$no_cache" != 1; then
5498             echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5499           fi
5500
5501           if test "$wxUSE_URL" = yes; then
5502             echo "$as_me:$LINENO: result: yes" >&5
5503 echo "${ECHO_T}yes" >&6
5504           else
5505             echo "$as_me:$LINENO: result: no" >&5
5506 echo "${ECHO_T}no" >&6
5507           fi
5508
5509
5510           enablestring=
5511           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5512 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5513           no_cache=0
5514           # Check whether --enable-protocol or --disable-protocol was given.
5515 if test "${enable_protocol+set}" = set; then
5516   enableval="$enable_protocol"
5517
5518                           if test "$enableval" = yes; then
5519                             ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5520                           else
5521                             ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5522                           fi
5523
5524 else
5525
5526                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5527                           if test "x$LINE" != x ; then
5528                             eval "DEFAULT_$LINE"
5529                           else
5530                             no_cache=1
5531                           fi
5532
5533                           ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5534
5535 fi;
5536
5537           eval "$ac_cv_use_protocol"
5538           if test "$no_cache" != 1; then
5539             echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5540           fi
5541
5542           if test "$wxUSE_PROTOCOL" = yes; then
5543             echo "$as_me:$LINENO: result: yes" >&5
5544 echo "${ECHO_T}yes" >&6
5545           else
5546             echo "$as_me:$LINENO: result: no" >&5
5547 echo "${ECHO_T}no" >&6
5548           fi
5549
5550
5551           enablestring=
5552           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5553 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
5554           no_cache=0
5555           # Check whether --enable-protocol_http or --disable-protocol_http was given.
5556 if test "${enable_protocol_http+set}" = set; then
5557   enableval="$enable_protocol_http"
5558
5559                           if test "$enableval" = yes; then
5560                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5561                           else
5562                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5563                           fi
5564
5565 else
5566
5567                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5568                           if test "x$LINE" != x ; then
5569                             eval "DEFAULT_$LINE"
5570                           else
5571                             no_cache=1
5572                           fi
5573
5574                           ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5575
5576 fi;
5577
5578           eval "$ac_cv_use_protocol_http"
5579           if test "$no_cache" != 1; then
5580             echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5581           fi
5582
5583           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5584             echo "$as_me:$LINENO: result: yes" >&5
5585 echo "${ECHO_T}yes" >&6
5586           else
5587             echo "$as_me:$LINENO: result: no" >&5
5588 echo "${ECHO_T}no" >&6
5589           fi
5590
5591
5592           enablestring=
5593           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5594 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
5595           no_cache=0
5596           # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5597 if test "${enable_protocol_ftp+set}" = set; then
5598   enableval="$enable_protocol_ftp"
5599
5600                           if test "$enableval" = yes; then
5601                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5602                           else
5603                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5604                           fi
5605
5606 else
5607
5608                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5609                           if test "x$LINE" != x ; then
5610                             eval "DEFAULT_$LINE"
5611                           else
5612                             no_cache=1
5613                           fi
5614
5615                           ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5616
5617 fi;
5618
5619           eval "$ac_cv_use_protocol_ftp"
5620           if test "$no_cache" != 1; then
5621             echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5622           fi
5623
5624           if test "$wxUSE_PROTOCOL_FTP" = yes; then
5625             echo "$as_me:$LINENO: result: yes" >&5
5626 echo "${ECHO_T}yes" >&6
5627           else
5628             echo "$as_me:$LINENO: result: no" >&5
5629 echo "${ECHO_T}no" >&6
5630           fi
5631
5632
5633           enablestring=
5634           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5635 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
5636           no_cache=0
5637           # Check whether --enable-protocol_file or --disable-protocol_file was given.
5638 if test "${enable_protocol_file+set}" = set; then
5639   enableval="$enable_protocol_file"
5640
5641                           if test "$enableval" = yes; then
5642                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5643                           else
5644                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5645                           fi
5646
5647 else
5648
5649                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5650                           if test "x$LINE" != x ; then
5651                             eval "DEFAULT_$LINE"
5652                           else
5653                             no_cache=1
5654                           fi
5655
5656                           ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
5657
5658 fi;
5659
5660           eval "$ac_cv_use_protocol_file"
5661           if test "$no_cache" != 1; then
5662             echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5663           fi
5664
5665           if test "$wxUSE_PROTOCOL_FILE" = yes; then
5666             echo "$as_me:$LINENO: result: yes" >&5
5667 echo "${ECHO_T}yes" >&6
5668           else
5669             echo "$as_me:$LINENO: result: no" >&5
5670 echo "${ECHO_T}no" >&6
5671           fi
5672
5673
5674
5675
5676
5677           enablestring=
5678           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5679 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
5680           no_cache=0
5681           # Check whether --enable-threads or --disable-threads was given.
5682 if test "${enable_threads+set}" = set; then
5683   enableval="$enable_threads"
5684
5685                           if test "$enableval" = yes; then
5686                             ac_cv_use_threads='wxUSE_THREADS=yes'
5687                           else
5688                             ac_cv_use_threads='wxUSE_THREADS=no'
5689                           fi
5690
5691 else
5692
5693                           LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5694                           if test "x$LINE" != x ; then
5695                             eval "DEFAULT_$LINE"
5696                           else
5697                             no_cache=1
5698                           fi
5699
5700                           ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
5701
5702 fi;
5703
5704           eval "$ac_cv_use_threads"
5705           if test "$no_cache" != 1; then
5706             echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5707           fi
5708
5709           if test "$wxUSE_THREADS" = yes; then
5710             echo "$as_me:$LINENO: result: yes" >&5
5711 echo "${ECHO_T}yes" >&6
5712           else
5713             echo "$as_me:$LINENO: result: no" >&5
5714 echo "${ECHO_T}no" >&6
5715           fi
5716
5717
5718 if test "$wxUSE_GUI" = "yes"; then
5719
5720
5721
5722           enablestring=
5723           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
5724 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
5725           no_cache=0
5726           # Check whether --enable-docview or --disable-docview was given.
5727 if test "${enable_docview+set}" = set; then
5728   enableval="$enable_docview"
5729
5730                           if test "$enableval" = yes; then
5731                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5732                           else
5733                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5734                           fi
5735
5736 else
5737
5738                           LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5739                           if test "x$LINE" != x ; then
5740                             eval "DEFAULT_$LINE"
5741                           else
5742                             no_cache=1
5743                           fi
5744
5745                           ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
5746
5747 fi;
5748
5749           eval "$ac_cv_use_docview"
5750           if test "$no_cache" != 1; then
5751             echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5752           fi
5753
5754           if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
5755             echo "$as_me:$LINENO: result: yes" >&5
5756 echo "${ECHO_T}yes" >&6
5757           else
5758             echo "$as_me:$LINENO: result: no" >&5
5759 echo "${ECHO_T}no" >&6
5760           fi
5761
5762
5763           enablestring=
5764           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
5765 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
5766           no_cache=0
5767           # Check whether --enable-help or --disable-help was given.
5768 if test "${enable_help+set}" = set; then
5769   enableval="$enable_help"
5770
5771                           if test "$enableval" = yes; then
5772                             ac_cv_use_help='wxUSE_HELP=yes'
5773                           else
5774                             ac_cv_use_help='wxUSE_HELP=no'
5775                           fi
5776
5777 else
5778
5779                           LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5780                           if test "x$LINE" != x ; then
5781                             eval "DEFAULT_$LINE"
5782                           else
5783                             no_cache=1
5784                           fi
5785
5786                           ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
5787
5788 fi;
5789
5790           eval "$ac_cv_use_help"
5791           if test "$no_cache" != 1; then
5792             echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5793           fi
5794
5795           if test "$wxUSE_HELP" = yes; then
5796             echo "$as_me:$LINENO: result: yes" >&5
5797 echo "${ECHO_T}yes" >&6
5798           else
5799             echo "$as_me:$LINENO: result: no" >&5
5800 echo "${ECHO_T}no" >&6
5801           fi
5802
5803
5804           enablestring=
5805           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5806 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
5807           no_cache=0
5808           # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5809 if test "${enable_mshtmlhelp+set}" = set; then
5810   enableval="$enable_mshtmlhelp"
5811
5812                           if test "$enableval" = yes; then
5813                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5814                           else
5815                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5816                           fi
5817
5818 else
5819
5820                           LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5821                           if test "x$LINE" != x ; then
5822                             eval "DEFAULT_$LINE"
5823                           else
5824                             no_cache=1
5825                           fi
5826
5827                           ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
5828
5829 fi;
5830
5831           eval "$ac_cv_use_mshtmlhelp"
5832           if test "$no_cache" != 1; then
5833             echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5834           fi
5835
5836           if test "$wxUSE_MS_HTML_HELP" = yes; then
5837             echo "$as_me:$LINENO: result: yes" >&5
5838 echo "${ECHO_T}yes" >&6
5839           else
5840             echo "$as_me:$LINENO: result: no" >&5
5841 echo "${ECHO_T}no" >&6
5842           fi
5843
5844
5845           enablestring=
5846           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
5847 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
5848           no_cache=0
5849           # Check whether --enable-html or --disable-html was given.
5850 if test "${enable_html+set}" = set; then
5851   enableval="$enable_html"
5852
5853                           if test "$enableval" = yes; then
5854                             ac_cv_use_html='wxUSE_HTML=yes'
5855                           else
5856                             ac_cv_use_html='wxUSE_HTML=no'
5857                           fi
5858
5859 else
5860
5861                           LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5862                           if test "x$LINE" != x ; then
5863                             eval "DEFAULT_$LINE"
5864                           else
5865                             no_cache=1
5866                           fi
5867
5868                           ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5869
5870 fi;
5871
5872           eval "$ac_cv_use_html"
5873           if test "$no_cache" != 1; then
5874             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5875           fi
5876
5877           if test "$wxUSE_HTML" = yes; then
5878             echo "$as_me:$LINENO: result: yes" >&5
5879 echo "${ECHO_T}yes" >&6
5880           else
5881             echo "$as_me:$LINENO: result: no" >&5
5882 echo "${ECHO_T}no" >&6
5883           fi
5884
5885
5886           enablestring=
5887           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
5888 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
5889           no_cache=0
5890           # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5891 if test "${enable_htmlhelp+set}" = set; then
5892   enableval="$enable_htmlhelp"
5893
5894                           if test "$enableval" = yes; then
5895                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5896                           else
5897                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5898                           fi
5899
5900 else
5901
5902                           LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5903                           if test "x$LINE" != x ; then
5904                             eval "DEFAULT_$LINE"
5905                           else
5906                             no_cache=1
5907                           fi
5908
5909                           ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5910
5911 fi;
5912
5913           eval "$ac_cv_use_htmlhelp"
5914           if test "$no_cache" != 1; then
5915             echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5916           fi
5917
5918           if test "$wxUSE_WXHTML_HELP" = yes; then
5919             echo "$as_me:$LINENO: result: yes" >&5
5920 echo "${ECHO_T}yes" >&6
5921           else
5922             echo "$as_me:$LINENO: result: no" >&5
5923 echo "${ECHO_T}no" >&6
5924           fi
5925
5926
5927           enablestring=
5928           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
5929 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
5930           no_cache=0
5931           # Check whether --enable-constraints or --disable-constraints was given.
5932 if test "${enable_constraints+set}" = set; then
5933   enableval="$enable_constraints"
5934
5935                           if test "$enableval" = yes; then
5936                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5937                           else
5938                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5939                           fi
5940
5941 else
5942
5943                           LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5944                           if test "x$LINE" != x ; then
5945                             eval "DEFAULT_$LINE"
5946                           else
5947                             no_cache=1
5948                           fi
5949
5950                           ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5951
5952 fi;
5953
5954           eval "$ac_cv_use_constraints"
5955           if test "$no_cache" != 1; then
5956             echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5957           fi
5958
5959           if test "$wxUSE_CONSTRAINTS" = yes; then
5960             echo "$as_me:$LINENO: result: yes" >&5
5961 echo "${ECHO_T}yes" >&6
5962           else
5963             echo "$as_me:$LINENO: result: no" >&5
5964 echo "${ECHO_T}no" >&6
5965           fi
5966
5967
5968           enablestring=
5969           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
5970 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
5971           no_cache=0
5972           # Check whether --enable-printarch or --disable-printarch was given.
5973 if test "${enable_printarch+set}" = set; then
5974   enableval="$enable_printarch"
5975
5976                           if test "$enableval" = yes; then
5977                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5978                           else
5979                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5980                           fi
5981
5982 else
5983
5984                           LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5985                           if test "x$LINE" != x ; then
5986                             eval "DEFAULT_$LINE"
5987                           else
5988                             no_cache=1
5989                           fi
5990
5991                           ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5992
5993 fi;
5994
5995           eval "$ac_cv_use_printarch"
5996           if test "$no_cache" != 1; then
5997             echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5998           fi
5999
6000           if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6001             echo "$as_me:$LINENO: result: yes" >&5
6002 echo "${ECHO_T}yes" >&6
6003           else
6004             echo "$as_me:$LINENO: result: no" >&5
6005 echo "${ECHO_T}no" >&6
6006           fi
6007
6008
6009           enablestring=
6010           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6011 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6012           no_cache=0
6013           # Check whether --enable-mdi or --disable-mdi was given.
6014 if test "${enable_mdi+set}" = set; then
6015   enableval="$enable_mdi"
6016
6017                           if test "$enableval" = yes; then
6018                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6019                           else
6020                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6021                           fi
6022
6023 else
6024
6025                           LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6026                           if test "x$LINE" != x ; then
6027                             eval "DEFAULT_$LINE"
6028                           else
6029                             no_cache=1
6030                           fi
6031
6032                           ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6033
6034 fi;
6035
6036           eval "$ac_cv_use_mdi"
6037           if test "$no_cache" != 1; then
6038             echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6039           fi
6040
6041           if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6042             echo "$as_me:$LINENO: result: yes" >&5
6043 echo "${ECHO_T}yes" >&6
6044           else
6045             echo "$as_me:$LINENO: result: no" >&5
6046 echo "${ECHO_T}no" >&6
6047           fi
6048
6049
6050           enablestring=
6051           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6052 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6053           no_cache=0
6054           # Check whether --enable-loggui or --disable-loggui was given.
6055 if test "${enable_loggui+set}" = set; then
6056   enableval="$enable_loggui"
6057
6058                           if test "$enableval" = yes; then
6059                             ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6060                           else
6061                             ac_cv_use_loggui='wxUSE_LOGGUI=no'
6062                           fi
6063
6064 else
6065
6066                           LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6067                           if test "x$LINE" != x ; then
6068                             eval "DEFAULT_$LINE"
6069                           else
6070                             no_cache=1
6071                           fi
6072
6073                           ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6074
6075 fi;
6076
6077           eval "$ac_cv_use_loggui"
6078           if test "$no_cache" != 1; then
6079             echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6080           fi
6081
6082           if test "$wxUSE_LOGGUI" = yes; then
6083             echo "$as_me:$LINENO: result: yes" >&5
6084 echo "${ECHO_T}yes" >&6
6085           else
6086             echo "$as_me:$LINENO: result: no" >&5
6087 echo "${ECHO_T}no" >&6
6088           fi
6089
6090
6091           enablestring=
6092           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6093 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6094           no_cache=0
6095           # Check whether --enable-logwin or --disable-logwin was given.
6096 if test "${enable_logwin+set}" = set; then
6097   enableval="$enable_logwin"
6098
6099                           if test "$enableval" = yes; then
6100                             ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6101                           else
6102                             ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6103                           fi
6104
6105 else
6106
6107                           LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6108                           if test "x$LINE" != x ; then
6109                             eval "DEFAULT_$LINE"
6110                           else
6111                             no_cache=1
6112                           fi
6113
6114                           ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6115
6116 fi;
6117
6118           eval "$ac_cv_use_logwin"
6119           if test "$no_cache" != 1; then
6120             echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6121           fi
6122
6123           if test "$wxUSE_LOGWINDOW" = yes; then
6124             echo "$as_me:$LINENO: result: yes" >&5
6125 echo "${ECHO_T}yes" >&6
6126           else
6127             echo "$as_me:$LINENO: result: no" >&5
6128 echo "${ECHO_T}no" >&6
6129           fi
6130
6131
6132           enablestring=
6133           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6134 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6135           no_cache=0
6136           # Check whether --enable-logdialog or --disable-logdialog was given.
6137 if test "${enable_logdialog+set}" = set; then
6138   enableval="$enable_logdialog"
6139
6140                           if test "$enableval" = yes; then
6141                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6142                           else
6143                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6144                           fi
6145
6146 else
6147
6148                           LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6149                           if test "x$LINE" != x ; then
6150                             eval "DEFAULT_$LINE"
6151                           else
6152                             no_cache=1
6153                           fi
6154
6155                           ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6156
6157 fi;
6158
6159           eval "$ac_cv_use_logdialog"
6160           if test "$no_cache" != 1; then
6161             echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6162           fi
6163
6164           if test "$wxUSE_LOGDIALOG" = yes; then
6165             echo "$as_me:$LINENO: result: yes" >&5
6166 echo "${ECHO_T}yes" >&6
6167           else
6168             echo "$as_me:$LINENO: result: no" >&5
6169 echo "${ECHO_T}no" >&6
6170           fi
6171
6172
6173
6174           enablestring=
6175           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6176 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6177           no_cache=0
6178           # Check whether --enable-postscript or --disable-postscript was given.
6179 if test "${enable_postscript+set}" = set; then
6180   enableval="$enable_postscript"
6181
6182                           if test "$enableval" = yes; then
6183                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6184                           else
6185                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6186                           fi
6187
6188 else
6189
6190                           LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6191                           if test "x$LINE" != x ; then
6192                             eval "DEFAULT_$LINE"
6193                           else
6194                             no_cache=1
6195                           fi
6196
6197                           ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6198
6199 fi;
6200
6201           eval "$ac_cv_use_postscript"
6202           if test "$no_cache" != 1; then
6203             echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6204           fi
6205
6206           if test "$wxUSE_POSTSCRIPT" = yes; then
6207             echo "$as_me:$LINENO: result: yes" >&5
6208 echo "${ECHO_T}yes" >&6
6209           else
6210             echo "$as_me:$LINENO: result: no" >&5
6211 echo "${ECHO_T}no" >&6
6212           fi
6213
6214
6215
6216
6217
6218           enablestring=
6219           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6220 echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6221           no_cache=0
6222           # Check whether --enable-prologio or --disable-prologio was given.
6223 if test "${enable_prologio+set}" = set; then
6224   enableval="$enable_prologio"
6225
6226                           if test "$enableval" = yes; then
6227                             ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6228                           else
6229                             ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6230                           fi
6231
6232 else
6233
6234                           LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6235                           if test "x$LINE" != x ; then
6236                             eval "DEFAULT_$LINE"
6237                           else
6238                             no_cache=1
6239                           fi
6240
6241                           ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6242
6243 fi;
6244
6245           eval "$ac_cv_use_prologio"
6246           if test "$no_cache" != 1; then
6247             echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6248           fi
6249
6250           if test "$wxUSE_PROLOGIO" = yes; then
6251             echo "$as_me:$LINENO: result: yes" >&5
6252 echo "${ECHO_T}yes" >&6
6253           else
6254             echo "$as_me:$LINENO: result: no" >&5
6255 echo "${ECHO_T}no" >&6
6256           fi
6257
6258
6259           enablestring=
6260           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6261 echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6262           no_cache=0
6263           # Check whether --enable-resources or --disable-resources was given.
6264 if test "${enable_resources+set}" = set; then
6265   enableval="$enable_resources"
6266
6267                           if test "$enableval" = yes; then
6268                             ac_cv_use_resources='wxUSE_RESOURCES=yes'
6269                           else
6270                             ac_cv_use_resources='wxUSE_RESOURCES=no'
6271                           fi
6272
6273 else
6274
6275                           LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6276                           if test "x$LINE" != x ; then
6277                             eval "DEFAULT_$LINE"
6278                           else
6279                             no_cache=1
6280                           fi
6281
6282                           ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6283
6284 fi;
6285
6286           eval "$ac_cv_use_resources"
6287           if test "$no_cache" != 1; then
6288             echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6289           fi
6290
6291           if test "$wxUSE_RESOURCES" = yes; then
6292             echo "$as_me:$LINENO: result: yes" >&5
6293 echo "${ECHO_T}yes" >&6
6294           else
6295             echo "$as_me:$LINENO: result: no" >&5
6296 echo "${ECHO_T}no" >&6
6297           fi
6298
6299
6300
6301
6302           enablestring=
6303           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6304 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6305           no_cache=0
6306           # Check whether --enable-clipboard or --disable-clipboard was given.
6307 if test "${enable_clipboard+set}" = set; then
6308   enableval="$enable_clipboard"
6309
6310                           if test "$enableval" = yes; then
6311                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6312                           else
6313                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6314                           fi
6315
6316 else
6317
6318                           LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6319                           if test "x$LINE" != x ; then
6320                             eval "DEFAULT_$LINE"
6321                           else
6322                             no_cache=1
6323                           fi
6324
6325                           ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6326
6327 fi;
6328
6329           eval "$ac_cv_use_clipboard"
6330           if test "$no_cache" != 1; then
6331             echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6332           fi
6333
6334           if test "$wxUSE_CLIPBOARD" = yes; then
6335             echo "$as_me:$LINENO: result: yes" >&5
6336 echo "${ECHO_T}yes" >&6
6337           else
6338             echo "$as_me:$LINENO: result: no" >&5
6339 echo "${ECHO_T}no" >&6
6340           fi
6341
6342
6343           enablestring=
6344           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6345 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6346           no_cache=0
6347           # Check whether --enable-dnd or --disable-dnd was given.
6348 if test "${enable_dnd+set}" = set; then
6349   enableval="$enable_dnd"
6350
6351                           if test "$enableval" = yes; then
6352                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6353                           else
6354                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6355                           fi
6356
6357 else
6358
6359                           LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6360                           if test "x$LINE" != x ; then
6361                             eval "DEFAULT_$LINE"
6362                           else
6363                             no_cache=1
6364                           fi
6365
6366                           ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6367
6368 fi;
6369
6370           eval "$ac_cv_use_dnd"
6371           if test "$no_cache" != 1; then
6372             echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6373           fi
6374
6375           if test "$wxUSE_DRAG_AND_DROP" = yes; then
6376             echo "$as_me:$LINENO: result: yes" >&5
6377 echo "${ECHO_T}yes" >&6
6378           else
6379             echo "$as_me:$LINENO: result: no" >&5
6380 echo "${ECHO_T}no" >&6
6381           fi
6382
6383
6384           enablestring=
6385           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6386 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6387           no_cache=0
6388           # Check whether --enable-metafile or --disable-metafile was given.
6389 if test "${enable_metafile+set}" = set; then
6390   enableval="$enable_metafile"
6391
6392                           if test "$enableval" = yes; then
6393                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
6394                           else
6395                             ac_cv_use_metafile='wxUSE_METAFILE=no'
6396                           fi
6397
6398 else
6399
6400                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6401                           if test "x$LINE" != x ; then
6402                             eval "DEFAULT_$LINE"
6403                           else
6404                             no_cache=1
6405                           fi
6406
6407                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6408
6409 fi;
6410
6411           eval "$ac_cv_use_metafile"
6412           if test "$no_cache" != 1; then
6413             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6414           fi
6415
6416           if test "$wxUSE_METAFILE" = yes; then
6417             echo "$as_me:$LINENO: result: yes" >&5
6418 echo "${ECHO_T}yes" >&6
6419           else
6420             echo "$as_me:$LINENO: result: no" >&5
6421 echo "${ECHO_T}no" >&6
6422           fi
6423
6424
6425
6426
6427
6428           enablestring=
6429           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6430 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
6431           no_cache=0
6432           # Check whether --enable-controls or --disable-controls was given.
6433 if test "${enable_controls+set}" = set; then
6434   enableval="$enable_controls"
6435
6436                           if test "$enableval" = yes; then
6437                             ac_cv_use_controls='wxUSE_CONTROLS=yes'
6438                           else
6439                             ac_cv_use_controls='wxUSE_CONTROLS=no'
6440                           fi
6441
6442 else
6443
6444                           LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6445                           if test "x$LINE" != x ; then
6446                             eval "DEFAULT_$LINE"
6447                           else
6448                             no_cache=1
6449                           fi
6450
6451                           ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
6452
6453 fi;
6454
6455           eval "$ac_cv_use_controls"
6456           if test "$no_cache" != 1; then
6457             echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6458           fi
6459
6460           if test "$wxUSE_CONTROLS" = yes; then
6461             echo "$as_me:$LINENO: result: yes" >&5
6462 echo "${ECHO_T}yes" >&6
6463           else
6464             echo "$as_me:$LINENO: result: no" >&5
6465 echo "${ECHO_T}no" >&6
6466           fi
6467
6468
6469 if test "$wxUSE_CONTROLS" = "yes"; then
6470   DEFAULT_wxUSE_ACCEL=yes
6471   DEFAULT_wxUSE_BMPBUTTON=yes
6472   DEFAULT_wxUSE_BUTTON=yes
6473   DEFAULT_wxUSE_CALCTRL=no
6474   DEFAULT_wxUSE_CARET=yes
6475   DEFAULT_wxUSE_COMBOBOX=yes
6476   DEFAULT_wxUSE_CHECKBOX=yes
6477   DEFAULT_wxUSE_CHECKLISTBOX=yes
6478   DEFAULT_wxUSE_CHOICE=yes
6479   DEFAULT_wxUSE_GAUGE=yes
6480   DEFAULT_wxUSE_GRID=yes
6481   DEFAULT_wxUSE_IMAGLIST=yes
6482   DEFAULT_wxUSE_LISTBOOK=yes
6483   DEFAULT_wxUSE_LISTBOX=yes
6484   DEFAULT_wxUSE_LISTCTRL=yes
6485   DEFAULT_wxUSE_NOTEBOOK=yes
6486   DEFAULT_wxUSE_RADIOBOX=yes
6487   DEFAULT_wxUSE_RADIOBTN=yes
6488   DEFAULT_wxUSE_SASH=yes
6489   DEFAULT_wxUSE_SCROLLBAR=yes
6490   DEFAULT_wxUSE_SLIDER=yes
6491   DEFAULT_wxUSE_SPINBTN=yes
6492   DEFAULT_wxUSE_SPINCTRL=yes
6493   DEFAULT_wxUSE_SPLITTER=yes
6494   DEFAULT_wxUSE_STATBMP=yes
6495   DEFAULT_wxUSE_STATBOX=yes
6496   DEFAULT_wxUSE_STATLINE=yes
6497   DEFAULT_wxUSE_STATUSBAR=yes
6498   DEFAULT_wxUSE_TAB_DIALOG=yes
6499   DEFAULT_wxUSE_TOGGLEBTN=yes
6500   DEFAULT_wxUSE_TOOLBAR=yes
6501   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6502   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
6503   DEFAULT_wxUSE_TOOLTIPS=yes
6504   DEFAULT_wxUSE_TREECTRL=yes
6505   DEFAULT_wxUSE_POPUPWIN=yes
6506   DEFAULT_wxUSE_TIPWINDOW=yes
6507 elif test "$wxUSE_CONTROLS" = "no"; then
6508   DEFAULT_wxUSE_ACCEL=no
6509   DEFAULT_wxUSE_BMPBUTTON=no
6510   DEFAULT_wxUSE_BUTTON=no
6511   DEFAULT_wxUSE_CALCTRL=no
6512   DEFAULT_wxUSE_CARET=no
6513   DEFAULT_wxUSE_COMBOBOX=no
6514   DEFAULT_wxUSE_CHECKBOX=no
6515   DEFAULT_wxUSE_CHECKLISTBOX=no
6516   DEFAULT_wxUSE_CHOICE=no
6517   DEFAULT_wxUSE_GAUGE=no
6518   DEFAULT_wxUSE_GRID=no
6519   DEFAULT_wxUSE_IMAGLIST=no
6520   DEFAULT_wxUSE_LISTBOOK=no
6521   DEFAULT_wxUSE_LISTBOX=no
6522   DEFAULT_wxUSE_LISTCTRL=no
6523   DEFAULT_wxUSE_NOTEBOOK=no
6524   DEFAULT_wxUSE_RADIOBOX=no
6525   DEFAULT_wxUSE_RADIOBTN=no
6526   DEFAULT_wxUSE_SASH=no
6527   DEFAULT_wxUSE_SCROLLBAR=no
6528   DEFAULT_wxUSE_SLIDER=no
6529   DEFAULT_wxUSE_SPINBTN=no
6530   DEFAULT_wxUSE_SPINCTRL=no
6531   DEFAULT_wxUSE_SPLITTER=no
6532   DEFAULT_wxUSE_STATBMP=no
6533   DEFAULT_wxUSE_STATBOX=no
6534   DEFAULT_wxUSE_STATLINE=no
6535   DEFAULT_wxUSE_STATUSBAR=no
6536   DEFAULT_wxUSE_TAB_DIALOG=no
6537   DEFAULT_wxUSE_TOGGLEBTN=no
6538   DEFAULT_wxUSE_TOOLBAR=no
6539   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6540   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
6541   DEFAULT_wxUSE_TOOLTIPS=no
6542   DEFAULT_wxUSE_TREECTRL=no
6543   DEFAULT_wxUSE_POPUPWIN=no
6544   DEFAULT_wxUSE_TIPWINDOW=no
6545 fi
6546
6547 ## FIXME: This is a blatant hack
6548 if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6549   wxUSE_PRINTING_ARCHITECTURE=no
6550   wxUSE_DRAG_AND_DROP=no
6551   # Generic notebook requires tab dialog
6552   DEFAULT_wxUSE_TABDIALOG=yes
6553   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6554   DEFAULT_wxUSE_SCROLLBAR=no
6555   DEFAULT_wxUSE_TOOLTIPS=no
6556   DEFAULT_wxUSE_DRAGIMAGE=no
6557 fi
6558
6559
6560           enablestring=
6561           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6562 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
6563           no_cache=0
6564           # Check whether --enable-accel or --disable-accel was given.
6565 if test "${enable_accel+set}" = set; then
6566   enableval="$enable_accel"
6567
6568                           if test "$enableval" = yes; then
6569                             ac_cv_use_accel='wxUSE_ACCEL=yes'
6570                           else
6571                             ac_cv_use_accel='wxUSE_ACCEL=no'
6572                           fi
6573
6574 else
6575
6576                           LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6577                           if test "x$LINE" != x ; then
6578                             eval "DEFAULT_$LINE"
6579                           else
6580                             no_cache=1
6581                           fi
6582
6583                           ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
6584
6585 fi;
6586
6587           eval "$ac_cv_use_accel"
6588           if test "$no_cache" != 1; then
6589             echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6590           fi
6591
6592           if test "$wxUSE_ACCEL" = yes; then
6593             echo "$as_me:$LINENO: result: yes" >&5
6594 echo "${ECHO_T}yes" >&6
6595           else
6596             echo "$as_me:$LINENO: result: no" >&5
6597 echo "${ECHO_T}no" >&6
6598           fi
6599
6600
6601           enablestring=
6602           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6603 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
6604           no_cache=0
6605           # Check whether --enable-button or --disable-button was given.
6606 if test "${enable_button+set}" = set; then
6607   enableval="$enable_button"
6608
6609                           if test "$enableval" = yes; then
6610                             ac_cv_use_button='wxUSE_BUTTON=yes'
6611                           else
6612                             ac_cv_use_button='wxUSE_BUTTON=no'
6613                           fi
6614
6615 else
6616
6617                           LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
6618                           if test "x$LINE" != x ; then
6619                             eval "DEFAULT_$LINE"
6620                           else
6621                             no_cache=1
6622                           fi
6623
6624                           ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
6625
6626 fi;
6627
6628           eval "$ac_cv_use_button"
6629           if test "$no_cache" != 1; then
6630             echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
6631           fi
6632
6633           if test "$wxUSE_BUTTON" = yes; then
6634             echo "$as_me:$LINENO: result: yes" >&5
6635 echo "${ECHO_T}yes" >&6
6636           else
6637             echo "$as_me:$LINENO: result: no" >&5
6638 echo "${ECHO_T}no" >&6
6639           fi
6640
6641
6642           enablestring=
6643           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6644 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
6645           no_cache=0
6646           # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6647 if test "${enable_bmpbutton+set}" = set; then
6648   enableval="$enable_bmpbutton"
6649
6650                           if test "$enableval" = yes; then
6651                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6652                           else
6653                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6654                           fi
6655
6656 else
6657
6658                           LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6659                           if test "x$LINE" != x ; then
6660                             eval "DEFAULT_$LINE"
6661                           else
6662                             no_cache=1
6663                           fi
6664
6665                           ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
6666
6667 fi;
6668
6669           eval "$ac_cv_use_bmpbutton"
6670           if test "$no_cache" != 1; then
6671             echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6672           fi
6673
6674           if test "$wxUSE_BMPBUTTON" = yes; then
6675             echo "$as_me:$LINENO: result: yes" >&5
6676 echo "${ECHO_T}yes" >&6
6677           else
6678             echo "$as_me:$LINENO: result: no" >&5
6679 echo "${ECHO_T}no" >&6
6680           fi
6681
6682
6683           enablestring=
6684           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
6685 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
6686           no_cache=0
6687           # Check whether --enable-calendar or --disable-calendar was given.
6688 if test "${enable_calendar+set}" = set; then
6689   enableval="$enable_calendar"
6690
6691                           if test "$enableval" = yes; then
6692                             ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6693                           else
6694                             ac_cv_use_calendar='wxUSE_CALCTRL=no'
6695                           fi
6696
6697 else
6698
6699                           LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6700                           if test "x$LINE" != x ; then
6701                             eval "DEFAULT_$LINE"
6702                           else
6703                             no_cache=1
6704                           fi
6705
6706                           ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
6707
6708 fi;
6709
6710           eval "$ac_cv_use_calendar"
6711           if test "$no_cache" != 1; then
6712             echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6713           fi
6714
6715           if test "$wxUSE_CALCTRL" = yes; then
6716             echo "$as_me:$LINENO: result: yes" >&5
6717 echo "${ECHO_T}yes" >&6
6718           else
6719             echo "$as_me:$LINENO: result: no" >&5
6720 echo "${ECHO_T}no" >&6
6721           fi
6722
6723
6724           enablestring=
6725           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
6726 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
6727           no_cache=0
6728           # Check whether --enable-caret or --disable-caret was given.
6729 if test "${enable_caret+set}" = set; then
6730   enableval="$enable_caret"
6731
6732                           if test "$enableval" = yes; then
6733                             ac_cv_use_caret='wxUSE_CARET=yes'
6734                           else
6735                             ac_cv_use_caret='wxUSE_CARET=no'
6736                           fi
6737
6738 else
6739
6740                           LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6741                           if test "x$LINE" != x ; then
6742                             eval "DEFAULT_$LINE"
6743                           else
6744                             no_cache=1
6745                           fi
6746
6747                           ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
6748
6749 fi;
6750
6751           eval "$ac_cv_use_caret"
6752           if test "$no_cache" != 1; then
6753             echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6754           fi
6755
6756           if test "$wxUSE_CARET" = yes; then
6757             echo "$as_me:$LINENO: result: yes" >&5
6758 echo "${ECHO_T}yes" >&6
6759           else
6760             echo "$as_me:$LINENO: result: no" >&5
6761 echo "${ECHO_T}no" >&6
6762           fi
6763
6764
6765           enablestring=
6766           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
6767 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
6768           no_cache=0
6769           # Check whether --enable-checkbox or --disable-checkbox was given.
6770 if test "${enable_checkbox+set}" = set; then
6771   enableval="$enable_checkbox"
6772
6773                           if test "$enableval" = yes; then
6774                             ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6775                           else
6776                             ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6777                           fi
6778
6779 else
6780
6781                           LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6782                           if test "x$LINE" != x ; then
6783                             eval "DEFAULT_$LINE"
6784                           else
6785                             no_cache=1
6786                           fi
6787
6788                           ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
6789
6790 fi;
6791
6792           eval "$ac_cv_use_checkbox"
6793           if test "$no_cache" != 1; then
6794             echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6795           fi
6796
6797           if test "$wxUSE_CHECKBOX" = yes; then
6798             echo "$as_me:$LINENO: result: yes" >&5
6799 echo "${ECHO_T}yes" >&6
6800           else
6801             echo "$as_me:$LINENO: result: no" >&5
6802 echo "${ECHO_T}no" >&6
6803           fi
6804
6805
6806           enablestring=
6807           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
6808 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
6809           no_cache=0
6810           # Check whether --enable-checklst or --disable-checklst was given.
6811 if test "${enable_checklst+set}" = set; then
6812   enableval="$enable_checklst"
6813
6814                           if test "$enableval" = yes; then
6815                             ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6816                           else
6817                             ac_cv_use_checklst='wxUSE_CHECKLST=no'
6818                           fi
6819
6820 else
6821
6822                           LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6823                           if test "x$LINE" != x ; then
6824                             eval "DEFAULT_$LINE"
6825                           else
6826                             no_cache=1
6827                           fi
6828
6829                           ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
6830
6831 fi;
6832
6833           eval "$ac_cv_use_checklst"
6834           if test "$no_cache" != 1; then
6835             echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6836           fi
6837
6838           if test "$wxUSE_CHECKLST" = yes; then
6839             echo "$as_me:$LINENO: result: yes" >&5
6840 echo "${ECHO_T}yes" >&6
6841           else
6842             echo "$as_me:$LINENO: result: no" >&5
6843 echo "${ECHO_T}no" >&6
6844           fi
6845
6846
6847           enablestring=
6848           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
6849 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
6850           no_cache=0
6851           # Check whether --enable-choice or --disable-choice was given.
6852 if test "${enable_choice+set}" = set; then
6853   enableval="$enable_choice"
6854
6855                           if test "$enableval" = yes; then
6856                             ac_cv_use_choice='wxUSE_CHOICE=yes'
6857                           else
6858                             ac_cv_use_choice='wxUSE_CHOICE=no'
6859                           fi
6860
6861 else
6862
6863                           LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6864                           if test "x$LINE" != x ; then
6865                             eval "DEFAULT_$LINE"
6866                           else
6867                             no_cache=1
6868                           fi
6869
6870                           ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
6871
6872 fi;
6873
6874           eval "$ac_cv_use_choice"
6875           if test "$no_cache" != 1; then
6876             echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6877           fi
6878
6879           if test "$wxUSE_CHOICE" = yes; then
6880             echo "$as_me:$LINENO: result: yes" >&5
6881 echo "${ECHO_T}yes" >&6
6882           else
6883             echo "$as_me:$LINENO: result: no" >&5
6884 echo "${ECHO_T}no" >&6
6885           fi
6886
6887
6888           enablestring=
6889           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
6890 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
6891           no_cache=0
6892           # Check whether --enable-combobox or --disable-combobox was given.
6893 if test "${enable_combobox+set}" = set; then
6894   enableval="$enable_combobox"
6895
6896                           if test "$enableval" = yes; then
6897                             ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6898                           else
6899                             ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6900                           fi
6901
6902 else
6903
6904                           LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6905                           if test "x$LINE" != x ; then
6906                             eval "DEFAULT_$LINE"
6907                           else
6908                             no_cache=1
6909                           fi
6910
6911                           ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6912
6913 fi;
6914
6915           eval "$ac_cv_use_combobox"
6916           if test "$no_cache" != 1; then
6917             echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6918           fi
6919
6920           if test "$wxUSE_COMBOBOX" = yes; then
6921             echo "$as_me:$LINENO: result: yes" >&5
6922 echo "${ECHO_T}yes" >&6
6923           else
6924             echo "$as_me:$LINENO: result: no" >&5
6925 echo "${ECHO_T}no" >&6
6926           fi
6927
6928
6929           enablestring=
6930           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
6931 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
6932           no_cache=0
6933           # Check whether --enable-display or --disable-display was given.
6934 if test "${enable_display+set}" = set; then
6935   enableval="$enable_display"
6936
6937                           if test "$enableval" = yes; then
6938                             ac_cv_use_display='wxUSE_DISPLAY=yes'
6939                           else
6940                             ac_cv_use_display='wxUSE_DISPLAY=no'
6941                           fi
6942
6943 else
6944
6945                           LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6946                           if test "x$LINE" != x ; then
6947                             eval "DEFAULT_$LINE"
6948                           else
6949                             no_cache=1
6950                           fi
6951
6952                           ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
6953
6954 fi;
6955
6956           eval "$ac_cv_use_display"
6957           if test "$no_cache" != 1; then
6958             echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6959           fi
6960
6961           if test "$wxUSE_DISPLAY" = yes; then
6962             echo "$as_me:$LINENO: result: yes" >&5
6963 echo "${ECHO_T}yes" >&6
6964           else
6965             echo "$as_me:$LINENO: result: no" >&5
6966 echo "${ECHO_T}no" >&6
6967           fi
6968
6969
6970           enablestring=
6971           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
6972 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
6973           no_cache=0
6974           # Check whether --enable-gauge or --disable-gauge was given.
6975 if test "${enable_gauge+set}" = set; then
6976   enableval="$enable_gauge"
6977
6978                           if test "$enableval" = yes; then
6979                             ac_cv_use_gauge='wxUSE_GAUGE=yes'
6980                           else
6981                             ac_cv_use_gauge='wxUSE_GAUGE=no'
6982                           fi
6983
6984 else
6985
6986                           LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6987                           if test "x$LINE" != x ; then
6988                             eval "DEFAULT_$LINE"
6989                           else
6990                             no_cache=1
6991                           fi
6992
6993                           ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6994
6995 fi;
6996
6997           eval "$ac_cv_use_gauge"
6998           if test "$no_cache" != 1; then
6999             echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7000           fi
7001
7002           if test "$wxUSE_GAUGE" = yes; then
7003             echo "$as_me:$LINENO: result: yes" >&5
7004 echo "${ECHO_T}yes" >&6
7005           else
7006             echo "$as_me:$LINENO: result: no" >&5
7007 echo "${ECHO_T}no" >&6
7008           fi
7009
7010
7011           enablestring=
7012           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7013 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7014           no_cache=0
7015           # Check whether --enable-grid or --disable-grid was given.
7016 if test "${enable_grid+set}" = set; then
7017   enableval="$enable_grid"
7018
7019                           if test "$enableval" = yes; then
7020                             ac_cv_use_grid='wxUSE_GRID=yes'
7021                           else
7022                             ac_cv_use_grid='wxUSE_GRID=no'
7023                           fi
7024
7025 else
7026
7027                           LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7028                           if test "x$LINE" != x ; then
7029                             eval "DEFAULT_$LINE"
7030                           else
7031                             no_cache=1
7032                           fi
7033
7034                           ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7035
7036 fi;
7037
7038           eval "$ac_cv_use_grid"
7039           if test "$no_cache" != 1; then
7040             echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7041           fi
7042
7043           if test "$wxUSE_GRID" = yes; then
7044             echo "$as_me:$LINENO: result: yes" >&5
7045 echo "${ECHO_T}yes" >&6
7046           else
7047             echo "$as_me:$LINENO: result: no" >&5
7048 echo "${ECHO_T}no" >&6
7049           fi
7050
7051
7052           enablestring=
7053           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7054 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7055           no_cache=0
7056           # Check whether --enable-imaglist or --disable-imaglist was given.
7057 if test "${enable_imaglist+set}" = set; then
7058   enableval="$enable_imaglist"
7059
7060                           if test "$enableval" = yes; then
7061                             ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7062                           else
7063                             ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7064                           fi
7065
7066 else
7067
7068                           LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7069                           if test "x$LINE" != x ; then
7070                             eval "DEFAULT_$LINE"
7071                           else
7072                             no_cache=1
7073                           fi
7074
7075                           ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7076
7077 fi;
7078
7079           eval "$ac_cv_use_imaglist"
7080           if test "$no_cache" != 1; then
7081             echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7082           fi
7083
7084           if test "$wxUSE_IMAGLIST" = yes; then
7085             echo "$as_me:$LINENO: result: yes" >&5
7086 echo "${ECHO_T}yes" >&6
7087           else
7088             echo "$as_me:$LINENO: result: no" >&5
7089 echo "${ECHO_T}no" >&6
7090           fi
7091
7092
7093           enablestring=
7094           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7095 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7096           no_cache=0
7097           # Check whether --enable-listbook or --disable-listbook was given.
7098 if test "${enable_listbook+set}" = set; then
7099   enableval="$enable_listbook"
7100
7101                           if test "$enableval" = yes; then
7102                             ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7103                           else
7104                             ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7105                           fi
7106
7107 else
7108
7109                           LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7110                           if test "x$LINE" != x ; then
7111                             eval "DEFAULT_$LINE"
7112                           else
7113                             no_cache=1
7114                           fi
7115
7116                           ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7117
7118 fi;
7119
7120           eval "$ac_cv_use_listbook"
7121           if test "$no_cache" != 1; then
7122             echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7123           fi
7124
7125           if test "$wxUSE_LISTBOOK" = yes; then
7126             echo "$as_me:$LINENO: result: yes" >&5
7127 echo "${ECHO_T}yes" >&6
7128           else
7129             echo "$as_me:$LINENO: result: no" >&5
7130 echo "${ECHO_T}no" >&6
7131           fi
7132
7133
7134           enablestring=
7135           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7136 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7137           no_cache=0
7138           # Check whether --enable-listbox or --disable-listbox was given.
7139 if test "${enable_listbox+set}" = set; then
7140   enableval="$enable_listbox"
7141
7142                           if test "$enableval" = yes; then
7143                             ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7144                           else
7145                             ac_cv_use_listbox='wxUSE_LISTBOX=no'
7146                           fi
7147
7148 else
7149
7150                           LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7151                           if test "x$LINE" != x ; then
7152                             eval "DEFAULT_$LINE"
7153                           else
7154                             no_cache=1
7155                           fi
7156
7157                           ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7158
7159 fi;
7160
7161           eval "$ac_cv_use_listbox"
7162           if test "$no_cache" != 1; then
7163             echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7164           fi
7165
7166           if test "$wxUSE_LISTBOX" = yes; then
7167             echo "$as_me:$LINENO: result: yes" >&5
7168 echo "${ECHO_T}yes" >&6
7169           else
7170             echo "$as_me:$LINENO: result: no" >&5
7171 echo "${ECHO_T}no" >&6
7172           fi
7173
7174
7175           enablestring=
7176           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7177 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7178           no_cache=0
7179           # Check whether --enable-listctrl or --disable-listctrl was given.
7180 if test "${enable_listctrl+set}" = set; then
7181   enableval="$enable_listctrl"
7182
7183                           if test "$enableval" = yes; then
7184                             ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7185                           else
7186                             ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7187                           fi
7188
7189 else
7190
7191                           LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7192                           if test "x$LINE" != x ; then
7193                             eval "DEFAULT_$LINE"
7194                           else
7195                             no_cache=1
7196                           fi
7197
7198                           ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7199
7200 fi;
7201
7202           eval "$ac_cv_use_listctrl"
7203           if test "$no_cache" != 1; then
7204             echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7205           fi
7206
7207           if test "$wxUSE_LISTCTRL" = yes; then
7208             echo "$as_me:$LINENO: result: yes" >&5
7209 echo "${ECHO_T}yes" >&6
7210           else
7211             echo "$as_me:$LINENO: result: no" >&5
7212 echo "${ECHO_T}no" >&6
7213           fi
7214
7215
7216           enablestring=
7217           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7218 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7219           no_cache=0
7220           # Check whether --enable-notebook or --disable-notebook was given.
7221 if test "${enable_notebook+set}" = set; then
7222   enableval="$enable_notebook"
7223
7224                           if test "$enableval" = yes; then
7225                             ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7226                           else
7227                             ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7228                           fi
7229
7230 else
7231
7232                           LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7233                           if test "x$LINE" != x ; then
7234                             eval "DEFAULT_$LINE"
7235                           else
7236                             no_cache=1
7237                           fi
7238
7239                           ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7240
7241 fi;
7242
7243           eval "$ac_cv_use_notebook"
7244           if test "$no_cache" != 1; then
7245             echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7246           fi
7247
7248           if test "$wxUSE_NOTEBOOK" = yes; then
7249             echo "$as_me:$LINENO: result: yes" >&5
7250 echo "${ECHO_T}yes" >&6
7251           else
7252             echo "$as_me:$LINENO: result: no" >&5
7253 echo "${ECHO_T}no" >&6
7254           fi
7255
7256
7257           enablestring=
7258           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7259 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7260           no_cache=0
7261           # Check whether --enable-radiobox or --disable-radiobox was given.
7262 if test "${enable_radiobox+set}" = set; then
7263   enableval="$enable_radiobox"
7264
7265                           if test "$enableval" = yes; then
7266                             ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7267                           else
7268                             ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7269                           fi
7270
7271 else
7272
7273                           LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7274                           if test "x$LINE" != x ; then
7275                             eval "DEFAULT_$LINE"
7276                           else
7277                             no_cache=1
7278                           fi
7279
7280                           ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7281
7282 fi;
7283
7284           eval "$ac_cv_use_radiobox"
7285           if test "$no_cache" != 1; then
7286             echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7287           fi
7288
7289           if test "$wxUSE_RADIOBOX" = yes; then
7290             echo "$as_me:$LINENO: result: yes" >&5
7291 echo "${ECHO_T}yes" >&6
7292           else
7293             echo "$as_me:$LINENO: result: no" >&5
7294 echo "${ECHO_T}no" >&6
7295           fi
7296
7297
7298           enablestring=
7299           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7300 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7301           no_cache=0
7302           # Check whether --enable-radiobtn or --disable-radiobtn was given.
7303 if test "${enable_radiobtn+set}" = set; then
7304   enableval="$enable_radiobtn"
7305
7306                           if test "$enableval" = yes; then
7307                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7308                           else
7309                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7310                           fi
7311
7312 else
7313
7314                           LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7315                           if test "x$LINE" != x ; then
7316                             eval "DEFAULT_$LINE"
7317                           else
7318                             no_cache=1
7319                           fi
7320
7321                           ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7322
7323 fi;
7324
7325           eval "$ac_cv_use_radiobtn"
7326           if test "$no_cache" != 1; then
7327             echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7328           fi
7329
7330           if test "$wxUSE_RADIOBTN" = yes; then
7331             echo "$as_me:$LINENO: result: yes" >&5
7332 echo "${ECHO_T}yes" >&6
7333           else
7334             echo "$as_me:$LINENO: result: no" >&5
7335 echo "${ECHO_T}no" >&6
7336           fi
7337
7338
7339           enablestring=
7340           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7341 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7342           no_cache=0
7343           # Check whether --enable-sash or --disable-sash was given.
7344 if test "${enable_sash+set}" = set; then
7345   enableval="$enable_sash"
7346
7347                           if test "$enableval" = yes; then
7348                             ac_cv_use_sash='wxUSE_SASH=yes'
7349                           else
7350                             ac_cv_use_sash='wxUSE_SASH=no'
7351                           fi
7352
7353 else
7354
7355                           LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7356                           if test "x$LINE" != x ; then
7357                             eval "DEFAULT_$LINE"
7358                           else
7359                             no_cache=1
7360                           fi
7361
7362                           ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7363
7364 fi;
7365
7366           eval "$ac_cv_use_sash"
7367           if test "$no_cache" != 1; then
7368             echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7369           fi
7370
7371           if test "$wxUSE_SASH" = yes; then
7372             echo "$as_me:$LINENO: result: yes" >&5
7373 echo "${ECHO_T}yes" >&6
7374           else
7375             echo "$as_me:$LINENO: result: no" >&5
7376 echo "${ECHO_T}no" >&6
7377           fi
7378
7379
7380           enablestring=
7381           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7382 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7383           no_cache=0
7384           # Check whether --enable-scrollbar or --disable-scrollbar was given.
7385 if test "${enable_scrollbar+set}" = set; then
7386   enableval="$enable_scrollbar"
7387
7388                           if test "$enableval" = yes; then
7389                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7390                           else
7391                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7392                           fi
7393
7394 else
7395
7396                           LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7397                           if test "x$LINE" != x ; then
7398                             eval "DEFAULT_$LINE"
7399                           else
7400                             no_cache=1
7401                           fi
7402
7403                           ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7404
7405 fi;
7406
7407           eval "$ac_cv_use_scrollbar"
7408           if test "$no_cache" != 1; then
7409             echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7410           fi
7411
7412           if test "$wxUSE_SCROLLBAR" = yes; then
7413             echo "$as_me:$LINENO: result: yes" >&5
7414 echo "${ECHO_T}yes" >&6
7415           else
7416             echo "$as_me:$LINENO: result: no" >&5
7417 echo "${ECHO_T}no" >&6
7418           fi
7419
7420
7421           enablestring=
7422           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7423 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7424           no_cache=0
7425           # Check whether --enable-slider or --disable-slider was given.
7426 if test "${enable_slider+set}" = set; then
7427   enableval="$enable_slider"
7428
7429                           if test "$enableval" = yes; then
7430                             ac_cv_use_slider='wxUSE_SLIDER=yes'
7431                           else
7432                             ac_cv_use_slider='wxUSE_SLIDER=no'
7433                           fi
7434
7435 else
7436
7437                           LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7438                           if test "x$LINE" != x ; then
7439                             eval "DEFAULT_$LINE"
7440                           else
7441                             no_cache=1
7442                           fi
7443
7444                           ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
7445
7446 fi;
7447
7448           eval "$ac_cv_use_slider"
7449           if test "$no_cache" != 1; then
7450             echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7451           fi
7452
7453           if test "$wxUSE_SLIDER" = yes; then
7454             echo "$as_me:$LINENO: result: yes" >&5
7455 echo "${ECHO_T}yes" >&6
7456           else
7457             echo "$as_me:$LINENO: result: no" >&5
7458 echo "${ECHO_T}no" >&6
7459           fi
7460
7461
7462           enablestring=
7463           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7464 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
7465           no_cache=0
7466           # Check whether --enable-spinbtn or --disable-spinbtn was given.
7467 if test "${enable_spinbtn+set}" = set; then
7468   enableval="$enable_spinbtn"
7469
7470                           if test "$enableval" = yes; then
7471                             ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7472                           else
7473                             ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7474                           fi
7475
7476 else
7477
7478                           LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7479                           if test "x$LINE" != x ; then
7480                             eval "DEFAULT_$LINE"
7481                           else
7482                             no_cache=1
7483                           fi
7484
7485                           ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
7486
7487 fi;
7488
7489           eval "$ac_cv_use_spinbtn"
7490           if test "$no_cache" != 1; then
7491             echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7492           fi
7493
7494           if test "$wxUSE_SPINBTN" = yes; then
7495             echo "$as_me:$LINENO: result: yes" >&5
7496 echo "${ECHO_T}yes" >&6
7497           else
7498             echo "$as_me:$LINENO: result: no" >&5
7499 echo "${ECHO_T}no" >&6
7500           fi
7501
7502
7503           enablestring=
7504           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7505 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
7506           no_cache=0
7507           # Check whether --enable-spinctrl or --disable-spinctrl was given.
7508 if test "${enable_spinctrl+set}" = set; then
7509   enableval="$enable_spinctrl"
7510
7511                           if test "$enableval" = yes; then
7512                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7513                           else
7514                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7515                           fi
7516
7517 else
7518
7519                           LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7520                           if test "x$LINE" != x ; then
7521                             eval "DEFAULT_$LINE"
7522                           else
7523                             no_cache=1
7524                           fi
7525
7526                           ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
7527
7528 fi;
7529
7530           eval "$ac_cv_use_spinctrl"
7531           if test "$no_cache" != 1; then
7532             echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7533           fi
7534
7535           if test "$wxUSE_SPINCTRL" = yes; then
7536             echo "$as_me:$LINENO: result: yes" >&5
7537 echo "${ECHO_T}yes" >&6
7538           else
7539             echo "$as_me:$LINENO: result: no" >&5
7540 echo "${ECHO_T}no" >&6
7541           fi
7542
7543
7544           enablestring=
7545           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7546 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
7547           no_cache=0
7548           # Check whether --enable-splitter or --disable-splitter was given.
7549 if test "${enable_splitter+set}" = set; then
7550   enableval="$enable_splitter"
7551
7552                           if test "$enableval" = yes; then
7553                             ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7554                           else
7555                             ac_cv_use_splitter='wxUSE_SPLITTER=no'
7556                           fi
7557
7558 else
7559
7560                           LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7561                           if test "x$LINE" != x ; then
7562                             eval "DEFAULT_$LINE"
7563                           else
7564                             no_cache=1
7565                           fi
7566
7567                           ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
7568
7569 fi;
7570
7571           eval "$ac_cv_use_splitter"
7572           if test "$no_cache" != 1; then
7573             echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7574           fi
7575
7576           if test "$wxUSE_SPLITTER" = yes; then
7577             echo "$as_me:$LINENO: result: yes" >&5
7578 echo "${ECHO_T}yes" >&6
7579           else
7580             echo "$as_me:$LINENO: result: no" >&5
7581 echo "${ECHO_T}no" >&6
7582           fi
7583
7584
7585           enablestring=
7586           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7587 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
7588           no_cache=0
7589           # Check whether --enable-statbmp or --disable-statbmp was given.
7590 if test "${enable_statbmp+set}" = set; then
7591   enableval="$enable_statbmp"
7592
7593                           if test "$enableval" = yes; then
7594                             ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7595                           else
7596                             ac_cv_use_statbmp='wxUSE_STATBMP=no'
7597                           fi
7598
7599 else
7600
7601                           LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7602                           if test "x$LINE" != x ; then
7603                             eval "DEFAULT_$LINE"
7604                           else
7605                             no_cache=1
7606                           fi
7607
7608                           ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
7609
7610 fi;
7611
7612           eval "$ac_cv_use_statbmp"
7613           if test "$no_cache" != 1; then
7614             echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7615           fi
7616
7617           if test "$wxUSE_STATBMP" = yes; then
7618             echo "$as_me:$LINENO: result: yes" >&5
7619 echo "${ECHO_T}yes" >&6
7620           else
7621             echo "$as_me:$LINENO: result: no" >&5
7622 echo "${ECHO_T}no" >&6
7623           fi
7624
7625
7626           enablestring=
7627           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7628 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
7629           no_cache=0
7630           # Check whether --enable-statbox or --disable-statbox was given.
7631 if test "${enable_statbox+set}" = set; then
7632   enableval="$enable_statbox"
7633
7634                           if test "$enableval" = yes; then
7635                             ac_cv_use_statbox='wxUSE_STATBOX=yes'
7636                           else
7637                             ac_cv_use_statbox='wxUSE_STATBOX=no'
7638                           fi
7639
7640 else
7641
7642                           LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7643                           if test "x$LINE" != x ; then
7644                             eval "DEFAULT_$LINE"
7645                           else
7646                             no_cache=1
7647                           fi
7648
7649                           ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
7650
7651 fi;
7652
7653           eval "$ac_cv_use_statbox"
7654           if test "$no_cache" != 1; then
7655             echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7656           fi
7657
7658           if test "$wxUSE_STATBOX" = yes; then
7659             echo "$as_me:$LINENO: result: yes" >&5
7660 echo "${ECHO_T}yes" >&6
7661           else
7662             echo "$as_me:$LINENO: result: no" >&5
7663 echo "${ECHO_T}no" >&6
7664           fi
7665
7666
7667           enablestring=
7668           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7669 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
7670           no_cache=0
7671           # Check whether --enable-statline or --disable-statline was given.
7672 if test "${enable_statline+set}" = set; then
7673   enableval="$enable_statline"
7674
7675                           if test "$enableval" = yes; then
7676                             ac_cv_use_statline='wxUSE_STATLINE=yes'
7677                           else
7678                             ac_cv_use_statline='wxUSE_STATLINE=no'
7679                           fi
7680
7681 else
7682
7683                           LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7684                           if test "x$LINE" != x ; then
7685                             eval "DEFAULT_$LINE"
7686                           else
7687                             no_cache=1
7688                           fi
7689
7690                           ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
7691
7692 fi;
7693
7694           eval "$ac_cv_use_statline"
7695           if test "$no_cache" != 1; then
7696             echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7697           fi
7698
7699           if test "$wxUSE_STATLINE" = yes; then
7700             echo "$as_me:$LINENO: result: yes" >&5
7701 echo "${ECHO_T}yes" >&6
7702           else
7703             echo "$as_me:$LINENO: result: no" >&5
7704 echo "${ECHO_T}no" >&6
7705           fi
7706
7707
7708           enablestring=
7709           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
7710 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
7711           no_cache=0
7712           # Check whether --enable-stattext or --disable-stattext was given.
7713 if test "${enable_stattext+set}" = set; then
7714   enableval="$enable_stattext"
7715
7716                           if test "$enableval" = yes; then
7717                             ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7718                           else
7719                             ac_cv_use_stattext='wxUSE_STATTEXT=no'
7720                           fi
7721
7722 else
7723
7724                           LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7725                           if test "x$LINE" != x ; then
7726                             eval "DEFAULT_$LINE"
7727                           else
7728                             no_cache=1
7729                           fi
7730
7731                           ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
7732
7733 fi;
7734
7735           eval "$ac_cv_use_stattext"
7736           if test "$no_cache" != 1; then
7737             echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7738           fi
7739
7740           if test "$wxUSE_STATTEXT" = yes; then
7741             echo "$as_me:$LINENO: result: yes" >&5
7742 echo "${ECHO_T}yes" >&6
7743           else
7744             echo "$as_me:$LINENO: result: no" >&5
7745 echo "${ECHO_T}no" >&6
7746           fi
7747
7748
7749           enablestring=
7750           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
7751 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
7752           no_cache=0
7753           # Check whether --enable-statusbar or --disable-statusbar was given.
7754 if test "${enable_statusbar+set}" = set; then
7755   enableval="$enable_statusbar"
7756
7757                           if test "$enableval" = yes; then
7758                             ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7759                           else
7760                             ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7761                           fi
7762
7763 else
7764
7765                           LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7766                           if test "x$LINE" != x ; then
7767                             eval "DEFAULT_$LINE"
7768                           else
7769                             no_cache=1
7770                           fi
7771
7772                           ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
7773
7774 fi;
7775
7776           eval "$ac_cv_use_statusbar"
7777           if test "$no_cache" != 1; then
7778             echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7779           fi
7780
7781           if test "$wxUSE_STATUSBAR" = yes; then
7782             echo "$as_me:$LINENO: result: yes" >&5
7783 echo "${ECHO_T}yes" >&6
7784           else
7785             echo "$as_me:$LINENO: result: no" >&5
7786 echo "${ECHO_T}no" >&6
7787           fi
7788
7789
7790           enablestring=
7791           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
7792 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
7793           no_cache=0
7794           # Check whether --enable-tabdialog or --disable-tabdialog was given.
7795 if test "${enable_tabdialog+set}" = set; then
7796   enableval="$enable_tabdialog"
7797
7798                           if test "$enableval" = yes; then
7799                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7800                           else
7801                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7802                           fi
7803
7804 else
7805
7806                           LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7807                           if test "x$LINE" != x ; then
7808                             eval "DEFAULT_$LINE"
7809                           else
7810                             no_cache=1
7811                           fi
7812
7813                           ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
7814
7815 fi;
7816
7817           eval "$ac_cv_use_tabdialog"
7818           if test "$no_cache" != 1; then
7819             echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7820           fi
7821
7822           if test "$wxUSE_TABDIALOG" = yes; then
7823             echo "$as_me:$LINENO: result: yes" >&5
7824 echo "${ECHO_T}yes" >&6
7825           else
7826             echo "$as_me:$LINENO: result: no" >&5
7827 echo "${ECHO_T}no" >&6
7828           fi
7829
7830
7831           enablestring=
7832           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
7833 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
7834           no_cache=0
7835           # Check whether --enable-textctrl or --disable-textctrl was given.
7836 if test "${enable_textctrl+set}" = set; then
7837   enableval="$enable_textctrl"
7838
7839                           if test "$enableval" = yes; then
7840                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7841                           else
7842                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7843                           fi
7844
7845 else
7846
7847                           LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7848                           if test "x$LINE" != x ; then
7849                             eval "DEFAULT_$LINE"
7850                           else
7851                             no_cache=1
7852                           fi
7853
7854                           ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
7855
7856 fi;
7857
7858           eval "$ac_cv_use_textctrl"
7859           if test "$no_cache" != 1; then
7860             echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7861           fi
7862
7863           if test "$wxUSE_TEXTCTRL" = yes; then
7864             echo "$as_me:$LINENO: result: yes" >&5
7865 echo "${ECHO_T}yes" >&6
7866           else
7867             echo "$as_me:$LINENO: result: no" >&5
7868 echo "${ECHO_T}no" >&6
7869           fi
7870
7871
7872           enablestring=
7873           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
7874 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
7875           no_cache=0
7876           # Check whether --enable-togglebtn or --disable-togglebtn was given.
7877 if test "${enable_togglebtn+set}" = set; then
7878   enableval="$enable_togglebtn"
7879
7880                           if test "$enableval" = yes; then
7881                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7882                           else
7883                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7884                           fi
7885
7886 else
7887
7888                           LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7889                           if test "x$LINE" != x ; then
7890                             eval "DEFAULT_$LINE"
7891                           else
7892                             no_cache=1
7893                           fi
7894
7895                           ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
7896
7897 fi;
7898
7899           eval "$ac_cv_use_togglebtn"
7900           if test "$no_cache" != 1; then
7901             echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7902           fi
7903
7904           if test "$wxUSE_TOGGLEBTN" = yes; then
7905             echo "$as_me:$LINENO: result: yes" >&5
7906 echo "${ECHO_T}yes" >&6
7907           else
7908             echo "$as_me:$LINENO: result: no" >&5
7909 echo "${ECHO_T}no" >&6
7910           fi
7911
7912
7913           enablestring=
7914           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
7915 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
7916           no_cache=0
7917           # Check whether --enable-toolbar or --disable-toolbar was given.
7918 if test "${enable_toolbar+set}" = set; then
7919   enableval="$enable_toolbar"
7920
7921                           if test "$enableval" = yes; then
7922                             ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7923                           else
7924                             ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7925                           fi
7926
7927 else
7928
7929                           LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7930                           if test "x$LINE" != x ; then
7931                             eval "DEFAULT_$LINE"
7932                           else
7933                             no_cache=1
7934                           fi
7935
7936                           ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7937
7938 fi;
7939
7940           eval "$ac_cv_use_toolbar"
7941           if test "$no_cache" != 1; then
7942             echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7943           fi
7944
7945           if test "$wxUSE_TOOLBAR" = yes; then
7946             echo "$as_me:$LINENO: result: yes" >&5
7947 echo "${ECHO_T}yes" >&6
7948           else
7949             echo "$as_me:$LINENO: result: no" >&5
7950 echo "${ECHO_T}no" >&6
7951           fi
7952
7953
7954           enablestring=
7955           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
7956 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
7957           no_cache=0
7958           # Check whether --enable-tbarnative or --disable-tbarnative was given.
7959 if test "${enable_tbarnative+set}" = set; then
7960   enableval="$enable_tbarnative"
7961
7962                           if test "$enableval" = yes; then
7963                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7964                           else
7965                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7966                           fi
7967
7968 else
7969
7970                           LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7971                           if test "x$LINE" != x ; then
7972                             eval "DEFAULT_$LINE"
7973                           else
7974                             no_cache=1
7975                           fi
7976
7977                           ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7978
7979 fi;
7980
7981           eval "$ac_cv_use_tbarnative"
7982           if test "$no_cache" != 1; then
7983             echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7984           fi
7985
7986           if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7987             echo "$as_me:$LINENO: result: yes" >&5
7988 echo "${ECHO_T}yes" >&6
7989           else
7990             echo "$as_me:$LINENO: result: no" >&5
7991 echo "${ECHO_T}no" >&6
7992           fi
7993
7994
7995           enablestring=
7996           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
7997 echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
7998           no_cache=0
7999           # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8000 if test "${enable_tbarsmpl+set}" = set; then
8001   enableval="$enable_tbarsmpl"
8002
8003                           if test "$enableval" = yes; then
8004                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8005                           else
8006                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8007                           fi
8008
8009 else
8010
8011                           LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8012                           if test "x$LINE" != x ; then
8013                             eval "DEFAULT_$LINE"
8014                           else
8015                             no_cache=1
8016                           fi
8017
8018                           ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8019
8020 fi;
8021
8022           eval "$ac_cv_use_tbarsmpl"
8023           if test "$no_cache" != 1; then
8024             echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8025           fi
8026
8027           if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8028             echo "$as_me:$LINENO: result: yes" >&5
8029 echo "${ECHO_T}yes" >&6
8030           else
8031             echo "$as_me:$LINENO: result: no" >&5
8032 echo "${ECHO_T}no" >&6
8033           fi
8034
8035
8036           enablestring=
8037           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8038 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8039           no_cache=0
8040           # Check whether --enable-treectrl or --disable-treectrl was given.
8041 if test "${enable_treectrl+set}" = set; then
8042   enableval="$enable_treectrl"
8043
8044                           if test "$enableval" = yes; then
8045                             ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8046                           else
8047                             ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8048                           fi
8049
8050 else
8051
8052                           LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8053                           if test "x$LINE" != x ; then
8054                             eval "DEFAULT_$LINE"
8055                           else
8056                             no_cache=1
8057                           fi
8058
8059                           ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8060
8061 fi;
8062
8063           eval "$ac_cv_use_treectrl"
8064           if test "$no_cache" != 1; then
8065             echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8066           fi
8067
8068           if test "$wxUSE_TREECTRL" = yes; then
8069             echo "$as_me:$LINENO: result: yes" >&5
8070 echo "${ECHO_T}yes" >&6
8071           else
8072             echo "$as_me:$LINENO: result: no" >&5
8073 echo "${ECHO_T}no" >&6
8074           fi
8075
8076
8077           enablestring=
8078           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8079 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8080           no_cache=0
8081           # Check whether --enable-tipwindow or --disable-tipwindow was given.
8082 if test "${enable_tipwindow+set}" = set; then
8083   enableval="$enable_tipwindow"
8084
8085                           if test "$enableval" = yes; then
8086                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8087                           else
8088                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8089                           fi
8090
8091 else
8092
8093                           LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8094                           if test "x$LINE" != x ; then
8095                             eval "DEFAULT_$LINE"
8096                           else
8097                             no_cache=1
8098                           fi
8099
8100                           ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8101
8102 fi;
8103
8104           eval "$ac_cv_use_tipwindow"
8105           if test "$no_cache" != 1; then
8106             echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8107           fi
8108
8109           if test "$wxUSE_TIPWINDOW" = yes; then
8110             echo "$as_me:$LINENO: result: yes" >&5
8111 echo "${ECHO_T}yes" >&6
8112           else
8113             echo "$as_me:$LINENO: result: no" >&5
8114 echo "${ECHO_T}no" >&6
8115           fi
8116
8117
8118           enablestring=
8119           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8120 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8121           no_cache=0
8122           # Check whether --enable-popupwin or --disable-popupwin was given.
8123 if test "${enable_popupwin+set}" = set; then
8124   enableval="$enable_popupwin"
8125
8126                           if test "$enableval" = yes; then
8127                             ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8128                           else
8129                             ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8130                           fi
8131
8132 else
8133
8134                           LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8135                           if test "x$LINE" != x ; then
8136                             eval "DEFAULT_$LINE"
8137                           else
8138                             no_cache=1
8139                           fi
8140
8141                           ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8142
8143 fi;
8144
8145           eval "$ac_cv_use_popupwin"
8146           if test "$no_cache" != 1; then
8147             echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8148           fi
8149
8150           if test "$wxUSE_POPUPWIN" = yes; then
8151             echo "$as_me:$LINENO: result: yes" >&5
8152 echo "${ECHO_T}yes" >&6
8153           else
8154             echo "$as_me:$LINENO: result: no" >&5
8155 echo "${ECHO_T}no" >&6
8156           fi
8157
8158
8159
8160
8161           enablestring=
8162           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8163 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8164           no_cache=0
8165           # Check whether --enable-commondlg or --disable-commondlg was given.
8166 if test "${enable_commondlg+set}" = set; then
8167   enableval="$enable_commondlg"
8168
8169                           if test "$enableval" = yes; then
8170                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8171                           else
8172                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8173                           fi
8174
8175 else
8176
8177                           LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8178                           if test "x$LINE" != x ; then
8179                             eval "DEFAULT_$LINE"
8180                           else
8181                             no_cache=1
8182                           fi
8183
8184                           ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8185
8186 fi;
8187
8188           eval "$ac_cv_use_commondlg"
8189           if test "$no_cache" != 1; then
8190             echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8191           fi
8192
8193           if test "$wxUSE_COMMONDLGS" = yes; then
8194             echo "$as_me:$LINENO: result: yes" >&5
8195 echo "${ECHO_T}yes" >&6
8196           else
8197             echo "$as_me:$LINENO: result: no" >&5
8198 echo "${ECHO_T}no" >&6
8199           fi
8200
8201
8202           enablestring=
8203           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8204 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8205           no_cache=0
8206           # Check whether --enable-choicedlg or --disable-choicedlg was given.
8207 if test "${enable_choicedlg+set}" = set; then
8208   enableval="$enable_choicedlg"
8209
8210                           if test "$enableval" = yes; then
8211                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8212                           else
8213                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8214                           fi
8215
8216 else
8217
8218                           LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8219                           if test "x$LINE" != x ; then
8220                             eval "DEFAULT_$LINE"
8221                           else
8222                             no_cache=1
8223                           fi
8224
8225                           ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8226
8227 fi;
8228
8229           eval "$ac_cv_use_choicedlg"
8230           if test "$no_cache" != 1; then
8231             echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8232           fi
8233
8234           if test "$wxUSE_CHOICEDLG" = yes; then
8235             echo "$as_me:$LINENO: result: yes" >&5
8236 echo "${ECHO_T}yes" >&6
8237           else
8238             echo "$as_me:$LINENO: result: no" >&5
8239 echo "${ECHO_T}no" >&6
8240           fi
8241
8242
8243           enablestring=
8244           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8245 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8246           no_cache=0
8247           # Check whether --enable-coldlg or --disable-coldlg was given.
8248 if test "${enable_coldlg+set}" = set; then
8249   enableval="$enable_coldlg"
8250
8251                           if test "$enableval" = yes; then
8252                             ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8253                           else
8254                             ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8255                           fi
8256
8257 else
8258
8259                           LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8260                           if test "x$LINE" != x ; then
8261                             eval "DEFAULT_$LINE"
8262                           else
8263                             no_cache=1
8264                           fi
8265
8266                           ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8267
8268 fi;
8269
8270           eval "$ac_cv_use_coldlg"
8271           if test "$no_cache" != 1; then
8272             echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8273           fi
8274
8275           if test "$wxUSE_COLOURDLG" = yes; then
8276             echo "$as_me:$LINENO: result: yes" >&5
8277 echo "${ECHO_T}yes" >&6
8278           else
8279             echo "$as_me:$LINENO: result: no" >&5
8280 echo "${ECHO_T}no" >&6
8281           fi
8282
8283
8284           enablestring=
8285           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8286 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8287           no_cache=0
8288           # Check whether --enable-filedlg or --disable-filedlg was given.
8289 if test "${enable_filedlg+set}" = set; then
8290   enableval="$enable_filedlg"
8291
8292                           if test "$enableval" = yes; then
8293                             ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8294                           else
8295                             ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8296                           fi
8297
8298 else
8299
8300                           LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8301                           if test "x$LINE" != x ; then
8302                             eval "DEFAULT_$LINE"
8303                           else
8304                             no_cache=1
8305                           fi
8306
8307                           ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8308
8309 fi;
8310
8311           eval "$ac_cv_use_filedlg"
8312           if test "$no_cache" != 1; then
8313             echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8314           fi
8315
8316           if test "$wxUSE_FILEDLG" = yes; then
8317             echo "$as_me:$LINENO: result: yes" >&5
8318 echo "${ECHO_T}yes" >&6
8319           else
8320             echo "$as_me:$LINENO: result: no" >&5
8321 echo "${ECHO_T}no" >&6
8322           fi
8323
8324
8325           enablestring=
8326           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8327 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8328           no_cache=0
8329           # Check whether --enable-finddlg or --disable-finddlg was given.
8330 if test "${enable_finddlg+set}" = set; then
8331   enableval="$enable_finddlg"
8332
8333                           if test "$enableval" = yes; then
8334                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8335                           else
8336                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8337                           fi
8338
8339 else
8340
8341                           LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8342                           if test "x$LINE" != x ; then
8343                             eval "DEFAULT_$LINE"
8344                           else
8345                             no_cache=1
8346                           fi
8347
8348                           ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8349
8350 fi;
8351
8352           eval "$ac_cv_use_finddlg"
8353           if test "$no_cache" != 1; then
8354             echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8355           fi
8356
8357           if test "$wxUSE_FINDREPLDLG" = yes; then
8358             echo "$as_me:$LINENO: result: yes" >&5
8359 echo "${ECHO_T}yes" >&6
8360           else
8361             echo "$as_me:$LINENO: result: no" >&5
8362 echo "${ECHO_T}no" >&6
8363           fi
8364
8365
8366           enablestring=
8367           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8368 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8369           no_cache=0
8370           # Check whether --enable-fontdlg or --disable-fontdlg was given.
8371 if test "${enable_fontdlg+set}" = set; then
8372   enableval="$enable_fontdlg"
8373
8374                           if test "$enableval" = yes; then
8375                             ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8376                           else
8377                             ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8378                           fi
8379
8380 else
8381
8382                           LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8383                           if test "x$LINE" != x ; then
8384                             eval "DEFAULT_$LINE"
8385                           else
8386                             no_cache=1
8387                           fi
8388
8389                           ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8390
8391 fi;
8392
8393           eval "$ac_cv_use_fontdlg"
8394           if test "$no_cache" != 1; then
8395             echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8396           fi
8397
8398           if test "$wxUSE_FONTDLG" = yes; then
8399             echo "$as_me:$LINENO: result: yes" >&5
8400 echo "${ECHO_T}yes" >&6
8401           else
8402             echo "$as_me:$LINENO: result: no" >&5
8403 echo "${ECHO_T}no" >&6
8404           fi
8405
8406
8407           enablestring=
8408           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8409 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8410           no_cache=0
8411           # Check whether --enable-dirdlg or --disable-dirdlg was given.
8412 if test "${enable_dirdlg+set}" = set; then
8413   enableval="$enable_dirdlg"
8414
8415                           if test "$enableval" = yes; then
8416                             ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8417                           else
8418                             ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8419                           fi
8420
8421 else
8422
8423                           LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8424                           if test "x$LINE" != x ; then
8425                             eval "DEFAULT_$LINE"
8426                           else
8427                             no_cache=1
8428                           fi
8429
8430                           ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
8431
8432 fi;
8433
8434           eval "$ac_cv_use_dirdlg"
8435           if test "$no_cache" != 1; then
8436             echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
8437           fi
8438
8439           if test "$wxUSE_DIRDLG" = yes; then
8440             echo "$as_me:$LINENO: result: yes" >&5
8441 echo "${ECHO_T}yes" >&6
8442           else
8443             echo "$as_me:$LINENO: result: no" >&5
8444 echo "${ECHO_T}no" >&6
8445           fi
8446
8447
8448           enablestring=
8449           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8450 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
8451           no_cache=0
8452           # Check whether --enable-msgdlg or --disable-msgdlg was given.
8453 if test "${enable_msgdlg+set}" = set; then
8454   enableval="$enable_msgdlg"
8455
8456                           if test "$enableval" = yes; then
8457                             ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
8458                           else
8459                             ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
8460                           fi
8461
8462 else
8463
8464                           LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
8465                           if test "x$LINE" != x ; then
8466                             eval "DEFAULT_$LINE"
8467                           else
8468                             no_cache=1
8469                           fi
8470
8471                           ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
8472
8473 fi;
8474
8475           eval "$ac_cv_use_msgdlg"
8476           if test "$no_cache" != 1; then
8477             echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
8478           fi
8479
8480           if test "$wxUSE_MSGDLG" = yes; then
8481             echo "$as_me:$LINENO: result: yes" >&5
8482 echo "${ECHO_T}yes" >&6
8483           else
8484             echo "$as_me:$LINENO: result: no" >&5
8485 echo "${ECHO_T}no" >&6
8486           fi
8487
8488
8489           enablestring=
8490           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8491 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
8492           no_cache=0
8493           # Check whether --enable-numberdlg or --disable-numberdlg was given.
8494 if test "${enable_numberdlg+set}" = set; then
8495   enableval="$enable_numberdlg"
8496
8497                           if test "$enableval" = yes; then
8498                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
8499                           else
8500                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
8501                           fi
8502
8503 else
8504
8505                           LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
8506                           if test "x$LINE" != x ; then
8507                             eval "DEFAULT_$LINE"
8508                           else
8509                             no_cache=1
8510                           fi
8511
8512                           ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
8513
8514 fi;
8515
8516           eval "$ac_cv_use_numberdlg"
8517           if test "$no_cache" != 1; then
8518             echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
8519           fi
8520
8521           if test "$wxUSE_NUMBERDLG" = yes; then
8522             echo "$as_me:$LINENO: result: yes" >&5
8523 echo "${ECHO_T}yes" >&6
8524           else
8525             echo "$as_me:$LINENO: result: no" >&5
8526 echo "${ECHO_T}no" >&6
8527           fi
8528
8529
8530           enablestring=
8531           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8532 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
8533           no_cache=0
8534           # Check whether --enable-splash or --disable-splash was given.
8535 if test "${enable_splash+set}" = set; then
8536   enableval="$enable_splash"
8537
8538                           if test "$enableval" = yes; then
8539                             ac_cv_use_splash='wxUSE_SPLASH=yes'
8540                           else
8541                             ac_cv_use_splash='wxUSE_SPLASH=no'
8542                           fi
8543
8544 else
8545
8546                           LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8547                           if test "x$LINE" != x ; then
8548                             eval "DEFAULT_$LINE"
8549                           else
8550                             no_cache=1
8551                           fi
8552
8553                           ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
8554
8555 fi;
8556
8557           eval "$ac_cv_use_splash"
8558           if test "$no_cache" != 1; then
8559             echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8560           fi
8561
8562           if test "$wxUSE_SPLASH" = yes; then
8563             echo "$as_me:$LINENO: result: yes" >&5
8564 echo "${ECHO_T}yes" >&6
8565           else
8566             echo "$as_me:$LINENO: result: no" >&5
8567 echo "${ECHO_T}no" >&6
8568           fi
8569
8570
8571           enablestring=
8572           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8573 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
8574           no_cache=0
8575           # Check whether --enable-textdlg or --disable-textdlg was given.
8576 if test "${enable_textdlg+set}" = set; then
8577   enableval="$enable_textdlg"
8578
8579                           if test "$enableval" = yes; then
8580                             ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8581                           else
8582                             ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8583                           fi
8584
8585 else
8586
8587                           LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8588                           if test "x$LINE" != x ; then
8589                             eval "DEFAULT_$LINE"
8590                           else
8591                             no_cache=1
8592                           fi
8593
8594                           ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
8595
8596 fi;
8597
8598           eval "$ac_cv_use_textdlg"
8599           if test "$no_cache" != 1; then
8600             echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8601           fi
8602
8603           if test "$wxUSE_TEXTDLG" = yes; then
8604             echo "$as_me:$LINENO: result: yes" >&5
8605 echo "${ECHO_T}yes" >&6
8606           else
8607             echo "$as_me:$LINENO: result: no" >&5
8608 echo "${ECHO_T}no" >&6
8609           fi
8610
8611
8612           enablestring=
8613           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8614 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
8615           no_cache=0
8616           # Check whether --enable-tipdlg or --disable-tipdlg was given.
8617 if test "${enable_tipdlg+set}" = set; then
8618   enableval="$enable_tipdlg"
8619
8620                           if test "$enableval" = yes; then
8621                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8622                           else
8623                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8624                           fi
8625
8626 else
8627
8628                           LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8629                           if test "x$LINE" != x ; then
8630                             eval "DEFAULT_$LINE"
8631                           else
8632                             no_cache=1
8633                           fi
8634
8635                           ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
8636
8637 fi;
8638
8639           eval "$ac_cv_use_tipdlg"
8640           if test "$no_cache" != 1; then
8641             echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8642           fi
8643
8644           if test "$wxUSE_STARTUP_TIPS" = yes; then
8645             echo "$as_me:$LINENO: result: yes" >&5
8646 echo "${ECHO_T}yes" >&6
8647           else
8648             echo "$as_me:$LINENO: result: no" >&5
8649 echo "${ECHO_T}no" >&6
8650           fi
8651
8652
8653           enablestring=
8654           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8655 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
8656           no_cache=0
8657           # Check whether --enable-progressdlg or --disable-progressdlg was given.
8658 if test "${enable_progressdlg+set}" = set; then
8659   enableval="$enable_progressdlg"
8660
8661                           if test "$enableval" = yes; then
8662                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8663                           else
8664                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8665                           fi
8666
8667 else
8668
8669                           LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8670                           if test "x$LINE" != x ; then
8671                             eval "DEFAULT_$LINE"
8672                           else
8673                             no_cache=1
8674                           fi
8675
8676                           ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
8677
8678 fi;
8679
8680           eval "$ac_cv_use_progressdlg"
8681           if test "$no_cache" != 1; then
8682             echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8683           fi
8684
8685           if test "$wxUSE_PROGRESSDLG" = yes; then
8686             echo "$as_me:$LINENO: result: yes" >&5
8687 echo "${ECHO_T}yes" >&6
8688           else
8689             echo "$as_me:$LINENO: result: no" >&5
8690 echo "${ECHO_T}no" >&6
8691           fi
8692
8693
8694           enablestring=
8695           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
8696 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
8697           no_cache=0
8698           # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8699 if test "${enable_wizarddlg+set}" = set; then
8700   enableval="$enable_wizarddlg"
8701
8702                           if test "$enableval" = yes; then
8703                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8704                           else
8705                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8706                           fi
8707
8708 else
8709
8710                           LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8711                           if test "x$LINE" != x ; then
8712                             eval "DEFAULT_$LINE"
8713                           else
8714                             no_cache=1
8715                           fi
8716
8717                           ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
8718
8719 fi;
8720
8721           eval "$ac_cv_use_wizarddlg"
8722           if test "$no_cache" != 1; then
8723             echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8724           fi
8725
8726           if test "$wxUSE_WIZARDDLG" = yes; then
8727             echo "$as_me:$LINENO: result: yes" >&5
8728 echo "${ECHO_T}yes" >&6
8729           else
8730             echo "$as_me:$LINENO: result: no" >&5
8731 echo "${ECHO_T}no" >&6
8732           fi
8733
8734
8735
8736
8737           enablestring=
8738           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
8739 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
8740           no_cache=0
8741           # Check whether --enable-menus or --disable-menus was given.
8742 if test "${enable_menus+set}" = set; then
8743   enableval="$enable_menus"
8744
8745                           if test "$enableval" = yes; then
8746                             ac_cv_use_menus='wxUSE_MENUS=yes'
8747                           else
8748                             ac_cv_use_menus='wxUSE_MENUS=no'
8749                           fi
8750
8751 else
8752
8753                           LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8754                           if test "x$LINE" != x ; then
8755                             eval "DEFAULT_$LINE"
8756                           else
8757                             no_cache=1
8758                           fi
8759
8760                           ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
8761
8762 fi;
8763
8764           eval "$ac_cv_use_menus"
8765           if test "$no_cache" != 1; then
8766             echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8767           fi
8768
8769           if test "$wxUSE_MENUS" = yes; then
8770             echo "$as_me:$LINENO: result: yes" >&5
8771 echo "${ECHO_T}yes" >&6
8772           else
8773             echo "$as_me:$LINENO: result: no" >&5
8774 echo "${ECHO_T}no" >&6
8775           fi
8776
8777
8778           enablestring=
8779           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
8780 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
8781           no_cache=0
8782           # Check whether --enable-miniframe or --disable-miniframe was given.
8783 if test "${enable_miniframe+set}" = set; then
8784   enableval="$enable_miniframe"
8785
8786                           if test "$enableval" = yes; then
8787                             ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8788                           else
8789                             ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8790                           fi
8791
8792 else
8793
8794                           LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8795                           if test "x$LINE" != x ; then
8796                             eval "DEFAULT_$LINE"
8797                           else
8798                             no_cache=1
8799                           fi
8800
8801                           ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
8802
8803 fi;
8804
8805           eval "$ac_cv_use_miniframe"
8806           if test "$no_cache" != 1; then
8807             echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8808           fi
8809
8810           if test "$wxUSE_MINIFRAME" = yes; then
8811             echo "$as_me:$LINENO: result: yes" >&5
8812 echo "${ECHO_T}yes" >&6
8813           else
8814             echo "$as_me:$LINENO: result: no" >&5
8815 echo "${ECHO_T}no" >&6
8816           fi
8817
8818
8819           enablestring=
8820           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
8821 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
8822           no_cache=0
8823           # Check whether --enable-tooltips or --disable-tooltips was given.
8824 if test "${enable_tooltips+set}" = set; then
8825   enableval="$enable_tooltips"
8826
8827                           if test "$enableval" = yes; then
8828                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8829                           else
8830                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8831                           fi
8832
8833 else
8834
8835                           LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8836                           if test "x$LINE" != x ; then
8837                             eval "DEFAULT_$LINE"
8838                           else
8839                             no_cache=1
8840                           fi
8841
8842                           ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
8843
8844 fi;
8845
8846           eval "$ac_cv_use_tooltips"
8847           if test "$no_cache" != 1; then
8848             echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8849           fi
8850
8851           if test "$wxUSE_TOOLTIPS" = yes; then
8852             echo "$as_me:$LINENO: result: yes" >&5
8853 echo "${ECHO_T}yes" >&6
8854           else
8855             echo "$as_me:$LINENO: result: no" >&5
8856 echo "${ECHO_T}no" >&6
8857           fi
8858
8859
8860           enablestring=
8861           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
8862 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
8863           no_cache=0
8864           # Check whether --enable-splines or --disable-splines was given.
8865 if test "${enable_splines+set}" = set; then
8866   enableval="$enable_splines"
8867
8868                           if test "$enableval" = yes; then
8869                             ac_cv_use_splines='wxUSE_SPLINES=yes'
8870                           else
8871                             ac_cv_use_splines='wxUSE_SPLINES=no'
8872                           fi
8873
8874 else
8875
8876                           LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8877                           if test "x$LINE" != x ; then
8878                             eval "DEFAULT_$LINE"
8879                           else
8880                             no_cache=1
8881                           fi
8882
8883                           ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
8884
8885 fi;
8886
8887           eval "$ac_cv_use_splines"
8888           if test "$no_cache" != 1; then
8889             echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8890           fi
8891
8892           if test "$wxUSE_SPLINES" = yes; then
8893             echo "$as_me:$LINENO: result: yes" >&5
8894 echo "${ECHO_T}yes" >&6
8895           else
8896             echo "$as_me:$LINENO: result: no" >&5
8897 echo "${ECHO_T}no" >&6
8898           fi
8899
8900
8901           enablestring=
8902           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
8903 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
8904           no_cache=0
8905           # Check whether --enable-validators or --disable-validators was given.
8906 if test "${enable_validators+set}" = set; then
8907   enableval="$enable_validators"
8908
8909                           if test "$enableval" = yes; then
8910                             ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8911                           else
8912                             ac_cv_use_validators='wxUSE_VALIDATORS=no'
8913                           fi
8914
8915 else
8916
8917                           LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8918                           if test "x$LINE" != x ; then
8919                             eval "DEFAULT_$LINE"
8920                           else
8921                             no_cache=1
8922                           fi
8923
8924                           ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
8925
8926 fi;
8927
8928           eval "$ac_cv_use_validators"
8929           if test "$no_cache" != 1; then
8930             echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8931           fi
8932
8933           if test "$wxUSE_VALIDATORS" = yes; then
8934             echo "$as_me:$LINENO: result: yes" >&5
8935 echo "${ECHO_T}yes" >&6
8936           else
8937             echo "$as_me:$LINENO: result: no" >&5
8938 echo "${ECHO_T}no" >&6
8939           fi
8940
8941
8942           enablestring=
8943           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
8944 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
8945           no_cache=0
8946           # Check whether --enable-busyinfo or --disable-busyinfo was given.
8947 if test "${enable_busyinfo+set}" = set; then
8948   enableval="$enable_busyinfo"
8949
8950                           if test "$enableval" = yes; then
8951                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8952                           else
8953                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8954                           fi
8955
8956 else
8957
8958                           LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8959                           if test "x$LINE" != x ; then
8960                             eval "DEFAULT_$LINE"
8961                           else
8962                             no_cache=1
8963                           fi
8964
8965                           ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
8966
8967 fi;
8968
8969           eval "$ac_cv_use_busyinfo"
8970           if test "$no_cache" != 1; then
8971             echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8972           fi
8973
8974           if test "$wxUSE_BUSYINFO" = yes; then
8975             echo "$as_me:$LINENO: result: yes" >&5
8976 echo "${ECHO_T}yes" >&6
8977           else
8978             echo "$as_me:$LINENO: result: no" >&5
8979 echo "${ECHO_T}no" >&6
8980           fi
8981
8982
8983           enablestring=
8984           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
8985 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
8986           no_cache=0
8987           # Check whether --enable-joystick or --disable-joystick was given.
8988 if test "${enable_joystick+set}" = set; then
8989   enableval="$enable_joystick"
8990
8991                           if test "$enableval" = yes; then
8992                             ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8993                           else
8994                             ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8995                           fi
8996
8997 else
8998
8999                           LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9000                           if test "x$LINE" != x ; then
9001                             eval "DEFAULT_$LINE"
9002                           else
9003                             no_cache=1
9004                           fi
9005
9006                           ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9007
9008 fi;
9009
9010           eval "$ac_cv_use_joystick"
9011           if test "$no_cache" != 1; then
9012             echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9013           fi
9014
9015           if test "$wxUSE_JOYSTICK" = yes; then
9016             echo "$as_me:$LINENO: result: yes" >&5
9017 echo "${ECHO_T}yes" >&6
9018           else
9019             echo "$as_me:$LINENO: result: no" >&5
9020 echo "${ECHO_T}no" >&6
9021           fi
9022
9023
9024           enablestring=
9025           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9026 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9027           no_cache=0
9028           # Check whether --enable-metafile or --disable-metafile was given.
9029 if test "${enable_metafile+set}" = set; then
9030   enableval="$enable_metafile"
9031
9032                           if test "$enableval" = yes; then
9033                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
9034                           else
9035                             ac_cv_use_metafile='wxUSE_METAFILE=no'
9036                           fi
9037
9038 else
9039
9040                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9041                           if test "x$LINE" != x ; then
9042                             eval "DEFAULT_$LINE"
9043                           else
9044                             no_cache=1
9045                           fi
9046
9047                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9048
9049 fi;
9050
9051           eval "$ac_cv_use_metafile"
9052           if test "$no_cache" != 1; then
9053             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9054           fi
9055
9056           if test "$wxUSE_METAFILE" = yes; then
9057             echo "$as_me:$LINENO: result: yes" >&5
9058 echo "${ECHO_T}yes" >&6
9059           else
9060             echo "$as_me:$LINENO: result: no" >&5
9061 echo "${ECHO_T}no" >&6
9062           fi
9063
9064
9065           enablestring=
9066           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9067 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9068           no_cache=0
9069           # Check whether --enable-dragimage or --disable-dragimage was given.
9070 if test "${enable_dragimage+set}" = set; then
9071   enableval="$enable_dragimage"
9072
9073                           if test "$enableval" = yes; then
9074                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9075                           else
9076                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9077                           fi
9078
9079 else
9080
9081                           LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9082                           if test "x$LINE" != x ; then
9083                             eval "DEFAULT_$LINE"
9084                           else
9085                             no_cache=1
9086                           fi
9087
9088                           ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9089
9090 fi;
9091
9092           eval "$ac_cv_use_dragimage"
9093           if test "$no_cache" != 1; then
9094             echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9095           fi
9096
9097           if test "$wxUSE_DRAGIMAGE" = yes; then
9098             echo "$as_me:$LINENO: result: yes" >&5
9099 echo "${ECHO_T}yes" >&6
9100           else
9101             echo "$as_me:$LINENO: result: no" >&5
9102 echo "${ECHO_T}no" >&6
9103           fi
9104
9105
9106           enablestring=
9107           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9108 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9109           no_cache=0
9110           # Check whether --enable-accessibility or --disable-accessibility was given.
9111 if test "${enable_accessibility+set}" = set; then
9112   enableval="$enable_accessibility"
9113
9114                           if test "$enableval" = yes; then
9115                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9116                           else
9117                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9118                           fi
9119
9120 else
9121
9122                           LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9123                           if test "x$LINE" != x ; then
9124                             eval "DEFAULT_$LINE"
9125                           else
9126                             no_cache=1
9127                           fi
9128
9129                           ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9130
9131 fi;
9132
9133           eval "$ac_cv_use_accessibility"
9134           if test "$no_cache" != 1; then
9135             echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9136           fi
9137
9138           if test "$wxUSE_ACCESSIBILITY" = yes; then
9139             echo "$as_me:$LINENO: result: yes" >&5
9140 echo "${ECHO_T}yes" >&6
9141           else
9142             echo "$as_me:$LINENO: result: no" >&5
9143 echo "${ECHO_T}no" >&6
9144           fi
9145
9146
9147
9148
9149           enablestring=
9150           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9151 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9152           no_cache=0
9153           # Check whether --enable-palette or --disable-palette was given.
9154 if test "${enable_palette+set}" = set; then
9155   enableval="$enable_palette"
9156
9157                           if test "$enableval" = yes; then
9158                             ac_cv_use_palette='wxUSE_PALETTE=yes'
9159                           else
9160                             ac_cv_use_palette='wxUSE_PALETTE=no'
9161                           fi
9162
9163 else
9164
9165                           LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9166                           if test "x$LINE" != x ; then
9167                             eval "DEFAULT_$LINE"
9168                           else
9169                             no_cache=1
9170                           fi
9171
9172                           ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9173
9174 fi;
9175
9176           eval "$ac_cv_use_palette"
9177           if test "$no_cache" != 1; then
9178             echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9179           fi
9180
9181           if test "$wxUSE_PALETTE" = yes; then
9182             echo "$as_me:$LINENO: result: yes" >&5
9183 echo "${ECHO_T}yes" >&6
9184           else
9185             echo "$as_me:$LINENO: result: no" >&5
9186 echo "${ECHO_T}no" >&6
9187           fi
9188
9189
9190           enablestring=
9191           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9192 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9193           no_cache=0
9194           # Check whether --enable-image or --disable-image was given.
9195 if test "${enable_image+set}" = set; then
9196   enableval="$enable_image"
9197
9198                           if test "$enableval" = yes; then
9199                             ac_cv_use_image='wxUSE_IMAGE=yes'
9200                           else
9201                             ac_cv_use_image='wxUSE_IMAGE=no'
9202                           fi
9203
9204 else
9205
9206                           LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9207                           if test "x$LINE" != x ; then
9208                             eval "DEFAULT_$LINE"
9209                           else
9210                             no_cache=1
9211                           fi
9212
9213                           ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9214
9215 fi;
9216
9217           eval "$ac_cv_use_image"
9218           if test "$no_cache" != 1; then
9219             echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9220           fi
9221
9222           if test "$wxUSE_IMAGE" = yes; then
9223             echo "$as_me:$LINENO: result: yes" >&5
9224 echo "${ECHO_T}yes" >&6
9225           else
9226             echo "$as_me:$LINENO: result: no" >&5
9227 echo "${ECHO_T}no" >&6
9228           fi
9229
9230
9231           enablestring=
9232           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9233 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9234           no_cache=0
9235           # Check whether --enable-gif or --disable-gif was given.
9236 if test "${enable_gif+set}" = set; then
9237   enableval="$enable_gif"
9238
9239                           if test "$enableval" = yes; then
9240                             ac_cv_use_gif='wxUSE_GIF=yes'
9241                           else
9242                             ac_cv_use_gif='wxUSE_GIF=no'
9243                           fi
9244
9245 else
9246
9247                           LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9248                           if test "x$LINE" != x ; then
9249                             eval "DEFAULT_$LINE"
9250                           else
9251                             no_cache=1
9252                           fi
9253
9254                           ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9255
9256 fi;
9257
9258           eval "$ac_cv_use_gif"
9259           if test "$no_cache" != 1; then
9260             echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9261           fi
9262
9263           if test "$wxUSE_GIF" = yes; then
9264             echo "$as_me:$LINENO: result: yes" >&5
9265 echo "${ECHO_T}yes" >&6
9266           else
9267             echo "$as_me:$LINENO: result: no" >&5
9268 echo "${ECHO_T}no" >&6
9269           fi
9270
9271
9272           enablestring=
9273           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9274 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9275           no_cache=0
9276           # Check whether --enable-pcx or --disable-pcx was given.
9277 if test "${enable_pcx+set}" = set; then
9278   enableval="$enable_pcx"
9279
9280                           if test "$enableval" = yes; then
9281                             ac_cv_use_pcx='wxUSE_PCX=yes'
9282                           else
9283                             ac_cv_use_pcx='wxUSE_PCX=no'
9284                           fi
9285
9286 else
9287
9288                           LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9289                           if test "x$LINE" != x ; then
9290                             eval "DEFAULT_$LINE"
9291                           else
9292                             no_cache=1
9293                           fi
9294
9295                           ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9296
9297 fi;
9298
9299           eval "$ac_cv_use_pcx"
9300           if test "$no_cache" != 1; then
9301             echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9302           fi
9303
9304           if test "$wxUSE_PCX" = yes; then
9305             echo "$as_me:$LINENO: result: yes" >&5
9306 echo "${ECHO_T}yes" >&6
9307           else
9308             echo "$as_me:$LINENO: result: no" >&5
9309 echo "${ECHO_T}no" >&6
9310           fi
9311
9312
9313           enablestring=
9314           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9315 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9316           no_cache=0
9317           # Check whether --enable-iff or --disable-iff was given.
9318 if test "${enable_iff+set}" = set; then
9319   enableval="$enable_iff"
9320
9321                           if test "$enableval" = yes; then
9322                             ac_cv_use_iff='wxUSE_IFF=yes'
9323                           else
9324                             ac_cv_use_iff='wxUSE_IFF=no'
9325                           fi
9326
9327 else
9328
9329                           LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9330                           if test "x$LINE" != x ; then
9331                             eval "DEFAULT_$LINE"
9332                           else
9333                             no_cache=1
9334                           fi
9335
9336                           ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9337
9338 fi;
9339
9340           eval "$ac_cv_use_iff"
9341           if test "$no_cache" != 1; then
9342             echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9343           fi
9344
9345           if test "$wxUSE_IFF" = yes; then
9346             echo "$as_me:$LINENO: result: yes" >&5
9347 echo "${ECHO_T}yes" >&6
9348           else
9349             echo "$as_me:$LINENO: result: no" >&5
9350 echo "${ECHO_T}no" >&6
9351           fi
9352
9353
9354           enablestring=
9355           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9356 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9357           no_cache=0
9358           # Check whether --enable-pnm or --disable-pnm was given.
9359 if test "${enable_pnm+set}" = set; then
9360   enableval="$enable_pnm"
9361
9362                           if test "$enableval" = yes; then
9363                             ac_cv_use_pnm='wxUSE_PNM=yes'
9364                           else
9365                             ac_cv_use_pnm='wxUSE_PNM=no'
9366                           fi
9367
9368 else
9369
9370                           LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9371                           if test "x$LINE" != x ; then
9372                             eval "DEFAULT_$LINE"
9373                           else
9374                             no_cache=1
9375                           fi
9376
9377                           ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9378
9379 fi;
9380
9381           eval "$ac_cv_use_pnm"
9382           if test "$no_cache" != 1; then
9383             echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9384           fi
9385
9386           if test "$wxUSE_PNM" = yes; then
9387             echo "$as_me:$LINENO: result: yes" >&5
9388 echo "${ECHO_T}yes" >&6
9389           else
9390             echo "$as_me:$LINENO: result: no" >&5
9391 echo "${ECHO_T}no" >&6
9392           fi
9393
9394
9395           enablestring=
9396           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9397 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9398           no_cache=0
9399           # Check whether --enable-xpm or --disable-xpm was given.
9400 if test "${enable_xpm+set}" = set; then
9401   enableval="$enable_xpm"
9402
9403                           if test "$enableval" = yes; then
9404                             ac_cv_use_xpm='wxUSE_XPM=yes'
9405                           else
9406                             ac_cv_use_xpm='wxUSE_XPM=no'
9407                           fi
9408
9409 else
9410
9411                           LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9412                           if test "x$LINE" != x ; then
9413                             eval "DEFAULT_$LINE"
9414                           else
9415                             no_cache=1
9416                           fi
9417
9418                           ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9419
9420 fi;
9421
9422           eval "$ac_cv_use_xpm"
9423           if test "$no_cache" != 1; then
9424             echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9425           fi
9426
9427           if test "$wxUSE_XPM" = yes; then
9428             echo "$as_me:$LINENO: result: yes" >&5
9429 echo "${ECHO_T}yes" >&6
9430           else
9431             echo "$as_me:$LINENO: result: no" >&5
9432 echo "${ECHO_T}no" >&6
9433           fi
9434
9435
9436           enablestring=
9437           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9438 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
9439           no_cache=0
9440           # Check whether --enable-ico_cur or --disable-ico_cur was given.
9441 if test "${enable_ico_cur+set}" = set; then
9442   enableval="$enable_ico_cur"
9443
9444                           if test "$enableval" = yes; then
9445                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
9446                           else
9447                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
9448                           fi
9449
9450 else
9451
9452                           LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9453                           if test "x$LINE" != x ; then
9454                             eval "DEFAULT_$LINE"
9455                           else
9456                             no_cache=1
9457                           fi
9458
9459                           ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
9460
9461 fi;
9462
9463           eval "$ac_cv_use_ico_cur"
9464           if test "$no_cache" != 1; then
9465             echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
9466           fi
9467
9468           if test "$wxUSE_ICO_CUR" = yes; then
9469             echo "$as_me:$LINENO: result: yes" >&5
9470 echo "${ECHO_T}yes" >&6
9471           else
9472             echo "$as_me:$LINENO: result: no" >&5
9473 echo "${ECHO_T}no" >&6
9474           fi
9475
9476
9477 fi
9478
9479
9480
9481           enablestring=
9482           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9483 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9484           no_cache=0
9485           # Check whether --enable-official_build or --disable-official_build was given.
9486 if test "${enable_official_build+set}" = set; then
9487   enableval="$enable_official_build"
9488
9489                           if test "$enableval" = yes; then
9490                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9491                           else
9492                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9493                           fi
9494
9495 else
9496
9497                           LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9498                           if test "x$LINE" != x ; then
9499                             eval "DEFAULT_$LINE"
9500                           else
9501                             no_cache=1
9502                           fi
9503
9504                           ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9505
9506 fi;
9507
9508           eval "$ac_cv_use_official_build"
9509           if test "$no_cache" != 1; then
9510             echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9511           fi
9512
9513           if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9514             echo "$as_me:$LINENO: result: yes" >&5
9515 echo "${ECHO_T}yes" >&6
9516           else
9517             echo "$as_me:$LINENO: result: no" >&5
9518 echo "${ECHO_T}no" >&6
9519           fi
9520
9521 # Check whether --enable-vendor or --disable-vendor was given.
9522 if test "${enable_vendor+set}" = set; then
9523   enableval="$enable_vendor"
9524   VENDOR="$enableval"
9525 fi;
9526 if test "x$VENDOR" = "x"; then
9527     VENDOR="custom"
9528 fi
9529
9530 case "${host}" in
9531   *-pc-os2_emx | *-pc-os2-emx )
9532     PATH_IFS=';'
9533   ;;
9534   *)
9535     PATH_IFS=':'
9536   ;;
9537 esac
9538
9539
9540
9541           echo "saving argument cache $wx_arg_cache_file"
9542           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
9543
9544
9545
9546 echo "$as_me:$LINENO: checking for toolkit" >&5
9547 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
9548
9549 # In Wine, we need to default to MSW, not GTK or MOTIF
9550 if test "$wxUSE_WINE" = "yes"; then
9551     DEFAULT_DEFAULT_wxUSE_GTK=0
9552     DEFAULT_DEFAULT_wxUSE_MOTIF=0
9553     DEFAULT_DEFAULT_wxUSE_MSW=1
9554 fi
9555
9556 if test "$wxUSE_GUI" = "yes"; then
9557
9558     if test "$USE_BEOS" = 1; then
9559         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9560 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9561    { (exit 1); exit 1; }; }
9562     fi
9563
9564     if test "$TOOLKIT_GIVEN" = 1; then
9565             for toolkit in `echo $ALL_TOOLKITS`; do
9566         var=wxUSE_$toolkit
9567         eval "value=\$${var}"
9568         eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9569       done
9570     else
9571             for toolkit in `echo $ALL_TOOLKITS`; do
9572         if test "$has_toolkit_in_cache" != 1; then
9573           var=DEFAULT_DEFAULT_wxUSE_$toolkit
9574         else
9575           var=DEFAULT_wxUSE_$toolkit
9576         fi
9577         eval "wxUSE_$toolkit=\$${var}"
9578       done
9579     fi
9580
9581             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9582                   + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9583                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
9584
9585         case "${host}" in
9586       *-pc-os2_emx | *-pc-os2-emx )
9587         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
9588     esac
9589
9590     case "$NUM_TOOLKITS" in
9591       1)
9592       ;;
9593       0)
9594         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9595 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9596    { (exit 1); exit 1; }; }
9597       ;;
9598       *)
9599         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9600 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9601    { (exit 1); exit 1; }; }
9602     esac
9603
9604         for toolkit in `echo $ALL_TOOLKITS`; do
9605       var=wxUSE_$toolkit
9606       eval "value=\$${var}"
9607       if test "x$value" != x; then
9608         cache_var=CACHE_$toolkit
9609         eval "cache=\$${cache_var}"
9610         if test "$cache" = 1; then
9611           echo "$var=$value" >> ${wx_arg_cache_file}
9612         fi
9613         if test "$value" = 1; then
9614           toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
9615           echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9616 echo "${ECHO_T}$toolkit_echo" >&6
9617         fi
9618       fi
9619     done
9620 else
9621     if test "x$host_alias" != "x"; then
9622         echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
9623 echo "${ECHO_T}base ($host_alias hosted) only" >&6
9624     else
9625         echo "$as_me:$LINENO: result: base only" >&5
9626 echo "${ECHO_T}base only" >&6
9627     fi
9628 fi
9629
9630 wants_win32=0
9631 doesnt_want_win32=0
9632 case "${host}" in
9633   *-*-cygwin*)
9634       if test "$wxUSE_MSW" = 1 ; then
9635         wants_win32=1
9636       else
9637         doesnt_want_win32=1
9638       fi
9639   ;;
9640   *-*-mingw*)
9641       wants_win32=1
9642   ;;
9643 esac
9644
9645 if test "$wxUSE_WINE" = "yes"; then
9646     wants_win32=1
9647         CC=winegcc
9648     CXX=wineg++
9649     RESCOMP=wrc
9650 fi
9651
9652 if test "$wants_win32" = 1 ; then
9653     USE_UNIX=0
9654     USE_WIN32=1
9655     cat >>confdefs.h <<\_ACEOF
9656 #define __WIN32__ 1
9657 _ACEOF
9658
9659     cat >>confdefs.h <<\_ACEOF
9660 #define __WIN95__ 1
9661 _ACEOF
9662
9663     cat >>confdefs.h <<\_ACEOF
9664 #define __WINDOWS__ 1
9665 _ACEOF
9666
9667     cat >>confdefs.h <<\_ACEOF
9668 #define __GNUWIN32__ 1
9669 _ACEOF
9670
9671     cat >>confdefs.h <<\_ACEOF
9672 #define STRICT 1
9673 _ACEOF
9674
9675     cat >>confdefs.h <<\_ACEOF
9676 #define WINVER 0x0400
9677 _ACEOF
9678
9679 fi
9680 if test "$doesnt_want_win32" = 1 ; then
9681     USE_UNIX=1
9682     USE_WIN32=0
9683 fi
9684
9685 if test "$USE_UNIX" = 1 ; then
9686     wxUSE_UNIX=yes
9687     cat >>confdefs.h <<\_ACEOF
9688 #define __UNIX__ 1
9689 _ACEOF
9690
9691 fi
9692
9693
9694 cat >confcache <<\_ACEOF
9695 # This file is a shell script that caches the results of configure
9696 # tests run on this system so they can be shared between configure
9697 # scripts and configure runs, see configure's option --config-cache.
9698 # It is not useful on other systems.  If it contains results you don't
9699 # want to keep, you may remove or edit it.
9700 #
9701 # config.status only pays attention to the cache file if you give it
9702 # the --recheck option to rerun configure.
9703 #
9704 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9705 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9706 # following values.
9707
9708 _ACEOF
9709
9710 # The following way of writing the cache mishandles newlines in values,
9711 # but we know of no workaround that is simple, portable, and efficient.
9712 # So, don't put newlines in cache variables' values.
9713 # Ultrix sh set writes to stderr and can't be redirected directly,
9714 # and sets the high bit in the cache file unless we assign to the vars.
9715 {
9716   (set) 2>&1 |
9717     case `(ac_space=' '; set | grep ac_space) 2>&1` in
9718     *ac_space=\ *)
9719       # `set' does not quote correctly, so add quotes (double-quote
9720       # substitution turns \\\\ into \\, and sed turns \\ into \).
9721       sed -n \
9722         "s/'/'\\\\''/g;
9723           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9724       ;;
9725     *)
9726       # `set' quotes correctly as required by POSIX, so do not add quotes.
9727       sed -n \
9728         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9729       ;;
9730     esac;
9731 } |
9732   sed '
9733      t clear
9734      : clear
9735      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9736      t end
9737      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9738      : end' >>confcache
9739 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9740   if test -w $cache_file; then
9741     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9742     cat confcache >$cache_file
9743   else
9744     echo "not updating unwritable cache $cache_file"
9745   fi
9746 fi
9747 rm -f confcache
9748
9749 if test "$build" != "$host" ; then
9750     if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
9751         CC=$host_alias-gcc
9752         CXX=$host_alias-c++
9753         AR=$host_alias-ar
9754         RANLIB=$host_alias-ranlib
9755         DLLTOOL=$host_alias-dlltool
9756         RESCOMP=$host_alias-windres
9757         LD=$host_alias-ld
9758         NM=$host_alias-nm
9759         STRIP=$host_alias-strip
9760     else
9761         { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
9762 echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
9763    { (exit 1); exit 1; }; }
9764     fi
9765 fi
9766
9767 CFLAGS=${CFLAGS:=}
9768 ac_ext=c
9769 ac_cpp='$CPP $CPPFLAGS'
9770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9773 if test -n "$ac_tool_prefix"; then
9774   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9775 set dummy ${ac_tool_prefix}gcc; ac_word=$2
9776 echo "$as_me:$LINENO: checking for $ac_word" >&5
9777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9778 if test "${ac_cv_prog_CC+set}" = set; then
9779   echo $ECHO_N "(cached) $ECHO_C" >&6
9780 else
9781   if test -n "$CC"; then
9782   ac_cv_prog_CC="$CC" # Let the user override the test.
9783 else
9784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9785 for as_dir in $PATH
9786 do
9787   IFS=$as_save_IFS
9788   test -z "$as_dir" && as_dir=.
9789   for ac_exec_ext in '' $ac_executable_extensions; do
9790   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9791     ac_cv_prog_CC="${ac_tool_prefix}gcc"
9792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9793     break 2
9794   fi
9795 done
9796 done
9797
9798 fi
9799 fi
9800 CC=$ac_cv_prog_CC
9801 if test -n "$CC"; then
9802   echo "$as_me:$LINENO: result: $CC" >&5
9803 echo "${ECHO_T}$CC" >&6
9804 else
9805   echo "$as_me:$LINENO: result: no" >&5
9806 echo "${ECHO_T}no" >&6
9807 fi
9808
9809 fi
9810 if test -z "$ac_cv_prog_CC"; then
9811   ac_ct_CC=$CC
9812   # Extract the first word of "gcc", so it can be a program name with args.
9813 set dummy gcc; ac_word=$2
9814 echo "$as_me:$LINENO: checking for $ac_word" >&5
9815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9816 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9817   echo $ECHO_N "(cached) $ECHO_C" >&6
9818 else
9819   if test -n "$ac_ct_CC"; then
9820   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9821 else
9822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9823 for as_dir in $PATH
9824 do
9825   IFS=$as_save_IFS
9826   test -z "$as_dir" && as_dir=.
9827   for ac_exec_ext in '' $ac_executable_extensions; do
9828   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9829     ac_cv_prog_ac_ct_CC="gcc"
9830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9831     break 2
9832   fi
9833 done
9834 done
9835
9836 fi
9837 fi
9838 ac_ct_CC=$ac_cv_prog_ac_ct_CC
9839 if test -n "$ac_ct_CC"; then
9840   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9841 echo "${ECHO_T}$ac_ct_CC" >&6
9842 else
9843   echo "$as_me:$LINENO: result: no" >&5
9844 echo "${ECHO_T}no" >&6
9845 fi
9846
9847   CC=$ac_ct_CC
9848 else
9849   CC="$ac_cv_prog_CC"
9850 fi
9851
9852 if test -z "$CC"; then
9853   if test -n "$ac_tool_prefix"; then
9854   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9855 set dummy ${ac_tool_prefix}cc; ac_word=$2
9856 echo "$as_me:$LINENO: checking for $ac_word" >&5
9857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9858 if test "${ac_cv_prog_CC+set}" = set; then
9859   echo $ECHO_N "(cached) $ECHO_C" >&6
9860 else
9861   if test -n "$CC"; then
9862   ac_cv_prog_CC="$CC" # Let the user override the test.
9863 else
9864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9865 for as_dir in $PATH
9866 do
9867   IFS=$as_save_IFS
9868   test -z "$as_dir" && as_dir=.
9869   for ac_exec_ext in '' $ac_executable_extensions; do
9870   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9871     ac_cv_prog_CC="${ac_tool_prefix}cc"
9872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9873     break 2
9874   fi
9875 done
9876 done
9877
9878 fi
9879 fi
9880 CC=$ac_cv_prog_CC
9881 if test -n "$CC"; then
9882   echo "$as_me:$LINENO: result: $CC" >&5
9883 echo "${ECHO_T}$CC" >&6
9884 else
9885   echo "$as_me:$LINENO: result: no" >&5
9886 echo "${ECHO_T}no" >&6
9887 fi
9888
9889 fi
9890 if test -z "$ac_cv_prog_CC"; then
9891   ac_ct_CC=$CC
9892   # Extract the first word of "cc", so it can be a program name with args.
9893 set dummy cc; ac_word=$2
9894 echo "$as_me:$LINENO: checking for $ac_word" >&5
9895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9896 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9897   echo $ECHO_N "(cached) $ECHO_C" >&6
9898 else
9899   if test -n "$ac_ct_CC"; then
9900   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9901 else
9902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9903 for as_dir in $PATH
9904 do
9905   IFS=$as_save_IFS
9906   test -z "$as_dir" && as_dir=.
9907   for ac_exec_ext in '' $ac_executable_extensions; do
9908   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9909     ac_cv_prog_ac_ct_CC="cc"
9910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9911     break 2
9912   fi
9913 done
9914 done
9915
9916 fi
9917 fi
9918 ac_ct_CC=$ac_cv_prog_ac_ct_CC
9919 if test -n "$ac_ct_CC"; then
9920   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9921 echo "${ECHO_T}$ac_ct_CC" >&6
9922 else
9923   echo "$as_me:$LINENO: result: no" >&5
9924 echo "${ECHO_T}no" >&6
9925 fi
9926
9927   CC=$ac_ct_CC
9928 else
9929   CC="$ac_cv_prog_CC"
9930 fi
9931
9932 fi
9933 if test -z "$CC"; then
9934   # Extract the first word of "cc", so it can be a program name with args.
9935 set dummy cc; ac_word=$2
9936 echo "$as_me:$LINENO: checking for $ac_word" >&5
9937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9938 if test "${ac_cv_prog_CC+set}" = set; then
9939   echo $ECHO_N "(cached) $ECHO_C" >&6
9940 else
9941   if test -n "$CC"; then
9942   ac_cv_prog_CC="$CC" # Let the user override the test.
9943 else
9944   ac_prog_rejected=no
9945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9946 for as_dir in $PATH
9947 do
9948   IFS=$as_save_IFS
9949   test -z "$as_dir" && as_dir=.
9950   for ac_exec_ext in '' $ac_executable_extensions; do
9951   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9952     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9953        ac_prog_rejected=yes
9954        continue
9955      fi
9956     ac_cv_prog_CC="cc"
9957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9958     break 2
9959   fi
9960 done
9961 done
9962
9963 if test $ac_prog_rejected = yes; then
9964   # We found a bogon in the path, so make sure we never use it.
9965   set dummy $ac_cv_prog_CC
9966   shift
9967   if test $# != 0; then
9968     # We chose a different compiler from the bogus one.
9969     # However, it has the same basename, so the bogon will be chosen
9970     # first if we set CC to just the basename; use the full file name.
9971     shift
9972     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9973   fi
9974 fi
9975 fi
9976 fi
9977 CC=$ac_cv_prog_CC
9978 if test -n "$CC"; then
9979   echo "$as_me:$LINENO: result: $CC" >&5
9980 echo "${ECHO_T}$CC" >&6
9981 else
9982   echo "$as_me:$LINENO: result: no" >&5
9983 echo "${ECHO_T}no" >&6
9984 fi
9985
9986 fi
9987 if test -z "$CC"; then
9988   if test -n "$ac_tool_prefix"; then
9989   for ac_prog in cl
9990   do
9991     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9992 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9993 echo "$as_me:$LINENO: checking for $ac_word" >&5
9994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9995 if test "${ac_cv_prog_CC+set}" = set; then
9996   echo $ECHO_N "(cached) $ECHO_C" >&6
9997 else
9998   if test -n "$CC"; then
9999   ac_cv_prog_CC="$CC" # Let the user override the test.
10000 else
10001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10002 for as_dir in $PATH
10003 do
10004   IFS=$as_save_IFS
10005   test -z "$as_dir" && as_dir=.
10006   for ac_exec_ext in '' $ac_executable_extensions; do
10007   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10008     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10010     break 2
10011   fi
10012 done
10013 done
10014
10015 fi
10016 fi
10017 CC=$ac_cv_prog_CC
10018 if test -n "$CC"; then
10019   echo "$as_me:$LINENO: result: $CC" >&5
10020 echo "${ECHO_T}$CC" >&6
10021 else
10022   echo "$as_me:$LINENO: result: no" >&5
10023 echo "${ECHO_T}no" >&6
10024 fi
10025
10026     test -n "$CC" && break
10027   done
10028 fi
10029 if test -z "$CC"; then
10030   ac_ct_CC=$CC
10031   for ac_prog in cl
10032 do
10033   # Extract the first word of "$ac_prog", so it can be a program name with args.
10034 set dummy $ac_prog; ac_word=$2
10035 echo "$as_me:$LINENO: checking for $ac_word" >&5
10036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10037 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10038   echo $ECHO_N "(cached) $ECHO_C" >&6
10039 else
10040   if test -n "$ac_ct_CC"; then
10041   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10042 else
10043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10044 for as_dir in $PATH
10045 do
10046   IFS=$as_save_IFS
10047   test -z "$as_dir" && as_dir=.
10048   for ac_exec_ext in '' $ac_executable_extensions; do
10049   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10050     ac_cv_prog_ac_ct_CC="$ac_prog"
10051     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10052     break 2
10053   fi
10054 done
10055 done
10056
10057 fi
10058 fi
10059 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10060 if test -n "$ac_ct_CC"; then
10061   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10062 echo "${ECHO_T}$ac_ct_CC" >&6
10063 else
10064   echo "$as_me:$LINENO: result: no" >&5
10065 echo "${ECHO_T}no" >&6
10066 fi
10067
10068   test -n "$ac_ct_CC" && break
10069 done
10070
10071   CC=$ac_ct_CC
10072 fi
10073
10074 fi
10075
10076
10077 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10078 See \`config.log' for more details." >&5
10079 echo "$as_me: error: no acceptable C compiler found in \$PATH
10080 See \`config.log' for more details." >&2;}
10081    { (exit 1); exit 1; }; }
10082
10083 # Provide some information about the compiler.
10084 echo "$as_me:$LINENO:" \
10085      "checking for C compiler version" >&5
10086 ac_compiler=`set X $ac_compile; echo $2`
10087 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10088   (eval $ac_compiler --version </dev/null >&5) 2>&5
10089   ac_status=$?
10090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091   (exit $ac_status); }
10092 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10093   (eval $ac_compiler -v </dev/null >&5) 2>&5
10094   ac_status=$?
10095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096   (exit $ac_status); }
10097 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10098   (eval $ac_compiler -V </dev/null >&5) 2>&5
10099   ac_status=$?
10100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101   (exit $ac_status); }
10102
10103 cat >conftest.$ac_ext <<_ACEOF
10104 #line $LINENO "configure"
10105 /* confdefs.h.  */
10106 _ACEOF
10107 cat confdefs.h >>conftest.$ac_ext
10108 cat >>conftest.$ac_ext <<_ACEOF
10109 /* end confdefs.h.  */
10110
10111 int
10112 main ()
10113 {
10114
10115   ;
10116   return 0;
10117 }
10118 _ACEOF
10119 ac_clean_files_save=$ac_clean_files
10120 ac_clean_files="$ac_clean_files a.out a.exe b.out"
10121 # Try to create an executable without -o first, disregard a.out.
10122 # It will help us diagnose broken compilers, and finding out an intuition
10123 # of exeext.
10124 echo "$as_me:$LINENO: checking for C compiler default output" >&5
10125 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
10126 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10127 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10128   (eval $ac_link_default) 2>&5
10129   ac_status=$?
10130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131   (exit $ac_status); }; then
10132   # Find the output, starting from the most likely.  This scheme is
10133 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
10134 # resort.
10135
10136 # Be careful to initialize this variable, since it used to be cached.
10137 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10138 ac_cv_exeext=
10139 # b.out is created by i960 compilers.
10140 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10141 do
10142   test -f "$ac_file" || continue
10143   case $ac_file in
10144     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
10145         ;;
10146     conftest.$ac_ext )
10147         # This is the source file.
10148         ;;
10149     [ab].out )
10150         # We found the default executable, but exeext='' is most
10151         # certainly right.
10152         break;;
10153     *.* )
10154         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10155         # FIXME: I believe we export ac_cv_exeext for Libtool,
10156         # but it would be cool to find out if it's true.  Does anybody
10157         # maintain Libtool? --akim.
10158         export ac_cv_exeext
10159         break;;
10160     * )
10161         break;;
10162   esac
10163 done
10164 else
10165   echo "$as_me: failed program was:" >&5
10166 sed 's/^/| /' conftest.$ac_ext >&5
10167
10168 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
10169 See \`config.log' for more details." >&5
10170 echo "$as_me: error: C compiler cannot create executables
10171 See \`config.log' for more details." >&2;}
10172    { (exit 77); exit 77; }; }
10173 fi
10174
10175 ac_exeext=$ac_cv_exeext
10176 echo "$as_me:$LINENO: result: $ac_file" >&5
10177 echo "${ECHO_T}$ac_file" >&6
10178
10179 # Check the compiler produces executables we can run.  If not, either
10180 # the compiler is broken, or we cross compile.
10181 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10182 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10183 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10184 # If not cross compiling, check that we can run a simple program.
10185 if test "$cross_compiling" != yes; then
10186   if { ac_try='./$ac_file'
10187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188   (eval $ac_try) 2>&5
10189   ac_status=$?
10190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191   (exit $ac_status); }; }; then
10192     cross_compiling=no
10193   else
10194     if test "$cross_compiling" = maybe; then
10195         cross_compiling=yes
10196     else
10197         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10198 If you meant to cross compile, use \`--host'.
10199 See \`config.log' for more details." >&5
10200 echo "$as_me: error: cannot run C compiled programs.
10201 If you meant to cross compile, use \`--host'.
10202 See \`config.log' for more details." >&2;}
10203    { (exit 1); exit 1; }; }
10204     fi
10205   fi
10206 fi
10207 echo "$as_me:$LINENO: result: yes" >&5
10208 echo "${ECHO_T}yes" >&6
10209
10210 rm -f a.out a.exe conftest$ac_cv_exeext b.out
10211 ac_clean_files=$ac_clean_files_save
10212 # Check the compiler produces executables we can run.  If not, either
10213 # the compiler is broken, or we cross compile.
10214 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10215 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10216 echo "$as_me:$LINENO: result: $cross_compiling" >&5
10217 echo "${ECHO_T}$cross_compiling" >&6
10218
10219 echo "$as_me:$LINENO: checking for suffix of executables" >&5
10220 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10222   (eval $ac_link) 2>&5
10223   ac_status=$?
10224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225   (exit $ac_status); }; then
10226   # If both `conftest.exe' and `conftest' are `present' (well, observable)
10227 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
10228 # work properly (i.e., refer to `conftest.exe'), while it won't with
10229 # `rm'.
10230 for ac_file in conftest.exe conftest conftest.*; do
10231   test -f "$ac_file" || continue
10232   case $ac_file in
10233     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10234     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10235           export ac_cv_exeext
10236           break;;
10237     * ) break;;
10238   esac
10239 done
10240 else
10241   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10242 See \`config.log' for more details." >&5
10243 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10244 See \`config.log' for more details." >&2;}
10245    { (exit 1); exit 1; }; }
10246 fi
10247
10248 rm -f conftest$ac_cv_exeext
10249 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10250 echo "${ECHO_T}$ac_cv_exeext" >&6
10251
10252 rm -f conftest.$ac_ext
10253 EXEEXT=$ac_cv_exeext
10254 ac_exeext=$EXEEXT
10255 echo "$as_me:$LINENO: checking for suffix of object files" >&5
10256 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10257 if test "${ac_cv_objext+set}" = set; then
10258   echo $ECHO_N "(cached) $ECHO_C" >&6
10259 else
10260   cat >conftest.$ac_ext <<_ACEOF
10261 #line $LINENO "configure"
10262 /* confdefs.h.  */
10263 _ACEOF
10264 cat confdefs.h >>conftest.$ac_ext
10265 cat >>conftest.$ac_ext <<_ACEOF
10266 /* end confdefs.h.  */
10267
10268 int
10269 main ()
10270 {
10271
10272   ;
10273   return 0;
10274 }
10275 _ACEOF
10276 rm -f conftest.o conftest.obj
10277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10278   (eval $ac_compile) 2>&5
10279   ac_status=$?
10280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281   (exit $ac_status); }; then
10282   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10283   case $ac_file in
10284     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10285     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10286        break;;
10287   esac
10288 done
10289 else
10290   echo "$as_me: failed program was:" >&5
10291 sed 's/^/| /' conftest.$ac_ext >&5
10292
10293 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10294 See \`config.log' for more details." >&5
10295 echo "$as_me: error: cannot compute suffix of object files: cannot compile
10296 See \`config.log' for more details." >&2;}
10297    { (exit 1); exit 1; }; }
10298 fi
10299
10300 rm -f conftest.$ac_cv_objext conftest.$ac_ext
10301 fi
10302 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10303 echo "${ECHO_T}$ac_cv_objext" >&6
10304 OBJEXT=$ac_cv_objext
10305 ac_objext=$OBJEXT
10306 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10307 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10308 if test "${ac_cv_c_compiler_gnu+set}" = set; then
10309   echo $ECHO_N "(cached) $ECHO_C" >&6
10310 else
10311   cat >conftest.$ac_ext <<_ACEOF
10312 #line $LINENO "configure"
10313 /* confdefs.h.  */
10314 _ACEOF
10315 cat confdefs.h >>conftest.$ac_ext
10316 cat >>conftest.$ac_ext <<_ACEOF
10317 /* end confdefs.h.  */
10318
10319 int
10320 main ()
10321 {
10322 #ifndef __GNUC__
10323        choke me
10324 #endif
10325
10326   ;
10327   return 0;
10328 }
10329 _ACEOF
10330 rm -f conftest.$ac_objext
10331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10332   (eval $ac_compile) 2>&5
10333   ac_status=$?
10334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335   (exit $ac_status); } &&
10336          { ac_try='test -s conftest.$ac_objext'
10337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10338   (eval $ac_try) 2>&5
10339   ac_status=$?
10340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341   (exit $ac_status); }; }; then
10342   ac_compiler_gnu=yes
10343 else
10344   echo "$as_me: failed program was:" >&5
10345 sed 's/^/| /' conftest.$ac_ext >&5
10346
10347 ac_compiler_gnu=no
10348 fi
10349 rm -f conftest.$ac_objext conftest.$ac_ext
10350 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10351
10352 fi
10353 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10354 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10355 GCC=`test $ac_compiler_gnu = yes && echo yes`
10356 ac_test_CFLAGS=${CFLAGS+set}
10357 ac_save_CFLAGS=$CFLAGS
10358 CFLAGS="-g"
10359 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10360 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10361 if test "${ac_cv_prog_cc_g+set}" = set; then
10362   echo $ECHO_N "(cached) $ECHO_C" >&6
10363 else
10364   cat >conftest.$ac_ext <<_ACEOF
10365 #line $LINENO "configure"
10366 /* confdefs.h.  */
10367 _ACEOF
10368 cat confdefs.h >>conftest.$ac_ext
10369 cat >>conftest.$ac_ext <<_ACEOF
10370 /* end confdefs.h.  */
10371
10372 int
10373 main ()
10374 {
10375
10376   ;
10377   return 0;
10378 }
10379 _ACEOF
10380 rm -f conftest.$ac_objext
10381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10382   (eval $ac_compile) 2>&5
10383   ac_status=$?
10384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385   (exit $ac_status); } &&
10386          { ac_try='test -s conftest.$ac_objext'
10387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10388   (eval $ac_try) 2>&5
10389   ac_status=$?
10390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391   (exit $ac_status); }; }; then
10392   ac_cv_prog_cc_g=yes
10393 else
10394   echo "$as_me: failed program was:" >&5
10395 sed 's/^/| /' conftest.$ac_ext >&5
10396
10397 ac_cv_prog_cc_g=no
10398 fi
10399 rm -f conftest.$ac_objext conftest.$ac_ext
10400 fi
10401 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10402 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10403 if test "$ac_test_CFLAGS" = set; then
10404   CFLAGS=$ac_save_CFLAGS
10405 elif test $ac_cv_prog_cc_g = yes; then
10406   if test "$GCC" = yes; then
10407     CFLAGS="-g -O2"
10408   else
10409     CFLAGS="-g"
10410   fi
10411 else
10412   if test "$GCC" = yes; then
10413     CFLAGS="-O2"
10414   else
10415     CFLAGS=
10416   fi
10417 fi
10418 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10419 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10420 if test "${ac_cv_prog_cc_stdc+set}" = set; then
10421   echo $ECHO_N "(cached) $ECHO_C" >&6
10422 else
10423   ac_cv_prog_cc_stdc=no
10424 ac_save_CC=$CC
10425 cat >conftest.$ac_ext <<_ACEOF
10426 #line $LINENO "configure"
10427 /* confdefs.h.  */
10428 _ACEOF
10429 cat confdefs.h >>conftest.$ac_ext
10430 cat >>conftest.$ac_ext <<_ACEOF
10431 /* end confdefs.h.  */
10432 #include <stdarg.h>
10433 #include <stdio.h>
10434 #include <sys/types.h>
10435 #include <sys/stat.h>
10436 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
10437 struct buf { int x; };
10438 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10439 static char *e (p, i)
10440      char **p;
10441      int i;
10442 {
10443   return p[i];
10444 }
10445 static char *f (char * (*g) (char **, int), char **p, ...)
10446 {
10447   char *s;
10448   va_list v;
10449   va_start (v,p);
10450   s = g (p, va_arg (v,int));
10451   va_end (v);
10452   return s;
10453 }
10454 int test (int i, double x);
10455 struct s1 {int (*f) (int a);};
10456 struct s2 {int (*f) (double a);};
10457 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10458 int argc;
10459 char **argv;
10460 int
10461 main ()
10462 {
10463 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
10464   ;
10465   return 0;
10466 }
10467 _ACEOF
10468 # Don't try gcc -ansi; that turns off useful extensions and
10469 # breaks some systems' header files.
10470 # AIX                   -qlanglvl=ansi
10471 # Ultrix and OSF/1      -std1
10472 # HP-UX 10.20 and later -Ae
10473 # HP-UX older versions  -Aa -D_HPUX_SOURCE
10474 # SVR4                  -Xc -D__EXTENSIONS__
10475 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10476 do
10477   CC="$ac_save_CC $ac_arg"
10478   rm -f conftest.$ac_objext
10479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10480   (eval $ac_compile) 2>&5
10481   ac_status=$?
10482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483   (exit $ac_status); } &&
10484          { ac_try='test -s conftest.$ac_objext'
10485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10486   (eval $ac_try) 2>&5
10487   ac_status=$?
10488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489   (exit $ac_status); }; }; then
10490   ac_cv_prog_cc_stdc=$ac_arg
10491 break
10492 else
10493   echo "$as_me: failed program was:" >&5
10494 sed 's/^/| /' conftest.$ac_ext >&5
10495
10496 fi
10497 rm -f conftest.$ac_objext
10498 done
10499 rm -f conftest.$ac_ext conftest.$ac_objext
10500 CC=$ac_save_CC
10501
10502 fi
10503
10504 case "x$ac_cv_prog_cc_stdc" in
10505   x|xno)
10506     echo "$as_me:$LINENO: result: none needed" >&5
10507 echo "${ECHO_T}none needed" >&6 ;;
10508   *)
10509     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10510 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10511     CC="$CC $ac_cv_prog_cc_stdc" ;;
10512 esac
10513
10514 # Some people use a C++ compiler to compile C.  Since we use `exit',
10515 # in C++ we need to declare it.  In case someone uses the same compiler
10516 # for both compiling C and C++ we need to have the C++ compiler decide
10517 # the declaration of exit, since it's the most demanding environment.
10518 cat >conftest.$ac_ext <<_ACEOF
10519 #ifndef __cplusplus
10520   choke me
10521 #endif
10522 _ACEOF
10523 rm -f conftest.$ac_objext
10524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10525   (eval $ac_compile) 2>&5
10526   ac_status=$?
10527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528   (exit $ac_status); } &&
10529          { ac_try='test -s conftest.$ac_objext'
10530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10531   (eval $ac_try) 2>&5
10532   ac_status=$?
10533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534   (exit $ac_status); }; }; then
10535   for ac_declaration in \
10536    '' \
10537    'extern "C" void std::exit (int) throw (); using std::exit;' \
10538    'extern "C" void std::exit (int); using std::exit;' \
10539    'extern "C" void exit (int) throw ();' \
10540    'extern "C" void exit (int);' \
10541    'void exit (int);'
10542 do
10543   cat >conftest.$ac_ext <<_ACEOF
10544 #line $LINENO "configure"
10545 /* confdefs.h.  */
10546 _ACEOF
10547 cat confdefs.h >>conftest.$ac_ext
10548 cat >>conftest.$ac_ext <<_ACEOF
10549 /* end confdefs.h.  */
10550 $ac_declaration
10551 #include <stdlib.h>
10552 int
10553 main ()
10554 {
10555 exit (42);
10556   ;
10557   return 0;
10558 }
10559 _ACEOF
10560 rm -f conftest.$ac_objext
10561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10562   (eval $ac_compile) 2>&5
10563   ac_status=$?
10564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565   (exit $ac_status); } &&
10566          { ac_try='test -s conftest.$ac_objext'
10567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10568   (eval $ac_try) 2>&5
10569   ac_status=$?
10570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571   (exit $ac_status); }; }; then
10572   :
10573 else
10574   echo "$as_me: failed program was:" >&5
10575 sed 's/^/| /' conftest.$ac_ext >&5
10576
10577 continue
10578 fi
10579 rm -f conftest.$ac_objext conftest.$ac_ext
10580   cat >conftest.$ac_ext <<_ACEOF
10581 #line $LINENO "configure"
10582 /* confdefs.h.  */
10583 _ACEOF
10584 cat confdefs.h >>conftest.$ac_ext
10585 cat >>conftest.$ac_ext <<_ACEOF
10586 /* end confdefs.h.  */
10587 $ac_declaration
10588 int
10589 main ()
10590 {
10591 exit (42);
10592   ;
10593   return 0;
10594 }
10595 _ACEOF
10596 rm -f conftest.$ac_objext
10597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10598   (eval $ac_compile) 2>&5
10599   ac_status=$?
10600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601   (exit $ac_status); } &&
10602          { ac_try='test -s conftest.$ac_objext'
10603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10604   (eval $ac_try) 2>&5
10605   ac_status=$?
10606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607   (exit $ac_status); }; }; then
10608   break
10609 else
10610   echo "$as_me: failed program was:" >&5
10611 sed 's/^/| /' conftest.$ac_ext >&5
10612
10613 fi
10614 rm -f conftest.$ac_objext conftest.$ac_ext
10615 done
10616 rm -f conftest*
10617 if test -n "$ac_declaration"; then
10618   echo '#ifdef __cplusplus' >>confdefs.h
10619   echo $ac_declaration      >>confdefs.h
10620   echo '#endif'             >>confdefs.h
10621 fi
10622
10623 else
10624   echo "$as_me: failed program was:" >&5
10625 sed 's/^/| /' conftest.$ac_ext >&5
10626
10627 fi
10628 rm -f conftest.$ac_objext conftest.$ac_ext
10629 ac_ext=c
10630 ac_cpp='$CPP $CPPFLAGS'
10631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10634
10635
10636
10637 ac_ext=c
10638 ac_cpp='$CPP $CPPFLAGS'
10639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10642 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10643 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10644 # On Suns, sometimes $CPP names a directory.
10645 if test -n "$CPP" && test -d "$CPP"; then
10646   CPP=
10647 fi
10648 if test -z "$CPP"; then
10649   if test "${ac_cv_prog_CPP+set}" = set; then
10650   echo $ECHO_N "(cached) $ECHO_C" >&6
10651 else
10652       # Double quotes because CPP needs to be expanded
10653     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10654     do
10655       ac_preproc_ok=false
10656 for ac_c_preproc_warn_flag in '' yes
10657 do
10658   # Use a header file that comes with gcc, so configuring glibc
10659   # with a fresh cross-compiler works.
10660   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10661   # <limits.h> exists even on freestanding compilers.
10662   # On the NeXT, cc -E runs the code through the compiler's parser,
10663   # not just through cpp. "Syntax error" is here to catch this case.
10664   cat >conftest.$ac_ext <<_ACEOF
10665 #line $LINENO "configure"
10666 /* confdefs.h.  */
10667 _ACEOF
10668 cat confdefs.h >>conftest.$ac_ext
10669 cat >>conftest.$ac_ext <<_ACEOF
10670 /* end confdefs.h.  */
10671 #ifdef __STDC__
10672 # include <limits.h>
10673 #else
10674 # include <assert.h>
10675 #endif
10676                      Syntax error
10677 _ACEOF
10678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10679   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10680   ac_status=$?
10681   grep -v '^ *+' conftest.er1 >conftest.err
10682   rm -f conftest.er1
10683   cat conftest.err >&5
10684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685   (exit $ac_status); } >/dev/null; then
10686   if test -s conftest.err; then
10687     ac_cpp_err=$ac_c_preproc_warn_flag
10688   else
10689     ac_cpp_err=
10690   fi
10691 else
10692   ac_cpp_err=yes
10693 fi
10694 if test -z "$ac_cpp_err"; then
10695   :
10696 else
10697   echo "$as_me: failed program was:" >&5
10698 sed 's/^/| /' conftest.$ac_ext >&5
10699
10700   # Broken: fails on valid input.
10701 continue
10702 fi
10703 rm -f conftest.err conftest.$ac_ext
10704
10705   # OK, works on sane cases.  Now check whether non-existent headers
10706   # can be detected and how.
10707   cat >conftest.$ac_ext <<_ACEOF
10708 #line $LINENO "configure"
10709 /* confdefs.h.  */
10710 _ACEOF
10711 cat confdefs.h >>conftest.$ac_ext
10712 cat >>conftest.$ac_ext <<_ACEOF
10713 /* end confdefs.h.  */
10714 #include <ac_nonexistent.h>
10715 _ACEOF
10716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10717   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10718   ac_status=$?
10719   grep -v '^ *+' conftest.er1 >conftest.err
10720   rm -f conftest.er1
10721   cat conftest.err >&5
10722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723   (exit $ac_status); } >/dev/null; then
10724   if test -s conftest.err; then
10725     ac_cpp_err=$ac_c_preproc_warn_flag
10726   else
10727     ac_cpp_err=
10728   fi
10729 else
10730   ac_cpp_err=yes
10731 fi
10732 if test -z "$ac_cpp_err"; then
10733   # Broken: success on invalid input.
10734 continue
10735 else
10736   echo "$as_me: failed program was:" >&5
10737 sed 's/^/| /' conftest.$ac_ext >&5
10738
10739   # Passes both tests.
10740 ac_preproc_ok=:
10741 break
10742 fi
10743 rm -f conftest.err conftest.$ac_ext
10744
10745 done
10746 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10747 rm -f conftest.err conftest.$ac_ext
10748 if $ac_preproc_ok; then
10749   break
10750 fi
10751
10752     done
10753     ac_cv_prog_CPP=$CPP
10754
10755 fi
10756   CPP=$ac_cv_prog_CPP
10757 else
10758   ac_cv_prog_CPP=$CPP
10759 fi
10760 echo "$as_me:$LINENO: result: $CPP" >&5
10761 echo "${ECHO_T}$CPP" >&6
10762 ac_preproc_ok=false
10763 for ac_c_preproc_warn_flag in '' yes
10764 do
10765   # Use a header file that comes with gcc, so configuring glibc
10766   # with a fresh cross-compiler works.
10767   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10768   # <limits.h> exists even on freestanding compilers.
10769   # On the NeXT, cc -E runs the code through the compiler's parser,
10770   # not just through cpp. "Syntax error" is here to catch this case.
10771   cat >conftest.$ac_ext <<_ACEOF
10772 #line $LINENO "configure"
10773 /* confdefs.h.  */
10774 _ACEOF
10775 cat confdefs.h >>conftest.$ac_ext
10776 cat >>conftest.$ac_ext <<_ACEOF
10777 /* end confdefs.h.  */
10778 #ifdef __STDC__
10779 # include <limits.h>
10780 #else
10781 # include <assert.h>
10782 #endif
10783                      Syntax error
10784 _ACEOF
10785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10786   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10787   ac_status=$?
10788   grep -v '^ *+' conftest.er1 >conftest.err
10789   rm -f conftest.er1
10790   cat conftest.err >&5
10791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792   (exit $ac_status); } >/dev/null; then
10793   if test -s conftest.err; then
10794     ac_cpp_err=$ac_c_preproc_warn_flag
10795   else
10796     ac_cpp_err=
10797   fi
10798 else
10799   ac_cpp_err=yes
10800 fi
10801 if test -z "$ac_cpp_err"; then
10802   :
10803 else
10804   echo "$as_me: failed program was:" >&5
10805 sed 's/^/| /' conftest.$ac_ext >&5
10806
10807   # Broken: fails on valid input.
10808 continue
10809 fi
10810 rm -f conftest.err conftest.$ac_ext
10811
10812   # OK, works on sane cases.  Now check whether non-existent headers
10813   # can be detected and how.
10814   cat >conftest.$ac_ext <<_ACEOF
10815 #line $LINENO "configure"
10816 /* confdefs.h.  */
10817 _ACEOF
10818 cat confdefs.h >>conftest.$ac_ext
10819 cat >>conftest.$ac_ext <<_ACEOF
10820 /* end confdefs.h.  */
10821 #include <ac_nonexistent.h>
10822 _ACEOF
10823 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10824   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10825   ac_status=$?
10826   grep -v '^ *+' conftest.er1 >conftest.err
10827   rm -f conftest.er1
10828   cat conftest.err >&5
10829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830   (exit $ac_status); } >/dev/null; then
10831   if test -s conftest.err; then
10832     ac_cpp_err=$ac_c_preproc_warn_flag
10833   else
10834     ac_cpp_err=
10835   fi
10836 else
10837   ac_cpp_err=yes
10838 fi
10839 if test -z "$ac_cpp_err"; then
10840   # Broken: success on invalid input.
10841 continue
10842 else
10843   echo "$as_me: failed program was:" >&5
10844 sed 's/^/| /' conftest.$ac_ext >&5
10845
10846   # Passes both tests.
10847 ac_preproc_ok=:
10848 break
10849 fi
10850 rm -f conftest.err conftest.$ac_ext
10851
10852 done
10853 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10854 rm -f conftest.err conftest.$ac_ext
10855 if $ac_preproc_ok; then
10856   :
10857 else
10858   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
10859 See \`config.log' for more details." >&5
10860 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10861 See \`config.log' for more details." >&2;}
10862    { (exit 1); exit 1; }; }
10863 fi
10864
10865 ac_ext=c
10866 ac_cpp='$CPP $CPPFLAGS'
10867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10870
10871
10872 echo "$as_me:$LINENO: checking for egrep" >&5
10873 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10874 if test "${ac_cv_prog_egrep+set}" = set; then
10875   echo $ECHO_N "(cached) $ECHO_C" >&6
10876 else
10877   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10878     then ac_cv_prog_egrep='grep -E'
10879     else ac_cv_prog_egrep='egrep'
10880     fi
10881 fi
10882 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10883 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10884  EGREP=$ac_cv_prog_egrep
10885
10886
10887 if test $ac_cv_c_compiler_gnu = yes; then
10888     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10889 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10890 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10891   echo $ECHO_N "(cached) $ECHO_C" >&6
10892 else
10893     ac_pattern="Autoconf.*'x'"
10894   cat >conftest.$ac_ext <<_ACEOF
10895 #line $LINENO "configure"
10896 /* confdefs.h.  */
10897 _ACEOF
10898 cat confdefs.h >>conftest.$ac_ext
10899 cat >>conftest.$ac_ext <<_ACEOF
10900 /* end confdefs.h.  */
10901 #include <sgtty.h>
10902 Autoconf TIOCGETP
10903 _ACEOF
10904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10905   $EGREP "$ac_pattern" >/dev/null 2>&1; then
10906   ac_cv_prog_gcc_traditional=yes
10907 else
10908   ac_cv_prog_gcc_traditional=no
10909 fi
10910 rm -f conftest*
10911
10912
10913   if test $ac_cv_prog_gcc_traditional = no; then
10914     cat >conftest.$ac_ext <<_ACEOF
10915 #line $LINENO "configure"
10916 /* confdefs.h.  */
10917 _ACEOF
10918 cat confdefs.h >>conftest.$ac_ext
10919 cat >>conftest.$ac_ext <<_ACEOF
10920 /* end confdefs.h.  */
10921 #include <termio.h>
10922 Autoconf TCGETA
10923 _ACEOF
10924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10925   $EGREP "$ac_pattern" >/dev/null 2>&1; then
10926   ac_cv_prog_gcc_traditional=yes
10927 fi
10928 rm -f conftest*
10929
10930   fi
10931 fi
10932 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10933 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10934   if test $ac_cv_prog_gcc_traditional = yes; then
10935     CC="$CC -traditional"
10936   fi
10937 fi
10938
10939
10940
10941
10942 ac_ext=cc
10943 ac_cpp='$CXXCPP $CPPFLAGS'
10944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10947
10948
10949 CXXFLAGS=${CXXFLAGS:=}
10950 ac_ext=cc
10951 ac_cpp='$CXXCPP $CPPFLAGS'
10952 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10953 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10954 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10955 if test -n "$ac_tool_prefix"; then
10956   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10957   do
10958     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10959 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10960 echo "$as_me:$LINENO: checking for $ac_word" >&5
10961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10962 if test "${ac_cv_prog_CXX+set}" = set; then
10963   echo $ECHO_N "(cached) $ECHO_C" >&6
10964 else
10965   if test -n "$CXX"; then
10966   ac_cv_prog_CXX="$CXX" # Let the user override the test.
10967 else
10968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10969 for as_dir in $PATH
10970 do
10971   IFS=$as_save_IFS
10972   test -z "$as_dir" && as_dir=.
10973   for ac_exec_ext in '' $ac_executable_extensions; do
10974   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10975     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10976     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10977     break 2
10978   fi
10979 done
10980 done
10981
10982 fi
10983 fi
10984 CXX=$ac_cv_prog_CXX
10985 if test -n "$CXX"; then
10986   echo "$as_me:$LINENO: result: $CXX" >&5
10987 echo "${ECHO_T}$CXX" >&6
10988 else
10989   echo "$as_me:$LINENO: result: no" >&5
10990 echo "${ECHO_T}no" >&6
10991 fi
10992
10993     test -n "$CXX" && break
10994   done
10995 fi
10996 if test -z "$CXX"; then
10997   ac_ct_CXX=$CXX
10998   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10999 do
11000   # Extract the first word of "$ac_prog", so it can be a program name with args.
11001 set dummy $ac_prog; ac_word=$2
11002 echo "$as_me:$LINENO: checking for $ac_word" >&5
11003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11004 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11005   echo $ECHO_N "(cached) $ECHO_C" >&6
11006 else
11007   if test -n "$ac_ct_CXX"; then
11008   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11009 else
11010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11011 for as_dir in $PATH
11012 do
11013   IFS=$as_save_IFS
11014   test -z "$as_dir" && as_dir=.
11015   for ac_exec_ext in '' $ac_executable_extensions; do
11016   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11017     ac_cv_prog_ac_ct_CXX="$ac_prog"
11018     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11019     break 2
11020   fi
11021 done
11022 done
11023
11024 fi
11025 fi
11026 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11027 if test -n "$ac_ct_CXX"; then
11028   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11029 echo "${ECHO_T}$ac_ct_CXX" >&6
11030 else
11031   echo "$as_me:$LINENO: result: no" >&5
11032 echo "${ECHO_T}no" >&6
11033 fi
11034
11035   test -n "$ac_ct_CXX" && break
11036 done
11037 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11038
11039   CXX=$ac_ct_CXX
11040 fi
11041
11042
11043 # Provide some information about the compiler.
11044 echo "$as_me:$LINENO:" \
11045      "checking for C++ compiler version" >&5
11046 ac_compiler=`set X $ac_compile; echo $2`
11047 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11048   (eval $ac_compiler --version </dev/null >&5) 2>&5
11049   ac_status=$?
11050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051   (exit $ac_status); }
11052 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11053   (eval $ac_compiler -v </dev/null >&5) 2>&5
11054   ac_status=$?
11055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056   (exit $ac_status); }
11057 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11058   (eval $ac_compiler -V </dev/null >&5) 2>&5
11059   ac_status=$?
11060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061   (exit $ac_status); }
11062
11063 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11064 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11065 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11066   echo $ECHO_N "(cached) $ECHO_C" >&6
11067 else
11068   cat >conftest.$ac_ext <<_ACEOF
11069 #line $LINENO "configure"
11070 /* confdefs.h.  */
11071 _ACEOF
11072 cat confdefs.h >>conftest.$ac_ext
11073 cat >>conftest.$ac_ext <<_ACEOF
11074 /* end confdefs.h.  */
11075
11076 int
11077 main ()
11078 {
11079 #ifndef __GNUC__
11080        choke me
11081 #endif
11082
11083   ;
11084   return 0;
11085 }
11086 _ACEOF
11087 rm -f conftest.$ac_objext
11088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11089   (eval $ac_compile) 2>&5
11090   ac_status=$?
11091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092   (exit $ac_status); } &&
11093          { ac_try='test -s conftest.$ac_objext'
11094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11095   (eval $ac_try) 2>&5
11096   ac_status=$?
11097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098   (exit $ac_status); }; }; then
11099   ac_compiler_gnu=yes
11100 else
11101   echo "$as_me: failed program was:" >&5
11102 sed 's/^/| /' conftest.$ac_ext >&5
11103
11104 ac_compiler_gnu=no
11105 fi
11106 rm -f conftest.$ac_objext conftest.$ac_ext
11107 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11108
11109 fi
11110 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11111 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11112 GXX=`test $ac_compiler_gnu = yes && echo yes`
11113 ac_test_CXXFLAGS=${CXXFLAGS+set}
11114 ac_save_CXXFLAGS=$CXXFLAGS
11115 CXXFLAGS="-g"
11116 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11117 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11118 if test "${ac_cv_prog_cxx_g+set}" = set; then
11119   echo $ECHO_N "(cached) $ECHO_C" >&6
11120 else
11121   cat >conftest.$ac_ext <<_ACEOF
11122 #line $LINENO "configure"
11123 /* confdefs.h.  */
11124 _ACEOF
11125 cat confdefs.h >>conftest.$ac_ext
11126 cat >>conftest.$ac_ext <<_ACEOF
11127 /* end confdefs.h.  */
11128
11129 int
11130 main ()
11131 {
11132
11133   ;
11134   return 0;
11135 }
11136 _ACEOF
11137 rm -f conftest.$ac_objext
11138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11139   (eval $ac_compile) 2>&5
11140   ac_status=$?
11141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142   (exit $ac_status); } &&
11143          { ac_try='test -s conftest.$ac_objext'
11144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11145   (eval $ac_try) 2>&5
11146   ac_status=$?
11147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148   (exit $ac_status); }; }; then
11149   ac_cv_prog_cxx_g=yes
11150 else
11151   echo "$as_me: failed program was:" >&5
11152 sed 's/^/| /' conftest.$ac_ext >&5
11153
11154 ac_cv_prog_cxx_g=no
11155 fi
11156 rm -f conftest.$ac_objext conftest.$ac_ext
11157 fi
11158 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11159 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11160 if test "$ac_test_CXXFLAGS" = set; then
11161   CXXFLAGS=$ac_save_CXXFLAGS
11162 elif test $ac_cv_prog_cxx_g = yes; then
11163   if test "$GXX" = yes; then
11164     CXXFLAGS="-g -O2"
11165   else
11166     CXXFLAGS="-g"
11167   fi
11168 else
11169   if test "$GXX" = yes; then
11170     CXXFLAGS="-O2"
11171   else
11172     CXXFLAGS=
11173   fi
11174 fi
11175 for ac_declaration in \
11176    '' \
11177    'extern "C" void std::exit (int) throw (); using std::exit;' \
11178    'extern "C" void std::exit (int); using std::exit;' \
11179    'extern "C" void exit (int) throw ();' \
11180    'extern "C" void exit (int);' \
11181    'void exit (int);'
11182 do
11183   cat >conftest.$ac_ext <<_ACEOF
11184 #line $LINENO "configure"
11185 /* confdefs.h.  */
11186 _ACEOF
11187 cat confdefs.h >>conftest.$ac_ext
11188 cat >>conftest.$ac_ext <<_ACEOF
11189 /* end confdefs.h.  */
11190 $ac_declaration
11191 #include <stdlib.h>
11192 int
11193 main ()
11194 {
11195 exit (42);
11196   ;
11197   return 0;
11198 }
11199 _ACEOF
11200 rm -f conftest.$ac_objext
11201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11202   (eval $ac_compile) 2>&5
11203   ac_status=$?
11204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205   (exit $ac_status); } &&
11206          { ac_try='test -s conftest.$ac_objext'
11207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11208   (eval $ac_try) 2>&5
11209   ac_status=$?
11210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211   (exit $ac_status); }; }; then
11212   :
11213 else
11214   echo "$as_me: failed program was:" >&5
11215 sed 's/^/| /' conftest.$ac_ext >&5
11216
11217 continue
11218 fi
11219 rm -f conftest.$ac_objext conftest.$ac_ext
11220   cat >conftest.$ac_ext <<_ACEOF
11221 #line $LINENO "configure"
11222 /* confdefs.h.  */
11223 _ACEOF
11224 cat confdefs.h >>conftest.$ac_ext
11225 cat >>conftest.$ac_ext <<_ACEOF
11226 /* end confdefs.h.  */
11227 $ac_declaration
11228 int
11229 main ()
11230 {
11231 exit (42);
11232   ;
11233   return 0;
11234 }
11235 _ACEOF
11236 rm -f conftest.$ac_objext
11237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11238   (eval $ac_compile) 2>&5
11239   ac_status=$?
11240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241   (exit $ac_status); } &&
11242          { ac_try='test -s conftest.$ac_objext'
11243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11244   (eval $ac_try) 2>&5
11245   ac_status=$?
11246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247   (exit $ac_status); }; }; then
11248   break
11249 else
11250   echo "$as_me: failed program was:" >&5
11251 sed 's/^/| /' conftest.$ac_ext >&5
11252
11253 fi
11254 rm -f conftest.$ac_objext conftest.$ac_ext
11255 done
11256 rm -f conftest*
11257 if test -n "$ac_declaration"; then
11258   echo '#ifdef __cplusplus' >>confdefs.h
11259   echo $ac_declaration      >>confdefs.h
11260   echo '#endif'             >>confdefs.h
11261 fi
11262
11263 ac_ext=cc
11264 ac_cpp='$CXXCPP $CPPFLAGS'
11265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11268
11269
11270 ac_ext=c
11271 ac_cpp='$CPP $CPPFLAGS'
11272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11275
11276
11277 if test -n "$ac_tool_prefix"; then
11278   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11279 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11280 echo "$as_me:$LINENO: checking for $ac_word" >&5
11281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11282 if test "${ac_cv_prog_RANLIB+set}" = set; then
11283   echo $ECHO_N "(cached) $ECHO_C" >&6
11284 else
11285   if test -n "$RANLIB"; then
11286   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11287 else
11288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11289 for as_dir in $PATH
11290 do
11291   IFS=$as_save_IFS
11292   test -z "$as_dir" && as_dir=.
11293   for ac_exec_ext in '' $ac_executable_extensions; do
11294   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11295     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11297     break 2
11298   fi
11299 done
11300 done
11301
11302 fi
11303 fi
11304 RANLIB=$ac_cv_prog_RANLIB
11305 if test -n "$RANLIB"; then
11306   echo "$as_me:$LINENO: result: $RANLIB" >&5
11307 echo "${ECHO_T}$RANLIB" >&6
11308 else
11309   echo "$as_me:$LINENO: result: no" >&5
11310 echo "${ECHO_T}no" >&6
11311 fi
11312
11313 fi
11314 if test -z "$ac_cv_prog_RANLIB"; then
11315   ac_ct_RANLIB=$RANLIB
11316   # Extract the first word of "ranlib", so it can be a program name with args.
11317 set dummy ranlib; ac_word=$2
11318 echo "$as_me:$LINENO: checking for $ac_word" >&5
11319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11320 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11321   echo $ECHO_N "(cached) $ECHO_C" >&6
11322 else
11323   if test -n "$ac_ct_RANLIB"; then
11324   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11325 else
11326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11327 for as_dir in $PATH
11328 do
11329   IFS=$as_save_IFS
11330   test -z "$as_dir" && as_dir=.
11331   for ac_exec_ext in '' $ac_executable_extensions; do
11332   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11333     ac_cv_prog_ac_ct_RANLIB="ranlib"
11334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11335     break 2
11336   fi
11337 done
11338 done
11339
11340   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11341 fi
11342 fi
11343 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11344 if test -n "$ac_ct_RANLIB"; then
11345   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11346 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11347 else
11348   echo "$as_me:$LINENO: result: no" >&5
11349 echo "${ECHO_T}no" >&6
11350 fi
11351
11352   RANLIB=$ac_ct_RANLIB
11353 else
11354   RANLIB="$ac_cv_prog_RANLIB"
11355 fi
11356
11357
11358 # Extract the first word of "ar", so it can be a program name with args.
11359 set dummy ar; ac_word=$2
11360 echo "$as_me:$LINENO: checking for $ac_word" >&5
11361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11362 if test "${ac_cv_prog_AR+set}" = set; then
11363   echo $ECHO_N "(cached) $ECHO_C" >&6
11364 else
11365   if test -n "$AR"; then
11366   ac_cv_prog_AR="$AR" # Let the user override the test.
11367 else
11368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11369 for as_dir in $PATH
11370 do
11371   IFS=$as_save_IFS
11372   test -z "$as_dir" && as_dir=.
11373   for ac_exec_ext in '' $ac_executable_extensions; do
11374   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11375     ac_cv_prog_AR="ar"
11376     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11377     break 2
11378   fi
11379 done
11380 done
11381
11382 fi
11383 fi
11384 AR=$ac_cv_prog_AR
11385 if test -n "$AR"; then
11386   echo "$as_me:$LINENO: result: $AR" >&5
11387 echo "${ECHO_T}$AR" >&6
11388 else
11389   echo "$as_me:$LINENO: result: no" >&5
11390 echo "${ECHO_T}no" >&6
11391 fi
11392
11393 if test "x$AR" = "x" ; then
11394     { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5
11395 echo "$as_me: error: ar is needed to build wxWindows" >&2;}
11396    { (exit 1); exit 1; }; }
11397 fi
11398
11399 # Find a good install program.  We prefer a C program (faster),
11400 # so one script is as good as another.  But avoid the broken or
11401 # incompatible versions:
11402 # SysV /etc/install, /usr/sbin/install
11403 # SunOS /usr/etc/install
11404 # IRIX /sbin/install
11405 # AIX /bin/install
11406 # AmigaOS /C/install, which installs bootblocks on floppy discs
11407 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11408 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11409 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11410 # ./install, which can be erroneously created by make from ./install.sh.
11411 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11412 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11413 if test -z "$INSTALL"; then
11414 if test "${ac_cv_path_install+set}" = set; then
11415   echo $ECHO_N "(cached) $ECHO_C" >&6
11416 else
11417   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11418 for as_dir in $PATH
11419 do
11420   IFS=$as_save_IFS
11421   test -z "$as_dir" && as_dir=.
11422   # Account for people who put trailing slashes in PATH elements.
11423 case $as_dir/ in
11424   ./ | .// | /cC/* | \
11425   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11426   /usr/ucb/* ) ;;
11427   *)
11428     # OSF1 and SCO ODT 3.0 have their own names for install.
11429     # Don't use installbsd from OSF since it installs stuff as root
11430     # by default.
11431     for ac_prog in ginstall scoinst install; do
11432       for ac_exec_ext in '' $ac_executable_extensions; do
11433         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11434           if test $ac_prog = install &&
11435             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11436             # AIX install.  It has an incompatible calling convention.
11437             :
11438           elif test $ac_prog = install &&
11439             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11440             # program-specific install script used by HP pwplus--don't use.
11441             :
11442           else
11443             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11444             break 3
11445           fi
11446         fi
11447       done
11448     done
11449     ;;
11450 esac
11451 done
11452
11453
11454 fi
11455   if test "${ac_cv_path_install+set}" = set; then
11456     INSTALL=$ac_cv_path_install
11457   else
11458     # As a last resort, use the slow shell script.  We don't cache a
11459     # path for INSTALL within a source directory, because that will
11460     # break other packages using the cache if that directory is
11461     # removed, or if the path is relative.
11462     INSTALL=$ac_install_sh
11463   fi
11464 fi
11465 echo "$as_me:$LINENO: result: $INSTALL" >&5
11466 echo "${ECHO_T}$INSTALL" >&6
11467
11468 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11469 # It thinks the first close brace ends the variable substitution.
11470 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11471
11472 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11473
11474 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11475
11476
11477 case ${INSTALL} in
11478   /* ) # Absolute
11479      ;;
11480   ?:* ) # Drive letter, considered as absolute.
11481      ;;
11482   *)
11483      INSTALL=`pwd`/${INSTALL} ;;
11484 esac
11485
11486 case ${host} in
11487     *-hp-hpux* )
11488         INSTALL_DIR="mkdir"
11489         ;;
11490
11491     *)  INSTALL_DIR="$INSTALL -d"
11492         ;;
11493 esac
11494
11495
11496 case "${host}" in
11497
11498                 powerpc-*-darwin* )
11499         INSTALL_PROGRAM="cp -fp"
11500         INSTALL_DATA="cp -fp"
11501         ;;
11502     *)
11503         ;;
11504 esac
11505
11506 # Extract the first word of "strip", so it can be a program name with args.
11507 set dummy strip; ac_word=$2
11508 echo "$as_me:$LINENO: checking for $ac_word" >&5
11509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11510 if test "${ac_cv_prog_STRIP+set}" = set; then
11511   echo $ECHO_N "(cached) $ECHO_C" >&6
11512 else
11513   if test -n "$STRIP"; then
11514   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11515 else
11516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11517 for as_dir in $PATH
11518 do
11519   IFS=$as_save_IFS
11520   test -z "$as_dir" && as_dir=.
11521   for ac_exec_ext in '' $ac_executable_extensions; do
11522   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11523     ac_cv_prog_STRIP="strip"
11524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11525     break 2
11526   fi
11527 done
11528 done
11529
11530   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11531 fi
11532 fi
11533 STRIP=$ac_cv_prog_STRIP
11534 if test -n "$STRIP"; then
11535   echo "$as_me:$LINENO: result: $STRIP" >&5
11536 echo "${ECHO_T}$STRIP" >&6
11537 else
11538   echo "$as_me:$LINENO: result: no" >&5
11539 echo "${ECHO_T}no" >&6
11540 fi
11541
11542
11543 echo "$as_me:$LINENO: checking if make is GNU make" >&5
11544 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11545 if test "${wx_cv_prog_makeisgnu+set}" = set; then
11546   echo $ECHO_N "(cached) $ECHO_C" >&6
11547 else
11548
11549     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
11550             egrep -s GNU > /dev/null); then
11551         wx_cv_prog_makeisgnu="yes"
11552     else
11553         wx_cv_prog_makeisgnu="no"
11554     fi
11555
11556 fi
11557 echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11558 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
11559
11560 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11561     IF_GNU_MAKE=""
11562 else
11563     IF_GNU_MAKE="#"
11564 fi
11565
11566
11567
11568 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
11569 echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11570 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11571 if test "${wx_cv_prog_makevpath+set}" = set; then
11572   echo $ECHO_N "(cached) $ECHO_C" >&6
11573 else
11574
11575 cat - << EOF > confMake
11576 check : file
11577         cp \$? \$@
11578         cp \$? final_file
11579 EOF
11580
11581 if test ! -d sub ; then
11582   mkdir sub
11583 fi
11584 echo dummy > sub/file
11585 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
11586 RESULT=$?
11587 rm -f sub/file check final_file confMake
11588 rmdir sub
11589 if test "$RESULT" = 0; then
11590   wx_cv_prog_makevpath="yes"
11591 else
11592   wx_cv_prog_makevpath="no"
11593 fi
11594
11595 fi
11596 echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11597 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
11598
11599 if test "x$wx_cv_prog_makevpath" != "xyes"; then
11600 { { echo "$as_me:$LINENO: error:
11601 You need a make-utility that is able to use the variable
11602 VPATH correctly.
11603 If your version of make does not support VPATH correctly,
11604 please install GNU-make (possibly as gmake), and start
11605 configure with the following command:
11606 export MAKE=gmake; ./configure  for sh-type shells
11607 setenv MAKE gmake; ./configure  for csh-type shells
11608 Also please do remember to use gmake in this case every time
11609 you are trying to compile.
11610 " >&5
11611 echo "$as_me: error:
11612 You need a make-utility that is able to use the variable
11613 VPATH correctly.
11614 If your version of make does not support VPATH correctly,
11615 please install GNU-make (possibly as gmake), and start
11616 configure with the following command:
11617 export MAKE=gmake; ./configure  for sh-type shells
11618 setenv MAKE gmake; ./configure  for csh-type shells
11619 Also please do remember to use gmake in this case every time
11620 you are trying to compile.
11621 " >&2;}
11622    { (exit 1); exit 1; }; }
11623 fi fi
11624 echo "$as_me:$LINENO: checking whether ln -s works" >&5
11625 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11626 LN_S=$as_ln_s
11627 if test "$LN_S" = "ln -s"; then
11628   echo "$as_me:$LINENO: result: yes" >&5
11629 echo "${ECHO_T}yes" >&6
11630 else
11631   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11632 echo "${ECHO_T}no, using $LN_S" >&6
11633 fi
11634
11635
11636 case "${host}" in
11637   *-pc-os2_emx | *-pc-os2-emx )
11638       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
11639                               echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
11640 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
11641 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
11642   echo $ECHO_N "(cached) $ECHO_C" >&6
11643 else
11644   ac_check_lib_save_LIBS=$LIBS
11645 LIBS="-lcExt  $LIBS"
11646 cat >conftest.$ac_ext <<_ACEOF
11647 #line $LINENO "configure"
11648 /* confdefs.h.  */
11649 _ACEOF
11650 cat confdefs.h >>conftest.$ac_ext
11651 cat >>conftest.$ac_ext <<_ACEOF
11652 /* end confdefs.h.  */
11653
11654 /* Override any gcc2 internal prototype to avoid an error.  */
11655 #ifdef __cplusplus
11656 extern "C"
11657 #endif
11658 /* We use char because int might match the return type of a gcc2
11659    builtin and then its argument prototype would still apply.  */
11660 char drand48 ();
11661 int
11662 main ()
11663 {
11664 drand48 ();
11665   ;
11666   return 0;
11667 }
11668 _ACEOF
11669 rm -f conftest.$ac_objext conftest$ac_exeext
11670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11671   (eval $ac_link) 2>&5
11672   ac_status=$?
11673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674   (exit $ac_status); } &&
11675          { ac_try='test -s conftest$ac_exeext'
11676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11677   (eval $ac_try) 2>&5
11678   ac_status=$?
11679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680   (exit $ac_status); }; }; then
11681   ac_cv_lib_cExt_drand48=yes
11682 else
11683   echo "$as_me: failed program was:" >&5
11684 sed 's/^/| /' conftest.$ac_ext >&5
11685
11686 ac_cv_lib_cExt_drand48=no
11687 fi
11688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11689 LIBS=$ac_check_lib_save_LIBS
11690 fi
11691 echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
11692 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
11693 if test $ac_cv_lib_cExt_drand48 = yes; then
11694   LIBS="$LIBS -lcExt"
11695 fi
11696
11697       else
11698                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
11699       fi
11700   ;;
11701 esac
11702
11703
11704 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
11705     echo "$as_me:$LINENO: checking for strings.h" >&5
11706 echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
11707 if test "${ac_cv_header_strings_h+set}" = set; then
11708   echo $ECHO_N "(cached) $ECHO_C" >&6
11709 else
11710   ac_cv_header_strings_h=no
11711 fi
11712 echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
11713 echo "${ECHO_T}$ac_cv_header_strings_h" >&6
11714     if test "$ac_cv_header_strings_h" = "no"; then
11715         echo "$as_me:$LINENO: result: forced no into cache" >&5
11716 echo "${ECHO_T}forced no into cache" >&6
11717     else
11718         { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5
11719 echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;}
11720     fi
11721 fi
11722 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11723 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11724 if test "${ac_cv_header_stdc+set}" = set; then
11725   echo $ECHO_N "(cached) $ECHO_C" >&6
11726 else
11727   cat >conftest.$ac_ext <<_ACEOF
11728 #line $LINENO "configure"
11729 /* confdefs.h.  */
11730 _ACEOF
11731 cat confdefs.h >>conftest.$ac_ext
11732 cat >>conftest.$ac_ext <<_ACEOF
11733 /* end confdefs.h.  */
11734 #include <stdlib.h>
11735 #include <stdarg.h>
11736 #include <string.h>
11737 #include <float.h>
11738
11739 int
11740 main ()
11741 {
11742
11743   ;
11744   return 0;
11745 }
11746 _ACEOF
11747 rm -f conftest.$ac_objext
11748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11749   (eval $ac_compile) 2>&5
11750   ac_status=$?
11751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752   (exit $ac_status); } &&
11753          { ac_try='test -s conftest.$ac_objext'
11754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11755   (eval $ac_try) 2>&5
11756   ac_status=$?
11757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758   (exit $ac_status); }; }; then
11759   ac_cv_header_stdc=yes
11760 else
11761   echo "$as_me: failed program was:" >&5
11762 sed 's/^/| /' conftest.$ac_ext >&5
11763
11764 ac_cv_header_stdc=no
11765 fi
11766 rm -f conftest.$ac_objext conftest.$ac_ext
11767
11768 if test $ac_cv_header_stdc = yes; then
11769   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11770   cat >conftest.$ac_ext <<_ACEOF
11771 #line $LINENO "configure"
11772 /* confdefs.h.  */
11773 _ACEOF
11774 cat confdefs.h >>conftest.$ac_ext
11775 cat >>conftest.$ac_ext <<_ACEOF
11776 /* end confdefs.h.  */
11777 #include <string.h>
11778
11779 _ACEOF
11780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11781   $EGREP "memchr" >/dev/null 2>&1; then
11782   :
11783 else
11784   ac_cv_header_stdc=no
11785 fi
11786 rm -f conftest*
11787
11788 fi
11789
11790 if test $ac_cv_header_stdc = yes; then
11791   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11792   cat >conftest.$ac_ext <<_ACEOF
11793 #line $LINENO "configure"
11794 /* confdefs.h.  */
11795 _ACEOF
11796 cat confdefs.h >>conftest.$ac_ext
11797 cat >>conftest.$ac_ext <<_ACEOF
11798 /* end confdefs.h.  */
11799 #include <stdlib.h>
11800
11801 _ACEOF
11802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11803   $EGREP "free" >/dev/null 2>&1; then
11804   :
11805 else
11806   ac_cv_header_stdc=no
11807 fi
11808 rm -f conftest*
11809
11810 fi
11811
11812 if test $ac_cv_header_stdc = yes; then
11813   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11814   if test "$cross_compiling" = yes; then
11815   :
11816 else
11817   cat >conftest.$ac_ext <<_ACEOF
11818 #line $LINENO "configure"
11819 /* confdefs.h.  */
11820 _ACEOF
11821 cat confdefs.h >>conftest.$ac_ext
11822 cat >>conftest.$ac_ext <<_ACEOF
11823 /* end confdefs.h.  */
11824 #include <ctype.h>
11825 #if ((' ' & 0x0FF) == 0x020)
11826 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11827 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11828 #else
11829 # define ISLOWER(c) \
11830                    (('a' <= (c) && (c) <= 'i') \
11831                      || ('j' <= (c) && (c) <= 'r') \
11832                      || ('s' <= (c) && (c) <= 'z'))
11833 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11834 #endif
11835
11836 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11837 int
11838 main ()
11839 {
11840   int i;
11841   for (i = 0; i < 256; i++)
11842     if (XOR (islower (i), ISLOWER (i))
11843         || toupper (i) != TOUPPER (i))
11844       exit(2);
11845   exit (0);
11846 }
11847 _ACEOF
11848 rm -f conftest$ac_exeext
11849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11850   (eval $ac_link) 2>&5
11851   ac_status=$?
11852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11855   (eval $ac_try) 2>&5
11856   ac_status=$?
11857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858   (exit $ac_status); }; }; then
11859   :
11860 else
11861   echo "$as_me: program exited with status $ac_status" >&5
11862 echo "$as_me: failed program was:" >&5
11863 sed 's/^/| /' conftest.$ac_ext >&5
11864
11865 ( exit $ac_status )
11866 ac_cv_header_stdc=no
11867 fi
11868 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11869 fi
11870 fi
11871 fi
11872 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11873 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11874 if test $ac_cv_header_stdc = yes; then
11875
11876 cat >>confdefs.h <<\_ACEOF
11877 #define STDC_HEADERS 1
11878 _ACEOF
11879
11880 fi
11881
11882 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
11893                   inttypes.h stdint.h unistd.h
11894 do
11895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11896 echo "$as_me:$LINENO: checking for $ac_header" >&5
11897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11899   echo $ECHO_N "(cached) $ECHO_C" >&6
11900 else
11901   cat >conftest.$ac_ext <<_ACEOF
11902 #line $LINENO "configure"
11903 /* confdefs.h.  */
11904 _ACEOF
11905 cat confdefs.h >>conftest.$ac_ext
11906 cat >>conftest.$ac_ext <<_ACEOF
11907 /* end confdefs.h.  */
11908 $ac_includes_default
11909
11910 #include <$ac_header>
11911 _ACEOF
11912 rm -f conftest.$ac_objext
11913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11914   (eval $ac_compile) 2>&5
11915   ac_status=$?
11916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917   (exit $ac_status); } &&
11918          { ac_try='test -s conftest.$ac_objext'
11919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920   (eval $ac_try) 2>&5
11921   ac_status=$?
11922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923   (exit $ac_status); }; }; then
11924   eval "$as_ac_Header=yes"
11925 else
11926   echo "$as_me: failed program was:" >&5
11927 sed 's/^/| /' conftest.$ac_ext >&5
11928
11929 eval "$as_ac_Header=no"
11930 fi
11931 rm -f conftest.$ac_objext conftest.$ac_ext
11932 fi
11933 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11934 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11936   cat >>confdefs.h <<_ACEOF
11937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11938 _ACEOF
11939
11940 fi
11941
11942 done
11943
11944
11945
11946 for ac_header in strings.h
11947 do
11948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11950   echo "$as_me:$LINENO: checking for $ac_header" >&5
11951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11953   echo $ECHO_N "(cached) $ECHO_C" >&6
11954 fi
11955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11957 else
11958   # Is the header compilable?
11959 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11961 cat >conftest.$ac_ext <<_ACEOF
11962 #line $LINENO "configure"
11963 /* confdefs.h.  */
11964 _ACEOF
11965 cat confdefs.h >>conftest.$ac_ext
11966 cat >>conftest.$ac_ext <<_ACEOF
11967 /* end confdefs.h.  */
11968 $ac_includes_default
11969 #include <$ac_header>
11970 _ACEOF
11971 rm -f conftest.$ac_objext
11972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11973   (eval $ac_compile) 2>&5
11974   ac_status=$?
11975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976   (exit $ac_status); } &&
11977          { ac_try='test -s conftest.$ac_objext'
11978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11979   (eval $ac_try) 2>&5
11980   ac_status=$?
11981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982   (exit $ac_status); }; }; then
11983   ac_header_compiler=yes
11984 else
11985   echo "$as_me: failed program was:" >&5
11986 sed 's/^/| /' conftest.$ac_ext >&5
11987
11988 ac_header_compiler=no
11989 fi
11990 rm -f conftest.$ac_objext conftest.$ac_ext
11991 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11992 echo "${ECHO_T}$ac_header_compiler" >&6
11993
11994 # Is the header present?
11995 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11997 cat >conftest.$ac_ext <<_ACEOF
11998 #line $LINENO "configure"
11999 /* confdefs.h.  */
12000 _ACEOF
12001 cat confdefs.h >>conftest.$ac_ext
12002 cat >>conftest.$ac_ext <<_ACEOF
12003 /* end confdefs.h.  */
12004 #include <$ac_header>
12005 _ACEOF
12006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12007   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12008   ac_status=$?
12009   grep -v '^ *+' conftest.er1 >conftest.err
12010   rm -f conftest.er1
12011   cat conftest.err >&5
12012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013   (exit $ac_status); } >/dev/null; then
12014   if test -s conftest.err; then
12015     ac_cpp_err=$ac_c_preproc_warn_flag
12016   else
12017     ac_cpp_err=
12018   fi
12019 else
12020   ac_cpp_err=yes
12021 fi
12022 if test -z "$ac_cpp_err"; then
12023   ac_header_preproc=yes
12024 else
12025   echo "$as_me: failed program was:" >&5
12026 sed 's/^/| /' conftest.$ac_ext >&5
12027
12028   ac_header_preproc=no
12029 fi
12030 rm -f conftest.err conftest.$ac_ext
12031 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12032 echo "${ECHO_T}$ac_header_preproc" >&6
12033
12034 # So?  What about this header?
12035 case $ac_header_compiler:$ac_header_preproc in
12036   yes:no )
12037     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12038 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12039     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12040 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12041     (
12042       cat <<\_ASBOX
12043 ## ------------------------------------ ##
12044 ## Report this to bug-autoconf@gnu.org. ##
12045 ## ------------------------------------ ##
12046 _ASBOX
12047     ) |
12048       sed "s/^/$as_me: WARNING:     /" >&2
12049     ;;
12050   no:yes )
12051     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12052 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12053     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12054 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12055     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12057     (
12058       cat <<\_ASBOX
12059 ## ------------------------------------ ##
12060 ## Report this to bug-autoconf@gnu.org. ##
12061 ## ------------------------------------ ##
12062 _ASBOX
12063     ) |
12064       sed "s/^/$as_me: WARNING:     /" >&2
12065     ;;
12066 esac
12067 echo "$as_me:$LINENO: checking for $ac_header" >&5
12068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12070   echo $ECHO_N "(cached) $ECHO_C" >&6
12071 else
12072   eval "$as_ac_Header=$ac_header_preproc"
12073 fi
12074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12076
12077 fi
12078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12079   cat >>confdefs.h <<_ACEOF
12080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12081 _ACEOF
12082
12083 fi
12084
12085 done
12086
12087
12088
12089 for ac_header in stdlib.h
12090 do
12091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12093   echo "$as_me:$LINENO: checking for $ac_header" >&5
12094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12096   echo $ECHO_N "(cached) $ECHO_C" >&6
12097 fi
12098 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12099 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12100 else
12101   # Is the header compilable?
12102 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12104 cat >conftest.$ac_ext <<_ACEOF
12105 #line $LINENO "configure"
12106 /* confdefs.h.  */
12107 _ACEOF
12108 cat confdefs.h >>conftest.$ac_ext
12109 cat >>conftest.$ac_ext <<_ACEOF
12110 /* end confdefs.h.  */
12111 $ac_includes_default
12112 #include <$ac_header>
12113 _ACEOF
12114 rm -f conftest.$ac_objext
12115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12116   (eval $ac_compile) 2>&5
12117   ac_status=$?
12118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119   (exit $ac_status); } &&
12120          { ac_try='test -s conftest.$ac_objext'
12121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12122   (eval $ac_try) 2>&5
12123   ac_status=$?
12124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125   (exit $ac_status); }; }; then
12126   ac_header_compiler=yes
12127 else
12128   echo "$as_me: failed program was:" >&5
12129 sed 's/^/| /' conftest.$ac_ext >&5
12130
12131 ac_header_compiler=no
12132 fi
12133 rm -f conftest.$ac_objext conftest.$ac_ext
12134 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12135 echo "${ECHO_T}$ac_header_compiler" >&6
12136
12137 # Is the header present?
12138 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12140 cat >conftest.$ac_ext <<_ACEOF
12141 #line $LINENO "configure"
12142 /* confdefs.h.  */
12143 _ACEOF
12144 cat confdefs.h >>conftest.$ac_ext
12145 cat >>conftest.$ac_ext <<_ACEOF
12146 /* end confdefs.h.  */
12147 #include <$ac_header>
12148 _ACEOF
12149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12150   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12151   ac_status=$?
12152   grep -v '^ *+' conftest.er1 >conftest.err
12153   rm -f conftest.er1
12154   cat conftest.err >&5
12155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156   (exit $ac_status); } >/dev/null; then
12157   if test -s conftest.err; then
12158     ac_cpp_err=$ac_c_preproc_warn_flag
12159   else
12160     ac_cpp_err=
12161   fi
12162 else
12163   ac_cpp_err=yes
12164 fi
12165 if test -z "$ac_cpp_err"; then
12166   ac_header_preproc=yes
12167 else
12168   echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12170
12171   ac_header_preproc=no
12172 fi
12173 rm -f conftest.err conftest.$ac_ext
12174 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12175 echo "${ECHO_T}$ac_header_preproc" >&6
12176
12177 # So?  What about this header?
12178 case $ac_header_compiler:$ac_header_preproc in
12179   yes:no )
12180     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12182     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12184     (
12185       cat <<\_ASBOX
12186 ## ------------------------------------ ##
12187 ## Report this to bug-autoconf@gnu.org. ##
12188 ## ------------------------------------ ##
12189 _ASBOX
12190     ) |
12191       sed "s/^/$as_me: WARNING:     /" >&2
12192     ;;
12193   no:yes )
12194     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12196     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12197 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12198     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12200     (
12201       cat <<\_ASBOX
12202 ## ------------------------------------ ##
12203 ## Report this to bug-autoconf@gnu.org. ##
12204 ## ------------------------------------ ##
12205 _ASBOX
12206     ) |
12207       sed "s/^/$as_me: WARNING:     /" >&2
12208     ;;
12209 esac
12210 echo "$as_me:$LINENO: checking for $ac_header" >&5
12211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12212 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12213   echo $ECHO_N "(cached) $ECHO_C" >&6
12214 else
12215   eval "$as_ac_Header=$ac_header_preproc"
12216 fi
12217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12218 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12219
12220 fi
12221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12222   cat >>confdefs.h <<_ACEOF
12223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12224 _ACEOF
12225
12226 fi
12227
12228 done
12229
12230
12231 for ac_header in malloc.h
12232 do
12233 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12235   echo "$as_me:$LINENO: checking for $ac_header" >&5
12236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12238   echo $ECHO_N "(cached) $ECHO_C" >&6
12239 fi
12240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12242 else
12243   # Is the header compilable?
12244 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12245 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12246 cat >conftest.$ac_ext <<_ACEOF
12247 #line $LINENO "configure"
12248 /* confdefs.h.  */
12249 _ACEOF
12250 cat confdefs.h >>conftest.$ac_ext
12251 cat >>conftest.$ac_ext <<_ACEOF
12252 /* end confdefs.h.  */
12253 $ac_includes_default
12254 #include <$ac_header>
12255 _ACEOF
12256 rm -f conftest.$ac_objext
12257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12258   (eval $ac_compile) 2>&5
12259   ac_status=$?
12260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261   (exit $ac_status); } &&
12262          { ac_try='test -s conftest.$ac_objext'
12263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12264   (eval $ac_try) 2>&5
12265   ac_status=$?
12266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267   (exit $ac_status); }; }; then
12268   ac_header_compiler=yes
12269 else
12270   echo "$as_me: failed program was:" >&5
12271 sed 's/^/| /' conftest.$ac_ext >&5
12272
12273 ac_header_compiler=no
12274 fi
12275 rm -f conftest.$ac_objext conftest.$ac_ext
12276 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12277 echo "${ECHO_T}$ac_header_compiler" >&6
12278
12279 # Is the header present?
12280 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12281 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12282 cat >conftest.$ac_ext <<_ACEOF
12283 #line $LINENO "configure"
12284 /* confdefs.h.  */
12285 _ACEOF
12286 cat confdefs.h >>conftest.$ac_ext
12287 cat >>conftest.$ac_ext <<_ACEOF
12288 /* end confdefs.h.  */
12289 #include <$ac_header>
12290 _ACEOF
12291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12292   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12293   ac_status=$?
12294   grep -v '^ *+' conftest.er1 >conftest.err
12295   rm -f conftest.er1
12296   cat conftest.err >&5
12297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298   (exit $ac_status); } >/dev/null; then
12299   if test -s conftest.err; then
12300     ac_cpp_err=$ac_c_preproc_warn_flag
12301   else
12302     ac_cpp_err=
12303   fi
12304 else
12305   ac_cpp_err=yes
12306 fi
12307 if test -z "$ac_cpp_err"; then
12308   ac_header_preproc=yes
12309 else
12310   echo "$as_me: failed program was:" >&5
12311 sed 's/^/| /' conftest.$ac_ext >&5
12312
12313   ac_header_preproc=no
12314 fi
12315 rm -f conftest.err conftest.$ac_ext
12316 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12317 echo "${ECHO_T}$ac_header_preproc" >&6
12318
12319 # So?  What about this header?
12320 case $ac_header_compiler:$ac_header_preproc in
12321   yes:no )
12322     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12324     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12326     (
12327       cat <<\_ASBOX
12328 ## ------------------------------------ ##
12329 ## Report this to bug-autoconf@gnu.org. ##
12330 ## ------------------------------------ ##
12331 _ASBOX
12332     ) |
12333       sed "s/^/$as_me: WARNING:     /" >&2
12334     ;;
12335   no:yes )
12336     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12337 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12338     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12339 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12340     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12342     (
12343       cat <<\_ASBOX
12344 ## ------------------------------------ ##
12345 ## Report this to bug-autoconf@gnu.org. ##
12346 ## ------------------------------------ ##
12347 _ASBOX
12348     ) |
12349       sed "s/^/$as_me: WARNING:     /" >&2
12350     ;;
12351 esac
12352 echo "$as_me:$LINENO: checking for $ac_header" >&5
12353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12355   echo $ECHO_N "(cached) $ECHO_C" >&6
12356 else
12357   eval "$as_ac_Header=$ac_header_preproc"
12358 fi
12359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12361
12362 fi
12363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12364   cat >>confdefs.h <<_ACEOF
12365 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12366 _ACEOF
12367
12368 fi
12369
12370 done
12371
12372
12373 for ac_header in unistd.h
12374 do
12375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12377   echo "$as_me:$LINENO: checking for $ac_header" >&5
12378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12380   echo $ECHO_N "(cached) $ECHO_C" >&6
12381 fi
12382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12384 else
12385   # Is the header compilable?
12386 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12387 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12388 cat >conftest.$ac_ext <<_ACEOF
12389 #line $LINENO "configure"
12390 /* confdefs.h.  */
12391 _ACEOF
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h.  */
12395 $ac_includes_default
12396 #include <$ac_header>
12397 _ACEOF
12398 rm -f conftest.$ac_objext
12399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12400   (eval $ac_compile) 2>&5
12401   ac_status=$?
12402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403   (exit $ac_status); } &&
12404          { ac_try='test -s conftest.$ac_objext'
12405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12406   (eval $ac_try) 2>&5
12407   ac_status=$?
12408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409   (exit $ac_status); }; }; then
12410   ac_header_compiler=yes
12411 else
12412   echo "$as_me: failed program was:" >&5
12413 sed 's/^/| /' conftest.$ac_ext >&5
12414
12415 ac_header_compiler=no
12416 fi
12417 rm -f conftest.$ac_objext conftest.$ac_ext
12418 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12419 echo "${ECHO_T}$ac_header_compiler" >&6
12420
12421 # Is the header present?
12422 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12423 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12424 cat >conftest.$ac_ext <<_ACEOF
12425 #line $LINENO "configure"
12426 /* confdefs.h.  */
12427 _ACEOF
12428 cat confdefs.h >>conftest.$ac_ext
12429 cat >>conftest.$ac_ext <<_ACEOF
12430 /* end confdefs.h.  */
12431 #include <$ac_header>
12432 _ACEOF
12433 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12434   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12435   ac_status=$?
12436   grep -v '^ *+' conftest.er1 >conftest.err
12437   rm -f conftest.er1
12438   cat conftest.err >&5
12439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440   (exit $ac_status); } >/dev/null; then
12441   if test -s conftest.err; then
12442     ac_cpp_err=$ac_c_preproc_warn_flag
12443   else
12444     ac_cpp_err=
12445   fi
12446 else
12447   ac_cpp_err=yes
12448 fi
12449 if test -z "$ac_cpp_err"; then
12450   ac_header_preproc=yes
12451 else
12452   echo "$as_me: failed program was:" >&5
12453 sed 's/^/| /' conftest.$ac_ext >&5
12454
12455   ac_header_preproc=no
12456 fi
12457 rm -f conftest.err conftest.$ac_ext
12458 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12459 echo "${ECHO_T}$ac_header_preproc" >&6
12460
12461 # So?  What about this header?
12462 case $ac_header_compiler:$ac_header_preproc in
12463   yes:no )
12464     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12465 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12466     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12468     (
12469       cat <<\_ASBOX
12470 ## ------------------------------------ ##
12471 ## Report this to bug-autoconf@gnu.org. ##
12472 ## ------------------------------------ ##
12473 _ASBOX
12474     ) |
12475       sed "s/^/$as_me: WARNING:     /" >&2
12476     ;;
12477   no:yes )
12478     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12479 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12480     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12481 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12482     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12484     (
12485       cat <<\_ASBOX
12486 ## ------------------------------------ ##
12487 ## Report this to bug-autoconf@gnu.org. ##
12488 ## ------------------------------------ ##
12489 _ASBOX
12490     ) |
12491       sed "s/^/$as_me: WARNING:     /" >&2
12492     ;;
12493 esac
12494 echo "$as_me:$LINENO: checking for $ac_header" >&5
12495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12497   echo $ECHO_N "(cached) $ECHO_C" >&6
12498 else
12499   eval "$as_ac_Header=$ac_header_preproc"
12500 fi
12501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12503
12504 fi
12505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12506   cat >>confdefs.h <<_ACEOF
12507 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12508 _ACEOF
12509
12510 fi
12511
12512 done
12513
12514
12515 for ac_header in wchar.h
12516 do
12517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12519   echo "$as_me:$LINENO: checking for $ac_header" >&5
12520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12522   echo $ECHO_N "(cached) $ECHO_C" >&6
12523 fi
12524 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12525 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12526 else
12527   # Is the header compilable?
12528 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12530 cat >conftest.$ac_ext <<_ACEOF
12531 #line $LINENO "configure"
12532 /* confdefs.h.  */
12533 _ACEOF
12534 cat confdefs.h >>conftest.$ac_ext
12535 cat >>conftest.$ac_ext <<_ACEOF
12536 /* end confdefs.h.  */
12537 $ac_includes_default
12538 #include <$ac_header>
12539 _ACEOF
12540 rm -f conftest.$ac_objext
12541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12542   (eval $ac_compile) 2>&5
12543   ac_status=$?
12544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545   (exit $ac_status); } &&
12546          { ac_try='test -s conftest.$ac_objext'
12547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548   (eval $ac_try) 2>&5
12549   ac_status=$?
12550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551   (exit $ac_status); }; }; then
12552   ac_header_compiler=yes
12553 else
12554   echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12556
12557 ac_header_compiler=no
12558 fi
12559 rm -f conftest.$ac_objext conftest.$ac_ext
12560 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12561 echo "${ECHO_T}$ac_header_compiler" >&6
12562
12563 # Is the header present?
12564 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12566 cat >conftest.$ac_ext <<_ACEOF
12567 #line $LINENO "configure"
12568 /* confdefs.h.  */
12569 _ACEOF
12570 cat confdefs.h >>conftest.$ac_ext
12571 cat >>conftest.$ac_ext <<_ACEOF
12572 /* end confdefs.h.  */
12573 #include <$ac_header>
12574 _ACEOF
12575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12576   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12577   ac_status=$?
12578   grep -v '^ *+' conftest.er1 >conftest.err
12579   rm -f conftest.er1
12580   cat conftest.err >&5
12581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582   (exit $ac_status); } >/dev/null; then
12583   if test -s conftest.err; then
12584     ac_cpp_err=$ac_c_preproc_warn_flag
12585   else
12586     ac_cpp_err=
12587   fi
12588 else
12589   ac_cpp_err=yes
12590 fi
12591 if test -z "$ac_cpp_err"; then
12592   ac_header_preproc=yes
12593 else
12594   echo "$as_me: failed program was:" >&5
12595 sed 's/^/| /' conftest.$ac_ext >&5
12596
12597   ac_header_preproc=no
12598 fi
12599 rm -f conftest.err conftest.$ac_ext
12600 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12601 echo "${ECHO_T}$ac_header_preproc" >&6
12602
12603 # So?  What about this header?
12604 case $ac_header_compiler:$ac_header_preproc in
12605   yes:no )
12606     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12608     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12610     (
12611       cat <<\_ASBOX
12612 ## ------------------------------------ ##
12613 ## Report this to bug-autoconf@gnu.org. ##
12614 ## ------------------------------------ ##
12615 _ASBOX
12616     ) |
12617       sed "s/^/$as_me: WARNING:     /" >&2
12618     ;;
12619   no:yes )
12620     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12622     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12624     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12626     (
12627       cat <<\_ASBOX
12628 ## ------------------------------------ ##
12629 ## Report this to bug-autoconf@gnu.org. ##
12630 ## ------------------------------------ ##
12631 _ASBOX
12632     ) |
12633       sed "s/^/$as_me: WARNING:     /" >&2
12634     ;;
12635 esac
12636 echo "$as_me:$LINENO: checking for $ac_header" >&5
12637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12638 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12639   echo $ECHO_N "(cached) $ECHO_C" >&6
12640 else
12641   eval "$as_ac_Header=$ac_header_preproc"
12642 fi
12643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12645
12646 fi
12647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12648   cat >>confdefs.h <<_ACEOF
12649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12650 _ACEOF
12651
12652 fi
12653
12654 done
12655
12656
12657 if test "$ac_cv_header_wchar_h" != "yes"; then
12658
12659 for ac_header in wcstr.h
12660 do
12661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12663   echo "$as_me:$LINENO: checking for $ac_header" >&5
12664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12666   echo $ECHO_N "(cached) $ECHO_C" >&6
12667 fi
12668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12669 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12670 else
12671   # Is the header compilable?
12672 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12674 cat >conftest.$ac_ext <<_ACEOF
12675 #line $LINENO "configure"
12676 /* confdefs.h.  */
12677 _ACEOF
12678 cat confdefs.h >>conftest.$ac_ext
12679 cat >>conftest.$ac_ext <<_ACEOF
12680 /* end confdefs.h.  */
12681 $ac_includes_default
12682 #include <$ac_header>
12683 _ACEOF
12684 rm -f conftest.$ac_objext
12685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12686   (eval $ac_compile) 2>&5
12687   ac_status=$?
12688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689   (exit $ac_status); } &&
12690          { ac_try='test -s conftest.$ac_objext'
12691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12692   (eval $ac_try) 2>&5
12693   ac_status=$?
12694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12695   (exit $ac_status); }; }; then
12696   ac_header_compiler=yes
12697 else
12698   echo "$as_me: failed program was:" >&5
12699 sed 's/^/| /' conftest.$ac_ext >&5
12700
12701 ac_header_compiler=no
12702 fi
12703 rm -f conftest.$ac_objext conftest.$ac_ext
12704 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12705 echo "${ECHO_T}$ac_header_compiler" >&6
12706
12707 # Is the header present?
12708 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12709 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12710 cat >conftest.$ac_ext <<_ACEOF
12711 #line $LINENO "configure"
12712 /* confdefs.h.  */
12713 _ACEOF
12714 cat confdefs.h >>conftest.$ac_ext
12715 cat >>conftest.$ac_ext <<_ACEOF
12716 /* end confdefs.h.  */
12717 #include <$ac_header>
12718 _ACEOF
12719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12720   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12721   ac_status=$?
12722   grep -v '^ *+' conftest.er1 >conftest.err
12723   rm -f conftest.er1
12724   cat conftest.err >&5
12725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726   (exit $ac_status); } >/dev/null; then
12727   if test -s conftest.err; then
12728     ac_cpp_err=$ac_c_preproc_warn_flag
12729   else
12730     ac_cpp_err=
12731   fi
12732 else
12733   ac_cpp_err=yes
12734 fi
12735 if test -z "$ac_cpp_err"; then
12736   ac_header_preproc=yes
12737 else
12738   echo "$as_me: failed program was:" >&5
12739 sed 's/^/| /' conftest.$ac_ext >&5
12740
12741   ac_header_preproc=no
12742 fi
12743 rm -f conftest.err conftest.$ac_ext
12744 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12745 echo "${ECHO_T}$ac_header_preproc" >&6
12746
12747 # So?  What about this header?
12748 case $ac_header_compiler:$ac_header_preproc in
12749   yes:no )
12750     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12752     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12754     (
12755       cat <<\_ASBOX
12756 ## ------------------------------------ ##
12757 ## Report this to bug-autoconf@gnu.org. ##
12758 ## ------------------------------------ ##
12759 _ASBOX
12760     ) |
12761       sed "s/^/$as_me: WARNING:     /" >&2
12762     ;;
12763   no:yes )
12764     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12765 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12766     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12767 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12768     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12770     (
12771       cat <<\_ASBOX
12772 ## ------------------------------------ ##
12773 ## Report this to bug-autoconf@gnu.org. ##
12774 ## ------------------------------------ ##
12775 _ASBOX
12776     ) |
12777       sed "s/^/$as_me: WARNING:     /" >&2
12778     ;;
12779 esac
12780 echo "$as_me:$LINENO: checking for $ac_header" >&5
12781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12783   echo $ECHO_N "(cached) $ECHO_C" >&6
12784 else
12785   eval "$as_ac_Header=$ac_header_preproc"
12786 fi
12787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12789
12790 fi
12791 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12792   cat >>confdefs.h <<_ACEOF
12793 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12794 _ACEOF
12795
12796 fi
12797
12798 done
12799
12800 fi
12801
12802
12803 for ac_header in fnmatch.h
12804 do
12805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12807   echo "$as_me:$LINENO: checking for $ac_header" >&5
12808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12810   echo $ECHO_N "(cached) $ECHO_C" >&6
12811 fi
12812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12814 else
12815   # Is the header compilable?
12816 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12817 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12818 cat >conftest.$ac_ext <<_ACEOF
12819 #line $LINENO "configure"
12820 /* confdefs.h.  */
12821 _ACEOF
12822 cat confdefs.h >>conftest.$ac_ext
12823 cat >>conftest.$ac_ext <<_ACEOF
12824 /* end confdefs.h.  */
12825 $ac_includes_default
12826 #include <$ac_header>
12827 _ACEOF
12828 rm -f conftest.$ac_objext
12829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12830   (eval $ac_compile) 2>&5
12831   ac_status=$?
12832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833   (exit $ac_status); } &&
12834          { ac_try='test -s conftest.$ac_objext'
12835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12836   (eval $ac_try) 2>&5
12837   ac_status=$?
12838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839   (exit $ac_status); }; }; then
12840   ac_header_compiler=yes
12841 else
12842   echo "$as_me: failed program was:" >&5
12843 sed 's/^/| /' conftest.$ac_ext >&5
12844
12845 ac_header_compiler=no
12846 fi
12847 rm -f conftest.$ac_objext conftest.$ac_ext
12848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12849 echo "${ECHO_T}$ac_header_compiler" >&6
12850
12851 # Is the header present?
12852 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12854 cat >conftest.$ac_ext <<_ACEOF
12855 #line $LINENO "configure"
12856 /* confdefs.h.  */
12857 _ACEOF
12858 cat confdefs.h >>conftest.$ac_ext
12859 cat >>conftest.$ac_ext <<_ACEOF
12860 /* end confdefs.h.  */
12861 #include <$ac_header>
12862 _ACEOF
12863 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12864   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12865   ac_status=$?
12866   grep -v '^ *+' conftest.er1 >conftest.err
12867   rm -f conftest.er1
12868   cat conftest.err >&5
12869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870   (exit $ac_status); } >/dev/null; then
12871   if test -s conftest.err; then
12872     ac_cpp_err=$ac_c_preproc_warn_flag
12873   else
12874     ac_cpp_err=
12875   fi
12876 else
12877   ac_cpp_err=yes
12878 fi
12879 if test -z "$ac_cpp_err"; then
12880   ac_header_preproc=yes
12881 else
12882   echo "$as_me: failed program was:" >&5
12883 sed 's/^/| /' conftest.$ac_ext >&5
12884
12885   ac_header_preproc=no
12886 fi
12887 rm -f conftest.err conftest.$ac_ext
12888 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12889 echo "${ECHO_T}$ac_header_preproc" >&6
12890
12891 # So?  What about this header?
12892 case $ac_header_compiler:$ac_header_preproc in
12893   yes:no )
12894     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12895 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12896     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12898     (
12899       cat <<\_ASBOX
12900 ## ------------------------------------ ##
12901 ## Report this to bug-autoconf@gnu.org. ##
12902 ## ------------------------------------ ##
12903 _ASBOX
12904     ) |
12905       sed "s/^/$as_me: WARNING:     /" >&2
12906     ;;
12907   no:yes )
12908     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12909 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12910     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12911 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12912     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12913 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12914     (
12915       cat <<\_ASBOX
12916 ## ------------------------------------ ##
12917 ## Report this to bug-autoconf@gnu.org. ##
12918 ## ------------------------------------ ##
12919 _ASBOX
12920     ) |
12921       sed "s/^/$as_me: WARNING:     /" >&2
12922     ;;
12923 esac
12924 echo "$as_me:$LINENO: checking for $ac_header" >&5
12925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12927   echo $ECHO_N "(cached) $ECHO_C" >&6
12928 else
12929   eval "$as_ac_Header=$ac_header_preproc"
12930 fi
12931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12933
12934 fi
12935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12936   cat >>confdefs.h <<_ACEOF
12937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12938 _ACEOF
12939
12940 fi
12941
12942 done
12943
12944
12945 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
12946
12947 for ac_func in fnmatch
12948 do
12949 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12950 echo "$as_me:$LINENO: checking for $ac_func" >&5
12951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12952 if eval "test \"\${$as_ac_var+set}\" = set"; then
12953   echo $ECHO_N "(cached) $ECHO_C" >&6
12954 else
12955   cat >conftest.$ac_ext <<_ACEOF
12956 #line $LINENO "configure"
12957 /* confdefs.h.  */
12958 _ACEOF
12959 cat confdefs.h >>conftest.$ac_ext
12960 cat >>conftest.$ac_ext <<_ACEOF
12961 /* end confdefs.h.  */
12962 /* System header to define __stub macros and hopefully few prototypes,
12963     which can conflict with char $ac_func (); below.
12964     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12965     <limits.h> exists even on freestanding compilers.  */
12966 #ifdef __STDC__
12967 # include <limits.h>
12968 #else
12969 # include <assert.h>
12970 #endif
12971 /* Override any gcc2 internal prototype to avoid an error.  */
12972 #ifdef __cplusplus
12973 extern "C"
12974 {
12975 #endif
12976 /* We use char because int might match the return type of a gcc2
12977    builtin and then its argument prototype would still apply.  */
12978 char $ac_func ();
12979 /* The GNU C library defines this for functions which it implements
12980     to always fail with ENOSYS.  Some functions are actually named
12981     something starting with __ and the normal name is an alias.  */
12982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12983 choke me
12984 #else
12985 char (*f) () = $ac_func;
12986 #endif
12987 #ifdef __cplusplus
12988 }
12989 #endif
12990
12991 int
12992 main ()
12993 {
12994 return f != $ac_func;
12995   ;
12996   return 0;
12997 }
12998 _ACEOF
12999 rm -f conftest.$ac_objext conftest$ac_exeext
13000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13001   (eval $ac_link) 2>&5
13002   ac_status=$?
13003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004   (exit $ac_status); } &&
13005          { ac_try='test -s conftest$ac_exeext'
13006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13007   (eval $ac_try) 2>&5
13008   ac_status=$?
13009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010   (exit $ac_status); }; }; then
13011   eval "$as_ac_var=yes"
13012 else
13013   echo "$as_me: failed program was:" >&5
13014 sed 's/^/| /' conftest.$ac_ext >&5
13015
13016 eval "$as_ac_var=no"
13017 fi
13018 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13019 fi
13020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13021 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13022 if test `eval echo '${'$as_ac_var'}'` = yes; then
13023   cat >>confdefs.h <<_ACEOF
13024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13025 _ACEOF
13026
13027 fi
13028 done
13029
13030 fi
13031
13032
13033 for ac_header in langinfo.h
13034 do
13035 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13036 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13037   echo "$as_me:$LINENO: checking for $ac_header" >&5
13038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13039 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13040   echo $ECHO_N "(cached) $ECHO_C" >&6
13041 fi
13042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13043 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13044 else
13045   # Is the header compilable?
13046 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13047 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13048 cat >conftest.$ac_ext <<_ACEOF
13049 #line $LINENO "configure"
13050 /* confdefs.h.  */
13051 _ACEOF
13052 cat confdefs.h >>conftest.$ac_ext
13053 cat >>conftest.$ac_ext <<_ACEOF
13054 /* end confdefs.h.  */
13055 $ac_includes_default
13056 #include <$ac_header>
13057 _ACEOF
13058 rm -f conftest.$ac_objext
13059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13060   (eval $ac_compile) 2>&5
13061   ac_status=$?
13062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063   (exit $ac_status); } &&
13064          { ac_try='test -s conftest.$ac_objext'
13065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13066   (eval $ac_try) 2>&5
13067   ac_status=$?
13068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069   (exit $ac_status); }; }; then
13070   ac_header_compiler=yes
13071 else
13072   echo "$as_me: failed program was:" >&5
13073 sed 's/^/| /' conftest.$ac_ext >&5
13074
13075 ac_header_compiler=no
13076 fi
13077 rm -f conftest.$ac_objext conftest.$ac_ext
13078 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13079 echo "${ECHO_T}$ac_header_compiler" >&6
13080
13081 # Is the header present?
13082 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13083 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13084 cat >conftest.$ac_ext <<_ACEOF
13085 #line $LINENO "configure"
13086 /* confdefs.h.  */
13087 _ACEOF
13088 cat confdefs.h >>conftest.$ac_ext
13089 cat >>conftest.$ac_ext <<_ACEOF
13090 /* end confdefs.h.  */
13091 #include <$ac_header>
13092 _ACEOF
13093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13094   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13095   ac_status=$?
13096   grep -v '^ *+' conftest.er1 >conftest.err
13097   rm -f conftest.er1
13098   cat conftest.err >&5
13099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100   (exit $ac_status); } >/dev/null; then
13101   if test -s conftest.err; then
13102     ac_cpp_err=$ac_c_preproc_warn_flag
13103   else
13104     ac_cpp_err=
13105   fi
13106 else
13107   ac_cpp_err=yes
13108 fi
13109 if test -z "$ac_cpp_err"; then
13110   ac_header_preproc=yes
13111 else
13112   echo "$as_me: failed program was:" >&5
13113 sed 's/^/| /' conftest.$ac_ext >&5
13114
13115   ac_header_preproc=no
13116 fi
13117 rm -f conftest.err conftest.$ac_ext
13118 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13119 echo "${ECHO_T}$ac_header_preproc" >&6
13120
13121 # So?  What about this header?
13122 case $ac_header_compiler:$ac_header_preproc in
13123   yes:no )
13124     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13125 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13126     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13127 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13128     (
13129       cat <<\_ASBOX
13130 ## ------------------------------------ ##
13131 ## Report this to bug-autoconf@gnu.org. ##
13132 ## ------------------------------------ ##
13133 _ASBOX
13134     ) |
13135       sed "s/^/$as_me: WARNING:     /" >&2
13136     ;;
13137   no:yes )
13138     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13139 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13140     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13141 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13142     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13144     (
13145       cat <<\_ASBOX
13146 ## ------------------------------------ ##
13147 ## Report this to bug-autoconf@gnu.org. ##
13148 ## ------------------------------------ ##
13149 _ASBOX
13150     ) |
13151       sed "s/^/$as_me: WARNING:     /" >&2
13152     ;;
13153 esac
13154 echo "$as_me:$LINENO: checking for $ac_header" >&5
13155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13157   echo $ECHO_N "(cached) $ECHO_C" >&6
13158 else
13159   eval "$as_ac_Header=$ac_header_preproc"
13160 fi
13161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13163
13164 fi
13165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13166   cat >>confdefs.h <<_ACEOF
13167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13168 _ACEOF
13169
13170 fi
13171
13172 done
13173
13174
13175 case "${host}" in
13176   *-pc-os2_emx | *-pc-os2-emx )
13177             if test $ac_cv_header_langinfo_h = "yes"; then
13178           LIBS="$LIBS -lintl"
13179       fi
13180   ;;
13181 esac
13182
13183 if test "$wxUSE_GUI" = "yes"; then
13184     if test "$wxUSE_UNIX" = "yes"; then
13185
13186 for ac_header in X11/Xlib.h
13187 do
13188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13190   echo "$as_me:$LINENO: checking for $ac_header" >&5
13191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13193   echo $ECHO_N "(cached) $ECHO_C" >&6
13194 fi
13195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13197 else
13198   # Is the header compilable?
13199 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13200 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13201 cat >conftest.$ac_ext <<_ACEOF
13202 #line $LINENO "configure"
13203 /* confdefs.h.  */
13204 _ACEOF
13205 cat confdefs.h >>conftest.$ac_ext
13206 cat >>conftest.$ac_ext <<_ACEOF
13207 /* end confdefs.h.  */
13208 $ac_includes_default
13209 #include <$ac_header>
13210 _ACEOF
13211 rm -f conftest.$ac_objext
13212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13213   (eval $ac_compile) 2>&5
13214   ac_status=$?
13215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216   (exit $ac_status); } &&
13217          { ac_try='test -s conftest.$ac_objext'
13218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13219   (eval $ac_try) 2>&5
13220   ac_status=$?
13221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222   (exit $ac_status); }; }; then
13223   ac_header_compiler=yes
13224 else
13225   echo "$as_me: failed program was:" >&5
13226 sed 's/^/| /' conftest.$ac_ext >&5
13227
13228 ac_header_compiler=no
13229 fi
13230 rm -f conftest.$ac_objext conftest.$ac_ext
13231 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13232 echo "${ECHO_T}$ac_header_compiler" >&6
13233
13234 # Is the header present?
13235 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13236 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13237 cat >conftest.$ac_ext <<_ACEOF
13238 #line $LINENO "configure"
13239 /* confdefs.h.  */
13240 _ACEOF
13241 cat confdefs.h >>conftest.$ac_ext
13242 cat >>conftest.$ac_ext <<_ACEOF
13243 /* end confdefs.h.  */
13244 #include <$ac_header>
13245 _ACEOF
13246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13247   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13248   ac_status=$?
13249   grep -v '^ *+' conftest.er1 >conftest.err
13250   rm -f conftest.er1
13251   cat conftest.err >&5
13252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253   (exit $ac_status); } >/dev/null; then
13254   if test -s conftest.err; then
13255     ac_cpp_err=$ac_c_preproc_warn_flag
13256   else
13257     ac_cpp_err=
13258   fi
13259 else
13260   ac_cpp_err=yes
13261 fi
13262 if test -z "$ac_cpp_err"; then
13263   ac_header_preproc=yes
13264 else
13265   echo "$as_me: failed program was:" >&5
13266 sed 's/^/| /' conftest.$ac_ext >&5
13267
13268   ac_header_preproc=no
13269 fi
13270 rm -f conftest.err conftest.$ac_ext
13271 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13272 echo "${ECHO_T}$ac_header_preproc" >&6
13273
13274 # So?  What about this header?
13275 case $ac_header_compiler:$ac_header_preproc in
13276   yes:no )
13277     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13278 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13279     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13280 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13281     (
13282       cat <<\_ASBOX
13283 ## ------------------------------------ ##
13284 ## Report this to bug-autoconf@gnu.org. ##
13285 ## ------------------------------------ ##
13286 _ASBOX
13287     ) |
13288       sed "s/^/$as_me: WARNING:     /" >&2
13289     ;;
13290   no:yes )
13291     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13292 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13293     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13294 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13295     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13297     (
13298       cat <<\_ASBOX
13299 ## ------------------------------------ ##
13300 ## Report this to bug-autoconf@gnu.org. ##
13301 ## ------------------------------------ ##
13302 _ASBOX
13303     ) |
13304       sed "s/^/$as_me: WARNING:     /" >&2
13305     ;;
13306 esac
13307 echo "$as_me:$LINENO: checking for $ac_header" >&5
13308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13310   echo $ECHO_N "(cached) $ECHO_C" >&6
13311 else
13312   eval "$as_ac_Header=$ac_header_preproc"
13313 fi
13314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13316
13317 fi
13318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13319   cat >>confdefs.h <<_ACEOF
13320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13321 _ACEOF
13322
13323 fi
13324
13325 done
13326
13327
13328 for ac_header in X11/XKBlib.h
13329 do
13330 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13331 echo "$as_me:$LINENO: checking for $ac_header" >&5
13332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13334   echo $ECHO_N "(cached) $ECHO_C" >&6
13335 else
13336   cat >conftest.$ac_ext <<_ACEOF
13337 #line $LINENO "configure"
13338 /* confdefs.h.  */
13339 _ACEOF
13340 cat confdefs.h >>conftest.$ac_ext
13341 cat >>conftest.$ac_ext <<_ACEOF
13342 /* end confdefs.h.  */
13343
13344                           #if HAVE_X11_XLIB_H
13345                             #include <X11/Xlib.h>
13346                           #endif
13347
13348
13349 #include <$ac_header>
13350 _ACEOF
13351 rm -f conftest.$ac_objext
13352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13353   (eval $ac_compile) 2>&5
13354   ac_status=$?
13355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356   (exit $ac_status); } &&
13357          { ac_try='test -s conftest.$ac_objext'
13358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13359   (eval $ac_try) 2>&5
13360   ac_status=$?
13361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362   (exit $ac_status); }; }; then
13363   eval "$as_ac_Header=yes"
13364 else
13365   echo "$as_me: failed program was:" >&5
13366 sed 's/^/| /' conftest.$ac_ext >&5
13367
13368 eval "$as_ac_Header=no"
13369 fi
13370 rm -f conftest.$ac_objext conftest.$ac_ext
13371 fi
13372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
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     fi
13384 fi
13385
13386
13387 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13388 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13389 if test "${ac_cv_c_const+set}" = set; then
13390   echo $ECHO_N "(cached) $ECHO_C" >&6
13391 else
13392   cat >conftest.$ac_ext <<_ACEOF
13393 #line $LINENO "configure"
13394 /* confdefs.h.  */
13395 _ACEOF
13396 cat confdefs.h >>conftest.$ac_ext
13397 cat >>conftest.$ac_ext <<_ACEOF
13398 /* end confdefs.h.  */
13399
13400 int
13401 main ()
13402 {
13403 /* FIXME: Include the comments suggested by Paul. */
13404 #ifndef __cplusplus
13405   /* Ultrix mips cc rejects this.  */
13406   typedef int charset[2];
13407   const charset x;
13408   /* SunOS 4.1.1 cc rejects this.  */
13409   char const *const *ccp;
13410   char **p;
13411   /* NEC SVR4.0.2 mips cc rejects this.  */
13412   struct point {int x, y;};
13413   static struct point const zero = {0,0};
13414   /* AIX XL C 1.02.0.0 rejects this.
13415      It does not let you subtract one const X* pointer from another in
13416      an arm of an if-expression whose if-part is not a constant
13417      expression */
13418   const char *g = "string";
13419   ccp = &g + (g ? g-g : 0);
13420   /* HPUX 7.0 cc rejects these. */
13421   ++ccp;
13422   p = (char**) ccp;
13423   ccp = (char const *const *) p;
13424   { /* SCO 3.2v4 cc rejects this.  */
13425     char *t;
13426     char const *s = 0 ? (char *) 0 : (char const *) 0;
13427
13428     *t++ = 0;
13429   }
13430   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13431     int x[] = {25, 17};
13432     const int *foo = &x[0];
13433     ++foo;
13434   }
13435   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13436     typedef const int *iptr;
13437     iptr p = 0;
13438     ++p;
13439   }
13440   { /* AIX XL C 1.02.0.0 rejects this saying
13441        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13442     struct s { int j; const int *ap[3]; };
13443     struct s *b; b->j = 5;
13444   }
13445   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13446     const int foo = 10;
13447   }
13448 #endif
13449
13450   ;
13451   return 0;
13452 }
13453 _ACEOF
13454 rm -f conftest.$ac_objext
13455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13456   (eval $ac_compile) 2>&5
13457   ac_status=$?
13458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459   (exit $ac_status); } &&
13460          { ac_try='test -s conftest.$ac_objext'
13461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13462   (eval $ac_try) 2>&5
13463   ac_status=$?
13464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465   (exit $ac_status); }; }; then
13466   ac_cv_c_const=yes
13467 else
13468   echo "$as_me: failed program was:" >&5
13469 sed 's/^/| /' conftest.$ac_ext >&5
13470
13471 ac_cv_c_const=no
13472 fi
13473 rm -f conftest.$ac_objext conftest.$ac_ext
13474 fi
13475 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13476 echo "${ECHO_T}$ac_cv_c_const" >&6
13477 if test $ac_cv_c_const = no; then
13478
13479 cat >>confdefs.h <<\_ACEOF
13480 #define const
13481 _ACEOF
13482
13483 fi
13484
13485 echo "$as_me:$LINENO: checking for inline" >&5
13486 echo $ECHO_N "checking for inline... $ECHO_C" >&6
13487 if test "${ac_cv_c_inline+set}" = set; then
13488   echo $ECHO_N "(cached) $ECHO_C" >&6
13489 else
13490   ac_cv_c_inline=no
13491 for ac_kw in inline __inline__ __inline; do
13492   cat >conftest.$ac_ext <<_ACEOF
13493 #line $LINENO "configure"
13494 /* confdefs.h.  */
13495 _ACEOF
13496 cat confdefs.h >>conftest.$ac_ext
13497 cat >>conftest.$ac_ext <<_ACEOF
13498 /* end confdefs.h.  */
13499 #ifndef __cplusplus
13500 typedef int foo_t;
13501 static $ac_kw foo_t static_foo () {return 0; }
13502 $ac_kw foo_t foo () {return 0; }
13503 #endif
13504
13505 _ACEOF
13506 rm -f conftest.$ac_objext
13507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13508   (eval $ac_compile) 2>&5
13509   ac_status=$?
13510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511   (exit $ac_status); } &&
13512          { ac_try='test -s conftest.$ac_objext'
13513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13514   (eval $ac_try) 2>&5
13515   ac_status=$?
13516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517   (exit $ac_status); }; }; then
13518   ac_cv_c_inline=$ac_kw; break
13519 else
13520   echo "$as_me: failed program was:" >&5
13521 sed 's/^/| /' conftest.$ac_ext >&5
13522
13523 fi
13524 rm -f conftest.$ac_objext conftest.$ac_ext
13525 done
13526
13527 fi
13528 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13529 echo "${ECHO_T}$ac_cv_c_inline" >&6
13530 case $ac_cv_c_inline in
13531   inline | yes) ;;
13532   no)
13533 cat >>confdefs.h <<\_ACEOF
13534 #define inline
13535 _ACEOF
13536  ;;
13537   *)  cat >>confdefs.h <<_ACEOF
13538 #define inline $ac_cv_c_inline
13539 _ACEOF
13540  ;;
13541 esac
13542
13543
13544 echo "$as_me:$LINENO: checking for char" >&5
13545 echo $ECHO_N "checking for char... $ECHO_C" >&6
13546 if test "${ac_cv_type_char+set}" = set; then
13547   echo $ECHO_N "(cached) $ECHO_C" >&6
13548 else
13549   cat >conftest.$ac_ext <<_ACEOF
13550 #line $LINENO "configure"
13551 /* confdefs.h.  */
13552 _ACEOF
13553 cat confdefs.h >>conftest.$ac_ext
13554 cat >>conftest.$ac_ext <<_ACEOF
13555 /* end confdefs.h.  */
13556 $ac_includes_default
13557 int
13558 main ()
13559 {
13560 if ((char *) 0)
13561   return 0;
13562 if (sizeof (char))
13563   return 0;
13564   ;
13565   return 0;
13566 }
13567 _ACEOF
13568 rm -f conftest.$ac_objext
13569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13570   (eval $ac_compile) 2>&5
13571   ac_status=$?
13572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573   (exit $ac_status); } &&
13574          { ac_try='test -s conftest.$ac_objext'
13575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13576   (eval $ac_try) 2>&5
13577   ac_status=$?
13578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579   (exit $ac_status); }; }; then
13580   ac_cv_type_char=yes
13581 else
13582   echo "$as_me: failed program was:" >&5
13583 sed 's/^/| /' conftest.$ac_ext >&5
13584
13585 ac_cv_type_char=no
13586 fi
13587 rm -f conftest.$ac_objext conftest.$ac_ext
13588 fi
13589 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13590 echo "${ECHO_T}$ac_cv_type_char" >&6
13591
13592 echo "$as_me:$LINENO: checking size of char" >&5
13593 echo $ECHO_N "checking size of char... $ECHO_C" >&6
13594 if test "${ac_cv_sizeof_char+set}" = set; then
13595   echo $ECHO_N "(cached) $ECHO_C" >&6
13596 else
13597   if test "$ac_cv_type_char" = yes; then
13598   # The cast to unsigned long works around a bug in the HP C Compiler
13599   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13600   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13601   # This bug is HP SR number 8606223364.
13602   if test "$cross_compiling" = yes; then
13603   # Depending upon the size, compute the lo and hi bounds.
13604 cat >conftest.$ac_ext <<_ACEOF
13605 #line $LINENO "configure"
13606 /* confdefs.h.  */
13607 _ACEOF
13608 cat confdefs.h >>conftest.$ac_ext
13609 cat >>conftest.$ac_ext <<_ACEOF
13610 /* end confdefs.h.  */
13611 $ac_includes_default
13612 int
13613 main ()
13614 {
13615 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13616 test_array [0] = 0
13617
13618   ;
13619   return 0;
13620 }
13621 _ACEOF
13622 rm -f conftest.$ac_objext
13623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13624   (eval $ac_compile) 2>&5
13625   ac_status=$?
13626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627   (exit $ac_status); } &&
13628          { ac_try='test -s conftest.$ac_objext'
13629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13630   (eval $ac_try) 2>&5
13631   ac_status=$?
13632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633   (exit $ac_status); }; }; then
13634   ac_lo=0 ac_mid=0
13635   while :; do
13636     cat >conftest.$ac_ext <<_ACEOF
13637 #line $LINENO "configure"
13638 /* confdefs.h.  */
13639 _ACEOF
13640 cat confdefs.h >>conftest.$ac_ext
13641 cat >>conftest.$ac_ext <<_ACEOF
13642 /* end confdefs.h.  */
13643 $ac_includes_default
13644 int
13645 main ()
13646 {
13647 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13648 test_array [0] = 0
13649
13650   ;
13651   return 0;
13652 }
13653 _ACEOF
13654 rm -f conftest.$ac_objext
13655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13656   (eval $ac_compile) 2>&5
13657   ac_status=$?
13658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659   (exit $ac_status); } &&
13660          { ac_try='test -s conftest.$ac_objext'
13661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13662   (eval $ac_try) 2>&5
13663   ac_status=$?
13664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665   (exit $ac_status); }; }; then
13666   ac_hi=$ac_mid; break
13667 else
13668   echo "$as_me: failed program was:" >&5
13669 sed 's/^/| /' conftest.$ac_ext >&5
13670
13671 ac_lo=`expr $ac_mid + 1`
13672                     if test $ac_lo -le $ac_mid; then
13673                       ac_lo= ac_hi=
13674                       break
13675                     fi
13676                     ac_mid=`expr 2 '*' $ac_mid + 1`
13677 fi
13678 rm -f conftest.$ac_objext conftest.$ac_ext
13679   done
13680 else
13681   echo "$as_me: failed program was:" >&5
13682 sed 's/^/| /' conftest.$ac_ext >&5
13683
13684 cat >conftest.$ac_ext <<_ACEOF
13685 #line $LINENO "configure"
13686 /* confdefs.h.  */
13687 _ACEOF
13688 cat confdefs.h >>conftest.$ac_ext
13689 cat >>conftest.$ac_ext <<_ACEOF
13690 /* end confdefs.h.  */
13691 $ac_includes_default
13692 int
13693 main ()
13694 {
13695 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13696 test_array [0] = 0
13697
13698   ;
13699   return 0;
13700 }
13701 _ACEOF
13702 rm -f conftest.$ac_objext
13703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13704   (eval $ac_compile) 2>&5
13705   ac_status=$?
13706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707   (exit $ac_status); } &&
13708          { ac_try='test -s conftest.$ac_objext'
13709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13710   (eval $ac_try) 2>&5
13711   ac_status=$?
13712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713   (exit $ac_status); }; }; then
13714   ac_hi=-1 ac_mid=-1
13715   while :; do
13716     cat >conftest.$ac_ext <<_ACEOF
13717 #line $LINENO "configure"
13718 /* confdefs.h.  */
13719 _ACEOF
13720 cat confdefs.h >>conftest.$ac_ext
13721 cat >>conftest.$ac_ext <<_ACEOF
13722 /* end confdefs.h.  */
13723 $ac_includes_default
13724 int
13725 main ()
13726 {
13727 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13728 test_array [0] = 0
13729
13730   ;
13731   return 0;
13732 }
13733 _ACEOF
13734 rm -f conftest.$ac_objext
13735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13736   (eval $ac_compile) 2>&5
13737   ac_status=$?
13738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739   (exit $ac_status); } &&
13740          { ac_try='test -s conftest.$ac_objext'
13741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13742   (eval $ac_try) 2>&5
13743   ac_status=$?
13744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745   (exit $ac_status); }; }; then
13746   ac_lo=$ac_mid; break
13747 else
13748   echo "$as_me: failed program was:" >&5
13749 sed 's/^/| /' conftest.$ac_ext >&5
13750
13751 ac_hi=`expr '(' $ac_mid ')' - 1`
13752                        if test $ac_mid -le $ac_hi; then
13753                          ac_lo= ac_hi=
13754                          break
13755                        fi
13756                        ac_mid=`expr 2 '*' $ac_mid`
13757 fi
13758 rm -f conftest.$ac_objext conftest.$ac_ext
13759   done
13760 else
13761   echo "$as_me: failed program was:" >&5
13762 sed 's/^/| /' conftest.$ac_ext >&5
13763
13764 ac_lo= ac_hi=
13765 fi
13766 rm -f conftest.$ac_objext conftest.$ac_ext
13767 fi
13768 rm -f conftest.$ac_objext conftest.$ac_ext
13769 # Binary search between lo and hi bounds.
13770 while test "x$ac_lo" != "x$ac_hi"; do
13771   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13772   cat >conftest.$ac_ext <<_ACEOF
13773 #line $LINENO "configure"
13774 /* confdefs.h.  */
13775 _ACEOF
13776 cat confdefs.h >>conftest.$ac_ext
13777 cat >>conftest.$ac_ext <<_ACEOF
13778 /* end confdefs.h.  */
13779 $ac_includes_default
13780 int
13781 main ()
13782 {
13783 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13784 test_array [0] = 0
13785
13786   ;
13787   return 0;
13788 }
13789 _ACEOF
13790 rm -f conftest.$ac_objext
13791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13792   (eval $ac_compile) 2>&5
13793   ac_status=$?
13794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795   (exit $ac_status); } &&
13796          { ac_try='test -s conftest.$ac_objext'
13797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13798   (eval $ac_try) 2>&5
13799   ac_status=$?
13800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801   (exit $ac_status); }; }; then
13802   ac_hi=$ac_mid
13803 else
13804   echo "$as_me: failed program was:" >&5
13805 sed 's/^/| /' conftest.$ac_ext >&5
13806
13807 ac_lo=`expr '(' $ac_mid ')' + 1`
13808 fi
13809 rm -f conftest.$ac_objext conftest.$ac_ext
13810 done
13811 case $ac_lo in
13812 ?*) ac_cv_sizeof_char=$ac_lo;;
13813 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13814 See \`config.log' for more details." >&5
13815 echo "$as_me: error: cannot compute sizeof (char), 77
13816 See \`config.log' for more details." >&2;}
13817    { (exit 1); exit 1; }; } ;;
13818 esac
13819 else
13820   if test "$cross_compiling" = yes; then
13821   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13822 See \`config.log' for more details." >&5
13823 echo "$as_me: error: cannot run test program while cross compiling
13824 See \`config.log' for more details." >&2;}
13825    { (exit 1); exit 1; }; }
13826 else
13827   cat >conftest.$ac_ext <<_ACEOF
13828 #line $LINENO "configure"
13829 /* confdefs.h.  */
13830 _ACEOF
13831 cat confdefs.h >>conftest.$ac_ext
13832 cat >>conftest.$ac_ext <<_ACEOF
13833 /* end confdefs.h.  */
13834 $ac_includes_default
13835 long longval () { return (long) (sizeof (char)); }
13836 unsigned long ulongval () { return (long) (sizeof (char)); }
13837 #include <stdio.h>
13838 #include <stdlib.h>
13839 int
13840 main ()
13841 {
13842
13843   FILE *f = fopen ("conftest.val", "w");
13844   if (! f)
13845     exit (1);
13846   if (((long) (sizeof (char))) < 0)
13847     {
13848       long i = longval ();
13849       if (i != ((long) (sizeof (char))))
13850         exit (1);
13851       fprintf (f, "%ld\n", i);
13852     }
13853   else
13854     {
13855       unsigned long i = ulongval ();
13856       if (i != ((long) (sizeof (char))))
13857         exit (1);
13858       fprintf (f, "%lu\n", i);
13859     }
13860   exit (ferror (f) || fclose (f) != 0);
13861
13862   ;
13863   return 0;
13864 }
13865 _ACEOF
13866 rm -f conftest$ac_exeext
13867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13868   (eval $ac_link) 2>&5
13869   ac_status=$?
13870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13873   (eval $ac_try) 2>&5
13874   ac_status=$?
13875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876   (exit $ac_status); }; }; then
13877   ac_cv_sizeof_char=`cat conftest.val`
13878 else
13879   echo "$as_me: program exited with status $ac_status" >&5
13880 echo "$as_me: failed program was:" >&5
13881 sed 's/^/| /' conftest.$ac_ext >&5
13882
13883 ( exit $ac_status )
13884 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13885 See \`config.log' for more details." >&5
13886 echo "$as_me: error: cannot compute sizeof (char), 77
13887 See \`config.log' for more details." >&2;}
13888    { (exit 1); exit 1; }; }
13889 fi
13890 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13891 fi
13892 fi
13893 rm -f conftest.val
13894 else
13895   ac_cv_sizeof_char=0
13896 fi
13897 fi
13898 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13899 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
13900 cat >>confdefs.h <<_ACEOF
13901 #define SIZEOF_CHAR $ac_cv_sizeof_char
13902 _ACEOF
13903
13904
13905 echo "$as_me:$LINENO: checking for short" >&5
13906 echo $ECHO_N "checking for short... $ECHO_C" >&6
13907 if test "${ac_cv_type_short+set}" = set; then
13908   echo $ECHO_N "(cached) $ECHO_C" >&6
13909 else
13910   cat >conftest.$ac_ext <<_ACEOF
13911 #line $LINENO "configure"
13912 /* confdefs.h.  */
13913 _ACEOF
13914 cat confdefs.h >>conftest.$ac_ext
13915 cat >>conftest.$ac_ext <<_ACEOF
13916 /* end confdefs.h.  */
13917 $ac_includes_default
13918 int
13919 main ()
13920 {
13921 if ((short *) 0)
13922   return 0;
13923 if (sizeof (short))
13924   return 0;
13925   ;
13926   return 0;
13927 }
13928 _ACEOF
13929 rm -f conftest.$ac_objext
13930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13931   (eval $ac_compile) 2>&5
13932   ac_status=$?
13933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934   (exit $ac_status); } &&
13935          { ac_try='test -s conftest.$ac_objext'
13936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13937   (eval $ac_try) 2>&5
13938   ac_status=$?
13939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940   (exit $ac_status); }; }; then
13941   ac_cv_type_short=yes
13942 else
13943   echo "$as_me: failed program was:" >&5
13944 sed 's/^/| /' conftest.$ac_ext >&5
13945
13946 ac_cv_type_short=no
13947 fi
13948 rm -f conftest.$ac_objext conftest.$ac_ext
13949 fi
13950 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13951 echo "${ECHO_T}$ac_cv_type_short" >&6
13952
13953 echo "$as_me:$LINENO: checking size of short" >&5
13954 echo $ECHO_N "checking size of short... $ECHO_C" >&6
13955 if test "${ac_cv_sizeof_short+set}" = set; then
13956   echo $ECHO_N "(cached) $ECHO_C" >&6
13957 else
13958   if test "$ac_cv_type_short" = yes; then
13959   # The cast to unsigned long works around a bug in the HP C Compiler
13960   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13961   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13962   # This bug is HP SR number 8606223364.
13963   if test "$cross_compiling" = yes; then
13964   # Depending upon the size, compute the lo and hi bounds.
13965 cat >conftest.$ac_ext <<_ACEOF
13966 #line $LINENO "configure"
13967 /* confdefs.h.  */
13968 _ACEOF
13969 cat confdefs.h >>conftest.$ac_ext
13970 cat >>conftest.$ac_ext <<_ACEOF
13971 /* end confdefs.h.  */
13972 $ac_includes_default
13973 int
13974 main ()
13975 {
13976 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
13977 test_array [0] = 0
13978
13979   ;
13980   return 0;
13981 }
13982 _ACEOF
13983 rm -f conftest.$ac_objext
13984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13985   (eval $ac_compile) 2>&5
13986   ac_status=$?
13987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988   (exit $ac_status); } &&
13989          { ac_try='test -s conftest.$ac_objext'
13990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13991   (eval $ac_try) 2>&5
13992   ac_status=$?
13993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994   (exit $ac_status); }; }; then
13995   ac_lo=0 ac_mid=0
13996   while :; do
13997     cat >conftest.$ac_ext <<_ACEOF
13998 #line $LINENO "configure"
13999 /* confdefs.h.  */
14000 _ACEOF
14001 cat confdefs.h >>conftest.$ac_ext
14002 cat >>conftest.$ac_ext <<_ACEOF
14003 /* end confdefs.h.  */
14004 $ac_includes_default
14005 int
14006 main ()
14007 {
14008 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14009 test_array [0] = 0
14010
14011   ;
14012   return 0;
14013 }
14014 _ACEOF
14015 rm -f conftest.$ac_objext
14016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14017   (eval $ac_compile) 2>&5
14018   ac_status=$?
14019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020   (exit $ac_status); } &&
14021          { ac_try='test -s conftest.$ac_objext'
14022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14023   (eval $ac_try) 2>&5
14024   ac_status=$?
14025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026   (exit $ac_status); }; }; then
14027   ac_hi=$ac_mid; break
14028 else
14029   echo "$as_me: failed program was:" >&5
14030 sed 's/^/| /' conftest.$ac_ext >&5
14031
14032 ac_lo=`expr $ac_mid + 1`
14033                     if test $ac_lo -le $ac_mid; then
14034                       ac_lo= ac_hi=
14035                       break
14036                     fi
14037                     ac_mid=`expr 2 '*' $ac_mid + 1`
14038 fi
14039 rm -f conftest.$ac_objext conftest.$ac_ext
14040   done
14041 else
14042   echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14044
14045 cat >conftest.$ac_ext <<_ACEOF
14046 #line $LINENO "configure"
14047 /* confdefs.h.  */
14048 _ACEOF
14049 cat confdefs.h >>conftest.$ac_ext
14050 cat >>conftest.$ac_ext <<_ACEOF
14051 /* end confdefs.h.  */
14052 $ac_includes_default
14053 int
14054 main ()
14055 {
14056 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14057 test_array [0] = 0
14058
14059   ;
14060   return 0;
14061 }
14062 _ACEOF
14063 rm -f conftest.$ac_objext
14064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14065   (eval $ac_compile) 2>&5
14066   ac_status=$?
14067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068   (exit $ac_status); } &&
14069          { ac_try='test -s conftest.$ac_objext'
14070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14071   (eval $ac_try) 2>&5
14072   ac_status=$?
14073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074   (exit $ac_status); }; }; then
14075   ac_hi=-1 ac_mid=-1
14076   while :; do
14077     cat >conftest.$ac_ext <<_ACEOF
14078 #line $LINENO "configure"
14079 /* confdefs.h.  */
14080 _ACEOF
14081 cat confdefs.h >>conftest.$ac_ext
14082 cat >>conftest.$ac_ext <<_ACEOF
14083 /* end confdefs.h.  */
14084 $ac_includes_default
14085 int
14086 main ()
14087 {
14088 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14089 test_array [0] = 0
14090
14091   ;
14092   return 0;
14093 }
14094 _ACEOF
14095 rm -f conftest.$ac_objext
14096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14097   (eval $ac_compile) 2>&5
14098   ac_status=$?
14099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100   (exit $ac_status); } &&
14101          { ac_try='test -s conftest.$ac_objext'
14102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14103   (eval $ac_try) 2>&5
14104   ac_status=$?
14105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106   (exit $ac_status); }; }; then
14107   ac_lo=$ac_mid; break
14108 else
14109   echo "$as_me: failed program was:" >&5
14110 sed 's/^/| /' conftest.$ac_ext >&5
14111
14112 ac_hi=`expr '(' $ac_mid ')' - 1`
14113                        if test $ac_mid -le $ac_hi; then
14114                          ac_lo= ac_hi=
14115                          break
14116                        fi
14117                        ac_mid=`expr 2 '*' $ac_mid`
14118 fi
14119 rm -f conftest.$ac_objext conftest.$ac_ext
14120   done
14121 else
14122   echo "$as_me: failed program was:" >&5
14123 sed 's/^/| /' conftest.$ac_ext >&5
14124
14125 ac_lo= ac_hi=
14126 fi
14127 rm -f conftest.$ac_objext conftest.$ac_ext
14128 fi
14129 rm -f conftest.$ac_objext conftest.$ac_ext
14130 # Binary search between lo and hi bounds.
14131 while test "x$ac_lo" != "x$ac_hi"; do
14132   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14133   cat >conftest.$ac_ext <<_ACEOF
14134 #line $LINENO "configure"
14135 /* confdefs.h.  */
14136 _ACEOF
14137 cat confdefs.h >>conftest.$ac_ext
14138 cat >>conftest.$ac_ext <<_ACEOF
14139 /* end confdefs.h.  */
14140 $ac_includes_default
14141 int
14142 main ()
14143 {
14144 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14145 test_array [0] = 0
14146
14147   ;
14148   return 0;
14149 }
14150 _ACEOF
14151 rm -f conftest.$ac_objext
14152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14153   (eval $ac_compile) 2>&5
14154   ac_status=$?
14155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156   (exit $ac_status); } &&
14157          { ac_try='test -s conftest.$ac_objext'
14158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14159   (eval $ac_try) 2>&5
14160   ac_status=$?
14161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162   (exit $ac_status); }; }; then
14163   ac_hi=$ac_mid
14164 else
14165   echo "$as_me: failed program was:" >&5
14166 sed 's/^/| /' conftest.$ac_ext >&5
14167
14168 ac_lo=`expr '(' $ac_mid ')' + 1`
14169 fi
14170 rm -f conftest.$ac_objext conftest.$ac_ext
14171 done
14172 case $ac_lo in
14173 ?*) ac_cv_sizeof_short=$ac_lo;;
14174 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14175 See \`config.log' for more details." >&5
14176 echo "$as_me: error: cannot compute sizeof (short), 77
14177 See \`config.log' for more details." >&2;}
14178    { (exit 1); exit 1; }; } ;;
14179 esac
14180 else
14181   if test "$cross_compiling" = yes; then
14182   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14183 See \`config.log' for more details." >&5
14184 echo "$as_me: error: cannot run test program while cross compiling
14185 See \`config.log' for more details." >&2;}
14186    { (exit 1); exit 1; }; }
14187 else
14188   cat >conftest.$ac_ext <<_ACEOF
14189 #line $LINENO "configure"
14190 /* confdefs.h.  */
14191 _ACEOF
14192 cat confdefs.h >>conftest.$ac_ext
14193 cat >>conftest.$ac_ext <<_ACEOF
14194 /* end confdefs.h.  */
14195 $ac_includes_default
14196 long longval () { return (long) (sizeof (short)); }
14197 unsigned long ulongval () { return (long) (sizeof (short)); }
14198 #include <stdio.h>
14199 #include <stdlib.h>
14200 int
14201 main ()
14202 {
14203
14204   FILE *f = fopen ("conftest.val", "w");
14205   if (! f)
14206     exit (1);
14207   if (((long) (sizeof (short))) < 0)
14208     {
14209       long i = longval ();
14210       if (i != ((long) (sizeof (short))))
14211         exit (1);
14212       fprintf (f, "%ld\n", i);
14213     }
14214   else
14215     {
14216       unsigned long i = ulongval ();
14217       if (i != ((long) (sizeof (short))))
14218         exit (1);
14219       fprintf (f, "%lu\n", i);
14220     }
14221   exit (ferror (f) || fclose (f) != 0);
14222
14223   ;
14224   return 0;
14225 }
14226 _ACEOF
14227 rm -f conftest$ac_exeext
14228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14229   (eval $ac_link) 2>&5
14230   ac_status=$?
14231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14234   (eval $ac_try) 2>&5
14235   ac_status=$?
14236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237   (exit $ac_status); }; }; then
14238   ac_cv_sizeof_short=`cat conftest.val`
14239 else
14240   echo "$as_me: program exited with status $ac_status" >&5
14241 echo "$as_me: failed program was:" >&5
14242 sed 's/^/| /' conftest.$ac_ext >&5
14243
14244 ( exit $ac_status )
14245 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14246 See \`config.log' for more details." >&5
14247 echo "$as_me: error: cannot compute sizeof (short), 77
14248 See \`config.log' for more details." >&2;}
14249    { (exit 1); exit 1; }; }
14250 fi
14251 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14252 fi
14253 fi
14254 rm -f conftest.val
14255 else
14256   ac_cv_sizeof_short=0
14257 fi
14258 fi
14259 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14260 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14261 cat >>confdefs.h <<_ACEOF
14262 #define SIZEOF_SHORT $ac_cv_sizeof_short
14263 _ACEOF
14264
14265
14266 echo "$as_me:$LINENO: checking for void *" >&5
14267 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14268 if test "${ac_cv_type_void_p+set}" = set; then
14269   echo $ECHO_N "(cached) $ECHO_C" >&6
14270 else
14271   cat >conftest.$ac_ext <<_ACEOF
14272 #line $LINENO "configure"
14273 /* confdefs.h.  */
14274 _ACEOF
14275 cat confdefs.h >>conftest.$ac_ext
14276 cat >>conftest.$ac_ext <<_ACEOF
14277 /* end confdefs.h.  */
14278 $ac_includes_default
14279 int
14280 main ()
14281 {
14282 if ((void * *) 0)
14283   return 0;
14284 if (sizeof (void *))
14285   return 0;
14286   ;
14287   return 0;
14288 }
14289 _ACEOF
14290 rm -f conftest.$ac_objext
14291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14292   (eval $ac_compile) 2>&5
14293   ac_status=$?
14294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295   (exit $ac_status); } &&
14296          { ac_try='test -s conftest.$ac_objext'
14297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14298   (eval $ac_try) 2>&5
14299   ac_status=$?
14300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301   (exit $ac_status); }; }; then
14302   ac_cv_type_void_p=yes
14303 else
14304   echo "$as_me: failed program was:" >&5
14305 sed 's/^/| /' conftest.$ac_ext >&5
14306
14307 ac_cv_type_void_p=no
14308 fi
14309 rm -f conftest.$ac_objext conftest.$ac_ext
14310 fi
14311 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14312 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14313
14314 echo "$as_me:$LINENO: checking size of void *" >&5
14315 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14316 if test "${ac_cv_sizeof_void_p+set}" = set; then
14317   echo $ECHO_N "(cached) $ECHO_C" >&6
14318 else
14319   if test "$ac_cv_type_void_p" = yes; then
14320   # The cast to unsigned long works around a bug in the HP C Compiler
14321   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14322   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14323   # This bug is HP SR number 8606223364.
14324   if test "$cross_compiling" = yes; then
14325   # Depending upon the size, compute the lo and hi bounds.
14326 cat >conftest.$ac_ext <<_ACEOF
14327 #line $LINENO "configure"
14328 /* confdefs.h.  */
14329 _ACEOF
14330 cat confdefs.h >>conftest.$ac_ext
14331 cat >>conftest.$ac_ext <<_ACEOF
14332 /* end confdefs.h.  */
14333 $ac_includes_default
14334 int
14335 main ()
14336 {
14337 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14338 test_array [0] = 0
14339
14340   ;
14341   return 0;
14342 }
14343 _ACEOF
14344 rm -f conftest.$ac_objext
14345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14346   (eval $ac_compile) 2>&5
14347   ac_status=$?
14348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349   (exit $ac_status); } &&
14350          { ac_try='test -s conftest.$ac_objext'
14351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14352   (eval $ac_try) 2>&5
14353   ac_status=$?
14354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355   (exit $ac_status); }; }; then
14356   ac_lo=0 ac_mid=0
14357   while :; do
14358     cat >conftest.$ac_ext <<_ACEOF
14359 #line $LINENO "configure"
14360 /* confdefs.h.  */
14361 _ACEOF
14362 cat confdefs.h >>conftest.$ac_ext
14363 cat >>conftest.$ac_ext <<_ACEOF
14364 /* end confdefs.h.  */
14365 $ac_includes_default
14366 int
14367 main ()
14368 {
14369 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14370 test_array [0] = 0
14371
14372   ;
14373   return 0;
14374 }
14375 _ACEOF
14376 rm -f conftest.$ac_objext
14377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14378   (eval $ac_compile) 2>&5
14379   ac_status=$?
14380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381   (exit $ac_status); } &&
14382          { ac_try='test -s conftest.$ac_objext'
14383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14384   (eval $ac_try) 2>&5
14385   ac_status=$?
14386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387   (exit $ac_status); }; }; then
14388   ac_hi=$ac_mid; break
14389 else
14390   echo "$as_me: failed program was:" >&5
14391 sed 's/^/| /' conftest.$ac_ext >&5
14392
14393 ac_lo=`expr $ac_mid + 1`
14394                     if test $ac_lo -le $ac_mid; then
14395                       ac_lo= ac_hi=
14396                       break
14397                     fi
14398                     ac_mid=`expr 2 '*' $ac_mid + 1`
14399 fi
14400 rm -f conftest.$ac_objext conftest.$ac_ext
14401   done
14402 else
14403   echo "$as_me: failed program was:" >&5
14404 sed 's/^/| /' conftest.$ac_ext >&5
14405
14406 cat >conftest.$ac_ext <<_ACEOF
14407 #line $LINENO "configure"
14408 /* confdefs.h.  */
14409 _ACEOF
14410 cat confdefs.h >>conftest.$ac_ext
14411 cat >>conftest.$ac_ext <<_ACEOF
14412 /* end confdefs.h.  */
14413 $ac_includes_default
14414 int
14415 main ()
14416 {
14417 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14418 test_array [0] = 0
14419
14420   ;
14421   return 0;
14422 }
14423 _ACEOF
14424 rm -f conftest.$ac_objext
14425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14426   (eval $ac_compile) 2>&5
14427   ac_status=$?
14428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429   (exit $ac_status); } &&
14430          { ac_try='test -s conftest.$ac_objext'
14431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14432   (eval $ac_try) 2>&5
14433   ac_status=$?
14434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435   (exit $ac_status); }; }; then
14436   ac_hi=-1 ac_mid=-1
14437   while :; do
14438     cat >conftest.$ac_ext <<_ACEOF
14439 #line $LINENO "configure"
14440 /* confdefs.h.  */
14441 _ACEOF
14442 cat confdefs.h >>conftest.$ac_ext
14443 cat >>conftest.$ac_ext <<_ACEOF
14444 /* end confdefs.h.  */
14445 $ac_includes_default
14446 int
14447 main ()
14448 {
14449 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14450 test_array [0] = 0
14451
14452   ;
14453   return 0;
14454 }
14455 _ACEOF
14456 rm -f conftest.$ac_objext
14457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14458   (eval $ac_compile) 2>&5
14459   ac_status=$?
14460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461   (exit $ac_status); } &&
14462          { ac_try='test -s conftest.$ac_objext'
14463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14464   (eval $ac_try) 2>&5
14465   ac_status=$?
14466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467   (exit $ac_status); }; }; then
14468   ac_lo=$ac_mid; break
14469 else
14470   echo "$as_me: failed program was:" >&5
14471 sed 's/^/| /' conftest.$ac_ext >&5
14472
14473 ac_hi=`expr '(' $ac_mid ')' - 1`
14474                        if test $ac_mid -le $ac_hi; then
14475                          ac_lo= ac_hi=
14476                          break
14477                        fi
14478                        ac_mid=`expr 2 '*' $ac_mid`
14479 fi
14480 rm -f conftest.$ac_objext conftest.$ac_ext
14481   done
14482 else
14483   echo "$as_me: failed program was:" >&5
14484 sed 's/^/| /' conftest.$ac_ext >&5
14485
14486 ac_lo= ac_hi=
14487 fi
14488 rm -f conftest.$ac_objext conftest.$ac_ext
14489 fi
14490 rm -f conftest.$ac_objext conftest.$ac_ext
14491 # Binary search between lo and hi bounds.
14492 while test "x$ac_lo" != "x$ac_hi"; do
14493   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14494   cat >conftest.$ac_ext <<_ACEOF
14495 #line $LINENO "configure"
14496 /* confdefs.h.  */
14497 _ACEOF
14498 cat confdefs.h >>conftest.$ac_ext
14499 cat >>conftest.$ac_ext <<_ACEOF
14500 /* end confdefs.h.  */
14501 $ac_includes_default
14502 int
14503 main ()
14504 {
14505 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14506 test_array [0] = 0
14507
14508   ;
14509   return 0;
14510 }
14511 _ACEOF
14512 rm -f conftest.$ac_objext
14513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14514   (eval $ac_compile) 2>&5
14515   ac_status=$?
14516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517   (exit $ac_status); } &&
14518          { ac_try='test -s conftest.$ac_objext'
14519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520   (eval $ac_try) 2>&5
14521   ac_status=$?
14522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523   (exit $ac_status); }; }; then
14524   ac_hi=$ac_mid
14525 else
14526   echo "$as_me: failed program was:" >&5
14527 sed 's/^/| /' conftest.$ac_ext >&5
14528
14529 ac_lo=`expr '(' $ac_mid ')' + 1`
14530 fi
14531 rm -f conftest.$ac_objext conftest.$ac_ext
14532 done
14533 case $ac_lo in
14534 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14535 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14536 See \`config.log' for more details." >&5
14537 echo "$as_me: error: cannot compute sizeof (void *), 77
14538 See \`config.log' for more details." >&2;}
14539    { (exit 1); exit 1; }; } ;;
14540 esac
14541 else
14542   if test "$cross_compiling" = yes; then
14543   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14544 See \`config.log' for more details." >&5
14545 echo "$as_me: error: cannot run test program while cross compiling
14546 See \`config.log' for more details." >&2;}
14547    { (exit 1); exit 1; }; }
14548 else
14549   cat >conftest.$ac_ext <<_ACEOF
14550 #line $LINENO "configure"
14551 /* confdefs.h.  */
14552 _ACEOF
14553 cat confdefs.h >>conftest.$ac_ext
14554 cat >>conftest.$ac_ext <<_ACEOF
14555 /* end confdefs.h.  */
14556 $ac_includes_default
14557 long longval () { return (long) (sizeof (void *)); }
14558 unsigned long ulongval () { return (long) (sizeof (void *)); }
14559 #include <stdio.h>
14560 #include <stdlib.h>
14561 int
14562 main ()
14563 {
14564
14565   FILE *f = fopen ("conftest.val", "w");
14566   if (! f)
14567     exit (1);
14568   if (((long) (sizeof (void *))) < 0)
14569     {
14570       long i = longval ();
14571       if (i != ((long) (sizeof (void *))))
14572         exit (1);
14573       fprintf (f, "%ld\n", i);
14574     }
14575   else
14576     {
14577       unsigned long i = ulongval ();
14578       if (i != ((long) (sizeof (void *))))
14579         exit (1);
14580       fprintf (f, "%lu\n", i);
14581     }
14582   exit (ferror (f) || fclose (f) != 0);
14583
14584   ;
14585   return 0;
14586 }
14587 _ACEOF
14588 rm -f conftest$ac_exeext
14589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14590   (eval $ac_link) 2>&5
14591   ac_status=$?
14592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14595   (eval $ac_try) 2>&5
14596   ac_status=$?
14597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598   (exit $ac_status); }; }; then
14599   ac_cv_sizeof_void_p=`cat conftest.val`
14600 else
14601   echo "$as_me: program exited with status $ac_status" >&5
14602 echo "$as_me: failed program was:" >&5
14603 sed 's/^/| /' conftest.$ac_ext >&5
14604
14605 ( exit $ac_status )
14606 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14607 See \`config.log' for more details." >&5
14608 echo "$as_me: error: cannot compute sizeof (void *), 77
14609 See \`config.log' for more details." >&2;}
14610    { (exit 1); exit 1; }; }
14611 fi
14612 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14613 fi
14614 fi
14615 rm -f conftest.val
14616 else
14617   ac_cv_sizeof_void_p=0
14618 fi
14619 fi
14620 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14621 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14622 cat >>confdefs.h <<_ACEOF
14623 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14624 _ACEOF
14625
14626
14627 echo "$as_me:$LINENO: checking for int" >&5
14628 echo $ECHO_N "checking for int... $ECHO_C" >&6
14629 if test "${ac_cv_type_int+set}" = set; then
14630   echo $ECHO_N "(cached) $ECHO_C" >&6
14631 else
14632   cat >conftest.$ac_ext <<_ACEOF
14633 #line $LINENO "configure"
14634 /* confdefs.h.  */
14635 _ACEOF
14636 cat confdefs.h >>conftest.$ac_ext
14637 cat >>conftest.$ac_ext <<_ACEOF
14638 /* end confdefs.h.  */
14639 $ac_includes_default
14640 int
14641 main ()
14642 {
14643 if ((int *) 0)
14644   return 0;
14645 if (sizeof (int))
14646   return 0;
14647   ;
14648   return 0;
14649 }
14650 _ACEOF
14651 rm -f conftest.$ac_objext
14652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14653   (eval $ac_compile) 2>&5
14654   ac_status=$?
14655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656   (exit $ac_status); } &&
14657          { ac_try='test -s conftest.$ac_objext'
14658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14659   (eval $ac_try) 2>&5
14660   ac_status=$?
14661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662   (exit $ac_status); }; }; then
14663   ac_cv_type_int=yes
14664 else
14665   echo "$as_me: failed program was:" >&5
14666 sed 's/^/| /' conftest.$ac_ext >&5
14667
14668 ac_cv_type_int=no
14669 fi
14670 rm -f conftest.$ac_objext conftest.$ac_ext
14671 fi
14672 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14673 echo "${ECHO_T}$ac_cv_type_int" >&6
14674
14675 echo "$as_me:$LINENO: checking size of int" >&5
14676 echo $ECHO_N "checking size of int... $ECHO_C" >&6
14677 if test "${ac_cv_sizeof_int+set}" = set; then
14678   echo $ECHO_N "(cached) $ECHO_C" >&6
14679 else
14680   if test "$ac_cv_type_int" = yes; then
14681   # The cast to unsigned long works around a bug in the HP C Compiler
14682   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14683   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14684   # This bug is HP SR number 8606223364.
14685   if test "$cross_compiling" = yes; then
14686   # Depending upon the size, compute the lo and hi bounds.
14687 cat >conftest.$ac_ext <<_ACEOF
14688 #line $LINENO "configure"
14689 /* confdefs.h.  */
14690 _ACEOF
14691 cat confdefs.h >>conftest.$ac_ext
14692 cat >>conftest.$ac_ext <<_ACEOF
14693 /* end confdefs.h.  */
14694 $ac_includes_default
14695 int
14696 main ()
14697 {
14698 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14699 test_array [0] = 0
14700
14701   ;
14702   return 0;
14703 }
14704 _ACEOF
14705 rm -f conftest.$ac_objext
14706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14707   (eval $ac_compile) 2>&5
14708   ac_status=$?
14709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710   (exit $ac_status); } &&
14711          { ac_try='test -s conftest.$ac_objext'
14712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14713   (eval $ac_try) 2>&5
14714   ac_status=$?
14715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716   (exit $ac_status); }; }; then
14717   ac_lo=0 ac_mid=0
14718   while :; do
14719     cat >conftest.$ac_ext <<_ACEOF
14720 #line $LINENO "configure"
14721 /* confdefs.h.  */
14722 _ACEOF
14723 cat confdefs.h >>conftest.$ac_ext
14724 cat >>conftest.$ac_ext <<_ACEOF
14725 /* end confdefs.h.  */
14726 $ac_includes_default
14727 int
14728 main ()
14729 {
14730 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14731 test_array [0] = 0
14732
14733   ;
14734   return 0;
14735 }
14736 _ACEOF
14737 rm -f conftest.$ac_objext
14738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14739   (eval $ac_compile) 2>&5
14740   ac_status=$?
14741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742   (exit $ac_status); } &&
14743          { ac_try='test -s conftest.$ac_objext'
14744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14745   (eval $ac_try) 2>&5
14746   ac_status=$?
14747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748   (exit $ac_status); }; }; then
14749   ac_hi=$ac_mid; break
14750 else
14751   echo "$as_me: failed program was:" >&5
14752 sed 's/^/| /' conftest.$ac_ext >&5
14753
14754 ac_lo=`expr $ac_mid + 1`
14755                     if test $ac_lo -le $ac_mid; then
14756                       ac_lo= ac_hi=
14757                       break
14758                     fi
14759                     ac_mid=`expr 2 '*' $ac_mid + 1`
14760 fi
14761 rm -f conftest.$ac_objext conftest.$ac_ext
14762   done
14763 else
14764   echo "$as_me: failed program was:" >&5
14765 sed 's/^/| /' conftest.$ac_ext >&5
14766
14767 cat >conftest.$ac_ext <<_ACEOF
14768 #line $LINENO "configure"
14769 /* confdefs.h.  */
14770 _ACEOF
14771 cat confdefs.h >>conftest.$ac_ext
14772 cat >>conftest.$ac_ext <<_ACEOF
14773 /* end confdefs.h.  */
14774 $ac_includes_default
14775 int
14776 main ()
14777 {
14778 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14779 test_array [0] = 0
14780
14781   ;
14782   return 0;
14783 }
14784 _ACEOF
14785 rm -f conftest.$ac_objext
14786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14787   (eval $ac_compile) 2>&5
14788   ac_status=$?
14789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790   (exit $ac_status); } &&
14791          { ac_try='test -s conftest.$ac_objext'
14792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14793   (eval $ac_try) 2>&5
14794   ac_status=$?
14795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796   (exit $ac_status); }; }; then
14797   ac_hi=-1 ac_mid=-1
14798   while :; do
14799     cat >conftest.$ac_ext <<_ACEOF
14800 #line $LINENO "configure"
14801 /* confdefs.h.  */
14802 _ACEOF
14803 cat confdefs.h >>conftest.$ac_ext
14804 cat >>conftest.$ac_ext <<_ACEOF
14805 /* end confdefs.h.  */
14806 $ac_includes_default
14807 int
14808 main ()
14809 {
14810 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14811 test_array [0] = 0
14812
14813   ;
14814   return 0;
14815 }
14816 _ACEOF
14817 rm -f conftest.$ac_objext
14818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14819   (eval $ac_compile) 2>&5
14820   ac_status=$?
14821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822   (exit $ac_status); } &&
14823          { ac_try='test -s conftest.$ac_objext'
14824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14825   (eval $ac_try) 2>&5
14826   ac_status=$?
14827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828   (exit $ac_status); }; }; then
14829   ac_lo=$ac_mid; break
14830 else
14831   echo "$as_me: failed program was:" >&5
14832 sed 's/^/| /' conftest.$ac_ext >&5
14833
14834 ac_hi=`expr '(' $ac_mid ')' - 1`
14835                        if test $ac_mid -le $ac_hi; then
14836                          ac_lo= ac_hi=
14837                          break
14838                        fi
14839                        ac_mid=`expr 2 '*' $ac_mid`
14840 fi
14841 rm -f conftest.$ac_objext conftest.$ac_ext
14842   done
14843 else
14844   echo "$as_me: failed program was:" >&5
14845 sed 's/^/| /' conftest.$ac_ext >&5
14846
14847 ac_lo= ac_hi=
14848 fi
14849 rm -f conftest.$ac_objext conftest.$ac_ext
14850 fi
14851 rm -f conftest.$ac_objext conftest.$ac_ext
14852 # Binary search between lo and hi bounds.
14853 while test "x$ac_lo" != "x$ac_hi"; do
14854   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14855   cat >conftest.$ac_ext <<_ACEOF
14856 #line $LINENO "configure"
14857 /* confdefs.h.  */
14858 _ACEOF
14859 cat confdefs.h >>conftest.$ac_ext
14860 cat >>conftest.$ac_ext <<_ACEOF
14861 /* end confdefs.h.  */
14862 $ac_includes_default
14863 int
14864 main ()
14865 {
14866 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14867 test_array [0] = 0
14868
14869   ;
14870   return 0;
14871 }
14872 _ACEOF
14873 rm -f conftest.$ac_objext
14874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14875   (eval $ac_compile) 2>&5
14876   ac_status=$?
14877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878   (exit $ac_status); } &&
14879          { ac_try='test -s conftest.$ac_objext'
14880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14881   (eval $ac_try) 2>&5
14882   ac_status=$?
14883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884   (exit $ac_status); }; }; then
14885   ac_hi=$ac_mid
14886 else
14887   echo "$as_me: failed program was:" >&5
14888 sed 's/^/| /' conftest.$ac_ext >&5
14889
14890 ac_lo=`expr '(' $ac_mid ')' + 1`
14891 fi
14892 rm -f conftest.$ac_objext conftest.$ac_ext
14893 done
14894 case $ac_lo in
14895 ?*) ac_cv_sizeof_int=$ac_lo;;
14896 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14897 See \`config.log' for more details." >&5
14898 echo "$as_me: error: cannot compute sizeof (int), 77
14899 See \`config.log' for more details." >&2;}
14900    { (exit 1); exit 1; }; } ;;
14901 esac
14902 else
14903   if test "$cross_compiling" = yes; then
14904   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14905 See \`config.log' for more details." >&5
14906 echo "$as_me: error: cannot run test program while cross compiling
14907 See \`config.log' for more details." >&2;}
14908    { (exit 1); exit 1; }; }
14909 else
14910   cat >conftest.$ac_ext <<_ACEOF
14911 #line $LINENO "configure"
14912 /* confdefs.h.  */
14913 _ACEOF
14914 cat confdefs.h >>conftest.$ac_ext
14915 cat >>conftest.$ac_ext <<_ACEOF
14916 /* end confdefs.h.  */
14917 $ac_includes_default
14918 long longval () { return (long) (sizeof (int)); }
14919 unsigned long ulongval () { return (long) (sizeof (int)); }
14920 #include <stdio.h>
14921 #include <stdlib.h>
14922 int
14923 main ()
14924 {
14925
14926   FILE *f = fopen ("conftest.val", "w");
14927   if (! f)
14928     exit (1);
14929   if (((long) (sizeof (int))) < 0)
14930     {
14931       long i = longval ();
14932       if (i != ((long) (sizeof (int))))
14933         exit (1);
14934       fprintf (f, "%ld\n", i);
14935     }
14936   else
14937     {
14938       unsigned long i = ulongval ();
14939       if (i != ((long) (sizeof (int))))
14940         exit (1);
14941       fprintf (f, "%lu\n", i);
14942     }
14943   exit (ferror (f) || fclose (f) != 0);
14944
14945   ;
14946   return 0;
14947 }
14948 _ACEOF
14949 rm -f conftest$ac_exeext
14950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14951   (eval $ac_link) 2>&5
14952   ac_status=$?
14953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14956   (eval $ac_try) 2>&5
14957   ac_status=$?
14958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959   (exit $ac_status); }; }; then
14960   ac_cv_sizeof_int=`cat conftest.val`
14961 else
14962   echo "$as_me: program exited with status $ac_status" >&5
14963 echo "$as_me: failed program was:" >&5
14964 sed 's/^/| /' conftest.$ac_ext >&5
14965
14966 ( exit $ac_status )
14967 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14968 See \`config.log' for more details." >&5
14969 echo "$as_me: error: cannot compute sizeof (int), 77
14970 See \`config.log' for more details." >&2;}
14971    { (exit 1); exit 1; }; }
14972 fi
14973 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14974 fi
14975 fi
14976 rm -f conftest.val
14977 else
14978   ac_cv_sizeof_int=0
14979 fi
14980 fi
14981 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14982 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14983 cat >>confdefs.h <<_ACEOF
14984 #define SIZEOF_INT $ac_cv_sizeof_int
14985 _ACEOF
14986
14987
14988 echo "$as_me:$LINENO: checking for long" >&5
14989 echo $ECHO_N "checking for long... $ECHO_C" >&6
14990 if test "${ac_cv_type_long+set}" = set; then
14991   echo $ECHO_N "(cached) $ECHO_C" >&6
14992 else
14993   cat >conftest.$ac_ext <<_ACEOF
14994 #line $LINENO "configure"
14995 /* confdefs.h.  */
14996 _ACEOF
14997 cat confdefs.h >>conftest.$ac_ext
14998 cat >>conftest.$ac_ext <<_ACEOF
14999 /* end confdefs.h.  */
15000 $ac_includes_default
15001 int
15002 main ()
15003 {
15004 if ((long *) 0)
15005   return 0;
15006 if (sizeof (long))
15007   return 0;
15008   ;
15009   return 0;
15010 }
15011 _ACEOF
15012 rm -f conftest.$ac_objext
15013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15014   (eval $ac_compile) 2>&5
15015   ac_status=$?
15016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017   (exit $ac_status); } &&
15018          { ac_try='test -s conftest.$ac_objext'
15019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15020   (eval $ac_try) 2>&5
15021   ac_status=$?
15022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023   (exit $ac_status); }; }; then
15024   ac_cv_type_long=yes
15025 else
15026   echo "$as_me: failed program was:" >&5
15027 sed 's/^/| /' conftest.$ac_ext >&5
15028
15029 ac_cv_type_long=no
15030 fi
15031 rm -f conftest.$ac_objext conftest.$ac_ext
15032 fi
15033 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15034 echo "${ECHO_T}$ac_cv_type_long" >&6
15035
15036 echo "$as_me:$LINENO: checking size of long" >&5
15037 echo $ECHO_N "checking size of long... $ECHO_C" >&6
15038 if test "${ac_cv_sizeof_long+set}" = set; then
15039   echo $ECHO_N "(cached) $ECHO_C" >&6
15040 else
15041   if test "$ac_cv_type_long" = yes; then
15042   # The cast to unsigned long works around a bug in the HP C Compiler
15043   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15044   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15045   # This bug is HP SR number 8606223364.
15046   if test "$cross_compiling" = yes; then
15047   # Depending upon the size, compute the lo and hi bounds.
15048 cat >conftest.$ac_ext <<_ACEOF
15049 #line $LINENO "configure"
15050 /* confdefs.h.  */
15051 _ACEOF
15052 cat confdefs.h >>conftest.$ac_ext
15053 cat >>conftest.$ac_ext <<_ACEOF
15054 /* end confdefs.h.  */
15055 $ac_includes_default
15056 int
15057 main ()
15058 {
15059 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15060 test_array [0] = 0
15061
15062   ;
15063   return 0;
15064 }
15065 _ACEOF
15066 rm -f conftest.$ac_objext
15067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15068   (eval $ac_compile) 2>&5
15069   ac_status=$?
15070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071   (exit $ac_status); } &&
15072          { ac_try='test -s conftest.$ac_objext'
15073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15074   (eval $ac_try) 2>&5
15075   ac_status=$?
15076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077   (exit $ac_status); }; }; then
15078   ac_lo=0 ac_mid=0
15079   while :; do
15080     cat >conftest.$ac_ext <<_ACEOF
15081 #line $LINENO "configure"
15082 /* confdefs.h.  */
15083 _ACEOF
15084 cat confdefs.h >>conftest.$ac_ext
15085 cat >>conftest.$ac_ext <<_ACEOF
15086 /* end confdefs.h.  */
15087 $ac_includes_default
15088 int
15089 main ()
15090 {
15091 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15092 test_array [0] = 0
15093
15094   ;
15095   return 0;
15096 }
15097 _ACEOF
15098 rm -f conftest.$ac_objext
15099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15100   (eval $ac_compile) 2>&5
15101   ac_status=$?
15102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103   (exit $ac_status); } &&
15104          { ac_try='test -s conftest.$ac_objext'
15105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15106   (eval $ac_try) 2>&5
15107   ac_status=$?
15108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109   (exit $ac_status); }; }; then
15110   ac_hi=$ac_mid; break
15111 else
15112   echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15114
15115 ac_lo=`expr $ac_mid + 1`
15116                     if test $ac_lo -le $ac_mid; then
15117                       ac_lo= ac_hi=
15118                       break
15119                     fi
15120                     ac_mid=`expr 2 '*' $ac_mid + 1`
15121 fi
15122 rm -f conftest.$ac_objext conftest.$ac_ext
15123   done
15124 else
15125   echo "$as_me: failed program was:" >&5
15126 sed 's/^/| /' conftest.$ac_ext >&5
15127
15128 cat >conftest.$ac_ext <<_ACEOF
15129 #line $LINENO "configure"
15130 /* confdefs.h.  */
15131 _ACEOF
15132 cat confdefs.h >>conftest.$ac_ext
15133 cat >>conftest.$ac_ext <<_ACEOF
15134 /* end confdefs.h.  */
15135 $ac_includes_default
15136 int
15137 main ()
15138 {
15139 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15140 test_array [0] = 0
15141
15142   ;
15143   return 0;
15144 }
15145 _ACEOF
15146 rm -f conftest.$ac_objext
15147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15148   (eval $ac_compile) 2>&5
15149   ac_status=$?
15150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151   (exit $ac_status); } &&
15152          { ac_try='test -s conftest.$ac_objext'
15153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15154   (eval $ac_try) 2>&5
15155   ac_status=$?
15156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157   (exit $ac_status); }; }; then
15158   ac_hi=-1 ac_mid=-1
15159   while :; do
15160     cat >conftest.$ac_ext <<_ACEOF
15161 #line $LINENO "configure"
15162 /* confdefs.h.  */
15163 _ACEOF
15164 cat confdefs.h >>conftest.$ac_ext
15165 cat >>conftest.$ac_ext <<_ACEOF
15166 /* end confdefs.h.  */
15167 $ac_includes_default
15168 int
15169 main ()
15170 {
15171 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15172 test_array [0] = 0
15173
15174   ;
15175   return 0;
15176 }
15177 _ACEOF
15178 rm -f conftest.$ac_objext
15179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15180   (eval $ac_compile) 2>&5
15181   ac_status=$?
15182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183   (exit $ac_status); } &&
15184          { ac_try='test -s conftest.$ac_objext'
15185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15186   (eval $ac_try) 2>&5
15187   ac_status=$?
15188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189   (exit $ac_status); }; }; then
15190   ac_lo=$ac_mid; break
15191 else
15192   echo "$as_me: failed program was:" >&5
15193 sed 's/^/| /' conftest.$ac_ext >&5
15194
15195 ac_hi=`expr '(' $ac_mid ')' - 1`
15196                        if test $ac_mid -le $ac_hi; then
15197                          ac_lo= ac_hi=
15198                          break
15199                        fi
15200                        ac_mid=`expr 2 '*' $ac_mid`
15201 fi
15202 rm -f conftest.$ac_objext conftest.$ac_ext
15203   done
15204 else
15205   echo "$as_me: failed program was:" >&5
15206 sed 's/^/| /' conftest.$ac_ext >&5
15207
15208 ac_lo= ac_hi=
15209 fi
15210 rm -f conftest.$ac_objext conftest.$ac_ext
15211 fi
15212 rm -f conftest.$ac_objext conftest.$ac_ext
15213 # Binary search between lo and hi bounds.
15214 while test "x$ac_lo" != "x$ac_hi"; do
15215   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15216   cat >conftest.$ac_ext <<_ACEOF
15217 #line $LINENO "configure"
15218 /* confdefs.h.  */
15219 _ACEOF
15220 cat confdefs.h >>conftest.$ac_ext
15221 cat >>conftest.$ac_ext <<_ACEOF
15222 /* end confdefs.h.  */
15223 $ac_includes_default
15224 int
15225 main ()
15226 {
15227 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15228 test_array [0] = 0
15229
15230   ;
15231   return 0;
15232 }
15233 _ACEOF
15234 rm -f conftest.$ac_objext
15235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15236   (eval $ac_compile) 2>&5
15237   ac_status=$?
15238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239   (exit $ac_status); } &&
15240          { ac_try='test -s conftest.$ac_objext'
15241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15242   (eval $ac_try) 2>&5
15243   ac_status=$?
15244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245   (exit $ac_status); }; }; then
15246   ac_hi=$ac_mid
15247 else
15248   echo "$as_me: failed program was:" >&5
15249 sed 's/^/| /' conftest.$ac_ext >&5
15250
15251 ac_lo=`expr '(' $ac_mid ')' + 1`
15252 fi
15253 rm -f conftest.$ac_objext conftest.$ac_ext
15254 done
15255 case $ac_lo in
15256 ?*) ac_cv_sizeof_long=$ac_lo;;
15257 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15258 See \`config.log' for more details." >&5
15259 echo "$as_me: error: cannot compute sizeof (long), 77
15260 See \`config.log' for more details." >&2;}
15261    { (exit 1); exit 1; }; } ;;
15262 esac
15263 else
15264   if test "$cross_compiling" = yes; then
15265   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15266 See \`config.log' for more details." >&5
15267 echo "$as_me: error: cannot run test program while cross compiling
15268 See \`config.log' for more details." >&2;}
15269    { (exit 1); exit 1; }; }
15270 else
15271   cat >conftest.$ac_ext <<_ACEOF
15272 #line $LINENO "configure"
15273 /* confdefs.h.  */
15274 _ACEOF
15275 cat confdefs.h >>conftest.$ac_ext
15276 cat >>conftest.$ac_ext <<_ACEOF
15277 /* end confdefs.h.  */
15278 $ac_includes_default
15279 long longval () { return (long) (sizeof (long)); }
15280 unsigned long ulongval () { return (long) (sizeof (long)); }
15281 #include <stdio.h>
15282 #include <stdlib.h>
15283 int
15284 main ()
15285 {
15286
15287   FILE *f = fopen ("conftest.val", "w");
15288   if (! f)
15289     exit (1);
15290   if (((long) (sizeof (long))) < 0)
15291     {
15292       long i = longval ();
15293       if (i != ((long) (sizeof (long))))
15294         exit (1);
15295       fprintf (f, "%ld\n", i);
15296     }
15297   else
15298     {
15299       unsigned long i = ulongval ();
15300       if (i != ((long) (sizeof (long))))
15301         exit (1);
15302       fprintf (f, "%lu\n", i);
15303     }
15304   exit (ferror (f) || fclose (f) != 0);
15305
15306   ;
15307   return 0;
15308 }
15309 _ACEOF
15310 rm -f conftest$ac_exeext
15311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15312   (eval $ac_link) 2>&5
15313   ac_status=$?
15314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15317   (eval $ac_try) 2>&5
15318   ac_status=$?
15319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320   (exit $ac_status); }; }; then
15321   ac_cv_sizeof_long=`cat conftest.val`
15322 else
15323   echo "$as_me: program exited with status $ac_status" >&5
15324 echo "$as_me: failed program was:" >&5
15325 sed 's/^/| /' conftest.$ac_ext >&5
15326
15327 ( exit $ac_status )
15328 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15329 See \`config.log' for more details." >&5
15330 echo "$as_me: error: cannot compute sizeof (long), 77
15331 See \`config.log' for more details." >&2;}
15332    { (exit 1); exit 1; }; }
15333 fi
15334 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15335 fi
15336 fi
15337 rm -f conftest.val
15338 else
15339   ac_cv_sizeof_long=0
15340 fi
15341 fi
15342 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15343 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15344 cat >>confdefs.h <<_ACEOF
15345 #define SIZEOF_LONG $ac_cv_sizeof_long
15346 _ACEOF
15347
15348
15349
15350 case "${host}" in
15351     arm-*-linux* )
15352         echo "$as_me:$LINENO: checking for long long" >&5
15353 echo $ECHO_N "checking for long long... $ECHO_C" >&6
15354 if test "${ac_cv_type_long_long+set}" = set; then
15355   echo $ECHO_N "(cached) $ECHO_C" >&6
15356 else
15357   cat >conftest.$ac_ext <<_ACEOF
15358 #line $LINENO "configure"
15359 /* confdefs.h.  */
15360 _ACEOF
15361 cat confdefs.h >>conftest.$ac_ext
15362 cat >>conftest.$ac_ext <<_ACEOF
15363 /* end confdefs.h.  */
15364 $ac_includes_default
15365 int
15366 main ()
15367 {
15368 if ((long long *) 0)
15369   return 0;
15370 if (sizeof (long long))
15371   return 0;
15372   ;
15373   return 0;
15374 }
15375 _ACEOF
15376 rm -f conftest.$ac_objext
15377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15378   (eval $ac_compile) 2>&5
15379   ac_status=$?
15380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381   (exit $ac_status); } &&
15382          { ac_try='test -s conftest.$ac_objext'
15383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15384   (eval $ac_try) 2>&5
15385   ac_status=$?
15386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387   (exit $ac_status); }; }; then
15388   ac_cv_type_long_long=yes
15389 else
15390   echo "$as_me: failed program was:" >&5
15391 sed 's/^/| /' conftest.$ac_ext >&5
15392
15393 ac_cv_type_long_long=no
15394 fi
15395 rm -f conftest.$ac_objext conftest.$ac_ext
15396 fi
15397 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15398 echo "${ECHO_T}$ac_cv_type_long_long" >&6
15399
15400 echo "$as_me:$LINENO: checking size of long long" >&5
15401 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15402 if test "${ac_cv_sizeof_long_long+set}" = set; then
15403   echo $ECHO_N "(cached) $ECHO_C" >&6
15404 else
15405   if test "$ac_cv_type_long_long" = yes; then
15406   # The cast to unsigned long works around a bug in the HP C Compiler
15407   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15408   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15409   # This bug is HP SR number 8606223364.
15410   if test "$cross_compiling" = yes; then
15411   # Depending upon the size, compute the lo and hi bounds.
15412 cat >conftest.$ac_ext <<_ACEOF
15413 #line $LINENO "configure"
15414 /* confdefs.h.  */
15415 _ACEOF
15416 cat confdefs.h >>conftest.$ac_ext
15417 cat >>conftest.$ac_ext <<_ACEOF
15418 /* end confdefs.h.  */
15419 $ac_includes_default
15420 int
15421 main ()
15422 {
15423 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15424 test_array [0] = 0
15425
15426   ;
15427   return 0;
15428 }
15429 _ACEOF
15430 rm -f conftest.$ac_objext
15431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15432   (eval $ac_compile) 2>&5
15433   ac_status=$?
15434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435   (exit $ac_status); } &&
15436          { ac_try='test -s conftest.$ac_objext'
15437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15438   (eval $ac_try) 2>&5
15439   ac_status=$?
15440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441   (exit $ac_status); }; }; then
15442   ac_lo=0 ac_mid=0
15443   while :; do
15444     cat >conftest.$ac_ext <<_ACEOF
15445 #line $LINENO "configure"
15446 /* confdefs.h.  */
15447 _ACEOF
15448 cat confdefs.h >>conftest.$ac_ext
15449 cat >>conftest.$ac_ext <<_ACEOF
15450 /* end confdefs.h.  */
15451 $ac_includes_default
15452 int
15453 main ()
15454 {
15455 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15456 test_array [0] = 0
15457
15458   ;
15459   return 0;
15460 }
15461 _ACEOF
15462 rm -f conftest.$ac_objext
15463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15464   (eval $ac_compile) 2>&5
15465   ac_status=$?
15466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467   (exit $ac_status); } &&
15468          { ac_try='test -s conftest.$ac_objext'
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_hi=$ac_mid; break
15475 else
15476   echo "$as_me: failed program was:" >&5
15477 sed 's/^/| /' conftest.$ac_ext >&5
15478
15479 ac_lo=`expr $ac_mid + 1`
15480                     if test $ac_lo -le $ac_mid; then
15481                       ac_lo= ac_hi=
15482                       break
15483                     fi
15484                     ac_mid=`expr 2 '*' $ac_mid + 1`
15485 fi
15486 rm -f conftest.$ac_objext conftest.$ac_ext
15487   done
15488 else
15489   echo "$as_me: failed program was:" >&5
15490 sed 's/^/| /' conftest.$ac_ext >&5
15491
15492 cat >conftest.$ac_ext <<_ACEOF
15493 #line $LINENO "configure"
15494 /* confdefs.h.  */
15495 _ACEOF
15496 cat confdefs.h >>conftest.$ac_ext
15497 cat >>conftest.$ac_ext <<_ACEOF
15498 /* end confdefs.h.  */
15499 $ac_includes_default
15500 int
15501 main ()
15502 {
15503 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15504 test_array [0] = 0
15505
15506   ;
15507   return 0;
15508 }
15509 _ACEOF
15510 rm -f conftest.$ac_objext
15511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15512   (eval $ac_compile) 2>&5
15513   ac_status=$?
15514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515   (exit $ac_status); } &&
15516          { ac_try='test -s conftest.$ac_objext'
15517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15518   (eval $ac_try) 2>&5
15519   ac_status=$?
15520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521   (exit $ac_status); }; }; then
15522   ac_hi=-1 ac_mid=-1
15523   while :; do
15524     cat >conftest.$ac_ext <<_ACEOF
15525 #line $LINENO "configure"
15526 /* confdefs.h.  */
15527 _ACEOF
15528 cat confdefs.h >>conftest.$ac_ext
15529 cat >>conftest.$ac_ext <<_ACEOF
15530 /* end confdefs.h.  */
15531 $ac_includes_default
15532 int
15533 main ()
15534 {
15535 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15536 test_array [0] = 0
15537
15538   ;
15539   return 0;
15540 }
15541 _ACEOF
15542 rm -f conftest.$ac_objext
15543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15544   (eval $ac_compile) 2>&5
15545   ac_status=$?
15546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547   (exit $ac_status); } &&
15548          { ac_try='test -s conftest.$ac_objext'
15549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15550   (eval $ac_try) 2>&5
15551   ac_status=$?
15552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553   (exit $ac_status); }; }; then
15554   ac_lo=$ac_mid; break
15555 else
15556   echo "$as_me: failed program was:" >&5
15557 sed 's/^/| /' conftest.$ac_ext >&5
15558
15559 ac_hi=`expr '(' $ac_mid ')' - 1`
15560                        if test $ac_mid -le $ac_hi; then
15561                          ac_lo= ac_hi=
15562                          break
15563                        fi
15564                        ac_mid=`expr 2 '*' $ac_mid`
15565 fi
15566 rm -f conftest.$ac_objext conftest.$ac_ext
15567   done
15568 else
15569   echo "$as_me: failed program was:" >&5
15570 sed 's/^/| /' conftest.$ac_ext >&5
15571
15572 ac_lo= ac_hi=
15573 fi
15574 rm -f conftest.$ac_objext conftest.$ac_ext
15575 fi
15576 rm -f conftest.$ac_objext conftest.$ac_ext
15577 # Binary search between lo and hi bounds.
15578 while test "x$ac_lo" != "x$ac_hi"; do
15579   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15580   cat >conftest.$ac_ext <<_ACEOF
15581 #line $LINENO "configure"
15582 /* confdefs.h.  */
15583 _ACEOF
15584 cat confdefs.h >>conftest.$ac_ext
15585 cat >>conftest.$ac_ext <<_ACEOF
15586 /* end confdefs.h.  */
15587 $ac_includes_default
15588 int
15589 main ()
15590 {
15591 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15592 test_array [0] = 0
15593
15594   ;
15595   return 0;
15596 }
15597 _ACEOF
15598 rm -f conftest.$ac_objext
15599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15600   (eval $ac_compile) 2>&5
15601   ac_status=$?
15602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603   (exit $ac_status); } &&
15604          { ac_try='test -s conftest.$ac_objext'
15605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15606   (eval $ac_try) 2>&5
15607   ac_status=$?
15608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609   (exit $ac_status); }; }; then
15610   ac_hi=$ac_mid
15611 else
15612   echo "$as_me: failed program was:" >&5
15613 sed 's/^/| /' conftest.$ac_ext >&5
15614
15615 ac_lo=`expr '(' $ac_mid ')' + 1`
15616 fi
15617 rm -f conftest.$ac_objext conftest.$ac_ext
15618 done
15619 case $ac_lo in
15620 ?*) ac_cv_sizeof_long_long=$ac_lo;;
15621 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15622 See \`config.log' for more details." >&5
15623 echo "$as_me: error: cannot compute sizeof (long long), 77
15624 See \`config.log' for more details." >&2;}
15625    { (exit 1); exit 1; }; } ;;
15626 esac
15627 else
15628   if test "$cross_compiling" = yes; then
15629   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15630 See \`config.log' for more details." >&5
15631 echo "$as_me: error: cannot run test program while cross compiling
15632 See \`config.log' for more details." >&2;}
15633    { (exit 1); exit 1; }; }
15634 else
15635   cat >conftest.$ac_ext <<_ACEOF
15636 #line $LINENO "configure"
15637 /* confdefs.h.  */
15638 _ACEOF
15639 cat confdefs.h >>conftest.$ac_ext
15640 cat >>conftest.$ac_ext <<_ACEOF
15641 /* end confdefs.h.  */
15642 $ac_includes_default
15643 long longval () { return (long) (sizeof (long long)); }
15644 unsigned long ulongval () { return (long) (sizeof (long long)); }
15645 #include <stdio.h>
15646 #include <stdlib.h>
15647 int
15648 main ()
15649 {
15650
15651   FILE *f = fopen ("conftest.val", "w");
15652   if (! f)
15653     exit (1);
15654   if (((long) (sizeof (long long))) < 0)
15655     {
15656       long i = longval ();
15657       if (i != ((long) (sizeof (long long))))
15658         exit (1);
15659       fprintf (f, "%ld\n", i);
15660     }
15661   else
15662     {
15663       unsigned long i = ulongval ();
15664       if (i != ((long) (sizeof (long long))))
15665         exit (1);
15666       fprintf (f, "%lu\n", i);
15667     }
15668   exit (ferror (f) || fclose (f) != 0);
15669
15670   ;
15671   return 0;
15672 }
15673 _ACEOF
15674 rm -f conftest$ac_exeext
15675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15676   (eval $ac_link) 2>&5
15677   ac_status=$?
15678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15681   (eval $ac_try) 2>&5
15682   ac_status=$?
15683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684   (exit $ac_status); }; }; then
15685   ac_cv_sizeof_long_long=`cat conftest.val`
15686 else
15687   echo "$as_me: program exited with status $ac_status" >&5
15688 echo "$as_me: failed program was:" >&5
15689 sed 's/^/| /' conftest.$ac_ext >&5
15690
15691 ( exit $ac_status )
15692 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15693 See \`config.log' for more details." >&5
15694 echo "$as_me: error: cannot compute sizeof (long long), 77
15695 See \`config.log' for more details." >&2;}
15696    { (exit 1); exit 1; }; }
15697 fi
15698 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15699 fi
15700 fi
15701 rm -f conftest.val
15702 else
15703   ac_cv_sizeof_long_long=0
15704 fi
15705 fi
15706 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
15707 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
15708 cat >>confdefs.h <<_ACEOF
15709 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15710 _ACEOF
15711
15712
15713     ;;
15714     *-hp-hpux* )
15715         echo "$as_me:$LINENO: checking for long long" >&5
15716 echo $ECHO_N "checking for long long... $ECHO_C" >&6
15717 if test "${ac_cv_type_long_long+set}" = set; then
15718   echo $ECHO_N "(cached) $ECHO_C" >&6
15719 else
15720   cat >conftest.$ac_ext <<_ACEOF
15721 #line $LINENO "configure"
15722 /* confdefs.h.  */
15723 _ACEOF
15724 cat confdefs.h >>conftest.$ac_ext
15725 cat >>conftest.$ac_ext <<_ACEOF
15726 /* end confdefs.h.  */
15727 $ac_includes_default
15728 int
15729 main ()
15730 {
15731 if ((long long *) 0)
15732   return 0;
15733 if (sizeof (long long))
15734   return 0;
15735   ;
15736   return 0;
15737 }
15738 _ACEOF
15739 rm -f conftest.$ac_objext
15740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15741   (eval $ac_compile) 2>&5
15742   ac_status=$?
15743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744   (exit $ac_status); } &&
15745          { ac_try='test -s conftest.$ac_objext'
15746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15747   (eval $ac_try) 2>&5
15748   ac_status=$?
15749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750   (exit $ac_status); }; }; then
15751   ac_cv_type_long_long=yes
15752 else
15753   echo "$as_me: failed program was:" >&5
15754 sed 's/^/| /' conftest.$ac_ext >&5
15755
15756 ac_cv_type_long_long=no
15757 fi
15758 rm -f conftest.$ac_objext conftest.$ac_ext
15759 fi
15760 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15761 echo "${ECHO_T}$ac_cv_type_long_long" >&6
15762
15763 echo "$as_me:$LINENO: checking size of long long" >&5
15764 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15765 if test "${ac_cv_sizeof_long_long+set}" = set; then
15766   echo $ECHO_N "(cached) $ECHO_C" >&6
15767 else
15768   if test "$ac_cv_type_long_long" = yes; then
15769   # The cast to unsigned long works around a bug in the HP C Compiler
15770   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15771   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15772   # This bug is HP SR number 8606223364.
15773   if test "$cross_compiling" = yes; then
15774   # Depending upon the size, compute the lo and hi bounds.
15775 cat >conftest.$ac_ext <<_ACEOF
15776 #line $LINENO "configure"
15777 /* confdefs.h.  */
15778 _ACEOF
15779 cat confdefs.h >>conftest.$ac_ext
15780 cat >>conftest.$ac_ext <<_ACEOF
15781 /* end confdefs.h.  */
15782 $ac_includes_default
15783 int
15784 main ()
15785 {
15786 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15787 test_array [0] = 0
15788
15789   ;
15790   return 0;
15791 }
15792 _ACEOF
15793 rm -f conftest.$ac_objext
15794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15795   (eval $ac_compile) 2>&5
15796   ac_status=$?
15797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798   (exit $ac_status); } &&
15799          { ac_try='test -s conftest.$ac_objext'
15800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801   (eval $ac_try) 2>&5
15802   ac_status=$?
15803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804   (exit $ac_status); }; }; then
15805   ac_lo=0 ac_mid=0
15806   while :; do
15807     cat >conftest.$ac_ext <<_ACEOF
15808 #line $LINENO "configure"
15809 /* confdefs.h.  */
15810 _ACEOF
15811 cat confdefs.h >>conftest.$ac_ext
15812 cat >>conftest.$ac_ext <<_ACEOF
15813 /* end confdefs.h.  */
15814 $ac_includes_default
15815 int
15816 main ()
15817 {
15818 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15819 test_array [0] = 0
15820
15821   ;
15822   return 0;
15823 }
15824 _ACEOF
15825 rm -f conftest.$ac_objext
15826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15827   (eval $ac_compile) 2>&5
15828   ac_status=$?
15829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830   (exit $ac_status); } &&
15831          { ac_try='test -s conftest.$ac_objext'
15832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15833   (eval $ac_try) 2>&5
15834   ac_status=$?
15835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15836   (exit $ac_status); }; }; then
15837   ac_hi=$ac_mid; break
15838 else
15839   echo "$as_me: failed program was:" >&5
15840 sed 's/^/| /' conftest.$ac_ext >&5
15841
15842 ac_lo=`expr $ac_mid + 1`
15843                     if test $ac_lo -le $ac_mid; then
15844                       ac_lo= ac_hi=
15845                       break
15846                     fi
15847                     ac_mid=`expr 2 '*' $ac_mid + 1`
15848 fi
15849 rm -f conftest.$ac_objext conftest.$ac_ext
15850   done
15851 else
15852   echo "$as_me: failed program was:" >&5
15853 sed 's/^/| /' conftest.$ac_ext >&5
15854
15855 cat >conftest.$ac_ext <<_ACEOF
15856 #line $LINENO "configure"
15857 /* confdefs.h.  */
15858 _ACEOF
15859 cat confdefs.h >>conftest.$ac_ext
15860 cat >>conftest.$ac_ext <<_ACEOF
15861 /* end confdefs.h.  */
15862 $ac_includes_default
15863 int
15864 main ()
15865 {
15866 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15867 test_array [0] = 0
15868
15869   ;
15870   return 0;
15871 }
15872 _ACEOF
15873 rm -f conftest.$ac_objext
15874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15875   (eval $ac_compile) 2>&5
15876   ac_status=$?
15877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878   (exit $ac_status); } &&
15879          { ac_try='test -s conftest.$ac_objext'
15880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15881   (eval $ac_try) 2>&5
15882   ac_status=$?
15883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884   (exit $ac_status); }; }; then
15885   ac_hi=-1 ac_mid=-1
15886   while :; do
15887     cat >conftest.$ac_ext <<_ACEOF
15888 #line $LINENO "configure"
15889 /* confdefs.h.  */
15890 _ACEOF
15891 cat confdefs.h >>conftest.$ac_ext
15892 cat >>conftest.$ac_ext <<_ACEOF
15893 /* end confdefs.h.  */
15894 $ac_includes_default
15895 int
15896 main ()
15897 {
15898 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15899 test_array [0] = 0
15900
15901   ;
15902   return 0;
15903 }
15904 _ACEOF
15905 rm -f conftest.$ac_objext
15906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15907   (eval $ac_compile) 2>&5
15908   ac_status=$?
15909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910   (exit $ac_status); } &&
15911          { ac_try='test -s conftest.$ac_objext'
15912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15913   (eval $ac_try) 2>&5
15914   ac_status=$?
15915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916   (exit $ac_status); }; }; then
15917   ac_lo=$ac_mid; break
15918 else
15919   echo "$as_me: failed program was:" >&5
15920 sed 's/^/| /' conftest.$ac_ext >&5
15921
15922 ac_hi=`expr '(' $ac_mid ')' - 1`
15923                        if test $ac_mid -le $ac_hi; then
15924                          ac_lo= ac_hi=
15925                          break
15926                        fi
15927                        ac_mid=`expr 2 '*' $ac_mid`
15928 fi
15929 rm -f conftest.$ac_objext conftest.$ac_ext
15930   done
15931 else
15932   echo "$as_me: failed program was:" >&5
15933 sed 's/^/| /' conftest.$ac_ext >&5
15934
15935 ac_lo= ac_hi=
15936 fi
15937 rm -f conftest.$ac_objext conftest.$ac_ext
15938 fi
15939 rm -f conftest.$ac_objext conftest.$ac_ext
15940 # Binary search between lo and hi bounds.
15941 while test "x$ac_lo" != "x$ac_hi"; do
15942   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15943   cat >conftest.$ac_ext <<_ACEOF
15944 #line $LINENO "configure"
15945 /* confdefs.h.  */
15946 _ACEOF
15947 cat confdefs.h >>conftest.$ac_ext
15948 cat >>conftest.$ac_ext <<_ACEOF
15949 /* end confdefs.h.  */
15950 $ac_includes_default
15951 int
15952 main ()
15953 {
15954 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15955 test_array [0] = 0
15956
15957   ;
15958   return 0;
15959 }
15960 _ACEOF
15961 rm -f conftest.$ac_objext
15962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15963   (eval $ac_compile) 2>&5
15964   ac_status=$?
15965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966   (exit $ac_status); } &&
15967          { ac_try='test -s conftest.$ac_objext'
15968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15969   (eval $ac_try) 2>&5
15970   ac_status=$?
15971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972   (exit $ac_status); }; }; then
15973   ac_hi=$ac_mid
15974 else
15975   echo "$as_me: failed program was:" >&5
15976 sed 's/^/| /' conftest.$ac_ext >&5
15977
15978 ac_lo=`expr '(' $ac_mid ')' + 1`
15979 fi
15980 rm -f conftest.$ac_objext conftest.$ac_ext
15981 done
15982 case $ac_lo in
15983 ?*) ac_cv_sizeof_long_long=$ac_lo;;
15984 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15985 See \`config.log' for more details." >&5
15986 echo "$as_me: error: cannot compute sizeof (long long), 77
15987 See \`config.log' for more details." >&2;}
15988    { (exit 1); exit 1; }; } ;;
15989 esac
15990 else
15991   if test "$cross_compiling" = yes; then
15992   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15993 See \`config.log' for more details." >&5
15994 echo "$as_me: error: cannot run test program while cross compiling
15995 See \`config.log' for more details." >&2;}
15996    { (exit 1); exit 1; }; }
15997 else
15998   cat >conftest.$ac_ext <<_ACEOF
15999 #line $LINENO "configure"
16000 /* confdefs.h.  */
16001 _ACEOF
16002 cat confdefs.h >>conftest.$ac_ext
16003 cat >>conftest.$ac_ext <<_ACEOF
16004 /* end confdefs.h.  */
16005 $ac_includes_default
16006 long longval () { return (long) (sizeof (long long)); }
16007 unsigned long ulongval () { return (long) (sizeof (long long)); }
16008 #include <stdio.h>
16009 #include <stdlib.h>
16010 int
16011 main ()
16012 {
16013
16014   FILE *f = fopen ("conftest.val", "w");
16015   if (! f)
16016     exit (1);
16017   if (((long) (sizeof (long long))) < 0)
16018     {
16019       long i = longval ();
16020       if (i != ((long) (sizeof (long long))))
16021         exit (1);
16022       fprintf (f, "%ld\n", i);
16023     }
16024   else
16025     {
16026       unsigned long i = ulongval ();
16027       if (i != ((long) (sizeof (long long))))
16028         exit (1);
16029       fprintf (f, "%lu\n", i);
16030     }
16031   exit (ferror (f) || fclose (f) != 0);
16032
16033   ;
16034   return 0;
16035 }
16036 _ACEOF
16037 rm -f conftest$ac_exeext
16038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16039   (eval $ac_link) 2>&5
16040   ac_status=$?
16041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16044   (eval $ac_try) 2>&5
16045   ac_status=$?
16046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047   (exit $ac_status); }; }; then
16048   ac_cv_sizeof_long_long=`cat conftest.val`
16049 else
16050   echo "$as_me: program exited with status $ac_status" >&5
16051 echo "$as_me: failed program was:" >&5
16052 sed 's/^/| /' conftest.$ac_ext >&5
16053
16054 ( exit $ac_status )
16055 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16056 See \`config.log' for more details." >&5
16057 echo "$as_me: error: cannot compute sizeof (long long), 77
16058 See \`config.log' for more details." >&2;}
16059    { (exit 1); exit 1; }; }
16060 fi
16061 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16062 fi
16063 fi
16064 rm -f conftest.val
16065 else
16066   ac_cv_sizeof_long_long=0
16067 fi
16068 fi
16069 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16070 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16071 cat >>confdefs.h <<_ACEOF
16072 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16073 _ACEOF
16074
16075
16076         if test "$ac_cv_sizeof_long_long" != "0"; then
16077                         CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
16078         fi
16079     ;;
16080     * )
16081         echo "$as_me:$LINENO: checking for long long" >&5
16082 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16083 if test "${ac_cv_type_long_long+set}" = set; then
16084   echo $ECHO_N "(cached) $ECHO_C" >&6
16085 else
16086   cat >conftest.$ac_ext <<_ACEOF
16087 #line $LINENO "configure"
16088 /* confdefs.h.  */
16089 _ACEOF
16090 cat confdefs.h >>conftest.$ac_ext
16091 cat >>conftest.$ac_ext <<_ACEOF
16092 /* end confdefs.h.  */
16093 $ac_includes_default
16094 int
16095 main ()
16096 {
16097 if ((long long *) 0)
16098   return 0;
16099 if (sizeof (long long))
16100   return 0;
16101   ;
16102   return 0;
16103 }
16104 _ACEOF
16105 rm -f conftest.$ac_objext
16106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16107   (eval $ac_compile) 2>&5
16108   ac_status=$?
16109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110   (exit $ac_status); } &&
16111          { ac_try='test -s conftest.$ac_objext'
16112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16113   (eval $ac_try) 2>&5
16114   ac_status=$?
16115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116   (exit $ac_status); }; }; then
16117   ac_cv_type_long_long=yes
16118 else
16119   echo "$as_me: failed program was:" >&5
16120 sed 's/^/| /' conftest.$ac_ext >&5
16121
16122 ac_cv_type_long_long=no
16123 fi
16124 rm -f conftest.$ac_objext conftest.$ac_ext
16125 fi
16126 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16127 echo "${ECHO_T}$ac_cv_type_long_long" >&6
16128
16129 echo "$as_me:$LINENO: checking size of long long" >&5
16130 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16131 if test "${ac_cv_sizeof_long_long+set}" = set; then
16132   echo $ECHO_N "(cached) $ECHO_C" >&6
16133 else
16134   if test "$ac_cv_type_long_long" = yes; then
16135   # The cast to unsigned long works around a bug in the HP C Compiler
16136   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16137   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16138   # This bug is HP SR number 8606223364.
16139   if test "$cross_compiling" = yes; then
16140   # Depending upon the size, compute the lo and hi bounds.
16141 cat >conftest.$ac_ext <<_ACEOF
16142 #line $LINENO "configure"
16143 /* confdefs.h.  */
16144 _ACEOF
16145 cat confdefs.h >>conftest.$ac_ext
16146 cat >>conftest.$ac_ext <<_ACEOF
16147 /* end confdefs.h.  */
16148 $ac_includes_default
16149 int
16150 main ()
16151 {
16152 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16153 test_array [0] = 0
16154
16155   ;
16156   return 0;
16157 }
16158 _ACEOF
16159 rm -f conftest.$ac_objext
16160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16161   (eval $ac_compile) 2>&5
16162   ac_status=$?
16163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164   (exit $ac_status); } &&
16165          { ac_try='test -s conftest.$ac_objext'
16166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16167   (eval $ac_try) 2>&5
16168   ac_status=$?
16169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170   (exit $ac_status); }; }; then
16171   ac_lo=0 ac_mid=0
16172   while :; do
16173     cat >conftest.$ac_ext <<_ACEOF
16174 #line $LINENO "configure"
16175 /* confdefs.h.  */
16176 _ACEOF
16177 cat confdefs.h >>conftest.$ac_ext
16178 cat >>conftest.$ac_ext <<_ACEOF
16179 /* end confdefs.h.  */
16180 $ac_includes_default
16181 int
16182 main ()
16183 {
16184 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16185 test_array [0] = 0
16186
16187   ;
16188   return 0;
16189 }
16190 _ACEOF
16191 rm -f conftest.$ac_objext
16192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16193   (eval $ac_compile) 2>&5
16194   ac_status=$?
16195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196   (exit $ac_status); } &&
16197          { ac_try='test -s conftest.$ac_objext'
16198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16199   (eval $ac_try) 2>&5
16200   ac_status=$?
16201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202   (exit $ac_status); }; }; then
16203   ac_hi=$ac_mid; break
16204 else
16205   echo "$as_me: failed program was:" >&5
16206 sed 's/^/| /' conftest.$ac_ext >&5
16207
16208 ac_lo=`expr $ac_mid + 1`
16209                     if test $ac_lo -le $ac_mid; then
16210                       ac_lo= ac_hi=
16211                       break
16212                     fi
16213                     ac_mid=`expr 2 '*' $ac_mid + 1`
16214 fi
16215 rm -f conftest.$ac_objext conftest.$ac_ext
16216   done
16217 else
16218   echo "$as_me: failed program was:" >&5
16219 sed 's/^/| /' conftest.$ac_ext >&5
16220
16221 cat >conftest.$ac_ext <<_ACEOF
16222 #line $LINENO "configure"
16223 /* confdefs.h.  */
16224 _ACEOF
16225 cat confdefs.h >>conftest.$ac_ext
16226 cat >>conftest.$ac_ext <<_ACEOF
16227 /* end confdefs.h.  */
16228 $ac_includes_default
16229 int
16230 main ()
16231 {
16232 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16233 test_array [0] = 0
16234
16235   ;
16236   return 0;
16237 }
16238 _ACEOF
16239 rm -f conftest.$ac_objext
16240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16241   (eval $ac_compile) 2>&5
16242   ac_status=$?
16243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244   (exit $ac_status); } &&
16245          { ac_try='test -s conftest.$ac_objext'
16246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16247   (eval $ac_try) 2>&5
16248   ac_status=$?
16249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250   (exit $ac_status); }; }; then
16251   ac_hi=-1 ac_mid=-1
16252   while :; do
16253     cat >conftest.$ac_ext <<_ACEOF
16254 #line $LINENO "configure"
16255 /* confdefs.h.  */
16256 _ACEOF
16257 cat confdefs.h >>conftest.$ac_ext
16258 cat >>conftest.$ac_ext <<_ACEOF
16259 /* end confdefs.h.  */
16260 $ac_includes_default
16261 int
16262 main ()
16263 {
16264 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16265 test_array [0] = 0
16266
16267   ;
16268   return 0;
16269 }
16270 _ACEOF
16271 rm -f conftest.$ac_objext
16272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16273   (eval $ac_compile) 2>&5
16274   ac_status=$?
16275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276   (exit $ac_status); } &&
16277          { ac_try='test -s conftest.$ac_objext'
16278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16279   (eval $ac_try) 2>&5
16280   ac_status=$?
16281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282   (exit $ac_status); }; }; then
16283   ac_lo=$ac_mid; break
16284 else
16285   echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16287
16288 ac_hi=`expr '(' $ac_mid ')' - 1`
16289                        if test $ac_mid -le $ac_hi; then
16290                          ac_lo= ac_hi=
16291                          break
16292                        fi
16293                        ac_mid=`expr 2 '*' $ac_mid`
16294 fi
16295 rm -f conftest.$ac_objext conftest.$ac_ext
16296   done
16297 else
16298   echo "$as_me: failed program was:" >&5
16299 sed 's/^/| /' conftest.$ac_ext >&5
16300
16301 ac_lo= ac_hi=
16302 fi
16303 rm -f conftest.$ac_objext conftest.$ac_ext
16304 fi
16305 rm -f conftest.$ac_objext conftest.$ac_ext
16306 # Binary search between lo and hi bounds.
16307 while test "x$ac_lo" != "x$ac_hi"; do
16308   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16309   cat >conftest.$ac_ext <<_ACEOF
16310 #line $LINENO "configure"
16311 /* confdefs.h.  */
16312 _ACEOF
16313 cat confdefs.h >>conftest.$ac_ext
16314 cat >>conftest.$ac_ext <<_ACEOF
16315 /* end confdefs.h.  */
16316 $ac_includes_default
16317 int
16318 main ()
16319 {
16320 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16321 test_array [0] = 0
16322
16323   ;
16324   return 0;
16325 }
16326 _ACEOF
16327 rm -f conftest.$ac_objext
16328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16329   (eval $ac_compile) 2>&5
16330   ac_status=$?
16331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16332   (exit $ac_status); } &&
16333          { ac_try='test -s conftest.$ac_objext'
16334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16335   (eval $ac_try) 2>&5
16336   ac_status=$?
16337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338   (exit $ac_status); }; }; then
16339   ac_hi=$ac_mid
16340 else
16341   echo "$as_me: failed program was:" >&5
16342 sed 's/^/| /' conftest.$ac_ext >&5
16343
16344 ac_lo=`expr '(' $ac_mid ')' + 1`
16345 fi
16346 rm -f conftest.$ac_objext conftest.$ac_ext
16347 done
16348 case $ac_lo in
16349 ?*) ac_cv_sizeof_long_long=$ac_lo;;
16350 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16351 See \`config.log' for more details." >&5
16352 echo "$as_me: error: cannot compute sizeof (long long), 77
16353 See \`config.log' for more details." >&2;}
16354    { (exit 1); exit 1; }; } ;;
16355 esac
16356 else
16357   if test "$cross_compiling" = yes; then
16358   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16359 See \`config.log' for more details." >&5
16360 echo "$as_me: error: cannot run test program while cross compiling
16361 See \`config.log' for more details." >&2;}
16362    { (exit 1); exit 1; }; }
16363 else
16364   cat >conftest.$ac_ext <<_ACEOF
16365 #line $LINENO "configure"
16366 /* confdefs.h.  */
16367 _ACEOF
16368 cat confdefs.h >>conftest.$ac_ext
16369 cat >>conftest.$ac_ext <<_ACEOF
16370 /* end confdefs.h.  */
16371 $ac_includes_default
16372 long longval () { return (long) (sizeof (long long)); }
16373 unsigned long ulongval () { return (long) (sizeof (long long)); }
16374 #include <stdio.h>
16375 #include <stdlib.h>
16376 int
16377 main ()
16378 {
16379
16380   FILE *f = fopen ("conftest.val", "w");
16381   if (! f)
16382     exit (1);
16383   if (((long) (sizeof (long long))) < 0)
16384     {
16385       long i = longval ();
16386       if (i != ((long) (sizeof (long long))))
16387         exit (1);
16388       fprintf (f, "%ld\n", i);
16389     }
16390   else
16391     {
16392       unsigned long i = ulongval ();
16393       if (i != ((long) (sizeof (long long))))
16394         exit (1);
16395       fprintf (f, "%lu\n", i);
16396     }
16397   exit (ferror (f) || fclose (f) != 0);
16398
16399   ;
16400   return 0;
16401 }
16402 _ACEOF
16403 rm -f conftest$ac_exeext
16404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16405   (eval $ac_link) 2>&5
16406   ac_status=$?
16407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16410   (eval $ac_try) 2>&5
16411   ac_status=$?
16412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413   (exit $ac_status); }; }; then
16414   ac_cv_sizeof_long_long=`cat conftest.val`
16415 else
16416   echo "$as_me: program exited with status $ac_status" >&5
16417 echo "$as_me: failed program was:" >&5
16418 sed 's/^/| /' conftest.$ac_ext >&5
16419
16420 ( exit $ac_status )
16421 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16422 See \`config.log' for more details." >&5
16423 echo "$as_me: error: cannot compute sizeof (long long), 77
16424 See \`config.log' for more details." >&2;}
16425    { (exit 1); exit 1; }; }
16426 fi
16427 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16428 fi
16429 fi
16430 rm -f conftest.val
16431 else
16432   ac_cv_sizeof_long_long=0
16433 fi
16434 fi
16435 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16436 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16437 cat >>confdefs.h <<_ACEOF
16438 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16439 _ACEOF
16440
16441
16442 esac
16443
16444 echo "$as_me:$LINENO: checking size of wchar_t" >&5
16445 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
16446 if test "${wx_cv_sizeof_wchar_t+set}" = set; then
16447   echo $ECHO_N "(cached) $ECHO_C" >&6
16448 else
16449
16450     if test "$cross_compiling" = yes; then
16451
16452             case "${host}" in
16453               *-pc-msdosdjgpp )
16454                 wx_cv_sizeof_wchar_t=0
16455                 ;;
16456               * )
16457                 wx_cv_sizeof_wchar_t=4
16458                 ;;
16459             esac
16460
16461
16462 else
16463   cat >conftest.$ac_ext <<_ACEOF
16464 #line $LINENO "configure"
16465 /* confdefs.h.  */
16466 _ACEOF
16467 cat confdefs.h >>conftest.$ac_ext
16468 cat >>conftest.$ac_ext <<_ACEOF
16469 /* end confdefs.h.  */
16470
16471             /* DJGPP only has fake wchar_t: */
16472             #ifdef __DJGPP__
16473             #  error "fake wchar_t"
16474             #endif
16475             #ifdef HAVE_WCHAR_H
16476             #  ifdef __CYGWIN__
16477             #    include <stddef.h>
16478             #  endif
16479             #  include <wchar.h>
16480             #endif
16481             #ifdef HAVE_STDLIB_H
16482             #  include <stdlib.h>
16483             #endif
16484             #include <stdio.h>
16485             int main()
16486             {
16487                 FILE *f=fopen("conftestval", "w");
16488                 if (!f) exit(1);
16489                 fprintf(f, "%i", sizeof(wchar_t));
16490                 exit(0);
16491             }
16492
16493 _ACEOF
16494 rm -f conftest$ac_exeext
16495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16496   (eval $ac_link) 2>&5
16497   ac_status=$?
16498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16501   (eval $ac_try) 2>&5
16502   ac_status=$?
16503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504   (exit $ac_status); }; }; then
16505   wx_cv_sizeof_wchar_t=`cat conftestval`
16506 else
16507   echo "$as_me: program exited with status $ac_status" >&5
16508 echo "$as_me: failed program was:" >&5
16509 sed 's/^/| /' conftest.$ac_ext >&5
16510
16511 ( exit $ac_status )
16512 wx_cv_sizeof_wchar_t=0
16513 fi
16514 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16515 fi
16516
16517 fi
16518 echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
16519 echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
16520
16521 cat >>confdefs.h <<_ACEOF
16522 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
16523 _ACEOF
16524
16525
16526 # Check whether --enable-largefile or --disable-largefile was given.
16527 if test "${enable_largefile+set}" = set; then
16528   enableval="$enable_largefile"
16529
16530 fi;
16531 if test "$enable_largefile" != no; then
16532             wx_largefile=no
16533
16534     echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16535 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16536 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16537   echo $ECHO_N "(cached) $ECHO_C" >&6
16538 else
16539
16540           cat >conftest.$ac_ext <<_ACEOF
16541 #line $LINENO "configure"
16542 /* confdefs.h.  */
16543 _ACEOF
16544 cat confdefs.h >>conftest.$ac_ext
16545 cat >>conftest.$ac_ext <<_ACEOF
16546 /* end confdefs.h.  */
16547 #define _FILE_OFFSET_BITS 64
16548                           #include <sys/types.h>
16549 int
16550 main ()
16551 {
16552 typedef struct {
16553     unsigned int field: sizeof(off_t) == 8;
16554 } wxlf;
16555
16556   ;
16557   return 0;
16558 }
16559 _ACEOF
16560 rm -f conftest.$ac_objext
16561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16562   (eval $ac_compile) 2>&5
16563   ac_status=$?
16564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565   (exit $ac_status); } &&
16566          { ac_try='test -s conftest.$ac_objext'
16567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16568   (eval $ac_try) 2>&5
16569   ac_status=$?
16570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571   (exit $ac_status); }; }; then
16572   ac_cv_sys_file_offset_bits=64
16573 else
16574   echo "$as_me: failed program was:" >&5
16575 sed 's/^/| /' conftest.$ac_ext >&5
16576
16577 ac_cv_sys_file_offset_bits=no
16578 fi
16579 rm -f conftest.$ac_objext conftest.$ac_ext
16580
16581
16582 fi
16583 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16584 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
16585
16586     if test "$ac_cv_sys_file_offset_bits" != no; then
16587         wx_largefile=yes
16588         cat >>confdefs.h <<_ACEOF
16589 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16590 _ACEOF
16591
16592     fi
16593
16594     if test "x$wx_largefile" != "xyes"; then
16595
16596     echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16597 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16598 if test "${ac_cv_sys_large_files+set}" = set; then
16599   echo $ECHO_N "(cached) $ECHO_C" >&6
16600 else
16601
16602           cat >conftest.$ac_ext <<_ACEOF
16603 #line $LINENO "configure"
16604 /* confdefs.h.  */
16605 _ACEOF
16606 cat confdefs.h >>conftest.$ac_ext
16607 cat >>conftest.$ac_ext <<_ACEOF
16608 /* end confdefs.h.  */
16609 #define _LARGE_FILES 1
16610                           #include <sys/types.h>
16611 int
16612 main ()
16613 {
16614 typedef struct {
16615     unsigned int field: sizeof(off_t) == 8;
16616 } wxlf;
16617
16618   ;
16619   return 0;
16620 }
16621 _ACEOF
16622 rm -f conftest.$ac_objext
16623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16624   (eval $ac_compile) 2>&5
16625   ac_status=$?
16626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627   (exit $ac_status); } &&
16628          { ac_try='test -s conftest.$ac_objext'
16629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16630   (eval $ac_try) 2>&5
16631   ac_status=$?
16632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633   (exit $ac_status); }; }; then
16634   ac_cv_sys_large_files=1
16635 else
16636   echo "$as_me: failed program was:" >&5
16637 sed 's/^/| /' conftest.$ac_ext >&5
16638
16639 ac_cv_sys_large_files=no
16640 fi
16641 rm -f conftest.$ac_objext conftest.$ac_ext
16642
16643
16644 fi
16645 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16646 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
16647
16648     if test "$ac_cv_sys_large_files" != no; then
16649         wx_largefile=yes
16650         cat >>confdefs.h <<_ACEOF
16651 #define _LARGE_FILES $ac_cv_sys_large_files
16652 _ACEOF
16653
16654     fi
16655
16656     fi
16657
16658     echo "$as_me:$LINENO: checking if large file support is available" >&5
16659 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
16660     if test "x$wx_largefile" = "xyes"; then
16661         cat >>confdefs.h <<\_ACEOF
16662 #define HAVE_LARGEFILE_SUPPORT 1
16663 _ACEOF
16664
16665     fi
16666     echo "$as_me:$LINENO: result: $wx_largefile" >&5
16667 echo "${ECHO_T}$wx_largefile" >&6
16668 fi
16669
16670
16671 if test "x$wx_largefile" = "xyes"; then
16672     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
16673         WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
16674     else
16675         WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
16676     fi
16677     CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
16678 fi
16679
16680 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
16681 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
16682 if test "${ac_cv_c_bigendian+set}" = set; then
16683   echo $ECHO_N "(cached) $ECHO_C" >&6
16684 else
16685   ac_cv_c_bigendian=unknown
16686 # See if sys/param.h defines the BYTE_ORDER macro.
16687 cat >conftest.$ac_ext <<_ACEOF
16688 #line $LINENO "configure"
16689 /* confdefs.h.  */
16690 _ACEOF
16691 cat confdefs.h >>conftest.$ac_ext
16692 cat >>conftest.$ac_ext <<_ACEOF
16693 /* end confdefs.h.  */
16694 #include <sys/types.h>
16695 #include <sys/param.h>
16696 int
16697 main ()
16698 {
16699
16700 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16701  bogus endian macros
16702 #endif
16703   ;
16704   return 0;
16705 }
16706 _ACEOF
16707 rm -f conftest.$ac_objext
16708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16709   (eval $ac_compile) 2>&5
16710   ac_status=$?
16711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712   (exit $ac_status); } &&
16713          { ac_try='test -s conftest.$ac_objext'
16714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16715   (eval $ac_try) 2>&5
16716   ac_status=$?
16717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718   (exit $ac_status); }; }; then
16719   # It does; now see whether it defined to BIG_ENDIAN or not.
16720 cat >conftest.$ac_ext <<_ACEOF
16721 #line $LINENO "configure"
16722 /* confdefs.h.  */
16723 _ACEOF
16724 cat confdefs.h >>conftest.$ac_ext
16725 cat >>conftest.$ac_ext <<_ACEOF
16726 /* end confdefs.h.  */
16727 #include <sys/types.h>
16728 #include <sys/param.h>
16729 int
16730 main ()
16731 {
16732
16733 #if BYTE_ORDER != BIG_ENDIAN
16734  not big endian
16735 #endif
16736   ;
16737   return 0;
16738 }
16739 _ACEOF
16740 rm -f conftest.$ac_objext
16741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16742   (eval $ac_compile) 2>&5
16743   ac_status=$?
16744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745   (exit $ac_status); } &&
16746          { ac_try='test -s conftest.$ac_objext'
16747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16748   (eval $ac_try) 2>&5
16749   ac_status=$?
16750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751   (exit $ac_status); }; }; then
16752   ac_cv_c_bigendian=yes
16753 else
16754   echo "$as_me: failed program was:" >&5
16755 sed 's/^/| /' conftest.$ac_ext >&5
16756
16757 ac_cv_c_bigendian=no
16758 fi
16759 rm -f conftest.$ac_objext conftest.$ac_ext
16760 else
16761   echo "$as_me: failed program was:" >&5
16762 sed 's/^/| /' conftest.$ac_ext >&5
16763
16764 fi
16765 rm -f conftest.$ac_objext conftest.$ac_ext
16766 if test $ac_cv_c_bigendian = unknown; then
16767 if test "$cross_compiling" = yes; then
16768   ac_cv_c_bigendian=unknown
16769 else
16770   cat >conftest.$ac_ext <<_ACEOF
16771 #line $LINENO "configure"
16772 /* confdefs.h.  */
16773 _ACEOF
16774 cat confdefs.h >>conftest.$ac_ext
16775 cat >>conftest.$ac_ext <<_ACEOF
16776 /* end confdefs.h.  */
16777 main () {
16778   /* Are we little or big endian?  From Harbison&Steele.  */
16779   union
16780   {
16781     long l;
16782     char c[sizeof (long)];
16783   } u;
16784   u.l = 1;
16785   exit (u.c[sizeof (long) - 1] == 1);
16786 }
16787 _ACEOF
16788 rm -f conftest$ac_exeext
16789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16790   (eval $ac_link) 2>&5
16791   ac_status=$?
16792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16795   (eval $ac_try) 2>&5
16796   ac_status=$?
16797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798   (exit $ac_status); }; }; then
16799   ac_cv_c_bigendian=no
16800 else
16801   echo "$as_me: program exited with status $ac_status" >&5
16802 echo "$as_me: failed program was:" >&5
16803 sed 's/^/| /' conftest.$ac_ext >&5
16804
16805 ( exit $ac_status )
16806 ac_cv_c_bigendian=yes
16807 fi
16808 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16809 fi
16810 fi
16811 fi
16812 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
16813 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
16814 if test $ac_cv_c_bigendian = unknown; then
16815   { 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
16816 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;}
16817 fi
16818 if test $ac_cv_c_bigendian = yes; then
16819   cat >>confdefs.h <<\_ACEOF
16820 #define WORDS_BIGENDIAN 1
16821 _ACEOF
16822
16823 fi
16824
16825
16826
16827 ac_ext=cc
16828 ac_cpp='$CXXCPP $CPPFLAGS'
16829 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16830 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16831 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16832 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
16833 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
16834 if test -z "$CXXCPP"; then
16835   if test "${ac_cv_prog_CXXCPP+set}" = set; then
16836   echo $ECHO_N "(cached) $ECHO_C" >&6
16837 else
16838       # Double quotes because CXXCPP needs to be expanded
16839     for CXXCPP in "$CXX -E" "/lib/cpp"
16840     do
16841       ac_preproc_ok=false
16842 for ac_cxx_preproc_warn_flag in '' yes
16843 do
16844   # Use a header file that comes with gcc, so configuring glibc
16845   # with a fresh cross-compiler works.
16846   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16847   # <limits.h> exists even on freestanding compilers.
16848   # On the NeXT, cc -E runs the code through the compiler's parser,
16849   # not just through cpp. "Syntax error" is here to catch this case.
16850   cat >conftest.$ac_ext <<_ACEOF
16851 #line $LINENO "configure"
16852 /* confdefs.h.  */
16853 _ACEOF
16854 cat confdefs.h >>conftest.$ac_ext
16855 cat >>conftest.$ac_ext <<_ACEOF
16856 /* end confdefs.h.  */
16857 #ifdef __STDC__
16858 # include <limits.h>
16859 #else
16860 # include <assert.h>
16861 #endif
16862                      Syntax error
16863 _ACEOF
16864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16865   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16866   ac_status=$?
16867   grep -v '^ *+' conftest.er1 >conftest.err
16868   rm -f conftest.er1
16869   cat conftest.err >&5
16870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871   (exit $ac_status); } >/dev/null; then
16872   if test -s conftest.err; then
16873     ac_cpp_err=$ac_cxx_preproc_warn_flag
16874   else
16875     ac_cpp_err=
16876   fi
16877 else
16878   ac_cpp_err=yes
16879 fi
16880 if test -z "$ac_cpp_err"; then
16881   :
16882 else
16883   echo "$as_me: failed program was:" >&5
16884 sed 's/^/| /' conftest.$ac_ext >&5
16885
16886   # Broken: fails on valid input.
16887 continue
16888 fi
16889 rm -f conftest.err conftest.$ac_ext
16890
16891   # OK, works on sane cases.  Now check whether non-existent headers
16892   # can be detected and how.
16893   cat >conftest.$ac_ext <<_ACEOF
16894 #line $LINENO "configure"
16895 /* confdefs.h.  */
16896 _ACEOF
16897 cat confdefs.h >>conftest.$ac_ext
16898 cat >>conftest.$ac_ext <<_ACEOF
16899 /* end confdefs.h.  */
16900 #include <ac_nonexistent.h>
16901 _ACEOF
16902 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16903   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16904   ac_status=$?
16905   grep -v '^ *+' conftest.er1 >conftest.err
16906   rm -f conftest.er1
16907   cat conftest.err >&5
16908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909   (exit $ac_status); } >/dev/null; then
16910   if test -s conftest.err; then
16911     ac_cpp_err=$ac_cxx_preproc_warn_flag
16912   else
16913     ac_cpp_err=
16914   fi
16915 else
16916   ac_cpp_err=yes
16917 fi
16918 if test -z "$ac_cpp_err"; then
16919   # Broken: success on invalid input.
16920 continue
16921 else
16922   echo "$as_me: failed program was:" >&5
16923 sed 's/^/| /' conftest.$ac_ext >&5
16924
16925   # Passes both tests.
16926 ac_preproc_ok=:
16927 break
16928 fi
16929 rm -f conftest.err conftest.$ac_ext
16930
16931 done
16932 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16933 rm -f conftest.err conftest.$ac_ext
16934 if $ac_preproc_ok; then
16935   break
16936 fi
16937
16938     done
16939     ac_cv_prog_CXXCPP=$CXXCPP
16940
16941 fi
16942   CXXCPP=$ac_cv_prog_CXXCPP
16943 else
16944   ac_cv_prog_CXXCPP=$CXXCPP
16945 fi
16946 echo "$as_me:$LINENO: result: $CXXCPP" >&5
16947 echo "${ECHO_T}$CXXCPP" >&6
16948 ac_preproc_ok=false
16949 for ac_cxx_preproc_warn_flag in '' yes
16950 do
16951   # Use a header file that comes with gcc, so configuring glibc
16952   # with a fresh cross-compiler works.
16953   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16954   # <limits.h> exists even on freestanding compilers.
16955   # On the NeXT, cc -E runs the code through the compiler's parser,
16956   # not just through cpp. "Syntax error" is here to catch this case.
16957   cat >conftest.$ac_ext <<_ACEOF
16958 #line $LINENO "configure"
16959 /* confdefs.h.  */
16960 _ACEOF
16961 cat confdefs.h >>conftest.$ac_ext
16962 cat >>conftest.$ac_ext <<_ACEOF
16963 /* end confdefs.h.  */
16964 #ifdef __STDC__
16965 # include <limits.h>
16966 #else
16967 # include <assert.h>
16968 #endif
16969                      Syntax error
16970 _ACEOF
16971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16972   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16973   ac_status=$?
16974   grep -v '^ *+' conftest.er1 >conftest.err
16975   rm -f conftest.er1
16976   cat conftest.err >&5
16977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978   (exit $ac_status); } >/dev/null; then
16979   if test -s conftest.err; then
16980     ac_cpp_err=$ac_cxx_preproc_warn_flag
16981   else
16982     ac_cpp_err=
16983   fi
16984 else
16985   ac_cpp_err=yes
16986 fi
16987 if test -z "$ac_cpp_err"; then
16988   :
16989 else
16990   echo "$as_me: failed program was:" >&5
16991 sed 's/^/| /' conftest.$ac_ext >&5
16992
16993   # Broken: fails on valid input.
16994 continue
16995 fi
16996 rm -f conftest.err conftest.$ac_ext
16997
16998   # OK, works on sane cases.  Now check whether non-existent headers
16999   # can be detected and how.
17000   cat >conftest.$ac_ext <<_ACEOF
17001 #line $LINENO "configure"
17002 /* confdefs.h.  */
17003 _ACEOF
17004 cat confdefs.h >>conftest.$ac_ext
17005 cat >>conftest.$ac_ext <<_ACEOF
17006 /* end confdefs.h.  */
17007 #include <ac_nonexistent.h>
17008 _ACEOF
17009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17010   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17011   ac_status=$?
17012   grep -v '^ *+' conftest.er1 >conftest.err
17013   rm -f conftest.er1
17014   cat conftest.err >&5
17015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016   (exit $ac_status); } >/dev/null; then
17017   if test -s conftest.err; then
17018     ac_cpp_err=$ac_cxx_preproc_warn_flag
17019   else
17020     ac_cpp_err=
17021   fi
17022 else
17023   ac_cpp_err=yes
17024 fi
17025 if test -z "$ac_cpp_err"; then
17026   # Broken: success on invalid input.
17027 continue
17028 else
17029   echo "$as_me: failed program was:" >&5
17030 sed 's/^/| /' conftest.$ac_ext >&5
17031
17032   # Passes both tests.
17033 ac_preproc_ok=:
17034 break
17035 fi
17036 rm -f conftest.err conftest.$ac_ext
17037
17038 done
17039 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17040 rm -f conftest.err conftest.$ac_ext
17041 if $ac_preproc_ok; then
17042   :
17043 else
17044   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17045 See \`config.log' for more details." >&5
17046 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17047 See \`config.log' for more details." >&2;}
17048    { (exit 1); exit 1; }; }
17049 fi
17050
17051 ac_ext=cc
17052 ac_cpp='$CXXCPP $CPPFLAGS'
17053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17056
17057
17058
17059   if test "$cross_compiling" = "yes"; then
17060     cat >>confdefs.h <<\_ACEOF
17061 #define wxUSE_IOSTREAMH 1
17062 _ACEOF
17063
17064   else
17065
17066
17067     ac_ext=cc
17068 ac_cpp='$CXXCPP $CPPFLAGS'
17069 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17070 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17071 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17072
17073
17074
17075 for ac_header in iostream
17076 do
17077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17079   echo "$as_me:$LINENO: checking for $ac_header" >&5
17080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17082   echo $ECHO_N "(cached) $ECHO_C" >&6
17083 fi
17084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17086 else
17087   # Is the header compilable?
17088 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17090 cat >conftest.$ac_ext <<_ACEOF
17091 #line $LINENO "configure"
17092 /* confdefs.h.  */
17093 _ACEOF
17094 cat confdefs.h >>conftest.$ac_ext
17095 cat >>conftest.$ac_ext <<_ACEOF
17096 /* end confdefs.h.  */
17097 $ac_includes_default
17098 #include <$ac_header>
17099 _ACEOF
17100 rm -f conftest.$ac_objext
17101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17102   (eval $ac_compile) 2>&5
17103   ac_status=$?
17104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105   (exit $ac_status); } &&
17106          { ac_try='test -s conftest.$ac_objext'
17107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17108   (eval $ac_try) 2>&5
17109   ac_status=$?
17110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111   (exit $ac_status); }; }; then
17112   ac_header_compiler=yes
17113 else
17114   echo "$as_me: failed program was:" >&5
17115 sed 's/^/| /' conftest.$ac_ext >&5
17116
17117 ac_header_compiler=no
17118 fi
17119 rm -f conftest.$ac_objext conftest.$ac_ext
17120 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17121 echo "${ECHO_T}$ac_header_compiler" >&6
17122
17123 # Is the header present?
17124 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17126 cat >conftest.$ac_ext <<_ACEOF
17127 #line $LINENO "configure"
17128 /* confdefs.h.  */
17129 _ACEOF
17130 cat confdefs.h >>conftest.$ac_ext
17131 cat >>conftest.$ac_ext <<_ACEOF
17132 /* end confdefs.h.  */
17133 #include <$ac_header>
17134 _ACEOF
17135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17136   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17137   ac_status=$?
17138   grep -v '^ *+' conftest.er1 >conftest.err
17139   rm -f conftest.er1
17140   cat conftest.err >&5
17141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142   (exit $ac_status); } >/dev/null; then
17143   if test -s conftest.err; then
17144     ac_cpp_err=$ac_cxx_preproc_warn_flag
17145   else
17146     ac_cpp_err=
17147   fi
17148 else
17149   ac_cpp_err=yes
17150 fi
17151 if test -z "$ac_cpp_err"; then
17152   ac_header_preproc=yes
17153 else
17154   echo "$as_me: failed program was:" >&5
17155 sed 's/^/| /' conftest.$ac_ext >&5
17156
17157   ac_header_preproc=no
17158 fi
17159 rm -f conftest.err conftest.$ac_ext
17160 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17161 echo "${ECHO_T}$ac_header_preproc" >&6
17162
17163 # So?  What about this header?
17164 case $ac_header_compiler:$ac_header_preproc in
17165   yes:no )
17166     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17168     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17170     (
17171       cat <<\_ASBOX
17172 ## ------------------------------------ ##
17173 ## Report this to bug-autoconf@gnu.org. ##
17174 ## ------------------------------------ ##
17175 _ASBOX
17176     ) |
17177       sed "s/^/$as_me: WARNING:     /" >&2
17178     ;;
17179   no:yes )
17180     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17181 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17182     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17183 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17184     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17186     (
17187       cat <<\_ASBOX
17188 ## ------------------------------------ ##
17189 ## Report this to bug-autoconf@gnu.org. ##
17190 ## ------------------------------------ ##
17191 _ASBOX
17192     ) |
17193       sed "s/^/$as_me: WARNING:     /" >&2
17194     ;;
17195 esac
17196 echo "$as_me:$LINENO: checking for $ac_header" >&5
17197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17199   echo $ECHO_N "(cached) $ECHO_C" >&6
17200 else
17201   eval "$as_ac_Header=$ac_header_preproc"
17202 fi
17203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17205
17206 fi
17207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17208   cat >>confdefs.h <<_ACEOF
17209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17210 _ACEOF
17211
17212 fi
17213
17214 done
17215
17216
17217     if test "$ac_cv_header_iostream" = "yes" ; then
17218       :
17219     else
17220       cat >>confdefs.h <<\_ACEOF
17221 #define wxUSE_IOSTREAMH 1
17222 _ACEOF
17223
17224     fi
17225
17226     ac_ext=c
17227 ac_cpp='$CPP $CPPFLAGS'
17228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17231
17232   fi
17233
17234
17235
17236   echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
17237 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
17238 if test "${wx_cv_cpp_bool+set}" = set; then
17239   echo $ECHO_N "(cached) $ECHO_C" >&6
17240 else
17241
17242
17243
17244     ac_ext=cc
17245 ac_cpp='$CXXCPP $CPPFLAGS'
17246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17249
17250
17251     cat >conftest.$ac_ext <<_ACEOF
17252 #line $LINENO "configure"
17253 /* confdefs.h.  */
17254 _ACEOF
17255 cat confdefs.h >>conftest.$ac_ext
17256 cat >>conftest.$ac_ext <<_ACEOF
17257 /* end confdefs.h.  */
17258
17259
17260 int
17261 main ()
17262 {
17263
17264         bool b = true;
17265
17266         return 0;
17267
17268   ;
17269   return 0;
17270 }
17271 _ACEOF
17272 rm -f conftest.$ac_objext
17273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17274   (eval $ac_compile) 2>&5
17275   ac_status=$?
17276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277   (exit $ac_status); } &&
17278          { ac_try='test -s conftest.$ac_objext'
17279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17280   (eval $ac_try) 2>&5
17281   ac_status=$?
17282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283   (exit $ac_status); }; }; then
17284
17285         wx_cv_cpp_bool=yes
17286
17287 else
17288   echo "$as_me: failed program was:" >&5
17289 sed 's/^/| /' conftest.$ac_ext >&5
17290
17291
17292         wx_cv_cpp_bool=no
17293
17294
17295 fi
17296 rm -f conftest.$ac_objext conftest.$ac_ext
17297
17298     ac_ext=c
17299 ac_cpp='$CPP $CPPFLAGS'
17300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17303
17304
17305 fi
17306 echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
17307 echo "${ECHO_T}$wx_cv_cpp_bool" >&6
17308
17309   if test "$wx_cv_cpp_bool" = "yes"; then
17310     cat >>confdefs.h <<\_ACEOF
17311 #define HAVE_BOOL 1
17312 _ACEOF
17313
17314   fi
17315
17316
17317
17318   echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
17319 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
17320 if test "${wx_cv_explicit+set}" = set; then
17321   echo $ECHO_N "(cached) $ECHO_C" >&6
17322 else
17323
17324
17325
17326     ac_ext=cc
17327 ac_cpp='$CXXCPP $CPPFLAGS'
17328 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17329 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17330 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17331
17332
17333             cat >conftest.$ac_ext <<_ACEOF
17334 #line $LINENO "configure"
17335 /* confdefs.h.  */
17336 _ACEOF
17337 cat confdefs.h >>conftest.$ac_ext
17338 cat >>conftest.$ac_ext <<_ACEOF
17339 /* end confdefs.h.  */
17340
17341         class Foo { public: explicit Foo(int) {} };
17342
17343 int
17344 main ()
17345 {
17346
17347         return 0;
17348
17349   ;
17350   return 0;
17351 }
17352 _ACEOF
17353 rm -f conftest.$ac_objext
17354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17355   (eval $ac_compile) 2>&5
17356   ac_status=$?
17357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358   (exit $ac_status); } &&
17359          { ac_try='test -s conftest.$ac_objext'
17360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17361   (eval $ac_try) 2>&5
17362   ac_status=$?
17363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364   (exit $ac_status); }; }; then
17365
17366         cat >conftest.$ac_ext <<_ACEOF
17367 #line $LINENO "configure"
17368 /* confdefs.h.  */
17369 _ACEOF
17370 cat confdefs.h >>conftest.$ac_ext
17371 cat >>conftest.$ac_ext <<_ACEOF
17372 /* end confdefs.h.  */
17373
17374                 class Foo { public: explicit Foo(int) {} };
17375                 static void TakeFoo(const Foo& foo) { }
17376
17377 int
17378 main ()
17379 {
17380
17381                 TakeFoo(17);
17382                 return 0;
17383
17384   ;
17385   return 0;
17386 }
17387 _ACEOF
17388 rm -f conftest.$ac_objext
17389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17390   (eval $ac_compile) 2>&5
17391   ac_status=$?
17392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17393   (exit $ac_status); } &&
17394          { ac_try='test -s conftest.$ac_objext'
17395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17396   (eval $ac_try) 2>&5
17397   ac_status=$?
17398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399   (exit $ac_status); }; }; then
17400   wx_cv_explicit=no
17401 else
17402   echo "$as_me: failed program was:" >&5
17403 sed 's/^/| /' conftest.$ac_ext >&5
17404
17405 wx_cv_explicit=yes
17406
17407 fi
17408 rm -f conftest.$ac_objext conftest.$ac_ext
17409
17410 else
17411   echo "$as_me: failed program was:" >&5
17412 sed 's/^/| /' conftest.$ac_ext >&5
17413
17414 wx_cv_explicit=no
17415
17416 fi
17417 rm -f conftest.$ac_objext conftest.$ac_ext
17418
17419     ac_ext=c
17420 ac_cpp='$CPP $CPPFLAGS'
17421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17424
17425
17426 fi
17427 echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
17428 echo "${ECHO_T}$wx_cv_explicit" >&6
17429
17430   if test "$wx_cv_explicit" = "yes"; then
17431     cat >>confdefs.h <<\_ACEOF
17432 #define HAVE_EXPLICIT 1
17433 _ACEOF
17434
17435   fi
17436
17437
17438 echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
17439 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
17440 if test "${ac_cv_cxx_const_cast+set}" = set; then
17441   echo $ECHO_N "(cached) $ECHO_C" >&6
17442 else
17443
17444
17445  ac_ext=cc
17446 ac_cpp='$CXXCPP $CPPFLAGS'
17447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17450
17451  cat >conftest.$ac_ext <<_ACEOF
17452 #line $LINENO "configure"
17453 /* confdefs.h.  */
17454 _ACEOF
17455 cat confdefs.h >>conftest.$ac_ext
17456 cat >>conftest.$ac_ext <<_ACEOF
17457 /* end confdefs.h.  */
17458
17459 int
17460 main ()
17461 {
17462 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
17463   ;
17464   return 0;
17465 }
17466 _ACEOF
17467 rm -f conftest.$ac_objext
17468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17469   (eval $ac_compile) 2>&5
17470   ac_status=$?
17471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472   (exit $ac_status); } &&
17473          { ac_try='test -s conftest.$ac_objext'
17474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17475   (eval $ac_try) 2>&5
17476   ac_status=$?
17477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478   (exit $ac_status); }; }; then
17479   ac_cv_cxx_const_cast=yes
17480 else
17481   echo "$as_me: failed program was:" >&5
17482 sed 's/^/| /' conftest.$ac_ext >&5
17483
17484 ac_cv_cxx_const_cast=no
17485 fi
17486 rm -f conftest.$ac_objext conftest.$ac_ext
17487  ac_ext=c
17488 ac_cpp='$CPP $CPPFLAGS'
17489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17492
17493
17494 fi
17495 echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
17496 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
17497 if test "$ac_cv_cxx_const_cast" = yes; then
17498
17499 cat >>confdefs.h <<\_ACEOF
17500 #define HAVE_CONST_CAST
17501 _ACEOF
17502
17503 fi
17504
17505
17506 if test "$wxUSE_STL" = "yes"; then
17507     ac_ext=cc
17508 ac_cpp='$CXXCPP $CPPFLAGS'
17509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17512
17513
17514         echo "$as_me:$LINENO: checking for basic STL functionality" >&5
17515 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
17516     cat >conftest.$ac_ext <<_ACEOF
17517 #line $LINENO "configure"
17518 /* confdefs.h.  */
17519 _ACEOF
17520 cat confdefs.h >>conftest.$ac_ext
17521 cat >>conftest.$ac_ext <<_ACEOF
17522 /* end confdefs.h.  */
17523 #include <string>
17524                     #include <functional>
17525                     #include <algorithm>
17526                     #include <vector>
17527                     #include <list>
17528 int
17529 main ()
17530 {
17531 std::vector<int> moo;
17532                      std::list<int> foo;
17533                      std::vector<int>::iterator it =
17534                          std::find_if(moo.begin(), moo.end(),
17535                                       std::bind2nd(std::less<int>(), 3));
17536   ;
17537   return 0;
17538 }
17539 _ACEOF
17540 rm -f conftest.$ac_objext
17541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17542   (eval $ac_compile) 2>&5
17543   ac_status=$?
17544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545   (exit $ac_status); } &&
17546          { ac_try='test -s conftest.$ac_objext'
17547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17548   (eval $ac_try) 2>&5
17549   ac_status=$?
17550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551   (exit $ac_status); }; }; then
17552   echo "$as_me:$LINENO: result: yes" >&5
17553 echo "${ECHO_T}yes" >&6
17554 else
17555   echo "$as_me: failed program was:" >&5
17556 sed 's/^/| /' conftest.$ac_ext >&5
17557
17558 echo "$as_me:$LINENO: result: no" >&5
17559 echo "${ECHO_T}no" >&6
17560                      { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
17561 echo "$as_me: error: Basic STL functionality missing" >&2;}
17562    { (exit 1); exit 1; }; }
17563 fi
17564 rm -f conftest.$ac_objext conftest.$ac_ext
17565
17566         echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
17567 echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
17568     cat >conftest.$ac_ext <<_ACEOF
17569 #line $LINENO "configure"
17570 /* confdefs.h.  */
17571 _ACEOF
17572 cat confdefs.h >>conftest.$ac_ext
17573 cat >>conftest.$ac_ext <<_ACEOF
17574 /* end confdefs.h.  */
17575 #include <string>
17576 int
17577 main ()
17578 {
17579 std::wstring foo;
17580   ;
17581   return 0;
17582 }
17583 _ACEOF
17584 rm -f conftest.$ac_objext
17585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17586   (eval $ac_compile) 2>&5
17587   ac_status=$?
17588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589   (exit $ac_status); } &&
17590          { ac_try='test -s conftest.$ac_objext'
17591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17592   (eval $ac_try) 2>&5
17593   ac_status=$?
17594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595   (exit $ac_status); }; }; then
17596   echo "$as_me:$LINENO: result: yes" >&5
17597 echo "${ECHO_T}yes" >&6
17598                     cat >>confdefs.h <<\_ACEOF
17599 #define HAVE_STD_WSTRING 1
17600 _ACEOF
17601
17602 else
17603   echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17605
17606 echo "$as_me:$LINENO: result: no" >&5
17607 echo "${ECHO_T}no" >&6
17608 fi
17609 rm -f conftest.$ac_objext conftest.$ac_ext
17610
17611         echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
17612 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
17613     cat >conftest.$ac_ext <<_ACEOF
17614 #line $LINENO "configure"
17615 /* confdefs.h.  */
17616 _ACEOF
17617 cat confdefs.h >>conftest.$ac_ext
17618 cat >>conftest.$ac_ext <<_ACEOF
17619 /* end confdefs.h.  */
17620 #include <string>
17621 int
17622 main ()
17623 {
17624 std::string foo, bar;
17625                     foo.compare(bar);
17626                     foo.compare(1, 1, bar);
17627                     foo.compare(1, 1, bar, 1, 1);
17628                     foo.compare("");
17629                     foo.compare(1, 1, "");
17630                     foo.compare(1, 1, "", 2);
17631   ;
17632   return 0;
17633 }
17634 _ACEOF
17635 rm -f conftest.$ac_objext
17636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17637   (eval $ac_compile) 2>&5
17638   ac_status=$?
17639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640   (exit $ac_status); } &&
17641          { ac_try='test -s conftest.$ac_objext'
17642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17643   (eval $ac_try) 2>&5
17644   ac_status=$?
17645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646   (exit $ac_status); }; }; then
17647   echo "$as_me:$LINENO: result: yes" >&5
17648 echo "${ECHO_T}yes" >&6
17649                     cat >>confdefs.h <<\_ACEOF
17650 #define HAVE_STD_STRING_COMPARE 1
17651 _ACEOF
17652
17653 else
17654   echo "$as_me: failed program was:" >&5
17655 sed 's/^/| /' conftest.$ac_ext >&5
17656
17657 echo "$as_me:$LINENO: result: no" >&5
17658 echo "${ECHO_T}no" >&6
17659 fi
17660 rm -f conftest.$ac_objext conftest.$ac_ext
17661
17662     ac_ext=c
17663 ac_cpp='$CPP $CPPFLAGS'
17664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17667
17668 fi
17669
17670
17671 SEARCH_INCLUDE="\
17672     /usr/local/include        \
17673                               \
17674     /usr/Motif-1.2/include    \
17675     /usr/Motif-2.1/include    \
17676                               \
17677     /usr/include/Motif1.2     \
17678     /opt/xpm/include/X11      \
17679     /opt/GBxpm/include/       \
17680     /opt/GBxpm/X11/include/   \
17681                               \
17682     /usr/Motif1.2/include     \
17683     /usr/dt/include           \
17684     /usr/openwin/include      \
17685                               \
17686     /usr/include/Xm           \
17687                               \
17688     /usr/X11R6/include        \
17689     /usr/X11R6.4/include      \
17690     /usr/X11R5/include        \
17691     /usr/X11R4/include        \
17692                               \
17693     /usr/include/X11R6        \
17694     /usr/include/X11R5        \
17695     /usr/include/X11R4        \
17696                               \
17697     /usr/local/X11R6/include  \
17698     /usr/local/X11R5/include  \
17699     /usr/local/X11R4/include  \
17700                               \
17701     /usr/local/include/X11R6  \
17702     /usr/local/include/X11R5  \
17703     /usr/local/include/X11R4  \
17704                               \
17705     /usr/X11/include          \
17706     /usr/include/X11          \
17707     /usr/local/X11/include    \
17708     /usr/local/include/X11    \
17709                               \
17710     /usr/X386/include         \
17711     /usr/x386/include         \
17712     /usr/XFree86/include/X11  \
17713                               \
17714     X:/XFree86/include        \
17715     X:/XFree86/include/X11    \
17716                               \
17717     /usr/include/gtk          \
17718     /usr/local/include/gtk    \
17719     /usr/include/glib         \
17720     /usr/local/include/glib   \
17721                               \
17722     /usr/include/qt           \
17723     /usr/local/include/qt     \
17724                               \
17725     /usr/include/windows      \
17726     /usr/include/wine         \
17727     /usr/local/include/wine   \
17728                               \
17729     /usr/unsupported/include  \
17730     /usr/athena/include       \
17731     /usr/local/x11r5/include  \
17732     /usr/lpp/Xamples/include  \
17733                               \
17734     /usr/openwin/share/include"
17735
17736 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
17737
17738
17739 cat >confcache <<\_ACEOF
17740 # This file is a shell script that caches the results of configure
17741 # tests run on this system so they can be shared between configure
17742 # scripts and configure runs, see configure's option --config-cache.
17743 # It is not useful on other systems.  If it contains results you don't
17744 # want to keep, you may remove or edit it.
17745 #
17746 # config.status only pays attention to the cache file if you give it
17747 # the --recheck option to rerun configure.
17748 #
17749 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17750 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17751 # following values.
17752
17753 _ACEOF
17754
17755 # The following way of writing the cache mishandles newlines in values,
17756 # but we know of no workaround that is simple, portable, and efficient.
17757 # So, don't put newlines in cache variables' values.
17758 # Ultrix sh set writes to stderr and can't be redirected directly,
17759 # and sets the high bit in the cache file unless we assign to the vars.
17760 {
17761   (set) 2>&1 |
17762     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17763     *ac_space=\ *)
17764       # `set' does not quote correctly, so add quotes (double-quote
17765       # substitution turns \\\\ into \\, and sed turns \\ into \).
17766       sed -n \
17767         "s/'/'\\\\''/g;
17768           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17769       ;;
17770     *)
17771       # `set' quotes correctly as required by POSIX, so do not add quotes.
17772       sed -n \
17773         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17774       ;;
17775     esac;
17776 } |
17777   sed '
17778      t clear
17779      : clear
17780      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17781      t end
17782      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17783      : end' >>confcache
17784 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17785   if test -w $cache_file; then
17786     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17787     cat confcache >$cache_file
17788   else
17789     echo "not updating unwritable cache $cache_file"
17790   fi
17791 fi
17792 rm -f confcache
17793
17794 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
17795     echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
17796 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
17797 if test "${wx_cv_lib_glibc21+set}" = set; then
17798   echo $ECHO_N "(cached) $ECHO_C" >&6
17799 else
17800
17801         cat >conftest.$ac_ext <<_ACEOF
17802 #line $LINENO "configure"
17803 /* confdefs.h.  */
17804 _ACEOF
17805 cat confdefs.h >>conftest.$ac_ext
17806 cat >>conftest.$ac_ext <<_ACEOF
17807 /* end confdefs.h.  */
17808 #include <features.h>
17809 int
17810 main ()
17811 {
17812
17813                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
17814                     #error not glibc2.1
17815                 #endif
17816
17817   ;
17818   return 0;
17819 }
17820 _ACEOF
17821 rm -f conftest.$ac_objext
17822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17823   (eval $ac_compile) 2>&5
17824   ac_status=$?
17825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826   (exit $ac_status); } &&
17827          { ac_try='test -s conftest.$ac_objext'
17828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17829   (eval $ac_try) 2>&5
17830   ac_status=$?
17831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832   (exit $ac_status); }; }; then
17833
17834                 wx_cv_lib_glibc21=yes
17835
17836 else
17837   echo "$as_me: failed program was:" >&5
17838 sed 's/^/| /' conftest.$ac_ext >&5
17839
17840
17841                 wx_cv_lib_glibc21=no
17842
17843
17844 fi
17845 rm -f conftest.$ac_objext conftest.$ac_ext
17846
17847 fi
17848 echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
17849 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
17850     if test "$wx_cv_lib_glibc21" = "yes"; then
17851         cat >>confdefs.h <<\_ACEOF
17852 #define wxHAVE_GLIBC2 1
17853 _ACEOF
17854
17855     fi
17856 fi
17857
17858 if test "x$wx_cv_lib_glibc21" = "xyes"; then
17859     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
17860         cat >>confdefs.h <<\_ACEOF
17861 #define _GNU_SOURCE 1
17862 _ACEOF
17863
17864     fi
17865 fi
17866
17867
17868
17869 REGEX_INCLUDE=
17870 if test "$wxUSE_REGEX" != "no"; then
17871     cat >>confdefs.h <<\_ACEOF
17872 #define wxUSE_REGEX 1
17873 _ACEOF
17874
17875
17876     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
17877                         if test "${ac_cv_header_regex_h+set}" = set; then
17878   echo "$as_me:$LINENO: checking for regex.h" >&5
17879 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
17880 if test "${ac_cv_header_regex_h+set}" = set; then
17881   echo $ECHO_N "(cached) $ECHO_C" >&6
17882 fi
17883 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
17884 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
17885 else
17886   # Is the header compilable?
17887 echo "$as_me:$LINENO: checking regex.h usability" >&5
17888 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
17889 cat >conftest.$ac_ext <<_ACEOF
17890 #line $LINENO "configure"
17891 /* confdefs.h.  */
17892 _ACEOF
17893 cat confdefs.h >>conftest.$ac_ext
17894 cat >>conftest.$ac_ext <<_ACEOF
17895 /* end confdefs.h.  */
17896 $ac_includes_default
17897 #include <regex.h>
17898 _ACEOF
17899 rm -f conftest.$ac_objext
17900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17901   (eval $ac_compile) 2>&5
17902   ac_status=$?
17903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904   (exit $ac_status); } &&
17905          { ac_try='test -s conftest.$ac_objext'
17906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17907   (eval $ac_try) 2>&5
17908   ac_status=$?
17909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910   (exit $ac_status); }; }; then
17911   ac_header_compiler=yes
17912 else
17913   echo "$as_me: failed program was:" >&5
17914 sed 's/^/| /' conftest.$ac_ext >&5
17915
17916 ac_header_compiler=no
17917 fi
17918 rm -f conftest.$ac_objext conftest.$ac_ext
17919 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17920 echo "${ECHO_T}$ac_header_compiler" >&6
17921
17922 # Is the header present?
17923 echo "$as_me:$LINENO: checking regex.h presence" >&5
17924 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
17925 cat >conftest.$ac_ext <<_ACEOF
17926 #line $LINENO "configure"
17927 /* confdefs.h.  */
17928 _ACEOF
17929 cat confdefs.h >>conftest.$ac_ext
17930 cat >>conftest.$ac_ext <<_ACEOF
17931 /* end confdefs.h.  */
17932 #include <regex.h>
17933 _ACEOF
17934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17935   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17936   ac_status=$?
17937   grep -v '^ *+' conftest.er1 >conftest.err
17938   rm -f conftest.er1
17939   cat conftest.err >&5
17940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941   (exit $ac_status); } >/dev/null; then
17942   if test -s conftest.err; then
17943     ac_cpp_err=$ac_c_preproc_warn_flag
17944   else
17945     ac_cpp_err=
17946   fi
17947 else
17948   ac_cpp_err=yes
17949 fi
17950 if test -z "$ac_cpp_err"; then
17951   ac_header_preproc=yes
17952 else
17953   echo "$as_me: failed program was:" >&5
17954 sed 's/^/| /' conftest.$ac_ext >&5
17955
17956   ac_header_preproc=no
17957 fi
17958 rm -f conftest.err conftest.$ac_ext
17959 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17960 echo "${ECHO_T}$ac_header_preproc" >&6
17961
17962 # So?  What about this header?
17963 case $ac_header_compiler:$ac_header_preproc in
17964   yes:no )
17965     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
17966 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17967     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
17968 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
17969     (
17970       cat <<\_ASBOX
17971 ## ------------------------------------ ##
17972 ## Report this to bug-autoconf@gnu.org. ##
17973 ## ------------------------------------ ##
17974 _ASBOX
17975     ) |
17976       sed "s/^/$as_me: WARNING:     /" >&2
17977     ;;
17978   no:yes )
17979     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
17980 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
17981     { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
17982 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
17983     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
17984 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
17985     (
17986       cat <<\_ASBOX
17987 ## ------------------------------------ ##
17988 ## Report this to bug-autoconf@gnu.org. ##
17989 ## ------------------------------------ ##
17990 _ASBOX
17991     ) |
17992       sed "s/^/$as_me: WARNING:     /" >&2
17993     ;;
17994 esac
17995 echo "$as_me:$LINENO: checking for regex.h" >&5
17996 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
17997 if test "${ac_cv_header_regex_h+set}" = set; then
17998   echo $ECHO_N "(cached) $ECHO_C" >&6
17999 else
18000   ac_cv_header_regex_h=$ac_header_preproc
18001 fi
18002 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18003 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18004
18005 fi
18006 if test $ac_cv_header_regex_h = yes; then
18007
18008 for ac_func in regcomp
18009 do
18010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18011 echo "$as_me:$LINENO: checking for $ac_func" >&5
18012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18013 if eval "test \"\${$as_ac_var+set}\" = set"; then
18014   echo $ECHO_N "(cached) $ECHO_C" >&6
18015 else
18016   cat >conftest.$ac_ext <<_ACEOF
18017 #line $LINENO "configure"
18018 /* confdefs.h.  */
18019 _ACEOF
18020 cat confdefs.h >>conftest.$ac_ext
18021 cat >>conftest.$ac_ext <<_ACEOF
18022 /* end confdefs.h.  */
18023 /* System header to define __stub macros and hopefully few prototypes,
18024     which can conflict with char $ac_func (); below.
18025     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18026     <limits.h> exists even on freestanding compilers.  */
18027 #ifdef __STDC__
18028 # include <limits.h>
18029 #else
18030 # include <assert.h>
18031 #endif
18032 /* Override any gcc2 internal prototype to avoid an error.  */
18033 #ifdef __cplusplus
18034 extern "C"
18035 {
18036 #endif
18037 /* We use char because int might match the return type of a gcc2
18038    builtin and then its argument prototype would still apply.  */
18039 char $ac_func ();
18040 /* The GNU C library defines this for functions which it implements
18041     to always fail with ENOSYS.  Some functions are actually named
18042     something starting with __ and the normal name is an alias.  */
18043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18044 choke me
18045 #else
18046 char (*f) () = $ac_func;
18047 #endif
18048 #ifdef __cplusplus
18049 }
18050 #endif
18051
18052 int
18053 main ()
18054 {
18055 return f != $ac_func;
18056   ;
18057   return 0;
18058 }
18059 _ACEOF
18060 rm -f conftest.$ac_objext conftest$ac_exeext
18061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18062   (eval $ac_link) 2>&5
18063   ac_status=$?
18064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065   (exit $ac_status); } &&
18066          { ac_try='test -s conftest$ac_exeext'
18067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18068   (eval $ac_try) 2>&5
18069   ac_status=$?
18070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071   (exit $ac_status); }; }; then
18072   eval "$as_ac_var=yes"
18073 else
18074   echo "$as_me: failed program was:" >&5
18075 sed 's/^/| /' conftest.$ac_ext >&5
18076
18077 eval "$as_ac_var=no"
18078 fi
18079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18080 fi
18081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18082 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18083 if test `eval echo '${'$as_ac_var'}'` = yes; then
18084   cat >>confdefs.h <<_ACEOF
18085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18086 _ACEOF
18087
18088 fi
18089 done
18090
18091 fi
18092
18093
18094
18095         if test "x$ac_cv_func_regcomp" != "xyes"; then
18096             if test "$wxUSE_REGEX" = "sys" ; then
18097                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
18098 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
18099    { (exit 1); exit 1; }; }
18100             else
18101                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
18102 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
18103                 wxUSE_REGEX=builtin
18104             fi
18105         else
18106                         wxUSE_REGEX=sys
18107         fi
18108     fi
18109
18110     if test "$wxUSE_REGEX" = "builtin" ; then
18111         REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
18112     fi
18113 fi
18114
18115
18116 ZLIB_INCLUDE=
18117 ZLIB_LINK=
18118 if test "$wxUSE_ZLIB" != "no" ; then
18119     cat >>confdefs.h <<\_ACEOF
18120 #define wxUSE_ZLIB 1
18121 _ACEOF
18122
18123
18124     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
18125                                                 if test "$USE_DARWIN" = 1; then
18126             system_zlib_h_ok="yes"
18127         else
18128                                                                                     echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
18129 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
18130 if test "${ac_cv_header_zlib_h+set}" = set; then
18131   echo $ECHO_N "(cached) $ECHO_C" >&6
18132 else
18133   if test "$cross_compiling" = yes; then
18134                       unset ac_cv_header_zlib_h
18135
18136 else
18137   cat >conftest.$ac_ext <<_ACEOF
18138 #line $LINENO "configure"
18139 /* confdefs.h.  */
18140 _ACEOF
18141 cat confdefs.h >>conftest.$ac_ext
18142 cat >>conftest.$ac_ext <<_ACEOF
18143 /* end confdefs.h.  */
18144
18145                         #include <zlib.h>
18146                         #include <stdio.h>
18147
18148                         int main()
18149                         {
18150                             FILE *f=fopen("conftestval", "w");
18151                             if (!f) exit(1);
18152                             fprintf(f, "%s",
18153                                     ZLIB_VERSION[0] == '1' &&
18154                                     (ZLIB_VERSION[2] > '1' ||
18155                                     (ZLIB_VERSION[2] == '1' &&
18156                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
18157                             exit(0);
18158                         }
18159
18160 _ACEOF
18161 rm -f conftest$ac_exeext
18162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18163   (eval $ac_link) 2>&5
18164   ac_status=$?
18165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18168   (eval $ac_try) 2>&5
18169   ac_status=$?
18170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171   (exit $ac_status); }; }; then
18172   ac_cv_header_zlib_h=`cat conftestval`
18173 else
18174   echo "$as_me: program exited with status $ac_status" >&5
18175 echo "$as_me: failed program was:" >&5
18176 sed 's/^/| /' conftest.$ac_ext >&5
18177
18178 ( exit $ac_status )
18179 ac_cv_header_zlib_h=no
18180 fi
18181 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18182 fi
18183
18184 fi
18185 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18186 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18187                                     if test "${ac_cv_header_zlib_h+set}" = set; then
18188   echo "$as_me:$LINENO: checking for zlib.h" >&5
18189 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18190 if test "${ac_cv_header_zlib_h+set}" = set; then
18191   echo $ECHO_N "(cached) $ECHO_C" >&6
18192 fi
18193 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18194 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18195 else
18196   # Is the header compilable?
18197 echo "$as_me:$LINENO: checking zlib.h usability" >&5
18198 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
18199 cat >conftest.$ac_ext <<_ACEOF
18200 #line $LINENO "configure"
18201 /* confdefs.h.  */
18202 _ACEOF
18203 cat confdefs.h >>conftest.$ac_ext
18204 cat >>conftest.$ac_ext <<_ACEOF
18205 /* end confdefs.h.  */
18206 $ac_includes_default
18207 #include <zlib.h>
18208 _ACEOF
18209 rm -f conftest.$ac_objext
18210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18211   (eval $ac_compile) 2>&5
18212   ac_status=$?
18213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214   (exit $ac_status); } &&
18215          { ac_try='test -s conftest.$ac_objext'
18216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18217   (eval $ac_try) 2>&5
18218   ac_status=$?
18219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220   (exit $ac_status); }; }; then
18221   ac_header_compiler=yes
18222 else
18223   echo "$as_me: failed program was:" >&5
18224 sed 's/^/| /' conftest.$ac_ext >&5
18225
18226 ac_header_compiler=no
18227 fi
18228 rm -f conftest.$ac_objext conftest.$ac_ext
18229 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18230 echo "${ECHO_T}$ac_header_compiler" >&6
18231
18232 # Is the header present?
18233 echo "$as_me:$LINENO: checking zlib.h presence" >&5
18234 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
18235 cat >conftest.$ac_ext <<_ACEOF
18236 #line $LINENO "configure"
18237 /* confdefs.h.  */
18238 _ACEOF
18239 cat confdefs.h >>conftest.$ac_ext
18240 cat >>conftest.$ac_ext <<_ACEOF
18241 /* end confdefs.h.  */
18242 #include <zlib.h>
18243 _ACEOF
18244 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18245   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18246   ac_status=$?
18247   grep -v '^ *+' conftest.er1 >conftest.err
18248   rm -f conftest.er1
18249   cat conftest.err >&5
18250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251   (exit $ac_status); } >/dev/null; then
18252   if test -s conftest.err; then
18253     ac_cpp_err=$ac_c_preproc_warn_flag
18254   else
18255     ac_cpp_err=
18256   fi
18257 else
18258   ac_cpp_err=yes
18259 fi
18260 if test -z "$ac_cpp_err"; then
18261   ac_header_preproc=yes
18262 else
18263   echo "$as_me: failed program was:" >&5
18264 sed 's/^/| /' conftest.$ac_ext >&5
18265
18266   ac_header_preproc=no
18267 fi
18268 rm -f conftest.err conftest.$ac_ext
18269 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18270 echo "${ECHO_T}$ac_header_preproc" >&6
18271
18272 # So?  What about this header?
18273 case $ac_header_compiler:$ac_header_preproc in
18274   yes:no )
18275     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18276 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18277     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18278 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18279     (
18280       cat <<\_ASBOX
18281 ## ------------------------------------ ##
18282 ## Report this to bug-autoconf@gnu.org. ##
18283 ## ------------------------------------ ##
18284 _ASBOX
18285     ) |
18286       sed "s/^/$as_me: WARNING:     /" >&2
18287     ;;
18288   no:yes )
18289     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
18290 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
18291     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
18292 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
18293     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18294 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18295     (
18296       cat <<\_ASBOX
18297 ## ------------------------------------ ##
18298 ## Report this to bug-autoconf@gnu.org. ##
18299 ## ------------------------------------ ##
18300 _ASBOX
18301     ) |
18302       sed "s/^/$as_me: WARNING:     /" >&2
18303     ;;
18304 esac
18305 echo "$as_me:$LINENO: checking for zlib.h" >&5
18306 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18307 if test "${ac_cv_header_zlib_h+set}" = set; then
18308   echo $ECHO_N "(cached) $ECHO_C" >&6
18309 else
18310   ac_cv_header_zlib_h=$ac_header_preproc
18311 fi
18312 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18313 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18314
18315 fi
18316
18317
18318
18319             system_zlib_h_ok=$ac_cv_header_zlib_h
18320         fi
18321
18322         if test "$system_zlib_h_ok" = "yes"; then
18323             echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18324 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18325 if test "${ac_cv_lib_z_deflate+set}" = set; then
18326   echo $ECHO_N "(cached) $ECHO_C" >&6
18327 else
18328   ac_check_lib_save_LIBS=$LIBS
18329 LIBS="-lz  $LIBS"
18330 cat >conftest.$ac_ext <<_ACEOF
18331 #line $LINENO "configure"
18332 /* confdefs.h.  */
18333 _ACEOF
18334 cat confdefs.h >>conftest.$ac_ext
18335 cat >>conftest.$ac_ext <<_ACEOF
18336 /* end confdefs.h.  */
18337
18338 /* Override any gcc2 internal prototype to avoid an error.  */
18339 #ifdef __cplusplus
18340 extern "C"
18341 #endif
18342 /* We use char because int might match the return type of a gcc2
18343    builtin and then its argument prototype would still apply.  */
18344 char deflate ();
18345 int
18346 main ()
18347 {
18348 deflate ();
18349   ;
18350   return 0;
18351 }
18352 _ACEOF
18353 rm -f conftest.$ac_objext conftest$ac_exeext
18354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18355   (eval $ac_link) 2>&5
18356   ac_status=$?
18357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358   (exit $ac_status); } &&
18359          { ac_try='test -s conftest$ac_exeext'
18360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18361   (eval $ac_try) 2>&5
18362   ac_status=$?
18363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364   (exit $ac_status); }; }; then
18365   ac_cv_lib_z_deflate=yes
18366 else
18367   echo "$as_me: failed program was:" >&5
18368 sed 's/^/| /' conftest.$ac_ext >&5
18369
18370 ac_cv_lib_z_deflate=no
18371 fi
18372 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18373 LIBS=$ac_check_lib_save_LIBS
18374 fi
18375 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18376 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18377 if test $ac_cv_lib_z_deflate = yes; then
18378   ZLIB_LINK=" -lz"
18379 fi
18380
18381         fi
18382
18383         if test "x$ZLIB_LINK" = "x" ; then
18384             if test "$wxUSE_ZLIB" = "sys" ; then
18385                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
18386 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
18387    { (exit 1); exit 1; }; }
18388             else
18389                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
18390 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
18391                 wxUSE_ZLIB=builtin
18392             fi
18393         else
18394                         wxUSE_ZLIB=sys
18395         fi
18396     fi
18397
18398     if test "$wxUSE_ZLIB" = "builtin" ; then
18399         ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
18400     fi
18401 fi
18402
18403
18404 PNG_INCLUDE=
18405 PNG_LINK=
18406 if test "$wxUSE_LIBPNG" != "no" ; then
18407     cat >>confdefs.h <<\_ACEOF
18408 #define wxUSE_LIBPNG 1
18409 _ACEOF
18410
18411
18412     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
18413         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
18414 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
18415         wxUSE_LIBPNG=sys
18416     fi
18417
18418                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
18419         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
18420 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
18421         wxUSE_LIBPNG=builtin
18422     fi
18423
18424     if test "$wxUSE_MGL" != 1 ; then
18425                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
18426                                     echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
18427 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
18428 if test "${ac_cv_header_png_h+set}" = set; then
18429   echo $ECHO_N "(cached) $ECHO_C" >&6
18430 else
18431   if test "$cross_compiling" = yes; then
18432                       unset ac_cv_header_png_h
18433
18434 else
18435   cat >conftest.$ac_ext <<_ACEOF
18436 #line $LINENO "configure"
18437 /* confdefs.h.  */
18438 _ACEOF
18439 cat confdefs.h >>conftest.$ac_ext
18440 cat >>conftest.$ac_ext <<_ACEOF
18441 /* end confdefs.h.  */
18442
18443                         #include <png.h>
18444                         #include <stdio.h>
18445
18446                         int main()
18447                         {
18448                             FILE *f=fopen("conftestval", "w");
18449                             if (!f) exit(1);
18450                             fprintf(f, "%s",
18451                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
18452                             exit(0);
18453                         }
18454
18455 _ACEOF
18456 rm -f conftest$ac_exeext
18457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18458   (eval $ac_link) 2>&5
18459   ac_status=$?
18460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18463   (eval $ac_try) 2>&5
18464   ac_status=$?
18465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466   (exit $ac_status); }; }; then
18467   ac_cv_header_png_h=`cat conftestval`
18468 else
18469   echo "$as_me: program exited with status $ac_status" >&5
18470 echo "$as_me: failed program was:" >&5
18471 sed 's/^/| /' conftest.$ac_ext >&5
18472
18473 ( exit $ac_status )
18474 ac_cv_header_png_h=no
18475 fi
18476 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18477 fi
18478
18479 fi
18480 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18481 echo "${ECHO_T}$ac_cv_header_png_h" >&6
18482             if test "${ac_cv_header_png_h+set}" = set; then
18483   echo "$as_me:$LINENO: checking for png.h" >&5
18484 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18485 if test "${ac_cv_header_png_h+set}" = set; then
18486   echo $ECHO_N "(cached) $ECHO_C" >&6
18487 fi
18488 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18489 echo "${ECHO_T}$ac_cv_header_png_h" >&6
18490 else
18491   # Is the header compilable?
18492 echo "$as_me:$LINENO: checking png.h usability" >&5
18493 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
18494 cat >conftest.$ac_ext <<_ACEOF
18495 #line $LINENO "configure"
18496 /* confdefs.h.  */
18497 _ACEOF
18498 cat confdefs.h >>conftest.$ac_ext
18499 cat >>conftest.$ac_ext <<_ACEOF
18500 /* end confdefs.h.  */
18501 $ac_includes_default
18502 #include <png.h>
18503 _ACEOF
18504 rm -f conftest.$ac_objext
18505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18506   (eval $ac_compile) 2>&5
18507   ac_status=$?
18508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509   (exit $ac_status); } &&
18510          { ac_try='test -s conftest.$ac_objext'
18511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18512   (eval $ac_try) 2>&5
18513   ac_status=$?
18514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515   (exit $ac_status); }; }; then
18516   ac_header_compiler=yes
18517 else
18518   echo "$as_me: failed program was:" >&5
18519 sed 's/^/| /' conftest.$ac_ext >&5
18520
18521 ac_header_compiler=no
18522 fi
18523 rm -f conftest.$ac_objext conftest.$ac_ext
18524 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18525 echo "${ECHO_T}$ac_header_compiler" >&6
18526
18527 # Is the header present?
18528 echo "$as_me:$LINENO: checking png.h presence" >&5
18529 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
18530 cat >conftest.$ac_ext <<_ACEOF
18531 #line $LINENO "configure"
18532 /* confdefs.h.  */
18533 _ACEOF
18534 cat confdefs.h >>conftest.$ac_ext
18535 cat >>conftest.$ac_ext <<_ACEOF
18536 /* end confdefs.h.  */
18537 #include <png.h>
18538 _ACEOF
18539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18540   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18541   ac_status=$?
18542   grep -v '^ *+' conftest.er1 >conftest.err
18543   rm -f conftest.er1
18544   cat conftest.err >&5
18545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546   (exit $ac_status); } >/dev/null; then
18547   if test -s conftest.err; then
18548     ac_cpp_err=$ac_c_preproc_warn_flag
18549   else
18550     ac_cpp_err=
18551   fi
18552 else
18553   ac_cpp_err=yes
18554 fi
18555 if test -z "$ac_cpp_err"; then
18556   ac_header_preproc=yes
18557 else
18558   echo "$as_me: failed program was:" >&5
18559 sed 's/^/| /' conftest.$ac_ext >&5
18560
18561   ac_header_preproc=no
18562 fi
18563 rm -f conftest.err conftest.$ac_ext
18564 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18565 echo "${ECHO_T}$ac_header_preproc" >&6
18566
18567 # So?  What about this header?
18568 case $ac_header_compiler:$ac_header_preproc in
18569   yes:no )
18570     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
18571 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18572     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18573 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18574     (
18575       cat <<\_ASBOX
18576 ## ------------------------------------ ##
18577 ## Report this to bug-autoconf@gnu.org. ##
18578 ## ------------------------------------ ##
18579 _ASBOX
18580     ) |
18581       sed "s/^/$as_me: WARNING:     /" >&2
18582     ;;
18583   no:yes )
18584     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
18585 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
18586     { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
18587 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
18588     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18589 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18590     (
18591       cat <<\_ASBOX
18592 ## ------------------------------------ ##
18593 ## Report this to bug-autoconf@gnu.org. ##
18594 ## ------------------------------------ ##
18595 _ASBOX
18596     ) |
18597       sed "s/^/$as_me: WARNING:     /" >&2
18598     ;;
18599 esac
18600 echo "$as_me:$LINENO: checking for png.h" >&5
18601 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18602 if test "${ac_cv_header_png_h+set}" = set; then
18603   echo $ECHO_N "(cached) $ECHO_C" >&6
18604 else
18605   ac_cv_header_png_h=$ac_header_preproc
18606 fi
18607 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18608 echo "${ECHO_T}$ac_cv_header_png_h" >&6
18609
18610 fi
18611
18612
18613
18614             if test "$ac_cv_header_png_h" = "yes"; then
18615                 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
18616 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
18617 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
18618   echo $ECHO_N "(cached) $ECHO_C" >&6
18619 else
18620   ac_check_lib_save_LIBS=$LIBS
18621 LIBS="-lpng -lz -lm $LIBS"
18622 cat >conftest.$ac_ext <<_ACEOF
18623 #line $LINENO "configure"
18624 /* confdefs.h.  */
18625 _ACEOF
18626 cat confdefs.h >>conftest.$ac_ext
18627 cat >>conftest.$ac_ext <<_ACEOF
18628 /* end confdefs.h.  */
18629
18630 /* Override any gcc2 internal prototype to avoid an error.  */
18631 #ifdef __cplusplus
18632 extern "C"
18633 #endif
18634 /* We use char because int might match the return type of a gcc2
18635    builtin and then its argument prototype would still apply.  */
18636 char png_check_sig ();
18637 int
18638 main ()
18639 {
18640 png_check_sig ();
18641   ;
18642   return 0;
18643 }
18644 _ACEOF
18645 rm -f conftest.$ac_objext conftest$ac_exeext
18646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18647   (eval $ac_link) 2>&5
18648   ac_status=$?
18649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650   (exit $ac_status); } &&
18651          { ac_try='test -s conftest$ac_exeext'
18652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18653   (eval $ac_try) 2>&5
18654   ac_status=$?
18655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656   (exit $ac_status); }; }; then
18657   ac_cv_lib_png_png_check_sig=yes
18658 else
18659   echo "$as_me: failed program was:" >&5
18660 sed 's/^/| /' conftest.$ac_ext >&5
18661
18662 ac_cv_lib_png_png_check_sig=no
18663 fi
18664 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18665 LIBS=$ac_check_lib_save_LIBS
18666 fi
18667 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
18668 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
18669 if test $ac_cv_lib_png_png_check_sig = yes; then
18670   PNG_LINK=" -lpng"
18671 fi
18672
18673             fi
18674
18675             if test "x$PNG_LINK" = "x" ; then
18676                 if test "$wxUSE_LIBPNG" = "sys" ; then
18677                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
18678 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
18679    { (exit 1); exit 1; }; }
18680                 else
18681                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
18682 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
18683                     wxUSE_LIBPNG=builtin
18684                 fi
18685             else
18686                                 wxUSE_LIBPNG=sys
18687             fi
18688         fi
18689     fi
18690
18691     if test "$wxUSE_LIBPNG" = "builtin" ; then
18692         PNG_INCLUDE="-I\${top_srcdir}/src/png"
18693     fi
18694
18695     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
18696 fi
18697
18698
18699 JPEG_INCLUDE=
18700 JPEG_LINK=
18701 if test "$wxUSE_LIBJPEG" != "no" ; then
18702     cat >>confdefs.h <<\_ACEOF
18703 #define wxUSE_LIBJPEG 1
18704 _ACEOF
18705
18706
18707     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
18708         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
18709 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
18710         wxUSE_LIBJPEG=sys
18711     fi
18712
18713     if test "$wxUSE_MGL" != 1 ; then
18714                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
18715                                                 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
18716 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
18717             if test "${ac_cv_header_jpeglib_h+set}" = set; then
18718   echo $ECHO_N "(cached) $ECHO_C" >&6
18719 else
18720   cat >conftest.$ac_ext <<_ACEOF
18721 #line $LINENO "configure"
18722 /* confdefs.h.  */
18723 _ACEOF
18724 cat confdefs.h >>conftest.$ac_ext
18725 cat >>conftest.$ac_ext <<_ACEOF
18726 /* end confdefs.h.  */
18727
18728                         #undef HAVE_STDLIB_H
18729                         #include <stdio.h>
18730                         #include <jpeglib.h>
18731
18732 int
18733 main ()
18734 {
18735
18736
18737   ;
18738   return 0;
18739 }
18740 _ACEOF
18741 rm -f conftest.$ac_objext
18742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18743   (eval $ac_compile) 2>&5
18744   ac_status=$?
18745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746   (exit $ac_status); } &&
18747          { ac_try='test -s conftest.$ac_objext'
18748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18749   (eval $ac_try) 2>&5
18750   ac_status=$?
18751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752   (exit $ac_status); }; }; then
18753   ac_cv_header_jpeglib_h=yes
18754 else
18755   echo "$as_me: failed program was:" >&5
18756 sed 's/^/| /' conftest.$ac_ext >&5
18757
18758 ac_cv_header_jpeglib_h=no
18759
18760 fi
18761 rm -f conftest.$ac_objext conftest.$ac_ext
18762
18763 fi
18764
18765             echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
18766 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
18767
18768             if test "$ac_cv_header_jpeglib_h" = "yes"; then
18769                 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
18770 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
18771 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
18772   echo $ECHO_N "(cached) $ECHO_C" >&6
18773 else
18774   ac_check_lib_save_LIBS=$LIBS
18775 LIBS="-ljpeg  $LIBS"
18776 cat >conftest.$ac_ext <<_ACEOF
18777 #line $LINENO "configure"
18778 /* confdefs.h.  */
18779 _ACEOF
18780 cat confdefs.h >>conftest.$ac_ext
18781 cat >>conftest.$ac_ext <<_ACEOF
18782 /* end confdefs.h.  */
18783
18784 /* Override any gcc2 internal prototype to avoid an error.  */
18785 #ifdef __cplusplus
18786 extern "C"
18787 #endif
18788 /* We use char because int might match the return type of a gcc2
18789    builtin and then its argument prototype would still apply.  */
18790 char jpeg_read_header ();
18791 int
18792 main ()
18793 {
18794 jpeg_read_header ();
18795   ;
18796   return 0;
18797 }
18798 _ACEOF
18799 rm -f conftest.$ac_objext conftest$ac_exeext
18800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18801   (eval $ac_link) 2>&5
18802   ac_status=$?
18803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804   (exit $ac_status); } &&
18805          { ac_try='test -s conftest$ac_exeext'
18806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18807   (eval $ac_try) 2>&5
18808   ac_status=$?
18809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810   (exit $ac_status); }; }; then
18811   ac_cv_lib_jpeg_jpeg_read_header=yes
18812 else
18813   echo "$as_me: failed program was:" >&5
18814 sed 's/^/| /' conftest.$ac_ext >&5
18815
18816 ac_cv_lib_jpeg_jpeg_read_header=no
18817 fi
18818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18819 LIBS=$ac_check_lib_save_LIBS
18820 fi
18821 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
18822 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
18823 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
18824   JPEG_LINK=" -ljpeg"
18825 fi
18826
18827             fi
18828
18829             if test "x$JPEG_LINK" = "x" ; then
18830                 if test "$wxUSE_LIBJPEG" = "sys" ; then
18831                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
18832 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
18833    { (exit 1); exit 1; }; }
18834                 else
18835                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
18836 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
18837                     wxUSE_LIBJPEG=builtin
18838                 fi
18839             else
18840                                 wxUSE_LIBJPEG=sys
18841             fi
18842         fi
18843     fi
18844
18845     if test "$wxUSE_LIBJPEG" = "builtin" ; then
18846         JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
18847     fi
18848 fi
18849
18850
18851 TIFF_INCLUDE=
18852 TIFF_LINK=
18853 TIFF_PREREQ_LINKS=-lm
18854 if test "$wxUSE_LIBTIFF" != "no" ; then
18855     cat >>confdefs.h <<\_ACEOF
18856 #define wxUSE_LIBTIFF 1
18857 _ACEOF
18858
18859
18860     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
18861                         if test "$wxUSE_LIBJPEG" = "sys"; then
18862             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
18863         fi
18864         if test "$wxUSE_ZLIB" = "sys"; then
18865             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
18866         fi
18867         if test "${ac_cv_header_tiffio_h+set}" = set; then
18868   echo "$as_me:$LINENO: checking for tiffio.h" >&5
18869 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
18870 if test "${ac_cv_header_tiffio_h+set}" = set; then
18871   echo $ECHO_N "(cached) $ECHO_C" >&6
18872 fi
18873 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
18874 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
18875 else
18876   # Is the header compilable?
18877 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
18878 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
18879 cat >conftest.$ac_ext <<_ACEOF
18880 #line $LINENO "configure"
18881 /* confdefs.h.  */
18882 _ACEOF
18883 cat confdefs.h >>conftest.$ac_ext
18884 cat >>conftest.$ac_ext <<_ACEOF
18885 /* end confdefs.h.  */
18886 $ac_includes_default
18887 #include <tiffio.h>
18888 _ACEOF
18889 rm -f conftest.$ac_objext
18890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18891   (eval $ac_compile) 2>&5
18892   ac_status=$?
18893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894   (exit $ac_status); } &&
18895          { ac_try='test -s conftest.$ac_objext'
18896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18897   (eval $ac_try) 2>&5
18898   ac_status=$?
18899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900   (exit $ac_status); }; }; then
18901   ac_header_compiler=yes
18902 else
18903   echo "$as_me: failed program was:" >&5
18904 sed 's/^/| /' conftest.$ac_ext >&5
18905
18906 ac_header_compiler=no
18907 fi
18908 rm -f conftest.$ac_objext conftest.$ac_ext
18909 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18910 echo "${ECHO_T}$ac_header_compiler" >&6
18911
18912 # Is the header present?
18913 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
18914 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
18915 cat >conftest.$ac_ext <<_ACEOF
18916 #line $LINENO "configure"
18917 /* confdefs.h.  */
18918 _ACEOF
18919 cat confdefs.h >>conftest.$ac_ext
18920 cat >>conftest.$ac_ext <<_ACEOF
18921 /* end confdefs.h.  */
18922 #include <tiffio.h>
18923 _ACEOF
18924 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18925   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18926   ac_status=$?
18927   grep -v '^ *+' conftest.er1 >conftest.err
18928   rm -f conftest.er1
18929   cat conftest.err >&5
18930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931   (exit $ac_status); } >/dev/null; then
18932   if test -s conftest.err; then
18933     ac_cpp_err=$ac_c_preproc_warn_flag
18934   else
18935     ac_cpp_err=
18936   fi
18937 else
18938   ac_cpp_err=yes
18939 fi
18940 if test -z "$ac_cpp_err"; then
18941   ac_header_preproc=yes
18942 else
18943   echo "$as_me: failed program was:" >&5
18944 sed 's/^/| /' conftest.$ac_ext >&5
18945
18946   ac_header_preproc=no
18947 fi
18948 rm -f conftest.err conftest.$ac_ext
18949 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18950 echo "${ECHO_T}$ac_header_preproc" >&6
18951
18952 # So?  What about this header?
18953 case $ac_header_compiler:$ac_header_preproc in
18954   yes:no )
18955     { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
18956 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18957     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
18958 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
18959     (
18960       cat <<\_ASBOX
18961 ## ------------------------------------ ##
18962 ## Report this to bug-autoconf@gnu.org. ##
18963 ## ------------------------------------ ##
18964 _ASBOX
18965     ) |
18966       sed "s/^/$as_me: WARNING:     /" >&2
18967     ;;
18968   no:yes )
18969     { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
18970 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
18971     { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
18972 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
18973     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
18974 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
18975     (
18976       cat <<\_ASBOX
18977 ## ------------------------------------ ##
18978 ## Report this to bug-autoconf@gnu.org. ##
18979 ## ------------------------------------ ##
18980 _ASBOX
18981     ) |
18982       sed "s/^/$as_me: WARNING:     /" >&2
18983     ;;
18984 esac
18985 echo "$as_me:$LINENO: checking for tiffio.h" >&5
18986 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
18987 if test "${ac_cv_header_tiffio_h+set}" = set; then
18988   echo $ECHO_N "(cached) $ECHO_C" >&6
18989 else
18990   ac_cv_header_tiffio_h=$ac_header_preproc
18991 fi
18992 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
18993 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
18994
18995 fi
18996 if test $ac_cv_header_tiffio_h = yes; then
18997
18998                             echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
18999 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
19000 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
19001   echo $ECHO_N "(cached) $ECHO_C" >&6
19002 else
19003   ac_check_lib_save_LIBS=$LIBS
19004 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
19005 cat >conftest.$ac_ext <<_ACEOF
19006 #line $LINENO "configure"
19007 /* confdefs.h.  */
19008 _ACEOF
19009 cat confdefs.h >>conftest.$ac_ext
19010 cat >>conftest.$ac_ext <<_ACEOF
19011 /* end confdefs.h.  */
19012
19013 /* Override any gcc2 internal prototype to avoid an error.  */
19014 #ifdef __cplusplus
19015 extern "C"
19016 #endif
19017 /* We use char because int might match the return type of a gcc2
19018    builtin and then its argument prototype would still apply.  */
19019 char TIFFError ();
19020 int
19021 main ()
19022 {
19023 TIFFError ();
19024   ;
19025   return 0;
19026 }
19027 _ACEOF
19028 rm -f conftest.$ac_objext conftest$ac_exeext
19029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19030   (eval $ac_link) 2>&5
19031   ac_status=$?
19032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033   (exit $ac_status); } &&
19034          { ac_try='test -s conftest$ac_exeext'
19035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19036   (eval $ac_try) 2>&5
19037   ac_status=$?
19038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039   (exit $ac_status); }; }; then
19040   ac_cv_lib_tiff_TIFFError=yes
19041 else
19042   echo "$as_me: failed program was:" >&5
19043 sed 's/^/| /' conftest.$ac_ext >&5
19044
19045 ac_cv_lib_tiff_TIFFError=no
19046 fi
19047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19048 LIBS=$ac_check_lib_save_LIBS
19049 fi
19050 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
19051 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
19052 if test $ac_cv_lib_tiff_TIFFError = yes; then
19053   TIFF_LINK=" -ltiff"
19054 fi
19055
19056
19057
19058 fi
19059
19060
19061
19062         if test "x$TIFF_LINK" = "x" ; then
19063             if test "$wxUSE_LIBTIFF" = "sys" ; then
19064                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
19065 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
19066    { (exit 1); exit 1; }; }
19067             else
19068                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
19069 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
19070                 wxUSE_LIBTIFF=builtin
19071             fi
19072         else
19073                         wxUSE_LIBTIFF=sys
19074         fi
19075     fi
19076
19077     if test "$wxUSE_LIBTIFF" = "builtin" ; then
19078         TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
19079     fi
19080 fi
19081
19082
19083 if test "$wxUSE_EXPAT" != "no"; then
19084     wxUSE_XML=yes
19085     cat >>confdefs.h <<\_ACEOF
19086 #define wxUSE_EXPAT 1
19087 _ACEOF
19088
19089     cat >>confdefs.h <<\_ACEOF
19090 #define wxUSE_XML 1
19091 _ACEOF
19092
19093
19094     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
19095         if test "${ac_cv_header_expat_h+set}" = set; then
19096   echo "$as_me:$LINENO: checking for expat.h" >&5
19097 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19098 if test "${ac_cv_header_expat_h+set}" = set; then
19099   echo $ECHO_N "(cached) $ECHO_C" >&6
19100 fi
19101 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19102 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19103 else
19104   # Is the header compilable?
19105 echo "$as_me:$LINENO: checking expat.h usability" >&5
19106 echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
19107 cat >conftest.$ac_ext <<_ACEOF
19108 #line $LINENO "configure"
19109 /* confdefs.h.  */
19110 _ACEOF
19111 cat confdefs.h >>conftest.$ac_ext
19112 cat >>conftest.$ac_ext <<_ACEOF
19113 /* end confdefs.h.  */
19114 $ac_includes_default
19115 #include <expat.h>
19116 _ACEOF
19117 rm -f conftest.$ac_objext
19118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19119   (eval $ac_compile) 2>&5
19120   ac_status=$?
19121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122   (exit $ac_status); } &&
19123          { ac_try='test -s conftest.$ac_objext'
19124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19125   (eval $ac_try) 2>&5
19126   ac_status=$?
19127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128   (exit $ac_status); }; }; then
19129   ac_header_compiler=yes
19130 else
19131   echo "$as_me: failed program was:" >&5
19132 sed 's/^/| /' conftest.$ac_ext >&5
19133
19134 ac_header_compiler=no
19135 fi
19136 rm -f conftest.$ac_objext conftest.$ac_ext
19137 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19138 echo "${ECHO_T}$ac_header_compiler" >&6
19139
19140 # Is the header present?
19141 echo "$as_me:$LINENO: checking expat.h presence" >&5
19142 echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
19143 cat >conftest.$ac_ext <<_ACEOF
19144 #line $LINENO "configure"
19145 /* confdefs.h.  */
19146 _ACEOF
19147 cat confdefs.h >>conftest.$ac_ext
19148 cat >>conftest.$ac_ext <<_ACEOF
19149 /* end confdefs.h.  */
19150 #include <expat.h>
19151 _ACEOF
19152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19153   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19154   ac_status=$?
19155   grep -v '^ *+' conftest.er1 >conftest.err
19156   rm -f conftest.er1
19157   cat conftest.err >&5
19158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159   (exit $ac_status); } >/dev/null; then
19160   if test -s conftest.err; then
19161     ac_cpp_err=$ac_c_preproc_warn_flag
19162   else
19163     ac_cpp_err=
19164   fi
19165 else
19166   ac_cpp_err=yes
19167 fi
19168 if test -z "$ac_cpp_err"; then
19169   ac_header_preproc=yes
19170 else
19171   echo "$as_me: failed program was:" >&5
19172 sed 's/^/| /' conftest.$ac_ext >&5
19173
19174   ac_header_preproc=no
19175 fi
19176 rm -f conftest.err conftest.$ac_ext
19177 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19178 echo "${ECHO_T}$ac_header_preproc" >&6
19179
19180 # So?  What about this header?
19181 case $ac_header_compiler:$ac_header_preproc in
19182   yes:no )
19183     { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
19184 echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19185     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19186 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19187     (
19188       cat <<\_ASBOX
19189 ## ------------------------------------ ##
19190 ## Report this to bug-autoconf@gnu.org. ##
19191 ## ------------------------------------ ##
19192 _ASBOX
19193     ) |
19194       sed "s/^/$as_me: WARNING:     /" >&2
19195     ;;
19196   no:yes )
19197     { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
19198 echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
19199     { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
19200 echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
19201     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19202 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19203     (
19204       cat <<\_ASBOX
19205 ## ------------------------------------ ##
19206 ## Report this to bug-autoconf@gnu.org. ##
19207 ## ------------------------------------ ##
19208 _ASBOX
19209     ) |
19210       sed "s/^/$as_me: WARNING:     /" >&2
19211     ;;
19212 esac
19213 echo "$as_me:$LINENO: checking for expat.h" >&5
19214 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19215 if test "${ac_cv_header_expat_h+set}" = set; then
19216   echo $ECHO_N "(cached) $ECHO_C" >&6
19217 else
19218   ac_cv_header_expat_h=$ac_header_preproc
19219 fi
19220 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19221 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19222
19223 fi
19224 if test $ac_cv_header_expat_h = yes; then
19225   found_expat_h=1
19226 fi
19227
19228
19229         if test "x$found_expat_h" = "x1"; then
19230                         echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
19231 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
19232 if test "${wx_cv_expat_is_not_broken+set}" = set; then
19233   echo $ECHO_N "(cached) $ECHO_C" >&6
19234 else
19235
19236
19237
19238                 ac_ext=cc
19239 ac_cpp='$CXXCPP $CPPFLAGS'
19240 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19241 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19242 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19243
19244                 cat >conftest.$ac_ext <<_ACEOF
19245 #line $LINENO "configure"
19246 /* confdefs.h.  */
19247 _ACEOF
19248 cat confdefs.h >>conftest.$ac_ext
19249 cat >>conftest.$ac_ext <<_ACEOF
19250 /* end confdefs.h.  */
19251 #include <expat.h>
19252 int
19253 main ()
19254 {
19255
19256   ;
19257   return 0;
19258 }
19259 _ACEOF
19260 rm -f conftest.$ac_objext
19261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19262   (eval $ac_compile) 2>&5
19263   ac_status=$?
19264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265   (exit $ac_status); } &&
19266          { ac_try='test -s conftest.$ac_objext'
19267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19268   (eval $ac_try) 2>&5
19269   ac_status=$?
19270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271   (exit $ac_status); }; }; then
19272   wx_cv_expat_is_not_broken=yes
19273 else
19274   echo "$as_me: failed program was:" >&5
19275 sed 's/^/| /' conftest.$ac_ext >&5
19276
19277 wx_cv_expat_is_not_broken=no
19278
19279 fi
19280 rm -f conftest.$ac_objext conftest.$ac_ext
19281                 ac_ext=c
19282 ac_cpp='$CPP $CPPFLAGS'
19283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19286
19287
19288
19289 fi
19290 echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
19291 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
19292             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
19293                 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
19294 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
19295 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
19296   echo $ECHO_N "(cached) $ECHO_C" >&6
19297 else
19298   ac_check_lib_save_LIBS=$LIBS
19299 LIBS="-lexpat  $LIBS"
19300 cat >conftest.$ac_ext <<_ACEOF
19301 #line $LINENO "configure"
19302 /* confdefs.h.  */
19303 _ACEOF
19304 cat confdefs.h >>conftest.$ac_ext
19305 cat >>conftest.$ac_ext <<_ACEOF
19306 /* end confdefs.h.  */
19307
19308 /* Override any gcc2 internal prototype to avoid an error.  */
19309 #ifdef __cplusplus
19310 extern "C"
19311 #endif
19312 /* We use char because int might match the return type of a gcc2
19313    builtin and then its argument prototype would still apply.  */
19314 char XML_ParserCreate ();
19315 int
19316 main ()
19317 {
19318 XML_ParserCreate ();
19319   ;
19320   return 0;
19321 }
19322 _ACEOF
19323 rm -f conftest.$ac_objext conftest$ac_exeext
19324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19325   (eval $ac_link) 2>&5
19326   ac_status=$?
19327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328   (exit $ac_status); } &&
19329          { ac_try='test -s conftest$ac_exeext'
19330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19331   (eval $ac_try) 2>&5
19332   ac_status=$?
19333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334   (exit $ac_status); }; }; then
19335   ac_cv_lib_expat_XML_ParserCreate=yes
19336 else
19337   echo "$as_me: failed program was:" >&5
19338 sed 's/^/| /' conftest.$ac_ext >&5
19339
19340 ac_cv_lib_expat_XML_ParserCreate=no
19341 fi
19342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19343 LIBS=$ac_check_lib_save_LIBS
19344 fi
19345 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
19346 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
19347 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
19348   EXPAT_LINK=" -lexpat"
19349 fi
19350
19351             fi
19352         fi
19353         if test "x$EXPAT_LINK" = "x" ; then
19354             if test "$wxUSE_EXPAT" = "sys" ; then
19355                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
19356 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
19357    { (exit 1); exit 1; }; }
19358             else
19359                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
19360 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
19361                 wxUSE_EXPAT=builtin
19362             fi
19363         else
19364                         wxUSE_EXPAT=sys
19365         fi
19366     fi
19367     if test "$wxUSE_EXPAT" = "builtin" ; then
19368
19369
19370 subdirs="$subdirs src/expat"
19371
19372     fi
19373 fi
19374
19375
19376
19377 AFMINSTALL=
19378 WIN32INSTALL=
19379
19380 TOOLKIT=
19381 TOOLKIT_INCLUDE=
19382 WIDGET_SET=
19383
19384 if test "$USE_WIN32" = 1 ; then
19385
19386 for ac_header in w32api.h
19387 do
19388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19390   echo "$as_me:$LINENO: checking for $ac_header" >&5
19391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19393   echo $ECHO_N "(cached) $ECHO_C" >&6
19394 fi
19395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19396 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19397 else
19398   # Is the header compilable?
19399 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19400 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19401 cat >conftest.$ac_ext <<_ACEOF
19402 #line $LINENO "configure"
19403 /* confdefs.h.  */
19404 _ACEOF
19405 cat confdefs.h >>conftest.$ac_ext
19406 cat >>conftest.$ac_ext <<_ACEOF
19407 /* end confdefs.h.  */
19408 $ac_includes_default
19409 #include <$ac_header>
19410 _ACEOF
19411 rm -f conftest.$ac_objext
19412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19413   (eval $ac_compile) 2>&5
19414   ac_status=$?
19415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416   (exit $ac_status); } &&
19417          { ac_try='test -s conftest.$ac_objext'
19418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19419   (eval $ac_try) 2>&5
19420   ac_status=$?
19421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422   (exit $ac_status); }; }; then
19423   ac_header_compiler=yes
19424 else
19425   echo "$as_me: failed program was:" >&5
19426 sed 's/^/| /' conftest.$ac_ext >&5
19427
19428 ac_header_compiler=no
19429 fi
19430 rm -f conftest.$ac_objext conftest.$ac_ext
19431 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19432 echo "${ECHO_T}$ac_header_compiler" >&6
19433
19434 # Is the header present?
19435 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19437 cat >conftest.$ac_ext <<_ACEOF
19438 #line $LINENO "configure"
19439 /* confdefs.h.  */
19440 _ACEOF
19441 cat confdefs.h >>conftest.$ac_ext
19442 cat >>conftest.$ac_ext <<_ACEOF
19443 /* end confdefs.h.  */
19444 #include <$ac_header>
19445 _ACEOF
19446 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19447   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19448   ac_status=$?
19449   grep -v '^ *+' conftest.er1 >conftest.err
19450   rm -f conftest.er1
19451   cat conftest.err >&5
19452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453   (exit $ac_status); } >/dev/null; then
19454   if test -s conftest.err; then
19455     ac_cpp_err=$ac_c_preproc_warn_flag
19456   else
19457     ac_cpp_err=
19458   fi
19459 else
19460   ac_cpp_err=yes
19461 fi
19462 if test -z "$ac_cpp_err"; then
19463   ac_header_preproc=yes
19464 else
19465   echo "$as_me: failed program was:" >&5
19466 sed 's/^/| /' conftest.$ac_ext >&5
19467
19468   ac_header_preproc=no
19469 fi
19470 rm -f conftest.err conftest.$ac_ext
19471 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19472 echo "${ECHO_T}$ac_header_preproc" >&6
19473
19474 # So?  What about this header?
19475 case $ac_header_compiler:$ac_header_preproc in
19476   yes:no )
19477     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19479     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19480 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19481     (
19482       cat <<\_ASBOX
19483 ## ------------------------------------ ##
19484 ## Report this to bug-autoconf@gnu.org. ##
19485 ## ------------------------------------ ##
19486 _ASBOX
19487     ) |
19488       sed "s/^/$as_me: WARNING:     /" >&2
19489     ;;
19490   no:yes )
19491     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19492 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19493     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19494 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19495     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19496 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19497     (
19498       cat <<\_ASBOX
19499 ## ------------------------------------ ##
19500 ## Report this to bug-autoconf@gnu.org. ##
19501 ## ------------------------------------ ##
19502 _ASBOX
19503     ) |
19504       sed "s/^/$as_me: WARNING:     /" >&2
19505     ;;
19506 esac
19507 echo "$as_me:$LINENO: checking for $ac_header" >&5
19508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19510   echo $ECHO_N "(cached) $ECHO_C" >&6
19511 else
19512   eval "$as_ac_Header=$ac_header_preproc"
19513 fi
19514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19516
19517 fi
19518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19519   cat >>confdefs.h <<_ACEOF
19520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19521 _ACEOF
19522
19523 fi
19524
19525 done
19526
19527     if test "${ac_cv_header_windows_h+set}" = set; then
19528   echo "$as_me:$LINENO: checking for windows.h" >&5
19529 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19530 if test "${ac_cv_header_windows_h+set}" = set; then
19531   echo $ECHO_N "(cached) $ECHO_C" >&6
19532 fi
19533 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19534 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19535 else
19536   # Is the header compilable?
19537 echo "$as_me:$LINENO: checking windows.h usability" >&5
19538 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
19539 cat >conftest.$ac_ext <<_ACEOF
19540 #line $LINENO "configure"
19541 /* confdefs.h.  */
19542 _ACEOF
19543 cat confdefs.h >>conftest.$ac_ext
19544 cat >>conftest.$ac_ext <<_ACEOF
19545 /* end confdefs.h.  */
19546 $ac_includes_default
19547 #include <windows.h>
19548 _ACEOF
19549 rm -f conftest.$ac_objext
19550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19551   (eval $ac_compile) 2>&5
19552   ac_status=$?
19553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554   (exit $ac_status); } &&
19555          { ac_try='test -s conftest.$ac_objext'
19556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19557   (eval $ac_try) 2>&5
19558   ac_status=$?
19559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560   (exit $ac_status); }; }; then
19561   ac_header_compiler=yes
19562 else
19563   echo "$as_me: failed program was:" >&5
19564 sed 's/^/| /' conftest.$ac_ext >&5
19565
19566 ac_header_compiler=no
19567 fi
19568 rm -f conftest.$ac_objext conftest.$ac_ext
19569 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19570 echo "${ECHO_T}$ac_header_compiler" >&6
19571
19572 # Is the header present?
19573 echo "$as_me:$LINENO: checking windows.h presence" >&5
19574 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
19575 cat >conftest.$ac_ext <<_ACEOF
19576 #line $LINENO "configure"
19577 /* confdefs.h.  */
19578 _ACEOF
19579 cat confdefs.h >>conftest.$ac_ext
19580 cat >>conftest.$ac_ext <<_ACEOF
19581 /* end confdefs.h.  */
19582 #include <windows.h>
19583 _ACEOF
19584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19585   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19586   ac_status=$?
19587   grep -v '^ *+' conftest.er1 >conftest.err
19588   rm -f conftest.er1
19589   cat conftest.err >&5
19590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591   (exit $ac_status); } >/dev/null; then
19592   if test -s conftest.err; then
19593     ac_cpp_err=$ac_c_preproc_warn_flag
19594   else
19595     ac_cpp_err=
19596   fi
19597 else
19598   ac_cpp_err=yes
19599 fi
19600 if test -z "$ac_cpp_err"; then
19601   ac_header_preproc=yes
19602 else
19603   echo "$as_me: failed program was:" >&5
19604 sed 's/^/| /' conftest.$ac_ext >&5
19605
19606   ac_header_preproc=no
19607 fi
19608 rm -f conftest.err conftest.$ac_ext
19609 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19610 echo "${ECHO_T}$ac_header_preproc" >&6
19611
19612 # So?  What about this header?
19613 case $ac_header_compiler:$ac_header_preproc in
19614   yes:no )
19615     { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
19616 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19617     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19618 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19619     (
19620       cat <<\_ASBOX
19621 ## ------------------------------------ ##
19622 ## Report this to bug-autoconf@gnu.org. ##
19623 ## ------------------------------------ ##
19624 _ASBOX
19625     ) |
19626       sed "s/^/$as_me: WARNING:     /" >&2
19627     ;;
19628   no:yes )
19629     { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
19630 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
19631     { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
19632 echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
19633     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19634 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19635     (
19636       cat <<\_ASBOX
19637 ## ------------------------------------ ##
19638 ## Report this to bug-autoconf@gnu.org. ##
19639 ## ------------------------------------ ##
19640 _ASBOX
19641     ) |
19642       sed "s/^/$as_me: WARNING:     /" >&2
19643     ;;
19644 esac
19645 echo "$as_me:$LINENO: checking for windows.h" >&5
19646 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19647 if test "${ac_cv_header_windows_h+set}" = set; then
19648   echo $ECHO_N "(cached) $ECHO_C" >&6
19649 else
19650   ac_cv_header_windows_h=$ac_header_preproc
19651 fi
19652 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19653 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19654
19655 fi
19656 if test $ac_cv_header_windows_h = yes; then
19657   :
19658 else
19659
19660         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
19661 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
19662    { (exit 1); exit 1; }; }
19663
19664 fi
19665
19666
19667
19668             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
19669
19670     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
19671         LIBS="$LIBS -loleacc"
19672     fi
19673
19674     case "${host}" in
19675         *-*-cygwin* )
19676                         LIBS="$LIBS -lkernel32 -luser32"
19677             TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
19678     esac
19679
19680         if test "$wxUSE_ODBC" = "sys" ; then
19681         wxUSE_ODBC = "yes"
19682     fi
19683     if test "$wxUSE_ODBC" = "yes" ; then
19684         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
19685         cat >>confdefs.h <<\_ACEOF
19686 #define wxUSE_ODBC 1
19687 _ACEOF
19688
19689     fi
19690
19691     RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
19692     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
19693
19694         WIN32INSTALL=win32install
19695 fi
19696
19697 if test "$wxUSE_GUI" = "yes"; then
19698     USE_GUI=1
19699
19700     GUI_TK_LIBRARY=
19701
19702     WXGTK12=
19703     WXGTK127=
19704     WXGTK20=
19705
19706     if test "$wxUSE_MSW" = 1 ; then
19707         TOOLKIT=MSW
19708         GUIDIST=MSW_DIST
19709
19710                                 case "${host}" in
19711             *-*-mingw32* )
19712                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
19713         esac
19714     fi
19715
19716     if test "$wxUSE_GTK" = 1; then
19717         echo "$as_me:$LINENO: checking for GTK+ version" >&5
19718 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
19719
19720         gtk_version_cached=1
19721         if test "${wx_cv_lib_gtk+set}" = set; then
19722   echo $ECHO_N "(cached) $ECHO_C" >&6
19723 else
19724
19725                                                 gtk_version_cached=0
19726                 echo "$as_me:$LINENO: result: " >&5
19727 echo "${ECHO_T}" >&6
19728
19729                                                 GTK_MODULES=
19730                 if test "$wxUSE_THREADS" = "yes"; then
19731                     GTK_MODULES=gthread
19732                 fi
19733
19734                                                 wx_cv_lib_gtk=
19735                 if test "x$wxUSE_GTK2" = "xyes"; then
19736                     # Check whether --enable-gtktest or --disable-gtktest was given.
19737 if test "${enable_gtktest+set}" = set; then
19738   enableval="$enable_gtktest"
19739
19740 else
19741   enable_gtktest=yes
19742 fi;
19743
19744   pkg_config_args=gtk+-2.0
19745   for module in . $GTK_MODULES
19746   do
19747       case "$module" in
19748          gthread)
19749              pkg_config_args="$pkg_config_args gthread-2.0"
19750          ;;
19751       esac
19752   done
19753
19754   no_gtk=""
19755
19756   # Extract the first word of "pkg-config", so it can be a program name with args.
19757 set dummy pkg-config; ac_word=$2
19758 echo "$as_me:$LINENO: checking for $ac_word" >&5
19759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19760 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19761   echo $ECHO_N "(cached) $ECHO_C" >&6
19762 else
19763   case $PKG_CONFIG in
19764   [\\/]* | ?:[\\/]*)
19765   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19766   ;;
19767   *)
19768   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19769 for as_dir in $PATH
19770 do
19771   IFS=$as_save_IFS
19772   test -z "$as_dir" && as_dir=.
19773   for ac_exec_ext in '' $ac_executable_extensions; do
19774   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19775     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19776     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19777     break 2
19778   fi
19779 done
19780 done
19781
19782   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19783   ;;
19784 esac
19785 fi
19786 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19787
19788 if test -n "$PKG_CONFIG"; then
19789   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19790 echo "${ECHO_T}$PKG_CONFIG" >&6
19791 else
19792   echo "$as_me:$LINENO: result: no" >&5
19793 echo "${ECHO_T}no" >&6
19794 fi
19795
19796
19797   if test x$PKG_CONFIG != xno ; then
19798     if pkg-config --atleast-pkgconfig-version 0.7 ; then
19799       :
19800     else
19801       echo *** pkg-config too old; version 0.7 or better required.
19802       no_gtk=yes
19803       PKG_CONFIG=no
19804     fi
19805   else
19806     no_gtk=yes
19807   fi
19808
19809   min_gtk_version=2.0.0
19810   echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
19811 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
19812
19813   if test x$PKG_CONFIG != xno ; then
19814     ## don't try to run the test against uninstalled libtool libs
19815     if $PKG_CONFIG --uninstalled $pkg_config_args; then
19816           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
19817           enable_gtktest=no
19818     fi
19819
19820     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
19821           :
19822     else
19823           no_gtk=yes
19824     fi
19825   fi
19826
19827   if test x"$no_gtk" = x ; then
19828     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
19829     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
19830     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19831            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
19832     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19833            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
19834     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
19835            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
19836     if test "x$enable_gtktest" = "xyes" ; then
19837       ac_save_CFLAGS="$CFLAGS"
19838       ac_save_LIBS="$LIBS"
19839       CFLAGS="$CFLAGS $GTK_CFLAGS"
19840       LIBS="$GTK_LIBS $LIBS"
19841       rm -f conf.gtktest
19842       if test "$cross_compiling" = yes; then
19843   echo $ac_n "cross compiling; assumed OK... $ac_c"
19844 else
19845   cat >conftest.$ac_ext <<_ACEOF
19846 #line $LINENO "configure"
19847 /* confdefs.h.  */
19848 _ACEOF
19849 cat confdefs.h >>conftest.$ac_ext
19850 cat >>conftest.$ac_ext <<_ACEOF
19851 /* end confdefs.h.  */
19852
19853 #include <gtk/gtk.h>
19854 #include <stdio.h>
19855 #include <stdlib.h>
19856
19857 int
19858 main ()
19859 {
19860   int major, minor, micro;
19861   char *tmp_version;
19862
19863   system ("touch conf.gtktest");
19864
19865   /* HP/UX 9 (%@#!) writes to sscanf strings */
19866   tmp_version = g_strdup("$min_gtk_version");
19867   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
19868      printf("%s, bad version string\n", "$min_gtk_version");
19869      exit(1);
19870    }
19871
19872   if ((gtk_major_version != $gtk_config_major_version) ||
19873       (gtk_minor_version != $gtk_config_minor_version) ||
19874       (gtk_micro_version != $gtk_config_micro_version))
19875     {
19876       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
19877              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
19878              gtk_major_version, gtk_minor_version, gtk_micro_version);
19879       printf ("*** was found! If pkg-config was correct, then it is best\n");
19880       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
19881       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
19882       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
19883       printf("*** required on your system.\n");
19884       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
19885       printf("*** to point to the correct configuration files\n");
19886     }
19887   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
19888            (gtk_minor_version != GTK_MINOR_VERSION) ||
19889            (gtk_micro_version != GTK_MICRO_VERSION))
19890     {
19891       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
19892              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
19893       printf("*** library (version %d.%d.%d)\n",
19894              gtk_major_version, gtk_minor_version, gtk_micro_version);
19895     }
19896   else
19897     {
19898       if ((gtk_major_version > major) ||
19899         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
19900         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
19901       {
19902         return 0;
19903        }
19904      else
19905       {
19906         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
19907                gtk_major_version, gtk_minor_version, gtk_micro_version);
19908         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
19909                major, minor, micro);
19910         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
19911         printf("***\n");
19912         printf("*** If you have already installed a sufficiently new version, this error\n");
19913         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
19914         printf("*** being found. The easiest way to fix this is to remove the old version\n");
19915         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
19916         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
19917         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
19918         printf("*** so that the correct libraries are found at run-time))\n");
19919       }
19920     }
19921   return 1;
19922 }
19923
19924 _ACEOF
19925 rm -f conftest$ac_exeext
19926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19927   (eval $ac_link) 2>&5
19928   ac_status=$?
19929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19932   (eval $ac_try) 2>&5
19933   ac_status=$?
19934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935   (exit $ac_status); }; }; then
19936   :
19937 else
19938   echo "$as_me: program exited with status $ac_status" >&5
19939 echo "$as_me: failed program was:" >&5
19940 sed 's/^/| /' conftest.$ac_ext >&5
19941
19942 ( exit $ac_status )
19943 no_gtk=yes
19944 fi
19945 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19946 fi
19947        CFLAGS="$ac_save_CFLAGS"
19948        LIBS="$ac_save_LIBS"
19949      fi
19950   fi
19951   if test "x$no_gtk" = x ; then
19952      echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
19953 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
19954      wx_cv_lib_gtk=2.0
19955   else
19956      echo "$as_me:$LINENO: result: no" >&5
19957 echo "${ECHO_T}no" >&6
19958      if test "$PKG_CONFIG" = "no" ; then
19959        echo "*** A new enough version of pkg-config was not found."
19960        echo "*** See http://pkgconfig.sourceforge.net"
19961      else
19962        if test -f conf.gtktest ; then
19963         :
19964        else
19965           echo "*** Could not run GTK+ test program, checking why..."
19966           ac_save_CFLAGS="$CFLAGS"
19967           ac_save_LIBS="$LIBS"
19968           CFLAGS="$CFLAGS $GTK_CFLAGS"
19969           LIBS="$LIBS $GTK_LIBS"
19970           cat >conftest.$ac_ext <<_ACEOF
19971 #line $LINENO "configure"
19972 /* confdefs.h.  */
19973 _ACEOF
19974 cat confdefs.h >>conftest.$ac_ext
19975 cat >>conftest.$ac_ext <<_ACEOF
19976 /* end confdefs.h.  */
19977
19978 #include <gtk/gtk.h>
19979 #include <stdio.h>
19980
19981 int
19982 main ()
19983 {
19984  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
19985   ;
19986   return 0;
19987 }
19988 _ACEOF
19989 rm -f conftest.$ac_objext conftest$ac_exeext
19990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19991   (eval $ac_link) 2>&5
19992   ac_status=$?
19993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994   (exit $ac_status); } &&
19995          { ac_try='test -s conftest$ac_exeext'
19996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19997   (eval $ac_try) 2>&5
19998   ac_status=$?
19999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000   (exit $ac_status); }; }; then
20001    echo "*** The test program compiled, but did not run. This usually means"
20002           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
20003           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
20004           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20005           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
20006           echo "*** is required on your system"
20007           echo "***"
20008           echo "*** If you have an old version installed, it is best to remove it, although"
20009           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20010 else
20011   echo "$as_me: failed program was:" >&5
20012 sed 's/^/| /' conftest.$ac_ext >&5
20013
20014  echo "*** The test program failed to compile or link. See the file config.log for the"
20015           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
20016 fi
20017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20018           CFLAGS="$ac_save_CFLAGS"
20019           LIBS="$ac_save_LIBS"
20020        fi
20021      fi
20022      GTK_CFLAGS=""
20023      GTK_LIBS=""
20024      :
20025   fi
20026
20027
20028   rm -f conf.gtktest
20029
20030                 else
20031
20032 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
20033 if test "${with_gtk_prefix+set}" = set; then
20034   withval="$with_gtk_prefix"
20035   gtk_config_prefix="$withval"
20036 else
20037   gtk_config_prefix=""
20038 fi;
20039
20040 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20041 if test "${with_gtk_exec_prefix+set}" = set; then
20042   withval="$with_gtk_exec_prefix"
20043   gtk_config_exec_prefix="$withval"
20044 else
20045   gtk_config_exec_prefix=""
20046 fi;
20047 # Check whether --enable-gtktest or --disable-gtktest was given.
20048 if test "${enable_gtktest+set}" = set; then
20049   enableval="$enable_gtktest"
20050
20051 else
20052   enable_gtktest=yes
20053 fi;
20054
20055   for module in . $GTK_MODULES
20056   do
20057       case "$module" in
20058          gthread)
20059              gtk_config_args="$gtk_config_args gthread"
20060          ;;
20061       esac
20062   done
20063
20064   if test x$gtk_config_exec_prefix != x ; then
20065      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20066      if test x${GTK_CONFIG+set} != xset ; then
20067         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20068      fi
20069   fi
20070   if test x$gtk_config_prefix != x ; then
20071      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20072      if test x${GTK_CONFIG+set} != xset ; then
20073         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20074      fi
20075   fi
20076
20077   # Extract the first word of "gtk-config", so it can be a program name with args.
20078 set dummy gtk-config; ac_word=$2
20079 echo "$as_me:$LINENO: checking for $ac_word" >&5
20080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20081 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20082   echo $ECHO_N "(cached) $ECHO_C" >&6
20083 else
20084   case $GTK_CONFIG in
20085   [\\/]* | ?:[\\/]*)
20086   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20087   ;;
20088   *)
20089   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20090 for as_dir in $PATH
20091 do
20092   IFS=$as_save_IFS
20093   test -z "$as_dir" && as_dir=.
20094   for ac_exec_ext in '' $ac_executable_extensions; do
20095   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20096     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20098     break 2
20099   fi
20100 done
20101 done
20102
20103   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20104   ;;
20105 esac
20106 fi
20107 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20108
20109 if test -n "$GTK_CONFIG"; then
20110   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20111 echo "${ECHO_T}$GTK_CONFIG" >&6
20112 else
20113   echo "$as_me:$LINENO: result: no" >&5
20114 echo "${ECHO_T}no" >&6
20115 fi
20116
20117   min_gtk_version=1.2.7
20118   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20119 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
20120   no_gtk=""
20121   if test "$GTK_CONFIG" = "no" ; then
20122     no_gtk=yes
20123   else
20124     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20125     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20126     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20127            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20128     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20129            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20130     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20131            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20132     if test "x$enable_gtktest" = "xyes" ; then
20133       ac_save_CFLAGS="$CFLAGS"
20134       ac_save_LIBS="$LIBS"
20135       CFLAGS="$CFLAGS $GTK_CFLAGS"
20136       LIBS="$GTK_LIBS $LIBS"
20137       rm -f conf.gtktest
20138       if test "$cross_compiling" = yes; then
20139   echo $ac_n "cross compiling; assumed OK... $ac_c"
20140 else
20141   cat >conftest.$ac_ext <<_ACEOF
20142 #line $LINENO "configure"
20143 /* confdefs.h.  */
20144 _ACEOF
20145 cat confdefs.h >>conftest.$ac_ext
20146 cat >>conftest.$ac_ext <<_ACEOF
20147 /* end confdefs.h.  */
20148
20149 #include <gtk/gtk.h>
20150 #include <stdio.h>
20151 #include <stdlib.h>
20152
20153 int
20154 main ()
20155 {
20156   int major, minor, micro;
20157   char *tmp_version;
20158
20159   system ("touch conf.gtktest");
20160
20161   /* HP/UX 9 (%@#!) writes to sscanf strings */
20162   tmp_version = g_strdup("$min_gtk_version");
20163   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20164      printf("%s, bad version string\n", "$min_gtk_version");
20165      exit(1);
20166    }
20167
20168   if ((gtk_major_version != $gtk_config_major_version) ||
20169       (gtk_minor_version != $gtk_config_minor_version) ||
20170       (gtk_micro_version != $gtk_config_micro_version))
20171     {
20172       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
20173              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20174              gtk_major_version, gtk_minor_version, gtk_micro_version);
20175       printf ("*** was found! If gtk-config was correct, then it is best\n");
20176       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20177       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20178       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20179       printf("*** required on your system.\n");
20180       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20181       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20182       printf("*** before re-running configure\n");
20183     }
20184 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20185   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20186            (gtk_minor_version != GTK_MINOR_VERSION) ||
20187            (gtk_micro_version != GTK_MICRO_VERSION))
20188     {
20189       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20190              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20191       printf("*** library (version %d.%d.%d)\n",
20192              gtk_major_version, gtk_minor_version, gtk_micro_version);
20193     }
20194 #endif /* defined (GTK_MAJOR_VERSION) ... */
20195   else
20196     {
20197       if ((gtk_major_version > major) ||
20198         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20199         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20200       {
20201         return 0;
20202        }
20203      else
20204       {
20205         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20206                gtk_major_version, gtk_minor_version, gtk_micro_version);
20207         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20208                major, minor, micro);
20209         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20210         printf("***\n");
20211         printf("*** If you have already installed a sufficiently new version, this error\n");
20212         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20213         printf("*** being found. The easiest way to fix this is to remove the old version\n");
20214         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20215         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20216         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20217         printf("*** so that the correct libraries are found at run-time))\n");
20218       }
20219     }
20220   return 1;
20221 }
20222
20223 _ACEOF
20224 rm -f conftest$ac_exeext
20225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20226   (eval $ac_link) 2>&5
20227   ac_status=$?
20228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20231   (eval $ac_try) 2>&5
20232   ac_status=$?
20233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234   (exit $ac_status); }; }; then
20235   :
20236 else
20237   echo "$as_me: program exited with status $ac_status" >&5
20238 echo "$as_me: failed program was:" >&5
20239 sed 's/^/| /' conftest.$ac_ext >&5
20240
20241 ( exit $ac_status )
20242 no_gtk=yes
20243 fi
20244 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20245 fi
20246        CFLAGS="$ac_save_CFLAGS"
20247        LIBS="$ac_save_LIBS"
20248      fi
20249   fi
20250   if test "x$no_gtk" = x ; then
20251      echo "$as_me:$LINENO: result: yes" >&5
20252 echo "${ECHO_T}yes" >&6
20253      wx_cv_lib_gtk=1.2.7
20254   else
20255      echo "$as_me:$LINENO: result: no" >&5
20256 echo "${ECHO_T}no" >&6
20257      if test "$GTK_CONFIG" = "no" ; then
20258        echo "*** The gtk-config script installed by GTK could not be found"
20259        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20260        echo "*** your path, or set the GTK_CONFIG environment variable to the"
20261        echo "*** full path to gtk-config."
20262      else
20263        if test -f conf.gtktest ; then
20264         :
20265        else
20266           echo "*** Could not run GTK test program, checking why..."
20267           CFLAGS="$CFLAGS $GTK_CFLAGS"
20268           LIBS="$LIBS $GTK_LIBS"
20269           cat >conftest.$ac_ext <<_ACEOF
20270 #line $LINENO "configure"
20271 /* confdefs.h.  */
20272 _ACEOF
20273 cat confdefs.h >>conftest.$ac_ext
20274 cat >>conftest.$ac_ext <<_ACEOF
20275 /* end confdefs.h.  */
20276
20277 #include <gtk/gtk.h>
20278 #include <stdio.h>
20279
20280 int
20281 main ()
20282 {
20283  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20284   ;
20285   return 0;
20286 }
20287 _ACEOF
20288 rm -f conftest.$ac_objext conftest$ac_exeext
20289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20290   (eval $ac_link) 2>&5
20291   ac_status=$?
20292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293   (exit $ac_status); } &&
20294          { ac_try='test -s conftest$ac_exeext'
20295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20296   (eval $ac_try) 2>&5
20297   ac_status=$?
20298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299   (exit $ac_status); }; }; then
20300    echo "*** The test program compiled, but did not run. This usually means"
20301           echo "*** that the run-time linker is not finding GTK or finding the wrong"
20302           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20303           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20304           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
20305           echo "*** is required on your system"
20306           echo "***"
20307           echo "*** If you have an old version installed, it is best to remove it, although"
20308           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20309           echo "***"
20310           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20311           echo "*** came with the system with the command"
20312           echo "***"
20313           echo "***    rpm --erase --nodeps gtk gtk-devel"
20314 else
20315   echo "$as_me: failed program was:" >&5
20316 sed 's/^/| /' conftest.$ac_ext >&5
20317
20318  echo "*** The test program failed to compile or link. See the file config.log for the"
20319           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20320           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
20321           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
20322 fi
20323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20324           CFLAGS="$ac_save_CFLAGS"
20325           LIBS="$ac_save_LIBS"
20326        fi
20327      fi
20328      GTK_CFLAGS=""
20329      GTK_LIBS=""
20330      :
20331   fi
20332
20333
20334   rm -f conf.gtktest
20335
20336
20337                     if test -z "$wx_cv_lib_gtk"; then
20338
20339 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
20340 if test "${with_gtk_prefix+set}" = set; then
20341   withval="$with_gtk_prefix"
20342   gtk_config_prefix="$withval"
20343 else
20344   gtk_config_prefix=""
20345 fi;
20346
20347 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20348 if test "${with_gtk_exec_prefix+set}" = set; then
20349   withval="$with_gtk_exec_prefix"
20350   gtk_config_exec_prefix="$withval"
20351 else
20352   gtk_config_exec_prefix=""
20353 fi;
20354 # Check whether --enable-gtktest or --disable-gtktest was given.
20355 if test "${enable_gtktest+set}" = set; then
20356   enableval="$enable_gtktest"
20357
20358 else
20359   enable_gtktest=yes
20360 fi;
20361
20362   for module in . $GTK_MODULES
20363   do
20364       case "$module" in
20365          gthread)
20366              gtk_config_args="$gtk_config_args gthread"
20367          ;;
20368       esac
20369   done
20370
20371   if test x$gtk_config_exec_prefix != x ; then
20372      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20373      if test x${GTK_CONFIG+set} != xset ; then
20374         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20375      fi
20376   fi
20377   if test x$gtk_config_prefix != x ; then
20378      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20379      if test x${GTK_CONFIG+set} != xset ; then
20380         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20381      fi
20382   fi
20383
20384   # Extract the first word of "gtk-config", so it can be a program name with args.
20385 set dummy gtk-config; ac_word=$2
20386 echo "$as_me:$LINENO: checking for $ac_word" >&5
20387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20388 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20389   echo $ECHO_N "(cached) $ECHO_C" >&6
20390 else
20391   case $GTK_CONFIG in
20392   [\\/]* | ?:[\\/]*)
20393   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20394   ;;
20395   *)
20396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20397 for as_dir in $PATH
20398 do
20399   IFS=$as_save_IFS
20400   test -z "$as_dir" && as_dir=.
20401   for ac_exec_ext in '' $ac_executable_extensions; do
20402   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20403     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20405     break 2
20406   fi
20407 done
20408 done
20409
20410   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20411   ;;
20412 esac
20413 fi
20414 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20415
20416 if test -n "$GTK_CONFIG"; then
20417   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20418 echo "${ECHO_T}$GTK_CONFIG" >&6
20419 else
20420   echo "$as_me:$LINENO: result: no" >&5
20421 echo "${ECHO_T}no" >&6
20422 fi
20423
20424   min_gtk_version=1.2.3
20425   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20426 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
20427   no_gtk=""
20428   if test "$GTK_CONFIG" = "no" ; then
20429     no_gtk=yes
20430   else
20431     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20432     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20433     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20434            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20435     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20436            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20437     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20438            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20439     if test "x$enable_gtktest" = "xyes" ; then
20440       ac_save_CFLAGS="$CFLAGS"
20441       ac_save_LIBS="$LIBS"
20442       CFLAGS="$CFLAGS $GTK_CFLAGS"
20443       LIBS="$GTK_LIBS $LIBS"
20444       rm -f conf.gtktest
20445       if test "$cross_compiling" = yes; then
20446   echo $ac_n "cross compiling; assumed OK... $ac_c"
20447 else
20448   cat >conftest.$ac_ext <<_ACEOF
20449 #line $LINENO "configure"
20450 /* confdefs.h.  */
20451 _ACEOF
20452 cat confdefs.h >>conftest.$ac_ext
20453 cat >>conftest.$ac_ext <<_ACEOF
20454 /* end confdefs.h.  */
20455
20456 #include <gtk/gtk.h>
20457 #include <stdio.h>
20458 #include <stdlib.h>
20459
20460 int
20461 main ()
20462 {
20463   int major, minor, micro;
20464   char *tmp_version;
20465
20466   system ("touch conf.gtktest");
20467
20468   /* HP/UX 9 (%@#!) writes to sscanf strings */
20469   tmp_version = g_strdup("$min_gtk_version");
20470   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20471      printf("%s, bad version string\n", "$min_gtk_version");
20472      exit(1);
20473    }
20474
20475   if ((gtk_major_version != $gtk_config_major_version) ||
20476       (gtk_minor_version != $gtk_config_minor_version) ||
20477       (gtk_micro_version != $gtk_config_micro_version))
20478     {
20479       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
20480              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20481              gtk_major_version, gtk_minor_version, gtk_micro_version);
20482       printf ("*** was found! If gtk-config was correct, then it is best\n");
20483       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20484       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20485       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20486       printf("*** required on your system.\n");
20487       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20488       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20489       printf("*** before re-running configure\n");
20490     }
20491 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20492   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20493            (gtk_minor_version != GTK_MINOR_VERSION) ||
20494            (gtk_micro_version != GTK_MICRO_VERSION))
20495     {
20496       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20497              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20498       printf("*** library (version %d.%d.%d)\n",
20499              gtk_major_version, gtk_minor_version, gtk_micro_version);
20500     }
20501 #endif /* defined (GTK_MAJOR_VERSION) ... */
20502   else
20503     {
20504       if ((gtk_major_version > major) ||
20505         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20506         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20507       {
20508         return 0;
20509        }
20510      else
20511       {
20512         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20513                gtk_major_version, gtk_minor_version, gtk_micro_version);
20514         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20515                major, minor, micro);
20516         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20517         printf("***\n");
20518         printf("*** If you have already installed a sufficiently new version, this error\n");
20519         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20520         printf("*** being found. The easiest way to fix this is to remove the old version\n");
20521         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20522         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20523         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20524         printf("*** so that the correct libraries are found at run-time))\n");
20525       }
20526     }
20527   return 1;
20528 }
20529
20530 _ACEOF
20531 rm -f conftest$ac_exeext
20532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20533   (eval $ac_link) 2>&5
20534   ac_status=$?
20535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20538   (eval $ac_try) 2>&5
20539   ac_status=$?
20540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541   (exit $ac_status); }; }; then
20542   :
20543 else
20544   echo "$as_me: program exited with status $ac_status" >&5
20545 echo "$as_me: failed program was:" >&5
20546 sed 's/^/| /' conftest.$ac_ext >&5
20547
20548 ( exit $ac_status )
20549 no_gtk=yes
20550 fi
20551 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20552 fi
20553        CFLAGS="$ac_save_CFLAGS"
20554        LIBS="$ac_save_LIBS"
20555      fi
20556   fi
20557   if test "x$no_gtk" = x ; then
20558      echo "$as_me:$LINENO: result: yes" >&5
20559 echo "${ECHO_T}yes" >&6
20560      wx_cv_lib_gtk=1.2.3
20561   else
20562      echo "$as_me:$LINENO: result: no" >&5
20563 echo "${ECHO_T}no" >&6
20564      if test "$GTK_CONFIG" = "no" ; then
20565        echo "*** The gtk-config script installed by GTK could not be found"
20566        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20567        echo "*** your path, or set the GTK_CONFIG environment variable to the"
20568        echo "*** full path to gtk-config."
20569      else
20570        if test -f conf.gtktest ; then
20571         :
20572        else
20573           echo "*** Could not run GTK test program, checking why..."
20574           CFLAGS="$CFLAGS $GTK_CFLAGS"
20575           LIBS="$LIBS $GTK_LIBS"
20576           cat >conftest.$ac_ext <<_ACEOF
20577 #line $LINENO "configure"
20578 /* confdefs.h.  */
20579 _ACEOF
20580 cat confdefs.h >>conftest.$ac_ext
20581 cat >>conftest.$ac_ext <<_ACEOF
20582 /* end confdefs.h.  */
20583
20584 #include <gtk/gtk.h>
20585 #include <stdio.h>
20586
20587 int
20588 main ()
20589 {
20590  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20591   ;
20592   return 0;
20593 }
20594 _ACEOF
20595 rm -f conftest.$ac_objext conftest$ac_exeext
20596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20597   (eval $ac_link) 2>&5
20598   ac_status=$?
20599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600   (exit $ac_status); } &&
20601          { ac_try='test -s conftest$ac_exeext'
20602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20603   (eval $ac_try) 2>&5
20604   ac_status=$?
20605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606   (exit $ac_status); }; }; then
20607    echo "*** The test program compiled, but did not run. This usually means"
20608           echo "*** that the run-time linker is not finding GTK or finding the wrong"
20609           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20610           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20611           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
20612           echo "*** is required on your system"
20613           echo "***"
20614           echo "*** If you have an old version installed, it is best to remove it, although"
20615           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20616           echo "***"
20617           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20618           echo "*** came with the system with the command"
20619           echo "***"
20620           echo "***    rpm --erase --nodeps gtk gtk-devel"
20621 else
20622   echo "$as_me: failed program was:" >&5
20623 sed 's/^/| /' conftest.$ac_ext >&5
20624
20625  echo "*** The test program failed to compile or link. See the file config.log for the"
20626           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20627           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
20628           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
20629 fi
20630 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20631           CFLAGS="$ac_save_CFLAGS"
20632           LIBS="$ac_save_LIBS"
20633        fi
20634      fi
20635      GTK_CFLAGS=""
20636      GTK_LIBS=""
20637      :
20638   fi
20639
20640
20641   rm -f conf.gtktest
20642
20643                     fi
20644                 fi
20645
20646                 if test -z "$wx_cv_lib_gtk"; then
20647                                         wx_cv_lib_gtk=none
20648                 else
20649                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
20650                     wx_cv_libs_gtk=$GTK_LIBS
20651                 fi
20652
20653
20654 fi
20655
20656
20657                         if test "$gtk_version_cached" = 1; then
20658             echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
20659 echo "${ECHO_T}$wx_cv_lib_gtk" >&6
20660         fi
20661
20662         case "$wx_cv_lib_gtk" in
20663             2.0)    WXGTK20=1
20664                     TOOLKIT_VERSION=2
20665                     ;;
20666             1.2.7)  WXGTK127=1
20667                     WXGTK12=1
20668                     ;;
20669             1.2.3)  WXGTK12=1
20670                     ;;
20671             *)      { { echo "$as_me:$LINENO: error:
20672 Please check that gtk-config is in path, the directory
20673 where GTK+ libraries are installed (returned by
20674 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20675 equivalent variable and GTK+ is version 1.2.3 or above.
20676                             " >&5
20677 echo "$as_me: error:
20678 Please check that gtk-config is in path, the directory
20679 where GTK+ libraries are installed (returned by
20680 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20681 equivalent variable and GTK+ is version 1.2.3 or above.
20682                             " >&2;}
20683    { (exit 1); exit 1; }; }
20684                     ;;
20685         esac
20686
20687         if test "$WXGTK20" = 1; then
20688             if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
20689
20690   succeeded=no
20691
20692   if test -z "$PKG_CONFIG"; then
20693     # Extract the first word of "pkg-config", so it can be a program name with args.
20694 set dummy pkg-config; ac_word=$2
20695 echo "$as_me:$LINENO: checking for $ac_word" >&5
20696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20697 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20698   echo $ECHO_N "(cached) $ECHO_C" >&6
20699 else
20700   case $PKG_CONFIG in
20701   [\\/]* | ?:[\\/]*)
20702   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20703   ;;
20704   *)
20705   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20706 for as_dir in $PATH
20707 do
20708   IFS=$as_save_IFS
20709   test -z "$as_dir" && as_dir=.
20710   for ac_exec_ext in '' $ac_executable_extensions; do
20711   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20712     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20714     break 2
20715   fi
20716 done
20717 done
20718
20719   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20720   ;;
20721 esac
20722 fi
20723 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20724
20725 if test -n "$PKG_CONFIG"; then
20726   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20727 echo "${ECHO_T}$PKG_CONFIG" >&6
20728 else
20729   echo "$as_me:$LINENO: result: no" >&5
20730 echo "${ECHO_T}no" >&6
20731 fi
20732
20733   fi
20734
20735   if test "$PKG_CONFIG" = "no" ; then
20736      echo "*** The pkg-config script could not be found. Make sure it is"
20737      echo "*** in your path, or set the PKG_CONFIG environment variable"
20738      echo "*** to the full path to pkg-config."
20739      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20740   else
20741      PKG_CONFIG_MIN_VERSION=0.9.0
20742      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20743         echo "$as_me:$LINENO: checking for pangoft2" >&5
20744 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
20745
20746         if $PKG_CONFIG --exists "pangoft2" ; then
20747             echo "$as_me:$LINENO: result: yes" >&5
20748 echo "${ECHO_T}yes" >&6
20749             succeeded=yes
20750
20751             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
20752 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
20753             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
20754             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
20755 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
20756
20757             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
20758 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
20759             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
20760             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
20761 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
20762         else
20763             PANGOFT2_CFLAGS=""
20764             PANGOFT2_LIBS=""
20765             ## If we have a custom action on failure, don't print errors, but
20766             ## do set a variable so people can do so.
20767             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
20768
20769         fi
20770
20771
20772
20773      else
20774         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20775         echo "*** See http://www.freedesktop.org/software/pkgconfig"
20776      fi
20777   fi
20778
20779   if test $succeeded = yes; then
20780
20781                         CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
20782                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
20783
20784   else
20785
20786                         { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
20787 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
20788                         wxUSE_PRINTING_ARCHITECTURE="no"
20789
20790
20791   fi
20792
20793             fi
20794         else
20795             if test "$wxUSE_UNICODE" = "yes"; then
20796                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
20797 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
20798                 wxUSE_UNICODE=no
20799             fi
20800         fi
20801
20802                         if test "$USE_DARWIN" != 1; then
20803
20804 for ac_func in poll
20805 do
20806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20807 echo "$as_me:$LINENO: checking for $ac_func" >&5
20808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20809 if eval "test \"\${$as_ac_var+set}\" = set"; then
20810   echo $ECHO_N "(cached) $ECHO_C" >&6
20811 else
20812   cat >conftest.$ac_ext <<_ACEOF
20813 #line $LINENO "configure"
20814 /* confdefs.h.  */
20815 _ACEOF
20816 cat confdefs.h >>conftest.$ac_ext
20817 cat >>conftest.$ac_ext <<_ACEOF
20818 /* end confdefs.h.  */
20819 /* System header to define __stub macros and hopefully few prototypes,
20820     which can conflict with char $ac_func (); below.
20821     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20822     <limits.h> exists even on freestanding compilers.  */
20823 #ifdef __STDC__
20824 # include <limits.h>
20825 #else
20826 # include <assert.h>
20827 #endif
20828 /* Override any gcc2 internal prototype to avoid an error.  */
20829 #ifdef __cplusplus
20830 extern "C"
20831 {
20832 #endif
20833 /* We use char because int might match the return type of a gcc2
20834    builtin and then its argument prototype would still apply.  */
20835 char $ac_func ();
20836 /* The GNU C library defines this for functions which it implements
20837     to always fail with ENOSYS.  Some functions are actually named
20838     something starting with __ and the normal name is an alias.  */
20839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20840 choke me
20841 #else
20842 char (*f) () = $ac_func;
20843 #endif
20844 #ifdef __cplusplus
20845 }
20846 #endif
20847
20848 int
20849 main ()
20850 {
20851 return f != $ac_func;
20852   ;
20853   return 0;
20854 }
20855 _ACEOF
20856 rm -f conftest.$ac_objext conftest$ac_exeext
20857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20858   (eval $ac_link) 2>&5
20859   ac_status=$?
20860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20861   (exit $ac_status); } &&
20862          { ac_try='test -s conftest$ac_exeext'
20863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20864   (eval $ac_try) 2>&5
20865   ac_status=$?
20866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867   (exit $ac_status); }; }; then
20868   eval "$as_ac_var=yes"
20869 else
20870   echo "$as_me: failed program was:" >&5
20871 sed 's/^/| /' conftest.$ac_ext >&5
20872
20873 eval "$as_ac_var=no"
20874 fi
20875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20876 fi
20877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20878 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20879 if test `eval echo '${'$as_ac_var'}'` = yes; then
20880   cat >>confdefs.h <<_ACEOF
20881 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20882 _ACEOF
20883
20884 fi
20885 done
20886
20887         fi
20888
20889         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
20890         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
20891
20892         AFMINSTALL=afminstall
20893         TOOLKIT=GTK
20894         GUIDIST=GTK_DIST
20895
20896                 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
20897 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
20898 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
20899   echo $ECHO_N "(cached) $ECHO_C" >&6
20900 else
20901   ac_check_lib_save_LIBS=$LIBS
20902 LIBS="-lgdk  $LIBS"
20903 cat >conftest.$ac_ext <<_ACEOF
20904 #line $LINENO "configure"
20905 /* confdefs.h.  */
20906 _ACEOF
20907 cat confdefs.h >>conftest.$ac_ext
20908 cat >>conftest.$ac_ext <<_ACEOF
20909 /* end confdefs.h.  */
20910
20911 /* Override any gcc2 internal prototype to avoid an error.  */
20912 #ifdef __cplusplus
20913 extern "C"
20914 #endif
20915 /* We use char because int might match the return type of a gcc2
20916    builtin and then its argument prototype would still apply.  */
20917 char gdk_im_open ();
20918 int
20919 main ()
20920 {
20921 gdk_im_open ();
20922   ;
20923   return 0;
20924 }
20925 _ACEOF
20926 rm -f conftest.$ac_objext conftest$ac_exeext
20927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20928   (eval $ac_link) 2>&5
20929   ac_status=$?
20930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931   (exit $ac_status); } &&
20932          { ac_try='test -s conftest$ac_exeext'
20933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20934   (eval $ac_try) 2>&5
20935   ac_status=$?
20936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937   (exit $ac_status); }; }; then
20938   ac_cv_lib_gdk_gdk_im_open=yes
20939 else
20940   echo "$as_me: failed program was:" >&5
20941 sed 's/^/| /' conftest.$ac_ext >&5
20942
20943 ac_cv_lib_gdk_gdk_im_open=no
20944 fi
20945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20946 LIBS=$ac_check_lib_save_LIBS
20947 fi
20948 echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
20949 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
20950 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
20951   cat >>confdefs.h <<\_ACEOF
20952 #define HAVE_XIM 1
20953 _ACEOF
20954
20955 fi
20956
20957     fi
20958
20959     if test "$wxUSE_MGL" = 1; then
20960        echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
20961 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
20962         if test "x$MGL_ROOT" = x ; then
20963             echo "$as_me:$LINENO: result: not found" >&5
20964 echo "${ECHO_T}not found" >&6
20965             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
20966 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
20967    { (exit 1); exit 1; }; }
20968         else
20969             echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
20970 echo "${ECHO_T}$MGL_ROOT" >&6
20971         fi
20972
20973         echo "$as_me:$LINENO: checking for libmgl location" >&5
20974 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
20975                         case "${host}" in
20976             *-*-linux* )
20977               if test "x$wxUSE_SHARED" = xyes ; then
20978                   mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
20979               else
20980                   mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
20981               fi
20982               ;;
20983             *-pc-msdosdjgpp )
20984               mgl_os_candidates="dos32/dj2"
20985               ;;
20986             *)
20987               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
20988 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
20989    { (exit 1); exit 1; }; }
20990         esac
20991
20992         mgl_lib_type=""
20993         mgl_os=""
20994
20995         for mgl_os_i in $mgl_os_candidates ; do
20996             if test "x$mgl_os" = x ; then
20997                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
20998                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
20999                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
21000                         mgl_lib_type=debug
21001                         mgl_os=$mgl_os_i
21002                     fi
21003                 fi
21004                 if test "x$mgl_lib_type" = x ; then
21005                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
21006                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
21007                         mgl_lib_type=release
21008                         mgl_os=$mgl_os_i
21009                     fi
21010                 fi
21011             fi
21012         done
21013
21014         if test "x$mgl_os" = x ; then
21015             echo "$as_me:$LINENO: result: not found" >&5
21016 echo "${ECHO_T}not found" >&6
21017             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
21018 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
21019    { (exit 1); exit 1; }; }
21020         fi
21021         echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
21022 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
21023
21024         wxUSE_UNIVERSAL="yes"
21025
21026         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
21027         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
21028
21029         AFMINSTALL=afminstall
21030         TOOLKIT=MGL
21031         GUIDIST=MGL_DIST
21032     fi
21033
21034     if test "$wxUSE_MICROWIN" = 1; then
21035         echo "$as_me:$LINENO: checking for MicroWindows" >&5
21036 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
21037         if test "x$MICROWINDOWS" = x ; then
21038             echo "$as_me:$LINENO: result: not found" >&5
21039 echo "${ECHO_T}not found" >&6
21040             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
21041 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
21042    { (exit 1); exit 1; }; }
21043         else
21044             echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
21045 echo "${ECHO_T}$MICROWINDOWS" >&6
21046         fi
21047
21048         if test -f $MICROWINDOWS/lib/libmwin.a; then
21049             echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
21050 echo "${ECHO_T}MicroWindows' libraries found." >&6
21051         else
21052             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
21053 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
21054    { (exit 1); exit 1; }; }
21055         fi
21056
21057         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
21058         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
21059
21060         wxUSE_UNIVERSAL="yes"
21061
21062         AFMINSTALL=afminstall
21063         TOOLKIT=MICROWIN
21064         GUIDIST=MICROWIN_DIST
21065
21066         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21067     fi
21068
21069     if test "$wxUSE_X11" = 1; then
21070                         echo "$as_me:$LINENO: checking for X" >&5
21071 echo $ECHO_N "checking for X... $ECHO_C" >&6
21072
21073
21074 # Check whether --with-x or --without-x was given.
21075 if test "${with_x+set}" = set; then
21076   withval="$with_x"
21077
21078 fi;
21079 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21080 if test "x$with_x" = xno; then
21081   # The user explicitly disabled X.
21082   have_x=disabled
21083 else
21084   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21085     # Both variables are already set.
21086     have_x=yes
21087   else
21088     if test "${ac_cv_have_x+set}" = set; then
21089   echo $ECHO_N "(cached) $ECHO_C" >&6
21090 else
21091   # One or both of the vars are not set, and there is no cached value.
21092 ac_x_includes=no ac_x_libraries=no
21093 rm -fr conftest.dir
21094 if mkdir conftest.dir; then
21095   cd conftest.dir
21096   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
21097   cat >Imakefile <<'_ACEOF'
21098 acfindx:
21099         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
21100 _ACEOF
21101   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21102     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21103     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21104     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21105     for ac_extension in a so sl; do
21106       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
21107          test -f $ac_im_libdir/libX11.$ac_extension; then
21108         ac_im_usrlibdir=$ac_im_libdir; break
21109       fi
21110     done
21111     # Screen out bogus values from the imake configuration.  They are
21112     # bogus both because they are the default anyway, and because
21113     # using them would break gcc on systems where it needs fixed includes.
21114     case $ac_im_incroot in
21115         /usr/include) ;;
21116         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21117     esac
21118     case $ac_im_usrlibdir in
21119         /usr/lib | /lib) ;;
21120         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21121     esac
21122   fi
21123   cd ..
21124   rm -fr conftest.dir
21125 fi
21126
21127 # Standard set of common directories for X headers.
21128 # Check X11 before X11Rn because it is often a symlink to the current release.
21129 ac_x_header_dirs='
21130 /usr/X11/include
21131 /usr/X11R6/include
21132 /usr/X11R5/include
21133 /usr/X11R4/include
21134
21135 /usr/include/X11
21136 /usr/include/X11R6
21137 /usr/include/X11R5
21138 /usr/include/X11R4
21139
21140 /usr/local/X11/include
21141 /usr/local/X11R6/include
21142 /usr/local/X11R5/include
21143 /usr/local/X11R4/include
21144
21145 /usr/local/include/X11
21146 /usr/local/include/X11R6
21147 /usr/local/include/X11R5
21148 /usr/local/include/X11R4
21149
21150 /usr/X386/include
21151 /usr/x386/include
21152 /usr/XFree86/include/X11
21153
21154 /usr/include
21155 /usr/local/include
21156 /usr/unsupported/include
21157 /usr/athena/include
21158 /usr/local/x11r5/include
21159 /usr/lpp/Xamples/include
21160
21161 /usr/openwin/include
21162 /usr/openwin/share/include'
21163
21164 if test "$ac_x_includes" = no; then
21165   # Guess where to find include files, by looking for Intrinsic.h.
21166   # First, try using that file with no special directory specified.
21167   cat >conftest.$ac_ext <<_ACEOF
21168 #line $LINENO "configure"
21169 /* confdefs.h.  */
21170 _ACEOF
21171 cat confdefs.h >>conftest.$ac_ext
21172 cat >>conftest.$ac_ext <<_ACEOF
21173 /* end confdefs.h.  */
21174 #include <X11/Intrinsic.h>
21175 _ACEOF
21176 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21177   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21178   ac_status=$?
21179   grep -v '^ *+' conftest.er1 >conftest.err
21180   rm -f conftest.er1
21181   cat conftest.err >&5
21182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183   (exit $ac_status); } >/dev/null; then
21184   if test -s conftest.err; then
21185     ac_cpp_err=$ac_c_preproc_warn_flag
21186   else
21187     ac_cpp_err=
21188   fi
21189 else
21190   ac_cpp_err=yes
21191 fi
21192 if test -z "$ac_cpp_err"; then
21193   # We can compile using X headers with no special include directory.
21194 ac_x_includes=
21195 else
21196   echo "$as_me: failed program was:" >&5
21197 sed 's/^/| /' conftest.$ac_ext >&5
21198
21199   for ac_dir in $ac_x_header_dirs; do
21200   if test -r "$ac_dir/X11/Intrinsic.h"; then
21201     ac_x_includes=$ac_dir
21202     break
21203   fi
21204 done
21205 fi
21206 rm -f conftest.err conftest.$ac_ext
21207 fi # $ac_x_includes = no
21208
21209 if test "$ac_x_libraries" = no; then
21210   # Check for the libraries.
21211   # See if we find them without any special options.
21212   # Don't add to $LIBS permanently.
21213   ac_save_LIBS=$LIBS
21214   LIBS="-lXt $LIBS"
21215   cat >conftest.$ac_ext <<_ACEOF
21216 #line $LINENO "configure"
21217 /* confdefs.h.  */
21218 _ACEOF
21219 cat confdefs.h >>conftest.$ac_ext
21220 cat >>conftest.$ac_ext <<_ACEOF
21221 /* end confdefs.h.  */
21222 #include <X11/Intrinsic.h>
21223 int
21224 main ()
21225 {
21226 XtMalloc (0)
21227   ;
21228   return 0;
21229 }
21230 _ACEOF
21231 rm -f conftest.$ac_objext conftest$ac_exeext
21232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21233   (eval $ac_link) 2>&5
21234   ac_status=$?
21235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236   (exit $ac_status); } &&
21237          { ac_try='test -s conftest$ac_exeext'
21238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21239   (eval $ac_try) 2>&5
21240   ac_status=$?
21241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242   (exit $ac_status); }; }; then
21243   LIBS=$ac_save_LIBS
21244 # We can link X programs with no special library path.
21245 ac_x_libraries=
21246 else
21247   echo "$as_me: failed program was:" >&5
21248 sed 's/^/| /' conftest.$ac_ext >&5
21249
21250 LIBS=$ac_save_LIBS
21251 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21252 do
21253   # Don't even attempt the hair of trying to link an X program!
21254   for ac_extension in a so sl; do
21255     if test -r $ac_dir/libXt.$ac_extension; then
21256       ac_x_libraries=$ac_dir
21257       break 2
21258     fi
21259   done
21260 done
21261 fi
21262 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21263 fi # $ac_x_libraries = no
21264
21265 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21266   # Didn't find X anywhere.  Cache the known absence of X.
21267   ac_cv_have_x="have_x=no"
21268 else
21269   # Record where we found X for the cache.
21270   ac_cv_have_x="have_x=yes \
21271                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
21272 fi
21273 fi
21274
21275   fi
21276   eval "$ac_cv_have_x"
21277 fi # $with_x != no
21278
21279 if test "$have_x" != yes; then
21280   echo "$as_me:$LINENO: result: $have_x" >&5
21281 echo "${ECHO_T}$have_x" >&6
21282   no_x=yes
21283 else
21284   # If each of the values was on the command line, it overrides each guess.
21285   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21286   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21287   # Update the cache value to reflect the command line values.
21288   ac_cv_have_x="have_x=yes \
21289                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
21290   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21291 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21292 fi
21293
21294 if test "$no_x" = yes; then
21295   # Not all programs may use this symbol, but it does not hurt to define it.
21296
21297 cat >>confdefs.h <<\_ACEOF
21298 #define X_DISPLAY_MISSING 1
21299 _ACEOF
21300
21301   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
21302 else
21303   if test -n "$x_includes"; then
21304     X_CFLAGS="$X_CFLAGS -I$x_includes"
21305   fi
21306
21307   # It would also be nice to do this for all -L options, not just this one.
21308   if test -n "$x_libraries"; then
21309     X_LIBS="$X_LIBS -L$x_libraries"
21310     # For Solaris; some versions of Sun CC require a space after -R and
21311     # others require no space.  Words are not sufficient . . . .
21312     case `(uname -sr) 2>/dev/null` in
21313     "SunOS 5"*)
21314       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
21315 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
21316       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
21317       cat >conftest.$ac_ext <<_ACEOF
21318 #line $LINENO "configure"
21319 /* confdefs.h.  */
21320 _ACEOF
21321 cat confdefs.h >>conftest.$ac_ext
21322 cat >>conftest.$ac_ext <<_ACEOF
21323 /* end confdefs.h.  */
21324
21325 int
21326 main ()
21327 {
21328
21329   ;
21330   return 0;
21331 }
21332 _ACEOF
21333 rm -f conftest.$ac_objext conftest$ac_exeext
21334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21335   (eval $ac_link) 2>&5
21336   ac_status=$?
21337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338   (exit $ac_status); } &&
21339          { ac_try='test -s conftest$ac_exeext'
21340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21341   (eval $ac_try) 2>&5
21342   ac_status=$?
21343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21344   (exit $ac_status); }; }; then
21345   ac_R_nospace=yes
21346 else
21347   echo "$as_me: failed program was:" >&5
21348 sed 's/^/| /' conftest.$ac_ext >&5
21349
21350 ac_R_nospace=no
21351 fi
21352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21353       if test $ac_R_nospace = yes; then
21354         echo "$as_me:$LINENO: result: no" >&5
21355 echo "${ECHO_T}no" >&6
21356         X_LIBS="$X_LIBS -R$x_libraries"
21357       else
21358         LIBS="$ac_xsave_LIBS -R $x_libraries"
21359         cat >conftest.$ac_ext <<_ACEOF
21360 #line $LINENO "configure"
21361 /* confdefs.h.  */
21362 _ACEOF
21363 cat confdefs.h >>conftest.$ac_ext
21364 cat >>conftest.$ac_ext <<_ACEOF
21365 /* end confdefs.h.  */
21366
21367 int
21368 main ()
21369 {
21370
21371   ;
21372   return 0;
21373 }
21374 _ACEOF
21375 rm -f conftest.$ac_objext conftest$ac_exeext
21376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21377   (eval $ac_link) 2>&5
21378   ac_status=$?
21379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380   (exit $ac_status); } &&
21381          { ac_try='test -s conftest$ac_exeext'
21382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21383   (eval $ac_try) 2>&5
21384   ac_status=$?
21385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386   (exit $ac_status); }; }; then
21387   ac_R_space=yes
21388 else
21389   echo "$as_me: failed program was:" >&5
21390 sed 's/^/| /' conftest.$ac_ext >&5
21391
21392 ac_R_space=no
21393 fi
21394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21395         if test $ac_R_space = yes; then
21396           echo "$as_me:$LINENO: result: yes" >&5
21397 echo "${ECHO_T}yes" >&6
21398           X_LIBS="$X_LIBS -R $x_libraries"
21399         else
21400           echo "$as_me:$LINENO: result: neither works" >&5
21401 echo "${ECHO_T}neither works" >&6
21402         fi
21403       fi
21404       LIBS=$ac_xsave_LIBS
21405     esac
21406   fi
21407
21408   # Check for system-dependent libraries X programs must link with.
21409   # Do this before checking for the system-independent R6 libraries
21410   # (-lICE), since we may need -lsocket or whatever for X linking.
21411
21412   if test "$ISC" = yes; then
21413     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
21414   else
21415     # Martyn Johnson says this is needed for Ultrix, if the X
21416     # libraries were built with DECnet support.  And Karl Berry says
21417     # the Alpha needs dnet_stub (dnet does not exist).
21418     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
21419     cat >conftest.$ac_ext <<_ACEOF
21420 #line $LINENO "configure"
21421 /* confdefs.h.  */
21422 _ACEOF
21423 cat confdefs.h >>conftest.$ac_ext
21424 cat >>conftest.$ac_ext <<_ACEOF
21425 /* end confdefs.h.  */
21426
21427 /* Override any gcc2 internal prototype to avoid an error.  */
21428 #ifdef __cplusplus
21429 extern "C"
21430 #endif
21431 /* We use char because int might match the return type of a gcc2
21432    builtin and then its argument prototype would still apply.  */
21433 char XOpenDisplay ();
21434 int
21435 main ()
21436 {
21437 XOpenDisplay ();
21438   ;
21439   return 0;
21440 }
21441 _ACEOF
21442 rm -f conftest.$ac_objext conftest$ac_exeext
21443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21444   (eval $ac_link) 2>&5
21445   ac_status=$?
21446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447   (exit $ac_status); } &&
21448          { ac_try='test -s conftest$ac_exeext'
21449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21450   (eval $ac_try) 2>&5
21451   ac_status=$?
21452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453   (exit $ac_status); }; }; then
21454   :
21455 else
21456   echo "$as_me: failed program was:" >&5
21457 sed 's/^/| /' conftest.$ac_ext >&5
21458
21459 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
21460 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
21461 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
21462   echo $ECHO_N "(cached) $ECHO_C" >&6
21463 else
21464   ac_check_lib_save_LIBS=$LIBS
21465 LIBS="-ldnet  $LIBS"
21466 cat >conftest.$ac_ext <<_ACEOF
21467 #line $LINENO "configure"
21468 /* confdefs.h.  */
21469 _ACEOF
21470 cat confdefs.h >>conftest.$ac_ext
21471 cat >>conftest.$ac_ext <<_ACEOF
21472 /* end confdefs.h.  */
21473
21474 /* Override any gcc2 internal prototype to avoid an error.  */
21475 #ifdef __cplusplus
21476 extern "C"
21477 #endif
21478 /* We use char because int might match the return type of a gcc2
21479    builtin and then its argument prototype would still apply.  */
21480 char dnet_ntoa ();
21481 int
21482 main ()
21483 {
21484 dnet_ntoa ();
21485   ;
21486   return 0;
21487 }
21488 _ACEOF
21489 rm -f conftest.$ac_objext conftest$ac_exeext
21490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21491   (eval $ac_link) 2>&5
21492   ac_status=$?
21493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494   (exit $ac_status); } &&
21495          { ac_try='test -s conftest$ac_exeext'
21496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21497   (eval $ac_try) 2>&5
21498   ac_status=$?
21499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500   (exit $ac_status); }; }; then
21501   ac_cv_lib_dnet_dnet_ntoa=yes
21502 else
21503   echo "$as_me: failed program was:" >&5
21504 sed 's/^/| /' conftest.$ac_ext >&5
21505
21506 ac_cv_lib_dnet_dnet_ntoa=no
21507 fi
21508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21509 LIBS=$ac_check_lib_save_LIBS
21510 fi
21511 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
21512 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
21513 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21514   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
21515 fi
21516
21517     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
21518       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
21519 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
21520 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
21521   echo $ECHO_N "(cached) $ECHO_C" >&6
21522 else
21523   ac_check_lib_save_LIBS=$LIBS
21524 LIBS="-ldnet_stub  $LIBS"
21525 cat >conftest.$ac_ext <<_ACEOF
21526 #line $LINENO "configure"
21527 /* confdefs.h.  */
21528 _ACEOF
21529 cat confdefs.h >>conftest.$ac_ext
21530 cat >>conftest.$ac_ext <<_ACEOF
21531 /* end confdefs.h.  */
21532
21533 /* Override any gcc2 internal prototype to avoid an error.  */
21534 #ifdef __cplusplus
21535 extern "C"
21536 #endif
21537 /* We use char because int might match the return type of a gcc2
21538    builtin and then its argument prototype would still apply.  */
21539 char dnet_ntoa ();
21540 int
21541 main ()
21542 {
21543 dnet_ntoa ();
21544   ;
21545   return 0;
21546 }
21547 _ACEOF
21548 rm -f conftest.$ac_objext conftest$ac_exeext
21549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21550   (eval $ac_link) 2>&5
21551   ac_status=$?
21552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553   (exit $ac_status); } &&
21554          { ac_try='test -s conftest$ac_exeext'
21555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21556   (eval $ac_try) 2>&5
21557   ac_status=$?
21558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21559   (exit $ac_status); }; }; then
21560   ac_cv_lib_dnet_stub_dnet_ntoa=yes
21561 else
21562   echo "$as_me: failed program was:" >&5
21563 sed 's/^/| /' conftest.$ac_ext >&5
21564
21565 ac_cv_lib_dnet_stub_dnet_ntoa=no
21566 fi
21567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21568 LIBS=$ac_check_lib_save_LIBS
21569 fi
21570 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
21571 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
21572 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21573   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
21574 fi
21575
21576     fi
21577 fi
21578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21579     LIBS="$ac_xsave_LIBS"
21580
21581     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
21582     # to get the SysV transport functions.
21583     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21584     # needs -lnsl.
21585     # The nsl library prevents programs from opening the X display
21586     # on Irix 5.2, according to T.E. Dickey.
21587     # The functions gethostbyname, getservbyname, and inet_addr are
21588     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
21589     echo "$as_me:$LINENO: checking for gethostbyname" >&5
21590 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
21591 if test "${ac_cv_func_gethostbyname+set}" = set; then
21592   echo $ECHO_N "(cached) $ECHO_C" >&6
21593 else
21594   cat >conftest.$ac_ext <<_ACEOF
21595 #line $LINENO "configure"
21596 /* confdefs.h.  */
21597 _ACEOF
21598 cat confdefs.h >>conftest.$ac_ext
21599 cat >>conftest.$ac_ext <<_ACEOF
21600 /* end confdefs.h.  */
21601 /* System header to define __stub macros and hopefully few prototypes,
21602     which can conflict with char gethostbyname (); below.
21603     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21604     <limits.h> exists even on freestanding compilers.  */
21605 #ifdef __STDC__
21606 # include <limits.h>
21607 #else
21608 # include <assert.h>
21609 #endif
21610 /* Override any gcc2 internal prototype to avoid an error.  */
21611 #ifdef __cplusplus
21612 extern "C"
21613 {
21614 #endif
21615 /* We use char because int might match the return type of a gcc2
21616    builtin and then its argument prototype would still apply.  */
21617 char gethostbyname ();
21618 /* The GNU C library defines this for functions which it implements
21619     to always fail with ENOSYS.  Some functions are actually named
21620     something starting with __ and the normal name is an alias.  */
21621 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
21622 choke me
21623 #else
21624 char (*f) () = gethostbyname;
21625 #endif
21626 #ifdef __cplusplus
21627 }
21628 #endif
21629
21630 int
21631 main ()
21632 {
21633 return f != gethostbyname;
21634   ;
21635   return 0;
21636 }
21637 _ACEOF
21638 rm -f conftest.$ac_objext conftest$ac_exeext
21639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21640   (eval $ac_link) 2>&5
21641   ac_status=$?
21642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643   (exit $ac_status); } &&
21644          { ac_try='test -s conftest$ac_exeext'
21645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21646   (eval $ac_try) 2>&5
21647   ac_status=$?
21648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649   (exit $ac_status); }; }; then
21650   ac_cv_func_gethostbyname=yes
21651 else
21652   echo "$as_me: failed program was:" >&5
21653 sed 's/^/| /' conftest.$ac_ext >&5
21654
21655 ac_cv_func_gethostbyname=no
21656 fi
21657 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21658 fi
21659 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21660 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
21661
21662     if test $ac_cv_func_gethostbyname = no; then
21663       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21664 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
21665 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21666   echo $ECHO_N "(cached) $ECHO_C" >&6
21667 else
21668   ac_check_lib_save_LIBS=$LIBS
21669 LIBS="-lnsl  $LIBS"
21670 cat >conftest.$ac_ext <<_ACEOF
21671 #line $LINENO "configure"
21672 /* confdefs.h.  */
21673 _ACEOF
21674 cat confdefs.h >>conftest.$ac_ext
21675 cat >>conftest.$ac_ext <<_ACEOF
21676 /* end confdefs.h.  */
21677
21678 /* Override any gcc2 internal prototype to avoid an error.  */
21679 #ifdef __cplusplus
21680 extern "C"
21681 #endif
21682 /* We use char because int might match the return type of a gcc2
21683    builtin and then its argument prototype would still apply.  */
21684 char gethostbyname ();
21685 int
21686 main ()
21687 {
21688 gethostbyname ();
21689   ;
21690   return 0;
21691 }
21692 _ACEOF
21693 rm -f conftest.$ac_objext conftest$ac_exeext
21694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21695   (eval $ac_link) 2>&5
21696   ac_status=$?
21697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698   (exit $ac_status); } &&
21699          { ac_try='test -s conftest$ac_exeext'
21700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21701   (eval $ac_try) 2>&5
21702   ac_status=$?
21703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704   (exit $ac_status); }; }; then
21705   ac_cv_lib_nsl_gethostbyname=yes
21706 else
21707   echo "$as_me: failed program was:" >&5
21708 sed 's/^/| /' conftest.$ac_ext >&5
21709
21710 ac_cv_lib_nsl_gethostbyname=no
21711 fi
21712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21713 LIBS=$ac_check_lib_save_LIBS
21714 fi
21715 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21716 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
21717 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21718   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
21719 fi
21720
21721       if test $ac_cv_lib_nsl_gethostbyname = no; then
21722         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
21723 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
21724 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
21725   echo $ECHO_N "(cached) $ECHO_C" >&6
21726 else
21727   ac_check_lib_save_LIBS=$LIBS
21728 LIBS="-lbsd  $LIBS"
21729 cat >conftest.$ac_ext <<_ACEOF
21730 #line $LINENO "configure"
21731 /* confdefs.h.  */
21732 _ACEOF
21733 cat confdefs.h >>conftest.$ac_ext
21734 cat >>conftest.$ac_ext <<_ACEOF
21735 /* end confdefs.h.  */
21736
21737 /* Override any gcc2 internal prototype to avoid an error.  */
21738 #ifdef __cplusplus
21739 extern "C"
21740 #endif
21741 /* We use char because int might match the return type of a gcc2
21742    builtin and then its argument prototype would still apply.  */
21743 char gethostbyname ();
21744 int
21745 main ()
21746 {
21747 gethostbyname ();
21748   ;
21749   return 0;
21750 }
21751 _ACEOF
21752 rm -f conftest.$ac_objext conftest$ac_exeext
21753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21754   (eval $ac_link) 2>&5
21755   ac_status=$?
21756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757   (exit $ac_status); } &&
21758          { ac_try='test -s conftest$ac_exeext'
21759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21760   (eval $ac_try) 2>&5
21761   ac_status=$?
21762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763   (exit $ac_status); }; }; then
21764   ac_cv_lib_bsd_gethostbyname=yes
21765 else
21766   echo "$as_me: failed program was:" >&5
21767 sed 's/^/| /' conftest.$ac_ext >&5
21768
21769 ac_cv_lib_bsd_gethostbyname=no
21770 fi
21771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21772 LIBS=$ac_check_lib_save_LIBS
21773 fi
21774 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
21775 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
21776 if test $ac_cv_lib_bsd_gethostbyname = yes; then
21777   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21778 fi
21779
21780       fi
21781     fi
21782
21783     # lieder@skyler.mavd.honeywell.com says without -lsocket,
21784     # socket/setsockopt and other routines are undefined under SCO ODT
21785     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
21786     # on later versions), says Simon Leinen: it contains gethostby*
21787     # variants that don't use the name server (or something).  -lsocket
21788     # must be given before -lnsl if both are needed.  We assume that
21789     # if connect needs -lnsl, so does gethostbyname.
21790     echo "$as_me:$LINENO: checking for connect" >&5
21791 echo $ECHO_N "checking for connect... $ECHO_C" >&6
21792 if test "${ac_cv_func_connect+set}" = set; then
21793   echo $ECHO_N "(cached) $ECHO_C" >&6
21794 else
21795   cat >conftest.$ac_ext <<_ACEOF
21796 #line $LINENO "configure"
21797 /* confdefs.h.  */
21798 _ACEOF
21799 cat confdefs.h >>conftest.$ac_ext
21800 cat >>conftest.$ac_ext <<_ACEOF
21801 /* end confdefs.h.  */
21802 /* System header to define __stub macros and hopefully few prototypes,
21803     which can conflict with char connect (); below.
21804     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21805     <limits.h> exists even on freestanding compilers.  */
21806 #ifdef __STDC__
21807 # include <limits.h>
21808 #else
21809 # include <assert.h>
21810 #endif
21811 /* Override any gcc2 internal prototype to avoid an error.  */
21812 #ifdef __cplusplus
21813 extern "C"
21814 {
21815 #endif
21816 /* We use char because int might match the return type of a gcc2
21817    builtin and then its argument prototype would still apply.  */
21818 char connect ();
21819 /* The GNU C library defines this for functions which it implements
21820     to always fail with ENOSYS.  Some functions are actually named
21821     something starting with __ and the normal name is an alias.  */
21822 #if defined (__stub_connect) || defined (__stub___connect)
21823 choke me
21824 #else
21825 char (*f) () = connect;
21826 #endif
21827 #ifdef __cplusplus
21828 }
21829 #endif
21830
21831 int
21832 main ()
21833 {
21834 return f != connect;
21835   ;
21836   return 0;
21837 }
21838 _ACEOF
21839 rm -f conftest.$ac_objext conftest$ac_exeext
21840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21841   (eval $ac_link) 2>&5
21842   ac_status=$?
21843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844   (exit $ac_status); } &&
21845          { ac_try='test -s conftest$ac_exeext'
21846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21847   (eval $ac_try) 2>&5
21848   ac_status=$?
21849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850   (exit $ac_status); }; }; then
21851   ac_cv_func_connect=yes
21852 else
21853   echo "$as_me: failed program was:" >&5
21854 sed 's/^/| /' conftest.$ac_ext >&5
21855
21856 ac_cv_func_connect=no
21857 fi
21858 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21859 fi
21860 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21861 echo "${ECHO_T}$ac_cv_func_connect" >&6
21862
21863     if test $ac_cv_func_connect = no; then
21864       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21865 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
21866 if test "${ac_cv_lib_socket_connect+set}" = set; then
21867   echo $ECHO_N "(cached) $ECHO_C" >&6
21868 else
21869   ac_check_lib_save_LIBS=$LIBS
21870 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
21871 cat >conftest.$ac_ext <<_ACEOF
21872 #line $LINENO "configure"
21873 /* confdefs.h.  */
21874 _ACEOF
21875 cat confdefs.h >>conftest.$ac_ext
21876 cat >>conftest.$ac_ext <<_ACEOF
21877 /* end confdefs.h.  */
21878
21879 /* Override any gcc2 internal prototype to avoid an error.  */
21880 #ifdef __cplusplus
21881 extern "C"
21882 #endif
21883 /* We use char because int might match the return type of a gcc2
21884    builtin and then its argument prototype would still apply.  */
21885 char connect ();
21886 int
21887 main ()
21888 {
21889 connect ();
21890   ;
21891   return 0;
21892 }
21893 _ACEOF
21894 rm -f conftest.$ac_objext conftest$ac_exeext
21895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21896   (eval $ac_link) 2>&5
21897   ac_status=$?
21898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899   (exit $ac_status); } &&
21900          { ac_try='test -s conftest$ac_exeext'
21901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21902   (eval $ac_try) 2>&5
21903   ac_status=$?
21904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905   (exit $ac_status); }; }; then
21906   ac_cv_lib_socket_connect=yes
21907 else
21908   echo "$as_me: failed program was:" >&5
21909 sed 's/^/| /' conftest.$ac_ext >&5
21910
21911 ac_cv_lib_socket_connect=no
21912 fi
21913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21914 LIBS=$ac_check_lib_save_LIBS
21915 fi
21916 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21917 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
21918 if test $ac_cv_lib_socket_connect = yes; then
21919   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21920 fi
21921
21922     fi
21923
21924     # Guillermo Gomez says -lposix is necessary on A/UX.
21925     echo "$as_me:$LINENO: checking for remove" >&5
21926 echo $ECHO_N "checking for remove... $ECHO_C" >&6
21927 if test "${ac_cv_func_remove+set}" = set; then
21928   echo $ECHO_N "(cached) $ECHO_C" >&6
21929 else
21930   cat >conftest.$ac_ext <<_ACEOF
21931 #line $LINENO "configure"
21932 /* confdefs.h.  */
21933 _ACEOF
21934 cat confdefs.h >>conftest.$ac_ext
21935 cat >>conftest.$ac_ext <<_ACEOF
21936 /* end confdefs.h.  */
21937 /* System header to define __stub macros and hopefully few prototypes,
21938     which can conflict with char remove (); below.
21939     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21940     <limits.h> exists even on freestanding compilers.  */
21941 #ifdef __STDC__
21942 # include <limits.h>
21943 #else
21944 # include <assert.h>
21945 #endif
21946 /* Override any gcc2 internal prototype to avoid an error.  */
21947 #ifdef __cplusplus
21948 extern "C"
21949 {
21950 #endif
21951 /* We use char because int might match the return type of a gcc2
21952    builtin and then its argument prototype would still apply.  */
21953 char remove ();
21954 /* The GNU C library defines this for functions which it implements
21955     to always fail with ENOSYS.  Some functions are actually named
21956     something starting with __ and the normal name is an alias.  */
21957 #if defined (__stub_remove) || defined (__stub___remove)
21958 choke me
21959 #else
21960 char (*f) () = remove;
21961 #endif
21962 #ifdef __cplusplus
21963 }
21964 #endif
21965
21966 int
21967 main ()
21968 {
21969 return f != remove;
21970   ;
21971   return 0;
21972 }
21973 _ACEOF
21974 rm -f conftest.$ac_objext conftest$ac_exeext
21975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21976   (eval $ac_link) 2>&5
21977   ac_status=$?
21978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979   (exit $ac_status); } &&
21980          { ac_try='test -s conftest$ac_exeext'
21981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21982   (eval $ac_try) 2>&5
21983   ac_status=$?
21984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985   (exit $ac_status); }; }; then
21986   ac_cv_func_remove=yes
21987 else
21988   echo "$as_me: failed program was:" >&5
21989 sed 's/^/| /' conftest.$ac_ext >&5
21990
21991 ac_cv_func_remove=no
21992 fi
21993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21994 fi
21995 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
21996 echo "${ECHO_T}$ac_cv_func_remove" >&6
21997
21998     if test $ac_cv_func_remove = no; then
21999       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
22000 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
22001 if test "${ac_cv_lib_posix_remove+set}" = set; then
22002   echo $ECHO_N "(cached) $ECHO_C" >&6
22003 else
22004   ac_check_lib_save_LIBS=$LIBS
22005 LIBS="-lposix  $LIBS"
22006 cat >conftest.$ac_ext <<_ACEOF
22007 #line $LINENO "configure"
22008 /* confdefs.h.  */
22009 _ACEOF
22010 cat confdefs.h >>conftest.$ac_ext
22011 cat >>conftest.$ac_ext <<_ACEOF
22012 /* end confdefs.h.  */
22013
22014 /* Override any gcc2 internal prototype to avoid an error.  */
22015 #ifdef __cplusplus
22016 extern "C"
22017 #endif
22018 /* We use char because int might match the return type of a gcc2
22019    builtin and then its argument prototype would still apply.  */
22020 char remove ();
22021 int
22022 main ()
22023 {
22024 remove ();
22025   ;
22026   return 0;
22027 }
22028 _ACEOF
22029 rm -f conftest.$ac_objext conftest$ac_exeext
22030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22031   (eval $ac_link) 2>&5
22032   ac_status=$?
22033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034   (exit $ac_status); } &&
22035          { ac_try='test -s conftest$ac_exeext'
22036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22037   (eval $ac_try) 2>&5
22038   ac_status=$?
22039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040   (exit $ac_status); }; }; then
22041   ac_cv_lib_posix_remove=yes
22042 else
22043   echo "$as_me: failed program was:" >&5
22044 sed 's/^/| /' conftest.$ac_ext >&5
22045
22046 ac_cv_lib_posix_remove=no
22047 fi
22048 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22049 LIBS=$ac_check_lib_save_LIBS
22050 fi
22051 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
22052 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
22053 if test $ac_cv_lib_posix_remove = yes; then
22054   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
22055 fi
22056
22057     fi
22058
22059     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
22060     echo "$as_me:$LINENO: checking for shmat" >&5
22061 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
22062 if test "${ac_cv_func_shmat+set}" = set; then
22063   echo $ECHO_N "(cached) $ECHO_C" >&6
22064 else
22065   cat >conftest.$ac_ext <<_ACEOF
22066 #line $LINENO "configure"
22067 /* confdefs.h.  */
22068 _ACEOF
22069 cat confdefs.h >>conftest.$ac_ext
22070 cat >>conftest.$ac_ext <<_ACEOF
22071 /* end confdefs.h.  */
22072 /* System header to define __stub macros and hopefully few prototypes,
22073     which can conflict with char shmat (); below.
22074     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22075     <limits.h> exists even on freestanding compilers.  */
22076 #ifdef __STDC__
22077 # include <limits.h>
22078 #else
22079 # include <assert.h>
22080 #endif
22081 /* Override any gcc2 internal prototype to avoid an error.  */
22082 #ifdef __cplusplus
22083 extern "C"
22084 {
22085 #endif
22086 /* We use char because int might match the return type of a gcc2
22087    builtin and then its argument prototype would still apply.  */
22088 char shmat ();
22089 /* The GNU C library defines this for functions which it implements
22090     to always fail with ENOSYS.  Some functions are actually named
22091     something starting with __ and the normal name is an alias.  */
22092 #if defined (__stub_shmat) || defined (__stub___shmat)
22093 choke me
22094 #else
22095 char (*f) () = shmat;
22096 #endif
22097 #ifdef __cplusplus
22098 }
22099 #endif
22100
22101 int
22102 main ()
22103 {
22104 return f != shmat;
22105   ;
22106   return 0;
22107 }
22108 _ACEOF
22109 rm -f conftest.$ac_objext conftest$ac_exeext
22110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22111   (eval $ac_link) 2>&5
22112   ac_status=$?
22113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114   (exit $ac_status); } &&
22115          { ac_try='test -s conftest$ac_exeext'
22116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22117   (eval $ac_try) 2>&5
22118   ac_status=$?
22119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120   (exit $ac_status); }; }; then
22121   ac_cv_func_shmat=yes
22122 else
22123   echo "$as_me: failed program was:" >&5
22124 sed 's/^/| /' conftest.$ac_ext >&5
22125
22126 ac_cv_func_shmat=no
22127 fi
22128 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22129 fi
22130 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
22131 echo "${ECHO_T}$ac_cv_func_shmat" >&6
22132
22133     if test $ac_cv_func_shmat = no; then
22134       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
22135 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
22136 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
22137   echo $ECHO_N "(cached) $ECHO_C" >&6
22138 else
22139   ac_check_lib_save_LIBS=$LIBS
22140 LIBS="-lipc  $LIBS"
22141 cat >conftest.$ac_ext <<_ACEOF
22142 #line $LINENO "configure"
22143 /* confdefs.h.  */
22144 _ACEOF
22145 cat confdefs.h >>conftest.$ac_ext
22146 cat >>conftest.$ac_ext <<_ACEOF
22147 /* end confdefs.h.  */
22148
22149 /* Override any gcc2 internal prototype to avoid an error.  */
22150 #ifdef __cplusplus
22151 extern "C"
22152 #endif
22153 /* We use char because int might match the return type of a gcc2
22154    builtin and then its argument prototype would still apply.  */
22155 char shmat ();
22156 int
22157 main ()
22158 {
22159 shmat ();
22160   ;
22161   return 0;
22162 }
22163 _ACEOF
22164 rm -f conftest.$ac_objext conftest$ac_exeext
22165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22166   (eval $ac_link) 2>&5
22167   ac_status=$?
22168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169   (exit $ac_status); } &&
22170          { ac_try='test -s conftest$ac_exeext'
22171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22172   (eval $ac_try) 2>&5
22173   ac_status=$?
22174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22175   (exit $ac_status); }; }; then
22176   ac_cv_lib_ipc_shmat=yes
22177 else
22178   echo "$as_me: failed program was:" >&5
22179 sed 's/^/| /' conftest.$ac_ext >&5
22180
22181 ac_cv_lib_ipc_shmat=no
22182 fi
22183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22184 LIBS=$ac_check_lib_save_LIBS
22185 fi
22186 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
22187 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
22188 if test $ac_cv_lib_ipc_shmat = yes; then
22189   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
22190 fi
22191
22192     fi
22193   fi
22194
22195   # Check for libraries that X11R6 Xt/Xaw programs need.
22196   ac_save_LDFLAGS=$LDFLAGS
22197   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
22198   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
22199   # check for ICE first), but we must link in the order -lSM -lICE or
22200   # we get undefined symbols.  So assume we have SM if we have ICE.
22201   # These have to be linked with before -lX11, unlike the other
22202   # libraries we check for below, so use a different variable.
22203   # John Interrante, Karl Berry
22204   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
22205 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
22206 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
22207   echo $ECHO_N "(cached) $ECHO_C" >&6
22208 else
22209   ac_check_lib_save_LIBS=$LIBS
22210 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
22211 cat >conftest.$ac_ext <<_ACEOF
22212 #line $LINENO "configure"
22213 /* confdefs.h.  */
22214 _ACEOF
22215 cat confdefs.h >>conftest.$ac_ext
22216 cat >>conftest.$ac_ext <<_ACEOF
22217 /* end confdefs.h.  */
22218
22219 /* Override any gcc2 internal prototype to avoid an error.  */
22220 #ifdef __cplusplus
22221 extern "C"
22222 #endif
22223 /* We use char because int might match the return type of a gcc2
22224    builtin and then its argument prototype would still apply.  */
22225 char IceConnectionNumber ();
22226 int
22227 main ()
22228 {
22229 IceConnectionNumber ();
22230   ;
22231   return 0;
22232 }
22233 _ACEOF
22234 rm -f conftest.$ac_objext conftest$ac_exeext
22235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22236   (eval $ac_link) 2>&5
22237   ac_status=$?
22238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239   (exit $ac_status); } &&
22240          { ac_try='test -s conftest$ac_exeext'
22241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22242   (eval $ac_try) 2>&5
22243   ac_status=$?
22244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245   (exit $ac_status); }; }; then
22246   ac_cv_lib_ICE_IceConnectionNumber=yes
22247 else
22248   echo "$as_me: failed program was:" >&5
22249 sed 's/^/| /' conftest.$ac_ext >&5
22250
22251 ac_cv_lib_ICE_IceConnectionNumber=no
22252 fi
22253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22254 LIBS=$ac_check_lib_save_LIBS
22255 fi
22256 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
22257 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
22258 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
22259   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
22260 fi
22261
22262   LDFLAGS=$ac_save_LDFLAGS
22263
22264 fi
22265
22266
22267         if test "$no_x" = "yes"; then
22268           { { echo "$as_me:$LINENO: error: X11 not found" >&5
22269 echo "$as_me: error: X11 not found" >&2;}
22270    { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
22271         fi
22272
22273         GUI_TK_LIBRARY="$X_LIBS"
22274         TOOLKIT_INCLUDE="$X_CFLAGS"
22275         AFMINSTALL=afminstall
22276         COMPILED_X_PROGRAM=0
22277
22278         if test "$wxUSE_NANOX" = "yes"; then
22279             echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
22280 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
22281             if test "x$MICROWIN" = x ; then
22282                 echo "$as_me:$LINENO: result: not found" >&5
22283 echo "${ECHO_T}not found" >&6
22284                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
22285 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
22286    { (exit 1); exit 1; }; }
22287             else
22288                 echo "$as_me:$LINENO: result: $MICROWIN" >&5
22289 echo "${ECHO_T}$MICROWIN" >&6
22290                 cat >>confdefs.h <<\_ACEOF
22291 #define wxUSE_NANOX 1
22292 _ACEOF
22293
22294             fi
22295         fi
22296
22297         xpm_link=
22298         echo "$as_me:$LINENO: checking for Xpm library" >&5
22299 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
22300
22301 ac_find_libraries=
22302 for ac_dir in $SEARCH_LIB /usr/lib;
22303   do
22304     for ac_extension in a so sl dylib; do
22305       if test -f "$ac_dir/libXpm.$ac_extension"; then
22306         ac_find_libraries=$ac_dir
22307         break 2
22308       fi
22309     done
22310   done
22311
22312         if test "$ac_find_libraries" != "" ; then
22313
22314   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
22315   result=$?
22316   if test $result = 0; then
22317     ac_path_to_link=""
22318   else
22319     ac_path_to_link=" -L$ac_find_libraries"
22320   fi
22321
22322             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
22323             xpm_link=" -lXpm"
22324             cat >>confdefs.h <<\_ACEOF
22325 #define wxHAVE_LIB_XPM 1
22326 _ACEOF
22327
22328             echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
22329 echo "${ECHO_T}found at $ac_find_libraries" >&6
22330         else
22331             cat >conftest.$ac_ext <<_ACEOF
22332 #line $LINENO "configure"
22333 /* confdefs.h.  */
22334 _ACEOF
22335 cat confdefs.h >>conftest.$ac_ext
22336 cat >>conftest.$ac_ext <<_ACEOF
22337 /* end confdefs.h.  */
22338
22339                     #include <X11/xpm.h>
22340
22341 int
22342 main ()
22343 {
22344
22345                     int version;
22346                     version = XpmLibraryVersion();
22347
22348   ;
22349   return 0;
22350 }
22351 _ACEOF
22352 rm -f conftest.$ac_objext
22353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22354   (eval $ac_compile) 2>&5
22355   ac_status=$?
22356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357   (exit $ac_status); } &&
22358          { ac_try='test -s conftest.$ac_objext'
22359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22360   (eval $ac_try) 2>&5
22361   ac_status=$?
22362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22363   (exit $ac_status); }; }; then
22364
22365                     xpm_link=" -lXpm"
22366                     cat >>confdefs.h <<\_ACEOF
22367 #define wxHAVE_LIB_XPM 1
22368 _ACEOF
22369
22370                     echo "$as_me:$LINENO: result: found in default search path" >&5
22371 echo "${ECHO_T}found in default search path" >&6
22372                     COMPILED_X_PROGRAM=0
22373
22374 else
22375   echo "$as_me: failed program was:" >&5
22376 sed 's/^/| /' conftest.$ac_ext >&5
22377
22378
22379                     echo "$as_me:$LINENO: result: no" >&5
22380 echo "${ECHO_T}no" >&6
22381                     { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
22382 echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
22383
22384
22385 fi
22386 rm -f conftest.$ac_objext conftest.$ac_ext
22387         fi
22388
22389         echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
22390 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
22391 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
22392   echo $ECHO_N "(cached) $ECHO_C" >&6
22393 else
22394   ac_check_lib_save_LIBS=$LIBS
22395 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
22396 cat >conftest.$ac_ext <<_ACEOF
22397 #line $LINENO "configure"
22398 /* confdefs.h.  */
22399 _ACEOF
22400 cat confdefs.h >>conftest.$ac_ext
22401 cat >>conftest.$ac_ext <<_ACEOF
22402 /* end confdefs.h.  */
22403
22404 /* Override any gcc2 internal prototype to avoid an error.  */
22405 #ifdef __cplusplus
22406 extern "C"
22407 #endif
22408 /* We use char because int might match the return type of a gcc2
22409    builtin and then its argument prototype would still apply.  */
22410 char XShapeQueryExtension ();
22411 int
22412 main ()
22413 {
22414 XShapeQueryExtension ();
22415   ;
22416   return 0;
22417 }
22418 _ACEOF
22419 rm -f conftest.$ac_objext conftest$ac_exeext
22420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22421   (eval $ac_link) 2>&5
22422   ac_status=$?
22423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424   (exit $ac_status); } &&
22425          { ac_try='test -s conftest$ac_exeext'
22426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22427   (eval $ac_try) 2>&5
22428   ac_status=$?
22429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430   (exit $ac_status); }; }; then
22431   ac_cv_lib_Xext_XShapeQueryExtension=yes
22432 else
22433   echo "$as_me: failed program was:" >&5
22434 sed 's/^/| /' conftest.$ac_ext >&5
22435
22436 ac_cv_lib_Xext_XShapeQueryExtension=no
22437 fi
22438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22439 LIBS=$ac_check_lib_save_LIBS
22440 fi
22441 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
22442 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
22443 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
22444
22445                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
22446                       wxHAVE_XEXT_LIB=1
22447
22448 fi
22449
22450
22451         if test "$wxUSE_UNICODE" = "yes"; then
22452
22453   succeeded=no
22454
22455   if test -z "$PKG_CONFIG"; then
22456     # Extract the first word of "pkg-config", so it can be a program name with args.
22457 set dummy pkg-config; ac_word=$2
22458 echo "$as_me:$LINENO: checking for $ac_word" >&5
22459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22460 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22461   echo $ECHO_N "(cached) $ECHO_C" >&6
22462 else
22463   case $PKG_CONFIG in
22464   [\\/]* | ?:[\\/]*)
22465   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22466   ;;
22467   *)
22468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22469 for as_dir in $PATH
22470 do
22471   IFS=$as_save_IFS
22472   test -z "$as_dir" && as_dir=.
22473   for ac_exec_ext in '' $ac_executable_extensions; do
22474   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22475     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22477     break 2
22478   fi
22479 done
22480 done
22481
22482   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22483   ;;
22484 esac
22485 fi
22486 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22487
22488 if test -n "$PKG_CONFIG"; then
22489   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22490 echo "${ECHO_T}$PKG_CONFIG" >&6
22491 else
22492   echo "$as_me:$LINENO: result: no" >&5
22493 echo "${ECHO_T}no" >&6
22494 fi
22495
22496   fi
22497
22498   if test "$PKG_CONFIG" = "no" ; then
22499      echo "*** The pkg-config script could not be found. Make sure it is"
22500      echo "*** in your path, or set the PKG_CONFIG environment variable"
22501      echo "*** to the full path to pkg-config."
22502      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22503   else
22504      PKG_CONFIG_MIN_VERSION=0.9.0
22505      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22506         echo "$as_me:$LINENO: checking for pangox" >&5
22507 echo $ECHO_N "checking for pangox... $ECHO_C" >&6
22508
22509         if $PKG_CONFIG --exists "pangox" ; then
22510             echo "$as_me:$LINENO: result: yes" >&5
22511 echo "${ECHO_T}yes" >&6
22512             succeeded=yes
22513
22514             echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
22515 echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
22516             PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
22517             echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
22518 echo "${ECHO_T}$PANGOX_CFLAGS" >&6
22519
22520             echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
22521 echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
22522             PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
22523             echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
22524 echo "${ECHO_T}$PANGOX_LIBS" >&6
22525         else
22526             PANGOX_CFLAGS=""
22527             PANGOX_LIBS=""
22528             ## If we have a custom action on failure, don't print errors, but
22529             ## do set a variable so people can do so.
22530             PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
22531
22532         fi
22533
22534
22535
22536      else
22537         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22538         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22539      fi
22540   fi
22541
22542   if test $succeeded = yes; then
22543
22544                         CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
22545                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
22546
22547   else
22548
22549                         { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
22550 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
22551    { (exit 1); exit 1; }; }
22552
22553
22554   fi
22555
22556
22557   succeeded=no
22558
22559   if test -z "$PKG_CONFIG"; then
22560     # Extract the first word of "pkg-config", so it can be a program name with args.
22561 set dummy pkg-config; ac_word=$2
22562 echo "$as_me:$LINENO: checking for $ac_word" >&5
22563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22564 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22565   echo $ECHO_N "(cached) $ECHO_C" >&6
22566 else
22567   case $PKG_CONFIG in
22568   [\\/]* | ?:[\\/]*)
22569   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22570   ;;
22571   *)
22572   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22573 for as_dir in $PATH
22574 do
22575   IFS=$as_save_IFS
22576   test -z "$as_dir" && as_dir=.
22577   for ac_exec_ext in '' $ac_executable_extensions; do
22578   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22579     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22581     break 2
22582   fi
22583 done
22584 done
22585
22586   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22587   ;;
22588 esac
22589 fi
22590 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22591
22592 if test -n "$PKG_CONFIG"; then
22593   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22594 echo "${ECHO_T}$PKG_CONFIG" >&6
22595 else
22596   echo "$as_me:$LINENO: result: no" >&5
22597 echo "${ECHO_T}no" >&6
22598 fi
22599
22600   fi
22601
22602   if test "$PKG_CONFIG" = "no" ; then
22603      echo "*** The pkg-config script could not be found. Make sure it is"
22604      echo "*** in your path, or set the PKG_CONFIG environment variable"
22605      echo "*** to the full path to pkg-config."
22606      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22607   else
22608      PKG_CONFIG_MIN_VERSION=0.9.0
22609      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22610         echo "$as_me:$LINENO: checking for pangoft2" >&5
22611 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
22612
22613         if $PKG_CONFIG --exists "pangoft2" ; then
22614             echo "$as_me:$LINENO: result: yes" >&5
22615 echo "${ECHO_T}yes" >&6
22616             succeeded=yes
22617
22618             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22619 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
22620             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
22621             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22622 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
22623
22624             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22625 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
22626             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
22627             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22628 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
22629         else
22630             PANGOFT2_CFLAGS=""
22631             PANGOFT2_LIBS=""
22632             ## If we have a custom action on failure, don't print errors, but
22633             ## do set a variable so people can do so.
22634             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
22635
22636         fi
22637
22638
22639
22640      else
22641         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22642         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22643      fi
22644   fi
22645
22646   if test $succeeded = yes; then
22647
22648                         CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
22649                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
22650
22651   else
22652
22653                         { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22654 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
22655                         wxUSE_PRINTING_ARCHITECTURE="no"
22656
22657
22658   fi
22659
22660
22661   succeeded=no
22662
22663   if test -z "$PKG_CONFIG"; then
22664     # Extract the first word of "pkg-config", so it can be a program name with args.
22665 set dummy pkg-config; ac_word=$2
22666 echo "$as_me:$LINENO: checking for $ac_word" >&5
22667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22668 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22669   echo $ECHO_N "(cached) $ECHO_C" >&6
22670 else
22671   case $PKG_CONFIG in
22672   [\\/]* | ?:[\\/]*)
22673   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22674   ;;
22675   *)
22676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22677 for as_dir in $PATH
22678 do
22679   IFS=$as_save_IFS
22680   test -z "$as_dir" && as_dir=.
22681   for ac_exec_ext in '' $ac_executable_extensions; do
22682   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22683     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22685     break 2
22686   fi
22687 done
22688 done
22689
22690   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22691   ;;
22692 esac
22693 fi
22694 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22695
22696 if test -n "$PKG_CONFIG"; then
22697   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22698 echo "${ECHO_T}$PKG_CONFIG" >&6
22699 else
22700   echo "$as_me:$LINENO: result: no" >&5
22701 echo "${ECHO_T}no" >&6
22702 fi
22703
22704   fi
22705
22706   if test "$PKG_CONFIG" = "no" ; then
22707      echo "*** The pkg-config script could not be found. Make sure it is"
22708      echo "*** in your path, or set the PKG_CONFIG environment variable"
22709      echo "*** to the full path to pkg-config."
22710      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22711   else
22712      PKG_CONFIG_MIN_VERSION=0.9.0
22713      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22714         echo "$as_me:$LINENO: checking for pangoxft" >&5
22715 echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
22716
22717         if $PKG_CONFIG --exists "pangoxft" ; then
22718             echo "$as_me:$LINENO: result: yes" >&5
22719 echo "${ECHO_T}yes" >&6
22720             succeeded=yes
22721
22722             echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
22723 echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
22724             PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
22725             echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
22726 echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
22727
22728             echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
22729 echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
22730             PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
22731             echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
22732 echo "${ECHO_T}$PANGOXFT_LIBS" >&6
22733         else
22734             PANGOXFT_CFLAGS=""
22735             PANGOXFT_LIBS=""
22736             ## If we have a custom action on failure, don't print errors, but
22737             ## do set a variable so people can do so.
22738             PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
22739
22740         fi
22741
22742
22743
22744      else
22745         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22746         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22747      fi
22748   fi
22749
22750   if test $succeeded = yes; then
22751
22752                         CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
22753                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
22754
22755   else
22756
22757                         { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
22758 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
22759
22760
22761   fi
22762
22763         fi
22764
22765         wxUSE_UNIVERSAL="yes"
22766
22767         if test "$wxUSE_NANOX" = "yes"; then
22768             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
22769             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"
22770             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
22771         else
22772             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
22773         fi
22774
22775         TOOLKIT_VPATH="\${top_srcdir}/src/x11"
22776         TOOLKIT=X11
22777         GUIDIST=X11_DIST
22778     fi
22779
22780     if test "$wxUSE_MOTIF" = 1; then
22781                         if test "$no_x" = yes; then
22782   # Not all programs may use this symbol, but it does not hurt to define it.
22783
22784 cat >>confdefs.h <<\_ACEOF
22785 #define X_DISPLAY_MISSING 1
22786 _ACEOF
22787
22788   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22789 else
22790   if test -n "$x_includes"; then
22791     X_CFLAGS="$X_CFLAGS -I$x_includes"
22792   fi
22793
22794   # It would also be nice to do this for all -L options, not just this one.
22795   if test -n "$x_libraries"; then
22796     X_LIBS="$X_LIBS -L$x_libraries"
22797     # For Solaris; some versions of Sun CC require a space after -R and
22798     # others require no space.  Words are not sufficient . . . .
22799     case `(uname -sr) 2>/dev/null` in
22800     "SunOS 5"*)
22801       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22802 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
22803       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22804       cat >conftest.$ac_ext <<_ACEOF
22805 #line $LINENO "configure"
22806 /* confdefs.h.  */
22807 _ACEOF
22808 cat confdefs.h >>conftest.$ac_ext
22809 cat >>conftest.$ac_ext <<_ACEOF
22810 /* end confdefs.h.  */
22811
22812 int
22813 main ()
22814 {
22815
22816   ;
22817   return 0;
22818 }
22819 _ACEOF
22820 rm -f conftest.$ac_objext conftest$ac_exeext
22821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22822   (eval $ac_link) 2>&5
22823   ac_status=$?
22824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825   (exit $ac_status); } &&
22826          { ac_try='test -s conftest$ac_exeext'
22827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22828   (eval $ac_try) 2>&5
22829   ac_status=$?
22830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831   (exit $ac_status); }; }; then
22832   ac_R_nospace=yes
22833 else
22834   echo "$as_me: failed program was:" >&5
22835 sed 's/^/| /' conftest.$ac_ext >&5
22836
22837 ac_R_nospace=no
22838 fi
22839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22840       if test $ac_R_nospace = yes; then
22841         echo "$as_me:$LINENO: result: no" >&5
22842 echo "${ECHO_T}no" >&6
22843         X_LIBS="$X_LIBS -R$x_libraries"
22844       else
22845         LIBS="$ac_xsave_LIBS -R $x_libraries"
22846         cat >conftest.$ac_ext <<_ACEOF
22847 #line $LINENO "configure"
22848 /* confdefs.h.  */
22849 _ACEOF
22850 cat confdefs.h >>conftest.$ac_ext
22851 cat >>conftest.$ac_ext <<_ACEOF
22852 /* end confdefs.h.  */
22853
22854 int
22855 main ()
22856 {
22857
22858   ;
22859   return 0;
22860 }
22861 _ACEOF
22862 rm -f conftest.$ac_objext conftest$ac_exeext
22863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22864   (eval $ac_link) 2>&5
22865   ac_status=$?
22866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867   (exit $ac_status); } &&
22868          { ac_try='test -s conftest$ac_exeext'
22869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22870   (eval $ac_try) 2>&5
22871   ac_status=$?
22872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873   (exit $ac_status); }; }; then
22874   ac_R_space=yes
22875 else
22876   echo "$as_me: failed program was:" >&5
22877 sed 's/^/| /' conftest.$ac_ext >&5
22878
22879 ac_R_space=no
22880 fi
22881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22882         if test $ac_R_space = yes; then
22883           echo "$as_me:$LINENO: result: yes" >&5
22884 echo "${ECHO_T}yes" >&6
22885           X_LIBS="$X_LIBS -R $x_libraries"
22886         else
22887           echo "$as_me:$LINENO: result: neither works" >&5
22888 echo "${ECHO_T}neither works" >&6
22889         fi
22890       fi
22891       LIBS=$ac_xsave_LIBS
22892     esac
22893   fi
22894
22895   # Check for system-dependent libraries X programs must link with.
22896   # Do this before checking for the system-independent R6 libraries
22897   # (-lICE), since we may need -lsocket or whatever for X linking.
22898
22899   if test "$ISC" = yes; then
22900     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22901   else
22902     # Martyn Johnson says this is needed for Ultrix, if the X
22903     # libraries were built with DECnet support.  And Karl Berry says
22904     # the Alpha needs dnet_stub (dnet does not exist).
22905     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22906     cat >conftest.$ac_ext <<_ACEOF
22907 #line $LINENO "configure"
22908 /* confdefs.h.  */
22909 _ACEOF
22910 cat confdefs.h >>conftest.$ac_ext
22911 cat >>conftest.$ac_ext <<_ACEOF
22912 /* end confdefs.h.  */
22913
22914 /* Override any gcc2 internal prototype to avoid an error.  */
22915 #ifdef __cplusplus
22916 extern "C"
22917 #endif
22918 /* We use char because int might match the return type of a gcc2
22919    builtin and then its argument prototype would still apply.  */
22920 char XOpenDisplay ();
22921 int
22922 main ()
22923 {
22924 XOpenDisplay ();
22925   ;
22926   return 0;
22927 }
22928 _ACEOF
22929 rm -f conftest.$ac_objext conftest$ac_exeext
22930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22931   (eval $ac_link) 2>&5
22932   ac_status=$?
22933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934   (exit $ac_status); } &&
22935          { ac_try='test -s conftest$ac_exeext'
22936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22937   (eval $ac_try) 2>&5
22938   ac_status=$?
22939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940   (exit $ac_status); }; }; then
22941   :
22942 else
22943   echo "$as_me: failed program was:" >&5
22944 sed 's/^/| /' conftest.$ac_ext >&5
22945
22946 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
22947 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
22948 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
22949   echo $ECHO_N "(cached) $ECHO_C" >&6
22950 else
22951   ac_check_lib_save_LIBS=$LIBS
22952 LIBS="-ldnet  $LIBS"
22953 cat >conftest.$ac_ext <<_ACEOF
22954 #line $LINENO "configure"
22955 /* confdefs.h.  */
22956 _ACEOF
22957 cat confdefs.h >>conftest.$ac_ext
22958 cat >>conftest.$ac_ext <<_ACEOF
22959 /* end confdefs.h.  */
22960
22961 /* Override any gcc2 internal prototype to avoid an error.  */
22962 #ifdef __cplusplus
22963 extern "C"
22964 #endif
22965 /* We use char because int might match the return type of a gcc2
22966    builtin and then its argument prototype would still apply.  */
22967 char dnet_ntoa ();
22968 int
22969 main ()
22970 {
22971 dnet_ntoa ();
22972   ;
22973   return 0;
22974 }
22975 _ACEOF
22976 rm -f conftest.$ac_objext conftest$ac_exeext
22977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22978   (eval $ac_link) 2>&5
22979   ac_status=$?
22980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22981   (exit $ac_status); } &&
22982          { ac_try='test -s conftest$ac_exeext'
22983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22984   (eval $ac_try) 2>&5
22985   ac_status=$?
22986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22987   (exit $ac_status); }; }; then
22988   ac_cv_lib_dnet_dnet_ntoa=yes
22989 else
22990   echo "$as_me: failed program was:" >&5
22991 sed 's/^/| /' conftest.$ac_ext >&5
22992
22993 ac_cv_lib_dnet_dnet_ntoa=no
22994 fi
22995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22996 LIBS=$ac_check_lib_save_LIBS
22997 fi
22998 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
22999 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
23000 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
23001   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23002 fi
23003
23004     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23005       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23006 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23007 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23008   echo $ECHO_N "(cached) $ECHO_C" >&6
23009 else
23010   ac_check_lib_save_LIBS=$LIBS
23011 LIBS="-ldnet_stub  $LIBS"
23012 cat >conftest.$ac_ext <<_ACEOF
23013 #line $LINENO "configure"
23014 /* confdefs.h.  */
23015 _ACEOF
23016 cat confdefs.h >>conftest.$ac_ext
23017 cat >>conftest.$ac_ext <<_ACEOF
23018 /* end confdefs.h.  */
23019
23020 /* Override any gcc2 internal prototype to avoid an error.  */
23021 #ifdef __cplusplus
23022 extern "C"
23023 #endif
23024 /* We use char because int might match the return type of a gcc2
23025    builtin and then its argument prototype would still apply.  */
23026 char dnet_ntoa ();
23027 int
23028 main ()
23029 {
23030 dnet_ntoa ();
23031   ;
23032   return 0;
23033 }
23034 _ACEOF
23035 rm -f conftest.$ac_objext conftest$ac_exeext
23036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23037   (eval $ac_link) 2>&5
23038   ac_status=$?
23039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23040   (exit $ac_status); } &&
23041          { ac_try='test -s conftest$ac_exeext'
23042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23043   (eval $ac_try) 2>&5
23044   ac_status=$?
23045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23046   (exit $ac_status); }; }; then
23047   ac_cv_lib_dnet_stub_dnet_ntoa=yes
23048 else
23049   echo "$as_me: failed program was:" >&5
23050 sed 's/^/| /' conftest.$ac_ext >&5
23051
23052 ac_cv_lib_dnet_stub_dnet_ntoa=no
23053 fi
23054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23055 LIBS=$ac_check_lib_save_LIBS
23056 fi
23057 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23058 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23059 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
23060   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23061 fi
23062
23063     fi
23064 fi
23065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23066     LIBS="$ac_xsave_LIBS"
23067
23068     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23069     # to get the SysV transport functions.
23070     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23071     # needs -lnsl.
23072     # The nsl library prevents programs from opening the X display
23073     # on Irix 5.2, according to T.E. Dickey.
23074     # The functions gethostbyname, getservbyname, and inet_addr are
23075     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23076     echo "$as_me:$LINENO: checking for gethostbyname" >&5
23077 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23078 if test "${ac_cv_func_gethostbyname+set}" = set; then
23079   echo $ECHO_N "(cached) $ECHO_C" >&6
23080 else
23081   cat >conftest.$ac_ext <<_ACEOF
23082 #line $LINENO "configure"
23083 /* confdefs.h.  */
23084 _ACEOF
23085 cat confdefs.h >>conftest.$ac_ext
23086 cat >>conftest.$ac_ext <<_ACEOF
23087 /* end confdefs.h.  */
23088 /* System header to define __stub macros and hopefully few prototypes,
23089     which can conflict with char gethostbyname (); below.
23090     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23091     <limits.h> exists even on freestanding compilers.  */
23092 #ifdef __STDC__
23093 # include <limits.h>
23094 #else
23095 # include <assert.h>
23096 #endif
23097 /* Override any gcc2 internal prototype to avoid an error.  */
23098 #ifdef __cplusplus
23099 extern "C"
23100 {
23101 #endif
23102 /* We use char because int might match the return type of a gcc2
23103    builtin and then its argument prototype would still apply.  */
23104 char gethostbyname ();
23105 /* The GNU C library defines this for functions which it implements
23106     to always fail with ENOSYS.  Some functions are actually named
23107     something starting with __ and the normal name is an alias.  */
23108 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23109 choke me
23110 #else
23111 char (*f) () = gethostbyname;
23112 #endif
23113 #ifdef __cplusplus
23114 }
23115 #endif
23116
23117 int
23118 main ()
23119 {
23120 return f != gethostbyname;
23121   ;
23122   return 0;
23123 }
23124 _ACEOF
23125 rm -f conftest.$ac_objext conftest$ac_exeext
23126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23127   (eval $ac_link) 2>&5
23128   ac_status=$?
23129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23130   (exit $ac_status); } &&
23131          { ac_try='test -s conftest$ac_exeext'
23132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23133   (eval $ac_try) 2>&5
23134   ac_status=$?
23135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136   (exit $ac_status); }; }; then
23137   ac_cv_func_gethostbyname=yes
23138 else
23139   echo "$as_me: failed program was:" >&5
23140 sed 's/^/| /' conftest.$ac_ext >&5
23141
23142 ac_cv_func_gethostbyname=no
23143 fi
23144 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23145 fi
23146 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23147 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
23148
23149     if test $ac_cv_func_gethostbyname = no; then
23150       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23151 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23152 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23153   echo $ECHO_N "(cached) $ECHO_C" >&6
23154 else
23155   ac_check_lib_save_LIBS=$LIBS
23156 LIBS="-lnsl  $LIBS"
23157 cat >conftest.$ac_ext <<_ACEOF
23158 #line $LINENO "configure"
23159 /* confdefs.h.  */
23160 _ACEOF
23161 cat confdefs.h >>conftest.$ac_ext
23162 cat >>conftest.$ac_ext <<_ACEOF
23163 /* end confdefs.h.  */
23164
23165 /* Override any gcc2 internal prototype to avoid an error.  */
23166 #ifdef __cplusplus
23167 extern "C"
23168 #endif
23169 /* We use char because int might match the return type of a gcc2
23170    builtin and then its argument prototype would still apply.  */
23171 char gethostbyname ();
23172 int
23173 main ()
23174 {
23175 gethostbyname ();
23176   ;
23177   return 0;
23178 }
23179 _ACEOF
23180 rm -f conftest.$ac_objext conftest$ac_exeext
23181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23182   (eval $ac_link) 2>&5
23183   ac_status=$?
23184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185   (exit $ac_status); } &&
23186          { ac_try='test -s conftest$ac_exeext'
23187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23188   (eval $ac_try) 2>&5
23189   ac_status=$?
23190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23191   (exit $ac_status); }; }; then
23192   ac_cv_lib_nsl_gethostbyname=yes
23193 else
23194   echo "$as_me: failed program was:" >&5
23195 sed 's/^/| /' conftest.$ac_ext >&5
23196
23197 ac_cv_lib_nsl_gethostbyname=no
23198 fi
23199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23200 LIBS=$ac_check_lib_save_LIBS
23201 fi
23202 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23203 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23204 if test $ac_cv_lib_nsl_gethostbyname = yes; then
23205   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
23206 fi
23207
23208       if test $ac_cv_lib_nsl_gethostbyname = no; then
23209         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23210 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23211 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23212   echo $ECHO_N "(cached) $ECHO_C" >&6
23213 else
23214   ac_check_lib_save_LIBS=$LIBS
23215 LIBS="-lbsd  $LIBS"
23216 cat >conftest.$ac_ext <<_ACEOF
23217 #line $LINENO "configure"
23218 /* confdefs.h.  */
23219 _ACEOF
23220 cat confdefs.h >>conftest.$ac_ext
23221 cat >>conftest.$ac_ext <<_ACEOF
23222 /* end confdefs.h.  */
23223
23224 /* Override any gcc2 internal prototype to avoid an error.  */
23225 #ifdef __cplusplus
23226 extern "C"
23227 #endif
23228 /* We use char because int might match the return type of a gcc2
23229    builtin and then its argument prototype would still apply.  */
23230 char gethostbyname ();
23231 int
23232 main ()
23233 {
23234 gethostbyname ();
23235   ;
23236   return 0;
23237 }
23238 _ACEOF
23239 rm -f conftest.$ac_objext conftest$ac_exeext
23240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23241   (eval $ac_link) 2>&5
23242   ac_status=$?
23243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23244   (exit $ac_status); } &&
23245          { ac_try='test -s conftest$ac_exeext'
23246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23247   (eval $ac_try) 2>&5
23248   ac_status=$?
23249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23250   (exit $ac_status); }; }; then
23251   ac_cv_lib_bsd_gethostbyname=yes
23252 else
23253   echo "$as_me: failed program was:" >&5
23254 sed 's/^/| /' conftest.$ac_ext >&5
23255
23256 ac_cv_lib_bsd_gethostbyname=no
23257 fi
23258 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23259 LIBS=$ac_check_lib_save_LIBS
23260 fi
23261 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23262 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
23263 if test $ac_cv_lib_bsd_gethostbyname = yes; then
23264   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
23265 fi
23266
23267       fi
23268     fi
23269
23270     # lieder@skyler.mavd.honeywell.com says without -lsocket,
23271     # socket/setsockopt and other routines are undefined under SCO ODT
23272     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
23273     # on later versions), says Simon Leinen: it contains gethostby*
23274     # variants that don't use the name server (or something).  -lsocket
23275     # must be given before -lnsl if both are needed.  We assume that
23276     # if connect needs -lnsl, so does gethostbyname.
23277     echo "$as_me:$LINENO: checking for connect" >&5
23278 echo $ECHO_N "checking for connect... $ECHO_C" >&6
23279 if test "${ac_cv_func_connect+set}" = set; then
23280   echo $ECHO_N "(cached) $ECHO_C" >&6
23281 else
23282   cat >conftest.$ac_ext <<_ACEOF
23283 #line $LINENO "configure"
23284 /* confdefs.h.  */
23285 _ACEOF
23286 cat confdefs.h >>conftest.$ac_ext
23287 cat >>conftest.$ac_ext <<_ACEOF
23288 /* end confdefs.h.  */
23289 /* System header to define __stub macros and hopefully few prototypes,
23290     which can conflict with char connect (); below.
23291     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23292     <limits.h> exists even on freestanding compilers.  */
23293 #ifdef __STDC__
23294 # include <limits.h>
23295 #else
23296 # include <assert.h>
23297 #endif
23298 /* Override any gcc2 internal prototype to avoid an error.  */
23299 #ifdef __cplusplus
23300 extern "C"
23301 {
23302 #endif
23303 /* We use char because int might match the return type of a gcc2
23304    builtin and then its argument prototype would still apply.  */
23305 char connect ();
23306 /* The GNU C library defines this for functions which it implements
23307     to always fail with ENOSYS.  Some functions are actually named
23308     something starting with __ and the normal name is an alias.  */
23309 #if defined (__stub_connect) || defined (__stub___connect)
23310 choke me
23311 #else
23312 char (*f) () = connect;
23313 #endif
23314 #ifdef __cplusplus
23315 }
23316 #endif
23317
23318 int
23319 main ()
23320 {
23321 return f != connect;
23322   ;
23323   return 0;
23324 }
23325 _ACEOF
23326 rm -f conftest.$ac_objext conftest$ac_exeext
23327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23328   (eval $ac_link) 2>&5
23329   ac_status=$?
23330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331   (exit $ac_status); } &&
23332          { ac_try='test -s conftest$ac_exeext'
23333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23334   (eval $ac_try) 2>&5
23335   ac_status=$?
23336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337   (exit $ac_status); }; }; then
23338   ac_cv_func_connect=yes
23339 else
23340   echo "$as_me: failed program was:" >&5
23341 sed 's/^/| /' conftest.$ac_ext >&5
23342
23343 ac_cv_func_connect=no
23344 fi
23345 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23346 fi
23347 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23348 echo "${ECHO_T}$ac_cv_func_connect" >&6
23349
23350     if test $ac_cv_func_connect = no; then
23351       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23352 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
23353 if test "${ac_cv_lib_socket_connect+set}" = set; then
23354   echo $ECHO_N "(cached) $ECHO_C" >&6
23355 else
23356   ac_check_lib_save_LIBS=$LIBS
23357 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
23358 cat >conftest.$ac_ext <<_ACEOF
23359 #line $LINENO "configure"
23360 /* confdefs.h.  */
23361 _ACEOF
23362 cat confdefs.h >>conftest.$ac_ext
23363 cat >>conftest.$ac_ext <<_ACEOF
23364 /* end confdefs.h.  */
23365
23366 /* Override any gcc2 internal prototype to avoid an error.  */
23367 #ifdef __cplusplus
23368 extern "C"
23369 #endif
23370 /* We use char because int might match the return type of a gcc2
23371    builtin and then its argument prototype would still apply.  */
23372 char connect ();
23373 int
23374 main ()
23375 {
23376 connect ();
23377   ;
23378   return 0;
23379 }
23380 _ACEOF
23381 rm -f conftest.$ac_objext conftest$ac_exeext
23382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23383   (eval $ac_link) 2>&5
23384   ac_status=$?
23385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23386   (exit $ac_status); } &&
23387          { ac_try='test -s conftest$ac_exeext'
23388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23389   (eval $ac_try) 2>&5
23390   ac_status=$?
23391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23392   (exit $ac_status); }; }; then
23393   ac_cv_lib_socket_connect=yes
23394 else
23395   echo "$as_me: failed program was:" >&5
23396 sed 's/^/| /' conftest.$ac_ext >&5
23397
23398 ac_cv_lib_socket_connect=no
23399 fi
23400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23401 LIBS=$ac_check_lib_save_LIBS
23402 fi
23403 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23404 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23405 if test $ac_cv_lib_socket_connect = yes; then
23406   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
23407 fi
23408
23409     fi
23410
23411     # Guillermo Gomez says -lposix is necessary on A/UX.
23412     echo "$as_me:$LINENO: checking for remove" >&5
23413 echo $ECHO_N "checking for remove... $ECHO_C" >&6
23414 if test "${ac_cv_func_remove+set}" = set; then
23415   echo $ECHO_N "(cached) $ECHO_C" >&6
23416 else
23417   cat >conftest.$ac_ext <<_ACEOF
23418 #line $LINENO "configure"
23419 /* confdefs.h.  */
23420 _ACEOF
23421 cat confdefs.h >>conftest.$ac_ext
23422 cat >>conftest.$ac_ext <<_ACEOF
23423 /* end confdefs.h.  */
23424 /* System header to define __stub macros and hopefully few prototypes,
23425     which can conflict with char remove (); below.
23426     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23427     <limits.h> exists even on freestanding compilers.  */
23428 #ifdef __STDC__
23429 # include <limits.h>
23430 #else
23431 # include <assert.h>
23432 #endif
23433 /* Override any gcc2 internal prototype to avoid an error.  */
23434 #ifdef __cplusplus
23435 extern "C"
23436 {
23437 #endif
23438 /* We use char because int might match the return type of a gcc2
23439    builtin and then its argument prototype would still apply.  */
23440 char remove ();
23441 /* The GNU C library defines this for functions which it implements
23442     to always fail with ENOSYS.  Some functions are actually named
23443     something starting with __ and the normal name is an alias.  */
23444 #if defined (__stub_remove) || defined (__stub___remove)
23445 choke me
23446 #else
23447 char (*f) () = remove;
23448 #endif
23449 #ifdef __cplusplus
23450 }
23451 #endif
23452
23453 int
23454 main ()
23455 {
23456 return f != remove;
23457   ;
23458   return 0;
23459 }
23460 _ACEOF
23461 rm -f conftest.$ac_objext conftest$ac_exeext
23462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23463   (eval $ac_link) 2>&5
23464   ac_status=$?
23465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23466   (exit $ac_status); } &&
23467          { ac_try='test -s conftest$ac_exeext'
23468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23469   (eval $ac_try) 2>&5
23470   ac_status=$?
23471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23472   (exit $ac_status); }; }; then
23473   ac_cv_func_remove=yes
23474 else
23475   echo "$as_me: failed program was:" >&5
23476 sed 's/^/| /' conftest.$ac_ext >&5
23477
23478 ac_cv_func_remove=no
23479 fi
23480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23481 fi
23482 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23483 echo "${ECHO_T}$ac_cv_func_remove" >&6
23484
23485     if test $ac_cv_func_remove = no; then
23486       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23487 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23488 if test "${ac_cv_lib_posix_remove+set}" = set; then
23489   echo $ECHO_N "(cached) $ECHO_C" >&6
23490 else
23491   ac_check_lib_save_LIBS=$LIBS
23492 LIBS="-lposix  $LIBS"
23493 cat >conftest.$ac_ext <<_ACEOF
23494 #line $LINENO "configure"
23495 /* confdefs.h.  */
23496 _ACEOF
23497 cat confdefs.h >>conftest.$ac_ext
23498 cat >>conftest.$ac_ext <<_ACEOF
23499 /* end confdefs.h.  */
23500
23501 /* Override any gcc2 internal prototype to avoid an error.  */
23502 #ifdef __cplusplus
23503 extern "C"
23504 #endif
23505 /* We use char because int might match the return type of a gcc2
23506    builtin and then its argument prototype would still apply.  */
23507 char remove ();
23508 int
23509 main ()
23510 {
23511 remove ();
23512   ;
23513   return 0;
23514 }
23515 _ACEOF
23516 rm -f conftest.$ac_objext conftest$ac_exeext
23517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23518   (eval $ac_link) 2>&5
23519   ac_status=$?
23520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521   (exit $ac_status); } &&
23522          { ac_try='test -s conftest$ac_exeext'
23523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23524   (eval $ac_try) 2>&5
23525   ac_status=$?
23526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527   (exit $ac_status); }; }; then
23528   ac_cv_lib_posix_remove=yes
23529 else
23530   echo "$as_me: failed program was:" >&5
23531 sed 's/^/| /' conftest.$ac_ext >&5
23532
23533 ac_cv_lib_posix_remove=no
23534 fi
23535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23536 LIBS=$ac_check_lib_save_LIBS
23537 fi
23538 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23539 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23540 if test $ac_cv_lib_posix_remove = yes; then
23541   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
23542 fi
23543
23544     fi
23545
23546     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
23547     echo "$as_me:$LINENO: checking for shmat" >&5
23548 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23549 if test "${ac_cv_func_shmat+set}" = set; then
23550   echo $ECHO_N "(cached) $ECHO_C" >&6
23551 else
23552   cat >conftest.$ac_ext <<_ACEOF
23553 #line $LINENO "configure"
23554 /* confdefs.h.  */
23555 _ACEOF
23556 cat confdefs.h >>conftest.$ac_ext
23557 cat >>conftest.$ac_ext <<_ACEOF
23558 /* end confdefs.h.  */
23559 /* System header to define __stub macros and hopefully few prototypes,
23560     which can conflict with char shmat (); below.
23561     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23562     <limits.h> exists even on freestanding compilers.  */
23563 #ifdef __STDC__
23564 # include <limits.h>
23565 #else
23566 # include <assert.h>
23567 #endif
23568 /* Override any gcc2 internal prototype to avoid an error.  */
23569 #ifdef __cplusplus
23570 extern "C"
23571 {
23572 #endif
23573 /* We use char because int might match the return type of a gcc2
23574    builtin and then its argument prototype would still apply.  */
23575 char shmat ();
23576 /* The GNU C library defines this for functions which it implements
23577     to always fail with ENOSYS.  Some functions are actually named
23578     something starting with __ and the normal name is an alias.  */
23579 #if defined (__stub_shmat) || defined (__stub___shmat)
23580 choke me
23581 #else
23582 char (*f) () = shmat;
23583 #endif
23584 #ifdef __cplusplus
23585 }
23586 #endif
23587
23588 int
23589 main ()
23590 {
23591 return f != shmat;
23592   ;
23593   return 0;
23594 }
23595 _ACEOF
23596 rm -f conftest.$ac_objext conftest$ac_exeext
23597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23598   (eval $ac_link) 2>&5
23599   ac_status=$?
23600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23601   (exit $ac_status); } &&
23602          { ac_try='test -s conftest$ac_exeext'
23603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23604   (eval $ac_try) 2>&5
23605   ac_status=$?
23606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607   (exit $ac_status); }; }; then
23608   ac_cv_func_shmat=yes
23609 else
23610   echo "$as_me: failed program was:" >&5
23611 sed 's/^/| /' conftest.$ac_ext >&5
23612
23613 ac_cv_func_shmat=no
23614 fi
23615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23616 fi
23617 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23618 echo "${ECHO_T}$ac_cv_func_shmat" >&6
23619
23620     if test $ac_cv_func_shmat = no; then
23621       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23622 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23623 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23624   echo $ECHO_N "(cached) $ECHO_C" >&6
23625 else
23626   ac_check_lib_save_LIBS=$LIBS
23627 LIBS="-lipc  $LIBS"
23628 cat >conftest.$ac_ext <<_ACEOF
23629 #line $LINENO "configure"
23630 /* confdefs.h.  */
23631 _ACEOF
23632 cat confdefs.h >>conftest.$ac_ext
23633 cat >>conftest.$ac_ext <<_ACEOF
23634 /* end confdefs.h.  */
23635
23636 /* Override any gcc2 internal prototype to avoid an error.  */
23637 #ifdef __cplusplus
23638 extern "C"
23639 #endif
23640 /* We use char because int might match the return type of a gcc2
23641    builtin and then its argument prototype would still apply.  */
23642 char shmat ();
23643 int
23644 main ()
23645 {
23646 shmat ();
23647   ;
23648   return 0;
23649 }
23650 _ACEOF
23651 rm -f conftest.$ac_objext conftest$ac_exeext
23652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23653   (eval $ac_link) 2>&5
23654   ac_status=$?
23655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656   (exit $ac_status); } &&
23657          { ac_try='test -s conftest$ac_exeext'
23658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23659   (eval $ac_try) 2>&5
23660   ac_status=$?
23661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23662   (exit $ac_status); }; }; then
23663   ac_cv_lib_ipc_shmat=yes
23664 else
23665   echo "$as_me: failed program was:" >&5
23666 sed 's/^/| /' conftest.$ac_ext >&5
23667
23668 ac_cv_lib_ipc_shmat=no
23669 fi
23670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23671 LIBS=$ac_check_lib_save_LIBS
23672 fi
23673 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23674 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23675 if test $ac_cv_lib_ipc_shmat = yes; then
23676   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
23677 fi
23678
23679     fi
23680   fi
23681
23682   # Check for libraries that X11R6 Xt/Xaw programs need.
23683   ac_save_LDFLAGS=$LDFLAGS
23684   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23685   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23686   # check for ICE first), but we must link in the order -lSM -lICE or
23687   # we get undefined symbols.  So assume we have SM if we have ICE.
23688   # These have to be linked with before -lX11, unlike the other
23689   # libraries we check for below, so use a different variable.
23690   # John Interrante, Karl Berry
23691   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23692 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23693 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23694   echo $ECHO_N "(cached) $ECHO_C" >&6
23695 else
23696   ac_check_lib_save_LIBS=$LIBS
23697 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
23698 cat >conftest.$ac_ext <<_ACEOF
23699 #line $LINENO "configure"
23700 /* confdefs.h.  */
23701 _ACEOF
23702 cat confdefs.h >>conftest.$ac_ext
23703 cat >>conftest.$ac_ext <<_ACEOF
23704 /* end confdefs.h.  */
23705
23706 /* Override any gcc2 internal prototype to avoid an error.  */
23707 #ifdef __cplusplus
23708 extern "C"
23709 #endif
23710 /* We use char because int might match the return type of a gcc2
23711    builtin and then its argument prototype would still apply.  */
23712 char IceConnectionNumber ();
23713 int
23714 main ()
23715 {
23716 IceConnectionNumber ();
23717   ;
23718   return 0;
23719 }
23720 _ACEOF
23721 rm -f conftest.$ac_objext conftest$ac_exeext
23722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23723   (eval $ac_link) 2>&5
23724   ac_status=$?
23725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726   (exit $ac_status); } &&
23727          { ac_try='test -s conftest$ac_exeext'
23728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23729   (eval $ac_try) 2>&5
23730   ac_status=$?
23731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23732   (exit $ac_status); }; }; then
23733   ac_cv_lib_ICE_IceConnectionNumber=yes
23734 else
23735   echo "$as_me: failed program was:" >&5
23736 sed 's/^/| /' conftest.$ac_ext >&5
23737
23738 ac_cv_lib_ICE_IceConnectionNumber=no
23739 fi
23740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23741 LIBS=$ac_check_lib_save_LIBS
23742 fi
23743 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23744 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
23745 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
23746   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
23747 fi
23748
23749   LDFLAGS=$ac_save_LDFLAGS
23750
23751 fi
23752
23753
23754         if test "$no_x" = "yes"; then
23755           { { echo "$as_me:$LINENO: error: X11 not found" >&5
23756 echo "$as_me: error: X11 not found" >&2;}
23757    { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
23758         fi
23759
23760                         GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
23761         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
23762         AFMINSTALL=afminstall
23763         COMPILED_X_PROGRAM=0
23764
23765         echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
23766 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
23767
23768 ac_find_includes=
23769 for ac_dir in $SEARCH_INCLUDE /usr/include;
23770   do
23771     if test -f "$ac_dir/Xm/Xm.h"; then
23772       ac_find_includes=$ac_dir
23773       break
23774     fi
23775   done
23776
23777         if test "$ac_find_includes" != "" ; then
23778             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
23779 echo "${ECHO_T}found in $ac_find_includes" >&6
23780
23781     if test "x$ac_find_includes" = "x/usr/include"; then
23782     ac_path_to_include=""
23783   else
23784     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
23785     result=$?
23786     if test $result = 0; then
23787       ac_path_to_include=""
23788     else
23789       ac_path_to_include=" -I$ac_find_includes"
23790     fi
23791   fi
23792
23793             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
23794         else
23795             cat >conftest.$ac_ext <<_ACEOF
23796 #line $LINENO "configure"
23797 /* confdefs.h.  */
23798 _ACEOF
23799 cat confdefs.h >>conftest.$ac_ext
23800 cat >>conftest.$ac_ext <<_ACEOF
23801 /* end confdefs.h.  */
23802
23803                     #include <Xm/Xm.h>
23804
23805 int
23806 main ()
23807 {
23808
23809                     int version;
23810                     version = xmUseVersion;
23811
23812   ;
23813   return 0;
23814 }
23815 _ACEOF
23816 rm -f conftest.$ac_objext
23817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23818   (eval $ac_compile) 2>&5
23819   ac_status=$?
23820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23821   (exit $ac_status); } &&
23822          { ac_try='test -s conftest.$ac_objext'
23823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23824   (eval $ac_try) 2>&5
23825   ac_status=$?
23826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23827   (exit $ac_status); }; }; then
23828
23829                     echo "$as_me:$LINENO: result: found in default search path" >&5
23830 echo "${ECHO_T}found in default search path" >&6
23831                     COMPILED_X_PROGRAM=1
23832
23833 else
23834   echo "$as_me: failed program was:" >&5
23835 sed 's/^/| /' conftest.$ac_ext >&5
23836
23837
23838                     echo "$as_me:$LINENO: result: no" >&5
23839 echo "${ECHO_T}no" >&6
23840                     { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
23841 echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
23842    { (exit 1); exit 1; }; }
23843
23844
23845 fi
23846 rm -f conftest.$ac_objext conftest.$ac_ext
23847         fi
23848
23849         if test "$COMPILED_X_PROGRAM" = 0; then
23850             echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
23851 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
23852
23853 ac_find_libraries=
23854 for ac_dir in $SEARCH_LIB /usr/lib;
23855   do
23856     for ac_extension in a so sl dylib; do
23857       if test -f "$ac_dir/libXm.$ac_extension"; then
23858         ac_find_libraries=$ac_dir
23859         break 2
23860       fi
23861     done
23862   done
23863
23864             if test "$ac_find_libraries" != "" ; then
23865                 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23866 echo "${ECHO_T}found at $ac_find_libraries" >&6
23867
23868
23869   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23870   result=$?
23871   if test $result = 0; then
23872     ac_path_to_link=""
23873   else
23874     ac_path_to_link=" -L$ac_find_libraries"
23875   fi
23876
23877                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
23878             else
23879                                                                 save_CFLAGS=$CFLAGS
23880                 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23881
23882                 cat >conftest.$ac_ext <<_ACEOF
23883 #line $LINENO "configure"
23884 /* confdefs.h.  */
23885 _ACEOF
23886 cat confdefs.h >>conftest.$ac_ext
23887 cat >>conftest.$ac_ext <<_ACEOF
23888 /* end confdefs.h.  */
23889
23890                         #include <Xm/Xm.h>
23891
23892 int
23893 main ()
23894 {
23895
23896                         int version;
23897                         version = xmUseVersion;
23898
23899   ;
23900   return 0;
23901 }
23902 _ACEOF
23903 rm -f conftest.$ac_objext
23904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23905   (eval $ac_compile) 2>&5
23906   ac_status=$?
23907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23908   (exit $ac_status); } &&
23909          { ac_try='test -s conftest.$ac_objext'
23910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23911   (eval $ac_try) 2>&5
23912   ac_status=$?
23913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914   (exit $ac_status); }; }; then
23915
23916                         echo "$as_me:$LINENO: result: found in default search path" >&5
23917 echo "${ECHO_T}found in default search path" >&6
23918                         COMPILED_X_PROGRAM=1
23919
23920 else
23921   echo "$as_me: failed program was:" >&5
23922 sed 's/^/| /' conftest.$ac_ext >&5
23923
23924
23925                         echo "$as_me:$LINENO: result: no" >&5
23926 echo "${ECHO_T}no" >&6
23927                         { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
23928 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
23929    { (exit 1); exit 1; }; }
23930
23931
23932 fi
23933 rm -f conftest.$ac_objext conftest.$ac_ext
23934
23935                 CFLAGS=$save_CFLAGS
23936             fi
23937         fi
23938
23939         xpm_link=
23940         echo "$as_me:$LINENO: checking for Xpm library" >&5
23941 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
23942
23943 ac_find_libraries=
23944 for ac_dir in $SEARCH_LIB /usr/lib;
23945   do
23946     for ac_extension in a so sl dylib; do
23947       if test -f "$ac_dir/libXpm.$ac_extension"; then
23948         ac_find_libraries=$ac_dir
23949         break 2
23950       fi
23951     done
23952   done
23953
23954         if test "$ac_find_libraries" != "" ; then
23955
23956   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23957   result=$?
23958   if test $result = 0; then
23959     ac_path_to_link=""
23960   else
23961     ac_path_to_link=" -L$ac_find_libraries"
23962   fi
23963
23964             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
23965
23966             xpm_link=" -lXpm"
23967             cat >>confdefs.h <<\_ACEOF
23968 #define wxHAVE_LIB_XPM 1
23969 _ACEOF
23970
23971             echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23972 echo "${ECHO_T}found at $ac_find_libraries" >&6
23973         else
23974             save_CFLAGS=$CFLAGS
23975             CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
23976
23977             cat >conftest.$ac_ext <<_ACEOF
23978 #line $LINENO "configure"
23979 /* confdefs.h.  */
23980 _ACEOF
23981 cat confdefs.h >>conftest.$ac_ext
23982 cat >>conftest.$ac_ext <<_ACEOF
23983 /* end confdefs.h.  */
23984
23985                     #include <X11/xpm.h>
23986
23987 int
23988 main ()
23989 {
23990
23991                     int version;
23992                     version = XpmLibraryVersion();
23993
23994   ;
23995   return 0;
23996 }
23997 _ACEOF
23998 rm -f conftest.$ac_objext
23999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24000   (eval $ac_compile) 2>&5
24001   ac_status=$?
24002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24003   (exit $ac_status); } &&
24004          { ac_try='test -s conftest.$ac_objext'
24005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24006   (eval $ac_try) 2>&5
24007   ac_status=$?
24008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24009   (exit $ac_status); }; }; then
24010
24011                     xpm_link=" -lXpm"
24012                     cat >>confdefs.h <<\_ACEOF
24013 #define wxHAVE_LIB_XPM 1
24014 _ACEOF
24015
24016                     echo "$as_me:$LINENO: result: found in default search path" >&5
24017 echo "${ECHO_T}found in default search path" >&6
24018                     COMPILED_X_PROGRAM=0
24019
24020 else
24021   echo "$as_me: failed program was:" >&5
24022 sed 's/^/| /' conftest.$ac_ext >&5
24023
24024
24025                     echo "$as_me:$LINENO: result: no" >&5
24026 echo "${ECHO_T}no" >&6
24027                     { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
24028 echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
24029
24030
24031 fi
24032 rm -f conftest.$ac_objext conftest.$ac_ext
24033
24034             CFLAGS=$save_CFLAGS
24035         fi
24036
24037         echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
24038 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
24039         libp_link=""
24040         libsm_ice_link=""
24041         libs_found=0
24042         for libp in "" " -lXp"; do
24043             if test "$libs_found" = "0"; then
24044                 for libsm_ice in " -lSM -lICE"; do
24045                     if test "$libs_found" = "0"; then
24046                         save_LIBS="$LIBS"
24047                         LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
24048                         save_CFLAGS=$CFLAGS
24049                         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24050
24051                         cat >conftest.$ac_ext <<_ACEOF
24052 #line $LINENO "configure"
24053 /* confdefs.h.  */
24054 _ACEOF
24055 cat confdefs.h >>conftest.$ac_ext
24056 cat >>conftest.$ac_ext <<_ACEOF
24057 /* end confdefs.h.  */
24058
24059                                 #include <Xm/Xm.h>
24060                                 #include <Xm/List.h>
24061
24062 int
24063 main ()
24064 {
24065
24066                                 XmString string = NULL;
24067                                 Widget w = NULL;
24068                                 int position = 0;
24069                                 XmListAddItem(w, string, position);
24070
24071   ;
24072   return 0;
24073 }
24074 _ACEOF
24075 rm -f conftest.$ac_objext conftest$ac_exeext
24076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24077   (eval $ac_link) 2>&5
24078   ac_status=$?
24079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24080   (exit $ac_status); } &&
24081          { ac_try='test -s conftest$ac_exeext'
24082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24083   (eval $ac_try) 2>&5
24084   ac_status=$?
24085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24086   (exit $ac_status); }; }; then
24087
24088                                 libp_link="$libp"
24089                                 libsm_ice_link="$libsm_ice"
24090                                 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
24091 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
24092                                 libs_found=1
24093
24094 else
24095   echo "$as_me: failed program was:" >&5
24096 sed 's/^/| /' conftest.$ac_ext >&5
24097
24098
24099
24100 fi
24101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24102
24103                         LIBS="$save_LIBS"
24104                         CFLAGS=$save_CFLAGS
24105                     fi
24106                 done
24107             fi
24108         done
24109
24110         if test "$libs_found" = "0"; then
24111             echo "$as_me:$LINENO: result: can't find the right libraries" >&5
24112 echo "${ECHO_T}can't find the right libraries" >&6
24113             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
24114 echo "$as_me: error: can't link a simple motif program" >&2;}
24115    { (exit 1); exit 1; }; }
24116         fi
24117
24118         save_CFLAGS=$CFLAGS
24119         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24120         echo "$as_me:$LINENO: checking for Motif 2" >&5
24121 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
24122         cat >conftest.$ac_ext <<_ACEOF
24123 #line $LINENO "configure"
24124 /* confdefs.h.  */
24125 _ACEOF
24126 cat confdefs.h >>conftest.$ac_ext
24127 cat >>conftest.$ac_ext <<_ACEOF
24128 /* end confdefs.h.  */
24129
24130                         #include <Xm/Xm.h>
24131
24132 int
24133 main ()
24134 {
24135
24136                         #if XmVersion < 2000
24137                         #error "Not Motif 2"
24138                         #endif
24139
24140   ;
24141   return 0;
24142 }
24143 _ACEOF
24144 rm -f conftest.$ac_objext
24145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24146   (eval $ac_compile) 2>&5
24147   ac_status=$?
24148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24149   (exit $ac_status); } &&
24150          { ac_try='test -s conftest.$ac_objext'
24151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24152   (eval $ac_try) 2>&5
24153   ac_status=$?
24154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24155   (exit $ac_status); }; }; then
24156
24157                         cat >>confdefs.h <<\_ACEOF
24158 #define __WXMOTIF20__ 1
24159 _ACEOF
24160
24161                         echo "$as_me:$LINENO: result: found" >&5
24162 echo "${ECHO_T}found" >&6
24163
24164 else
24165   echo "$as_me: failed program was:" >&5
24166 sed 's/^/| /' conftest.$ac_ext >&5
24167
24168
24169                         cat >>confdefs.h <<\_ACEOF
24170 #define __WXMOTIF20__ 0
24171 _ACEOF
24172
24173                         echo "$as_me:$LINENO: result: not found" >&5
24174 echo "${ECHO_T}not found" >&6
24175
24176 fi
24177 rm -f conftest.$ac_objext conftest.$ac_ext
24178         CFLAGS=$save_CFLAGS
24179
24180         GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
24181         TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
24182         TOOLKIT=MOTIF
24183         GUIDIST=MOTIF_DIST
24184         wxHAVE_XEXT_LIB=1
24185     fi
24186
24187     if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 &&
24188        test "$wxHAVE_XEXT_LIB" = 1; then
24189         save_CFLAGS="$CFLAGS"
24190         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24191
24192         echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
24193 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
24194         cat >conftest.$ac_ext <<_ACEOF
24195 #line $LINENO "configure"
24196 /* confdefs.h.  */
24197 _ACEOF
24198 cat confdefs.h >>conftest.$ac_ext
24199 cat >>conftest.$ac_ext <<_ACEOF
24200 /* end confdefs.h.  */
24201
24202                         #include <X11/Xlib.h>
24203                         #include <X11/extensions/shape.h>
24204
24205 int
24206 main ()
24207 {
24208
24209                         int dummy1, dummy2;
24210                         XShapeQueryExtension((Display*)NULL,
24211                                              (int*)NULL, (int*)NULL);
24212
24213   ;
24214   return 0;
24215 }
24216 _ACEOF
24217 rm -f conftest.$ac_objext
24218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24219   (eval $ac_compile) 2>&5
24220   ac_status=$?
24221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24222   (exit $ac_status); } &&
24223          { ac_try='test -s conftest.$ac_objext'
24224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24225   (eval $ac_try) 2>&5
24226   ac_status=$?
24227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24228   (exit $ac_status); }; }; then
24229
24230                         cat >>confdefs.h <<\_ACEOF
24231 #define HAVE_XSHAPE 1
24232 _ACEOF
24233
24234                         echo "$as_me:$LINENO: result: found" >&5
24235 echo "${ECHO_T}found" >&6
24236
24237 else
24238   echo "$as_me: failed program was:" >&5
24239 sed 's/^/| /' conftest.$ac_ext >&5
24240
24241
24242                         echo "$as_me:$LINENO: result: not found" >&5
24243 echo "${ECHO_T}not found" >&6
24244
24245 fi
24246 rm -f conftest.$ac_objext conftest.$ac_ext
24247         CFLAGS="$save_CFLAGS"
24248     fi
24249
24250     if test "$wxUSE_MAC" = 1; then
24251         CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
24252
24253         TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
24254         TOOLKIT=MAC
24255                 GUIDIST=MACX_DIST
24256                         WXBASEPORT="_carbon"
24257     fi
24258
24259     if test "$wxUSE_COCOA" = 1; then
24260         TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
24261         TOOLKIT=COCOA
24262         GUIDIST=COCOA_DIST
24263     fi
24264
24265     if test "$wxUSE_PM" = 1; then
24266         TOOLKIT=PM
24267         GUIDIST=GTK_DIST
24268         { echo "$as_me:$LINENO: WARNING: OS/2 threads are not yet supported... disabled" >&5
24269 echo "$as_me: WARNING: OS/2 threads are not yet supported... disabled" >&2;}
24270         wxUSE_THREADS="no"
24271     fi
24272
24273         if test "$TOOLKIT" = "PM" ; then
24274         TOOLKIT_DIR="os2"
24275     else
24276         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
24277     fi
24278
24279         PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
24280
24281     if test "$wxUSE_UNIVERSAL" = "yes"; then
24282         ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
24283
24284                                 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
24285         ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
24286
24287         PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
24288         if test "$wxUSE_X11" = 1; then
24289             TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
24290         else
24291             TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
24292         fi
24293         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
24294         WIDGET_SET=univ
24295     else
24296         ALL_OBJECTS="\$(GUIOBJS)"
24297         ALL_SOURCES="\$(ALL_SOURCES)"
24298         ALL_HEADERS="\$(ALL_HEADERS)"
24299     fi
24300
24301     ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
24302
24303     if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
24304         ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
24305     fi
24306
24307     if test "$wxUSE_HTML" = "yes"; then
24308         ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
24309     fi
24310
24311     if test "$wxUSE_LIBJPEG" = "builtin" ; then
24312         ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
24313     fi
24314     if test "$wxUSE_LIBTIFF" = "builtin" ; then
24315         ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
24316     fi
24317     if test "$wxUSE_LIBPNG" = "builtin" ; then
24318         ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
24319     fi
24320
24321         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
24322     DISTDIR="wx\$(TOOLKIT)"
24323 else
24324     USE_GUI=0
24325
24326             TOOLKIT_DIR="base"
24327
24328         if test "$USE_WIN32" = 1 ; then
24329         ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
24330         TOOLKIT_VPATH="\${top_srcdir}/src/msw"
24331
24332                         TOOLKIT="MSW"
24333     else
24334         ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
24335         TOOLKIT_VPATH="\${top_srcdir}/src/unix"
24336     fi
24337
24338     ALL_SOURCES="\$(ALL_SOURCES)"
24339     ALL_HEADERS="\$(ALL_HEADERS)"
24340
24341     PORT_FILES="\${top_srcdir}/src/files.lst"
24342
24343         GUIDIST="BASE_DIST"
24344     DISTDIR="wxBase"
24345 fi
24346
24347
24348
24349
24350 IODBC_C_SRC=""
24351
24352
24353 if test "$TOOLKIT" != "MSW" ; then
24354
24355     if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
24356
24357         if test "${ac_cv_header_sql_h+set}" = set; then
24358   echo "$as_me:$LINENO: checking for sql.h" >&5
24359 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24360 if test "${ac_cv_header_sql_h+set}" = set; then
24361   echo $ECHO_N "(cached) $ECHO_C" >&6
24362 fi
24363 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24364 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24365 else
24366   # Is the header compilable?
24367 echo "$as_me:$LINENO: checking sql.h usability" >&5
24368 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
24369 cat >conftest.$ac_ext <<_ACEOF
24370 #line $LINENO "configure"
24371 /* confdefs.h.  */
24372 _ACEOF
24373 cat confdefs.h >>conftest.$ac_ext
24374 cat >>conftest.$ac_ext <<_ACEOF
24375 /* end confdefs.h.  */
24376 $ac_includes_default
24377 #include <sql.h>
24378 _ACEOF
24379 rm -f conftest.$ac_objext
24380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24381   (eval $ac_compile) 2>&5
24382   ac_status=$?
24383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24384   (exit $ac_status); } &&
24385          { ac_try='test -s conftest.$ac_objext'
24386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24387   (eval $ac_try) 2>&5
24388   ac_status=$?
24389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24390   (exit $ac_status); }; }; then
24391   ac_header_compiler=yes
24392 else
24393   echo "$as_me: failed program was:" >&5
24394 sed 's/^/| /' conftest.$ac_ext >&5
24395
24396 ac_header_compiler=no
24397 fi
24398 rm -f conftest.$ac_objext conftest.$ac_ext
24399 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24400 echo "${ECHO_T}$ac_header_compiler" >&6
24401
24402 # Is the header present?
24403 echo "$as_me:$LINENO: checking sql.h presence" >&5
24404 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
24405 cat >conftest.$ac_ext <<_ACEOF
24406 #line $LINENO "configure"
24407 /* confdefs.h.  */
24408 _ACEOF
24409 cat confdefs.h >>conftest.$ac_ext
24410 cat >>conftest.$ac_ext <<_ACEOF
24411 /* end confdefs.h.  */
24412 #include <sql.h>
24413 _ACEOF
24414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24415   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24416   ac_status=$?
24417   grep -v '^ *+' conftest.er1 >conftest.err
24418   rm -f conftest.er1
24419   cat conftest.err >&5
24420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24421   (exit $ac_status); } >/dev/null; then
24422   if test -s conftest.err; then
24423     ac_cpp_err=$ac_c_preproc_warn_flag
24424   else
24425     ac_cpp_err=
24426   fi
24427 else
24428   ac_cpp_err=yes
24429 fi
24430 if test -z "$ac_cpp_err"; then
24431   ac_header_preproc=yes
24432 else
24433   echo "$as_me: failed program was:" >&5
24434 sed 's/^/| /' conftest.$ac_ext >&5
24435
24436   ac_header_preproc=no
24437 fi
24438 rm -f conftest.err conftest.$ac_ext
24439 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24440 echo "${ECHO_T}$ac_header_preproc" >&6
24441
24442 # So?  What about this header?
24443 case $ac_header_compiler:$ac_header_preproc in
24444   yes:no )
24445     { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
24446 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24447     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24448 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24449     (
24450       cat <<\_ASBOX
24451 ## ------------------------------------ ##
24452 ## Report this to bug-autoconf@gnu.org. ##
24453 ## ------------------------------------ ##
24454 _ASBOX
24455     ) |
24456       sed "s/^/$as_me: WARNING:     /" >&2
24457     ;;
24458   no:yes )
24459     { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
24460 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
24461     { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
24462 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
24463     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24464 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24465     (
24466       cat <<\_ASBOX
24467 ## ------------------------------------ ##
24468 ## Report this to bug-autoconf@gnu.org. ##
24469 ## ------------------------------------ ##
24470 _ASBOX
24471     ) |
24472       sed "s/^/$as_me: WARNING:     /" >&2
24473     ;;
24474 esac
24475 echo "$as_me:$LINENO: checking for sql.h" >&5
24476 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24477 if test "${ac_cv_header_sql_h+set}" = set; then
24478   echo $ECHO_N "(cached) $ECHO_C" >&6
24479 else
24480   ac_cv_header_sql_h=$ac_header_preproc
24481 fi
24482 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24483 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24484
24485 fi
24486 if test $ac_cv_header_sql_h = yes; then
24487   found_sql_h=1
24488 fi
24489
24490
24491         if test "x$found_sql_h" = "x1" ; then
24492             echo "$as_me:$LINENO: checking for iodbc in -lSQLAllocEnv" >&5
24493 echo $ECHO_N "checking for iodbc in -lSQLAllocEnv... $ECHO_C" >&6
24494 if test "${ac_cv_lib_SQLAllocEnv_iodbc+set}" = set; then
24495   echo $ECHO_N "(cached) $ECHO_C" >&6
24496 else
24497   ac_check_lib_save_LIBS=$LIBS
24498 LIBS="-lSQLAllocEnv  $LIBS"
24499 cat >conftest.$ac_ext <<_ACEOF
24500 #line $LINENO "configure"
24501 /* confdefs.h.  */
24502 _ACEOF
24503 cat confdefs.h >>conftest.$ac_ext
24504 cat >>conftest.$ac_ext <<_ACEOF
24505 /* end confdefs.h.  */
24506
24507 /* Override any gcc2 internal prototype to avoid an error.  */
24508 #ifdef __cplusplus
24509 extern "C"
24510 #endif
24511 /* We use char because int might match the return type of a gcc2
24512    builtin and then its argument prototype would still apply.  */
24513 char iodbc ();
24514 int
24515 main ()
24516 {
24517 iodbc ();
24518   ;
24519   return 0;
24520 }
24521 _ACEOF
24522 rm -f conftest.$ac_objext conftest$ac_exeext
24523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24524   (eval $ac_link) 2>&5
24525   ac_status=$?
24526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24527   (exit $ac_status); } &&
24528          { ac_try='test -s conftest$ac_exeext'
24529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24530   (eval $ac_try) 2>&5
24531   ac_status=$?
24532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24533   (exit $ac_status); }; }; then
24534   ac_cv_lib_SQLAllocEnv_iodbc=yes
24535 else
24536   echo "$as_me: failed program was:" >&5
24537 sed 's/^/| /' conftest.$ac_ext >&5
24538
24539 ac_cv_lib_SQLAllocEnv_iodbc=no
24540 fi
24541 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24542 LIBS=$ac_check_lib_save_LIBS
24543 fi
24544 echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_iodbc" >&5
24545 echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_iodbc" >&6
24546 if test $ac_cv_lib_SQLAllocEnv_iodbc = yes; then
24547   ODBC_LINK=" -liodbc"
24548 else
24549
24550                 echo "$as_me:$LINENO: checking for unixodbc in -lSQLAllocEnv" >&5
24551 echo $ECHO_N "checking for unixodbc in -lSQLAllocEnv... $ECHO_C" >&6
24552 if test "${ac_cv_lib_SQLAllocEnv_unixodbc+set}" = set; then
24553   echo $ECHO_N "(cached) $ECHO_C" >&6
24554 else
24555   ac_check_lib_save_LIBS=$LIBS
24556 LIBS="-lSQLAllocEnv  $LIBS"
24557 cat >conftest.$ac_ext <<_ACEOF
24558 #line $LINENO "configure"
24559 /* confdefs.h.  */
24560 _ACEOF
24561 cat confdefs.h >>conftest.$ac_ext
24562 cat >>conftest.$ac_ext <<_ACEOF
24563 /* end confdefs.h.  */
24564
24565 /* Override any gcc2 internal prototype to avoid an error.  */
24566 #ifdef __cplusplus
24567 extern "C"
24568 #endif
24569 /* We use char because int might match the return type of a gcc2
24570    builtin and then its argument prototype would still apply.  */
24571 char unixodbc ();
24572 int
24573 main ()
24574 {
24575 unixodbc ();
24576   ;
24577   return 0;
24578 }
24579 _ACEOF
24580 rm -f conftest.$ac_objext conftest$ac_exeext
24581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24582   (eval $ac_link) 2>&5
24583   ac_status=$?
24584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24585   (exit $ac_status); } &&
24586          { ac_try='test -s conftest$ac_exeext'
24587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24588   (eval $ac_try) 2>&5
24589   ac_status=$?
24590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24591   (exit $ac_status); }; }; then
24592   ac_cv_lib_SQLAllocEnv_unixodbc=yes
24593 else
24594   echo "$as_me: failed program was:" >&5
24595 sed 's/^/| /' conftest.$ac_ext >&5
24596
24597 ac_cv_lib_SQLAllocEnv_unixodbc=no
24598 fi
24599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24600 LIBS=$ac_check_lib_save_LIBS
24601 fi
24602 echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_unixodbc" >&5
24603 echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_unixodbc" >&6
24604 if test $ac_cv_lib_SQLAllocEnv_unixodbc = yes; then
24605   ODBC_LINK=" -lunixodbc"
24606 else
24607
24608                     echo "$as_me:$LINENO: checking for odbc in -lSQLAllocEnv" >&5
24609 echo $ECHO_N "checking for odbc in -lSQLAllocEnv... $ECHO_C" >&6
24610 if test "${ac_cv_lib_SQLAllocEnv_odbc+set}" = set; then
24611   echo $ECHO_N "(cached) $ECHO_C" >&6
24612 else
24613   ac_check_lib_save_LIBS=$LIBS
24614 LIBS="-lSQLAllocEnv  $LIBS"
24615 cat >conftest.$ac_ext <<_ACEOF
24616 #line $LINENO "configure"
24617 /* confdefs.h.  */
24618 _ACEOF
24619 cat confdefs.h >>conftest.$ac_ext
24620 cat >>conftest.$ac_ext <<_ACEOF
24621 /* end confdefs.h.  */
24622
24623 /* Override any gcc2 internal prototype to avoid an error.  */
24624 #ifdef __cplusplus
24625 extern "C"
24626 #endif
24627 /* We use char because int might match the return type of a gcc2
24628    builtin and then its argument prototype would still apply.  */
24629 char odbc ();
24630 int
24631 main ()
24632 {
24633 odbc ();
24634   ;
24635   return 0;
24636 }
24637 _ACEOF
24638 rm -f conftest.$ac_objext conftest$ac_exeext
24639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24640   (eval $ac_link) 2>&5
24641   ac_status=$?
24642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24643   (exit $ac_status); } &&
24644          { ac_try='test -s conftest$ac_exeext'
24645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24646   (eval $ac_try) 2>&5
24647   ac_status=$?
24648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24649   (exit $ac_status); }; }; then
24650   ac_cv_lib_SQLAllocEnv_odbc=yes
24651 else
24652   echo "$as_me: failed program was:" >&5
24653 sed 's/^/| /' conftest.$ac_ext >&5
24654
24655 ac_cv_lib_SQLAllocEnv_odbc=no
24656 fi
24657 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24658 LIBS=$ac_check_lib_save_LIBS
24659 fi
24660 echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_odbc" >&5
24661 echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_odbc" >&6
24662 if test $ac_cv_lib_SQLAllocEnv_odbc = yes; then
24663   ODBC_LINK=" -lodbc"
24664 fi
24665
24666
24667 fi
24668
24669
24670 fi
24671
24672         fi
24673         if test "x$ODBC_LINK" = "x" ; then
24674             if test "$wxUSE_ODBC" = "sys" ; then
24675                 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
24676 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
24677    { (exit 1); exit 1; }; }
24678             else
24679                 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
24680 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
24681                 wxUSE_ODBC=builtin
24682             fi
24683         else
24684                         wxUSE_ODBC=sys
24685         fi
24686     fi
24687     if test "$wxUSE_ODBC" != "no" ; then
24688         cat >>confdefs.h <<\_ACEOF
24689 #define wxUSE_ODBC 1
24690 _ACEOF
24691
24692         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
24693
24694                 WXODBCFLAG="-D_IODBC_"
24695     fi
24696 fi
24697
24698 if test "$wxUSE_REGEX" = "builtin" ; then
24699     ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
24700 fi
24701 if test "$wxUSE_ZLIB" = "builtin" ; then
24702     ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
24703 fi
24704
24705
24706 USE_OPENGL=0
24707 if test "$wxUSE_OPENGL" = "yes"; then
24708     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
24709         OPENGL_LIBS="-framework OpenGL -framework AGL"
24710     elif test "$wxUSE_MSW" = 1; then
24711         OPENGL_LIBS="-lopengl32 -lglu32"
24712     else
24713
24714
24715 ac_find_includes=
24716 for ac_dir in $SEARCH_INCLUDE /usr/include;
24717   do
24718     if test -f "$ac_dir/GL/gl.h"; then
24719       ac_find_includes=$ac_dir
24720       break
24721     fi
24722   done
24723
24724         if test "$ac_find_includes" != "" ; then
24725             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
24726 echo "${ECHO_T}found in $ac_find_includes" >&6
24727
24728     if test "x$ac_find_includes" = "x/usr/include"; then
24729     ac_path_to_include=""
24730   else
24731     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
24732     result=$?
24733     if test $result = 0; then
24734       ac_path_to_include=""
24735     else
24736       ac_path_to_include=" -I$ac_find_includes"
24737     fi
24738   fi
24739
24740             CPPFLAGS="$CPPFLAGS$ac_path_to_include"
24741         fi
24742
24743         if test "${ac_cv_header_GL_gl_h+set}" = set; then
24744   echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24745 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24746 if test "${ac_cv_header_GL_gl_h+set}" = set; then
24747   echo $ECHO_N "(cached) $ECHO_C" >&6
24748 fi
24749 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24750 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24751 else
24752   # Is the header compilable?
24753 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
24754 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
24755 cat >conftest.$ac_ext <<_ACEOF
24756 #line $LINENO "configure"
24757 /* confdefs.h.  */
24758 _ACEOF
24759 cat confdefs.h >>conftest.$ac_ext
24760 cat >>conftest.$ac_ext <<_ACEOF
24761 /* end confdefs.h.  */
24762 $ac_includes_default
24763 #include <GL/gl.h>
24764 _ACEOF
24765 rm -f conftest.$ac_objext
24766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24767   (eval $ac_compile) 2>&5
24768   ac_status=$?
24769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24770   (exit $ac_status); } &&
24771          { ac_try='test -s conftest.$ac_objext'
24772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24773   (eval $ac_try) 2>&5
24774   ac_status=$?
24775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24776   (exit $ac_status); }; }; then
24777   ac_header_compiler=yes
24778 else
24779   echo "$as_me: failed program was:" >&5
24780 sed 's/^/| /' conftest.$ac_ext >&5
24781
24782 ac_header_compiler=no
24783 fi
24784 rm -f conftest.$ac_objext conftest.$ac_ext
24785 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24786 echo "${ECHO_T}$ac_header_compiler" >&6
24787
24788 # Is the header present?
24789 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
24790 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
24791 cat >conftest.$ac_ext <<_ACEOF
24792 #line $LINENO "configure"
24793 /* confdefs.h.  */
24794 _ACEOF
24795 cat confdefs.h >>conftest.$ac_ext
24796 cat >>conftest.$ac_ext <<_ACEOF
24797 /* end confdefs.h.  */
24798 #include <GL/gl.h>
24799 _ACEOF
24800 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24801   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24802   ac_status=$?
24803   grep -v '^ *+' conftest.er1 >conftest.err
24804   rm -f conftest.er1
24805   cat conftest.err >&5
24806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24807   (exit $ac_status); } >/dev/null; then
24808   if test -s conftest.err; then
24809     ac_cpp_err=$ac_c_preproc_warn_flag
24810   else
24811     ac_cpp_err=
24812   fi
24813 else
24814   ac_cpp_err=yes
24815 fi
24816 if test -z "$ac_cpp_err"; then
24817   ac_header_preproc=yes
24818 else
24819   echo "$as_me: failed program was:" >&5
24820 sed 's/^/| /' conftest.$ac_ext >&5
24821
24822   ac_header_preproc=no
24823 fi
24824 rm -f conftest.err conftest.$ac_ext
24825 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24826 echo "${ECHO_T}$ac_header_preproc" >&6
24827
24828 # So?  What about this header?
24829 case $ac_header_compiler:$ac_header_preproc in
24830   yes:no )
24831     { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
24832 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24833     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
24834 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
24835     (
24836       cat <<\_ASBOX
24837 ## ------------------------------------ ##
24838 ## Report this to bug-autoconf@gnu.org. ##
24839 ## ------------------------------------ ##
24840 _ASBOX
24841     ) |
24842       sed "s/^/$as_me: WARNING:     /" >&2
24843     ;;
24844   no:yes )
24845     { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
24846 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
24847     { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
24848 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
24849     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
24850 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
24851     (
24852       cat <<\_ASBOX
24853 ## ------------------------------------ ##
24854 ## Report this to bug-autoconf@gnu.org. ##
24855 ## ------------------------------------ ##
24856 _ASBOX
24857     ) |
24858       sed "s/^/$as_me: WARNING:     /" >&2
24859     ;;
24860 esac
24861 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
24862 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
24863 if test "${ac_cv_header_GL_gl_h+set}" = set; then
24864   echo $ECHO_N "(cached) $ECHO_C" >&6
24865 else
24866   ac_cv_header_GL_gl_h=$ac_header_preproc
24867 fi
24868 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
24869 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
24870
24871 fi
24872 if test $ac_cv_header_GL_gl_h = yes; then
24873
24874                 found_gl=0
24875
24876                 echo "$as_me:$LINENO: checking for -lGL" >&5
24877 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
24878
24879 ac_find_libraries=
24880 for ac_dir in $SEARCH_LIB /usr/lib;
24881   do
24882     for ac_extension in a so sl dylib; do
24883       if test -f "$ac_dir/libGL.$ac_extension"; then
24884         ac_find_libraries=$ac_dir
24885         break 2
24886       fi
24887     done
24888   done
24889
24890                 if test "$ac_find_libraries" != "" ; then
24891
24892   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24893   result=$?
24894   if test $result = 0; then
24895     ac_path_to_link=""
24896   else
24897     ac_path_to_link=" -L$ac_find_libraries"
24898   fi
24899
24900                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
24901                         LDFLAGS_GL="$ac_path_to_link"
24902                     fi
24903
24904
24905 ac_find_libraries=
24906 for ac_dir in $SEARCH_LIB /usr/lib;
24907   do
24908     for ac_extension in a so sl dylib; do
24909       if test -f "$ac_dir/libGLU.$ac_extension"; then
24910         ac_find_libraries=$ac_dir
24911         break 2
24912       fi
24913     done
24914   done
24915
24916                     if test "$ac_find_libraries" != "" ; then
24917
24918   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24919   result=$?
24920   if test $result = 0; then
24921     ac_path_to_link=""
24922   else
24923     ac_path_to_link=" -L$ac_find_libraries"
24924   fi
24925
24926                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
24927                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
24928                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
24929                         fi
24930
24931                         found_gl=1
24932                         OPENGL_LIBS="-lGL -lGLU"
24933                         echo "$as_me:$LINENO: result: yes" >&5
24934 echo "${ECHO_T}yes" >&6
24935                     fi
24936                 fi
24937
24938                 if test "$found_gl" != 1; then
24939                     echo "$as_me:$LINENO: result: no" >&5
24940 echo "${ECHO_T}no" >&6
24941                     echo "$as_me:$LINENO: checking for -lMesaGL" >&5
24942 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
24943
24944 ac_find_libraries=
24945 for ac_dir in $SEARCH_LIB /usr/lib;
24946   do
24947     for ac_extension in a so sl dylib; do
24948       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
24949         ac_find_libraries=$ac_dir
24950         break 2
24951       fi
24952     done
24953   done
24954
24955                     if test "$ac_find_libraries" != "" ; then
24956
24957   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
24958   result=$?
24959   if test $result = 0; then
24960     ac_path_to_link=""
24961   else
24962     ac_path_to_link=" -L$ac_find_libraries"
24963   fi
24964
24965                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
24966                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
24967                         echo "$as_me:$LINENO: result: yes" >&5
24968 echo "${ECHO_T}yes" >&6
24969                     else
24970                         echo "$as_me:$LINENO: result: no" >&5
24971 echo "${ECHO_T}no" >&6
24972                     fi
24973                 fi
24974
24975 fi
24976
24977
24978
24979         if test "x$OPENGL_LIBS" = "x"; then
24980                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
24981 echo "$as_me: error: OpenGL libraries not available" >&2;}
24982    { (exit 1); exit 1; }; }
24983         fi
24984     fi
24985
24986     if test "$wxUSE_OPENGL" = "yes"; then
24987         USE_OPENGL=1
24988         cat >>confdefs.h <<\_ACEOF
24989 #define wxUSE_OPENGL 1
24990 _ACEOF
24991
24992         cat >>confdefs.h <<\_ACEOF
24993 #define wxUSE_GLCANVAS 1
24994 _ACEOF
24995
24996         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
24997     fi
24998 fi
24999
25000 if test -z "$TOOLKIT_VPATH" ; then
25001     TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
25002 fi
25003
25004 if test -n "$TOOLKIT" ; then
25005     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
25006 fi
25007
25008 UNICODE=0
25009 lib_unicode_suffix=
25010 if test "$wxUSE_UNICODE" = "yes"; then
25011     lib_unicode_suffix=u
25012     UNICODE=1
25013 fi
25014
25015 lib_debug_suffix=
25016 DEBUG_FLAG=0
25017 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
25018     lib_debug_suffix=d
25019     DEBUG_FLAG=1
25020 fi
25021
25022 DEBUG_INFO=0
25023 if test "$wxUSE_DEBUG_INFO" = "yes"; then
25024     DEBUG_INFO=1
25025 fi
25026
25027 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
25028
25029 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
25030 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
25031
25032 if test "$cross_compiling" = "yes"; then
25033     TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
25034     TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
25035     HOST_SUFFIX="-${host_alias}"
25036 fi
25037
25038 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
25039 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
25040 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
25041 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
25042
25043 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
25044 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
25045
25046 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
25047 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
25048 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
25049 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
25050
25051 case "${host}" in
25052     *-*-cygwin* | *-*-mingw32* )
25053         WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
25054         WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
25055         ;;
25056
25057     *-*-darwin* )
25058
25059         WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
25060         WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
25061
25062         WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
25063         WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
25064         WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
25065         WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
25066
25067                         if test "$wxUSE_MAC" = 1; then
25068                                     WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
25069             WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
25070         fi
25071         ;;
25072 esac
25073
25074 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
25075 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
25076
25077 WXCONFIG_LIBS="-l${WX_LIBRARY}"
25078 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
25079
25080 if test "$wxUSE_OPENGL" = "yes"; then
25081     WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
25082     WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
25083 fi
25084
25085
25086
25087 if test "$wxUSE_SHARED" = "yes"; then
25088     case "${host}" in
25089       *-pc-os2_emx | *-pc-os2-emx | \
25090       *-pc-msdosdjgpp )
25091                 wxUSE_SHARED=no
25092         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
25093 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
25094       ;;
25095     esac
25096 fi
25097
25098 SHARED=0
25099 if test "$wxUSE_SHARED" = "yes"; then
25100     SHARED=1
25101
25102
25103   found_versioning=no
25104
25105
25106     if test $found_versioning = no ; then
25107       echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
25108 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
25109 if test "${wx_cv_version_script+set}" = set; then
25110   echo $ECHO_N "(cached) $ECHO_C" >&6
25111 else
25112
25113         echo "VER_1 { *; };" >conftest.sym
25114         echo "int main() { return 0; }" >conftest.cpp
25115
25116         if { ac_try='
25117                 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
25118                 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
25119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25120   (eval $ac_try) 2>&5
25121   ac_status=$?
25122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25123   (exit $ac_status); }; } ; then
25124           if test -s conftest.stderr ; then
25125               wx_cv_version_script=no
25126           else
25127               wx_cv_version_script=yes
25128           fi
25129         else
25130           wx_cv_version_script=no
25131         fi
25132         rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
25133
25134 fi
25135 echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
25136 echo "${ECHO_T}$wx_cv_version_script" >&6
25137       if test $wx_cv_version_script = yes ; then
25138         LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
25139       fi
25140   fi
25141
25142
25143     case "${host}" in
25144       *-*-linux* | *-*-gnu* )
25145         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
25146         ;;
25147
25148       *-*-solaris2* )
25149         if test "$GCC" = yes ; then
25150                                     CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
25151
25152                                     saveLdflags="$LDFLAGS"
25153             LDFLAGS="$saveLdflags -Wl,-rpath,/"
25154             echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
25155 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
25156             cat >conftest.$ac_ext <<_ACEOF
25157 #line $LINENO "configure"
25158 /* confdefs.h.  */
25159 _ACEOF
25160 cat confdefs.h >>conftest.$ac_ext
25161 cat >>conftest.$ac_ext <<_ACEOF
25162 /* end confdefs.h.  */
25163
25164 int
25165 main ()
25166 {
25167
25168   ;
25169   return 0;
25170 }
25171 _ACEOF
25172 rm -f conftest.$ac_objext conftest$ac_exeext
25173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25174   (eval $ac_link) 2>&5
25175   ac_status=$?
25176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25177   (exit $ac_status); } &&
25178          { ac_try='test -s conftest$ac_exeext'
25179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25180   (eval $ac_try) 2>&5
25181   ac_status=$?
25182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25183   (exit $ac_status); }; }; then
25184
25185                     echo "$as_me:$LINENO: result: yes" >&5
25186 echo "${ECHO_T}yes" >&6
25187                     SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
25188
25189 else
25190   echo "$as_me: failed program was:" >&5
25191 sed 's/^/| /' conftest.$ac_ext >&5
25192
25193
25194                     echo "$as_me:$LINENO: result: no" >&5
25195 echo "${ECHO_T}no" >&6
25196                     echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
25197 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
25198                     LDFLAGS="$saveLdflags -Wl,-R,/"
25199                     cat >conftest.$ac_ext <<_ACEOF
25200 #line $LINENO "configure"
25201 /* confdefs.h.  */
25202 _ACEOF
25203 cat confdefs.h >>conftest.$ac_ext
25204 cat >>conftest.$ac_ext <<_ACEOF
25205 /* end confdefs.h.  */
25206
25207 int
25208 main ()
25209 {
25210
25211   ;
25212   return 0;
25213 }
25214 _ACEOF
25215 rm -f conftest.$ac_objext conftest$ac_exeext
25216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25217   (eval $ac_link) 2>&5
25218   ac_status=$?
25219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25220   (exit $ac_status); } &&
25221          { ac_try='test -s conftest$ac_exeext'
25222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25223   (eval $ac_try) 2>&5
25224   ac_status=$?
25225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25226   (exit $ac_status); }; }; then
25227
25228                              echo "$as_me:$LINENO: result: yes" >&5
25229 echo "${ECHO_T}yes" >&6
25230                              SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
25231 else
25232   echo "$as_me: failed program was:" >&5
25233 sed 's/^/| /' conftest.$ac_ext >&5
25234
25235
25236                             echo "$as_me:$LINENO: result: no" >&5
25237 echo "${ECHO_T}no" >&6
25238
25239 fi
25240 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25241
25242 fi
25243 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25244             LDFLAGS="$saveLdflags"
25245         else
25246             SHARED_LD="${CXX} -G -o"
25247             PIC_FLAG="-KPIC"
25248             SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
25249         fi
25250       ;;
25251
25252       powerpc-*-darwin* )
25253         SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
25254         cat <<EOF >change-install-names
25255 #!/bin/sh
25256 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
25257 inst_cmd="install_name_tool "
25258 for i in \${libnames} ; do
25259     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
25260 done
25261 \${inst_cmd} \${3}
25262 EOF
25263         chmod +x change-install-names
25264       ;;
25265
25266     esac
25267
25268         if test "x$WX_TARGET_LIBRARY" = "x"; then
25269         WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
25270         WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
25271     fi
25272
25273         WX_TARGET_LIBRARY_TYPE="so"
25274     INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
25275 fi
25276
25277 if test "$wxUSE_SHARED" = "no"; then
25278
25279         if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
25280                 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25281     fi
25282
25283     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
25284         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25285     fi
25286
25287     if test "$wxUSE_OPENGL" = "yes"; then
25288         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
25289         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
25290     else
25291         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
25292     fi
25293
25294     WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
25295     WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
25296
25297     WX_TARGET_LIBRARY_TYPE="a"
25298     INSTALL_LIBRARY='$(INSTALL_DATA)'
25299
25300             STATIC_FLAG="yes"
25301 else
25302     STATIC_FLAG="no"
25303 fi
25304
25305 MACRESCOMP="@#"
25306 MACSETFILE="@#"
25307 MACRESWXCONFIG="#"
25308 if test "$wxUSE_MAC" = 1; then
25309         LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
25310     WX_ALL="${WX_ALL} ${LIBWXMACRES}"
25311     WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
25312     # Extract the first word of "Rez", so it can be a program name with args.
25313 set dummy Rez; ac_word=$2
25314 echo "$as_me:$LINENO: checking for $ac_word" >&5
25315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25316 if test "${ac_cv_prog_RESCOMP+set}" = set; then
25317   echo $ECHO_N "(cached) $ECHO_C" >&6
25318 else
25319   if test -n "$RESCOMP"; then
25320   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
25321 else
25322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25323 for as_dir in $PATH
25324 do
25325   IFS=$as_save_IFS
25326   test -z "$as_dir" && as_dir=.
25327   for ac_exec_ext in '' $ac_executable_extensions; do
25328   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25329     ac_cv_prog_RESCOMP="Rez"
25330     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25331     break 2
25332   fi
25333 done
25334 done
25335
25336   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
25337 fi
25338 fi
25339 RESCOMP=$ac_cv_prog_RESCOMP
25340 if test -n "$RESCOMP"; then
25341   echo "$as_me:$LINENO: result: $RESCOMP" >&5
25342 echo "${ECHO_T}$RESCOMP" >&6
25343 else
25344   echo "$as_me:$LINENO: result: no" >&5
25345 echo "${ECHO_T}no" >&6
25346 fi
25347
25348     # Extract the first word of "DeRez", so it can be a program name with args.
25349 set dummy DeRez; ac_word=$2
25350 echo "$as_me:$LINENO: checking for $ac_word" >&5
25351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25352 if test "${ac_cv_prog_DEREZ+set}" = set; then
25353   echo $ECHO_N "(cached) $ECHO_C" >&6
25354 else
25355   if test -n "$DEREZ"; then
25356   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
25357 else
25358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25359 for as_dir in $PATH
25360 do
25361   IFS=$as_save_IFS
25362   test -z "$as_dir" && as_dir=.
25363   for ac_exec_ext in '' $ac_executable_extensions; do
25364   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25365     ac_cv_prog_DEREZ="DeRez"
25366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25367     break 2
25368   fi
25369 done
25370 done
25371
25372   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
25373 fi
25374 fi
25375 DEREZ=$ac_cv_prog_DEREZ
25376 if test -n "$DEREZ"; then
25377   echo "$as_me:$LINENO: result: $DEREZ" >&5
25378 echo "${ECHO_T}$DEREZ" >&6
25379 else
25380   echo "$as_me:$LINENO: result: no" >&5
25381 echo "${ECHO_T}no" >&6
25382 fi
25383
25384     # Extract the first word of "SetFile", so it can be a program name with args.
25385 set dummy SetFile; ac_word=$2
25386 echo "$as_me:$LINENO: checking for $ac_word" >&5
25387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25388 if test "${ac_cv_prog_SETFILE+set}" = set; then
25389   echo $ECHO_N "(cached) $ECHO_C" >&6
25390 else
25391   if test -n "$SETFILE"; then
25392   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25393 else
25394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25395 for as_dir in $PATH
25396 do
25397   IFS=$as_save_IFS
25398   test -z "$as_dir" && as_dir=.
25399   for ac_exec_ext in '' $ac_executable_extensions; do
25400   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25401     ac_cv_prog_SETFILE="SetFile"
25402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25403     break 2
25404   fi
25405 done
25406 done
25407
25408   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25409 fi
25410 fi
25411 SETFILE=$ac_cv_prog_SETFILE
25412 if test -n "$SETFILE"; then
25413   echo "$as_me:$LINENO: result: $SETFILE" >&5
25414 echo "${ECHO_T}$SETFILE" >&6
25415 else
25416   echo "$as_me:$LINENO: result: no" >&5
25417 echo "${ECHO_T}no" >&6
25418 fi
25419
25420     MACOSX_BUNDLE="bundle"
25421             MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
25422     MACSETFILE="\$(SETFILE)"
25423     MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
25424 elif test "$wxUSE_COCOA" = 1; then
25425     # Extract the first word of "Rez", so it can be a program name with args.
25426 set dummy Rez; ac_word=$2
25427 echo "$as_me:$LINENO: checking for $ac_word" >&5
25428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25429 if test "${ac_cv_prog_RESCOMP+set}" = set; then
25430   echo $ECHO_N "(cached) $ECHO_C" >&6
25431 else
25432   if test -n "$RESCOMP"; then
25433   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
25434 else
25435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25436 for as_dir in $PATH
25437 do
25438   IFS=$as_save_IFS
25439   test -z "$as_dir" && as_dir=.
25440   for ac_exec_ext in '' $ac_executable_extensions; do
25441   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25442     ac_cv_prog_RESCOMP="Rez"
25443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25444     break 2
25445   fi
25446 done
25447 done
25448
25449   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
25450 fi
25451 fi
25452 RESCOMP=$ac_cv_prog_RESCOMP
25453 if test -n "$RESCOMP"; then
25454   echo "$as_me:$LINENO: result: $RESCOMP" >&5
25455 echo "${ECHO_T}$RESCOMP" >&6
25456 else
25457   echo "$as_me:$LINENO: result: no" >&5
25458 echo "${ECHO_T}no" >&6
25459 fi
25460
25461     # Extract the first word of "DeRez", so it can be a program name with args.
25462 set dummy DeRez; ac_word=$2
25463 echo "$as_me:$LINENO: checking for $ac_word" >&5
25464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25465 if test "${ac_cv_prog_DEREZ+set}" = set; then
25466   echo $ECHO_N "(cached) $ECHO_C" >&6
25467 else
25468   if test -n "$DEREZ"; then
25469   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
25470 else
25471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25472 for as_dir in $PATH
25473 do
25474   IFS=$as_save_IFS
25475   test -z "$as_dir" && as_dir=.
25476   for ac_exec_ext in '' $ac_executable_extensions; do
25477   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25478     ac_cv_prog_DEREZ="DeRez"
25479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25480     break 2
25481   fi
25482 done
25483 done
25484
25485   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
25486 fi
25487 fi
25488 DEREZ=$ac_cv_prog_DEREZ
25489 if test -n "$DEREZ"; then
25490   echo "$as_me:$LINENO: result: $DEREZ" >&5
25491 echo "${ECHO_T}$DEREZ" >&6
25492 else
25493   echo "$as_me:$LINENO: result: no" >&5
25494 echo "${ECHO_T}no" >&6
25495 fi
25496
25497     # Extract the first word of "SetFile", so it can be a program name with args.
25498 set dummy SetFile; ac_word=$2
25499 echo "$as_me:$LINENO: checking for $ac_word" >&5
25500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25501 if test "${ac_cv_prog_SETFILE+set}" = set; then
25502   echo $ECHO_N "(cached) $ECHO_C" >&6
25503 else
25504   if test -n "$SETFILE"; then
25505   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25506 else
25507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25508 for as_dir in $PATH
25509 do
25510   IFS=$as_save_IFS
25511   test -z "$as_dir" && as_dir=.
25512   for ac_exec_ext in '' $ac_executable_extensions; do
25513   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25514     ac_cv_prog_SETFILE="SetFile"
25515     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25516     break 2
25517   fi
25518 done
25519 done
25520
25521   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25522 fi
25523 fi
25524 SETFILE=$ac_cv_prog_SETFILE
25525 if test -n "$SETFILE"; then
25526   echo "$as_me:$LINENO: result: $SETFILE" >&5
25527 echo "${ECHO_T}$SETFILE" >&6
25528 else
25529   echo "$as_me:$LINENO: result: no" >&5
25530 echo "${ECHO_T}no" >&6
25531 fi
25532
25533     MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
25534     MACSETFILE="\$(SETFILE)"
25535     MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
25536 else
25537     if test "$wxUSE_PM" = 1; then
25538         MACRESCOMP="emxbind -ep"
25539     fi
25540 fi
25541
25542
25543 echo "$as_me:$LINENO: checking for mode_t" >&5
25544 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
25545 if test "${ac_cv_type_mode_t+set}" = set; then
25546   echo $ECHO_N "(cached) $ECHO_C" >&6
25547 else
25548   cat >conftest.$ac_ext <<_ACEOF
25549 #line $LINENO "configure"
25550 /* confdefs.h.  */
25551 _ACEOF
25552 cat confdefs.h >>conftest.$ac_ext
25553 cat >>conftest.$ac_ext <<_ACEOF
25554 /* end confdefs.h.  */
25555 $ac_includes_default
25556 int
25557 main ()
25558 {
25559 if ((mode_t *) 0)
25560   return 0;
25561 if (sizeof (mode_t))
25562   return 0;
25563   ;
25564   return 0;
25565 }
25566 _ACEOF
25567 rm -f conftest.$ac_objext
25568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25569   (eval $ac_compile) 2>&5
25570   ac_status=$?
25571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25572   (exit $ac_status); } &&
25573          { ac_try='test -s conftest.$ac_objext'
25574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25575   (eval $ac_try) 2>&5
25576   ac_status=$?
25577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25578   (exit $ac_status); }; }; then
25579   ac_cv_type_mode_t=yes
25580 else
25581   echo "$as_me: failed program was:" >&5
25582 sed 's/^/| /' conftest.$ac_ext >&5
25583
25584 ac_cv_type_mode_t=no
25585 fi
25586 rm -f conftest.$ac_objext conftest.$ac_ext
25587 fi
25588 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
25589 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
25590 if test $ac_cv_type_mode_t = yes; then
25591   :
25592 else
25593
25594 cat >>confdefs.h <<_ACEOF
25595 #define mode_t int
25596 _ACEOF
25597
25598 fi
25599
25600 echo "$as_me:$LINENO: checking for off_t" >&5
25601 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
25602 if test "${ac_cv_type_off_t+set}" = set; then
25603   echo $ECHO_N "(cached) $ECHO_C" >&6
25604 else
25605   cat >conftest.$ac_ext <<_ACEOF
25606 #line $LINENO "configure"
25607 /* confdefs.h.  */
25608 _ACEOF
25609 cat confdefs.h >>conftest.$ac_ext
25610 cat >>conftest.$ac_ext <<_ACEOF
25611 /* end confdefs.h.  */
25612 $ac_includes_default
25613 int
25614 main ()
25615 {
25616 if ((off_t *) 0)
25617   return 0;
25618 if (sizeof (off_t))
25619   return 0;
25620   ;
25621   return 0;
25622 }
25623 _ACEOF
25624 rm -f conftest.$ac_objext
25625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25626   (eval $ac_compile) 2>&5
25627   ac_status=$?
25628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25629   (exit $ac_status); } &&
25630          { ac_try='test -s conftest.$ac_objext'
25631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25632   (eval $ac_try) 2>&5
25633   ac_status=$?
25634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25635   (exit $ac_status); }; }; then
25636   ac_cv_type_off_t=yes
25637 else
25638   echo "$as_me: failed program was:" >&5
25639 sed 's/^/| /' conftest.$ac_ext >&5
25640
25641 ac_cv_type_off_t=no
25642 fi
25643 rm -f conftest.$ac_objext conftest.$ac_ext
25644 fi
25645 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25646 echo "${ECHO_T}$ac_cv_type_off_t" >&6
25647 if test $ac_cv_type_off_t = yes; then
25648   :
25649 else
25650
25651 cat >>confdefs.h <<_ACEOF
25652 #define off_t long
25653 _ACEOF
25654
25655 fi
25656
25657 echo "$as_me:$LINENO: checking for pid_t" >&5
25658 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
25659 if test "${ac_cv_type_pid_t+set}" = set; then
25660   echo $ECHO_N "(cached) $ECHO_C" >&6
25661 else
25662   cat >conftest.$ac_ext <<_ACEOF
25663 #line $LINENO "configure"
25664 /* confdefs.h.  */
25665 _ACEOF
25666 cat confdefs.h >>conftest.$ac_ext
25667 cat >>conftest.$ac_ext <<_ACEOF
25668 /* end confdefs.h.  */
25669 $ac_includes_default
25670 int
25671 main ()
25672 {
25673 if ((pid_t *) 0)
25674   return 0;
25675 if (sizeof (pid_t))
25676   return 0;
25677   ;
25678   return 0;
25679 }
25680 _ACEOF
25681 rm -f conftest.$ac_objext
25682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25683   (eval $ac_compile) 2>&5
25684   ac_status=$?
25685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25686   (exit $ac_status); } &&
25687          { ac_try='test -s conftest.$ac_objext'
25688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25689   (eval $ac_try) 2>&5
25690   ac_status=$?
25691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25692   (exit $ac_status); }; }; then
25693   ac_cv_type_pid_t=yes
25694 else
25695   echo "$as_me: failed program was:" >&5
25696 sed 's/^/| /' conftest.$ac_ext >&5
25697
25698 ac_cv_type_pid_t=no
25699 fi
25700 rm -f conftest.$ac_objext conftest.$ac_ext
25701 fi
25702 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25703 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
25704 if test $ac_cv_type_pid_t = yes; then
25705   :
25706 else
25707
25708 cat >>confdefs.h <<_ACEOF
25709 #define pid_t int
25710 _ACEOF
25711
25712 fi
25713
25714 echo "$as_me:$LINENO: checking for size_t" >&5
25715 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
25716 if test "${ac_cv_type_size_t+set}" = set; then
25717   echo $ECHO_N "(cached) $ECHO_C" >&6
25718 else
25719   cat >conftest.$ac_ext <<_ACEOF
25720 #line $LINENO "configure"
25721 /* confdefs.h.  */
25722 _ACEOF
25723 cat confdefs.h >>conftest.$ac_ext
25724 cat >>conftest.$ac_ext <<_ACEOF
25725 /* end confdefs.h.  */
25726 $ac_includes_default
25727 int
25728 main ()
25729 {
25730 if ((size_t *) 0)
25731   return 0;
25732 if (sizeof (size_t))
25733   return 0;
25734   ;
25735   return 0;
25736 }
25737 _ACEOF
25738 rm -f conftest.$ac_objext
25739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25740   (eval $ac_compile) 2>&5
25741   ac_status=$?
25742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743   (exit $ac_status); } &&
25744          { ac_try='test -s conftest.$ac_objext'
25745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25746   (eval $ac_try) 2>&5
25747   ac_status=$?
25748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25749   (exit $ac_status); }; }; then
25750   ac_cv_type_size_t=yes
25751 else
25752   echo "$as_me: failed program was:" >&5
25753 sed 's/^/| /' conftest.$ac_ext >&5
25754
25755 ac_cv_type_size_t=no
25756 fi
25757 rm -f conftest.$ac_objext conftest.$ac_ext
25758 fi
25759 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25760 echo "${ECHO_T}$ac_cv_type_size_t" >&6
25761 if test $ac_cv_type_size_t = yes; then
25762   :
25763 else
25764
25765 cat >>confdefs.h <<_ACEOF
25766 #define size_t unsigned
25767 _ACEOF
25768
25769 fi
25770
25771 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
25772 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
25773 if test "${ac_cv_type_uid_t+set}" = set; then
25774   echo $ECHO_N "(cached) $ECHO_C" >&6
25775 else
25776   cat >conftest.$ac_ext <<_ACEOF
25777 #line $LINENO "configure"
25778 /* confdefs.h.  */
25779 _ACEOF
25780 cat confdefs.h >>conftest.$ac_ext
25781 cat >>conftest.$ac_ext <<_ACEOF
25782 /* end confdefs.h.  */
25783 #include <sys/types.h>
25784
25785 _ACEOF
25786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25787   $EGREP "uid_t" >/dev/null 2>&1; then
25788   ac_cv_type_uid_t=yes
25789 else
25790   ac_cv_type_uid_t=no
25791 fi
25792 rm -f conftest*
25793
25794 fi
25795 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
25796 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
25797 if test $ac_cv_type_uid_t = no; then
25798
25799 cat >>confdefs.h <<\_ACEOF
25800 #define uid_t int
25801 _ACEOF
25802
25803
25804 cat >>confdefs.h <<\_ACEOF
25805 #define gid_t int
25806 _ACEOF
25807
25808 fi
25809
25810
25811
25812
25813 ac_ext=cc
25814 ac_cpp='$CXXCPP $CPPFLAGS'
25815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25818
25819 echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
25820 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
25821 if test "${wx_cv_size_t_is_uint+set}" = set; then
25822   echo $ECHO_N "(cached) $ECHO_C" >&6
25823 else
25824
25825                             cat >conftest.$ac_ext <<_ACEOF
25826 #line $LINENO "configure"
25827 /* confdefs.h.  */
25828 _ACEOF
25829 cat confdefs.h >>conftest.$ac_ext
25830 cat >>conftest.$ac_ext <<_ACEOF
25831 /* end confdefs.h.  */
25832 #include <stddef.h>
25833 int
25834 main ()
25835 {
25836
25837             return 0; }
25838
25839             struct Foo { void foo(size_t); void foo(unsigned int); };
25840
25841             int bar() {
25842
25843   ;
25844   return 0;
25845 }
25846 _ACEOF
25847 rm -f conftest.$ac_objext
25848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25849   (eval $ac_compile) 2>&5
25850   ac_status=$?
25851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25852   (exit $ac_status); } &&
25853          { ac_try='test -s conftest.$ac_objext'
25854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25855   (eval $ac_try) 2>&5
25856   ac_status=$?
25857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25858   (exit $ac_status); }; }; then
25859   wx_cv_size_t_is_uint=no
25860 else
25861   echo "$as_me: failed program was:" >&5
25862 sed 's/^/| /' conftest.$ac_ext >&5
25863
25864 wx_cv_size_t_is_uint=yes
25865
25866 fi
25867 rm -f conftest.$ac_objext conftest.$ac_ext
25868
25869
25870 fi
25871 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
25872 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
25873
25874 if test "$wx_cv_size_t_is_uint" = "yes"; then
25875     cat >>confdefs.h <<\_ACEOF
25876 #define wxSIZE_T_IS_UINT 1
25877 _ACEOF
25878
25879 else
25880     echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
25881 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
25882 if test "${wx_cv_size_t_is_ulong+set}" = set; then
25883   echo $ECHO_N "(cached) $ECHO_C" >&6
25884 else
25885   cat >conftest.$ac_ext <<_ACEOF
25886 #line $LINENO "configure"
25887 /* confdefs.h.  */
25888 _ACEOF
25889 cat confdefs.h >>conftest.$ac_ext
25890 cat >>conftest.$ac_ext <<_ACEOF
25891 /* end confdefs.h.  */
25892 #include <stddef.h>
25893 int
25894 main ()
25895 {
25896
25897                 return 0; }
25898
25899                 struct Foo { void foo(size_t); void foo(unsigned long); };
25900
25901                 int bar() {
25902
25903   ;
25904   return 0;
25905 }
25906 _ACEOF
25907 rm -f conftest.$ac_objext
25908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25909   (eval $ac_compile) 2>&5
25910   ac_status=$?
25911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25912   (exit $ac_status); } &&
25913          { ac_try='test -s conftest.$ac_objext'
25914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25915   (eval $ac_try) 2>&5
25916   ac_status=$?
25917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25918   (exit $ac_status); }; }; then
25919   wx_cv_size_t_is_ulong=no
25920 else
25921   echo "$as_me: failed program was:" >&5
25922 sed 's/^/| /' conftest.$ac_ext >&5
25923
25924 wx_cv_size_t_is_ulong=yes
25925
25926 fi
25927 rm -f conftest.$ac_objext conftest.$ac_ext
25928
25929 fi
25930 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
25931 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
25932
25933     if test "$wx_cv_size_t_is_ulong" = "yes"; then
25934         cat >>confdefs.h <<\_ACEOF
25935 #define wxSIZE_T_IS_ULONG 1
25936 _ACEOF
25937
25938     fi
25939 fi
25940
25941 ac_ext=c
25942 ac_cpp='$CPP $CPPFLAGS'
25943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25946
25947
25948
25949 echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
25950 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
25951 if test "${wx_cv_struct_pw_gecos+set}" = set; then
25952   echo $ECHO_N "(cached) $ECHO_C" >&6
25953 else
25954
25955         cat >conftest.$ac_ext <<_ACEOF
25956 #line $LINENO "configure"
25957 /* confdefs.h.  */
25958 _ACEOF
25959 cat confdefs.h >>conftest.$ac_ext
25960 cat >>conftest.$ac_ext <<_ACEOF
25961 /* end confdefs.h.  */
25962 #include <pwd.h>
25963 int
25964 main ()
25965 {
25966
25967                 char *p;
25968                 struct passwd *pw;
25969                 p = pw->pw_gecos;
25970
25971   ;
25972   return 0;
25973 }
25974 _ACEOF
25975 rm -f conftest.$ac_objext
25976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25977   (eval $ac_compile) 2>&5
25978   ac_status=$?
25979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25980   (exit $ac_status); } &&
25981          { ac_try='test -s conftest.$ac_objext'
25982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25983   (eval $ac_try) 2>&5
25984   ac_status=$?
25985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25986   (exit $ac_status); }; }; then
25987
25988                 wx_cv_struct_pw_gecos=yes
25989
25990 else
25991   echo "$as_me: failed program was:" >&5
25992 sed 's/^/| /' conftest.$ac_ext >&5
25993
25994
25995                 wx_cv_struct_pw_gecos=no
25996
25997
25998 fi
25999 rm -f conftest.$ac_objext conftest.$ac_ext
26000
26001
26002 fi
26003 echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
26004 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
26005
26006 if test "$wx_cv_struct_pw_gecos" = "yes"; then
26007     cat >>confdefs.h <<\_ACEOF
26008 #define HAVE_PW_GECOS 1
26009 _ACEOF
26010
26011 fi
26012
26013
26014 if test "$wx_cv_sizeof_wchar_t" != "0"; then
26015     cat >>confdefs.h <<\_ACEOF
26016 #define wxUSE_WCHAR_T 1
26017 _ACEOF
26018
26019
26020         WCSLEN_FOUND=0
26021     WCHAR_LINK=
26022
26023 for ac_func in wcslen
26024 do
26025 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26026 echo "$as_me:$LINENO: checking for $ac_func" >&5
26027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26028 if eval "test \"\${$as_ac_var+set}\" = set"; then
26029   echo $ECHO_N "(cached) $ECHO_C" >&6
26030 else
26031   cat >conftest.$ac_ext <<_ACEOF
26032 #line $LINENO "configure"
26033 /* confdefs.h.  */
26034 _ACEOF
26035 cat confdefs.h >>conftest.$ac_ext
26036 cat >>conftest.$ac_ext <<_ACEOF
26037 /* end confdefs.h.  */
26038 /* System header to define __stub macros and hopefully few prototypes,
26039     which can conflict with char $ac_func (); below.
26040     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26041     <limits.h> exists even on freestanding compilers.  */
26042 #ifdef __STDC__
26043 # include <limits.h>
26044 #else
26045 # include <assert.h>
26046 #endif
26047 /* Override any gcc2 internal prototype to avoid an error.  */
26048 #ifdef __cplusplus
26049 extern "C"
26050 {
26051 #endif
26052 /* We use char because int might match the return type of a gcc2
26053    builtin and then its argument prototype would still apply.  */
26054 char $ac_func ();
26055 /* The GNU C library defines this for functions which it implements
26056     to always fail with ENOSYS.  Some functions are actually named
26057     something starting with __ and the normal name is an alias.  */
26058 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26059 choke me
26060 #else
26061 char (*f) () = $ac_func;
26062 #endif
26063 #ifdef __cplusplus
26064 }
26065 #endif
26066
26067 int
26068 main ()
26069 {
26070 return f != $ac_func;
26071   ;
26072   return 0;
26073 }
26074 _ACEOF
26075 rm -f conftest.$ac_objext conftest$ac_exeext
26076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26077   (eval $ac_link) 2>&5
26078   ac_status=$?
26079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26080   (exit $ac_status); } &&
26081          { ac_try='test -s conftest$ac_exeext'
26082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26083   (eval $ac_try) 2>&5
26084   ac_status=$?
26085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26086   (exit $ac_status); }; }; then
26087   eval "$as_ac_var=yes"
26088 else
26089   echo "$as_me: failed program was:" >&5
26090 sed 's/^/| /' conftest.$ac_ext >&5
26091
26092 eval "$as_ac_var=no"
26093 fi
26094 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26095 fi
26096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26097 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26098 if test `eval echo '${'$as_ac_var'}'` = yes; then
26099   cat >>confdefs.h <<_ACEOF
26100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26101 _ACEOF
26102  WCSLEN_FOUND=1
26103 fi
26104 done
26105
26106
26107     if test "$WCSLEN_FOUND" = 0; then
26108         if test "$TOOLKIT" = "MSW"; then
26109             echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
26110 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
26111 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
26112   echo $ECHO_N "(cached) $ECHO_C" >&6
26113 else
26114   ac_check_lib_save_LIBS=$LIBS
26115 LIBS="-lmsvcrt  $LIBS"
26116 cat >conftest.$ac_ext <<_ACEOF
26117 #line $LINENO "configure"
26118 /* confdefs.h.  */
26119 _ACEOF
26120 cat confdefs.h >>conftest.$ac_ext
26121 cat >>conftest.$ac_ext <<_ACEOF
26122 /* end confdefs.h.  */
26123
26124 /* Override any gcc2 internal prototype to avoid an error.  */
26125 #ifdef __cplusplus
26126 extern "C"
26127 #endif
26128 /* We use char because int might match the return type of a gcc2
26129    builtin and then its argument prototype would still apply.  */
26130 char wcslen ();
26131 int
26132 main ()
26133 {
26134 wcslen ();
26135   ;
26136   return 0;
26137 }
26138 _ACEOF
26139 rm -f conftest.$ac_objext conftest$ac_exeext
26140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26141   (eval $ac_link) 2>&5
26142   ac_status=$?
26143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26144   (exit $ac_status); } &&
26145          { ac_try='test -s conftest$ac_exeext'
26146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26147   (eval $ac_try) 2>&5
26148   ac_status=$?
26149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26150   (exit $ac_status); }; }; then
26151   ac_cv_lib_msvcrt_wcslen=yes
26152 else
26153   echo "$as_me: failed program was:" >&5
26154 sed 's/^/| /' conftest.$ac_ext >&5
26155
26156 ac_cv_lib_msvcrt_wcslen=no
26157 fi
26158 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26159 LIBS=$ac_check_lib_save_LIBS
26160 fi
26161 echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
26162 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
26163 if test $ac_cv_lib_msvcrt_wcslen = yes; then
26164   WCHAR_OK=1
26165 fi
26166
26167         else
26168             echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
26169 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
26170 if test "${ac_cv_lib_w_wcslen+set}" = set; then
26171   echo $ECHO_N "(cached) $ECHO_C" >&6
26172 else
26173   ac_check_lib_save_LIBS=$LIBS
26174 LIBS="-lw  $LIBS"
26175 cat >conftest.$ac_ext <<_ACEOF
26176 #line $LINENO "configure"
26177 /* confdefs.h.  */
26178 _ACEOF
26179 cat confdefs.h >>conftest.$ac_ext
26180 cat >>conftest.$ac_ext <<_ACEOF
26181 /* end confdefs.h.  */
26182
26183 /* Override any gcc2 internal prototype to avoid an error.  */
26184 #ifdef __cplusplus
26185 extern "C"
26186 #endif
26187 /* We use char because int might match the return type of a gcc2
26188    builtin and then its argument prototype would still apply.  */
26189 char wcslen ();
26190 int
26191 main ()
26192 {
26193 wcslen ();
26194   ;
26195   return 0;
26196 }
26197 _ACEOF
26198 rm -f conftest.$ac_objext conftest$ac_exeext
26199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26200   (eval $ac_link) 2>&5
26201   ac_status=$?
26202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26203   (exit $ac_status); } &&
26204          { ac_try='test -s conftest$ac_exeext'
26205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26206   (eval $ac_try) 2>&5
26207   ac_status=$?
26208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26209   (exit $ac_status); }; }; then
26210   ac_cv_lib_w_wcslen=yes
26211 else
26212   echo "$as_me: failed program was:" >&5
26213 sed 's/^/| /' conftest.$ac_ext >&5
26214
26215 ac_cv_lib_w_wcslen=no
26216 fi
26217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26218 LIBS=$ac_check_lib_save_LIBS
26219 fi
26220 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
26221 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
26222 if test $ac_cv_lib_w_wcslen = yes; then
26223
26224                             WCHAR_LINK=" -lw"
26225                             WCSLEN_FOUND=1
26226
26227 fi
26228
26229         fi
26230     fi
26231
26232     if test "$WCSLEN_FOUND" = 1; then
26233         cat >>confdefs.h <<\_ACEOF
26234 #define HAVE_WCSLEN 1
26235 _ACEOF
26236
26237     fi
26238
26239
26240 for ac_func in wcsrtombs
26241 do
26242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26243 echo "$as_me:$LINENO: checking for $ac_func" >&5
26244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26245 if eval "test \"\${$as_ac_var+set}\" = set"; then
26246   echo $ECHO_N "(cached) $ECHO_C" >&6
26247 else
26248   cat >conftest.$ac_ext <<_ACEOF
26249 #line $LINENO "configure"
26250 /* confdefs.h.  */
26251 _ACEOF
26252 cat confdefs.h >>conftest.$ac_ext
26253 cat >>conftest.$ac_ext <<_ACEOF
26254 /* end confdefs.h.  */
26255 /* System header to define __stub macros and hopefully few prototypes,
26256     which can conflict with char $ac_func (); below.
26257     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26258     <limits.h> exists even on freestanding compilers.  */
26259 #ifdef __STDC__
26260 # include <limits.h>
26261 #else
26262 # include <assert.h>
26263 #endif
26264 /* Override any gcc2 internal prototype to avoid an error.  */
26265 #ifdef __cplusplus
26266 extern "C"
26267 {
26268 #endif
26269 /* We use char because int might match the return type of a gcc2
26270    builtin and then its argument prototype would still apply.  */
26271 char $ac_func ();
26272 /* The GNU C library defines this for functions which it implements
26273     to always fail with ENOSYS.  Some functions are actually named
26274     something starting with __ and the normal name is an alias.  */
26275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26276 choke me
26277 #else
26278 char (*f) () = $ac_func;
26279 #endif
26280 #ifdef __cplusplus
26281 }
26282 #endif
26283
26284 int
26285 main ()
26286 {
26287 return f != $ac_func;
26288   ;
26289   return 0;
26290 }
26291 _ACEOF
26292 rm -f conftest.$ac_objext conftest$ac_exeext
26293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26294   (eval $ac_link) 2>&5
26295   ac_status=$?
26296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26297   (exit $ac_status); } &&
26298          { ac_try='test -s conftest$ac_exeext'
26299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26300   (eval $ac_try) 2>&5
26301   ac_status=$?
26302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26303   (exit $ac_status); }; }; then
26304   eval "$as_ac_var=yes"
26305 else
26306   echo "$as_me: failed program was:" >&5
26307 sed 's/^/| /' conftest.$ac_ext >&5
26308
26309 eval "$as_ac_var=no"
26310 fi
26311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26312 fi
26313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26314 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26315 if test `eval echo '${'$as_ac_var'}'` = yes; then
26316   cat >>confdefs.h <<_ACEOF
26317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26318 _ACEOF
26319
26320 fi
26321 done
26322
26323 else
26324     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
26325 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
26326 fi
26327
26328
26329
26330 ac_ext=cc
26331 ac_cpp='$CXXCPP $CPPFLAGS'
26332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26335
26336
26337
26338 for ac_func in vsnprintf
26339 do
26340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26341 echo "$as_me:$LINENO: checking for $ac_func" >&5
26342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26343 if eval "test \"\${$as_ac_var+set}\" = set"; then
26344   echo $ECHO_N "(cached) $ECHO_C" >&6
26345 else
26346   cat >conftest.$ac_ext <<_ACEOF
26347 #line $LINENO "configure"
26348 /* confdefs.h.  */
26349 _ACEOF
26350 cat confdefs.h >>conftest.$ac_ext
26351 cat >>conftest.$ac_ext <<_ACEOF
26352 /* end confdefs.h.  */
26353 /* System header to define __stub macros and hopefully few prototypes,
26354     which can conflict with char $ac_func (); below.
26355     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26356     <limits.h> exists even on freestanding compilers.  */
26357 #ifdef __STDC__
26358 # include <limits.h>
26359 #else
26360 # include <assert.h>
26361 #endif
26362 /* Override any gcc2 internal prototype to avoid an error.  */
26363 #ifdef __cplusplus
26364 extern "C"
26365 {
26366 #endif
26367 /* We use char because int might match the return type of a gcc2
26368    builtin and then its argument prototype would still apply.  */
26369 char $ac_func ();
26370 /* The GNU C library defines this for functions which it implements
26371     to always fail with ENOSYS.  Some functions are actually named
26372     something starting with __ and the normal name is an alias.  */
26373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26374 choke me
26375 #else
26376 char (*f) () = $ac_func;
26377 #endif
26378 #ifdef __cplusplus
26379 }
26380 #endif
26381
26382 int
26383 main ()
26384 {
26385 return f != $ac_func;
26386   ;
26387   return 0;
26388 }
26389 _ACEOF
26390 rm -f conftest.$ac_objext conftest$ac_exeext
26391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26392   (eval $ac_link) 2>&5
26393   ac_status=$?
26394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26395   (exit $ac_status); } &&
26396          { ac_try='test -s conftest$ac_exeext'
26397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26398   (eval $ac_try) 2>&5
26399   ac_status=$?
26400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26401   (exit $ac_status); }; }; then
26402   eval "$as_ac_var=yes"
26403 else
26404   echo "$as_me: failed program was:" >&5
26405 sed 's/^/| /' conftest.$ac_ext >&5
26406
26407 eval "$as_ac_var=no"
26408 fi
26409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26410 fi
26411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26412 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26413 if test `eval echo '${'$as_ac_var'}'` = yes; then
26414   cat >>confdefs.h <<_ACEOF
26415 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26416 _ACEOF
26417
26418 fi
26419 done
26420
26421
26422 if test "$ac_cv_func_vsnprintf" = "yes"; then
26423         echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
26424 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
26425 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
26426   echo $ECHO_N "(cached) $ECHO_C" >&6
26427 else
26428
26429             cat >conftest.$ac_ext <<_ACEOF
26430 #line $LINENO "configure"
26431 /* confdefs.h.  */
26432 _ACEOF
26433 cat confdefs.h >>conftest.$ac_ext
26434 cat >>conftest.$ac_ext <<_ACEOF
26435 /* end confdefs.h.  */
26436
26437                     #include <stdio.h>
26438                     #include <stdarg.h>
26439
26440 int
26441 main ()
26442 {
26443
26444                     char *buf;
26445                     va_list ap;
26446                     vsnprintf(buf, 10u, "%s", ap);
26447
26448   ;
26449   return 0;
26450 }
26451 _ACEOF
26452 rm -f conftest.$ac_objext
26453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26454   (eval $ac_compile) 2>&5
26455   ac_status=$?
26456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26457   (exit $ac_status); } &&
26458          { ac_try='test -s conftest.$ac_objext'
26459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26460   (eval $ac_try) 2>&5
26461   ac_status=$?
26462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26463   (exit $ac_status); }; }; then
26464   wx_cv_func_vsnprintf_decl=yes
26465 else
26466   echo "$as_me: failed program was:" >&5
26467 sed 's/^/| /' conftest.$ac_ext >&5
26468
26469 wx_cv_func_vsnprintf_decl=no
26470
26471 fi
26472 rm -f conftest.$ac_objext conftest.$ac_ext
26473
26474
26475 fi
26476 echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
26477 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
26478
26479     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
26480         cat >>confdefs.h <<\_ACEOF
26481 #define HAVE_VSNPRINTF_DECL 1
26482 _ACEOF
26483
26484     fi
26485 fi
26486
26487 if test "$wxUSE_UNICODE" = yes; then
26488
26489
26490
26491 for ac_func in fputwc wprintf vswprintf
26492 do
26493 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26494 echo "$as_me:$LINENO: checking for $ac_func" >&5
26495 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26496 if eval "test \"\${$as_ac_var+set}\" = set"; then
26497   echo $ECHO_N "(cached) $ECHO_C" >&6
26498 else
26499   cat >conftest.$ac_ext <<_ACEOF
26500 #line $LINENO "configure"
26501 /* confdefs.h.  */
26502 _ACEOF
26503 cat confdefs.h >>conftest.$ac_ext
26504 cat >>conftest.$ac_ext <<_ACEOF
26505 /* end confdefs.h.  */
26506 /* System header to define __stub macros and hopefully few prototypes,
26507     which can conflict with char $ac_func (); below.
26508     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26509     <limits.h> exists even on freestanding compilers.  */
26510 #ifdef __STDC__
26511 # include <limits.h>
26512 #else
26513 # include <assert.h>
26514 #endif
26515 /* Override any gcc2 internal prototype to avoid an error.  */
26516 #ifdef __cplusplus
26517 extern "C"
26518 {
26519 #endif
26520 /* We use char because int might match the return type of a gcc2
26521    builtin and then its argument prototype would still apply.  */
26522 char $ac_func ();
26523 /* The GNU C library defines this for functions which it implements
26524     to always fail with ENOSYS.  Some functions are actually named
26525     something starting with __ and the normal name is an alias.  */
26526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26527 choke me
26528 #else
26529 char (*f) () = $ac_func;
26530 #endif
26531 #ifdef __cplusplus
26532 }
26533 #endif
26534
26535 int
26536 main ()
26537 {
26538 return f != $ac_func;
26539   ;
26540   return 0;
26541 }
26542 _ACEOF
26543 rm -f conftest.$ac_objext conftest$ac_exeext
26544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26545   (eval $ac_link) 2>&5
26546   ac_status=$?
26547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26548   (exit $ac_status); } &&
26549          { ac_try='test -s conftest$ac_exeext'
26550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26551   (eval $ac_try) 2>&5
26552   ac_status=$?
26553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26554   (exit $ac_status); }; }; then
26555   eval "$as_ac_var=yes"
26556 else
26557   echo "$as_me: failed program was:" >&5
26558 sed 's/^/| /' conftest.$ac_ext >&5
26559
26560 eval "$as_ac_var=no"
26561 fi
26562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26563 fi
26564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26565 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26566 if test `eval echo '${'$as_ac_var'}'` = yes; then
26567   cat >>confdefs.h <<_ACEOF
26568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26569 _ACEOF
26570
26571 fi
26572 done
26573
26574
26575                 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
26576 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
26577     cat >conftest.$ac_ext <<_ACEOF
26578 #line $LINENO "configure"
26579 /* confdefs.h.  */
26580 _ACEOF
26581 cat confdefs.h >>conftest.$ac_ext
26582 cat >>conftest.$ac_ext <<_ACEOF
26583 /* end confdefs.h.  */
26584 #include <wchar.h>
26585 int
26586 main ()
26587 {
26588 &_vsnwprintf;
26589   ;
26590   return 0;
26591 }
26592 _ACEOF
26593 rm -f conftest.$ac_objext
26594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26595   (eval $ac_compile) 2>&5
26596   ac_status=$?
26597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26598   (exit $ac_status); } &&
26599          { ac_try='test -s conftest.$ac_objext'
26600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26601   (eval $ac_try) 2>&5
26602   ac_status=$?
26603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26604   (exit $ac_status); }; }; then
26605   echo "$as_me:$LINENO: result: yes" >&5
26606 echo "${ECHO_T}yes" >&6
26607                     cat >>confdefs.h <<\_ACEOF
26608 #define HAVE__VSNWPRINTF 1
26609 _ACEOF
26610
26611 else
26612   echo "$as_me: failed program was:" >&5
26613 sed 's/^/| /' conftest.$ac_ext >&5
26614
26615 echo "$as_me:$LINENO: result: no" >&5
26616 echo "${ECHO_T}no" >&6
26617 fi
26618 rm -f conftest.$ac_objext conftest.$ac_ext;
26619 fi
26620
26621 ac_ext=c
26622 ac_cpp='$CPP $CPPFLAGS'
26623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26626
26627
26628
26629
26630 if test "$TOOLKIT" != "MSW"; then
26631
26632
26633
26634
26635 ac_ext=cc
26636 ac_cpp='$CXXCPP $CPPFLAGS'
26637 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26638 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26639 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26640
26641
26642
26643
26644 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
26645 if test "${with_libiconv_prefix+set}" = set; then
26646   withval="$with_libiconv_prefix"
26647
26648     for dir in `echo "$withval" | tr : ' '`; do
26649       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
26650       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
26651     done
26652
26653 fi;
26654
26655   echo "$as_me:$LINENO: checking for iconv" >&5
26656 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
26657 if test "${am_cv_func_iconv+set}" = set; then
26658   echo $ECHO_N "(cached) $ECHO_C" >&6
26659 else
26660
26661     am_cv_func_iconv="no, consider installing GNU libiconv"
26662     am_cv_lib_iconv=no
26663     cat >conftest.$ac_ext <<_ACEOF
26664 #line $LINENO "configure"
26665 /* confdefs.h.  */
26666 _ACEOF
26667 cat confdefs.h >>conftest.$ac_ext
26668 cat >>conftest.$ac_ext <<_ACEOF
26669 /* end confdefs.h.  */
26670 #include <stdlib.h>
26671 #include <iconv.h>
26672 int
26673 main ()
26674 {
26675 iconv_t cd = iconv_open("","");
26676        iconv(cd,NULL,NULL,NULL,NULL);
26677        iconv_close(cd);
26678   ;
26679   return 0;
26680 }
26681 _ACEOF
26682 rm -f conftest.$ac_objext conftest$ac_exeext
26683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26684   (eval $ac_link) 2>&5
26685   ac_status=$?
26686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26687   (exit $ac_status); } &&
26688          { ac_try='test -s conftest$ac_exeext'
26689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26690   (eval $ac_try) 2>&5
26691   ac_status=$?
26692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26693   (exit $ac_status); }; }; then
26694   am_cv_func_iconv=yes
26695 else
26696   echo "$as_me: failed program was:" >&5
26697 sed 's/^/| /' conftest.$ac_ext >&5
26698
26699 fi
26700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26701     if test "$am_cv_func_iconv" != yes; then
26702       am_save_LIBS="$LIBS"
26703       LIBS="$LIBS -liconv"
26704       cat >conftest.$ac_ext <<_ACEOF
26705 #line $LINENO "configure"
26706 /* confdefs.h.  */
26707 _ACEOF
26708 cat confdefs.h >>conftest.$ac_ext
26709 cat >>conftest.$ac_ext <<_ACEOF
26710 /* end confdefs.h.  */
26711 #include <stdlib.h>
26712 #include <iconv.h>
26713 int
26714 main ()
26715 {
26716 iconv_t cd = iconv_open("","");
26717          iconv(cd,NULL,NULL,NULL,NULL);
26718          iconv_close(cd);
26719   ;
26720   return 0;
26721 }
26722 _ACEOF
26723 rm -f conftest.$ac_objext conftest$ac_exeext
26724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26725   (eval $ac_link) 2>&5
26726   ac_status=$?
26727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26728   (exit $ac_status); } &&
26729          { ac_try='test -s conftest$ac_exeext'
26730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26731   (eval $ac_try) 2>&5
26732   ac_status=$?
26733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26734   (exit $ac_status); }; }; then
26735   am_cv_lib_iconv=yes
26736         am_cv_func_iconv=yes
26737 else
26738   echo "$as_me: failed program was:" >&5
26739 sed 's/^/| /' conftest.$ac_ext >&5
26740
26741 fi
26742 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26743       LIBS="$am_save_LIBS"
26744     fi
26745
26746 fi
26747 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
26748 echo "${ECHO_T}$am_cv_func_iconv" >&6
26749   if test "$am_cv_func_iconv" = yes; then
26750
26751 cat >>confdefs.h <<\_ACEOF
26752 #define HAVE_ICONV 1
26753 _ACEOF
26754
26755     echo "$as_me:$LINENO: checking if iconv needs const" >&5
26756 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
26757 if test "${wx_cv_func_iconv_const+set}" = set; then
26758   echo $ECHO_N "(cached) $ECHO_C" >&6
26759 else
26760   cat >conftest.$ac_ext <<_ACEOF
26761 #line $LINENO "configure"
26762 /* confdefs.h.  */
26763 _ACEOF
26764 cat confdefs.h >>conftest.$ac_ext
26765 cat >>conftest.$ac_ext <<_ACEOF
26766 /* end confdefs.h.  */
26767
26768 #include <stdlib.h>
26769 #include <iconv.h>
26770 extern
26771 #ifdef __cplusplus
26772 "C"
26773 #endif
26774 #if defined(__STDC__) || defined(__cplusplus)
26775 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
26776 #else
26777 size_t iconv();
26778 #endif
26779
26780 int
26781 main ()
26782 {
26783
26784   ;
26785   return 0;
26786 }
26787 _ACEOF
26788 rm -f conftest.$ac_objext
26789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26790   (eval $ac_compile) 2>&5
26791   ac_status=$?
26792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26793   (exit $ac_status); } &&
26794          { ac_try='test -s conftest.$ac_objext'
26795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26796   (eval $ac_try) 2>&5
26797   ac_status=$?
26798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26799   (exit $ac_status); }; }; then
26800   wx_cv_func_iconv_const="no"
26801 else
26802   echo "$as_me: failed program was:" >&5
26803 sed 's/^/| /' conftest.$ac_ext >&5
26804
26805 wx_cv_func_iconv_const="yes"
26806
26807 fi
26808 rm -f conftest.$ac_objext conftest.$ac_ext
26809
26810 fi
26811 echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
26812 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
26813
26814     iconv_const=
26815     if test "x$wx_cv_func_iconv_const" = "xyes"; then
26816         iconv_const="const"
26817     fi
26818
26819
26820 cat >>confdefs.h <<_ACEOF
26821 #define ICONV_CONST $iconv_const
26822 _ACEOF
26823
26824   fi
26825   LIBICONV=
26826   if test "$am_cv_lib_iconv" = yes; then
26827     LIBICONV="-liconv"
26828   fi
26829
26830
26831 LIBS="$LIBICONV $LIBS"
26832 ac_ext=c
26833 ac_cpp='$CPP $CPPFLAGS'
26834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26837
26838
26839 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
26840
26841 for ac_func in sigaction
26842 do
26843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26844 echo "$as_me:$LINENO: checking for $ac_func" >&5
26845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26846 if eval "test \"\${$as_ac_var+set}\" = set"; then
26847   echo $ECHO_N "(cached) $ECHO_C" >&6
26848 else
26849   cat >conftest.$ac_ext <<_ACEOF
26850 #line $LINENO "configure"
26851 /* confdefs.h.  */
26852 _ACEOF
26853 cat confdefs.h >>conftest.$ac_ext
26854 cat >>conftest.$ac_ext <<_ACEOF
26855 /* end confdefs.h.  */
26856 /* System header to define __stub macros and hopefully few prototypes,
26857     which can conflict with char $ac_func (); below.
26858     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26859     <limits.h> exists even on freestanding compilers.  */
26860 #ifdef __STDC__
26861 # include <limits.h>
26862 #else
26863 # include <assert.h>
26864 #endif
26865 /* Override any gcc2 internal prototype to avoid an error.  */
26866 #ifdef __cplusplus
26867 extern "C"
26868 {
26869 #endif
26870 /* We use char because int might match the return type of a gcc2
26871    builtin and then its argument prototype would still apply.  */
26872 char $ac_func ();
26873 /* The GNU C library defines this for functions which it implements
26874     to always fail with ENOSYS.  Some functions are actually named
26875     something starting with __ and the normal name is an alias.  */
26876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26877 choke me
26878 #else
26879 char (*f) () = $ac_func;
26880 #endif
26881 #ifdef __cplusplus
26882 }
26883 #endif
26884
26885 int
26886 main ()
26887 {
26888 return f != $ac_func;
26889   ;
26890   return 0;
26891 }
26892 _ACEOF
26893 rm -f conftest.$ac_objext conftest$ac_exeext
26894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26895   (eval $ac_link) 2>&5
26896   ac_status=$?
26897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26898   (exit $ac_status); } &&
26899          { ac_try='test -s conftest$ac_exeext'
26900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26901   (eval $ac_try) 2>&5
26902   ac_status=$?
26903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26904   (exit $ac_status); }; }; then
26905   eval "$as_ac_var=yes"
26906 else
26907   echo "$as_me: failed program was:" >&5
26908 sed 's/^/| /' conftest.$ac_ext >&5
26909
26910 eval "$as_ac_var=no"
26911 fi
26912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26913 fi
26914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26915 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26916 if test `eval echo '${'$as_ac_var'}'` = yes; then
26917   cat >>confdefs.h <<_ACEOF
26918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26919 _ACEOF
26920
26921 fi
26922 done
26923
26924
26925     if test "$ac_cv_func_sigaction" = "no"; then
26926         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
26927 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
26928         wxUSE_ON_FATAL_EXCEPTION=no
26929     fi
26930
26931     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
26932
26933
26934       ac_ext=cc
26935 ac_cpp='$CXXCPP $CPPFLAGS'
26936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26939
26940
26941       echo "$as_me:$LINENO: checking for sa_handler type" >&5
26942 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
26943 if test "${wx_cv_type_sa_handler+set}" = set; then
26944   echo $ECHO_N "(cached) $ECHO_C" >&6
26945 else
26946
26947         cat >conftest.$ac_ext <<_ACEOF
26948 #line $LINENO "configure"
26949 /* confdefs.h.  */
26950 _ACEOF
26951 cat confdefs.h >>conftest.$ac_ext
26952 cat >>conftest.$ac_ext <<_ACEOF
26953 /* end confdefs.h.  */
26954 #include <signal.h>
26955 int
26956 main ()
26957 {
26958
26959                         extern void testSigHandler(int);
26960
26961                         struct sigaction sa;
26962                         sa.sa_handler = testSigHandler;
26963
26964   ;
26965   return 0;
26966 }
26967 _ACEOF
26968 rm -f conftest.$ac_objext
26969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26970   (eval $ac_compile) 2>&5
26971   ac_status=$?
26972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26973   (exit $ac_status); } &&
26974          { ac_try='test -s conftest.$ac_objext'
26975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26976   (eval $ac_try) 2>&5
26977   ac_status=$?
26978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979   (exit $ac_status); }; }; then
26980
26981                         wx_cv_type_sa_handler=int
26982
26983 else
26984   echo "$as_me: failed program was:" >&5
26985 sed 's/^/| /' conftest.$ac_ext >&5
26986
26987
26988                         wx_cv_type_sa_handler=void
26989
26990 fi
26991 rm -f conftest.$ac_objext conftest.$ac_ext
26992
26993 fi
26994 echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
26995 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
26996
26997       ac_ext=c
26998 ac_cpp='$CPP $CPPFLAGS'
26999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27002
27003
27004       cat >>confdefs.h <<_ACEOF
27005 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
27006 _ACEOF
27007
27008     fi
27009 fi
27010
27011
27012
27013 for ac_func in mkstemp mktemp
27014 do
27015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27016 echo "$as_me:$LINENO: checking for $ac_func" >&5
27017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27018 if eval "test \"\${$as_ac_var+set}\" = set"; then
27019   echo $ECHO_N "(cached) $ECHO_C" >&6
27020 else
27021   cat >conftest.$ac_ext <<_ACEOF
27022 #line $LINENO "configure"
27023 /* confdefs.h.  */
27024 _ACEOF
27025 cat confdefs.h >>conftest.$ac_ext
27026 cat >>conftest.$ac_ext <<_ACEOF
27027 /* end confdefs.h.  */
27028 /* System header to define __stub macros and hopefully few prototypes,
27029     which can conflict with char $ac_func (); below.
27030     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27031     <limits.h> exists even on freestanding compilers.  */
27032 #ifdef __STDC__
27033 # include <limits.h>
27034 #else
27035 # include <assert.h>
27036 #endif
27037 /* Override any gcc2 internal prototype to avoid an error.  */
27038 #ifdef __cplusplus
27039 extern "C"
27040 {
27041 #endif
27042 /* We use char because int might match the return type of a gcc2
27043    builtin and then its argument prototype would still apply.  */
27044 char $ac_func ();
27045 /* The GNU C library defines this for functions which it implements
27046     to always fail with ENOSYS.  Some functions are actually named
27047     something starting with __ and the normal name is an alias.  */
27048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27049 choke me
27050 #else
27051 char (*f) () = $ac_func;
27052 #endif
27053 #ifdef __cplusplus
27054 }
27055 #endif
27056
27057 int
27058 main ()
27059 {
27060 return f != $ac_func;
27061   ;
27062   return 0;
27063 }
27064 _ACEOF
27065 rm -f conftest.$ac_objext conftest$ac_exeext
27066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27067   (eval $ac_link) 2>&5
27068   ac_status=$?
27069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27070   (exit $ac_status); } &&
27071          { ac_try='test -s conftest$ac_exeext'
27072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27073   (eval $ac_try) 2>&5
27074   ac_status=$?
27075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27076   (exit $ac_status); }; }; then
27077   eval "$as_ac_var=yes"
27078 else
27079   echo "$as_me: failed program was:" >&5
27080 sed 's/^/| /' conftest.$ac_ext >&5
27081
27082 eval "$as_ac_var=no"
27083 fi
27084 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27085 fi
27086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27087 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27088 if test `eval echo '${'$as_ac_var'}'` = yes; then
27089   cat >>confdefs.h <<_ACEOF
27090 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27091 _ACEOF
27092  break
27093 fi
27094 done
27095
27096
27097 echo "$as_me:$LINENO: checking for statfs" >&5
27098 echo $ECHO_N "checking for statfs... $ECHO_C" >&6
27099 if test "${wx_cv_func_statfs+set}" = set; then
27100   echo $ECHO_N "(cached) $ECHO_C" >&6
27101 else
27102   cat >conftest.$ac_ext <<_ACEOF
27103 #line $LINENO "configure"
27104 /* confdefs.h.  */
27105 _ACEOF
27106 cat confdefs.h >>conftest.$ac_ext
27107 cat >>conftest.$ac_ext <<_ACEOF
27108 /* end confdefs.h.  */
27109
27110              #if defined(__BSD__)
27111                #include <sys/param.h>
27112                #include <sys/mount.h>
27113              #else
27114                #include <sys/vfs.h>
27115              #endif
27116
27117 int
27118 main ()
27119 {
27120
27121              long l;
27122              struct statfs fs;
27123              statfs("/", &fs);
27124              l = fs.f_bsize;
27125              l += fs.f_blocks;
27126              l += fs.f_bavail;
27127
27128   ;
27129   return 0;
27130 }
27131 _ACEOF
27132 rm -f conftest.$ac_objext
27133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27134   (eval $ac_compile) 2>&5
27135   ac_status=$?
27136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27137   (exit $ac_status); } &&
27138          { ac_try='test -s conftest.$ac_objext'
27139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27140   (eval $ac_try) 2>&5
27141   ac_status=$?
27142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27143   (exit $ac_status); }; }; then
27144
27145              wx_cv_func_statfs=yes
27146
27147 else
27148   echo "$as_me: failed program was:" >&5
27149 sed 's/^/| /' conftest.$ac_ext >&5
27150
27151
27152              wx_cv_func_statfs=no
27153
27154
27155 fi
27156 rm -f conftest.$ac_objext conftest.$ac_ext
27157
27158 fi
27159 echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
27160 echo "${ECHO_T}$wx_cv_func_statfs" >&6
27161
27162 if test "$wx_cv_func_statfs" = "yes"; then
27163     wx_cv_type_statvfs_t="struct statfs"
27164     cat >>confdefs.h <<\_ACEOF
27165 #define HAVE_STATFS 1
27166 _ACEOF
27167
27168 else
27169     echo "$as_me:$LINENO: checking for statvfs" >&5
27170 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
27171 if test "${wx_cv_func_statvfs+set}" = set; then
27172   echo $ECHO_N "(cached) $ECHO_C" >&6
27173 else
27174   cat >conftest.$ac_ext <<_ACEOF
27175 #line $LINENO "configure"
27176 /* confdefs.h.  */
27177 _ACEOF
27178 cat confdefs.h >>conftest.$ac_ext
27179 cat >>conftest.$ac_ext <<_ACEOF
27180 /* end confdefs.h.  */
27181
27182                 #include <stddef.h>
27183                 #include <sys/statvfs.h>
27184
27185 int
27186 main ()
27187 {
27188
27189                 statvfs("/", NULL);
27190
27191   ;
27192   return 0;
27193 }
27194 _ACEOF
27195 rm -f conftest.$ac_objext
27196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27197   (eval $ac_compile) 2>&5
27198   ac_status=$?
27199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27200   (exit $ac_status); } &&
27201          { ac_try='test -s conftest.$ac_objext'
27202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27203   (eval $ac_try) 2>&5
27204   ac_status=$?
27205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27206   (exit $ac_status); }; }; then
27207   wx_cv_func_statvfs=yes
27208 else
27209   echo "$as_me: failed program was:" >&5
27210 sed 's/^/| /' conftest.$ac_ext >&5
27211
27212 wx_cv_func_statvfs=no
27213
27214 fi
27215 rm -f conftest.$ac_objext conftest.$ac_ext
27216
27217 fi
27218 echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
27219 echo "${ECHO_T}$wx_cv_func_statvfs" >&6
27220
27221     if test "$wx_cv_func_statvfs" = "yes"; then
27222
27223
27224         ac_ext=cc
27225 ac_cpp='$CXXCPP $CPPFLAGS'
27226 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27227 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27228 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27229
27230
27231         echo "$as_me:$LINENO: checking for statvfs argument type" >&5
27232 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
27233 if test "${wx_cv_type_statvfs_t+set}" = set; then
27234   echo $ECHO_N "(cached) $ECHO_C" >&6
27235 else
27236   cat >conftest.$ac_ext <<_ACEOF
27237 #line $LINENO "configure"
27238 /* confdefs.h.  */
27239 _ACEOF
27240 cat confdefs.h >>conftest.$ac_ext
27241 cat >>conftest.$ac_ext <<_ACEOF
27242 /* end confdefs.h.  */
27243
27244                     #include <sys/statvfs.h>
27245
27246 int
27247 main ()
27248 {
27249
27250                     long l;
27251                     statvfs_t fs;
27252                     statvfs("/", &fs);
27253                     l = fs.f_bsize;
27254                     l += fs.f_blocks;
27255                     l += fs.f_bavail;
27256
27257   ;
27258   return 0;
27259 }
27260 _ACEOF
27261 rm -f conftest.$ac_objext
27262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27263   (eval $ac_compile) 2>&5
27264   ac_status=$?
27265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266   (exit $ac_status); } &&
27267          { ac_try='test -s conftest.$ac_objext'
27268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27269   (eval $ac_try) 2>&5
27270   ac_status=$?
27271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27272   (exit $ac_status); }; }; then
27273   wx_cv_type_statvfs_t=statvfs_t
27274 else
27275   echo "$as_me: failed program was:" >&5
27276 sed 's/^/| /' conftest.$ac_ext >&5
27277
27278
27279                     cat >conftest.$ac_ext <<_ACEOF
27280 #line $LINENO "configure"
27281 /* confdefs.h.  */
27282 _ACEOF
27283 cat confdefs.h >>conftest.$ac_ext
27284 cat >>conftest.$ac_ext <<_ACEOF
27285 /* end confdefs.h.  */
27286
27287                             #include <sys/statvfs.h>
27288
27289 int
27290 main ()
27291 {
27292
27293                             long l;
27294                             struct statvfs fs;
27295                             statvfs("/", &fs);
27296                             l = fs.f_bsize;
27297                             l += fs.f_blocks;
27298                             l += fs.f_bavail;
27299
27300   ;
27301   return 0;
27302 }
27303 _ACEOF
27304 rm -f conftest.$ac_objext
27305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27306   (eval $ac_compile) 2>&5
27307   ac_status=$?
27308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27309   (exit $ac_status); } &&
27310          { ac_try='test -s conftest.$ac_objext'
27311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27312   (eval $ac_try) 2>&5
27313   ac_status=$?
27314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27315   (exit $ac_status); }; }; then
27316   wx_cv_type_statvfs_t="struct statvfs"
27317 else
27318   echo "$as_me: failed program was:" >&5
27319 sed 's/^/| /' conftest.$ac_ext >&5
27320
27321 wx_cv_type_statvfs_t="unknown"
27322
27323 fi
27324 rm -f conftest.$ac_objext conftest.$ac_ext
27325
27326
27327 fi
27328 rm -f conftest.$ac_objext conftest.$ac_ext
27329
27330 fi
27331 echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
27332 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
27333
27334         ac_ext=c
27335 ac_cpp='$CPP $CPPFLAGS'
27336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27339
27340
27341         if test "$wx_cv_type_statvfs_t" != "unknown"; then
27342             cat >>confdefs.h <<\_ACEOF
27343 #define HAVE_STATVFS 1
27344 _ACEOF
27345
27346         fi
27347     else
27348                 wx_cv_type_statvfs_t="unknown"
27349     fi
27350 fi
27351
27352 if test "$wx_cv_type_statvfs_t" != "unknown"; then
27353     cat >>confdefs.h <<_ACEOF
27354 #define WX_STATFS_T $wx_cv_type_statvfs_t
27355 _ACEOF
27356
27357 else
27358     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
27359 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
27360 fi
27361
27362 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
27363
27364
27365 for ac_func in fcntl flock
27366 do
27367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27368 echo "$as_me:$LINENO: checking for $ac_func" >&5
27369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27370 if eval "test \"\${$as_ac_var+set}\" = set"; then
27371   echo $ECHO_N "(cached) $ECHO_C" >&6
27372 else
27373   cat >conftest.$ac_ext <<_ACEOF
27374 #line $LINENO "configure"
27375 /* confdefs.h.  */
27376 _ACEOF
27377 cat confdefs.h >>conftest.$ac_ext
27378 cat >>conftest.$ac_ext <<_ACEOF
27379 /* end confdefs.h.  */
27380 /* System header to define __stub macros and hopefully few prototypes,
27381     which can conflict with char $ac_func (); below.
27382     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27383     <limits.h> exists even on freestanding compilers.  */
27384 #ifdef __STDC__
27385 # include <limits.h>
27386 #else
27387 # include <assert.h>
27388 #endif
27389 /* Override any gcc2 internal prototype to avoid an error.  */
27390 #ifdef __cplusplus
27391 extern "C"
27392 {
27393 #endif
27394 /* We use char because int might match the return type of a gcc2
27395    builtin and then its argument prototype would still apply.  */
27396 char $ac_func ();
27397 /* The GNU C library defines this for functions which it implements
27398     to always fail with ENOSYS.  Some functions are actually named
27399     something starting with __ and the normal name is an alias.  */
27400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27401 choke me
27402 #else
27403 char (*f) () = $ac_func;
27404 #endif
27405 #ifdef __cplusplus
27406 }
27407 #endif
27408
27409 int
27410 main ()
27411 {
27412 return f != $ac_func;
27413   ;
27414   return 0;
27415 }
27416 _ACEOF
27417 rm -f conftest.$ac_objext conftest$ac_exeext
27418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27419   (eval $ac_link) 2>&5
27420   ac_status=$?
27421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27422   (exit $ac_status); } &&
27423          { ac_try='test -s conftest$ac_exeext'
27424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27425   (eval $ac_try) 2>&5
27426   ac_status=$?
27427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27428   (exit $ac_status); }; }; then
27429   eval "$as_ac_var=yes"
27430 else
27431   echo "$as_me: failed program was:" >&5
27432 sed 's/^/| /' conftest.$ac_ext >&5
27433
27434 eval "$as_ac_var=no"
27435 fi
27436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27437 fi
27438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27439 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27440 if test `eval echo '${'$as_ac_var'}'` = yes; then
27441   cat >>confdefs.h <<_ACEOF
27442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27443 _ACEOF
27444  break
27445 fi
27446 done
27447
27448
27449     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
27450         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
27451 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
27452         wxUSE_SNGLINST_CHECKER=no
27453     fi
27454 fi
27455
27456
27457 for ac_func in timegm
27458 do
27459 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27460 echo "$as_me:$LINENO: checking for $ac_func" >&5
27461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27462 if eval "test \"\${$as_ac_var+set}\" = set"; then
27463   echo $ECHO_N "(cached) $ECHO_C" >&6
27464 else
27465   cat >conftest.$ac_ext <<_ACEOF
27466 #line $LINENO "configure"
27467 /* confdefs.h.  */
27468 _ACEOF
27469 cat confdefs.h >>conftest.$ac_ext
27470 cat >>conftest.$ac_ext <<_ACEOF
27471 /* end confdefs.h.  */
27472 /* System header to define __stub macros and hopefully few prototypes,
27473     which can conflict with char $ac_func (); below.
27474     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27475     <limits.h> exists even on freestanding compilers.  */
27476 #ifdef __STDC__
27477 # include <limits.h>
27478 #else
27479 # include <assert.h>
27480 #endif
27481 /* Override any gcc2 internal prototype to avoid an error.  */
27482 #ifdef __cplusplus
27483 extern "C"
27484 {
27485 #endif
27486 /* We use char because int might match the return type of a gcc2
27487    builtin and then its argument prototype would still apply.  */
27488 char $ac_func ();
27489 /* The GNU C library defines this for functions which it implements
27490     to always fail with ENOSYS.  Some functions are actually named
27491     something starting with __ and the normal name is an alias.  */
27492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27493 choke me
27494 #else
27495 char (*f) () = $ac_func;
27496 #endif
27497 #ifdef __cplusplus
27498 }
27499 #endif
27500
27501 int
27502 main ()
27503 {
27504 return f != $ac_func;
27505   ;
27506   return 0;
27507 }
27508 _ACEOF
27509 rm -f conftest.$ac_objext conftest$ac_exeext
27510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27511   (eval $ac_link) 2>&5
27512   ac_status=$?
27513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514   (exit $ac_status); } &&
27515          { ac_try='test -s conftest$ac_exeext'
27516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27517   (eval $ac_try) 2>&5
27518   ac_status=$?
27519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27520   (exit $ac_status); }; }; then
27521   eval "$as_ac_var=yes"
27522 else
27523   echo "$as_me: failed program was:" >&5
27524 sed 's/^/| /' conftest.$ac_ext >&5
27525
27526 eval "$as_ac_var=no"
27527 fi
27528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27529 fi
27530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27531 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27532 if test `eval echo '${'$as_ac_var'}'` = yes; then
27533   cat >>confdefs.h <<_ACEOF
27534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27535 _ACEOF
27536
27537 fi
27538 done
27539
27540
27541
27542
27543 for ac_func in putenv setenv
27544 do
27545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27546 echo "$as_me:$LINENO: checking for $ac_func" >&5
27547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27548 if eval "test \"\${$as_ac_var+set}\" = set"; then
27549   echo $ECHO_N "(cached) $ECHO_C" >&6
27550 else
27551   cat >conftest.$ac_ext <<_ACEOF
27552 #line $LINENO "configure"
27553 /* confdefs.h.  */
27554 _ACEOF
27555 cat confdefs.h >>conftest.$ac_ext
27556 cat >>conftest.$ac_ext <<_ACEOF
27557 /* end confdefs.h.  */
27558 /* System header to define __stub macros and hopefully few prototypes,
27559     which can conflict with char $ac_func (); below.
27560     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27561     <limits.h> exists even on freestanding compilers.  */
27562 #ifdef __STDC__
27563 # include <limits.h>
27564 #else
27565 # include <assert.h>
27566 #endif
27567 /* Override any gcc2 internal prototype to avoid an error.  */
27568 #ifdef __cplusplus
27569 extern "C"
27570 {
27571 #endif
27572 /* We use char because int might match the return type of a gcc2
27573    builtin and then its argument prototype would still apply.  */
27574 char $ac_func ();
27575 /* The GNU C library defines this for functions which it implements
27576     to always fail with ENOSYS.  Some functions are actually named
27577     something starting with __ and the normal name is an alias.  */
27578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27579 choke me
27580 #else
27581 char (*f) () = $ac_func;
27582 #endif
27583 #ifdef __cplusplus
27584 }
27585 #endif
27586
27587 int
27588 main ()
27589 {
27590 return f != $ac_func;
27591   ;
27592   return 0;
27593 }
27594 _ACEOF
27595 rm -f conftest.$ac_objext conftest$ac_exeext
27596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27597   (eval $ac_link) 2>&5
27598   ac_status=$?
27599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27600   (exit $ac_status); } &&
27601          { ac_try='test -s conftest$ac_exeext'
27602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27603   (eval $ac_try) 2>&5
27604   ac_status=$?
27605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27606   (exit $ac_status); }; }; then
27607   eval "$as_ac_var=yes"
27608 else
27609   echo "$as_me: failed program was:" >&5
27610 sed 's/^/| /' conftest.$ac_ext >&5
27611
27612 eval "$as_ac_var=no"
27613 fi
27614 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27615 fi
27616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27617 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27618 if test `eval echo '${'$as_ac_var'}'` = yes; then
27619   cat >>confdefs.h <<_ACEOF
27620 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27621 _ACEOF
27622  break
27623 fi
27624 done
27625
27626
27627 HAVE_SOME_SLEEP_FUNC=0
27628 if test "$USE_BEOS" = 1; then
27629             cat >>confdefs.h <<\_ACEOF
27630 #define HAVE_SLEEP 1
27631 _ACEOF
27632
27633     HAVE_SOME_SLEEP_FUNC=1
27634 fi
27635
27636 if test "$USE_DARWIN" = 1; then
27637             cat >>confdefs.h <<\_ACEOF
27638 #define HAVE_USLEEP 1
27639 _ACEOF
27640
27641     HAVE_SOME_SLEEP_FUNC=1
27642 fi
27643
27644 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
27645         POSIX4_LINK=
27646
27647 for ac_func in nanosleep
27648 do
27649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27650 echo "$as_me:$LINENO: checking for $ac_func" >&5
27651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27652 if eval "test \"\${$as_ac_var+set}\" = set"; then
27653   echo $ECHO_N "(cached) $ECHO_C" >&6
27654 else
27655   cat >conftest.$ac_ext <<_ACEOF
27656 #line $LINENO "configure"
27657 /* confdefs.h.  */
27658 _ACEOF
27659 cat confdefs.h >>conftest.$ac_ext
27660 cat >>conftest.$ac_ext <<_ACEOF
27661 /* end confdefs.h.  */
27662 /* System header to define __stub macros and hopefully few prototypes,
27663     which can conflict with char $ac_func (); below.
27664     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27665     <limits.h> exists even on freestanding compilers.  */
27666 #ifdef __STDC__
27667 # include <limits.h>
27668 #else
27669 # include <assert.h>
27670 #endif
27671 /* Override any gcc2 internal prototype to avoid an error.  */
27672 #ifdef __cplusplus
27673 extern "C"
27674 {
27675 #endif
27676 /* We use char because int might match the return type of a gcc2
27677    builtin and then its argument prototype would still apply.  */
27678 char $ac_func ();
27679 /* The GNU C library defines this for functions which it implements
27680     to always fail with ENOSYS.  Some functions are actually named
27681     something starting with __ and the normal name is an alias.  */
27682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27683 choke me
27684 #else
27685 char (*f) () = $ac_func;
27686 #endif
27687 #ifdef __cplusplus
27688 }
27689 #endif
27690
27691 int
27692 main ()
27693 {
27694 return f != $ac_func;
27695   ;
27696   return 0;
27697 }
27698 _ACEOF
27699 rm -f conftest.$ac_objext conftest$ac_exeext
27700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27701   (eval $ac_link) 2>&5
27702   ac_status=$?
27703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27704   (exit $ac_status); } &&
27705          { ac_try='test -s conftest$ac_exeext'
27706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27707   (eval $ac_try) 2>&5
27708   ac_status=$?
27709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27710   (exit $ac_status); }; }; then
27711   eval "$as_ac_var=yes"
27712 else
27713   echo "$as_me: failed program was:" >&5
27714 sed 's/^/| /' conftest.$ac_ext >&5
27715
27716 eval "$as_ac_var=no"
27717 fi
27718 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27719 fi
27720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27721 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27722 if test `eval echo '${'$as_ac_var'}'` = yes; then
27723   cat >>confdefs.h <<_ACEOF
27724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27725 _ACEOF
27726  cat >>confdefs.h <<\_ACEOF
27727 #define HAVE_NANOSLEEP 1
27728 _ACEOF
27729
27730 else
27731
27732             echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
27733 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
27734 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
27735   echo $ECHO_N "(cached) $ECHO_C" >&6
27736 else
27737   ac_check_lib_save_LIBS=$LIBS
27738 LIBS="-lposix4  $LIBS"
27739 cat >conftest.$ac_ext <<_ACEOF
27740 #line $LINENO "configure"
27741 /* confdefs.h.  */
27742 _ACEOF
27743 cat confdefs.h >>conftest.$ac_ext
27744 cat >>conftest.$ac_ext <<_ACEOF
27745 /* end confdefs.h.  */
27746
27747 /* Override any gcc2 internal prototype to avoid an error.  */
27748 #ifdef __cplusplus
27749 extern "C"
27750 #endif
27751 /* We use char because int might match the return type of a gcc2
27752    builtin and then its argument prototype would still apply.  */
27753 char nanosleep ();
27754 int
27755 main ()
27756 {
27757 nanosleep ();
27758   ;
27759   return 0;
27760 }
27761 _ACEOF
27762 rm -f conftest.$ac_objext conftest$ac_exeext
27763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27764   (eval $ac_link) 2>&5
27765   ac_status=$?
27766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27767   (exit $ac_status); } &&
27768          { ac_try='test -s conftest$ac_exeext'
27769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27770   (eval $ac_try) 2>&5
27771   ac_status=$?
27772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27773   (exit $ac_status); }; }; then
27774   ac_cv_lib_posix4_nanosleep=yes
27775 else
27776   echo "$as_me: failed program was:" >&5
27777 sed 's/^/| /' conftest.$ac_ext >&5
27778
27779 ac_cv_lib_posix4_nanosleep=no
27780 fi
27781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27782 LIBS=$ac_check_lib_save_LIBS
27783 fi
27784 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
27785 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
27786 if test $ac_cv_lib_posix4_nanosleep = yes; then
27787
27788                     cat >>confdefs.h <<\_ACEOF
27789 #define HAVE_NANOSLEEP 1
27790 _ACEOF
27791
27792                     POSIX4_LINK=" -lposix4"
27793
27794 else
27795
27796
27797 for ac_func in usleep
27798 do
27799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27800 echo "$as_me:$LINENO: checking for $ac_func" >&5
27801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27802 if eval "test \"\${$as_ac_var+set}\" = set"; then
27803   echo $ECHO_N "(cached) $ECHO_C" >&6
27804 else
27805   cat >conftest.$ac_ext <<_ACEOF
27806 #line $LINENO "configure"
27807 /* confdefs.h.  */
27808 _ACEOF
27809 cat confdefs.h >>conftest.$ac_ext
27810 cat >>conftest.$ac_ext <<_ACEOF
27811 /* end confdefs.h.  */
27812 /* System header to define __stub macros and hopefully few prototypes,
27813     which can conflict with char $ac_func (); below.
27814     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27815     <limits.h> exists even on freestanding compilers.  */
27816 #ifdef __STDC__
27817 # include <limits.h>
27818 #else
27819 # include <assert.h>
27820 #endif
27821 /* Override any gcc2 internal prototype to avoid an error.  */
27822 #ifdef __cplusplus
27823 extern "C"
27824 {
27825 #endif
27826 /* We use char because int might match the return type of a gcc2
27827    builtin and then its argument prototype would still apply.  */
27828 char $ac_func ();
27829 /* The GNU C library defines this for functions which it implements
27830     to always fail with ENOSYS.  Some functions are actually named
27831     something starting with __ and the normal name is an alias.  */
27832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27833 choke me
27834 #else
27835 char (*f) () = $ac_func;
27836 #endif
27837 #ifdef __cplusplus
27838 }
27839 #endif
27840
27841 int
27842 main ()
27843 {
27844 return f != $ac_func;
27845   ;
27846   return 0;
27847 }
27848 _ACEOF
27849 rm -f conftest.$ac_objext conftest$ac_exeext
27850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27851   (eval $ac_link) 2>&5
27852   ac_status=$?
27853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854   (exit $ac_status); } &&
27855          { ac_try='test -s conftest$ac_exeext'
27856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27857   (eval $ac_try) 2>&5
27858   ac_status=$?
27859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27860   (exit $ac_status); }; }; then
27861   eval "$as_ac_var=yes"
27862 else
27863   echo "$as_me: failed program was:" >&5
27864 sed 's/^/| /' conftest.$ac_ext >&5
27865
27866 eval "$as_ac_var=no"
27867 fi
27868 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27869 fi
27870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27871 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27872 if test `eval echo '${'$as_ac_var'}'` = yes; then
27873   cat >>confdefs.h <<_ACEOF
27874 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27875 _ACEOF
27876  cat >>confdefs.h <<\_ACEOF
27877 #define HAVE_USLEEP 1
27878 _ACEOF
27879
27880 else
27881   { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
27882 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
27883
27884 fi
27885 done
27886
27887
27888
27889 fi
27890
27891
27892
27893 fi
27894 done
27895
27896 fi
27897
27898
27899
27900 for ac_func in uname gethostname
27901 do
27902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27903 echo "$as_me:$LINENO: checking for $ac_func" >&5
27904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27905 if eval "test \"\${$as_ac_var+set}\" = set"; then
27906   echo $ECHO_N "(cached) $ECHO_C" >&6
27907 else
27908   cat >conftest.$ac_ext <<_ACEOF
27909 #line $LINENO "configure"
27910 /* confdefs.h.  */
27911 _ACEOF
27912 cat confdefs.h >>conftest.$ac_ext
27913 cat >>conftest.$ac_ext <<_ACEOF
27914 /* end confdefs.h.  */
27915 /* System header to define __stub macros and hopefully few prototypes,
27916     which can conflict with char $ac_func (); below.
27917     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27918     <limits.h> exists even on freestanding compilers.  */
27919 #ifdef __STDC__
27920 # include <limits.h>
27921 #else
27922 # include <assert.h>
27923 #endif
27924 /* Override any gcc2 internal prototype to avoid an error.  */
27925 #ifdef __cplusplus
27926 extern "C"
27927 {
27928 #endif
27929 /* We use char because int might match the return type of a gcc2
27930    builtin and then its argument prototype would still apply.  */
27931 char $ac_func ();
27932 /* The GNU C library defines this for functions which it implements
27933     to always fail with ENOSYS.  Some functions are actually named
27934     something starting with __ and the normal name is an alias.  */
27935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27936 choke me
27937 #else
27938 char (*f) () = $ac_func;
27939 #endif
27940 #ifdef __cplusplus
27941 }
27942 #endif
27943
27944 int
27945 main ()
27946 {
27947 return f != $ac_func;
27948   ;
27949   return 0;
27950 }
27951 _ACEOF
27952 rm -f conftest.$ac_objext conftest$ac_exeext
27953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27954   (eval $ac_link) 2>&5
27955   ac_status=$?
27956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957   (exit $ac_status); } &&
27958          { ac_try='test -s conftest$ac_exeext'
27959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27960   (eval $ac_try) 2>&5
27961   ac_status=$?
27962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963   (exit $ac_status); }; }; then
27964   eval "$as_ac_var=yes"
27965 else
27966   echo "$as_me: failed program was:" >&5
27967 sed 's/^/| /' conftest.$ac_ext >&5
27968
27969 eval "$as_ac_var=no"
27970 fi
27971 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27972 fi
27973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27974 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27975 if test `eval echo '${'$as_ac_var'}'` = yes; then
27976   cat >>confdefs.h <<_ACEOF
27977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27978 _ACEOF
27979  break
27980 fi
27981 done
27982
27983
27984
27985
27986 ac_ext=cc
27987 ac_cpp='$CXXCPP $CPPFLAGS'
27988 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27989 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27990 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27991
27992
27993
27994 for ac_func in strtok_r
27995 do
27996 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27997 echo "$as_me:$LINENO: checking for $ac_func" >&5
27998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27999 if eval "test \"\${$as_ac_var+set}\" = set"; then
28000   echo $ECHO_N "(cached) $ECHO_C" >&6
28001 else
28002   cat >conftest.$ac_ext <<_ACEOF
28003 #line $LINENO "configure"
28004 /* confdefs.h.  */
28005 _ACEOF
28006 cat confdefs.h >>conftest.$ac_ext
28007 cat >>conftest.$ac_ext <<_ACEOF
28008 /* end confdefs.h.  */
28009 /* System header to define __stub macros and hopefully few prototypes,
28010     which can conflict with char $ac_func (); below.
28011     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28012     <limits.h> exists even on freestanding compilers.  */
28013 #ifdef __STDC__
28014 # include <limits.h>
28015 #else
28016 # include <assert.h>
28017 #endif
28018 /* Override any gcc2 internal prototype to avoid an error.  */
28019 #ifdef __cplusplus
28020 extern "C"
28021 {
28022 #endif
28023 /* We use char because int might match the return type of a gcc2
28024    builtin and then its argument prototype would still apply.  */
28025 char $ac_func ();
28026 /* The GNU C library defines this for functions which it implements
28027     to always fail with ENOSYS.  Some functions are actually named
28028     something starting with __ and the normal name is an alias.  */
28029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28030 choke me
28031 #else
28032 char (*f) () = $ac_func;
28033 #endif
28034 #ifdef __cplusplus
28035 }
28036 #endif
28037
28038 int
28039 main ()
28040 {
28041 return f != $ac_func;
28042   ;
28043   return 0;
28044 }
28045 _ACEOF
28046 rm -f conftest.$ac_objext conftest$ac_exeext
28047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28048   (eval $ac_link) 2>&5
28049   ac_status=$?
28050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28051   (exit $ac_status); } &&
28052          { ac_try='test -s conftest$ac_exeext'
28053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28054   (eval $ac_try) 2>&5
28055   ac_status=$?
28056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057   (exit $ac_status); }; }; then
28058   eval "$as_ac_var=yes"
28059 else
28060   echo "$as_me: failed program was:" >&5
28061 sed 's/^/| /' conftest.$ac_ext >&5
28062
28063 eval "$as_ac_var=no"
28064 fi
28065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28066 fi
28067 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28068 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28069 if test `eval echo '${'$as_ac_var'}'` = yes; then
28070   cat >>confdefs.h <<_ACEOF
28071 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28072 _ACEOF
28073
28074 fi
28075 done
28076
28077
28078 ac_ext=c
28079 ac_cpp='$CPP $CPPFLAGS'
28080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28083
28084
28085 INET_LINK=
28086
28087 for ac_func in inet_addr
28088 do
28089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28090 echo "$as_me:$LINENO: checking for $ac_func" >&5
28091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28092 if eval "test \"\${$as_ac_var+set}\" = set"; then
28093   echo $ECHO_N "(cached) $ECHO_C" >&6
28094 else
28095   cat >conftest.$ac_ext <<_ACEOF
28096 #line $LINENO "configure"
28097 /* confdefs.h.  */
28098 _ACEOF
28099 cat confdefs.h >>conftest.$ac_ext
28100 cat >>conftest.$ac_ext <<_ACEOF
28101 /* end confdefs.h.  */
28102 /* System header to define __stub macros and hopefully few prototypes,
28103     which can conflict with char $ac_func (); below.
28104     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28105     <limits.h> exists even on freestanding compilers.  */
28106 #ifdef __STDC__
28107 # include <limits.h>
28108 #else
28109 # include <assert.h>
28110 #endif
28111 /* Override any gcc2 internal prototype to avoid an error.  */
28112 #ifdef __cplusplus
28113 extern "C"
28114 {
28115 #endif
28116 /* We use char because int might match the return type of a gcc2
28117    builtin and then its argument prototype would still apply.  */
28118 char $ac_func ();
28119 /* The GNU C library defines this for functions which it implements
28120     to always fail with ENOSYS.  Some functions are actually named
28121     something starting with __ and the normal name is an alias.  */
28122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28123 choke me
28124 #else
28125 char (*f) () = $ac_func;
28126 #endif
28127 #ifdef __cplusplus
28128 }
28129 #endif
28130
28131 int
28132 main ()
28133 {
28134 return f != $ac_func;
28135   ;
28136   return 0;
28137 }
28138 _ACEOF
28139 rm -f conftest.$ac_objext conftest$ac_exeext
28140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28141   (eval $ac_link) 2>&5
28142   ac_status=$?
28143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28144   (exit $ac_status); } &&
28145          { ac_try='test -s conftest$ac_exeext'
28146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28147   (eval $ac_try) 2>&5
28148   ac_status=$?
28149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28150   (exit $ac_status); }; }; then
28151   eval "$as_ac_var=yes"
28152 else
28153   echo "$as_me: failed program was:" >&5
28154 sed 's/^/| /' conftest.$ac_ext >&5
28155
28156 eval "$as_ac_var=no"
28157 fi
28158 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28159 fi
28160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28161 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28162 if test `eval echo '${'$as_ac_var'}'` = yes; then
28163   cat >>confdefs.h <<_ACEOF
28164 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28165 _ACEOF
28166  cat >>confdefs.h <<\_ACEOF
28167 #define HAVE_INET_ADDR 1
28168 _ACEOF
28169
28170 else
28171
28172         echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
28173 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
28174 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
28175   echo $ECHO_N "(cached) $ECHO_C" >&6
28176 else
28177   ac_check_lib_save_LIBS=$LIBS
28178 LIBS="-lnsl  $LIBS"
28179 cat >conftest.$ac_ext <<_ACEOF
28180 #line $LINENO "configure"
28181 /* confdefs.h.  */
28182 _ACEOF
28183 cat confdefs.h >>conftest.$ac_ext
28184 cat >>conftest.$ac_ext <<_ACEOF
28185 /* end confdefs.h.  */
28186
28187 /* Override any gcc2 internal prototype to avoid an error.  */
28188 #ifdef __cplusplus
28189 extern "C"
28190 #endif
28191 /* We use char because int might match the return type of a gcc2
28192    builtin and then its argument prototype would still apply.  */
28193 char inet_addr ();
28194 int
28195 main ()
28196 {
28197 inet_addr ();
28198   ;
28199   return 0;
28200 }
28201 _ACEOF
28202 rm -f conftest.$ac_objext conftest$ac_exeext
28203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28204   (eval $ac_link) 2>&5
28205   ac_status=$?
28206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28207   (exit $ac_status); } &&
28208          { ac_try='test -s conftest$ac_exeext'
28209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28210   (eval $ac_try) 2>&5
28211   ac_status=$?
28212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28213   (exit $ac_status); }; }; then
28214   ac_cv_lib_nsl_inet_addr=yes
28215 else
28216   echo "$as_me: failed program was:" >&5
28217 sed 's/^/| /' conftest.$ac_ext >&5
28218
28219 ac_cv_lib_nsl_inet_addr=no
28220 fi
28221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28222 LIBS=$ac_check_lib_save_LIBS
28223 fi
28224 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
28225 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
28226 if test $ac_cv_lib_nsl_inet_addr = yes; then
28227   INET_LINK="nsl"
28228 else
28229
28230                 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
28231 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
28232 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
28233   echo $ECHO_N "(cached) $ECHO_C" >&6
28234 else
28235   ac_check_lib_save_LIBS=$LIBS
28236 LIBS="-lresolv  $LIBS"
28237 cat >conftest.$ac_ext <<_ACEOF
28238 #line $LINENO "configure"
28239 /* confdefs.h.  */
28240 _ACEOF
28241 cat confdefs.h >>conftest.$ac_ext
28242 cat >>conftest.$ac_ext <<_ACEOF
28243 /* end confdefs.h.  */
28244
28245 /* Override any gcc2 internal prototype to avoid an error.  */
28246 #ifdef __cplusplus
28247 extern "C"
28248 #endif
28249 /* We use char because int might match the return type of a gcc2
28250    builtin and then its argument prototype would still apply.  */
28251 char inet_addr ();
28252 int
28253 main ()
28254 {
28255 inet_addr ();
28256   ;
28257   return 0;
28258 }
28259 _ACEOF
28260 rm -f conftest.$ac_objext conftest$ac_exeext
28261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28262   (eval $ac_link) 2>&5
28263   ac_status=$?
28264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28265   (exit $ac_status); } &&
28266          { ac_try='test -s conftest$ac_exeext'
28267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28268   (eval $ac_try) 2>&5
28269   ac_status=$?
28270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28271   (exit $ac_status); }; }; then
28272   ac_cv_lib_resolv_inet_addr=yes
28273 else
28274   echo "$as_me: failed program was:" >&5
28275 sed 's/^/| /' conftest.$ac_ext >&5
28276
28277 ac_cv_lib_resolv_inet_addr=no
28278 fi
28279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28280 LIBS=$ac_check_lib_save_LIBS
28281 fi
28282 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
28283 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
28284 if test $ac_cv_lib_resolv_inet_addr = yes; then
28285   INET_LINK="resolv"
28286 else
28287
28288                         echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
28289 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
28290 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
28291   echo $ECHO_N "(cached) $ECHO_C" >&6
28292 else
28293   ac_check_lib_save_LIBS=$LIBS
28294 LIBS="-lsocket  $LIBS"
28295 cat >conftest.$ac_ext <<_ACEOF
28296 #line $LINENO "configure"
28297 /* confdefs.h.  */
28298 _ACEOF
28299 cat confdefs.h >>conftest.$ac_ext
28300 cat >>conftest.$ac_ext <<_ACEOF
28301 /* end confdefs.h.  */
28302
28303 /* Override any gcc2 internal prototype to avoid an error.  */
28304 #ifdef __cplusplus
28305 extern "C"
28306 #endif
28307 /* We use char because int might match the return type of a gcc2
28308    builtin and then its argument prototype would still apply.  */
28309 char inet_addr ();
28310 int
28311 main ()
28312 {
28313 inet_addr ();
28314   ;
28315   return 0;
28316 }
28317 _ACEOF
28318 rm -f conftest.$ac_objext conftest$ac_exeext
28319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28320   (eval $ac_link) 2>&5
28321   ac_status=$?
28322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28323   (exit $ac_status); } &&
28324          { ac_try='test -s conftest$ac_exeext'
28325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28326   (eval $ac_try) 2>&5
28327   ac_status=$?
28328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28329   (exit $ac_status); }; }; then
28330   ac_cv_lib_socket_inet_addr=yes
28331 else
28332   echo "$as_me: failed program was:" >&5
28333 sed 's/^/| /' conftest.$ac_ext >&5
28334
28335 ac_cv_lib_socket_inet_addr=no
28336 fi
28337 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28338 LIBS=$ac_check_lib_save_LIBS
28339 fi
28340 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
28341 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
28342 if test $ac_cv_lib_socket_inet_addr = yes; then
28343   INET_LINK="socket"
28344
28345 fi
28346
28347
28348
28349 fi
28350
28351
28352
28353 fi
28354
28355
28356
28357 fi
28358 done
28359
28360
28361
28362 for ac_func in inet_aton
28363 do
28364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28365 echo "$as_me:$LINENO: checking for $ac_func" >&5
28366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28367 if eval "test \"\${$as_ac_var+set}\" = set"; then
28368   echo $ECHO_N "(cached) $ECHO_C" >&6
28369 else
28370   cat >conftest.$ac_ext <<_ACEOF
28371 #line $LINENO "configure"
28372 /* confdefs.h.  */
28373 _ACEOF
28374 cat confdefs.h >>conftest.$ac_ext
28375 cat >>conftest.$ac_ext <<_ACEOF
28376 /* end confdefs.h.  */
28377 /* System header to define __stub macros and hopefully few prototypes,
28378     which can conflict with char $ac_func (); below.
28379     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28380     <limits.h> exists even on freestanding compilers.  */
28381 #ifdef __STDC__
28382 # include <limits.h>
28383 #else
28384 # include <assert.h>
28385 #endif
28386 /* Override any gcc2 internal prototype to avoid an error.  */
28387 #ifdef __cplusplus
28388 extern "C"
28389 {
28390 #endif
28391 /* We use char because int might match the return type of a gcc2
28392    builtin and then its argument prototype would still apply.  */
28393 char $ac_func ();
28394 /* The GNU C library defines this for functions which it implements
28395     to always fail with ENOSYS.  Some functions are actually named
28396     something starting with __ and the normal name is an alias.  */
28397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28398 choke me
28399 #else
28400 char (*f) () = $ac_func;
28401 #endif
28402 #ifdef __cplusplus
28403 }
28404 #endif
28405
28406 int
28407 main ()
28408 {
28409 return f != $ac_func;
28410   ;
28411   return 0;
28412 }
28413 _ACEOF
28414 rm -f conftest.$ac_objext conftest$ac_exeext
28415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28416   (eval $ac_link) 2>&5
28417   ac_status=$?
28418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28419   (exit $ac_status); } &&
28420          { ac_try='test -s conftest$ac_exeext'
28421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28422   (eval $ac_try) 2>&5
28423   ac_status=$?
28424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28425   (exit $ac_status); }; }; then
28426   eval "$as_ac_var=yes"
28427 else
28428   echo "$as_me: failed program was:" >&5
28429 sed 's/^/| /' conftest.$ac_ext >&5
28430
28431 eval "$as_ac_var=no"
28432 fi
28433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28434 fi
28435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28436 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28437 if test `eval echo '${'$as_ac_var'}'` = yes; then
28438   cat >>confdefs.h <<_ACEOF
28439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28440 _ACEOF
28441  cat >>confdefs.h <<\_ACEOF
28442 #define HAVE_INET_ATON 1
28443 _ACEOF
28444
28445 else
28446
28447                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
28448 echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
28449 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
28450 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
28451   echo $ECHO_N "(cached) $ECHO_C" >&6
28452 else
28453   ac_check_lib_save_LIBS=$LIBS
28454 LIBS="-l$INET_LINK  $LIBS"
28455 cat >conftest.$ac_ext <<_ACEOF
28456 #line $LINENO "configure"
28457 /* confdefs.h.  */
28458 _ACEOF
28459 cat confdefs.h >>conftest.$ac_ext
28460 cat >>conftest.$ac_ext <<_ACEOF
28461 /* end confdefs.h.  */
28462
28463 /* Override any gcc2 internal prototype to avoid an error.  */
28464 #ifdef __cplusplus
28465 extern "C"
28466 #endif
28467 /* We use char because int might match the return type of a gcc2
28468    builtin and then its argument prototype would still apply.  */
28469 char inet_aton ();
28470 int
28471 main ()
28472 {
28473 inet_aton ();
28474   ;
28475   return 0;
28476 }
28477 _ACEOF
28478 rm -f conftest.$ac_objext conftest$ac_exeext
28479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28480   (eval $ac_link) 2>&5
28481   ac_status=$?
28482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28483   (exit $ac_status); } &&
28484          { ac_try='test -s conftest$ac_exeext'
28485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28486   (eval $ac_try) 2>&5
28487   ac_status=$?
28488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28489   (exit $ac_status); }; }; then
28490   eval "$as_ac_Lib=yes"
28491 else
28492   echo "$as_me: failed program was:" >&5
28493 sed 's/^/| /' conftest.$ac_ext >&5
28494
28495 eval "$as_ac_Lib=no"
28496 fi
28497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28498 LIBS=$ac_check_lib_save_LIBS
28499 fi
28500 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
28501 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
28502 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28503   cat >>confdefs.h <<\_ACEOF
28504 #define HAVE_INET_ATON 1
28505 _ACEOF
28506
28507 fi
28508
28509
28510 fi
28511 done
28512
28513
28514 if test "x$INET_LINK" != "x"; then
28515     cat >>confdefs.h <<\_ACEOF
28516 #define HAVE_INET_ADDR 1
28517 _ACEOF
28518
28519     INET_LINK=" -l$INET_LINK"
28520 fi
28521
28522 fi
28523
28524
28525
28526 EXTRALIBS_ESD=
28527 echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
28528 echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
28529 if test "${ac_cv_lib_esd_esd_close+set}" = set; then
28530   echo $ECHO_N "(cached) $ECHO_C" >&6
28531 else
28532   ac_check_lib_save_LIBS=$LIBS
28533 LIBS="-lesd  $LIBS"
28534 cat >conftest.$ac_ext <<_ACEOF
28535 #line $LINENO "configure"
28536 /* confdefs.h.  */
28537 _ACEOF
28538 cat confdefs.h >>conftest.$ac_ext
28539 cat >>conftest.$ac_ext <<_ACEOF
28540 /* end confdefs.h.  */
28541
28542 /* Override any gcc2 internal prototype to avoid an error.  */
28543 #ifdef __cplusplus
28544 extern "C"
28545 #endif
28546 /* We use char because int might match the return type of a gcc2
28547    builtin and then its argument prototype would still apply.  */
28548 char esd_close ();
28549 int
28550 main ()
28551 {
28552 esd_close ();
28553   ;
28554   return 0;
28555 }
28556 _ACEOF
28557 rm -f conftest.$ac_objext conftest$ac_exeext
28558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28559   (eval $ac_link) 2>&5
28560   ac_status=$?
28561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28562   (exit $ac_status); } &&
28563          { ac_try='test -s conftest$ac_exeext'
28564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28565   (eval $ac_try) 2>&5
28566   ac_status=$?
28567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28568   (exit $ac_status); }; }; then
28569   ac_cv_lib_esd_esd_close=yes
28570 else
28571   echo "$as_me: failed program was:" >&5
28572 sed 's/^/| /' conftest.$ac_ext >&5
28573
28574 ac_cv_lib_esd_esd_close=no
28575 fi
28576 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28577 LIBS=$ac_check_lib_save_LIBS
28578 fi
28579 echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
28580 echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
28581 if test $ac_cv_lib_esd_esd_close = yes; then
28582
28583
28584 for ac_header in esd.h
28585 do
28586 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28588   echo "$as_me:$LINENO: checking for $ac_header" >&5
28589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28591   echo $ECHO_N "(cached) $ECHO_C" >&6
28592 fi
28593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28595 else
28596   # Is the header compilable?
28597 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28598 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28599 cat >conftest.$ac_ext <<_ACEOF
28600 #line $LINENO "configure"
28601 /* confdefs.h.  */
28602 _ACEOF
28603 cat confdefs.h >>conftest.$ac_ext
28604 cat >>conftest.$ac_ext <<_ACEOF
28605 /* end confdefs.h.  */
28606 $ac_includes_default
28607 #include <$ac_header>
28608 _ACEOF
28609 rm -f conftest.$ac_objext
28610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28611   (eval $ac_compile) 2>&5
28612   ac_status=$?
28613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614   (exit $ac_status); } &&
28615          { ac_try='test -s conftest.$ac_objext'
28616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28617   (eval $ac_try) 2>&5
28618   ac_status=$?
28619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28620   (exit $ac_status); }; }; then
28621   ac_header_compiler=yes
28622 else
28623   echo "$as_me: failed program was:" >&5
28624 sed 's/^/| /' conftest.$ac_ext >&5
28625
28626 ac_header_compiler=no
28627 fi
28628 rm -f conftest.$ac_objext conftest.$ac_ext
28629 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28630 echo "${ECHO_T}$ac_header_compiler" >&6
28631
28632 # Is the header present?
28633 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28634 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28635 cat >conftest.$ac_ext <<_ACEOF
28636 #line $LINENO "configure"
28637 /* confdefs.h.  */
28638 _ACEOF
28639 cat confdefs.h >>conftest.$ac_ext
28640 cat >>conftest.$ac_ext <<_ACEOF
28641 /* end confdefs.h.  */
28642 #include <$ac_header>
28643 _ACEOF
28644 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28645   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28646   ac_status=$?
28647   grep -v '^ *+' conftest.er1 >conftest.err
28648   rm -f conftest.er1
28649   cat conftest.err >&5
28650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28651   (exit $ac_status); } >/dev/null; then
28652   if test -s conftest.err; then
28653     ac_cpp_err=$ac_c_preproc_warn_flag
28654   else
28655     ac_cpp_err=
28656   fi
28657 else
28658   ac_cpp_err=yes
28659 fi
28660 if test -z "$ac_cpp_err"; then
28661   ac_header_preproc=yes
28662 else
28663   echo "$as_me: failed program was:" >&5
28664 sed 's/^/| /' conftest.$ac_ext >&5
28665
28666   ac_header_preproc=no
28667 fi
28668 rm -f conftest.err conftest.$ac_ext
28669 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28670 echo "${ECHO_T}$ac_header_preproc" >&6
28671
28672 # So?  What about this header?
28673 case $ac_header_compiler:$ac_header_preproc in
28674   yes:no )
28675     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28676 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28677     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28678 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28679     (
28680       cat <<\_ASBOX
28681 ## ------------------------------------ ##
28682 ## Report this to bug-autoconf@gnu.org. ##
28683 ## ------------------------------------ ##
28684 _ASBOX
28685     ) |
28686       sed "s/^/$as_me: WARNING:     /" >&2
28687     ;;
28688   no:yes )
28689     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28690 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28691     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28692 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28693     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28695     (
28696       cat <<\_ASBOX
28697 ## ------------------------------------ ##
28698 ## Report this to bug-autoconf@gnu.org. ##
28699 ## ------------------------------------ ##
28700 _ASBOX
28701     ) |
28702       sed "s/^/$as_me: WARNING:     /" >&2
28703     ;;
28704 esac
28705 echo "$as_me:$LINENO: checking for $ac_header" >&5
28706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28708   echo $ECHO_N "(cached) $ECHO_C" >&6
28709 else
28710   eval "$as_ac_Header=$ac_header_preproc"
28711 fi
28712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28713 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28714
28715 fi
28716 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28717   cat >>confdefs.h <<_ACEOF
28718 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28719 _ACEOF
28720
28721     EXTRALIBS_ESD="-lesd"
28722
28723 fi
28724
28725 done
28726
28727
28728 fi
28729
28730
28731
28732
28733
28734 cat >confcache <<\_ACEOF
28735 # This file is a shell script that caches the results of configure
28736 # tests run on this system so they can be shared between configure
28737 # scripts and configure runs, see configure's option --config-cache.
28738 # It is not useful on other systems.  If it contains results you don't
28739 # want to keep, you may remove or edit it.
28740 #
28741 # config.status only pays attention to the cache file if you give it
28742 # the --recheck option to rerun configure.
28743 #
28744 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28745 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28746 # following values.
28747
28748 _ACEOF
28749
28750 # The following way of writing the cache mishandles newlines in values,
28751 # but we know of no workaround that is simple, portable, and efficient.
28752 # So, don't put newlines in cache variables' values.
28753 # Ultrix sh set writes to stderr and can't be redirected directly,
28754 # and sets the high bit in the cache file unless we assign to the vars.
28755 {
28756   (set) 2>&1 |
28757     case `(ac_space=' '; set | grep ac_space) 2>&1` in
28758     *ac_space=\ *)
28759       # `set' does not quote correctly, so add quotes (double-quote
28760       # substitution turns \\\\ into \\, and sed turns \\ into \).
28761       sed -n \
28762         "s/'/'\\\\''/g;
28763           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28764       ;;
28765     *)
28766       # `set' quotes correctly as required by POSIX, so do not add quotes.
28767       sed -n \
28768         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28769       ;;
28770     esac;
28771 } |
28772   sed '
28773      t clear
28774      : clear
28775      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28776      t end
28777      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28778      : end' >>confcache
28779 if diff $cache_file confcache >/dev/null 2>&1; then :; else
28780   if test -w $cache_file; then
28781     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28782     cat confcache >$cache_file
28783   else
28784     echo "not updating unwritable cache $cache_file"
28785   fi
28786 fi
28787 rm -f confcache
28788
28789
28790 CPP_MT_FLAG=
28791 if test "$TOOLKIT" != "MSW"; then
28792
28793
28794     THREADS_LINK=
28795     THREADS_CFLAGS=
28796
28797     if test "$wxUSE_THREADS" = "yes" ; then
28798         if test "$USE_BEOS" = 1; then
28799             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
28800 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
28801             wxUSE_THREADS="no"
28802         fi
28803     fi
28804
28805     if test "$wxUSE_THREADS" = "yes" ; then
28806
28807
28808                                 THREAD_OPTS="-pthread"
28809         case "${host}" in
28810           *-*-solaris2* | *-*-sunos4* )
28811                 if test "x$GCC" = "xyes"; then
28812                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
28813                 else
28814                     THREAD_OPTS="-mt $THREAD_OPTS"
28815                 fi
28816                 ;;
28817           *-*-freebsd*)
28818                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
28819                 ;;
28820           *-*-darwin* | *-*-cygwin* )
28821                                                 THREAD_OPTS=""
28822                 ;;
28823           *-*-aix*)
28824                                 THREAD_OPTS="pthreads"
28825                 ;;
28826           *-hp-hpux* )
28827                                                                 if test "x$GCC" != "xyes"; then
28828                     THREAD_OPTS=""
28829                 fi
28830                 ;;
28831
28832           *-*-irix* )
28833                                                                 if test "x$GCC" = "xyes"; then
28834                     THREAD_OPTS=""
28835                 fi
28836                 ;;
28837
28838           *-*-*UnixWare*)
28839                                 if test "x$GCC" != "xyes"; then
28840                     THREAD_OPTS="-Ethread"
28841                 fi
28842                 ;;
28843         esac
28844
28845                                 THREAD_OPTS="$THREAD_OPTS pthread none"
28846
28847                 THREADS_OK=no
28848         for flag in $THREAD_OPTS; do
28849             case $flag in
28850                 none)
28851                     echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
28852 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
28853                     ;;
28854
28855                 -*)
28856                     echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
28857 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
28858                     THREADS_CFLAGS="$flag"
28859                     ;;
28860
28861                 *)
28862                     echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
28863 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
28864                     THREADS_LINK="-l$flag"
28865                     ;;
28866               esac
28867
28868               save_LIBS="$LIBS"
28869               save_CFLAGS="$CFLAGS"
28870               LIBS="$THREADS_LINK $LIBS"
28871               CFLAGS="$THREADS_CFLAGS $CFLAGS"
28872
28873               cat >conftest.$ac_ext <<_ACEOF
28874 #line $LINENO "configure"
28875 /* confdefs.h.  */
28876 _ACEOF
28877 cat confdefs.h >>conftest.$ac_ext
28878 cat >>conftest.$ac_ext <<_ACEOF
28879 /* end confdefs.h.  */
28880 #include <pthread.h>
28881 int
28882 main ()
28883 {
28884 pthread_create(0,0,0,0);
28885   ;
28886   return 0;
28887 }
28888 _ACEOF
28889 rm -f conftest.$ac_objext conftest$ac_exeext
28890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28891   (eval $ac_link) 2>&5
28892   ac_status=$?
28893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28894   (exit $ac_status); } &&
28895          { ac_try='test -s conftest$ac_exeext'
28896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28897   (eval $ac_try) 2>&5
28898   ac_status=$?
28899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28900   (exit $ac_status); }; }; then
28901   THREADS_OK=yes
28902 else
28903   echo "$as_me: failed program was:" >&5
28904 sed 's/^/| /' conftest.$ac_ext >&5
28905
28906 fi
28907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28908
28909               LIBS="$save_LIBS"
28910               CFLAGS="$save_CFLAGS"
28911
28912               echo "$as_me:$LINENO: result: $THREADS_OK" >&5
28913 echo "${ECHO_T}$THREADS_OK" >&6
28914               if test "x$THREADS_OK" = "xyes"; then
28915                       break;
28916               fi
28917
28918               THREADS_LINK=""
28919               THREADS_CFLAGS=""
28920       done
28921
28922       if test "x$THREADS_OK" != "xyes"; then
28923           wxUSE_THREADS=no
28924           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
28925 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
28926       else
28927                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
28928           LIBS="$THREADS_LINK $LIBS"
28929
28930           echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
28931 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
28932           flag=no
28933           case "${host}" in
28934             *-aix*)
28935                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
28936                 flag="-D_THREAD_SAFE"
28937                 ;;
28938             *-freebsd*)
28939                 flag="-D_THREAD_SAFE"
28940                 ;;
28941             *-hp-hpux* )
28942                 flag="-D_REENTRANT"
28943                 if test "x$GCC" != "xyes"; then
28944                                         flag="$flag -D_RWSTD_MULTI_THREAD"
28945                 fi
28946                 ;;
28947             *solaris* | alpha*-osf*)
28948                 flag="-D_REENTRANT"
28949                 ;;
28950           esac
28951           echo "$as_me:$LINENO: result: ${flag}" >&5
28952 echo "${ECHO_T}${flag}" >&6
28953           if test "x$flag" != xno; then
28954               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
28955           fi
28956
28957           if test "x$THREADS_CFLAGS" != "x"; then
28958                         CFLAGS="$CFLAGS $THREADS_CFLAGS"
28959             CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
28960           fi
28961       fi
28962     fi
28963
28964         if test "$wxUSE_THREADS" = "yes" ; then
28965
28966 for ac_func in thr_setconcurrency
28967 do
28968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28969 echo "$as_me:$LINENO: checking for $ac_func" >&5
28970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28971 if eval "test \"\${$as_ac_var+set}\" = set"; then
28972   echo $ECHO_N "(cached) $ECHO_C" >&6
28973 else
28974   cat >conftest.$ac_ext <<_ACEOF
28975 #line $LINENO "configure"
28976 /* confdefs.h.  */
28977 _ACEOF
28978 cat confdefs.h >>conftest.$ac_ext
28979 cat >>conftest.$ac_ext <<_ACEOF
28980 /* end confdefs.h.  */
28981 /* System header to define __stub macros and hopefully few prototypes,
28982     which can conflict with char $ac_func (); below.
28983     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28984     <limits.h> exists even on freestanding compilers.  */
28985 #ifdef __STDC__
28986 # include <limits.h>
28987 #else
28988 # include <assert.h>
28989 #endif
28990 /* Override any gcc2 internal prototype to avoid an error.  */
28991 #ifdef __cplusplus
28992 extern "C"
28993 {
28994 #endif
28995 /* We use char because int might match the return type of a gcc2
28996    builtin and then its argument prototype would still apply.  */
28997 char $ac_func ();
28998 /* The GNU C library defines this for functions which it implements
28999     to always fail with ENOSYS.  Some functions are actually named
29000     something starting with __ and the normal name is an alias.  */
29001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29002 choke me
29003 #else
29004 char (*f) () = $ac_func;
29005 #endif
29006 #ifdef __cplusplus
29007 }
29008 #endif
29009
29010 int
29011 main ()
29012 {
29013 return f != $ac_func;
29014   ;
29015   return 0;
29016 }
29017 _ACEOF
29018 rm -f conftest.$ac_objext conftest$ac_exeext
29019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29020   (eval $ac_link) 2>&5
29021   ac_status=$?
29022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29023   (exit $ac_status); } &&
29024          { ac_try='test -s conftest$ac_exeext'
29025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29026   (eval $ac_try) 2>&5
29027   ac_status=$?
29028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29029   (exit $ac_status); }; }; then
29030   eval "$as_ac_var=yes"
29031 else
29032   echo "$as_me: failed program was:" >&5
29033 sed 's/^/| /' conftest.$ac_ext >&5
29034
29035 eval "$as_ac_var=no"
29036 fi
29037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29038 fi
29039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29040 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29041 if test `eval echo '${'$as_ac_var'}'` = yes; then
29042   cat >>confdefs.h <<_ACEOF
29043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29044 _ACEOF
29045
29046 fi
29047 done
29048
29049
29050
29051 for ac_header in sched.h
29052 do
29053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29055   echo "$as_me:$LINENO: checking for $ac_header" >&5
29056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29058   echo $ECHO_N "(cached) $ECHO_C" >&6
29059 fi
29060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29062 else
29063   # Is the header compilable?
29064 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29065 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29066 cat >conftest.$ac_ext <<_ACEOF
29067 #line $LINENO "configure"
29068 /* confdefs.h.  */
29069 _ACEOF
29070 cat confdefs.h >>conftest.$ac_ext
29071 cat >>conftest.$ac_ext <<_ACEOF
29072 /* end confdefs.h.  */
29073 $ac_includes_default
29074 #include <$ac_header>
29075 _ACEOF
29076 rm -f conftest.$ac_objext
29077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29078   (eval $ac_compile) 2>&5
29079   ac_status=$?
29080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29081   (exit $ac_status); } &&
29082          { ac_try='test -s conftest.$ac_objext'
29083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29084   (eval $ac_try) 2>&5
29085   ac_status=$?
29086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29087   (exit $ac_status); }; }; then
29088   ac_header_compiler=yes
29089 else
29090   echo "$as_me: failed program was:" >&5
29091 sed 's/^/| /' conftest.$ac_ext >&5
29092
29093 ac_header_compiler=no
29094 fi
29095 rm -f conftest.$ac_objext conftest.$ac_ext
29096 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29097 echo "${ECHO_T}$ac_header_compiler" >&6
29098
29099 # Is the header present?
29100 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29101 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29102 cat >conftest.$ac_ext <<_ACEOF
29103 #line $LINENO "configure"
29104 /* confdefs.h.  */
29105 _ACEOF
29106 cat confdefs.h >>conftest.$ac_ext
29107 cat >>conftest.$ac_ext <<_ACEOF
29108 /* end confdefs.h.  */
29109 #include <$ac_header>
29110 _ACEOF
29111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29112   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29113   ac_status=$?
29114   grep -v '^ *+' conftest.er1 >conftest.err
29115   rm -f conftest.er1
29116   cat conftest.err >&5
29117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29118   (exit $ac_status); } >/dev/null; then
29119   if test -s conftest.err; then
29120     ac_cpp_err=$ac_c_preproc_warn_flag
29121   else
29122     ac_cpp_err=
29123   fi
29124 else
29125   ac_cpp_err=yes
29126 fi
29127 if test -z "$ac_cpp_err"; then
29128   ac_header_preproc=yes
29129 else
29130   echo "$as_me: failed program was:" >&5
29131 sed 's/^/| /' conftest.$ac_ext >&5
29132
29133   ac_header_preproc=no
29134 fi
29135 rm -f conftest.err conftest.$ac_ext
29136 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29137 echo "${ECHO_T}$ac_header_preproc" >&6
29138
29139 # So?  What about this header?
29140 case $ac_header_compiler:$ac_header_preproc in
29141   yes:no )
29142     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29144     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29145 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29146     (
29147       cat <<\_ASBOX
29148 ## ------------------------------------ ##
29149 ## Report this to bug-autoconf@gnu.org. ##
29150 ## ------------------------------------ ##
29151 _ASBOX
29152     ) |
29153       sed "s/^/$as_me: WARNING:     /" >&2
29154     ;;
29155   no:yes )
29156     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29157 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29158     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29159 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29160     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29161 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29162     (
29163       cat <<\_ASBOX
29164 ## ------------------------------------ ##
29165 ## Report this to bug-autoconf@gnu.org. ##
29166 ## ------------------------------------ ##
29167 _ASBOX
29168     ) |
29169       sed "s/^/$as_me: WARNING:     /" >&2
29170     ;;
29171 esac
29172 echo "$as_me:$LINENO: checking for $ac_header" >&5
29173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29174 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29175   echo $ECHO_N "(cached) $ECHO_C" >&6
29176 else
29177   eval "$as_ac_Header=$ac_header_preproc"
29178 fi
29179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29181
29182 fi
29183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29184   cat >>confdefs.h <<_ACEOF
29185 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29186 _ACEOF
29187
29188 fi
29189
29190 done
29191
29192       if test "$ac_cv_header_sched_h" = "yes"; then
29193           echo "$as_me:$LINENO: checking for sched_yield" >&5
29194 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
29195 if test "${ac_cv_func_sched_yield+set}" = set; then
29196   echo $ECHO_N "(cached) $ECHO_C" >&6
29197 else
29198   cat >conftest.$ac_ext <<_ACEOF
29199 #line $LINENO "configure"
29200 /* confdefs.h.  */
29201 _ACEOF
29202 cat confdefs.h >>conftest.$ac_ext
29203 cat >>conftest.$ac_ext <<_ACEOF
29204 /* end confdefs.h.  */
29205 /* System header to define __stub macros and hopefully few prototypes,
29206     which can conflict with char sched_yield (); below.
29207     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29208     <limits.h> exists even on freestanding compilers.  */
29209 #ifdef __STDC__
29210 # include <limits.h>
29211 #else
29212 # include <assert.h>
29213 #endif
29214 /* Override any gcc2 internal prototype to avoid an error.  */
29215 #ifdef __cplusplus
29216 extern "C"
29217 {
29218 #endif
29219 /* We use char because int might match the return type of a gcc2
29220    builtin and then its argument prototype would still apply.  */
29221 char sched_yield ();
29222 /* The GNU C library defines this for functions which it implements
29223     to always fail with ENOSYS.  Some functions are actually named
29224     something starting with __ and the normal name is an alias.  */
29225 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
29226 choke me
29227 #else
29228 char (*f) () = sched_yield;
29229 #endif
29230 #ifdef __cplusplus
29231 }
29232 #endif
29233
29234 int
29235 main ()
29236 {
29237 return f != sched_yield;
29238   ;
29239   return 0;
29240 }
29241 _ACEOF
29242 rm -f conftest.$ac_objext conftest$ac_exeext
29243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29244   (eval $ac_link) 2>&5
29245   ac_status=$?
29246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29247   (exit $ac_status); } &&
29248          { ac_try='test -s conftest$ac_exeext'
29249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29250   (eval $ac_try) 2>&5
29251   ac_status=$?
29252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29253   (exit $ac_status); }; }; then
29254   ac_cv_func_sched_yield=yes
29255 else
29256   echo "$as_me: failed program was:" >&5
29257 sed 's/^/| /' conftest.$ac_ext >&5
29258
29259 ac_cv_func_sched_yield=no
29260 fi
29261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29262 fi
29263 echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
29264 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
29265 if test $ac_cv_func_sched_yield = yes; then
29266   cat >>confdefs.h <<\_ACEOF
29267 #define HAVE_SCHED_YIELD 1
29268 _ACEOF
29269
29270 else
29271
29272                 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
29273 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
29274 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
29275   echo $ECHO_N "(cached) $ECHO_C" >&6
29276 else
29277   ac_check_lib_save_LIBS=$LIBS
29278 LIBS="-lposix4  $LIBS"
29279 cat >conftest.$ac_ext <<_ACEOF
29280 #line $LINENO "configure"
29281 /* confdefs.h.  */
29282 _ACEOF
29283 cat confdefs.h >>conftest.$ac_ext
29284 cat >>conftest.$ac_ext <<_ACEOF
29285 /* end confdefs.h.  */
29286
29287 /* Override any gcc2 internal prototype to avoid an error.  */
29288 #ifdef __cplusplus
29289 extern "C"
29290 #endif
29291 /* We use char because int might match the return type of a gcc2
29292    builtin and then its argument prototype would still apply.  */
29293 char sched_yield ();
29294 int
29295 main ()
29296 {
29297 sched_yield ();
29298   ;
29299   return 0;
29300 }
29301 _ACEOF
29302 rm -f conftest.$ac_objext conftest$ac_exeext
29303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29304   (eval $ac_link) 2>&5
29305   ac_status=$?
29306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29307   (exit $ac_status); } &&
29308          { ac_try='test -s conftest$ac_exeext'
29309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29310   (eval $ac_try) 2>&5
29311   ac_status=$?
29312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29313   (exit $ac_status); }; }; then
29314   ac_cv_lib_posix4_sched_yield=yes
29315 else
29316   echo "$as_me: failed program was:" >&5
29317 sed 's/^/| /' conftest.$ac_ext >&5
29318
29319 ac_cv_lib_posix4_sched_yield=no
29320 fi
29321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29322 LIBS=$ac_check_lib_save_LIBS
29323 fi
29324 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
29325 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
29326 if test $ac_cv_lib_posix4_sched_yield = yes; then
29327   cat >>confdefs.h <<\_ACEOF
29328 #define HAVE_SCHED_YIELD 1
29329 _ACEOF
29330  POSIX4_LINK=" -lposix4"
29331 else
29332   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
29333 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
29334
29335 fi
29336
29337
29338
29339 fi
29340
29341       fi
29342
29343                                           HAVE_PRIOR_FUNCS=0
29344       echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
29345 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
29346 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
29347   echo $ECHO_N "(cached) $ECHO_C" >&6
29348 else
29349   cat >conftest.$ac_ext <<_ACEOF
29350 #line $LINENO "configure"
29351 /* confdefs.h.  */
29352 _ACEOF
29353 cat confdefs.h >>conftest.$ac_ext
29354 cat >>conftest.$ac_ext <<_ACEOF
29355 /* end confdefs.h.  */
29356 /* System header to define __stub macros and hopefully few prototypes,
29357     which can conflict with char pthread_attr_getschedpolicy (); below.
29358     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29359     <limits.h> exists even on freestanding compilers.  */
29360 #ifdef __STDC__
29361 # include <limits.h>
29362 #else
29363 # include <assert.h>
29364 #endif
29365 /* Override any gcc2 internal prototype to avoid an error.  */
29366 #ifdef __cplusplus
29367 extern "C"
29368 {
29369 #endif
29370 /* We use char because int might match the return type of a gcc2
29371    builtin and then its argument prototype would still apply.  */
29372 char pthread_attr_getschedpolicy ();
29373 /* The GNU C library defines this for functions which it implements
29374     to always fail with ENOSYS.  Some functions are actually named
29375     something starting with __ and the normal name is an alias.  */
29376 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
29377 choke me
29378 #else
29379 char (*f) () = pthread_attr_getschedpolicy;
29380 #endif
29381 #ifdef __cplusplus
29382 }
29383 #endif
29384
29385 int
29386 main ()
29387 {
29388 return f != pthread_attr_getschedpolicy;
29389   ;
29390   return 0;
29391 }
29392 _ACEOF
29393 rm -f conftest.$ac_objext conftest$ac_exeext
29394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29395   (eval $ac_link) 2>&5
29396   ac_status=$?
29397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29398   (exit $ac_status); } &&
29399          { ac_try='test -s conftest$ac_exeext'
29400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29401   (eval $ac_try) 2>&5
29402   ac_status=$?
29403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29404   (exit $ac_status); }; }; then
29405   ac_cv_func_pthread_attr_getschedpolicy=yes
29406 else
29407   echo "$as_me: failed program was:" >&5
29408 sed 's/^/| /' conftest.$ac_ext >&5
29409
29410 ac_cv_func_pthread_attr_getschedpolicy=no
29411 fi
29412 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29413 fi
29414 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
29415 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
29416 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
29417   echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
29418 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
29419 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
29420   echo $ECHO_N "(cached) $ECHO_C" >&6
29421 else
29422   cat >conftest.$ac_ext <<_ACEOF
29423 #line $LINENO "configure"
29424 /* confdefs.h.  */
29425 _ACEOF
29426 cat confdefs.h >>conftest.$ac_ext
29427 cat >>conftest.$ac_ext <<_ACEOF
29428 /* end confdefs.h.  */
29429 /* System header to define __stub macros and hopefully few prototypes,
29430     which can conflict with char pthread_attr_setschedparam (); below.
29431     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29432     <limits.h> exists even on freestanding compilers.  */
29433 #ifdef __STDC__
29434 # include <limits.h>
29435 #else
29436 # include <assert.h>
29437 #endif
29438 /* Override any gcc2 internal prototype to avoid an error.  */
29439 #ifdef __cplusplus
29440 extern "C"
29441 {
29442 #endif
29443 /* We use char because int might match the return type of a gcc2
29444    builtin and then its argument prototype would still apply.  */
29445 char pthread_attr_setschedparam ();
29446 /* The GNU C library defines this for functions which it implements
29447     to always fail with ENOSYS.  Some functions are actually named
29448     something starting with __ and the normal name is an alias.  */
29449 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
29450 choke me
29451 #else
29452 char (*f) () = pthread_attr_setschedparam;
29453 #endif
29454 #ifdef __cplusplus
29455 }
29456 #endif
29457
29458 int
29459 main ()
29460 {
29461 return f != pthread_attr_setschedparam;
29462   ;
29463   return 0;
29464 }
29465 _ACEOF
29466 rm -f conftest.$ac_objext conftest$ac_exeext
29467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29468   (eval $ac_link) 2>&5
29469   ac_status=$?
29470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29471   (exit $ac_status); } &&
29472          { ac_try='test -s conftest$ac_exeext'
29473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29474   (eval $ac_try) 2>&5
29475   ac_status=$?
29476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29477   (exit $ac_status); }; }; then
29478   ac_cv_func_pthread_attr_setschedparam=yes
29479 else
29480   echo "$as_me: failed program was:" >&5
29481 sed 's/^/| /' conftest.$ac_ext >&5
29482
29483 ac_cv_func_pthread_attr_setschedparam=no
29484 fi
29485 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29486 fi
29487 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
29488 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
29489 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
29490   echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
29491 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
29492 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
29493   echo $ECHO_N "(cached) $ECHO_C" >&6
29494 else
29495   cat >conftest.$ac_ext <<_ACEOF
29496 #line $LINENO "configure"
29497 /* confdefs.h.  */
29498 _ACEOF
29499 cat confdefs.h >>conftest.$ac_ext
29500 cat >>conftest.$ac_ext <<_ACEOF
29501 /* end confdefs.h.  */
29502 /* System header to define __stub macros and hopefully few prototypes,
29503     which can conflict with char sched_get_priority_max (); below.
29504     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29505     <limits.h> exists even on freestanding compilers.  */
29506 #ifdef __STDC__
29507 # include <limits.h>
29508 #else
29509 # include <assert.h>
29510 #endif
29511 /* Override any gcc2 internal prototype to avoid an error.  */
29512 #ifdef __cplusplus
29513 extern "C"
29514 {
29515 #endif
29516 /* We use char because int might match the return type of a gcc2
29517    builtin and then its argument prototype would still apply.  */
29518 char sched_get_priority_max ();
29519 /* The GNU C library defines this for functions which it implements
29520     to always fail with ENOSYS.  Some functions are actually named
29521     something starting with __ and the normal name is an alias.  */
29522 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
29523 choke me
29524 #else
29525 char (*f) () = sched_get_priority_max;
29526 #endif
29527 #ifdef __cplusplus
29528 }
29529 #endif
29530
29531 int
29532 main ()
29533 {
29534 return f != sched_get_priority_max;
29535   ;
29536   return 0;
29537 }
29538 _ACEOF
29539 rm -f conftest.$ac_objext conftest$ac_exeext
29540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29541   (eval $ac_link) 2>&5
29542   ac_status=$?
29543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29544   (exit $ac_status); } &&
29545          { ac_try='test -s conftest$ac_exeext'
29546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29547   (eval $ac_try) 2>&5
29548   ac_status=$?
29549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29550   (exit $ac_status); }; }; then
29551   ac_cv_func_sched_get_priority_max=yes
29552 else
29553   echo "$as_me: failed program was:" >&5
29554 sed 's/^/| /' conftest.$ac_ext >&5
29555
29556 ac_cv_func_sched_get_priority_max=no
29557 fi
29558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29559 fi
29560 echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
29561 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
29562 if test $ac_cv_func_sched_get_priority_max = yes; then
29563   HAVE_PRIOR_FUNCS=1
29564 else
29565   echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
29566 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
29567 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
29568   echo $ECHO_N "(cached) $ECHO_C" >&6
29569 else
29570   ac_check_lib_save_LIBS=$LIBS
29571 LIBS="-lposix4  $LIBS"
29572 cat >conftest.$ac_ext <<_ACEOF
29573 #line $LINENO "configure"
29574 /* confdefs.h.  */
29575 _ACEOF
29576 cat confdefs.h >>conftest.$ac_ext
29577 cat >>conftest.$ac_ext <<_ACEOF
29578 /* end confdefs.h.  */
29579
29580 /* Override any gcc2 internal prototype to avoid an error.  */
29581 #ifdef __cplusplus
29582 extern "C"
29583 #endif
29584 /* We use char because int might match the return type of a gcc2
29585    builtin and then its argument prototype would still apply.  */
29586 char sched_get_priority_max ();
29587 int
29588 main ()
29589 {
29590 sched_get_priority_max ();
29591   ;
29592   return 0;
29593 }
29594 _ACEOF
29595 rm -f conftest.$ac_objext conftest$ac_exeext
29596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29597   (eval $ac_link) 2>&5
29598   ac_status=$?
29599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29600   (exit $ac_status); } &&
29601          { ac_try='test -s conftest$ac_exeext'
29602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29603   (eval $ac_try) 2>&5
29604   ac_status=$?
29605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29606   (exit $ac_status); }; }; then
29607   ac_cv_lib_posix4_sched_get_priority_max=yes
29608 else
29609   echo "$as_me: failed program was:" >&5
29610 sed 's/^/| /' conftest.$ac_ext >&5
29611
29612 ac_cv_lib_posix4_sched_get_priority_max=no
29613 fi
29614 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29615 LIBS=$ac_check_lib_save_LIBS
29616 fi
29617 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
29618 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
29619 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
29620
29621                                 HAVE_PRIOR_FUNCS=1
29622                                 POSIX4_LINK=" -lposix4"
29623
29624 fi
29625
29626
29627 fi
29628
29629
29630 fi
29631
29632
29633 fi
29634
29635
29636       if test "$HAVE_PRIOR_FUNCS" = 1; then
29637         cat >>confdefs.h <<\_ACEOF
29638 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
29639 _ACEOF
29640
29641       else
29642         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
29643 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
29644       fi
29645
29646       echo "$as_me:$LINENO: checking for pthread_cancel" >&5
29647 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
29648 if test "${ac_cv_func_pthread_cancel+set}" = set; then
29649   echo $ECHO_N "(cached) $ECHO_C" >&6
29650 else
29651   cat >conftest.$ac_ext <<_ACEOF
29652 #line $LINENO "configure"
29653 /* confdefs.h.  */
29654 _ACEOF
29655 cat confdefs.h >>conftest.$ac_ext
29656 cat >>conftest.$ac_ext <<_ACEOF
29657 /* end confdefs.h.  */
29658 /* System header to define __stub macros and hopefully few prototypes,
29659     which can conflict with char pthread_cancel (); below.
29660     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29661     <limits.h> exists even on freestanding compilers.  */
29662 #ifdef __STDC__
29663 # include <limits.h>
29664 #else
29665 # include <assert.h>
29666 #endif
29667 /* Override any gcc2 internal prototype to avoid an error.  */
29668 #ifdef __cplusplus
29669 extern "C"
29670 {
29671 #endif
29672 /* We use char because int might match the return type of a gcc2
29673    builtin and then its argument prototype would still apply.  */
29674 char pthread_cancel ();
29675 /* The GNU C library defines this for functions which it implements
29676     to always fail with ENOSYS.  Some functions are actually named
29677     something starting with __ and the normal name is an alias.  */
29678 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
29679 choke me
29680 #else
29681 char (*f) () = pthread_cancel;
29682 #endif
29683 #ifdef __cplusplus
29684 }
29685 #endif
29686
29687 int
29688 main ()
29689 {
29690 return f != pthread_cancel;
29691   ;
29692   return 0;
29693 }
29694 _ACEOF
29695 rm -f conftest.$ac_objext conftest$ac_exeext
29696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29697   (eval $ac_link) 2>&5
29698   ac_status=$?
29699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29700   (exit $ac_status); } &&
29701          { ac_try='test -s conftest$ac_exeext'
29702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29703   (eval $ac_try) 2>&5
29704   ac_status=$?
29705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29706   (exit $ac_status); }; }; then
29707   ac_cv_func_pthread_cancel=yes
29708 else
29709   echo "$as_me: failed program was:" >&5
29710 sed 's/^/| /' conftest.$ac_ext >&5
29711
29712 ac_cv_func_pthread_cancel=no
29713 fi
29714 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29715 fi
29716 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
29717 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
29718 if test $ac_cv_func_pthread_cancel = yes; then
29719   cat >>confdefs.h <<\_ACEOF
29720 #define HAVE_PTHREAD_CANCEL 1
29721 _ACEOF
29722
29723 else
29724   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
29725 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
29726 fi
29727
29728
29729       echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
29730 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
29731 if test "${wx_cv_func_pthread_cleanup_push+set}" = set; then
29732   echo $ECHO_N "(cached) $ECHO_C" >&6
29733 else
29734
29735         cat >conftest.$ac_ext <<_ACEOF
29736 #line $LINENO "configure"
29737 /* confdefs.h.  */
29738 _ACEOF
29739 cat confdefs.h >>conftest.$ac_ext
29740 cat >>conftest.$ac_ext <<_ACEOF
29741 /* end confdefs.h.  */
29742 #include <pthread.h>
29743 int
29744 main ()
29745 {
29746
29747                         pthread_cleanup_push(NULL, NULL);
29748                         pthread_cleanup_pop(0);
29749
29750   ;
29751   return 0;
29752 }
29753 _ACEOF
29754 rm -f conftest.$ac_objext
29755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29756   (eval $ac_compile) 2>&5
29757   ac_status=$?
29758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759   (exit $ac_status); } &&
29760          { ac_try='test -s conftest.$ac_objext'
29761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29762   (eval $ac_try) 2>&5
29763   ac_status=$?
29764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29765   (exit $ac_status); }; }; then
29766
29767                         wx_cv_func_pthread_cleanup_push=yes
29768
29769 else
29770   echo "$as_me: failed program was:" >&5
29771 sed 's/^/| /' conftest.$ac_ext >&5
29772
29773
29774                         wx_cv_func_pthread_cleanup_push=no
29775
29776 fi
29777 rm -f conftest.$ac_objext conftest.$ac_ext
29778
29779 fi
29780 echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup_push" >&5
29781 echo "${ECHO_T}$wx_cv_func_pthread_cleanup_push" >&6
29782
29783       if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
29784           cat >>confdefs.h <<\_ACEOF
29785 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
29786 _ACEOF
29787
29788       fi
29789
29790
29791       echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
29792 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
29793 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
29794   echo $ECHO_N "(cached) $ECHO_C" >&6
29795 else
29796
29797         cat >conftest.$ac_ext <<_ACEOF
29798 #line $LINENO "configure"
29799 /* confdefs.h.  */
29800 _ACEOF
29801 cat confdefs.h >>conftest.$ac_ext
29802 cat >>conftest.$ac_ext <<_ACEOF
29803 /* end confdefs.h.  */
29804 #include <pthread.h>
29805 int
29806 main ()
29807 {
29808
29809                pthread_mutexattr_t attr;
29810                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
29811
29812   ;
29813   return 0;
29814 }
29815 _ACEOF
29816 rm -f conftest.$ac_objext
29817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29818   (eval $ac_compile) 2>&5
29819   ac_status=$?
29820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29821   (exit $ac_status); } &&
29822          { ac_try='test -s conftest.$ac_objext'
29823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29824   (eval $ac_try) 2>&5
29825   ac_status=$?
29826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29827   (exit $ac_status); }; }; then
29828
29829                wx_cv_type_pthread_mutexattr_t=yes
29830
29831 else
29832   echo "$as_me: failed program was:" >&5
29833 sed 's/^/| /' conftest.$ac_ext >&5
29834
29835
29836                wx_cv_type_pthread_mutexattr_t=no
29837
29838
29839 fi
29840 rm -f conftest.$ac_objext conftest.$ac_ext
29841
29842 fi
29843 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
29844 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
29845
29846       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
29847         cat >>confdefs.h <<\_ACEOF
29848 #define HAVE_PTHREAD_MUTEXATTR_T 1
29849 _ACEOF
29850
29851       else
29852                 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
29853 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
29854 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
29855   echo $ECHO_N "(cached) $ECHO_C" >&6
29856 else
29857
29858             cat >conftest.$ac_ext <<_ACEOF
29859 #line $LINENO "configure"
29860 /* confdefs.h.  */
29861 _ACEOF
29862 cat confdefs.h >>conftest.$ac_ext
29863 cat >>conftest.$ac_ext <<_ACEOF
29864 /* end confdefs.h.  */
29865 #include <pthread.h>
29866 int
29867 main ()
29868 {
29869
29870                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
29871
29872   ;
29873   return 0;
29874 }
29875 _ACEOF
29876 rm -f conftest.$ac_objext
29877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29878   (eval $ac_compile) 2>&5
29879   ac_status=$?
29880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29881   (exit $ac_status); } &&
29882          { ac_try='test -s conftest.$ac_objext'
29883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29884   (eval $ac_try) 2>&5
29885   ac_status=$?
29886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29887   (exit $ac_status); }; }; then
29888
29889                     wx_cv_type_pthread_rec_mutex_init=yes
29890
29891 else
29892   echo "$as_me: failed program was:" >&5
29893 sed 's/^/| /' conftest.$ac_ext >&5
29894
29895
29896                     wx_cv_type_pthread_rec_mutex_init=no
29897
29898
29899 fi
29900 rm -f conftest.$ac_objext conftest.$ac_ext
29901
29902 fi
29903 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
29904 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
29905         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
29906           cat >>confdefs.h <<\_ACEOF
29907 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
29908 _ACEOF
29909
29910         else
29911                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
29912 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
29913         fi
29914       fi
29915     fi
29916
29917 else
29918     if test "$wxUSE_THREADS" = "yes" ; then
29919       case "${host}" in
29920         *-*-mingw32* )
29921                         echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
29922 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
29923 if test "${wx_cv_cflags_mthread+set}" = set; then
29924   echo $ECHO_N "(cached) $ECHO_C" >&6
29925 else
29926
29927                     CFLAGS_OLD="$CFLAGS"
29928                     CFLAGS="$CFLAGS -mthreads"
29929                     cat >conftest.$ac_ext <<_ACEOF
29930 #line $LINENO "configure"
29931 /* confdefs.h.  */
29932 _ACEOF
29933 cat confdefs.h >>conftest.$ac_ext
29934 cat >>conftest.$ac_ext <<_ACEOF
29935 /* end confdefs.h.  */
29936
29937 int
29938 main ()
29939 {
29940
29941   ;
29942   return 0;
29943 }
29944 _ACEOF
29945 rm -f conftest.$ac_objext
29946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29947   (eval $ac_compile) 2>&5
29948   ac_status=$?
29949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29950   (exit $ac_status); } &&
29951          { ac_try='test -s conftest.$ac_objext'
29952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29953   (eval $ac_try) 2>&5
29954   ac_status=$?
29955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29956   (exit $ac_status); }; }; then
29957   wx_cv_cflags_mthread=yes
29958 else
29959   echo "$as_me: failed program was:" >&5
29960 sed 's/^/| /' conftest.$ac_ext >&5
29961
29962 wx_cv_cflags_mthread=no
29963
29964 fi
29965 rm -f conftest.$ac_objext conftest.$ac_ext
29966
29967
29968 fi
29969 echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
29970 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
29971
29972             if test "$wx_cv_cflags_mthread" = "yes"; then
29973                                 CXXFLAGS="$CXXFLAGS -mthreads"
29974                 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
29975                 LDFLAGS="$LDFLAGS -mthreads"
29976             else
29977                                 CFLAGS="$CFLAGS_OLD"
29978             fi
29979         ;;
29980       esac
29981     fi
29982 fi
29983
29984 if test "$wxUSE_THREADS" = "yes"; then
29985   cat >>confdefs.h <<\_ACEOF
29986 #define wxUSE_THREADS 1
29987 _ACEOF
29988
29989
29990   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
29991 else
29992       if test "$ac_cv_func_strtok_r" = "yes"; then
29993     echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
29994 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
29995     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
29996         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
29997         echo "$as_me:$LINENO: result: yes" >&5
29998 echo "${ECHO_T}yes" >&6
29999     else
30000         echo "$as_me:$LINENO: result: no" >&5
30001 echo "${ECHO_T}no" >&6
30002     fi
30003   fi
30004 fi
30005
30006 if test "$WXGTK20" = 1 ; then
30007   cat >>confdefs.h <<_ACEOF
30008 #define __WXGTK20__ $WXGTK20
30009 _ACEOF
30010
30011   WXGTK12=1
30012 fi
30013
30014 if test "$WXGTK12" = 1 ; then
30015   cat >>confdefs.h <<_ACEOF
30016 #define __WXGTK12__ $WXGTK12
30017 _ACEOF
30018
30019 fi
30020
30021 if test "$WXGTK127" = 1 ; then
30022   cat >>confdefs.h <<_ACEOF
30023 #define __WXGTK127__ $WXGTK127
30024 _ACEOF
30025
30026 fi
30027
30028 WXDEBUG=
30029
30030 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
30031     WXDEBUG="-g"
30032     wxUSE_OPTIMISE=no
30033 fi
30034
30035 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
30036     wxUSE_DEBUG_INFO=yes
30037     WXDEBUG="-ggdb"
30038 fi
30039
30040 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
30041     cat >>confdefs.h <<\_ACEOF
30042 #define WXDEBUG 1
30043 _ACEOF
30044
30045     WXDEBUG_DEFINE="-D__WXDEBUG__"
30046 else
30047     if test "$wxUSE_GTK" = 1 ; then
30048         WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
30049     fi
30050 fi
30051
30052 if test "$wxUSE_MEM_TRACING" = "yes" ; then
30053     cat >>confdefs.h <<\_ACEOF
30054 #define wxUSE_MEMORY_TRACING 1
30055 _ACEOF
30056
30057     cat >>confdefs.h <<\_ACEOF
30058 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
30059 _ACEOF
30060
30061     cat >>confdefs.h <<\_ACEOF
30062 #define wxUSE_DEBUG_NEW_ALWAYS 1
30063 _ACEOF
30064
30065     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
30066 fi
30067
30068 if test "$wxUSE_DMALLOC" = "yes" ; then
30069     DMALLOC_LIBS="-ldmalloc"
30070 fi
30071
30072 PROFILE=
30073 if test "$wxUSE_PROFILE" = "yes" ; then
30074     PROFILE=" -pg"
30075 fi
30076
30077 CODE_GEN_FLAGS=
30078 CODE_GEN_FLAGS_CXX=
30079 if test "$GCC" = "yes" ; then
30080     if test "$wxUSE_NO_RTTI" = "yes" ; then
30081         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
30082     fi
30083     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
30084         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
30085     fi
30086     if test "$wxUSE_PERMISSIVE" = "yes" ; then
30087         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
30088     fi
30089
30090                                                 case "${host}" in
30091       powerpc*-*-aix* )
30092         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
30093         ;;
30094       *-hppa* )
30095         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
30096         ;;
30097     esac
30098 fi
30099
30100 OPTIMISE=
30101 if test "$wxUSE_OPTIMISE" = "no" ; then
30102     if test "$GCC" = yes ; then
30103                         OPTIMISE="-O0"
30104     fi
30105 else
30106     if test "$GCC" = yes ; then
30107         OPTIMISE="-O2"
30108
30109                 case "${host}" in
30110             i586-*-*|i686-*-* )
30111             OPTIMISE="${OPTIMISE} "
30112         ;;
30113         esac
30114     else
30115         OPTIMISE="-O"
30116     fi
30117 fi
30118
30119
30120 if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
30121     cat >>confdefs.h <<\_ACEOF
30122 #define WXWIN_COMPATIBILITY_2_2 1
30123 _ACEOF
30124
30125
30126     WXWIN_COMPATIBILITY_2_4="yes"
30127 fi
30128
30129 if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
30130     cat >>confdefs.h <<\_ACEOF
30131 #define WXWIN_COMPATIBILITY_2_4 1
30132 _ACEOF
30133
30134 fi
30135
30136
30137 if test "$wxUSE_GUI" = "yes"; then
30138   cat >>confdefs.h <<\_ACEOF
30139 #define wxUSE_GUI 1
30140 _ACEOF
30141
30142
30143                       else
30144   cat >>confdefs.h <<\_ACEOF
30145 #define wxUSE_NOGUI 1
30146 _ACEOF
30147
30148 fi
30149
30150
30151 if test "$wxUSE_UNIX" = "yes"; then
30152   cat >>confdefs.h <<\_ACEOF
30153 #define wxUSE_UNIX 1
30154 _ACEOF
30155
30156 fi
30157
30158
30159 if test "$wxUSE_STL" = "yes"; then
30160   cat >>confdefs.h <<\_ACEOF
30161 #define wxUSE_STL 1
30162 _ACEOF
30163
30164 fi
30165
30166 if test "$wxUSE_APPLE_IEEE" = "yes"; then
30167   cat >>confdefs.h <<\_ACEOF
30168 #define wxUSE_APPLE_IEEE 1
30169 _ACEOF
30170
30171 fi
30172
30173 if test "$wxUSE_TIMER" = "yes"; then
30174   cat >>confdefs.h <<\_ACEOF
30175 #define wxUSE_TIMER 1
30176 _ACEOF
30177
30178 fi
30179
30180 if test "$wxUSE_WAVE" = "yes"; then
30181   cat >>confdefs.h <<\_ACEOF
30182 #define wxUSE_WAVE 1
30183 _ACEOF
30184
30185 fi
30186
30187 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
30188   cat >>confdefs.h <<\_ACEOF
30189 #define wxUSE_CMDLINE_PARSER 1
30190 _ACEOF
30191
30192 fi
30193
30194 if test "$wxUSE_STOPWATCH" = "yes"; then
30195   cat >>confdefs.h <<\_ACEOF
30196 #define wxUSE_STOPWATCH 1
30197 _ACEOF
30198
30199 fi
30200
30201 if test "$wxUSE_DATETIME" = "yes"; then
30202   cat >>confdefs.h <<\_ACEOF
30203 #define wxUSE_DATETIME 1
30204 _ACEOF
30205
30206 fi
30207
30208 if test "$wxUSE_FILE" = "yes"; then
30209   cat >>confdefs.h <<\_ACEOF
30210 #define wxUSE_FILE 1
30211 _ACEOF
30212
30213 fi
30214
30215 if test "$wxUSE_FFILE" = "yes"; then
30216   cat >>confdefs.h <<\_ACEOF
30217 #define wxUSE_FFILE 1
30218 _ACEOF
30219
30220 fi
30221
30222 if test "$wxUSE_FILESYSTEM" = "yes"; then
30223   cat >>confdefs.h <<\_ACEOF
30224 #define wxUSE_FILESYSTEM 1
30225 _ACEOF
30226
30227 fi
30228
30229 if test "$wxUSE_FS_ZIP" = "yes"; then
30230   cat >>confdefs.h <<\_ACEOF
30231 #define wxUSE_FS_ZIP 1
30232 _ACEOF
30233
30234 fi
30235
30236 if test "$wxUSE_ZIPSTREAM" = "yes"; then
30237   cat >>confdefs.h <<\_ACEOF
30238 #define wxUSE_ZIPSTREAM 1
30239 _ACEOF
30240
30241 fi
30242
30243 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
30244   cat >>confdefs.h <<\_ACEOF
30245 #define wxUSE_ON_FATAL_EXCEPTION 1
30246 _ACEOF
30247
30248 fi
30249
30250 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30251   cat >>confdefs.h <<\_ACEOF
30252 #define wxUSE_SNGLINST_CHECKER 1
30253 _ACEOF
30254
30255 fi
30256
30257 if test "$wxUSE_BUSYINFO" = "yes"; then
30258   cat >>confdefs.h <<\_ACEOF
30259 #define wxUSE_BUSYINFO 1
30260 _ACEOF
30261
30262 fi
30263
30264 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
30265   cat >>confdefs.h <<\_ACEOF
30266 #define wxUSE_STD_IOSTREAM 1
30267 _ACEOF
30268
30269 fi
30270
30271 if test "$wxUSE_TEXTBUFFER" = "yes"; then
30272     cat >>confdefs.h <<\_ACEOF
30273 #define wxUSE_TEXTBUFFER 1
30274 _ACEOF
30275
30276 fi
30277
30278 if test "$wxUSE_TEXTFILE" = "yes"; then
30279   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
30280     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
30281 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
30282   else
30283     cat >>confdefs.h <<\_ACEOF
30284 #define wxUSE_TEXTFILE 1
30285 _ACEOF
30286
30287   fi
30288 fi
30289
30290 if test "$wxUSE_CONFIG" = "yes" ; then
30291   if test "$wxUSE_TEXTFILE" != "yes"; then
30292     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
30293 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
30294   else
30295     cat >>confdefs.h <<\_ACEOF
30296 #define wxUSE_CONFIG 1
30297 _ACEOF
30298
30299     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
30300   fi
30301 fi
30302
30303 if test "$wxUSE_INTL" = "yes" ; then
30304   if test "$wxUSE_FILE" != "yes"; then
30305     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
30306 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
30307   else
30308     cat >>confdefs.h <<\_ACEOF
30309 #define wxUSE_INTL 1
30310 _ACEOF
30311
30312     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
30313     GUIDIST="$GUIDIST INTL_DIST"
30314   fi
30315 fi
30316
30317 if test "$wxUSE_LOG" = "yes"; then
30318   cat >>confdefs.h <<\_ACEOF
30319 #define wxUSE_LOG 1
30320 _ACEOF
30321
30322
30323     if test "$wxUSE_LOGGUI" = "yes"; then
30324       cat >>confdefs.h <<\_ACEOF
30325 #define wxUSE_LOGGUI 1
30326 _ACEOF
30327
30328     fi
30329
30330     if test "$wxUSE_LOGWINDOW" = "yes"; then
30331       cat >>confdefs.h <<\_ACEOF
30332 #define wxUSE_LOGWINDOW 1
30333 _ACEOF
30334
30335     fi
30336
30337     if test "$wxUSE_LOGDIALOG" = "yes"; then
30338       cat >>confdefs.h <<\_ACEOF
30339 #define wxUSE_LOG_DIALOG 1
30340 _ACEOF
30341
30342     fi
30343 fi
30344
30345 if test "$wxUSE_LONGLONG" = "yes"; then
30346   cat >>confdefs.h <<\_ACEOF
30347 #define wxUSE_LONGLONG 1
30348 _ACEOF
30349
30350 fi
30351
30352 if test "$wxUSE_GEOMETRY" = "yes"; then
30353   cat >>confdefs.h <<\_ACEOF
30354 #define wxUSE_GEOMETRY 1
30355 _ACEOF
30356
30357 fi
30358
30359 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
30360   cat >>confdefs.h <<\_ACEOF
30361 #define wxUSE_DIALUP_MANAGER 1
30362 _ACEOF
30363
30364   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
30365 fi
30366
30367 if test "$wxUSE_STREAMS" = "yes" ; then
30368   cat >>confdefs.h <<\_ACEOF
30369 #define wxUSE_STREAMS 1
30370 _ACEOF
30371
30372 fi
30373
30374
30375 if test "$wxUSE_DATETIME" = "yes"; then
30376
30377 for ac_func in strptime
30378 do
30379 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30380 echo "$as_me:$LINENO: checking for $ac_func" >&5
30381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30382 if eval "test \"\${$as_ac_var+set}\" = set"; then
30383   echo $ECHO_N "(cached) $ECHO_C" >&6
30384 else
30385   cat >conftest.$ac_ext <<_ACEOF
30386 #line $LINENO "configure"
30387 /* confdefs.h.  */
30388 _ACEOF
30389 cat confdefs.h >>conftest.$ac_ext
30390 cat >>conftest.$ac_ext <<_ACEOF
30391 /* end confdefs.h.  */
30392 /* System header to define __stub macros and hopefully few prototypes,
30393     which can conflict with char $ac_func (); below.
30394     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30395     <limits.h> exists even on freestanding compilers.  */
30396 #ifdef __STDC__
30397 # include <limits.h>
30398 #else
30399 # include <assert.h>
30400 #endif
30401 /* Override any gcc2 internal prototype to avoid an error.  */
30402 #ifdef __cplusplus
30403 extern "C"
30404 {
30405 #endif
30406 /* We use char because int might match the return type of a gcc2
30407    builtin and then its argument prototype would still apply.  */
30408 char $ac_func ();
30409 /* The GNU C library defines this for functions which it implements
30410     to always fail with ENOSYS.  Some functions are actually named
30411     something starting with __ and the normal name is an alias.  */
30412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30413 choke me
30414 #else
30415 char (*f) () = $ac_func;
30416 #endif
30417 #ifdef __cplusplus
30418 }
30419 #endif
30420
30421 int
30422 main ()
30423 {
30424 return f != $ac_func;
30425   ;
30426   return 0;
30427 }
30428 _ACEOF
30429 rm -f conftest.$ac_objext conftest$ac_exeext
30430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30431   (eval $ac_link) 2>&5
30432   ac_status=$?
30433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30434   (exit $ac_status); } &&
30435          { ac_try='test -s conftest$ac_exeext'
30436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30437   (eval $ac_try) 2>&5
30438   ac_status=$?
30439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30440   (exit $ac_status); }; }; then
30441   eval "$as_ac_var=yes"
30442 else
30443   echo "$as_me: failed program was:" >&5
30444 sed 's/^/| /' conftest.$ac_ext >&5
30445
30446 eval "$as_ac_var=no"
30447 fi
30448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30449 fi
30450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30451 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30452 if test `eval echo '${'$as_ac_var'}'` = yes; then
30453   cat >>confdefs.h <<_ACEOF
30454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30455 _ACEOF
30456
30457 fi
30458 done
30459
30460
30461             echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
30462 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
30463 if test "${wx_cv_var_timezone+set}" = set; then
30464   echo $ECHO_N "(cached) $ECHO_C" >&6
30465 else
30466
30467                         cat >conftest.$ac_ext <<_ACEOF
30468 #line $LINENO "configure"
30469 /* confdefs.h.  */
30470 _ACEOF
30471 cat confdefs.h >>conftest.$ac_ext
30472 cat >>conftest.$ac_ext <<_ACEOF
30473 /* end confdefs.h.  */
30474
30475                                 #include <time.h>
30476
30477 int
30478 main ()
30479 {
30480
30481                                 int tz;
30482                                 tz = timezone;
30483
30484   ;
30485   return 0;
30486 }
30487 _ACEOF
30488 rm -f conftest.$ac_objext
30489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30490   (eval $ac_compile) 2>&5
30491   ac_status=$?
30492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30493   (exit $ac_status); } &&
30494          { ac_try='test -s conftest.$ac_objext'
30495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30496   (eval $ac_try) 2>&5
30497   ac_status=$?
30498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30499   (exit $ac_status); }; }; then
30500
30501                                 wx_cv_var_timezone=timezone
30502
30503 else
30504   echo "$as_me: failed program was:" >&5
30505 sed 's/^/| /' conftest.$ac_ext >&5
30506
30507
30508                                 cat >conftest.$ac_ext <<_ACEOF
30509 #line $LINENO "configure"
30510 /* confdefs.h.  */
30511 _ACEOF
30512 cat confdefs.h >>conftest.$ac_ext
30513 cat >>conftest.$ac_ext <<_ACEOF
30514 /* end confdefs.h.  */
30515
30516                                         #include <time.h>
30517
30518 int
30519 main ()
30520 {
30521
30522                                         int tz;
30523                                         tz = _timezone;
30524
30525   ;
30526   return 0;
30527 }
30528 _ACEOF
30529 rm -f conftest.$ac_objext
30530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30531   (eval $ac_compile) 2>&5
30532   ac_status=$?
30533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30534   (exit $ac_status); } &&
30535          { ac_try='test -s conftest.$ac_objext'
30536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30537   (eval $ac_try) 2>&5
30538   ac_status=$?
30539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30540   (exit $ac_status); }; }; then
30541
30542                                         wx_cv_var_timezone=_timezone
30543
30544 else
30545   echo "$as_me: failed program was:" >&5
30546 sed 's/^/| /' conftest.$ac_ext >&5
30547
30548
30549                                         cat >conftest.$ac_ext <<_ACEOF
30550 #line $LINENO "configure"
30551 /* confdefs.h.  */
30552 _ACEOF
30553 cat confdefs.h >>conftest.$ac_ext
30554 cat >>conftest.$ac_ext <<_ACEOF
30555 /* end confdefs.h.  */
30556
30557                                                 #include <time.h>
30558
30559 int
30560 main ()
30561 {
30562
30563                                                 int tz;
30564                                                 tz = __timezone;
30565
30566   ;
30567   return 0;
30568 }
30569 _ACEOF
30570 rm -f conftest.$ac_objext
30571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30572   (eval $ac_compile) 2>&5
30573   ac_status=$?
30574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30575   (exit $ac_status); } &&
30576          { ac_try='test -s conftest.$ac_objext'
30577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30578   (eval $ac_try) 2>&5
30579   ac_status=$?
30580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30581   (exit $ac_status); }; }; then
30582
30583                                                 wx_cv_var_timezone=__timezone
30584
30585 else
30586   echo "$as_me: failed program was:" >&5
30587 sed 's/^/| /' conftest.$ac_ext >&5
30588
30589
30590                                                 if test "$USE_DOS" = 0 ; then
30591                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
30592 echo "$as_me: WARNING: no timezone variable" >&2;}
30593                                                 fi
30594
30595
30596 fi
30597 rm -f conftest.$ac_objext conftest.$ac_ext
30598
30599
30600 fi
30601 rm -f conftest.$ac_objext conftest.$ac_ext
30602
30603
30604 fi
30605 rm -f conftest.$ac_objext conftest.$ac_ext
30606
30607
30608 fi
30609 echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
30610 echo "${ECHO_T}$wx_cv_var_timezone" >&6
30611
30612         if test "x$wx_cv_var_timezone" != x ; then
30613         cat >>confdefs.h <<_ACEOF
30614 #define WX_TIMEZONE $wx_cv_var_timezone
30615 _ACEOF
30616
30617     fi
30618
30619
30620 for ac_func in localtime
30621 do
30622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30623 echo "$as_me:$LINENO: checking for $ac_func" >&5
30624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30625 if eval "test \"\${$as_ac_var+set}\" = set"; then
30626   echo $ECHO_N "(cached) $ECHO_C" >&6
30627 else
30628   cat >conftest.$ac_ext <<_ACEOF
30629 #line $LINENO "configure"
30630 /* confdefs.h.  */
30631 _ACEOF
30632 cat confdefs.h >>conftest.$ac_ext
30633 cat >>conftest.$ac_ext <<_ACEOF
30634 /* end confdefs.h.  */
30635 /* System header to define __stub macros and hopefully few prototypes,
30636     which can conflict with char $ac_func (); below.
30637     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30638     <limits.h> exists even on freestanding compilers.  */
30639 #ifdef __STDC__
30640 # include <limits.h>
30641 #else
30642 # include <assert.h>
30643 #endif
30644 /* Override any gcc2 internal prototype to avoid an error.  */
30645 #ifdef __cplusplus
30646 extern "C"
30647 {
30648 #endif
30649 /* We use char because int might match the return type of a gcc2
30650    builtin and then its argument prototype would still apply.  */
30651 char $ac_func ();
30652 /* The GNU C library defines this for functions which it implements
30653     to always fail with ENOSYS.  Some functions are actually named
30654     something starting with __ and the normal name is an alias.  */
30655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30656 choke me
30657 #else
30658 char (*f) () = $ac_func;
30659 #endif
30660 #ifdef __cplusplus
30661 }
30662 #endif
30663
30664 int
30665 main ()
30666 {
30667 return f != $ac_func;
30668   ;
30669   return 0;
30670 }
30671 _ACEOF
30672 rm -f conftest.$ac_objext conftest$ac_exeext
30673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30674   (eval $ac_link) 2>&5
30675   ac_status=$?
30676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30677   (exit $ac_status); } &&
30678          { ac_try='test -s conftest$ac_exeext'
30679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30680   (eval $ac_try) 2>&5
30681   ac_status=$?
30682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30683   (exit $ac_status); }; }; then
30684   eval "$as_ac_var=yes"
30685 else
30686   echo "$as_me: failed program was:" >&5
30687 sed 's/^/| /' conftest.$ac_ext >&5
30688
30689 eval "$as_ac_var=no"
30690 fi
30691 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30692 fi
30693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30694 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30695 if test `eval echo '${'$as_ac_var'}'` = yes; then
30696   cat >>confdefs.h <<_ACEOF
30697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30698 _ACEOF
30699
30700 fi
30701 done
30702
30703
30704     if test "$ac_cv_func_localtime" = "yes"; then
30705         echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
30706 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
30707 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
30708   echo $ECHO_N "(cached) $ECHO_C" >&6
30709 else
30710
30711             cat >conftest.$ac_ext <<_ACEOF
30712 #line $LINENO "configure"
30713 /* confdefs.h.  */
30714 _ACEOF
30715 cat confdefs.h >>conftest.$ac_ext
30716 cat >>conftest.$ac_ext <<_ACEOF
30717 /* end confdefs.h.  */
30718
30719                     #include <time.h>
30720
30721 int
30722 main ()
30723 {
30724
30725                     struct tm tm;
30726                     tm.tm_gmtoff++;
30727
30728   ;
30729   return 0;
30730 }
30731 _ACEOF
30732 rm -f conftest.$ac_objext
30733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30734   (eval $ac_compile) 2>&5
30735   ac_status=$?
30736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30737   (exit $ac_status); } &&
30738          { ac_try='test -s conftest.$ac_objext'
30739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30740   (eval $ac_try) 2>&5
30741   ac_status=$?
30742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30743   (exit $ac_status); }; }; then
30744
30745                     wx_cv_struct_tm_has_gmtoff=yes
30746
30747 else
30748   echo "$as_me: failed program was:" >&5
30749 sed 's/^/| /' conftest.$ac_ext >&5
30750
30751 wx_cv_struct_tm_has_gmtoff=no
30752
30753 fi
30754 rm -f conftest.$ac_objext conftest.$ac_ext
30755
30756 fi
30757 echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
30758 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
30759     fi
30760
30761     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
30762         cat >>confdefs.h <<\_ACEOF
30763 #define WX_GMTOFF_IN_TM 1
30764 _ACEOF
30765
30766     fi
30767
30768
30769
30770 for ac_func in gettimeofday ftime
30771 do
30772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30773 echo "$as_me:$LINENO: checking for $ac_func" >&5
30774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30775 if eval "test \"\${$as_ac_var+set}\" = set"; then
30776   echo $ECHO_N "(cached) $ECHO_C" >&6
30777 else
30778   cat >conftest.$ac_ext <<_ACEOF
30779 #line $LINENO "configure"
30780 /* confdefs.h.  */
30781 _ACEOF
30782 cat confdefs.h >>conftest.$ac_ext
30783 cat >>conftest.$ac_ext <<_ACEOF
30784 /* end confdefs.h.  */
30785 /* System header to define __stub macros and hopefully few prototypes,
30786     which can conflict with char $ac_func (); below.
30787     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30788     <limits.h> exists even on freestanding compilers.  */
30789 #ifdef __STDC__
30790 # include <limits.h>
30791 #else
30792 # include <assert.h>
30793 #endif
30794 /* Override any gcc2 internal prototype to avoid an error.  */
30795 #ifdef __cplusplus
30796 extern "C"
30797 {
30798 #endif
30799 /* We use char because int might match the return type of a gcc2
30800    builtin and then its argument prototype would still apply.  */
30801 char $ac_func ();
30802 /* The GNU C library defines this for functions which it implements
30803     to always fail with ENOSYS.  Some functions are actually named
30804     something starting with __ and the normal name is an alias.  */
30805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30806 choke me
30807 #else
30808 char (*f) () = $ac_func;
30809 #endif
30810 #ifdef __cplusplus
30811 }
30812 #endif
30813
30814 int
30815 main ()
30816 {
30817 return f != $ac_func;
30818   ;
30819   return 0;
30820 }
30821 _ACEOF
30822 rm -f conftest.$ac_objext conftest$ac_exeext
30823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30824   (eval $ac_link) 2>&5
30825   ac_status=$?
30826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30827   (exit $ac_status); } &&
30828          { ac_try='test -s conftest$ac_exeext'
30829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30830   (eval $ac_try) 2>&5
30831   ac_status=$?
30832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30833   (exit $ac_status); }; }; then
30834   eval "$as_ac_var=yes"
30835 else
30836   echo "$as_me: failed program was:" >&5
30837 sed 's/^/| /' conftest.$ac_ext >&5
30838
30839 eval "$as_ac_var=no"
30840 fi
30841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30842 fi
30843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30844 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30845 if test `eval echo '${'$as_ac_var'}'` = yes; then
30846   cat >>confdefs.h <<_ACEOF
30847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30848 _ACEOF
30849  break
30850 fi
30851 done
30852
30853
30854     if test "$ac_cv_func_gettimeofday" = "yes"; then
30855         echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
30856 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
30857 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
30858   echo $ECHO_N "(cached) $ECHO_C" >&6
30859 else
30860
30861
30862
30863             ac_ext=cc
30864 ac_cpp='$CXXCPP $CPPFLAGS'
30865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30868
30869
30870             cat >conftest.$ac_ext <<_ACEOF
30871 #line $LINENO "configure"
30872 /* confdefs.h.  */
30873 _ACEOF
30874 cat confdefs.h >>conftest.$ac_ext
30875 cat >>conftest.$ac_ext <<_ACEOF
30876 /* end confdefs.h.  */
30877
30878                     #include <sys/time.h>
30879                     #include <unistd.h>
30880
30881 int
30882 main ()
30883 {
30884
30885                     struct timeval tv;
30886                     gettimeofday(&tv, NULL);
30887
30888   ;
30889   return 0;
30890 }
30891 _ACEOF
30892 rm -f conftest.$ac_objext
30893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30894   (eval $ac_compile) 2>&5
30895   ac_status=$?
30896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30897   (exit $ac_status); } &&
30898          { ac_try='test -s conftest.$ac_objext'
30899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30900   (eval $ac_try) 2>&5
30901   ac_status=$?
30902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30903   (exit $ac_status); }; }; then
30904   wx_cv_func_gettimeofday_has_2_args=yes
30905 else
30906   echo "$as_me: failed program was:" >&5
30907 sed 's/^/| /' conftest.$ac_ext >&5
30908
30909 cat >conftest.$ac_ext <<_ACEOF
30910 #line $LINENO "configure"
30911 /* confdefs.h.  */
30912 _ACEOF
30913 cat confdefs.h >>conftest.$ac_ext
30914 cat >>conftest.$ac_ext <<_ACEOF
30915 /* end confdefs.h.  */
30916
30917                         #include <sys/time.h>
30918                         #include <unistd.h>
30919
30920 int
30921 main ()
30922 {
30923
30924                         struct timeval tv;
30925                         gettimeofday(&tv);
30926
30927   ;
30928   return 0;
30929 }
30930 _ACEOF
30931 rm -f conftest.$ac_objext
30932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30933   (eval $ac_compile) 2>&5
30934   ac_status=$?
30935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30936   (exit $ac_status); } &&
30937          { ac_try='test -s conftest.$ac_objext'
30938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30939   (eval $ac_try) 2>&5
30940   ac_status=$?
30941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30942   (exit $ac_status); }; }; then
30943   wx_cv_func_gettimeofday_has_2_args=no
30944 else
30945   echo "$as_me: failed program was:" >&5
30946 sed 's/^/| /' conftest.$ac_ext >&5
30947
30948
30949                         { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
30950 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
30951                         wx_cv_func_gettimeofday_has_2_args=unknown
30952
30953
30954 fi
30955 rm -f conftest.$ac_objext conftest.$ac_ext
30956
30957 fi
30958 rm -f conftest.$ac_objext conftest.$ac_ext
30959             ac_ext=c
30960 ac_cpp='$CPP $CPPFLAGS'
30961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30964
30965
30966 fi
30967 echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
30968 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
30969
30970         if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
30971             cat >>confdefs.h <<\_ACEOF
30972 #define WX_GETTIMEOFDAY_NO_TZ 1
30973 _ACEOF
30974
30975         fi
30976     fi
30977
30978     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
30979 fi
30980
30981
30982 if test "$wxUSE_SOCKETS" = "yes"; then
30983     if test "$wxUSE_MGL" = "1"; then
30984         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
30985 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
30986         wxUSE_SOCKETS="no"
30987     fi
30988     if test "$wxUSE_COCOA" = "1"; then
30989         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under Cocoa... disabled" >&5
30990 echo "$as_me: WARNING: wxSocket not yet supported under Cocoa... disabled" >&2;}
30991         wxUSE_SOCKETS="no"
30992     fi
30993 fi
30994
30995 if test "$wxUSE_SOCKETS" = "yes"; then
30996         if test "$TOOLKIT" != "MSW"; then
30997                 echo "$as_me:$LINENO: checking for socket" >&5
30998 echo $ECHO_N "checking for socket... $ECHO_C" >&6
30999 if test "${ac_cv_func_socket+set}" = set; then
31000   echo $ECHO_N "(cached) $ECHO_C" >&6
31001 else
31002   cat >conftest.$ac_ext <<_ACEOF
31003 #line $LINENO "configure"
31004 /* confdefs.h.  */
31005 _ACEOF
31006 cat confdefs.h >>conftest.$ac_ext
31007 cat >>conftest.$ac_ext <<_ACEOF
31008 /* end confdefs.h.  */
31009 /* System header to define __stub macros and hopefully few prototypes,
31010     which can conflict with char socket (); below.
31011     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31012     <limits.h> exists even on freestanding compilers.  */
31013 #ifdef __STDC__
31014 # include <limits.h>
31015 #else
31016 # include <assert.h>
31017 #endif
31018 /* Override any gcc2 internal prototype to avoid an error.  */
31019 #ifdef __cplusplus
31020 extern "C"
31021 {
31022 #endif
31023 /* We use char because int might match the return type of a gcc2
31024    builtin and then its argument prototype would still apply.  */
31025 char socket ();
31026 /* The GNU C library defines this for functions which it implements
31027     to always fail with ENOSYS.  Some functions are actually named
31028     something starting with __ and the normal name is an alias.  */
31029 #if defined (__stub_socket) || defined (__stub___socket)
31030 choke me
31031 #else
31032 char (*f) () = socket;
31033 #endif
31034 #ifdef __cplusplus
31035 }
31036 #endif
31037
31038 int
31039 main ()
31040 {
31041 return f != socket;
31042   ;
31043   return 0;
31044 }
31045 _ACEOF
31046 rm -f conftest.$ac_objext conftest$ac_exeext
31047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31048   (eval $ac_link) 2>&5
31049   ac_status=$?
31050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31051   (exit $ac_status); } &&
31052          { ac_try='test -s conftest$ac_exeext'
31053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31054   (eval $ac_try) 2>&5
31055   ac_status=$?
31056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31057   (exit $ac_status); }; }; then
31058   ac_cv_func_socket=yes
31059 else
31060   echo "$as_me: failed program was:" >&5
31061 sed 's/^/| /' conftest.$ac_ext >&5
31062
31063 ac_cv_func_socket=no
31064 fi
31065 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31066 fi
31067 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
31068 echo "${ECHO_T}$ac_cv_func_socket" >&6
31069 if test $ac_cv_func_socket = yes; then
31070   :
31071 else
31072
31073                 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
31074 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
31075 if test "${ac_cv_lib_socket_socket+set}" = set; then
31076   echo $ECHO_N "(cached) $ECHO_C" >&6
31077 else
31078   ac_check_lib_save_LIBS=$LIBS
31079 LIBS="-lsocket  $LIBS"
31080 cat >conftest.$ac_ext <<_ACEOF
31081 #line $LINENO "configure"
31082 /* confdefs.h.  */
31083 _ACEOF
31084 cat confdefs.h >>conftest.$ac_ext
31085 cat >>conftest.$ac_ext <<_ACEOF
31086 /* end confdefs.h.  */
31087
31088 /* Override any gcc2 internal prototype to avoid an error.  */
31089 #ifdef __cplusplus
31090 extern "C"
31091 #endif
31092 /* We use char because int might match the return type of a gcc2
31093    builtin and then its argument prototype would still apply.  */
31094 char socket ();
31095 int
31096 main ()
31097 {
31098 socket ();
31099   ;
31100   return 0;
31101 }
31102 _ACEOF
31103 rm -f conftest.$ac_objext conftest$ac_exeext
31104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31105   (eval $ac_link) 2>&5
31106   ac_status=$?
31107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31108   (exit $ac_status); } &&
31109          { ac_try='test -s conftest$ac_exeext'
31110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31111   (eval $ac_try) 2>&5
31112   ac_status=$?
31113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31114   (exit $ac_status); }; }; then
31115   ac_cv_lib_socket_socket=yes
31116 else
31117   echo "$as_me: failed program was:" >&5
31118 sed 's/^/| /' conftest.$ac_ext >&5
31119
31120 ac_cv_lib_socket_socket=no
31121 fi
31122 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31123 LIBS=$ac_check_lib_save_LIBS
31124 fi
31125 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
31126 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
31127 if test $ac_cv_lib_socket_socket = yes; then
31128   if test "$INET_LINK" != " -lsocket"; then
31129                         INET_LINK="$INET_LINK -lsocket"
31130                     fi
31131 else
31132
31133                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
31134 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
31135                         wxUSE_SOCKETS=no
31136
31137
31138 fi
31139
31140
31141
31142 fi
31143
31144     fi
31145 fi
31146
31147 if test "$wxUSE_SOCKETS" = "yes" ; then
31148                 if test "$TOOLKIT" != "MSW"; then
31149                 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
31150 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
31151 if test "${wx_cv_type_getsockname3+set}" = set; then
31152   echo $ECHO_N "(cached) $ECHO_C" >&6
31153 else
31154
31155                 cat >conftest.$ac_ext <<_ACEOF
31156 #line $LINENO "configure"
31157 /* confdefs.h.  */
31158 _ACEOF
31159 cat confdefs.h >>conftest.$ac_ext
31160 cat >>conftest.$ac_ext <<_ACEOF
31161 /* end confdefs.h.  */
31162
31163                         #include <sys/types.h>
31164                         #include <sys/socket.h>
31165
31166 int
31167 main ()
31168 {
31169
31170                         socklen_t len;
31171                         getsockname(0, 0, &len);
31172
31173   ;
31174   return 0;
31175 }
31176 _ACEOF
31177 rm -f conftest.$ac_objext
31178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31179   (eval $ac_compile) 2>&5
31180   ac_status=$?
31181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31182   (exit $ac_status); } &&
31183          { ac_try='test -s conftest.$ac_objext'
31184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31185   (eval $ac_try) 2>&5
31186   ac_status=$?
31187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31188   (exit $ac_status); }; }; then
31189   wx_cv_type_getsockname3=socklen_t
31190 else
31191   echo "$as_me: failed program was:" >&5
31192 sed 's/^/| /' conftest.$ac_ext >&5
31193
31194
31195                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
31196                         if test "$GCC" = yes ; then
31197                             CFLAGS="$CFLAGS -Werror"
31198                         fi
31199
31200                         cat >conftest.$ac_ext <<_ACEOF
31201 #line $LINENO "configure"
31202 /* confdefs.h.  */
31203 _ACEOF
31204 cat confdefs.h >>conftest.$ac_ext
31205 cat >>conftest.$ac_ext <<_ACEOF
31206 /* end confdefs.h.  */
31207
31208                                 #include <sys/types.h>
31209                                 #include <sys/socket.h>
31210
31211 int
31212 main ()
31213 {
31214
31215                                 size_t len;
31216                                 getsockname(0, 0, &len);
31217
31218   ;
31219   return 0;
31220 }
31221 _ACEOF
31222 rm -f conftest.$ac_objext
31223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31224   (eval $ac_compile) 2>&5
31225   ac_status=$?
31226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31227   (exit $ac_status); } &&
31228          { ac_try='test -s conftest.$ac_objext'
31229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31230   (eval $ac_try) 2>&5
31231   ac_status=$?
31232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31233   (exit $ac_status); }; }; then
31234   wx_cv_type_getsockname3=size_t
31235 else
31236   echo "$as_me: failed program was:" >&5
31237 sed 's/^/| /' conftest.$ac_ext >&5
31238
31239 cat >conftest.$ac_ext <<_ACEOF
31240 #line $LINENO "configure"
31241 /* confdefs.h.  */
31242 _ACEOF
31243 cat confdefs.h >>conftest.$ac_ext
31244 cat >>conftest.$ac_ext <<_ACEOF
31245 /* end confdefs.h.  */
31246
31247                                     #include <sys/types.h>
31248                                     #include <sys/socket.h>
31249
31250 int
31251 main ()
31252 {
31253
31254                                     int len;
31255                                     getsockname(0, 0, &len);
31256
31257   ;
31258   return 0;
31259 }
31260 _ACEOF
31261 rm -f conftest.$ac_objext
31262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31263   (eval $ac_compile) 2>&5
31264   ac_status=$?
31265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31266   (exit $ac_status); } &&
31267          { ac_try='test -s conftest.$ac_objext'
31268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31269   (eval $ac_try) 2>&5
31270   ac_status=$?
31271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31272   (exit $ac_status); }; }; then
31273   wx_cv_type_getsockname3=int
31274 else
31275   echo "$as_me: failed program was:" >&5
31276 sed 's/^/| /' conftest.$ac_ext >&5
31277
31278 wx_cv_type_getsockname3=unknown
31279
31280 fi
31281 rm -f conftest.$ac_objext conftest.$ac_ext
31282
31283 fi
31284 rm -f conftest.$ac_objext conftest.$ac_ext
31285
31286                         CFLAGS="$CFLAGS_OLD"
31287
31288
31289 fi
31290 rm -f conftest.$ac_objext conftest.$ac_ext
31291
31292 fi
31293 echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
31294 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
31295
31296         if test "$wx_cv_type_getsockname3" = "unknown"; then
31297             wxUSE_SOCKETS=no
31298             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
31299 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
31300         else
31301             cat >>confdefs.h <<_ACEOF
31302 #define SOCKLEN_T $wx_cv_type_getsockname3
31303 _ACEOF
31304
31305         fi
31306     fi
31307 fi
31308
31309 if test "$wxUSE_SOCKETS" = "yes" ; then
31310     cat >>confdefs.h <<\_ACEOF
31311 #define wxUSE_SOCKETS 1
31312 _ACEOF
31313
31314     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
31315 fi
31316
31317 if test "$wxUSE_PROTOCOL" = "yes"; then
31318     if test "$wxUSE_SOCKETS" != "yes"; then
31319         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
31320 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
31321         wxUSE_PROTOCOL=no
31322     fi
31323 fi
31324
31325 if test "$wxUSE_PROTOCOL" = "yes"; then
31326     cat >>confdefs.h <<\_ACEOF
31327 #define wxUSE_PROTOCOL 1
31328 _ACEOF
31329
31330
31331     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
31332         cat >>confdefs.h <<\_ACEOF
31333 #define wxUSE_PROTOCOL_HTTP 1
31334 _ACEOF
31335
31336     fi
31337     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
31338         cat >>confdefs.h <<\_ACEOF
31339 #define wxUSE_PROTOCOL_FTP 1
31340 _ACEOF
31341
31342     fi
31343     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
31344         cat >>confdefs.h <<\_ACEOF
31345 #define wxUSE_PROTOCOL_FILE 1
31346 _ACEOF
31347
31348     fi
31349 else
31350     if test "$wxUSE_FS_INET" = "yes"; then
31351         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
31352 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
31353         wxUSE_FS_INET="no"
31354     fi
31355 fi
31356
31357 if test "$wxUSE_URL" = "yes"; then
31358     if test "$wxUSE_PROTOCOL" != "yes"; then
31359         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
31360 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
31361         wxUSE_URL=no
31362     fi
31363     if test "$wxUSE_URL" = "yes"; then
31364         cat >>confdefs.h <<\_ACEOF
31365 #define wxUSE_URL 1
31366 _ACEOF
31367
31368     fi
31369 fi
31370
31371 if test "$wxUSE_FS_INET" = "yes"; then
31372   cat >>confdefs.h <<\_ACEOF
31373 #define wxUSE_FS_INET 1
31374 _ACEOF
31375
31376 fi
31377
31378
31379 if test "$wxUSE_GUI" = "yes"; then
31380
31381     if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
31382         { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
31383 echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
31384         wxUSE_JOYSTICK=no
31385      fi
31386
31387          if test "$TOOLKIT" != "MSW"; then
31388         if test "$wxUSE_JOYSTICK" = "yes"; then
31389
31390 for ac_header in linux/joystick.h
31391 do
31392 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31394   echo "$as_me:$LINENO: checking for $ac_header" >&5
31395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31397   echo $ECHO_N "(cached) $ECHO_C" >&6
31398 fi
31399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31401 else
31402   # Is the header compilable?
31403 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31405 cat >conftest.$ac_ext <<_ACEOF
31406 #line $LINENO "configure"
31407 /* confdefs.h.  */
31408 _ACEOF
31409 cat confdefs.h >>conftest.$ac_ext
31410 cat >>conftest.$ac_ext <<_ACEOF
31411 /* end confdefs.h.  */
31412 $ac_includes_default
31413 #include <$ac_header>
31414 _ACEOF
31415 rm -f conftest.$ac_objext
31416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31417   (eval $ac_compile) 2>&5
31418   ac_status=$?
31419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31420   (exit $ac_status); } &&
31421          { ac_try='test -s conftest.$ac_objext'
31422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31423   (eval $ac_try) 2>&5
31424   ac_status=$?
31425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31426   (exit $ac_status); }; }; then
31427   ac_header_compiler=yes
31428 else
31429   echo "$as_me: failed program was:" >&5
31430 sed 's/^/| /' conftest.$ac_ext >&5
31431
31432 ac_header_compiler=no
31433 fi
31434 rm -f conftest.$ac_objext conftest.$ac_ext
31435 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31436 echo "${ECHO_T}$ac_header_compiler" >&6
31437
31438 # Is the header present?
31439 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31441 cat >conftest.$ac_ext <<_ACEOF
31442 #line $LINENO "configure"
31443 /* confdefs.h.  */
31444 _ACEOF
31445 cat confdefs.h >>conftest.$ac_ext
31446 cat >>conftest.$ac_ext <<_ACEOF
31447 /* end confdefs.h.  */
31448 #include <$ac_header>
31449 _ACEOF
31450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31451   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31452   ac_status=$?
31453   grep -v '^ *+' conftest.er1 >conftest.err
31454   rm -f conftest.er1
31455   cat conftest.err >&5
31456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31457   (exit $ac_status); } >/dev/null; then
31458   if test -s conftest.err; then
31459     ac_cpp_err=$ac_c_preproc_warn_flag
31460   else
31461     ac_cpp_err=
31462   fi
31463 else
31464   ac_cpp_err=yes
31465 fi
31466 if test -z "$ac_cpp_err"; then
31467   ac_header_preproc=yes
31468 else
31469   echo "$as_me: failed program was:" >&5
31470 sed 's/^/| /' conftest.$ac_ext >&5
31471
31472   ac_header_preproc=no
31473 fi
31474 rm -f conftest.err conftest.$ac_ext
31475 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31476 echo "${ECHO_T}$ac_header_preproc" >&6
31477
31478 # So?  What about this header?
31479 case $ac_header_compiler:$ac_header_preproc in
31480   yes:no )
31481     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31482 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31483     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31485     (
31486       cat <<\_ASBOX
31487 ## ------------------------------------ ##
31488 ## Report this to bug-autoconf@gnu.org. ##
31489 ## ------------------------------------ ##
31490 _ASBOX
31491     ) |
31492       sed "s/^/$as_me: WARNING:     /" >&2
31493     ;;
31494   no:yes )
31495     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31496 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31497     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31498 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31499     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31501     (
31502       cat <<\_ASBOX
31503 ## ------------------------------------ ##
31504 ## Report this to bug-autoconf@gnu.org. ##
31505 ## ------------------------------------ ##
31506 _ASBOX
31507     ) |
31508       sed "s/^/$as_me: WARNING:     /" >&2
31509     ;;
31510 esac
31511 echo "$as_me:$LINENO: checking for $ac_header" >&5
31512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31514   echo $ECHO_N "(cached) $ECHO_C" >&6
31515 else
31516   eval "$as_ac_Header=$ac_header_preproc"
31517 fi
31518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31520
31521 fi
31522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31523   cat >>confdefs.h <<_ACEOF
31524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31525 _ACEOF
31526
31527 fi
31528
31529 done
31530
31531             if test "$ac_cv_header_linux_joystick_h" != "yes"; then
31532                 wxUSE_JOYSTICK=no
31533                 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
31534 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
31535             fi
31536         fi
31537     fi
31538
31539     if test "$wxUSE_JOYSTICK" = "yes"; then
31540         cat >>confdefs.h <<\_ACEOF
31541 #define wxUSE_JOYSTICK 1
31542 _ACEOF
31543
31544         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
31545     fi
31546 fi
31547
31548
31549 if test "$TOOLKIT" != "MSW"; then
31550
31551     HAVE_DL_FUNCS=0
31552     HAVE_SHL_FUNCS=0
31553     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
31554         if test "$USE_DARWIN" = 1; then
31555                         HAVE_DL_FUNCS=1
31556         else
31557
31558 for ac_func in dlopen
31559 do
31560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31561 echo "$as_me:$LINENO: checking for $ac_func" >&5
31562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31563 if eval "test \"\${$as_ac_var+set}\" = set"; then
31564   echo $ECHO_N "(cached) $ECHO_C" >&6
31565 else
31566   cat >conftest.$ac_ext <<_ACEOF
31567 #line $LINENO "configure"
31568 /* confdefs.h.  */
31569 _ACEOF
31570 cat confdefs.h >>conftest.$ac_ext
31571 cat >>conftest.$ac_ext <<_ACEOF
31572 /* end confdefs.h.  */
31573 /* System header to define __stub macros and hopefully few prototypes,
31574     which can conflict with char $ac_func (); below.
31575     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31576     <limits.h> exists even on freestanding compilers.  */
31577 #ifdef __STDC__
31578 # include <limits.h>
31579 #else
31580 # include <assert.h>
31581 #endif
31582 /* Override any gcc2 internal prototype to avoid an error.  */
31583 #ifdef __cplusplus
31584 extern "C"
31585 {
31586 #endif
31587 /* We use char because int might match the return type of a gcc2
31588    builtin and then its argument prototype would still apply.  */
31589 char $ac_func ();
31590 /* The GNU C library defines this for functions which it implements
31591     to always fail with ENOSYS.  Some functions are actually named
31592     something starting with __ and the normal name is an alias.  */
31593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31594 choke me
31595 #else
31596 char (*f) () = $ac_func;
31597 #endif
31598 #ifdef __cplusplus
31599 }
31600 #endif
31601
31602 int
31603 main ()
31604 {
31605 return f != $ac_func;
31606   ;
31607   return 0;
31608 }
31609 _ACEOF
31610 rm -f conftest.$ac_objext conftest$ac_exeext
31611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31612   (eval $ac_link) 2>&5
31613   ac_status=$?
31614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31615   (exit $ac_status); } &&
31616          { ac_try='test -s conftest$ac_exeext'
31617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31618   (eval $ac_try) 2>&5
31619   ac_status=$?
31620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31621   (exit $ac_status); }; }; then
31622   eval "$as_ac_var=yes"
31623 else
31624   echo "$as_me: failed program was:" >&5
31625 sed 's/^/| /' conftest.$ac_ext >&5
31626
31627 eval "$as_ac_var=no"
31628 fi
31629 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31630 fi
31631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31632 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31633 if test `eval echo '${'$as_ac_var'}'` = yes; then
31634   cat >>confdefs.h <<_ACEOF
31635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31636 _ACEOF
31637
31638                 cat >>confdefs.h <<\_ACEOF
31639 #define HAVE_DLOPEN 1
31640 _ACEOF
31641
31642                 HAVE_DL_FUNCS=1
31643
31644 else
31645
31646                 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
31647 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
31648 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
31649   echo $ECHO_N "(cached) $ECHO_C" >&6
31650 else
31651   ac_check_lib_save_LIBS=$LIBS
31652 LIBS="-ldl  $LIBS"
31653 cat >conftest.$ac_ext <<_ACEOF
31654 #line $LINENO "configure"
31655 /* confdefs.h.  */
31656 _ACEOF
31657 cat confdefs.h >>conftest.$ac_ext
31658 cat >>conftest.$ac_ext <<_ACEOF
31659 /* end confdefs.h.  */
31660
31661 /* Override any gcc2 internal prototype to avoid an error.  */
31662 #ifdef __cplusplus
31663 extern "C"
31664 #endif
31665 /* We use char because int might match the return type of a gcc2
31666    builtin and then its argument prototype would still apply.  */
31667 char dlopen ();
31668 int
31669 main ()
31670 {
31671 dlopen ();
31672   ;
31673   return 0;
31674 }
31675 _ACEOF
31676 rm -f conftest.$ac_objext conftest$ac_exeext
31677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31678   (eval $ac_link) 2>&5
31679   ac_status=$?
31680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31681   (exit $ac_status); } &&
31682          { ac_try='test -s conftest$ac_exeext'
31683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31684   (eval $ac_try) 2>&5
31685   ac_status=$?
31686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31687   (exit $ac_status); }; }; then
31688   ac_cv_lib_dl_dlopen=yes
31689 else
31690   echo "$as_me: failed program was:" >&5
31691 sed 's/^/| /' conftest.$ac_ext >&5
31692
31693 ac_cv_lib_dl_dlopen=no
31694 fi
31695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31696 LIBS=$ac_check_lib_save_LIBS
31697 fi
31698 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
31699 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
31700 if test $ac_cv_lib_dl_dlopen = yes; then
31701
31702                                 cat >>confdefs.h <<\_ACEOF
31703 #define HAVE_DLOPEN 1
31704 _ACEOF
31705
31706                                 HAVE_DL_FUNCS=1
31707                                 DL_LINK=" -ldl$DL_LINK"
31708
31709 else
31710
31711
31712 for ac_func in shl_load
31713 do
31714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31715 echo "$as_me:$LINENO: checking for $ac_func" >&5
31716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31717 if eval "test \"\${$as_ac_var+set}\" = set"; then
31718   echo $ECHO_N "(cached) $ECHO_C" >&6
31719 else
31720   cat >conftest.$ac_ext <<_ACEOF
31721 #line $LINENO "configure"
31722 /* confdefs.h.  */
31723 _ACEOF
31724 cat confdefs.h >>conftest.$ac_ext
31725 cat >>conftest.$ac_ext <<_ACEOF
31726 /* end confdefs.h.  */
31727 /* System header to define __stub macros and hopefully few prototypes,
31728     which can conflict with char $ac_func (); below.
31729     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31730     <limits.h> exists even on freestanding compilers.  */
31731 #ifdef __STDC__
31732 # include <limits.h>
31733 #else
31734 # include <assert.h>
31735 #endif
31736 /* Override any gcc2 internal prototype to avoid an error.  */
31737 #ifdef __cplusplus
31738 extern "C"
31739 {
31740 #endif
31741 /* We use char because int might match the return type of a gcc2
31742    builtin and then its argument prototype would still apply.  */
31743 char $ac_func ();
31744 /* The GNU C library defines this for functions which it implements
31745     to always fail with ENOSYS.  Some functions are actually named
31746     something starting with __ and the normal name is an alias.  */
31747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31748 choke me
31749 #else
31750 char (*f) () = $ac_func;
31751 #endif
31752 #ifdef __cplusplus
31753 }
31754 #endif
31755
31756 int
31757 main ()
31758 {
31759 return f != $ac_func;
31760   ;
31761   return 0;
31762 }
31763 _ACEOF
31764 rm -f conftest.$ac_objext conftest$ac_exeext
31765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31766   (eval $ac_link) 2>&5
31767   ac_status=$?
31768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31769   (exit $ac_status); } &&
31770          { ac_try='test -s conftest$ac_exeext'
31771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31772   (eval $ac_try) 2>&5
31773   ac_status=$?
31774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31775   (exit $ac_status); }; }; then
31776   eval "$as_ac_var=yes"
31777 else
31778   echo "$as_me: failed program was:" >&5
31779 sed 's/^/| /' conftest.$ac_ext >&5
31780
31781 eval "$as_ac_var=no"
31782 fi
31783 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31784 fi
31785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31786 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31787 if test `eval echo '${'$as_ac_var'}'` = yes; then
31788   cat >>confdefs.h <<_ACEOF
31789 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31790 _ACEOF
31791
31792                                                 cat >>confdefs.h <<\_ACEOF
31793 #define HAVE_SHL_LOAD 1
31794 _ACEOF
31795
31796                                                 HAVE_SHL_FUNCS=1
31797
31798 else
31799
31800                                                 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
31801 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
31802 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
31803   echo $ECHO_N "(cached) $ECHO_C" >&6
31804 else
31805   ac_check_lib_save_LIBS=$LIBS
31806 LIBS="-lshl_load  $LIBS"
31807 cat >conftest.$ac_ext <<_ACEOF
31808 #line $LINENO "configure"
31809 /* confdefs.h.  */
31810 _ACEOF
31811 cat confdefs.h >>conftest.$ac_ext
31812 cat >>conftest.$ac_ext <<_ACEOF
31813 /* end confdefs.h.  */
31814
31815 /* Override any gcc2 internal prototype to avoid an error.  */
31816 #ifdef __cplusplus
31817 extern "C"
31818 #endif
31819 /* We use char because int might match the return type of a gcc2
31820    builtin and then its argument prototype would still apply.  */
31821 char dld ();
31822 int
31823 main ()
31824 {
31825 dld ();
31826   ;
31827   return 0;
31828 }
31829 _ACEOF
31830 rm -f conftest.$ac_objext conftest$ac_exeext
31831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31832   (eval $ac_link) 2>&5
31833   ac_status=$?
31834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31835   (exit $ac_status); } &&
31836          { ac_try='test -s conftest$ac_exeext'
31837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31838   (eval $ac_try) 2>&5
31839   ac_status=$?
31840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31841   (exit $ac_status); }; }; then
31842   ac_cv_lib_shl_load_dld=yes
31843 else
31844   echo "$as_me: failed program was:" >&5
31845 sed 's/^/| /' conftest.$ac_ext >&5
31846
31847 ac_cv_lib_shl_load_dld=no
31848 fi
31849 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31850 LIBS=$ac_check_lib_save_LIBS
31851 fi
31852 echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
31853 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
31854 if test $ac_cv_lib_shl_load_dld = yes; then
31855
31856                                                                 HAVE_SHL_FUNCS=1
31857                                                                 DL_LINK=" -ldld$DL_LINK"
31858
31859 fi
31860
31861
31862 fi
31863 done
31864
31865
31866 fi
31867
31868
31869 fi
31870 done
31871
31872
31873                 if test "$HAVE_DL_FUNCS" = 1; then
31874
31875 for ac_func in dlerror
31876 do
31877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31878 echo "$as_me:$LINENO: checking for $ac_func" >&5
31879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31880 if eval "test \"\${$as_ac_var+set}\" = set"; then
31881   echo $ECHO_N "(cached) $ECHO_C" >&6
31882 else
31883   cat >conftest.$ac_ext <<_ACEOF
31884 #line $LINENO "configure"
31885 /* confdefs.h.  */
31886 _ACEOF
31887 cat confdefs.h >>conftest.$ac_ext
31888 cat >>conftest.$ac_ext <<_ACEOF
31889 /* end confdefs.h.  */
31890 /* System header to define __stub macros and hopefully few prototypes,
31891     which can conflict with char $ac_func (); below.
31892     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31893     <limits.h> exists even on freestanding compilers.  */
31894 #ifdef __STDC__
31895 # include <limits.h>
31896 #else
31897 # include <assert.h>
31898 #endif
31899 /* Override any gcc2 internal prototype to avoid an error.  */
31900 #ifdef __cplusplus
31901 extern "C"
31902 {
31903 #endif
31904 /* We use char because int might match the return type of a gcc2
31905    builtin and then its argument prototype would still apply.  */
31906 char $ac_func ();
31907 /* The GNU C library defines this for functions which it implements
31908     to always fail with ENOSYS.  Some functions are actually named
31909     something starting with __ and the normal name is an alias.  */
31910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31911 choke me
31912 #else
31913 char (*f) () = $ac_func;
31914 #endif
31915 #ifdef __cplusplus
31916 }
31917 #endif
31918
31919 int
31920 main ()
31921 {
31922 return f != $ac_func;
31923   ;
31924   return 0;
31925 }
31926 _ACEOF
31927 rm -f conftest.$ac_objext conftest$ac_exeext
31928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31929   (eval $ac_link) 2>&5
31930   ac_status=$?
31931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31932   (exit $ac_status); } &&
31933          { ac_try='test -s conftest$ac_exeext'
31934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31935   (eval $ac_try) 2>&5
31936   ac_status=$?
31937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31938   (exit $ac_status); }; }; then
31939   eval "$as_ac_var=yes"
31940 else
31941   echo "$as_me: failed program was:" >&5
31942 sed 's/^/| /' conftest.$ac_ext >&5
31943
31944 eval "$as_ac_var=no"
31945 fi
31946 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31947 fi
31948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31949 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31950 if test `eval echo '${'$as_ac_var'}'` = yes; then
31951   cat >>confdefs.h <<_ACEOF
31952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31953 _ACEOF
31954  cat >>confdefs.h <<\_ACEOF
31955 #define HAVE_DLERROR 1
31956 _ACEOF
31957
31958 else
31959
31960                     echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
31961 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
31962 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
31963   echo $ECHO_N "(cached) $ECHO_C" >&6
31964 else
31965   ac_check_lib_save_LIBS=$LIBS
31966 LIBS="-ldl  $LIBS"
31967 cat >conftest.$ac_ext <<_ACEOF
31968 #line $LINENO "configure"
31969 /* confdefs.h.  */
31970 _ACEOF
31971 cat confdefs.h >>conftest.$ac_ext
31972 cat >>conftest.$ac_ext <<_ACEOF
31973 /* end confdefs.h.  */
31974
31975 /* Override any gcc2 internal prototype to avoid an error.  */
31976 #ifdef __cplusplus
31977 extern "C"
31978 #endif
31979 /* We use char because int might match the return type of a gcc2
31980    builtin and then its argument prototype would still apply.  */
31981 char dlerror ();
31982 int
31983 main ()
31984 {
31985 dlerror ();
31986   ;
31987   return 0;
31988 }
31989 _ACEOF
31990 rm -f conftest.$ac_objext conftest$ac_exeext
31991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31992   (eval $ac_link) 2>&5
31993   ac_status=$?
31994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31995   (exit $ac_status); } &&
31996          { ac_try='test -s conftest$ac_exeext'
31997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31998   (eval $ac_try) 2>&5
31999   ac_status=$?
32000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32001   (exit $ac_status); }; }; then
32002   ac_cv_lib_dl_dlerror=yes
32003 else
32004   echo "$as_me: failed program was:" >&5
32005 sed 's/^/| /' conftest.$ac_ext >&5
32006
32007 ac_cv_lib_dl_dlerror=no
32008 fi
32009 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32010 LIBS=$ac_check_lib_save_LIBS
32011 fi
32012 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
32013 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
32014 if test $ac_cv_lib_dl_dlerror = yes; then
32015   cat >>confdefs.h <<\_ACEOF
32016 #define HAVE_DLERROR 1
32017 _ACEOF
32018
32019 fi
32020
32021
32022
32023 fi
32024 done
32025
32026         fi
32027         fi
32028
32029         if test "$HAVE_DL_FUNCS" = 0; then
32030             if test "$HAVE_SHL_FUNCS" = 0; then
32031               if test "$USE_UNIX" = 1; then
32032                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
32033 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
32034                   wxUSE_DYNAMIC_LOADER=no
32035                   wxUSE_DYNLIB_CLASS=no
32036               else
32037                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
32038 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
32039               fi
32040             fi
32041         fi
32042     fi
32043 fi
32044
32045 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
32046     cat >>confdefs.h <<\_ACEOF
32047 #define wxUSE_DYNAMIC_LOADER 1
32048 _ACEOF
32049
32050 fi
32051 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
32052     cat >>confdefs.h <<\_ACEOF
32053 #define wxUSE_DYNLIB_CLASS 1
32054 _ACEOF
32055
32056 fi
32057
32058
32059 if test "$wxUSE_FONTMAP" = "yes" ; then
32060   cat >>confdefs.h <<\_ACEOF
32061 #define wxUSE_FONTMAP 1
32062 _ACEOF
32063
32064 fi
32065
32066 if test "$wxUSE_UNICODE" = "yes" ; then
32067   cat >>confdefs.h <<\_ACEOF
32068 #define wxUSE_UNICODE 1
32069 _ACEOF
32070
32071
32072   if test "$USE_WIN32" != 1; then
32073       wxUSE_UNICODE_MSLU=no
32074   fi
32075
32076   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
32077         echo "$as_me:$LINENO: checking for main in -lunicows" >&5
32078 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
32079 if test "${ac_cv_lib_unicows_main+set}" = set; then
32080   echo $ECHO_N "(cached) $ECHO_C" >&6
32081 else
32082   ac_check_lib_save_LIBS=$LIBS
32083 LIBS="-lunicows  $LIBS"
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
32092
32093 int
32094 main ()
32095 {
32096 main ();
32097   ;
32098   return 0;
32099 }
32100 _ACEOF
32101 rm -f conftest.$ac_objext conftest$ac_exeext
32102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32103   (eval $ac_link) 2>&5
32104   ac_status=$?
32105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32106   (exit $ac_status); } &&
32107          { ac_try='test -s conftest$ac_exeext'
32108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32109   (eval $ac_try) 2>&5
32110   ac_status=$?
32111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32112   (exit $ac_status); }; }; then
32113   ac_cv_lib_unicows_main=yes
32114 else
32115   echo "$as_me: failed program was:" >&5
32116 sed 's/^/| /' conftest.$ac_ext >&5
32117
32118 ac_cv_lib_unicows_main=no
32119 fi
32120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32121 LIBS=$ac_check_lib_save_LIBS
32122 fi
32123 echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
32124 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
32125 if test $ac_cv_lib_unicows_main = yes; then
32126
32127                 cat >>confdefs.h <<\_ACEOF
32128 #define wxUSE_UNICODE_MSLU 1
32129 _ACEOF
32130
32131
32132 else
32133
32134                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
32135                              Applications will only run on Windows NT/2000/XP!" >&5
32136 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
32137                              Applications will only run on Windows NT/2000/XP!" >&2;}
32138                 wxUSE_UNICODE_MSLU=no
32139
32140 fi
32141
32142     fi
32143 fi
32144
32145 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
32146   cat >>confdefs.h <<\_ACEOF
32147 #define wxUSE_EXPERIMENTAL_PRINTF 1
32148 _ACEOF
32149
32150 fi
32151
32152
32153 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
32154   cat >>confdefs.h <<\_ACEOF
32155 #define wxUSE_POSTSCRIPT 1
32156 _ACEOF
32157
32158 fi
32159
32160 cat >>confdefs.h <<\_ACEOF
32161 #define wxUSE_AFM_FOR_POSTSCRIPT 1
32162 _ACEOF
32163
32164
32165 cat >>confdefs.h <<\_ACEOF
32166 #define wxUSE_NORMALIZED_PS_FONTS 1
32167 _ACEOF
32168
32169
32170
32171 if test "$wxUSE_CONSTRAINTS" = "yes"; then
32172     cat >>confdefs.h <<\_ACEOF
32173 #define wxUSE_CONSTRAINTS 1
32174 _ACEOF
32175
32176     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
32177 fi
32178
32179 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
32180    cat >>confdefs.h <<\_ACEOF
32181 #define wxUSE_MDI_ARCHITECTURE 1
32182 _ACEOF
32183
32184    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
32185 fi
32186
32187 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
32188     cat >>confdefs.h <<\_ACEOF
32189 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
32190 _ACEOF
32191
32192     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
32193     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
32194         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
32195     fi
32196 fi
32197
32198 if test "$wxUSE_HELP" = "yes"; then
32199     cat >>confdefs.h <<\_ACEOF
32200 #define wxUSE_HELP 1
32201 _ACEOF
32202
32203     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
32204
32205     if test "$wxUSE_MSW" = 1; then
32206       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
32207         cat >>confdefs.h <<\_ACEOF
32208 #define wxUSE_MS_HTML_HELP 1
32209 _ACEOF
32210
32211       fi
32212     fi
32213
32214     if test "$wxUSE_WXHTML_HELP" = "yes"; then
32215       if test "$wxUSE_HTML" = "yes"; then
32216         cat >>confdefs.h <<\_ACEOF
32217 #define wxUSE_WXHTML_HELP 1
32218 _ACEOF
32219
32220       else
32221         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
32222 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
32223         wxUSE_WXHTML_HELP=no
32224       fi
32225     fi
32226 fi
32227
32228 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
32229     if test "$wxUSE_CONSTRAINTS" != "yes"; then
32230         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
32231 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
32232     else
32233         cat >>confdefs.h <<\_ACEOF
32234 #define wxUSE_PRINTING_ARCHITECTURE 1
32235 _ACEOF
32236
32237     fi
32238     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
32239 fi
32240
32241 if test "$wxUSE_PROLOGIO" = "yes" -o  "$wxUSE_RESOURCES" = "yes"; then
32242     { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
32243 echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
32244    { (exit 1); exit 1; }; }
32245 fi
32246
32247
32248 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
32249                           -o "$wxUSE_CLIPBOARD"     = "yes" \
32250                           -o "$wxUSE_OLE"     = "yes" \
32251                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
32252
32253 for ac_header in ole2.h
32254 do
32255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32257   echo "$as_me:$LINENO: checking for $ac_header" >&5
32258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32260   echo $ECHO_N "(cached) $ECHO_C" >&6
32261 fi
32262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32263 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32264 else
32265   # Is the header compilable?
32266 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32268 cat >conftest.$ac_ext <<_ACEOF
32269 #line $LINENO "configure"
32270 /* confdefs.h.  */
32271 _ACEOF
32272 cat confdefs.h >>conftest.$ac_ext
32273 cat >>conftest.$ac_ext <<_ACEOF
32274 /* end confdefs.h.  */
32275 $ac_includes_default
32276 #include <$ac_header>
32277 _ACEOF
32278 rm -f conftest.$ac_objext
32279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32280   (eval $ac_compile) 2>&5
32281   ac_status=$?
32282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32283   (exit $ac_status); } &&
32284          { ac_try='test -s conftest.$ac_objext'
32285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32286   (eval $ac_try) 2>&5
32287   ac_status=$?
32288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32289   (exit $ac_status); }; }; then
32290   ac_header_compiler=yes
32291 else
32292   echo "$as_me: failed program was:" >&5
32293 sed 's/^/| /' conftest.$ac_ext >&5
32294
32295 ac_header_compiler=no
32296 fi
32297 rm -f conftest.$ac_objext conftest.$ac_ext
32298 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32299 echo "${ECHO_T}$ac_header_compiler" >&6
32300
32301 # Is the header present?
32302 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32304 cat >conftest.$ac_ext <<_ACEOF
32305 #line $LINENO "configure"
32306 /* confdefs.h.  */
32307 _ACEOF
32308 cat confdefs.h >>conftest.$ac_ext
32309 cat >>conftest.$ac_ext <<_ACEOF
32310 /* end confdefs.h.  */
32311 #include <$ac_header>
32312 _ACEOF
32313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32314   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32315   ac_status=$?
32316   grep -v '^ *+' conftest.er1 >conftest.err
32317   rm -f conftest.er1
32318   cat conftest.err >&5
32319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32320   (exit $ac_status); } >/dev/null; then
32321   if test -s conftest.err; then
32322     ac_cpp_err=$ac_c_preproc_warn_flag
32323   else
32324     ac_cpp_err=
32325   fi
32326 else
32327   ac_cpp_err=yes
32328 fi
32329 if test -z "$ac_cpp_err"; then
32330   ac_header_preproc=yes
32331 else
32332   echo "$as_me: failed program was:" >&5
32333 sed 's/^/| /' conftest.$ac_ext >&5
32334
32335   ac_header_preproc=no
32336 fi
32337 rm -f conftest.err conftest.$ac_ext
32338 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32339 echo "${ECHO_T}$ac_header_preproc" >&6
32340
32341 # So?  What about this header?
32342 case $ac_header_compiler:$ac_header_preproc in
32343   yes:no )
32344     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32346     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32347 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32348     (
32349       cat <<\_ASBOX
32350 ## ------------------------------------ ##
32351 ## Report this to bug-autoconf@gnu.org. ##
32352 ## ------------------------------------ ##
32353 _ASBOX
32354     ) |
32355       sed "s/^/$as_me: WARNING:     /" >&2
32356     ;;
32357   no:yes )
32358     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32359 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32360     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32361 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32362     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32364     (
32365       cat <<\_ASBOX
32366 ## ------------------------------------ ##
32367 ## Report this to bug-autoconf@gnu.org. ##
32368 ## ------------------------------------ ##
32369 _ASBOX
32370     ) |
32371       sed "s/^/$as_me: WARNING:     /" >&2
32372     ;;
32373 esac
32374 echo "$as_me:$LINENO: checking for $ac_header" >&5
32375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32377   echo $ECHO_N "(cached) $ECHO_C" >&6
32378 else
32379   eval "$as_ac_Header=$ac_header_preproc"
32380 fi
32381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32383
32384 fi
32385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32386   cat >>confdefs.h <<_ACEOF
32387 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32388 _ACEOF
32389
32390 fi
32391
32392 done
32393
32394
32395     if test "$ac_cv_header_ole2_h" = "yes" ; then
32396         if test "$GCC" = yes ; then
32397
32398
32399             ac_ext=cc
32400 ac_cpp='$CXXCPP $CPPFLAGS'
32401 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32402 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32403 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32404
32405
32406             echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
32407 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
32408             cat >conftest.$ac_ext <<_ACEOF
32409 #line $LINENO "configure"
32410 /* confdefs.h.  */
32411 _ACEOF
32412 cat confdefs.h >>conftest.$ac_ext
32413 cat >>conftest.$ac_ext <<_ACEOF
32414 /* end confdefs.h.  */
32415 #include <windows.h>
32416                             #include <ole2.h>
32417 int
32418 main ()
32419 {
32420
32421   ;
32422   return 0;
32423 }
32424 _ACEOF
32425 rm -f conftest.$ac_objext
32426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32427   (eval $ac_compile) 2>&5
32428   ac_status=$?
32429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32430   (exit $ac_status); } &&
32431          { ac_try='test -s conftest.$ac_objext'
32432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32433   (eval $ac_try) 2>&5
32434   ac_status=$?
32435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32436   (exit $ac_status); }; }; then
32437   echo "$as_me:$LINENO: result: no" >&5
32438 echo "${ECHO_T}no" >&6
32439 else
32440   echo "$as_me: failed program was:" >&5
32441 sed 's/^/| /' conftest.$ac_ext >&5
32442
32443 echo "$as_me:$LINENO: result: yes" >&5
32444 echo "${ECHO_T}yes" >&6
32445                             CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
32446 fi
32447 rm -f conftest.$ac_objext conftest.$ac_ext
32448             ac_ext=c
32449 ac_cpp='$CPP $CPPFLAGS'
32450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32453
32454             ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
32455             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
32456             cat >>confdefs.h <<\_ACEOF
32457 #define wxUSE_OLE 1
32458 _ACEOF
32459
32460
32461         fi
32462
32463                 cat >>confdefs.h <<\_ACEOF
32464 #define wxUSE_DATAOBJ 1
32465 _ACEOF
32466
32467     else
32468         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
32469 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
32470
32471         wxUSE_CLIPBOARD=no
32472         wxUSE_DRAG_AND_DROP=no
32473         wxUSE_DATAOBJ=no
32474         wxUSE_OLE=no
32475     fi
32476
32477     if test "$wxUSE_METAFILE" = "yes"; then
32478         cat >>confdefs.h <<\_ACEOF
32479 #define wxUSE_METAFILE 1
32480 _ACEOF
32481
32482
32483                 cat >>confdefs.h <<\_ACEOF
32484 #define wxUSE_ENH_METAFILE 1
32485 _ACEOF
32486
32487     fi
32488 fi
32489
32490 if test "$wxUSE_IPC" = "yes"; then
32491     if test "$wxUSE_SOCKETS" != "yes"; then
32492         { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
32493 echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
32494     fi
32495
32496     cat >>confdefs.h <<\_ACEOF
32497 #define wxUSE_IPC 1
32498 _ACEOF
32499
32500 fi
32501
32502 if test "$wxUSE_CLIPBOARD" = "yes"; then
32503     if test "$wxUSE_MGL" = 1; then
32504         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
32505 echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
32506         wxUSE_CLIPBOARD=no
32507     fi
32508
32509     if test "$wxUSE_CLIPBOARD" = "yes"; then
32510         cat >>confdefs.h <<\_ACEOF
32511 #define wxUSE_CLIPBOARD 1
32512 _ACEOF
32513
32514
32515                 cat >>confdefs.h <<\_ACEOF
32516 #define wxUSE_DATAOBJ 1
32517 _ACEOF
32518
32519     fi
32520 fi
32521
32522 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
32523     if test "$wxUSE_GTK" = 1; then
32524         if test "$WXGTK12" != 1; then
32525             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
32526 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
32527             wxUSE_DRAG_AND_DROP=no
32528         fi
32529     fi
32530
32531     if test "$wxUSE_MOTIF" = 1; then
32532         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
32533 echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
32534         wxUSE_DRAG_AND_DROP=no
32535     fi
32536
32537     if test "$wxUSE_X11" = 1; then
32538         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
32539 echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
32540         wxUSE_DRAG_AND_DROP=no
32541     fi
32542
32543     if test "$wxUSE_MGL" = 1; then
32544         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
32545 echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
32546         wxUSE_DRAG_AND_DROP=no
32547     fi
32548
32549     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
32550         cat >>confdefs.h <<\_ACEOF
32551 #define wxUSE_DRAG_AND_DROP 1
32552 _ACEOF
32553
32554         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
32555     fi
32556
32557 fi
32558
32559 if test "$wxUSE_SPLINES" = "yes" ; then
32560   cat >>confdefs.h <<\_ACEOF
32561 #define wxUSE_SPLINES 1
32562 _ACEOF
32563
32564 fi
32565
32566
32567 USES_CONTROLS=0
32568 if test "$wxUSE_CONTROLS" = "yes"; then
32569   USES_CONTROLS=1
32570 fi
32571
32572 if test "$wxUSE_ACCEL" = "yes"; then
32573   cat >>confdefs.h <<\_ACEOF
32574 #define wxUSE_ACCEL 1
32575 _ACEOF
32576
32577   USES_CONTROLS=1
32578 fi
32579
32580 if test "$wxUSE_BUTTON" = "yes"; then
32581   cat >>confdefs.h <<\_ACEOF
32582 #define wxUSE_BUTTON 1
32583 _ACEOF
32584
32585   USES_CONTROLS=1
32586 fi
32587
32588 if test "$wxUSE_BMPBUTTON" = "yes"; then
32589   cat >>confdefs.h <<\_ACEOF
32590 #define wxUSE_BMPBUTTON 1
32591 _ACEOF
32592
32593   USES_CONTROLS=1
32594 fi
32595
32596 if test "$wxUSE_CALCTRL" = "yes"; then
32597   cat >>confdefs.h <<\_ACEOF
32598 #define wxUSE_CALENDARCTRL 1
32599 _ACEOF
32600
32601   USES_CONTROLS=1
32602   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
32603 fi
32604
32605 if test "$wxUSE_CARET" = "yes"; then
32606   cat >>confdefs.h <<\_ACEOF
32607 #define wxUSE_CARET 1
32608 _ACEOF
32609
32610   USES_CONTROLS=1
32611   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
32612 fi
32613
32614 if test "$wxUSE_COMBOBOX" = "yes"; then
32615   cat >>confdefs.h <<\_ACEOF
32616 #define wxUSE_COMBOBOX 1
32617 _ACEOF
32618
32619   USES_CONTROLS=1
32620 fi
32621
32622 if test "$wxUSE_CHOICE" = "yes"; then
32623   cat >>confdefs.h <<\_ACEOF
32624 #define wxUSE_CHOICE 1
32625 _ACEOF
32626
32627   USES_CONTROLS=1
32628 fi
32629
32630 if test "$wxUSE_CHECKBOX" = "yes"; then
32631   cat >>confdefs.h <<\_ACEOF
32632 #define wxUSE_CHECKBOX 1
32633 _ACEOF
32634
32635   USES_CONTROLS=1
32636 fi
32637
32638 if test "$wxUSE_CHECKLST" = "yes"; then
32639   cat >>confdefs.h <<\_ACEOF
32640 #define wxUSE_CHECKLISTBOX 1
32641 _ACEOF
32642
32643   USES_CONTROLS=1
32644   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
32645 fi
32646
32647 if test "$wxUSE_DISPLAY" = "yes"; then
32648     cat >>confdefs.h <<\_ACEOF
32649 #define wxUSE_DISPLAY 1
32650 _ACEOF
32651
32652     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
32653 fi
32654
32655 if test "$wxUSE_GAUGE" = "yes"; then
32656   cat >>confdefs.h <<\_ACEOF
32657 #define wxUSE_GAUGE 1
32658 _ACEOF
32659
32660   USES_CONTROLS=1
32661 fi
32662
32663 if test "$wxUSE_GRID" = "yes"; then
32664   cat >>confdefs.h <<\_ACEOF
32665 #define wxUSE_GRID 1
32666 _ACEOF
32667
32668   USES_CONTROLS=1
32669   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
32670 fi
32671
32672 if test "$wxUSE_IMAGLIST" = "yes"; then
32673     cat >>confdefs.h <<\_ACEOF
32674 #define wxUSE_IMAGLIST 1
32675 _ACEOF
32676
32677 fi
32678
32679 if test "$wxUSE_LISTBOOK" = "yes"; then
32680     cat >>confdefs.h <<\_ACEOF
32681 #define wxUSE_LISTBOOK 1
32682 _ACEOF
32683
32684     USES_CONTROLS=1
32685 fi
32686
32687 if test "$wxUSE_LISTBOX" = "yes"; then
32688     cat >>confdefs.h <<\_ACEOF
32689 #define wxUSE_LISTBOX 1
32690 _ACEOF
32691
32692     USES_CONTROLS=1
32693 fi
32694
32695 if test "$wxUSE_LISTCTRL" = "yes"; then
32696     if test "$wxUSE_IMAGLIST" = "yes"; then
32697         cat >>confdefs.h <<\_ACEOF
32698 #define wxUSE_LISTCTRL 1
32699 _ACEOF
32700
32701         USES_CONTROLS=1
32702         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
32703     else
32704         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
32705 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
32706     fi
32707 fi
32708
32709 if test "$wxUSE_NOTEBOOK" = "yes"; then
32710     cat >>confdefs.h <<\_ACEOF
32711 #define wxUSE_NOTEBOOK 1
32712 _ACEOF
32713
32714     USES_CONTROLS=1
32715     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
32716 fi
32717
32718
32719 if test "$wxUSE_RADIOBOX" = "yes"; then
32720     cat >>confdefs.h <<\_ACEOF
32721 #define wxUSE_RADIOBOX 1
32722 _ACEOF
32723
32724     USES_CONTROLS=1
32725 fi
32726
32727 if test "$wxUSE_RADIOBTN" = "yes"; then
32728     cat >>confdefs.h <<\_ACEOF
32729 #define wxUSE_RADIOBTN 1
32730 _ACEOF
32731
32732     USES_CONTROLS=1
32733 fi
32734
32735 if test "$wxUSE_SASH" = "yes"; then
32736     cat >>confdefs.h <<\_ACEOF
32737 #define wxUSE_SASH 1
32738 _ACEOF
32739
32740     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
32741 fi
32742
32743 if test "$wxUSE_SCROLLBAR" = "yes"; then
32744     cat >>confdefs.h <<\_ACEOF
32745 #define wxUSE_SCROLLBAR 1
32746 _ACEOF
32747
32748     USES_CONTROLS=1
32749     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
32750 fi
32751
32752 if test "$wxUSE_SLIDER" = "yes"; then
32753     cat >>confdefs.h <<\_ACEOF
32754 #define wxUSE_SLIDER 1
32755 _ACEOF
32756
32757     USES_CONTROLS=1
32758 fi
32759
32760 if test "$wxUSE_SPINBTN" = "yes"; then
32761     cat >>confdefs.h <<\_ACEOF
32762 #define wxUSE_SPINBTN 1
32763 _ACEOF
32764
32765     USES_CONTROLS=1
32766 fi
32767
32768 if test "$wxUSE_SPINCTRL" = "yes"; then
32769     cat >>confdefs.h <<\_ACEOF
32770 #define wxUSE_SPINCTRL 1
32771 _ACEOF
32772
32773     USES_CONTROLS=1
32774 fi
32775
32776 if test "$wxUSE_SPLITTER" = "yes"; then
32777     cat >>confdefs.h <<\_ACEOF
32778 #define wxUSE_SPLITTER 1
32779 _ACEOF
32780
32781     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
32782 fi
32783
32784 if test "$wxUSE_STATBMP" = "yes"; then
32785     cat >>confdefs.h <<\_ACEOF
32786 #define wxUSE_STATBMP 1
32787 _ACEOF
32788
32789     USES_CONTROLS=1
32790 fi
32791
32792 if test "$wxUSE_STATBOX" = "yes"; then
32793     cat >>confdefs.h <<\_ACEOF
32794 #define wxUSE_STATBOX 1
32795 _ACEOF
32796
32797     USES_CONTROLS=1
32798 fi
32799
32800 if test "$wxUSE_STATTEXT" = "yes"; then
32801     cat >>confdefs.h <<\_ACEOF
32802 #define wxUSE_STATTEXT 1
32803 _ACEOF
32804
32805     USES_CONTROLS=1
32806 fi
32807
32808 if test "$wxUSE_STATLINE" = "yes"; then
32809     cat >>confdefs.h <<\_ACEOF
32810 #define wxUSE_STATLINE 1
32811 _ACEOF
32812
32813     USES_CONTROLS=1
32814 fi
32815
32816 if test "$wxUSE_STATUSBAR" = "yes"; then
32817     cat >>confdefs.h <<\_ACEOF
32818 #define wxUSE_STATUSBAR 1
32819 _ACEOF
32820
32821     USES_CONTROLS=1
32822
32823     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
32824 fi
32825
32826 if test "$wxUSE_TABDIALOG" = "yes"; then
32827     cat >>confdefs.h <<\_ACEOF
32828 #define wxUSE_TAB_DIALOG 1
32829 _ACEOF
32830
32831     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
32832 fi
32833
32834 if test "$wxUSE_TEXTCTRL" = "yes"; then
32835     cat >>confdefs.h <<\_ACEOF
32836 #define wxUSE_TEXTCTRL 1
32837 _ACEOF
32838
32839     USES_CONTROLS=1
32840     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
32841 fi
32842
32843 if test "$wxUSE_TOGGLEBTN" = "yes"; then
32844     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
32845         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
32846 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
32847         wxUSE_TOGGLEBTN=no
32848     fi
32849     if test "$wxUSE_UNIVERSAL" = "yes"; then
32850         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
32851 echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
32852         wxUSE_TOGGLEBTN=no
32853     fi
32854
32855     if test "$wxUSE_TOGGLEBTN" = "yes"; then
32856         cat >>confdefs.h <<\_ACEOF
32857 #define wxUSE_TOGGLEBTN 1
32858 _ACEOF
32859
32860         USES_CONTROLS=1
32861     fi
32862 fi
32863
32864 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
32865     cat >>confdefs.h <<\_ACEOF
32866 #define wxUSE_TOOLBAR_SIMPLE 1
32867 _ACEOF
32868
32869     wxUSE_TOOLBAR="yes"
32870     USES_CONTROLS=1
32871 fi
32872
32873 if test "$wxUSE_TOOLBAR" = "yes"; then
32874     cat >>confdefs.h <<\_ACEOF
32875 #define wxUSE_TOOLBAR 1
32876 _ACEOF
32877
32878     USES_CONTROLS=1
32879
32880         if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
32881         wxUSE_TOOLBAR_NATIVE="yes"
32882     fi
32883
32884     if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
32885         cat >>confdefs.h <<\_ACEOF
32886 #define wxUSE_TOOLBAR_NATIVE 1
32887 _ACEOF
32888
32889         USES_CONTROLS=1
32890     fi
32891
32892     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
32893 fi
32894
32895 if test "$wxUSE_TOOLTIPS" = "yes"; then
32896     if test "$wxUSE_MOTIF" = 1; then
32897         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
32898 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
32899     else
32900         if test "$wxUSE_UNIVERSAL" = "yes"; then
32901             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
32902 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
32903         else
32904             cat >>confdefs.h <<\_ACEOF
32905 #define wxUSE_TOOLTIPS 1
32906 _ACEOF
32907
32908         fi
32909     fi
32910 fi
32911
32912 if test "$wxUSE_TREECTRL" = "yes"; then
32913     if test "$wxUSE_IMAGLIST" = "yes"; then
32914         cat >>confdefs.h <<\_ACEOF
32915 #define wxUSE_TREECTRL 1
32916 _ACEOF
32917
32918         USES_CONTROLS=1
32919         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
32920     else
32921         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
32922 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
32923     fi
32924 fi
32925
32926 if test "$wxUSE_POPUPWIN" = "yes"; then
32927     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
32928         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
32929 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
32930     else
32931         if test "$wxUSE_MOTIF" = 1; then
32932             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&5
32933 echo "$as_me: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&2;}
32934         else
32935             if test "$wxUSE_PM" = 1; then
32936                 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
32937 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
32938             else
32939                 cat >>confdefs.h <<\_ACEOF
32940 #define wxUSE_POPUPWIN 1
32941 _ACEOF
32942
32943
32944                 USES_CONTROLS=1
32945             fi
32946         fi
32947     fi
32948 fi
32949
32950 if test "$wxUSE_TIPWINDOW" = "yes"; then
32951     if test "$wxUSE_PM" = 1; then
32952         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
32953 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
32954     else
32955         cat >>confdefs.h <<\_ACEOF
32956 #define wxUSE_TIPWINDOW 1
32957 _ACEOF
32958
32959     fi
32960 fi
32961
32962 if test "$USES_CONTROLS" = 1; then
32963     cat >>confdefs.h <<\_ACEOF
32964 #define wxUSE_CONTROLS 1
32965 _ACEOF
32966
32967 fi
32968
32969
32970
32971 if test "$wxUSE_DRAGIMAGE" = "yes"; then
32972     cat >>confdefs.h <<\_ACEOF
32973 #define wxUSE_DRAGIMAGE 1
32974 _ACEOF
32975
32976     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
32977 fi
32978
32979 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
32980     cat >>confdefs.h <<\_ACEOF
32981 #define wxUSE_ACCESSIBILITY 1
32982 _ACEOF
32983
32984     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
32985 fi
32986
32987 if test "$wxUSE_MENUS" = "yes"; then
32988     cat >>confdefs.h <<\_ACEOF
32989 #define wxUSE_MENUS 1
32990 _ACEOF
32991
32992     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
32993 fi
32994
32995 if test "$wxUSE_METAFILE" = "yes"; then
32996     cat >>confdefs.h <<\_ACEOF
32997 #define wxUSE_METAFILE 1
32998 _ACEOF
32999
33000 fi
33001
33002 if test "$wxUSE_MIMETYPE" = "yes"; then
33003     cat >>confdefs.h <<\_ACEOF
33004 #define wxUSE_MIMETYPE 1
33005 _ACEOF
33006
33007 fi
33008
33009 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
33010     cat >>confdefs.h <<\_ACEOF
33011 #define wxUSE_SYSTEM_OPTIONS 1
33012 _ACEOF
33013
33014 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
33015         "$TOOLKIT" = "MOTIF"; then
33016     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
33017 fi
33018
33019 fi
33020
33021 if test "$wxUSE_MINIFRAME" = "yes"; then
33022     cat >>confdefs.h <<\_ACEOF
33023 #define wxUSE_MINIFRAME 1
33024 _ACEOF
33025
33026     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
33027 fi
33028
33029 USE_HTML=0
33030 if test "$wxUSE_HTML" = "yes"; then
33031     cat >>confdefs.h <<\_ACEOF
33032 #define wxUSE_HTML 1
33033 _ACEOF
33034
33035     USE_HTML=1
33036     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
33037 fi
33038
33039 if test "$wxUSE_VALIDATORS" = "yes"; then
33040     cat >>confdefs.h <<\_ACEOF
33041 #define wxUSE_VALIDATORS 1
33042 _ACEOF
33043
33044     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
33045 fi
33046
33047 if test "$wxUSE_PALETTE" = "yes" ; then
33048   cat >>confdefs.h <<\_ACEOF
33049 #define wxUSE_PALETTE 1
33050 _ACEOF
33051
33052 fi
33053
33054 if test "$wxUSE_IMAGE" = "yes" ; then
33055   cat >>confdefs.h <<\_ACEOF
33056 #define wxUSE_IMAGE 1
33057 _ACEOF
33058
33059 fi
33060
33061 if test "$wxUSE_GIF" = "yes" ; then
33062   cat >>confdefs.h <<\_ACEOF
33063 #define wxUSE_GIF 1
33064 _ACEOF
33065
33066 fi
33067
33068 if test "$wxUSE_PCX" = "yes" ; then
33069   cat >>confdefs.h <<\_ACEOF
33070 #define wxUSE_PCX 1
33071 _ACEOF
33072
33073 fi
33074
33075 if test "$wxUSE_IFF" = "yes" ; then
33076   cat >>confdefs.h <<\_ACEOF
33077 #define wxUSE_IFF 1
33078 _ACEOF
33079
33080 fi
33081
33082 if test "$wxUSE_PNM" = "yes" ; then
33083   cat >>confdefs.h <<\_ACEOF
33084 #define wxUSE_PNM 1
33085 _ACEOF
33086
33087 fi
33088
33089 if test "$wxUSE_XPM" = "yes" ; then
33090   cat >>confdefs.h <<\_ACEOF
33091 #define wxUSE_XPM 1
33092 _ACEOF
33093
33094 fi
33095
33096 if test "$wxUSE_ICO_CUR" = "yes" ; then
33097   cat >>confdefs.h <<\_ACEOF
33098 #define wxUSE_ICO_CUR 1
33099 _ACEOF
33100
33101 fi
33102
33103 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
33104     LIBS=" -lunicows $LIBS"
33105 fi
33106
33107
33108 if test "$wxUSE_CHOICEDLG" = "yes"; then
33109     cat >>confdefs.h <<\_ACEOF
33110 #define wxUSE_CHOICEDLG 1
33111 _ACEOF
33112
33113 fi
33114
33115 if test "$wxUSE_COLOURDLG" = "yes"; then
33116     cat >>confdefs.h <<\_ACEOF
33117 #define wxUSE_COLOURDLG 1
33118 _ACEOF
33119
33120 fi
33121
33122 if test "$wxUSE_FILEDLG" = "yes"; then
33123     cat >>confdefs.h <<\_ACEOF
33124 #define wxUSE_FILEDLG 1
33125 _ACEOF
33126
33127 fi
33128
33129 if test "$wxUSE_FINDREPLDLG" = "yes"; then
33130     cat >>confdefs.h <<\_ACEOF
33131 #define wxUSE_FINDREPLDLG 1
33132 _ACEOF
33133
33134 fi
33135
33136 if test "$wxUSE_FONTDLG" = "yes"; then
33137     cat >>confdefs.h <<\_ACEOF
33138 #define wxUSE_FONTDLG 1
33139 _ACEOF
33140
33141 fi
33142
33143 if test "$wxUSE_DIRDLG" = "yes"; then
33144     if test "$wxUSE_TREECTRL" != "yes"; then
33145         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
33146 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
33147     else
33148         cat >>confdefs.h <<\_ACEOF
33149 #define wxUSE_DIRDLG 1
33150 _ACEOF
33151
33152     fi
33153 fi
33154
33155 if test "$wxUSE_MSGDLG" = "yes"; then
33156     cat >>confdefs.h <<\_ACEOF
33157 #define wxUSE_MSGDLG 1
33158 _ACEOF
33159
33160 fi
33161
33162 if test "$wxUSE_NUMBERDLG" = "yes"; then
33163     cat >>confdefs.h <<\_ACEOF
33164 #define wxUSE_NUMBERDLG 1
33165 _ACEOF
33166
33167 fi
33168
33169 if test "$wxUSE_PROGRESSDLG" = "yes"; then
33170     if test "$wxUSE_CONSTRAINTS" != "yes"; then
33171        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
33172 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
33173     else
33174         cat >>confdefs.h <<\_ACEOF
33175 #define wxUSE_PROGRESSDLG 1
33176 _ACEOF
33177
33178     fi
33179 fi
33180
33181 if test "$wxUSE_SPLASH" = "yes"; then
33182     cat >>confdefs.h <<\_ACEOF
33183 #define wxUSE_SPLASH 1
33184 _ACEOF
33185
33186 fi
33187
33188 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
33189     if test "$wxUSE_CONSTRAINTS" != "yes"; then
33190        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
33191 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
33192     else
33193         cat >>confdefs.h <<\_ACEOF
33194 #define wxUSE_STARTUP_TIPS 1
33195 _ACEOF
33196
33197     fi
33198 fi
33199
33200 if test "$wxUSE_TEXTDLG" = "yes"; then
33201     cat >>confdefs.h <<\_ACEOF
33202 #define wxUSE_TEXTDLG 1
33203 _ACEOF
33204
33205 fi
33206
33207 if test "$wxUSE_WIZARDDLG" = "yes"; then
33208     cat >>confdefs.h <<\_ACEOF
33209 #define wxUSE_WIZARDDLG 1
33210 _ACEOF
33211
33212     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
33213 fi
33214
33215
33216 if test "$cross_compiling" = "yes"; then
33217         OSINFO="\"$host\""
33218 else
33219         OSINFO=`uname -s -r -m`
33220     OSINFO="\"$OSINFO\""
33221 fi
33222
33223 cat >>confdefs.h <<_ACEOF
33224 #define WXWIN_OS_DESCRIPTION $OSINFO
33225 _ACEOF
33226
33227
33228
33229 if test "x$prefix" != "xNONE"; then
33230     wxPREFIX=$prefix
33231 else
33232     wxPREFIX=$ac_default_prefix
33233 fi
33234
33235 cat >>confdefs.h <<_ACEOF
33236 #define wxINSTALL_PREFIX "$wxPREFIX"
33237 _ACEOF
33238
33239
33240 top_builddir_wxconfig=`pwd`
33241
33242
33243
33244 CORE_BASE_LIBS="net base"
33245 CORE_GUI_LIBS="adv core"
33246
33247 if test "$wxUSE_XML" = "yes" ; then
33248     CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
33249 fi
33250 if test "$wxUSE_ODBC" != "no" ; then
33251     CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
33252     CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
33253 fi
33254 if test "$wxUSE_HTML" = "yes" ; then
33255     CORE_GUI_LIBS="html $CORE_GUI_LIBS"
33256 fi
33257
33258
33259
33260
33261
33262
33263
33264
33265 if test "$wxUSE_MAC" = 1 ; then
33266     LDFLAGS="$LDFLAGS -framework Carbon -framework System"
33267 fi
33268 if test "$wxUSE_COCOA" = 1 ; then
33269     LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
33270 fi
33271
33272
33273 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
33274
33275 have_cos=0
33276 have_floor=0
33277
33278 for ac_func in cos
33279 do
33280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33281 echo "$as_me:$LINENO: checking for $ac_func" >&5
33282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33283 if eval "test \"\${$as_ac_var+set}\" = set"; then
33284   echo $ECHO_N "(cached) $ECHO_C" >&6
33285 else
33286   cat >conftest.$ac_ext <<_ACEOF
33287 #line $LINENO "configure"
33288 /* confdefs.h.  */
33289 _ACEOF
33290 cat confdefs.h >>conftest.$ac_ext
33291 cat >>conftest.$ac_ext <<_ACEOF
33292 /* end confdefs.h.  */
33293 /* System header to define __stub macros and hopefully few prototypes,
33294     which can conflict with char $ac_func (); below.
33295     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33296     <limits.h> exists even on freestanding compilers.  */
33297 #ifdef __STDC__
33298 # include <limits.h>
33299 #else
33300 # include <assert.h>
33301 #endif
33302 /* Override any gcc2 internal prototype to avoid an error.  */
33303 #ifdef __cplusplus
33304 extern "C"
33305 {
33306 #endif
33307 /* We use char because int might match the return type of a gcc2
33308    builtin and then its argument prototype would still apply.  */
33309 char $ac_func ();
33310 /* The GNU C library defines this for functions which it implements
33311     to always fail with ENOSYS.  Some functions are actually named
33312     something starting with __ and the normal name is an alias.  */
33313 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33314 choke me
33315 #else
33316 char (*f) () = $ac_func;
33317 #endif
33318 #ifdef __cplusplus
33319 }
33320 #endif
33321
33322 int
33323 main ()
33324 {
33325 return f != $ac_func;
33326   ;
33327   return 0;
33328 }
33329 _ACEOF
33330 rm -f conftest.$ac_objext conftest$ac_exeext
33331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33332   (eval $ac_link) 2>&5
33333   ac_status=$?
33334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33335   (exit $ac_status); } &&
33336          { ac_try='test -s conftest$ac_exeext'
33337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33338   (eval $ac_try) 2>&5
33339   ac_status=$?
33340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33341   (exit $ac_status); }; }; then
33342   eval "$as_ac_var=yes"
33343 else
33344   echo "$as_me: failed program was:" >&5
33345 sed 's/^/| /' conftest.$ac_ext >&5
33346
33347 eval "$as_ac_var=no"
33348 fi
33349 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33350 fi
33351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33352 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33353 if test `eval echo '${'$as_ac_var'}'` = yes; then
33354   cat >>confdefs.h <<_ACEOF
33355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33356 _ACEOF
33357  have_cos=1
33358 fi
33359 done
33360
33361
33362 for ac_func in floor
33363 do
33364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33365 echo "$as_me:$LINENO: checking for $ac_func" >&5
33366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33367 if eval "test \"\${$as_ac_var+set}\" = set"; then
33368   echo $ECHO_N "(cached) $ECHO_C" >&6
33369 else
33370   cat >conftest.$ac_ext <<_ACEOF
33371 #line $LINENO "configure"
33372 /* confdefs.h.  */
33373 _ACEOF
33374 cat confdefs.h >>conftest.$ac_ext
33375 cat >>conftest.$ac_ext <<_ACEOF
33376 /* end confdefs.h.  */
33377 /* System header to define __stub macros and hopefully few prototypes,
33378     which can conflict with char $ac_func (); below.
33379     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33380     <limits.h> exists even on freestanding compilers.  */
33381 #ifdef __STDC__
33382 # include <limits.h>
33383 #else
33384 # include <assert.h>
33385 #endif
33386 /* Override any gcc2 internal prototype to avoid an error.  */
33387 #ifdef __cplusplus
33388 extern "C"
33389 {
33390 #endif
33391 /* We use char because int might match the return type of a gcc2
33392    builtin and then its argument prototype would still apply.  */
33393 char $ac_func ();
33394 /* The GNU C library defines this for functions which it implements
33395     to always fail with ENOSYS.  Some functions are actually named
33396     something starting with __ and the normal name is an alias.  */
33397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33398 choke me
33399 #else
33400 char (*f) () = $ac_func;
33401 #endif
33402 #ifdef __cplusplus
33403 }
33404 #endif
33405
33406 int
33407 main ()
33408 {
33409 return f != $ac_func;
33410   ;
33411   return 0;
33412 }
33413 _ACEOF
33414 rm -f conftest.$ac_objext conftest$ac_exeext
33415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33416   (eval $ac_link) 2>&5
33417   ac_status=$?
33418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33419   (exit $ac_status); } &&
33420          { ac_try='test -s conftest$ac_exeext'
33421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33422   (eval $ac_try) 2>&5
33423   ac_status=$?
33424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33425   (exit $ac_status); }; }; then
33426   eval "$as_ac_var=yes"
33427 else
33428   echo "$as_me: failed program was:" >&5
33429 sed 's/^/| /' conftest.$ac_ext >&5
33430
33431 eval "$as_ac_var=no"
33432 fi
33433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33434 fi
33435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33436 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33437 if test `eval echo '${'$as_ac_var'}'` = yes; then
33438   cat >>confdefs.h <<_ACEOF
33439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33440 _ACEOF
33441  have_floor=1
33442 fi
33443 done
33444
33445 echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
33446 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
33447 if test "$have_cos" = 1 -a "$have_floor" = 1; then
33448     echo "$as_me:$LINENO: result: yes" >&5
33449 echo "${ECHO_T}yes" >&6
33450 else
33451     echo "$as_me:$LINENO: result: no" >&5
33452 echo "${ECHO_T}no" >&6
33453     LIBS="$LIBS -lm"
33454     # use different functions to avoid configure caching
33455     have_sin=0
33456     have_ceil=0
33457
33458 for ac_func in sin
33459 do
33460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33461 echo "$as_me:$LINENO: checking for $ac_func" >&5
33462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33463 if eval "test \"\${$as_ac_var+set}\" = set"; then
33464   echo $ECHO_N "(cached) $ECHO_C" >&6
33465 else
33466   cat >conftest.$ac_ext <<_ACEOF
33467 #line $LINENO "configure"
33468 /* confdefs.h.  */
33469 _ACEOF
33470 cat confdefs.h >>conftest.$ac_ext
33471 cat >>conftest.$ac_ext <<_ACEOF
33472 /* end confdefs.h.  */
33473 /* System header to define __stub macros and hopefully few prototypes,
33474     which can conflict with char $ac_func (); below.
33475     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33476     <limits.h> exists even on freestanding compilers.  */
33477 #ifdef __STDC__
33478 # include <limits.h>
33479 #else
33480 # include <assert.h>
33481 #endif
33482 /* Override any gcc2 internal prototype to avoid an error.  */
33483 #ifdef __cplusplus
33484 extern "C"
33485 {
33486 #endif
33487 /* We use char because int might match the return type of a gcc2
33488    builtin and then its argument prototype would still apply.  */
33489 char $ac_func ();
33490 /* The GNU C library defines this for functions which it implements
33491     to always fail with ENOSYS.  Some functions are actually named
33492     something starting with __ and the normal name is an alias.  */
33493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33494 choke me
33495 #else
33496 char (*f) () = $ac_func;
33497 #endif
33498 #ifdef __cplusplus
33499 }
33500 #endif
33501
33502 int
33503 main ()
33504 {
33505 return f != $ac_func;
33506   ;
33507   return 0;
33508 }
33509 _ACEOF
33510 rm -f conftest.$ac_objext conftest$ac_exeext
33511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33512   (eval $ac_link) 2>&5
33513   ac_status=$?
33514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33515   (exit $ac_status); } &&
33516          { ac_try='test -s conftest$ac_exeext'
33517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33518   (eval $ac_try) 2>&5
33519   ac_status=$?
33520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33521   (exit $ac_status); }; }; then
33522   eval "$as_ac_var=yes"
33523 else
33524   echo "$as_me: failed program was:" >&5
33525 sed 's/^/| /' conftest.$ac_ext >&5
33526
33527 eval "$as_ac_var=no"
33528 fi
33529 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33530 fi
33531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33532 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33533 if test `eval echo '${'$as_ac_var'}'` = yes; then
33534   cat >>confdefs.h <<_ACEOF
33535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33536 _ACEOF
33537  have_sin=1
33538 fi
33539 done
33540
33541
33542 for ac_func in ceil
33543 do
33544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33545 echo "$as_me:$LINENO: checking for $ac_func" >&5
33546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33547 if eval "test \"\${$as_ac_var+set}\" = set"; then
33548   echo $ECHO_N "(cached) $ECHO_C" >&6
33549 else
33550   cat >conftest.$ac_ext <<_ACEOF
33551 #line $LINENO "configure"
33552 /* confdefs.h.  */
33553 _ACEOF
33554 cat confdefs.h >>conftest.$ac_ext
33555 cat >>conftest.$ac_ext <<_ACEOF
33556 /* end confdefs.h.  */
33557 /* System header to define __stub macros and hopefully few prototypes,
33558     which can conflict with char $ac_func (); below.
33559     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33560     <limits.h> exists even on freestanding compilers.  */
33561 #ifdef __STDC__
33562 # include <limits.h>
33563 #else
33564 # include <assert.h>
33565 #endif
33566 /* Override any gcc2 internal prototype to avoid an error.  */
33567 #ifdef __cplusplus
33568 extern "C"
33569 {
33570 #endif
33571 /* We use char because int might match the return type of a gcc2
33572    builtin and then its argument prototype would still apply.  */
33573 char $ac_func ();
33574 /* The GNU C library defines this for functions which it implements
33575     to always fail with ENOSYS.  Some functions are actually named
33576     something starting with __ and the normal name is an alias.  */
33577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33578 choke me
33579 #else
33580 char (*f) () = $ac_func;
33581 #endif
33582 #ifdef __cplusplus
33583 }
33584 #endif
33585
33586 int
33587 main ()
33588 {
33589 return f != $ac_func;
33590   ;
33591   return 0;
33592 }
33593 _ACEOF
33594 rm -f conftest.$ac_objext conftest$ac_exeext
33595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33596   (eval $ac_link) 2>&5
33597   ac_status=$?
33598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33599   (exit $ac_status); } &&
33600          { ac_try='test -s conftest$ac_exeext'
33601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33602   (eval $ac_try) 2>&5
33603   ac_status=$?
33604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33605   (exit $ac_status); }; }; then
33606   eval "$as_ac_var=yes"
33607 else
33608   echo "$as_me: failed program was:" >&5
33609 sed 's/^/| /' conftest.$ac_ext >&5
33610
33611 eval "$as_ac_var=no"
33612 fi
33613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33614 fi
33615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33616 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33617 if test `eval echo '${'$as_ac_var'}'` = yes; then
33618   cat >>confdefs.h <<_ACEOF
33619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33620 _ACEOF
33621  have_ceil=1
33622 fi
33623 done
33624
33625     echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
33626 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
33627     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
33628         echo "$as_me:$LINENO: result: yes" >&5
33629 echo "${ECHO_T}yes" >&6
33630     else
33631         echo "$as_me:$LINENO: result: no" >&5
33632 echo "${ECHO_T}no" >&6
33633         # not sure we should warn the user, crash, etc.
33634     fi
33635 fi
33636
33637 if test "$wxUSE_GUI" = "yes"; then
33638
33639
33640             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
33641                      drawing dynamic erase event exec font image \
33642                      minimal propsize rotate shaped widgets render"
33643
33644     if test "$wxUSE_MONOLITHIC" != "yes"; then
33645         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
33646     fi
33647 else
33648     SAMPLES_SUBDIRS="console"
33649 fi
33650
33651
33652 INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
33653 -I\${top_srcdir}/include \
33654 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
33655 $TOOLKIT_INCLUDE"
33656
33657 if test "$GXX" = yes ; then
33658         CXXWARNINGS="-Wall"
33659         fi
33660
33661 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
33662
33663 CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
33664 CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
33665 CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
33666
33667
33668 LIBS=`echo $LIBS | sed 's/ \+/ /g'`
33669 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
33670 EXTRALIBS_XML="$EXPAT_LINK"
33671 EXTRALIBS_ODBC="$ODBC_LINK"
33672 if test "$wxUSE_GUI" = "yes"; then
33673     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
33674 fi
33675 if test "$wxUSE_OPENGL" = "yes"; then
33676     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
33677 fi
33678
33679 LDFLAGS="$LDFLAGS $PROFILE"
33680
33681 if test "$wxUSE_GTK" = 1; then
33682     WXCONFIG_INCLUDE=
33683 else
33684     WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
33685 fi
33686
33687 WXCONFIG_EXTRALIBS="$LIBS"
33688
33689 if test "$wxUSE_REGEX" = "builtin" ; then
33690     wxconfig_3rdparty="$wxconfig_3rdparty regex"
33691 fi
33692 if test "$wxUSE_EXPAT" = "builtin" ; then
33693     wxconfig_3rdparty="$wxconfig_3rdparty expat"
33694 fi
33695 if test "$wxUSE_ODBC" = "builtin" ; then
33696     wxconfig_3rdparty="$wxconfig_3rdparty odbc"
33697 fi
33698 if test "$wxUSE_LIBTIFF" = "builtin" ; then
33699     wxconfig_3rdparty="$wxconfig_3rdparty tiff"
33700 fi
33701 if test "$wxUSE_LIBJPEG" = "builtin" ; then
33702     wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
33703 fi
33704 if test "$wxUSE_LIBPNG" = "builtin" ; then
33705     wxconfig_3rdparty="$wxconfig_3rdparty png"
33706 fi
33707 if test "$wxUSE_ZLIB" = "builtin" ; then
33708     wxconfig_3rdparty="$wxconfig_3rdparty zlib"
33709 fi
33710 if test "$wxUSE_ODBC" = "builtin" ; then
33711     wxconfig_3rdparty="$wxconfig_3rdparty odbc"
33712 fi
33713
33714 for i in $wxconfig_3rdparty ; do
33715     WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
33716 done
33717
33718
33719 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
33720     WXUNIV=1
33721 else
33722     WXUNIV=0
33723 fi
33724
33725
33726
33727
33728
33729
33730
33731
33732
33733 if test $wxUSE_MONOLITHIC = "yes" ; then
33734     MONOLITHIC=1
33735 else
33736     MONOLITHIC=0
33737 fi
33738
33739 if test $wxUSE_ODBC != "no" ; then
33740     USE_ODBC=1
33741 else
33742     USE_ODBC=0
33743 fi
33744
33745 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
33746     OFFICIAL_BUILD=1
33747 else
33748     OFFICIAL_BUILD=0
33749 fi
33750
33751
33752
33753
33754
33755
33756
33757
33758
33759
33760
33761
33762
33763
33764
33765
33766
33767 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr [A-Z] [a-z]`
33768
33769
33770
33771
33772
33773
33774
33775     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
33776
33777     if test -n "$ac_tool_prefix"; then
33778   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
33779 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
33780 echo "$as_me:$LINENO: checking for $ac_word" >&5
33781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33782 if test "${ac_cv_prog_RANLIB+set}" = set; then
33783   echo $ECHO_N "(cached) $ECHO_C" >&6
33784 else
33785   if test -n "$RANLIB"; then
33786   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
33787 else
33788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33789 for as_dir in $PATH
33790 do
33791   IFS=$as_save_IFS
33792   test -z "$as_dir" && as_dir=.
33793   for ac_exec_ext in '' $ac_executable_extensions; do
33794   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33795     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
33796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33797     break 2
33798   fi
33799 done
33800 done
33801
33802 fi
33803 fi
33804 RANLIB=$ac_cv_prog_RANLIB
33805 if test -n "$RANLIB"; then
33806   echo "$as_me:$LINENO: result: $RANLIB" >&5
33807 echo "${ECHO_T}$RANLIB" >&6
33808 else
33809   echo "$as_me:$LINENO: result: no" >&5
33810 echo "${ECHO_T}no" >&6
33811 fi
33812
33813 fi
33814 if test -z "$ac_cv_prog_RANLIB"; then
33815   ac_ct_RANLIB=$RANLIB
33816   # Extract the first word of "ranlib", so it can be a program name with args.
33817 set dummy ranlib; ac_word=$2
33818 echo "$as_me:$LINENO: checking for $ac_word" >&5
33819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33820 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
33821   echo $ECHO_N "(cached) $ECHO_C" >&6
33822 else
33823   if test -n "$ac_ct_RANLIB"; then
33824   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
33825 else
33826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33827 for as_dir in $PATH
33828 do
33829   IFS=$as_save_IFS
33830   test -z "$as_dir" && as_dir=.
33831   for ac_exec_ext in '' $ac_executable_extensions; do
33832   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33833     ac_cv_prog_ac_ct_RANLIB="ranlib"
33834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33835     break 2
33836   fi
33837 done
33838 done
33839
33840   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
33841 fi
33842 fi
33843 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
33844 if test -n "$ac_ct_RANLIB"; then
33845   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
33846 echo "${ECHO_T}$ac_ct_RANLIB" >&6
33847 else
33848   echo "$as_me:$LINENO: result: no" >&5
33849 echo "${ECHO_T}no" >&6
33850 fi
33851
33852   RANLIB=$ac_ct_RANLIB
33853 else
33854   RANLIB="$ac_cv_prog_RANLIB"
33855 fi
33856
33857     # Find a good install program.  We prefer a C program (faster),
33858 # so one script is as good as another.  But avoid the broken or
33859 # incompatible versions:
33860 # SysV /etc/install, /usr/sbin/install
33861 # SunOS /usr/etc/install
33862 # IRIX /sbin/install
33863 # AIX /bin/install
33864 # AmigaOS /C/install, which installs bootblocks on floppy discs
33865 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
33866 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
33867 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
33868 # ./install, which can be erroneously created by make from ./install.sh.
33869 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
33870 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
33871 if test -z "$INSTALL"; then
33872 if test "${ac_cv_path_install+set}" = set; then
33873   echo $ECHO_N "(cached) $ECHO_C" >&6
33874 else
33875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33876 for as_dir in $PATH
33877 do
33878   IFS=$as_save_IFS
33879   test -z "$as_dir" && as_dir=.
33880   # Account for people who put trailing slashes in PATH elements.
33881 case $as_dir/ in
33882   ./ | .// | /cC/* | \
33883   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
33884   /usr/ucb/* ) ;;
33885   *)
33886     # OSF1 and SCO ODT 3.0 have their own names for install.
33887     # Don't use installbsd from OSF since it installs stuff as root
33888     # by default.
33889     for ac_prog in ginstall scoinst install; do
33890       for ac_exec_ext in '' $ac_executable_extensions; do
33891         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
33892           if test $ac_prog = install &&
33893             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
33894             # AIX install.  It has an incompatible calling convention.
33895             :
33896           elif test $ac_prog = install &&
33897             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
33898             # program-specific install script used by HP pwplus--don't use.
33899             :
33900           else
33901             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
33902             break 3
33903           fi
33904         fi
33905       done
33906     done
33907     ;;
33908 esac
33909 done
33910
33911
33912 fi
33913   if test "${ac_cv_path_install+set}" = set; then
33914     INSTALL=$ac_cv_path_install
33915   else
33916     # As a last resort, use the slow shell script.  We don't cache a
33917     # path for INSTALL within a source directory, because that will
33918     # break other packages using the cache if that directory is
33919     # removed, or if the path is relative.
33920     INSTALL=$ac_install_sh
33921   fi
33922 fi
33923 echo "$as_me:$LINENO: result: $INSTALL" >&5
33924 echo "${ECHO_T}$INSTALL" >&6
33925
33926 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
33927 # It thinks the first close brace ends the variable substitution.
33928 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
33929
33930 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
33931
33932 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
33933
33934     echo "$as_me:$LINENO: checking whether ln -s works" >&5
33935 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
33936 LN_S=$as_ln_s
33937 if test "$LN_S" = "ln -s"; then
33938   echo "$as_me:$LINENO: result: yes" >&5
33939 echo "${ECHO_T}yes" >&6
33940 else
33941   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
33942 echo "${ECHO_T}no, using $LN_S" >&6
33943 fi
33944
33945
33946     echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
33947 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
33948 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
33949 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
33950   echo $ECHO_N "(cached) $ECHO_C" >&6
33951 else
33952   cat >conftest.make <<\_ACEOF
33953 all:
33954         @echo 'ac_maketemp="$(MAKE)"'
33955 _ACEOF
33956 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
33957 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
33958 if test -n "$ac_maketemp"; then
33959   eval ac_cv_prog_make_${ac_make}_set=yes
33960 else
33961   eval ac_cv_prog_make_${ac_make}_set=no
33962 fi
33963 rm -f conftest.make
33964 fi
33965 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
33966   echo "$as_me:$LINENO: result: yes" >&5
33967 echo "${ECHO_T}yes" >&6
33968   SET_MAKE=
33969 else
33970   echo "$as_me:$LINENO: result: no" >&5
33971 echo "${ECHO_T}no" >&6
33972   SET_MAKE="MAKE=${MAKE-make}"
33973 fi
33974
33975
33976
33977     if test "$build" != "$host" ; then
33978         AR=$host_alias-ar
33979         STRIP=$host_alias-strip
33980     else
33981         # Extract the first word of "ar", so it can be a program name with args.
33982 set dummy ar; ac_word=$2
33983 echo "$as_me:$LINENO: checking for $ac_word" >&5
33984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33985 if test "${ac_cv_prog_AR+set}" = set; then
33986   echo $ECHO_N "(cached) $ECHO_C" >&6
33987 else
33988   if test -n "$AR"; then
33989   ac_cv_prog_AR="$AR" # Let the user override the test.
33990 else
33991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33992 for as_dir in $PATH
33993 do
33994   IFS=$as_save_IFS
33995   test -z "$as_dir" && as_dir=.
33996   for ac_exec_ext in '' $ac_executable_extensions; do
33997   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33998     ac_cv_prog_AR="ar"
33999     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34000     break 2
34001   fi
34002 done
34003 done
34004
34005   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
34006 fi
34007 fi
34008 AR=$ac_cv_prog_AR
34009 if test -n "$AR"; then
34010   echo "$as_me:$LINENO: result: $AR" >&5
34011 echo "${ECHO_T}$AR" >&6
34012 else
34013   echo "$as_me:$LINENO: result: no" >&5
34014 echo "${ECHO_T}no" >&6
34015 fi
34016
34017         # Extract the first word of "strip", so it can be a program name with args.
34018 set dummy strip; ac_word=$2
34019 echo "$as_me:$LINENO: checking for $ac_word" >&5
34020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34021 if test "${ac_cv_prog_STRIP+set}" = set; then
34022   echo $ECHO_N "(cached) $ECHO_C" >&6
34023 else
34024   if test -n "$STRIP"; then
34025   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
34026 else
34027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34028 for as_dir in $PATH
34029 do
34030   IFS=$as_save_IFS
34031   test -z "$as_dir" && as_dir=.
34032   for ac_exec_ext in '' $ac_executable_extensions; do
34033   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34034     ac_cv_prog_STRIP="strip"
34035     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34036     break 2
34037   fi
34038 done
34039 done
34040
34041   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
34042 fi
34043 fi
34044 STRIP=$ac_cv_prog_STRIP
34045 if test -n "$STRIP"; then
34046   echo "$as_me:$LINENO: result: $STRIP" >&5
34047 echo "${ECHO_T}$STRIP" >&6
34048 else
34049   echo "$as_me:$LINENO: result: no" >&5
34050 echo "${ECHO_T}no" >&6
34051 fi
34052
34053     fi
34054
34055     case ${host} in
34056         *-hp-hpux* )
34057             INSTALL_DIR="mkdir"
34058             ;;
34059         *)  INSTALL_DIR="$INSTALL -d"
34060             ;;
34061     esac
34062
34063
34064     LDFLAGS_GUI=
34065     case ${host} in
34066         *-*-cygwin* | *-*-mingw32* )
34067         LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
34068     esac
34069
34070
34071     fi
34072
34073         echo "$as_me:$LINENO: checking if make is GNU make" >&5
34074 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
34075 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
34076   echo $ECHO_N "(cached) $ECHO_C" >&6
34077 else
34078
34079         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
34080                 egrep -s GNU > /dev/null); then
34081             bakefile_cv_prog_makeisgnu="yes"
34082         else
34083             bakefile_cv_prog_makeisgnu="no"
34084         fi
34085
34086 fi
34087 echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
34088 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
34089
34090     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
34091         IF_GNU_MAKE=""
34092     else
34093         IF_GNU_MAKE="#"
34094     fi
34095
34096
34097
34098     PLATFORM_UNIX=0
34099     PLATFORM_WIN32=0
34100     PLATFORM_MSDOS=0
34101     PLATFORM_MAC=0
34102     PLATFORM_MACOSX=0
34103     PLATFORM_OS2=0
34104
34105     case "${host}" in
34106         *-*-cygwin* | *-*-mingw32* )
34107             PLATFORM_WIN32=1
34108         ;;
34109         *-pc-msdosdjgpp )
34110             PLATFORM_MSDOS=1
34111         ;;
34112         *-pc-os2_emx | *-pc-os2-emx )
34113             PLATFORM_OS2=1
34114         ;;
34115         powerpc-*-darwin* )
34116             PLATFORM_MAC=1
34117             PLATFORM_MACOSX=1
34118         ;;
34119         * )
34120             PLATFORM_UNIX=1
34121         ;;
34122     esac
34123
34124
34125
34126
34127
34128
34129
34130
34131
34132     SO_SUFFIX="so"
34133     SO_SUFFIX_MODULE="so"
34134     EXEEXT=""
34135     LIBPREFIX=lib
34136     DLLPREFIX=lib
34137     DLLPREFIX_MODULE=
34138
34139     case "${host}" in
34140         *-hp-hpux* )
34141             SO_SUFFIX="sl"
34142             SO_SUFFIX_MODULE="sl"
34143         ;;
34144         *-*-aix* )
34145                                                                         SO_SUFFIX="a"
34146             SO_SUFFIX_MODULE="a"
34147         ;;
34148         *-*-cygwin* | *-*-mingw32* )
34149             SO_SUFFIX="dll"
34150             SO_SUFFIX_MODULE="dll"
34151             EXEEXT=".exe"
34152             DLLPREFIX=""
34153         ;;
34154         *-pc-msdosdjgpp )
34155             EXEEXT=".exe"
34156             DLLPREFIX=""
34157         ;;
34158         *-pc-os2_emx | *-pc-os2-emx )
34159             EXEEXT=".exe"
34160             DLLPREFIX=""
34161             LIBPREFIX=""
34162         ;;
34163         powerpc-*-darwin* )
34164             SO_SUFFIX="dylib"
34165             SO_SUFFIX_MODULE="bundle"
34166         ;;
34167     esac
34168
34169
34170
34171
34172
34173
34174
34175
34176
34177         SHARED_LD_CC="\$(CC) -shared -o"
34178     SHARED_LD_CXX="\$(CXX) -shared -o"
34179
34180         if test "x$GCC" = "xyes"; then
34181                 PIC_FLAG="-fPIC"
34182     fi
34183
34184     case "${host}" in
34185       *-hp-hpux* )
34186                 if test "x$GCC" = "xyes"; then
34187                         SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
34188             SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
34189         else
34190                         LDFLAGS="$LDFLAGS -L/usr/lib"
34191
34192             SHARED_LD_CC="${CC} -b -o"
34193             SHARED_LD_CXX="${CXX} -b -o"
34194             PIC_FLAG="+Z"
34195         fi
34196       ;;
34197
34198       *-*-linux* )
34199         if test "x$GCC" != "xyes"; then
34200             echo "$as_me:$LINENO: checking for Intel compiler" >&5
34201 echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
34202 if test "${bakefile_cv_prog_icc+set}" = set; then
34203   echo $ECHO_N "(cached) $ECHO_C" >&6
34204 else
34205
34206                 cat >conftest.$ac_ext <<_ACEOF
34207 #line $LINENO "configure"
34208 /* confdefs.h.  */
34209 _ACEOF
34210 cat confdefs.h >>conftest.$ac_ext
34211 cat >>conftest.$ac_ext <<_ACEOF
34212 /* end confdefs.h.  */
34213
34214 int
34215 main ()
34216 {
34217
34218                         #ifndef __INTEL_COMPILER
34219                         #error Not icc
34220                         #endif
34221
34222   ;
34223   return 0;
34224 }
34225 _ACEOF
34226 rm -f conftest.$ac_objext
34227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34228   (eval $ac_compile) 2>&5
34229   ac_status=$?
34230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34231   (exit $ac_status); } &&
34232          { ac_try='test -s conftest.$ac_objext'
34233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34234   (eval $ac_try) 2>&5
34235   ac_status=$?
34236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34237   (exit $ac_status); }; }; then
34238   bakefile_cv_prog_icc=yes
34239 else
34240   echo "$as_me: failed program was:" >&5
34241 sed 's/^/| /' conftest.$ac_ext >&5
34242
34243 bakefile_cv_prog_icc=no
34244
34245 fi
34246 rm -f conftest.$ac_objext conftest.$ac_ext
34247
34248 fi
34249 echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
34250 echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
34251             if test "$bakefile_cv_prog_icc" = "yes"; then
34252                 PIC_FLAG="-KPIC"
34253             fi
34254         fi
34255       ;;
34256
34257       *-*-solaris2* )
34258         if test "x$GCC" != xyes ; then
34259             SHARED_LD_CC="${CC} -G -o"
34260             SHARED_LD_CXX="${CXX} -G -o"
34261             PIC_FLAG="-KPIC"
34262         fi
34263       ;;
34264
34265       *-*-darwin* )
34266                         CFLAGS="$CFLAGS -fno-common"
34267         CXXFLAGS="$CXXFLAGS -fno-common"
34268
34269
34270         cat <<EOF >shared-ld-sh
34271 #!/bin/sh
34272 #-----------------------------------------------------------------------------
34273 #-- Name:        distrib/mac/shared-ld-sh
34274 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
34275 #-- Author:      Gilles Depeyrot
34276 #-- Copyright:   (c) 2002 Gilles Depeyrot
34277 #-- Licence:     any use permitted
34278 #-----------------------------------------------------------------------------
34279
34280 verbose=0
34281 args=""
34282 objects=""
34283 linking_flag="-dynamiclib"
34284
34285 while test \${#} -gt 0; do
34286     case \${1} in
34287
34288        -v)
34289         verbose=1
34290         ;;
34291
34292        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
34293         # collect these options and values
34294         args="\${args} \${1} \${2}"
34295         shift
34296         ;;
34297
34298        -l*|-L*|-flat_namespace)
34299         # collect these options
34300         args="\${args} \${1}"
34301         ;;
34302
34303        -dynamiclib|-bundle)
34304         linking_flag="\${1}"
34305         ;;
34306
34307        -*)
34308         echo "shared-ld: unhandled option '\${1}'"
34309         exit 1
34310         ;;
34311
34312         *.o | *.a | *.dylib)
34313         # collect object files
34314         objects="\${objects} \${1}"
34315         ;;
34316
34317         *)
34318         echo "shared-ld: unhandled argument '\${1}'"
34319         exit 1
34320         ;;
34321
34322     esac
34323     shift
34324 done
34325
34326 #
34327 # Link one module containing all the others
34328 #
34329 if test \${verbose} = 1; then
34330     echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
34331 fi
34332 c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
34333 status=\$?
34334 if test \${status} != 0; then
34335     exit \${status}
34336 fi
34337
34338 #
34339 # Link the shared library from the single module created
34340 #
34341 if test \${verbose} = 1; then
34342     echo "cc \${linking_flag} master.\$\$.o \${args}"
34343 fi
34344 c++ \${linking_flag} master.\$\$.o \${args}
34345 status=\$?
34346 if test \${status} != 0; then
34347     exit \${status}
34348 fi
34349
34350 #
34351 # Remove intermediate module
34352 #
34353 rm -f master.\$\$.o
34354
34355 exit 0
34356 EOF
34357         chmod +x shared-ld-sh
34358
34359         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -undefined suppress -flat_namespace -o"
34360         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -undefined suppress -flat_namespace -o"
34361         SHARED_LD_CXX="$SHARED_LD_CC"
34362         SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
34363         PIC_FLAG="-dynamic -fPIC"
34364                                       ;;
34365
34366       *-*-aix* )
34367                 if test "x$GCC" != "xyes"; then
34368                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
34369 set dummy makeC++SharedLib; ac_word=$2
34370 echo "$as_me:$LINENO: checking for $ac_word" >&5
34371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34372 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
34373   echo $ECHO_N "(cached) $ECHO_C" >&6
34374 else
34375   if test -n "$AIX_CXX_LD"; then
34376   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
34377 else
34378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34379 for as_dir in $PATH
34380 do
34381   IFS=$as_save_IFS
34382   test -z "$as_dir" && as_dir=.
34383   for ac_exec_ext in '' $ac_executable_extensions; do
34384   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34385     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
34386     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34387     break 2
34388   fi
34389 done
34390 done
34391
34392   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
34393 fi
34394 fi
34395 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
34396 if test -n "$AIX_CXX_LD"; then
34397   echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
34398 echo "${ECHO_T}$AIX_CXX_LD" >&6
34399 else
34400   echo "$as_me:$LINENO: result: no" >&5
34401 echo "${ECHO_T}no" >&6
34402 fi
34403
34404                         SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
34405             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
34406         fi
34407       ;;
34408
34409       *-*-beos* )
34410                         SHARED_LD_CC="${LD} -shared -o"
34411         SHARED_LD_CXX="${LD} -shared -o"
34412       ;;
34413
34414       *-*-irix* )
34415                 if test "x$GCC" != "xyes"; then
34416             PIC_FLAG="-KPIC"
34417         fi
34418       ;;
34419
34420       *-*-cygwin* | *-*-mingw32* )
34421         PIC_FLAG=""
34422       ;;
34423
34424       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
34425       *-*-sunos4* | \
34426       *-*-osf* | \
34427       *-*-dgux5* | \
34428       *-pc-os2_emx | *-pc-os2-emx | \
34429       *-*-sysv5* )
34430               ;;
34431
34432       *)
34433         { { echo "$as_me:$LINENO: error: unknown system type $host." >&5
34434 echo "$as_me: error: unknown system type $host." >&2;}
34435    { (exit 1); exit 1; }; }
34436     esac
34437
34438     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
34439         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
34440     fi
34441     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
34442         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
34443     fi
34444
34445
34446
34447
34448
34449
34450
34451
34452     USE_SOVERSION=0
34453     USE_SOVERLINUX=0
34454     USE_SOVERSOLARIS=0
34455     USE_SOSYMLINKS=0
34456     USE_MACVERSION=0
34457     SONAME_FLAG=
34458
34459     case "${host}" in
34460       *-*-linux* )
34461         SONAME_FLAG="-Wl,-soname,"
34462         USE_SOVERSION=1
34463         USE_SOVERLINUX=1
34464         USE_SOSYMLINKS=1
34465       ;;
34466
34467       *-*-solaris2* )
34468         SONAME_FLAG="-h "
34469         USE_SOVERSION=1
34470         USE_SOVERSOLARIS=1
34471         USE_SOSYMLINKS=1
34472       ;;
34473
34474       *-*-darwin* )
34475         USE_MACVERSION=1
34476         USE_SOVERSION=1
34477         USE_SOSYMLINKS=1
34478       ;;
34479     esac
34480
34481
34482
34483
34484
34485
34486
34487
34488
34489     echo "$as_me:$LINENO: checking for dependency tracking method" >&5
34490 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
34491     DEPS_TRACKING=0
34492
34493     if test "x$GCC" = "xyes"; then
34494         DEPSMODE=gcc
34495         DEPS_TRACKING=1
34496         case "${host}" in
34497             powerpc-*-darwin* )
34498                                                 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
34499             ;;
34500             * )
34501                 DEPSFLAG_GCC="-MMD"
34502             ;;
34503         esac
34504         echo "$as_me:$LINENO: result: gcc" >&5
34505 echo "${ECHO_T}gcc" >&6
34506     else
34507         echo "$as_me:$LINENO: result: none" >&5
34508 echo "${ECHO_T}none" >&6
34509     fi
34510
34511     if test $DEPS_TRACKING = 1 ; then
34512         cat <<EOF >bk-deps
34513 #!/bin/sh
34514
34515 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
34516 # script. It is used to track C/C++ files dependencies in portable way.
34517 #
34518 # Permission is given to use this file in any way.
34519
34520 DEPSMODE=$DEPSMODE
34521 DEPSDIR=.deps
34522 DEPSFLAG_GCC="$DEPSFLAG_GCC"
34523
34524 mkdir -p \$DEPSDIR
34525
34526 if test \$DEPSMODE = gcc ; then
34527     \${*} \${DEPSFLAG_GCC}
34528     status=\${?}
34529     if test \${status} != 0 ; then
34530         exit \${status}
34531     fi
34532     # move created file to the location we want it in:
34533     while test \${#} -gt 0; do
34534         case "\${1}" in
34535             -o )
34536                 shift
34537                 objfile=\${1}
34538             ;;
34539             -* )
34540             ;;
34541             * )
34542                 srcfile=\${1}
34543             ;;
34544         esac
34545         shift
34546     done
34547     depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
34548     depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
34549     if test -f \$depfile ; then
34550         sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
34551         rm -f \$depfile
34552     else
34553         depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
34554         if test -f \$depfile ; then
34555             sed -e "/^\$objfile/! s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
34556             rm -f \$depfile
34557         fi
34558     fi
34559     exit 0
34560 else
34561     \${*}
34562     exit \${?}
34563 fi
34564 EOF
34565         chmod +x bk-deps
34566     fi
34567
34568
34569
34570
34571     RESCOMP=
34572     SETFILE=
34573
34574     case ${host} in
34575         *-*-cygwin* | *-*-mingw32* )
34576                         if test "$build" != "$host" ; then
34577                 RESCOMP=$host_alias-windres
34578             else
34579                 # Extract the first word of "windres", so it can be a program name with args.
34580 set dummy windres; ac_word=$2
34581 echo "$as_me:$LINENO: checking for $ac_word" >&5
34582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34583 if test "${ac_cv_prog_RESCOMP+set}" = set; then
34584   echo $ECHO_N "(cached) $ECHO_C" >&6
34585 else
34586   if test -n "$RESCOMP"; then
34587   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34588 else
34589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34590 for as_dir in $PATH
34591 do
34592   IFS=$as_save_IFS
34593   test -z "$as_dir" && as_dir=.
34594   for ac_exec_ext in '' $ac_executable_extensions; do
34595   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34596     ac_cv_prog_RESCOMP="windres"
34597     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34598     break 2
34599   fi
34600 done
34601 done
34602
34603   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
34604 fi
34605 fi
34606 RESCOMP=$ac_cv_prog_RESCOMP
34607 if test -n "$RESCOMP"; then
34608   echo "$as_me:$LINENO: result: $RESCOMP" >&5
34609 echo "${ECHO_T}$RESCOMP" >&6
34610 else
34611   echo "$as_me:$LINENO: result: no" >&5
34612 echo "${ECHO_T}no" >&6
34613 fi
34614
34615             fi
34616          ;;
34617
34618       *-*-darwin* )
34619             # Extract the first word of "Rez", so it can be a program name with args.
34620 set dummy Rez; ac_word=$2
34621 echo "$as_me:$LINENO: checking for $ac_word" >&5
34622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34623 if test "${ac_cv_prog_RESCOMP+set}" = set; then
34624   echo $ECHO_N "(cached) $ECHO_C" >&6
34625 else
34626   if test -n "$RESCOMP"; then
34627   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34628 else
34629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34630 for as_dir in $PATH
34631 do
34632   IFS=$as_save_IFS
34633   test -z "$as_dir" && as_dir=.
34634   for ac_exec_ext in '' $ac_executable_extensions; do
34635   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34636     ac_cv_prog_RESCOMP="Rez"
34637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34638     break 2
34639   fi
34640 done
34641 done
34642
34643   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
34644 fi
34645 fi
34646 RESCOMP=$ac_cv_prog_RESCOMP
34647 if test -n "$RESCOMP"; then
34648   echo "$as_me:$LINENO: result: $RESCOMP" >&5
34649 echo "${ECHO_T}$RESCOMP" >&6
34650 else
34651   echo "$as_me:$LINENO: result: no" >&5
34652 echo "${ECHO_T}no" >&6
34653 fi
34654
34655             # Extract the first word of "SetFile", so it can be a program name with args.
34656 set dummy SetFile; ac_word=$2
34657 echo "$as_me:$LINENO: checking for $ac_word" >&5
34658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34659 if test "${ac_cv_prog_SETFILE+set}" = set; then
34660   echo $ECHO_N "(cached) $ECHO_C" >&6
34661 else
34662   if test -n "$SETFILE"; then
34663   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
34664 else
34665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34666 for as_dir in $PATH
34667 do
34668   IFS=$as_save_IFS
34669   test -z "$as_dir" && as_dir=.
34670   for ac_exec_ext in '' $ac_executable_extensions; do
34671   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34672     ac_cv_prog_SETFILE="SetFile"
34673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34674     break 2
34675   fi
34676 done
34677 done
34678
34679   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
34680 fi
34681 fi
34682 SETFILE=$ac_cv_prog_SETFILE
34683 if test -n "$SETFILE"; then
34684   echo "$as_me:$LINENO: result: $SETFILE" >&5
34685 echo "${ECHO_T}$SETFILE" >&6
34686 else
34687   echo "$as_me:$LINENO: result: no" >&5
34688 echo "${ECHO_T}no" >&6
34689 fi
34690
34691         ;;
34692     esac
34693
34694
34695
34696
34697
34698
34699
34700
34701
34702
34703     # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
34704 if test "${enable_precomp_headers+set}" = set; then
34705   enableval="$enable_precomp_headers"
34706   bk_use_pch="$enableval"
34707 fi;
34708
34709     GCC_PCH=0
34710
34711     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
34712         if test "x$GCC" = "xyes"; then
34713                         echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
34714 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
34715             cat >conftest.$ac_ext <<_ACEOF
34716 #line $LINENO "configure"
34717 /* confdefs.h.  */
34718 _ACEOF
34719 cat confdefs.h >>conftest.$ac_ext
34720 cat >>conftest.$ac_ext <<_ACEOF
34721 /* end confdefs.h.  */
34722
34723 int
34724 main ()
34725 {
34726
34727                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
34728                         #error "no pch support"
34729                     #endif
34730                     #if (__GNUC__ < 3)
34731                         #error "no pch support"
34732                     #endif
34733                     #if (__GNUC__ == 3) && \
34734                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
34735                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
34736                         #error "no pch support"
34737                     #endif
34738
34739   ;
34740   return 0;
34741 }
34742 _ACEOF
34743 rm -f conftest.$ac_objext
34744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34745   (eval $ac_compile) 2>&5
34746   ac_status=$?
34747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34748   (exit $ac_status); } &&
34749          { ac_try='test -s conftest.$ac_objext'
34750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34751   (eval $ac_try) 2>&5
34752   ac_status=$?
34753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34754   (exit $ac_status); }; }; then
34755
34756                     echo "$as_me:$LINENO: result: yes" >&5
34757 echo "${ECHO_T}yes" >&6
34758                                                             CPPFLAGS="-fpch-deps $CPPFLAGS"
34759                     GCC_PCH=1
34760
34761 else
34762   echo "$as_me: failed program was:" >&5
34763 sed 's/^/| /' conftest.$ac_ext >&5
34764
34765
34766                     echo "$as_me:$LINENO: result: no" >&5
34767 echo "${ECHO_T}no" >&6
34768
34769 fi
34770 rm -f conftest.$ac_objext conftest.$ac_ext
34771             if test $GCC_PCH = 1 ; then
34772                 cat <<EOF >bk-make-pch
34773 #!/bin/sh
34774
34775 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
34776 # script. It is used to generated precompiled headers.
34777 #
34778 # Permission is given to use this file in any way.
34779
34780 outfile="\${1}"
34781 header="\${2}"
34782 shift
34783 shift
34784
34785 compiler=
34786 headerfile=
34787 while test \${#} -gt 0; do
34788     case "\${1}" in
34789         -I* )
34790             incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
34791             if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
34792                 headerfile="\${incdir}/\${header}"
34793             fi
34794         ;;
34795     esac
34796     compiler="\${compiler} \${1}"
34797     shift
34798 done
34799
34800 if test "x\${headerfile}" = "x" ; then
34801     echo "error: can't find header \${header} in include paths" >2
34802 else
34803     if test -f \${outfile} ; then
34804         rm -f \${outfile}
34805     else
34806         mkdir -p \`dirname \${outfile}\`
34807     fi
34808     depsfile=".deps/\`basename \${outfile}\`.d"
34809     mkdir -p .deps
34810     # can do this because gcc is >= 3.4:
34811     \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
34812     exit \${?}
34813 fi
34814 EOF
34815                 chmod +x bk-make-pch
34816             fi
34817         fi
34818     fi
34819
34820
34821
34822
34823
34824     COND_BUILD_DEBUG="#"
34825     if test "x$BUILD" = "xdebug" ; then
34826         COND_BUILD_DEBUG=""
34827     fi
34828
34829     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
34830     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
34831         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
34832     fi
34833
34834     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
34835     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
34836         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
34837     fi
34838
34839     COND_BUILD_RELEASE="#"
34840     if test "x$BUILD" = "xrelease" ; then
34841         COND_BUILD_RELEASE=""
34842     fi
34843
34844     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
34845     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
34846         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
34847     fi
34848
34849     COND_DEBUG_FLAG_1="#"
34850     if test "x$DEBUG_FLAG" = "x1" ; then
34851         COND_DEBUG_FLAG_1=""
34852     fi
34853
34854     COND_DEBUG_INFO_0="#"
34855     if test "x$DEBUG_INFO" = "x0" ; then
34856         COND_DEBUG_INFO_0=""
34857     fi
34858
34859     COND_DEBUG_INFO_1="#"
34860     if test "x$DEBUG_INFO" = "x1" ; then
34861         COND_DEBUG_INFO_1=""
34862     fi
34863
34864     COND_DEPS_TRACKING_0="#"
34865     if test "x$DEPS_TRACKING" = "x0" ; then
34866         COND_DEPS_TRACKING_0=""
34867     fi
34868
34869     COND_DEPS_TRACKING_1="#"
34870     if test "x$DEPS_TRACKING" = "x1" ; then
34871         COND_DEPS_TRACKING_1=""
34872     fi
34873
34874     COND_GCC_PCH_1="#"
34875     if test "x$GCC_PCH" = "x1" ; then
34876         COND_GCC_PCH_1=""
34877     fi
34878
34879     COND_MONOLITHIC_0="#"
34880     if test "x$MONOLITHIC" = "x0" ; then
34881         COND_MONOLITHIC_0=""
34882     fi
34883
34884     COND_MONOLITHIC_0_SHARED_0="#"
34885     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
34886         COND_MONOLITHIC_0_SHARED_0=""
34887     fi
34888
34889     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
34890     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
34891         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
34892     fi
34893
34894     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
34895     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
34896         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
34897     fi
34898
34899     COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
34900     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
34901         COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
34902     fi
34903
34904     COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
34905     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
34906         COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
34907     fi
34908
34909     COND_MONOLITHIC_0_SHARED_1="#"
34910     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
34911         COND_MONOLITHIC_0_SHARED_1=""
34912     fi
34913
34914     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
34915     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
34916         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
34917     fi
34918
34919     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
34920     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
34921         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
34922     fi
34923
34924     COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
34925     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
34926         COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
34927     fi
34928
34929     COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
34930     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
34931         COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
34932     fi
34933
34934     COND_MONOLITHIC_1="#"
34935     if test "x$MONOLITHIC" = "x1" ; then
34936         COND_MONOLITHIC_1=""
34937     fi
34938
34939     COND_MONOLITHIC_1_SHARED_0="#"
34940     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
34941         COND_MONOLITHIC_1_SHARED_0=""
34942     fi
34943
34944     COND_MONOLITHIC_1_SHARED_1="#"
34945     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
34946         COND_MONOLITHIC_1_SHARED_1=""
34947     fi
34948
34949     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
34950     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
34951         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
34952     fi
34953
34954     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
34955     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
34956         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
34957     fi
34958
34959     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
34960     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
34961         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
34962     fi
34963
34964     COND_PLATFORM_MACOSX_1="#"
34965     if test "x$PLATFORM_MACOSX" = "x1" ; then
34966         COND_PLATFORM_MACOSX_1=""
34967     fi
34968
34969     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
34970     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
34971         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
34972     fi
34973
34974     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
34975     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
34976         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
34977     fi
34978
34979     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
34980     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
34981         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
34982     fi
34983
34984     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
34985     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
34986         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
34987     fi
34988
34989     COND_PLATFORM_MAC_1="#"
34990     if test "x$PLATFORM_MAC" = "x1" ; then
34991         COND_PLATFORM_MAC_1=""
34992     fi
34993
34994     COND_PLATFORM_OS2_1="#"
34995     if test "x$PLATFORM_OS2" = "x1" ; then
34996         COND_PLATFORM_OS2_1=""
34997     fi
34998
34999     COND_PLATFORM_UNIX_0="#"
35000     if test "x$PLATFORM_UNIX" = "x0" ; then
35001         COND_PLATFORM_UNIX_0=""
35002     fi
35003
35004     COND_PLATFORM_UNIX_1="#"
35005     if test "x$PLATFORM_UNIX" = "x1" ; then
35006         COND_PLATFORM_UNIX_1=""
35007     fi
35008
35009     COND_PLATFORM_WIN32_0="#"
35010     if test "x$PLATFORM_WIN32" = "x0" ; then
35011         COND_PLATFORM_WIN32_0=""
35012     fi
35013
35014     COND_PLATFORM_WIN32_1="#"
35015     if test "x$PLATFORM_WIN32" = "x1" ; then
35016         COND_PLATFORM_WIN32_1=""
35017     fi
35018
35019     COND_SHARED_0="#"
35020     if test "x$SHARED" = "x0" ; then
35021         COND_SHARED_0=""
35022     fi
35023
35024     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
35025     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
35026         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
35027     fi
35028
35029     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
35030     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35031         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
35032     fi
35033
35034     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
35035     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35036         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
35037     fi
35038
35039     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
35040     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35041         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
35042     fi
35043
35044     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
35045     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
35046         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
35047     fi
35048
35049     COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
35050     if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
35051         COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
35052     fi
35053
35054     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
35055     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
35056         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
35057     fi
35058
35059     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
35060     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
35061         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
35062     fi
35063
35064     COND_SHARED_1="#"
35065     if test "x$SHARED" = "x1" ; then
35066         COND_SHARED_1=""
35067     fi
35068
35069     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
35070     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
35071         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
35072     fi
35073
35074     COND_TOOLKIT_COCOA="#"
35075     if test "x$TOOLKIT" = "xCOCOA" ; then
35076         COND_TOOLKIT_COCOA=""
35077     fi
35078
35079     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
35080     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35081         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
35082     fi
35083
35084     COND_TOOLKIT_GTK="#"
35085     if test "x$TOOLKIT" = "xGTK" ; then
35086         COND_TOOLKIT_GTK=""
35087     fi
35088
35089     COND_TOOLKIT_GTK_USE_GUI_1="#"
35090     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
35091         COND_TOOLKIT_GTK_USE_GUI_1=""
35092     fi
35093
35094     COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
35095     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35096         COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
35097     fi
35098
35099     COND_TOOLKIT_MAC="#"
35100     if test "x$TOOLKIT" = "xMAC" ; then
35101         COND_TOOLKIT_MAC=""
35102     fi
35103
35104     COND_TOOLKIT_MAC_USE_GUI_1="#"
35105     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
35106         COND_TOOLKIT_MAC_USE_GUI_1=""
35107     fi
35108
35109     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
35110     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35111         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
35112     fi
35113
35114     COND_TOOLKIT_MGL="#"
35115     if test "x$TOOLKIT" = "xMGL" ; then
35116         COND_TOOLKIT_MGL=""
35117     fi
35118
35119     COND_TOOLKIT_MGL_USE_GUI_1="#"
35120     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
35121         COND_TOOLKIT_MGL_USE_GUI_1=""
35122     fi
35123
35124     COND_TOOLKIT_MOTIF="#"
35125     if test "x$TOOLKIT" = "xMOTIF" ; then
35126         COND_TOOLKIT_MOTIF=""
35127     fi
35128
35129     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
35130     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
35131         COND_TOOLKIT_MOTIF_USE_GUI_1=""
35132     fi
35133
35134     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
35135     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35136         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
35137     fi
35138
35139     COND_TOOLKIT_MSW="#"
35140     if test "x$TOOLKIT" = "xMSW" ; then
35141         COND_TOOLKIT_MSW=""
35142     fi
35143
35144     COND_TOOLKIT_MSW_USE_GUI_1="#"
35145     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
35146         COND_TOOLKIT_MSW_USE_GUI_1=""
35147     fi
35148
35149     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
35150     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35151         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
35152     fi
35153
35154     COND_TOOLKIT_OS2="#"
35155     if test "x$TOOLKIT" = "xOS2" ; then
35156         COND_TOOLKIT_OS2=""
35157     fi
35158
35159     COND_TOOLKIT_OS2_USE_GUI_1="#"
35160     if test "x$TOOLKIT" = "xOS2" -a "x$USE_GUI" = "x1" ; then
35161         COND_TOOLKIT_OS2_USE_GUI_1=""
35162     fi
35163
35164     COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0="#"
35165     if test "x$TOOLKIT" = "xOS2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35166         COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0=""
35167     fi
35168
35169     COND_TOOLKIT_PM="#"
35170     if test "x$TOOLKIT" = "xPM" ; then
35171         COND_TOOLKIT_PM=""
35172     fi
35173
35174     COND_TOOLKIT_PM_USE_GUI_1="#"
35175     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
35176         COND_TOOLKIT_PM_USE_GUI_1=""
35177     fi
35178
35179     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
35180     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35181         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
35182     fi
35183
35184     COND_TOOLKIT_X11="#"
35185     if test "x$TOOLKIT" = "xX11" ; then
35186         COND_TOOLKIT_X11=""
35187     fi
35188
35189     COND_TOOLKIT_X11_USE_GUI_1="#"
35190     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
35191         COND_TOOLKIT_X11_USE_GUI_1=""
35192     fi
35193
35194     COND_UNICODE_1="#"
35195     if test "x$UNICODE" = "x1" ; then
35196         COND_UNICODE_1=""
35197     fi
35198
35199     COND_USE_GUI_0="#"
35200     if test "x$USE_GUI" = "x0" ; then
35201         COND_USE_GUI_0=""
35202     fi
35203
35204     COND_USE_GUI_1="#"
35205     if test "x$USE_GUI" = "x1" ; then
35206         COND_USE_GUI_1=""
35207     fi
35208
35209     COND_USE_GUI_1_WXUNIV_0="#"
35210     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35211         COND_USE_GUI_1_WXUNIV_0=""
35212     fi
35213
35214     COND_USE_GUI_1_WXUNIV_1="#"
35215     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
35216         COND_USE_GUI_1_WXUNIV_1=""
35217     fi
35218
35219     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
35220     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35221         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
35222     fi
35223
35224     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
35225     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35226         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
35227     fi
35228
35229     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
35230     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35231         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
35232     fi
35233
35234     COND_USE_SOSYMLINKS_1="#"
35235     if test "x$USE_SOSYMLINKS" = "x1" ; then
35236         COND_USE_SOSYMLINKS_1=""
35237     fi
35238
35239     COND_USE_SOVERLINUX_1="#"
35240     if test "x$USE_SOVERLINUX" = "x1" ; then
35241         COND_USE_SOVERLINUX_1=""
35242     fi
35243
35244     COND_USE_SOVERSION_0="#"
35245     if test "x$USE_SOVERSION" = "x0" ; then
35246         COND_USE_SOVERSION_0=""
35247     fi
35248
35249     COND_USE_SOVERSOLARIS_1="#"
35250     if test "x$USE_SOVERSOLARIS" = "x1" ; then
35251         COND_USE_SOVERSOLARIS_1=""
35252     fi
35253
35254     COND_WXUNIV_1="#"
35255     if test "x$WXUNIV" = "x1" ; then
35256         COND_WXUNIV_1=""
35257     fi
35258
35259     COND_WXUSE_EXPAT_BUILTIN="#"
35260     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
35261         COND_WXUSE_EXPAT_BUILTIN=""
35262     fi
35263
35264     COND_WXUSE_LIBJPEG_BUILTIN="#"
35265     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35266         COND_WXUSE_LIBJPEG_BUILTIN=""
35267     fi
35268
35269     COND_WXUSE_LIBPNG_BUILTIN="#"
35270     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35271         COND_WXUSE_LIBPNG_BUILTIN=""
35272     fi
35273
35274     COND_WXUSE_LIBTIFF_BUILTIN="#"
35275     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35276         COND_WXUSE_LIBTIFF_BUILTIN=""
35277     fi
35278
35279     COND_WXUSE_ODBC_BUILTIN="#"
35280     if test "x$wxUSE_ODBC" = "xbuiltin" ; then
35281         COND_WXUSE_ODBC_BUILTIN=""
35282     fi
35283
35284     COND_WXUSE_REGEX_BUILTIN="#"
35285     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
35286         COND_WXUSE_REGEX_BUILTIN=""
35287     fi
35288
35289     COND_WXUSE_ZLIB_BUILTIN="#"
35290     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
35291         COND_WXUSE_ZLIB_BUILTIN=""
35292     fi
35293
35294
35295
35296
35297
35298 if test $GCC_PCH = 1 ; then
35299     CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
35300 else
35301     case "${host}" in
35302         powerpc-*-darwin* )
35303                                     CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
35304             ;;
35305     esac
35306 fi
35307 case "${host}" in
35308     powerpc-*-darwin* )
35309                         CODE_GEN_FLAGS_CXX="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS_CXX"
35310         ;;
35311 esac
35312
35313
35314 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
35315
35316
35317
35318
35319
35320
35321
35322
35323
35324
35325
35326
35327
35328
35329
35330
35331
35332
35333
35334
35335
35336
35337
35338
35339
35340
35341
35342
35343
35344
35345
35346
35347
35348
35349
35350
35351
35352
35353
35354
35355
35356
35357
35358
35359
35360
35361
35362
35363
35364
35365
35366
35367
35368
35369
35370
35371
35372
35373
35374
35375
35376
35377
35378
35379
35380
35381
35382
35383
35384
35385
35386
35387
35388
35389
35390
35391
35392
35393
35394
35395
35396
35397
35398
35399
35400
35401
35402
35403
35404
35405
35406
35407
35408
35409
35410
35411
35412
35413
35414
35415 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
35416 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
35417 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
35418 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
35419   echo $ECHO_N "(cached) $ECHO_C" >&6
35420 else
35421   cat >conftest.make <<\_ACEOF
35422 all:
35423         @echo 'ac_maketemp="$(MAKE)"'
35424 _ACEOF
35425 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
35426 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
35427 if test -n "$ac_maketemp"; then
35428   eval ac_cv_prog_make_${ac_make}_set=yes
35429 else
35430   eval ac_cv_prog_make_${ac_make}_set=no
35431 fi
35432 rm -f conftest.make
35433 fi
35434 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
35435   echo "$as_me:$LINENO: result: yes" >&5
35436 echo "${ECHO_T}yes" >&6
35437   SET_MAKE=
35438 else
35439   echo "$as_me:$LINENO: result: no" >&5
35440 echo "${ECHO_T}no" >&6
35441   SET_MAKE="MAKE=${MAKE-make}"
35442 fi
35443
35444
35445 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
35446     mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
35447 fi
35448
35449           ac_config_headers="$ac_config_headers setup.h"
35450
35451
35452                               ac_config_files="$ac_config_files wx-config version-script Makefile"
35453
35454
35455           ac_config_commands="$ac_config_commands default"
35456
35457
35458
35459 if test "$wxUSE_GUI" = "yes"; then
35460     SUBDIRS="samples demos utils contrib"
35461 else         SUBDIRS="samples utils"
35462 fi
35463
35464 for subdir in `echo $SUBDIRS`; do
35465     if test -d ${srcdir}/${subdir} ; then
35466         if test "$wxUSE_GUI" = "yes"; then
35467             if test ${subdir} = "samples"; then
35468                                                 makefiles="samples/Makefile.in $makefiles"
35469                 for sample in `echo $SAMPLES_SUBDIRS`; do
35470                     if test -d $srcdir/samples/$sample; then
35471                         makefiles="samples/$sample/Makefile.in $makefiles"
35472                     fi
35473                 done
35474             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
35475             fi
35476         else                                     if test ${subdir} = "samples"; then
35477                 makefiles="samples/Makefile.in samples/console/Makefile.in"
35478             else                 makefiles="utils/HelpGen/Makefile.in \
35479                            utils/HelpGen/src/Makefile.in \
35480                            utils/makegen/Makefile.in"
35481             fi
35482         fi
35483
35484         for mkin in $makefiles ; do
35485             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
35486                       ac_config_files="$ac_config_files $mk"
35487
35488         done
35489     fi
35490 done
35491
35492
35493 cat >confcache <<\_ACEOF
35494 # This file is a shell script that caches the results of configure
35495 # tests run on this system so they can be shared between configure
35496 # scripts and configure runs, see configure's option --config-cache.
35497 # It is not useful on other systems.  If it contains results you don't
35498 # want to keep, you may remove or edit it.
35499 #
35500 # config.status only pays attention to the cache file if you give it
35501 # the --recheck option to rerun configure.
35502 #
35503 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35504 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35505 # following values.
35506
35507 _ACEOF
35508
35509 # The following way of writing the cache mishandles newlines in values,
35510 # but we know of no workaround that is simple, portable, and efficient.
35511 # So, don't put newlines in cache variables' values.
35512 # Ultrix sh set writes to stderr and can't be redirected directly,
35513 # and sets the high bit in the cache file unless we assign to the vars.
35514 {
35515   (set) 2>&1 |
35516     case `(ac_space=' '; set | grep ac_space) 2>&1` in
35517     *ac_space=\ *)
35518       # `set' does not quote correctly, so add quotes (double-quote
35519       # substitution turns \\\\ into \\, and sed turns \\ into \).
35520       sed -n \
35521         "s/'/'\\\\''/g;
35522           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35523       ;;
35524     *)
35525       # `set' quotes correctly as required by POSIX, so do not add quotes.
35526       sed -n \
35527         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
35528       ;;
35529     esac;
35530 } |
35531   sed '
35532      t clear
35533      : clear
35534      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35535      t end
35536      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35537      : end' >>confcache
35538 if diff $cache_file confcache >/dev/null 2>&1; then :; else
35539   if test -w $cache_file; then
35540     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
35541     cat confcache >$cache_file
35542   else
35543     echo "not updating unwritable cache $cache_file"
35544   fi
35545 fi
35546 rm -f confcache
35547
35548 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35549 # Let make expand exec_prefix.
35550 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35551
35552 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35553 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35554 # trailing colons and then remove the whole line if VPATH becomes empty
35555 # (actually we leave an empty line to preserve line numbers).
35556 if test "x$srcdir" = x.; then
35557   ac_vpsub='/^[         ]*VPATH[        ]*=/{
35558 s/:*\$(srcdir):*/:/;
35559 s/:*\${srcdir}:*/:/;
35560 s/:*@srcdir@:*/:/;
35561 s/^\([^=]*=[    ]*\):*/\1/;
35562 s/:*$//;
35563 s/^[^=]*=[      ]*$//;
35564 }'
35565 fi
35566
35567 DEFS=-DHAVE_CONFIG_H
35568
35569 ac_libobjs=
35570 ac_ltlibobjs=
35571 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35572   # 1. Remove the extension, and $U if already installed.
35573   ac_i=`echo "$ac_i" |
35574          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
35575   # 2. Add them.
35576   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
35577   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
35578 done
35579 LIBOBJS=$ac_libobjs
35580
35581 LTLIBOBJS=$ac_ltlibobjs
35582
35583
35584
35585 : ${CONFIG_STATUS=./config.status}
35586 ac_clean_files_save=$ac_clean_files
35587 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35588 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35589 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35590 cat >$CONFIG_STATUS <<_ACEOF
35591 #! $SHELL
35592 # Generated by $as_me.
35593 # Run this file to recreate the current configuration.
35594 # Compiler output produced by configure, useful for debugging
35595 # configure, is in config.log if it exists.
35596
35597 debug=false
35598 ac_cs_recheck=false
35599 ac_cs_silent=false
35600 SHELL=\${CONFIG_SHELL-$SHELL}
35601 _ACEOF
35602
35603 cat >>$CONFIG_STATUS <<\_ACEOF
35604 ## --------------------- ##
35605 ## M4sh Initialization.  ##
35606 ## --------------------- ##
35607
35608 # Be Bourne compatible
35609 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35610   emulate sh
35611   NULLCMD=:
35612   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35613   # is contrary to our usage.  Disable this feature.
35614   alias -g '${1+"$@"}'='"$@"'
35615 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
35616   set -o posix
35617 fi
35618
35619 # Support unset when possible.
35620 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
35621   as_unset=unset
35622 else
35623   as_unset=false
35624 fi
35625
35626
35627 # Work around bugs in pre-3.0 UWIN ksh.
35628 $as_unset ENV MAIL MAILPATH
35629 PS1='$ '
35630 PS2='> '
35631 PS4='+ '
35632
35633 # NLS nuisances.
35634 for as_var in \
35635   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35636   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35637   LC_TELEPHONE LC_TIME
35638 do
35639   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
35640     eval $as_var=C; export $as_var
35641   else
35642     $as_unset $as_var
35643   fi
35644 done
35645
35646 # Required to use basename.
35647 if expr a : '\(a\)' >/dev/null 2>&1; then
35648   as_expr=expr
35649 else
35650   as_expr=false
35651 fi
35652
35653 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
35654   as_basename=basename
35655 else
35656   as_basename=false
35657 fi
35658
35659
35660 # Name of the executable.
35661 as_me=`$as_basename "$0" ||
35662 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35663          X"$0" : 'X\(//\)$' \| \
35664          X"$0" : 'X\(/\)$' \| \
35665          .     : '\(.\)' 2>/dev/null ||
35666 echo X/"$0" |
35667     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
35668           /^X\/\(\/\/\)$/{ s//\1/; q; }
35669           /^X\/\(\/\).*/{ s//\1/; q; }
35670           s/.*/./; q'`
35671
35672
35673 # PATH needs CR, and LINENO needs CR and PATH.
35674 # Avoid depending upon Character Ranges.
35675 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35676 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35677 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35678 as_cr_digits='0123456789'
35679 as_cr_alnum=$as_cr_Letters$as_cr_digits
35680
35681 # The user is always right.
35682 if test "${PATH_SEPARATOR+set}" != set; then
35683   echo "#! /bin/sh" >conf$$.sh
35684   echo  "exit 0"   >>conf$$.sh
35685   chmod +x conf$$.sh
35686   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35687     PATH_SEPARATOR=';'
35688   else
35689     PATH_SEPARATOR=:
35690   fi
35691   rm -f conf$$.sh
35692 fi
35693
35694
35695   as_lineno_1=$LINENO
35696   as_lineno_2=$LINENO
35697   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
35698   test "x$as_lineno_1" != "x$as_lineno_2" &&
35699   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
35700   # Find who we are.  Look in the path if we contain no path at all
35701   # relative or not.
35702   case $0 in
35703     *[\\/]* ) as_myself=$0 ;;
35704     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35705 for as_dir in $PATH
35706 do
35707   IFS=$as_save_IFS
35708   test -z "$as_dir" && as_dir=.
35709   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35710 done
35711
35712        ;;
35713   esac
35714   # We did not find ourselves, most probably we were run as `sh COMMAND'
35715   # in which case we are not to be found in the path.
35716   if test "x$as_myself" = x; then
35717     as_myself=$0
35718   fi
35719   if test ! -f "$as_myself"; then
35720     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
35721 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
35722    { (exit 1); exit 1; }; }
35723   fi
35724   case $CONFIG_SHELL in
35725   '')
35726     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35727 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
35728 do
35729   IFS=$as_save_IFS
35730   test -z "$as_dir" && as_dir=.
35731   for as_base in sh bash ksh sh5; do
35732          case $as_dir in
35733          /*)
35734            if ("$as_dir/$as_base" -c '
35735   as_lineno_1=$LINENO
35736   as_lineno_2=$LINENO
35737   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
35738   test "x$as_lineno_1" != "x$as_lineno_2" &&
35739   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
35740              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
35741              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
35742              CONFIG_SHELL=$as_dir/$as_base
35743              export CONFIG_SHELL
35744              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
35745            fi;;
35746          esac
35747        done
35748 done
35749 ;;
35750   esac
35751
35752   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35753   # uniformly replaced by the line number.  The first 'sed' inserts a
35754   # line-number line before each line; the second 'sed' does the real
35755   # work.  The second script uses 'N' to pair each line-number line
35756   # with the numbered line, and appends trailing '-' during
35757   # substitution so that $LINENO is not a special case at line end.
35758   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35759   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
35760   sed '=' <$as_myself |
35761     sed '
35762       N
35763       s,$,-,
35764       : loop
35765       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
35766       t loop
35767       s,-$,,
35768       s,^['$as_cr_digits']*\n,,
35769     ' >$as_me.lineno &&
35770   chmod +x $as_me.lineno ||
35771     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
35772 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
35773    { (exit 1); exit 1; }; }
35774
35775   # Don't try to exec as it changes $[0], causing all sort of problems
35776   # (the dirname of $[0] is not the place where we might find the
35777   # original and so on.  Autoconf is especially sensible to this).
35778   . ./$as_me.lineno
35779   # Exit status is that of the last command.
35780   exit
35781 }
35782
35783
35784 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
35785   *c*,-n*) ECHO_N= ECHO_C='
35786 ' ECHO_T='      ' ;;
35787   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
35788   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
35789 esac
35790
35791 if expr a : '\(a\)' >/dev/null 2>&1; then
35792   as_expr=expr
35793 else
35794   as_expr=false
35795 fi
35796
35797 rm -f conf$$ conf$$.exe conf$$.file
35798 echo >conf$$.file
35799 if ln -s conf$$.file conf$$ 2>/dev/null; then
35800   # We could just check for DJGPP; but this test a) works b) is more generic
35801   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
35802   if test -f conf$$.exe; then
35803     # Don't use ln at all; we don't have any links
35804     as_ln_s='cp -p'
35805   else
35806     as_ln_s='ln -s'
35807   fi
35808 elif ln conf$$.file conf$$ 2>/dev/null; then
35809   as_ln_s=ln
35810 else
35811   as_ln_s='cp -p'
35812 fi
35813 rm -f conf$$ conf$$.exe conf$$.file
35814
35815 if mkdir -p . 2>/dev/null; then
35816   as_mkdir_p=:
35817 else
35818   as_mkdir_p=false
35819 fi
35820
35821 as_executable_p="test -f"
35822
35823 # Sed expression to map a string onto a valid CPP name.
35824 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
35825
35826 # Sed expression to map a string onto a valid variable name.
35827 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
35828
35829
35830 # IFS
35831 # We need space, tab and new line, in precisely that order.
35832 as_nl='
35833 '
35834 IFS="   $as_nl"
35835
35836 # CDPATH.
35837 $as_unset CDPATH
35838
35839 exec 6>&1
35840
35841 # Open the log real soon, to keep \$[0] and so on meaningful, and to
35842 # report actual input values of CONFIG_FILES etc. instead of their
35843 # values after options handling.  Logging --version etc. is OK.
35844 exec 5>>config.log
35845 {
35846   echo
35847   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35848 ## Running $as_me. ##
35849 _ASBOX
35850 } >&5
35851 cat >&5 <<_CSEOF
35852
35853 This file was extended by wxWindows $as_me 2.5.0, which was
35854 generated by GNU Autoconf 2.57.  Invocation command line was
35855
35856   CONFIG_FILES    = $CONFIG_FILES
35857   CONFIG_HEADERS  = $CONFIG_HEADERS
35858   CONFIG_LINKS    = $CONFIG_LINKS
35859   CONFIG_COMMANDS = $CONFIG_COMMANDS
35860   $ $0 $@
35861
35862 _CSEOF
35863 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
35864 echo >&5
35865 _ACEOF
35866
35867 # Files that config.status was made for.
35868 if test -n "$ac_config_files"; then
35869   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
35870 fi
35871
35872 if test -n "$ac_config_headers"; then
35873   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
35874 fi
35875
35876 if test -n "$ac_config_links"; then
35877   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
35878 fi
35879
35880 if test -n "$ac_config_commands"; then
35881   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
35882 fi
35883
35884 cat >>$CONFIG_STATUS <<\_ACEOF
35885
35886 ac_cs_usage="\
35887 \`$as_me' instantiates files from templates according to the
35888 current configuration.
35889
35890 Usage: $0 [OPTIONS] [FILE]...
35891
35892   -h, --help       print this help, then exit
35893   -V, --version    print version number, then exit
35894   -q, --quiet      do not print progress messages
35895   -d, --debug      don't remove temporary files
35896       --recheck    update $as_me by reconfiguring in the same conditions
35897   --file=FILE[:TEMPLATE]
35898                    instantiate the configuration file FILE
35899   --header=FILE[:TEMPLATE]
35900                    instantiate the configuration header FILE
35901
35902 Configuration files:
35903 $config_files
35904
35905 Configuration headers:
35906 $config_headers
35907
35908 Configuration commands:
35909 $config_commands
35910
35911 Report bugs to <bug-autoconf@gnu.org>."
35912 _ACEOF
35913
35914 cat >>$CONFIG_STATUS <<_ACEOF
35915 ac_cs_version="\\
35916 wxWindows config.status 2.5.0
35917 configured by $0, generated by GNU Autoconf 2.57,
35918   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
35919
35920 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
35921 Free Software Foundation, Inc.
35922 This config.status script is free software; the Free Software Foundation
35923 gives unlimited permission to copy, distribute and modify it."
35924 srcdir=$srcdir
35925 INSTALL="$INSTALL"
35926 _ACEOF
35927
35928 cat >>$CONFIG_STATUS <<\_ACEOF
35929 # If no file are specified by the user, then we need to provide default
35930 # value.  By we need to know if files were specified by the user.
35931 ac_need_defaults=:
35932 while test $# != 0
35933 do
35934   case $1 in
35935   --*=*)
35936     ac_option=`expr "x$1" : 'x\([^=]*\)='`
35937     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
35938     ac_shift=:
35939     ;;
35940   -*)
35941     ac_option=$1
35942     ac_optarg=$2
35943     ac_shift=shift
35944     ;;
35945   *) # This is not an option, so the user has probably given explicit
35946      # arguments.
35947      ac_option=$1
35948      ac_need_defaults=false;;
35949   esac
35950
35951   case $ac_option in
35952   # Handling of the options.
35953 _ACEOF
35954 cat >>$CONFIG_STATUS <<\_ACEOF
35955   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35956     ac_cs_recheck=: ;;
35957   --version | --vers* | -V )
35958     echo "$ac_cs_version"; exit 0 ;;
35959   --he | --h)
35960     # Conflict between --help and --header
35961     { { echo "$as_me:$LINENO: error: ambiguous option: $1
35962 Try \`$0 --help' for more information." >&5
35963 echo "$as_me: error: ambiguous option: $1
35964 Try \`$0 --help' for more information." >&2;}
35965    { (exit 1); exit 1; }; };;
35966   --help | --hel | -h )
35967     echo "$ac_cs_usage"; exit 0 ;;
35968   --debug | --d* | -d )
35969     debug=: ;;
35970   --file | --fil | --fi | --f )
35971     $ac_shift
35972     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
35973     ac_need_defaults=false;;
35974   --header | --heade | --head | --hea )
35975     $ac_shift
35976     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
35977     ac_need_defaults=false;;
35978   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35979   | -silent | --silent | --silen | --sile | --sil | --si | --s)
35980     ac_cs_silent=: ;;
35981
35982   # This is an error.
35983   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
35984 Try \`$0 --help' for more information." >&5
35985 echo "$as_me: error: unrecognized option: $1
35986 Try \`$0 --help' for more information." >&2;}
35987    { (exit 1); exit 1; }; } ;;
35988
35989   *) ac_config_targets="$ac_config_targets $1" ;;
35990
35991   esac
35992   shift
35993 done
35994
35995 ac_configure_extra_args=
35996
35997 if $ac_cs_silent; then
35998   exec 6>/dev/null
35999   ac_configure_extra_args="$ac_configure_extra_args --silent"
36000 fi
36001
36002 _ACEOF
36003 cat >>$CONFIG_STATUS <<_ACEOF
36004 if \$ac_cs_recheck; then
36005   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
36006   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36007 fi
36008
36009 _ACEOF
36010
36011 cat >>$CONFIG_STATUS <<_ACEOF
36012 #
36013 # INIT-COMMANDS section.
36014 #
36015
36016
36017             TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
36018             LN_S="${LN_S}"
36019
36020
36021
36022 _ACEOF
36023
36024
36025
36026 cat >>$CONFIG_STATUS <<\_ACEOF
36027 for ac_config_target in $ac_config_targets
36028 do
36029   case "$ac_config_target" in
36030   # Handling of arguments.
36031   "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
36032   "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
36033   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36034   "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
36035   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
36036   "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
36037   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36038 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36039    { (exit 1); exit 1; }; };;
36040   esac
36041 done
36042
36043 # If the user did not use the arguments to specify the items to instantiate,
36044 # then the envvar interface is used.  Set only those that are not.
36045 # We use the long form for the default assignment because of an extremely
36046 # bizarre bug on SunOS 4.1.3.
36047 if $ac_need_defaults; then
36048   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36049   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36050   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36051 fi
36052
36053 # Have a temporary directory for convenience.  Make it in the build tree
36054 # simply because there is no reason to put it here, and in addition,
36055 # creating and moving files from /tmp can sometimes cause problems.
36056 # Create a temporary directory, and hook for its removal unless debugging.
36057 $debug ||
36058 {
36059   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
36060   trap '{ (exit 1); exit 1; }' 1 2 13 15
36061 }
36062
36063 # Create a (secure) tmp directory for tmp files.
36064
36065 {
36066   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
36067   test -n "$tmp" && test -d "$tmp"
36068 }  ||
36069 {
36070   tmp=./confstat$$-$RANDOM
36071   (umask 077 && mkdir $tmp)
36072 } ||
36073 {
36074    echo "$me: cannot create a temporary directory in ." >&2
36075    { (exit 1); exit 1; }
36076 }
36077
36078 _ACEOF
36079
36080 cat >>$CONFIG_STATUS <<_ACEOF
36081
36082 #
36083 # CONFIG_FILES section.
36084 #
36085
36086 # No need to generate the scripts if there are no CONFIG_FILES.
36087 # This happens for instance when ./config.status config.h
36088 if test -n "\$CONFIG_FILES"; then
36089   # Protect against being on the right side of a sed subst in config.status.
36090   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
36091    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
36092 s,@SHELL@,$SHELL,;t t
36093 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
36094 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
36095 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
36096 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
36097 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
36098 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
36099 s,@exec_prefix@,$exec_prefix,;t t
36100 s,@prefix@,$prefix,;t t
36101 s,@program_transform_name@,$program_transform_name,;t t
36102 s,@bindir@,$bindir,;t t
36103 s,@sbindir@,$sbindir,;t t
36104 s,@libexecdir@,$libexecdir,;t t
36105 s,@datadir@,$datadir,;t t
36106 s,@sysconfdir@,$sysconfdir,;t t
36107 s,@sharedstatedir@,$sharedstatedir,;t t
36108 s,@localstatedir@,$localstatedir,;t t
36109 s,@libdir@,$libdir,;t t
36110 s,@includedir@,$includedir,;t t
36111 s,@oldincludedir@,$oldincludedir,;t t
36112 s,@infodir@,$infodir,;t t
36113 s,@mandir@,$mandir,;t t
36114 s,@build_alias@,$build_alias,;t t
36115 s,@host_alias@,$host_alias,;t t
36116 s,@target_alias@,$target_alias,;t t
36117 s,@DEFS@,$DEFS,;t t
36118 s,@ECHO_C@,$ECHO_C,;t t
36119 s,@ECHO_N@,$ECHO_N,;t t
36120 s,@ECHO_T@,$ECHO_T,;t t
36121 s,@LIBS@,$LIBS,;t t
36122 s,@build@,$build,;t t
36123 s,@build_cpu@,$build_cpu,;t t
36124 s,@build_vendor@,$build_vendor,;t t
36125 s,@build_os@,$build_os,;t t
36126 s,@host@,$host,;t t
36127 s,@host_cpu@,$host_cpu,;t t
36128 s,@host_vendor@,$host_vendor,;t t
36129 s,@host_os@,$host_os,;t t
36130 s,@target@,$target,;t t
36131 s,@target_cpu@,$target_cpu,;t t
36132 s,@target_vendor@,$target_vendor,;t t
36133 s,@target_os@,$target_os,;t t
36134 s,@CC@,$CC,;t t
36135 s,@CFLAGS@,$CFLAGS,;t t
36136 s,@LDFLAGS@,$LDFLAGS,;t t
36137 s,@CPPFLAGS@,$CPPFLAGS,;t t
36138 s,@ac_ct_CC@,$ac_ct_CC,;t t
36139 s,@EXEEXT@,$EXEEXT,;t t
36140 s,@OBJEXT@,$OBJEXT,;t t
36141 s,@CPP@,$CPP,;t t
36142 s,@EGREP@,$EGREP,;t t
36143 s,@CXX@,$CXX,;t t
36144 s,@CXXFLAGS@,$CXXFLAGS,;t t
36145 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
36146 s,@RANLIB@,$RANLIB,;t t
36147 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
36148 s,@AR@,$AR,;t t
36149 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
36150 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
36151 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
36152 s,@STRIP@,$STRIP,;t t
36153 s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
36154 s,@LN_S@,$LN_S,;t t
36155 s,@CXXCPP@,$CXXCPP,;t t
36156 s,@subdirs@,$subdirs,;t t
36157 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
36158 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
36159 s,@GTK_LIBS@,$GTK_LIBS,;t t
36160 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
36161 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
36162 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
36163 s,@X_CFLAGS@,$X_CFLAGS,;t t
36164 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
36165 s,@X_LIBS@,$X_LIBS,;t t
36166 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
36167 s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
36168 s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
36169 s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
36170 s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
36171 s,@RESCOMP@,$RESCOMP,;t t
36172 s,@DEREZ@,$DEREZ,;t t
36173 s,@SETFILE@,$SETFILE,;t t
36174 s,@LIBICONV@,$LIBICONV,;t t
36175 s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
36176 s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
36177 s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
36178 s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
36179 s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
36180 s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
36181 s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
36182 s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
36183 s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
36184 s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
36185 s,@VENDOR@,$VENDOR,;t t
36186 s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
36187 s,@WXUNIV@,$WXUNIV,;t t
36188 s,@MONOLITHIC@,$MONOLITHIC,;t t
36189 s,@EXTRALIBS@,$EXTRALIBS,;t t
36190 s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
36191 s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
36192 s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
36193 s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
36194 s,@UNICODE@,$UNICODE,;t t
36195 s,@BUILD@,$BUILD,;t t
36196 s,@DEBUG_INFO@,$DEBUG_INFO,;t t
36197 s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
36198 s,@SHARED@,$SHARED,;t t
36199 s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
36200 s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
36201 s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
36202 s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
36203 s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
36204 s,@SET_MAKE@,$SET_MAKE,;t t
36205 s,@MAKE_SET@,$MAKE_SET,;t t
36206 s,@INSTALL_DIR@,$INSTALL_DIR,;t t
36207 s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
36208 s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
36209 s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
36210 s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
36211 s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
36212 s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
36213 s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
36214 s,@SO_SUFFIX@,$SO_SUFFIX,;t t
36215 s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
36216 s,@LIBPREFIX@,$LIBPREFIX,;t t
36217 s,@DLLPREFIX@,$DLLPREFIX,;t t
36218 s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
36219 s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
36220 s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
36221 s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
36222 s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
36223 s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
36224 s,@PIC_FLAG@,$PIC_FLAG,;t t
36225 s,@USE_SOVERSION@,$USE_SOVERSION,;t t
36226 s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
36227 s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
36228 s,@USE_MACVERSION@,$USE_MACVERSION,;t t
36229 s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
36230 s,@SONAME_FLAG@,$SONAME_FLAG,;t t
36231 s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
36232 s,@GCC_PCH@,$GCC_PCH,;t t
36233 s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
36234 s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
36235 s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
36236 s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
36237 s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
36238 s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
36239 s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
36240 s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
36241 s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
36242 s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
36243 s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
36244 s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
36245 s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
36246 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
36247 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
36248 s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
36249 s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
36250 s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
36251 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
36252 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
36253 s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
36254 s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
36255 s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
36256 s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
36257 s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
36258 s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
36259 s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
36260 s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
36261 s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
36262 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
36263 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
36264 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
36265 s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
36266 s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
36267 s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
36268 s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
36269 s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
36270 s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
36271 s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
36272 s,@COND_SHARED_0@,$COND_SHARED_0,;t t
36273 s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
36274 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
36275 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
36276 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
36277 s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
36278 s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
36279 s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
36280 s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
36281 s,@COND_SHARED_1@,$COND_SHARED_1,;t t
36282 s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
36283 s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
36284 s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
36285 s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
36286 s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
36287 s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
36288 s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
36289 s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
36290 s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
36291 s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
36292 s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
36293 s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
36294 s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
36295 s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
36296 s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
36297 s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
36298 s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
36299 s,@COND_TOOLKIT_OS2@,$COND_TOOLKIT_OS2,;t t
36300 s,@COND_TOOLKIT_OS2_USE_GUI_1@,$COND_TOOLKIT_OS2_USE_GUI_1,;t t
36301 s,@COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0,;t t
36302 s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
36303 s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
36304 s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
36305 s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
36306 s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
36307 s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
36308 s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
36309 s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
36310 s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
36311 s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
36312 s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
36313 s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
36314 s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
36315 s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
36316 s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
36317 s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
36318 s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
36319 s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
36320 s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
36321 s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
36322 s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
36323 s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
36324 s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
36325 s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
36326 s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
36327 s,@PATH_IFS@,$PATH_IFS,;t t
36328 s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
36329 s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
36330 s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
36331 s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
36332 s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
36333 s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
36334 s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
36335 s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
36336 s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
36337 s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
36338 s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
36339 s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
36340 s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
36341 s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
36342 s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
36343 s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
36344 s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
36345 s,@WX_ALL@,$WX_ALL,;t t
36346 s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
36347 s,@SHARED_LD@,$SHARED_LD,;t t
36348 s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
36349 s,@STATIC_FLAG@,$STATIC_FLAG,;t t
36350 s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
36351 s,@USE_GUI@,$USE_GUI,;t t
36352 s,@AFMINSTALL@,$AFMINSTALL,;t t
36353 s,@WIN32INSTALL@,$WIN32INSTALL,;t t
36354 s,@TOOLKIT@,$TOOLKIT,;t t
36355 s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
36356 s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
36357 s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
36358 s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
36359 s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
36360 s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
36361 s,@cross_compiling@,$cross_compiling,;t t
36362 s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
36363 s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
36364 s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
36365 s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
36366 s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
36367 s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
36368 s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
36369 s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
36370 s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
36371 s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
36372 s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
36373 s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
36374 s,@ALL_HEADERS@,$ALL_HEADERS,;t t
36375 s,@ALL_SOURCES@,$ALL_SOURCES,;t t
36376 s,@GUIDIST@,$GUIDIST,;t t
36377 s,@PORT_FILES@,$PORT_FILES,;t t
36378 s,@DISTDIR@,$DISTDIR,;t t
36379 s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
36380 s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
36381 s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
36382 s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
36383 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
36384 s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
36385 s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
36386 s,@RESFLAGS@,$RESFLAGS,;t t
36387 s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
36388 s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
36389 s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
36390 s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t
36391 s,@LIBWXMACRES@,$LIBWXMACRES,;t t
36392 s,@MACRESCOMP@,$MACRESCOMP,;t t
36393 s,@MACSETFILE@,$MACSETFILE,;t t
36394 s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
36395 s,@GCC@,$GCC,;t t
36396 s,@DLLTOOL@,$DLLTOOL,;t t
36397 s,@AS@,$AS,;t t
36398 s,@NM@,$NM,;t t
36399 s,@LD@,$LD,;t t
36400 s,@MAKEINFO@,$MAKEINFO,;t t
36401 s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
36402 s,@LIBOBJS@,$LIBOBJS,;t t
36403 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
36404 CEOF
36405
36406 _ACEOF
36407
36408   cat >>$CONFIG_STATUS <<\_ACEOF
36409   # Split the substitutions into bite-sized pieces for seds with
36410   # small command number limits, like on Digital OSF/1 and HP-UX.
36411   ac_max_sed_lines=48
36412   ac_sed_frag=1 # Number of current file.
36413   ac_beg=1 # First line for current file.
36414   ac_end=$ac_max_sed_lines # Line after last line for current file.
36415   ac_more_lines=:
36416   ac_sed_cmds=
36417   while $ac_more_lines; do
36418     if test $ac_beg -gt 1; then
36419       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
36420     else
36421       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
36422     fi
36423     if test ! -s $tmp/subs.frag; then
36424       ac_more_lines=false
36425     else
36426       # The purpose of the label and of the branching condition is to
36427       # speed up the sed processing (if there are no `@' at all, there
36428       # is no need to browse any of the substitutions).
36429       # These are the two extra sed commands mentioned above.
36430       (echo ':t
36431   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
36432       if test -z "$ac_sed_cmds"; then
36433         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
36434       else
36435         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
36436       fi
36437       ac_sed_frag=`expr $ac_sed_frag + 1`
36438       ac_beg=$ac_end
36439       ac_end=`expr $ac_end + $ac_max_sed_lines`
36440     fi
36441   done
36442   if test -z "$ac_sed_cmds"; then
36443     ac_sed_cmds=cat
36444   fi
36445 fi # test -n "$CONFIG_FILES"
36446
36447 _ACEOF
36448 cat >>$CONFIG_STATUS <<\_ACEOF
36449 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
36450   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
36451   case $ac_file in
36452   - | *:- | *:-:* ) # input from stdin
36453         cat >$tmp/stdin
36454         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36455         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36456   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36457         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36458   * )   ac_file_in=$ac_file.in ;;
36459   esac
36460
36461   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
36462   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
36463 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36464          X"$ac_file" : 'X\(//\)[^/]' \| \
36465          X"$ac_file" : 'X\(//\)$' \| \
36466          X"$ac_file" : 'X\(/\)' \| \
36467          .     : '\(.\)' 2>/dev/null ||
36468 echo X"$ac_file" |
36469     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36470           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36471           /^X\(\/\/\)$/{ s//\1/; q; }
36472           /^X\(\/\).*/{ s//\1/; q; }
36473           s/.*/./; q'`
36474   { if $as_mkdir_p; then
36475     mkdir -p "$ac_dir"
36476   else
36477     as_dir="$ac_dir"
36478     as_dirs=
36479     while test ! -d "$as_dir"; do
36480       as_dirs="$as_dir $as_dirs"
36481       as_dir=`(dirname "$as_dir") 2>/dev/null ||
36482 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36483          X"$as_dir" : 'X\(//\)[^/]' \| \
36484          X"$as_dir" : 'X\(//\)$' \| \
36485          X"$as_dir" : 'X\(/\)' \| \
36486          .     : '\(.\)' 2>/dev/null ||
36487 echo X"$as_dir" |
36488     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36489           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36490           /^X\(\/\/\)$/{ s//\1/; q; }
36491           /^X\(\/\).*/{ s//\1/; q; }
36492           s/.*/./; q'`
36493     done
36494     test ! -n "$as_dirs" || mkdir $as_dirs
36495   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36496 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36497    { (exit 1); exit 1; }; }; }
36498
36499   ac_builddir=.
36500
36501 if test "$ac_dir" != .; then
36502   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36503   # A "../" for each directory in $ac_dir_suffix.
36504   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36505 else
36506   ac_dir_suffix= ac_top_builddir=
36507 fi
36508
36509 case $srcdir in
36510   .)  # No --srcdir option.  We are building in place.
36511     ac_srcdir=.
36512     if test -z "$ac_top_builddir"; then
36513        ac_top_srcdir=.
36514     else
36515        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
36516     fi ;;
36517   [\\/]* | ?:[\\/]* )  # Absolute path.
36518     ac_srcdir=$srcdir$ac_dir_suffix;
36519     ac_top_srcdir=$srcdir ;;
36520   *) # Relative path.
36521     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36522     ac_top_srcdir=$ac_top_builddir$srcdir ;;
36523 esac
36524 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
36525 # absolute.
36526 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36527 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
36528 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
36529 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
36530
36531
36532   case $INSTALL in
36533   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36534   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
36535   esac
36536
36537   if test x"$ac_file" != x-; then
36538     { echo "$as_me:$LINENO: creating $ac_file" >&5
36539 echo "$as_me: creating $ac_file" >&6;}
36540     rm -f "$ac_file"
36541   fi
36542   # Let's still pretend it is `configure' which instantiates (i.e., don't
36543   # use $as_me), people would be surprised to read:
36544   #    /* config.h.  Generated by config.status.  */
36545   if test x"$ac_file" = x-; then
36546     configure_input=
36547   else
36548     configure_input="$ac_file.  "
36549   fi
36550   configure_input=$configure_input"Generated from `echo $ac_file_in |
36551                                      sed 's,.*/,,'` by configure."
36552
36553   # First look for the input files in the build tree, otherwise in the
36554   # src tree.
36555   ac_file_inputs=`IFS=:
36556     for f in $ac_file_in; do
36557       case $f in
36558       -) echo $tmp/stdin ;;
36559       [\\/$]*)
36560          # Absolute (can't be DOS-style, as IFS=:)
36561          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36562 echo "$as_me: error: cannot find input file: $f" >&2;}
36563    { (exit 1); exit 1; }; }
36564          echo $f;;
36565       *) # Relative
36566          if test -f "$f"; then
36567            # Build tree
36568            echo $f
36569          elif test -f "$srcdir/$f"; then
36570            # Source tree
36571            echo $srcdir/$f
36572          else
36573            # /dev/null tree
36574            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36575 echo "$as_me: error: cannot find input file: $f" >&2;}
36576    { (exit 1); exit 1; }; }
36577          fi;;
36578       esac
36579     done` || { (exit 1); exit 1; }
36580 _ACEOF
36581 cat >>$CONFIG_STATUS <<_ACEOF
36582   sed "$ac_vpsub
36583 $extrasub
36584 _ACEOF
36585 cat >>$CONFIG_STATUS <<\_ACEOF
36586 :t
36587 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36588 s,@configure_input@,$configure_input,;t t
36589 s,@srcdir@,$ac_srcdir,;t t
36590 s,@abs_srcdir@,$ac_abs_srcdir,;t t
36591 s,@top_srcdir@,$ac_top_srcdir,;t t
36592 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
36593 s,@builddir@,$ac_builddir,;t t
36594 s,@abs_builddir@,$ac_abs_builddir,;t t
36595 s,@top_builddir@,$ac_top_builddir,;t t
36596 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
36597 s,@INSTALL@,$ac_INSTALL,;t t
36598 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
36599   rm -f $tmp/stdin
36600   if test x"$ac_file" != x-; then
36601     mv $tmp/out $ac_file
36602   else
36603     cat $tmp/out
36604     rm -f $tmp/out
36605   fi
36606
36607 done
36608 _ACEOF
36609 cat >>$CONFIG_STATUS <<\_ACEOF
36610
36611 #
36612 # CONFIG_HEADER section.
36613 #
36614
36615 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
36616 # NAME is the cpp macro being defined and VALUE is the value it is being given.
36617 #
36618 # ac_d sets the value in "#define NAME VALUE" lines.
36619 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
36620 ac_dB='[        ].*$,\1#\2'
36621 ac_dC=' '
36622 ac_dD=',;t'
36623 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
36624 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
36625 ac_uB='$,\1#\2define\3'
36626 ac_uC=' '
36627 ac_uD=',;t'
36628
36629 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
36630   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
36631   case $ac_file in
36632   - | *:- | *:-:* ) # input from stdin
36633         cat >$tmp/stdin
36634         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36635         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36636   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36637         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36638   * )   ac_file_in=$ac_file.in ;;
36639   esac
36640
36641   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
36642 echo "$as_me: creating $ac_file" >&6;}
36643
36644   # First look for the input files in the build tree, otherwise in the
36645   # src tree.
36646   ac_file_inputs=`IFS=:
36647     for f in $ac_file_in; do
36648       case $f in
36649       -) echo $tmp/stdin ;;
36650       [\\/$]*)
36651          # Absolute (can't be DOS-style, as IFS=:)
36652          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36653 echo "$as_me: error: cannot find input file: $f" >&2;}
36654    { (exit 1); exit 1; }; }
36655          echo $f;;
36656       *) # Relative
36657          if test -f "$f"; then
36658            # Build tree
36659            echo $f
36660          elif test -f "$srcdir/$f"; then
36661            # Source tree
36662            echo $srcdir/$f
36663          else
36664            # /dev/null tree
36665            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36666 echo "$as_me: error: cannot find input file: $f" >&2;}
36667    { (exit 1); exit 1; }; }
36668          fi;;
36669       esac
36670     done` || { (exit 1); exit 1; }
36671   # Remove the trailing spaces.
36672   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
36673
36674 _ACEOF
36675
36676 # Transform confdefs.h into two sed scripts, `conftest.defines' and
36677 # `conftest.undefs', that substitutes the proper values into
36678 # config.h.in to produce config.h.  The first handles `#define'
36679 # templates, and the second `#undef' templates.
36680 # And first: Protect against being on the right side of a sed subst in
36681 # config.status.  Protect against being in an unquoted here document
36682 # in config.status.
36683 rm -f conftest.defines conftest.undefs
36684 # Using a here document instead of a string reduces the quoting nightmare.
36685 # Putting comments in sed scripts is not portable.
36686 #
36687 # `end' is used to avoid that the second main sed command (meant for
36688 # 0-ary CPP macros) applies to n-ary macro definitions.
36689 # See the Autoconf documentation for `clear'.
36690 cat >confdef2sed.sed <<\_ACEOF
36691 s/[\\&,]/\\&/g
36692 s,[\\$`],\\&,g
36693 t clear
36694 : clear
36695 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
36696 t end
36697 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
36698 : end
36699 _ACEOF
36700 # If some macros were called several times there might be several times
36701 # the same #defines, which is useless.  Nevertheless, we may not want to
36702 # sort them, since we want the *last* AC-DEFINE to be honored.
36703 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
36704 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
36705 rm -f confdef2sed.sed
36706
36707 # This sed command replaces #undef with comments.  This is necessary, for
36708 # example, in the case of _POSIX_SOURCE, which is predefined and required
36709 # on some systems where configure will not decide to define it.
36710 cat >>conftest.undefs <<\_ACEOF
36711 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
36712 _ACEOF
36713
36714 # Break up conftest.defines because some shells have a limit on the size
36715 # of here documents, and old seds have small limits too (100 cmds).
36716 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
36717 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
36718 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
36719 echo '  :' >>$CONFIG_STATUS
36720 rm -f conftest.tail
36721 while grep . conftest.defines >/dev/null
36722 do
36723   # Write a limited-size here document to $tmp/defines.sed.
36724   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
36725   # Speed up: don't consider the non `#define' lines.
36726   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
36727   # Work around the forget-to-reset-the-flag bug.
36728   echo 't clr' >>$CONFIG_STATUS
36729   echo ': clr' >>$CONFIG_STATUS
36730   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
36731   echo 'CEOF
36732   sed -f $tmp/defines.sed $tmp/in >$tmp/out
36733   rm -f $tmp/in
36734   mv $tmp/out $tmp/in
36735 ' >>$CONFIG_STATUS
36736   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
36737   rm -f conftest.defines
36738   mv conftest.tail conftest.defines
36739 done
36740 rm -f conftest.defines
36741 echo '  fi # grep' >>$CONFIG_STATUS
36742 echo >>$CONFIG_STATUS
36743
36744 # Break up conftest.undefs because some shells have a limit on the size
36745 # of here documents, and old seds have small limits too (100 cmds).
36746 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
36747 rm -f conftest.tail
36748 while grep . conftest.undefs >/dev/null
36749 do
36750   # Write a limited-size here document to $tmp/undefs.sed.
36751   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
36752   # Speed up: don't consider the non `#undef'
36753   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
36754   # Work around the forget-to-reset-the-flag bug.
36755   echo 't clr' >>$CONFIG_STATUS
36756   echo ': clr' >>$CONFIG_STATUS
36757   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
36758   echo 'CEOF
36759   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
36760   rm -f $tmp/in
36761   mv $tmp/out $tmp/in
36762 ' >>$CONFIG_STATUS
36763   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
36764   rm -f conftest.undefs
36765   mv conftest.tail conftest.undefs
36766 done
36767 rm -f conftest.undefs
36768
36769 cat >>$CONFIG_STATUS <<\_ACEOF
36770   # Let's still pretend it is `configure' which instantiates (i.e., don't
36771   # use $as_me), people would be surprised to read:
36772   #    /* config.h.  Generated by config.status.  */
36773   if test x"$ac_file" = x-; then
36774     echo "/* Generated by configure.  */" >$tmp/config.h
36775   else
36776     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
36777   fi
36778   cat $tmp/in >>$tmp/config.h
36779   rm -f $tmp/in
36780   if test x"$ac_file" != x-; then
36781     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
36782       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36783 echo "$as_me: $ac_file is unchanged" >&6;}
36784     else
36785       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
36786 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36787          X"$ac_file" : 'X\(//\)[^/]' \| \
36788          X"$ac_file" : 'X\(//\)$' \| \
36789          X"$ac_file" : 'X\(/\)' \| \
36790          .     : '\(.\)' 2>/dev/null ||
36791 echo X"$ac_file" |
36792     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36793           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36794           /^X\(\/\/\)$/{ s//\1/; q; }
36795           /^X\(\/\).*/{ s//\1/; q; }
36796           s/.*/./; q'`
36797       { if $as_mkdir_p; then
36798     mkdir -p "$ac_dir"
36799   else
36800     as_dir="$ac_dir"
36801     as_dirs=
36802     while test ! -d "$as_dir"; do
36803       as_dirs="$as_dir $as_dirs"
36804       as_dir=`(dirname "$as_dir") 2>/dev/null ||
36805 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36806          X"$as_dir" : 'X\(//\)[^/]' \| \
36807          X"$as_dir" : 'X\(//\)$' \| \
36808          X"$as_dir" : 'X\(/\)' \| \
36809          .     : '\(.\)' 2>/dev/null ||
36810 echo X"$as_dir" |
36811     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36812           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36813           /^X\(\/\/\)$/{ s//\1/; q; }
36814           /^X\(\/\).*/{ s//\1/; q; }
36815           s/.*/./; q'`
36816     done
36817     test ! -n "$as_dirs" || mkdir $as_dirs
36818   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36819 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36820    { (exit 1); exit 1; }; }; }
36821
36822       rm -f $ac_file
36823       mv $tmp/config.h $ac_file
36824     fi
36825   else
36826     cat $tmp/config.h
36827     rm -f $tmp/config.h
36828   fi
36829 done
36830 _ACEOF
36831 cat >>$CONFIG_STATUS <<\_ACEOF
36832
36833 #
36834 # CONFIG_COMMANDS section.
36835 #
36836 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
36837   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
36838   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
36839   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
36840 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36841          X"$ac_dest" : 'X\(//\)[^/]' \| \
36842          X"$ac_dest" : 'X\(//\)$' \| \
36843          X"$ac_dest" : 'X\(/\)' \| \
36844          .     : '\(.\)' 2>/dev/null ||
36845 echo X"$ac_dest" |
36846     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36847           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36848           /^X\(\/\/\)$/{ s//\1/; q; }
36849           /^X\(\/\).*/{ s//\1/; q; }
36850           s/.*/./; q'`
36851   ac_builddir=.
36852
36853 if test "$ac_dir" != .; then
36854   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36855   # A "../" for each directory in $ac_dir_suffix.
36856   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36857 else
36858   ac_dir_suffix= ac_top_builddir=
36859 fi
36860
36861 case $srcdir in
36862   .)  # No --srcdir option.  We are building in place.
36863     ac_srcdir=.
36864     if test -z "$ac_top_builddir"; then
36865        ac_top_srcdir=.
36866     else
36867        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
36868     fi ;;
36869   [\\/]* | ?:[\\/]* )  # Absolute path.
36870     ac_srcdir=$srcdir$ac_dir_suffix;
36871     ac_top_srcdir=$srcdir ;;
36872   *) # Relative path.
36873     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36874     ac_top_srcdir=$ac_top_builddir$srcdir ;;
36875 esac
36876 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
36877 # absolute.
36878 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36879 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
36880 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
36881 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
36882
36883
36884   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
36885 echo "$as_me: executing $ac_dest commands" >&6;}
36886   case $ac_dest in
36887     default )
36888                                                                                                 if test ! -h wx-config; then
36889                 chmod +x wx-config
36890                 mv wx-config wx${TOOLCHAIN_NAME}-config
36891                 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
36892             fi
36893
36894             if test ! -d lib; then
36895               mkdir lib
36896             fi
36897             if test ! -d lib/wx; then
36898               mkdir lib/wx
36899             fi
36900             if test ! -d lib/wx/include; then
36901               mkdir lib/wx/include
36902             fi
36903             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
36904               mkdir lib/wx/include/${TOOLCHAIN_NAME}
36905             fi
36906             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
36907               mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
36908             fi
36909             if test -f setup.h; then
36910               mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
36911             fi
36912            ;;
36913   esac
36914 done
36915 _ACEOF
36916
36917 cat >>$CONFIG_STATUS <<\_ACEOF
36918
36919 { (exit 0); exit 0; }
36920 _ACEOF
36921 chmod +x $CONFIG_STATUS
36922 ac_clean_files=$ac_clean_files_save
36923
36924
36925 # configure is writing to config.log, and then calls config.status.
36926 # config.status does its own redirection, appending to config.log.
36927 # Unfortunately, on DOS this fails, as config.log is still kept open
36928 # by configure, so config.status won't be able to write to it; its
36929 # output is simply discarded.  So we exec the FD to /dev/null,
36930 # effectively closing config.log, so it can be properly (re)opened and
36931 # appended to by config.status.  When coming back to configure, we
36932 # need to make the FD available again.
36933 if test "$no_create" != yes; then
36934   ac_cs_success=:
36935   ac_config_status_args=
36936   test "$silent" = yes &&
36937     ac_config_status_args="$ac_config_status_args --quiet"
36938   exec 5>/dev/null
36939   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36940   exec 5>>config.log
36941   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36942   # would make configure fail if this is the last instruction.
36943   $ac_cs_success || { (exit 1); exit 1; }
36944 fi
36945
36946 #
36947 # CONFIG_SUBDIRS section.
36948 #
36949 if test "$no_recursion" != yes; then
36950
36951   # Remove --cache-file and --srcdir arguments so they do not pile up.
36952   ac_sub_configure_args=
36953   ac_prev=
36954   for ac_arg in $ac_configure_args; do
36955     if test -n "$ac_prev"; then
36956       ac_prev=
36957       continue
36958     fi
36959     case $ac_arg in
36960     -cache-file | --cache-file | --cache-fil | --cache-fi \
36961     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36962       ac_prev=cache_file ;;
36963     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36964     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36965     | --c=*)
36966       ;;
36967     --config-cache | -C)
36968       ;;
36969     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36970       ac_prev=srcdir ;;
36971     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36972       ;;
36973     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36974       ac_prev=prefix ;;
36975     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36976       ;;
36977     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
36978     esac
36979   done
36980
36981   # Always prepend --prefix to ensure using the same prefix
36982   # in subdir configurations.
36983   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
36984
36985   ac_popdir=`pwd`
36986   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36987
36988     # Do not complain, so a configure script can configure whichever
36989     # parts of a large source tree are present.
36990     test -d $srcdir/$ac_dir || continue
36991
36992     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
36993 echo "$as_me: configuring in $ac_dir" >&6;}
36994     { if $as_mkdir_p; then
36995     mkdir -p "$ac_dir"
36996   else
36997     as_dir="$ac_dir"
36998     as_dirs=
36999     while test ! -d "$as_dir"; do
37000       as_dirs="$as_dir $as_dirs"
37001       as_dir=`(dirname "$as_dir") 2>/dev/null ||
37002 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37003          X"$as_dir" : 'X\(//\)[^/]' \| \
37004          X"$as_dir" : 'X\(//\)$' \| \
37005          X"$as_dir" : 'X\(/\)' \| \
37006          .     : '\(.\)' 2>/dev/null ||
37007 echo X"$as_dir" |
37008     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37009           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37010           /^X\(\/\/\)$/{ s//\1/; q; }
37011           /^X\(\/\).*/{ s//\1/; q; }
37012           s/.*/./; q'`
37013     done
37014     test ! -n "$as_dirs" || mkdir $as_dirs
37015   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
37016 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
37017    { (exit 1); exit 1; }; }; }
37018
37019     ac_builddir=.
37020
37021 if test "$ac_dir" != .; then
37022   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
37023   # A "../" for each directory in $ac_dir_suffix.
37024   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
37025 else
37026   ac_dir_suffix= ac_top_builddir=
37027 fi
37028
37029 case $srcdir in
37030   .)  # No --srcdir option.  We are building in place.
37031     ac_srcdir=.
37032     if test -z "$ac_top_builddir"; then
37033        ac_top_srcdir=.
37034     else
37035        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
37036     fi ;;
37037   [\\/]* | ?:[\\/]* )  # Absolute path.
37038     ac_srcdir=$srcdir$ac_dir_suffix;
37039     ac_top_srcdir=$srcdir ;;
37040   *) # Relative path.
37041     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
37042     ac_top_srcdir=$ac_top_builddir$srcdir ;;
37043 esac
37044 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
37045 # absolute.
37046 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
37047 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
37048 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
37049 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
37050
37051
37052     cd $ac_dir
37053
37054     # Check for guested configure; otherwise get Cygnus style configure.
37055     if test -f $ac_srcdir/configure.gnu; then
37056       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
37057     elif test -f $ac_srcdir/configure; then
37058       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
37059     elif test -f $ac_srcdir/configure.in; then
37060       ac_sub_configure=$ac_configure
37061     else
37062       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
37063 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
37064       ac_sub_configure=
37065     fi
37066
37067     # The recursion is here.
37068     if test -n "$ac_sub_configure"; then
37069       # Make the cache file name correct relative to the subdirectory.
37070       case $cache_file in
37071       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
37072       *) # Relative path.
37073         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
37074       esac
37075
37076       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
37077 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
37078       # The eval makes quoting arguments work.
37079       eval $ac_sub_configure $ac_sub_configure_args \
37080            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
37081         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
37082 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
37083    { (exit 1); exit 1; }; }
37084     fi
37085
37086     cd $ac_popdir
37087   done
37088 fi
37089
37090
37091 echo
37092 echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
37093 echo ""
37094 echo "  Which GUI toolkit should wxWindows use?                 ${TOOLKIT:-base only}"
37095 echo "  Should wxWindows be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
37096
37097 echo "  Should wxWindows be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
37098 echo "  Should wxWindows be linked as a shared library?         ${wxUSE_SHARED:-no}"
37099 echo "  Should wxWindows be compiled in Unicode mode?           ${wxUSE_UNICODE:-no}"
37100
37101 echo "  What level of wxWindows compatibility should be enabled?"
37102 echo "                                       wxWindows 2.2      ${WXWIN_COMPATIBILITY_2_2:-no}"
37103 echo "                                       wxWindows 2.4      ${WXWIN_COMPATIBILITY_2_4:-yes}"
37104
37105 echo "  Which libraries should wxWindows use?"
37106 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
37107 echo "                                       png                ${wxUSE_LIBPNG-none}"
37108 echo "                                       regex              ${wxUSE_REGEX}"
37109 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
37110 echo "                                       zlib               ${wxUSE_ZLIB}"
37111 echo "                                       odbc               ${wxUSE_ODBC}"
37112 echo "                                       expat              ${wxUSE_EXPAT}"
37113
37114 echo ""
37115