ODBC library is built when wxUSE_GUI=0, too
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.57 for wxWindows 2.5.0.
5 #
6 # Report bugs to <wx-dev@lists.wxwindows.org>.
7 #
8 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9 # Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26
27 # Support unset when possible.
28 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
29   as_unset=unset
30 else
31   as_unset=false
32 fi
33
34
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
40
41 # NLS nuisances.
42 for as_var in \
43   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45   LC_TELEPHONE LC_TIME
46 do
47   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
48     eval $as_var=C; export $as_var
49   else
50     $as_unset $as_var
51   fi
52 done
53
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56   as_expr=expr
57 else
58   as_expr=false
59 fi
60
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62   as_basename=basename
63 else
64   as_basename=false
65 fi
66
67
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71          X"$0" : 'X\(//\)$' \| \
72          X"$0" : 'X\(/\)$' \| \
73          .     : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76           /^X\/\(\/\/\)$/{ s//\1/; q; }
77           /^X\/\(\/\).*/{ s//\1/; q; }
78           s/.*/./; q'`
79
80
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91   echo "#! /bin/sh" >conf$$.sh
92   echo  "exit 0"   >>conf$$.sh
93   chmod +x conf$$.sh
94   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95     PATH_SEPARATOR=';'
96   else
97     PATH_SEPARATOR=:
98   fi
99   rm -f conf$$.sh
100 fi
101
102
103   as_lineno_1=$LINENO
104   as_lineno_2=$LINENO
105   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106   test "x$as_lineno_1" != "x$as_lineno_2" &&
107   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
108   # Find who we are.  Look in the path if we contain no path at all
109   # relative or not.
110   case $0 in
111     *[\\/]* ) as_myself=$0 ;;
112     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
114 do
115   IFS=$as_save_IFS
116   test -z "$as_dir" && as_dir=.
117   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
119
120        ;;
121   esac
122   # We did not find ourselves, most probably we were run as `sh COMMAND'
123   # in which case we are not to be found in the path.
124   if test "x$as_myself" = x; then
125     as_myself=$0
126   fi
127   if test ! -f "$as_myself"; then
128     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129    { (exit 1); exit 1; }; }
130   fi
131   case $CONFIG_SHELL in
132   '')
133     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 do
136   IFS=$as_save_IFS
137   test -z "$as_dir" && as_dir=.
138   for as_base in sh bash ksh sh5; do
139          case $as_dir in
140          /*)
141            if ("$as_dir/$as_base" -c '
142   as_lineno_1=$LINENO
143   as_lineno_2=$LINENO
144   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145   test "x$as_lineno_1" != "x$as_lineno_2" &&
146   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
147              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149              CONFIG_SHELL=$as_dir/$as_base
150              export CONFIG_SHELL
151              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152            fi;;
153          esac
154        done
155 done
156 ;;
157   esac
158
159   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160   # uniformly replaced by the line number.  The first 'sed' inserts a
161   # line-number line before each line; the second 'sed' does the real
162   # work.  The second script uses 'N' to pair each line-number line
163   # with the numbered line, and appends trailing '-' during
164   # substitution so that $LINENO is not a special case at line end.
165   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
167   sed '=' <$as_myself |
168     sed '
169       N
170       s,$,-,
171       : loop
172       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173       t loop
174       s,-$,,
175       s,^['$as_cr_digits']*\n,,
176     ' >$as_me.lineno &&
177   chmod +x $as_me.lineno ||
178     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179    { (exit 1); exit 1; }; }
180
181   # Don't try to exec as it changes $[0], causing all sort of problems
182   # (the dirname of $[0] is not the place where we might find the
183   # original and so on.  Autoconf is especially sensible to this).
184   . ./$as_me.lineno
185   # Exit status is that of the last command.
186   exit
187 }
188
189
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191   *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T='      ' ;;
193   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
196
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198   as_expr=expr
199 else
200   as_expr=false
201 fi
202
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206   # We could just check for DJGPP; but this test a) works b) is more generic
207   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208   if test -f conf$$.exe; then
209     # Don't use ln at all; we don't have any links
210     as_ln_s='cp -p'
211   else
212     as_ln_s='ln -s'
213   fi
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215   as_ln_s=ln
216 else
217   as_ln_s='cp -p'
218 fi
219 rm -f conf$$ conf$$.exe conf$$.file
220
221 if mkdir -p . 2>/dev/null; then
222   as_mkdir_p=:
223 else
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete.  It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='wxWindows'
271 PACKAGE_TARNAME='wxwindows'
272 PACKAGE_VERSION='2.5.0'
273 PACKAGE_STRING='wxWindows 2.5.0'
274 PACKAGE_BUGREPORT='wx-dev@lists.wxwindows.org'
275
276 ac_unique_file="wx-config.in"
277 # Factoring default headers for most tests.
278 ac_includes_default="\
279 #include <stdio.h>
280 #if HAVE_SYS_TYPES_H
281 # include <sys/types.h>
282 #endif
283 #if HAVE_SYS_STAT_H
284 # include <sys/stat.h>
285 #endif
286 #if STDC_HEADERS
287 # include <stdlib.h>
288 # include <stddef.h>
289 #else
290 # if HAVE_STDLIB_H
291 #  include <stdlib.h>
292 # endif
293 #endif
294 #if HAVE_STRING_H
295 # if !STDC_HEADERS && HAVE_MEMORY_H
296 #  include <memory.h>
297 # endif
298 # include <string.h>
299 #endif
300 #if HAVE_STRINGS_H
301 # include <strings.h>
302 #endif
303 #if HAVE_INTTYPES_H
304 # include <inttypes.h>
305 #else
306 # if HAVE_STDINT_H
307 #  include <stdint.h>
308 # endif
309 #endif
310 #if HAVE_UNISTD_H
311 # include <unistd.h>
312 #endif"
313
314 ac_subdirs_all="$ac_subdirs_all src/expat"
315 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE YACC LEX LEXLIB LEX_OUTPUT_ROOT LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV 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 SO_SUFFIX SO_SUFFIX_MODULE 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_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_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 LEX_STEM PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME_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-compat20       enable wxWindows 2.0 compatibility
889   --enable-compat22       enable wxWindows 2.2 compatibility
890   --disable-compat24      disable wxWindows 2.4 compatibility
891   --enable-rpath=DIR      output the rpath flag from wx-config
892   --enable-intl           use internationalization system
893   --enable-config         use wxConfig (and derived) classes
894   --enable-protocols      use wxProtocol and derived classes
895   --enable-ftp            use wxFTP (requires wxProtocol
896   --enable-http           use wxHTTP (requires wxProtocol
897   --enable-fileproto      use wxFileProto class (requires wxProtocol
898   --enable-sockets        use socket/network classes
899   --enable-ole            use OLE classes
900   --enable-dataobj        use data object classes
901   --enable-ipc            use interprocess communication (wxSocket etc.)
902   --enable-cmdline        use wxCmdLineParser class
903   --enable-datetime       use wxDateTime class
904   --enable-stopwatch      use wxStopWatch class
905   --enable-dialupman      use dialup network classes
906   --enable-apple_ieee     use the Apple IEEE codec
907   --enable-timer          use wxTimer class
908   --enable-wave           use wxWave class
909   --enable-fraction       use wxFraction class
910   --enable-dynlib         use wxLibrary class for DLL loading
911   --enable-dynamicloader  use (new) wxDynamicLibrary class
912   --enable-longlong       use wxLongLong class
913   --enable-geometry       use geometry class
914   --enable-log            use logging system
915   --enable-streams        use wxStream etc classes
916   --enable-file           use wxFile classes
917   --enable-ffile          use wxFFile classes
918   --enable-textbuf        use wxTextBuffer class
919   --enable-textfile       use wxTextFile class
920   --enable-fontmap        use font encodings conversion classes
921   --enable-unicode        compile wxString with Unicode support
922   --enable-mslu           use MS Layer for Unicode on Windows 9x (win32 only)
923   --enable-wxprintfv      use wxWindows implementation of vprintf()
924   --enable-std_iostreams  use standard C++ stream classes
925   --enable-filesystem     use virtual file systems classes
926   --enable-fs_inet        use virtual HTTP/FTP filesystems
927   --enable-fs_zip         use virtual ZIP filesystems
928   --enable-zipstream      use wxZipInputStream
929   --enable-catch_segvs    catch signals and pass them to wxApp::OnFatalException
930   --enable-snglinst       use wxSingleInstanceChecker class
931   --enable-mimetype       use wxMimeTypesManager
932   --enable-sysoptions     use wxSystemOptions
933   --enable-url            use wxURL class
934   --enable-protocol       use wxProtocol class
935   --enable-protocol-http  HTTP support in wxProtocol
936   --enable-protocol-ftp   FTP support in wxProtocol
937   --enable-protocol-file  FILE support in wxProtocol
938   --enable-threads        use threads
939   --enable-docview        use document view architecture
940   --enable-help           use help subsystem
941   --enable-mshtmlhelp     use MS HTML Help (win32)
942   --enable-html           use wxHTML sub-library
943   --enable-htmlhelp       use wxHTML-based help
944   --enable-constraints    use layout-constraints system
945   --enable-printarch      use printing architecture
946   --enable-mdi            use multiple document interface architecture
947   --enable-loggui         use standard GUI logger
948   --enable-logwin         use wxLogWindow
949   --enable-logdialog      use wxLogDialog
950   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
951   --enable-prologio       not available; see contrib
952   --enable-resources      not available; see contrib
953   --enable-clipboard      use wxClipboard class
954   --enable-dnd            use Drag'n'Drop classes
955   --enable-metafile       use win32 metafiles
956   --enable-controls       use all usual controls
957   --enable-accel          use accelerators
958   --enable-button         use wxButton class
959   --enable-bmpbutton      use wxBitmapButton class
960   --enable-calendar       use wxCalendarCtrl class
961   --enable-caret          use wxCaret class
962   --enable-checkbox       use wxCheckBox class
963   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
964   --enable-choice         use wxChoice class
965   --enable-combobox       use wxComboBox class
966   --enable-display        use wxDisplay class
967   --enable-gauge          use wxGauge class
968   --enable-grid           use wxGrid class
969   --enable-imaglist       use wxImageList class
970   --enable-listbox        use wxListBox class
971   --enable-listctrl       use wxListCtrl class
972   --enable-notebook       use wxNotebook class
973   --enable-radiobox       use wxRadioBox class
974   --enable-radiobtn       use wxRadioButton class
975   --enable-sash           use wxSashWindow class
976   --enable-scrollbar      use wxScrollBar class and scrollable windows
977   --enable-slider         use wxSlider class
978   --enable-spinbtn        use wxSpinButton class
979   --enable-spinctrl       use wxSpinCtrl class
980   --enable-splitter       use wxSplitterWindow class
981   --enable-statbmp        use wxStaticBitmap class
982   --enable-statbox        use wxStaticBox class
983   --enable-statline       use wxStaticLine class
984   --enable-stattext       use wxStaticText class
985   --enable-statusbar      use wxStatusBar class
986   --enable-tabdialog      use wxTabControl class
987   --enable-textctrl       use wxTextCtrl class
988   --enable-togglebtn      use wxToggleButton class
989   --enable-toolbar        use wxToolBar class
990   --enable-tbarnative     use native wxToolBar class
991   --enable-tbarsmpl       use wxToolBarSimple class
992   --enable-treectrl       use wxTreeCtrl class
993   --enable-tipwindow      use wxTipWindow class
994   --enable-popupwin       use wxPopUpWindow class
995   --enable-commondlg      use all common dialogs
996   --enable-choicedlg      use wxChoiceDialog
997   --enable-coldlg         use wxColourDialog
998   --enable-filedlg        use wxFileDialog
999   --enable-finddlg        use wxFindReplaceDialog
1000   --enable-fontdlg        use wxFontDialog
1001   --enable-dirdlg         use wxDirDialog
1002   --enable-msgdlg         use wxMessageDialog
1003   --enable-numberdlg      use wxNumberEntryDialog
1004   --enable-splash         use wxSplashScreen
1005   --enable-textdlg        use wxTextDialog
1006   --enable-tipdlg         use startup tips
1007   --enable-progressdlg    use wxProgressDialog
1008   --enable-wizarddlg      use wxWizard
1009   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1010   --enable-miniframe      use wxMiniFrame class
1011   --enable-tooltips       use wxToolTip class
1012   --enable-splines        use spline drawing code
1013   --enable-validators     use wxValidator and derived classes
1014   --enable-busyinfo       use wxBusyInfo
1015   --enable-joystick       use wxJoystick (Linux only)
1016   --enable-metafiles      use wxMetaFile (Windows only)
1017   --enable-dragimage      use wxDragImage
1018   --enable-accessibility  enable accessibility support
1019   --enable-palette        use wxPalette class
1020   --enable-image          use wxImage class
1021   --enable-gif            use gif images (GIF file format)
1022   --enable-pcx            use pcx images (PCX file format)
1023   --enable-iff            use iff images (IFF file format)
1024   --enable-pnm            use pnm images (PNM file format)
1025   --enable-xpm            use xpm images (XPM file format)
1026   --enable-icocur         use Windows ICO and CUR formats
1027   --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   ;;
1897
1898   powerpc-*-darwin* )
1899         USE_BSD=1
1900     USE_DARWIN=1
1901     SO_SUFFIX=dylib
1902     cat >>confdefs.h <<\_ACEOF
1903 #define __BSD__ 1
1904 _ACEOF
1905
1906     cat >>confdefs.h <<\_ACEOF
1907 #define __DARWIN__ 1
1908 _ACEOF
1909
1910     cat >>confdefs.h <<\_ACEOF
1911 #define __POWERPC__ 1
1912 _ACEOF
1913
1914     cat >>confdefs.h <<\_ACEOF
1915 #define TARGET_CARBON 1
1916 _ACEOF
1917
1918     DEFAULT_DEFAULT_wxUSE_MAC=1
1919   ;;
1920
1921   *-*-beos* )
1922         USE_BEOS=1
1923     cat >>confdefs.h <<\_ACEOF
1924 #define __BEOS__ 1
1925 _ACEOF
1926
1927   ;;
1928
1929   *)
1930     { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1931 echo "$as_me: error: unknown system type ${host}." >&2;}
1932    { (exit 1); exit 1; }; }
1933 esac
1934
1935
1936
1937
1938           wx_arg_cache_file="configarg.cache"
1939           echo "loading argument cache $wx_arg_cache_file"
1940           rm -f ${wx_arg_cache_file}.tmp
1941           touch ${wx_arg_cache_file}.tmp
1942           touch ${wx_arg_cache_file}
1943
1944
1945 DEBUG_CONFIGURE=0
1946 if test $DEBUG_CONFIGURE = 1; then
1947   DEFAULT_wxUSE_UNIVERSAL=no
1948   DEFAULT_wxUSE_STL=no
1949
1950   DEFAULT_wxUSE_NANOX=no
1951
1952   DEFAULT_wxUSE_THREADS=yes
1953
1954   DEFAULT_wxUSE_SHARED=yes
1955   DEFAULT_wxUSE_OPTIMISE=no
1956   DEFAULT_wxUSE_PROFILE=no
1957   DEFAULT_wxUSE_NO_DEPS=no
1958   DEFAULT_wxUSE_NO_RTTI=no
1959   DEFAULT_wxUSE_NO_EXCEPTIONS=no
1960   DEFAULT_wxUSE_PERMISSIVE=no
1961   DEFAULT_wxUSE_DEBUG_FLAG=yes
1962   DEFAULT_wxUSE_DEBUG_INFO=yes
1963   DEFAULT_wxUSE_DEBUG_GDB=yes
1964   DEFAULT_wxUSE_MEM_TRACING=no
1965   DEFAULT_wxUSE_DEBUG_CONTEXT=no
1966   DEFAULT_wxUSE_DMALLOC=no
1967   DEFAULT_wxUSE_APPLE_IEEE=no
1968
1969   DEFAULT_wxUSE_LOG=yes
1970   DEFAULT_wxUSE_LOGWINDOW=no
1971   DEFAULT_wxUSE_LOGGUI=no
1972   DEFAULT_wxUSE_LOGDIALOG=no
1973
1974   DEFAULT_wxUSE_GUI=yes
1975   DEFAULT_wxUSE_CONTROLS=no
1976
1977   DEFAULT_wxUSE_REGEX=no
1978   DEFAULT_wxUSE_XML=no
1979   DEFAULT_wxUSE_EXPAT=no
1980   DEFAULT_wxUSE_ZLIB=no
1981   DEFAULT_wxUSE_LIBPNG=no
1982   DEFAULT_wxUSE_LIBJPEG=no
1983   DEFAULT_wxUSE_LIBTIFF=no
1984   DEFAULT_wxUSE_ODBC=no
1985   DEFAULT_wxUSE_OPENGL=no
1986
1987   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1988   DEFAULT_wxUSE_SNGLINST_CHECKER=no
1989   DEFAULT_wxUSE_STD_IOSTREAM=no
1990   DEFAULT_wxUSE_CMDLINE_PARSER=no
1991   DEFAULT_wxUSE_DATETIME=no
1992   DEFAULT_wxUSE_TIMER=no
1993   DEFAULT_wxUSE_STOPWATCH=no
1994   DEFAULT_wxUSE_FILE=no
1995   DEFAULT_wxUSE_FFILE=no
1996   DEFAULT_wxUSE_TEXTBUFFER=no
1997   DEFAULT_wxUSE_TEXTFILE=no
1998   DEFAULT_wxUSE_WAVE=no
1999   DEFAULT_wxUSE_INTL=no
2000   DEFAULT_wxUSE_CONFIG=no
2001   DEFAULT_wxUSE_FONTMAP=no
2002   DEFAULT_wxUSE_STREAMS=no
2003   DEFAULT_wxUSE_SOCKETS=no
2004   DEFAULT_wxUSE_OLE=no
2005   DEFAULT_wxUSE_DATAOBJ=no
2006   DEFAULT_wxUSE_DIALUP_MANAGER=no
2007   DEFAULT_wxUSE_JOYSTICK=no
2008   DEFAULT_wxUSE_DYNLIB_CLASS=no
2009   DEFAULT_wxUSE_DYNAMIC_LOADER=no
2010   DEFAULT_wxUSE_LONGLONG=no
2011   DEFAULT_wxUSE_GEOMETRY=no
2012
2013   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2014   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2015   DEFAULT_wxUSE_POSTSCRIPT=no
2016
2017   DEFAULT_wxUSE_CLIPBOARD=no
2018   DEFAULT_wxUSE_TOOLTIPS=no
2019   DEFAULT_wxUSE_DRAG_AND_DROP=no
2020   DEFAULT_wxUSE_DRAGIMAGE=no
2021   DEFAULT_wxUSE_SPLINES=no
2022
2023   DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2024   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2025   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2026
2027   DEFAULT_wxUSE_RESOURCES=no
2028   DEFAULT_wxUSE_CONSTRAINTS=no
2029   DEFAULT_wxUSE_IPC=no
2030   DEFAULT_wxUSE_HELP=no
2031   DEFAULT_wxUSE_MS_HTML_HELP=no
2032   DEFAULT_wxUSE_WXHTML_HELP=no
2033   DEFAULT_wxUSE_TREELAYOUT=no
2034   DEFAULT_wxUSE_METAFILE=no
2035   DEFAULT_wxUSE_MIMETYPE=no
2036   DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2037   DEFAULT_wxUSE_PROTOCOL=no
2038   DEFAULT_wxUSE_PROTOCOL_HTTP=no
2039   DEFAULT_wxUSE_PROTOCOL_FTP=no
2040   DEFAULT_wxUSE_PROTOCOL_FILE=no
2041   DEFAULT_wxUSE_URL=no
2042
2043   DEFAULT_wxUSE_COMMONDLGS=no
2044   DEFAULT_wxUSE_CHOICEDLG=no
2045   DEFAULT_wxUSE_COLOURDLG=no
2046   DEFAULT_wxUSE_DIRDLG=no
2047   DEFAULT_wxUSE_FILEDLG=no
2048   DEFAULT_wxUSE_FINDREPLDLG=no
2049   DEFAULT_wxUSE_FONTDLG=no
2050   DEFAULT_wxUSE_MSGDLG=no
2051   DEFAULT_wxUSE_NUMBERDLG=no
2052   DEFAULT_wxUSE_TEXTDLG=no
2053   DEFAULT_wxUSE_SPLASH=no
2054   DEFAULT_wxUSE_STARTUP_TIPS=no
2055   DEFAULT_wxUSE_PROGRESSDLG=no
2056   DEFAULT_wxUSE_WIZARDDLG=no
2057
2058   DEFAULT_wxUSE_MENUS=no
2059   DEFAULT_wxUSE_MINIFRAME=no
2060   DEFAULT_wxUSE_HTML=no
2061   DEFAULT_wxUSE_FILESYSTEM=no
2062   DEFAULT_wxUSE_FS_INET=no
2063   DEFAULT_wxUSE_FS_ZIP=no
2064   DEFAULT_wxUSE_BUSYINFO=no
2065   DEFAULT_wxUSE_ZIPSTREAM=no
2066   DEFAULT_wxUSE_VALIDATORS=no
2067
2068   DEFAULT_wxUSE_ACCEL=no
2069   DEFAULT_wxUSE_BUTTON=no
2070   DEFAULT_wxUSE_BMPBUTTON=no
2071   DEFAULT_wxUSE_CALCTRL=no
2072   DEFAULT_wxUSE_CARET=no
2073   DEFAULT_wxUSE_CHECKBOX=no
2074   DEFAULT_wxUSE_CHECKLST=no
2075   DEFAULT_wxUSE_CHOICE=no
2076   DEFAULT_wxUSE_COMBOBOX=no
2077   DEFAULT_wxUSE_DISPLAY=no
2078   DEFAULT_wxUSE_GAUGE=no
2079   DEFAULT_wxUSE_GRID=no
2080   DEFAULT_wxUSE_IMAGLIST=no
2081   DEFAULT_wxUSE_LISTBOX=no
2082   DEFAULT_wxUSE_LISTCTRL=no
2083   DEFAULT_wxUSE_NOTEBOOK=no
2084   DEFAULT_wxUSE_RADIOBOX=no
2085   DEFAULT_wxUSE_RADIOBTN=no
2086   DEFAULT_wxUSE_SASH=no
2087   DEFAULT_wxUSE_SCROLLBAR=no
2088   DEFAULT_wxUSE_SLIDER=no
2089   DEFAULT_wxUSE_SPINBTN=no
2090   DEFAULT_wxUSE_SPINCTRL=no
2091   DEFAULT_wxUSE_SPLITTER=no
2092   DEFAULT_wxUSE_STATBMP=no
2093   DEFAULT_wxUSE_STATBOX=no
2094   DEFAULT_wxUSE_STATLINE=no
2095   DEFAULT_wxUSE_STATTEXT=no
2096   DEFAULT_wxUSE_STATUSBAR=yes
2097   DEFAULT_wxUSE_TABDIALOG=no
2098   DEFAULT_wxUSE_TEXTCTRL=no
2099   DEFAULT_wxUSE_TOGGLEBTN=no
2100   DEFAULT_wxUSE_TOOLBAR=no
2101   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2102   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2103   DEFAULT_wxUSE_TREECTRL=no
2104   DEFAULT_wxUSE_POPUPWIN=no
2105   DEFAULT_wxUSE_TIPWINDOW=no
2106
2107   DEFAULT_wxUSE_UNICODE=no
2108   DEFAULT_wxUSE_UNICODE_MSLU=no
2109   DEFAULT_wxUSE_WCSRTOMBS=no
2110
2111   DEFAULT_wxUSE_PALETTE=no
2112   DEFAULT_wxUSE_IMAGE=no
2113   DEFAULT_wxUSE_GIF=no
2114   DEFAULT_wxUSE_PCX=no
2115   DEFAULT_wxUSE_PNM=no
2116   DEFAULT_wxUSE_IFF=no
2117   DEFAULT_wxUSE_XPM=no
2118   DEFAULT_wxUSE_ICO_CUR=no
2119   DEFAULT_wxUSE_ACCESSIBILITY=no
2120
2121   DEFAULT_wxUSE_MONOLITHIC=no
2122   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2123 else
2124   DEFAULT_wxUSE_UNIVERSAL=no
2125   DEFAULT_wxUSE_STL=no
2126
2127   DEFAULT_wxUSE_NANOX=no
2128
2129   DEFAULT_wxUSE_THREADS=yes
2130
2131   DEFAULT_wxUSE_SHARED=yes
2132   DEFAULT_wxUSE_OPTIMISE=yes
2133   DEFAULT_wxUSE_PROFILE=no
2134   DEFAULT_wxUSE_NO_DEPS=no
2135   DEFAULT_wxUSE_NO_RTTI=no
2136   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2137   DEFAULT_wxUSE_PERMISSIVE=no
2138   DEFAULT_wxUSE_DEBUG_FLAG=no
2139   DEFAULT_wxUSE_DEBUG_INFO=no
2140   DEFAULT_wxUSE_DEBUG_GDB=no
2141   DEFAULT_wxUSE_MEM_TRACING=no
2142   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2143   DEFAULT_wxUSE_DMALLOC=no
2144   DEFAULT_wxUSE_APPLE_IEEE=yes
2145
2146   DEFAULT_wxUSE_LOG=yes
2147   DEFAULT_wxUSE_LOGWINDOW=yes
2148   DEFAULT_wxUSE_LOGGUI=yes
2149   DEFAULT_wxUSE_LOGDIALOG=yes
2150
2151   DEFAULT_wxUSE_GUI=yes
2152
2153   DEFAULT_wxUSE_REGEX=yes
2154   DEFAULT_wxUSE_XML=yes
2155   DEFAULT_wxUSE_EXPAT=yes
2156   DEFAULT_wxUSE_ZLIB=yes
2157   DEFAULT_wxUSE_LIBPNG=yes
2158   DEFAULT_wxUSE_LIBJPEG=yes
2159   DEFAULT_wxUSE_LIBTIFF=yes
2160   DEFAULT_wxUSE_ODBC=no
2161   DEFAULT_wxUSE_OPENGL=no
2162
2163   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2164   DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2165   DEFAULT_wxUSE_STD_IOSTREAM=no
2166   DEFAULT_wxUSE_CMDLINE_PARSER=yes
2167   DEFAULT_wxUSE_DATETIME=yes
2168   DEFAULT_wxUSE_TIMER=yes
2169   DEFAULT_wxUSE_STOPWATCH=yes
2170   DEFAULT_wxUSE_FILE=yes
2171   DEFAULT_wxUSE_FFILE=yes
2172   DEFAULT_wxUSE_TEXTBUFFER=yes
2173   DEFAULT_wxUSE_TEXTFILE=yes
2174   DEFAULT_wxUSE_WAVE=no
2175   DEFAULT_wxUSE_INTL=yes
2176   DEFAULT_wxUSE_CONFIG=yes
2177   DEFAULT_wxUSE_FONTMAP=yes
2178   DEFAULT_wxUSE_STREAMS=yes
2179   DEFAULT_wxUSE_SOCKETS=yes
2180   DEFAULT_wxUSE_OLE=yes
2181   DEFAULT_wxUSE_DATAOBJ=yes
2182   DEFAULT_wxUSE_DIALUP_MANAGER=yes
2183   DEFAULT_wxUSE_JOYSTICK=yes
2184   DEFAULT_wxUSE_DYNLIB_CLASS=yes
2185   DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2186   DEFAULT_wxUSE_LONGLONG=yes
2187   DEFAULT_wxUSE_GEOMETRY=yes
2188
2189   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2190   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2191   DEFAULT_wxUSE_POSTSCRIPT=yes
2192
2193   DEFAULT_wxUSE_CLIPBOARD=yes
2194   DEFAULT_wxUSE_TOOLTIPS=yes
2195   DEFAULT_wxUSE_DRAG_AND_DROP=yes
2196   DEFAULT_wxUSE_DRAGIMAGE=yes
2197   DEFAULT_wxUSE_SPLINES=yes
2198
2199   DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2200   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2201   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2202
2203   DEFAULT_wxUSE_RESOURCES=no
2204   DEFAULT_wxUSE_CONSTRAINTS=yes
2205   DEFAULT_wxUSE_IPC=yes
2206   DEFAULT_wxUSE_HELP=yes
2207   DEFAULT_wxUSE_MS_HTML_HELP=yes
2208   DEFAULT_wxUSE_WXHTML_HELP=yes
2209   DEFAULT_wxUSE_TREELAYOUT=yes
2210   DEFAULT_wxUSE_METAFILE=yes
2211   DEFAULT_wxUSE_MIMETYPE=yes
2212   DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2213   DEFAULT_wxUSE_PROTOCOL=yes
2214   DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2215   DEFAULT_wxUSE_PROTOCOL_FTP=yes
2216   DEFAULT_wxUSE_PROTOCOL_FILE=yes
2217   DEFAULT_wxUSE_URL=yes
2218
2219   DEFAULT_wxUSE_COMMONDLGS=yes
2220   DEFAULT_wxUSE_CHOICEDLG=yes
2221   DEFAULT_wxUSE_COLOURDLG=yes
2222   DEFAULT_wxUSE_DIRDLG=yes
2223   DEFAULT_wxUSE_FILEDLG=yes
2224   DEFAULT_wxUSE_FINDREPLDLG=yes
2225   DEFAULT_wxUSE_FONTDLG=yes
2226   DEFAULT_wxUSE_MSGDLG=yes
2227   DEFAULT_wxUSE_NUMBERDLG=yes
2228   DEFAULT_wxUSE_TEXTDLG=yes
2229   DEFAULT_wxUSE_SPLASH=yes
2230   DEFAULT_wxUSE_STARTUP_TIPS=yes
2231   DEFAULT_wxUSE_PROGRESSDLG=yes
2232   DEFAULT_wxUSE_WIZARDDLG=yes
2233
2234   DEFAULT_wxUSE_MENUS=yes
2235   DEFAULT_wxUSE_MINIFRAME=yes
2236   DEFAULT_wxUSE_HTML=yes
2237   DEFAULT_wxUSE_FILESYSTEM=yes
2238   DEFAULT_wxUSE_FS_INET=yes
2239   DEFAULT_wxUSE_FS_ZIP=yes
2240   DEFAULT_wxUSE_BUSYINFO=yes
2241   DEFAULT_wxUSE_ZIPSTREAM=yes
2242   DEFAULT_wxUSE_VALIDATORS=yes
2243
2244   DEFAULT_wxUSE_ACCEL=yes
2245   DEFAULT_wxUSE_BUTTON=yes
2246   DEFAULT_wxUSE_BMPBUTTON=yes
2247   DEFAULT_wxUSE_CALCTRL=yes
2248   DEFAULT_wxUSE_CARET=yes
2249   DEFAULT_wxUSE_CHECKBOX=yes
2250   DEFAULT_wxUSE_CHECKLST=yes
2251   DEFAULT_wxUSE_CHOICE=yes
2252   DEFAULT_wxUSE_COMBOBOX=yes
2253   DEFAULT_wxUSE_DISPLAY=no
2254   DEFAULT_wxUSE_GAUGE=yes
2255   DEFAULT_wxUSE_GRID=yes
2256   DEFAULT_wxUSE_IMAGLIST=yes
2257   DEFAULT_wxUSE_LISTBOX=yes
2258   DEFAULT_wxUSE_LISTCTRL=yes
2259   DEFAULT_wxUSE_NOTEBOOK=yes
2260   DEFAULT_wxUSE_RADIOBOX=yes
2261   DEFAULT_wxUSE_RADIOBTN=yes
2262   DEFAULT_wxUSE_SASH=yes
2263   DEFAULT_wxUSE_SCROLLBAR=yes
2264   DEFAULT_wxUSE_SLIDER=yes
2265   DEFAULT_wxUSE_SPINBTN=yes
2266   DEFAULT_wxUSE_SPINCTRL=yes
2267   DEFAULT_wxUSE_SPLITTER=yes
2268   DEFAULT_wxUSE_STATBMP=yes
2269   DEFAULT_wxUSE_STATBOX=yes
2270   DEFAULT_wxUSE_STATLINE=yes
2271   DEFAULT_wxUSE_STATTEXT=yes
2272   DEFAULT_wxUSE_STATUSBAR=yes
2273   DEFAULT_wxUSE_TABDIALOG=no
2274   DEFAULT_wxUSE_TEXTCTRL=yes
2275   DEFAULT_wxUSE_TOGGLEBTN=yes
2276   DEFAULT_wxUSE_TOOLBAR=yes
2277   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2278   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2279   DEFAULT_wxUSE_TREECTRL=yes
2280   DEFAULT_wxUSE_POPUPWIN=yes
2281   DEFAULT_wxUSE_TIPWINDOW=yes
2282
2283   DEFAULT_wxUSE_UNICODE=no
2284   DEFAULT_wxUSE_UNICODE_MSLU=yes
2285   DEFAULT_wxUSE_WCSRTOMBS=no
2286
2287   DEFAULT_wxUSE_PALETTE=yes
2288   DEFAULT_wxUSE_IMAGE=yes
2289   DEFAULT_wxUSE_GIF=yes
2290   DEFAULT_wxUSE_PCX=yes
2291   DEFAULT_wxUSE_IFF=no
2292   DEFAULT_wxUSE_PNM=yes
2293   DEFAULT_wxUSE_XPM=yes
2294   DEFAULT_wxUSE_ICO_CUR=yes
2295   DEFAULT_wxUSE_ACCESSIBILITY=no
2296
2297   DEFAULT_wxUSE_MONOLITHIC=no
2298   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2299 fi
2300
2301
2302
2303 for toolkit in `echo $ALL_TOOLKITS`; do
2304   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2305   if test "x$LINE" != "x" ; then
2306     has_toolkit_in_cache=1
2307     eval "DEFAULT_$LINE"
2308     eval "CACHE_$toolkit=1"
2309   fi
2310 done
2311
2312
2313
2314           enablestring=
2315           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2316 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2317           no_cache=0
2318           # Check whether --enable-gui or --disable-gui was given.
2319 if test "${enable_gui+set}" = set; then
2320   enableval="$enable_gui"
2321
2322                           if test "$enableval" = yes; then
2323                             ac_cv_use_gui='wxUSE_GUI=yes'
2324                           else
2325                             ac_cv_use_gui='wxUSE_GUI=no'
2326                           fi
2327
2328 else
2329
2330                           LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2331                           if test "x$LINE" != x ; then
2332                             eval "DEFAULT_$LINE"
2333                           else
2334                             no_cache=1
2335                           fi
2336
2337                           ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2338
2339 fi;
2340
2341           eval "$ac_cv_use_gui"
2342           if test "$no_cache" != 1; then
2343             echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2344           fi
2345
2346           if test "$wxUSE_GUI" = yes; then
2347             echo "$as_me:$LINENO: result: yes" >&5
2348 echo "${ECHO_T}yes" >&6
2349           else
2350             echo "$as_me:$LINENO: result: no" >&5
2351 echo "${ECHO_T}no" >&6
2352           fi
2353
2354
2355           enablestring=
2356           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2357 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2358           no_cache=0
2359           # Check whether --enable-monolithic or --disable-monolithic was given.
2360 if test "${enable_monolithic+set}" = set; then
2361   enableval="$enable_monolithic"
2362
2363                           if test "$enableval" = yes; then
2364                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2365                           else
2366                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2367                           fi
2368
2369 else
2370
2371                           LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2372                           if test "x$LINE" != x ; then
2373                             eval "DEFAULT_$LINE"
2374                           else
2375                             no_cache=1
2376                           fi
2377
2378                           ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2379
2380 fi;
2381
2382           eval "$ac_cv_use_monolithic"
2383           if test "$no_cache" != 1; then
2384             echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2385           fi
2386
2387           if test "$wxUSE_MONOLITHIC" = yes; then
2388             echo "$as_me:$LINENO: result: yes" >&5
2389 echo "${ECHO_T}yes" >&6
2390           else
2391             echo "$as_me:$LINENO: result: no" >&5
2392 echo "${ECHO_T}no" >&6
2393           fi
2394
2395
2396 if test "$wxUSE_GUI" = "yes"; then
2397
2398
2399           enablestring=
2400           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2401 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2402           no_cache=0
2403           # Check whether --enable-universal or --disable-universal was given.
2404 if test "${enable_universal+set}" = set; then
2405   enableval="$enable_universal"
2406
2407                           if test "$enableval" = yes; then
2408                             ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2409                           else
2410                             ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2411                           fi
2412
2413 else
2414
2415                           LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2416                           if test "x$LINE" != x ; then
2417                             eval "DEFAULT_$LINE"
2418                           else
2419                             no_cache=1
2420                           fi
2421
2422                           ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2423
2424 fi;
2425
2426           eval "$ac_cv_use_universal"
2427           if test "$no_cache" != 1; then
2428             echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2429           fi
2430
2431           if test "$wxUSE_UNIVERSAL" = yes; then
2432             echo "$as_me:$LINENO: result: yes" >&5
2433 echo "${ECHO_T}yes" >&6
2434           else
2435             echo "$as_me:$LINENO: result: no" >&5
2436 echo "${ECHO_T}no" >&6
2437           fi
2438
2439
2440 # Check whether --with-gtk or --without-gtk was given.
2441 if test "${with_gtk+set}" = set; then
2442   withval="$with_gtk"
2443   wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2444 fi;
2445
2446 # Check whether --with-motif or --without-motif was given.
2447 if test "${with_motif+set}" = set; then
2448   withval="$with_motif"
2449   wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2450 fi;
2451
2452 # Check whether --with-mac or --without-mac was given.
2453 if test "${with_mac+set}" = set; then
2454   withval="$with_mac"
2455   wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
2456 fi;
2457
2458 # Check whether --with-cocoa or --without-cocoa was given.
2459 if test "${with_cocoa+set}" = set; then
2460   withval="$with_cocoa"
2461   wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
2462 fi;
2463
2464 # Check whether --with-wine or --without-wine was given.
2465 if test "${with_wine+set}" = set; then
2466   withval="$with_wine"
2467   wxUSE_WINE="$withval" CACHE_WINE=1
2468 fi;
2469
2470 # Check whether --with-msw or --without-msw was given.
2471 if test "${with_msw+set}" = set; then
2472   withval="$with_msw"
2473   wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2474 fi;
2475
2476 # Check whether --with-pm or --without-pm was given.
2477 if test "${with_pm+set}" = set; then
2478   withval="$with_pm"
2479   wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2480 fi;
2481
2482 # Check whether --with-mgl or --without-mgl was given.
2483 if test "${with_mgl+set}" = set; then
2484   withval="$with_mgl"
2485   wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2486 fi;
2487
2488 # Check whether --with-microwin or --without-microwin was given.
2489 if test "${with_microwin+set}" = set; then
2490   withval="$with_microwin"
2491   wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2492 fi;
2493
2494 # Check whether --with-x11 or --without-x11 was given.
2495 if test "${with_x11+set}" = set; then
2496   withval="$with_x11"
2497   wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2498 fi;
2499
2500           enablestring=
2501           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2502 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2503           no_cache=0
2504           # Check whether --enable-nanox or --disable-nanox was given.
2505 if test "${enable_nanox+set}" = set; then
2506   enableval="$enable_nanox"
2507
2508                           if test "$enableval" = yes; then
2509                             ac_cv_use_nanox='wxUSE_NANOX=yes'
2510                           else
2511                             ac_cv_use_nanox='wxUSE_NANOX=no'
2512                           fi
2513
2514 else
2515
2516                           LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2517                           if test "x$LINE" != x ; then
2518                             eval "DEFAULT_$LINE"
2519                           else
2520                             no_cache=1
2521                           fi
2522
2523                           ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2524
2525 fi;
2526
2527           eval "$ac_cv_use_nanox"
2528           if test "$no_cache" != 1; then
2529             echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2530           fi
2531
2532           if test "$wxUSE_NANOX" = yes; then
2533             echo "$as_me:$LINENO: result: yes" >&5
2534 echo "${ECHO_T}yes" >&6
2535           else
2536             echo "$as_me:$LINENO: result: no" >&5
2537 echo "${ECHO_T}no" >&6
2538           fi
2539
2540
2541
2542           enablestring=
2543           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2544 echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2545           no_cache=0
2546           # Check whether --enable-gtk2 or --disable-gtk2 was given.
2547 if test "${enable_gtk2+set}" = set; then
2548   enableval="$enable_gtk2"
2549
2550                           if test "$enableval" = yes; then
2551                             ac_cv_use_gtk2='wxUSE_GTK2=yes'
2552                           else
2553                             ac_cv_use_gtk2='wxUSE_GTK2=no'
2554                           fi
2555
2556 else
2557
2558                           LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2559                           if test "x$LINE" != x ; then
2560                             eval "DEFAULT_$LINE"
2561                           else
2562                             no_cache=1
2563                           fi
2564
2565                           ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2566
2567 fi;
2568
2569           eval "$ac_cv_use_gtk2"
2570           if test "$no_cache" != 1; then
2571             echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2572           fi
2573
2574           if test "$wxUSE_GTK2" = yes; then
2575             echo "$as_me:$LINENO: result: yes" >&5
2576 echo "${ECHO_T}yes" >&6
2577           else
2578             echo "$as_me:$LINENO: result: no" >&5
2579 echo "${ECHO_T}no" >&6
2580           fi
2581
2582
2583
2584           echo "$as_me:$LINENO: checking for --with-libpng" >&5
2585 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2586           no_cache=0
2587
2588 # Check whether --with-libpng or --without-libpng was given.
2589 if test "${with_libpng+set}" = set; then
2590   withval="$with_libpng"
2591
2592                         if test "$withval" = yes; then
2593                           ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2594                         elif test "$withval" = no; then
2595                           ac_cv_use_libpng='wxUSE_LIBPNG=no'
2596                         elif test "$withval" = sys; then
2597                           ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2598                         elif test "$withval" = builtin; then
2599                           ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2600                         else
2601                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2602 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2603    { (exit 1); exit 1; }; }
2604                         fi
2605
2606 else
2607
2608                         LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2609                         if test "x$LINE" != x ; then
2610                           eval "DEFAULT_$LINE"
2611                         else
2612                           no_cache=1
2613                         fi
2614
2615                         ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2616
2617 fi;
2618
2619           eval "$ac_cv_use_libpng"
2620           if test "$no_cache" != 1; then
2621             echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2622           fi
2623
2624           if test "$wxUSE_LIBPNG" = yes; then
2625             echo "$as_me:$LINENO: result: yes" >&5
2626 echo "${ECHO_T}yes" >&6
2627           elif test "$wxUSE_LIBPNG" = no; then
2628             echo "$as_me:$LINENO: result: no" >&5
2629 echo "${ECHO_T}no" >&6
2630           elif test "$wxUSE_LIBPNG" = sys; then
2631             echo "$as_me:$LINENO: result: system version" >&5
2632 echo "${ECHO_T}system version" >&6
2633           elif test "$wxUSE_LIBPNG" = builtin; then
2634             echo "$as_me:$LINENO: result: builtin version" >&5
2635 echo "${ECHO_T}builtin version" >&6
2636           else
2637             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2638 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2639    { (exit 1); exit 1; }; }
2640           fi
2641
2642
2643           echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2644 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2645           no_cache=0
2646
2647 # Check whether --with-libjpeg or --without-libjpeg was given.
2648 if test "${with_libjpeg+set}" = set; then
2649   withval="$with_libjpeg"
2650
2651                         if test "$withval" = yes; then
2652                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2653                         elif test "$withval" = no; then
2654                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2655                         elif test "$withval" = sys; then
2656                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2657                         elif test "$withval" = builtin; then
2658                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2659                         else
2660                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2661 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2662    { (exit 1); exit 1; }; }
2663                         fi
2664
2665 else
2666
2667                         LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2668                         if test "x$LINE" != x ; then
2669                           eval "DEFAULT_$LINE"
2670                         else
2671                           no_cache=1
2672                         fi
2673
2674                         ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2675
2676 fi;
2677
2678           eval "$ac_cv_use_libjpeg"
2679           if test "$no_cache" != 1; then
2680             echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2681           fi
2682
2683           if test "$wxUSE_LIBJPEG" = yes; then
2684             echo "$as_me:$LINENO: result: yes" >&5
2685 echo "${ECHO_T}yes" >&6
2686           elif test "$wxUSE_LIBJPEG" = no; then
2687             echo "$as_me:$LINENO: result: no" >&5
2688 echo "${ECHO_T}no" >&6
2689           elif test "$wxUSE_LIBJPEG" = sys; then
2690             echo "$as_me:$LINENO: result: system version" >&5
2691 echo "${ECHO_T}system version" >&6
2692           elif test "$wxUSE_LIBJPEG" = builtin; then
2693             echo "$as_me:$LINENO: result: builtin version" >&5
2694 echo "${ECHO_T}builtin version" >&6
2695           else
2696             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2697 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2698    { (exit 1); exit 1; }; }
2699           fi
2700
2701
2702           echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2703 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2704           no_cache=0
2705
2706 # Check whether --with-libtiff or --without-libtiff was given.
2707 if test "${with_libtiff+set}" = set; then
2708   withval="$with_libtiff"
2709
2710                         if test "$withval" = yes; then
2711                           ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2712                         elif test "$withval" = no; then
2713                           ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2714                         elif test "$withval" = sys; then
2715                           ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2716                         elif test "$withval" = builtin; then
2717                           ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2718                         else
2719                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2720 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2721    { (exit 1); exit 1; }; }
2722                         fi
2723
2724 else
2725
2726                         LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2727                         if test "x$LINE" != x ; then
2728                           eval "DEFAULT_$LINE"
2729                         else
2730                           no_cache=1
2731                         fi
2732
2733                         ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2734
2735 fi;
2736
2737           eval "$ac_cv_use_libtiff"
2738           if test "$no_cache" != 1; then
2739             echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2740           fi
2741
2742           if test "$wxUSE_LIBTIFF" = yes; then
2743             echo "$as_me:$LINENO: result: yes" >&5
2744 echo "${ECHO_T}yes" >&6
2745           elif test "$wxUSE_LIBTIFF" = no; then
2746             echo "$as_me:$LINENO: result: no" >&5
2747 echo "${ECHO_T}no" >&6
2748           elif test "$wxUSE_LIBTIFF" = sys; then
2749             echo "$as_me:$LINENO: result: system version" >&5
2750 echo "${ECHO_T}system version" >&6
2751           elif test "$wxUSE_LIBTIFF" = builtin; then
2752             echo "$as_me:$LINENO: result: builtin version" >&5
2753 echo "${ECHO_T}builtin version" >&6
2754           else
2755             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2756 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2757    { (exit 1); exit 1; }; }
2758           fi
2759
2760
2761           echo "$as_me:$LINENO: checking for --with-opengl" >&5
2762 echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
2763           no_cache=0
2764
2765 # Check whether --with-opengl or --without-opengl was given.
2766 if test "${with_opengl+set}" = set; then
2767   withval="$with_opengl"
2768
2769                         if test "$withval" = yes; then
2770                           ac_cv_use_opengl='wxUSE_OPENGL=yes'
2771                         else
2772                           ac_cv_use_opengl='wxUSE_OPENGL=no'
2773                         fi
2774
2775 else
2776
2777                         LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2778                         if test "x$LINE" != x ; then
2779                           eval "DEFAULT_$LINE"
2780                         else
2781                           no_cache=1
2782                         fi
2783
2784                         ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2785
2786 fi;
2787
2788           eval "$ac_cv_use_opengl"
2789           if test "$no_cache" != 1; then
2790             echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2791           fi
2792
2793           if test "$wxUSE_OPENGL" = yes; then
2794             echo "$as_me:$LINENO: result: yes" >&5
2795 echo "${ECHO_T}yes" >&6
2796           else
2797             echo "$as_me:$LINENO: result: no" >&5
2798 echo "${ECHO_T}no" >&6
2799           fi
2800
2801
2802 fi
2803
2804
2805           echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
2806 echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
2807           no_cache=0
2808
2809 # Check whether --with-dmalloc or --without-dmalloc was given.
2810 if test "${with_dmalloc+set}" = set; then
2811   withval="$with_dmalloc"
2812
2813                         if test "$withval" = yes; then
2814                           ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2815                         else
2816                           ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2817                         fi
2818
2819 else
2820
2821                         LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2822                         if test "x$LINE" != x ; then
2823                           eval "DEFAULT_$LINE"
2824                         else
2825                           no_cache=1
2826                         fi
2827
2828                         ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2829
2830 fi;
2831
2832           eval "$ac_cv_use_dmalloc"
2833           if test "$no_cache" != 1; then
2834             echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2835           fi
2836
2837           if test "$wxUSE_DMALLOC" = yes; then
2838             echo "$as_me:$LINENO: result: yes" >&5
2839 echo "${ECHO_T}yes" >&6
2840           else
2841             echo "$as_me:$LINENO: result: no" >&5
2842 echo "${ECHO_T}no" >&6
2843           fi
2844
2845
2846           echo "$as_me:$LINENO: checking for --with-regex" >&5
2847 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
2848           no_cache=0
2849
2850 # Check whether --with-regex or --without-regex was given.
2851 if test "${with_regex+set}" = set; then
2852   withval="$with_regex"
2853
2854                         if test "$withval" = yes; then
2855                           ac_cv_use_regex='wxUSE_REGEX=yes'
2856                         elif test "$withval" = no; then
2857                           ac_cv_use_regex='wxUSE_REGEX=no'
2858                         elif test "$withval" = sys; then
2859                           ac_cv_use_regex='wxUSE_REGEX=sys'
2860                         elif test "$withval" = builtin; then
2861                           ac_cv_use_regex='wxUSE_REGEX=builtin'
2862                         else
2863                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2864 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2865    { (exit 1); exit 1; }; }
2866                         fi
2867
2868 else
2869
2870                         LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2871                         if test "x$LINE" != x ; then
2872                           eval "DEFAULT_$LINE"
2873                         else
2874                           no_cache=1
2875                         fi
2876
2877                         ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2878
2879 fi;
2880
2881           eval "$ac_cv_use_regex"
2882           if test "$no_cache" != 1; then
2883             echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2884           fi
2885
2886           if test "$wxUSE_REGEX" = yes; then
2887             echo "$as_me:$LINENO: result: yes" >&5
2888 echo "${ECHO_T}yes" >&6
2889           elif test "$wxUSE_REGEX" = no; then
2890             echo "$as_me:$LINENO: result: no" >&5
2891 echo "${ECHO_T}no" >&6
2892           elif test "$wxUSE_REGEX" = sys; then
2893             echo "$as_me:$LINENO: result: system version" >&5
2894 echo "${ECHO_T}system version" >&6
2895           elif test "$wxUSE_REGEX" = builtin; then
2896             echo "$as_me:$LINENO: result: builtin version" >&5
2897 echo "${ECHO_T}builtin version" >&6
2898           else
2899             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
2900 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
2901    { (exit 1); exit 1; }; }
2902           fi
2903
2904
2905           echo "$as_me:$LINENO: checking for --with-zlib" >&5
2906 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
2907           no_cache=0
2908
2909 # Check whether --with-zlib or --without-zlib was given.
2910 if test "${with_zlib+set}" = set; then
2911   withval="$with_zlib"
2912
2913                         if test "$withval" = yes; then
2914                           ac_cv_use_zlib='wxUSE_ZLIB=yes'
2915                         elif test "$withval" = no; then
2916                           ac_cv_use_zlib='wxUSE_ZLIB=no'
2917                         elif test "$withval" = sys; then
2918                           ac_cv_use_zlib='wxUSE_ZLIB=sys'
2919                         elif test "$withval" = builtin; then
2920                           ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2921                         else
2922                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2923 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2924    { (exit 1); exit 1; }; }
2925                         fi
2926
2927 else
2928
2929                         LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2930                         if test "x$LINE" != x ; then
2931                           eval "DEFAULT_$LINE"
2932                         else
2933                           no_cache=1
2934                         fi
2935
2936                         ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2937
2938 fi;
2939
2940           eval "$ac_cv_use_zlib"
2941           if test "$no_cache" != 1; then
2942             echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2943           fi
2944
2945           if test "$wxUSE_ZLIB" = yes; then
2946             echo "$as_me:$LINENO: result: yes" >&5
2947 echo "${ECHO_T}yes" >&6
2948           elif test "$wxUSE_ZLIB" = no; then
2949             echo "$as_me:$LINENO: result: no" >&5
2950 echo "${ECHO_T}no" >&6
2951           elif test "$wxUSE_ZLIB" = sys; then
2952             echo "$as_me:$LINENO: result: system version" >&5
2953 echo "${ECHO_T}system version" >&6
2954           elif test "$wxUSE_ZLIB" = builtin; then
2955             echo "$as_me:$LINENO: result: builtin version" >&5
2956 echo "${ECHO_T}builtin version" >&6
2957           else
2958             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
2959 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
2960    { (exit 1); exit 1; }; }
2961           fi
2962
2963
2964           echo "$as_me:$LINENO: checking for --with-odbc" >&5
2965 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
2966           no_cache=0
2967
2968 # Check whether --with-odbc or --without-odbc was given.
2969 if test "${with_odbc+set}" = set; then
2970   withval="$with_odbc"
2971
2972                         if test "$withval" = yes; then
2973                           ac_cv_use_odbc='wxUSE_ODBC=yes'
2974                         elif test "$withval" = no; then
2975                           ac_cv_use_odbc='wxUSE_ODBC=no'
2976                         elif test "$withval" = sys; then
2977                           ac_cv_use_odbc='wxUSE_ODBC=sys'
2978                         elif test "$withval" = builtin; then
2979                           ac_cv_use_odbc='wxUSE_ODBC=builtin'
2980                         else
2981                           { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
2982 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
2983    { (exit 1); exit 1; }; }
2984                         fi
2985
2986 else
2987
2988                         LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2989                         if test "x$LINE" != x ; then
2990                           eval "DEFAULT_$LINE"
2991                         else
2992                           no_cache=1
2993                         fi
2994
2995                         ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2996
2997 fi;
2998
2999           eval "$ac_cv_use_odbc"
3000           if test "$no_cache" != 1; then
3001             echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3002           fi
3003
3004           if test "$wxUSE_ODBC" = yes; then
3005             echo "$as_me:$LINENO: result: yes" >&5
3006 echo "${ECHO_T}yes" >&6
3007           elif test "$wxUSE_ODBC" = no; then
3008             echo "$as_me:$LINENO: result: no" >&5
3009 echo "${ECHO_T}no" >&6
3010           elif test "$wxUSE_ODBC" = sys; then
3011             echo "$as_me:$LINENO: result: system version" >&5
3012 echo "${ECHO_T}system version" >&6
3013           elif test "$wxUSE_ODBC" = builtin; then
3014             echo "$as_me:$LINENO: result: builtin version" >&5
3015 echo "${ECHO_T}builtin version" >&6
3016           else
3017             { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3018 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3019    { (exit 1); exit 1; }; }
3020           fi
3021
3022
3023           echo "$as_me:$LINENO: checking for --with-expat" >&5
3024 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3025           no_cache=0
3026
3027 # Check whether --with-expat or --without-expat was given.
3028 if test "${with_expat+set}" = set; then
3029   withval="$with_expat"
3030
3031                         if test "$withval" = yes; then
3032                           ac_cv_use_expat='wxUSE_EXPAT=yes'
3033                         elif test "$withval" = no; then
3034                           ac_cv_use_expat='wxUSE_EXPAT=no'
3035                         elif test "$withval" = sys; then
3036                           ac_cv_use_expat='wxUSE_EXPAT=sys'
3037                         elif test "$withval" = builtin; then
3038                           ac_cv_use_expat='wxUSE_EXPAT=builtin'
3039                         else
3040                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3041 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3042    { (exit 1); exit 1; }; }
3043                         fi
3044
3045 else
3046
3047                         LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3048                         if test "x$LINE" != x ; then
3049                           eval "DEFAULT_$LINE"
3050                         else
3051                           no_cache=1
3052                         fi
3053
3054                         ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3055
3056 fi;
3057
3058           eval "$ac_cv_use_expat"
3059           if test "$no_cache" != 1; then
3060             echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3061           fi
3062
3063           if test "$wxUSE_EXPAT" = yes; then
3064             echo "$as_me:$LINENO: result: yes" >&5
3065 echo "${ECHO_T}yes" >&6
3066           elif test "$wxUSE_EXPAT" = no; then
3067             echo "$as_me:$LINENO: result: no" >&5
3068 echo "${ECHO_T}no" >&6
3069           elif test "$wxUSE_EXPAT" = sys; then
3070             echo "$as_me:$LINENO: result: system version" >&5
3071 echo "${ECHO_T}system version" >&6
3072           elif test "$wxUSE_EXPAT" = builtin; then
3073             echo "$as_me:$LINENO: result: builtin version" >&5
3074 echo "${ECHO_T}builtin version" >&6
3075           else
3076             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3077 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3078    { (exit 1); exit 1; }; }
3079           fi
3080
3081
3082
3083
3084           enablestring=
3085           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3086 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3087           no_cache=0
3088           # Check whether --enable-shared or --disable-shared was given.
3089 if test "${enable_shared+set}" = set; then
3090   enableval="$enable_shared"
3091
3092                           if test "$enableval" = yes; then
3093                             ac_cv_use_shared='wxUSE_SHARED=yes'
3094                           else
3095                             ac_cv_use_shared='wxUSE_SHARED=no'
3096                           fi
3097
3098 else
3099
3100                           LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3101                           if test "x$LINE" != x ; then
3102                             eval "DEFAULT_$LINE"
3103                           else
3104                             no_cache=1
3105                           fi
3106
3107                           ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3108
3109 fi;
3110
3111           eval "$ac_cv_use_shared"
3112           if test "$no_cache" != 1; then
3113             echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3114           fi
3115
3116           if test "$wxUSE_SHARED" = yes; then
3117             echo "$as_me:$LINENO: result: yes" >&5
3118 echo "${ECHO_T}yes" >&6
3119           else
3120             echo "$as_me:$LINENO: result: no" >&5
3121 echo "${ECHO_T}no" >&6
3122           fi
3123
3124
3125           enablestring=
3126           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3127 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3128           no_cache=0
3129           # Check whether --enable-optimise or --disable-optimise was given.
3130 if test "${enable_optimise+set}" = set; then
3131   enableval="$enable_optimise"
3132
3133                           if test "$enableval" = yes; then
3134                             ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3135                           else
3136                             ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3137                           fi
3138
3139 else
3140
3141                           LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3142                           if test "x$LINE" != x ; then
3143                             eval "DEFAULT_$LINE"
3144                           else
3145                             no_cache=1
3146                           fi
3147
3148                           ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3149
3150 fi;
3151
3152           eval "$ac_cv_use_optimise"
3153           if test "$no_cache" != 1; then
3154             echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3155           fi
3156
3157           if test "$wxUSE_OPTIMISE" = yes; then
3158             echo "$as_me:$LINENO: result: yes" >&5
3159 echo "${ECHO_T}yes" >&6
3160           else
3161             echo "$as_me:$LINENO: result: no" >&5
3162 echo "${ECHO_T}no" >&6
3163           fi
3164
3165
3166           enablestring=
3167           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3168 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3169           no_cache=0
3170           # Check whether --enable-debug or --disable-debug was given.
3171 if test "${enable_debug+set}" = set; then
3172   enableval="$enable_debug"
3173
3174                           if test "$enableval" = yes; then
3175                             ac_cv_use_debug='wxUSE_DEBUG=yes'
3176                           else
3177                             ac_cv_use_debug='wxUSE_DEBUG=no'
3178                           fi
3179
3180 else
3181
3182                           LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3183                           if test "x$LINE" != x ; then
3184                             eval "DEFAULT_$LINE"
3185                           else
3186                             no_cache=1
3187                           fi
3188
3189                           ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3190
3191 fi;
3192
3193           eval "$ac_cv_use_debug"
3194           if test "$no_cache" != 1; then
3195             echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3196           fi
3197
3198           if test "$wxUSE_DEBUG" = yes; then
3199             echo "$as_me:$LINENO: result: yes" >&5
3200 echo "${ECHO_T}yes" >&6
3201           else
3202             echo "$as_me:$LINENO: result: no" >&5
3203 echo "${ECHO_T}no" >&6
3204           fi
3205
3206
3207           enablestring=
3208           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3209 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3210           no_cache=0
3211           # Check whether --enable-stl or --disable-stl was given.
3212 if test "${enable_stl+set}" = set; then
3213   enableval="$enable_stl"
3214
3215                           if test "$enableval" = yes; then
3216                             ac_cv_use_stl='wxUSE_STL=yes'
3217                           else
3218                             ac_cv_use_stl='wxUSE_STL=no'
3219                           fi
3220
3221 else
3222
3223                           LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3224                           if test "x$LINE" != x ; then
3225                             eval "DEFAULT_$LINE"
3226                           else
3227                             no_cache=1
3228                           fi
3229
3230                           ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3231
3232 fi;
3233
3234           eval "$ac_cv_use_stl"
3235           if test "$no_cache" != 1; then
3236             echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3237           fi
3238
3239           if test "$wxUSE_STL" = yes; then
3240             echo "$as_me:$LINENO: result: yes" >&5
3241 echo "${ECHO_T}yes" >&6
3242           else
3243             echo "$as_me:$LINENO: result: no" >&5
3244 echo "${ECHO_T}no" >&6
3245           fi
3246
3247
3248 if test "$wxUSE_DEBUG" = "yes"; then
3249   DEFAULT_wxUSE_DEBUG_FLAG=yes
3250   DEFAULT_wxUSE_DEBUG_INFO=yes
3251   BUILD=debug
3252 elif test "$wxUSE_DEBUG" = "no"; then
3253   DEFAULT_wxUSE_DEBUG_FLAG=no
3254   DEFAULT_wxUSE_DEBUG_INFO=no
3255   BUILD=release
3256 fi
3257
3258
3259           enablestring=
3260           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3261 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3262           no_cache=0
3263           # Check whether --enable-debug_flag or --disable-debug_flag was given.
3264 if test "${enable_debug_flag+set}" = set; then
3265   enableval="$enable_debug_flag"
3266
3267                           if test "$enableval" = yes; then
3268                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3269                           else
3270                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3271                           fi
3272
3273 else
3274
3275                           LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3276                           if test "x$LINE" != x ; then
3277                             eval "DEFAULT_$LINE"
3278                           else
3279                             no_cache=1
3280                           fi
3281
3282                           ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3283
3284 fi;
3285
3286           eval "$ac_cv_use_debug_flag"
3287           if test "$no_cache" != 1; then
3288             echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3289           fi
3290
3291           if test "$wxUSE_DEBUG_FLAG" = yes; then
3292             echo "$as_me:$LINENO: result: yes" >&5
3293 echo "${ECHO_T}yes" >&6
3294           else
3295             echo "$as_me:$LINENO: result: no" >&5
3296 echo "${ECHO_T}no" >&6
3297           fi
3298
3299
3300           enablestring=
3301           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3302 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3303           no_cache=0
3304           # Check whether --enable-debug_info or --disable-debug_info was given.
3305 if test "${enable_debug_info+set}" = set; then
3306   enableval="$enable_debug_info"
3307
3308                           if test "$enableval" = yes; then
3309                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3310                           else
3311                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3312                           fi
3313
3314 else
3315
3316                           LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3317                           if test "x$LINE" != x ; then
3318                             eval "DEFAULT_$LINE"
3319                           else
3320                             no_cache=1
3321                           fi
3322
3323                           ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3324
3325 fi;
3326
3327           eval "$ac_cv_use_debug_info"
3328           if test "$no_cache" != 1; then
3329             echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3330           fi
3331
3332           if test "$wxUSE_DEBUG_INFO" = yes; then
3333             echo "$as_me:$LINENO: result: yes" >&5
3334 echo "${ECHO_T}yes" >&6
3335           else
3336             echo "$as_me:$LINENO: result: no" >&5
3337 echo "${ECHO_T}no" >&6
3338           fi
3339
3340
3341           enablestring=
3342           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3343 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3344           no_cache=0
3345           # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3346 if test "${enable_debug_gdb+set}" = set; then
3347   enableval="$enable_debug_gdb"
3348
3349                           if test "$enableval" = yes; then
3350                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3351                           else
3352                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3353                           fi
3354
3355 else
3356
3357                           LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3358                           if test "x$LINE" != x ; then
3359                             eval "DEFAULT_$LINE"
3360                           else
3361                             no_cache=1
3362                           fi
3363
3364                           ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3365
3366 fi;
3367
3368           eval "$ac_cv_use_debug_gdb"
3369           if test "$no_cache" != 1; then
3370             echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3371           fi
3372
3373           if test "$wxUSE_DEBUG_GDB" = yes; then
3374             echo "$as_me:$LINENO: result: yes" >&5
3375 echo "${ECHO_T}yes" >&6
3376           else
3377             echo "$as_me:$LINENO: result: no" >&5
3378 echo "${ECHO_T}no" >&6
3379           fi
3380
3381
3382           enablestring=
3383           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3384 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3385           no_cache=0
3386           # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3387 if test "${enable_debug_cntxt+set}" = set; then
3388   enableval="$enable_debug_cntxt"
3389
3390                           if test "$enableval" = yes; then
3391                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3392                           else
3393                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3394                           fi
3395
3396 else
3397
3398                           LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3399                           if test "x$LINE" != x ; then
3400                             eval "DEFAULT_$LINE"
3401                           else
3402                             no_cache=1
3403                           fi
3404
3405                           ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3406
3407 fi;
3408
3409           eval "$ac_cv_use_debug_cntxt"
3410           if test "$no_cache" != 1; then
3411             echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3412           fi
3413
3414           if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3415             echo "$as_me:$LINENO: result: yes" >&5
3416 echo "${ECHO_T}yes" >&6
3417           else
3418             echo "$as_me:$LINENO: result: no" >&5
3419 echo "${ECHO_T}no" >&6
3420           fi
3421
3422
3423           enablestring=
3424           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3425 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3426           no_cache=0
3427           # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3428 if test "${enable_mem_tracing+set}" = set; then
3429   enableval="$enable_mem_tracing"
3430
3431                           if test "$enableval" = yes; then
3432                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3433                           else
3434                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3435                           fi
3436
3437 else
3438
3439                           LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3440                           if test "x$LINE" != x ; then
3441                             eval "DEFAULT_$LINE"
3442                           else
3443                             no_cache=1
3444                           fi
3445
3446                           ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3447
3448 fi;
3449
3450           eval "$ac_cv_use_mem_tracing"
3451           if test "$no_cache" != 1; then
3452             echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3453           fi
3454
3455           if test "$wxUSE_MEM_TRACING" = yes; then
3456             echo "$as_me:$LINENO: result: yes" >&5
3457 echo "${ECHO_T}yes" >&6
3458           else
3459             echo "$as_me:$LINENO: result: no" >&5
3460 echo "${ECHO_T}no" >&6
3461           fi
3462
3463
3464           enablestring=
3465           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3466 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3467           no_cache=0
3468           # Check whether --enable-profile or --disable-profile was given.
3469 if test "${enable_profile+set}" = set; then
3470   enableval="$enable_profile"
3471
3472                           if test "$enableval" = yes; then
3473                             ac_cv_use_profile='wxUSE_PROFILE=yes'
3474                           else
3475                             ac_cv_use_profile='wxUSE_PROFILE=no'
3476                           fi
3477
3478 else
3479
3480                           LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3481                           if test "x$LINE" != x ; then
3482                             eval "DEFAULT_$LINE"
3483                           else
3484                             no_cache=1
3485                           fi
3486
3487                           ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3488
3489 fi;
3490
3491           eval "$ac_cv_use_profile"
3492           if test "$no_cache" != 1; then
3493             echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3494           fi
3495
3496           if test "$wxUSE_PROFILE" = yes; then
3497             echo "$as_me:$LINENO: result: yes" >&5
3498 echo "${ECHO_T}yes" >&6
3499           else
3500             echo "$as_me:$LINENO: result: no" >&5
3501 echo "${ECHO_T}no" >&6
3502           fi
3503
3504
3505           enablestring=
3506           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3507 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3508           no_cache=0
3509           # Check whether --enable-no_rtti or --disable-no_rtti was given.
3510 if test "${enable_no_rtti+set}" = set; then
3511   enableval="$enable_no_rtti"
3512
3513                           if test "$enableval" = yes; then
3514                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3515                           else
3516                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3517                           fi
3518
3519 else
3520
3521                           LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3522                           if test "x$LINE" != x ; then
3523                             eval "DEFAULT_$LINE"
3524                           else
3525                             no_cache=1
3526                           fi
3527
3528                           ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3529
3530 fi;
3531
3532           eval "$ac_cv_use_no_rtti"
3533           if test "$no_cache" != 1; then
3534             echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3535           fi
3536
3537           if test "$wxUSE_NO_RTTI" = yes; then
3538             echo "$as_me:$LINENO: result: yes" >&5
3539 echo "${ECHO_T}yes" >&6
3540           else
3541             echo "$as_me:$LINENO: result: no" >&5
3542 echo "${ECHO_T}no" >&6
3543           fi
3544
3545
3546           enablestring=
3547           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3548 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3549           no_cache=0
3550           # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3551 if test "${enable_no_exceptions+set}" = set; then
3552   enableval="$enable_no_exceptions"
3553
3554                           if test "$enableval" = yes; then
3555                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3556                           else
3557                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3558                           fi
3559
3560 else
3561
3562                           LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3563                           if test "x$LINE" != x ; then
3564                             eval "DEFAULT_$LINE"
3565                           else
3566                             no_cache=1
3567                           fi
3568
3569                           ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3570
3571 fi;
3572
3573           eval "$ac_cv_use_no_exceptions"
3574           if test "$no_cache" != 1; then
3575             echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3576           fi
3577
3578           if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3579             echo "$as_me:$LINENO: result: yes" >&5
3580 echo "${ECHO_T}yes" >&6
3581           else
3582             echo "$as_me:$LINENO: result: no" >&5
3583 echo "${ECHO_T}no" >&6
3584           fi
3585
3586
3587           enablestring=
3588           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3589 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3590           no_cache=0
3591           # Check whether --enable-permissive or --disable-permissive was given.
3592 if test "${enable_permissive+set}" = set; then
3593   enableval="$enable_permissive"
3594
3595                           if test "$enableval" = yes; then
3596                             ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3597                           else
3598                             ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3599                           fi
3600
3601 else
3602
3603                           LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3604                           if test "x$LINE" != x ; then
3605                             eval "DEFAULT_$LINE"
3606                           else
3607                             no_cache=1
3608                           fi
3609
3610                           ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
3611
3612 fi;
3613
3614           eval "$ac_cv_use_permissive"
3615           if test "$no_cache" != 1; then
3616             echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3617           fi
3618
3619           if test "$wxUSE_PERMISSIVE" = yes; then
3620             echo "$as_me:$LINENO: result: yes" >&5
3621 echo "${ECHO_T}yes" >&6
3622           else
3623             echo "$as_me:$LINENO: result: no" >&5
3624 echo "${ECHO_T}no" >&6
3625           fi
3626
3627
3628           enablestring=
3629           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3630 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
3631           no_cache=0
3632           # Check whether --enable-no_deps or --disable-no_deps was given.
3633 if test "${enable_no_deps+set}" = set; then
3634   enableval="$enable_no_deps"
3635
3636                           if test "$enableval" = yes; then
3637                             ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3638                           else
3639                             ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3640                           fi
3641
3642 else
3643
3644                           LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3645                           if test "x$LINE" != x ; then
3646                             eval "DEFAULT_$LINE"
3647                           else
3648                             no_cache=1
3649                           fi
3650
3651                           ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
3652
3653 fi;
3654
3655           eval "$ac_cv_use_no_deps"
3656           if test "$no_cache" != 1; then
3657             echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3658           fi
3659
3660           if test "$wxUSE_NO_DEPS" = yes; then
3661             echo "$as_me:$LINENO: result: yes" >&5
3662 echo "${ECHO_T}yes" >&6
3663           else
3664             echo "$as_me:$LINENO: result: no" >&5
3665 echo "${ECHO_T}no" >&6
3666           fi
3667
3668
3669
3670           enablestring=
3671           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat20" >&5
3672 echo $ECHO_N "checking for --${enablestring:-enable}-compat20... $ECHO_C" >&6
3673           no_cache=0
3674           # Check whether --enable-compat20 or --disable-compat20 was given.
3675 if test "${enable_compat20+set}" = set; then
3676   enableval="$enable_compat20"
3677
3678                           if test "$enableval" = yes; then
3679                             ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
3680                           else
3681                             ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
3682                           fi
3683
3684 else
3685
3686                           LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
3687                           if test "x$LINE" != x ; then
3688                             eval "DEFAULT_$LINE"
3689                           else
3690                             no_cache=1
3691                           fi
3692
3693                           ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
3694
3695 fi;
3696
3697           eval "$ac_cv_use_compat20"
3698           if test "$no_cache" != 1; then
3699             echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
3700           fi
3701
3702           if test "$WXWIN_COMPATIBILITY_2" = yes; then
3703             echo "$as_me:$LINENO: result: yes" >&5
3704 echo "${ECHO_T}yes" >&6
3705           else
3706             echo "$as_me:$LINENO: result: no" >&5
3707 echo "${ECHO_T}no" >&6
3708           fi
3709
3710
3711           enablestring=
3712           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3713 echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
3714           no_cache=0
3715           # Check whether --enable-compat22 or --disable-compat22 was given.
3716 if test "${enable_compat22+set}" = set; then
3717   enableval="$enable_compat22"
3718
3719                           if test "$enableval" = yes; then
3720                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3721                           else
3722                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3723                           fi
3724
3725 else
3726
3727                           LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3728                           if test "x$LINE" != x ; then
3729                             eval "DEFAULT_$LINE"
3730                           else
3731                             no_cache=1
3732                           fi
3733
3734                           ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3735
3736 fi;
3737
3738           eval "$ac_cv_use_compat22"
3739           if test "$no_cache" != 1; then
3740             echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3741           fi
3742
3743           if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3744             echo "$as_me:$LINENO: result: yes" >&5
3745 echo "${ECHO_T}yes" >&6
3746           else
3747             echo "$as_me:$LINENO: result: no" >&5
3748 echo "${ECHO_T}no" >&6
3749           fi
3750
3751
3752           enablestring=disable
3753           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
3754 echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
3755           no_cache=0
3756           # Check whether --enable-compat24 or --disable-compat24 was given.
3757 if test "${enable_compat24+set}" = set; then
3758   enableval="$enable_compat24"
3759
3760                           if test "$enableval" = yes; then
3761                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3762                           else
3763                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3764                           fi
3765
3766 else
3767
3768                           LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3769                           if test "x$LINE" != x ; then
3770                             eval "DEFAULT_$LINE"
3771                           else
3772                             no_cache=1
3773                           fi
3774
3775                           ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
3776
3777 fi;
3778
3779           eval "$ac_cv_use_compat24"
3780           if test "$no_cache" != 1; then
3781             echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3782           fi
3783
3784           if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
3785             echo "$as_me:$LINENO: result: yes" >&5
3786 echo "${ECHO_T}yes" >&6
3787           else
3788             echo "$as_me:$LINENO: result: no" >&5
3789 echo "${ECHO_T}no" >&6
3790           fi
3791
3792
3793 # Check whether --enable-rpath or --disable-rpath was given.
3794 if test "${enable_rpath+set}" = set; then
3795   enableval="$enable_rpath"
3796   wxRPATH_DIR="$enableval"
3797 fi;
3798
3799 if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3800    WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3801 fi
3802
3803
3804
3805
3806           enablestring=
3807           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
3808 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
3809           no_cache=0
3810           # Check whether --enable-intl or --disable-intl was given.
3811 if test "${enable_intl+set}" = set; then
3812   enableval="$enable_intl"
3813
3814                           if test "$enableval" = yes; then
3815                             ac_cv_use_intl='wxUSE_INTL=yes'
3816                           else
3817                             ac_cv_use_intl='wxUSE_INTL=no'
3818                           fi
3819
3820 else
3821
3822                           LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3823                           if test "x$LINE" != x ; then
3824                             eval "DEFAULT_$LINE"
3825                           else
3826                             no_cache=1
3827                           fi
3828
3829                           ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3830
3831 fi;
3832
3833           eval "$ac_cv_use_intl"
3834           if test "$no_cache" != 1; then
3835             echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3836           fi
3837
3838           if test "$wxUSE_INTL" = yes; then
3839             echo "$as_me:$LINENO: result: yes" >&5
3840 echo "${ECHO_T}yes" >&6
3841           else
3842             echo "$as_me:$LINENO: result: no" >&5
3843 echo "${ECHO_T}no" >&6
3844           fi
3845
3846
3847           enablestring=
3848           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
3849 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
3850           no_cache=0
3851           # Check whether --enable-config or --disable-config was given.
3852 if test "${enable_config+set}" = set; then
3853   enableval="$enable_config"
3854
3855                           if test "$enableval" = yes; then
3856                             ac_cv_use_config='wxUSE_CONFIG=yes'
3857                           else
3858                             ac_cv_use_config='wxUSE_CONFIG=no'
3859                           fi
3860
3861 else
3862
3863                           LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3864                           if test "x$LINE" != x ; then
3865                             eval "DEFAULT_$LINE"
3866                           else
3867                             no_cache=1
3868                           fi
3869
3870                           ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3871
3872 fi;
3873
3874           eval "$ac_cv_use_config"
3875           if test "$no_cache" != 1; then
3876             echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3877           fi
3878
3879           if test "$wxUSE_CONFIG" = yes; then
3880             echo "$as_me:$LINENO: result: yes" >&5
3881 echo "${ECHO_T}yes" >&6
3882           else
3883             echo "$as_me:$LINENO: result: no" >&5
3884 echo "${ECHO_T}no" >&6
3885           fi
3886
3887
3888
3889           enablestring=
3890           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
3891 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
3892           no_cache=0
3893           # Check whether --enable-protocols or --disable-protocols was given.
3894 if test "${enable_protocols+set}" = set; then
3895   enableval="$enable_protocols"
3896
3897                           if test "$enableval" = yes; then
3898                             ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3899                           else
3900                             ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3901                           fi
3902
3903 else
3904
3905                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3906                           if test "x$LINE" != x ; then
3907                             eval "DEFAULT_$LINE"
3908                           else
3909                             no_cache=1
3910                           fi
3911
3912                           ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3913
3914 fi;
3915
3916           eval "$ac_cv_use_protocols"
3917           if test "$no_cache" != 1; then
3918             echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3919           fi
3920
3921           if test "$wxUSE_PROTOCOL" = yes; then
3922             echo "$as_me:$LINENO: result: yes" >&5
3923 echo "${ECHO_T}yes" >&6
3924           else
3925             echo "$as_me:$LINENO: result: no" >&5
3926 echo "${ECHO_T}no" >&6
3927           fi
3928
3929
3930           enablestring=
3931           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
3932 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
3933           no_cache=0
3934           # Check whether --enable-ftp or --disable-ftp was given.
3935 if test "${enable_ftp+set}" = set; then
3936   enableval="$enable_ftp"
3937
3938                           if test "$enableval" = yes; then
3939                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3940                           else
3941                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3942                           fi
3943
3944 else
3945
3946                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3947                           if test "x$LINE" != x ; then
3948                             eval "DEFAULT_$LINE"
3949                           else
3950                             no_cache=1
3951                           fi
3952
3953                           ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3954
3955 fi;
3956
3957           eval "$ac_cv_use_ftp"
3958           if test "$no_cache" != 1; then
3959             echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3960           fi
3961
3962           if test "$wxUSE_PROTOCOL_FTP" = yes; then
3963             echo "$as_me:$LINENO: result: yes" >&5
3964 echo "${ECHO_T}yes" >&6
3965           else
3966             echo "$as_me:$LINENO: result: no" >&5
3967 echo "${ECHO_T}no" >&6
3968           fi
3969
3970
3971           enablestring=
3972           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
3973 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
3974           no_cache=0
3975           # Check whether --enable-http or --disable-http was given.
3976 if test "${enable_http+set}" = set; then
3977   enableval="$enable_http"
3978
3979                           if test "$enableval" = yes; then
3980                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3981                           else
3982                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3983                           fi
3984
3985 else
3986
3987                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3988                           if test "x$LINE" != x ; then
3989                             eval "DEFAULT_$LINE"
3990                           else
3991                             no_cache=1
3992                           fi
3993
3994                           ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3995
3996 fi;
3997
3998           eval "$ac_cv_use_http"
3999           if test "$no_cache" != 1; then
4000             echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4001           fi
4002
4003           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4004             echo "$as_me:$LINENO: result: yes" >&5
4005 echo "${ECHO_T}yes" >&6
4006           else
4007             echo "$as_me:$LINENO: result: no" >&5
4008 echo "${ECHO_T}no" >&6
4009           fi
4010
4011
4012           enablestring=
4013           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4014 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4015           no_cache=0
4016           # Check whether --enable-fileproto or --disable-fileproto was given.
4017 if test "${enable_fileproto+set}" = set; then
4018   enableval="$enable_fileproto"
4019
4020                           if test "$enableval" = yes; then
4021                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4022                           else
4023                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4024                           fi
4025
4026 else
4027
4028                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4029                           if test "x$LINE" != x ; then
4030                             eval "DEFAULT_$LINE"
4031                           else
4032                             no_cache=1
4033                           fi
4034
4035                           ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4036
4037 fi;
4038
4039           eval "$ac_cv_use_fileproto"
4040           if test "$no_cache" != 1; then
4041             echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4042           fi
4043
4044           if test "$wxUSE_PROTOCOL_FILE" = yes; then
4045             echo "$as_me:$LINENO: result: yes" >&5
4046 echo "${ECHO_T}yes" >&6
4047           else
4048             echo "$as_me:$LINENO: result: no" >&5
4049 echo "${ECHO_T}no" >&6
4050           fi
4051
4052
4053           enablestring=
4054           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4055 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4056           no_cache=0
4057           # Check whether --enable-sockets or --disable-sockets was given.
4058 if test "${enable_sockets+set}" = set; then
4059   enableval="$enable_sockets"
4060
4061                           if test "$enableval" = yes; then
4062                             ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4063                           else
4064                             ac_cv_use_sockets='wxUSE_SOCKETS=no'
4065                           fi
4066
4067 else
4068
4069                           LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4070                           if test "x$LINE" != x ; then
4071                             eval "DEFAULT_$LINE"
4072                           else
4073                             no_cache=1
4074                           fi
4075
4076                           ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4077
4078 fi;
4079
4080           eval "$ac_cv_use_sockets"
4081           if test "$no_cache" != 1; then
4082             echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4083           fi
4084
4085           if test "$wxUSE_SOCKETS" = yes; then
4086             echo "$as_me:$LINENO: result: yes" >&5
4087 echo "${ECHO_T}yes" >&6
4088           else
4089             echo "$as_me:$LINENO: result: no" >&5
4090 echo "${ECHO_T}no" >&6
4091           fi
4092
4093
4094           enablestring=
4095           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4096 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4097           no_cache=0
4098           # Check whether --enable-ole or --disable-ole was given.
4099 if test "${enable_ole+set}" = set; then
4100   enableval="$enable_ole"
4101
4102                           if test "$enableval" = yes; then
4103                             ac_cv_use_ole='wxUSE_OLE=yes'
4104                           else
4105                             ac_cv_use_ole='wxUSE_OLE=no'
4106                           fi
4107
4108 else
4109
4110                           LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4111                           if test "x$LINE" != x ; then
4112                             eval "DEFAULT_$LINE"
4113                           else
4114                             no_cache=1
4115                           fi
4116
4117                           ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4118
4119 fi;
4120
4121           eval "$ac_cv_use_ole"
4122           if test "$no_cache" != 1; then
4123             echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4124           fi
4125
4126           if test "$wxUSE_OLE" = yes; then
4127             echo "$as_me:$LINENO: result: yes" >&5
4128 echo "${ECHO_T}yes" >&6
4129           else
4130             echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6
4132           fi
4133
4134
4135           enablestring=
4136           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4137 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4138           no_cache=0
4139           # Check whether --enable-dataobj or --disable-dataobj was given.
4140 if test "${enable_dataobj+set}" = set; then
4141   enableval="$enable_dataobj"
4142
4143                           if test "$enableval" = yes; then
4144                             ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4145                           else
4146                             ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4147                           fi
4148
4149 else
4150
4151                           LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4152                           if test "x$LINE" != x ; then
4153                             eval "DEFAULT_$LINE"
4154                           else
4155                             no_cache=1
4156                           fi
4157
4158                           ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4159
4160 fi;
4161
4162           eval "$ac_cv_use_dataobj"
4163           if test "$no_cache" != 1; then
4164             echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4165           fi
4166
4167           if test "$wxUSE_DATAOBJ" = yes; then
4168             echo "$as_me:$LINENO: result: yes" >&5
4169 echo "${ECHO_T}yes" >&6
4170           else
4171             echo "$as_me:$LINENO: result: no" >&5
4172 echo "${ECHO_T}no" >&6
4173           fi
4174
4175
4176
4177           enablestring=
4178           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4179 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4180           no_cache=0
4181           # Check whether --enable-ipc or --disable-ipc was given.
4182 if test "${enable_ipc+set}" = set; then
4183   enableval="$enable_ipc"
4184
4185                           if test "$enableval" = yes; then
4186                             ac_cv_use_ipc='wxUSE_IPC=yes'
4187                           else
4188                             ac_cv_use_ipc='wxUSE_IPC=no'
4189                           fi
4190
4191 else
4192
4193                           LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4194                           if test "x$LINE" != x ; then
4195                             eval "DEFAULT_$LINE"
4196                           else
4197                             no_cache=1
4198                           fi
4199
4200                           ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4201
4202 fi;
4203
4204           eval "$ac_cv_use_ipc"
4205           if test "$no_cache" != 1; then
4206             echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4207           fi
4208
4209           if test "$wxUSE_IPC" = yes; then
4210             echo "$as_me:$LINENO: result: yes" >&5
4211 echo "${ECHO_T}yes" >&6
4212           else
4213             echo "$as_me:$LINENO: result: no" >&5
4214 echo "${ECHO_T}no" >&6
4215           fi
4216
4217
4218
4219           enablestring=
4220           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4221 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4222           no_cache=0
4223           # Check whether --enable-cmdline or --disable-cmdline was given.
4224 if test "${enable_cmdline+set}" = set; then
4225   enableval="$enable_cmdline"
4226
4227                           if test "$enableval" = yes; then
4228                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4229                           else
4230                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4231                           fi
4232
4233 else
4234
4235                           LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4236                           if test "x$LINE" != x ; then
4237                             eval "DEFAULT_$LINE"
4238                           else
4239                             no_cache=1
4240                           fi
4241
4242                           ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4243
4244 fi;
4245
4246           eval "$ac_cv_use_cmdline"
4247           if test "$no_cache" != 1; then
4248             echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4249           fi
4250
4251           if test "$wxUSE_CMDLINE_PARSER" = yes; then
4252             echo "$as_me:$LINENO: result: yes" >&5
4253 echo "${ECHO_T}yes" >&6
4254           else
4255             echo "$as_me:$LINENO: result: no" >&5
4256 echo "${ECHO_T}no" >&6
4257           fi
4258
4259
4260           enablestring=
4261           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4262 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4263           no_cache=0
4264           # Check whether --enable-datetime or --disable-datetime was given.
4265 if test "${enable_datetime+set}" = set; then
4266   enableval="$enable_datetime"
4267
4268                           if test "$enableval" = yes; then
4269                             ac_cv_use_datetime='wxUSE_DATETIME=yes'
4270                           else
4271                             ac_cv_use_datetime='wxUSE_DATETIME=no'
4272                           fi
4273
4274 else
4275
4276                           LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4277                           if test "x$LINE" != x ; then
4278                             eval "DEFAULT_$LINE"
4279                           else
4280                             no_cache=1
4281                           fi
4282
4283                           ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4284
4285 fi;
4286
4287           eval "$ac_cv_use_datetime"
4288           if test "$no_cache" != 1; then
4289             echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4290           fi
4291
4292           if test "$wxUSE_DATETIME" = yes; then
4293             echo "$as_me:$LINENO: result: yes" >&5
4294 echo "${ECHO_T}yes" >&6
4295           else
4296             echo "$as_me:$LINENO: result: no" >&5
4297 echo "${ECHO_T}no" >&6
4298           fi
4299
4300
4301           enablestring=
4302           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
4303 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
4304           no_cache=0
4305           # Check whether --enable-stopwatch or --disable-stopwatch was given.
4306 if test "${enable_stopwatch+set}" = set; then
4307   enableval="$enable_stopwatch"
4308
4309                           if test "$enableval" = yes; then
4310                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
4311                           else
4312                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
4313                           fi
4314
4315 else
4316
4317                           LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
4318                           if test "x$LINE" != x ; then
4319                             eval "DEFAULT_$LINE"
4320                           else
4321                             no_cache=1
4322                           fi
4323
4324                           ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
4325
4326 fi;
4327
4328           eval "$ac_cv_use_stopwatch"
4329           if test "$no_cache" != 1; then
4330             echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
4331           fi
4332
4333           if test "$wxUSE_STOPWATCH" = yes; then
4334             echo "$as_me:$LINENO: result: yes" >&5
4335 echo "${ECHO_T}yes" >&6
4336           else
4337             echo "$as_me:$LINENO: result: no" >&5
4338 echo "${ECHO_T}no" >&6
4339           fi
4340
4341
4342           enablestring=
4343           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4344 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4345           no_cache=0
4346           # Check whether --enable-dialupman or --disable-dialupman was given.
4347 if test "${enable_dialupman+set}" = set; then
4348   enableval="$enable_dialupman"
4349
4350                           if test "$enableval" = yes; then
4351                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4352                           else
4353                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4354                           fi
4355
4356 else
4357
4358                           LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4359                           if test "x$LINE" != x ; then
4360                             eval "DEFAULT_$LINE"
4361                           else
4362                             no_cache=1
4363                           fi
4364
4365                           ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4366
4367 fi;
4368
4369           eval "$ac_cv_use_dialupman"
4370           if test "$no_cache" != 1; then
4371             echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4372           fi
4373
4374           if test "$wxUSE_DIALUP_MANAGER" = yes; then
4375             echo "$as_me:$LINENO: result: yes" >&5
4376 echo "${ECHO_T}yes" >&6
4377           else
4378             echo "$as_me:$LINENO: result: no" >&5
4379 echo "${ECHO_T}no" >&6
4380           fi
4381
4382
4383           enablestring=
4384           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4385 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4386           no_cache=0
4387           # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4388 if test "${enable_apple_ieee+set}" = set; then
4389   enableval="$enable_apple_ieee"
4390
4391                           if test "$enableval" = yes; then
4392                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4393                           else
4394                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4395                           fi
4396
4397 else
4398
4399                           LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4400                           if test "x$LINE" != x ; then
4401                             eval "DEFAULT_$LINE"
4402                           else
4403                             no_cache=1
4404                           fi
4405
4406                           ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4407
4408 fi;
4409
4410           eval "$ac_cv_use_apple_ieee"
4411           if test "$no_cache" != 1; then
4412             echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4413           fi
4414
4415           if test "$wxUSE_APPLE_IEEE" = yes; then
4416             echo "$as_me:$LINENO: result: yes" >&5
4417 echo "${ECHO_T}yes" >&6
4418           else
4419             echo "$as_me:$LINENO: result: no" >&5
4420 echo "${ECHO_T}no" >&6
4421           fi
4422
4423
4424           enablestring=
4425           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
4426 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
4427           no_cache=0
4428           # Check whether --enable-timer or --disable-timer was given.
4429 if test "${enable_timer+set}" = set; then
4430   enableval="$enable_timer"
4431
4432                           if test "$enableval" = yes; then
4433                             ac_cv_use_timer='wxUSE_TIMER=yes'
4434                           else
4435                             ac_cv_use_timer='wxUSE_TIMER=no'
4436                           fi
4437
4438 else
4439
4440                           LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
4441                           if test "x$LINE" != x ; then
4442                             eval "DEFAULT_$LINE"
4443                           else
4444                             no_cache=1
4445                           fi
4446
4447                           ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
4448
4449 fi;
4450
4451           eval "$ac_cv_use_timer"
4452           if test "$no_cache" != 1; then
4453             echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
4454           fi
4455
4456           if test "$wxUSE_TIMER" = yes; then
4457             echo "$as_me:$LINENO: result: yes" >&5
4458 echo "${ECHO_T}yes" >&6
4459           else
4460             echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6
4462           fi
4463
4464
4465           enablestring=
4466           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5
4467 echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6
4468           no_cache=0
4469           # Check whether --enable-wave or --disable-wave was given.
4470 if test "${enable_wave+set}" = set; then
4471   enableval="$enable_wave"
4472
4473                           if test "$enableval" = yes; then
4474                             ac_cv_use_wave='wxUSE_WAVE=yes'
4475                           else
4476                             ac_cv_use_wave='wxUSE_WAVE=no'
4477                           fi
4478
4479 else
4480
4481                           LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
4482                           if test "x$LINE" != x ; then
4483                             eval "DEFAULT_$LINE"
4484                           else
4485                             no_cache=1
4486                           fi
4487
4488                           ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
4489
4490 fi;
4491
4492           eval "$ac_cv_use_wave"
4493           if test "$no_cache" != 1; then
4494             echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
4495           fi
4496
4497           if test "$wxUSE_WAVE" = yes; then
4498             echo "$as_me:$LINENO: result: yes" >&5
4499 echo "${ECHO_T}yes" >&6
4500           else
4501             echo "$as_me:$LINENO: result: no" >&5
4502 echo "${ECHO_T}no" >&6
4503           fi
4504
4505
4506           enablestring=
4507           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fraction" >&5
4508 echo $ECHO_N "checking for --${enablestring:-enable}-fraction... $ECHO_C" >&6
4509           no_cache=0
4510           # Check whether --enable-fraction or --disable-fraction was given.
4511 if test "${enable_fraction+set}" = set; then
4512   enableval="$enable_fraction"
4513
4514                           if test "$enableval" = yes; then
4515                             ac_cv_use_fraction='wxUSE_FRACTION=yes'
4516                           else
4517                             ac_cv_use_fraction='wxUSE_FRACTION=no'
4518                           fi
4519
4520 else
4521
4522                           LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
4523                           if test "x$LINE" != x ; then
4524                             eval "DEFAULT_$LINE"
4525                           else
4526                             no_cache=1
4527                           fi
4528
4529                           ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
4530
4531 fi;
4532
4533           eval "$ac_cv_use_fraction"
4534           if test "$no_cache" != 1; then
4535             echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
4536           fi
4537
4538           if test "$wxUSE_FRACTION" = yes; then
4539             echo "$as_me:$LINENO: result: yes" >&5
4540 echo "${ECHO_T}yes" >&6
4541           else
4542             echo "$as_me:$LINENO: result: no" >&5
4543 echo "${ECHO_T}no" >&6
4544           fi
4545
4546
4547           enablestring=
4548           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4549 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4550           no_cache=0
4551           # Check whether --enable-dynlib or --disable-dynlib was given.
4552 if test "${enable_dynlib+set}" = set; then
4553   enableval="$enable_dynlib"
4554
4555                           if test "$enableval" = yes; then
4556                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4557                           else
4558                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4559                           fi
4560
4561 else
4562
4563                           LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4564                           if test "x$LINE" != x ; then
4565                             eval "DEFAULT_$LINE"
4566                           else
4567                             no_cache=1
4568                           fi
4569
4570                           ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4571
4572 fi;
4573
4574           eval "$ac_cv_use_dynlib"
4575           if test "$no_cache" != 1; then
4576             echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4577           fi
4578
4579           if test "$wxUSE_DYNLIB_CLASS" = yes; then
4580             echo "$as_me:$LINENO: result: yes" >&5
4581 echo "${ECHO_T}yes" >&6
4582           else
4583             echo "$as_me:$LINENO: result: no" >&5
4584 echo "${ECHO_T}no" >&6
4585           fi
4586
4587
4588           enablestring=
4589           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4590 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4591           no_cache=0
4592           # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4593 if test "${enable_dynamicloader+set}" = set; then
4594   enableval="$enable_dynamicloader"
4595
4596                           if test "$enableval" = yes; then
4597                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4598                           else
4599                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4600                           fi
4601
4602 else
4603
4604                           LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4605                           if test "x$LINE" != x ; then
4606                             eval "DEFAULT_$LINE"
4607                           else
4608                             no_cache=1
4609                           fi
4610
4611                           ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4612
4613 fi;
4614
4615           eval "$ac_cv_use_dynamicloader"
4616           if test "$no_cache" != 1; then
4617             echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4618           fi
4619
4620           if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4621             echo "$as_me:$LINENO: result: yes" >&5
4622 echo "${ECHO_T}yes" >&6
4623           else
4624             echo "$as_me:$LINENO: result: no" >&5
4625 echo "${ECHO_T}no" >&6
4626           fi
4627
4628
4629           enablestring=
4630           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
4631 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
4632           no_cache=0
4633           # Check whether --enable-longlong or --disable-longlong was given.
4634 if test "${enable_longlong+set}" = set; then
4635   enableval="$enable_longlong"
4636
4637                           if test "$enableval" = yes; then
4638                             ac_cv_use_longlong='wxUSE_LONGLONG=yes'
4639                           else
4640                             ac_cv_use_longlong='wxUSE_LONGLONG=no'
4641                           fi
4642
4643 else
4644
4645                           LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
4646                           if test "x$LINE" != x ; then
4647                             eval "DEFAULT_$LINE"
4648                           else
4649                             no_cache=1
4650                           fi
4651
4652                           ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
4653
4654 fi;
4655
4656           eval "$ac_cv_use_longlong"
4657           if test "$no_cache" != 1; then
4658             echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
4659           fi
4660
4661           if test "$wxUSE_LONGLONG" = yes; then
4662             echo "$as_me:$LINENO: result: yes" >&5
4663 echo "${ECHO_T}yes" >&6
4664           else
4665             echo "$as_me:$LINENO: result: no" >&5
4666 echo "${ECHO_T}no" >&6
4667           fi
4668
4669
4670           enablestring=
4671           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
4672 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
4673           no_cache=0
4674           # Check whether --enable-geometry or --disable-geometry was given.
4675 if test "${enable_geometry+set}" = set; then
4676   enableval="$enable_geometry"
4677
4678                           if test "$enableval" = yes; then
4679                             ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
4680                           else
4681                             ac_cv_use_geometry='wxUSE_GEOMETRY=no'
4682                           fi
4683
4684 else
4685
4686                           LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
4687                           if test "x$LINE" != x ; then
4688                             eval "DEFAULT_$LINE"
4689                           else
4690                             no_cache=1
4691                           fi
4692
4693                           ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
4694
4695 fi;
4696
4697           eval "$ac_cv_use_geometry"
4698           if test "$no_cache" != 1; then
4699             echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
4700           fi
4701
4702           if test "$wxUSE_GEOMETRY" = yes; then
4703             echo "$as_me:$LINENO: result: yes" >&5
4704 echo "${ECHO_T}yes" >&6
4705           else
4706             echo "$as_me:$LINENO: result: no" >&5
4707 echo "${ECHO_T}no" >&6
4708           fi
4709
4710
4711           enablestring=
4712           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
4713 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
4714           no_cache=0
4715           # Check whether --enable-log or --disable-log was given.
4716 if test "${enable_log+set}" = set; then
4717   enableval="$enable_log"
4718
4719                           if test "$enableval" = yes; then
4720                             ac_cv_use_log='wxUSE_LOG=yes'
4721                           else
4722                             ac_cv_use_log='wxUSE_LOG=no'
4723                           fi
4724
4725 else
4726
4727                           LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
4728                           if test "x$LINE" != x ; then
4729                             eval "DEFAULT_$LINE"
4730                           else
4731                             no_cache=1
4732                           fi
4733
4734                           ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
4735
4736 fi;
4737
4738           eval "$ac_cv_use_log"
4739           if test "$no_cache" != 1; then
4740             echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
4741           fi
4742
4743           if test "$wxUSE_LOG" = yes; then
4744             echo "$as_me:$LINENO: result: yes" >&5
4745 echo "${ECHO_T}yes" >&6
4746           else
4747             echo "$as_me:$LINENO: result: no" >&5
4748 echo "${ECHO_T}no" >&6
4749           fi
4750
4751
4752           enablestring=
4753           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
4754 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
4755           no_cache=0
4756           # Check whether --enable-streams or --disable-streams was given.
4757 if test "${enable_streams+set}" = set; then
4758   enableval="$enable_streams"
4759
4760                           if test "$enableval" = yes; then
4761                             ac_cv_use_streams='wxUSE_STREAMS=yes'
4762                           else
4763                             ac_cv_use_streams='wxUSE_STREAMS=no'
4764                           fi
4765
4766 else
4767
4768                           LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
4769                           if test "x$LINE" != x ; then
4770                             eval "DEFAULT_$LINE"
4771                           else
4772                             no_cache=1
4773                           fi
4774
4775                           ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
4776
4777 fi;
4778
4779           eval "$ac_cv_use_streams"
4780           if test "$no_cache" != 1; then
4781             echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
4782           fi
4783
4784           if test "$wxUSE_STREAMS" = yes; then
4785             echo "$as_me:$LINENO: result: yes" >&5
4786 echo "${ECHO_T}yes" >&6
4787           else
4788             echo "$as_me:$LINENO: result: no" >&5
4789 echo "${ECHO_T}no" >&6
4790           fi
4791
4792
4793           enablestring=
4794           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4795 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4796           no_cache=0
4797           # Check whether --enable-file or --disable-file was given.
4798 if test "${enable_file+set}" = set; then
4799   enableval="$enable_file"
4800
4801                           if test "$enableval" = yes; then
4802                             ac_cv_use_file='wxUSE_FILE=yes'
4803                           else
4804                             ac_cv_use_file='wxUSE_FILE=no'
4805                           fi
4806
4807 else
4808
4809                           LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4810                           if test "x$LINE" != x ; then
4811                             eval "DEFAULT_$LINE"
4812                           else
4813                             no_cache=1
4814                           fi
4815
4816                           ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4817
4818 fi;
4819
4820           eval "$ac_cv_use_file"
4821           if test "$no_cache" != 1; then
4822             echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4823           fi
4824
4825           if test "$wxUSE_FILE" = yes; then
4826             echo "$as_me:$LINENO: result: yes" >&5
4827 echo "${ECHO_T}yes" >&6
4828           else
4829             echo "$as_me:$LINENO: result: no" >&5
4830 echo "${ECHO_T}no" >&6
4831           fi
4832
4833
4834           enablestring=
4835           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4836 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4837           no_cache=0
4838           # Check whether --enable-ffile or --disable-ffile was given.
4839 if test "${enable_ffile+set}" = set; then
4840   enableval="$enable_ffile"
4841
4842                           if test "$enableval" = yes; then
4843                             ac_cv_use_ffile='wxUSE_FFILE=yes'
4844                           else
4845                             ac_cv_use_ffile='wxUSE_FFILE=no'
4846                           fi
4847
4848 else
4849
4850                           LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4851                           if test "x$LINE" != x ; then
4852                             eval "DEFAULT_$LINE"
4853                           else
4854                             no_cache=1
4855                           fi
4856
4857                           ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4858
4859 fi;
4860
4861           eval "$ac_cv_use_ffile"
4862           if test "$no_cache" != 1; then
4863             echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4864           fi
4865
4866           if test "$wxUSE_FFILE" = yes; then
4867             echo "$as_me:$LINENO: result: yes" >&5
4868 echo "${ECHO_T}yes" >&6
4869           else
4870             echo "$as_me:$LINENO: result: no" >&5
4871 echo "${ECHO_T}no" >&6
4872           fi
4873
4874
4875           enablestring=
4876           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
4877 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
4878           no_cache=0
4879           # Check whether --enable-textbuf or --disable-textbuf was given.
4880 if test "${enable_textbuf+set}" = set; then
4881   enableval="$enable_textbuf"
4882
4883                           if test "$enableval" = yes; then
4884                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4885                           else
4886                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4887                           fi
4888
4889 else
4890
4891                           LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4892                           if test "x$LINE" != x ; then
4893                             eval "DEFAULT_$LINE"
4894                           else
4895                             no_cache=1
4896                           fi
4897
4898                           ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4899
4900 fi;
4901
4902           eval "$ac_cv_use_textbuf"
4903           if test "$no_cache" != 1; then
4904             echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4905           fi
4906
4907           if test "$wxUSE_TEXTBUFFER" = yes; then
4908             echo "$as_me:$LINENO: result: yes" >&5
4909 echo "${ECHO_T}yes" >&6
4910           else
4911             echo "$as_me:$LINENO: result: no" >&5
4912 echo "${ECHO_T}no" >&6
4913           fi
4914
4915
4916           enablestring=
4917           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
4918 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
4919           no_cache=0
4920           # Check whether --enable-textfile or --disable-textfile was given.
4921 if test "${enable_textfile+set}" = set; then
4922   enableval="$enable_textfile"
4923
4924                           if test "$enableval" = yes; then
4925                             ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4926                           else
4927                             ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4928                           fi
4929
4930 else
4931
4932                           LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4933                           if test "x$LINE" != x ; then
4934                             eval "DEFAULT_$LINE"
4935                           else
4936                             no_cache=1
4937                           fi
4938
4939                           ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4940
4941 fi;
4942
4943           eval "$ac_cv_use_textfile"
4944           if test "$no_cache" != 1; then
4945             echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4946           fi
4947
4948           if test "$wxUSE_TEXTFILE" = yes; then
4949             echo "$as_me:$LINENO: result: yes" >&5
4950 echo "${ECHO_T}yes" >&6
4951           else
4952             echo "$as_me:$LINENO: result: no" >&5
4953 echo "${ECHO_T}no" >&6
4954           fi
4955
4956
4957           enablestring=
4958           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4959 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
4960           no_cache=0
4961           # Check whether --enable-fontmap or --disable-fontmap was given.
4962 if test "${enable_fontmap+set}" = set; then
4963   enableval="$enable_fontmap"
4964
4965                           if test "$enableval" = yes; then
4966                             ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4967                           else
4968                             ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4969                           fi
4970
4971 else
4972
4973                           LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4974                           if test "x$LINE" != x ; then
4975                             eval "DEFAULT_$LINE"
4976                           else
4977                             no_cache=1
4978                           fi
4979
4980                           ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4981
4982 fi;
4983
4984           eval "$ac_cv_use_fontmap"
4985           if test "$no_cache" != 1; then
4986             echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4987           fi
4988
4989           if test "$wxUSE_FONTMAP" = yes; then
4990             echo "$as_me:$LINENO: result: yes" >&5
4991 echo "${ECHO_T}yes" >&6
4992           else
4993             echo "$as_me:$LINENO: result: no" >&5
4994 echo "${ECHO_T}no" >&6
4995           fi
4996
4997
4998           enablestring=
4999           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5000 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5001           no_cache=0
5002           # Check whether --enable-unicode or --disable-unicode was given.
5003 if test "${enable_unicode+set}" = set; then
5004   enableval="$enable_unicode"
5005
5006                           if test "$enableval" = yes; then
5007                             ac_cv_use_unicode='wxUSE_UNICODE=yes'
5008                           else
5009                             ac_cv_use_unicode='wxUSE_UNICODE=no'
5010                           fi
5011
5012 else
5013
5014                           LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5015                           if test "x$LINE" != x ; then
5016                             eval "DEFAULT_$LINE"
5017                           else
5018                             no_cache=1
5019                           fi
5020
5021                           ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5022
5023 fi;
5024
5025           eval "$ac_cv_use_unicode"
5026           if test "$no_cache" != 1; then
5027             echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5028           fi
5029
5030           if test "$wxUSE_UNICODE" = yes; then
5031             echo "$as_me:$LINENO: result: yes" >&5
5032 echo "${ECHO_T}yes" >&6
5033           else
5034             echo "$as_me:$LINENO: result: no" >&5
5035 echo "${ECHO_T}no" >&6
5036           fi
5037
5038
5039           enablestring=
5040           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5041 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5042           no_cache=0
5043           # Check whether --enable-mslu or --disable-mslu was given.
5044 if test "${enable_mslu+set}" = set; then
5045   enableval="$enable_mslu"
5046
5047                           if test "$enableval" = yes; then
5048                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5049                           else
5050                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5051                           fi
5052
5053 else
5054
5055                           LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5056                           if test "x$LINE" != x ; then
5057                             eval "DEFAULT_$LINE"
5058                           else
5059                             no_cache=1
5060                           fi
5061
5062                           ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5063
5064 fi;
5065
5066           eval "$ac_cv_use_mslu"
5067           if test "$no_cache" != 1; then
5068             echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5069           fi
5070
5071           if test "$wxUSE_UNICODE_MSLU" = yes; then
5072             echo "$as_me:$LINENO: result: yes" >&5
5073 echo "${ECHO_T}yes" >&6
5074           else
5075             echo "$as_me:$LINENO: result: no" >&5
5076 echo "${ECHO_T}no" >&6
5077           fi
5078
5079
5080           enablestring=
5081           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5082 echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5083           no_cache=0
5084           # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5085 if test "${enable_wxprintfv+set}" = set; then
5086   enableval="$enable_wxprintfv"
5087
5088                           if test "$enableval" = yes; then
5089                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5090                           else
5091                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5092                           fi
5093
5094 else
5095
5096                           LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5097                           if test "x$LINE" != x ; then
5098                             eval "DEFAULT_$LINE"
5099                           else
5100                             no_cache=1
5101                           fi
5102
5103                           ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5104
5105 fi;
5106
5107           eval "$ac_cv_use_wxprintfv"
5108           if test "$no_cache" != 1; then
5109             echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5110           fi
5111
5112           if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5113             echo "$as_me:$LINENO: result: yes" >&5
5114 echo "${ECHO_T}yes" >&6
5115           else
5116             echo "$as_me:$LINENO: result: no" >&5
5117 echo "${ECHO_T}no" >&6
5118           fi
5119
5120
5121           enablestring=
5122           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5123 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5124           no_cache=0
5125           # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5126 if test "${enable_std_iostreams+set}" = set; then
5127   enableval="$enable_std_iostreams"
5128
5129                           if test "$enableval" = yes; then
5130                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5131                           else
5132                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5133                           fi
5134
5135 else
5136
5137                           LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5138                           if test "x$LINE" != x ; then
5139                             eval "DEFAULT_$LINE"
5140                           else
5141                             no_cache=1
5142                           fi
5143
5144                           ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5145
5146 fi;
5147
5148           eval "$ac_cv_use_std_iostreams"
5149           if test "$no_cache" != 1; then
5150             echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5151           fi
5152
5153           if test "$wxUSE_STD_IOSTREAM" = yes; then
5154             echo "$as_me:$LINENO: result: yes" >&5
5155 echo "${ECHO_T}yes" >&6
5156           else
5157             echo "$as_me:$LINENO: result: no" >&5
5158 echo "${ECHO_T}no" >&6
5159           fi
5160
5161
5162           enablestring=
5163           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5164 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5165           no_cache=0
5166           # Check whether --enable-filesystem or --disable-filesystem was given.
5167 if test "${enable_filesystem+set}" = set; then
5168   enableval="$enable_filesystem"
5169
5170                           if test "$enableval" = yes; then
5171                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5172                           else
5173                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5174                           fi
5175
5176 else
5177
5178                           LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5179                           if test "x$LINE" != x ; then
5180                             eval "DEFAULT_$LINE"
5181                           else
5182                             no_cache=1
5183                           fi
5184
5185                           ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5186
5187 fi;
5188
5189           eval "$ac_cv_use_filesystem"
5190           if test "$no_cache" != 1; then
5191             echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5192           fi
5193
5194           if test "$wxUSE_FILESYSTEM" = yes; then
5195             echo "$as_me:$LINENO: result: yes" >&5
5196 echo "${ECHO_T}yes" >&6
5197           else
5198             echo "$as_me:$LINENO: result: no" >&5
5199 echo "${ECHO_T}no" >&6
5200           fi
5201
5202
5203           enablestring=
5204           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5205 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5206           no_cache=0
5207           # Check whether --enable-fs_inet or --disable-fs_inet was given.
5208 if test "${enable_fs_inet+set}" = set; then
5209   enableval="$enable_fs_inet"
5210
5211                           if test "$enableval" = yes; then
5212                             ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5213                           else
5214                             ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5215                           fi
5216
5217 else
5218
5219                           LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5220                           if test "x$LINE" != x ; then
5221                             eval "DEFAULT_$LINE"
5222                           else
5223                             no_cache=1
5224                           fi
5225
5226                           ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5227
5228 fi;
5229
5230           eval "$ac_cv_use_fs_inet"
5231           if test "$no_cache" != 1; then
5232             echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5233           fi
5234
5235           if test "$wxUSE_FS_INET" = yes; then
5236             echo "$as_me:$LINENO: result: yes" >&5
5237 echo "${ECHO_T}yes" >&6
5238           else
5239             echo "$as_me:$LINENO: result: no" >&5
5240 echo "${ECHO_T}no" >&6
5241           fi
5242
5243
5244           enablestring=
5245           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5246 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5247           no_cache=0
5248           # Check whether --enable-fs_zip or --disable-fs_zip was given.
5249 if test "${enable_fs_zip+set}" = set; then
5250   enableval="$enable_fs_zip"
5251
5252                           if test "$enableval" = yes; then
5253                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5254                           else
5255                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5256                           fi
5257
5258 else
5259
5260                           LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5261                           if test "x$LINE" != x ; then
5262                             eval "DEFAULT_$LINE"
5263                           else
5264                             no_cache=1
5265                           fi
5266
5267                           ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5268
5269 fi;
5270
5271           eval "$ac_cv_use_fs_zip"
5272           if test "$no_cache" != 1; then
5273             echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5274           fi
5275
5276           if test "$wxUSE_FS_ZIP" = yes; then
5277             echo "$as_me:$LINENO: result: yes" >&5
5278 echo "${ECHO_T}yes" >&6
5279           else
5280             echo "$as_me:$LINENO: result: no" >&5
5281 echo "${ECHO_T}no" >&6
5282           fi
5283
5284
5285           enablestring=
5286           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5287 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5288           no_cache=0
5289           # Check whether --enable-zipstream or --disable-zipstream was given.
5290 if test "${enable_zipstream+set}" = set; then
5291   enableval="$enable_zipstream"
5292
5293                           if test "$enableval" = yes; then
5294                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5295                           else
5296                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5297                           fi
5298
5299 else
5300
5301                           LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5302                           if test "x$LINE" != x ; then
5303                             eval "DEFAULT_$LINE"
5304                           else
5305                             no_cache=1
5306                           fi
5307
5308                           ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5309
5310 fi;
5311
5312           eval "$ac_cv_use_zipstream"
5313           if test "$no_cache" != 1; then
5314             echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5315           fi
5316
5317           if test "$wxUSE_ZIPSTREAM" = yes; then
5318             echo "$as_me:$LINENO: result: yes" >&5
5319 echo "${ECHO_T}yes" >&6
5320           else
5321             echo "$as_me:$LINENO: result: no" >&5
5322 echo "${ECHO_T}no" >&6
5323           fi
5324
5325
5326
5327           enablestring=
5328           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5329 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
5330           no_cache=0
5331           # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5332 if test "${enable_catch_segvs+set}" = set; then
5333   enableval="$enable_catch_segvs"
5334
5335                           if test "$enableval" = yes; then
5336                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
5337                           else
5338                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
5339                           fi
5340
5341 else
5342
5343                           LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
5344                           if test "x$LINE" != x ; then
5345                             eval "DEFAULT_$LINE"
5346                           else
5347                             no_cache=1
5348                           fi
5349
5350                           ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
5351
5352 fi;
5353
5354           eval "$ac_cv_use_catch_segvs"
5355           if test "$no_cache" != 1; then
5356             echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
5357           fi
5358
5359           if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
5360             echo "$as_me:$LINENO: result: yes" >&5
5361 echo "${ECHO_T}yes" >&6
5362           else
5363             echo "$as_me:$LINENO: result: no" >&5
5364 echo "${ECHO_T}no" >&6
5365           fi
5366
5367
5368           enablestring=
5369           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5370 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5371           no_cache=0
5372           # Check whether --enable-snglinst or --disable-snglinst was given.
5373 if test "${enable_snglinst+set}" = set; then
5374   enableval="$enable_snglinst"
5375
5376                           if test "$enableval" = yes; then
5377                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5378                           else
5379                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5380                           fi
5381
5382 else
5383
5384                           LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5385                           if test "x$LINE" != x ; then
5386                             eval "DEFAULT_$LINE"
5387                           else
5388                             no_cache=1
5389                           fi
5390
5391                           ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5392
5393 fi;
5394
5395           eval "$ac_cv_use_snglinst"
5396           if test "$no_cache" != 1; then
5397             echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5398           fi
5399
5400           if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5401             echo "$as_me:$LINENO: result: yes" >&5
5402 echo "${ECHO_T}yes" >&6
5403           else
5404             echo "$as_me:$LINENO: result: no" >&5
5405 echo "${ECHO_T}no" >&6
5406           fi
5407
5408
5409
5410           enablestring=
5411           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5412 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5413           no_cache=0
5414           # Check whether --enable-mimetype or --disable-mimetype was given.
5415 if test "${enable_mimetype+set}" = set; then
5416   enableval="$enable_mimetype"
5417
5418                           if test "$enableval" = yes; then
5419                             ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5420                           else
5421                             ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5422                           fi
5423
5424 else
5425
5426                           LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5427                           if test "x$LINE" != x ; then
5428                             eval "DEFAULT_$LINE"
5429                           else
5430                             no_cache=1
5431                           fi
5432
5433                           ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5434
5435 fi;
5436
5437           eval "$ac_cv_use_mimetype"
5438           if test "$no_cache" != 1; then
5439             echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5440           fi
5441
5442           if test "$wxUSE_MIMETYPE" = yes; then
5443             echo "$as_me:$LINENO: result: yes" >&5
5444 echo "${ECHO_T}yes" >&6
5445           else
5446             echo "$as_me:$LINENO: result: no" >&5
5447 echo "${ECHO_T}no" >&6
5448           fi
5449
5450
5451           enablestring=
5452           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5453 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5454           no_cache=0
5455           # Check whether --enable-system_options or --disable-system_options was given.
5456 if test "${enable_system_options+set}" = set; then
5457   enableval="$enable_system_options"
5458
5459                           if test "$enableval" = yes; then
5460                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5461                           else
5462                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5463                           fi
5464
5465 else
5466
5467                           LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5468                           if test "x$LINE" != x ; then
5469                             eval "DEFAULT_$LINE"
5470                           else
5471                             no_cache=1
5472                           fi
5473
5474                           ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5475
5476 fi;
5477
5478           eval "$ac_cv_use_system_options"
5479           if test "$no_cache" != 1; then
5480             echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5481           fi
5482
5483           if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5484             echo "$as_me:$LINENO: result: yes" >&5
5485 echo "${ECHO_T}yes" >&6
5486           else
5487             echo "$as_me:$LINENO: result: no" >&5
5488 echo "${ECHO_T}no" >&6
5489           fi
5490
5491
5492
5493           enablestring=
5494           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5495 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5496           no_cache=0
5497           # Check whether --enable-url or --disable-url was given.
5498 if test "${enable_url+set}" = set; then
5499   enableval="$enable_url"
5500
5501                           if test "$enableval" = yes; then
5502                             ac_cv_use_url='wxUSE_URL=yes'
5503                           else
5504                             ac_cv_use_url='wxUSE_URL=no'
5505                           fi
5506
5507 else
5508
5509                           LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5510                           if test "x$LINE" != x ; then
5511                             eval "DEFAULT_$LINE"
5512                           else
5513                             no_cache=1
5514                           fi
5515
5516                           ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5517
5518 fi;
5519
5520           eval "$ac_cv_use_url"
5521           if test "$no_cache" != 1; then
5522             echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5523           fi
5524
5525           if test "$wxUSE_URL" = yes; then
5526             echo "$as_me:$LINENO: result: yes" >&5
5527 echo "${ECHO_T}yes" >&6
5528           else
5529             echo "$as_me:$LINENO: result: no" >&5
5530 echo "${ECHO_T}no" >&6
5531           fi
5532
5533
5534           enablestring=
5535           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5536 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5537           no_cache=0
5538           # Check whether --enable-protocol or --disable-protocol was given.
5539 if test "${enable_protocol+set}" = set; then
5540   enableval="$enable_protocol"
5541
5542                           if test "$enableval" = yes; then
5543                             ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5544                           else
5545                             ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5546                           fi
5547
5548 else
5549
5550                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5551                           if test "x$LINE" != x ; then
5552                             eval "DEFAULT_$LINE"
5553                           else
5554                             no_cache=1
5555                           fi
5556
5557                           ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5558
5559 fi;
5560
5561           eval "$ac_cv_use_protocol"
5562           if test "$no_cache" != 1; then
5563             echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5564           fi
5565
5566           if test "$wxUSE_PROTOCOL" = yes; then
5567             echo "$as_me:$LINENO: result: yes" >&5
5568 echo "${ECHO_T}yes" >&6
5569           else
5570             echo "$as_me:$LINENO: result: no" >&5
5571 echo "${ECHO_T}no" >&6
5572           fi
5573
5574
5575           enablestring=
5576           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5577 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
5578           no_cache=0
5579           # Check whether --enable-protocol_http or --disable-protocol_http was given.
5580 if test "${enable_protocol_http+set}" = set; then
5581   enableval="$enable_protocol_http"
5582
5583                           if test "$enableval" = yes; then
5584                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5585                           else
5586                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5587                           fi
5588
5589 else
5590
5591                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5592                           if test "x$LINE" != x ; then
5593                             eval "DEFAULT_$LINE"
5594                           else
5595                             no_cache=1
5596                           fi
5597
5598                           ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5599
5600 fi;
5601
5602           eval "$ac_cv_use_protocol_http"
5603           if test "$no_cache" != 1; then
5604             echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5605           fi
5606
5607           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5608             echo "$as_me:$LINENO: result: yes" >&5
5609 echo "${ECHO_T}yes" >&6
5610           else
5611             echo "$as_me:$LINENO: result: no" >&5
5612 echo "${ECHO_T}no" >&6
5613           fi
5614
5615
5616           enablestring=
5617           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5618 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
5619           no_cache=0
5620           # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5621 if test "${enable_protocol_ftp+set}" = set; then
5622   enableval="$enable_protocol_ftp"
5623
5624                           if test "$enableval" = yes; then
5625                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5626                           else
5627                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5628                           fi
5629
5630 else
5631
5632                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5633                           if test "x$LINE" != x ; then
5634                             eval "DEFAULT_$LINE"
5635                           else
5636                             no_cache=1
5637                           fi
5638
5639                           ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5640
5641 fi;
5642
5643           eval "$ac_cv_use_protocol_ftp"
5644           if test "$no_cache" != 1; then
5645             echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5646           fi
5647
5648           if test "$wxUSE_PROTOCOL_FTP" = yes; then
5649             echo "$as_me:$LINENO: result: yes" >&5
5650 echo "${ECHO_T}yes" >&6
5651           else
5652             echo "$as_me:$LINENO: result: no" >&5
5653 echo "${ECHO_T}no" >&6
5654           fi
5655
5656
5657           enablestring=
5658           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5659 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
5660           no_cache=0
5661           # Check whether --enable-protocol_file or --disable-protocol_file was given.
5662 if test "${enable_protocol_file+set}" = set; then
5663   enableval="$enable_protocol_file"
5664
5665                           if test "$enableval" = yes; then
5666                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5667                           else
5668                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5669                           fi
5670
5671 else
5672
5673                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5674                           if test "x$LINE" != x ; then
5675                             eval "DEFAULT_$LINE"
5676                           else
5677                             no_cache=1
5678                           fi
5679
5680                           ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
5681
5682 fi;
5683
5684           eval "$ac_cv_use_protocol_file"
5685           if test "$no_cache" != 1; then
5686             echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5687           fi
5688
5689           if test "$wxUSE_PROTOCOL_FILE" = yes; then
5690             echo "$as_me:$LINENO: result: yes" >&5
5691 echo "${ECHO_T}yes" >&6
5692           else
5693             echo "$as_me:$LINENO: result: no" >&5
5694 echo "${ECHO_T}no" >&6
5695           fi
5696
5697
5698
5699
5700
5701           enablestring=
5702           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5703 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
5704           no_cache=0
5705           # Check whether --enable-threads or --disable-threads was given.
5706 if test "${enable_threads+set}" = set; then
5707   enableval="$enable_threads"
5708
5709                           if test "$enableval" = yes; then
5710                             ac_cv_use_threads='wxUSE_THREADS=yes'
5711                           else
5712                             ac_cv_use_threads='wxUSE_THREADS=no'
5713                           fi
5714
5715 else
5716
5717                           LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5718                           if test "x$LINE" != x ; then
5719                             eval "DEFAULT_$LINE"
5720                           else
5721                             no_cache=1
5722                           fi
5723
5724                           ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
5725
5726 fi;
5727
5728           eval "$ac_cv_use_threads"
5729           if test "$no_cache" != 1; then
5730             echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5731           fi
5732
5733           if test "$wxUSE_THREADS" = yes; then
5734             echo "$as_me:$LINENO: result: yes" >&5
5735 echo "${ECHO_T}yes" >&6
5736           else
5737             echo "$as_me:$LINENO: result: no" >&5
5738 echo "${ECHO_T}no" >&6
5739           fi
5740
5741
5742 if test "$wxUSE_GUI" = "yes"; then
5743
5744
5745
5746           enablestring=
5747           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
5748 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
5749           no_cache=0
5750           # Check whether --enable-docview or --disable-docview was given.
5751 if test "${enable_docview+set}" = set; then
5752   enableval="$enable_docview"
5753
5754                           if test "$enableval" = yes; then
5755                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5756                           else
5757                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5758                           fi
5759
5760 else
5761
5762                           LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5763                           if test "x$LINE" != x ; then
5764                             eval "DEFAULT_$LINE"
5765                           else
5766                             no_cache=1
5767                           fi
5768
5769                           ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
5770
5771 fi;
5772
5773           eval "$ac_cv_use_docview"
5774           if test "$no_cache" != 1; then
5775             echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5776           fi
5777
5778           if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
5779             echo "$as_me:$LINENO: result: yes" >&5
5780 echo "${ECHO_T}yes" >&6
5781           else
5782             echo "$as_me:$LINENO: result: no" >&5
5783 echo "${ECHO_T}no" >&6
5784           fi
5785
5786
5787           enablestring=
5788           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
5789 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
5790           no_cache=0
5791           # Check whether --enable-help or --disable-help was given.
5792 if test "${enable_help+set}" = set; then
5793   enableval="$enable_help"
5794
5795                           if test "$enableval" = yes; then
5796                             ac_cv_use_help='wxUSE_HELP=yes'
5797                           else
5798                             ac_cv_use_help='wxUSE_HELP=no'
5799                           fi
5800
5801 else
5802
5803                           LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5804                           if test "x$LINE" != x ; then
5805                             eval "DEFAULT_$LINE"
5806                           else
5807                             no_cache=1
5808                           fi
5809
5810                           ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
5811
5812 fi;
5813
5814           eval "$ac_cv_use_help"
5815           if test "$no_cache" != 1; then
5816             echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5817           fi
5818
5819           if test "$wxUSE_HELP" = yes; then
5820             echo "$as_me:$LINENO: result: yes" >&5
5821 echo "${ECHO_T}yes" >&6
5822           else
5823             echo "$as_me:$LINENO: result: no" >&5
5824 echo "${ECHO_T}no" >&6
5825           fi
5826
5827
5828           enablestring=
5829           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5830 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
5831           no_cache=0
5832           # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5833 if test "${enable_mshtmlhelp+set}" = set; then
5834   enableval="$enable_mshtmlhelp"
5835
5836                           if test "$enableval" = yes; then
5837                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5838                           else
5839                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
5840                           fi
5841
5842 else
5843
5844                           LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
5845                           if test "x$LINE" != x ; then
5846                             eval "DEFAULT_$LINE"
5847                           else
5848                             no_cache=1
5849                           fi
5850
5851                           ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
5852
5853 fi;
5854
5855           eval "$ac_cv_use_mshtmlhelp"
5856           if test "$no_cache" != 1; then
5857             echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
5858           fi
5859
5860           if test "$wxUSE_MS_HTML_HELP" = yes; then
5861             echo "$as_me:$LINENO: result: yes" >&5
5862 echo "${ECHO_T}yes" >&6
5863           else
5864             echo "$as_me:$LINENO: result: no" >&5
5865 echo "${ECHO_T}no" >&6
5866           fi
5867
5868
5869           enablestring=
5870           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
5871 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
5872           no_cache=0
5873           # Check whether --enable-html or --disable-html was given.
5874 if test "${enable_html+set}" = set; then
5875   enableval="$enable_html"
5876
5877                           if test "$enableval" = yes; then
5878                             ac_cv_use_html='wxUSE_HTML=yes'
5879                           else
5880                             ac_cv_use_html='wxUSE_HTML=no'
5881                           fi
5882
5883 else
5884
5885                           LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
5886                           if test "x$LINE" != x ; then
5887                             eval "DEFAULT_$LINE"
5888                           else
5889                             no_cache=1
5890                           fi
5891
5892                           ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
5893
5894 fi;
5895
5896           eval "$ac_cv_use_html"
5897           if test "$no_cache" != 1; then
5898             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
5899           fi
5900
5901           if test "$wxUSE_HTML" = yes; then
5902             echo "$as_me:$LINENO: result: yes" >&5
5903 echo "${ECHO_T}yes" >&6
5904           else
5905             echo "$as_me:$LINENO: result: no" >&5
5906 echo "${ECHO_T}no" >&6
5907           fi
5908
5909
5910           enablestring=
5911           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
5912 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
5913           no_cache=0
5914           # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5915 if test "${enable_htmlhelp+set}" = set; then
5916   enableval="$enable_htmlhelp"
5917
5918                           if test "$enableval" = yes; then
5919                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5920                           else
5921                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5922                           fi
5923
5924 else
5925
5926                           LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5927                           if test "x$LINE" != x ; then
5928                             eval "DEFAULT_$LINE"
5929                           else
5930                             no_cache=1
5931                           fi
5932
5933                           ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5934
5935 fi;
5936
5937           eval "$ac_cv_use_htmlhelp"
5938           if test "$no_cache" != 1; then
5939             echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5940           fi
5941
5942           if test "$wxUSE_WXHTML_HELP" = yes; then
5943             echo "$as_me:$LINENO: result: yes" >&5
5944 echo "${ECHO_T}yes" >&6
5945           else
5946             echo "$as_me:$LINENO: result: no" >&5
5947 echo "${ECHO_T}no" >&6
5948           fi
5949
5950
5951           enablestring=
5952           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
5953 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
5954           no_cache=0
5955           # Check whether --enable-constraints or --disable-constraints was given.
5956 if test "${enable_constraints+set}" = set; then
5957   enableval="$enable_constraints"
5958
5959                           if test "$enableval" = yes; then
5960                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5961                           else
5962                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5963                           fi
5964
5965 else
5966
5967                           LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5968                           if test "x$LINE" != x ; then
5969                             eval "DEFAULT_$LINE"
5970                           else
5971                             no_cache=1
5972                           fi
5973
5974                           ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5975
5976 fi;
5977
5978           eval "$ac_cv_use_constraints"
5979           if test "$no_cache" != 1; then
5980             echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5981           fi
5982
5983           if test "$wxUSE_CONSTRAINTS" = yes; then
5984             echo "$as_me:$LINENO: result: yes" >&5
5985 echo "${ECHO_T}yes" >&6
5986           else
5987             echo "$as_me:$LINENO: result: no" >&5
5988 echo "${ECHO_T}no" >&6
5989           fi
5990
5991
5992           enablestring=
5993           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
5994 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
5995           no_cache=0
5996           # Check whether --enable-printarch or --disable-printarch was given.
5997 if test "${enable_printarch+set}" = set; then
5998   enableval="$enable_printarch"
5999
6000                           if test "$enableval" = yes; then
6001                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6002                           else
6003                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6004                           fi
6005
6006 else
6007
6008                           LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6009                           if test "x$LINE" != x ; then
6010                             eval "DEFAULT_$LINE"
6011                           else
6012                             no_cache=1
6013                           fi
6014
6015                           ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6016
6017 fi;
6018
6019           eval "$ac_cv_use_printarch"
6020           if test "$no_cache" != 1; then
6021             echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6022           fi
6023
6024           if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6025             echo "$as_me:$LINENO: result: yes" >&5
6026 echo "${ECHO_T}yes" >&6
6027           else
6028             echo "$as_me:$LINENO: result: no" >&5
6029 echo "${ECHO_T}no" >&6
6030           fi
6031
6032
6033           enablestring=
6034           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6035 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6036           no_cache=0
6037           # Check whether --enable-mdi or --disable-mdi was given.
6038 if test "${enable_mdi+set}" = set; then
6039   enableval="$enable_mdi"
6040
6041                           if test "$enableval" = yes; then
6042                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6043                           else
6044                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6045                           fi
6046
6047 else
6048
6049                           LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6050                           if test "x$LINE" != x ; then
6051                             eval "DEFAULT_$LINE"
6052                           else
6053                             no_cache=1
6054                           fi
6055
6056                           ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6057
6058 fi;
6059
6060           eval "$ac_cv_use_mdi"
6061           if test "$no_cache" != 1; then
6062             echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6063           fi
6064
6065           if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6066             echo "$as_me:$LINENO: result: yes" >&5
6067 echo "${ECHO_T}yes" >&6
6068           else
6069             echo "$as_me:$LINENO: result: no" >&5
6070 echo "${ECHO_T}no" >&6
6071           fi
6072
6073
6074           enablestring=
6075           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6076 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6077           no_cache=0
6078           # Check whether --enable-loggui or --disable-loggui was given.
6079 if test "${enable_loggui+set}" = set; then
6080   enableval="$enable_loggui"
6081
6082                           if test "$enableval" = yes; then
6083                             ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6084                           else
6085                             ac_cv_use_loggui='wxUSE_LOGGUI=no'
6086                           fi
6087
6088 else
6089
6090                           LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6091                           if test "x$LINE" != x ; then
6092                             eval "DEFAULT_$LINE"
6093                           else
6094                             no_cache=1
6095                           fi
6096
6097                           ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6098
6099 fi;
6100
6101           eval "$ac_cv_use_loggui"
6102           if test "$no_cache" != 1; then
6103             echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6104           fi
6105
6106           if test "$wxUSE_LOGGUI" = yes; then
6107             echo "$as_me:$LINENO: result: yes" >&5
6108 echo "${ECHO_T}yes" >&6
6109           else
6110             echo "$as_me:$LINENO: result: no" >&5
6111 echo "${ECHO_T}no" >&6
6112           fi
6113
6114
6115           enablestring=
6116           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6117 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6118           no_cache=0
6119           # Check whether --enable-logwin or --disable-logwin was given.
6120 if test "${enable_logwin+set}" = set; then
6121   enableval="$enable_logwin"
6122
6123                           if test "$enableval" = yes; then
6124                             ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6125                           else
6126                             ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6127                           fi
6128
6129 else
6130
6131                           LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6132                           if test "x$LINE" != x ; then
6133                             eval "DEFAULT_$LINE"
6134                           else
6135                             no_cache=1
6136                           fi
6137
6138                           ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6139
6140 fi;
6141
6142           eval "$ac_cv_use_logwin"
6143           if test "$no_cache" != 1; then
6144             echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6145           fi
6146
6147           if test "$wxUSE_LOGWINDOW" = yes; then
6148             echo "$as_me:$LINENO: result: yes" >&5
6149 echo "${ECHO_T}yes" >&6
6150           else
6151             echo "$as_me:$LINENO: result: no" >&5
6152 echo "${ECHO_T}no" >&6
6153           fi
6154
6155
6156           enablestring=
6157           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6158 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6159           no_cache=0
6160           # Check whether --enable-logdialog or --disable-logdialog was given.
6161 if test "${enable_logdialog+set}" = set; then
6162   enableval="$enable_logdialog"
6163
6164                           if test "$enableval" = yes; then
6165                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6166                           else
6167                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6168                           fi
6169
6170 else
6171
6172                           LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6173                           if test "x$LINE" != x ; then
6174                             eval "DEFAULT_$LINE"
6175                           else
6176                             no_cache=1
6177                           fi
6178
6179                           ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6180
6181 fi;
6182
6183           eval "$ac_cv_use_logdialog"
6184           if test "$no_cache" != 1; then
6185             echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6186           fi
6187
6188           if test "$wxUSE_LOGDIALOG" = yes; then
6189             echo "$as_me:$LINENO: result: yes" >&5
6190 echo "${ECHO_T}yes" >&6
6191           else
6192             echo "$as_me:$LINENO: result: no" >&5
6193 echo "${ECHO_T}no" >&6
6194           fi
6195
6196
6197
6198           enablestring=
6199           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6200 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6201           no_cache=0
6202           # Check whether --enable-postscript or --disable-postscript was given.
6203 if test "${enable_postscript+set}" = set; then
6204   enableval="$enable_postscript"
6205
6206                           if test "$enableval" = yes; then
6207                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6208                           else
6209                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6210                           fi
6211
6212 else
6213
6214                           LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6215                           if test "x$LINE" != x ; then
6216                             eval "DEFAULT_$LINE"
6217                           else
6218                             no_cache=1
6219                           fi
6220
6221                           ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6222
6223 fi;
6224
6225           eval "$ac_cv_use_postscript"
6226           if test "$no_cache" != 1; then
6227             echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6228           fi
6229
6230           if test "$wxUSE_POSTSCRIPT" = yes; then
6231             echo "$as_me:$LINENO: result: yes" >&5
6232 echo "${ECHO_T}yes" >&6
6233           else
6234             echo "$as_me:$LINENO: result: no" >&5
6235 echo "${ECHO_T}no" >&6
6236           fi
6237
6238
6239
6240
6241
6242           enablestring=
6243           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6244 echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6245           no_cache=0
6246           # Check whether --enable-prologio or --disable-prologio was given.
6247 if test "${enable_prologio+set}" = set; then
6248   enableval="$enable_prologio"
6249
6250                           if test "$enableval" = yes; then
6251                             ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6252                           else
6253                             ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6254                           fi
6255
6256 else
6257
6258                           LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6259                           if test "x$LINE" != x ; then
6260                             eval "DEFAULT_$LINE"
6261                           else
6262                             no_cache=1
6263                           fi
6264
6265                           ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6266
6267 fi;
6268
6269           eval "$ac_cv_use_prologio"
6270           if test "$no_cache" != 1; then
6271             echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6272           fi
6273
6274           if test "$wxUSE_PROLOGIO" = yes; then
6275             echo "$as_me:$LINENO: result: yes" >&5
6276 echo "${ECHO_T}yes" >&6
6277           else
6278             echo "$as_me:$LINENO: result: no" >&5
6279 echo "${ECHO_T}no" >&6
6280           fi
6281
6282
6283           enablestring=
6284           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6285 echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6286           no_cache=0
6287           # Check whether --enable-resources or --disable-resources was given.
6288 if test "${enable_resources+set}" = set; then
6289   enableval="$enable_resources"
6290
6291                           if test "$enableval" = yes; then
6292                             ac_cv_use_resources='wxUSE_RESOURCES=yes'
6293                           else
6294                             ac_cv_use_resources='wxUSE_RESOURCES=no'
6295                           fi
6296
6297 else
6298
6299                           LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6300                           if test "x$LINE" != x ; then
6301                             eval "DEFAULT_$LINE"
6302                           else
6303                             no_cache=1
6304                           fi
6305
6306                           ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6307
6308 fi;
6309
6310           eval "$ac_cv_use_resources"
6311           if test "$no_cache" != 1; then
6312             echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6313           fi
6314
6315           if test "$wxUSE_RESOURCES" = yes; then
6316             echo "$as_me:$LINENO: result: yes" >&5
6317 echo "${ECHO_T}yes" >&6
6318           else
6319             echo "$as_me:$LINENO: result: no" >&5
6320 echo "${ECHO_T}no" >&6
6321           fi
6322
6323
6324
6325
6326           enablestring=
6327           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6328 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6329           no_cache=0
6330           # Check whether --enable-clipboard or --disable-clipboard was given.
6331 if test "${enable_clipboard+set}" = set; then
6332   enableval="$enable_clipboard"
6333
6334                           if test "$enableval" = yes; then
6335                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6336                           else
6337                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6338                           fi
6339
6340 else
6341
6342                           LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6343                           if test "x$LINE" != x ; then
6344                             eval "DEFAULT_$LINE"
6345                           else
6346                             no_cache=1
6347                           fi
6348
6349                           ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6350
6351 fi;
6352
6353           eval "$ac_cv_use_clipboard"
6354           if test "$no_cache" != 1; then
6355             echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6356           fi
6357
6358           if test "$wxUSE_CLIPBOARD" = yes; then
6359             echo "$as_me:$LINENO: result: yes" >&5
6360 echo "${ECHO_T}yes" >&6
6361           else
6362             echo "$as_me:$LINENO: result: no" >&5
6363 echo "${ECHO_T}no" >&6
6364           fi
6365
6366
6367           enablestring=
6368           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6369 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6370           no_cache=0
6371           # Check whether --enable-dnd or --disable-dnd was given.
6372 if test "${enable_dnd+set}" = set; then
6373   enableval="$enable_dnd"
6374
6375                           if test "$enableval" = yes; then
6376                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6377                           else
6378                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6379                           fi
6380
6381 else
6382
6383                           LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6384                           if test "x$LINE" != x ; then
6385                             eval "DEFAULT_$LINE"
6386                           else
6387                             no_cache=1
6388                           fi
6389
6390                           ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6391
6392 fi;
6393
6394           eval "$ac_cv_use_dnd"
6395           if test "$no_cache" != 1; then
6396             echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6397           fi
6398
6399           if test "$wxUSE_DRAG_AND_DROP" = yes; then
6400             echo "$as_me:$LINENO: result: yes" >&5
6401 echo "${ECHO_T}yes" >&6
6402           else
6403             echo "$as_me:$LINENO: result: no" >&5
6404 echo "${ECHO_T}no" >&6
6405           fi
6406
6407
6408           enablestring=
6409           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6410 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6411           no_cache=0
6412           # Check whether --enable-metafile or --disable-metafile was given.
6413 if test "${enable_metafile+set}" = set; then
6414   enableval="$enable_metafile"
6415
6416                           if test "$enableval" = yes; then
6417                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
6418                           else
6419                             ac_cv_use_metafile='wxUSE_METAFILE=no'
6420                           fi
6421
6422 else
6423
6424                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6425                           if test "x$LINE" != x ; then
6426                             eval "DEFAULT_$LINE"
6427                           else
6428                             no_cache=1
6429                           fi
6430
6431                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6432
6433 fi;
6434
6435           eval "$ac_cv_use_metafile"
6436           if test "$no_cache" != 1; then
6437             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6438           fi
6439
6440           if test "$wxUSE_METAFILE" = yes; then
6441             echo "$as_me:$LINENO: result: yes" >&5
6442 echo "${ECHO_T}yes" >&6
6443           else
6444             echo "$as_me:$LINENO: result: no" >&5
6445 echo "${ECHO_T}no" >&6
6446           fi
6447
6448
6449
6450
6451
6452           enablestring=
6453           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6454 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
6455           no_cache=0
6456           # Check whether --enable-controls or --disable-controls was given.
6457 if test "${enable_controls+set}" = set; then
6458   enableval="$enable_controls"
6459
6460                           if test "$enableval" = yes; then
6461                             ac_cv_use_controls='wxUSE_CONTROLS=yes'
6462                           else
6463                             ac_cv_use_controls='wxUSE_CONTROLS=no'
6464                           fi
6465
6466 else
6467
6468                           LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6469                           if test "x$LINE" != x ; then
6470                             eval "DEFAULT_$LINE"
6471                           else
6472                             no_cache=1
6473                           fi
6474
6475                           ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
6476
6477 fi;
6478
6479           eval "$ac_cv_use_controls"
6480           if test "$no_cache" != 1; then
6481             echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6482           fi
6483
6484           if test "$wxUSE_CONTROLS" = yes; then
6485             echo "$as_me:$LINENO: result: yes" >&5
6486 echo "${ECHO_T}yes" >&6
6487           else
6488             echo "$as_me:$LINENO: result: no" >&5
6489 echo "${ECHO_T}no" >&6
6490           fi
6491
6492
6493 if test "$wxUSE_CONTROLS" = "yes"; then
6494   DEFAULT_wxUSE_ACCEL=yes
6495   DEFAULT_wxUSE_BMPBUTTON=yes
6496   DEFAULT_wxUSE_BUTTON=yes
6497   DEFAULT_wxUSE_CALCTRL=no
6498   DEFAULT_wxUSE_CARET=yes
6499   DEFAULT_wxUSE_COMBOBOX=yes
6500   DEFAULT_wxUSE_CHECKBOX=yes
6501   DEFAULT_wxUSE_CHECKLISTBOX=yes
6502   DEFAULT_wxUSE_CHOICE=yes
6503   DEFAULT_wxUSE_GAUGE=yes
6504   DEFAULT_wxUSE_GRID=yes
6505   DEFAULT_wxUSE_IMAGLIST=yes
6506   DEFAULT_wxUSE_LISTBOX=yes
6507   DEFAULT_wxUSE_LISTCTRL=yes
6508   DEFAULT_wxUSE_NOTEBOOK=yes
6509   DEFAULT_wxUSE_RADIOBOX=yes
6510   DEFAULT_wxUSE_RADIOBTN=yes
6511   DEFAULT_wxUSE_SASH=yes
6512   DEFAULT_wxUSE_SCROLLBAR=yes
6513   DEFAULT_wxUSE_SLIDER=yes
6514   DEFAULT_wxUSE_SPINBTN=yes
6515   DEFAULT_wxUSE_SPINCTRL=yes
6516   DEFAULT_wxUSE_SPLITTER=yes
6517   DEFAULT_wxUSE_STATBMP=yes
6518   DEFAULT_wxUSE_STATBOX=yes
6519   DEFAULT_wxUSE_STATLINE=yes
6520   DEFAULT_wxUSE_STATUSBAR=yes
6521   DEFAULT_wxUSE_TAB_DIALOG=yes
6522   DEFAULT_wxUSE_TOGGLEBTN=yes
6523   DEFAULT_wxUSE_TOOLBAR=yes
6524   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6525   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
6526   DEFAULT_wxUSE_TOOLTIPS=yes
6527   DEFAULT_wxUSE_TREECTRL=yes
6528   DEFAULT_wxUSE_POPUPWIN=yes
6529   DEFAULT_wxUSE_TIPWINDOW=yes
6530 elif test "$wxUSE_CONTROLS" = "no"; then
6531   DEFAULT_wxUSE_ACCEL=no
6532   DEFAULT_wxUSE_BMPBUTTON=no
6533   DEFAULT_wxUSE_BUTTON=no
6534   DEFAULT_wxUSE_CALCTRL=no
6535   DEFAULT_wxUSE_CARET=no
6536   DEFAULT_wxUSE_COMBOBOX=no
6537   DEFAULT_wxUSE_CHECKBOX=no
6538   DEFAULT_wxUSE_CHECKLISTBOX=no
6539   DEFAULT_wxUSE_CHOICE=no
6540   DEFAULT_wxUSE_GAUGE=no
6541   DEFAULT_wxUSE_GRID=no
6542   DEFAULT_wxUSE_IMAGLIST=no
6543   DEFAULT_wxUSE_LISTBOX=no
6544   DEFAULT_wxUSE_LISTCTRL=no
6545   DEFAULT_wxUSE_NOTEBOOK=no
6546   DEFAULT_wxUSE_RADIOBOX=no
6547   DEFAULT_wxUSE_RADIOBTN=no
6548   DEFAULT_wxUSE_SASH=no
6549   DEFAULT_wxUSE_SCROLLBAR=no
6550   DEFAULT_wxUSE_SLIDER=no
6551   DEFAULT_wxUSE_SPINBTN=no
6552   DEFAULT_wxUSE_SPINCTRL=no
6553   DEFAULT_wxUSE_SPLITTER=no
6554   DEFAULT_wxUSE_STATBMP=no
6555   DEFAULT_wxUSE_STATBOX=no
6556   DEFAULT_wxUSE_STATLINE=no
6557   DEFAULT_wxUSE_STATUSBAR=no
6558   DEFAULT_wxUSE_TAB_DIALOG=no
6559   DEFAULT_wxUSE_TOGGLEBTN=no
6560   DEFAULT_wxUSE_TOOLBAR=no
6561   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6562   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
6563   DEFAULT_wxUSE_TOOLTIPS=no
6564   DEFAULT_wxUSE_TREECTRL=no
6565   DEFAULT_wxUSE_POPUPWIN=no
6566   DEFAULT_wxUSE_TIPWINDOW=no
6567 fi
6568
6569 ## FIXME: This is a blatant hack
6570 if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6571   wxUSE_PRINTING_ARCHITECTURE=no
6572   wxUSE_DRAG_AND_DROP=no
6573   # Generic notebook requires tab dialog
6574   DEFAULT_wxUSE_TABDIALOG=yes
6575   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6576   DEFAULT_wxUSE_SCROLLBAR=no
6577   DEFAULT_wxUSE_TOOLTIPS=no
6578   DEFAULT_wxUSE_DRAGIMAGE=no
6579 fi
6580
6581
6582           enablestring=
6583           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6584 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
6585           no_cache=0
6586           # Check whether --enable-accel or --disable-accel was given.
6587 if test "${enable_accel+set}" = set; then
6588   enableval="$enable_accel"
6589
6590                           if test "$enableval" = yes; then
6591                             ac_cv_use_accel='wxUSE_ACCEL=yes'
6592                           else
6593                             ac_cv_use_accel='wxUSE_ACCEL=no'
6594                           fi
6595
6596 else
6597
6598                           LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6599                           if test "x$LINE" != x ; then
6600                             eval "DEFAULT_$LINE"
6601                           else
6602                             no_cache=1
6603                           fi
6604
6605                           ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
6606
6607 fi;
6608
6609           eval "$ac_cv_use_accel"
6610           if test "$no_cache" != 1; then
6611             echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6612           fi
6613
6614           if test "$wxUSE_ACCEL" = yes; then
6615             echo "$as_me:$LINENO: result: yes" >&5
6616 echo "${ECHO_T}yes" >&6
6617           else
6618             echo "$as_me:$LINENO: result: no" >&5
6619 echo "${ECHO_T}no" >&6
6620           fi
6621
6622
6623           enablestring=
6624           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6625 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
6626           no_cache=0
6627           # Check whether --enable-button or --disable-button was given.
6628 if test "${enable_button+set}" = set; then
6629   enableval="$enable_button"
6630
6631                           if test "$enableval" = yes; then
6632                             ac_cv_use_button='wxUSE_BUTTON=yes'
6633                           else
6634                             ac_cv_use_button='wxUSE_BUTTON=no'
6635                           fi
6636
6637 else
6638
6639                           LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
6640                           if test "x$LINE" != x ; then
6641                             eval "DEFAULT_$LINE"
6642                           else
6643                             no_cache=1
6644                           fi
6645
6646                           ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
6647
6648 fi;
6649
6650           eval "$ac_cv_use_button"
6651           if test "$no_cache" != 1; then
6652             echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
6653           fi
6654
6655           if test "$wxUSE_BUTTON" = yes; then
6656             echo "$as_me:$LINENO: result: yes" >&5
6657 echo "${ECHO_T}yes" >&6
6658           else
6659             echo "$as_me:$LINENO: result: no" >&5
6660 echo "${ECHO_T}no" >&6
6661           fi
6662
6663
6664           enablestring=
6665           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6666 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
6667           no_cache=0
6668           # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6669 if test "${enable_bmpbutton+set}" = set; then
6670   enableval="$enable_bmpbutton"
6671
6672                           if test "$enableval" = yes; then
6673                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6674                           else
6675                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6676                           fi
6677
6678 else
6679
6680                           LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6681                           if test "x$LINE" != x ; then
6682                             eval "DEFAULT_$LINE"
6683                           else
6684                             no_cache=1
6685                           fi
6686
6687                           ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
6688
6689 fi;
6690
6691           eval "$ac_cv_use_bmpbutton"
6692           if test "$no_cache" != 1; then
6693             echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6694           fi
6695
6696           if test "$wxUSE_BMPBUTTON" = yes; then
6697             echo "$as_me:$LINENO: result: yes" >&5
6698 echo "${ECHO_T}yes" >&6
6699           else
6700             echo "$as_me:$LINENO: result: no" >&5
6701 echo "${ECHO_T}no" >&6
6702           fi
6703
6704
6705           enablestring=
6706           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
6707 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
6708           no_cache=0
6709           # Check whether --enable-calendar or --disable-calendar was given.
6710 if test "${enable_calendar+set}" = set; then
6711   enableval="$enable_calendar"
6712
6713                           if test "$enableval" = yes; then
6714                             ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6715                           else
6716                             ac_cv_use_calendar='wxUSE_CALCTRL=no'
6717                           fi
6718
6719 else
6720
6721                           LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6722                           if test "x$LINE" != x ; then
6723                             eval "DEFAULT_$LINE"
6724                           else
6725                             no_cache=1
6726                           fi
6727
6728                           ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
6729
6730 fi;
6731
6732           eval "$ac_cv_use_calendar"
6733           if test "$no_cache" != 1; then
6734             echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6735           fi
6736
6737           if test "$wxUSE_CALCTRL" = yes; then
6738             echo "$as_me:$LINENO: result: yes" >&5
6739 echo "${ECHO_T}yes" >&6
6740           else
6741             echo "$as_me:$LINENO: result: no" >&5
6742 echo "${ECHO_T}no" >&6
6743           fi
6744
6745
6746           enablestring=
6747           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
6748 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
6749           no_cache=0
6750           # Check whether --enable-caret or --disable-caret was given.
6751 if test "${enable_caret+set}" = set; then
6752   enableval="$enable_caret"
6753
6754                           if test "$enableval" = yes; then
6755                             ac_cv_use_caret='wxUSE_CARET=yes'
6756                           else
6757                             ac_cv_use_caret='wxUSE_CARET=no'
6758                           fi
6759
6760 else
6761
6762                           LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6763                           if test "x$LINE" != x ; then
6764                             eval "DEFAULT_$LINE"
6765                           else
6766                             no_cache=1
6767                           fi
6768
6769                           ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
6770
6771 fi;
6772
6773           eval "$ac_cv_use_caret"
6774           if test "$no_cache" != 1; then
6775             echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6776           fi
6777
6778           if test "$wxUSE_CARET" = yes; then
6779             echo "$as_me:$LINENO: result: yes" >&5
6780 echo "${ECHO_T}yes" >&6
6781           else
6782             echo "$as_me:$LINENO: result: no" >&5
6783 echo "${ECHO_T}no" >&6
6784           fi
6785
6786
6787           enablestring=
6788           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
6789 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
6790           no_cache=0
6791           # Check whether --enable-checkbox or --disable-checkbox was given.
6792 if test "${enable_checkbox+set}" = set; then
6793   enableval="$enable_checkbox"
6794
6795                           if test "$enableval" = yes; then
6796                             ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6797                           else
6798                             ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6799                           fi
6800
6801 else
6802
6803                           LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6804                           if test "x$LINE" != x ; then
6805                             eval "DEFAULT_$LINE"
6806                           else
6807                             no_cache=1
6808                           fi
6809
6810                           ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
6811
6812 fi;
6813
6814           eval "$ac_cv_use_checkbox"
6815           if test "$no_cache" != 1; then
6816             echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6817           fi
6818
6819           if test "$wxUSE_CHECKBOX" = yes; then
6820             echo "$as_me:$LINENO: result: yes" >&5
6821 echo "${ECHO_T}yes" >&6
6822           else
6823             echo "$as_me:$LINENO: result: no" >&5
6824 echo "${ECHO_T}no" >&6
6825           fi
6826
6827
6828           enablestring=
6829           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
6830 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
6831           no_cache=0
6832           # Check whether --enable-checklst or --disable-checklst was given.
6833 if test "${enable_checklst+set}" = set; then
6834   enableval="$enable_checklst"
6835
6836                           if test "$enableval" = yes; then
6837                             ac_cv_use_checklst='wxUSE_CHECKLST=yes'
6838                           else
6839                             ac_cv_use_checklst='wxUSE_CHECKLST=no'
6840                           fi
6841
6842 else
6843
6844                           LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
6845                           if test "x$LINE" != x ; then
6846                             eval "DEFAULT_$LINE"
6847                           else
6848                             no_cache=1
6849                           fi
6850
6851                           ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
6852
6853 fi;
6854
6855           eval "$ac_cv_use_checklst"
6856           if test "$no_cache" != 1; then
6857             echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
6858           fi
6859
6860           if test "$wxUSE_CHECKLST" = yes; then
6861             echo "$as_me:$LINENO: result: yes" >&5
6862 echo "${ECHO_T}yes" >&6
6863           else
6864             echo "$as_me:$LINENO: result: no" >&5
6865 echo "${ECHO_T}no" >&6
6866           fi
6867
6868
6869           enablestring=
6870           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
6871 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
6872           no_cache=0
6873           # Check whether --enable-choice or --disable-choice was given.
6874 if test "${enable_choice+set}" = set; then
6875   enableval="$enable_choice"
6876
6877                           if test "$enableval" = yes; then
6878                             ac_cv_use_choice='wxUSE_CHOICE=yes'
6879                           else
6880                             ac_cv_use_choice='wxUSE_CHOICE=no'
6881                           fi
6882
6883 else
6884
6885                           LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6886                           if test "x$LINE" != x ; then
6887                             eval "DEFAULT_$LINE"
6888                           else
6889                             no_cache=1
6890                           fi
6891
6892                           ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
6893
6894 fi;
6895
6896           eval "$ac_cv_use_choice"
6897           if test "$no_cache" != 1; then
6898             echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6899           fi
6900
6901           if test "$wxUSE_CHOICE" = yes; then
6902             echo "$as_me:$LINENO: result: yes" >&5
6903 echo "${ECHO_T}yes" >&6
6904           else
6905             echo "$as_me:$LINENO: result: no" >&5
6906 echo "${ECHO_T}no" >&6
6907           fi
6908
6909
6910           enablestring=
6911           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
6912 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
6913           no_cache=0
6914           # Check whether --enable-combobox or --disable-combobox was given.
6915 if test "${enable_combobox+set}" = set; then
6916   enableval="$enable_combobox"
6917
6918                           if test "$enableval" = yes; then
6919                             ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6920                           else
6921                             ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6922                           fi
6923
6924 else
6925
6926                           LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6927                           if test "x$LINE" != x ; then
6928                             eval "DEFAULT_$LINE"
6929                           else
6930                             no_cache=1
6931                           fi
6932
6933                           ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6934
6935 fi;
6936
6937           eval "$ac_cv_use_combobox"
6938           if test "$no_cache" != 1; then
6939             echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6940           fi
6941
6942           if test "$wxUSE_COMBOBOX" = yes; then
6943             echo "$as_me:$LINENO: result: yes" >&5
6944 echo "${ECHO_T}yes" >&6
6945           else
6946             echo "$as_me:$LINENO: result: no" >&5
6947 echo "${ECHO_T}no" >&6
6948           fi
6949
6950
6951           enablestring=
6952           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
6953 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
6954           no_cache=0
6955           # Check whether --enable-display or --disable-display was given.
6956 if test "${enable_display+set}" = set; then
6957   enableval="$enable_display"
6958
6959                           if test "$enableval" = yes; then
6960                             ac_cv_use_display='wxUSE_DISPLAY=yes'
6961                           else
6962                             ac_cv_use_display='wxUSE_DISPLAY=no'
6963                           fi
6964
6965 else
6966
6967                           LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
6968                           if test "x$LINE" != x ; then
6969                             eval "DEFAULT_$LINE"
6970                           else
6971                             no_cache=1
6972                           fi
6973
6974                           ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
6975
6976 fi;
6977
6978           eval "$ac_cv_use_display"
6979           if test "$no_cache" != 1; then
6980             echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
6981           fi
6982
6983           if test "$wxUSE_DISPLAY" = yes; then
6984             echo "$as_me:$LINENO: result: yes" >&5
6985 echo "${ECHO_T}yes" >&6
6986           else
6987             echo "$as_me:$LINENO: result: no" >&5
6988 echo "${ECHO_T}no" >&6
6989           fi
6990
6991
6992           enablestring=
6993           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
6994 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
6995           no_cache=0
6996           # Check whether --enable-gauge or --disable-gauge was given.
6997 if test "${enable_gauge+set}" = set; then
6998   enableval="$enable_gauge"
6999
7000                           if test "$enableval" = yes; then
7001                             ac_cv_use_gauge='wxUSE_GAUGE=yes'
7002                           else
7003                             ac_cv_use_gauge='wxUSE_GAUGE=no'
7004                           fi
7005
7006 else
7007
7008                           LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7009                           if test "x$LINE" != x ; then
7010                             eval "DEFAULT_$LINE"
7011                           else
7012                             no_cache=1
7013                           fi
7014
7015                           ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7016
7017 fi;
7018
7019           eval "$ac_cv_use_gauge"
7020           if test "$no_cache" != 1; then
7021             echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7022           fi
7023
7024           if test "$wxUSE_GAUGE" = yes; then
7025             echo "$as_me:$LINENO: result: yes" >&5
7026 echo "${ECHO_T}yes" >&6
7027           else
7028             echo "$as_me:$LINENO: result: no" >&5
7029 echo "${ECHO_T}no" >&6
7030           fi
7031
7032
7033           enablestring=
7034           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7035 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7036           no_cache=0
7037           # Check whether --enable-grid or --disable-grid was given.
7038 if test "${enable_grid+set}" = set; then
7039   enableval="$enable_grid"
7040
7041                           if test "$enableval" = yes; then
7042                             ac_cv_use_grid='wxUSE_GRID=yes'
7043                           else
7044                             ac_cv_use_grid='wxUSE_GRID=no'
7045                           fi
7046
7047 else
7048
7049                           LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7050                           if test "x$LINE" != x ; then
7051                             eval "DEFAULT_$LINE"
7052                           else
7053                             no_cache=1
7054                           fi
7055
7056                           ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7057
7058 fi;
7059
7060           eval "$ac_cv_use_grid"
7061           if test "$no_cache" != 1; then
7062             echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7063           fi
7064
7065           if test "$wxUSE_GRID" = yes; then
7066             echo "$as_me:$LINENO: result: yes" >&5
7067 echo "${ECHO_T}yes" >&6
7068           else
7069             echo "$as_me:$LINENO: result: no" >&5
7070 echo "${ECHO_T}no" >&6
7071           fi
7072
7073
7074           enablestring=
7075           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7076 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7077           no_cache=0
7078           # Check whether --enable-imaglist or --disable-imaglist was given.
7079 if test "${enable_imaglist+set}" = set; then
7080   enableval="$enable_imaglist"
7081
7082                           if test "$enableval" = yes; then
7083                             ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7084                           else
7085                             ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7086                           fi
7087
7088 else
7089
7090                           LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7091                           if test "x$LINE" != x ; then
7092                             eval "DEFAULT_$LINE"
7093                           else
7094                             no_cache=1
7095                           fi
7096
7097                           ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7098
7099 fi;
7100
7101           eval "$ac_cv_use_imaglist"
7102           if test "$no_cache" != 1; then
7103             echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7104           fi
7105
7106           if test "$wxUSE_IMAGLIST" = yes; then
7107             echo "$as_me:$LINENO: result: yes" >&5
7108 echo "${ECHO_T}yes" >&6
7109           else
7110             echo "$as_me:$LINENO: result: no" >&5
7111 echo "${ECHO_T}no" >&6
7112           fi
7113
7114
7115           enablestring=
7116           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7117 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7118           no_cache=0
7119           # Check whether --enable-listbox or --disable-listbox was given.
7120 if test "${enable_listbox+set}" = set; then
7121   enableval="$enable_listbox"
7122
7123                           if test "$enableval" = yes; then
7124                             ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7125                           else
7126                             ac_cv_use_listbox='wxUSE_LISTBOX=no'
7127                           fi
7128
7129 else
7130
7131                           LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7132                           if test "x$LINE" != x ; then
7133                             eval "DEFAULT_$LINE"
7134                           else
7135                             no_cache=1
7136                           fi
7137
7138                           ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7139
7140 fi;
7141
7142           eval "$ac_cv_use_listbox"
7143           if test "$no_cache" != 1; then
7144             echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7145           fi
7146
7147           if test "$wxUSE_LISTBOX" = yes; then
7148             echo "$as_me:$LINENO: result: yes" >&5
7149 echo "${ECHO_T}yes" >&6
7150           else
7151             echo "$as_me:$LINENO: result: no" >&5
7152 echo "${ECHO_T}no" >&6
7153           fi
7154
7155
7156           enablestring=
7157           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7158 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7159           no_cache=0
7160           # Check whether --enable-listctrl or --disable-listctrl was given.
7161 if test "${enable_listctrl+set}" = set; then
7162   enableval="$enable_listctrl"
7163
7164                           if test "$enableval" = yes; then
7165                             ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7166                           else
7167                             ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7168                           fi
7169
7170 else
7171
7172                           LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7173                           if test "x$LINE" != x ; then
7174                             eval "DEFAULT_$LINE"
7175                           else
7176                             no_cache=1
7177                           fi
7178
7179                           ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7180
7181 fi;
7182
7183           eval "$ac_cv_use_listctrl"
7184           if test "$no_cache" != 1; then
7185             echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7186           fi
7187
7188           if test "$wxUSE_LISTCTRL" = yes; then
7189             echo "$as_me:$LINENO: result: yes" >&5
7190 echo "${ECHO_T}yes" >&6
7191           else
7192             echo "$as_me:$LINENO: result: no" >&5
7193 echo "${ECHO_T}no" >&6
7194           fi
7195
7196
7197           enablestring=
7198           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7199 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7200           no_cache=0
7201           # Check whether --enable-notebook or --disable-notebook was given.
7202 if test "${enable_notebook+set}" = set; then
7203   enableval="$enable_notebook"
7204
7205                           if test "$enableval" = yes; then
7206                             ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7207                           else
7208                             ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7209                           fi
7210
7211 else
7212
7213                           LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7214                           if test "x$LINE" != x ; then
7215                             eval "DEFAULT_$LINE"
7216                           else
7217                             no_cache=1
7218                           fi
7219
7220                           ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7221
7222 fi;
7223
7224           eval "$ac_cv_use_notebook"
7225           if test "$no_cache" != 1; then
7226             echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7227           fi
7228
7229           if test "$wxUSE_NOTEBOOK" = yes; then
7230             echo "$as_me:$LINENO: result: yes" >&5
7231 echo "${ECHO_T}yes" >&6
7232           else
7233             echo "$as_me:$LINENO: result: no" >&5
7234 echo "${ECHO_T}no" >&6
7235           fi
7236
7237
7238           enablestring=
7239           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7240 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7241           no_cache=0
7242           # Check whether --enable-radiobox or --disable-radiobox was given.
7243 if test "${enable_radiobox+set}" = set; then
7244   enableval="$enable_radiobox"
7245
7246                           if test "$enableval" = yes; then
7247                             ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7248                           else
7249                             ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7250                           fi
7251
7252 else
7253
7254                           LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7255                           if test "x$LINE" != x ; then
7256                             eval "DEFAULT_$LINE"
7257                           else
7258                             no_cache=1
7259                           fi
7260
7261                           ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7262
7263 fi;
7264
7265           eval "$ac_cv_use_radiobox"
7266           if test "$no_cache" != 1; then
7267             echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7268           fi
7269
7270           if test "$wxUSE_RADIOBOX" = yes; then
7271             echo "$as_me:$LINENO: result: yes" >&5
7272 echo "${ECHO_T}yes" >&6
7273           else
7274             echo "$as_me:$LINENO: result: no" >&5
7275 echo "${ECHO_T}no" >&6
7276           fi
7277
7278
7279           enablestring=
7280           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7281 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7282           no_cache=0
7283           # Check whether --enable-radiobtn or --disable-radiobtn was given.
7284 if test "${enable_radiobtn+set}" = set; then
7285   enableval="$enable_radiobtn"
7286
7287                           if test "$enableval" = yes; then
7288                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7289                           else
7290                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7291                           fi
7292
7293 else
7294
7295                           LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7296                           if test "x$LINE" != x ; then
7297                             eval "DEFAULT_$LINE"
7298                           else
7299                             no_cache=1
7300                           fi
7301
7302                           ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7303
7304 fi;
7305
7306           eval "$ac_cv_use_radiobtn"
7307           if test "$no_cache" != 1; then
7308             echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7309           fi
7310
7311           if test "$wxUSE_RADIOBTN" = yes; then
7312             echo "$as_me:$LINENO: result: yes" >&5
7313 echo "${ECHO_T}yes" >&6
7314           else
7315             echo "$as_me:$LINENO: result: no" >&5
7316 echo "${ECHO_T}no" >&6
7317           fi
7318
7319
7320           enablestring=
7321           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7322 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7323           no_cache=0
7324           # Check whether --enable-sash or --disable-sash was given.
7325 if test "${enable_sash+set}" = set; then
7326   enableval="$enable_sash"
7327
7328                           if test "$enableval" = yes; then
7329                             ac_cv_use_sash='wxUSE_SASH=yes'
7330                           else
7331                             ac_cv_use_sash='wxUSE_SASH=no'
7332                           fi
7333
7334 else
7335
7336                           LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7337                           if test "x$LINE" != x ; then
7338                             eval "DEFAULT_$LINE"
7339                           else
7340                             no_cache=1
7341                           fi
7342
7343                           ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7344
7345 fi;
7346
7347           eval "$ac_cv_use_sash"
7348           if test "$no_cache" != 1; then
7349             echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7350           fi
7351
7352           if test "$wxUSE_SASH" = yes; then
7353             echo "$as_me:$LINENO: result: yes" >&5
7354 echo "${ECHO_T}yes" >&6
7355           else
7356             echo "$as_me:$LINENO: result: no" >&5
7357 echo "${ECHO_T}no" >&6
7358           fi
7359
7360
7361           enablestring=
7362           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7363 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7364           no_cache=0
7365           # Check whether --enable-scrollbar or --disable-scrollbar was given.
7366 if test "${enable_scrollbar+set}" = set; then
7367   enableval="$enable_scrollbar"
7368
7369                           if test "$enableval" = yes; then
7370                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7371                           else
7372                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7373                           fi
7374
7375 else
7376
7377                           LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7378                           if test "x$LINE" != x ; then
7379                             eval "DEFAULT_$LINE"
7380                           else
7381                             no_cache=1
7382                           fi
7383
7384                           ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7385
7386 fi;
7387
7388           eval "$ac_cv_use_scrollbar"
7389           if test "$no_cache" != 1; then
7390             echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7391           fi
7392
7393           if test "$wxUSE_SCROLLBAR" = yes; then
7394             echo "$as_me:$LINENO: result: yes" >&5
7395 echo "${ECHO_T}yes" >&6
7396           else
7397             echo "$as_me:$LINENO: result: no" >&5
7398 echo "${ECHO_T}no" >&6
7399           fi
7400
7401
7402           enablestring=
7403           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7404 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7405           no_cache=0
7406           # Check whether --enable-slider or --disable-slider was given.
7407 if test "${enable_slider+set}" = set; then
7408   enableval="$enable_slider"
7409
7410                           if test "$enableval" = yes; then
7411                             ac_cv_use_slider='wxUSE_SLIDER=yes'
7412                           else
7413                             ac_cv_use_slider='wxUSE_SLIDER=no'
7414                           fi
7415
7416 else
7417
7418                           LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7419                           if test "x$LINE" != x ; then
7420                             eval "DEFAULT_$LINE"
7421                           else
7422                             no_cache=1
7423                           fi
7424
7425                           ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
7426
7427 fi;
7428
7429           eval "$ac_cv_use_slider"
7430           if test "$no_cache" != 1; then
7431             echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7432           fi
7433
7434           if test "$wxUSE_SLIDER" = yes; then
7435             echo "$as_me:$LINENO: result: yes" >&5
7436 echo "${ECHO_T}yes" >&6
7437           else
7438             echo "$as_me:$LINENO: result: no" >&5
7439 echo "${ECHO_T}no" >&6
7440           fi
7441
7442
7443           enablestring=
7444           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7445 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
7446           no_cache=0
7447           # Check whether --enable-spinbtn or --disable-spinbtn was given.
7448 if test "${enable_spinbtn+set}" = set; then
7449   enableval="$enable_spinbtn"
7450
7451                           if test "$enableval" = yes; then
7452                             ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7453                           else
7454                             ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7455                           fi
7456
7457 else
7458
7459                           LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7460                           if test "x$LINE" != x ; then
7461                             eval "DEFAULT_$LINE"
7462                           else
7463                             no_cache=1
7464                           fi
7465
7466                           ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
7467
7468 fi;
7469
7470           eval "$ac_cv_use_spinbtn"
7471           if test "$no_cache" != 1; then
7472             echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7473           fi
7474
7475           if test "$wxUSE_SPINBTN" = yes; then
7476             echo "$as_me:$LINENO: result: yes" >&5
7477 echo "${ECHO_T}yes" >&6
7478           else
7479             echo "$as_me:$LINENO: result: no" >&5
7480 echo "${ECHO_T}no" >&6
7481           fi
7482
7483
7484           enablestring=
7485           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7486 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
7487           no_cache=0
7488           # Check whether --enable-spinctrl or --disable-spinctrl was given.
7489 if test "${enable_spinctrl+set}" = set; then
7490   enableval="$enable_spinctrl"
7491
7492                           if test "$enableval" = yes; then
7493                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7494                           else
7495                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7496                           fi
7497
7498 else
7499
7500                           LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7501                           if test "x$LINE" != x ; then
7502                             eval "DEFAULT_$LINE"
7503                           else
7504                             no_cache=1
7505                           fi
7506
7507                           ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
7508
7509 fi;
7510
7511           eval "$ac_cv_use_spinctrl"
7512           if test "$no_cache" != 1; then
7513             echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7514           fi
7515
7516           if test "$wxUSE_SPINCTRL" = yes; then
7517             echo "$as_me:$LINENO: result: yes" >&5
7518 echo "${ECHO_T}yes" >&6
7519           else
7520             echo "$as_me:$LINENO: result: no" >&5
7521 echo "${ECHO_T}no" >&6
7522           fi
7523
7524
7525           enablestring=
7526           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7527 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
7528           no_cache=0
7529           # Check whether --enable-splitter or --disable-splitter was given.
7530 if test "${enable_splitter+set}" = set; then
7531   enableval="$enable_splitter"
7532
7533                           if test "$enableval" = yes; then
7534                             ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7535                           else
7536                             ac_cv_use_splitter='wxUSE_SPLITTER=no'
7537                           fi
7538
7539 else
7540
7541                           LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7542                           if test "x$LINE" != x ; then
7543                             eval "DEFAULT_$LINE"
7544                           else
7545                             no_cache=1
7546                           fi
7547
7548                           ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
7549
7550 fi;
7551
7552           eval "$ac_cv_use_splitter"
7553           if test "$no_cache" != 1; then
7554             echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7555           fi
7556
7557           if test "$wxUSE_SPLITTER" = yes; then
7558             echo "$as_me:$LINENO: result: yes" >&5
7559 echo "${ECHO_T}yes" >&6
7560           else
7561             echo "$as_me:$LINENO: result: no" >&5
7562 echo "${ECHO_T}no" >&6
7563           fi
7564
7565
7566           enablestring=
7567           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7568 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
7569           no_cache=0
7570           # Check whether --enable-statbmp or --disable-statbmp was given.
7571 if test "${enable_statbmp+set}" = set; then
7572   enableval="$enable_statbmp"
7573
7574                           if test "$enableval" = yes; then
7575                             ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7576                           else
7577                             ac_cv_use_statbmp='wxUSE_STATBMP=no'
7578                           fi
7579
7580 else
7581
7582                           LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7583                           if test "x$LINE" != x ; then
7584                             eval "DEFAULT_$LINE"
7585                           else
7586                             no_cache=1
7587                           fi
7588
7589                           ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
7590
7591 fi;
7592
7593           eval "$ac_cv_use_statbmp"
7594           if test "$no_cache" != 1; then
7595             echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7596           fi
7597
7598           if test "$wxUSE_STATBMP" = yes; then
7599             echo "$as_me:$LINENO: result: yes" >&5
7600 echo "${ECHO_T}yes" >&6
7601           else
7602             echo "$as_me:$LINENO: result: no" >&5
7603 echo "${ECHO_T}no" >&6
7604           fi
7605
7606
7607           enablestring=
7608           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7609 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
7610           no_cache=0
7611           # Check whether --enable-statbox or --disable-statbox was given.
7612 if test "${enable_statbox+set}" = set; then
7613   enableval="$enable_statbox"
7614
7615                           if test "$enableval" = yes; then
7616                             ac_cv_use_statbox='wxUSE_STATBOX=yes'
7617                           else
7618                             ac_cv_use_statbox='wxUSE_STATBOX=no'
7619                           fi
7620
7621 else
7622
7623                           LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7624                           if test "x$LINE" != x ; then
7625                             eval "DEFAULT_$LINE"
7626                           else
7627                             no_cache=1
7628                           fi
7629
7630                           ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
7631
7632 fi;
7633
7634           eval "$ac_cv_use_statbox"
7635           if test "$no_cache" != 1; then
7636             echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7637           fi
7638
7639           if test "$wxUSE_STATBOX" = yes; then
7640             echo "$as_me:$LINENO: result: yes" >&5
7641 echo "${ECHO_T}yes" >&6
7642           else
7643             echo "$as_me:$LINENO: result: no" >&5
7644 echo "${ECHO_T}no" >&6
7645           fi
7646
7647
7648           enablestring=
7649           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7650 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
7651           no_cache=0
7652           # Check whether --enable-statline or --disable-statline was given.
7653 if test "${enable_statline+set}" = set; then
7654   enableval="$enable_statline"
7655
7656                           if test "$enableval" = yes; then
7657                             ac_cv_use_statline='wxUSE_STATLINE=yes'
7658                           else
7659                             ac_cv_use_statline='wxUSE_STATLINE=no'
7660                           fi
7661
7662 else
7663
7664                           LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7665                           if test "x$LINE" != x ; then
7666                             eval "DEFAULT_$LINE"
7667                           else
7668                             no_cache=1
7669                           fi
7670
7671                           ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
7672
7673 fi;
7674
7675           eval "$ac_cv_use_statline"
7676           if test "$no_cache" != 1; then
7677             echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7678           fi
7679
7680           if test "$wxUSE_STATLINE" = yes; then
7681             echo "$as_me:$LINENO: result: yes" >&5
7682 echo "${ECHO_T}yes" >&6
7683           else
7684             echo "$as_me:$LINENO: result: no" >&5
7685 echo "${ECHO_T}no" >&6
7686           fi
7687
7688
7689           enablestring=
7690           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
7691 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
7692           no_cache=0
7693           # Check whether --enable-stattext or --disable-stattext was given.
7694 if test "${enable_stattext+set}" = set; then
7695   enableval="$enable_stattext"
7696
7697                           if test "$enableval" = yes; then
7698                             ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7699                           else
7700                             ac_cv_use_stattext='wxUSE_STATTEXT=no'
7701                           fi
7702
7703 else
7704
7705                           LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7706                           if test "x$LINE" != x ; then
7707                             eval "DEFAULT_$LINE"
7708                           else
7709                             no_cache=1
7710                           fi
7711
7712                           ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
7713
7714 fi;
7715
7716           eval "$ac_cv_use_stattext"
7717           if test "$no_cache" != 1; then
7718             echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7719           fi
7720
7721           if test "$wxUSE_STATTEXT" = yes; then
7722             echo "$as_me:$LINENO: result: yes" >&5
7723 echo "${ECHO_T}yes" >&6
7724           else
7725             echo "$as_me:$LINENO: result: no" >&5
7726 echo "${ECHO_T}no" >&6
7727           fi
7728
7729
7730           enablestring=
7731           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
7732 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
7733           no_cache=0
7734           # Check whether --enable-statusbar or --disable-statusbar was given.
7735 if test "${enable_statusbar+set}" = set; then
7736   enableval="$enable_statusbar"
7737
7738                           if test "$enableval" = yes; then
7739                             ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7740                           else
7741                             ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7742                           fi
7743
7744 else
7745
7746                           LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7747                           if test "x$LINE" != x ; then
7748                             eval "DEFAULT_$LINE"
7749                           else
7750                             no_cache=1
7751                           fi
7752
7753                           ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
7754
7755 fi;
7756
7757           eval "$ac_cv_use_statusbar"
7758           if test "$no_cache" != 1; then
7759             echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7760           fi
7761
7762           if test "$wxUSE_STATUSBAR" = yes; then
7763             echo "$as_me:$LINENO: result: yes" >&5
7764 echo "${ECHO_T}yes" >&6
7765           else
7766             echo "$as_me:$LINENO: result: no" >&5
7767 echo "${ECHO_T}no" >&6
7768           fi
7769
7770
7771           enablestring=
7772           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
7773 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
7774           no_cache=0
7775           # Check whether --enable-tabdialog or --disable-tabdialog was given.
7776 if test "${enable_tabdialog+set}" = set; then
7777   enableval="$enable_tabdialog"
7778
7779                           if test "$enableval" = yes; then
7780                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7781                           else
7782                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7783                           fi
7784
7785 else
7786
7787                           LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7788                           if test "x$LINE" != x ; then
7789                             eval "DEFAULT_$LINE"
7790                           else
7791                             no_cache=1
7792                           fi
7793
7794                           ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
7795
7796 fi;
7797
7798           eval "$ac_cv_use_tabdialog"
7799           if test "$no_cache" != 1; then
7800             echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
7801           fi
7802
7803           if test "$wxUSE_TABDIALOG" = yes; then
7804             echo "$as_me:$LINENO: result: yes" >&5
7805 echo "${ECHO_T}yes" >&6
7806           else
7807             echo "$as_me:$LINENO: result: no" >&5
7808 echo "${ECHO_T}no" >&6
7809           fi
7810
7811
7812           enablestring=
7813           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
7814 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
7815           no_cache=0
7816           # Check whether --enable-textctrl or --disable-textctrl was given.
7817 if test "${enable_textctrl+set}" = set; then
7818   enableval="$enable_textctrl"
7819
7820                           if test "$enableval" = yes; then
7821                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
7822                           else
7823                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
7824                           fi
7825
7826 else
7827
7828                           LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
7829                           if test "x$LINE" != x ; then
7830                             eval "DEFAULT_$LINE"
7831                           else
7832                             no_cache=1
7833                           fi
7834
7835                           ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
7836
7837 fi;
7838
7839           eval "$ac_cv_use_textctrl"
7840           if test "$no_cache" != 1; then
7841             echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
7842           fi
7843
7844           if test "$wxUSE_TEXTCTRL" = yes; then
7845             echo "$as_me:$LINENO: result: yes" >&5
7846 echo "${ECHO_T}yes" >&6
7847           else
7848             echo "$as_me:$LINENO: result: no" >&5
7849 echo "${ECHO_T}no" >&6
7850           fi
7851
7852
7853           enablestring=
7854           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
7855 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
7856           no_cache=0
7857           # Check whether --enable-togglebtn or --disable-togglebtn was given.
7858 if test "${enable_togglebtn+set}" = set; then
7859   enableval="$enable_togglebtn"
7860
7861                           if test "$enableval" = yes; then
7862                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
7863                           else
7864                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
7865                           fi
7866
7867 else
7868
7869                           LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
7870                           if test "x$LINE" != x ; then
7871                             eval "DEFAULT_$LINE"
7872                           else
7873                             no_cache=1
7874                           fi
7875
7876                           ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
7877
7878 fi;
7879
7880           eval "$ac_cv_use_togglebtn"
7881           if test "$no_cache" != 1; then
7882             echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
7883           fi
7884
7885           if test "$wxUSE_TOGGLEBTN" = yes; then
7886             echo "$as_me:$LINENO: result: yes" >&5
7887 echo "${ECHO_T}yes" >&6
7888           else
7889             echo "$as_me:$LINENO: result: no" >&5
7890 echo "${ECHO_T}no" >&6
7891           fi
7892
7893
7894           enablestring=
7895           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
7896 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
7897           no_cache=0
7898           # Check whether --enable-toolbar or --disable-toolbar was given.
7899 if test "${enable_toolbar+set}" = set; then
7900   enableval="$enable_toolbar"
7901
7902                           if test "$enableval" = yes; then
7903                             ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7904                           else
7905                             ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7906                           fi
7907
7908 else
7909
7910                           LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7911                           if test "x$LINE" != x ; then
7912                             eval "DEFAULT_$LINE"
7913                           else
7914                             no_cache=1
7915                           fi
7916
7917                           ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7918
7919 fi;
7920
7921           eval "$ac_cv_use_toolbar"
7922           if test "$no_cache" != 1; then
7923             echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7924           fi
7925
7926           if test "$wxUSE_TOOLBAR" = yes; then
7927             echo "$as_me:$LINENO: result: yes" >&5
7928 echo "${ECHO_T}yes" >&6
7929           else
7930             echo "$as_me:$LINENO: result: no" >&5
7931 echo "${ECHO_T}no" >&6
7932           fi
7933
7934
7935           enablestring=
7936           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
7937 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
7938           no_cache=0
7939           # Check whether --enable-tbarnative or --disable-tbarnative was given.
7940 if test "${enable_tbarnative+set}" = set; then
7941   enableval="$enable_tbarnative"
7942
7943                           if test "$enableval" = yes; then
7944                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7945                           else
7946                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7947                           fi
7948
7949 else
7950
7951                           LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7952                           if test "x$LINE" != x ; then
7953                             eval "DEFAULT_$LINE"
7954                           else
7955                             no_cache=1
7956                           fi
7957
7958                           ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7959
7960 fi;
7961
7962           eval "$ac_cv_use_tbarnative"
7963           if test "$no_cache" != 1; then
7964             echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7965           fi
7966
7967           if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7968             echo "$as_me:$LINENO: result: yes" >&5
7969 echo "${ECHO_T}yes" >&6
7970           else
7971             echo "$as_me:$LINENO: result: no" >&5
7972 echo "${ECHO_T}no" >&6
7973           fi
7974
7975
7976           enablestring=
7977           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
7978 echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
7979           no_cache=0
7980           # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7981 if test "${enable_tbarsmpl+set}" = set; then
7982   enableval="$enable_tbarsmpl"
7983
7984                           if test "$enableval" = yes; then
7985                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7986                           else
7987                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7988                           fi
7989
7990 else
7991
7992                           LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7993                           if test "x$LINE" != x ; then
7994                             eval "DEFAULT_$LINE"
7995                           else
7996                             no_cache=1
7997                           fi
7998
7999                           ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8000
8001 fi;
8002
8003           eval "$ac_cv_use_tbarsmpl"
8004           if test "$no_cache" != 1; then
8005             echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8006           fi
8007
8008           if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8009             echo "$as_me:$LINENO: result: yes" >&5
8010 echo "${ECHO_T}yes" >&6
8011           else
8012             echo "$as_me:$LINENO: result: no" >&5
8013 echo "${ECHO_T}no" >&6
8014           fi
8015
8016
8017           enablestring=
8018           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8019 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8020           no_cache=0
8021           # Check whether --enable-treectrl or --disable-treectrl was given.
8022 if test "${enable_treectrl+set}" = set; then
8023   enableval="$enable_treectrl"
8024
8025                           if test "$enableval" = yes; then
8026                             ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8027                           else
8028                             ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8029                           fi
8030
8031 else
8032
8033                           LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8034                           if test "x$LINE" != x ; then
8035                             eval "DEFAULT_$LINE"
8036                           else
8037                             no_cache=1
8038                           fi
8039
8040                           ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8041
8042 fi;
8043
8044           eval "$ac_cv_use_treectrl"
8045           if test "$no_cache" != 1; then
8046             echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8047           fi
8048
8049           if test "$wxUSE_TREECTRL" = yes; then
8050             echo "$as_me:$LINENO: result: yes" >&5
8051 echo "${ECHO_T}yes" >&6
8052           else
8053             echo "$as_me:$LINENO: result: no" >&5
8054 echo "${ECHO_T}no" >&6
8055           fi
8056
8057
8058           enablestring=
8059           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8060 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8061           no_cache=0
8062           # Check whether --enable-tipwindow or --disable-tipwindow was given.
8063 if test "${enable_tipwindow+set}" = set; then
8064   enableval="$enable_tipwindow"
8065
8066                           if test "$enableval" = yes; then
8067                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8068                           else
8069                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8070                           fi
8071
8072 else
8073
8074                           LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8075                           if test "x$LINE" != x ; then
8076                             eval "DEFAULT_$LINE"
8077                           else
8078                             no_cache=1
8079                           fi
8080
8081                           ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8082
8083 fi;
8084
8085           eval "$ac_cv_use_tipwindow"
8086           if test "$no_cache" != 1; then
8087             echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8088           fi
8089
8090           if test "$wxUSE_TIPWINDOW" = yes; then
8091             echo "$as_me:$LINENO: result: yes" >&5
8092 echo "${ECHO_T}yes" >&6
8093           else
8094             echo "$as_me:$LINENO: result: no" >&5
8095 echo "${ECHO_T}no" >&6
8096           fi
8097
8098
8099           enablestring=
8100           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8101 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8102           no_cache=0
8103           # Check whether --enable-popupwin or --disable-popupwin was given.
8104 if test "${enable_popupwin+set}" = set; then
8105   enableval="$enable_popupwin"
8106
8107                           if test "$enableval" = yes; then
8108                             ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8109                           else
8110                             ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8111                           fi
8112
8113 else
8114
8115                           LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8116                           if test "x$LINE" != x ; then
8117                             eval "DEFAULT_$LINE"
8118                           else
8119                             no_cache=1
8120                           fi
8121
8122                           ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8123
8124 fi;
8125
8126           eval "$ac_cv_use_popupwin"
8127           if test "$no_cache" != 1; then
8128             echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8129           fi
8130
8131           if test "$wxUSE_POPUPWIN" = yes; then
8132             echo "$as_me:$LINENO: result: yes" >&5
8133 echo "${ECHO_T}yes" >&6
8134           else
8135             echo "$as_me:$LINENO: result: no" >&5
8136 echo "${ECHO_T}no" >&6
8137           fi
8138
8139
8140
8141
8142           enablestring=
8143           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8144 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8145           no_cache=0
8146           # Check whether --enable-commondlg or --disable-commondlg was given.
8147 if test "${enable_commondlg+set}" = set; then
8148   enableval="$enable_commondlg"
8149
8150                           if test "$enableval" = yes; then
8151                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8152                           else
8153                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8154                           fi
8155
8156 else
8157
8158                           LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8159                           if test "x$LINE" != x ; then
8160                             eval "DEFAULT_$LINE"
8161                           else
8162                             no_cache=1
8163                           fi
8164
8165                           ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8166
8167 fi;
8168
8169           eval "$ac_cv_use_commondlg"
8170           if test "$no_cache" != 1; then
8171             echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8172           fi
8173
8174           if test "$wxUSE_COMMONDLGS" = yes; then
8175             echo "$as_me:$LINENO: result: yes" >&5
8176 echo "${ECHO_T}yes" >&6
8177           else
8178             echo "$as_me:$LINENO: result: no" >&5
8179 echo "${ECHO_T}no" >&6
8180           fi
8181
8182
8183           enablestring=
8184           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8185 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8186           no_cache=0
8187           # Check whether --enable-choicedlg or --disable-choicedlg was given.
8188 if test "${enable_choicedlg+set}" = set; then
8189   enableval="$enable_choicedlg"
8190
8191                           if test "$enableval" = yes; then
8192                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8193                           else
8194                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8195                           fi
8196
8197 else
8198
8199                           LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8200                           if test "x$LINE" != x ; then
8201                             eval "DEFAULT_$LINE"
8202                           else
8203                             no_cache=1
8204                           fi
8205
8206                           ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8207
8208 fi;
8209
8210           eval "$ac_cv_use_choicedlg"
8211           if test "$no_cache" != 1; then
8212             echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8213           fi
8214
8215           if test "$wxUSE_CHOICEDLG" = yes; then
8216             echo "$as_me:$LINENO: result: yes" >&5
8217 echo "${ECHO_T}yes" >&6
8218           else
8219             echo "$as_me:$LINENO: result: no" >&5
8220 echo "${ECHO_T}no" >&6
8221           fi
8222
8223
8224           enablestring=
8225           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8226 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8227           no_cache=0
8228           # Check whether --enable-coldlg or --disable-coldlg was given.
8229 if test "${enable_coldlg+set}" = set; then
8230   enableval="$enable_coldlg"
8231
8232                           if test "$enableval" = yes; then
8233                             ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8234                           else
8235                             ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8236                           fi
8237
8238 else
8239
8240                           LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8241                           if test "x$LINE" != x ; then
8242                             eval "DEFAULT_$LINE"
8243                           else
8244                             no_cache=1
8245                           fi
8246
8247                           ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8248
8249 fi;
8250
8251           eval "$ac_cv_use_coldlg"
8252           if test "$no_cache" != 1; then
8253             echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8254           fi
8255
8256           if test "$wxUSE_COLOURDLG" = yes; then
8257             echo "$as_me:$LINENO: result: yes" >&5
8258 echo "${ECHO_T}yes" >&6
8259           else
8260             echo "$as_me:$LINENO: result: no" >&5
8261 echo "${ECHO_T}no" >&6
8262           fi
8263
8264
8265           enablestring=
8266           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8267 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8268           no_cache=0
8269           # Check whether --enable-filedlg or --disable-filedlg was given.
8270 if test "${enable_filedlg+set}" = set; then
8271   enableval="$enable_filedlg"
8272
8273                           if test "$enableval" = yes; then
8274                             ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8275                           else
8276                             ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8277                           fi
8278
8279 else
8280
8281                           LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8282                           if test "x$LINE" != x ; then
8283                             eval "DEFAULT_$LINE"
8284                           else
8285                             no_cache=1
8286                           fi
8287
8288                           ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8289
8290 fi;
8291
8292           eval "$ac_cv_use_filedlg"
8293           if test "$no_cache" != 1; then
8294             echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8295           fi
8296
8297           if test "$wxUSE_FILEDLG" = yes; then
8298             echo "$as_me:$LINENO: result: yes" >&5
8299 echo "${ECHO_T}yes" >&6
8300           else
8301             echo "$as_me:$LINENO: result: no" >&5
8302 echo "${ECHO_T}no" >&6
8303           fi
8304
8305
8306           enablestring=
8307           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8308 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8309           no_cache=0
8310           # Check whether --enable-finddlg or --disable-finddlg was given.
8311 if test "${enable_finddlg+set}" = set; then
8312   enableval="$enable_finddlg"
8313
8314                           if test "$enableval" = yes; then
8315                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8316                           else
8317                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8318                           fi
8319
8320 else
8321
8322                           LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8323                           if test "x$LINE" != x ; then
8324                             eval "DEFAULT_$LINE"
8325                           else
8326                             no_cache=1
8327                           fi
8328
8329                           ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8330
8331 fi;
8332
8333           eval "$ac_cv_use_finddlg"
8334           if test "$no_cache" != 1; then
8335             echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8336           fi
8337
8338           if test "$wxUSE_FINDREPLDLG" = yes; then
8339             echo "$as_me:$LINENO: result: yes" >&5
8340 echo "${ECHO_T}yes" >&6
8341           else
8342             echo "$as_me:$LINENO: result: no" >&5
8343 echo "${ECHO_T}no" >&6
8344           fi
8345
8346
8347           enablestring=
8348           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8349 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8350           no_cache=0
8351           # Check whether --enable-fontdlg or --disable-fontdlg was given.
8352 if test "${enable_fontdlg+set}" = set; then
8353   enableval="$enable_fontdlg"
8354
8355                           if test "$enableval" = yes; then
8356                             ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8357                           else
8358                             ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8359                           fi
8360
8361 else
8362
8363                           LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8364                           if test "x$LINE" != x ; then
8365                             eval "DEFAULT_$LINE"
8366                           else
8367                             no_cache=1
8368                           fi
8369
8370                           ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8371
8372 fi;
8373
8374           eval "$ac_cv_use_fontdlg"
8375           if test "$no_cache" != 1; then
8376             echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8377           fi
8378
8379           if test "$wxUSE_FONTDLG" = yes; then
8380             echo "$as_me:$LINENO: result: yes" >&5
8381 echo "${ECHO_T}yes" >&6
8382           else
8383             echo "$as_me:$LINENO: result: no" >&5
8384 echo "${ECHO_T}no" >&6
8385           fi
8386
8387
8388           enablestring=
8389           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8390 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8391           no_cache=0
8392           # Check whether --enable-dirdlg or --disable-dirdlg was given.
8393 if test "${enable_dirdlg+set}" = set; then
8394   enableval="$enable_dirdlg"
8395
8396                           if test "$enableval" = yes; then
8397                             ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8398                           else
8399                             ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8400                           fi
8401
8402 else
8403
8404                           LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8405                           if test "x$LINE" != x ; then
8406                             eval "DEFAULT_$LINE"
8407                           else
8408                             no_cache=1
8409                           fi
8410
8411                           ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
8412
8413 fi;
8414
8415           eval "$ac_cv_use_dirdlg"
8416           if test "$no_cache" != 1; then
8417             echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
8418           fi
8419
8420           if test "$wxUSE_DIRDLG" = yes; then
8421             echo "$as_me:$LINENO: result: yes" >&5
8422 echo "${ECHO_T}yes" >&6
8423           else
8424             echo "$as_me:$LINENO: result: no" >&5
8425 echo "${ECHO_T}no" >&6
8426           fi
8427
8428
8429           enablestring=
8430           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8431 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
8432           no_cache=0
8433           # Check whether --enable-msgdlg or --disable-msgdlg was given.
8434 if test "${enable_msgdlg+set}" = set; then
8435   enableval="$enable_msgdlg"
8436
8437                           if test "$enableval" = yes; then
8438                             ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
8439                           else
8440                             ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
8441                           fi
8442
8443 else
8444
8445                           LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
8446                           if test "x$LINE" != x ; then
8447                             eval "DEFAULT_$LINE"
8448                           else
8449                             no_cache=1
8450                           fi
8451
8452                           ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
8453
8454 fi;
8455
8456           eval "$ac_cv_use_msgdlg"
8457           if test "$no_cache" != 1; then
8458             echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
8459           fi
8460
8461           if test "$wxUSE_MSGDLG" = yes; then
8462             echo "$as_me:$LINENO: result: yes" >&5
8463 echo "${ECHO_T}yes" >&6
8464           else
8465             echo "$as_me:$LINENO: result: no" >&5
8466 echo "${ECHO_T}no" >&6
8467           fi
8468
8469
8470           enablestring=
8471           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8472 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
8473           no_cache=0
8474           # Check whether --enable-numberdlg or --disable-numberdlg was given.
8475 if test "${enable_numberdlg+set}" = set; then
8476   enableval="$enable_numberdlg"
8477
8478                           if test "$enableval" = yes; then
8479                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
8480                           else
8481                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
8482                           fi
8483
8484 else
8485
8486                           LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
8487                           if test "x$LINE" != x ; then
8488                             eval "DEFAULT_$LINE"
8489                           else
8490                             no_cache=1
8491                           fi
8492
8493                           ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
8494
8495 fi;
8496
8497           eval "$ac_cv_use_numberdlg"
8498           if test "$no_cache" != 1; then
8499             echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
8500           fi
8501
8502           if test "$wxUSE_NUMBERDLG" = yes; then
8503             echo "$as_me:$LINENO: result: yes" >&5
8504 echo "${ECHO_T}yes" >&6
8505           else
8506             echo "$as_me:$LINENO: result: no" >&5
8507 echo "${ECHO_T}no" >&6
8508           fi
8509
8510
8511           enablestring=
8512           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8513 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
8514           no_cache=0
8515           # Check whether --enable-splash or --disable-splash was given.
8516 if test "${enable_splash+set}" = set; then
8517   enableval="$enable_splash"
8518
8519                           if test "$enableval" = yes; then
8520                             ac_cv_use_splash='wxUSE_SPLASH=yes'
8521                           else
8522                             ac_cv_use_splash='wxUSE_SPLASH=no'
8523                           fi
8524
8525 else
8526
8527                           LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8528                           if test "x$LINE" != x ; then
8529                             eval "DEFAULT_$LINE"
8530                           else
8531                             no_cache=1
8532                           fi
8533
8534                           ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
8535
8536 fi;
8537
8538           eval "$ac_cv_use_splash"
8539           if test "$no_cache" != 1; then
8540             echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8541           fi
8542
8543           if test "$wxUSE_SPLASH" = yes; then
8544             echo "$as_me:$LINENO: result: yes" >&5
8545 echo "${ECHO_T}yes" >&6
8546           else
8547             echo "$as_me:$LINENO: result: no" >&5
8548 echo "${ECHO_T}no" >&6
8549           fi
8550
8551
8552           enablestring=
8553           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8554 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
8555           no_cache=0
8556           # Check whether --enable-textdlg or --disable-textdlg was given.
8557 if test "${enable_textdlg+set}" = set; then
8558   enableval="$enable_textdlg"
8559
8560                           if test "$enableval" = yes; then
8561                             ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8562                           else
8563                             ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8564                           fi
8565
8566 else
8567
8568                           LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8569                           if test "x$LINE" != x ; then
8570                             eval "DEFAULT_$LINE"
8571                           else
8572                             no_cache=1
8573                           fi
8574
8575                           ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
8576
8577 fi;
8578
8579           eval "$ac_cv_use_textdlg"
8580           if test "$no_cache" != 1; then
8581             echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8582           fi
8583
8584           if test "$wxUSE_TEXTDLG" = yes; then
8585             echo "$as_me:$LINENO: result: yes" >&5
8586 echo "${ECHO_T}yes" >&6
8587           else
8588             echo "$as_me:$LINENO: result: no" >&5
8589 echo "${ECHO_T}no" >&6
8590           fi
8591
8592
8593           enablestring=
8594           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8595 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
8596           no_cache=0
8597           # Check whether --enable-tipdlg or --disable-tipdlg was given.
8598 if test "${enable_tipdlg+set}" = set; then
8599   enableval="$enable_tipdlg"
8600
8601                           if test "$enableval" = yes; then
8602                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8603                           else
8604                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8605                           fi
8606
8607 else
8608
8609                           LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8610                           if test "x$LINE" != x ; then
8611                             eval "DEFAULT_$LINE"
8612                           else
8613                             no_cache=1
8614                           fi
8615
8616                           ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
8617
8618 fi;
8619
8620           eval "$ac_cv_use_tipdlg"
8621           if test "$no_cache" != 1; then
8622             echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8623           fi
8624
8625           if test "$wxUSE_STARTUP_TIPS" = yes; then
8626             echo "$as_me:$LINENO: result: yes" >&5
8627 echo "${ECHO_T}yes" >&6
8628           else
8629             echo "$as_me:$LINENO: result: no" >&5
8630 echo "${ECHO_T}no" >&6
8631           fi
8632
8633
8634           enablestring=
8635           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8636 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
8637           no_cache=0
8638           # Check whether --enable-progressdlg or --disable-progressdlg was given.
8639 if test "${enable_progressdlg+set}" = set; then
8640   enableval="$enable_progressdlg"
8641
8642                           if test "$enableval" = yes; then
8643                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8644                           else
8645                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8646                           fi
8647
8648 else
8649
8650                           LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8651                           if test "x$LINE" != x ; then
8652                             eval "DEFAULT_$LINE"
8653                           else
8654                             no_cache=1
8655                           fi
8656
8657                           ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
8658
8659 fi;
8660
8661           eval "$ac_cv_use_progressdlg"
8662           if test "$no_cache" != 1; then
8663             echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8664           fi
8665
8666           if test "$wxUSE_PROGRESSDLG" = yes; then
8667             echo "$as_me:$LINENO: result: yes" >&5
8668 echo "${ECHO_T}yes" >&6
8669           else
8670             echo "$as_me:$LINENO: result: no" >&5
8671 echo "${ECHO_T}no" >&6
8672           fi
8673
8674
8675           enablestring=
8676           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
8677 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
8678           no_cache=0
8679           # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8680 if test "${enable_wizarddlg+set}" = set; then
8681   enableval="$enable_wizarddlg"
8682
8683                           if test "$enableval" = yes; then
8684                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8685                           else
8686                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8687                           fi
8688
8689 else
8690
8691                           LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8692                           if test "x$LINE" != x ; then
8693                             eval "DEFAULT_$LINE"
8694                           else
8695                             no_cache=1
8696                           fi
8697
8698                           ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
8699
8700 fi;
8701
8702           eval "$ac_cv_use_wizarddlg"
8703           if test "$no_cache" != 1; then
8704             echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8705           fi
8706
8707           if test "$wxUSE_WIZARDDLG" = yes; then
8708             echo "$as_me:$LINENO: result: yes" >&5
8709 echo "${ECHO_T}yes" >&6
8710           else
8711             echo "$as_me:$LINENO: result: no" >&5
8712 echo "${ECHO_T}no" >&6
8713           fi
8714
8715
8716
8717
8718           enablestring=
8719           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
8720 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
8721           no_cache=0
8722           # Check whether --enable-menus or --disable-menus was given.
8723 if test "${enable_menus+set}" = set; then
8724   enableval="$enable_menus"
8725
8726                           if test "$enableval" = yes; then
8727                             ac_cv_use_menus='wxUSE_MENUS=yes'
8728                           else
8729                             ac_cv_use_menus='wxUSE_MENUS=no'
8730                           fi
8731
8732 else
8733
8734                           LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8735                           if test "x$LINE" != x ; then
8736                             eval "DEFAULT_$LINE"
8737                           else
8738                             no_cache=1
8739                           fi
8740
8741                           ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
8742
8743 fi;
8744
8745           eval "$ac_cv_use_menus"
8746           if test "$no_cache" != 1; then
8747             echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8748           fi
8749
8750           if test "$wxUSE_MENUS" = yes; then
8751             echo "$as_me:$LINENO: result: yes" >&5
8752 echo "${ECHO_T}yes" >&6
8753           else
8754             echo "$as_me:$LINENO: result: no" >&5
8755 echo "${ECHO_T}no" >&6
8756           fi
8757
8758
8759           enablestring=
8760           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
8761 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
8762           no_cache=0
8763           # Check whether --enable-miniframe or --disable-miniframe was given.
8764 if test "${enable_miniframe+set}" = set; then
8765   enableval="$enable_miniframe"
8766
8767                           if test "$enableval" = yes; then
8768                             ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8769                           else
8770                             ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8771                           fi
8772
8773 else
8774
8775                           LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8776                           if test "x$LINE" != x ; then
8777                             eval "DEFAULT_$LINE"
8778                           else
8779                             no_cache=1
8780                           fi
8781
8782                           ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
8783
8784 fi;
8785
8786           eval "$ac_cv_use_miniframe"
8787           if test "$no_cache" != 1; then
8788             echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8789           fi
8790
8791           if test "$wxUSE_MINIFRAME" = yes; then
8792             echo "$as_me:$LINENO: result: yes" >&5
8793 echo "${ECHO_T}yes" >&6
8794           else
8795             echo "$as_me:$LINENO: result: no" >&5
8796 echo "${ECHO_T}no" >&6
8797           fi
8798
8799
8800           enablestring=
8801           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
8802 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
8803           no_cache=0
8804           # Check whether --enable-tooltips or --disable-tooltips was given.
8805 if test "${enable_tooltips+set}" = set; then
8806   enableval="$enable_tooltips"
8807
8808                           if test "$enableval" = yes; then
8809                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
8810                           else
8811                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
8812                           fi
8813
8814 else
8815
8816                           LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
8817                           if test "x$LINE" != x ; then
8818                             eval "DEFAULT_$LINE"
8819                           else
8820                             no_cache=1
8821                           fi
8822
8823                           ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
8824
8825 fi;
8826
8827           eval "$ac_cv_use_tooltips"
8828           if test "$no_cache" != 1; then
8829             echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
8830           fi
8831
8832           if test "$wxUSE_TOOLTIPS" = yes; then
8833             echo "$as_me:$LINENO: result: yes" >&5
8834 echo "${ECHO_T}yes" >&6
8835           else
8836             echo "$as_me:$LINENO: result: no" >&5
8837 echo "${ECHO_T}no" >&6
8838           fi
8839
8840
8841           enablestring=
8842           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
8843 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
8844           no_cache=0
8845           # Check whether --enable-splines or --disable-splines was given.
8846 if test "${enable_splines+set}" = set; then
8847   enableval="$enable_splines"
8848
8849                           if test "$enableval" = yes; then
8850                             ac_cv_use_splines='wxUSE_SPLINES=yes'
8851                           else
8852                             ac_cv_use_splines='wxUSE_SPLINES=no'
8853                           fi
8854
8855 else
8856
8857                           LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
8858                           if test "x$LINE" != x ; then
8859                             eval "DEFAULT_$LINE"
8860                           else
8861                             no_cache=1
8862                           fi
8863
8864                           ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
8865
8866 fi;
8867
8868           eval "$ac_cv_use_splines"
8869           if test "$no_cache" != 1; then
8870             echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
8871           fi
8872
8873           if test "$wxUSE_SPLINES" = yes; then
8874             echo "$as_me:$LINENO: result: yes" >&5
8875 echo "${ECHO_T}yes" >&6
8876           else
8877             echo "$as_me:$LINENO: result: no" >&5
8878 echo "${ECHO_T}no" >&6
8879           fi
8880
8881
8882           enablestring=
8883           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
8884 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
8885           no_cache=0
8886           # Check whether --enable-validators or --disable-validators was given.
8887 if test "${enable_validators+set}" = set; then
8888   enableval="$enable_validators"
8889
8890                           if test "$enableval" = yes; then
8891                             ac_cv_use_validators='wxUSE_VALIDATORS=yes'
8892                           else
8893                             ac_cv_use_validators='wxUSE_VALIDATORS=no'
8894                           fi
8895
8896 else
8897
8898                           LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
8899                           if test "x$LINE" != x ; then
8900                             eval "DEFAULT_$LINE"
8901                           else
8902                             no_cache=1
8903                           fi
8904
8905                           ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
8906
8907 fi;
8908
8909           eval "$ac_cv_use_validators"
8910           if test "$no_cache" != 1; then
8911             echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
8912           fi
8913
8914           if test "$wxUSE_VALIDATORS" = yes; then
8915             echo "$as_me:$LINENO: result: yes" >&5
8916 echo "${ECHO_T}yes" >&6
8917           else
8918             echo "$as_me:$LINENO: result: no" >&5
8919 echo "${ECHO_T}no" >&6
8920           fi
8921
8922
8923           enablestring=
8924           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
8925 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
8926           no_cache=0
8927           # Check whether --enable-busyinfo or --disable-busyinfo was given.
8928 if test "${enable_busyinfo+set}" = set; then
8929   enableval="$enable_busyinfo"
8930
8931                           if test "$enableval" = yes; then
8932                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
8933                           else
8934                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
8935                           fi
8936
8937 else
8938
8939                           LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8940                           if test "x$LINE" != x ; then
8941                             eval "DEFAULT_$LINE"
8942                           else
8943                             no_cache=1
8944                           fi
8945
8946                           ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
8947
8948 fi;
8949
8950           eval "$ac_cv_use_busyinfo"
8951           if test "$no_cache" != 1; then
8952             echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8953           fi
8954
8955           if test "$wxUSE_BUSYINFO" = yes; then
8956             echo "$as_me:$LINENO: result: yes" >&5
8957 echo "${ECHO_T}yes" >&6
8958           else
8959             echo "$as_me:$LINENO: result: no" >&5
8960 echo "${ECHO_T}no" >&6
8961           fi
8962
8963
8964           enablestring=
8965           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
8966 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
8967           no_cache=0
8968           # Check whether --enable-joystick or --disable-joystick was given.
8969 if test "${enable_joystick+set}" = set; then
8970   enableval="$enable_joystick"
8971
8972                           if test "$enableval" = yes; then
8973                             ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8974                           else
8975                             ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8976                           fi
8977
8978 else
8979
8980                           LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8981                           if test "x$LINE" != x ; then
8982                             eval "DEFAULT_$LINE"
8983                           else
8984                             no_cache=1
8985                           fi
8986
8987                           ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8988
8989 fi;
8990
8991           eval "$ac_cv_use_joystick"
8992           if test "$no_cache" != 1; then
8993             echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8994           fi
8995
8996           if test "$wxUSE_JOYSTICK" = yes; then
8997             echo "$as_me:$LINENO: result: yes" >&5
8998 echo "${ECHO_T}yes" >&6
8999           else
9000             echo "$as_me:$LINENO: result: no" >&5
9001 echo "${ECHO_T}no" >&6
9002           fi
9003
9004
9005           enablestring=
9006           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9007 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9008           no_cache=0
9009           # Check whether --enable-metafile or --disable-metafile was given.
9010 if test "${enable_metafile+set}" = set; then
9011   enableval="$enable_metafile"
9012
9013                           if test "$enableval" = yes; then
9014                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
9015                           else
9016                             ac_cv_use_metafile='wxUSE_METAFILE=no'
9017                           fi
9018
9019 else
9020
9021                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9022                           if test "x$LINE" != x ; then
9023                             eval "DEFAULT_$LINE"
9024                           else
9025                             no_cache=1
9026                           fi
9027
9028                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9029
9030 fi;
9031
9032           eval "$ac_cv_use_metafile"
9033           if test "$no_cache" != 1; then
9034             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9035           fi
9036
9037           if test "$wxUSE_METAFILE" = yes; then
9038             echo "$as_me:$LINENO: result: yes" >&5
9039 echo "${ECHO_T}yes" >&6
9040           else
9041             echo "$as_me:$LINENO: result: no" >&5
9042 echo "${ECHO_T}no" >&6
9043           fi
9044
9045
9046           enablestring=
9047           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9048 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9049           no_cache=0
9050           # Check whether --enable-dragimage or --disable-dragimage was given.
9051 if test "${enable_dragimage+set}" = set; then
9052   enableval="$enable_dragimage"
9053
9054                           if test "$enableval" = yes; then
9055                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9056                           else
9057                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9058                           fi
9059
9060 else
9061
9062                           LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9063                           if test "x$LINE" != x ; then
9064                             eval "DEFAULT_$LINE"
9065                           else
9066                             no_cache=1
9067                           fi
9068
9069                           ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9070
9071 fi;
9072
9073           eval "$ac_cv_use_dragimage"
9074           if test "$no_cache" != 1; then
9075             echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9076           fi
9077
9078           if test "$wxUSE_DRAGIMAGE" = yes; then
9079             echo "$as_me:$LINENO: result: yes" >&5
9080 echo "${ECHO_T}yes" >&6
9081           else
9082             echo "$as_me:$LINENO: result: no" >&5
9083 echo "${ECHO_T}no" >&6
9084           fi
9085
9086
9087           enablestring=
9088           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9089 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9090           no_cache=0
9091           # Check whether --enable-accessibility or --disable-accessibility was given.
9092 if test "${enable_accessibility+set}" = set; then
9093   enableval="$enable_accessibility"
9094
9095                           if test "$enableval" = yes; then
9096                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9097                           else
9098                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9099                           fi
9100
9101 else
9102
9103                           LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9104                           if test "x$LINE" != x ; then
9105                             eval "DEFAULT_$LINE"
9106                           else
9107                             no_cache=1
9108                           fi
9109
9110                           ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9111
9112 fi;
9113
9114           eval "$ac_cv_use_accessibility"
9115           if test "$no_cache" != 1; then
9116             echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9117           fi
9118
9119           if test "$wxUSE_ACCESSIBILITY" = yes; then
9120             echo "$as_me:$LINENO: result: yes" >&5
9121 echo "${ECHO_T}yes" >&6
9122           else
9123             echo "$as_me:$LINENO: result: no" >&5
9124 echo "${ECHO_T}no" >&6
9125           fi
9126
9127
9128
9129
9130           enablestring=
9131           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9132 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9133           no_cache=0
9134           # Check whether --enable-palette or --disable-palette was given.
9135 if test "${enable_palette+set}" = set; then
9136   enableval="$enable_palette"
9137
9138                           if test "$enableval" = yes; then
9139                             ac_cv_use_palette='wxUSE_PALETTE=yes'
9140                           else
9141                             ac_cv_use_palette='wxUSE_PALETTE=no'
9142                           fi
9143
9144 else
9145
9146                           LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9147                           if test "x$LINE" != x ; then
9148                             eval "DEFAULT_$LINE"
9149                           else
9150                             no_cache=1
9151                           fi
9152
9153                           ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9154
9155 fi;
9156
9157           eval "$ac_cv_use_palette"
9158           if test "$no_cache" != 1; then
9159             echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9160           fi
9161
9162           if test "$wxUSE_PALETTE" = yes; then
9163             echo "$as_me:$LINENO: result: yes" >&5
9164 echo "${ECHO_T}yes" >&6
9165           else
9166             echo "$as_me:$LINENO: result: no" >&5
9167 echo "${ECHO_T}no" >&6
9168           fi
9169
9170
9171           enablestring=
9172           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9173 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9174           no_cache=0
9175           # Check whether --enable-image or --disable-image was given.
9176 if test "${enable_image+set}" = set; then
9177   enableval="$enable_image"
9178
9179                           if test "$enableval" = yes; then
9180                             ac_cv_use_image='wxUSE_IMAGE=yes'
9181                           else
9182                             ac_cv_use_image='wxUSE_IMAGE=no'
9183                           fi
9184
9185 else
9186
9187                           LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9188                           if test "x$LINE" != x ; then
9189                             eval "DEFAULT_$LINE"
9190                           else
9191                             no_cache=1
9192                           fi
9193
9194                           ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9195
9196 fi;
9197
9198           eval "$ac_cv_use_image"
9199           if test "$no_cache" != 1; then
9200             echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9201           fi
9202
9203           if test "$wxUSE_IMAGE" = yes; then
9204             echo "$as_me:$LINENO: result: yes" >&5
9205 echo "${ECHO_T}yes" >&6
9206           else
9207             echo "$as_me:$LINENO: result: no" >&5
9208 echo "${ECHO_T}no" >&6
9209           fi
9210
9211
9212           enablestring=
9213           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9214 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9215           no_cache=0
9216           # Check whether --enable-gif or --disable-gif was given.
9217 if test "${enable_gif+set}" = set; then
9218   enableval="$enable_gif"
9219
9220                           if test "$enableval" = yes; then
9221                             ac_cv_use_gif='wxUSE_GIF=yes'
9222                           else
9223                             ac_cv_use_gif='wxUSE_GIF=no'
9224                           fi
9225
9226 else
9227
9228                           LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9229                           if test "x$LINE" != x ; then
9230                             eval "DEFAULT_$LINE"
9231                           else
9232                             no_cache=1
9233                           fi
9234
9235                           ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9236
9237 fi;
9238
9239           eval "$ac_cv_use_gif"
9240           if test "$no_cache" != 1; then
9241             echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9242           fi
9243
9244           if test "$wxUSE_GIF" = yes; then
9245             echo "$as_me:$LINENO: result: yes" >&5
9246 echo "${ECHO_T}yes" >&6
9247           else
9248             echo "$as_me:$LINENO: result: no" >&5
9249 echo "${ECHO_T}no" >&6
9250           fi
9251
9252
9253           enablestring=
9254           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9255 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9256           no_cache=0
9257           # Check whether --enable-pcx or --disable-pcx was given.
9258 if test "${enable_pcx+set}" = set; then
9259   enableval="$enable_pcx"
9260
9261                           if test "$enableval" = yes; then
9262                             ac_cv_use_pcx='wxUSE_PCX=yes'
9263                           else
9264                             ac_cv_use_pcx='wxUSE_PCX=no'
9265                           fi
9266
9267 else
9268
9269                           LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9270                           if test "x$LINE" != x ; then
9271                             eval "DEFAULT_$LINE"
9272                           else
9273                             no_cache=1
9274                           fi
9275
9276                           ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9277
9278 fi;
9279
9280           eval "$ac_cv_use_pcx"
9281           if test "$no_cache" != 1; then
9282             echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9283           fi
9284
9285           if test "$wxUSE_PCX" = yes; then
9286             echo "$as_me:$LINENO: result: yes" >&5
9287 echo "${ECHO_T}yes" >&6
9288           else
9289             echo "$as_me:$LINENO: result: no" >&5
9290 echo "${ECHO_T}no" >&6
9291           fi
9292
9293
9294           enablestring=
9295           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9296 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9297           no_cache=0
9298           # Check whether --enable-iff or --disable-iff was given.
9299 if test "${enable_iff+set}" = set; then
9300   enableval="$enable_iff"
9301
9302                           if test "$enableval" = yes; then
9303                             ac_cv_use_iff='wxUSE_IFF=yes'
9304                           else
9305                             ac_cv_use_iff='wxUSE_IFF=no'
9306                           fi
9307
9308 else
9309
9310                           LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9311                           if test "x$LINE" != x ; then
9312                             eval "DEFAULT_$LINE"
9313                           else
9314                             no_cache=1
9315                           fi
9316
9317                           ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9318
9319 fi;
9320
9321           eval "$ac_cv_use_iff"
9322           if test "$no_cache" != 1; then
9323             echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9324           fi
9325
9326           if test "$wxUSE_IFF" = yes; then
9327             echo "$as_me:$LINENO: result: yes" >&5
9328 echo "${ECHO_T}yes" >&6
9329           else
9330             echo "$as_me:$LINENO: result: no" >&5
9331 echo "${ECHO_T}no" >&6
9332           fi
9333
9334
9335           enablestring=
9336           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9337 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9338           no_cache=0
9339           # Check whether --enable-pnm or --disable-pnm was given.
9340 if test "${enable_pnm+set}" = set; then
9341   enableval="$enable_pnm"
9342
9343                           if test "$enableval" = yes; then
9344                             ac_cv_use_pnm='wxUSE_PNM=yes'
9345                           else
9346                             ac_cv_use_pnm='wxUSE_PNM=no'
9347                           fi
9348
9349 else
9350
9351                           LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9352                           if test "x$LINE" != x ; then
9353                             eval "DEFAULT_$LINE"
9354                           else
9355                             no_cache=1
9356                           fi
9357
9358                           ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9359
9360 fi;
9361
9362           eval "$ac_cv_use_pnm"
9363           if test "$no_cache" != 1; then
9364             echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9365           fi
9366
9367           if test "$wxUSE_PNM" = yes; then
9368             echo "$as_me:$LINENO: result: yes" >&5
9369 echo "${ECHO_T}yes" >&6
9370           else
9371             echo "$as_me:$LINENO: result: no" >&5
9372 echo "${ECHO_T}no" >&6
9373           fi
9374
9375
9376           enablestring=
9377           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9378 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9379           no_cache=0
9380           # Check whether --enable-xpm or --disable-xpm was given.
9381 if test "${enable_xpm+set}" = set; then
9382   enableval="$enable_xpm"
9383
9384                           if test "$enableval" = yes; then
9385                             ac_cv_use_xpm='wxUSE_XPM=yes'
9386                           else
9387                             ac_cv_use_xpm='wxUSE_XPM=no'
9388                           fi
9389
9390 else
9391
9392                           LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9393                           if test "x$LINE" != x ; then
9394                             eval "DEFAULT_$LINE"
9395                           else
9396                             no_cache=1
9397                           fi
9398
9399                           ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9400
9401 fi;
9402
9403           eval "$ac_cv_use_xpm"
9404           if test "$no_cache" != 1; then
9405             echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9406           fi
9407
9408           if test "$wxUSE_XPM" = yes; then
9409             echo "$as_me:$LINENO: result: yes" >&5
9410 echo "${ECHO_T}yes" >&6
9411           else
9412             echo "$as_me:$LINENO: result: no" >&5
9413 echo "${ECHO_T}no" >&6
9414           fi
9415
9416
9417           enablestring=
9418           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9419 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
9420           no_cache=0
9421           # Check whether --enable-ico_cur or --disable-ico_cur was given.
9422 if test "${enable_ico_cur+set}" = set; then
9423   enableval="$enable_ico_cur"
9424
9425                           if test "$enableval" = yes; then
9426                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
9427                           else
9428                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
9429                           fi
9430
9431 else
9432
9433                           LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9434                           if test "x$LINE" != x ; then
9435                             eval "DEFAULT_$LINE"
9436                           else
9437                             no_cache=1
9438                           fi
9439
9440                           ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
9441
9442 fi;
9443
9444           eval "$ac_cv_use_ico_cur"
9445           if test "$no_cache" != 1; then
9446             echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
9447           fi
9448
9449           if test "$wxUSE_ICO_CUR" = yes; then
9450             echo "$as_me:$LINENO: result: yes" >&5
9451 echo "${ECHO_T}yes" >&6
9452           else
9453             echo "$as_me:$LINENO: result: no" >&5
9454 echo "${ECHO_T}no" >&6
9455           fi
9456
9457
9458 fi
9459
9460
9461
9462           enablestring=
9463           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9464 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9465           no_cache=0
9466           # Check whether --enable-official_build or --disable-official_build was given.
9467 if test "${enable_official_build+set}" = set; then
9468   enableval="$enable_official_build"
9469
9470                           if test "$enableval" = yes; then
9471                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9472                           else
9473                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9474                           fi
9475
9476 else
9477
9478                           LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9479                           if test "x$LINE" != x ; then
9480                             eval "DEFAULT_$LINE"
9481                           else
9482                             no_cache=1
9483                           fi
9484
9485                           ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9486
9487 fi;
9488
9489           eval "$ac_cv_use_official_build"
9490           if test "$no_cache" != 1; then
9491             echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9492           fi
9493
9494           if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9495             echo "$as_me:$LINENO: result: yes" >&5
9496 echo "${ECHO_T}yes" >&6
9497           else
9498             echo "$as_me:$LINENO: result: no" >&5
9499 echo "${ECHO_T}no" >&6
9500           fi
9501
9502 # Check whether --enable-vendor or --disable-vendor was given.
9503 if test "${enable_vendor+set}" = set; then
9504   enableval="$enable_vendor"
9505   VENDOR="$enableval"
9506 fi;
9507 if test "x$VENDOR" = "x"; then
9508     VENDOR="custom"
9509 fi
9510
9511 case "${host}" in
9512   *-pc-os2_emx | *-pc-os2-emx )
9513     PATH_IFS=';'
9514     LEX_STEM="lexyy"
9515   ;;
9516   *)
9517     PATH_IFS=':'
9518     LEX_STEM="lex.yy"
9519   ;;
9520 esac
9521
9522
9523
9524           echo "saving argument cache $wx_arg_cache_file"
9525           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
9526
9527
9528
9529 echo "$as_me:$LINENO: checking for toolkit" >&5
9530 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
9531
9532 # In Wine, we need to default to MSW, not GTK or MOTIF
9533 if test "$wxUSE_WINE" = "yes"; then
9534     DEFAULT_DEFAULT_wxUSE_GTK=0
9535     DEFAULT_DEFAULT_wxUSE_MOTIF=0
9536     DEFAULT_DEFAULT_wxUSE_MSW=1
9537 fi
9538
9539 if test "$wxUSE_GUI" = "yes"; then
9540
9541     if test "$USE_BEOS" = 1; then
9542         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9543 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9544    { (exit 1); exit 1; }; }
9545     fi
9546
9547     if test "$TOOLKIT_GIVEN" = 1; then
9548             for toolkit in `echo $ALL_TOOLKITS`; do
9549         var=wxUSE_$toolkit
9550         eval "value=\$${var}"
9551         eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9552       done
9553     else
9554             for toolkit in `echo $ALL_TOOLKITS`; do
9555         if test "$has_toolkit_in_cache" != 1; then
9556           var=DEFAULT_DEFAULT_wxUSE_$toolkit
9557         else
9558           var=DEFAULT_wxUSE_$toolkit
9559         fi
9560         eval "wxUSE_$toolkit=\$${var}"
9561       done
9562     fi
9563
9564             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9565                   + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9566                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
9567
9568         case "${host}" in
9569       *-pc-os2_emx | *-pc-os2-emx )
9570         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
9571     esac
9572
9573     case "$NUM_TOOLKITS" in
9574       1)
9575       ;;
9576       0)
9577         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9578 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9579    { (exit 1); exit 1; }; }
9580       ;;
9581       *)
9582         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9583 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9584    { (exit 1); exit 1; }; }
9585     esac
9586
9587         for toolkit in `echo $ALL_TOOLKITS`; do
9588       var=wxUSE_$toolkit
9589       eval "value=\$${var}"
9590       if test "x$value" != x; then
9591         cache_var=CACHE_$toolkit
9592         eval "cache=\$${cache_var}"
9593         if test "$cache" = 1; then
9594           echo "$var=$value" >> ${wx_arg_cache_file}
9595         fi
9596         if test "$value" = 1; then
9597           toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
9598           echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9599 echo "${ECHO_T}$toolkit_echo" >&6
9600         fi
9601       fi
9602     done
9603 else
9604     if test "x$host_alias" != "x"; then
9605         echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
9606 echo "${ECHO_T}base ($host_alias hosted) only" >&6
9607     else
9608         echo "$as_me:$LINENO: result: base only" >&5
9609 echo "${ECHO_T}base only" >&6
9610     fi
9611 fi
9612
9613 wants_win32=0
9614 doesnt_want_win32=0
9615 case "${host}" in
9616   *-*-cygwin*)
9617       if test "$wxUSE_MSW" = 1 ; then
9618         wants_win32=1
9619       else
9620         doesnt_want_win32=1
9621       fi
9622   ;;
9623   *-*-mingw*)
9624       wants_win32=1
9625   ;;
9626 esac
9627
9628 if test "$wxUSE_WINE" = "yes"; then
9629     wants_win32=1
9630         CC=winegcc
9631     CXX=wineg++
9632     RESCOMP=wrc
9633 fi
9634
9635 if test "$wants_win32" = 1 ; then
9636     USE_UNIX=0
9637     USE_WIN32=1
9638     cat >>confdefs.h <<\_ACEOF
9639 #define __WIN32__ 1
9640 _ACEOF
9641
9642     cat >>confdefs.h <<\_ACEOF
9643 #define __WIN95__ 1
9644 _ACEOF
9645
9646     cat >>confdefs.h <<\_ACEOF
9647 #define __WINDOWS__ 1
9648 _ACEOF
9649
9650     cat >>confdefs.h <<\_ACEOF
9651 #define __GNUWIN32__ 1
9652 _ACEOF
9653
9654     cat >>confdefs.h <<\_ACEOF
9655 #define STRICT 1
9656 _ACEOF
9657
9658     cat >>confdefs.h <<\_ACEOF
9659 #define WINVER 0x0400
9660 _ACEOF
9661
9662 fi
9663 if test "$doesnt_want_win32" = 1 ; then
9664     USE_UNIX=1
9665     USE_WIN32=0
9666 fi
9667
9668 if test "$USE_UNIX" = 1 ; then
9669     wxUSE_UNIX=yes
9670     cat >>confdefs.h <<\_ACEOF
9671 #define __UNIX__ 1
9672 _ACEOF
9673
9674 fi
9675
9676
9677 cat >confcache <<\_ACEOF
9678 # This file is a shell script that caches the results of configure
9679 # tests run on this system so they can be shared between configure
9680 # scripts and configure runs, see configure's option --config-cache.
9681 # It is not useful on other systems.  If it contains results you don't
9682 # want to keep, you may remove or edit it.
9683 #
9684 # config.status only pays attention to the cache file if you give it
9685 # the --recheck option to rerun configure.
9686 #
9687 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9688 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9689 # following values.
9690
9691 _ACEOF
9692
9693 # The following way of writing the cache mishandles newlines in values,
9694 # but we know of no workaround that is simple, portable, and efficient.
9695 # So, don't put newlines in cache variables' values.
9696 # Ultrix sh set writes to stderr and can't be redirected directly,
9697 # and sets the high bit in the cache file unless we assign to the vars.
9698 {
9699   (set) 2>&1 |
9700     case `(ac_space=' '; set | grep ac_space) 2>&1` in
9701     *ac_space=\ *)
9702       # `set' does not quote correctly, so add quotes (double-quote
9703       # substitution turns \\\\ into \\, and sed turns \\ into \).
9704       sed -n \
9705         "s/'/'\\\\''/g;
9706           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9707       ;;
9708     *)
9709       # `set' quotes correctly as required by POSIX, so do not add quotes.
9710       sed -n \
9711         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9712       ;;
9713     esac;
9714 } |
9715   sed '
9716      t clear
9717      : clear
9718      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9719      t end
9720      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9721      : end' >>confcache
9722 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9723   if test -w $cache_file; then
9724     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9725     cat confcache >$cache_file
9726   else
9727     echo "not updating unwritable cache $cache_file"
9728   fi
9729 fi
9730 rm -f confcache
9731
9732 if test "$build" != "$host" ; then
9733     if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
9734         CC=$host_alias-gcc
9735         CXX=$host_alias-c++
9736         AR=$host_alias-ar
9737         RANLIB=$host_alias-ranlib
9738         DLLTOOL=$host_alias-dlltool
9739         RESCOMP=$host_alias-windres
9740         LD=$host_alias-ld
9741         NM=$host_alias-nm
9742         STRIP=$host_alias-strip
9743     else
9744         { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
9745 echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
9746    { (exit 1); exit 1; }; }
9747     fi
9748 fi
9749
9750 CFLAGS=${CFLAGS:=}
9751 ac_ext=c
9752 ac_cpp='$CPP $CPPFLAGS'
9753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9756 if test -n "$ac_tool_prefix"; then
9757   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9758 set dummy ${ac_tool_prefix}gcc; ac_word=$2
9759 echo "$as_me:$LINENO: checking for $ac_word" >&5
9760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9761 if test "${ac_cv_prog_CC+set}" = set; then
9762   echo $ECHO_N "(cached) $ECHO_C" >&6
9763 else
9764   if test -n "$CC"; then
9765   ac_cv_prog_CC="$CC" # Let the user override the test.
9766 else
9767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9768 for as_dir in $PATH
9769 do
9770   IFS=$as_save_IFS
9771   test -z "$as_dir" && as_dir=.
9772   for ac_exec_ext in '' $ac_executable_extensions; do
9773   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9774     ac_cv_prog_CC="${ac_tool_prefix}gcc"
9775     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9776     break 2
9777   fi
9778 done
9779 done
9780
9781 fi
9782 fi
9783 CC=$ac_cv_prog_CC
9784 if test -n "$CC"; then
9785   echo "$as_me:$LINENO: result: $CC" >&5
9786 echo "${ECHO_T}$CC" >&6
9787 else
9788   echo "$as_me:$LINENO: result: no" >&5
9789 echo "${ECHO_T}no" >&6
9790 fi
9791
9792 fi
9793 if test -z "$ac_cv_prog_CC"; then
9794   ac_ct_CC=$CC
9795   # Extract the first word of "gcc", so it can be a program name with args.
9796 set dummy gcc; ac_word=$2
9797 echo "$as_me:$LINENO: checking for $ac_word" >&5
9798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9799 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9800   echo $ECHO_N "(cached) $ECHO_C" >&6
9801 else
9802   if test -n "$ac_ct_CC"; then
9803   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9804 else
9805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9806 for as_dir in $PATH
9807 do
9808   IFS=$as_save_IFS
9809   test -z "$as_dir" && as_dir=.
9810   for ac_exec_ext in '' $ac_executable_extensions; do
9811   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9812     ac_cv_prog_ac_ct_CC="gcc"
9813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9814     break 2
9815   fi
9816 done
9817 done
9818
9819 fi
9820 fi
9821 ac_ct_CC=$ac_cv_prog_ac_ct_CC
9822 if test -n "$ac_ct_CC"; then
9823   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9824 echo "${ECHO_T}$ac_ct_CC" >&6
9825 else
9826   echo "$as_me:$LINENO: result: no" >&5
9827 echo "${ECHO_T}no" >&6
9828 fi
9829
9830   CC=$ac_ct_CC
9831 else
9832   CC="$ac_cv_prog_CC"
9833 fi
9834
9835 if test -z "$CC"; then
9836   if test -n "$ac_tool_prefix"; then
9837   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
9838 set dummy ${ac_tool_prefix}cc; ac_word=$2
9839 echo "$as_me:$LINENO: checking for $ac_word" >&5
9840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9841 if test "${ac_cv_prog_CC+set}" = set; then
9842   echo $ECHO_N "(cached) $ECHO_C" >&6
9843 else
9844   if test -n "$CC"; then
9845   ac_cv_prog_CC="$CC" # Let the user override the test.
9846 else
9847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9848 for as_dir in $PATH
9849 do
9850   IFS=$as_save_IFS
9851   test -z "$as_dir" && as_dir=.
9852   for ac_exec_ext in '' $ac_executable_extensions; do
9853   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9854     ac_cv_prog_CC="${ac_tool_prefix}cc"
9855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9856     break 2
9857   fi
9858 done
9859 done
9860
9861 fi
9862 fi
9863 CC=$ac_cv_prog_CC
9864 if test -n "$CC"; then
9865   echo "$as_me:$LINENO: result: $CC" >&5
9866 echo "${ECHO_T}$CC" >&6
9867 else
9868   echo "$as_me:$LINENO: result: no" >&5
9869 echo "${ECHO_T}no" >&6
9870 fi
9871
9872 fi
9873 if test -z "$ac_cv_prog_CC"; then
9874   ac_ct_CC=$CC
9875   # Extract the first word of "cc", so it can be a program name with args.
9876 set dummy cc; ac_word=$2
9877 echo "$as_me:$LINENO: checking for $ac_word" >&5
9878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9879 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
9880   echo $ECHO_N "(cached) $ECHO_C" >&6
9881 else
9882   if test -n "$ac_ct_CC"; then
9883   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
9884 else
9885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9886 for as_dir in $PATH
9887 do
9888   IFS=$as_save_IFS
9889   test -z "$as_dir" && as_dir=.
9890   for ac_exec_ext in '' $ac_executable_extensions; do
9891   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9892     ac_cv_prog_ac_ct_CC="cc"
9893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9894     break 2
9895   fi
9896 done
9897 done
9898
9899 fi
9900 fi
9901 ac_ct_CC=$ac_cv_prog_ac_ct_CC
9902 if test -n "$ac_ct_CC"; then
9903   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9904 echo "${ECHO_T}$ac_ct_CC" >&6
9905 else
9906   echo "$as_me:$LINENO: result: no" >&5
9907 echo "${ECHO_T}no" >&6
9908 fi
9909
9910   CC=$ac_ct_CC
9911 else
9912   CC="$ac_cv_prog_CC"
9913 fi
9914
9915 fi
9916 if test -z "$CC"; then
9917   # Extract the first word of "cc", so it can be a program name with args.
9918 set dummy cc; ac_word=$2
9919 echo "$as_me:$LINENO: checking for $ac_word" >&5
9920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9921 if test "${ac_cv_prog_CC+set}" = set; then
9922   echo $ECHO_N "(cached) $ECHO_C" >&6
9923 else
9924   if test -n "$CC"; then
9925   ac_cv_prog_CC="$CC" # Let the user override the test.
9926 else
9927   ac_prog_rejected=no
9928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9929 for as_dir in $PATH
9930 do
9931   IFS=$as_save_IFS
9932   test -z "$as_dir" && as_dir=.
9933   for ac_exec_ext in '' $ac_executable_extensions; do
9934   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9935     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
9936        ac_prog_rejected=yes
9937        continue
9938      fi
9939     ac_cv_prog_CC="cc"
9940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9941     break 2
9942   fi
9943 done
9944 done
9945
9946 if test $ac_prog_rejected = yes; then
9947   # We found a bogon in the path, so make sure we never use it.
9948   set dummy $ac_cv_prog_CC
9949   shift
9950   if test $# != 0; then
9951     # We chose a different compiler from the bogus one.
9952     # However, it has the same basename, so the bogon will be chosen
9953     # first if we set CC to just the basename; use the full file name.
9954     shift
9955     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9956   fi
9957 fi
9958 fi
9959 fi
9960 CC=$ac_cv_prog_CC
9961 if test -n "$CC"; then
9962   echo "$as_me:$LINENO: result: $CC" >&5
9963 echo "${ECHO_T}$CC" >&6
9964 else
9965   echo "$as_me:$LINENO: result: no" >&5
9966 echo "${ECHO_T}no" >&6
9967 fi
9968
9969 fi
9970 if test -z "$CC"; then
9971   if test -n "$ac_tool_prefix"; then
9972   for ac_prog in cl
9973   do
9974     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9975 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9976 echo "$as_me:$LINENO: checking for $ac_word" >&5
9977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9978 if test "${ac_cv_prog_CC+set}" = set; then
9979   echo $ECHO_N "(cached) $ECHO_C" >&6
9980 else
9981   if test -n "$CC"; then
9982   ac_cv_prog_CC="$CC" # Let the user override the test.
9983 else
9984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9985 for as_dir in $PATH
9986 do
9987   IFS=$as_save_IFS
9988   test -z "$as_dir" && as_dir=.
9989   for ac_exec_ext in '' $ac_executable_extensions; do
9990   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9991     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
9992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9993     break 2
9994   fi
9995 done
9996 done
9997
9998 fi
9999 fi
10000 CC=$ac_cv_prog_CC
10001 if test -n "$CC"; then
10002   echo "$as_me:$LINENO: result: $CC" >&5
10003 echo "${ECHO_T}$CC" >&6
10004 else
10005   echo "$as_me:$LINENO: result: no" >&5
10006 echo "${ECHO_T}no" >&6
10007 fi
10008
10009     test -n "$CC" && break
10010   done
10011 fi
10012 if test -z "$CC"; then
10013   ac_ct_CC=$CC
10014   for ac_prog in cl
10015 do
10016   # Extract the first word of "$ac_prog", so it can be a program name with args.
10017 set dummy $ac_prog; ac_word=$2
10018 echo "$as_me:$LINENO: checking for $ac_word" >&5
10019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10020 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10021   echo $ECHO_N "(cached) $ECHO_C" >&6
10022 else
10023   if test -n "$ac_ct_CC"; then
10024   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10025 else
10026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10027 for as_dir in $PATH
10028 do
10029   IFS=$as_save_IFS
10030   test -z "$as_dir" && as_dir=.
10031   for ac_exec_ext in '' $ac_executable_extensions; do
10032   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10033     ac_cv_prog_ac_ct_CC="$ac_prog"
10034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10035     break 2
10036   fi
10037 done
10038 done
10039
10040 fi
10041 fi
10042 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10043 if test -n "$ac_ct_CC"; then
10044   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10045 echo "${ECHO_T}$ac_ct_CC" >&6
10046 else
10047   echo "$as_me:$LINENO: result: no" >&5
10048 echo "${ECHO_T}no" >&6
10049 fi
10050
10051   test -n "$ac_ct_CC" && break
10052 done
10053
10054   CC=$ac_ct_CC
10055 fi
10056
10057 fi
10058
10059
10060 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10061 See \`config.log' for more details." >&5
10062 echo "$as_me: error: no acceptable C compiler found in \$PATH
10063 See \`config.log' for more details." >&2;}
10064    { (exit 1); exit 1; }; }
10065
10066 # Provide some information about the compiler.
10067 echo "$as_me:$LINENO:" \
10068      "checking for C compiler version" >&5
10069 ac_compiler=`set X $ac_compile; echo $2`
10070 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10071   (eval $ac_compiler --version </dev/null >&5) 2>&5
10072   ac_status=$?
10073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074   (exit $ac_status); }
10075 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10076   (eval $ac_compiler -v </dev/null >&5) 2>&5
10077   ac_status=$?
10078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079   (exit $ac_status); }
10080 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10081   (eval $ac_compiler -V </dev/null >&5) 2>&5
10082   ac_status=$?
10083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084   (exit $ac_status); }
10085
10086 cat >conftest.$ac_ext <<_ACEOF
10087 #line $LINENO "configure"
10088 /* confdefs.h.  */
10089 _ACEOF
10090 cat confdefs.h >>conftest.$ac_ext
10091 cat >>conftest.$ac_ext <<_ACEOF
10092 /* end confdefs.h.  */
10093
10094 int
10095 main ()
10096 {
10097
10098   ;
10099   return 0;
10100 }
10101 _ACEOF
10102 ac_clean_files_save=$ac_clean_files
10103 ac_clean_files="$ac_clean_files a.out a.exe b.out"
10104 # Try to create an executable without -o first, disregard a.out.
10105 # It will help us diagnose broken compilers, and finding out an intuition
10106 # of exeext.
10107 echo "$as_me:$LINENO: checking for C compiler default output" >&5
10108 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
10109 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10110 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10111   (eval $ac_link_default) 2>&5
10112   ac_status=$?
10113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114   (exit $ac_status); }; then
10115   # Find the output, starting from the most likely.  This scheme is
10116 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
10117 # resort.
10118
10119 # Be careful to initialize this variable, since it used to be cached.
10120 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10121 ac_cv_exeext=
10122 # b.out is created by i960 compilers.
10123 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10124 do
10125   test -f "$ac_file" || continue
10126   case $ac_file in
10127     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
10128         ;;
10129     conftest.$ac_ext )
10130         # This is the source file.
10131         ;;
10132     [ab].out )
10133         # We found the default executable, but exeext='' is most
10134         # certainly right.
10135         break;;
10136     *.* )
10137         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10138         # FIXME: I believe we export ac_cv_exeext for Libtool,
10139         # but it would be cool to find out if it's true.  Does anybody
10140         # maintain Libtool? --akim.
10141         export ac_cv_exeext
10142         break;;
10143     * )
10144         break;;
10145   esac
10146 done
10147 else
10148   echo "$as_me: failed program was:" >&5
10149 sed 's/^/| /' conftest.$ac_ext >&5
10150
10151 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
10152 See \`config.log' for more details." >&5
10153 echo "$as_me: error: C compiler cannot create executables
10154 See \`config.log' for more details." >&2;}
10155    { (exit 77); exit 77; }; }
10156 fi
10157
10158 ac_exeext=$ac_cv_exeext
10159 echo "$as_me:$LINENO: result: $ac_file" >&5
10160 echo "${ECHO_T}$ac_file" >&6
10161
10162 # Check the compiler produces executables we can run.  If not, either
10163 # the compiler is broken, or we cross compile.
10164 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10165 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10166 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10167 # If not cross compiling, check that we can run a simple program.
10168 if test "$cross_compiling" != yes; then
10169   if { ac_try='./$ac_file'
10170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10171   (eval $ac_try) 2>&5
10172   ac_status=$?
10173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174   (exit $ac_status); }; }; then
10175     cross_compiling=no
10176   else
10177     if test "$cross_compiling" = maybe; then
10178         cross_compiling=yes
10179     else
10180         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10181 If you meant to cross compile, use \`--host'.
10182 See \`config.log' for more details." >&5
10183 echo "$as_me: error: cannot run C compiled programs.
10184 If you meant to cross compile, use \`--host'.
10185 See \`config.log' for more details." >&2;}
10186    { (exit 1); exit 1; }; }
10187     fi
10188   fi
10189 fi
10190 echo "$as_me:$LINENO: result: yes" >&5
10191 echo "${ECHO_T}yes" >&6
10192
10193 rm -f a.out a.exe conftest$ac_cv_exeext b.out
10194 ac_clean_files=$ac_clean_files_save
10195 # Check the compiler produces executables we can run.  If not, either
10196 # the compiler is broken, or we cross compile.
10197 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10198 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10199 echo "$as_me:$LINENO: result: $cross_compiling" >&5
10200 echo "${ECHO_T}$cross_compiling" >&6
10201
10202 echo "$as_me:$LINENO: checking for suffix of executables" >&5
10203 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10205   (eval $ac_link) 2>&5
10206   ac_status=$?
10207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208   (exit $ac_status); }; then
10209   # If both `conftest.exe' and `conftest' are `present' (well, observable)
10210 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
10211 # work properly (i.e., refer to `conftest.exe'), while it won't with
10212 # `rm'.
10213 for ac_file in conftest.exe conftest conftest.*; do
10214   test -f "$ac_file" || continue
10215   case $ac_file in
10216     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10217     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10218           export ac_cv_exeext
10219           break;;
10220     * ) break;;
10221   esac
10222 done
10223 else
10224   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10225 See \`config.log' for more details." >&5
10226 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10227 See \`config.log' for more details." >&2;}
10228    { (exit 1); exit 1; }; }
10229 fi
10230
10231 rm -f conftest$ac_cv_exeext
10232 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10233 echo "${ECHO_T}$ac_cv_exeext" >&6
10234
10235 rm -f conftest.$ac_ext
10236 EXEEXT=$ac_cv_exeext
10237 ac_exeext=$EXEEXT
10238 echo "$as_me:$LINENO: checking for suffix of object files" >&5
10239 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10240 if test "${ac_cv_objext+set}" = set; then
10241   echo $ECHO_N "(cached) $ECHO_C" >&6
10242 else
10243   cat >conftest.$ac_ext <<_ACEOF
10244 #line $LINENO "configure"
10245 /* confdefs.h.  */
10246 _ACEOF
10247 cat confdefs.h >>conftest.$ac_ext
10248 cat >>conftest.$ac_ext <<_ACEOF
10249 /* end confdefs.h.  */
10250
10251 int
10252 main ()
10253 {
10254
10255   ;
10256   return 0;
10257 }
10258 _ACEOF
10259 rm -f conftest.o conftest.obj
10260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10261   (eval $ac_compile) 2>&5
10262   ac_status=$?
10263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264   (exit $ac_status); }; then
10265   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10266   case $ac_file in
10267     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10268     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10269        break;;
10270   esac
10271 done
10272 else
10273   echo "$as_me: failed program was:" >&5
10274 sed 's/^/| /' conftest.$ac_ext >&5
10275
10276 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10277 See \`config.log' for more details." >&5
10278 echo "$as_me: error: cannot compute suffix of object files: cannot compile
10279 See \`config.log' for more details." >&2;}
10280    { (exit 1); exit 1; }; }
10281 fi
10282
10283 rm -f conftest.$ac_cv_objext conftest.$ac_ext
10284 fi
10285 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10286 echo "${ECHO_T}$ac_cv_objext" >&6
10287 OBJEXT=$ac_cv_objext
10288 ac_objext=$OBJEXT
10289 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10290 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10291 if test "${ac_cv_c_compiler_gnu+set}" = set; then
10292   echo $ECHO_N "(cached) $ECHO_C" >&6
10293 else
10294   cat >conftest.$ac_ext <<_ACEOF
10295 #line $LINENO "configure"
10296 /* confdefs.h.  */
10297 _ACEOF
10298 cat confdefs.h >>conftest.$ac_ext
10299 cat >>conftest.$ac_ext <<_ACEOF
10300 /* end confdefs.h.  */
10301
10302 int
10303 main ()
10304 {
10305 #ifndef __GNUC__
10306        choke me
10307 #endif
10308
10309   ;
10310   return 0;
10311 }
10312 _ACEOF
10313 rm -f conftest.$ac_objext
10314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10315   (eval $ac_compile) 2>&5
10316   ac_status=$?
10317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318   (exit $ac_status); } &&
10319          { ac_try='test -s conftest.$ac_objext'
10320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10321   (eval $ac_try) 2>&5
10322   ac_status=$?
10323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324   (exit $ac_status); }; }; then
10325   ac_compiler_gnu=yes
10326 else
10327   echo "$as_me: failed program was:" >&5
10328 sed 's/^/| /' conftest.$ac_ext >&5
10329
10330 ac_compiler_gnu=no
10331 fi
10332 rm -f conftest.$ac_objext conftest.$ac_ext
10333 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10334
10335 fi
10336 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10337 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10338 GCC=`test $ac_compiler_gnu = yes && echo yes`
10339 ac_test_CFLAGS=${CFLAGS+set}
10340 ac_save_CFLAGS=$CFLAGS
10341 CFLAGS="-g"
10342 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10343 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10344 if test "${ac_cv_prog_cc_g+set}" = set; then
10345   echo $ECHO_N "(cached) $ECHO_C" >&6
10346 else
10347   cat >conftest.$ac_ext <<_ACEOF
10348 #line $LINENO "configure"
10349 /* confdefs.h.  */
10350 _ACEOF
10351 cat confdefs.h >>conftest.$ac_ext
10352 cat >>conftest.$ac_ext <<_ACEOF
10353 /* end confdefs.h.  */
10354
10355 int
10356 main ()
10357 {
10358
10359   ;
10360   return 0;
10361 }
10362 _ACEOF
10363 rm -f conftest.$ac_objext
10364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10365   (eval $ac_compile) 2>&5
10366   ac_status=$?
10367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368   (exit $ac_status); } &&
10369          { ac_try='test -s conftest.$ac_objext'
10370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10371   (eval $ac_try) 2>&5
10372   ac_status=$?
10373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374   (exit $ac_status); }; }; then
10375   ac_cv_prog_cc_g=yes
10376 else
10377   echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10379
10380 ac_cv_prog_cc_g=no
10381 fi
10382 rm -f conftest.$ac_objext conftest.$ac_ext
10383 fi
10384 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10385 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10386 if test "$ac_test_CFLAGS" = set; then
10387   CFLAGS=$ac_save_CFLAGS
10388 elif test $ac_cv_prog_cc_g = yes; then
10389   if test "$GCC" = yes; then
10390     CFLAGS="-g -O2"
10391   else
10392     CFLAGS="-g"
10393   fi
10394 else
10395   if test "$GCC" = yes; then
10396     CFLAGS="-O2"
10397   else
10398     CFLAGS=
10399   fi
10400 fi
10401 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10402 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10403 if test "${ac_cv_prog_cc_stdc+set}" = set; then
10404   echo $ECHO_N "(cached) $ECHO_C" >&6
10405 else
10406   ac_cv_prog_cc_stdc=no
10407 ac_save_CC=$CC
10408 cat >conftest.$ac_ext <<_ACEOF
10409 #line $LINENO "configure"
10410 /* confdefs.h.  */
10411 _ACEOF
10412 cat confdefs.h >>conftest.$ac_ext
10413 cat >>conftest.$ac_ext <<_ACEOF
10414 /* end confdefs.h.  */
10415 #include <stdarg.h>
10416 #include <stdio.h>
10417 #include <sys/types.h>
10418 #include <sys/stat.h>
10419 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
10420 struct buf { int x; };
10421 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10422 static char *e (p, i)
10423      char **p;
10424      int i;
10425 {
10426   return p[i];
10427 }
10428 static char *f (char * (*g) (char **, int), char **p, ...)
10429 {
10430   char *s;
10431   va_list v;
10432   va_start (v,p);
10433   s = g (p, va_arg (v,int));
10434   va_end (v);
10435   return s;
10436 }
10437 int test (int i, double x);
10438 struct s1 {int (*f) (int a);};
10439 struct s2 {int (*f) (double a);};
10440 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10441 int argc;
10442 char **argv;
10443 int
10444 main ()
10445 {
10446 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
10447   ;
10448   return 0;
10449 }
10450 _ACEOF
10451 # Don't try gcc -ansi; that turns off useful extensions and
10452 # breaks some systems' header files.
10453 # AIX                   -qlanglvl=ansi
10454 # Ultrix and OSF/1      -std1
10455 # HP-UX 10.20 and later -Ae
10456 # HP-UX older versions  -Aa -D_HPUX_SOURCE
10457 # SVR4                  -Xc -D__EXTENSIONS__
10458 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10459 do
10460   CC="$ac_save_CC $ac_arg"
10461   rm -f conftest.$ac_objext
10462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10463   (eval $ac_compile) 2>&5
10464   ac_status=$?
10465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466   (exit $ac_status); } &&
10467          { ac_try='test -s conftest.$ac_objext'
10468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10469   (eval $ac_try) 2>&5
10470   ac_status=$?
10471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472   (exit $ac_status); }; }; then
10473   ac_cv_prog_cc_stdc=$ac_arg
10474 break
10475 else
10476   echo "$as_me: failed program was:" >&5
10477 sed 's/^/| /' conftest.$ac_ext >&5
10478
10479 fi
10480 rm -f conftest.$ac_objext
10481 done
10482 rm -f conftest.$ac_ext conftest.$ac_objext
10483 CC=$ac_save_CC
10484
10485 fi
10486
10487 case "x$ac_cv_prog_cc_stdc" in
10488   x|xno)
10489     echo "$as_me:$LINENO: result: none needed" >&5
10490 echo "${ECHO_T}none needed" >&6 ;;
10491   *)
10492     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10493 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10494     CC="$CC $ac_cv_prog_cc_stdc" ;;
10495 esac
10496
10497 # Some people use a C++ compiler to compile C.  Since we use `exit',
10498 # in C++ we need to declare it.  In case someone uses the same compiler
10499 # for both compiling C and C++ we need to have the C++ compiler decide
10500 # the declaration of exit, since it's the most demanding environment.
10501 cat >conftest.$ac_ext <<_ACEOF
10502 #ifndef __cplusplus
10503   choke me
10504 #endif
10505 _ACEOF
10506 rm -f conftest.$ac_objext
10507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10508   (eval $ac_compile) 2>&5
10509   ac_status=$?
10510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511   (exit $ac_status); } &&
10512          { ac_try='test -s conftest.$ac_objext'
10513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10514   (eval $ac_try) 2>&5
10515   ac_status=$?
10516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517   (exit $ac_status); }; }; then
10518   for ac_declaration in \
10519    ''\
10520    '#include <stdlib.h>' \
10521    'extern "C" void std::exit (int) throw (); using std::exit;' \
10522    'extern "C" void std::exit (int); using std::exit;' \
10523    'extern "C" void exit (int) throw ();' \
10524    'extern "C" void exit (int);' \
10525    'void exit (int);'
10526 do
10527   cat >conftest.$ac_ext <<_ACEOF
10528 #line $LINENO "configure"
10529 /* confdefs.h.  */
10530 _ACEOF
10531 cat confdefs.h >>conftest.$ac_ext
10532 cat >>conftest.$ac_ext <<_ACEOF
10533 /* end confdefs.h.  */
10534 #include <stdlib.h>
10535 $ac_declaration
10536 int
10537 main ()
10538 {
10539 exit (42);
10540   ;
10541   return 0;
10542 }
10543 _ACEOF
10544 rm -f conftest.$ac_objext
10545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10546   (eval $ac_compile) 2>&5
10547   ac_status=$?
10548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549   (exit $ac_status); } &&
10550          { ac_try='test -s conftest.$ac_objext'
10551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10552   (eval $ac_try) 2>&5
10553   ac_status=$?
10554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555   (exit $ac_status); }; }; then
10556   :
10557 else
10558   echo "$as_me: failed program was:" >&5
10559 sed 's/^/| /' conftest.$ac_ext >&5
10560
10561 continue
10562 fi
10563 rm -f conftest.$ac_objext conftest.$ac_ext
10564   cat >conftest.$ac_ext <<_ACEOF
10565 #line $LINENO "configure"
10566 /* confdefs.h.  */
10567 _ACEOF
10568 cat confdefs.h >>conftest.$ac_ext
10569 cat >>conftest.$ac_ext <<_ACEOF
10570 /* end confdefs.h.  */
10571 $ac_declaration
10572 int
10573 main ()
10574 {
10575 exit (42);
10576   ;
10577   return 0;
10578 }
10579 _ACEOF
10580 rm -f conftest.$ac_objext
10581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10582   (eval $ac_compile) 2>&5
10583   ac_status=$?
10584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585   (exit $ac_status); } &&
10586          { ac_try='test -s conftest.$ac_objext'
10587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10588   (eval $ac_try) 2>&5
10589   ac_status=$?
10590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591   (exit $ac_status); }; }; then
10592   break
10593 else
10594   echo "$as_me: failed program was:" >&5
10595 sed 's/^/| /' conftest.$ac_ext >&5
10596
10597 fi
10598 rm -f conftest.$ac_objext conftest.$ac_ext
10599 done
10600 rm -f conftest*
10601 if test -n "$ac_declaration"; then
10602   echo '#ifdef __cplusplus' >>confdefs.h
10603   echo $ac_declaration      >>confdefs.h
10604   echo '#endif'             >>confdefs.h
10605 fi
10606
10607 else
10608   echo "$as_me: failed program was:" >&5
10609 sed 's/^/| /' conftest.$ac_ext >&5
10610
10611 fi
10612 rm -f conftest.$ac_objext conftest.$ac_ext
10613 ac_ext=c
10614 ac_cpp='$CPP $CPPFLAGS'
10615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10618
10619
10620
10621 ac_ext=c
10622 ac_cpp='$CPP $CPPFLAGS'
10623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10626 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10627 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10628 # On Suns, sometimes $CPP names a directory.
10629 if test -n "$CPP" && test -d "$CPP"; then
10630   CPP=
10631 fi
10632 if test -z "$CPP"; then
10633   if test "${ac_cv_prog_CPP+set}" = set; then
10634   echo $ECHO_N "(cached) $ECHO_C" >&6
10635 else
10636       # Double quotes because CPP needs to be expanded
10637     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10638     do
10639       ac_preproc_ok=false
10640 for ac_c_preproc_warn_flag in '' yes
10641 do
10642   # Use a header file that comes with gcc, so configuring glibc
10643   # with a fresh cross-compiler works.
10644   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10645   # <limits.h> exists even on freestanding compilers.
10646   # On the NeXT, cc -E runs the code through the compiler's parser,
10647   # not just through cpp. "Syntax error" is here to catch this case.
10648   cat >conftest.$ac_ext <<_ACEOF
10649 #line $LINENO "configure"
10650 /* confdefs.h.  */
10651 _ACEOF
10652 cat confdefs.h >>conftest.$ac_ext
10653 cat >>conftest.$ac_ext <<_ACEOF
10654 /* end confdefs.h.  */
10655 #ifdef __STDC__
10656 # include <limits.h>
10657 #else
10658 # include <assert.h>
10659 #endif
10660                      Syntax error
10661 _ACEOF
10662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10663   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10664   ac_status=$?
10665   grep -v '^ *+' conftest.er1 >conftest.err
10666   rm -f conftest.er1
10667   cat conftest.err >&5
10668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669   (exit $ac_status); } >/dev/null; then
10670   if test -s conftest.err; then
10671     ac_cpp_err=$ac_c_preproc_warn_flag
10672   else
10673     ac_cpp_err=
10674   fi
10675 else
10676   ac_cpp_err=yes
10677 fi
10678 if test -z "$ac_cpp_err"; then
10679   :
10680 else
10681   echo "$as_me: failed program was:" >&5
10682 sed 's/^/| /' conftest.$ac_ext >&5
10683
10684   # Broken: fails on valid input.
10685 continue
10686 fi
10687 rm -f conftest.err conftest.$ac_ext
10688
10689   # OK, works on sane cases.  Now check whether non-existent headers
10690   # can be detected and how.
10691   cat >conftest.$ac_ext <<_ACEOF
10692 #line $LINENO "configure"
10693 /* confdefs.h.  */
10694 _ACEOF
10695 cat confdefs.h >>conftest.$ac_ext
10696 cat >>conftest.$ac_ext <<_ACEOF
10697 /* end confdefs.h.  */
10698 #include <ac_nonexistent.h>
10699 _ACEOF
10700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10701   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10702   ac_status=$?
10703   grep -v '^ *+' conftest.er1 >conftest.err
10704   rm -f conftest.er1
10705   cat conftest.err >&5
10706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707   (exit $ac_status); } >/dev/null; then
10708   if test -s conftest.err; then
10709     ac_cpp_err=$ac_c_preproc_warn_flag
10710   else
10711     ac_cpp_err=
10712   fi
10713 else
10714   ac_cpp_err=yes
10715 fi
10716 if test -z "$ac_cpp_err"; then
10717   # Broken: success on invalid input.
10718 continue
10719 else
10720   echo "$as_me: failed program was:" >&5
10721 sed 's/^/| /' conftest.$ac_ext >&5
10722
10723   # Passes both tests.
10724 ac_preproc_ok=:
10725 break
10726 fi
10727 rm -f conftest.err conftest.$ac_ext
10728
10729 done
10730 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10731 rm -f conftest.err conftest.$ac_ext
10732 if $ac_preproc_ok; then
10733   break
10734 fi
10735
10736     done
10737     ac_cv_prog_CPP=$CPP
10738
10739 fi
10740   CPP=$ac_cv_prog_CPP
10741 else
10742   ac_cv_prog_CPP=$CPP
10743 fi
10744 echo "$as_me:$LINENO: result: $CPP" >&5
10745 echo "${ECHO_T}$CPP" >&6
10746 ac_preproc_ok=false
10747 for ac_c_preproc_warn_flag in '' yes
10748 do
10749   # Use a header file that comes with gcc, so configuring glibc
10750   # with a fresh cross-compiler works.
10751   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10752   # <limits.h> exists even on freestanding compilers.
10753   # On the NeXT, cc -E runs the code through the compiler's parser,
10754   # not just through cpp. "Syntax error" is here to catch this case.
10755   cat >conftest.$ac_ext <<_ACEOF
10756 #line $LINENO "configure"
10757 /* confdefs.h.  */
10758 _ACEOF
10759 cat confdefs.h >>conftest.$ac_ext
10760 cat >>conftest.$ac_ext <<_ACEOF
10761 /* end confdefs.h.  */
10762 #ifdef __STDC__
10763 # include <limits.h>
10764 #else
10765 # include <assert.h>
10766 #endif
10767                      Syntax error
10768 _ACEOF
10769 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10770   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10771   ac_status=$?
10772   grep -v '^ *+' conftest.er1 >conftest.err
10773   rm -f conftest.er1
10774   cat conftest.err >&5
10775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776   (exit $ac_status); } >/dev/null; then
10777   if test -s conftest.err; then
10778     ac_cpp_err=$ac_c_preproc_warn_flag
10779   else
10780     ac_cpp_err=
10781   fi
10782 else
10783   ac_cpp_err=yes
10784 fi
10785 if test -z "$ac_cpp_err"; then
10786   :
10787 else
10788   echo "$as_me: failed program was:" >&5
10789 sed 's/^/| /' conftest.$ac_ext >&5
10790
10791   # Broken: fails on valid input.
10792 continue
10793 fi
10794 rm -f conftest.err conftest.$ac_ext
10795
10796   # OK, works on sane cases.  Now check whether non-existent headers
10797   # can be detected and how.
10798   cat >conftest.$ac_ext <<_ACEOF
10799 #line $LINENO "configure"
10800 /* confdefs.h.  */
10801 _ACEOF
10802 cat confdefs.h >>conftest.$ac_ext
10803 cat >>conftest.$ac_ext <<_ACEOF
10804 /* end confdefs.h.  */
10805 #include <ac_nonexistent.h>
10806 _ACEOF
10807 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10808   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10809   ac_status=$?
10810   grep -v '^ *+' conftest.er1 >conftest.err
10811   rm -f conftest.er1
10812   cat conftest.err >&5
10813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814   (exit $ac_status); } >/dev/null; then
10815   if test -s conftest.err; then
10816     ac_cpp_err=$ac_c_preproc_warn_flag
10817   else
10818     ac_cpp_err=
10819   fi
10820 else
10821   ac_cpp_err=yes
10822 fi
10823 if test -z "$ac_cpp_err"; then
10824   # Broken: success on invalid input.
10825 continue
10826 else
10827   echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10829
10830   # Passes both tests.
10831 ac_preproc_ok=:
10832 break
10833 fi
10834 rm -f conftest.err conftest.$ac_ext
10835
10836 done
10837 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10838 rm -f conftest.err conftest.$ac_ext
10839 if $ac_preproc_ok; then
10840   :
10841 else
10842   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
10843 See \`config.log' for more details." >&5
10844 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
10845 See \`config.log' for more details." >&2;}
10846    { (exit 1); exit 1; }; }
10847 fi
10848
10849 ac_ext=c
10850 ac_cpp='$CPP $CPPFLAGS'
10851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10854
10855
10856 echo "$as_me:$LINENO: checking for egrep" >&5
10857 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10858 if test "${ac_cv_prog_egrep+set}" = set; then
10859   echo $ECHO_N "(cached) $ECHO_C" >&6
10860 else
10861   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10862     then ac_cv_prog_egrep='grep -E'
10863     else ac_cv_prog_egrep='egrep'
10864     fi
10865 fi
10866 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10867 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10868  EGREP=$ac_cv_prog_egrep
10869
10870
10871 if test $ac_cv_c_compiler_gnu = yes; then
10872     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10873 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10874 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10875   echo $ECHO_N "(cached) $ECHO_C" >&6
10876 else
10877     ac_pattern="Autoconf.*'x'"
10878   cat >conftest.$ac_ext <<_ACEOF
10879 #line $LINENO "configure"
10880 /* confdefs.h.  */
10881 _ACEOF
10882 cat confdefs.h >>conftest.$ac_ext
10883 cat >>conftest.$ac_ext <<_ACEOF
10884 /* end confdefs.h.  */
10885 #include <sgtty.h>
10886 Autoconf TIOCGETP
10887 _ACEOF
10888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10889   $EGREP "$ac_pattern" >/dev/null 2>&1; then
10890   ac_cv_prog_gcc_traditional=yes
10891 else
10892   ac_cv_prog_gcc_traditional=no
10893 fi
10894 rm -f conftest*
10895
10896
10897   if test $ac_cv_prog_gcc_traditional = no; then
10898     cat >conftest.$ac_ext <<_ACEOF
10899 #line $LINENO "configure"
10900 /* confdefs.h.  */
10901 _ACEOF
10902 cat confdefs.h >>conftest.$ac_ext
10903 cat >>conftest.$ac_ext <<_ACEOF
10904 /* end confdefs.h.  */
10905 #include <termio.h>
10906 Autoconf TCGETA
10907 _ACEOF
10908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10909   $EGREP "$ac_pattern" >/dev/null 2>&1; then
10910   ac_cv_prog_gcc_traditional=yes
10911 fi
10912 rm -f conftest*
10913
10914   fi
10915 fi
10916 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10917 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10918   if test $ac_cv_prog_gcc_traditional = yes; then
10919     CC="$CC -traditional"
10920   fi
10921 fi
10922
10923
10924
10925
10926 ac_ext=cc
10927 ac_cpp='$CXXCPP $CPPFLAGS'
10928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10931
10932
10933 CXXFLAGS=${CXXFLAGS:=}
10934 ac_ext=cc
10935 ac_cpp='$CXXCPP $CPPFLAGS'
10936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10939 if test -n "$ac_tool_prefix"; then
10940   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10941   do
10942     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10943 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10944 echo "$as_me:$LINENO: checking for $ac_word" >&5
10945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10946 if test "${ac_cv_prog_CXX+set}" = set; then
10947   echo $ECHO_N "(cached) $ECHO_C" >&6
10948 else
10949   if test -n "$CXX"; then
10950   ac_cv_prog_CXX="$CXX" # Let the user override the test.
10951 else
10952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10953 for as_dir in $PATH
10954 do
10955   IFS=$as_save_IFS
10956   test -z "$as_dir" && as_dir=.
10957   for ac_exec_ext in '' $ac_executable_extensions; do
10958   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10959     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10960     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10961     break 2
10962   fi
10963 done
10964 done
10965
10966 fi
10967 fi
10968 CXX=$ac_cv_prog_CXX
10969 if test -n "$CXX"; then
10970   echo "$as_me:$LINENO: result: $CXX" >&5
10971 echo "${ECHO_T}$CXX" >&6
10972 else
10973   echo "$as_me:$LINENO: result: no" >&5
10974 echo "${ECHO_T}no" >&6
10975 fi
10976
10977     test -n "$CXX" && break
10978   done
10979 fi
10980 if test -z "$CXX"; then
10981   ac_ct_CXX=$CXX
10982   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10983 do
10984   # Extract the first word of "$ac_prog", so it can be a program name with args.
10985 set dummy $ac_prog; ac_word=$2
10986 echo "$as_me:$LINENO: checking for $ac_word" >&5
10987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10988 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
10989   echo $ECHO_N "(cached) $ECHO_C" >&6
10990 else
10991   if test -n "$ac_ct_CXX"; then
10992   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10993 else
10994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10995 for as_dir in $PATH
10996 do
10997   IFS=$as_save_IFS
10998   test -z "$as_dir" && as_dir=.
10999   for ac_exec_ext in '' $ac_executable_extensions; do
11000   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11001     ac_cv_prog_ac_ct_CXX="$ac_prog"
11002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11003     break 2
11004   fi
11005 done
11006 done
11007
11008 fi
11009 fi
11010 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11011 if test -n "$ac_ct_CXX"; then
11012   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11013 echo "${ECHO_T}$ac_ct_CXX" >&6
11014 else
11015   echo "$as_me:$LINENO: result: no" >&5
11016 echo "${ECHO_T}no" >&6
11017 fi
11018
11019   test -n "$ac_ct_CXX" && break
11020 done
11021 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11022
11023   CXX=$ac_ct_CXX
11024 fi
11025
11026
11027 # Provide some information about the compiler.
11028 echo "$as_me:$LINENO:" \
11029      "checking for C++ compiler version" >&5
11030 ac_compiler=`set X $ac_compile; echo $2`
11031 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11032   (eval $ac_compiler --version </dev/null >&5) 2>&5
11033   ac_status=$?
11034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035   (exit $ac_status); }
11036 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11037   (eval $ac_compiler -v </dev/null >&5) 2>&5
11038   ac_status=$?
11039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040   (exit $ac_status); }
11041 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11042   (eval $ac_compiler -V </dev/null >&5) 2>&5
11043   ac_status=$?
11044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045   (exit $ac_status); }
11046
11047 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11048 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11049 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11050   echo $ECHO_N "(cached) $ECHO_C" >&6
11051 else
11052   cat >conftest.$ac_ext <<_ACEOF
11053 #line $LINENO "configure"
11054 /* confdefs.h.  */
11055 _ACEOF
11056 cat confdefs.h >>conftest.$ac_ext
11057 cat >>conftest.$ac_ext <<_ACEOF
11058 /* end confdefs.h.  */
11059
11060 int
11061 main ()
11062 {
11063 #ifndef __GNUC__
11064        choke me
11065 #endif
11066
11067   ;
11068   return 0;
11069 }
11070 _ACEOF
11071 rm -f conftest.$ac_objext
11072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11073   (eval $ac_compile) 2>&5
11074   ac_status=$?
11075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076   (exit $ac_status); } &&
11077          { ac_try='test -s conftest.$ac_objext'
11078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11079   (eval $ac_try) 2>&5
11080   ac_status=$?
11081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082   (exit $ac_status); }; }; then
11083   ac_compiler_gnu=yes
11084 else
11085   echo "$as_me: failed program was:" >&5
11086 sed 's/^/| /' conftest.$ac_ext >&5
11087
11088 ac_compiler_gnu=no
11089 fi
11090 rm -f conftest.$ac_objext conftest.$ac_ext
11091 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11092
11093 fi
11094 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11095 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11096 GXX=`test $ac_compiler_gnu = yes && echo yes`
11097 ac_test_CXXFLAGS=${CXXFLAGS+set}
11098 ac_save_CXXFLAGS=$CXXFLAGS
11099 CXXFLAGS="-g"
11100 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11101 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11102 if test "${ac_cv_prog_cxx_g+set}" = set; then
11103   echo $ECHO_N "(cached) $ECHO_C" >&6
11104 else
11105   cat >conftest.$ac_ext <<_ACEOF
11106 #line $LINENO "configure"
11107 /* confdefs.h.  */
11108 _ACEOF
11109 cat confdefs.h >>conftest.$ac_ext
11110 cat >>conftest.$ac_ext <<_ACEOF
11111 /* end confdefs.h.  */
11112
11113 int
11114 main ()
11115 {
11116
11117   ;
11118   return 0;
11119 }
11120 _ACEOF
11121 rm -f conftest.$ac_objext
11122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11123   (eval $ac_compile) 2>&5
11124   ac_status=$?
11125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126   (exit $ac_status); } &&
11127          { ac_try='test -s conftest.$ac_objext'
11128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11129   (eval $ac_try) 2>&5
11130   ac_status=$?
11131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132   (exit $ac_status); }; }; then
11133   ac_cv_prog_cxx_g=yes
11134 else
11135   echo "$as_me: failed program was:" >&5
11136 sed 's/^/| /' conftest.$ac_ext >&5
11137
11138 ac_cv_prog_cxx_g=no
11139 fi
11140 rm -f conftest.$ac_objext conftest.$ac_ext
11141 fi
11142 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11143 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11144 if test "$ac_test_CXXFLAGS" = set; then
11145   CXXFLAGS=$ac_save_CXXFLAGS
11146 elif test $ac_cv_prog_cxx_g = yes; then
11147   if test "$GXX" = yes; then
11148     CXXFLAGS="-g -O2"
11149   else
11150     CXXFLAGS="-g"
11151   fi
11152 else
11153   if test "$GXX" = yes; then
11154     CXXFLAGS="-O2"
11155   else
11156     CXXFLAGS=
11157   fi
11158 fi
11159 for ac_declaration in \
11160    ''\
11161    '#include <stdlib.h>' \
11162    'extern "C" void std::exit (int) throw (); using std::exit;' \
11163    'extern "C" void std::exit (int); using std::exit;' \
11164    'extern "C" void exit (int) throw ();' \
11165    'extern "C" void exit (int);' \
11166    'void exit (int);'
11167 do
11168   cat >conftest.$ac_ext <<_ACEOF
11169 #line $LINENO "configure"
11170 /* confdefs.h.  */
11171 _ACEOF
11172 cat confdefs.h >>conftest.$ac_ext
11173 cat >>conftest.$ac_ext <<_ACEOF
11174 /* end confdefs.h.  */
11175 #include <stdlib.h>
11176 $ac_declaration
11177 int
11178 main ()
11179 {
11180 exit (42);
11181   ;
11182   return 0;
11183 }
11184 _ACEOF
11185 rm -f conftest.$ac_objext
11186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11187   (eval $ac_compile) 2>&5
11188   ac_status=$?
11189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190   (exit $ac_status); } &&
11191          { ac_try='test -s conftest.$ac_objext'
11192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11193   (eval $ac_try) 2>&5
11194   ac_status=$?
11195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196   (exit $ac_status); }; }; then
11197   :
11198 else
11199   echo "$as_me: failed program was:" >&5
11200 sed 's/^/| /' conftest.$ac_ext >&5
11201
11202 continue
11203 fi
11204 rm -f conftest.$ac_objext conftest.$ac_ext
11205   cat >conftest.$ac_ext <<_ACEOF
11206 #line $LINENO "configure"
11207 /* confdefs.h.  */
11208 _ACEOF
11209 cat confdefs.h >>conftest.$ac_ext
11210 cat >>conftest.$ac_ext <<_ACEOF
11211 /* end confdefs.h.  */
11212 $ac_declaration
11213 int
11214 main ()
11215 {
11216 exit (42);
11217   ;
11218   return 0;
11219 }
11220 _ACEOF
11221 rm -f conftest.$ac_objext
11222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11223   (eval $ac_compile) 2>&5
11224   ac_status=$?
11225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226   (exit $ac_status); } &&
11227          { ac_try='test -s conftest.$ac_objext'
11228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11229   (eval $ac_try) 2>&5
11230   ac_status=$?
11231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232   (exit $ac_status); }; }; then
11233   break
11234 else
11235   echo "$as_me: failed program was:" >&5
11236 sed 's/^/| /' conftest.$ac_ext >&5
11237
11238 fi
11239 rm -f conftest.$ac_objext conftest.$ac_ext
11240 done
11241 rm -f conftest*
11242 if test -n "$ac_declaration"; then
11243   echo '#ifdef __cplusplus' >>confdefs.h
11244   echo $ac_declaration      >>confdefs.h
11245   echo '#endif'             >>confdefs.h
11246 fi
11247
11248 ac_ext=cc
11249 ac_cpp='$CXXCPP $CPPFLAGS'
11250 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11251 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11252 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11253
11254
11255 ac_ext=c
11256 ac_cpp='$CPP $CPPFLAGS'
11257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11260
11261
11262 if test -n "$ac_tool_prefix"; then
11263   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11264 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11265 echo "$as_me:$LINENO: checking for $ac_word" >&5
11266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11267 if test "${ac_cv_prog_RANLIB+set}" = set; then
11268   echo $ECHO_N "(cached) $ECHO_C" >&6
11269 else
11270   if test -n "$RANLIB"; then
11271   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11272 else
11273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11274 for as_dir in $PATH
11275 do
11276   IFS=$as_save_IFS
11277   test -z "$as_dir" && as_dir=.
11278   for ac_exec_ext in '' $ac_executable_extensions; do
11279   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11280     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11281     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11282     break 2
11283   fi
11284 done
11285 done
11286
11287 fi
11288 fi
11289 RANLIB=$ac_cv_prog_RANLIB
11290 if test -n "$RANLIB"; then
11291   echo "$as_me:$LINENO: result: $RANLIB" >&5
11292 echo "${ECHO_T}$RANLIB" >&6
11293 else
11294   echo "$as_me:$LINENO: result: no" >&5
11295 echo "${ECHO_T}no" >&6
11296 fi
11297
11298 fi
11299 if test -z "$ac_cv_prog_RANLIB"; then
11300   ac_ct_RANLIB=$RANLIB
11301   # Extract the first word of "ranlib", so it can be a program name with args.
11302 set dummy ranlib; ac_word=$2
11303 echo "$as_me:$LINENO: checking for $ac_word" >&5
11304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11305 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11306   echo $ECHO_N "(cached) $ECHO_C" >&6
11307 else
11308   if test -n "$ac_ct_RANLIB"; then
11309   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11310 else
11311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11312 for as_dir in $PATH
11313 do
11314   IFS=$as_save_IFS
11315   test -z "$as_dir" && as_dir=.
11316   for ac_exec_ext in '' $ac_executable_extensions; do
11317   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11318     ac_cv_prog_ac_ct_RANLIB="ranlib"
11319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11320     break 2
11321   fi
11322 done
11323 done
11324
11325   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11326 fi
11327 fi
11328 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11329 if test -n "$ac_ct_RANLIB"; then
11330   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11331 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11332 else
11333   echo "$as_me:$LINENO: result: no" >&5
11334 echo "${ECHO_T}no" >&6
11335 fi
11336
11337   RANLIB=$ac_ct_RANLIB
11338 else
11339   RANLIB="$ac_cv_prog_RANLIB"
11340 fi
11341
11342
11343 # Extract the first word of "ar", so it can be a program name with args.
11344 set dummy ar; ac_word=$2
11345 echo "$as_me:$LINENO: checking for $ac_word" >&5
11346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11347 if test "${ac_cv_prog_AR+set}" = set; then
11348   echo $ECHO_N "(cached) $ECHO_C" >&6
11349 else
11350   if test -n "$AR"; then
11351   ac_cv_prog_AR="$AR" # Let the user override the test.
11352 else
11353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11354 for as_dir in $PATH
11355 do
11356   IFS=$as_save_IFS
11357   test -z "$as_dir" && as_dir=.
11358   for ac_exec_ext in '' $ac_executable_extensions; do
11359   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11360     ac_cv_prog_AR="ar"
11361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11362     break 2
11363   fi
11364 done
11365 done
11366
11367 fi
11368 fi
11369 AR=$ac_cv_prog_AR
11370 if test -n "$AR"; then
11371   echo "$as_me:$LINENO: result: $AR" >&5
11372 echo "${ECHO_T}$AR" >&6
11373 else
11374   echo "$as_me:$LINENO: result: no" >&5
11375 echo "${ECHO_T}no" >&6
11376 fi
11377
11378 if test "x$AR" = "x" ; then
11379     { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5
11380 echo "$as_me: error: ar is needed to build wxWindows" >&2;}
11381    { (exit 1); exit 1; }; }
11382 fi
11383
11384 # Find a good install program.  We prefer a C program (faster),
11385 # so one script is as good as another.  But avoid the broken or
11386 # incompatible versions:
11387 # SysV /etc/install, /usr/sbin/install
11388 # SunOS /usr/etc/install
11389 # IRIX /sbin/install
11390 # AIX /bin/install
11391 # AmigaOS /C/install, which installs bootblocks on floppy discs
11392 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11393 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11394 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11395 # ./install, which can be erroneously created by make from ./install.sh.
11396 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11397 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11398 if test -z "$INSTALL"; then
11399 if test "${ac_cv_path_install+set}" = set; then
11400   echo $ECHO_N "(cached) $ECHO_C" >&6
11401 else
11402   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11403 for as_dir in $PATH
11404 do
11405   IFS=$as_save_IFS
11406   test -z "$as_dir" && as_dir=.
11407   # Account for people who put trailing slashes in PATH elements.
11408 case $as_dir/ in
11409   ./ | .// | /cC/* | \
11410   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11411   /usr/ucb/* ) ;;
11412   *)
11413     # OSF1 and SCO ODT 3.0 have their own names for install.
11414     # Don't use installbsd from OSF since it installs stuff as root
11415     # by default.
11416     for ac_prog in ginstall scoinst install; do
11417       for ac_exec_ext in '' $ac_executable_extensions; do
11418         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11419           if test $ac_prog = install &&
11420             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11421             # AIX install.  It has an incompatible calling convention.
11422             :
11423           elif test $ac_prog = install &&
11424             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11425             # program-specific install script used by HP pwplus--don't use.
11426             :
11427           else
11428             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11429             break 3
11430           fi
11431         fi
11432       done
11433     done
11434     ;;
11435 esac
11436 done
11437
11438
11439 fi
11440   if test "${ac_cv_path_install+set}" = set; then
11441     INSTALL=$ac_cv_path_install
11442   else
11443     # As a last resort, use the slow shell script.  We don't cache a
11444     # path for INSTALL within a source directory, because that will
11445     # break other packages using the cache if that directory is
11446     # removed, or if the path is relative.
11447     INSTALL=$ac_install_sh
11448   fi
11449 fi
11450 echo "$as_me:$LINENO: result: $INSTALL" >&5
11451 echo "${ECHO_T}$INSTALL" >&6
11452
11453 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11454 # It thinks the first close brace ends the variable substitution.
11455 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11456
11457 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11458
11459 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11460
11461
11462 case ${INSTALL} in
11463   /* ) # Absolute
11464      ;;
11465   ?:* ) # Drive letter, considered as absolute.
11466      ;;
11467   *)
11468      INSTALL=`pwd`/${INSTALL} ;;
11469 esac
11470
11471 case ${host} in
11472     *-hp-hpux* )
11473         INSTALL_DIR="mkdir"
11474         ;;
11475
11476     *)  INSTALL_DIR="$INSTALL -d"
11477         ;;
11478 esac
11479
11480
11481 case "${host}" in
11482
11483                 powerpc-*-darwin* )
11484         INSTALL_PROGRAM="cp -fp"
11485         INSTALL_DATA="cp -fp"
11486         ;;
11487     *)
11488         ;;
11489 esac
11490
11491 # Extract the first word of "strip", so it can be a program name with args.
11492 set dummy strip; ac_word=$2
11493 echo "$as_me:$LINENO: checking for $ac_word" >&5
11494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11495 if test "${ac_cv_prog_STRIP+set}" = set; then
11496   echo $ECHO_N "(cached) $ECHO_C" >&6
11497 else
11498   if test -n "$STRIP"; then
11499   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11500 else
11501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11502 for as_dir in $PATH
11503 do
11504   IFS=$as_save_IFS
11505   test -z "$as_dir" && as_dir=.
11506   for ac_exec_ext in '' $ac_executable_extensions; do
11507   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11508     ac_cv_prog_STRIP="strip"
11509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11510     break 2
11511   fi
11512 done
11513 done
11514
11515   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11516 fi
11517 fi
11518 STRIP=$ac_cv_prog_STRIP
11519 if test -n "$STRIP"; then
11520   echo "$as_me:$LINENO: result: $STRIP" >&5
11521 echo "${ECHO_T}$STRIP" >&6
11522 else
11523   echo "$as_me:$LINENO: result: no" >&5
11524 echo "${ECHO_T}no" >&6
11525 fi
11526
11527
11528 echo "$as_me:$LINENO: checking if make is GNU make" >&5
11529 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11530 if test "${wx_cv_prog_makeisgnu+set}" = set; then
11531   echo $ECHO_N "(cached) $ECHO_C" >&6
11532 else
11533
11534     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
11535             egrep -s GNU > /dev/null); then
11536         wx_cv_prog_makeisgnu="yes"
11537     else
11538         wx_cv_prog_makeisgnu="no"
11539     fi
11540
11541 fi
11542 echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11543 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
11544
11545 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11546     IF_GNU_MAKE=""
11547 else
11548     IF_GNU_MAKE="#"
11549 fi
11550
11551
11552
11553 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
11554 echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11555 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11556 if test "${wx_cv_prog_makevpath+set}" = set; then
11557   echo $ECHO_N "(cached) $ECHO_C" >&6
11558 else
11559
11560 cat - << EOF > confMake
11561 check : file
11562         cp \$? \$@
11563         cp \$? final_file
11564 EOF
11565
11566 if test ! -d sub ; then
11567   mkdir sub
11568 fi
11569 echo dummy > sub/file
11570 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
11571 RESULT=$?
11572 rm -f sub/file check final_file confMake
11573 rmdir sub
11574 if test "$RESULT" = 0; then
11575   wx_cv_prog_makevpath="yes"
11576 else
11577   wx_cv_prog_makevpath="no"
11578 fi
11579
11580 fi
11581 echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11582 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
11583
11584 if test "x$wx_cv_prog_makevpath" != "xyes"; then
11585 { { echo "$as_me:$LINENO: error:
11586 You need a make-utility that is able to use the variable
11587 VPATH correctly.
11588 If your version of make does not support VPATH correctly,
11589 please install GNU-make (possibly as gmake), and start
11590 configure with the following command:
11591 export MAKE=gmake; ./configure  for sh-type shells
11592 setenv MAKE gmake; ./configure  for csh-type shells
11593 Also please do remember to use gmake in this case every time
11594 you are trying to compile.
11595 " >&5
11596 echo "$as_me: error:
11597 You need a make-utility that is able to use the variable
11598 VPATH correctly.
11599 If your version of make does not support VPATH correctly,
11600 please install GNU-make (possibly as gmake), and start
11601 configure with the following command:
11602 export MAKE=gmake; ./configure  for sh-type shells
11603 setenv MAKE gmake; ./configure  for csh-type shells
11604 Also please do remember to use gmake in this case every time
11605 you are trying to compile.
11606 " >&2;}
11607    { (exit 1); exit 1; }; }
11608 fi fi
11609 for ac_prog in 'bison -y' byacc
11610 do
11611   # Extract the first word of "$ac_prog", so it can be a program name with args.
11612 set dummy $ac_prog; ac_word=$2
11613 echo "$as_me:$LINENO: checking for $ac_word" >&5
11614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11615 if test "${ac_cv_prog_YACC+set}" = set; then
11616   echo $ECHO_N "(cached) $ECHO_C" >&6
11617 else
11618   if test -n "$YACC"; then
11619   ac_cv_prog_YACC="$YACC" # Let the user override the test.
11620 else
11621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11622 for as_dir in $PATH
11623 do
11624   IFS=$as_save_IFS
11625   test -z "$as_dir" && as_dir=.
11626   for ac_exec_ext in '' $ac_executable_extensions; do
11627   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11628     ac_cv_prog_YACC="$ac_prog"
11629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11630     break 2
11631   fi
11632 done
11633 done
11634
11635 fi
11636 fi
11637 YACC=$ac_cv_prog_YACC
11638 if test -n "$YACC"; then
11639   echo "$as_me:$LINENO: result: $YACC" >&5
11640 echo "${ECHO_T}$YACC" >&6
11641 else
11642   echo "$as_me:$LINENO: result: no" >&5
11643 echo "${ECHO_T}no" >&6
11644 fi
11645
11646   test -n "$YACC" && break
11647 done
11648 test -n "$YACC" || YACC="yacc"
11649
11650
11651 for ac_prog in flex lex
11652 do
11653   # Extract the first word of "$ac_prog", so it can be a program name with args.
11654 set dummy $ac_prog; ac_word=$2
11655 echo "$as_me:$LINENO: checking for $ac_word" >&5
11656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11657 if test "${ac_cv_prog_LEX+set}" = set; then
11658   echo $ECHO_N "(cached) $ECHO_C" >&6
11659 else
11660   if test -n "$LEX"; then
11661   ac_cv_prog_LEX="$LEX" # Let the user override the test.
11662 else
11663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11664 for as_dir in $PATH
11665 do
11666   IFS=$as_save_IFS
11667   test -z "$as_dir" && as_dir=.
11668   for ac_exec_ext in '' $ac_executable_extensions; do
11669   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11670     ac_cv_prog_LEX="$ac_prog"
11671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11672     break 2
11673   fi
11674 done
11675 done
11676
11677 fi
11678 fi
11679 LEX=$ac_cv_prog_LEX
11680 if test -n "$LEX"; then
11681   echo "$as_me:$LINENO: result: $LEX" >&5
11682 echo "${ECHO_T}$LEX" >&6
11683 else
11684   echo "$as_me:$LINENO: result: no" >&5
11685 echo "${ECHO_T}no" >&6
11686 fi
11687
11688   test -n "$LEX" && break
11689 done
11690 test -n "$LEX" || LEX=":"
11691
11692 if test -z "$LEXLIB"
11693 then
11694   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
11695 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
11696 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
11697   echo $ECHO_N "(cached) $ECHO_C" >&6
11698 else
11699   ac_check_lib_save_LIBS=$LIBS
11700 LIBS="-lfl  $LIBS"
11701 cat >conftest.$ac_ext <<_ACEOF
11702 #line $LINENO "configure"
11703 /* confdefs.h.  */
11704 _ACEOF
11705 cat confdefs.h >>conftest.$ac_ext
11706 cat >>conftest.$ac_ext <<_ACEOF
11707 /* end confdefs.h.  */
11708
11709 /* Override any gcc2 internal prototype to avoid an error.  */
11710 #ifdef __cplusplus
11711 extern "C"
11712 #endif
11713 /* We use char because int might match the return type of a gcc2
11714    builtin and then its argument prototype would still apply.  */
11715 char yywrap ();
11716 int
11717 main ()
11718 {
11719 yywrap ();
11720   ;
11721   return 0;
11722 }
11723 _ACEOF
11724 rm -f conftest.$ac_objext conftest$ac_exeext
11725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11726   (eval $ac_link) 2>&5
11727   ac_status=$?
11728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729   (exit $ac_status); } &&
11730          { ac_try='test -s conftest$ac_exeext'
11731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11732   (eval $ac_try) 2>&5
11733   ac_status=$?
11734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735   (exit $ac_status); }; }; then
11736   ac_cv_lib_fl_yywrap=yes
11737 else
11738   echo "$as_me: failed program was:" >&5
11739 sed 's/^/| /' conftest.$ac_ext >&5
11740
11741 ac_cv_lib_fl_yywrap=no
11742 fi
11743 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11744 LIBS=$ac_check_lib_save_LIBS
11745 fi
11746 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
11747 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
11748 if test $ac_cv_lib_fl_yywrap = yes; then
11749   LEXLIB="-lfl"
11750 else
11751   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
11752 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
11753 if test "${ac_cv_lib_l_yywrap+set}" = set; then
11754   echo $ECHO_N "(cached) $ECHO_C" >&6
11755 else
11756   ac_check_lib_save_LIBS=$LIBS
11757 LIBS="-ll  $LIBS"
11758 cat >conftest.$ac_ext <<_ACEOF
11759 #line $LINENO "configure"
11760 /* confdefs.h.  */
11761 _ACEOF
11762 cat confdefs.h >>conftest.$ac_ext
11763 cat >>conftest.$ac_ext <<_ACEOF
11764 /* end confdefs.h.  */
11765
11766 /* Override any gcc2 internal prototype to avoid an error.  */
11767 #ifdef __cplusplus
11768 extern "C"
11769 #endif
11770 /* We use char because int might match the return type of a gcc2
11771    builtin and then its argument prototype would still apply.  */
11772 char yywrap ();
11773 int
11774 main ()
11775 {
11776 yywrap ();
11777   ;
11778   return 0;
11779 }
11780 _ACEOF
11781 rm -f conftest.$ac_objext conftest$ac_exeext
11782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11783   (eval $ac_link) 2>&5
11784   ac_status=$?
11785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786   (exit $ac_status); } &&
11787          { ac_try='test -s conftest$ac_exeext'
11788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11789   (eval $ac_try) 2>&5
11790   ac_status=$?
11791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792   (exit $ac_status); }; }; then
11793   ac_cv_lib_l_yywrap=yes
11794 else
11795   echo "$as_me: failed program was:" >&5
11796 sed 's/^/| /' conftest.$ac_ext >&5
11797
11798 ac_cv_lib_l_yywrap=no
11799 fi
11800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11801 LIBS=$ac_check_lib_save_LIBS
11802 fi
11803 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
11804 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
11805 if test $ac_cv_lib_l_yywrap = yes; then
11806   LEXLIB="-ll"
11807 fi
11808
11809 fi
11810
11811 fi
11812
11813 if test "x$LEX" != "x:"; then
11814   echo "$as_me:$LINENO: checking lex output file root" >&5
11815 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
11816 if test "${ac_cv_prog_lex_root+set}" = set; then
11817   echo $ECHO_N "(cached) $ECHO_C" >&6
11818 else
11819   # The minimal lex program is just a single line: %%.  But some broken lexes
11820 # (Solaris, I think it was) want two %% lines, so accommodate them.
11821 cat >conftest.l <<_ACEOF
11822 %%
11823 %%
11824 _ACEOF
11825 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
11826   (eval $LEX conftest.l) 2>&5
11827   ac_status=$?
11828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829   (exit $ac_status); }
11830 if test -f lex.yy.c; then
11831   ac_cv_prog_lex_root=lex.yy
11832 elif test -f lexyy.c; then
11833   ac_cv_prog_lex_root=lexyy
11834 else
11835   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
11836 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
11837    { (exit 1); exit 1; }; }
11838 fi
11839 fi
11840 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
11841 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
11842 rm -f conftest.l
11843 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11844
11845 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
11846 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
11847 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
11848   echo $ECHO_N "(cached) $ECHO_C" >&6
11849 else
11850   # POSIX says lex can declare yytext either as a pointer or an array; the
11851 # default is implementation-dependent. Figure out which it is, since
11852 # not all implementations provide the %pointer and %array declarations.
11853 ac_cv_prog_lex_yytext_pointer=no
11854 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
11855 ac_save_LIBS=$LIBS
11856 LIBS="$LIBS $LEXLIB"
11857 cat >conftest.$ac_ext <<_ACEOF
11858 `cat $LEX_OUTPUT_ROOT.c`
11859 _ACEOF
11860 rm -f conftest.$ac_objext conftest$ac_exeext
11861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11862   (eval $ac_link) 2>&5
11863   ac_status=$?
11864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865   (exit $ac_status); } &&
11866          { ac_try='test -s conftest$ac_exeext'
11867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11868   (eval $ac_try) 2>&5
11869   ac_status=$?
11870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871   (exit $ac_status); }; }; then
11872   ac_cv_prog_lex_yytext_pointer=yes
11873 else
11874   echo "$as_me: failed program was:" >&5
11875 sed 's/^/| /' conftest.$ac_ext >&5
11876
11877 fi
11878 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11879 LIBS=$ac_save_LIBS
11880 rm -f "${LEX_OUTPUT_ROOT}.c"
11881
11882 fi
11883 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
11884 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
11885 if test $ac_cv_prog_lex_yytext_pointer = yes; then
11886
11887 cat >>confdefs.h <<\_ACEOF
11888 #define YYTEXT_POINTER 1
11889 _ACEOF
11890
11891 fi
11892
11893 fi
11894
11895 echo "$as_me:$LINENO: checking whether ln -s works" >&5
11896 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11897 LN_S=$as_ln_s
11898 if test "$LN_S" = "ln -s"; then
11899   echo "$as_me:$LINENO: result: yes" >&5
11900 echo "${ECHO_T}yes" >&6
11901 else
11902   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11903 echo "${ECHO_T}no, using $LN_S" >&6
11904 fi
11905
11906
11907 case "${host}" in
11908   *-pc-os2_emx | *-pc-os2-emx )
11909       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
11910                               echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
11911 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
11912 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
11913   echo $ECHO_N "(cached) $ECHO_C" >&6
11914 else
11915   ac_check_lib_save_LIBS=$LIBS
11916 LIBS="-lcExt  $LIBS"
11917 cat >conftest.$ac_ext <<_ACEOF
11918 #line $LINENO "configure"
11919 /* confdefs.h.  */
11920 _ACEOF
11921 cat confdefs.h >>conftest.$ac_ext
11922 cat >>conftest.$ac_ext <<_ACEOF
11923 /* end confdefs.h.  */
11924
11925 /* Override any gcc2 internal prototype to avoid an error.  */
11926 #ifdef __cplusplus
11927 extern "C"
11928 #endif
11929 /* We use char because int might match the return type of a gcc2
11930    builtin and then its argument prototype would still apply.  */
11931 char drand48 ();
11932 int
11933 main ()
11934 {
11935 drand48 ();
11936   ;
11937   return 0;
11938 }
11939 _ACEOF
11940 rm -f conftest.$ac_objext conftest$ac_exeext
11941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11942   (eval $ac_link) 2>&5
11943   ac_status=$?
11944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945   (exit $ac_status); } &&
11946          { ac_try='test -s conftest$ac_exeext'
11947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11948   (eval $ac_try) 2>&5
11949   ac_status=$?
11950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951   (exit $ac_status); }; }; then
11952   ac_cv_lib_cExt_drand48=yes
11953 else
11954   echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11956
11957 ac_cv_lib_cExt_drand48=no
11958 fi
11959 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11960 LIBS=$ac_check_lib_save_LIBS
11961 fi
11962 echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
11963 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
11964 if test $ac_cv_lib_cExt_drand48 = yes; then
11965   LIBS="$LIBS -lcExt"
11966 fi
11967
11968       else
11969                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
11970       fi
11971   ;;
11972 esac
11973
11974
11975 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
11976     echo "$as_me:$LINENO: checking for strings.h" >&5
11977 echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
11978 if test "${ac_cv_header_strings_h+set}" = set; then
11979   echo $ECHO_N "(cached) $ECHO_C" >&6
11980 else
11981   ac_cv_header_strings_h=no
11982 fi
11983 echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
11984 echo "${ECHO_T}$ac_cv_header_strings_h" >&6
11985     if test "$ac_cv_header_strings_h" = "no"; then
11986         echo "$as_me:$LINENO: result: forced no into cache" >&5
11987 echo "${ECHO_T}forced no into cache" >&6
11988     else
11989         { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5
11990 echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;}
11991     fi
11992 fi
11993 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11994 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11995 if test "${ac_cv_header_stdc+set}" = set; then
11996   echo $ECHO_N "(cached) $ECHO_C" >&6
11997 else
11998   cat >conftest.$ac_ext <<_ACEOF
11999 #line $LINENO "configure"
12000 /* confdefs.h.  */
12001 _ACEOF
12002 cat confdefs.h >>conftest.$ac_ext
12003 cat >>conftest.$ac_ext <<_ACEOF
12004 /* end confdefs.h.  */
12005 #include <stdlib.h>
12006 #include <stdarg.h>
12007 #include <string.h>
12008 #include <float.h>
12009
12010 int
12011 main ()
12012 {
12013
12014   ;
12015   return 0;
12016 }
12017 _ACEOF
12018 rm -f conftest.$ac_objext
12019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12020   (eval $ac_compile) 2>&5
12021   ac_status=$?
12022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023   (exit $ac_status); } &&
12024          { ac_try='test -s conftest.$ac_objext'
12025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12026   (eval $ac_try) 2>&5
12027   ac_status=$?
12028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029   (exit $ac_status); }; }; then
12030   ac_cv_header_stdc=yes
12031 else
12032   echo "$as_me: failed program was:" >&5
12033 sed 's/^/| /' conftest.$ac_ext >&5
12034
12035 ac_cv_header_stdc=no
12036 fi
12037 rm -f conftest.$ac_objext conftest.$ac_ext
12038
12039 if test $ac_cv_header_stdc = yes; then
12040   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12041   cat >conftest.$ac_ext <<_ACEOF
12042 #line $LINENO "configure"
12043 /* confdefs.h.  */
12044 _ACEOF
12045 cat confdefs.h >>conftest.$ac_ext
12046 cat >>conftest.$ac_ext <<_ACEOF
12047 /* end confdefs.h.  */
12048 #include <string.h>
12049
12050 _ACEOF
12051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12052   $EGREP "memchr" >/dev/null 2>&1; then
12053   :
12054 else
12055   ac_cv_header_stdc=no
12056 fi
12057 rm -f conftest*
12058
12059 fi
12060
12061 if test $ac_cv_header_stdc = yes; then
12062   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12063   cat >conftest.$ac_ext <<_ACEOF
12064 #line $LINENO "configure"
12065 /* confdefs.h.  */
12066 _ACEOF
12067 cat confdefs.h >>conftest.$ac_ext
12068 cat >>conftest.$ac_ext <<_ACEOF
12069 /* end confdefs.h.  */
12070 #include <stdlib.h>
12071
12072 _ACEOF
12073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12074   $EGREP "free" >/dev/null 2>&1; then
12075   :
12076 else
12077   ac_cv_header_stdc=no
12078 fi
12079 rm -f conftest*
12080
12081 fi
12082
12083 if test $ac_cv_header_stdc = yes; then
12084   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12085   if test "$cross_compiling" = yes; then
12086   :
12087 else
12088   cat >conftest.$ac_ext <<_ACEOF
12089 #line $LINENO "configure"
12090 /* confdefs.h.  */
12091 _ACEOF
12092 cat confdefs.h >>conftest.$ac_ext
12093 cat >>conftest.$ac_ext <<_ACEOF
12094 /* end confdefs.h.  */
12095 #include <ctype.h>
12096 #if ((' ' & 0x0FF) == 0x020)
12097 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12098 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12099 #else
12100 # define ISLOWER(c) \
12101                    (('a' <= (c) && (c) <= 'i') \
12102                      || ('j' <= (c) && (c) <= 'r') \
12103                      || ('s' <= (c) && (c) <= 'z'))
12104 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12105 #endif
12106
12107 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12108 int
12109 main ()
12110 {
12111   int i;
12112   for (i = 0; i < 256; i++)
12113     if (XOR (islower (i), ISLOWER (i))
12114         || toupper (i) != TOUPPER (i))
12115       exit(2);
12116   exit (0);
12117 }
12118 _ACEOF
12119 rm -f conftest$ac_exeext
12120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12121   (eval $ac_link) 2>&5
12122   ac_status=$?
12123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12126   (eval $ac_try) 2>&5
12127   ac_status=$?
12128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129   (exit $ac_status); }; }; then
12130   :
12131 else
12132   echo "$as_me: program exited with status $ac_status" >&5
12133 echo "$as_me: failed program was:" >&5
12134 sed 's/^/| /' conftest.$ac_ext >&5
12135
12136 ( exit $ac_status )
12137 ac_cv_header_stdc=no
12138 fi
12139 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12140 fi
12141 fi
12142 fi
12143 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12144 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12145 if test $ac_cv_header_stdc = yes; then
12146
12147 cat >>confdefs.h <<\_ACEOF
12148 #define STDC_HEADERS 1
12149 _ACEOF
12150
12151 fi
12152
12153 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12164                   inttypes.h stdint.h unistd.h
12165 do
12166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12167 echo "$as_me:$LINENO: checking for $ac_header" >&5
12168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12170   echo $ECHO_N "(cached) $ECHO_C" >&6
12171 else
12172   cat >conftest.$ac_ext <<_ACEOF
12173 #line $LINENO "configure"
12174 /* confdefs.h.  */
12175 _ACEOF
12176 cat confdefs.h >>conftest.$ac_ext
12177 cat >>conftest.$ac_ext <<_ACEOF
12178 /* end confdefs.h.  */
12179 $ac_includes_default
12180
12181 #include <$ac_header>
12182 _ACEOF
12183 rm -f conftest.$ac_objext
12184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12185   (eval $ac_compile) 2>&5
12186   ac_status=$?
12187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188   (exit $ac_status); } &&
12189          { ac_try='test -s conftest.$ac_objext'
12190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12191   (eval $ac_try) 2>&5
12192   ac_status=$?
12193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194   (exit $ac_status); }; }; then
12195   eval "$as_ac_Header=yes"
12196 else
12197   echo "$as_me: failed program was:" >&5
12198 sed 's/^/| /' conftest.$ac_ext >&5
12199
12200 eval "$as_ac_Header=no"
12201 fi
12202 rm -f conftest.$ac_objext conftest.$ac_ext
12203 fi
12204 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12205 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12207   cat >>confdefs.h <<_ACEOF
12208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12209 _ACEOF
12210
12211 fi
12212
12213 done
12214
12215
12216
12217 for ac_header in strings.h
12218 do
12219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12221   echo "$as_me:$LINENO: checking for $ac_header" >&5
12222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12224   echo $ECHO_N "(cached) $ECHO_C" >&6
12225 fi
12226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12227 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12228 else
12229   # Is the header compilable?
12230 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12231 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12232 cat >conftest.$ac_ext <<_ACEOF
12233 #line $LINENO "configure"
12234 /* confdefs.h.  */
12235 _ACEOF
12236 cat confdefs.h >>conftest.$ac_ext
12237 cat >>conftest.$ac_ext <<_ACEOF
12238 /* end confdefs.h.  */
12239 $ac_includes_default
12240 #include <$ac_header>
12241 _ACEOF
12242 rm -f conftest.$ac_objext
12243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12244   (eval $ac_compile) 2>&5
12245   ac_status=$?
12246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247   (exit $ac_status); } &&
12248          { ac_try='test -s conftest.$ac_objext'
12249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12250   (eval $ac_try) 2>&5
12251   ac_status=$?
12252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253   (exit $ac_status); }; }; then
12254   ac_header_compiler=yes
12255 else
12256   echo "$as_me: failed program was:" >&5
12257 sed 's/^/| /' conftest.$ac_ext >&5
12258
12259 ac_header_compiler=no
12260 fi
12261 rm -f conftest.$ac_objext conftest.$ac_ext
12262 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12263 echo "${ECHO_T}$ac_header_compiler" >&6
12264
12265 # Is the header present?
12266 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12267 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12268 cat >conftest.$ac_ext <<_ACEOF
12269 #line $LINENO "configure"
12270 /* confdefs.h.  */
12271 _ACEOF
12272 cat confdefs.h >>conftest.$ac_ext
12273 cat >>conftest.$ac_ext <<_ACEOF
12274 /* end confdefs.h.  */
12275 #include <$ac_header>
12276 _ACEOF
12277 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12278   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12279   ac_status=$?
12280   grep -v '^ *+' conftest.er1 >conftest.err
12281   rm -f conftest.er1
12282   cat conftest.err >&5
12283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284   (exit $ac_status); } >/dev/null; then
12285   if test -s conftest.err; then
12286     ac_cpp_err=$ac_c_preproc_warn_flag
12287   else
12288     ac_cpp_err=
12289   fi
12290 else
12291   ac_cpp_err=yes
12292 fi
12293 if test -z "$ac_cpp_err"; then
12294   ac_header_preproc=yes
12295 else
12296   echo "$as_me: failed program was:" >&5
12297 sed 's/^/| /' conftest.$ac_ext >&5
12298
12299   ac_header_preproc=no
12300 fi
12301 rm -f conftest.err conftest.$ac_ext
12302 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12303 echo "${ECHO_T}$ac_header_preproc" >&6
12304
12305 # So?  What about this header?
12306 case $ac_header_compiler:$ac_header_preproc in
12307   yes:no )
12308     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12309 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12310     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12312     (
12313       cat <<\_ASBOX
12314 ## ------------------------------------ ##
12315 ## Report this to bug-autoconf@gnu.org. ##
12316 ## ------------------------------------ ##
12317 _ASBOX
12318     ) |
12319       sed "s/^/$as_me: WARNING:     /" >&2
12320     ;;
12321   no:yes )
12322     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12323 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12324     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12325 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12326     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12328     (
12329       cat <<\_ASBOX
12330 ## ------------------------------------ ##
12331 ## Report this to bug-autoconf@gnu.org. ##
12332 ## ------------------------------------ ##
12333 _ASBOX
12334     ) |
12335       sed "s/^/$as_me: WARNING:     /" >&2
12336     ;;
12337 esac
12338 echo "$as_me:$LINENO: checking for $ac_header" >&5
12339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12340 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12341   echo $ECHO_N "(cached) $ECHO_C" >&6
12342 else
12343   eval "$as_ac_Header=$ac_header_preproc"
12344 fi
12345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12347
12348 fi
12349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12350   cat >>confdefs.h <<_ACEOF
12351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12352 _ACEOF
12353
12354 fi
12355
12356 done
12357
12358
12359
12360 for ac_header in stdlib.h
12361 do
12362 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12364   echo "$as_me:$LINENO: checking for $ac_header" >&5
12365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12367   echo $ECHO_N "(cached) $ECHO_C" >&6
12368 fi
12369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12371 else
12372   # Is the header compilable?
12373 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12375 cat >conftest.$ac_ext <<_ACEOF
12376 #line $LINENO "configure"
12377 /* confdefs.h.  */
12378 _ACEOF
12379 cat confdefs.h >>conftest.$ac_ext
12380 cat >>conftest.$ac_ext <<_ACEOF
12381 /* end confdefs.h.  */
12382 $ac_includes_default
12383 #include <$ac_header>
12384 _ACEOF
12385 rm -f conftest.$ac_objext
12386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12387   (eval $ac_compile) 2>&5
12388   ac_status=$?
12389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390   (exit $ac_status); } &&
12391          { ac_try='test -s conftest.$ac_objext'
12392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12393   (eval $ac_try) 2>&5
12394   ac_status=$?
12395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396   (exit $ac_status); }; }; then
12397   ac_header_compiler=yes
12398 else
12399   echo "$as_me: failed program was:" >&5
12400 sed 's/^/| /' conftest.$ac_ext >&5
12401
12402 ac_header_compiler=no
12403 fi
12404 rm -f conftest.$ac_objext conftest.$ac_ext
12405 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12406 echo "${ECHO_T}$ac_header_compiler" >&6
12407
12408 # Is the header present?
12409 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12411 cat >conftest.$ac_ext <<_ACEOF
12412 #line $LINENO "configure"
12413 /* confdefs.h.  */
12414 _ACEOF
12415 cat confdefs.h >>conftest.$ac_ext
12416 cat >>conftest.$ac_ext <<_ACEOF
12417 /* end confdefs.h.  */
12418 #include <$ac_header>
12419 _ACEOF
12420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12421   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12422   ac_status=$?
12423   grep -v '^ *+' conftest.er1 >conftest.err
12424   rm -f conftest.er1
12425   cat conftest.err >&5
12426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427   (exit $ac_status); } >/dev/null; then
12428   if test -s conftest.err; then
12429     ac_cpp_err=$ac_c_preproc_warn_flag
12430   else
12431     ac_cpp_err=
12432   fi
12433 else
12434   ac_cpp_err=yes
12435 fi
12436 if test -z "$ac_cpp_err"; then
12437   ac_header_preproc=yes
12438 else
12439   echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12441
12442   ac_header_preproc=no
12443 fi
12444 rm -f conftest.err conftest.$ac_ext
12445 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12446 echo "${ECHO_T}$ac_header_preproc" >&6
12447
12448 # So?  What about this header?
12449 case $ac_header_compiler:$ac_header_preproc in
12450   yes:no )
12451     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12453     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12455     (
12456       cat <<\_ASBOX
12457 ## ------------------------------------ ##
12458 ## Report this to bug-autoconf@gnu.org. ##
12459 ## ------------------------------------ ##
12460 _ASBOX
12461     ) |
12462       sed "s/^/$as_me: WARNING:     /" >&2
12463     ;;
12464   no:yes )
12465     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12467     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12468 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12469     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12471     (
12472       cat <<\_ASBOX
12473 ## ------------------------------------ ##
12474 ## Report this to bug-autoconf@gnu.org. ##
12475 ## ------------------------------------ ##
12476 _ASBOX
12477     ) |
12478       sed "s/^/$as_me: WARNING:     /" >&2
12479     ;;
12480 esac
12481 echo "$as_me:$LINENO: checking for $ac_header" >&5
12482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12484   echo $ECHO_N "(cached) $ECHO_C" >&6
12485 else
12486   eval "$as_ac_Header=$ac_header_preproc"
12487 fi
12488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12490
12491 fi
12492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12493   cat >>confdefs.h <<_ACEOF
12494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12495 _ACEOF
12496
12497 fi
12498
12499 done
12500
12501
12502 for ac_header in malloc.h
12503 do
12504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12506   echo "$as_me:$LINENO: checking for $ac_header" >&5
12507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12509   echo $ECHO_N "(cached) $ECHO_C" >&6
12510 fi
12511 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12512 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12513 else
12514   # Is the header compilable?
12515 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12517 cat >conftest.$ac_ext <<_ACEOF
12518 #line $LINENO "configure"
12519 /* confdefs.h.  */
12520 _ACEOF
12521 cat confdefs.h >>conftest.$ac_ext
12522 cat >>conftest.$ac_ext <<_ACEOF
12523 /* end confdefs.h.  */
12524 $ac_includes_default
12525 #include <$ac_header>
12526 _ACEOF
12527 rm -f conftest.$ac_objext
12528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12529   (eval $ac_compile) 2>&5
12530   ac_status=$?
12531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532   (exit $ac_status); } &&
12533          { ac_try='test -s conftest.$ac_objext'
12534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535   (eval $ac_try) 2>&5
12536   ac_status=$?
12537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538   (exit $ac_status); }; }; then
12539   ac_header_compiler=yes
12540 else
12541   echo "$as_me: failed program was:" >&5
12542 sed 's/^/| /' conftest.$ac_ext >&5
12543
12544 ac_header_compiler=no
12545 fi
12546 rm -f conftest.$ac_objext conftest.$ac_ext
12547 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12548 echo "${ECHO_T}$ac_header_compiler" >&6
12549
12550 # Is the header present?
12551 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12552 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12553 cat >conftest.$ac_ext <<_ACEOF
12554 #line $LINENO "configure"
12555 /* confdefs.h.  */
12556 _ACEOF
12557 cat confdefs.h >>conftest.$ac_ext
12558 cat >>conftest.$ac_ext <<_ACEOF
12559 /* end confdefs.h.  */
12560 #include <$ac_header>
12561 _ACEOF
12562 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12563   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12564   ac_status=$?
12565   grep -v '^ *+' conftest.er1 >conftest.err
12566   rm -f conftest.er1
12567   cat conftest.err >&5
12568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569   (exit $ac_status); } >/dev/null; then
12570   if test -s conftest.err; then
12571     ac_cpp_err=$ac_c_preproc_warn_flag
12572   else
12573     ac_cpp_err=
12574   fi
12575 else
12576   ac_cpp_err=yes
12577 fi
12578 if test -z "$ac_cpp_err"; then
12579   ac_header_preproc=yes
12580 else
12581   echo "$as_me: failed program was:" >&5
12582 sed 's/^/| /' conftest.$ac_ext >&5
12583
12584   ac_header_preproc=no
12585 fi
12586 rm -f conftest.err conftest.$ac_ext
12587 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12588 echo "${ECHO_T}$ac_header_preproc" >&6
12589
12590 # So?  What about this header?
12591 case $ac_header_compiler:$ac_header_preproc in
12592   yes:no )
12593     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12594 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12595     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12596 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12597     (
12598       cat <<\_ASBOX
12599 ## ------------------------------------ ##
12600 ## Report this to bug-autoconf@gnu.org. ##
12601 ## ------------------------------------ ##
12602 _ASBOX
12603     ) |
12604       sed "s/^/$as_me: WARNING:     /" >&2
12605     ;;
12606   no:yes )
12607     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12608 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12609     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12610 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12611     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12612 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12613     (
12614       cat <<\_ASBOX
12615 ## ------------------------------------ ##
12616 ## Report this to bug-autoconf@gnu.org. ##
12617 ## ------------------------------------ ##
12618 _ASBOX
12619     ) |
12620       sed "s/^/$as_me: WARNING:     /" >&2
12621     ;;
12622 esac
12623 echo "$as_me:$LINENO: checking for $ac_header" >&5
12624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12626   echo $ECHO_N "(cached) $ECHO_C" >&6
12627 else
12628   eval "$as_ac_Header=$ac_header_preproc"
12629 fi
12630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12632
12633 fi
12634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12635   cat >>confdefs.h <<_ACEOF
12636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12637 _ACEOF
12638
12639 fi
12640
12641 done
12642
12643
12644 for ac_header in unistd.h
12645 do
12646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12648   echo "$as_me:$LINENO: checking for $ac_header" >&5
12649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12650 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12651   echo $ECHO_N "(cached) $ECHO_C" >&6
12652 fi
12653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12655 else
12656   # Is the header compilable?
12657 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12658 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12659 cat >conftest.$ac_ext <<_ACEOF
12660 #line $LINENO "configure"
12661 /* confdefs.h.  */
12662 _ACEOF
12663 cat confdefs.h >>conftest.$ac_ext
12664 cat >>conftest.$ac_ext <<_ACEOF
12665 /* end confdefs.h.  */
12666 $ac_includes_default
12667 #include <$ac_header>
12668 _ACEOF
12669 rm -f conftest.$ac_objext
12670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12671   (eval $ac_compile) 2>&5
12672   ac_status=$?
12673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674   (exit $ac_status); } &&
12675          { ac_try='test -s conftest.$ac_objext'
12676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12677   (eval $ac_try) 2>&5
12678   ac_status=$?
12679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680   (exit $ac_status); }; }; then
12681   ac_header_compiler=yes
12682 else
12683   echo "$as_me: failed program was:" >&5
12684 sed 's/^/| /' conftest.$ac_ext >&5
12685
12686 ac_header_compiler=no
12687 fi
12688 rm -f conftest.$ac_objext conftest.$ac_ext
12689 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12690 echo "${ECHO_T}$ac_header_compiler" >&6
12691
12692 # Is the header present?
12693 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12694 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12695 cat >conftest.$ac_ext <<_ACEOF
12696 #line $LINENO "configure"
12697 /* confdefs.h.  */
12698 _ACEOF
12699 cat confdefs.h >>conftest.$ac_ext
12700 cat >>conftest.$ac_ext <<_ACEOF
12701 /* end confdefs.h.  */
12702 #include <$ac_header>
12703 _ACEOF
12704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12705   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12706   ac_status=$?
12707   grep -v '^ *+' conftest.er1 >conftest.err
12708   rm -f conftest.er1
12709   cat conftest.err >&5
12710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711   (exit $ac_status); } >/dev/null; then
12712   if test -s conftest.err; then
12713     ac_cpp_err=$ac_c_preproc_warn_flag
12714   else
12715     ac_cpp_err=
12716   fi
12717 else
12718   ac_cpp_err=yes
12719 fi
12720 if test -z "$ac_cpp_err"; then
12721   ac_header_preproc=yes
12722 else
12723   echo "$as_me: failed program was:" >&5
12724 sed 's/^/| /' conftest.$ac_ext >&5
12725
12726   ac_header_preproc=no
12727 fi
12728 rm -f conftest.err conftest.$ac_ext
12729 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12730 echo "${ECHO_T}$ac_header_preproc" >&6
12731
12732 # So?  What about this header?
12733 case $ac_header_compiler:$ac_header_preproc in
12734   yes:no )
12735     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12736 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12737     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12739     (
12740       cat <<\_ASBOX
12741 ## ------------------------------------ ##
12742 ## Report this to bug-autoconf@gnu.org. ##
12743 ## ------------------------------------ ##
12744 _ASBOX
12745     ) |
12746       sed "s/^/$as_me: WARNING:     /" >&2
12747     ;;
12748   no:yes )
12749     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12750 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12751     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12752 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12753     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12755     (
12756       cat <<\_ASBOX
12757 ## ------------------------------------ ##
12758 ## Report this to bug-autoconf@gnu.org. ##
12759 ## ------------------------------------ ##
12760 _ASBOX
12761     ) |
12762       sed "s/^/$as_me: WARNING:     /" >&2
12763     ;;
12764 esac
12765 echo "$as_me:$LINENO: checking for $ac_header" >&5
12766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12768   echo $ECHO_N "(cached) $ECHO_C" >&6
12769 else
12770   eval "$as_ac_Header=$ac_header_preproc"
12771 fi
12772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12773 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12774
12775 fi
12776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12777   cat >>confdefs.h <<_ACEOF
12778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12779 _ACEOF
12780
12781 fi
12782
12783 done
12784
12785
12786 for ac_header in wchar.h
12787 do
12788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12790   echo "$as_me:$LINENO: checking for $ac_header" >&5
12791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12793   echo $ECHO_N "(cached) $ECHO_C" >&6
12794 fi
12795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12797 else
12798   # Is the header compilable?
12799 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12800 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12801 cat >conftest.$ac_ext <<_ACEOF
12802 #line $LINENO "configure"
12803 /* confdefs.h.  */
12804 _ACEOF
12805 cat confdefs.h >>conftest.$ac_ext
12806 cat >>conftest.$ac_ext <<_ACEOF
12807 /* end confdefs.h.  */
12808 $ac_includes_default
12809 #include <$ac_header>
12810 _ACEOF
12811 rm -f conftest.$ac_objext
12812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12813   (eval $ac_compile) 2>&5
12814   ac_status=$?
12815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816   (exit $ac_status); } &&
12817          { ac_try='test -s conftest.$ac_objext'
12818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12819   (eval $ac_try) 2>&5
12820   ac_status=$?
12821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822   (exit $ac_status); }; }; then
12823   ac_header_compiler=yes
12824 else
12825   echo "$as_me: failed program was:" >&5
12826 sed 's/^/| /' conftest.$ac_ext >&5
12827
12828 ac_header_compiler=no
12829 fi
12830 rm -f conftest.$ac_objext conftest.$ac_ext
12831 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12832 echo "${ECHO_T}$ac_header_compiler" >&6
12833
12834 # Is the header present?
12835 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12837 cat >conftest.$ac_ext <<_ACEOF
12838 #line $LINENO "configure"
12839 /* confdefs.h.  */
12840 _ACEOF
12841 cat confdefs.h >>conftest.$ac_ext
12842 cat >>conftest.$ac_ext <<_ACEOF
12843 /* end confdefs.h.  */
12844 #include <$ac_header>
12845 _ACEOF
12846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12847   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12848   ac_status=$?
12849   grep -v '^ *+' conftest.er1 >conftest.err
12850   rm -f conftest.er1
12851   cat conftest.err >&5
12852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853   (exit $ac_status); } >/dev/null; then
12854   if test -s conftest.err; then
12855     ac_cpp_err=$ac_c_preproc_warn_flag
12856   else
12857     ac_cpp_err=
12858   fi
12859 else
12860   ac_cpp_err=yes
12861 fi
12862 if test -z "$ac_cpp_err"; then
12863   ac_header_preproc=yes
12864 else
12865   echo "$as_me: failed program was:" >&5
12866 sed 's/^/| /' conftest.$ac_ext >&5
12867
12868   ac_header_preproc=no
12869 fi
12870 rm -f conftest.err conftest.$ac_ext
12871 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12872 echo "${ECHO_T}$ac_header_preproc" >&6
12873
12874 # So?  What about this header?
12875 case $ac_header_compiler:$ac_header_preproc in
12876   yes:no )
12877     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12878 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12879     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12880 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12881     (
12882       cat <<\_ASBOX
12883 ## ------------------------------------ ##
12884 ## Report this to bug-autoconf@gnu.org. ##
12885 ## ------------------------------------ ##
12886 _ASBOX
12887     ) |
12888       sed "s/^/$as_me: WARNING:     /" >&2
12889     ;;
12890   no:yes )
12891     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12892 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12893     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12894 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12895     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12897     (
12898       cat <<\_ASBOX
12899 ## ------------------------------------ ##
12900 ## Report this to bug-autoconf@gnu.org. ##
12901 ## ------------------------------------ ##
12902 _ASBOX
12903     ) |
12904       sed "s/^/$as_me: WARNING:     /" >&2
12905     ;;
12906 esac
12907 echo "$as_me:$LINENO: checking for $ac_header" >&5
12908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12910   echo $ECHO_N "(cached) $ECHO_C" >&6
12911 else
12912   eval "$as_ac_Header=$ac_header_preproc"
12913 fi
12914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12916
12917 fi
12918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12919   cat >>confdefs.h <<_ACEOF
12920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12921 _ACEOF
12922
12923 fi
12924
12925 done
12926
12927
12928 if test "$ac_cv_header_wchar_h" != "yes"; then
12929
12930 for ac_header in wcstr.h
12931 do
12932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12934   echo "$as_me:$LINENO: checking for $ac_header" >&5
12935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12937   echo $ECHO_N "(cached) $ECHO_C" >&6
12938 fi
12939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12941 else
12942   # Is the header compilable?
12943 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12945 cat >conftest.$ac_ext <<_ACEOF
12946 #line $LINENO "configure"
12947 /* confdefs.h.  */
12948 _ACEOF
12949 cat confdefs.h >>conftest.$ac_ext
12950 cat >>conftest.$ac_ext <<_ACEOF
12951 /* end confdefs.h.  */
12952 $ac_includes_default
12953 #include <$ac_header>
12954 _ACEOF
12955 rm -f conftest.$ac_objext
12956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12957   (eval $ac_compile) 2>&5
12958   ac_status=$?
12959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960   (exit $ac_status); } &&
12961          { ac_try='test -s conftest.$ac_objext'
12962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12963   (eval $ac_try) 2>&5
12964   ac_status=$?
12965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966   (exit $ac_status); }; }; then
12967   ac_header_compiler=yes
12968 else
12969   echo "$as_me: failed program was:" >&5
12970 sed 's/^/| /' conftest.$ac_ext >&5
12971
12972 ac_header_compiler=no
12973 fi
12974 rm -f conftest.$ac_objext conftest.$ac_ext
12975 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12976 echo "${ECHO_T}$ac_header_compiler" >&6
12977
12978 # Is the header present?
12979 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12980 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12981 cat >conftest.$ac_ext <<_ACEOF
12982 #line $LINENO "configure"
12983 /* confdefs.h.  */
12984 _ACEOF
12985 cat confdefs.h >>conftest.$ac_ext
12986 cat >>conftest.$ac_ext <<_ACEOF
12987 /* end confdefs.h.  */
12988 #include <$ac_header>
12989 _ACEOF
12990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12991   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12992   ac_status=$?
12993   grep -v '^ *+' conftest.er1 >conftest.err
12994   rm -f conftest.er1
12995   cat conftest.err >&5
12996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997   (exit $ac_status); } >/dev/null; then
12998   if test -s conftest.err; then
12999     ac_cpp_err=$ac_c_preproc_warn_flag
13000   else
13001     ac_cpp_err=
13002   fi
13003 else
13004   ac_cpp_err=yes
13005 fi
13006 if test -z "$ac_cpp_err"; then
13007   ac_header_preproc=yes
13008 else
13009   echo "$as_me: failed program was:" >&5
13010 sed 's/^/| /' conftest.$ac_ext >&5
13011
13012   ac_header_preproc=no
13013 fi
13014 rm -f conftest.err conftest.$ac_ext
13015 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13016 echo "${ECHO_T}$ac_header_preproc" >&6
13017
13018 # So?  What about this header?
13019 case $ac_header_compiler:$ac_header_preproc in
13020   yes:no )
13021     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13022 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13023     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13024 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13025     (
13026       cat <<\_ASBOX
13027 ## ------------------------------------ ##
13028 ## Report this to bug-autoconf@gnu.org. ##
13029 ## ------------------------------------ ##
13030 _ASBOX
13031     ) |
13032       sed "s/^/$as_me: WARNING:     /" >&2
13033     ;;
13034   no:yes )
13035     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13036 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13037     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13038 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13039     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13040 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13041     (
13042       cat <<\_ASBOX
13043 ## ------------------------------------ ##
13044 ## Report this to bug-autoconf@gnu.org. ##
13045 ## ------------------------------------ ##
13046 _ASBOX
13047     ) |
13048       sed "s/^/$as_me: WARNING:     /" >&2
13049     ;;
13050 esac
13051 echo "$as_me:$LINENO: checking for $ac_header" >&5
13052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13054   echo $ECHO_N "(cached) $ECHO_C" >&6
13055 else
13056   eval "$as_ac_Header=$ac_header_preproc"
13057 fi
13058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13060
13061 fi
13062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13063   cat >>confdefs.h <<_ACEOF
13064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13065 _ACEOF
13066
13067 fi
13068
13069 done
13070
13071 fi
13072
13073
13074 for ac_header in fnmatch.h
13075 do
13076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13078   echo "$as_me:$LINENO: checking for $ac_header" >&5
13079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13081   echo $ECHO_N "(cached) $ECHO_C" >&6
13082 fi
13083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13085 else
13086   # Is the header compilable?
13087 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13089 cat >conftest.$ac_ext <<_ACEOF
13090 #line $LINENO "configure"
13091 /* confdefs.h.  */
13092 _ACEOF
13093 cat confdefs.h >>conftest.$ac_ext
13094 cat >>conftest.$ac_ext <<_ACEOF
13095 /* end confdefs.h.  */
13096 $ac_includes_default
13097 #include <$ac_header>
13098 _ACEOF
13099 rm -f conftest.$ac_objext
13100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13101   (eval $ac_compile) 2>&5
13102   ac_status=$?
13103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104   (exit $ac_status); } &&
13105          { ac_try='test -s conftest.$ac_objext'
13106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13107   (eval $ac_try) 2>&5
13108   ac_status=$?
13109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110   (exit $ac_status); }; }; then
13111   ac_header_compiler=yes
13112 else
13113   echo "$as_me: failed program was:" >&5
13114 sed 's/^/| /' conftest.$ac_ext >&5
13115
13116 ac_header_compiler=no
13117 fi
13118 rm -f conftest.$ac_objext conftest.$ac_ext
13119 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13120 echo "${ECHO_T}$ac_header_compiler" >&6
13121
13122 # Is the header present?
13123 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13125 cat >conftest.$ac_ext <<_ACEOF
13126 #line $LINENO "configure"
13127 /* confdefs.h.  */
13128 _ACEOF
13129 cat confdefs.h >>conftest.$ac_ext
13130 cat >>conftest.$ac_ext <<_ACEOF
13131 /* end confdefs.h.  */
13132 #include <$ac_header>
13133 _ACEOF
13134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13135   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13136   ac_status=$?
13137   grep -v '^ *+' conftest.er1 >conftest.err
13138   rm -f conftest.er1
13139   cat conftest.err >&5
13140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141   (exit $ac_status); } >/dev/null; then
13142   if test -s conftest.err; then
13143     ac_cpp_err=$ac_c_preproc_warn_flag
13144   else
13145     ac_cpp_err=
13146   fi
13147 else
13148   ac_cpp_err=yes
13149 fi
13150 if test -z "$ac_cpp_err"; then
13151   ac_header_preproc=yes
13152 else
13153   echo "$as_me: failed program was:" >&5
13154 sed 's/^/| /' conftest.$ac_ext >&5
13155
13156   ac_header_preproc=no
13157 fi
13158 rm -f conftest.err conftest.$ac_ext
13159 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13160 echo "${ECHO_T}$ac_header_preproc" >&6
13161
13162 # So?  What about this header?
13163 case $ac_header_compiler:$ac_header_preproc in
13164   yes:no )
13165     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13167     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13168 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13169     (
13170       cat <<\_ASBOX
13171 ## ------------------------------------ ##
13172 ## Report this to bug-autoconf@gnu.org. ##
13173 ## ------------------------------------ ##
13174 _ASBOX
13175     ) |
13176       sed "s/^/$as_me: WARNING:     /" >&2
13177     ;;
13178   no:yes )
13179     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13181     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13183     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13184 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13185     (
13186       cat <<\_ASBOX
13187 ## ------------------------------------ ##
13188 ## Report this to bug-autoconf@gnu.org. ##
13189 ## ------------------------------------ ##
13190 _ASBOX
13191     ) |
13192       sed "s/^/$as_me: WARNING:     /" >&2
13193     ;;
13194 esac
13195 echo "$as_me:$LINENO: checking for $ac_header" >&5
13196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13198   echo $ECHO_N "(cached) $ECHO_C" >&6
13199 else
13200   eval "$as_ac_Header=$ac_header_preproc"
13201 fi
13202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13204
13205 fi
13206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13207   cat >>confdefs.h <<_ACEOF
13208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13209 _ACEOF
13210
13211 fi
13212
13213 done
13214
13215
13216 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13217
13218 for ac_func in fnmatch
13219 do
13220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13221 echo "$as_me:$LINENO: checking for $ac_func" >&5
13222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13223 if eval "test \"\${$as_ac_var+set}\" = set"; then
13224   echo $ECHO_N "(cached) $ECHO_C" >&6
13225 else
13226   cat >conftest.$ac_ext <<_ACEOF
13227 #line $LINENO "configure"
13228 /* confdefs.h.  */
13229 _ACEOF
13230 cat confdefs.h >>conftest.$ac_ext
13231 cat >>conftest.$ac_ext <<_ACEOF
13232 /* end confdefs.h.  */
13233 /* System header to define __stub macros and hopefully few prototypes,
13234     which can conflict with char $ac_func (); below.
13235     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13236     <limits.h> exists even on freestanding compilers.  */
13237 #ifdef __STDC__
13238 # include <limits.h>
13239 #else
13240 # include <assert.h>
13241 #endif
13242 /* Override any gcc2 internal prototype to avoid an error.  */
13243 #ifdef __cplusplus
13244 extern "C"
13245 {
13246 #endif
13247 /* We use char because int might match the return type of a gcc2
13248    builtin and then its argument prototype would still apply.  */
13249 char $ac_func ();
13250 /* The GNU C library defines this for functions which it implements
13251     to always fail with ENOSYS.  Some functions are actually named
13252     something starting with __ and the normal name is an alias.  */
13253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13254 choke me
13255 #else
13256 char (*f) () = $ac_func;
13257 #endif
13258 #ifdef __cplusplus
13259 }
13260 #endif
13261
13262 int
13263 main ()
13264 {
13265 return f != $ac_func;
13266   ;
13267   return 0;
13268 }
13269 _ACEOF
13270 rm -f conftest.$ac_objext conftest$ac_exeext
13271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13272   (eval $ac_link) 2>&5
13273   ac_status=$?
13274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275   (exit $ac_status); } &&
13276          { ac_try='test -s conftest$ac_exeext'
13277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13278   (eval $ac_try) 2>&5
13279   ac_status=$?
13280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281   (exit $ac_status); }; }; then
13282   eval "$as_ac_var=yes"
13283 else
13284   echo "$as_me: failed program was:" >&5
13285 sed 's/^/| /' conftest.$ac_ext >&5
13286
13287 eval "$as_ac_var=no"
13288 fi
13289 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13290 fi
13291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13292 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13293 if test `eval echo '${'$as_ac_var'}'` = yes; then
13294   cat >>confdefs.h <<_ACEOF
13295 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13296 _ACEOF
13297
13298 fi
13299 done
13300
13301 fi
13302
13303
13304 for ac_header in langinfo.h
13305 do
13306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13308   echo "$as_me:$LINENO: checking for $ac_header" >&5
13309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13311   echo $ECHO_N "(cached) $ECHO_C" >&6
13312 fi
13313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13315 else
13316   # Is the header compilable?
13317 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13318 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13319 cat >conftest.$ac_ext <<_ACEOF
13320 #line $LINENO "configure"
13321 /* confdefs.h.  */
13322 _ACEOF
13323 cat confdefs.h >>conftest.$ac_ext
13324 cat >>conftest.$ac_ext <<_ACEOF
13325 /* end confdefs.h.  */
13326 $ac_includes_default
13327 #include <$ac_header>
13328 _ACEOF
13329 rm -f conftest.$ac_objext
13330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13331   (eval $ac_compile) 2>&5
13332   ac_status=$?
13333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334   (exit $ac_status); } &&
13335          { ac_try='test -s conftest.$ac_objext'
13336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13337   (eval $ac_try) 2>&5
13338   ac_status=$?
13339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340   (exit $ac_status); }; }; then
13341   ac_header_compiler=yes
13342 else
13343   echo "$as_me: failed program was:" >&5
13344 sed 's/^/| /' conftest.$ac_ext >&5
13345
13346 ac_header_compiler=no
13347 fi
13348 rm -f conftest.$ac_objext conftest.$ac_ext
13349 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13350 echo "${ECHO_T}$ac_header_compiler" >&6
13351
13352 # Is the header present?
13353 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13354 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13355 cat >conftest.$ac_ext <<_ACEOF
13356 #line $LINENO "configure"
13357 /* confdefs.h.  */
13358 _ACEOF
13359 cat confdefs.h >>conftest.$ac_ext
13360 cat >>conftest.$ac_ext <<_ACEOF
13361 /* end confdefs.h.  */
13362 #include <$ac_header>
13363 _ACEOF
13364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13365   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13366   ac_status=$?
13367   grep -v '^ *+' conftest.er1 >conftest.err
13368   rm -f conftest.er1
13369   cat conftest.err >&5
13370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371   (exit $ac_status); } >/dev/null; then
13372   if test -s conftest.err; then
13373     ac_cpp_err=$ac_c_preproc_warn_flag
13374   else
13375     ac_cpp_err=
13376   fi
13377 else
13378   ac_cpp_err=yes
13379 fi
13380 if test -z "$ac_cpp_err"; then
13381   ac_header_preproc=yes
13382 else
13383   echo "$as_me: failed program was:" >&5
13384 sed 's/^/| /' conftest.$ac_ext >&5
13385
13386   ac_header_preproc=no
13387 fi
13388 rm -f conftest.err conftest.$ac_ext
13389 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13390 echo "${ECHO_T}$ac_header_preproc" >&6
13391
13392 # So?  What about this header?
13393 case $ac_header_compiler:$ac_header_preproc in
13394   yes:no )
13395     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13396 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13397     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13398 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13399     (
13400       cat <<\_ASBOX
13401 ## ------------------------------------ ##
13402 ## Report this to bug-autoconf@gnu.org. ##
13403 ## ------------------------------------ ##
13404 _ASBOX
13405     ) |
13406       sed "s/^/$as_me: WARNING:     /" >&2
13407     ;;
13408   no:yes )
13409     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13410 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13411     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13412 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13413     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13415     (
13416       cat <<\_ASBOX
13417 ## ------------------------------------ ##
13418 ## Report this to bug-autoconf@gnu.org. ##
13419 ## ------------------------------------ ##
13420 _ASBOX
13421     ) |
13422       sed "s/^/$as_me: WARNING:     /" >&2
13423     ;;
13424 esac
13425 echo "$as_me:$LINENO: checking for $ac_header" >&5
13426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13428   echo $ECHO_N "(cached) $ECHO_C" >&6
13429 else
13430   eval "$as_ac_Header=$ac_header_preproc"
13431 fi
13432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13434
13435 fi
13436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13437   cat >>confdefs.h <<_ACEOF
13438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13439 _ACEOF
13440
13441 fi
13442
13443 done
13444
13445
13446 case "${host}" in
13447   *-pc-os2_emx | *-pc-os2-emx )
13448             if test $ac_cv_header_langinfo_h = "yes"; then
13449           LIBS="$LIBS -lintl"
13450       fi
13451   ;;
13452 esac
13453
13454 if test "$wxUSE_GUI" = "yes"; then
13455     if test "$wxUSE_UNIX" = "yes"; then
13456
13457 for ac_header in X11/Xlib.h
13458 do
13459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13461   echo "$as_me:$LINENO: checking for $ac_header" >&5
13462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13464   echo $ECHO_N "(cached) $ECHO_C" >&6
13465 fi
13466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13468 else
13469   # Is the header compilable?
13470 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13472 cat >conftest.$ac_ext <<_ACEOF
13473 #line $LINENO "configure"
13474 /* confdefs.h.  */
13475 _ACEOF
13476 cat confdefs.h >>conftest.$ac_ext
13477 cat >>conftest.$ac_ext <<_ACEOF
13478 /* end confdefs.h.  */
13479 $ac_includes_default
13480 #include <$ac_header>
13481 _ACEOF
13482 rm -f conftest.$ac_objext
13483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13484   (eval $ac_compile) 2>&5
13485   ac_status=$?
13486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487   (exit $ac_status); } &&
13488          { ac_try='test -s conftest.$ac_objext'
13489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13490   (eval $ac_try) 2>&5
13491   ac_status=$?
13492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493   (exit $ac_status); }; }; then
13494   ac_header_compiler=yes
13495 else
13496   echo "$as_me: failed program was:" >&5
13497 sed 's/^/| /' conftest.$ac_ext >&5
13498
13499 ac_header_compiler=no
13500 fi
13501 rm -f conftest.$ac_objext conftest.$ac_ext
13502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13503 echo "${ECHO_T}$ac_header_compiler" >&6
13504
13505 # Is the header present?
13506 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13508 cat >conftest.$ac_ext <<_ACEOF
13509 #line $LINENO "configure"
13510 /* confdefs.h.  */
13511 _ACEOF
13512 cat confdefs.h >>conftest.$ac_ext
13513 cat >>conftest.$ac_ext <<_ACEOF
13514 /* end confdefs.h.  */
13515 #include <$ac_header>
13516 _ACEOF
13517 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13518   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13519   ac_status=$?
13520   grep -v '^ *+' conftest.er1 >conftest.err
13521   rm -f conftest.er1
13522   cat conftest.err >&5
13523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524   (exit $ac_status); } >/dev/null; then
13525   if test -s conftest.err; then
13526     ac_cpp_err=$ac_c_preproc_warn_flag
13527   else
13528     ac_cpp_err=
13529   fi
13530 else
13531   ac_cpp_err=yes
13532 fi
13533 if test -z "$ac_cpp_err"; then
13534   ac_header_preproc=yes
13535 else
13536   echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.$ac_ext >&5
13538
13539   ac_header_preproc=no
13540 fi
13541 rm -f conftest.err conftest.$ac_ext
13542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13543 echo "${ECHO_T}$ac_header_preproc" >&6
13544
13545 # So?  What about this header?
13546 case $ac_header_compiler:$ac_header_preproc in
13547   yes:no )
13548     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13550     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13551 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13552     (
13553       cat <<\_ASBOX
13554 ## ------------------------------------ ##
13555 ## Report this to bug-autoconf@gnu.org. ##
13556 ## ------------------------------------ ##
13557 _ASBOX
13558     ) |
13559       sed "s/^/$as_me: WARNING:     /" >&2
13560     ;;
13561   no:yes )
13562     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13563 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13564     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13565 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13566     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13568     (
13569       cat <<\_ASBOX
13570 ## ------------------------------------ ##
13571 ## Report this to bug-autoconf@gnu.org. ##
13572 ## ------------------------------------ ##
13573 _ASBOX
13574     ) |
13575       sed "s/^/$as_me: WARNING:     /" >&2
13576     ;;
13577 esac
13578 echo "$as_me:$LINENO: checking for $ac_header" >&5
13579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13580 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13581   echo $ECHO_N "(cached) $ECHO_C" >&6
13582 else
13583   eval "$as_ac_Header=$ac_header_preproc"
13584 fi
13585 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13586 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13587
13588 fi
13589 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13590   cat >>confdefs.h <<_ACEOF
13591 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13592 _ACEOF
13593
13594 fi
13595
13596 done
13597
13598
13599 for ac_header in X11/XKBlib.h
13600 do
13601 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13602 echo "$as_me:$LINENO: checking for $ac_header" >&5
13603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13605   echo $ECHO_N "(cached) $ECHO_C" >&6
13606 else
13607   cat >conftest.$ac_ext <<_ACEOF
13608 #line $LINENO "configure"
13609 /* confdefs.h.  */
13610 _ACEOF
13611 cat confdefs.h >>conftest.$ac_ext
13612 cat >>conftest.$ac_ext <<_ACEOF
13613 /* end confdefs.h.  */
13614
13615                           #if HAVE_X11_XLIB_H
13616                             #include <X11/Xlib.h>
13617                           #endif
13618
13619
13620 #include <$ac_header>
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   eval "$as_ac_Header=yes"
13635 else
13636   echo "$as_me: failed program was:" >&5
13637 sed 's/^/| /' conftest.$ac_ext >&5
13638
13639 eval "$as_ac_Header=no"
13640 fi
13641 rm -f conftest.$ac_objext conftest.$ac_ext
13642 fi
13643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13646   cat >>confdefs.h <<_ACEOF
13647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13648 _ACEOF
13649
13650 fi
13651
13652 done
13653
13654     fi
13655 fi
13656
13657
13658 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13659 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13660 if test "${ac_cv_c_const+set}" = set; then
13661   echo $ECHO_N "(cached) $ECHO_C" >&6
13662 else
13663   cat >conftest.$ac_ext <<_ACEOF
13664 #line $LINENO "configure"
13665 /* confdefs.h.  */
13666 _ACEOF
13667 cat confdefs.h >>conftest.$ac_ext
13668 cat >>conftest.$ac_ext <<_ACEOF
13669 /* end confdefs.h.  */
13670
13671 int
13672 main ()
13673 {
13674 /* FIXME: Include the comments suggested by Paul. */
13675 #ifndef __cplusplus
13676   /* Ultrix mips cc rejects this.  */
13677   typedef int charset[2];
13678   const charset x;
13679   /* SunOS 4.1.1 cc rejects this.  */
13680   char const *const *ccp;
13681   char **p;
13682   /* NEC SVR4.0.2 mips cc rejects this.  */
13683   struct point {int x, y;};
13684   static struct point const zero = {0,0};
13685   /* AIX XL C 1.02.0.0 rejects this.
13686      It does not let you subtract one const X* pointer from another in
13687      an arm of an if-expression whose if-part is not a constant
13688      expression */
13689   const char *g = "string";
13690   ccp = &g + (g ? g-g : 0);
13691   /* HPUX 7.0 cc rejects these. */
13692   ++ccp;
13693   p = (char**) ccp;
13694   ccp = (char const *const *) p;
13695   { /* SCO 3.2v4 cc rejects this.  */
13696     char *t;
13697     char const *s = 0 ? (char *) 0 : (char const *) 0;
13698
13699     *t++ = 0;
13700   }
13701   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13702     int x[] = {25, 17};
13703     const int *foo = &x[0];
13704     ++foo;
13705   }
13706   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13707     typedef const int *iptr;
13708     iptr p = 0;
13709     ++p;
13710   }
13711   { /* AIX XL C 1.02.0.0 rejects this saying
13712        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13713     struct s { int j; const int *ap[3]; };
13714     struct s *b; b->j = 5;
13715   }
13716   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13717     const int foo = 10;
13718   }
13719 #endif
13720
13721   ;
13722   return 0;
13723 }
13724 _ACEOF
13725 rm -f conftest.$ac_objext
13726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13727   (eval $ac_compile) 2>&5
13728   ac_status=$?
13729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730   (exit $ac_status); } &&
13731          { ac_try='test -s conftest.$ac_objext'
13732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13733   (eval $ac_try) 2>&5
13734   ac_status=$?
13735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736   (exit $ac_status); }; }; then
13737   ac_cv_c_const=yes
13738 else
13739   echo "$as_me: failed program was:" >&5
13740 sed 's/^/| /' conftest.$ac_ext >&5
13741
13742 ac_cv_c_const=no
13743 fi
13744 rm -f conftest.$ac_objext conftest.$ac_ext
13745 fi
13746 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13747 echo "${ECHO_T}$ac_cv_c_const" >&6
13748 if test $ac_cv_c_const = no; then
13749
13750 cat >>confdefs.h <<\_ACEOF
13751 #define const
13752 _ACEOF
13753
13754 fi
13755
13756 echo "$as_me:$LINENO: checking for inline" >&5
13757 echo $ECHO_N "checking for inline... $ECHO_C" >&6
13758 if test "${ac_cv_c_inline+set}" = set; then
13759   echo $ECHO_N "(cached) $ECHO_C" >&6
13760 else
13761   ac_cv_c_inline=no
13762 for ac_kw in inline __inline__ __inline; do
13763   cat >conftest.$ac_ext <<_ACEOF
13764 #line $LINENO "configure"
13765 /* confdefs.h.  */
13766 _ACEOF
13767 cat confdefs.h >>conftest.$ac_ext
13768 cat >>conftest.$ac_ext <<_ACEOF
13769 /* end confdefs.h.  */
13770 #ifndef __cplusplus
13771 typedef int foo_t;
13772 static $ac_kw foo_t static_foo () {return 0; }
13773 $ac_kw foo_t foo () {return 0; }
13774 #endif
13775
13776 _ACEOF
13777 rm -f conftest.$ac_objext
13778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13779   (eval $ac_compile) 2>&5
13780   ac_status=$?
13781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782   (exit $ac_status); } &&
13783          { ac_try='test -s conftest.$ac_objext'
13784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13785   (eval $ac_try) 2>&5
13786   ac_status=$?
13787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788   (exit $ac_status); }; }; then
13789   ac_cv_c_inline=$ac_kw; break
13790 else
13791   echo "$as_me: failed program was:" >&5
13792 sed 's/^/| /' conftest.$ac_ext >&5
13793
13794 fi
13795 rm -f conftest.$ac_objext conftest.$ac_ext
13796 done
13797
13798 fi
13799 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13800 echo "${ECHO_T}$ac_cv_c_inline" >&6
13801 case $ac_cv_c_inline in
13802   inline | yes) ;;
13803   no)
13804 cat >>confdefs.h <<\_ACEOF
13805 #define inline
13806 _ACEOF
13807  ;;
13808   *)  cat >>confdefs.h <<_ACEOF
13809 #define inline $ac_cv_c_inline
13810 _ACEOF
13811  ;;
13812 esac
13813
13814
13815 echo "$as_me:$LINENO: checking for char" >&5
13816 echo $ECHO_N "checking for char... $ECHO_C" >&6
13817 if test "${ac_cv_type_char+set}" = set; then
13818   echo $ECHO_N "(cached) $ECHO_C" >&6
13819 else
13820   cat >conftest.$ac_ext <<_ACEOF
13821 #line $LINENO "configure"
13822 /* confdefs.h.  */
13823 _ACEOF
13824 cat confdefs.h >>conftest.$ac_ext
13825 cat >>conftest.$ac_ext <<_ACEOF
13826 /* end confdefs.h.  */
13827 $ac_includes_default
13828 int
13829 main ()
13830 {
13831 if ((char *) 0)
13832   return 0;
13833 if (sizeof (char))
13834   return 0;
13835   ;
13836   return 0;
13837 }
13838 _ACEOF
13839 rm -f conftest.$ac_objext
13840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13841   (eval $ac_compile) 2>&5
13842   ac_status=$?
13843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844   (exit $ac_status); } &&
13845          { ac_try='test -s conftest.$ac_objext'
13846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13847   (eval $ac_try) 2>&5
13848   ac_status=$?
13849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850   (exit $ac_status); }; }; then
13851   ac_cv_type_char=yes
13852 else
13853   echo "$as_me: failed program was:" >&5
13854 sed 's/^/| /' conftest.$ac_ext >&5
13855
13856 ac_cv_type_char=no
13857 fi
13858 rm -f conftest.$ac_objext conftest.$ac_ext
13859 fi
13860 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13861 echo "${ECHO_T}$ac_cv_type_char" >&6
13862
13863 echo "$as_me:$LINENO: checking size of char" >&5
13864 echo $ECHO_N "checking size of char... $ECHO_C" >&6
13865 if test "${ac_cv_sizeof_char+set}" = set; then
13866   echo $ECHO_N "(cached) $ECHO_C" >&6
13867 else
13868   if test "$ac_cv_type_char" = yes; then
13869   # The cast to unsigned long works around a bug in the HP C Compiler
13870   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13871   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13872   # This bug is HP SR number 8606223364.
13873   if test "$cross_compiling" = yes; then
13874   # Depending upon the size, compute the lo and hi bounds.
13875 cat >conftest.$ac_ext <<_ACEOF
13876 #line $LINENO "configure"
13877 /* confdefs.h.  */
13878 _ACEOF
13879 cat confdefs.h >>conftest.$ac_ext
13880 cat >>conftest.$ac_ext <<_ACEOF
13881 /* end confdefs.h.  */
13882 $ac_includes_default
13883 int
13884 main ()
13885 {
13886 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13887 test_array [0] = 0
13888
13889   ;
13890   return 0;
13891 }
13892 _ACEOF
13893 rm -f conftest.$ac_objext
13894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13895   (eval $ac_compile) 2>&5
13896   ac_status=$?
13897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898   (exit $ac_status); } &&
13899          { ac_try='test -s conftest.$ac_objext'
13900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13901   (eval $ac_try) 2>&5
13902   ac_status=$?
13903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904   (exit $ac_status); }; }; then
13905   ac_lo=0 ac_mid=0
13906   while :; do
13907     cat >conftest.$ac_ext <<_ACEOF
13908 #line $LINENO "configure"
13909 /* confdefs.h.  */
13910 _ACEOF
13911 cat confdefs.h >>conftest.$ac_ext
13912 cat >>conftest.$ac_ext <<_ACEOF
13913 /* end confdefs.h.  */
13914 $ac_includes_default
13915 int
13916 main ()
13917 {
13918 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13919 test_array [0] = 0
13920
13921   ;
13922   return 0;
13923 }
13924 _ACEOF
13925 rm -f conftest.$ac_objext
13926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13927   (eval $ac_compile) 2>&5
13928   ac_status=$?
13929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930   (exit $ac_status); } &&
13931          { ac_try='test -s conftest.$ac_objext'
13932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13933   (eval $ac_try) 2>&5
13934   ac_status=$?
13935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936   (exit $ac_status); }; }; then
13937   ac_hi=$ac_mid; break
13938 else
13939   echo "$as_me: failed program was:" >&5
13940 sed 's/^/| /' conftest.$ac_ext >&5
13941
13942 ac_lo=`expr $ac_mid + 1`
13943                     if test $ac_lo -le $ac_mid; then
13944                       ac_lo= ac_hi=
13945                       break
13946                     fi
13947                     ac_mid=`expr 2 '*' $ac_mid + 1`
13948 fi
13949 rm -f conftest.$ac_objext conftest.$ac_ext
13950   done
13951 else
13952   echo "$as_me: failed program was:" >&5
13953 sed 's/^/| /' conftest.$ac_ext >&5
13954
13955 cat >conftest.$ac_ext <<_ACEOF
13956 #line $LINENO "configure"
13957 /* confdefs.h.  */
13958 _ACEOF
13959 cat confdefs.h >>conftest.$ac_ext
13960 cat >>conftest.$ac_ext <<_ACEOF
13961 /* end confdefs.h.  */
13962 $ac_includes_default
13963 int
13964 main ()
13965 {
13966 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13967 test_array [0] = 0
13968
13969   ;
13970   return 0;
13971 }
13972 _ACEOF
13973 rm -f conftest.$ac_objext
13974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13975   (eval $ac_compile) 2>&5
13976   ac_status=$?
13977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978   (exit $ac_status); } &&
13979          { ac_try='test -s conftest.$ac_objext'
13980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13981   (eval $ac_try) 2>&5
13982   ac_status=$?
13983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984   (exit $ac_status); }; }; then
13985   ac_hi=-1 ac_mid=-1
13986   while :; do
13987     cat >conftest.$ac_ext <<_ACEOF
13988 #line $LINENO "configure"
13989 /* confdefs.h.  */
13990 _ACEOF
13991 cat confdefs.h >>conftest.$ac_ext
13992 cat >>conftest.$ac_ext <<_ACEOF
13993 /* end confdefs.h.  */
13994 $ac_includes_default
13995 int
13996 main ()
13997 {
13998 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13999 test_array [0] = 0
14000
14001   ;
14002   return 0;
14003 }
14004 _ACEOF
14005 rm -f conftest.$ac_objext
14006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14007   (eval $ac_compile) 2>&5
14008   ac_status=$?
14009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010   (exit $ac_status); } &&
14011          { ac_try='test -s conftest.$ac_objext'
14012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14013   (eval $ac_try) 2>&5
14014   ac_status=$?
14015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016   (exit $ac_status); }; }; then
14017   ac_lo=$ac_mid; break
14018 else
14019   echo "$as_me: failed program was:" >&5
14020 sed 's/^/| /' conftest.$ac_ext >&5
14021
14022 ac_hi=`expr '(' $ac_mid ')' - 1`
14023                        if test $ac_mid -le $ac_hi; then
14024                          ac_lo= ac_hi=
14025                          break
14026                        fi
14027                        ac_mid=`expr 2 '*' $ac_mid`
14028 fi
14029 rm -f conftest.$ac_objext conftest.$ac_ext
14030   done
14031 else
14032   echo "$as_me: failed program was:" >&5
14033 sed 's/^/| /' conftest.$ac_ext >&5
14034
14035 ac_lo= ac_hi=
14036 fi
14037 rm -f conftest.$ac_objext conftest.$ac_ext
14038 fi
14039 rm -f conftest.$ac_objext conftest.$ac_ext
14040 # Binary search between lo and hi bounds.
14041 while test "x$ac_lo" != "x$ac_hi"; do
14042   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14043   cat >conftest.$ac_ext <<_ACEOF
14044 #line $LINENO "configure"
14045 /* confdefs.h.  */
14046 _ACEOF
14047 cat confdefs.h >>conftest.$ac_ext
14048 cat >>conftest.$ac_ext <<_ACEOF
14049 /* end confdefs.h.  */
14050 $ac_includes_default
14051 int
14052 main ()
14053 {
14054 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14055 test_array [0] = 0
14056
14057   ;
14058   return 0;
14059 }
14060 _ACEOF
14061 rm -f conftest.$ac_objext
14062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14063   (eval $ac_compile) 2>&5
14064   ac_status=$?
14065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066   (exit $ac_status); } &&
14067          { ac_try='test -s conftest.$ac_objext'
14068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14069   (eval $ac_try) 2>&5
14070   ac_status=$?
14071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072   (exit $ac_status); }; }; then
14073   ac_hi=$ac_mid
14074 else
14075   echo "$as_me: failed program was:" >&5
14076 sed 's/^/| /' conftest.$ac_ext >&5
14077
14078 ac_lo=`expr '(' $ac_mid ')' + 1`
14079 fi
14080 rm -f conftest.$ac_objext conftest.$ac_ext
14081 done
14082 case $ac_lo in
14083 ?*) ac_cv_sizeof_char=$ac_lo;;
14084 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14085 See \`config.log' for more details." >&5
14086 echo "$as_me: error: cannot compute sizeof (char), 77
14087 See \`config.log' for more details." >&2;}
14088    { (exit 1); exit 1; }; } ;;
14089 esac
14090 else
14091   if test "$cross_compiling" = yes; then
14092   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14093 See \`config.log' for more details." >&5
14094 echo "$as_me: error: cannot run test program while cross compiling
14095 See \`config.log' for more details." >&2;}
14096    { (exit 1); exit 1; }; }
14097 else
14098   cat >conftest.$ac_ext <<_ACEOF
14099 #line $LINENO "configure"
14100 /* confdefs.h.  */
14101 _ACEOF
14102 cat confdefs.h >>conftest.$ac_ext
14103 cat >>conftest.$ac_ext <<_ACEOF
14104 /* end confdefs.h.  */
14105 $ac_includes_default
14106 long longval () { return (long) (sizeof (char)); }
14107 unsigned long ulongval () { return (long) (sizeof (char)); }
14108 #include <stdio.h>
14109 #include <stdlib.h>
14110 int
14111 main ()
14112 {
14113
14114   FILE *f = fopen ("conftest.val", "w");
14115   if (! f)
14116     exit (1);
14117   if (((long) (sizeof (char))) < 0)
14118     {
14119       long i = longval ();
14120       if (i != ((long) (sizeof (char))))
14121         exit (1);
14122       fprintf (f, "%ld\n", i);
14123     }
14124   else
14125     {
14126       unsigned long i = ulongval ();
14127       if (i != ((long) (sizeof (char))))
14128         exit (1);
14129       fprintf (f, "%lu\n", i);
14130     }
14131   exit (ferror (f) || fclose (f) != 0);
14132
14133   ;
14134   return 0;
14135 }
14136 _ACEOF
14137 rm -f conftest$ac_exeext
14138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14139   (eval $ac_link) 2>&5
14140   ac_status=$?
14141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14144   (eval $ac_try) 2>&5
14145   ac_status=$?
14146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147   (exit $ac_status); }; }; then
14148   ac_cv_sizeof_char=`cat conftest.val`
14149 else
14150   echo "$as_me: program exited with status $ac_status" >&5
14151 echo "$as_me: failed program was:" >&5
14152 sed 's/^/| /' conftest.$ac_ext >&5
14153
14154 ( exit $ac_status )
14155 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14156 See \`config.log' for more details." >&5
14157 echo "$as_me: error: cannot compute sizeof (char), 77
14158 See \`config.log' for more details." >&2;}
14159    { (exit 1); exit 1; }; }
14160 fi
14161 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14162 fi
14163 fi
14164 rm -f conftest.val
14165 else
14166   ac_cv_sizeof_char=0
14167 fi
14168 fi
14169 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14170 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14171 cat >>confdefs.h <<_ACEOF
14172 #define SIZEOF_CHAR $ac_cv_sizeof_char
14173 _ACEOF
14174
14175
14176 echo "$as_me:$LINENO: checking for short" >&5
14177 echo $ECHO_N "checking for short... $ECHO_C" >&6
14178 if test "${ac_cv_type_short+set}" = set; then
14179   echo $ECHO_N "(cached) $ECHO_C" >&6
14180 else
14181   cat >conftest.$ac_ext <<_ACEOF
14182 #line $LINENO "configure"
14183 /* confdefs.h.  */
14184 _ACEOF
14185 cat confdefs.h >>conftest.$ac_ext
14186 cat >>conftest.$ac_ext <<_ACEOF
14187 /* end confdefs.h.  */
14188 $ac_includes_default
14189 int
14190 main ()
14191 {
14192 if ((short *) 0)
14193   return 0;
14194 if (sizeof (short))
14195   return 0;
14196   ;
14197   return 0;
14198 }
14199 _ACEOF
14200 rm -f conftest.$ac_objext
14201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14202   (eval $ac_compile) 2>&5
14203   ac_status=$?
14204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205   (exit $ac_status); } &&
14206          { ac_try='test -s conftest.$ac_objext'
14207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14208   (eval $ac_try) 2>&5
14209   ac_status=$?
14210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211   (exit $ac_status); }; }; then
14212   ac_cv_type_short=yes
14213 else
14214   echo "$as_me: failed program was:" >&5
14215 sed 's/^/| /' conftest.$ac_ext >&5
14216
14217 ac_cv_type_short=no
14218 fi
14219 rm -f conftest.$ac_objext conftest.$ac_ext
14220 fi
14221 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14222 echo "${ECHO_T}$ac_cv_type_short" >&6
14223
14224 echo "$as_me:$LINENO: checking size of short" >&5
14225 echo $ECHO_N "checking size of short... $ECHO_C" >&6
14226 if test "${ac_cv_sizeof_short+set}" = set; then
14227   echo $ECHO_N "(cached) $ECHO_C" >&6
14228 else
14229   if test "$ac_cv_type_short" = yes; then
14230   # The cast to unsigned long works around a bug in the HP C Compiler
14231   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14232   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14233   # This bug is HP SR number 8606223364.
14234   if test "$cross_compiling" = yes; then
14235   # Depending upon the size, compute the lo and hi bounds.
14236 cat >conftest.$ac_ext <<_ACEOF
14237 #line $LINENO "configure"
14238 /* confdefs.h.  */
14239 _ACEOF
14240 cat confdefs.h >>conftest.$ac_ext
14241 cat >>conftest.$ac_ext <<_ACEOF
14242 /* end confdefs.h.  */
14243 $ac_includes_default
14244 int
14245 main ()
14246 {
14247 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14248 test_array [0] = 0
14249
14250   ;
14251   return 0;
14252 }
14253 _ACEOF
14254 rm -f conftest.$ac_objext
14255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14256   (eval $ac_compile) 2>&5
14257   ac_status=$?
14258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259   (exit $ac_status); } &&
14260          { ac_try='test -s conftest.$ac_objext'
14261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14262   (eval $ac_try) 2>&5
14263   ac_status=$?
14264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265   (exit $ac_status); }; }; then
14266   ac_lo=0 ac_mid=0
14267   while :; do
14268     cat >conftest.$ac_ext <<_ACEOF
14269 #line $LINENO "configure"
14270 /* confdefs.h.  */
14271 _ACEOF
14272 cat confdefs.h >>conftest.$ac_ext
14273 cat >>conftest.$ac_ext <<_ACEOF
14274 /* end confdefs.h.  */
14275 $ac_includes_default
14276 int
14277 main ()
14278 {
14279 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14280 test_array [0] = 0
14281
14282   ;
14283   return 0;
14284 }
14285 _ACEOF
14286 rm -f conftest.$ac_objext
14287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14288   (eval $ac_compile) 2>&5
14289   ac_status=$?
14290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291   (exit $ac_status); } &&
14292          { ac_try='test -s conftest.$ac_objext'
14293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14294   (eval $ac_try) 2>&5
14295   ac_status=$?
14296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297   (exit $ac_status); }; }; then
14298   ac_hi=$ac_mid; break
14299 else
14300   echo "$as_me: failed program was:" >&5
14301 sed 's/^/| /' conftest.$ac_ext >&5
14302
14303 ac_lo=`expr $ac_mid + 1`
14304                     if test $ac_lo -le $ac_mid; then
14305                       ac_lo= ac_hi=
14306                       break
14307                     fi
14308                     ac_mid=`expr 2 '*' $ac_mid + 1`
14309 fi
14310 rm -f conftest.$ac_objext conftest.$ac_ext
14311   done
14312 else
14313   echo "$as_me: failed program was:" >&5
14314 sed 's/^/| /' conftest.$ac_ext >&5
14315
14316 cat >conftest.$ac_ext <<_ACEOF
14317 #line $LINENO "configure"
14318 /* confdefs.h.  */
14319 _ACEOF
14320 cat confdefs.h >>conftest.$ac_ext
14321 cat >>conftest.$ac_ext <<_ACEOF
14322 /* end confdefs.h.  */
14323 $ac_includes_default
14324 int
14325 main ()
14326 {
14327 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14328 test_array [0] = 0
14329
14330   ;
14331   return 0;
14332 }
14333 _ACEOF
14334 rm -f conftest.$ac_objext
14335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14336   (eval $ac_compile) 2>&5
14337   ac_status=$?
14338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339   (exit $ac_status); } &&
14340          { ac_try='test -s conftest.$ac_objext'
14341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14342   (eval $ac_try) 2>&5
14343   ac_status=$?
14344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345   (exit $ac_status); }; }; then
14346   ac_hi=-1 ac_mid=-1
14347   while :; do
14348     cat >conftest.$ac_ext <<_ACEOF
14349 #line $LINENO "configure"
14350 /* confdefs.h.  */
14351 _ACEOF
14352 cat confdefs.h >>conftest.$ac_ext
14353 cat >>conftest.$ac_ext <<_ACEOF
14354 /* end confdefs.h.  */
14355 $ac_includes_default
14356 int
14357 main ()
14358 {
14359 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14360 test_array [0] = 0
14361
14362   ;
14363   return 0;
14364 }
14365 _ACEOF
14366 rm -f conftest.$ac_objext
14367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14368   (eval $ac_compile) 2>&5
14369   ac_status=$?
14370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371   (exit $ac_status); } &&
14372          { ac_try='test -s conftest.$ac_objext'
14373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14374   (eval $ac_try) 2>&5
14375   ac_status=$?
14376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377   (exit $ac_status); }; }; then
14378   ac_lo=$ac_mid; break
14379 else
14380   echo "$as_me: failed program was:" >&5
14381 sed 's/^/| /' conftest.$ac_ext >&5
14382
14383 ac_hi=`expr '(' $ac_mid ')' - 1`
14384                        if test $ac_mid -le $ac_hi; then
14385                          ac_lo= ac_hi=
14386                          break
14387                        fi
14388                        ac_mid=`expr 2 '*' $ac_mid`
14389 fi
14390 rm -f conftest.$ac_objext conftest.$ac_ext
14391   done
14392 else
14393   echo "$as_me: failed program was:" >&5
14394 sed 's/^/| /' conftest.$ac_ext >&5
14395
14396 ac_lo= ac_hi=
14397 fi
14398 rm -f conftest.$ac_objext conftest.$ac_ext
14399 fi
14400 rm -f conftest.$ac_objext conftest.$ac_ext
14401 # Binary search between lo and hi bounds.
14402 while test "x$ac_lo" != "x$ac_hi"; do
14403   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14404   cat >conftest.$ac_ext <<_ACEOF
14405 #line $LINENO "configure"
14406 /* confdefs.h.  */
14407 _ACEOF
14408 cat confdefs.h >>conftest.$ac_ext
14409 cat >>conftest.$ac_ext <<_ACEOF
14410 /* end confdefs.h.  */
14411 $ac_includes_default
14412 int
14413 main ()
14414 {
14415 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14416 test_array [0] = 0
14417
14418   ;
14419   return 0;
14420 }
14421 _ACEOF
14422 rm -f conftest.$ac_objext
14423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14424   (eval $ac_compile) 2>&5
14425   ac_status=$?
14426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427   (exit $ac_status); } &&
14428          { ac_try='test -s conftest.$ac_objext'
14429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14430   (eval $ac_try) 2>&5
14431   ac_status=$?
14432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433   (exit $ac_status); }; }; then
14434   ac_hi=$ac_mid
14435 else
14436   echo "$as_me: failed program was:" >&5
14437 sed 's/^/| /' conftest.$ac_ext >&5
14438
14439 ac_lo=`expr '(' $ac_mid ')' + 1`
14440 fi
14441 rm -f conftest.$ac_objext conftest.$ac_ext
14442 done
14443 case $ac_lo in
14444 ?*) ac_cv_sizeof_short=$ac_lo;;
14445 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14446 See \`config.log' for more details." >&5
14447 echo "$as_me: error: cannot compute sizeof (short), 77
14448 See \`config.log' for more details." >&2;}
14449    { (exit 1); exit 1; }; } ;;
14450 esac
14451 else
14452   if test "$cross_compiling" = yes; then
14453   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14454 See \`config.log' for more details." >&5
14455 echo "$as_me: error: cannot run test program while cross compiling
14456 See \`config.log' for more details." >&2;}
14457    { (exit 1); exit 1; }; }
14458 else
14459   cat >conftest.$ac_ext <<_ACEOF
14460 #line $LINENO "configure"
14461 /* confdefs.h.  */
14462 _ACEOF
14463 cat confdefs.h >>conftest.$ac_ext
14464 cat >>conftest.$ac_ext <<_ACEOF
14465 /* end confdefs.h.  */
14466 $ac_includes_default
14467 long longval () { return (long) (sizeof (short)); }
14468 unsigned long ulongval () { return (long) (sizeof (short)); }
14469 #include <stdio.h>
14470 #include <stdlib.h>
14471 int
14472 main ()
14473 {
14474
14475   FILE *f = fopen ("conftest.val", "w");
14476   if (! f)
14477     exit (1);
14478   if (((long) (sizeof (short))) < 0)
14479     {
14480       long i = longval ();
14481       if (i != ((long) (sizeof (short))))
14482         exit (1);
14483       fprintf (f, "%ld\n", i);
14484     }
14485   else
14486     {
14487       unsigned long i = ulongval ();
14488       if (i != ((long) (sizeof (short))))
14489         exit (1);
14490       fprintf (f, "%lu\n", i);
14491     }
14492   exit (ferror (f) || fclose (f) != 0);
14493
14494   ;
14495   return 0;
14496 }
14497 _ACEOF
14498 rm -f conftest$ac_exeext
14499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14500   (eval $ac_link) 2>&5
14501   ac_status=$?
14502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14505   (eval $ac_try) 2>&5
14506   ac_status=$?
14507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508   (exit $ac_status); }; }; then
14509   ac_cv_sizeof_short=`cat conftest.val`
14510 else
14511   echo "$as_me: program exited with status $ac_status" >&5
14512 echo "$as_me: failed program was:" >&5
14513 sed 's/^/| /' conftest.$ac_ext >&5
14514
14515 ( exit $ac_status )
14516 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14517 See \`config.log' for more details." >&5
14518 echo "$as_me: error: cannot compute sizeof (short), 77
14519 See \`config.log' for more details." >&2;}
14520    { (exit 1); exit 1; }; }
14521 fi
14522 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14523 fi
14524 fi
14525 rm -f conftest.val
14526 else
14527   ac_cv_sizeof_short=0
14528 fi
14529 fi
14530 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14531 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14532 cat >>confdefs.h <<_ACEOF
14533 #define SIZEOF_SHORT $ac_cv_sizeof_short
14534 _ACEOF
14535
14536
14537 echo "$as_me:$LINENO: checking for void *" >&5
14538 echo $ECHO_N "checking for void *... $ECHO_C" >&6
14539 if test "${ac_cv_type_void_p+set}" = set; then
14540   echo $ECHO_N "(cached) $ECHO_C" >&6
14541 else
14542   cat >conftest.$ac_ext <<_ACEOF
14543 #line $LINENO "configure"
14544 /* confdefs.h.  */
14545 _ACEOF
14546 cat confdefs.h >>conftest.$ac_ext
14547 cat >>conftest.$ac_ext <<_ACEOF
14548 /* end confdefs.h.  */
14549 $ac_includes_default
14550 int
14551 main ()
14552 {
14553 if ((void * *) 0)
14554   return 0;
14555 if (sizeof (void *))
14556   return 0;
14557   ;
14558   return 0;
14559 }
14560 _ACEOF
14561 rm -f conftest.$ac_objext
14562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14563   (eval $ac_compile) 2>&5
14564   ac_status=$?
14565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566   (exit $ac_status); } &&
14567          { ac_try='test -s conftest.$ac_objext'
14568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14569   (eval $ac_try) 2>&5
14570   ac_status=$?
14571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572   (exit $ac_status); }; }; then
14573   ac_cv_type_void_p=yes
14574 else
14575   echo "$as_me: failed program was:" >&5
14576 sed 's/^/| /' conftest.$ac_ext >&5
14577
14578 ac_cv_type_void_p=no
14579 fi
14580 rm -f conftest.$ac_objext conftest.$ac_ext
14581 fi
14582 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14583 echo "${ECHO_T}$ac_cv_type_void_p" >&6
14584
14585 echo "$as_me:$LINENO: checking size of void *" >&5
14586 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14587 if test "${ac_cv_sizeof_void_p+set}" = set; then
14588   echo $ECHO_N "(cached) $ECHO_C" >&6
14589 else
14590   if test "$ac_cv_type_void_p" = yes; then
14591   # The cast to unsigned long works around a bug in the HP C Compiler
14592   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14593   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14594   # This bug is HP SR number 8606223364.
14595   if test "$cross_compiling" = yes; then
14596   # Depending upon the size, compute the lo and hi bounds.
14597 cat >conftest.$ac_ext <<_ACEOF
14598 #line $LINENO "configure"
14599 /* confdefs.h.  */
14600 _ACEOF
14601 cat confdefs.h >>conftest.$ac_ext
14602 cat >>conftest.$ac_ext <<_ACEOF
14603 /* end confdefs.h.  */
14604 $ac_includes_default
14605 int
14606 main ()
14607 {
14608 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14609 test_array [0] = 0
14610
14611   ;
14612   return 0;
14613 }
14614 _ACEOF
14615 rm -f conftest.$ac_objext
14616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14617   (eval $ac_compile) 2>&5
14618   ac_status=$?
14619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620   (exit $ac_status); } &&
14621          { ac_try='test -s conftest.$ac_objext'
14622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14623   (eval $ac_try) 2>&5
14624   ac_status=$?
14625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626   (exit $ac_status); }; }; then
14627   ac_lo=0 ac_mid=0
14628   while :; do
14629     cat >conftest.$ac_ext <<_ACEOF
14630 #line $LINENO "configure"
14631 /* confdefs.h.  */
14632 _ACEOF
14633 cat confdefs.h >>conftest.$ac_ext
14634 cat >>conftest.$ac_ext <<_ACEOF
14635 /* end confdefs.h.  */
14636 $ac_includes_default
14637 int
14638 main ()
14639 {
14640 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14641 test_array [0] = 0
14642
14643   ;
14644   return 0;
14645 }
14646 _ACEOF
14647 rm -f conftest.$ac_objext
14648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14649   (eval $ac_compile) 2>&5
14650   ac_status=$?
14651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652   (exit $ac_status); } &&
14653          { ac_try='test -s conftest.$ac_objext'
14654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14655   (eval $ac_try) 2>&5
14656   ac_status=$?
14657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658   (exit $ac_status); }; }; then
14659   ac_hi=$ac_mid; break
14660 else
14661   echo "$as_me: failed program was:" >&5
14662 sed 's/^/| /' conftest.$ac_ext >&5
14663
14664 ac_lo=`expr $ac_mid + 1`
14665                     if test $ac_lo -le $ac_mid; then
14666                       ac_lo= ac_hi=
14667                       break
14668                     fi
14669                     ac_mid=`expr 2 '*' $ac_mid + 1`
14670 fi
14671 rm -f conftest.$ac_objext conftest.$ac_ext
14672   done
14673 else
14674   echo "$as_me: failed program was:" >&5
14675 sed 's/^/| /' conftest.$ac_ext >&5
14676
14677 cat >conftest.$ac_ext <<_ACEOF
14678 #line $LINENO "configure"
14679 /* confdefs.h.  */
14680 _ACEOF
14681 cat confdefs.h >>conftest.$ac_ext
14682 cat >>conftest.$ac_ext <<_ACEOF
14683 /* end confdefs.h.  */
14684 $ac_includes_default
14685 int
14686 main ()
14687 {
14688 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14689 test_array [0] = 0
14690
14691   ;
14692   return 0;
14693 }
14694 _ACEOF
14695 rm -f conftest.$ac_objext
14696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14697   (eval $ac_compile) 2>&5
14698   ac_status=$?
14699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700   (exit $ac_status); } &&
14701          { ac_try='test -s conftest.$ac_objext'
14702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14703   (eval $ac_try) 2>&5
14704   ac_status=$?
14705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706   (exit $ac_status); }; }; then
14707   ac_hi=-1 ac_mid=-1
14708   while :; do
14709     cat >conftest.$ac_ext <<_ACEOF
14710 #line $LINENO "configure"
14711 /* confdefs.h.  */
14712 _ACEOF
14713 cat confdefs.h >>conftest.$ac_ext
14714 cat >>conftest.$ac_ext <<_ACEOF
14715 /* end confdefs.h.  */
14716 $ac_includes_default
14717 int
14718 main ()
14719 {
14720 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14721 test_array [0] = 0
14722
14723   ;
14724   return 0;
14725 }
14726 _ACEOF
14727 rm -f conftest.$ac_objext
14728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14729   (eval $ac_compile) 2>&5
14730   ac_status=$?
14731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732   (exit $ac_status); } &&
14733          { ac_try='test -s conftest.$ac_objext'
14734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735   (eval $ac_try) 2>&5
14736   ac_status=$?
14737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738   (exit $ac_status); }; }; then
14739   ac_lo=$ac_mid; break
14740 else
14741   echo "$as_me: failed program was:" >&5
14742 sed 's/^/| /' conftest.$ac_ext >&5
14743
14744 ac_hi=`expr '(' $ac_mid ')' - 1`
14745                        if test $ac_mid -le $ac_hi; then
14746                          ac_lo= ac_hi=
14747                          break
14748                        fi
14749                        ac_mid=`expr 2 '*' $ac_mid`
14750 fi
14751 rm -f conftest.$ac_objext conftest.$ac_ext
14752   done
14753 else
14754   echo "$as_me: failed program was:" >&5
14755 sed 's/^/| /' conftest.$ac_ext >&5
14756
14757 ac_lo= ac_hi=
14758 fi
14759 rm -f conftest.$ac_objext conftest.$ac_ext
14760 fi
14761 rm -f conftest.$ac_objext conftest.$ac_ext
14762 # Binary search between lo and hi bounds.
14763 while test "x$ac_lo" != "x$ac_hi"; do
14764   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14765   cat >conftest.$ac_ext <<_ACEOF
14766 #line $LINENO "configure"
14767 /* confdefs.h.  */
14768 _ACEOF
14769 cat confdefs.h >>conftest.$ac_ext
14770 cat >>conftest.$ac_ext <<_ACEOF
14771 /* end confdefs.h.  */
14772 $ac_includes_default
14773 int
14774 main ()
14775 {
14776 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14777 test_array [0] = 0
14778
14779   ;
14780   return 0;
14781 }
14782 _ACEOF
14783 rm -f conftest.$ac_objext
14784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14785   (eval $ac_compile) 2>&5
14786   ac_status=$?
14787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788   (exit $ac_status); } &&
14789          { ac_try='test -s conftest.$ac_objext'
14790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14791   (eval $ac_try) 2>&5
14792   ac_status=$?
14793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794   (exit $ac_status); }; }; then
14795   ac_hi=$ac_mid
14796 else
14797   echo "$as_me: failed program was:" >&5
14798 sed 's/^/| /' conftest.$ac_ext >&5
14799
14800 ac_lo=`expr '(' $ac_mid ')' + 1`
14801 fi
14802 rm -f conftest.$ac_objext conftest.$ac_ext
14803 done
14804 case $ac_lo in
14805 ?*) ac_cv_sizeof_void_p=$ac_lo;;
14806 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14807 See \`config.log' for more details." >&5
14808 echo "$as_me: error: cannot compute sizeof (void *), 77
14809 See \`config.log' for more details." >&2;}
14810    { (exit 1); exit 1; }; } ;;
14811 esac
14812 else
14813   if test "$cross_compiling" = yes; then
14814   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14815 See \`config.log' for more details." >&5
14816 echo "$as_me: error: cannot run test program while cross compiling
14817 See \`config.log' for more details." >&2;}
14818    { (exit 1); exit 1; }; }
14819 else
14820   cat >conftest.$ac_ext <<_ACEOF
14821 #line $LINENO "configure"
14822 /* confdefs.h.  */
14823 _ACEOF
14824 cat confdefs.h >>conftest.$ac_ext
14825 cat >>conftest.$ac_ext <<_ACEOF
14826 /* end confdefs.h.  */
14827 $ac_includes_default
14828 long longval () { return (long) (sizeof (void *)); }
14829 unsigned long ulongval () { return (long) (sizeof (void *)); }
14830 #include <stdio.h>
14831 #include <stdlib.h>
14832 int
14833 main ()
14834 {
14835
14836   FILE *f = fopen ("conftest.val", "w");
14837   if (! f)
14838     exit (1);
14839   if (((long) (sizeof (void *))) < 0)
14840     {
14841       long i = longval ();
14842       if (i != ((long) (sizeof (void *))))
14843         exit (1);
14844       fprintf (f, "%ld\n", i);
14845     }
14846   else
14847     {
14848       unsigned long i = ulongval ();
14849       if (i != ((long) (sizeof (void *))))
14850         exit (1);
14851       fprintf (f, "%lu\n", i);
14852     }
14853   exit (ferror (f) || fclose (f) != 0);
14854
14855   ;
14856   return 0;
14857 }
14858 _ACEOF
14859 rm -f conftest$ac_exeext
14860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14861   (eval $ac_link) 2>&5
14862   ac_status=$?
14863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14866   (eval $ac_try) 2>&5
14867   ac_status=$?
14868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869   (exit $ac_status); }; }; then
14870   ac_cv_sizeof_void_p=`cat conftest.val`
14871 else
14872   echo "$as_me: program exited with status $ac_status" >&5
14873 echo "$as_me: failed program was:" >&5
14874 sed 's/^/| /' conftest.$ac_ext >&5
14875
14876 ( exit $ac_status )
14877 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14878 See \`config.log' for more details." >&5
14879 echo "$as_me: error: cannot compute sizeof (void *), 77
14880 See \`config.log' for more details." >&2;}
14881    { (exit 1); exit 1; }; }
14882 fi
14883 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14884 fi
14885 fi
14886 rm -f conftest.val
14887 else
14888   ac_cv_sizeof_void_p=0
14889 fi
14890 fi
14891 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14892 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14893 cat >>confdefs.h <<_ACEOF
14894 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14895 _ACEOF
14896
14897
14898 echo "$as_me:$LINENO: checking for int" >&5
14899 echo $ECHO_N "checking for int... $ECHO_C" >&6
14900 if test "${ac_cv_type_int+set}" = set; then
14901   echo $ECHO_N "(cached) $ECHO_C" >&6
14902 else
14903   cat >conftest.$ac_ext <<_ACEOF
14904 #line $LINENO "configure"
14905 /* confdefs.h.  */
14906 _ACEOF
14907 cat confdefs.h >>conftest.$ac_ext
14908 cat >>conftest.$ac_ext <<_ACEOF
14909 /* end confdefs.h.  */
14910 $ac_includes_default
14911 int
14912 main ()
14913 {
14914 if ((int *) 0)
14915   return 0;
14916 if (sizeof (int))
14917   return 0;
14918   ;
14919   return 0;
14920 }
14921 _ACEOF
14922 rm -f conftest.$ac_objext
14923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14924   (eval $ac_compile) 2>&5
14925   ac_status=$?
14926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927   (exit $ac_status); } &&
14928          { ac_try='test -s conftest.$ac_objext'
14929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14930   (eval $ac_try) 2>&5
14931   ac_status=$?
14932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933   (exit $ac_status); }; }; then
14934   ac_cv_type_int=yes
14935 else
14936   echo "$as_me: failed program was:" >&5
14937 sed 's/^/| /' conftest.$ac_ext >&5
14938
14939 ac_cv_type_int=no
14940 fi
14941 rm -f conftest.$ac_objext conftest.$ac_ext
14942 fi
14943 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14944 echo "${ECHO_T}$ac_cv_type_int" >&6
14945
14946 echo "$as_me:$LINENO: checking size of int" >&5
14947 echo $ECHO_N "checking size of int... $ECHO_C" >&6
14948 if test "${ac_cv_sizeof_int+set}" = set; then
14949   echo $ECHO_N "(cached) $ECHO_C" >&6
14950 else
14951   if test "$ac_cv_type_int" = yes; then
14952   # The cast to unsigned long works around a bug in the HP C Compiler
14953   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14954   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14955   # This bug is HP SR number 8606223364.
14956   if test "$cross_compiling" = yes; then
14957   # Depending upon the size, compute the lo and hi bounds.
14958 cat >conftest.$ac_ext <<_ACEOF
14959 #line $LINENO "configure"
14960 /* confdefs.h.  */
14961 _ACEOF
14962 cat confdefs.h >>conftest.$ac_ext
14963 cat >>conftest.$ac_ext <<_ACEOF
14964 /* end confdefs.h.  */
14965 $ac_includes_default
14966 int
14967 main ()
14968 {
14969 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
14970 test_array [0] = 0
14971
14972   ;
14973   return 0;
14974 }
14975 _ACEOF
14976 rm -f conftest.$ac_objext
14977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14978   (eval $ac_compile) 2>&5
14979   ac_status=$?
14980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981   (exit $ac_status); } &&
14982          { ac_try='test -s conftest.$ac_objext'
14983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14984   (eval $ac_try) 2>&5
14985   ac_status=$?
14986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987   (exit $ac_status); }; }; then
14988   ac_lo=0 ac_mid=0
14989   while :; do
14990     cat >conftest.$ac_ext <<_ACEOF
14991 #line $LINENO "configure"
14992 /* confdefs.h.  */
14993 _ACEOF
14994 cat confdefs.h >>conftest.$ac_ext
14995 cat >>conftest.$ac_ext <<_ACEOF
14996 /* end confdefs.h.  */
14997 $ac_includes_default
14998 int
14999 main ()
15000 {
15001 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15002 test_array [0] = 0
15003
15004   ;
15005   return 0;
15006 }
15007 _ACEOF
15008 rm -f conftest.$ac_objext
15009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15010   (eval $ac_compile) 2>&5
15011   ac_status=$?
15012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013   (exit $ac_status); } &&
15014          { ac_try='test -s conftest.$ac_objext'
15015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15016   (eval $ac_try) 2>&5
15017   ac_status=$?
15018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019   (exit $ac_status); }; }; then
15020   ac_hi=$ac_mid; break
15021 else
15022   echo "$as_me: failed program was:" >&5
15023 sed 's/^/| /' conftest.$ac_ext >&5
15024
15025 ac_lo=`expr $ac_mid + 1`
15026                     if test $ac_lo -le $ac_mid; then
15027                       ac_lo= ac_hi=
15028                       break
15029                     fi
15030                     ac_mid=`expr 2 '*' $ac_mid + 1`
15031 fi
15032 rm -f conftest.$ac_objext conftest.$ac_ext
15033   done
15034 else
15035   echo "$as_me: failed program was:" >&5
15036 sed 's/^/| /' conftest.$ac_ext >&5
15037
15038 cat >conftest.$ac_ext <<_ACEOF
15039 #line $LINENO "configure"
15040 /* confdefs.h.  */
15041 _ACEOF
15042 cat confdefs.h >>conftest.$ac_ext
15043 cat >>conftest.$ac_ext <<_ACEOF
15044 /* end confdefs.h.  */
15045 $ac_includes_default
15046 int
15047 main ()
15048 {
15049 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15050 test_array [0] = 0
15051
15052   ;
15053   return 0;
15054 }
15055 _ACEOF
15056 rm -f conftest.$ac_objext
15057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15058   (eval $ac_compile) 2>&5
15059   ac_status=$?
15060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061   (exit $ac_status); } &&
15062          { ac_try='test -s conftest.$ac_objext'
15063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15064   (eval $ac_try) 2>&5
15065   ac_status=$?
15066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067   (exit $ac_status); }; }; then
15068   ac_hi=-1 ac_mid=-1
15069   while :; do
15070     cat >conftest.$ac_ext <<_ACEOF
15071 #line $LINENO "configure"
15072 /* confdefs.h.  */
15073 _ACEOF
15074 cat confdefs.h >>conftest.$ac_ext
15075 cat >>conftest.$ac_ext <<_ACEOF
15076 /* end confdefs.h.  */
15077 $ac_includes_default
15078 int
15079 main ()
15080 {
15081 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15082 test_array [0] = 0
15083
15084   ;
15085   return 0;
15086 }
15087 _ACEOF
15088 rm -f conftest.$ac_objext
15089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15090   (eval $ac_compile) 2>&5
15091   ac_status=$?
15092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093   (exit $ac_status); } &&
15094          { ac_try='test -s conftest.$ac_objext'
15095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15096   (eval $ac_try) 2>&5
15097   ac_status=$?
15098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099   (exit $ac_status); }; }; then
15100   ac_lo=$ac_mid; break
15101 else
15102   echo "$as_me: failed program was:" >&5
15103 sed 's/^/| /' conftest.$ac_ext >&5
15104
15105 ac_hi=`expr '(' $ac_mid ')' - 1`
15106                        if test $ac_mid -le $ac_hi; then
15107                          ac_lo= ac_hi=
15108                          break
15109                        fi
15110                        ac_mid=`expr 2 '*' $ac_mid`
15111 fi
15112 rm -f conftest.$ac_objext conftest.$ac_ext
15113   done
15114 else
15115   echo "$as_me: failed program was:" >&5
15116 sed 's/^/| /' conftest.$ac_ext >&5
15117
15118 ac_lo= ac_hi=
15119 fi
15120 rm -f conftest.$ac_objext conftest.$ac_ext
15121 fi
15122 rm -f conftest.$ac_objext conftest.$ac_ext
15123 # Binary search between lo and hi bounds.
15124 while test "x$ac_lo" != "x$ac_hi"; do
15125   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15126   cat >conftest.$ac_ext <<_ACEOF
15127 #line $LINENO "configure"
15128 /* confdefs.h.  */
15129 _ACEOF
15130 cat confdefs.h >>conftest.$ac_ext
15131 cat >>conftest.$ac_ext <<_ACEOF
15132 /* end confdefs.h.  */
15133 $ac_includes_default
15134 int
15135 main ()
15136 {
15137 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15138 test_array [0] = 0
15139
15140   ;
15141   return 0;
15142 }
15143 _ACEOF
15144 rm -f conftest.$ac_objext
15145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15146   (eval $ac_compile) 2>&5
15147   ac_status=$?
15148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149   (exit $ac_status); } &&
15150          { ac_try='test -s conftest.$ac_objext'
15151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15152   (eval $ac_try) 2>&5
15153   ac_status=$?
15154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155   (exit $ac_status); }; }; then
15156   ac_hi=$ac_mid
15157 else
15158   echo "$as_me: failed program was:" >&5
15159 sed 's/^/| /' conftest.$ac_ext >&5
15160
15161 ac_lo=`expr '(' $ac_mid ')' + 1`
15162 fi
15163 rm -f conftest.$ac_objext conftest.$ac_ext
15164 done
15165 case $ac_lo in
15166 ?*) ac_cv_sizeof_int=$ac_lo;;
15167 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15168 See \`config.log' for more details." >&5
15169 echo "$as_me: error: cannot compute sizeof (int), 77
15170 See \`config.log' for more details." >&2;}
15171    { (exit 1); exit 1; }; } ;;
15172 esac
15173 else
15174   if test "$cross_compiling" = yes; then
15175   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15176 See \`config.log' for more details." >&5
15177 echo "$as_me: error: cannot run test program while cross compiling
15178 See \`config.log' for more details." >&2;}
15179    { (exit 1); exit 1; }; }
15180 else
15181   cat >conftest.$ac_ext <<_ACEOF
15182 #line $LINENO "configure"
15183 /* confdefs.h.  */
15184 _ACEOF
15185 cat confdefs.h >>conftest.$ac_ext
15186 cat >>conftest.$ac_ext <<_ACEOF
15187 /* end confdefs.h.  */
15188 $ac_includes_default
15189 long longval () { return (long) (sizeof (int)); }
15190 unsigned long ulongval () { return (long) (sizeof (int)); }
15191 #include <stdio.h>
15192 #include <stdlib.h>
15193 int
15194 main ()
15195 {
15196
15197   FILE *f = fopen ("conftest.val", "w");
15198   if (! f)
15199     exit (1);
15200   if (((long) (sizeof (int))) < 0)
15201     {
15202       long i = longval ();
15203       if (i != ((long) (sizeof (int))))
15204         exit (1);
15205       fprintf (f, "%ld\n", i);
15206     }
15207   else
15208     {
15209       unsigned long i = ulongval ();
15210       if (i != ((long) (sizeof (int))))
15211         exit (1);
15212       fprintf (f, "%lu\n", i);
15213     }
15214   exit (ferror (f) || fclose (f) != 0);
15215
15216   ;
15217   return 0;
15218 }
15219 _ACEOF
15220 rm -f conftest$ac_exeext
15221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15222   (eval $ac_link) 2>&5
15223   ac_status=$?
15224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15227   (eval $ac_try) 2>&5
15228   ac_status=$?
15229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230   (exit $ac_status); }; }; then
15231   ac_cv_sizeof_int=`cat conftest.val`
15232 else
15233   echo "$as_me: program exited with status $ac_status" >&5
15234 echo "$as_me: failed program was:" >&5
15235 sed 's/^/| /' conftest.$ac_ext >&5
15236
15237 ( exit $ac_status )
15238 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15239 See \`config.log' for more details." >&5
15240 echo "$as_me: error: cannot compute sizeof (int), 77
15241 See \`config.log' for more details." >&2;}
15242    { (exit 1); exit 1; }; }
15243 fi
15244 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15245 fi
15246 fi
15247 rm -f conftest.val
15248 else
15249   ac_cv_sizeof_int=0
15250 fi
15251 fi
15252 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15253 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15254 cat >>confdefs.h <<_ACEOF
15255 #define SIZEOF_INT $ac_cv_sizeof_int
15256 _ACEOF
15257
15258
15259 echo "$as_me:$LINENO: checking for long" >&5
15260 echo $ECHO_N "checking for long... $ECHO_C" >&6
15261 if test "${ac_cv_type_long+set}" = set; then
15262   echo $ECHO_N "(cached) $ECHO_C" >&6
15263 else
15264   cat >conftest.$ac_ext <<_ACEOF
15265 #line $LINENO "configure"
15266 /* confdefs.h.  */
15267 _ACEOF
15268 cat confdefs.h >>conftest.$ac_ext
15269 cat >>conftest.$ac_ext <<_ACEOF
15270 /* end confdefs.h.  */
15271 $ac_includes_default
15272 int
15273 main ()
15274 {
15275 if ((long *) 0)
15276   return 0;
15277 if (sizeof (long))
15278   return 0;
15279   ;
15280   return 0;
15281 }
15282 _ACEOF
15283 rm -f conftest.$ac_objext
15284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15285   (eval $ac_compile) 2>&5
15286   ac_status=$?
15287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288   (exit $ac_status); } &&
15289          { ac_try='test -s conftest.$ac_objext'
15290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15291   (eval $ac_try) 2>&5
15292   ac_status=$?
15293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294   (exit $ac_status); }; }; then
15295   ac_cv_type_long=yes
15296 else
15297   echo "$as_me: failed program was:" >&5
15298 sed 's/^/| /' conftest.$ac_ext >&5
15299
15300 ac_cv_type_long=no
15301 fi
15302 rm -f conftest.$ac_objext conftest.$ac_ext
15303 fi
15304 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15305 echo "${ECHO_T}$ac_cv_type_long" >&6
15306
15307 echo "$as_me:$LINENO: checking size of long" >&5
15308 echo $ECHO_N "checking size of long... $ECHO_C" >&6
15309 if test "${ac_cv_sizeof_long+set}" = set; then
15310   echo $ECHO_N "(cached) $ECHO_C" >&6
15311 else
15312   if test "$ac_cv_type_long" = yes; then
15313   # The cast to unsigned long works around a bug in the HP C Compiler
15314   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15315   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15316   # This bug is HP SR number 8606223364.
15317   if test "$cross_compiling" = yes; then
15318   # Depending upon the size, compute the lo and hi bounds.
15319 cat >conftest.$ac_ext <<_ACEOF
15320 #line $LINENO "configure"
15321 /* confdefs.h.  */
15322 _ACEOF
15323 cat confdefs.h >>conftest.$ac_ext
15324 cat >>conftest.$ac_ext <<_ACEOF
15325 /* end confdefs.h.  */
15326 $ac_includes_default
15327 int
15328 main ()
15329 {
15330 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15331 test_array [0] = 0
15332
15333   ;
15334   return 0;
15335 }
15336 _ACEOF
15337 rm -f conftest.$ac_objext
15338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15339   (eval $ac_compile) 2>&5
15340   ac_status=$?
15341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342   (exit $ac_status); } &&
15343          { ac_try='test -s conftest.$ac_objext'
15344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15345   (eval $ac_try) 2>&5
15346   ac_status=$?
15347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348   (exit $ac_status); }; }; then
15349   ac_lo=0 ac_mid=0
15350   while :; do
15351     cat >conftest.$ac_ext <<_ACEOF
15352 #line $LINENO "configure"
15353 /* confdefs.h.  */
15354 _ACEOF
15355 cat confdefs.h >>conftest.$ac_ext
15356 cat >>conftest.$ac_ext <<_ACEOF
15357 /* end confdefs.h.  */
15358 $ac_includes_default
15359 int
15360 main ()
15361 {
15362 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15363 test_array [0] = 0
15364
15365   ;
15366   return 0;
15367 }
15368 _ACEOF
15369 rm -f conftest.$ac_objext
15370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15371   (eval $ac_compile) 2>&5
15372   ac_status=$?
15373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374   (exit $ac_status); } &&
15375          { ac_try='test -s conftest.$ac_objext'
15376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15377   (eval $ac_try) 2>&5
15378   ac_status=$?
15379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380   (exit $ac_status); }; }; then
15381   ac_hi=$ac_mid; break
15382 else
15383   echo "$as_me: failed program was:" >&5
15384 sed 's/^/| /' conftest.$ac_ext >&5
15385
15386 ac_lo=`expr $ac_mid + 1`
15387                     if test $ac_lo -le $ac_mid; then
15388                       ac_lo= ac_hi=
15389                       break
15390                     fi
15391                     ac_mid=`expr 2 '*' $ac_mid + 1`
15392 fi
15393 rm -f conftest.$ac_objext conftest.$ac_ext
15394   done
15395 else
15396   echo "$as_me: failed program was:" >&5
15397 sed 's/^/| /' conftest.$ac_ext >&5
15398
15399 cat >conftest.$ac_ext <<_ACEOF
15400 #line $LINENO "configure"
15401 /* confdefs.h.  */
15402 _ACEOF
15403 cat confdefs.h >>conftest.$ac_ext
15404 cat >>conftest.$ac_ext <<_ACEOF
15405 /* end confdefs.h.  */
15406 $ac_includes_default
15407 int
15408 main ()
15409 {
15410 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15411 test_array [0] = 0
15412
15413   ;
15414   return 0;
15415 }
15416 _ACEOF
15417 rm -f conftest.$ac_objext
15418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15419   (eval $ac_compile) 2>&5
15420   ac_status=$?
15421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422   (exit $ac_status); } &&
15423          { ac_try='test -s conftest.$ac_objext'
15424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15425   (eval $ac_try) 2>&5
15426   ac_status=$?
15427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428   (exit $ac_status); }; }; then
15429   ac_hi=-1 ac_mid=-1
15430   while :; do
15431     cat >conftest.$ac_ext <<_ACEOF
15432 #line $LINENO "configure"
15433 /* confdefs.h.  */
15434 _ACEOF
15435 cat confdefs.h >>conftest.$ac_ext
15436 cat >>conftest.$ac_ext <<_ACEOF
15437 /* end confdefs.h.  */
15438 $ac_includes_default
15439 int
15440 main ()
15441 {
15442 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15443 test_array [0] = 0
15444
15445   ;
15446   return 0;
15447 }
15448 _ACEOF
15449 rm -f conftest.$ac_objext
15450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15451   (eval $ac_compile) 2>&5
15452   ac_status=$?
15453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454   (exit $ac_status); } &&
15455          { ac_try='test -s conftest.$ac_objext'
15456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15457   (eval $ac_try) 2>&5
15458   ac_status=$?
15459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460   (exit $ac_status); }; }; then
15461   ac_lo=$ac_mid; break
15462 else
15463   echo "$as_me: failed program was:" >&5
15464 sed 's/^/| /' conftest.$ac_ext >&5
15465
15466 ac_hi=`expr '(' $ac_mid ')' - 1`
15467                        if test $ac_mid -le $ac_hi; then
15468                          ac_lo= ac_hi=
15469                          break
15470                        fi
15471                        ac_mid=`expr 2 '*' $ac_mid`
15472 fi
15473 rm -f conftest.$ac_objext conftest.$ac_ext
15474   done
15475 else
15476   echo "$as_me: failed program was:" >&5
15477 sed 's/^/| /' conftest.$ac_ext >&5
15478
15479 ac_lo= ac_hi=
15480 fi
15481 rm -f conftest.$ac_objext conftest.$ac_ext
15482 fi
15483 rm -f conftest.$ac_objext conftest.$ac_ext
15484 # Binary search between lo and hi bounds.
15485 while test "x$ac_lo" != "x$ac_hi"; do
15486   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15487   cat >conftest.$ac_ext <<_ACEOF
15488 #line $LINENO "configure"
15489 /* confdefs.h.  */
15490 _ACEOF
15491 cat confdefs.h >>conftest.$ac_ext
15492 cat >>conftest.$ac_ext <<_ACEOF
15493 /* end confdefs.h.  */
15494 $ac_includes_default
15495 int
15496 main ()
15497 {
15498 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15499 test_array [0] = 0
15500
15501   ;
15502   return 0;
15503 }
15504 _ACEOF
15505 rm -f conftest.$ac_objext
15506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15507   (eval $ac_compile) 2>&5
15508   ac_status=$?
15509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510   (exit $ac_status); } &&
15511          { ac_try='test -s conftest.$ac_objext'
15512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15513   (eval $ac_try) 2>&5
15514   ac_status=$?
15515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516   (exit $ac_status); }; }; then
15517   ac_hi=$ac_mid
15518 else
15519   echo "$as_me: failed program was:" >&5
15520 sed 's/^/| /' conftest.$ac_ext >&5
15521
15522 ac_lo=`expr '(' $ac_mid ')' + 1`
15523 fi
15524 rm -f conftest.$ac_objext conftest.$ac_ext
15525 done
15526 case $ac_lo in
15527 ?*) ac_cv_sizeof_long=$ac_lo;;
15528 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15529 See \`config.log' for more details." >&5
15530 echo "$as_me: error: cannot compute sizeof (long), 77
15531 See \`config.log' for more details." >&2;}
15532    { (exit 1); exit 1; }; } ;;
15533 esac
15534 else
15535   if test "$cross_compiling" = yes; then
15536   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15537 See \`config.log' for more details." >&5
15538 echo "$as_me: error: cannot run test program while cross compiling
15539 See \`config.log' for more details." >&2;}
15540    { (exit 1); exit 1; }; }
15541 else
15542   cat >conftest.$ac_ext <<_ACEOF
15543 #line $LINENO "configure"
15544 /* confdefs.h.  */
15545 _ACEOF
15546 cat confdefs.h >>conftest.$ac_ext
15547 cat >>conftest.$ac_ext <<_ACEOF
15548 /* end confdefs.h.  */
15549 $ac_includes_default
15550 long longval () { return (long) (sizeof (long)); }
15551 unsigned long ulongval () { return (long) (sizeof (long)); }
15552 #include <stdio.h>
15553 #include <stdlib.h>
15554 int
15555 main ()
15556 {
15557
15558   FILE *f = fopen ("conftest.val", "w");
15559   if (! f)
15560     exit (1);
15561   if (((long) (sizeof (long))) < 0)
15562     {
15563       long i = longval ();
15564       if (i != ((long) (sizeof (long))))
15565         exit (1);
15566       fprintf (f, "%ld\n", i);
15567     }
15568   else
15569     {
15570       unsigned long i = ulongval ();
15571       if (i != ((long) (sizeof (long))))
15572         exit (1);
15573       fprintf (f, "%lu\n", i);
15574     }
15575   exit (ferror (f) || fclose (f) != 0);
15576
15577   ;
15578   return 0;
15579 }
15580 _ACEOF
15581 rm -f conftest$ac_exeext
15582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15583   (eval $ac_link) 2>&5
15584   ac_status=$?
15585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15588   (eval $ac_try) 2>&5
15589   ac_status=$?
15590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591   (exit $ac_status); }; }; then
15592   ac_cv_sizeof_long=`cat conftest.val`
15593 else
15594   echo "$as_me: program exited with status $ac_status" >&5
15595 echo "$as_me: failed program was:" >&5
15596 sed 's/^/| /' conftest.$ac_ext >&5
15597
15598 ( exit $ac_status )
15599 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15600 See \`config.log' for more details." >&5
15601 echo "$as_me: error: cannot compute sizeof (long), 77
15602 See \`config.log' for more details." >&2;}
15603    { (exit 1); exit 1; }; }
15604 fi
15605 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15606 fi
15607 fi
15608 rm -f conftest.val
15609 else
15610   ac_cv_sizeof_long=0
15611 fi
15612 fi
15613 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15614 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15615 cat >>confdefs.h <<_ACEOF
15616 #define SIZEOF_LONG $ac_cv_sizeof_long
15617 _ACEOF
15618
15619
15620
15621 case "${host}" in
15622     arm-*-linux* )
15623         echo "$as_me:$LINENO: checking for long long" >&5
15624 echo $ECHO_N "checking for long long... $ECHO_C" >&6
15625 if test "${ac_cv_type_long_long+set}" = set; then
15626   echo $ECHO_N "(cached) $ECHO_C" >&6
15627 else
15628   cat >conftest.$ac_ext <<_ACEOF
15629 #line $LINENO "configure"
15630 /* confdefs.h.  */
15631 _ACEOF
15632 cat confdefs.h >>conftest.$ac_ext
15633 cat >>conftest.$ac_ext <<_ACEOF
15634 /* end confdefs.h.  */
15635 $ac_includes_default
15636 int
15637 main ()
15638 {
15639 if ((long long *) 0)
15640   return 0;
15641 if (sizeof (long long))
15642   return 0;
15643   ;
15644   return 0;
15645 }
15646 _ACEOF
15647 rm -f conftest.$ac_objext
15648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15649   (eval $ac_compile) 2>&5
15650   ac_status=$?
15651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652   (exit $ac_status); } &&
15653          { ac_try='test -s conftest.$ac_objext'
15654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15655   (eval $ac_try) 2>&5
15656   ac_status=$?
15657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658   (exit $ac_status); }; }; then
15659   ac_cv_type_long_long=yes
15660 else
15661   echo "$as_me: failed program was:" >&5
15662 sed 's/^/| /' conftest.$ac_ext >&5
15663
15664 ac_cv_type_long_long=no
15665 fi
15666 rm -f conftest.$ac_objext conftest.$ac_ext
15667 fi
15668 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15669 echo "${ECHO_T}$ac_cv_type_long_long" >&6
15670
15671 echo "$as_me:$LINENO: checking size of long long" >&5
15672 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
15673 if test "${ac_cv_sizeof_long_long+set}" = set; then
15674   echo $ECHO_N "(cached) $ECHO_C" >&6
15675 else
15676   if test "$ac_cv_type_long_long" = yes; then
15677   # The cast to unsigned long works around a bug in the HP C Compiler
15678   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15679   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15680   # This bug is HP SR number 8606223364.
15681   if test "$cross_compiling" = yes; then
15682   # Depending upon the size, compute the lo and hi bounds.
15683 cat >conftest.$ac_ext <<_ACEOF
15684 #line $LINENO "configure"
15685 /* confdefs.h.  */
15686 _ACEOF
15687 cat confdefs.h >>conftest.$ac_ext
15688 cat >>conftest.$ac_ext <<_ACEOF
15689 /* end confdefs.h.  */
15690 $ac_includes_default
15691 int
15692 main ()
15693 {
15694 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
15695 test_array [0] = 0
15696
15697   ;
15698   return 0;
15699 }
15700 _ACEOF
15701 rm -f conftest.$ac_objext
15702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15703   (eval $ac_compile) 2>&5
15704   ac_status=$?
15705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706   (exit $ac_status); } &&
15707          { ac_try='test -s conftest.$ac_objext'
15708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15709   (eval $ac_try) 2>&5
15710   ac_status=$?
15711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712   (exit $ac_status); }; }; then
15713   ac_lo=0 ac_mid=0
15714   while :; do
15715     cat >conftest.$ac_ext <<_ACEOF
15716 #line $LINENO "configure"
15717 /* confdefs.h.  */
15718 _ACEOF
15719 cat confdefs.h >>conftest.$ac_ext
15720 cat >>conftest.$ac_ext <<_ACEOF
15721 /* end confdefs.h.  */
15722 $ac_includes_default
15723 int
15724 main ()
15725 {
15726 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15727 test_array [0] = 0
15728
15729   ;
15730   return 0;
15731 }
15732 _ACEOF
15733 rm -f conftest.$ac_objext
15734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15735   (eval $ac_compile) 2>&5
15736   ac_status=$?
15737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738   (exit $ac_status); } &&
15739          { ac_try='test -s conftest.$ac_objext'
15740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15741   (eval $ac_try) 2>&5
15742   ac_status=$?
15743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744   (exit $ac_status); }; }; then
15745   ac_hi=$ac_mid; break
15746 else
15747   echo "$as_me: failed program was:" >&5
15748 sed 's/^/| /' conftest.$ac_ext >&5
15749
15750 ac_lo=`expr $ac_mid + 1`
15751                     if test $ac_lo -le $ac_mid; then
15752                       ac_lo= ac_hi=
15753                       break
15754                     fi
15755                     ac_mid=`expr 2 '*' $ac_mid + 1`
15756 fi
15757 rm -f conftest.$ac_objext conftest.$ac_ext
15758   done
15759 else
15760   echo "$as_me: failed program was:" >&5
15761 sed 's/^/| /' conftest.$ac_ext >&5
15762
15763 cat >conftest.$ac_ext <<_ACEOF
15764 #line $LINENO "configure"
15765 /* confdefs.h.  */
15766 _ACEOF
15767 cat confdefs.h >>conftest.$ac_ext
15768 cat >>conftest.$ac_ext <<_ACEOF
15769 /* end confdefs.h.  */
15770 $ac_includes_default
15771 int
15772 main ()
15773 {
15774 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
15775 test_array [0] = 0
15776
15777   ;
15778   return 0;
15779 }
15780 _ACEOF
15781 rm -f conftest.$ac_objext
15782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15783   (eval $ac_compile) 2>&5
15784   ac_status=$?
15785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786   (exit $ac_status); } &&
15787          { ac_try='test -s conftest.$ac_objext'
15788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15789   (eval $ac_try) 2>&5
15790   ac_status=$?
15791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792   (exit $ac_status); }; }; then
15793   ac_hi=-1 ac_mid=-1
15794   while :; do
15795     cat >conftest.$ac_ext <<_ACEOF
15796 #line $LINENO "configure"
15797 /* confdefs.h.  */
15798 _ACEOF
15799 cat confdefs.h >>conftest.$ac_ext
15800 cat >>conftest.$ac_ext <<_ACEOF
15801 /* end confdefs.h.  */
15802 $ac_includes_default
15803 int
15804 main ()
15805 {
15806 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
15807 test_array [0] = 0
15808
15809   ;
15810   return 0;
15811 }
15812 _ACEOF
15813 rm -f conftest.$ac_objext
15814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15815   (eval $ac_compile) 2>&5
15816   ac_status=$?
15817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818   (exit $ac_status); } &&
15819          { ac_try='test -s conftest.$ac_objext'
15820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15821   (eval $ac_try) 2>&5
15822   ac_status=$?
15823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824   (exit $ac_status); }; }; then
15825   ac_lo=$ac_mid; break
15826 else
15827   echo "$as_me: failed program was:" >&5
15828 sed 's/^/| /' conftest.$ac_ext >&5
15829
15830 ac_hi=`expr '(' $ac_mid ')' - 1`
15831                        if test $ac_mid -le $ac_hi; then
15832                          ac_lo= ac_hi=
15833                          break
15834                        fi
15835                        ac_mid=`expr 2 '*' $ac_mid`
15836 fi
15837 rm -f conftest.$ac_objext conftest.$ac_ext
15838   done
15839 else
15840   echo "$as_me: failed program was:" >&5
15841 sed 's/^/| /' conftest.$ac_ext >&5
15842
15843 ac_lo= ac_hi=
15844 fi
15845 rm -f conftest.$ac_objext conftest.$ac_ext
15846 fi
15847 rm -f conftest.$ac_objext conftest.$ac_ext
15848 # Binary search between lo and hi bounds.
15849 while test "x$ac_lo" != "x$ac_hi"; do
15850   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15851   cat >conftest.$ac_ext <<_ACEOF
15852 #line $LINENO "configure"
15853 /* confdefs.h.  */
15854 _ACEOF
15855 cat confdefs.h >>conftest.$ac_ext
15856 cat >>conftest.$ac_ext <<_ACEOF
15857 /* end confdefs.h.  */
15858 $ac_includes_default
15859 int
15860 main ()
15861 {
15862 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
15863 test_array [0] = 0
15864
15865   ;
15866   return 0;
15867 }
15868 _ACEOF
15869 rm -f conftest.$ac_objext
15870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15871   (eval $ac_compile) 2>&5
15872   ac_status=$?
15873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874   (exit $ac_status); } &&
15875          { ac_try='test -s conftest.$ac_objext'
15876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15877   (eval $ac_try) 2>&5
15878   ac_status=$?
15879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880   (exit $ac_status); }; }; then
15881   ac_hi=$ac_mid
15882 else
15883   echo "$as_me: failed program was:" >&5
15884 sed 's/^/| /' conftest.$ac_ext >&5
15885
15886 ac_lo=`expr '(' $ac_mid ')' + 1`
15887 fi
15888 rm -f conftest.$ac_objext conftest.$ac_ext
15889 done
15890 case $ac_lo in
15891 ?*) ac_cv_sizeof_long_long=$ac_lo;;
15892 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15893 See \`config.log' for more details." >&5
15894 echo "$as_me: error: cannot compute sizeof (long long), 77
15895 See \`config.log' for more details." >&2;}
15896    { (exit 1); exit 1; }; } ;;
15897 esac
15898 else
15899   if test "$cross_compiling" = yes; then
15900   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15901 See \`config.log' for more details." >&5
15902 echo "$as_me: error: cannot run test program while cross compiling
15903 See \`config.log' for more details." >&2;}
15904    { (exit 1); exit 1; }; }
15905 else
15906   cat >conftest.$ac_ext <<_ACEOF
15907 #line $LINENO "configure"
15908 /* confdefs.h.  */
15909 _ACEOF
15910 cat confdefs.h >>conftest.$ac_ext
15911 cat >>conftest.$ac_ext <<_ACEOF
15912 /* end confdefs.h.  */
15913 $ac_includes_default
15914 long longval () { return (long) (sizeof (long long)); }
15915 unsigned long ulongval () { return (long) (sizeof (long long)); }
15916 #include <stdio.h>
15917 #include <stdlib.h>
15918 int
15919 main ()
15920 {
15921
15922   FILE *f = fopen ("conftest.val", "w");
15923   if (! f)
15924     exit (1);
15925   if (((long) (sizeof (long long))) < 0)
15926     {
15927       long i = longval ();
15928       if (i != ((long) (sizeof (long long))))
15929         exit (1);
15930       fprintf (f, "%ld\n", i);
15931     }
15932   else
15933     {
15934       unsigned long i = ulongval ();
15935       if (i != ((long) (sizeof (long long))))
15936         exit (1);
15937       fprintf (f, "%lu\n", i);
15938     }
15939   exit (ferror (f) || fclose (f) != 0);
15940
15941   ;
15942   return 0;
15943 }
15944 _ACEOF
15945 rm -f conftest$ac_exeext
15946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15947   (eval $ac_link) 2>&5
15948   ac_status=$?
15949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15952   (eval $ac_try) 2>&5
15953   ac_status=$?
15954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955   (exit $ac_status); }; }; then
15956   ac_cv_sizeof_long_long=`cat conftest.val`
15957 else
15958   echo "$as_me: program exited with status $ac_status" >&5
15959 echo "$as_me: failed program was:" >&5
15960 sed 's/^/| /' conftest.$ac_ext >&5
15961
15962 ( exit $ac_status )
15963 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15964 See \`config.log' for more details." >&5
15965 echo "$as_me: error: cannot compute sizeof (long long), 77
15966 See \`config.log' for more details." >&2;}
15967    { (exit 1); exit 1; }; }
15968 fi
15969 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15970 fi
15971 fi
15972 rm -f conftest.val
15973 else
15974   ac_cv_sizeof_long_long=0
15975 fi
15976 fi
15977 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
15978 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
15979 cat >>confdefs.h <<_ACEOF
15980 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
15981 _ACEOF
15982
15983
15984     ;;
15985     *-hp-hpux* )
15986         echo "$as_me:$LINENO: checking for long long" >&5
15987 echo $ECHO_N "checking for long long... $ECHO_C" >&6
15988 if test "${ac_cv_type_long_long+set}" = set; then
15989   echo $ECHO_N "(cached) $ECHO_C" >&6
15990 else
15991   cat >conftest.$ac_ext <<_ACEOF
15992 #line $LINENO "configure"
15993 /* confdefs.h.  */
15994 _ACEOF
15995 cat confdefs.h >>conftest.$ac_ext
15996 cat >>conftest.$ac_ext <<_ACEOF
15997 /* end confdefs.h.  */
15998 $ac_includes_default
15999 int
16000 main ()
16001 {
16002 if ((long long *) 0)
16003   return 0;
16004 if (sizeof (long long))
16005   return 0;
16006   ;
16007   return 0;
16008 }
16009 _ACEOF
16010 rm -f conftest.$ac_objext
16011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16012   (eval $ac_compile) 2>&5
16013   ac_status=$?
16014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015   (exit $ac_status); } &&
16016          { ac_try='test -s conftest.$ac_objext'
16017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16018   (eval $ac_try) 2>&5
16019   ac_status=$?
16020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021   (exit $ac_status); }; }; then
16022   ac_cv_type_long_long=yes
16023 else
16024   echo "$as_me: failed program was:" >&5
16025 sed 's/^/| /' conftest.$ac_ext >&5
16026
16027 ac_cv_type_long_long=no
16028 fi
16029 rm -f conftest.$ac_objext conftest.$ac_ext
16030 fi
16031 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16032 echo "${ECHO_T}$ac_cv_type_long_long" >&6
16033
16034 echo "$as_me:$LINENO: checking size of long long" >&5
16035 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16036 if test "${ac_cv_sizeof_long_long+set}" = set; then
16037   echo $ECHO_N "(cached) $ECHO_C" >&6
16038 else
16039   if test "$ac_cv_type_long_long" = yes; then
16040   # The cast to unsigned long works around a bug in the HP C Compiler
16041   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16042   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16043   # This bug is HP SR number 8606223364.
16044   if test "$cross_compiling" = yes; then
16045   # Depending upon the size, compute the lo and hi bounds.
16046 cat >conftest.$ac_ext <<_ACEOF
16047 #line $LINENO "configure"
16048 /* confdefs.h.  */
16049 _ACEOF
16050 cat confdefs.h >>conftest.$ac_ext
16051 cat >>conftest.$ac_ext <<_ACEOF
16052 /* end confdefs.h.  */
16053 $ac_includes_default
16054 int
16055 main ()
16056 {
16057 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16058 test_array [0] = 0
16059
16060   ;
16061   return 0;
16062 }
16063 _ACEOF
16064 rm -f conftest.$ac_objext
16065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16066   (eval $ac_compile) 2>&5
16067   ac_status=$?
16068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069   (exit $ac_status); } &&
16070          { ac_try='test -s conftest.$ac_objext'
16071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16072   (eval $ac_try) 2>&5
16073   ac_status=$?
16074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075   (exit $ac_status); }; }; then
16076   ac_lo=0 ac_mid=0
16077   while :; do
16078     cat >conftest.$ac_ext <<_ACEOF
16079 #line $LINENO "configure"
16080 /* confdefs.h.  */
16081 _ACEOF
16082 cat confdefs.h >>conftest.$ac_ext
16083 cat >>conftest.$ac_ext <<_ACEOF
16084 /* end confdefs.h.  */
16085 $ac_includes_default
16086 int
16087 main ()
16088 {
16089 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16090 test_array [0] = 0
16091
16092   ;
16093   return 0;
16094 }
16095 _ACEOF
16096 rm -f conftest.$ac_objext
16097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16098   (eval $ac_compile) 2>&5
16099   ac_status=$?
16100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101   (exit $ac_status); } &&
16102          { ac_try='test -s conftest.$ac_objext'
16103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16104   (eval $ac_try) 2>&5
16105   ac_status=$?
16106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107   (exit $ac_status); }; }; then
16108   ac_hi=$ac_mid; break
16109 else
16110   echo "$as_me: failed program was:" >&5
16111 sed 's/^/| /' conftest.$ac_ext >&5
16112
16113 ac_lo=`expr $ac_mid + 1`
16114                     if test $ac_lo -le $ac_mid; then
16115                       ac_lo= ac_hi=
16116                       break
16117                     fi
16118                     ac_mid=`expr 2 '*' $ac_mid + 1`
16119 fi
16120 rm -f conftest.$ac_objext conftest.$ac_ext
16121   done
16122 else
16123   echo "$as_me: failed program was:" >&5
16124 sed 's/^/| /' conftest.$ac_ext >&5
16125
16126 cat >conftest.$ac_ext <<_ACEOF
16127 #line $LINENO "configure"
16128 /* confdefs.h.  */
16129 _ACEOF
16130 cat confdefs.h >>conftest.$ac_ext
16131 cat >>conftest.$ac_ext <<_ACEOF
16132 /* end confdefs.h.  */
16133 $ac_includes_default
16134 int
16135 main ()
16136 {
16137 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16138 test_array [0] = 0
16139
16140   ;
16141   return 0;
16142 }
16143 _ACEOF
16144 rm -f conftest.$ac_objext
16145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16146   (eval $ac_compile) 2>&5
16147   ac_status=$?
16148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149   (exit $ac_status); } &&
16150          { ac_try='test -s conftest.$ac_objext'
16151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16152   (eval $ac_try) 2>&5
16153   ac_status=$?
16154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155   (exit $ac_status); }; }; then
16156   ac_hi=-1 ac_mid=-1
16157   while :; do
16158     cat >conftest.$ac_ext <<_ACEOF
16159 #line $LINENO "configure"
16160 /* confdefs.h.  */
16161 _ACEOF
16162 cat confdefs.h >>conftest.$ac_ext
16163 cat >>conftest.$ac_ext <<_ACEOF
16164 /* end confdefs.h.  */
16165 $ac_includes_default
16166 int
16167 main ()
16168 {
16169 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16170 test_array [0] = 0
16171
16172   ;
16173   return 0;
16174 }
16175 _ACEOF
16176 rm -f conftest.$ac_objext
16177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16178   (eval $ac_compile) 2>&5
16179   ac_status=$?
16180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181   (exit $ac_status); } &&
16182          { ac_try='test -s conftest.$ac_objext'
16183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16184   (eval $ac_try) 2>&5
16185   ac_status=$?
16186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187   (exit $ac_status); }; }; then
16188   ac_lo=$ac_mid; break
16189 else
16190   echo "$as_me: failed program was:" >&5
16191 sed 's/^/| /' conftest.$ac_ext >&5
16192
16193 ac_hi=`expr '(' $ac_mid ')' - 1`
16194                        if test $ac_mid -le $ac_hi; then
16195                          ac_lo= ac_hi=
16196                          break
16197                        fi
16198                        ac_mid=`expr 2 '*' $ac_mid`
16199 fi
16200 rm -f conftest.$ac_objext conftest.$ac_ext
16201   done
16202 else
16203   echo "$as_me: failed program was:" >&5
16204 sed 's/^/| /' conftest.$ac_ext >&5
16205
16206 ac_lo= ac_hi=
16207 fi
16208 rm -f conftest.$ac_objext conftest.$ac_ext
16209 fi
16210 rm -f conftest.$ac_objext conftest.$ac_ext
16211 # Binary search between lo and hi bounds.
16212 while test "x$ac_lo" != "x$ac_hi"; do
16213   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16214   cat >conftest.$ac_ext <<_ACEOF
16215 #line $LINENO "configure"
16216 /* confdefs.h.  */
16217 _ACEOF
16218 cat confdefs.h >>conftest.$ac_ext
16219 cat >>conftest.$ac_ext <<_ACEOF
16220 /* end confdefs.h.  */
16221 $ac_includes_default
16222 int
16223 main ()
16224 {
16225 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16226 test_array [0] = 0
16227
16228   ;
16229   return 0;
16230 }
16231 _ACEOF
16232 rm -f conftest.$ac_objext
16233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16234   (eval $ac_compile) 2>&5
16235   ac_status=$?
16236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237   (exit $ac_status); } &&
16238          { ac_try='test -s conftest.$ac_objext'
16239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16240   (eval $ac_try) 2>&5
16241   ac_status=$?
16242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243   (exit $ac_status); }; }; then
16244   ac_hi=$ac_mid
16245 else
16246   echo "$as_me: failed program was:" >&5
16247 sed 's/^/| /' conftest.$ac_ext >&5
16248
16249 ac_lo=`expr '(' $ac_mid ')' + 1`
16250 fi
16251 rm -f conftest.$ac_objext conftest.$ac_ext
16252 done
16253 case $ac_lo in
16254 ?*) ac_cv_sizeof_long_long=$ac_lo;;
16255 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16256 See \`config.log' for more details." >&5
16257 echo "$as_me: error: cannot compute sizeof (long long), 77
16258 See \`config.log' for more details." >&2;}
16259    { (exit 1); exit 1; }; } ;;
16260 esac
16261 else
16262   if test "$cross_compiling" = yes; then
16263   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16264 See \`config.log' for more details." >&5
16265 echo "$as_me: error: cannot run test program while cross compiling
16266 See \`config.log' for more details." >&2;}
16267    { (exit 1); exit 1; }; }
16268 else
16269   cat >conftest.$ac_ext <<_ACEOF
16270 #line $LINENO "configure"
16271 /* confdefs.h.  */
16272 _ACEOF
16273 cat confdefs.h >>conftest.$ac_ext
16274 cat >>conftest.$ac_ext <<_ACEOF
16275 /* end confdefs.h.  */
16276 $ac_includes_default
16277 long longval () { return (long) (sizeof (long long)); }
16278 unsigned long ulongval () { return (long) (sizeof (long long)); }
16279 #include <stdio.h>
16280 #include <stdlib.h>
16281 int
16282 main ()
16283 {
16284
16285   FILE *f = fopen ("conftest.val", "w");
16286   if (! f)
16287     exit (1);
16288   if (((long) (sizeof (long long))) < 0)
16289     {
16290       long i = longval ();
16291       if (i != ((long) (sizeof (long long))))
16292         exit (1);
16293       fprintf (f, "%ld\n", i);
16294     }
16295   else
16296     {
16297       unsigned long i = ulongval ();
16298       if (i != ((long) (sizeof (long long))))
16299         exit (1);
16300       fprintf (f, "%lu\n", i);
16301     }
16302   exit (ferror (f) || fclose (f) != 0);
16303
16304   ;
16305   return 0;
16306 }
16307 _ACEOF
16308 rm -f conftest$ac_exeext
16309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16310   (eval $ac_link) 2>&5
16311   ac_status=$?
16312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16315   (eval $ac_try) 2>&5
16316   ac_status=$?
16317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318   (exit $ac_status); }; }; then
16319   ac_cv_sizeof_long_long=`cat conftest.val`
16320 else
16321   echo "$as_me: program exited with status $ac_status" >&5
16322 echo "$as_me: failed program was:" >&5
16323 sed 's/^/| /' conftest.$ac_ext >&5
16324
16325 ( exit $ac_status )
16326 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16327 See \`config.log' for more details." >&5
16328 echo "$as_me: error: cannot compute sizeof (long long), 77
16329 See \`config.log' for more details." >&2;}
16330    { (exit 1); exit 1; }; }
16331 fi
16332 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16333 fi
16334 fi
16335 rm -f conftest.val
16336 else
16337   ac_cv_sizeof_long_long=0
16338 fi
16339 fi
16340 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16341 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16342 cat >>confdefs.h <<_ACEOF
16343 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16344 _ACEOF
16345
16346
16347         if test "$ac_cv_sizeof_long_long" != "0"; then
16348                         CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
16349         fi
16350     ;;
16351     * )
16352         echo "$as_me:$LINENO: checking for long long" >&5
16353 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16354 if test "${ac_cv_type_long_long+set}" = set; then
16355   echo $ECHO_N "(cached) $ECHO_C" >&6
16356 else
16357   cat >conftest.$ac_ext <<_ACEOF
16358 #line $LINENO "configure"
16359 /* confdefs.h.  */
16360 _ACEOF
16361 cat confdefs.h >>conftest.$ac_ext
16362 cat >>conftest.$ac_ext <<_ACEOF
16363 /* end confdefs.h.  */
16364 $ac_includes_default
16365 int
16366 main ()
16367 {
16368 if ((long long *) 0)
16369   return 0;
16370 if (sizeof (long long))
16371   return 0;
16372   ;
16373   return 0;
16374 }
16375 _ACEOF
16376 rm -f conftest.$ac_objext
16377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16378   (eval $ac_compile) 2>&5
16379   ac_status=$?
16380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381   (exit $ac_status); } &&
16382          { ac_try='test -s conftest.$ac_objext'
16383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16384   (eval $ac_try) 2>&5
16385   ac_status=$?
16386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387   (exit $ac_status); }; }; then
16388   ac_cv_type_long_long=yes
16389 else
16390   echo "$as_me: failed program was:" >&5
16391 sed 's/^/| /' conftest.$ac_ext >&5
16392
16393 ac_cv_type_long_long=no
16394 fi
16395 rm -f conftest.$ac_objext conftest.$ac_ext
16396 fi
16397 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16398 echo "${ECHO_T}$ac_cv_type_long_long" >&6
16399
16400 echo "$as_me:$LINENO: checking size of long long" >&5
16401 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16402 if test "${ac_cv_sizeof_long_long+set}" = set; then
16403   echo $ECHO_N "(cached) $ECHO_C" >&6
16404 else
16405   if test "$ac_cv_type_long_long" = yes; then
16406   # The cast to unsigned long works around a bug in the HP C Compiler
16407   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16408   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16409   # This bug is HP SR number 8606223364.
16410   if test "$cross_compiling" = yes; then
16411   # Depending upon the size, compute the lo and hi bounds.
16412 cat >conftest.$ac_ext <<_ACEOF
16413 #line $LINENO "configure"
16414 /* confdefs.h.  */
16415 _ACEOF
16416 cat confdefs.h >>conftest.$ac_ext
16417 cat >>conftest.$ac_ext <<_ACEOF
16418 /* end confdefs.h.  */
16419 $ac_includes_default
16420 int
16421 main ()
16422 {
16423 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16424 test_array [0] = 0
16425
16426   ;
16427   return 0;
16428 }
16429 _ACEOF
16430 rm -f conftest.$ac_objext
16431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16432   (eval $ac_compile) 2>&5
16433   ac_status=$?
16434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435   (exit $ac_status); } &&
16436          { ac_try='test -s conftest.$ac_objext'
16437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16438   (eval $ac_try) 2>&5
16439   ac_status=$?
16440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441   (exit $ac_status); }; }; then
16442   ac_lo=0 ac_mid=0
16443   while :; do
16444     cat >conftest.$ac_ext <<_ACEOF
16445 #line $LINENO "configure"
16446 /* confdefs.h.  */
16447 _ACEOF
16448 cat confdefs.h >>conftest.$ac_ext
16449 cat >>conftest.$ac_ext <<_ACEOF
16450 /* end confdefs.h.  */
16451 $ac_includes_default
16452 int
16453 main ()
16454 {
16455 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16456 test_array [0] = 0
16457
16458   ;
16459   return 0;
16460 }
16461 _ACEOF
16462 rm -f conftest.$ac_objext
16463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16464   (eval $ac_compile) 2>&5
16465   ac_status=$?
16466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467   (exit $ac_status); } &&
16468          { ac_try='test -s conftest.$ac_objext'
16469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16470   (eval $ac_try) 2>&5
16471   ac_status=$?
16472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473   (exit $ac_status); }; }; then
16474   ac_hi=$ac_mid; break
16475 else
16476   echo "$as_me: failed program was:" >&5
16477 sed 's/^/| /' conftest.$ac_ext >&5
16478
16479 ac_lo=`expr $ac_mid + 1`
16480                     if test $ac_lo -le $ac_mid; then
16481                       ac_lo= ac_hi=
16482                       break
16483                     fi
16484                     ac_mid=`expr 2 '*' $ac_mid + 1`
16485 fi
16486 rm -f conftest.$ac_objext conftest.$ac_ext
16487   done
16488 else
16489   echo "$as_me: failed program was:" >&5
16490 sed 's/^/| /' conftest.$ac_ext >&5
16491
16492 cat >conftest.$ac_ext <<_ACEOF
16493 #line $LINENO "configure"
16494 /* confdefs.h.  */
16495 _ACEOF
16496 cat confdefs.h >>conftest.$ac_ext
16497 cat >>conftest.$ac_ext <<_ACEOF
16498 /* end confdefs.h.  */
16499 $ac_includes_default
16500 int
16501 main ()
16502 {
16503 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16504 test_array [0] = 0
16505
16506   ;
16507   return 0;
16508 }
16509 _ACEOF
16510 rm -f conftest.$ac_objext
16511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16512   (eval $ac_compile) 2>&5
16513   ac_status=$?
16514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515   (exit $ac_status); } &&
16516          { ac_try='test -s conftest.$ac_objext'
16517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16518   (eval $ac_try) 2>&5
16519   ac_status=$?
16520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521   (exit $ac_status); }; }; then
16522   ac_hi=-1 ac_mid=-1
16523   while :; do
16524     cat >conftest.$ac_ext <<_ACEOF
16525 #line $LINENO "configure"
16526 /* confdefs.h.  */
16527 _ACEOF
16528 cat confdefs.h >>conftest.$ac_ext
16529 cat >>conftest.$ac_ext <<_ACEOF
16530 /* end confdefs.h.  */
16531 $ac_includes_default
16532 int
16533 main ()
16534 {
16535 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16536 test_array [0] = 0
16537
16538   ;
16539   return 0;
16540 }
16541 _ACEOF
16542 rm -f conftest.$ac_objext
16543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16544   (eval $ac_compile) 2>&5
16545   ac_status=$?
16546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547   (exit $ac_status); } &&
16548          { ac_try='test -s conftest.$ac_objext'
16549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16550   (eval $ac_try) 2>&5
16551   ac_status=$?
16552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553   (exit $ac_status); }; }; then
16554   ac_lo=$ac_mid; break
16555 else
16556   echo "$as_me: failed program was:" >&5
16557 sed 's/^/| /' conftest.$ac_ext >&5
16558
16559 ac_hi=`expr '(' $ac_mid ')' - 1`
16560                        if test $ac_mid -le $ac_hi; then
16561                          ac_lo= ac_hi=
16562                          break
16563                        fi
16564                        ac_mid=`expr 2 '*' $ac_mid`
16565 fi
16566 rm -f conftest.$ac_objext conftest.$ac_ext
16567   done
16568 else
16569   echo "$as_me: failed program was:" >&5
16570 sed 's/^/| /' conftest.$ac_ext >&5
16571
16572 ac_lo= ac_hi=
16573 fi
16574 rm -f conftest.$ac_objext conftest.$ac_ext
16575 fi
16576 rm -f conftest.$ac_objext conftest.$ac_ext
16577 # Binary search between lo and hi bounds.
16578 while test "x$ac_lo" != "x$ac_hi"; do
16579   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16580   cat >conftest.$ac_ext <<_ACEOF
16581 #line $LINENO "configure"
16582 /* confdefs.h.  */
16583 _ACEOF
16584 cat confdefs.h >>conftest.$ac_ext
16585 cat >>conftest.$ac_ext <<_ACEOF
16586 /* end confdefs.h.  */
16587 $ac_includes_default
16588 int
16589 main ()
16590 {
16591 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16592 test_array [0] = 0
16593
16594   ;
16595   return 0;
16596 }
16597 _ACEOF
16598 rm -f conftest.$ac_objext
16599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16600   (eval $ac_compile) 2>&5
16601   ac_status=$?
16602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603   (exit $ac_status); } &&
16604          { ac_try='test -s conftest.$ac_objext'
16605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16606   (eval $ac_try) 2>&5
16607   ac_status=$?
16608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609   (exit $ac_status); }; }; then
16610   ac_hi=$ac_mid
16611 else
16612   echo "$as_me: failed program was:" >&5
16613 sed 's/^/| /' conftest.$ac_ext >&5
16614
16615 ac_lo=`expr '(' $ac_mid ')' + 1`
16616 fi
16617 rm -f conftest.$ac_objext conftest.$ac_ext
16618 done
16619 case $ac_lo in
16620 ?*) ac_cv_sizeof_long_long=$ac_lo;;
16621 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16622 See \`config.log' for more details." >&5
16623 echo "$as_me: error: cannot compute sizeof (long long), 77
16624 See \`config.log' for more details." >&2;}
16625    { (exit 1); exit 1; }; } ;;
16626 esac
16627 else
16628   if test "$cross_compiling" = yes; then
16629   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16630 See \`config.log' for more details." >&5
16631 echo "$as_me: error: cannot run test program while cross compiling
16632 See \`config.log' for more details." >&2;}
16633    { (exit 1); exit 1; }; }
16634 else
16635   cat >conftest.$ac_ext <<_ACEOF
16636 #line $LINENO "configure"
16637 /* confdefs.h.  */
16638 _ACEOF
16639 cat confdefs.h >>conftest.$ac_ext
16640 cat >>conftest.$ac_ext <<_ACEOF
16641 /* end confdefs.h.  */
16642 $ac_includes_default
16643 long longval () { return (long) (sizeof (long long)); }
16644 unsigned long ulongval () { return (long) (sizeof (long long)); }
16645 #include <stdio.h>
16646 #include <stdlib.h>
16647 int
16648 main ()
16649 {
16650
16651   FILE *f = fopen ("conftest.val", "w");
16652   if (! f)
16653     exit (1);
16654   if (((long) (sizeof (long long))) < 0)
16655     {
16656       long i = longval ();
16657       if (i != ((long) (sizeof (long long))))
16658         exit (1);
16659       fprintf (f, "%ld\n", i);
16660     }
16661   else
16662     {
16663       unsigned long i = ulongval ();
16664       if (i != ((long) (sizeof (long long))))
16665         exit (1);
16666       fprintf (f, "%lu\n", i);
16667     }
16668   exit (ferror (f) || fclose (f) != 0);
16669
16670   ;
16671   return 0;
16672 }
16673 _ACEOF
16674 rm -f conftest$ac_exeext
16675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16676   (eval $ac_link) 2>&5
16677   ac_status=$?
16678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16681   (eval $ac_try) 2>&5
16682   ac_status=$?
16683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684   (exit $ac_status); }; }; then
16685   ac_cv_sizeof_long_long=`cat conftest.val`
16686 else
16687   echo "$as_me: program exited with status $ac_status" >&5
16688 echo "$as_me: failed program was:" >&5
16689 sed 's/^/| /' conftest.$ac_ext >&5
16690
16691 ( exit $ac_status )
16692 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16693 See \`config.log' for more details." >&5
16694 echo "$as_me: error: cannot compute sizeof (long long), 77
16695 See \`config.log' for more details." >&2;}
16696    { (exit 1); exit 1; }; }
16697 fi
16698 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16699 fi
16700 fi
16701 rm -f conftest.val
16702 else
16703   ac_cv_sizeof_long_long=0
16704 fi
16705 fi
16706 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16707 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16708 cat >>confdefs.h <<_ACEOF
16709 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16710 _ACEOF
16711
16712
16713 esac
16714
16715 echo "$as_me:$LINENO: checking size of wchar_t" >&5
16716 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
16717 if test "${wx_cv_sizeof_wchar_t+set}" = set; then
16718   echo $ECHO_N "(cached) $ECHO_C" >&6
16719 else
16720
16721     if test "$cross_compiling" = yes; then
16722
16723             case "${host}" in
16724               *-pc-msdosdjgpp )
16725                 wx_cv_sizeof_wchar_t=0
16726                 ;;
16727               * )
16728                 wx_cv_sizeof_wchar_t=4
16729                 ;;
16730             esac
16731
16732
16733 else
16734   cat >conftest.$ac_ext <<_ACEOF
16735 #line $LINENO "configure"
16736 /* confdefs.h.  */
16737 _ACEOF
16738 cat confdefs.h >>conftest.$ac_ext
16739 cat >>conftest.$ac_ext <<_ACEOF
16740 /* end confdefs.h.  */
16741
16742             /* DJGPP only has fake wchar_t: */
16743             #ifdef __DJGPP__
16744             #  error "fake wchar_t"
16745             #endif
16746             #ifdef HAVE_WCHAR_H
16747             #  ifdef __CYGWIN__
16748             #    include <stddef.h>
16749             #  endif
16750             #  include <wchar.h>
16751             #endif
16752             #ifdef HAVE_STDLIB_H
16753             #  include <stdlib.h>
16754             #endif
16755             #include <stdio.h>
16756             int main()
16757             {
16758                 FILE *f=fopen("conftestval", "w");
16759                 if (!f) exit(1);
16760                 fprintf(f, "%i", sizeof(wchar_t));
16761                 exit(0);
16762             }
16763
16764 _ACEOF
16765 rm -f conftest$ac_exeext
16766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16767   (eval $ac_link) 2>&5
16768   ac_status=$?
16769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16772   (eval $ac_try) 2>&5
16773   ac_status=$?
16774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775   (exit $ac_status); }; }; then
16776   wx_cv_sizeof_wchar_t=`cat conftestval`
16777 else
16778   echo "$as_me: program exited with status $ac_status" >&5
16779 echo "$as_me: failed program was:" >&5
16780 sed 's/^/| /' conftest.$ac_ext >&5
16781
16782 ( exit $ac_status )
16783 wx_cv_sizeof_wchar_t=0
16784 fi
16785 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16786 fi
16787
16788 fi
16789 echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
16790 echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
16791
16792 cat >>confdefs.h <<_ACEOF
16793 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
16794 _ACEOF
16795
16796
16797 # Check whether --enable-largefile or --disable-largefile was given.
16798 if test "${enable_largefile+set}" = set; then
16799   enableval="$enable_largefile"
16800
16801 fi;
16802 if test "$enable_largefile" != no; then
16803             wx_largefile=no
16804
16805     echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16806 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
16807 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
16808   echo $ECHO_N "(cached) $ECHO_C" >&6
16809 else
16810
16811           cat >conftest.$ac_ext <<_ACEOF
16812 #line $LINENO "configure"
16813 /* confdefs.h.  */
16814 _ACEOF
16815 cat confdefs.h >>conftest.$ac_ext
16816 cat >>conftest.$ac_ext <<_ACEOF
16817 /* end confdefs.h.  */
16818 #define _FILE_OFFSET_BITS 64
16819                           #include <sys/types.h>
16820 int
16821 main ()
16822 {
16823 typedef struct {
16824     unsigned int field: sizeof(off_t) == 8;
16825 } wxlf;
16826
16827   ;
16828   return 0;
16829 }
16830 _ACEOF
16831 rm -f conftest.$ac_objext
16832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16833   (eval $ac_compile) 2>&5
16834   ac_status=$?
16835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836   (exit $ac_status); } &&
16837          { ac_try='test -s conftest.$ac_objext'
16838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16839   (eval $ac_try) 2>&5
16840   ac_status=$?
16841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842   (exit $ac_status); }; }; then
16843   ac_cv_sys_file_offset_bits=64
16844 else
16845   echo "$as_me: failed program was:" >&5
16846 sed 's/^/| /' conftest.$ac_ext >&5
16847
16848 ac_cv_sys_file_offset_bits=no
16849 fi
16850 rm -f conftest.$ac_objext conftest.$ac_ext
16851
16852
16853 fi
16854 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
16855 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
16856
16857     if test "$ac_cv_sys_file_offset_bits" != no; then
16858         wx_largefile=yes
16859         cat >>confdefs.h <<_ACEOF
16860 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16861 _ACEOF
16862
16863     fi
16864
16865     if test "x$wx_largefile" != "xyes"; then
16866
16867     echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
16868 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
16869 if test "${ac_cv_sys_large_files+set}" = set; then
16870   echo $ECHO_N "(cached) $ECHO_C" >&6
16871 else
16872
16873           cat >conftest.$ac_ext <<_ACEOF
16874 #line $LINENO "configure"
16875 /* confdefs.h.  */
16876 _ACEOF
16877 cat confdefs.h >>conftest.$ac_ext
16878 cat >>conftest.$ac_ext <<_ACEOF
16879 /* end confdefs.h.  */
16880 #define _LARGE_FILES 1
16881                           #include <sys/types.h>
16882 int
16883 main ()
16884 {
16885 typedef struct {
16886     unsigned int field: sizeof(off_t) == 8;
16887 } wxlf;
16888
16889   ;
16890   return 0;
16891 }
16892 _ACEOF
16893 rm -f conftest.$ac_objext
16894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16895   (eval $ac_compile) 2>&5
16896   ac_status=$?
16897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898   (exit $ac_status); } &&
16899          { ac_try='test -s conftest.$ac_objext'
16900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16901   (eval $ac_try) 2>&5
16902   ac_status=$?
16903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904   (exit $ac_status); }; }; then
16905   ac_cv_sys_large_files=1
16906 else
16907   echo "$as_me: failed program was:" >&5
16908 sed 's/^/| /' conftest.$ac_ext >&5
16909
16910 ac_cv_sys_large_files=no
16911 fi
16912 rm -f conftest.$ac_objext conftest.$ac_ext
16913
16914
16915 fi
16916 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
16917 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
16918
16919     if test "$ac_cv_sys_large_files" != no; then
16920         wx_largefile=yes
16921         cat >>confdefs.h <<_ACEOF
16922 #define _LARGE_FILES $ac_cv_sys_large_files
16923 _ACEOF
16924
16925     fi
16926
16927     fi
16928
16929     echo "$as_me:$LINENO: checking if large file support is available" >&5
16930 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
16931     if test "x$wx_largefile" = "xyes"; then
16932         cat >>confdefs.h <<\_ACEOF
16933 #define HAVE_LARGEFILE_SUPPORT 1
16934 _ACEOF
16935
16936     fi
16937     echo "$as_me:$LINENO: result: $wx_largefile" >&5
16938 echo "${ECHO_T}$wx_largefile" >&6
16939 fi
16940
16941
16942 if test "x$wx_largefile" = "xyes"; then
16943     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
16944         WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
16945     else
16946         WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
16947     fi
16948     CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
16949 fi
16950
16951 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
16952 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
16953 if test "${ac_cv_c_bigendian+set}" = set; then
16954   echo $ECHO_N "(cached) $ECHO_C" >&6
16955 else
16956   ac_cv_c_bigendian=unknown
16957 # See if sys/param.h defines the BYTE_ORDER macro.
16958 cat >conftest.$ac_ext <<_ACEOF
16959 #line $LINENO "configure"
16960 /* confdefs.h.  */
16961 _ACEOF
16962 cat confdefs.h >>conftest.$ac_ext
16963 cat >>conftest.$ac_ext <<_ACEOF
16964 /* end confdefs.h.  */
16965 #include <sys/types.h>
16966 #include <sys/param.h>
16967 int
16968 main ()
16969 {
16970
16971 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16972  bogus endian macros
16973 #endif
16974   ;
16975   return 0;
16976 }
16977 _ACEOF
16978 rm -f conftest.$ac_objext
16979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16980   (eval $ac_compile) 2>&5
16981   ac_status=$?
16982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983   (exit $ac_status); } &&
16984          { ac_try='test -s conftest.$ac_objext'
16985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16986   (eval $ac_try) 2>&5
16987   ac_status=$?
16988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989   (exit $ac_status); }; }; then
16990   # It does; now see whether it defined to BIG_ENDIAN or not.
16991 cat >conftest.$ac_ext <<_ACEOF
16992 #line $LINENO "configure"
16993 /* confdefs.h.  */
16994 _ACEOF
16995 cat confdefs.h >>conftest.$ac_ext
16996 cat >>conftest.$ac_ext <<_ACEOF
16997 /* end confdefs.h.  */
16998 #include <sys/types.h>
16999 #include <sys/param.h>
17000 int
17001 main ()
17002 {
17003
17004 #if BYTE_ORDER != BIG_ENDIAN
17005  not big endian
17006 #endif
17007   ;
17008   return 0;
17009 }
17010 _ACEOF
17011 rm -f conftest.$ac_objext
17012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17013   (eval $ac_compile) 2>&5
17014   ac_status=$?
17015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016   (exit $ac_status); } &&
17017          { ac_try='test -s conftest.$ac_objext'
17018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17019   (eval $ac_try) 2>&5
17020   ac_status=$?
17021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022   (exit $ac_status); }; }; then
17023   ac_cv_c_bigendian=yes
17024 else
17025   echo "$as_me: failed program was:" >&5
17026 sed 's/^/| /' conftest.$ac_ext >&5
17027
17028 ac_cv_c_bigendian=no
17029 fi
17030 rm -f conftest.$ac_objext conftest.$ac_ext
17031 else
17032   echo "$as_me: failed program was:" >&5
17033 sed 's/^/| /' conftest.$ac_ext >&5
17034
17035 fi
17036 rm -f conftest.$ac_objext conftest.$ac_ext
17037 if test $ac_cv_c_bigendian = unknown; then
17038 if test "$cross_compiling" = yes; then
17039   ac_cv_c_bigendian=unknown
17040 else
17041   cat >conftest.$ac_ext <<_ACEOF
17042 #line $LINENO "configure"
17043 /* confdefs.h.  */
17044 _ACEOF
17045 cat confdefs.h >>conftest.$ac_ext
17046 cat >>conftest.$ac_ext <<_ACEOF
17047 /* end confdefs.h.  */
17048 main () {
17049   /* Are we little or big endian?  From Harbison&Steele.  */
17050   union
17051   {
17052     long l;
17053     char c[sizeof (long)];
17054   } u;
17055   u.l = 1;
17056   exit (u.c[sizeof (long) - 1] == 1);
17057 }
17058 _ACEOF
17059 rm -f conftest$ac_exeext
17060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17061   (eval $ac_link) 2>&5
17062   ac_status=$?
17063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17066   (eval $ac_try) 2>&5
17067   ac_status=$?
17068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069   (exit $ac_status); }; }; then
17070   ac_cv_c_bigendian=no
17071 else
17072   echo "$as_me: program exited with status $ac_status" >&5
17073 echo "$as_me: failed program was:" >&5
17074 sed 's/^/| /' conftest.$ac_ext >&5
17075
17076 ( exit $ac_status )
17077 ac_cv_c_bigendian=yes
17078 fi
17079 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17080 fi
17081 fi
17082 fi
17083 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17084 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
17085 if test $ac_cv_c_bigendian = unknown; then
17086   { 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
17087 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;}
17088 fi
17089 if test $ac_cv_c_bigendian = yes; then
17090   cat >>confdefs.h <<\_ACEOF
17091 #define WORDS_BIGENDIAN 1
17092 _ACEOF
17093
17094 fi
17095
17096
17097
17098 ac_ext=cc
17099 ac_cpp='$CXXCPP $CPPFLAGS'
17100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17103 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
17104 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
17105 if test -z "$CXXCPP"; then
17106   if test "${ac_cv_prog_CXXCPP+set}" = set; then
17107   echo $ECHO_N "(cached) $ECHO_C" >&6
17108 else
17109       # Double quotes because CXXCPP needs to be expanded
17110     for CXXCPP in "$CXX -E" "/lib/cpp"
17111     do
17112       ac_preproc_ok=false
17113 for ac_cxx_preproc_warn_flag in '' yes
17114 do
17115   # Use a header file that comes with gcc, so configuring glibc
17116   # with a fresh cross-compiler works.
17117   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17118   # <limits.h> exists even on freestanding compilers.
17119   # On the NeXT, cc -E runs the code through the compiler's parser,
17120   # not just through cpp. "Syntax error" is here to catch this case.
17121   cat >conftest.$ac_ext <<_ACEOF
17122 #line $LINENO "configure"
17123 /* confdefs.h.  */
17124 _ACEOF
17125 cat confdefs.h >>conftest.$ac_ext
17126 cat >>conftest.$ac_ext <<_ACEOF
17127 /* end confdefs.h.  */
17128 #ifdef __STDC__
17129 # include <limits.h>
17130 #else
17131 # include <assert.h>
17132 #endif
17133                      Syntax error
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   :
17153 else
17154   echo "$as_me: failed program was:" >&5
17155 sed 's/^/| /' conftest.$ac_ext >&5
17156
17157   # Broken: fails on valid input.
17158 continue
17159 fi
17160 rm -f conftest.err conftest.$ac_ext
17161
17162   # OK, works on sane cases.  Now check whether non-existent headers
17163   # can be detected and how.
17164   cat >conftest.$ac_ext <<_ACEOF
17165 #line $LINENO "configure"
17166 /* confdefs.h.  */
17167 _ACEOF
17168 cat confdefs.h >>conftest.$ac_ext
17169 cat >>conftest.$ac_ext <<_ACEOF
17170 /* end confdefs.h.  */
17171 #include <ac_nonexistent.h>
17172 _ACEOF
17173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17174   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17175   ac_status=$?
17176   grep -v '^ *+' conftest.er1 >conftest.err
17177   rm -f conftest.er1
17178   cat conftest.err >&5
17179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180   (exit $ac_status); } >/dev/null; then
17181   if test -s conftest.err; then
17182     ac_cpp_err=$ac_cxx_preproc_warn_flag
17183   else
17184     ac_cpp_err=
17185   fi
17186 else
17187   ac_cpp_err=yes
17188 fi
17189 if test -z "$ac_cpp_err"; then
17190   # Broken: success on invalid input.
17191 continue
17192 else
17193   echo "$as_me: failed program was:" >&5
17194 sed 's/^/| /' conftest.$ac_ext >&5
17195
17196   # Passes both tests.
17197 ac_preproc_ok=:
17198 break
17199 fi
17200 rm -f conftest.err conftest.$ac_ext
17201
17202 done
17203 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17204 rm -f conftest.err conftest.$ac_ext
17205 if $ac_preproc_ok; then
17206   break
17207 fi
17208
17209     done
17210     ac_cv_prog_CXXCPP=$CXXCPP
17211
17212 fi
17213   CXXCPP=$ac_cv_prog_CXXCPP
17214 else
17215   ac_cv_prog_CXXCPP=$CXXCPP
17216 fi
17217 echo "$as_me:$LINENO: result: $CXXCPP" >&5
17218 echo "${ECHO_T}$CXXCPP" >&6
17219 ac_preproc_ok=false
17220 for ac_cxx_preproc_warn_flag in '' yes
17221 do
17222   # Use a header file that comes with gcc, so configuring glibc
17223   # with a fresh cross-compiler works.
17224   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17225   # <limits.h> exists even on freestanding compilers.
17226   # On the NeXT, cc -E runs the code through the compiler's parser,
17227   # not just through cpp. "Syntax error" is here to catch this case.
17228   cat >conftest.$ac_ext <<_ACEOF
17229 #line $LINENO "configure"
17230 /* confdefs.h.  */
17231 _ACEOF
17232 cat confdefs.h >>conftest.$ac_ext
17233 cat >>conftest.$ac_ext <<_ACEOF
17234 /* end confdefs.h.  */
17235 #ifdef __STDC__
17236 # include <limits.h>
17237 #else
17238 # include <assert.h>
17239 #endif
17240                      Syntax error
17241 _ACEOF
17242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17243   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17244   ac_status=$?
17245   grep -v '^ *+' conftest.er1 >conftest.err
17246   rm -f conftest.er1
17247   cat conftest.err >&5
17248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249   (exit $ac_status); } >/dev/null; then
17250   if test -s conftest.err; then
17251     ac_cpp_err=$ac_cxx_preproc_warn_flag
17252   else
17253     ac_cpp_err=
17254   fi
17255 else
17256   ac_cpp_err=yes
17257 fi
17258 if test -z "$ac_cpp_err"; then
17259   :
17260 else
17261   echo "$as_me: failed program was:" >&5
17262 sed 's/^/| /' conftest.$ac_ext >&5
17263
17264   # Broken: fails on valid input.
17265 continue
17266 fi
17267 rm -f conftest.err conftest.$ac_ext
17268
17269   # OK, works on sane cases.  Now check whether non-existent headers
17270   # can be detected and how.
17271   cat >conftest.$ac_ext <<_ACEOF
17272 #line $LINENO "configure"
17273 /* confdefs.h.  */
17274 _ACEOF
17275 cat confdefs.h >>conftest.$ac_ext
17276 cat >>conftest.$ac_ext <<_ACEOF
17277 /* end confdefs.h.  */
17278 #include <ac_nonexistent.h>
17279 _ACEOF
17280 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17281   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17282   ac_status=$?
17283   grep -v '^ *+' conftest.er1 >conftest.err
17284   rm -f conftest.er1
17285   cat conftest.err >&5
17286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287   (exit $ac_status); } >/dev/null; then
17288   if test -s conftest.err; then
17289     ac_cpp_err=$ac_cxx_preproc_warn_flag
17290   else
17291     ac_cpp_err=
17292   fi
17293 else
17294   ac_cpp_err=yes
17295 fi
17296 if test -z "$ac_cpp_err"; then
17297   # Broken: success on invalid input.
17298 continue
17299 else
17300   echo "$as_me: failed program was:" >&5
17301 sed 's/^/| /' conftest.$ac_ext >&5
17302
17303   # Passes both tests.
17304 ac_preproc_ok=:
17305 break
17306 fi
17307 rm -f conftest.err conftest.$ac_ext
17308
17309 done
17310 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17311 rm -f conftest.err conftest.$ac_ext
17312 if $ac_preproc_ok; then
17313   :
17314 else
17315   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17316 See \`config.log' for more details." >&5
17317 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17318 See \`config.log' for more details." >&2;}
17319    { (exit 1); exit 1; }; }
17320 fi
17321
17322 ac_ext=cc
17323 ac_cpp='$CXXCPP $CPPFLAGS'
17324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17327
17328
17329
17330   if test "$cross_compiling" = "yes"; then
17331     cat >>confdefs.h <<\_ACEOF
17332 #define wxUSE_IOSTREAMH 1
17333 _ACEOF
17334
17335   else
17336
17337
17338     ac_ext=cc
17339 ac_cpp='$CXXCPP $CPPFLAGS'
17340 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17341 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17342 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17343
17344
17345
17346 for ac_header in iostream
17347 do
17348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17350   echo "$as_me:$LINENO: checking for $ac_header" >&5
17351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17353   echo $ECHO_N "(cached) $ECHO_C" >&6
17354 fi
17355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17357 else
17358   # Is the header compilable?
17359 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17361 cat >conftest.$ac_ext <<_ACEOF
17362 #line $LINENO "configure"
17363 /* confdefs.h.  */
17364 _ACEOF
17365 cat confdefs.h >>conftest.$ac_ext
17366 cat >>conftest.$ac_ext <<_ACEOF
17367 /* end confdefs.h.  */
17368 $ac_includes_default
17369 #include <$ac_header>
17370 _ACEOF
17371 rm -f conftest.$ac_objext
17372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17373   (eval $ac_compile) 2>&5
17374   ac_status=$?
17375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376   (exit $ac_status); } &&
17377          { ac_try='test -s conftest.$ac_objext'
17378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17379   (eval $ac_try) 2>&5
17380   ac_status=$?
17381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382   (exit $ac_status); }; }; then
17383   ac_header_compiler=yes
17384 else
17385   echo "$as_me: failed program was:" >&5
17386 sed 's/^/| /' conftest.$ac_ext >&5
17387
17388 ac_header_compiler=no
17389 fi
17390 rm -f conftest.$ac_objext conftest.$ac_ext
17391 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17392 echo "${ECHO_T}$ac_header_compiler" >&6
17393
17394 # Is the header present?
17395 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17397 cat >conftest.$ac_ext <<_ACEOF
17398 #line $LINENO "configure"
17399 /* confdefs.h.  */
17400 _ACEOF
17401 cat confdefs.h >>conftest.$ac_ext
17402 cat >>conftest.$ac_ext <<_ACEOF
17403 /* end confdefs.h.  */
17404 #include <$ac_header>
17405 _ACEOF
17406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17407   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17408   ac_status=$?
17409   grep -v '^ *+' conftest.er1 >conftest.err
17410   rm -f conftest.er1
17411   cat conftest.err >&5
17412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413   (exit $ac_status); } >/dev/null; then
17414   if test -s conftest.err; then
17415     ac_cpp_err=$ac_cxx_preproc_warn_flag
17416   else
17417     ac_cpp_err=
17418   fi
17419 else
17420   ac_cpp_err=yes
17421 fi
17422 if test -z "$ac_cpp_err"; then
17423   ac_header_preproc=yes
17424 else
17425   echo "$as_me: failed program was:" >&5
17426 sed 's/^/| /' conftest.$ac_ext >&5
17427
17428   ac_header_preproc=no
17429 fi
17430 rm -f conftest.err conftest.$ac_ext
17431 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17432 echo "${ECHO_T}$ac_header_preproc" >&6
17433
17434 # So?  What about this header?
17435 case $ac_header_compiler:$ac_header_preproc in
17436   yes:no )
17437     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17439     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17441     (
17442       cat <<\_ASBOX
17443 ## ------------------------------------ ##
17444 ## Report this to bug-autoconf@gnu.org. ##
17445 ## ------------------------------------ ##
17446 _ASBOX
17447     ) |
17448       sed "s/^/$as_me: WARNING:     /" >&2
17449     ;;
17450   no:yes )
17451     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17453     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17454 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17455     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17457     (
17458       cat <<\_ASBOX
17459 ## ------------------------------------ ##
17460 ## Report this to bug-autoconf@gnu.org. ##
17461 ## ------------------------------------ ##
17462 _ASBOX
17463     ) |
17464       sed "s/^/$as_me: WARNING:     /" >&2
17465     ;;
17466 esac
17467 echo "$as_me:$LINENO: checking for $ac_header" >&5
17468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17470   echo $ECHO_N "(cached) $ECHO_C" >&6
17471 else
17472   eval "$as_ac_Header=$ac_header_preproc"
17473 fi
17474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17476
17477 fi
17478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17479   cat >>confdefs.h <<_ACEOF
17480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17481 _ACEOF
17482
17483 fi
17484
17485 done
17486
17487
17488     if test "$ac_cv_header_iostream" = "yes" ; then
17489       :
17490     else
17491       cat >>confdefs.h <<\_ACEOF
17492 #define wxUSE_IOSTREAMH 1
17493 _ACEOF
17494
17495     fi
17496
17497     ac_ext=c
17498 ac_cpp='$CPP $CPPFLAGS'
17499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17502
17503   fi
17504
17505
17506
17507   echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
17508 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
17509 if test "${wx_cv_cpp_bool+set}" = set; then
17510   echo $ECHO_N "(cached) $ECHO_C" >&6
17511 else
17512
17513
17514
17515     ac_ext=cc
17516 ac_cpp='$CXXCPP $CPPFLAGS'
17517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17520
17521
17522     cat >conftest.$ac_ext <<_ACEOF
17523 #line $LINENO "configure"
17524 /* confdefs.h.  */
17525 _ACEOF
17526 cat confdefs.h >>conftest.$ac_ext
17527 cat >>conftest.$ac_ext <<_ACEOF
17528 /* end confdefs.h.  */
17529
17530
17531 int
17532 main ()
17533 {
17534
17535         bool b = true;
17536
17537         return 0;
17538
17539   ;
17540   return 0;
17541 }
17542 _ACEOF
17543 rm -f conftest.$ac_objext
17544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17545   (eval $ac_compile) 2>&5
17546   ac_status=$?
17547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548   (exit $ac_status); } &&
17549          { ac_try='test -s conftest.$ac_objext'
17550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17551   (eval $ac_try) 2>&5
17552   ac_status=$?
17553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554   (exit $ac_status); }; }; then
17555
17556         wx_cv_cpp_bool=yes
17557
17558 else
17559   echo "$as_me: failed program was:" >&5
17560 sed 's/^/| /' conftest.$ac_ext >&5
17561
17562
17563         wx_cv_cpp_bool=no
17564
17565
17566 fi
17567 rm -f conftest.$ac_objext conftest.$ac_ext
17568
17569     ac_ext=c
17570 ac_cpp='$CPP $CPPFLAGS'
17571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17574
17575
17576 fi
17577 echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
17578 echo "${ECHO_T}$wx_cv_cpp_bool" >&6
17579
17580   if test "$wx_cv_cpp_bool" = "yes"; then
17581     cat >>confdefs.h <<\_ACEOF
17582 #define HAVE_BOOL 1
17583 _ACEOF
17584
17585   fi
17586
17587
17588
17589   echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
17590 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
17591 if test "${wx_cv_explicit+set}" = set; then
17592   echo $ECHO_N "(cached) $ECHO_C" >&6
17593 else
17594
17595
17596
17597     ac_ext=cc
17598 ac_cpp='$CXXCPP $CPPFLAGS'
17599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17602
17603
17604             cat >conftest.$ac_ext <<_ACEOF
17605 #line $LINENO "configure"
17606 /* confdefs.h.  */
17607 _ACEOF
17608 cat confdefs.h >>conftest.$ac_ext
17609 cat >>conftest.$ac_ext <<_ACEOF
17610 /* end confdefs.h.  */
17611
17612         class Foo { public: explicit Foo(int) {} };
17613
17614 int
17615 main ()
17616 {
17617
17618         return 0;
17619
17620   ;
17621   return 0;
17622 }
17623 _ACEOF
17624 rm -f conftest.$ac_objext
17625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17626   (eval $ac_compile) 2>&5
17627   ac_status=$?
17628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629   (exit $ac_status); } &&
17630          { ac_try='test -s conftest.$ac_objext'
17631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17632   (eval $ac_try) 2>&5
17633   ac_status=$?
17634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635   (exit $ac_status); }; }; then
17636
17637         cat >conftest.$ac_ext <<_ACEOF
17638 #line $LINENO "configure"
17639 /* confdefs.h.  */
17640 _ACEOF
17641 cat confdefs.h >>conftest.$ac_ext
17642 cat >>conftest.$ac_ext <<_ACEOF
17643 /* end confdefs.h.  */
17644
17645                 class Foo { public: explicit Foo(int) {} };
17646                 static void TakeFoo(const Foo& foo) { }
17647
17648 int
17649 main ()
17650 {
17651
17652                 TakeFoo(17);
17653                 return 0;
17654
17655   ;
17656   return 0;
17657 }
17658 _ACEOF
17659 rm -f conftest.$ac_objext
17660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17661   (eval $ac_compile) 2>&5
17662   ac_status=$?
17663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664   (exit $ac_status); } &&
17665          { ac_try='test -s conftest.$ac_objext'
17666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17667   (eval $ac_try) 2>&5
17668   ac_status=$?
17669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670   (exit $ac_status); }; }; then
17671   wx_cv_explicit=no
17672 else
17673   echo "$as_me: failed program was:" >&5
17674 sed 's/^/| /' conftest.$ac_ext >&5
17675
17676 wx_cv_explicit=yes
17677
17678 fi
17679 rm -f conftest.$ac_objext conftest.$ac_ext
17680
17681 else
17682   echo "$as_me: failed program was:" >&5
17683 sed 's/^/| /' conftest.$ac_ext >&5
17684
17685 wx_cv_explicit=no
17686
17687 fi
17688 rm -f conftest.$ac_objext conftest.$ac_ext
17689
17690     ac_ext=c
17691 ac_cpp='$CPP $CPPFLAGS'
17692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17695
17696
17697 fi
17698 echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
17699 echo "${ECHO_T}$wx_cv_explicit" >&6
17700
17701   if test "$wx_cv_explicit" = "yes"; then
17702     cat >>confdefs.h <<\_ACEOF
17703 #define HAVE_EXPLICIT 1
17704 _ACEOF
17705
17706   fi
17707
17708
17709 echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
17710 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
17711 if test "${ac_cv_cxx_const_cast+set}" = set; then
17712   echo $ECHO_N "(cached) $ECHO_C" >&6
17713 else
17714
17715
17716  ac_ext=cc
17717 ac_cpp='$CXXCPP $CPPFLAGS'
17718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17721
17722  cat >conftest.$ac_ext <<_ACEOF
17723 #line $LINENO "configure"
17724 /* confdefs.h.  */
17725 _ACEOF
17726 cat confdefs.h >>conftest.$ac_ext
17727 cat >>conftest.$ac_ext <<_ACEOF
17728 /* end confdefs.h.  */
17729
17730 int
17731 main ()
17732 {
17733 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
17734   ;
17735   return 0;
17736 }
17737 _ACEOF
17738 rm -f conftest.$ac_objext
17739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17740   (eval $ac_compile) 2>&5
17741   ac_status=$?
17742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743   (exit $ac_status); } &&
17744          { ac_try='test -s conftest.$ac_objext'
17745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17746   (eval $ac_try) 2>&5
17747   ac_status=$?
17748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749   (exit $ac_status); }; }; then
17750   ac_cv_cxx_const_cast=yes
17751 else
17752   echo "$as_me: failed program was:" >&5
17753 sed 's/^/| /' conftest.$ac_ext >&5
17754
17755 ac_cv_cxx_const_cast=no
17756 fi
17757 rm -f conftest.$ac_objext conftest.$ac_ext
17758  ac_ext=c
17759 ac_cpp='$CPP $CPPFLAGS'
17760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17763
17764
17765 fi
17766 echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
17767 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
17768 if test "$ac_cv_cxx_const_cast" = yes; then
17769
17770 cat >>confdefs.h <<\_ACEOF
17771 #define HAVE_CONST_CAST
17772 _ACEOF
17773
17774 fi
17775
17776
17777 if test "$wxUSE_STL" = "yes"; then
17778     ac_ext=cc
17779 ac_cpp='$CXXCPP $CPPFLAGS'
17780 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17781 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17782 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17783
17784
17785         echo "$as_me:$LINENO: checking for basic STL functionality" >&5
17786 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
17787     cat >conftest.$ac_ext <<_ACEOF
17788 #line $LINENO "configure"
17789 /* confdefs.h.  */
17790 _ACEOF
17791 cat confdefs.h >>conftest.$ac_ext
17792 cat >>conftest.$ac_ext <<_ACEOF
17793 /* end confdefs.h.  */
17794 #include <string>
17795                     #include <functional>
17796                     #include <algorithm>
17797                     #include <vector>
17798                     #include <list>
17799 int
17800 main ()
17801 {
17802 std::vector<int> moo;
17803                      std::list<int> foo;
17804                      std::vector<int>::iterator it =
17805                          std::find_if(moo.begin(), moo.end(),
17806                                       std::bind2nd(std::less<int>(), 3));
17807   ;
17808   return 0;
17809 }
17810 _ACEOF
17811 rm -f conftest.$ac_objext
17812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17813   (eval $ac_compile) 2>&5
17814   ac_status=$?
17815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816   (exit $ac_status); } &&
17817          { ac_try='test -s conftest.$ac_objext'
17818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17819   (eval $ac_try) 2>&5
17820   ac_status=$?
17821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822   (exit $ac_status); }; }; then
17823   echo "$as_me:$LINENO: result: yes" >&5
17824 echo "${ECHO_T}yes" >&6
17825 else
17826   echo "$as_me: failed program was:" >&5
17827 sed 's/^/| /' conftest.$ac_ext >&5
17828
17829 echo "$as_me:$LINENO: result: no" >&5
17830 echo "${ECHO_T}no" >&6
17831                      { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
17832 echo "$as_me: error: Basic STL functionality missing" >&2;}
17833    { (exit 1); exit 1; }; }
17834 fi
17835 rm -f conftest.$ac_objext conftest.$ac_ext
17836
17837         echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
17838 echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
17839     cat >conftest.$ac_ext <<_ACEOF
17840 #line $LINENO "configure"
17841 /* confdefs.h.  */
17842 _ACEOF
17843 cat confdefs.h >>conftest.$ac_ext
17844 cat >>conftest.$ac_ext <<_ACEOF
17845 /* end confdefs.h.  */
17846 #include <string>
17847 int
17848 main ()
17849 {
17850 std::wstring foo;
17851   ;
17852   return 0;
17853 }
17854 _ACEOF
17855 rm -f conftest.$ac_objext
17856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17857   (eval $ac_compile) 2>&5
17858   ac_status=$?
17859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860   (exit $ac_status); } &&
17861          { ac_try='test -s conftest.$ac_objext'
17862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17863   (eval $ac_try) 2>&5
17864   ac_status=$?
17865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866   (exit $ac_status); }; }; then
17867   echo "$as_me:$LINENO: result: yes" >&5
17868 echo "${ECHO_T}yes" >&6
17869                     cat >>confdefs.h <<\_ACEOF
17870 #define HAVE_STD_WSTRING 1
17871 _ACEOF
17872
17873 else
17874   echo "$as_me: failed program was:" >&5
17875 sed 's/^/| /' conftest.$ac_ext >&5
17876
17877 echo "$as_me:$LINENO: result: no" >&5
17878 echo "${ECHO_T}no" >&6
17879 fi
17880 rm -f conftest.$ac_objext conftest.$ac_ext
17881
17882         echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
17883 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
17884     cat >conftest.$ac_ext <<_ACEOF
17885 #line $LINENO "configure"
17886 /* confdefs.h.  */
17887 _ACEOF
17888 cat confdefs.h >>conftest.$ac_ext
17889 cat >>conftest.$ac_ext <<_ACEOF
17890 /* end confdefs.h.  */
17891 #include <string>
17892 int
17893 main ()
17894 {
17895 std::string foo, bar;
17896                     foo.compare(bar);
17897                     foo.compare(1, 1, bar);
17898                     foo.compare(1, 1, bar, 1, 1);
17899                     foo.compare("");
17900                     foo.compare(1, 1, "");
17901                     foo.compare(1, 1, "", 2);
17902   ;
17903   return 0;
17904 }
17905 _ACEOF
17906 rm -f conftest.$ac_objext
17907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17908   (eval $ac_compile) 2>&5
17909   ac_status=$?
17910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911   (exit $ac_status); } &&
17912          { ac_try='test -s conftest.$ac_objext'
17913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17914   (eval $ac_try) 2>&5
17915   ac_status=$?
17916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917   (exit $ac_status); }; }; then
17918   echo "$as_me:$LINENO: result: yes" >&5
17919 echo "${ECHO_T}yes" >&6
17920                     cat >>confdefs.h <<\_ACEOF
17921 #define HAVE_STD_STRING_COMPARE 1
17922 _ACEOF
17923
17924 else
17925   echo "$as_me: failed program was:" >&5
17926 sed 's/^/| /' conftest.$ac_ext >&5
17927
17928 echo "$as_me:$LINENO: result: no" >&5
17929 echo "${ECHO_T}no" >&6
17930 fi
17931 rm -f conftest.$ac_objext conftest.$ac_ext
17932
17933     ac_ext=c
17934 ac_cpp='$CPP $CPPFLAGS'
17935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17938
17939 fi
17940
17941
17942 SEARCH_INCLUDE="\
17943     /usr/local/include        \
17944                               \
17945     /usr/Motif-1.2/include    \
17946     /usr/Motif-2.1/include    \
17947                               \
17948     /usr/include/Motif1.2     \
17949     /opt/xpm/include/X11      \
17950     /opt/GBxpm/include/       \
17951     /opt/GBxpm/X11/include/   \
17952                               \
17953     /usr/Motif1.2/include     \
17954     /usr/dt/include           \
17955     /usr/openwin/include      \
17956                               \
17957     /usr/include/Xm           \
17958                               \
17959     /usr/X11R6/include        \
17960     /usr/X11R6.4/include      \
17961     /usr/X11R5/include        \
17962     /usr/X11R4/include        \
17963                               \
17964     /usr/include/X11R6        \
17965     /usr/include/X11R5        \
17966     /usr/include/X11R4        \
17967                               \
17968     /usr/local/X11R6/include  \
17969     /usr/local/X11R5/include  \
17970     /usr/local/X11R4/include  \
17971                               \
17972     /usr/local/include/X11R6  \
17973     /usr/local/include/X11R5  \
17974     /usr/local/include/X11R4  \
17975                               \
17976     /usr/X11/include          \
17977     /usr/include/X11          \
17978     /usr/local/X11/include    \
17979     /usr/local/include/X11    \
17980                               \
17981     /usr/X386/include         \
17982     /usr/x386/include         \
17983     /usr/XFree86/include/X11  \
17984                               \
17985     X:/XFree86/include        \
17986     X:/XFree86/include/X11    \
17987                               \
17988     /usr/include/gtk          \
17989     /usr/local/include/gtk    \
17990     /usr/include/glib         \
17991     /usr/local/include/glib   \
17992                               \
17993     /usr/include/qt           \
17994     /usr/local/include/qt     \
17995                               \
17996     /usr/include/windows      \
17997     /usr/include/wine         \
17998     /usr/local/include/wine   \
17999                               \
18000     /usr/unsupported/include  \
18001     /usr/athena/include       \
18002     /usr/local/x11r5/include  \
18003     /usr/lpp/Xamples/include  \
18004                               \
18005     /usr/openwin/share/include"
18006
18007 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
18008
18009
18010 cat >confcache <<\_ACEOF
18011 # This file is a shell script that caches the results of configure
18012 # tests run on this system so they can be shared between configure
18013 # scripts and configure runs, see configure's option --config-cache.
18014 # It is not useful on other systems.  If it contains results you don't
18015 # want to keep, you may remove or edit it.
18016 #
18017 # config.status only pays attention to the cache file if you give it
18018 # the --recheck option to rerun configure.
18019 #
18020 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18021 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18022 # following values.
18023
18024 _ACEOF
18025
18026 # The following way of writing the cache mishandles newlines in values,
18027 # but we know of no workaround that is simple, portable, and efficient.
18028 # So, don't put newlines in cache variables' values.
18029 # Ultrix sh set writes to stderr and can't be redirected directly,
18030 # and sets the high bit in the cache file unless we assign to the vars.
18031 {
18032   (set) 2>&1 |
18033     case `(ac_space=' '; set | grep ac_space) 2>&1` in
18034     *ac_space=\ *)
18035       # `set' does not quote correctly, so add quotes (double-quote
18036       # substitution turns \\\\ into \\, and sed turns \\ into \).
18037       sed -n \
18038         "s/'/'\\\\''/g;
18039           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18040       ;;
18041     *)
18042       # `set' quotes correctly as required by POSIX, so do not add quotes.
18043       sed -n \
18044         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18045       ;;
18046     esac;
18047 } |
18048   sed '
18049      t clear
18050      : clear
18051      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18052      t end
18053      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18054      : end' >>confcache
18055 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18056   if test -w $cache_file; then
18057     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18058     cat confcache >$cache_file
18059   else
18060     echo "not updating unwritable cache $cache_file"
18061   fi
18062 fi
18063 rm -f confcache
18064
18065 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
18066     echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
18067 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
18068 if test "${wx_cv_lib_glibc21+set}" = set; then
18069   echo $ECHO_N "(cached) $ECHO_C" >&6
18070 else
18071
18072         cat >conftest.$ac_ext <<_ACEOF
18073 #line $LINENO "configure"
18074 /* confdefs.h.  */
18075 _ACEOF
18076 cat confdefs.h >>conftest.$ac_ext
18077 cat >>conftest.$ac_ext <<_ACEOF
18078 /* end confdefs.h.  */
18079 #include <features.h>
18080 int
18081 main ()
18082 {
18083
18084                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
18085                     #error not glibc2.1
18086                 #endif
18087
18088   ;
18089   return 0;
18090 }
18091 _ACEOF
18092 rm -f conftest.$ac_objext
18093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18094   (eval $ac_compile) 2>&5
18095   ac_status=$?
18096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18097   (exit $ac_status); } &&
18098          { ac_try='test -s conftest.$ac_objext'
18099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18100   (eval $ac_try) 2>&5
18101   ac_status=$?
18102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103   (exit $ac_status); }; }; then
18104
18105                 wx_cv_lib_glibc21=yes
18106
18107 else
18108   echo "$as_me: failed program was:" >&5
18109 sed 's/^/| /' conftest.$ac_ext >&5
18110
18111
18112                 wx_cv_lib_glibc21=no
18113
18114
18115 fi
18116 rm -f conftest.$ac_objext conftest.$ac_ext
18117
18118 fi
18119 echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
18120 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
18121     if test "$wx_cv_lib_glibc21" = "yes"; then
18122         cat >>confdefs.h <<\_ACEOF
18123 #define wxHAVE_GLIBC2 1
18124 _ACEOF
18125
18126     fi
18127 fi
18128
18129 if test "x$wx_cv_lib_glibc21" = "xyes"; then
18130     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
18131         cat >>confdefs.h <<\_ACEOF
18132 #define _GNU_SOURCE 1
18133 _ACEOF
18134
18135     fi
18136 fi
18137
18138
18139
18140 REGEX_INCLUDE=
18141 if test "$wxUSE_REGEX" != "no"; then
18142     cat >>confdefs.h <<\_ACEOF
18143 #define wxUSE_REGEX 1
18144 _ACEOF
18145
18146
18147     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
18148                         if test "${ac_cv_header_regex_h+set}" = set; then
18149   echo "$as_me:$LINENO: checking for regex.h" >&5
18150 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
18151 if test "${ac_cv_header_regex_h+set}" = set; then
18152   echo $ECHO_N "(cached) $ECHO_C" >&6
18153 fi
18154 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18155 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18156 else
18157   # Is the header compilable?
18158 echo "$as_me:$LINENO: checking regex.h usability" >&5
18159 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
18160 cat >conftest.$ac_ext <<_ACEOF
18161 #line $LINENO "configure"
18162 /* confdefs.h.  */
18163 _ACEOF
18164 cat confdefs.h >>conftest.$ac_ext
18165 cat >>conftest.$ac_ext <<_ACEOF
18166 /* end confdefs.h.  */
18167 $ac_includes_default
18168 #include <regex.h>
18169 _ACEOF
18170 rm -f conftest.$ac_objext
18171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18172   (eval $ac_compile) 2>&5
18173   ac_status=$?
18174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175   (exit $ac_status); } &&
18176          { ac_try='test -s conftest.$ac_objext'
18177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18178   (eval $ac_try) 2>&5
18179   ac_status=$?
18180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181   (exit $ac_status); }; }; then
18182   ac_header_compiler=yes
18183 else
18184   echo "$as_me: failed program was:" >&5
18185 sed 's/^/| /' conftest.$ac_ext >&5
18186
18187 ac_header_compiler=no
18188 fi
18189 rm -f conftest.$ac_objext conftest.$ac_ext
18190 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18191 echo "${ECHO_T}$ac_header_compiler" >&6
18192
18193 # Is the header present?
18194 echo "$as_me:$LINENO: checking regex.h presence" >&5
18195 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
18196 cat >conftest.$ac_ext <<_ACEOF
18197 #line $LINENO "configure"
18198 /* confdefs.h.  */
18199 _ACEOF
18200 cat confdefs.h >>conftest.$ac_ext
18201 cat >>conftest.$ac_ext <<_ACEOF
18202 /* end confdefs.h.  */
18203 #include <regex.h>
18204 _ACEOF
18205 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18206   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18207   ac_status=$?
18208   grep -v '^ *+' conftest.er1 >conftest.err
18209   rm -f conftest.er1
18210   cat conftest.err >&5
18211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212   (exit $ac_status); } >/dev/null; then
18213   if test -s conftest.err; then
18214     ac_cpp_err=$ac_c_preproc_warn_flag
18215   else
18216     ac_cpp_err=
18217   fi
18218 else
18219   ac_cpp_err=yes
18220 fi
18221 if test -z "$ac_cpp_err"; then
18222   ac_header_preproc=yes
18223 else
18224   echo "$as_me: failed program was:" >&5
18225 sed 's/^/| /' conftest.$ac_ext >&5
18226
18227   ac_header_preproc=no
18228 fi
18229 rm -f conftest.err conftest.$ac_ext
18230 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18231 echo "${ECHO_T}$ac_header_preproc" >&6
18232
18233 # So?  What about this header?
18234 case $ac_header_compiler:$ac_header_preproc in
18235   yes:no )
18236     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
18237 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18238     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
18239 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
18240     (
18241       cat <<\_ASBOX
18242 ## ------------------------------------ ##
18243 ## Report this to bug-autoconf@gnu.org. ##
18244 ## ------------------------------------ ##
18245 _ASBOX
18246     ) |
18247       sed "s/^/$as_me: WARNING:     /" >&2
18248     ;;
18249   no:yes )
18250     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
18251 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
18252     { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
18253 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
18254     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
18255 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
18256     (
18257       cat <<\_ASBOX
18258 ## ------------------------------------ ##
18259 ## Report this to bug-autoconf@gnu.org. ##
18260 ## ------------------------------------ ##
18261 _ASBOX
18262     ) |
18263       sed "s/^/$as_me: WARNING:     /" >&2
18264     ;;
18265 esac
18266 echo "$as_me:$LINENO: checking for regex.h" >&5
18267 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
18268 if test "${ac_cv_header_regex_h+set}" = set; then
18269   echo $ECHO_N "(cached) $ECHO_C" >&6
18270 else
18271   ac_cv_header_regex_h=$ac_header_preproc
18272 fi
18273 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18274 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18275
18276 fi
18277 if test $ac_cv_header_regex_h = yes; then
18278
18279 for ac_func in regcomp
18280 do
18281 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18282 echo "$as_me:$LINENO: checking for $ac_func" >&5
18283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18284 if eval "test \"\${$as_ac_var+set}\" = set"; then
18285   echo $ECHO_N "(cached) $ECHO_C" >&6
18286 else
18287   cat >conftest.$ac_ext <<_ACEOF
18288 #line $LINENO "configure"
18289 /* confdefs.h.  */
18290 _ACEOF
18291 cat confdefs.h >>conftest.$ac_ext
18292 cat >>conftest.$ac_ext <<_ACEOF
18293 /* end confdefs.h.  */
18294 /* System header to define __stub macros and hopefully few prototypes,
18295     which can conflict with char $ac_func (); below.
18296     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18297     <limits.h> exists even on freestanding compilers.  */
18298 #ifdef __STDC__
18299 # include <limits.h>
18300 #else
18301 # include <assert.h>
18302 #endif
18303 /* Override any gcc2 internal prototype to avoid an error.  */
18304 #ifdef __cplusplus
18305 extern "C"
18306 {
18307 #endif
18308 /* We use char because int might match the return type of a gcc2
18309    builtin and then its argument prototype would still apply.  */
18310 char $ac_func ();
18311 /* The GNU C library defines this for functions which it implements
18312     to always fail with ENOSYS.  Some functions are actually named
18313     something starting with __ and the normal name is an alias.  */
18314 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18315 choke me
18316 #else
18317 char (*f) () = $ac_func;
18318 #endif
18319 #ifdef __cplusplus
18320 }
18321 #endif
18322
18323 int
18324 main ()
18325 {
18326 return f != $ac_func;
18327   ;
18328   return 0;
18329 }
18330 _ACEOF
18331 rm -f conftest.$ac_objext conftest$ac_exeext
18332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18333   (eval $ac_link) 2>&5
18334   ac_status=$?
18335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336   (exit $ac_status); } &&
18337          { ac_try='test -s conftest$ac_exeext'
18338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18339   (eval $ac_try) 2>&5
18340   ac_status=$?
18341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342   (exit $ac_status); }; }; then
18343   eval "$as_ac_var=yes"
18344 else
18345   echo "$as_me: failed program was:" >&5
18346 sed 's/^/| /' conftest.$ac_ext >&5
18347
18348 eval "$as_ac_var=no"
18349 fi
18350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18351 fi
18352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18353 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18354 if test `eval echo '${'$as_ac_var'}'` = yes; then
18355   cat >>confdefs.h <<_ACEOF
18356 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18357 _ACEOF
18358
18359 fi
18360 done
18361
18362 fi
18363
18364
18365
18366         if test "x$ac_cv_func_regcomp" != "xyes"; then
18367             if test "$wxUSE_REGEX" = "sys" ; then
18368                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
18369 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
18370    { (exit 1); exit 1; }; }
18371             else
18372                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
18373 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
18374                 wxUSE_REGEX=builtin
18375             fi
18376         else
18377                         wxUSE_REGEX=sys
18378         fi
18379     fi
18380
18381     if test "$wxUSE_REGEX" = "builtin" ; then
18382         REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
18383     fi
18384 fi
18385
18386
18387 ZLIB_INCLUDE=
18388 ZLIB_LINK=
18389 if test "$wxUSE_ZLIB" != "no" ; then
18390     cat >>confdefs.h <<\_ACEOF
18391 #define wxUSE_ZLIB 1
18392 _ACEOF
18393
18394
18395     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
18396                                                 if test "$USE_DARWIN" = 1; then
18397             system_zlib_h_ok="yes"
18398         else
18399                                                                                     echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
18400 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
18401 if test "${ac_cv_header_zlib_h+set}" = set; then
18402   echo $ECHO_N "(cached) $ECHO_C" >&6
18403 else
18404   if test "$cross_compiling" = yes; then
18405                       unset ac_cv_header_zlib_h
18406
18407 else
18408   cat >conftest.$ac_ext <<_ACEOF
18409 #line $LINENO "configure"
18410 /* confdefs.h.  */
18411 _ACEOF
18412 cat confdefs.h >>conftest.$ac_ext
18413 cat >>conftest.$ac_ext <<_ACEOF
18414 /* end confdefs.h.  */
18415
18416                         #include <zlib.h>
18417                         #include <stdio.h>
18418
18419                         int main()
18420                         {
18421                             FILE *f=fopen("conftestval", "w");
18422                             if (!f) exit(1);
18423                             fprintf(f, "%s",
18424                                     ZLIB_VERSION[0] == '1' &&
18425                                     (ZLIB_VERSION[2] > '1' ||
18426                                     (ZLIB_VERSION[2] == '1' &&
18427                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
18428                             exit(0);
18429                         }
18430
18431 _ACEOF
18432 rm -f conftest$ac_exeext
18433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18434   (eval $ac_link) 2>&5
18435   ac_status=$?
18436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18439   (eval $ac_try) 2>&5
18440   ac_status=$?
18441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442   (exit $ac_status); }; }; then
18443   ac_cv_header_zlib_h=`cat conftestval`
18444 else
18445   echo "$as_me: program exited with status $ac_status" >&5
18446 echo "$as_me: failed program was:" >&5
18447 sed 's/^/| /' conftest.$ac_ext >&5
18448
18449 ( exit $ac_status )
18450 ac_cv_header_zlib_h=no
18451 fi
18452 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18453 fi
18454
18455 fi
18456 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18457 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18458                                     if test "${ac_cv_header_zlib_h+set}" = set; then
18459   echo "$as_me:$LINENO: checking for zlib.h" >&5
18460 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18461 if test "${ac_cv_header_zlib_h+set}" = set; then
18462   echo $ECHO_N "(cached) $ECHO_C" >&6
18463 fi
18464 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18465 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18466 else
18467   # Is the header compilable?
18468 echo "$as_me:$LINENO: checking zlib.h usability" >&5
18469 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
18470 cat >conftest.$ac_ext <<_ACEOF
18471 #line $LINENO "configure"
18472 /* confdefs.h.  */
18473 _ACEOF
18474 cat confdefs.h >>conftest.$ac_ext
18475 cat >>conftest.$ac_ext <<_ACEOF
18476 /* end confdefs.h.  */
18477 $ac_includes_default
18478 #include <zlib.h>
18479 _ACEOF
18480 rm -f conftest.$ac_objext
18481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18482   (eval $ac_compile) 2>&5
18483   ac_status=$?
18484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485   (exit $ac_status); } &&
18486          { ac_try='test -s conftest.$ac_objext'
18487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18488   (eval $ac_try) 2>&5
18489   ac_status=$?
18490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491   (exit $ac_status); }; }; then
18492   ac_header_compiler=yes
18493 else
18494   echo "$as_me: failed program was:" >&5
18495 sed 's/^/| /' conftest.$ac_ext >&5
18496
18497 ac_header_compiler=no
18498 fi
18499 rm -f conftest.$ac_objext conftest.$ac_ext
18500 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18501 echo "${ECHO_T}$ac_header_compiler" >&6
18502
18503 # Is the header present?
18504 echo "$as_me:$LINENO: checking zlib.h presence" >&5
18505 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
18506 cat >conftest.$ac_ext <<_ACEOF
18507 #line $LINENO "configure"
18508 /* confdefs.h.  */
18509 _ACEOF
18510 cat confdefs.h >>conftest.$ac_ext
18511 cat >>conftest.$ac_ext <<_ACEOF
18512 /* end confdefs.h.  */
18513 #include <zlib.h>
18514 _ACEOF
18515 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18516   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18517   ac_status=$?
18518   grep -v '^ *+' conftest.er1 >conftest.err
18519   rm -f conftest.er1
18520   cat conftest.err >&5
18521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522   (exit $ac_status); } >/dev/null; then
18523   if test -s conftest.err; then
18524     ac_cpp_err=$ac_c_preproc_warn_flag
18525   else
18526     ac_cpp_err=
18527   fi
18528 else
18529   ac_cpp_err=yes
18530 fi
18531 if test -z "$ac_cpp_err"; then
18532   ac_header_preproc=yes
18533 else
18534   echo "$as_me: failed program was:" >&5
18535 sed 's/^/| /' conftest.$ac_ext >&5
18536
18537   ac_header_preproc=no
18538 fi
18539 rm -f conftest.err conftest.$ac_ext
18540 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18541 echo "${ECHO_T}$ac_header_preproc" >&6
18542
18543 # So?  What about this header?
18544 case $ac_header_compiler:$ac_header_preproc in
18545   yes:no )
18546     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
18547 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18548     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18549 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18550     (
18551       cat <<\_ASBOX
18552 ## ------------------------------------ ##
18553 ## Report this to bug-autoconf@gnu.org. ##
18554 ## ------------------------------------ ##
18555 _ASBOX
18556     ) |
18557       sed "s/^/$as_me: WARNING:     /" >&2
18558     ;;
18559   no:yes )
18560     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
18561 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
18562     { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
18563 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
18564     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
18565 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
18566     (
18567       cat <<\_ASBOX
18568 ## ------------------------------------ ##
18569 ## Report this to bug-autoconf@gnu.org. ##
18570 ## ------------------------------------ ##
18571 _ASBOX
18572     ) |
18573       sed "s/^/$as_me: WARNING:     /" >&2
18574     ;;
18575 esac
18576 echo "$as_me:$LINENO: checking for zlib.h" >&5
18577 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18578 if test "${ac_cv_header_zlib_h+set}" = set; then
18579   echo $ECHO_N "(cached) $ECHO_C" >&6
18580 else
18581   ac_cv_header_zlib_h=$ac_header_preproc
18582 fi
18583 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18584 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18585
18586 fi
18587
18588
18589
18590             system_zlib_h_ok=$ac_cv_header_zlib_h
18591         fi
18592
18593         if test "$system_zlib_h_ok" = "yes"; then
18594             echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18595 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18596 if test "${ac_cv_lib_z_deflate+set}" = set; then
18597   echo $ECHO_N "(cached) $ECHO_C" >&6
18598 else
18599   ac_check_lib_save_LIBS=$LIBS
18600 LIBS="-lz  $LIBS"
18601 cat >conftest.$ac_ext <<_ACEOF
18602 #line $LINENO "configure"
18603 /* confdefs.h.  */
18604 _ACEOF
18605 cat confdefs.h >>conftest.$ac_ext
18606 cat >>conftest.$ac_ext <<_ACEOF
18607 /* end confdefs.h.  */
18608
18609 /* Override any gcc2 internal prototype to avoid an error.  */
18610 #ifdef __cplusplus
18611 extern "C"
18612 #endif
18613 /* We use char because int might match the return type of a gcc2
18614    builtin and then its argument prototype would still apply.  */
18615 char deflate ();
18616 int
18617 main ()
18618 {
18619 deflate ();
18620   ;
18621   return 0;
18622 }
18623 _ACEOF
18624 rm -f conftest.$ac_objext conftest$ac_exeext
18625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18626   (eval $ac_link) 2>&5
18627   ac_status=$?
18628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629   (exit $ac_status); } &&
18630          { ac_try='test -s conftest$ac_exeext'
18631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18632   (eval $ac_try) 2>&5
18633   ac_status=$?
18634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635   (exit $ac_status); }; }; then
18636   ac_cv_lib_z_deflate=yes
18637 else
18638   echo "$as_me: failed program was:" >&5
18639 sed 's/^/| /' conftest.$ac_ext >&5
18640
18641 ac_cv_lib_z_deflate=no
18642 fi
18643 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18644 LIBS=$ac_check_lib_save_LIBS
18645 fi
18646 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18647 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18648 if test $ac_cv_lib_z_deflate = yes; then
18649   ZLIB_LINK=" -lz"
18650 fi
18651
18652         fi
18653
18654         if test "x$ZLIB_LINK" = "x" ; then
18655             if test "$wxUSE_ZLIB" = "sys" ; then
18656                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
18657 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
18658    { (exit 1); exit 1; }; }
18659             else
18660                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
18661 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
18662                 wxUSE_ZLIB=builtin
18663             fi
18664         else
18665                         wxUSE_ZLIB=sys
18666         fi
18667     fi
18668
18669     if test "$wxUSE_ZLIB" = "builtin" ; then
18670         ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
18671     fi
18672 fi
18673
18674
18675 PNG_INCLUDE=
18676 PNG_LINK=
18677 if test "$wxUSE_LIBPNG" != "no" ; then
18678     cat >>confdefs.h <<\_ACEOF
18679 #define wxUSE_LIBPNG 1
18680 _ACEOF
18681
18682
18683     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
18684         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
18685 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
18686         wxUSE_LIBPNG=sys
18687     fi
18688
18689                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
18690         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
18691 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
18692         wxUSE_LIBPNG=builtin
18693     fi
18694
18695     if test "$wxUSE_MGL" != 1 ; then
18696                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
18697                                     echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
18698 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
18699 if test "${ac_cv_header_png_h+set}" = set; then
18700   echo $ECHO_N "(cached) $ECHO_C" >&6
18701 else
18702   if test "$cross_compiling" = yes; then
18703                       unset ac_cv_header_png_h
18704
18705 else
18706   cat >conftest.$ac_ext <<_ACEOF
18707 #line $LINENO "configure"
18708 /* confdefs.h.  */
18709 _ACEOF
18710 cat confdefs.h >>conftest.$ac_ext
18711 cat >>conftest.$ac_ext <<_ACEOF
18712 /* end confdefs.h.  */
18713
18714                         #include <png.h>
18715                         #include <stdio.h>
18716
18717                         int main()
18718                         {
18719                             FILE *f=fopen("conftestval", "w");
18720                             if (!f) exit(1);
18721                             fprintf(f, "%s",
18722                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
18723                             exit(0);
18724                         }
18725
18726 _ACEOF
18727 rm -f conftest$ac_exeext
18728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18729   (eval $ac_link) 2>&5
18730   ac_status=$?
18731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18734   (eval $ac_try) 2>&5
18735   ac_status=$?
18736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737   (exit $ac_status); }; }; then
18738   ac_cv_header_png_h=`cat conftestval`
18739 else
18740   echo "$as_me: program exited with status $ac_status" >&5
18741 echo "$as_me: failed program was:" >&5
18742 sed 's/^/| /' conftest.$ac_ext >&5
18743
18744 ( exit $ac_status )
18745 ac_cv_header_png_h=no
18746 fi
18747 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18748 fi
18749
18750 fi
18751 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18752 echo "${ECHO_T}$ac_cv_header_png_h" >&6
18753             if test "${ac_cv_header_png_h+set}" = set; then
18754   echo "$as_me:$LINENO: checking for png.h" >&5
18755 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18756 if test "${ac_cv_header_png_h+set}" = set; then
18757   echo $ECHO_N "(cached) $ECHO_C" >&6
18758 fi
18759 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18760 echo "${ECHO_T}$ac_cv_header_png_h" >&6
18761 else
18762   # Is the header compilable?
18763 echo "$as_me:$LINENO: checking png.h usability" >&5
18764 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
18765 cat >conftest.$ac_ext <<_ACEOF
18766 #line $LINENO "configure"
18767 /* confdefs.h.  */
18768 _ACEOF
18769 cat confdefs.h >>conftest.$ac_ext
18770 cat >>conftest.$ac_ext <<_ACEOF
18771 /* end confdefs.h.  */
18772 $ac_includes_default
18773 #include <png.h>
18774 _ACEOF
18775 rm -f conftest.$ac_objext
18776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18777   (eval $ac_compile) 2>&5
18778   ac_status=$?
18779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780   (exit $ac_status); } &&
18781          { ac_try='test -s conftest.$ac_objext'
18782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18783   (eval $ac_try) 2>&5
18784   ac_status=$?
18785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786   (exit $ac_status); }; }; then
18787   ac_header_compiler=yes
18788 else
18789   echo "$as_me: failed program was:" >&5
18790 sed 's/^/| /' conftest.$ac_ext >&5
18791
18792 ac_header_compiler=no
18793 fi
18794 rm -f conftest.$ac_objext conftest.$ac_ext
18795 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18796 echo "${ECHO_T}$ac_header_compiler" >&6
18797
18798 # Is the header present?
18799 echo "$as_me:$LINENO: checking png.h presence" >&5
18800 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
18801 cat >conftest.$ac_ext <<_ACEOF
18802 #line $LINENO "configure"
18803 /* confdefs.h.  */
18804 _ACEOF
18805 cat confdefs.h >>conftest.$ac_ext
18806 cat >>conftest.$ac_ext <<_ACEOF
18807 /* end confdefs.h.  */
18808 #include <png.h>
18809 _ACEOF
18810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18811   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18812   ac_status=$?
18813   grep -v '^ *+' conftest.er1 >conftest.err
18814   rm -f conftest.er1
18815   cat conftest.err >&5
18816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817   (exit $ac_status); } >/dev/null; then
18818   if test -s conftest.err; then
18819     ac_cpp_err=$ac_c_preproc_warn_flag
18820   else
18821     ac_cpp_err=
18822   fi
18823 else
18824   ac_cpp_err=yes
18825 fi
18826 if test -z "$ac_cpp_err"; then
18827   ac_header_preproc=yes
18828 else
18829   echo "$as_me: failed program was:" >&5
18830 sed 's/^/| /' conftest.$ac_ext >&5
18831
18832   ac_header_preproc=no
18833 fi
18834 rm -f conftest.err conftest.$ac_ext
18835 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18836 echo "${ECHO_T}$ac_header_preproc" >&6
18837
18838 # So?  What about this header?
18839 case $ac_header_compiler:$ac_header_preproc in
18840   yes:no )
18841     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
18842 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18843     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18844 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18845     (
18846       cat <<\_ASBOX
18847 ## ------------------------------------ ##
18848 ## Report this to bug-autoconf@gnu.org. ##
18849 ## ------------------------------------ ##
18850 _ASBOX
18851     ) |
18852       sed "s/^/$as_me: WARNING:     /" >&2
18853     ;;
18854   no:yes )
18855     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
18856 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
18857     { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
18858 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
18859     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
18860 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
18861     (
18862       cat <<\_ASBOX
18863 ## ------------------------------------ ##
18864 ## Report this to bug-autoconf@gnu.org. ##
18865 ## ------------------------------------ ##
18866 _ASBOX
18867     ) |
18868       sed "s/^/$as_me: WARNING:     /" >&2
18869     ;;
18870 esac
18871 echo "$as_me:$LINENO: checking for png.h" >&5
18872 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
18873 if test "${ac_cv_header_png_h+set}" = set; then
18874   echo $ECHO_N "(cached) $ECHO_C" >&6
18875 else
18876   ac_cv_header_png_h=$ac_header_preproc
18877 fi
18878 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
18879 echo "${ECHO_T}$ac_cv_header_png_h" >&6
18880
18881 fi
18882
18883
18884
18885             if test "$ac_cv_header_png_h" = "yes"; then
18886                 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
18887 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
18888 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
18889   echo $ECHO_N "(cached) $ECHO_C" >&6
18890 else
18891   ac_check_lib_save_LIBS=$LIBS
18892 LIBS="-lpng -lz -lm $LIBS"
18893 cat >conftest.$ac_ext <<_ACEOF
18894 #line $LINENO "configure"
18895 /* confdefs.h.  */
18896 _ACEOF
18897 cat confdefs.h >>conftest.$ac_ext
18898 cat >>conftest.$ac_ext <<_ACEOF
18899 /* end confdefs.h.  */
18900
18901 /* Override any gcc2 internal prototype to avoid an error.  */
18902 #ifdef __cplusplus
18903 extern "C"
18904 #endif
18905 /* We use char because int might match the return type of a gcc2
18906    builtin and then its argument prototype would still apply.  */
18907 char png_check_sig ();
18908 int
18909 main ()
18910 {
18911 png_check_sig ();
18912   ;
18913   return 0;
18914 }
18915 _ACEOF
18916 rm -f conftest.$ac_objext conftest$ac_exeext
18917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18918   (eval $ac_link) 2>&5
18919   ac_status=$?
18920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921   (exit $ac_status); } &&
18922          { ac_try='test -s conftest$ac_exeext'
18923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18924   (eval $ac_try) 2>&5
18925   ac_status=$?
18926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927   (exit $ac_status); }; }; then
18928   ac_cv_lib_png_png_check_sig=yes
18929 else
18930   echo "$as_me: failed program was:" >&5
18931 sed 's/^/| /' conftest.$ac_ext >&5
18932
18933 ac_cv_lib_png_png_check_sig=no
18934 fi
18935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18936 LIBS=$ac_check_lib_save_LIBS
18937 fi
18938 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
18939 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
18940 if test $ac_cv_lib_png_png_check_sig = yes; then
18941   PNG_LINK=" -lpng"
18942 fi
18943
18944             fi
18945
18946             if test "x$PNG_LINK" = "x" ; then
18947                 if test "$wxUSE_LIBPNG" = "sys" ; then
18948                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
18949 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
18950    { (exit 1); exit 1; }; }
18951                 else
18952                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
18953 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
18954                     wxUSE_LIBPNG=builtin
18955                 fi
18956             else
18957                                 wxUSE_LIBPNG=sys
18958             fi
18959         fi
18960     fi
18961
18962     if test "$wxUSE_LIBPNG" = "builtin" ; then
18963         PNG_INCLUDE="-I\${top_srcdir}/src/png"
18964     fi
18965
18966     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
18967 fi
18968
18969
18970 JPEG_INCLUDE=
18971 JPEG_LINK=
18972 if test "$wxUSE_LIBJPEG" != "no" ; then
18973     cat >>confdefs.h <<\_ACEOF
18974 #define wxUSE_LIBJPEG 1
18975 _ACEOF
18976
18977
18978     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
18979         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
18980 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
18981         wxUSE_LIBJPEG=sys
18982     fi
18983
18984     if test "$wxUSE_MGL" != 1 ; then
18985                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
18986                                                 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
18987 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
18988             if test "${ac_cv_header_jpeglib_h+set}" = set; then
18989   echo $ECHO_N "(cached) $ECHO_C" >&6
18990 else
18991   cat >conftest.$ac_ext <<_ACEOF
18992 #line $LINENO "configure"
18993 /* confdefs.h.  */
18994 _ACEOF
18995 cat confdefs.h >>conftest.$ac_ext
18996 cat >>conftest.$ac_ext <<_ACEOF
18997 /* end confdefs.h.  */
18998
18999                         #undef HAVE_STDLIB_H
19000                         #include <stdio.h>
19001                         #include <jpeglib.h>
19002
19003 int
19004 main ()
19005 {
19006
19007
19008   ;
19009   return 0;
19010 }
19011 _ACEOF
19012 rm -f conftest.$ac_objext
19013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19014   (eval $ac_compile) 2>&5
19015   ac_status=$?
19016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017   (exit $ac_status); } &&
19018          { ac_try='test -s conftest.$ac_objext'
19019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19020   (eval $ac_try) 2>&5
19021   ac_status=$?
19022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023   (exit $ac_status); }; }; then
19024   ac_cv_header_jpeglib_h=yes
19025 else
19026   echo "$as_me: failed program was:" >&5
19027 sed 's/^/| /' conftest.$ac_ext >&5
19028
19029 ac_cv_header_jpeglib_h=no
19030
19031 fi
19032 rm -f conftest.$ac_objext conftest.$ac_ext
19033
19034 fi
19035
19036             echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
19037 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
19038
19039             if test "$ac_cv_header_jpeglib_h" = "yes"; then
19040                 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
19041 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
19042 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
19043   echo $ECHO_N "(cached) $ECHO_C" >&6
19044 else
19045   ac_check_lib_save_LIBS=$LIBS
19046 LIBS="-ljpeg  $LIBS"
19047 cat >conftest.$ac_ext <<_ACEOF
19048 #line $LINENO "configure"
19049 /* confdefs.h.  */
19050 _ACEOF
19051 cat confdefs.h >>conftest.$ac_ext
19052 cat >>conftest.$ac_ext <<_ACEOF
19053 /* end confdefs.h.  */
19054
19055 /* Override any gcc2 internal prototype to avoid an error.  */
19056 #ifdef __cplusplus
19057 extern "C"
19058 #endif
19059 /* We use char because int might match the return type of a gcc2
19060    builtin and then its argument prototype would still apply.  */
19061 char jpeg_read_header ();
19062 int
19063 main ()
19064 {
19065 jpeg_read_header ();
19066   ;
19067   return 0;
19068 }
19069 _ACEOF
19070 rm -f conftest.$ac_objext conftest$ac_exeext
19071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19072   (eval $ac_link) 2>&5
19073   ac_status=$?
19074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075   (exit $ac_status); } &&
19076          { ac_try='test -s conftest$ac_exeext'
19077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19078   (eval $ac_try) 2>&5
19079   ac_status=$?
19080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081   (exit $ac_status); }; }; then
19082   ac_cv_lib_jpeg_jpeg_read_header=yes
19083 else
19084   echo "$as_me: failed program was:" >&5
19085 sed 's/^/| /' conftest.$ac_ext >&5
19086
19087 ac_cv_lib_jpeg_jpeg_read_header=no
19088 fi
19089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19090 LIBS=$ac_check_lib_save_LIBS
19091 fi
19092 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
19093 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
19094 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
19095   JPEG_LINK=" -ljpeg"
19096 fi
19097
19098             fi
19099
19100             if test "x$JPEG_LINK" = "x" ; then
19101                 if test "$wxUSE_LIBJPEG" = "sys" ; then
19102                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
19103 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
19104    { (exit 1); exit 1; }; }
19105                 else
19106                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
19107 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
19108                     wxUSE_LIBJPEG=builtin
19109                 fi
19110             else
19111                                 wxUSE_LIBJPEG=sys
19112             fi
19113         fi
19114     fi
19115
19116     if test "$wxUSE_LIBJPEG" = "builtin" ; then
19117         JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
19118     fi
19119 fi
19120
19121
19122 TIFF_INCLUDE=
19123 TIFF_LINK=
19124 TIFF_PREREQ_LINKS=-lm
19125 if test "$wxUSE_LIBTIFF" != "no" ; then
19126     cat >>confdefs.h <<\_ACEOF
19127 #define wxUSE_LIBTIFF 1
19128 _ACEOF
19129
19130
19131     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
19132                         if test "$wxUSE_LIBJPEG" = "sys"; then
19133             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
19134         fi
19135         if test "$wxUSE_ZLIB" = "sys"; then
19136             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
19137         fi
19138         if test "${ac_cv_header_tiffio_h+set}" = set; then
19139   echo "$as_me:$LINENO: checking for tiffio.h" >&5
19140 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
19141 if test "${ac_cv_header_tiffio_h+set}" = set; then
19142   echo $ECHO_N "(cached) $ECHO_C" >&6
19143 fi
19144 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
19145 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
19146 else
19147   # Is the header compilable?
19148 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
19149 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
19150 cat >conftest.$ac_ext <<_ACEOF
19151 #line $LINENO "configure"
19152 /* confdefs.h.  */
19153 _ACEOF
19154 cat confdefs.h >>conftest.$ac_ext
19155 cat >>conftest.$ac_ext <<_ACEOF
19156 /* end confdefs.h.  */
19157 $ac_includes_default
19158 #include <tiffio.h>
19159 _ACEOF
19160 rm -f conftest.$ac_objext
19161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19162   (eval $ac_compile) 2>&5
19163   ac_status=$?
19164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165   (exit $ac_status); } &&
19166          { ac_try='test -s conftest.$ac_objext'
19167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19168   (eval $ac_try) 2>&5
19169   ac_status=$?
19170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171   (exit $ac_status); }; }; then
19172   ac_header_compiler=yes
19173 else
19174   echo "$as_me: failed program was:" >&5
19175 sed 's/^/| /' conftest.$ac_ext >&5
19176
19177 ac_header_compiler=no
19178 fi
19179 rm -f conftest.$ac_objext conftest.$ac_ext
19180 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19181 echo "${ECHO_T}$ac_header_compiler" >&6
19182
19183 # Is the header present?
19184 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
19185 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
19186 cat >conftest.$ac_ext <<_ACEOF
19187 #line $LINENO "configure"
19188 /* confdefs.h.  */
19189 _ACEOF
19190 cat confdefs.h >>conftest.$ac_ext
19191 cat >>conftest.$ac_ext <<_ACEOF
19192 /* end confdefs.h.  */
19193 #include <tiffio.h>
19194 _ACEOF
19195 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19196   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19197   ac_status=$?
19198   grep -v '^ *+' conftest.er1 >conftest.err
19199   rm -f conftest.er1
19200   cat conftest.err >&5
19201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202   (exit $ac_status); } >/dev/null; then
19203   if test -s conftest.err; then
19204     ac_cpp_err=$ac_c_preproc_warn_flag
19205   else
19206     ac_cpp_err=
19207   fi
19208 else
19209   ac_cpp_err=yes
19210 fi
19211 if test -z "$ac_cpp_err"; then
19212   ac_header_preproc=yes
19213 else
19214   echo "$as_me: failed program was:" >&5
19215 sed 's/^/| /' conftest.$ac_ext >&5
19216
19217   ac_header_preproc=no
19218 fi
19219 rm -f conftest.err conftest.$ac_ext
19220 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19221 echo "${ECHO_T}$ac_header_preproc" >&6
19222
19223 # So?  What about this header?
19224 case $ac_header_compiler:$ac_header_preproc in
19225   yes:no )
19226     { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
19227 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19228     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
19229 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
19230     (
19231       cat <<\_ASBOX
19232 ## ------------------------------------ ##
19233 ## Report this to bug-autoconf@gnu.org. ##
19234 ## ------------------------------------ ##
19235 _ASBOX
19236     ) |
19237       sed "s/^/$as_me: WARNING:     /" >&2
19238     ;;
19239   no:yes )
19240     { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
19241 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
19242     { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
19243 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
19244     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
19245 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
19246     (
19247       cat <<\_ASBOX
19248 ## ------------------------------------ ##
19249 ## Report this to bug-autoconf@gnu.org. ##
19250 ## ------------------------------------ ##
19251 _ASBOX
19252     ) |
19253       sed "s/^/$as_me: WARNING:     /" >&2
19254     ;;
19255 esac
19256 echo "$as_me:$LINENO: checking for tiffio.h" >&5
19257 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
19258 if test "${ac_cv_header_tiffio_h+set}" = set; then
19259   echo $ECHO_N "(cached) $ECHO_C" >&6
19260 else
19261   ac_cv_header_tiffio_h=$ac_header_preproc
19262 fi
19263 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
19264 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
19265
19266 fi
19267 if test $ac_cv_header_tiffio_h = yes; then
19268   echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
19269 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
19270 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
19271   echo $ECHO_N "(cached) $ECHO_C" >&6
19272 else
19273   ac_check_lib_save_LIBS=$LIBS
19274 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
19275 cat >conftest.$ac_ext <<_ACEOF
19276 #line $LINENO "configure"
19277 /* confdefs.h.  */
19278 _ACEOF
19279 cat confdefs.h >>conftest.$ac_ext
19280 cat >>conftest.$ac_ext <<_ACEOF
19281 /* end confdefs.h.  */
19282
19283 /* Override any gcc2 internal prototype to avoid an error.  */
19284 #ifdef __cplusplus
19285 extern "C"
19286 #endif
19287 /* We use char because int might match the return type of a gcc2
19288    builtin and then its argument prototype would still apply.  */
19289 char TIFFError ();
19290 int
19291 main ()
19292 {
19293 TIFFError ();
19294   ;
19295   return 0;
19296 }
19297 _ACEOF
19298 rm -f conftest.$ac_objext conftest$ac_exeext
19299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19300   (eval $ac_link) 2>&5
19301   ac_status=$?
19302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303   (exit $ac_status); } &&
19304          { ac_try='test -s conftest$ac_exeext'
19305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19306   (eval $ac_try) 2>&5
19307   ac_status=$?
19308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309   (exit $ac_status); }; }; then
19310   ac_cv_lib_tiff_TIFFError=yes
19311 else
19312   echo "$as_me: failed program was:" >&5
19313 sed 's/^/| /' conftest.$ac_ext >&5
19314
19315 ac_cv_lib_tiff_TIFFError=no
19316 fi
19317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19318 LIBS=$ac_check_lib_save_LIBS
19319 fi
19320 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
19321 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
19322 if test $ac_cv_lib_tiff_TIFFError = yes; then
19323   TIFF_LINK=" -ltiff"
19324 fi
19325
19326
19327 fi
19328
19329
19330
19331         if test "x$TIFF_LINK" = "x" ; then
19332             if test "$wxUSE_LIBTIFF" = "sys" ; then
19333                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
19334 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
19335    { (exit 1); exit 1; }; }
19336             else
19337                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
19338 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
19339                 wxUSE_LIBTIFF=builtin
19340             fi
19341         else
19342                         wxUSE_LIBTIFF=sys
19343         fi
19344     fi
19345
19346     if test "$wxUSE_LIBTIFF" = "builtin" ; then
19347         TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
19348     fi
19349 fi
19350
19351
19352 if test "$wxUSE_EXPAT" != "no"; then
19353     wxUSE_XML=yes
19354     cat >>confdefs.h <<\_ACEOF
19355 #define wxUSE_EXPAT 1
19356 _ACEOF
19357
19358     cat >>confdefs.h <<\_ACEOF
19359 #define wxUSE_XML 1
19360 _ACEOF
19361
19362
19363     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
19364         if test "${ac_cv_header_expat_h+set}" = set; then
19365   echo "$as_me:$LINENO: checking for expat.h" >&5
19366 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19367 if test "${ac_cv_header_expat_h+set}" = set; then
19368   echo $ECHO_N "(cached) $ECHO_C" >&6
19369 fi
19370 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19371 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19372 else
19373   # Is the header compilable?
19374 echo "$as_me:$LINENO: checking expat.h usability" >&5
19375 echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
19376 cat >conftest.$ac_ext <<_ACEOF
19377 #line $LINENO "configure"
19378 /* confdefs.h.  */
19379 _ACEOF
19380 cat confdefs.h >>conftest.$ac_ext
19381 cat >>conftest.$ac_ext <<_ACEOF
19382 /* end confdefs.h.  */
19383 $ac_includes_default
19384 #include <expat.h>
19385 _ACEOF
19386 rm -f conftest.$ac_objext
19387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19388   (eval $ac_compile) 2>&5
19389   ac_status=$?
19390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391   (exit $ac_status); } &&
19392          { ac_try='test -s conftest.$ac_objext'
19393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19394   (eval $ac_try) 2>&5
19395   ac_status=$?
19396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397   (exit $ac_status); }; }; then
19398   ac_header_compiler=yes
19399 else
19400   echo "$as_me: failed program was:" >&5
19401 sed 's/^/| /' conftest.$ac_ext >&5
19402
19403 ac_header_compiler=no
19404 fi
19405 rm -f conftest.$ac_objext conftest.$ac_ext
19406 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19407 echo "${ECHO_T}$ac_header_compiler" >&6
19408
19409 # Is the header present?
19410 echo "$as_me:$LINENO: checking expat.h presence" >&5
19411 echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
19412 cat >conftest.$ac_ext <<_ACEOF
19413 #line $LINENO "configure"
19414 /* confdefs.h.  */
19415 _ACEOF
19416 cat confdefs.h >>conftest.$ac_ext
19417 cat >>conftest.$ac_ext <<_ACEOF
19418 /* end confdefs.h.  */
19419 #include <expat.h>
19420 _ACEOF
19421 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19422   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19423   ac_status=$?
19424   grep -v '^ *+' conftest.er1 >conftest.err
19425   rm -f conftest.er1
19426   cat conftest.err >&5
19427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428   (exit $ac_status); } >/dev/null; then
19429   if test -s conftest.err; then
19430     ac_cpp_err=$ac_c_preproc_warn_flag
19431   else
19432     ac_cpp_err=
19433   fi
19434 else
19435   ac_cpp_err=yes
19436 fi
19437 if test -z "$ac_cpp_err"; then
19438   ac_header_preproc=yes
19439 else
19440   echo "$as_me: failed program was:" >&5
19441 sed 's/^/| /' conftest.$ac_ext >&5
19442
19443   ac_header_preproc=no
19444 fi
19445 rm -f conftest.err conftest.$ac_ext
19446 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19447 echo "${ECHO_T}$ac_header_preproc" >&6
19448
19449 # So?  What about this header?
19450 case $ac_header_compiler:$ac_header_preproc in
19451   yes:no )
19452     { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
19453 echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19454     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19455 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19456     (
19457       cat <<\_ASBOX
19458 ## ------------------------------------ ##
19459 ## Report this to bug-autoconf@gnu.org. ##
19460 ## ------------------------------------ ##
19461 _ASBOX
19462     ) |
19463       sed "s/^/$as_me: WARNING:     /" >&2
19464     ;;
19465   no:yes )
19466     { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
19467 echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
19468     { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
19469 echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
19470     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19471 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19472     (
19473       cat <<\_ASBOX
19474 ## ------------------------------------ ##
19475 ## Report this to bug-autoconf@gnu.org. ##
19476 ## ------------------------------------ ##
19477 _ASBOX
19478     ) |
19479       sed "s/^/$as_me: WARNING:     /" >&2
19480     ;;
19481 esac
19482 echo "$as_me:$LINENO: checking for expat.h" >&5
19483 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19484 if test "${ac_cv_header_expat_h+set}" = set; then
19485   echo $ECHO_N "(cached) $ECHO_C" >&6
19486 else
19487   ac_cv_header_expat_h=$ac_header_preproc
19488 fi
19489 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19490 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19491
19492 fi
19493 if test $ac_cv_header_expat_h = yes; then
19494   found_expat_h=1
19495 fi
19496
19497
19498         if test "x$found_expat_h" = "x1"; then
19499                         echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
19500 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
19501 if test "${wx_cv_expat_is_not_broken+set}" = set; then
19502   echo $ECHO_N "(cached) $ECHO_C" >&6
19503 else
19504
19505
19506
19507                 ac_ext=cc
19508 ac_cpp='$CXXCPP $CPPFLAGS'
19509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19512
19513                 cat >conftest.$ac_ext <<_ACEOF
19514 #line $LINENO "configure"
19515 /* confdefs.h.  */
19516 _ACEOF
19517 cat confdefs.h >>conftest.$ac_ext
19518 cat >>conftest.$ac_ext <<_ACEOF
19519 /* end confdefs.h.  */
19520 #include <expat.h>
19521 int
19522 main ()
19523 {
19524
19525   ;
19526   return 0;
19527 }
19528 _ACEOF
19529 rm -f conftest.$ac_objext
19530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19531   (eval $ac_compile) 2>&5
19532   ac_status=$?
19533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19534   (exit $ac_status); } &&
19535          { ac_try='test -s conftest.$ac_objext'
19536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19537   (eval $ac_try) 2>&5
19538   ac_status=$?
19539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540   (exit $ac_status); }; }; then
19541   wx_cv_expat_is_not_broken=yes
19542 else
19543   echo "$as_me: failed program was:" >&5
19544 sed 's/^/| /' conftest.$ac_ext >&5
19545
19546 wx_cv_expat_is_not_broken=no
19547
19548 fi
19549 rm -f conftest.$ac_objext conftest.$ac_ext
19550                 ac_ext=c
19551 ac_cpp='$CPP $CPPFLAGS'
19552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19555
19556
19557
19558 fi
19559 echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
19560 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
19561             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
19562                 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
19563 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
19564 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
19565   echo $ECHO_N "(cached) $ECHO_C" >&6
19566 else
19567   ac_check_lib_save_LIBS=$LIBS
19568 LIBS="-lexpat  $LIBS"
19569 cat >conftest.$ac_ext <<_ACEOF
19570 #line $LINENO "configure"
19571 /* confdefs.h.  */
19572 _ACEOF
19573 cat confdefs.h >>conftest.$ac_ext
19574 cat >>conftest.$ac_ext <<_ACEOF
19575 /* end confdefs.h.  */
19576
19577 /* Override any gcc2 internal prototype to avoid an error.  */
19578 #ifdef __cplusplus
19579 extern "C"
19580 #endif
19581 /* We use char because int might match the return type of a gcc2
19582    builtin and then its argument prototype would still apply.  */
19583 char XML_ParserCreate ();
19584 int
19585 main ()
19586 {
19587 XML_ParserCreate ();
19588   ;
19589   return 0;
19590 }
19591 _ACEOF
19592 rm -f conftest.$ac_objext conftest$ac_exeext
19593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19594   (eval $ac_link) 2>&5
19595   ac_status=$?
19596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597   (exit $ac_status); } &&
19598          { ac_try='test -s conftest$ac_exeext'
19599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19600   (eval $ac_try) 2>&5
19601   ac_status=$?
19602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603   (exit $ac_status); }; }; then
19604   ac_cv_lib_expat_XML_ParserCreate=yes
19605 else
19606   echo "$as_me: failed program was:" >&5
19607 sed 's/^/| /' conftest.$ac_ext >&5
19608
19609 ac_cv_lib_expat_XML_ParserCreate=no
19610 fi
19611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19612 LIBS=$ac_check_lib_save_LIBS
19613 fi
19614 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
19615 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
19616 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
19617   EXPAT_LINK=" -lexpat"
19618 fi
19619
19620             fi
19621         fi
19622         if test "x$EXPAT_LINK" = "x" ; then
19623             if test "$wxUSE_EXPAT" = "sys" ; then
19624                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
19625 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
19626    { (exit 1); exit 1; }; }
19627             else
19628                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
19629 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
19630                 wxUSE_EXPAT=builtin
19631             fi
19632         else
19633                         wxUSE_EXPAT=sys
19634         fi
19635     fi
19636     if test "$wxUSE_EXPAT" = "builtin" ; then
19637
19638
19639 subdirs="$subdirs src/expat"
19640
19641     fi
19642 fi
19643
19644
19645
19646 AFMINSTALL=
19647 WIN32INSTALL=
19648
19649 TOOLKIT=
19650 TOOLKIT_INCLUDE=
19651 WIDGET_SET=
19652
19653 if test "$USE_WIN32" = 1 ; then
19654
19655 for ac_header in w32api.h
19656 do
19657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19659   echo "$as_me:$LINENO: checking for $ac_header" >&5
19660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19662   echo $ECHO_N "(cached) $ECHO_C" >&6
19663 fi
19664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19666 else
19667   # Is the header compilable?
19668 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19670 cat >conftest.$ac_ext <<_ACEOF
19671 #line $LINENO "configure"
19672 /* confdefs.h.  */
19673 _ACEOF
19674 cat confdefs.h >>conftest.$ac_ext
19675 cat >>conftest.$ac_ext <<_ACEOF
19676 /* end confdefs.h.  */
19677 $ac_includes_default
19678 #include <$ac_header>
19679 _ACEOF
19680 rm -f conftest.$ac_objext
19681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19682   (eval $ac_compile) 2>&5
19683   ac_status=$?
19684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685   (exit $ac_status); } &&
19686          { ac_try='test -s conftest.$ac_objext'
19687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19688   (eval $ac_try) 2>&5
19689   ac_status=$?
19690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691   (exit $ac_status); }; }; then
19692   ac_header_compiler=yes
19693 else
19694   echo "$as_me: failed program was:" >&5
19695 sed 's/^/| /' conftest.$ac_ext >&5
19696
19697 ac_header_compiler=no
19698 fi
19699 rm -f conftest.$ac_objext conftest.$ac_ext
19700 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19701 echo "${ECHO_T}$ac_header_compiler" >&6
19702
19703 # Is the header present?
19704 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19705 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19706 cat >conftest.$ac_ext <<_ACEOF
19707 #line $LINENO "configure"
19708 /* confdefs.h.  */
19709 _ACEOF
19710 cat confdefs.h >>conftest.$ac_ext
19711 cat >>conftest.$ac_ext <<_ACEOF
19712 /* end confdefs.h.  */
19713 #include <$ac_header>
19714 _ACEOF
19715 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19716   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19717   ac_status=$?
19718   grep -v '^ *+' conftest.er1 >conftest.err
19719   rm -f conftest.er1
19720   cat conftest.err >&5
19721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722   (exit $ac_status); } >/dev/null; then
19723   if test -s conftest.err; then
19724     ac_cpp_err=$ac_c_preproc_warn_flag
19725   else
19726     ac_cpp_err=
19727   fi
19728 else
19729   ac_cpp_err=yes
19730 fi
19731 if test -z "$ac_cpp_err"; then
19732   ac_header_preproc=yes
19733 else
19734   echo "$as_me: failed program was:" >&5
19735 sed 's/^/| /' conftest.$ac_ext >&5
19736
19737   ac_header_preproc=no
19738 fi
19739 rm -f conftest.err conftest.$ac_ext
19740 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19741 echo "${ECHO_T}$ac_header_preproc" >&6
19742
19743 # So?  What about this header?
19744 case $ac_header_compiler:$ac_header_preproc in
19745   yes:no )
19746     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19747 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19748     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19750     (
19751       cat <<\_ASBOX
19752 ## ------------------------------------ ##
19753 ## Report this to bug-autoconf@gnu.org. ##
19754 ## ------------------------------------ ##
19755 _ASBOX
19756     ) |
19757       sed "s/^/$as_me: WARNING:     /" >&2
19758     ;;
19759   no:yes )
19760     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19761 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19762     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19763 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19764     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19765 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19766     (
19767       cat <<\_ASBOX
19768 ## ------------------------------------ ##
19769 ## Report this to bug-autoconf@gnu.org. ##
19770 ## ------------------------------------ ##
19771 _ASBOX
19772     ) |
19773       sed "s/^/$as_me: WARNING:     /" >&2
19774     ;;
19775 esac
19776 echo "$as_me:$LINENO: checking for $ac_header" >&5
19777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19778 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19779   echo $ECHO_N "(cached) $ECHO_C" >&6
19780 else
19781   eval "$as_ac_Header=$ac_header_preproc"
19782 fi
19783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19784 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19785
19786 fi
19787 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19788   cat >>confdefs.h <<_ACEOF
19789 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19790 _ACEOF
19791
19792 fi
19793
19794 done
19795
19796     if test "${ac_cv_header_windows_h+set}" = set; then
19797   echo "$as_me:$LINENO: checking for windows.h" >&5
19798 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19799 if test "${ac_cv_header_windows_h+set}" = set; then
19800   echo $ECHO_N "(cached) $ECHO_C" >&6
19801 fi
19802 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19803 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19804 else
19805   # Is the header compilable?
19806 echo "$as_me:$LINENO: checking windows.h usability" >&5
19807 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
19808 cat >conftest.$ac_ext <<_ACEOF
19809 #line $LINENO "configure"
19810 /* confdefs.h.  */
19811 _ACEOF
19812 cat confdefs.h >>conftest.$ac_ext
19813 cat >>conftest.$ac_ext <<_ACEOF
19814 /* end confdefs.h.  */
19815 $ac_includes_default
19816 #include <windows.h>
19817 _ACEOF
19818 rm -f conftest.$ac_objext
19819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19820   (eval $ac_compile) 2>&5
19821   ac_status=$?
19822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823   (exit $ac_status); } &&
19824          { ac_try='test -s conftest.$ac_objext'
19825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19826   (eval $ac_try) 2>&5
19827   ac_status=$?
19828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829   (exit $ac_status); }; }; then
19830   ac_header_compiler=yes
19831 else
19832   echo "$as_me: failed program was:" >&5
19833 sed 's/^/| /' conftest.$ac_ext >&5
19834
19835 ac_header_compiler=no
19836 fi
19837 rm -f conftest.$ac_objext conftest.$ac_ext
19838 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19839 echo "${ECHO_T}$ac_header_compiler" >&6
19840
19841 # Is the header present?
19842 echo "$as_me:$LINENO: checking windows.h presence" >&5
19843 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
19844 cat >conftest.$ac_ext <<_ACEOF
19845 #line $LINENO "configure"
19846 /* confdefs.h.  */
19847 _ACEOF
19848 cat confdefs.h >>conftest.$ac_ext
19849 cat >>conftest.$ac_ext <<_ACEOF
19850 /* end confdefs.h.  */
19851 #include <windows.h>
19852 _ACEOF
19853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19854   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19855   ac_status=$?
19856   grep -v '^ *+' conftest.er1 >conftest.err
19857   rm -f conftest.er1
19858   cat conftest.err >&5
19859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860   (exit $ac_status); } >/dev/null; then
19861   if test -s conftest.err; then
19862     ac_cpp_err=$ac_c_preproc_warn_flag
19863   else
19864     ac_cpp_err=
19865   fi
19866 else
19867   ac_cpp_err=yes
19868 fi
19869 if test -z "$ac_cpp_err"; then
19870   ac_header_preproc=yes
19871 else
19872   echo "$as_me: failed program was:" >&5
19873 sed 's/^/| /' conftest.$ac_ext >&5
19874
19875   ac_header_preproc=no
19876 fi
19877 rm -f conftest.err conftest.$ac_ext
19878 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19879 echo "${ECHO_T}$ac_header_preproc" >&6
19880
19881 # So?  What about this header?
19882 case $ac_header_compiler:$ac_header_preproc in
19883   yes:no )
19884     { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
19885 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19886     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19887 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19888     (
19889       cat <<\_ASBOX
19890 ## ------------------------------------ ##
19891 ## Report this to bug-autoconf@gnu.org. ##
19892 ## ------------------------------------ ##
19893 _ASBOX
19894     ) |
19895       sed "s/^/$as_me: WARNING:     /" >&2
19896     ;;
19897   no:yes )
19898     { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
19899 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
19900     { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
19901 echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
19902     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
19903 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
19904     (
19905       cat <<\_ASBOX
19906 ## ------------------------------------ ##
19907 ## Report this to bug-autoconf@gnu.org. ##
19908 ## ------------------------------------ ##
19909 _ASBOX
19910     ) |
19911       sed "s/^/$as_me: WARNING:     /" >&2
19912     ;;
19913 esac
19914 echo "$as_me:$LINENO: checking for windows.h" >&5
19915 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
19916 if test "${ac_cv_header_windows_h+set}" = set; then
19917   echo $ECHO_N "(cached) $ECHO_C" >&6
19918 else
19919   ac_cv_header_windows_h=$ac_header_preproc
19920 fi
19921 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
19922 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
19923
19924 fi
19925 if test $ac_cv_header_windows_h = yes; then
19926   :
19927 else
19928
19929         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
19930 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
19931    { (exit 1); exit 1; }; }
19932
19933 fi
19934
19935
19936
19937             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
19938
19939     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
19940         LIBS="$LIBS -loleacc"
19941     fi
19942
19943     case "${host}" in
19944         *-*-cygwin* )
19945                         LIBS="$LIBS -lkernel32 -luser32"
19946             TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
19947     esac
19948
19949         if test "$wxUSE_ODBC" = "sys" ; then
19950         wxUSE_ODBC = "yes"
19951     fi
19952     if test "$wxUSE_ODBC" = "yes" ; then
19953         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
19954         cat >>confdefs.h <<\_ACEOF
19955 #define wxUSE_ODBC 1
19956 _ACEOF
19957
19958     fi
19959
19960     RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
19961     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
19962
19963         WIN32INSTALL=win32install
19964 fi
19965
19966 if test "$wxUSE_GUI" = "yes"; then
19967     USE_GUI=1
19968
19969     GUI_TK_LIBRARY=
19970
19971     WXGTK12=
19972     WXGTK127=
19973     WXGTK20=
19974
19975     if test "$wxUSE_MSW" = 1 ; then
19976         TOOLKIT=MSW
19977         GUIDIST=MSW_DIST
19978
19979                                 case "${host}" in
19980             *-*-mingw32* )
19981                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
19982         esac
19983     fi
19984
19985     if test "$wxUSE_GTK" = 1; then
19986         echo "$as_me:$LINENO: checking for GTK+ version" >&5
19987 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
19988
19989         gtk_version_cached=1
19990         if test "${wx_cv_lib_gtk+set}" = set; then
19991   echo $ECHO_N "(cached) $ECHO_C" >&6
19992 else
19993
19994                                                 gtk_version_cached=0
19995                 echo "$as_me:$LINENO: result: " >&5
19996 echo "${ECHO_T}" >&6
19997
19998                                                 GTK_MODULES=
19999                 if test "$wxUSE_THREADS" = "yes"; then
20000                     GTK_MODULES=gthread
20001                 fi
20002
20003                                                 wx_cv_lib_gtk=
20004                 if test "x$wxUSE_GTK2" = "xyes"; then
20005                     # Check whether --enable-gtktest or --disable-gtktest was given.
20006 if test "${enable_gtktest+set}" = set; then
20007   enableval="$enable_gtktest"
20008
20009 else
20010   enable_gtktest=yes
20011 fi;
20012
20013   pkg_config_args=gtk+-2.0
20014   for module in . $GTK_MODULES
20015   do
20016       case "$module" in
20017          gthread)
20018              pkg_config_args="$pkg_config_args gthread-2.0"
20019          ;;
20020       esac
20021   done
20022
20023   no_gtk=""
20024
20025   # Extract the first word of "pkg-config", so it can be a program name with args.
20026 set dummy pkg-config; ac_word=$2
20027 echo "$as_me:$LINENO: checking for $ac_word" >&5
20028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20029 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20030   echo $ECHO_N "(cached) $ECHO_C" >&6
20031 else
20032   case $PKG_CONFIG in
20033   [\\/]* | ?:[\\/]*)
20034   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20035   ;;
20036   *)
20037   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20038 for as_dir in $PATH
20039 do
20040   IFS=$as_save_IFS
20041   test -z "$as_dir" && as_dir=.
20042   for ac_exec_ext in '' $ac_executable_extensions; do
20043   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20044     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20045     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20046     break 2
20047   fi
20048 done
20049 done
20050
20051   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20052   ;;
20053 esac
20054 fi
20055 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20056
20057 if test -n "$PKG_CONFIG"; then
20058   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20059 echo "${ECHO_T}$PKG_CONFIG" >&6
20060 else
20061   echo "$as_me:$LINENO: result: no" >&5
20062 echo "${ECHO_T}no" >&6
20063 fi
20064
20065
20066   if test x$PKG_CONFIG != xno ; then
20067     if pkg-config --atleast-pkgconfig-version 0.7 ; then
20068       :
20069     else
20070       echo *** pkg-config too old; version 0.7 or better required.
20071       no_gtk=yes
20072       PKG_CONFIG=no
20073     fi
20074   else
20075     no_gtk=yes
20076   fi
20077
20078   min_gtk_version=2.0.0
20079   echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
20080 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
20081
20082   if test x$PKG_CONFIG != xno ; then
20083     ## don't try to run the test against uninstalled libtool libs
20084     if $PKG_CONFIG --uninstalled $pkg_config_args; then
20085           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
20086           enable_gtktest=no
20087     fi
20088
20089     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
20090           :
20091     else
20092           no_gtk=yes
20093     fi
20094   fi
20095
20096   if test x"$no_gtk" = x ; then
20097     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
20098     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
20099     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20100            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20101     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20102            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20103     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20104            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20105     if test "x$enable_gtktest" = "xyes" ; then
20106       ac_save_CFLAGS="$CFLAGS"
20107       ac_save_LIBS="$LIBS"
20108       CFLAGS="$CFLAGS $GTK_CFLAGS"
20109       LIBS="$GTK_LIBS $LIBS"
20110       rm -f conf.gtktest
20111       if test "$cross_compiling" = yes; then
20112   echo $ac_n "cross compiling; assumed OK... $ac_c"
20113 else
20114   cat >conftest.$ac_ext <<_ACEOF
20115 #line $LINENO "configure"
20116 /* confdefs.h.  */
20117 _ACEOF
20118 cat confdefs.h >>conftest.$ac_ext
20119 cat >>conftest.$ac_ext <<_ACEOF
20120 /* end confdefs.h.  */
20121
20122 #include <gtk/gtk.h>
20123 #include <stdio.h>
20124 #include <stdlib.h>
20125
20126 int
20127 main ()
20128 {
20129   int major, minor, micro;
20130   char *tmp_version;
20131
20132   system ("touch conf.gtktest");
20133
20134   /* HP/UX 9 (%@#!) writes to sscanf strings */
20135   tmp_version = g_strdup("$min_gtk_version");
20136   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20137      printf("%s, bad version string\n", "$min_gtk_version");
20138      exit(1);
20139    }
20140
20141   if ((gtk_major_version != $gtk_config_major_version) ||
20142       (gtk_minor_version != $gtk_config_minor_version) ||
20143       (gtk_micro_version != $gtk_config_micro_version))
20144     {
20145       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
20146              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20147              gtk_major_version, gtk_minor_version, gtk_micro_version);
20148       printf ("*** was found! If pkg-config was correct, then it is best\n");
20149       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20150       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20151       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20152       printf("*** required on your system.\n");
20153       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
20154       printf("*** to point to the correct configuration files\n");
20155     }
20156   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20157            (gtk_minor_version != GTK_MINOR_VERSION) ||
20158            (gtk_micro_version != GTK_MICRO_VERSION))
20159     {
20160       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20161              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20162       printf("*** library (version %d.%d.%d)\n",
20163              gtk_major_version, gtk_minor_version, gtk_micro_version);
20164     }
20165   else
20166     {
20167       if ((gtk_major_version > major) ||
20168         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20169         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20170       {
20171         return 0;
20172        }
20173      else
20174       {
20175         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20176                gtk_major_version, gtk_minor_version, gtk_micro_version);
20177         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20178                major, minor, micro);
20179         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20180         printf("***\n");
20181         printf("*** If you have already installed a sufficiently new version, this error\n");
20182         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
20183         printf("*** being found. The easiest way to fix this is to remove the old version\n");
20184         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
20185         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
20186         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20187         printf("*** so that the correct libraries are found at run-time))\n");
20188       }
20189     }
20190   return 1;
20191 }
20192
20193 _ACEOF
20194 rm -f conftest$ac_exeext
20195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20196   (eval $ac_link) 2>&5
20197   ac_status=$?
20198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20201   (eval $ac_try) 2>&5
20202   ac_status=$?
20203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204   (exit $ac_status); }; }; then
20205   :
20206 else
20207   echo "$as_me: program exited with status $ac_status" >&5
20208 echo "$as_me: failed program was:" >&5
20209 sed 's/^/| /' conftest.$ac_ext >&5
20210
20211 ( exit $ac_status )
20212 no_gtk=yes
20213 fi
20214 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20215 fi
20216        CFLAGS="$ac_save_CFLAGS"
20217        LIBS="$ac_save_LIBS"
20218      fi
20219   fi
20220   if test "x$no_gtk" = x ; then
20221      echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
20222 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
20223      wx_cv_lib_gtk=2.0
20224   else
20225      echo "$as_me:$LINENO: result: no" >&5
20226 echo "${ECHO_T}no" >&6
20227      if test "$PKG_CONFIG" = "no" ; then
20228        echo "*** A new enough version of pkg-config was not found."
20229        echo "*** See http://pkgconfig.sourceforge.net"
20230      else
20231        if test -f conf.gtktest ; then
20232         :
20233        else
20234           echo "*** Could not run GTK+ test program, checking why..."
20235           ac_save_CFLAGS="$CFLAGS"
20236           ac_save_LIBS="$LIBS"
20237           CFLAGS="$CFLAGS $GTK_CFLAGS"
20238           LIBS="$LIBS $GTK_LIBS"
20239           cat >conftest.$ac_ext <<_ACEOF
20240 #line $LINENO "configure"
20241 /* confdefs.h.  */
20242 _ACEOF
20243 cat confdefs.h >>conftest.$ac_ext
20244 cat >>conftest.$ac_ext <<_ACEOF
20245 /* end confdefs.h.  */
20246
20247 #include <gtk/gtk.h>
20248 #include <stdio.h>
20249
20250 int
20251 main ()
20252 {
20253  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20254   ;
20255   return 0;
20256 }
20257 _ACEOF
20258 rm -f conftest.$ac_objext conftest$ac_exeext
20259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20260   (eval $ac_link) 2>&5
20261   ac_status=$?
20262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263   (exit $ac_status); } &&
20264          { ac_try='test -s conftest$ac_exeext'
20265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20266   (eval $ac_try) 2>&5
20267   ac_status=$?
20268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269   (exit $ac_status); }; }; then
20270    echo "*** The test program compiled, but did not run. This usually means"
20271           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
20272           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
20273           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20274           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
20275           echo "*** is required on your system"
20276           echo "***"
20277           echo "*** If you have an old version installed, it is best to remove it, although"
20278           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20279 else
20280   echo "$as_me: failed program was:" >&5
20281 sed 's/^/| /' conftest.$ac_ext >&5
20282
20283  echo "*** The test program failed to compile or link. See the file config.log for the"
20284           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
20285 fi
20286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20287           CFLAGS="$ac_save_CFLAGS"
20288           LIBS="$ac_save_LIBS"
20289        fi
20290      fi
20291      GTK_CFLAGS=""
20292      GTK_LIBS=""
20293      :
20294   fi
20295
20296
20297   rm -f conf.gtktest
20298
20299                 else
20300
20301 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
20302 if test "${with_gtk_prefix+set}" = set; then
20303   withval="$with_gtk_prefix"
20304   gtk_config_prefix="$withval"
20305 else
20306   gtk_config_prefix=""
20307 fi;
20308
20309 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20310 if test "${with_gtk_exec_prefix+set}" = set; then
20311   withval="$with_gtk_exec_prefix"
20312   gtk_config_exec_prefix="$withval"
20313 else
20314   gtk_config_exec_prefix=""
20315 fi;
20316 # Check whether --enable-gtktest or --disable-gtktest was given.
20317 if test "${enable_gtktest+set}" = set; then
20318   enableval="$enable_gtktest"
20319
20320 else
20321   enable_gtktest=yes
20322 fi;
20323
20324   for module in . $GTK_MODULES
20325   do
20326       case "$module" in
20327          gthread)
20328              gtk_config_args="$gtk_config_args gthread"
20329          ;;
20330       esac
20331   done
20332
20333   if test x$gtk_config_exec_prefix != x ; then
20334      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20335      if test x${GTK_CONFIG+set} != xset ; then
20336         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20337      fi
20338   fi
20339   if test x$gtk_config_prefix != x ; then
20340      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20341      if test x${GTK_CONFIG+set} != xset ; then
20342         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20343      fi
20344   fi
20345
20346   # Extract the first word of "gtk-config", so it can be a program name with args.
20347 set dummy gtk-config; ac_word=$2
20348 echo "$as_me:$LINENO: checking for $ac_word" >&5
20349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20350 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20351   echo $ECHO_N "(cached) $ECHO_C" >&6
20352 else
20353   case $GTK_CONFIG in
20354   [\\/]* | ?:[\\/]*)
20355   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20356   ;;
20357   *)
20358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20359 for as_dir in $PATH
20360 do
20361   IFS=$as_save_IFS
20362   test -z "$as_dir" && as_dir=.
20363   for ac_exec_ext in '' $ac_executable_extensions; do
20364   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20365     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20367     break 2
20368   fi
20369 done
20370 done
20371
20372   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20373   ;;
20374 esac
20375 fi
20376 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20377
20378 if test -n "$GTK_CONFIG"; then
20379   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20380 echo "${ECHO_T}$GTK_CONFIG" >&6
20381 else
20382   echo "$as_me:$LINENO: result: no" >&5
20383 echo "${ECHO_T}no" >&6
20384 fi
20385
20386   min_gtk_version=1.2.7
20387   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20388 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
20389   no_gtk=""
20390   if test "$GTK_CONFIG" = "no" ; then
20391     no_gtk=yes
20392   else
20393     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20394     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20395     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20396            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20397     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20398            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20399     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20400            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20401     if test "x$enable_gtktest" = "xyes" ; then
20402       ac_save_CFLAGS="$CFLAGS"
20403       ac_save_LIBS="$LIBS"
20404       CFLAGS="$CFLAGS $GTK_CFLAGS"
20405       LIBS="$GTK_LIBS $LIBS"
20406       rm -f conf.gtktest
20407       if test "$cross_compiling" = yes; then
20408   echo $ac_n "cross compiling; assumed OK... $ac_c"
20409 else
20410   cat >conftest.$ac_ext <<_ACEOF
20411 #line $LINENO "configure"
20412 /* confdefs.h.  */
20413 _ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h.  */
20417
20418 #include <gtk/gtk.h>
20419 #include <stdio.h>
20420 #include <stdlib.h>
20421
20422 int
20423 main ()
20424 {
20425   int major, minor, micro;
20426   char *tmp_version;
20427
20428   system ("touch conf.gtktest");
20429
20430   /* HP/UX 9 (%@#!) writes to sscanf strings */
20431   tmp_version = g_strdup("$min_gtk_version");
20432   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20433      printf("%s, bad version string\n", "$min_gtk_version");
20434      exit(1);
20435    }
20436
20437   if ((gtk_major_version != $gtk_config_major_version) ||
20438       (gtk_minor_version != $gtk_config_minor_version) ||
20439       (gtk_micro_version != $gtk_config_micro_version))
20440     {
20441       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
20442              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20443              gtk_major_version, gtk_minor_version, gtk_micro_version);
20444       printf ("*** was found! If gtk-config was correct, then it is best\n");
20445       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20446       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20447       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20448       printf("*** required on your system.\n");
20449       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20450       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20451       printf("*** before re-running configure\n");
20452     }
20453 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20454   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20455            (gtk_minor_version != GTK_MINOR_VERSION) ||
20456            (gtk_micro_version != GTK_MICRO_VERSION))
20457     {
20458       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20459              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20460       printf("*** library (version %d.%d.%d)\n",
20461              gtk_major_version, gtk_minor_version, gtk_micro_version);
20462     }
20463 #endif /* defined (GTK_MAJOR_VERSION) ... */
20464   else
20465     {
20466       if ((gtk_major_version > major) ||
20467         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20468         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20469       {
20470         return 0;
20471        }
20472      else
20473       {
20474         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20475                gtk_major_version, gtk_minor_version, gtk_micro_version);
20476         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20477                major, minor, micro);
20478         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20479         printf("***\n");
20480         printf("*** If you have already installed a sufficiently new version, this error\n");
20481         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20482         printf("*** being found. The easiest way to fix this is to remove the old version\n");
20483         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20484         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20485         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20486         printf("*** so that the correct libraries are found at run-time))\n");
20487       }
20488     }
20489   return 1;
20490 }
20491
20492 _ACEOF
20493 rm -f conftest$ac_exeext
20494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20495   (eval $ac_link) 2>&5
20496   ac_status=$?
20497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20500   (eval $ac_try) 2>&5
20501   ac_status=$?
20502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503   (exit $ac_status); }; }; then
20504   :
20505 else
20506   echo "$as_me: program exited with status $ac_status" >&5
20507 echo "$as_me: failed program was:" >&5
20508 sed 's/^/| /' conftest.$ac_ext >&5
20509
20510 ( exit $ac_status )
20511 no_gtk=yes
20512 fi
20513 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20514 fi
20515        CFLAGS="$ac_save_CFLAGS"
20516        LIBS="$ac_save_LIBS"
20517      fi
20518   fi
20519   if test "x$no_gtk" = x ; then
20520      echo "$as_me:$LINENO: result: yes" >&5
20521 echo "${ECHO_T}yes" >&6
20522      wx_cv_lib_gtk=1.2.7
20523   else
20524      echo "$as_me:$LINENO: result: no" >&5
20525 echo "${ECHO_T}no" >&6
20526      if test "$GTK_CONFIG" = "no" ; then
20527        echo "*** The gtk-config script installed by GTK could not be found"
20528        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20529        echo "*** your path, or set the GTK_CONFIG environment variable to the"
20530        echo "*** full path to gtk-config."
20531      else
20532        if test -f conf.gtktest ; then
20533         :
20534        else
20535           echo "*** Could not run GTK test program, checking why..."
20536           CFLAGS="$CFLAGS $GTK_CFLAGS"
20537           LIBS="$LIBS $GTK_LIBS"
20538           cat >conftest.$ac_ext <<_ACEOF
20539 #line $LINENO "configure"
20540 /* confdefs.h.  */
20541 _ACEOF
20542 cat confdefs.h >>conftest.$ac_ext
20543 cat >>conftest.$ac_ext <<_ACEOF
20544 /* end confdefs.h.  */
20545
20546 #include <gtk/gtk.h>
20547 #include <stdio.h>
20548
20549 int
20550 main ()
20551 {
20552  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20553   ;
20554   return 0;
20555 }
20556 _ACEOF
20557 rm -f conftest.$ac_objext conftest$ac_exeext
20558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20559   (eval $ac_link) 2>&5
20560   ac_status=$?
20561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562   (exit $ac_status); } &&
20563          { ac_try='test -s conftest$ac_exeext'
20564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20565   (eval $ac_try) 2>&5
20566   ac_status=$?
20567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568   (exit $ac_status); }; }; then
20569    echo "*** The test program compiled, but did not run. This usually means"
20570           echo "*** that the run-time linker is not finding GTK or finding the wrong"
20571           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20572           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20573           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
20574           echo "*** is required on your system"
20575           echo "***"
20576           echo "*** If you have an old version installed, it is best to remove it, although"
20577           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20578           echo "***"
20579           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20580           echo "*** came with the system with the command"
20581           echo "***"
20582           echo "***    rpm --erase --nodeps gtk gtk-devel"
20583 else
20584   echo "$as_me: failed program was:" >&5
20585 sed 's/^/| /' conftest.$ac_ext >&5
20586
20587  echo "*** The test program failed to compile or link. See the file config.log for the"
20588           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20589           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
20590           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
20591 fi
20592 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20593           CFLAGS="$ac_save_CFLAGS"
20594           LIBS="$ac_save_LIBS"
20595        fi
20596      fi
20597      GTK_CFLAGS=""
20598      GTK_LIBS=""
20599      :
20600   fi
20601
20602
20603   rm -f conf.gtktest
20604
20605
20606                     if test -z "$wx_cv_lib_gtk"; then
20607
20608 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
20609 if test "${with_gtk_prefix+set}" = set; then
20610   withval="$with_gtk_prefix"
20611   gtk_config_prefix="$withval"
20612 else
20613   gtk_config_prefix=""
20614 fi;
20615
20616 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20617 if test "${with_gtk_exec_prefix+set}" = set; then
20618   withval="$with_gtk_exec_prefix"
20619   gtk_config_exec_prefix="$withval"
20620 else
20621   gtk_config_exec_prefix=""
20622 fi;
20623 # Check whether --enable-gtktest or --disable-gtktest was given.
20624 if test "${enable_gtktest+set}" = set; then
20625   enableval="$enable_gtktest"
20626
20627 else
20628   enable_gtktest=yes
20629 fi;
20630
20631   for module in . $GTK_MODULES
20632   do
20633       case "$module" in
20634          gthread)
20635              gtk_config_args="$gtk_config_args gthread"
20636          ;;
20637       esac
20638   done
20639
20640   if test x$gtk_config_exec_prefix != x ; then
20641      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20642      if test x${GTK_CONFIG+set} != xset ; then
20643         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20644      fi
20645   fi
20646   if test x$gtk_config_prefix != x ; then
20647      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20648      if test x${GTK_CONFIG+set} != xset ; then
20649         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
20650      fi
20651   fi
20652
20653   # Extract the first word of "gtk-config", so it can be a program name with args.
20654 set dummy gtk-config; ac_word=$2
20655 echo "$as_me:$LINENO: checking for $ac_word" >&5
20656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20657 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
20658   echo $ECHO_N "(cached) $ECHO_C" >&6
20659 else
20660   case $GTK_CONFIG in
20661   [\\/]* | ?:[\\/]*)
20662   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
20663   ;;
20664   *)
20665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20666 for as_dir in $PATH
20667 do
20668   IFS=$as_save_IFS
20669   test -z "$as_dir" && as_dir=.
20670   for ac_exec_ext in '' $ac_executable_extensions; do
20671   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20672     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20673     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20674     break 2
20675   fi
20676 done
20677 done
20678
20679   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
20680   ;;
20681 esac
20682 fi
20683 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
20684
20685 if test -n "$GTK_CONFIG"; then
20686   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
20687 echo "${ECHO_T}$GTK_CONFIG" >&6
20688 else
20689   echo "$as_me:$LINENO: result: no" >&5
20690 echo "${ECHO_T}no" >&6
20691 fi
20692
20693   min_gtk_version=1.2.3
20694   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
20695 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
20696   no_gtk=""
20697   if test "$GTK_CONFIG" = "no" ; then
20698     no_gtk=yes
20699   else
20700     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
20701     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
20702     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
20703            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20704     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
20705            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20706     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
20707            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20708     if test "x$enable_gtktest" = "xyes" ; then
20709       ac_save_CFLAGS="$CFLAGS"
20710       ac_save_LIBS="$LIBS"
20711       CFLAGS="$CFLAGS $GTK_CFLAGS"
20712       LIBS="$GTK_LIBS $LIBS"
20713       rm -f conf.gtktest
20714       if test "$cross_compiling" = yes; then
20715   echo $ac_n "cross compiling; assumed OK... $ac_c"
20716 else
20717   cat >conftest.$ac_ext <<_ACEOF
20718 #line $LINENO "configure"
20719 /* confdefs.h.  */
20720 _ACEOF
20721 cat confdefs.h >>conftest.$ac_ext
20722 cat >>conftest.$ac_ext <<_ACEOF
20723 /* end confdefs.h.  */
20724
20725 #include <gtk/gtk.h>
20726 #include <stdio.h>
20727 #include <stdlib.h>
20728
20729 int
20730 main ()
20731 {
20732   int major, minor, micro;
20733   char *tmp_version;
20734
20735   system ("touch conf.gtktest");
20736
20737   /* HP/UX 9 (%@#!) writes to sscanf strings */
20738   tmp_version = g_strdup("$min_gtk_version");
20739   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20740      printf("%s, bad version string\n", "$min_gtk_version");
20741      exit(1);
20742    }
20743
20744   if ((gtk_major_version != $gtk_config_major_version) ||
20745       (gtk_minor_version != $gtk_config_minor_version) ||
20746       (gtk_micro_version != $gtk_config_micro_version))
20747     {
20748       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
20749              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20750              gtk_major_version, gtk_minor_version, gtk_micro_version);
20751       printf ("*** was found! If gtk-config was correct, then it is best\n");
20752       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20753       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20754       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20755       printf("*** required on your system.\n");
20756       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
20757       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
20758       printf("*** before re-running configure\n");
20759     }
20760 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
20761   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20762            (gtk_minor_version != GTK_MINOR_VERSION) ||
20763            (gtk_micro_version != GTK_MICRO_VERSION))
20764     {
20765       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20766              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20767       printf("*** library (version %d.%d.%d)\n",
20768              gtk_major_version, gtk_minor_version, gtk_micro_version);
20769     }
20770 #endif /* defined (GTK_MAJOR_VERSION) ... */
20771   else
20772     {
20773       if ((gtk_major_version > major) ||
20774         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20775         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20776       {
20777         return 0;
20778        }
20779      else
20780       {
20781         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20782                gtk_major_version, gtk_minor_version, gtk_micro_version);
20783         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20784                major, minor, micro);
20785         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20786         printf("***\n");
20787         printf("*** If you have already installed a sufficiently new version, this error\n");
20788         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
20789         printf("*** being found. The easiest way to fix this is to remove the old version\n");
20790         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
20791         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
20792         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20793         printf("*** so that the correct libraries are found at run-time))\n");
20794       }
20795     }
20796   return 1;
20797 }
20798
20799 _ACEOF
20800 rm -f conftest$ac_exeext
20801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20802   (eval $ac_link) 2>&5
20803   ac_status=$?
20804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20807   (eval $ac_try) 2>&5
20808   ac_status=$?
20809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810   (exit $ac_status); }; }; then
20811   :
20812 else
20813   echo "$as_me: program exited with status $ac_status" >&5
20814 echo "$as_me: failed program was:" >&5
20815 sed 's/^/| /' conftest.$ac_ext >&5
20816
20817 ( exit $ac_status )
20818 no_gtk=yes
20819 fi
20820 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20821 fi
20822        CFLAGS="$ac_save_CFLAGS"
20823        LIBS="$ac_save_LIBS"
20824      fi
20825   fi
20826   if test "x$no_gtk" = x ; then
20827      echo "$as_me:$LINENO: result: yes" >&5
20828 echo "${ECHO_T}yes" >&6
20829      wx_cv_lib_gtk=1.2.3
20830   else
20831      echo "$as_me:$LINENO: result: no" >&5
20832 echo "${ECHO_T}no" >&6
20833      if test "$GTK_CONFIG" = "no" ; then
20834        echo "*** The gtk-config script installed by GTK could not be found"
20835        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
20836        echo "*** your path, or set the GTK_CONFIG environment variable to the"
20837        echo "*** full path to gtk-config."
20838      else
20839        if test -f conf.gtktest ; then
20840         :
20841        else
20842           echo "*** Could not run GTK test program, checking why..."
20843           CFLAGS="$CFLAGS $GTK_CFLAGS"
20844           LIBS="$LIBS $GTK_LIBS"
20845           cat >conftest.$ac_ext <<_ACEOF
20846 #line $LINENO "configure"
20847 /* confdefs.h.  */
20848 _ACEOF
20849 cat confdefs.h >>conftest.$ac_ext
20850 cat >>conftest.$ac_ext <<_ACEOF
20851 /* end confdefs.h.  */
20852
20853 #include <gtk/gtk.h>
20854 #include <stdio.h>
20855
20856 int
20857 main ()
20858 {
20859  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20860   ;
20861   return 0;
20862 }
20863 _ACEOF
20864 rm -f conftest.$ac_objext conftest$ac_exeext
20865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20866   (eval $ac_link) 2>&5
20867   ac_status=$?
20868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869   (exit $ac_status); } &&
20870          { ac_try='test -s conftest$ac_exeext'
20871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20872   (eval $ac_try) 2>&5
20873   ac_status=$?
20874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875   (exit $ac_status); }; }; then
20876    echo "*** The test program compiled, but did not run. This usually means"
20877           echo "*** that the run-time linker is not finding GTK or finding the wrong"
20878           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
20879           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20880           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
20881           echo "*** is required on your system"
20882           echo "***"
20883           echo "*** If you have an old version installed, it is best to remove it, although"
20884           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20885           echo "***"
20886           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
20887           echo "*** came with the system with the command"
20888           echo "***"
20889           echo "***    rpm --erase --nodeps gtk gtk-devel"
20890 else
20891   echo "$as_me: failed program was:" >&5
20892 sed 's/^/| /' conftest.$ac_ext >&5
20893
20894  echo "*** The test program failed to compile or link. See the file config.log for the"
20895           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
20896           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
20897           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
20898 fi
20899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20900           CFLAGS="$ac_save_CFLAGS"
20901           LIBS="$ac_save_LIBS"
20902        fi
20903      fi
20904      GTK_CFLAGS=""
20905      GTK_LIBS=""
20906      :
20907   fi
20908
20909
20910   rm -f conf.gtktest
20911
20912                     fi
20913                 fi
20914
20915                 if test -z "$wx_cv_lib_gtk"; then
20916                                         wx_cv_lib_gtk=none
20917                 else
20918                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
20919                     wx_cv_libs_gtk=$GTK_LIBS
20920                 fi
20921
20922
20923 fi
20924
20925
20926                         if test "$gtk_version_cached" = 1; then
20927             echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
20928 echo "${ECHO_T}$wx_cv_lib_gtk" >&6
20929         fi
20930
20931         case "$wx_cv_lib_gtk" in
20932             2.0)    WXGTK20=1
20933                     TOOLKIT_VERSION=2
20934                     ;;
20935             1.2.7)  WXGTK127=1
20936                     WXGTK12=1
20937                     ;;
20938             1.2.3)  WXGTK12=1
20939                     ;;
20940             *)      { { echo "$as_me:$LINENO: error:
20941 Please check that gtk-config is in path, the directory
20942 where GTK+ libraries are installed (returned by
20943 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20944 equivalent variable and GTK+ is version 1.2.3 or above.
20945                             " >&5
20946 echo "$as_me: error:
20947 Please check that gtk-config is in path, the directory
20948 where GTK+ libraries are installed (returned by
20949 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
20950 equivalent variable and GTK+ is version 1.2.3 or above.
20951                             " >&2;}
20952    { (exit 1); exit 1; }; }
20953                     ;;
20954         esac
20955
20956         if test "$WXGTK20" = 1; then
20957             if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
20958
20959   succeeded=no
20960
20961   if test -z "$PKG_CONFIG"; then
20962     # Extract the first word of "pkg-config", so it can be a program name with args.
20963 set dummy pkg-config; ac_word=$2
20964 echo "$as_me:$LINENO: checking for $ac_word" >&5
20965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20966 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20967   echo $ECHO_N "(cached) $ECHO_C" >&6
20968 else
20969   case $PKG_CONFIG in
20970   [\\/]* | ?:[\\/]*)
20971   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20972   ;;
20973   *)
20974   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20975 for as_dir in $PATH
20976 do
20977   IFS=$as_save_IFS
20978   test -z "$as_dir" && as_dir=.
20979   for ac_exec_ext in '' $ac_executable_extensions; do
20980   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20981     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20982     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20983     break 2
20984   fi
20985 done
20986 done
20987
20988   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20989   ;;
20990 esac
20991 fi
20992 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20993
20994 if test -n "$PKG_CONFIG"; then
20995   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20996 echo "${ECHO_T}$PKG_CONFIG" >&6
20997 else
20998   echo "$as_me:$LINENO: result: no" >&5
20999 echo "${ECHO_T}no" >&6
21000 fi
21001
21002   fi
21003
21004   if test "$PKG_CONFIG" = "no" ; then
21005      echo "*** The pkg-config script could not be found. Make sure it is"
21006      echo "*** in your path, or set the PKG_CONFIG environment variable"
21007      echo "*** to the full path to pkg-config."
21008      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21009   else
21010      PKG_CONFIG_MIN_VERSION=0.9.0
21011      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21012         echo "$as_me:$LINENO: checking for pangoft2" >&5
21013 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
21014
21015         if $PKG_CONFIG --exists "pangoft2" ; then
21016             echo "$as_me:$LINENO: result: yes" >&5
21017 echo "${ECHO_T}yes" >&6
21018             succeeded=yes
21019
21020             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
21021 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
21022             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
21023             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
21024 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
21025
21026             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
21027 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
21028             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
21029             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
21030 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
21031         else
21032             PANGOFT2_CFLAGS=""
21033             PANGOFT2_LIBS=""
21034             ## If we have a custom action on failure, don't print errors, but
21035             ## do set a variable so people can do so.
21036             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
21037
21038         fi
21039
21040
21041
21042      else
21043         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21044         echo "*** See http://www.freedesktop.org/software/pkgconfig"
21045      fi
21046   fi
21047
21048   if test $succeeded = yes; then
21049
21050                         CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
21051                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
21052
21053   else
21054
21055                         { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
21056 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
21057                         wxUSE_PRINTING_ARCHITECTURE="no"
21058
21059
21060   fi
21061
21062             fi
21063         else
21064             if test "$wxUSE_UNICODE" = "yes"; then
21065                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
21066 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
21067                 wxUSE_UNICODE=no
21068             fi
21069         fi
21070
21071                         if test "$USE_DARWIN" != 1; then
21072
21073 for ac_func in poll
21074 do
21075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21076 echo "$as_me:$LINENO: checking for $ac_func" >&5
21077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21078 if eval "test \"\${$as_ac_var+set}\" = set"; then
21079   echo $ECHO_N "(cached) $ECHO_C" >&6
21080 else
21081   cat >conftest.$ac_ext <<_ACEOF
21082 #line $LINENO "configure"
21083 /* confdefs.h.  */
21084 _ACEOF
21085 cat confdefs.h >>conftest.$ac_ext
21086 cat >>conftest.$ac_ext <<_ACEOF
21087 /* end confdefs.h.  */
21088 /* System header to define __stub macros and hopefully few prototypes,
21089     which can conflict with char $ac_func (); below.
21090     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21091     <limits.h> exists even on freestanding compilers.  */
21092 #ifdef __STDC__
21093 # include <limits.h>
21094 #else
21095 # include <assert.h>
21096 #endif
21097 /* Override any gcc2 internal prototype to avoid an error.  */
21098 #ifdef __cplusplus
21099 extern "C"
21100 {
21101 #endif
21102 /* We use char because int might match the return type of a gcc2
21103    builtin and then its argument prototype would still apply.  */
21104 char $ac_func ();
21105 /* The GNU C library defines this for functions which it implements
21106     to always fail with ENOSYS.  Some functions are actually named
21107     something starting with __ and the normal name is an alias.  */
21108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21109 choke me
21110 #else
21111 char (*f) () = $ac_func;
21112 #endif
21113 #ifdef __cplusplus
21114 }
21115 #endif
21116
21117 int
21118 main ()
21119 {
21120 return f != $ac_func;
21121   ;
21122   return 0;
21123 }
21124 _ACEOF
21125 rm -f conftest.$ac_objext conftest$ac_exeext
21126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21127   (eval $ac_link) 2>&5
21128   ac_status=$?
21129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130   (exit $ac_status); } &&
21131          { ac_try='test -s conftest$ac_exeext'
21132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21133   (eval $ac_try) 2>&5
21134   ac_status=$?
21135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136   (exit $ac_status); }; }; then
21137   eval "$as_ac_var=yes"
21138 else
21139   echo "$as_me: failed program was:" >&5
21140 sed 's/^/| /' conftest.$ac_ext >&5
21141
21142 eval "$as_ac_var=no"
21143 fi
21144 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21145 fi
21146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21147 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21148 if test `eval echo '${'$as_ac_var'}'` = yes; then
21149   cat >>confdefs.h <<_ACEOF
21150 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21151 _ACEOF
21152
21153 fi
21154 done
21155
21156         fi
21157
21158         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
21159         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
21160
21161         AFMINSTALL=afminstall
21162         TOOLKIT=GTK
21163         GUIDIST=GTK_DIST
21164
21165                 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
21166 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
21167 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
21168   echo $ECHO_N "(cached) $ECHO_C" >&6
21169 else
21170   ac_check_lib_save_LIBS=$LIBS
21171 LIBS="-lgdk  $LIBS"
21172 cat >conftest.$ac_ext <<_ACEOF
21173 #line $LINENO "configure"
21174 /* confdefs.h.  */
21175 _ACEOF
21176 cat confdefs.h >>conftest.$ac_ext
21177 cat >>conftest.$ac_ext <<_ACEOF
21178 /* end confdefs.h.  */
21179
21180 /* Override any gcc2 internal prototype to avoid an error.  */
21181 #ifdef __cplusplus
21182 extern "C"
21183 #endif
21184 /* We use char because int might match the return type of a gcc2
21185    builtin and then its argument prototype would still apply.  */
21186 char gdk_im_open ();
21187 int
21188 main ()
21189 {
21190 gdk_im_open ();
21191   ;
21192   return 0;
21193 }
21194 _ACEOF
21195 rm -f conftest.$ac_objext conftest$ac_exeext
21196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21197   (eval $ac_link) 2>&5
21198   ac_status=$?
21199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200   (exit $ac_status); } &&
21201          { ac_try='test -s conftest$ac_exeext'
21202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21203   (eval $ac_try) 2>&5
21204   ac_status=$?
21205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206   (exit $ac_status); }; }; then
21207   ac_cv_lib_gdk_gdk_im_open=yes
21208 else
21209   echo "$as_me: failed program was:" >&5
21210 sed 's/^/| /' conftest.$ac_ext >&5
21211
21212 ac_cv_lib_gdk_gdk_im_open=no
21213 fi
21214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21215 LIBS=$ac_check_lib_save_LIBS
21216 fi
21217 echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
21218 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
21219 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
21220   cat >>confdefs.h <<\_ACEOF
21221 #define HAVE_XIM 1
21222 _ACEOF
21223
21224 fi
21225
21226     fi
21227
21228     if test "$wxUSE_MGL" = 1; then
21229        echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
21230 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
21231         if test "x$MGL_ROOT" = x ; then
21232             echo "$as_me:$LINENO: result: not found" >&5
21233 echo "${ECHO_T}not found" >&6
21234             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
21235 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
21236    { (exit 1); exit 1; }; }
21237         else
21238             echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
21239 echo "${ECHO_T}$MGL_ROOT" >&6
21240         fi
21241
21242         echo "$as_me:$LINENO: checking for libmgl location" >&5
21243 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
21244                         case "${host}" in
21245             *-*-linux* )
21246               if test "x$wxUSE_SHARED" = xyes ; then
21247                   mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc"
21248               else
21249                   mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so"
21250               fi
21251               ;;
21252             *-pc-msdosdjgpp )
21253               mgl_os_candidates="dos32/dj2"
21254               ;;
21255             *)
21256               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
21257 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
21258    { (exit 1); exit 1; }; }
21259         esac
21260
21261         mgl_lib_type=""
21262         mgl_os=""
21263
21264         for mgl_os_i in $mgl_os_candidates ; do
21265             if test "x$mgl_os" = x ; then
21266                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
21267                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
21268                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
21269                         mgl_lib_type=debug
21270                         mgl_os=$mgl_os_i
21271                     fi
21272                 fi
21273                 if test "x$mgl_lib_type" = x ; then
21274                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
21275                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
21276                         mgl_lib_type=release
21277                         mgl_os=$mgl_os_i
21278                     fi
21279                 fi
21280             fi
21281         done
21282
21283         if test "x$mgl_os" = x ; then
21284             echo "$as_me:$LINENO: result: not found" >&5
21285 echo "${ECHO_T}not found" >&6
21286             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
21287 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
21288    { (exit 1); exit 1; }; }
21289         fi
21290         echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
21291 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
21292
21293         wxUSE_UNIVERSAL="yes"
21294
21295         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
21296         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
21297
21298         AFMINSTALL=afminstall
21299         TOOLKIT=MGL
21300         GUIDIST=MGL_DIST
21301     fi
21302
21303     if test "$wxUSE_MICROWIN" = 1; then
21304         echo "$as_me:$LINENO: checking for MicroWindows" >&5
21305 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
21306         if test "x$MICROWINDOWS" = x ; then
21307             echo "$as_me:$LINENO: result: not found" >&5
21308 echo "${ECHO_T}not found" >&6
21309             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
21310 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
21311    { (exit 1); exit 1; }; }
21312         else
21313             echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
21314 echo "${ECHO_T}$MICROWINDOWS" >&6
21315         fi
21316
21317         if test -f $MICROWINDOWS/lib/libmwin.a; then
21318             echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
21319 echo "${ECHO_T}MicroWindows' libraries found." >&6
21320         else
21321             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
21322 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
21323    { (exit 1); exit 1; }; }
21324         fi
21325
21326         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
21327         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
21328
21329         wxUSE_UNIVERSAL="yes"
21330
21331         AFMINSTALL=afminstall
21332         TOOLKIT=MICROWIN
21333         GUIDIST=MICROWIN_DIST
21334
21335         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21336     fi
21337
21338     if test "$wxUSE_X11" = 1; then
21339                         echo "$as_me:$LINENO: checking for X" >&5
21340 echo $ECHO_N "checking for X... $ECHO_C" >&6
21341
21342
21343 # Check whether --with-x or --without-x was given.
21344 if test "${with_x+set}" = set; then
21345   withval="$with_x"
21346
21347 fi;
21348 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
21349 if test "x$with_x" = xno; then
21350   # The user explicitly disabled X.
21351   have_x=disabled
21352 else
21353   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
21354     # Both variables are already set.
21355     have_x=yes
21356   else
21357     if test "${ac_cv_have_x+set}" = set; then
21358   echo $ECHO_N "(cached) $ECHO_C" >&6
21359 else
21360   # One or both of the vars are not set, and there is no cached value.
21361 ac_x_includes=no ac_x_libraries=no
21362 rm -fr conftest.dir
21363 if mkdir conftest.dir; then
21364   cd conftest.dir
21365   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
21366   cat >Imakefile <<'_ACEOF'
21367 acfindx:
21368         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
21369 _ACEOF
21370   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
21371     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
21372     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
21373     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
21374     for ac_extension in a so sl; do
21375       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
21376          test -f $ac_im_libdir/libX11.$ac_extension; then
21377         ac_im_usrlibdir=$ac_im_libdir; break
21378       fi
21379     done
21380     # Screen out bogus values from the imake configuration.  They are
21381     # bogus both because they are the default anyway, and because
21382     # using them would break gcc on systems where it needs fixed includes.
21383     case $ac_im_incroot in
21384         /usr/include) ;;
21385         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21386     esac
21387     case $ac_im_usrlibdir in
21388         /usr/lib | /lib) ;;
21389         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21390     esac
21391   fi
21392   cd ..
21393   rm -fr conftest.dir
21394 fi
21395
21396 # Standard set of common directories for X headers.
21397 # Check X11 before X11Rn because it is often a symlink to the current release.
21398 ac_x_header_dirs='
21399 /usr/X11/include
21400 /usr/X11R6/include
21401 /usr/X11R5/include
21402 /usr/X11R4/include
21403
21404 /usr/include/X11
21405 /usr/include/X11R6
21406 /usr/include/X11R5
21407 /usr/include/X11R4
21408
21409 /usr/local/X11/include
21410 /usr/local/X11R6/include
21411 /usr/local/X11R5/include
21412 /usr/local/X11R4/include
21413
21414 /usr/local/include/X11
21415 /usr/local/include/X11R6
21416 /usr/local/include/X11R5
21417 /usr/local/include/X11R4
21418
21419 /usr/X386/include
21420 /usr/x386/include
21421 /usr/XFree86/include/X11
21422
21423 /usr/include
21424 /usr/local/include
21425 /usr/unsupported/include
21426 /usr/athena/include
21427 /usr/local/x11r5/include
21428 /usr/lpp/Xamples/include
21429
21430 /usr/openwin/include
21431 /usr/openwin/share/include'
21432
21433 if test "$ac_x_includes" = no; then
21434   # Guess where to find include files, by looking for Intrinsic.h.
21435   # First, try using that file with no special directory specified.
21436   cat >conftest.$ac_ext <<_ACEOF
21437 #line $LINENO "configure"
21438 /* confdefs.h.  */
21439 _ACEOF
21440 cat confdefs.h >>conftest.$ac_ext
21441 cat >>conftest.$ac_ext <<_ACEOF
21442 /* end confdefs.h.  */
21443 #include <X11/Intrinsic.h>
21444 _ACEOF
21445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21446   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21447   ac_status=$?
21448   grep -v '^ *+' conftest.er1 >conftest.err
21449   rm -f conftest.er1
21450   cat conftest.err >&5
21451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452   (exit $ac_status); } >/dev/null; then
21453   if test -s conftest.err; then
21454     ac_cpp_err=$ac_c_preproc_warn_flag
21455   else
21456     ac_cpp_err=
21457   fi
21458 else
21459   ac_cpp_err=yes
21460 fi
21461 if test -z "$ac_cpp_err"; then
21462   # We can compile using X headers with no special include directory.
21463 ac_x_includes=
21464 else
21465   echo "$as_me: failed program was:" >&5
21466 sed 's/^/| /' conftest.$ac_ext >&5
21467
21468   for ac_dir in $ac_x_header_dirs; do
21469   if test -r "$ac_dir/X11/Intrinsic.h"; then
21470     ac_x_includes=$ac_dir
21471     break
21472   fi
21473 done
21474 fi
21475 rm -f conftest.err conftest.$ac_ext
21476 fi # $ac_x_includes = no
21477
21478 if test "$ac_x_libraries" = no; then
21479   # Check for the libraries.
21480   # See if we find them without any special options.
21481   # Don't add to $LIBS permanently.
21482   ac_save_LIBS=$LIBS
21483   LIBS="-lXt $LIBS"
21484   cat >conftest.$ac_ext <<_ACEOF
21485 #line $LINENO "configure"
21486 /* confdefs.h.  */
21487 _ACEOF
21488 cat confdefs.h >>conftest.$ac_ext
21489 cat >>conftest.$ac_ext <<_ACEOF
21490 /* end confdefs.h.  */
21491 #include <X11/Intrinsic.h>
21492 int
21493 main ()
21494 {
21495 XtMalloc (0)
21496   ;
21497   return 0;
21498 }
21499 _ACEOF
21500 rm -f conftest.$ac_objext conftest$ac_exeext
21501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21502   (eval $ac_link) 2>&5
21503   ac_status=$?
21504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505   (exit $ac_status); } &&
21506          { ac_try='test -s conftest$ac_exeext'
21507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21508   (eval $ac_try) 2>&5
21509   ac_status=$?
21510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511   (exit $ac_status); }; }; then
21512   LIBS=$ac_save_LIBS
21513 # We can link X programs with no special library path.
21514 ac_x_libraries=
21515 else
21516   echo "$as_me: failed program was:" >&5
21517 sed 's/^/| /' conftest.$ac_ext >&5
21518
21519 LIBS=$ac_save_LIBS
21520 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21521 do
21522   # Don't even attempt the hair of trying to link an X program!
21523   for ac_extension in a so sl; do
21524     if test -r $ac_dir/libXt.$ac_extension; then
21525       ac_x_libraries=$ac_dir
21526       break 2
21527     fi
21528   done
21529 done
21530 fi
21531 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21532 fi # $ac_x_libraries = no
21533
21534 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21535   # Didn't find X anywhere.  Cache the known absence of X.
21536   ac_cv_have_x="have_x=no"
21537 else
21538   # Record where we found X for the cache.
21539   ac_cv_have_x="have_x=yes \
21540                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
21541 fi
21542 fi
21543
21544   fi
21545   eval "$ac_cv_have_x"
21546 fi # $with_x != no
21547
21548 if test "$have_x" != yes; then
21549   echo "$as_me:$LINENO: result: $have_x" >&5
21550 echo "${ECHO_T}$have_x" >&6
21551   no_x=yes
21552 else
21553   # If each of the values was on the command line, it overrides each guess.
21554   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
21555   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
21556   # Update the cache value to reflect the command line values.
21557   ac_cv_have_x="have_x=yes \
21558                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
21559   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
21560 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21561 fi
21562
21563 if test "$no_x" = yes; then
21564   # Not all programs may use this symbol, but it does not hurt to define it.
21565
21566 cat >>confdefs.h <<\_ACEOF
21567 #define X_DISPLAY_MISSING 1
21568 _ACEOF
21569
21570   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
21571 else
21572   if test -n "$x_includes"; then
21573     X_CFLAGS="$X_CFLAGS -I$x_includes"
21574   fi
21575
21576   # It would also be nice to do this for all -L options, not just this one.
21577   if test -n "$x_libraries"; then
21578     X_LIBS="$X_LIBS -L$x_libraries"
21579     # For Solaris; some versions of Sun CC require a space after -R and
21580     # others require no space.  Words are not sufficient . . . .
21581     case `(uname -sr) 2>/dev/null` in
21582     "SunOS 5"*)
21583       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
21584 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
21585       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
21586       cat >conftest.$ac_ext <<_ACEOF
21587 #line $LINENO "configure"
21588 /* confdefs.h.  */
21589 _ACEOF
21590 cat confdefs.h >>conftest.$ac_ext
21591 cat >>conftest.$ac_ext <<_ACEOF
21592 /* end confdefs.h.  */
21593
21594 int
21595 main ()
21596 {
21597
21598   ;
21599   return 0;
21600 }
21601 _ACEOF
21602 rm -f conftest.$ac_objext conftest$ac_exeext
21603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21604   (eval $ac_link) 2>&5
21605   ac_status=$?
21606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607   (exit $ac_status); } &&
21608          { ac_try='test -s conftest$ac_exeext'
21609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21610   (eval $ac_try) 2>&5
21611   ac_status=$?
21612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613   (exit $ac_status); }; }; then
21614   ac_R_nospace=yes
21615 else
21616   echo "$as_me: failed program was:" >&5
21617 sed 's/^/| /' conftest.$ac_ext >&5
21618
21619 ac_R_nospace=no
21620 fi
21621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21622       if test $ac_R_nospace = yes; then
21623         echo "$as_me:$LINENO: result: no" >&5
21624 echo "${ECHO_T}no" >&6
21625         X_LIBS="$X_LIBS -R$x_libraries"
21626       else
21627         LIBS="$ac_xsave_LIBS -R $x_libraries"
21628         cat >conftest.$ac_ext <<_ACEOF
21629 #line $LINENO "configure"
21630 /* confdefs.h.  */
21631 _ACEOF
21632 cat confdefs.h >>conftest.$ac_ext
21633 cat >>conftest.$ac_ext <<_ACEOF
21634 /* end confdefs.h.  */
21635
21636 int
21637 main ()
21638 {
21639
21640   ;
21641   return 0;
21642 }
21643 _ACEOF
21644 rm -f conftest.$ac_objext conftest$ac_exeext
21645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21646   (eval $ac_link) 2>&5
21647   ac_status=$?
21648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649   (exit $ac_status); } &&
21650          { ac_try='test -s conftest$ac_exeext'
21651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21652   (eval $ac_try) 2>&5
21653   ac_status=$?
21654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21655   (exit $ac_status); }; }; then
21656   ac_R_space=yes
21657 else
21658   echo "$as_me: failed program was:" >&5
21659 sed 's/^/| /' conftest.$ac_ext >&5
21660
21661 ac_R_space=no
21662 fi
21663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21664         if test $ac_R_space = yes; then
21665           echo "$as_me:$LINENO: result: yes" >&5
21666 echo "${ECHO_T}yes" >&6
21667           X_LIBS="$X_LIBS -R $x_libraries"
21668         else
21669           echo "$as_me:$LINENO: result: neither works" >&5
21670 echo "${ECHO_T}neither works" >&6
21671         fi
21672       fi
21673       LIBS=$ac_xsave_LIBS
21674     esac
21675   fi
21676
21677   # Check for system-dependent libraries X programs must link with.
21678   # Do this before checking for the system-independent R6 libraries
21679   # (-lICE), since we may need -lsocket or whatever for X linking.
21680
21681   if test "$ISC" = yes; then
21682     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
21683   else
21684     # Martyn Johnson says this is needed for Ultrix, if the X
21685     # libraries were built with DECnet support.  And Karl Berry says
21686     # the Alpha needs dnet_stub (dnet does not exist).
21687     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
21688     cat >conftest.$ac_ext <<_ACEOF
21689 #line $LINENO "configure"
21690 /* confdefs.h.  */
21691 _ACEOF
21692 cat confdefs.h >>conftest.$ac_ext
21693 cat >>conftest.$ac_ext <<_ACEOF
21694 /* end confdefs.h.  */
21695
21696 /* Override any gcc2 internal prototype to avoid an error.  */
21697 #ifdef __cplusplus
21698 extern "C"
21699 #endif
21700 /* We use char because int might match the return type of a gcc2
21701    builtin and then its argument prototype would still apply.  */
21702 char XOpenDisplay ();
21703 int
21704 main ()
21705 {
21706 XOpenDisplay ();
21707   ;
21708   return 0;
21709 }
21710 _ACEOF
21711 rm -f conftest.$ac_objext conftest$ac_exeext
21712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21713   (eval $ac_link) 2>&5
21714   ac_status=$?
21715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716   (exit $ac_status); } &&
21717          { ac_try='test -s conftest$ac_exeext'
21718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21719   (eval $ac_try) 2>&5
21720   ac_status=$?
21721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722   (exit $ac_status); }; }; then
21723   :
21724 else
21725   echo "$as_me: failed program was:" >&5
21726 sed 's/^/| /' conftest.$ac_ext >&5
21727
21728 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
21729 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
21730 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
21731   echo $ECHO_N "(cached) $ECHO_C" >&6
21732 else
21733   ac_check_lib_save_LIBS=$LIBS
21734 LIBS="-ldnet  $LIBS"
21735 cat >conftest.$ac_ext <<_ACEOF
21736 #line $LINENO "configure"
21737 /* confdefs.h.  */
21738 _ACEOF
21739 cat confdefs.h >>conftest.$ac_ext
21740 cat >>conftest.$ac_ext <<_ACEOF
21741 /* end confdefs.h.  */
21742
21743 /* Override any gcc2 internal prototype to avoid an error.  */
21744 #ifdef __cplusplus
21745 extern "C"
21746 #endif
21747 /* We use char because int might match the return type of a gcc2
21748    builtin and then its argument prototype would still apply.  */
21749 char dnet_ntoa ();
21750 int
21751 main ()
21752 {
21753 dnet_ntoa ();
21754   ;
21755   return 0;
21756 }
21757 _ACEOF
21758 rm -f conftest.$ac_objext conftest$ac_exeext
21759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21760   (eval $ac_link) 2>&5
21761   ac_status=$?
21762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763   (exit $ac_status); } &&
21764          { ac_try='test -s conftest$ac_exeext'
21765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21766   (eval $ac_try) 2>&5
21767   ac_status=$?
21768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769   (exit $ac_status); }; }; then
21770   ac_cv_lib_dnet_dnet_ntoa=yes
21771 else
21772   echo "$as_me: failed program was:" >&5
21773 sed 's/^/| /' conftest.$ac_ext >&5
21774
21775 ac_cv_lib_dnet_dnet_ntoa=no
21776 fi
21777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21778 LIBS=$ac_check_lib_save_LIBS
21779 fi
21780 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
21781 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
21782 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21783   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
21784 fi
21785
21786     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
21787       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
21788 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
21789 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
21790   echo $ECHO_N "(cached) $ECHO_C" >&6
21791 else
21792   ac_check_lib_save_LIBS=$LIBS
21793 LIBS="-ldnet_stub  $LIBS"
21794 cat >conftest.$ac_ext <<_ACEOF
21795 #line $LINENO "configure"
21796 /* confdefs.h.  */
21797 _ACEOF
21798 cat confdefs.h >>conftest.$ac_ext
21799 cat >>conftest.$ac_ext <<_ACEOF
21800 /* end confdefs.h.  */
21801
21802 /* Override any gcc2 internal prototype to avoid an error.  */
21803 #ifdef __cplusplus
21804 extern "C"
21805 #endif
21806 /* We use char because int might match the return type of a gcc2
21807    builtin and then its argument prototype would still apply.  */
21808 char dnet_ntoa ();
21809 int
21810 main ()
21811 {
21812 dnet_ntoa ();
21813   ;
21814   return 0;
21815 }
21816 _ACEOF
21817 rm -f conftest.$ac_objext conftest$ac_exeext
21818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21819   (eval $ac_link) 2>&5
21820   ac_status=$?
21821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21822   (exit $ac_status); } &&
21823          { ac_try='test -s conftest$ac_exeext'
21824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21825   (eval $ac_try) 2>&5
21826   ac_status=$?
21827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828   (exit $ac_status); }; }; then
21829   ac_cv_lib_dnet_stub_dnet_ntoa=yes
21830 else
21831   echo "$as_me: failed program was:" >&5
21832 sed 's/^/| /' conftest.$ac_ext >&5
21833
21834 ac_cv_lib_dnet_stub_dnet_ntoa=no
21835 fi
21836 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21837 LIBS=$ac_check_lib_save_LIBS
21838 fi
21839 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
21840 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
21841 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21842   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
21843 fi
21844
21845     fi
21846 fi
21847 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21848     LIBS="$ac_xsave_LIBS"
21849
21850     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
21851     # to get the SysV transport functions.
21852     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21853     # needs -lnsl.
21854     # The nsl library prevents programs from opening the X display
21855     # on Irix 5.2, according to T.E. Dickey.
21856     # The functions gethostbyname, getservbyname, and inet_addr are
21857     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
21858     echo "$as_me:$LINENO: checking for gethostbyname" >&5
21859 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
21860 if test "${ac_cv_func_gethostbyname+set}" = set; then
21861   echo $ECHO_N "(cached) $ECHO_C" >&6
21862 else
21863   cat >conftest.$ac_ext <<_ACEOF
21864 #line $LINENO "configure"
21865 /* confdefs.h.  */
21866 _ACEOF
21867 cat confdefs.h >>conftest.$ac_ext
21868 cat >>conftest.$ac_ext <<_ACEOF
21869 /* end confdefs.h.  */
21870 /* System header to define __stub macros and hopefully few prototypes,
21871     which can conflict with char gethostbyname (); below.
21872     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21873     <limits.h> exists even on freestanding compilers.  */
21874 #ifdef __STDC__
21875 # include <limits.h>
21876 #else
21877 # include <assert.h>
21878 #endif
21879 /* Override any gcc2 internal prototype to avoid an error.  */
21880 #ifdef __cplusplus
21881 extern "C"
21882 {
21883 #endif
21884 /* We use char because int might match the return type of a gcc2
21885    builtin and then its argument prototype would still apply.  */
21886 char gethostbyname ();
21887 /* The GNU C library defines this for functions which it implements
21888     to always fail with ENOSYS.  Some functions are actually named
21889     something starting with __ and the normal name is an alias.  */
21890 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
21891 choke me
21892 #else
21893 char (*f) () = gethostbyname;
21894 #endif
21895 #ifdef __cplusplus
21896 }
21897 #endif
21898
21899 int
21900 main ()
21901 {
21902 return f != gethostbyname;
21903   ;
21904   return 0;
21905 }
21906 _ACEOF
21907 rm -f conftest.$ac_objext conftest$ac_exeext
21908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21909   (eval $ac_link) 2>&5
21910   ac_status=$?
21911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912   (exit $ac_status); } &&
21913          { ac_try='test -s conftest$ac_exeext'
21914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21915   (eval $ac_try) 2>&5
21916   ac_status=$?
21917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918   (exit $ac_status); }; }; then
21919   ac_cv_func_gethostbyname=yes
21920 else
21921   echo "$as_me: failed program was:" >&5
21922 sed 's/^/| /' conftest.$ac_ext >&5
21923
21924 ac_cv_func_gethostbyname=no
21925 fi
21926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21927 fi
21928 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
21929 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
21930
21931     if test $ac_cv_func_gethostbyname = no; then
21932       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
21933 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
21934 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
21935   echo $ECHO_N "(cached) $ECHO_C" >&6
21936 else
21937   ac_check_lib_save_LIBS=$LIBS
21938 LIBS="-lnsl  $LIBS"
21939 cat >conftest.$ac_ext <<_ACEOF
21940 #line $LINENO "configure"
21941 /* confdefs.h.  */
21942 _ACEOF
21943 cat confdefs.h >>conftest.$ac_ext
21944 cat >>conftest.$ac_ext <<_ACEOF
21945 /* end confdefs.h.  */
21946
21947 /* Override any gcc2 internal prototype to avoid an error.  */
21948 #ifdef __cplusplus
21949 extern "C"
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 gethostbyname ();
21954 int
21955 main ()
21956 {
21957 gethostbyname ();
21958   ;
21959   return 0;
21960 }
21961 _ACEOF
21962 rm -f conftest.$ac_objext conftest$ac_exeext
21963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21964   (eval $ac_link) 2>&5
21965   ac_status=$?
21966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967   (exit $ac_status); } &&
21968          { ac_try='test -s conftest$ac_exeext'
21969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21970   (eval $ac_try) 2>&5
21971   ac_status=$?
21972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973   (exit $ac_status); }; }; then
21974   ac_cv_lib_nsl_gethostbyname=yes
21975 else
21976   echo "$as_me: failed program was:" >&5
21977 sed 's/^/| /' conftest.$ac_ext >&5
21978
21979 ac_cv_lib_nsl_gethostbyname=no
21980 fi
21981 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21982 LIBS=$ac_check_lib_save_LIBS
21983 fi
21984 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
21985 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
21986 if test $ac_cv_lib_nsl_gethostbyname = yes; then
21987   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
21988 fi
21989
21990       if test $ac_cv_lib_nsl_gethostbyname = no; then
21991         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
21992 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
21993 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
21994   echo $ECHO_N "(cached) $ECHO_C" >&6
21995 else
21996   ac_check_lib_save_LIBS=$LIBS
21997 LIBS="-lbsd  $LIBS"
21998 cat >conftest.$ac_ext <<_ACEOF
21999 #line $LINENO "configure"
22000 /* confdefs.h.  */
22001 _ACEOF
22002 cat confdefs.h >>conftest.$ac_ext
22003 cat >>conftest.$ac_ext <<_ACEOF
22004 /* end confdefs.h.  */
22005
22006 /* Override any gcc2 internal prototype to avoid an error.  */
22007 #ifdef __cplusplus
22008 extern "C"
22009 #endif
22010 /* We use char because int might match the return type of a gcc2
22011    builtin and then its argument prototype would still apply.  */
22012 char gethostbyname ();
22013 int
22014 main ()
22015 {
22016 gethostbyname ();
22017   ;
22018   return 0;
22019 }
22020 _ACEOF
22021 rm -f conftest.$ac_objext conftest$ac_exeext
22022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22023   (eval $ac_link) 2>&5
22024   ac_status=$?
22025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026   (exit $ac_status); } &&
22027          { ac_try='test -s conftest$ac_exeext'
22028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22029   (eval $ac_try) 2>&5
22030   ac_status=$?
22031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032   (exit $ac_status); }; }; then
22033   ac_cv_lib_bsd_gethostbyname=yes
22034 else
22035   echo "$as_me: failed program was:" >&5
22036 sed 's/^/| /' conftest.$ac_ext >&5
22037
22038 ac_cv_lib_bsd_gethostbyname=no
22039 fi
22040 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22041 LIBS=$ac_check_lib_save_LIBS
22042 fi
22043 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
22044 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
22045 if test $ac_cv_lib_bsd_gethostbyname = yes; then
22046   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
22047 fi
22048
22049       fi
22050     fi
22051
22052     # lieder@skyler.mavd.honeywell.com says without -lsocket,
22053     # socket/setsockopt and other routines are undefined under SCO ODT
22054     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
22055     # on later versions), says Simon Leinen: it contains gethostby*
22056     # variants that don't use the name server (or something).  -lsocket
22057     # must be given before -lnsl if both are needed.  We assume that
22058     # if connect needs -lnsl, so does gethostbyname.
22059     echo "$as_me:$LINENO: checking for connect" >&5
22060 echo $ECHO_N "checking for connect... $ECHO_C" >&6
22061 if test "${ac_cv_func_connect+set}" = set; then
22062   echo $ECHO_N "(cached) $ECHO_C" >&6
22063 else
22064   cat >conftest.$ac_ext <<_ACEOF
22065 #line $LINENO "configure"
22066 /* confdefs.h.  */
22067 _ACEOF
22068 cat confdefs.h >>conftest.$ac_ext
22069 cat >>conftest.$ac_ext <<_ACEOF
22070 /* end confdefs.h.  */
22071 /* System header to define __stub macros and hopefully few prototypes,
22072     which can conflict with char connect (); below.
22073     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22074     <limits.h> exists even on freestanding compilers.  */
22075 #ifdef __STDC__
22076 # include <limits.h>
22077 #else
22078 # include <assert.h>
22079 #endif
22080 /* Override any gcc2 internal prototype to avoid an error.  */
22081 #ifdef __cplusplus
22082 extern "C"
22083 {
22084 #endif
22085 /* We use char because int might match the return type of a gcc2
22086    builtin and then its argument prototype would still apply.  */
22087 char connect ();
22088 /* The GNU C library defines this for functions which it implements
22089     to always fail with ENOSYS.  Some functions are actually named
22090     something starting with __ and the normal name is an alias.  */
22091 #if defined (__stub_connect) || defined (__stub___connect)
22092 choke me
22093 #else
22094 char (*f) () = connect;
22095 #endif
22096 #ifdef __cplusplus
22097 }
22098 #endif
22099
22100 int
22101 main ()
22102 {
22103 return f != connect;
22104   ;
22105   return 0;
22106 }
22107 _ACEOF
22108 rm -f conftest.$ac_objext conftest$ac_exeext
22109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22110   (eval $ac_link) 2>&5
22111   ac_status=$?
22112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113   (exit $ac_status); } &&
22114          { ac_try='test -s conftest$ac_exeext'
22115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22116   (eval $ac_try) 2>&5
22117   ac_status=$?
22118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119   (exit $ac_status); }; }; then
22120   ac_cv_func_connect=yes
22121 else
22122   echo "$as_me: failed program was:" >&5
22123 sed 's/^/| /' conftest.$ac_ext >&5
22124
22125 ac_cv_func_connect=no
22126 fi
22127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22128 fi
22129 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
22130 echo "${ECHO_T}$ac_cv_func_connect" >&6
22131
22132     if test $ac_cv_func_connect = no; then
22133       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
22134 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
22135 if test "${ac_cv_lib_socket_connect+set}" = set; then
22136   echo $ECHO_N "(cached) $ECHO_C" >&6
22137 else
22138   ac_check_lib_save_LIBS=$LIBS
22139 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
22140 cat >conftest.$ac_ext <<_ACEOF
22141 #line $LINENO "configure"
22142 /* confdefs.h.  */
22143 _ACEOF
22144 cat confdefs.h >>conftest.$ac_ext
22145 cat >>conftest.$ac_ext <<_ACEOF
22146 /* end confdefs.h.  */
22147
22148 /* Override any gcc2 internal prototype to avoid an error.  */
22149 #ifdef __cplusplus
22150 extern "C"
22151 #endif
22152 /* We use char because int might match the return type of a gcc2
22153    builtin and then its argument prototype would still apply.  */
22154 char connect ();
22155 int
22156 main ()
22157 {
22158 connect ();
22159   ;
22160   return 0;
22161 }
22162 _ACEOF
22163 rm -f conftest.$ac_objext conftest$ac_exeext
22164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22165   (eval $ac_link) 2>&5
22166   ac_status=$?
22167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168   (exit $ac_status); } &&
22169          { ac_try='test -s conftest$ac_exeext'
22170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22171   (eval $ac_try) 2>&5
22172   ac_status=$?
22173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174   (exit $ac_status); }; }; then
22175   ac_cv_lib_socket_connect=yes
22176 else
22177   echo "$as_me: failed program was:" >&5
22178 sed 's/^/| /' conftest.$ac_ext >&5
22179
22180 ac_cv_lib_socket_connect=no
22181 fi
22182 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22183 LIBS=$ac_check_lib_save_LIBS
22184 fi
22185 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
22186 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
22187 if test $ac_cv_lib_socket_connect = yes; then
22188   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
22189 fi
22190
22191     fi
22192
22193     # Guillermo Gomez says -lposix is necessary on A/UX.
22194     echo "$as_me:$LINENO: checking for remove" >&5
22195 echo $ECHO_N "checking for remove... $ECHO_C" >&6
22196 if test "${ac_cv_func_remove+set}" = set; then
22197   echo $ECHO_N "(cached) $ECHO_C" >&6
22198 else
22199   cat >conftest.$ac_ext <<_ACEOF
22200 #line $LINENO "configure"
22201 /* confdefs.h.  */
22202 _ACEOF
22203 cat confdefs.h >>conftest.$ac_ext
22204 cat >>conftest.$ac_ext <<_ACEOF
22205 /* end confdefs.h.  */
22206 /* System header to define __stub macros and hopefully few prototypes,
22207     which can conflict with char remove (); below.
22208     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22209     <limits.h> exists even on freestanding compilers.  */
22210 #ifdef __STDC__
22211 # include <limits.h>
22212 #else
22213 # include <assert.h>
22214 #endif
22215 /* Override any gcc2 internal prototype to avoid an error.  */
22216 #ifdef __cplusplus
22217 extern "C"
22218 {
22219 #endif
22220 /* We use char because int might match the return type of a gcc2
22221    builtin and then its argument prototype would still apply.  */
22222 char remove ();
22223 /* The GNU C library defines this for functions which it implements
22224     to always fail with ENOSYS.  Some functions are actually named
22225     something starting with __ and the normal name is an alias.  */
22226 #if defined (__stub_remove) || defined (__stub___remove)
22227 choke me
22228 #else
22229 char (*f) () = remove;
22230 #endif
22231 #ifdef __cplusplus
22232 }
22233 #endif
22234
22235 int
22236 main ()
22237 {
22238 return f != remove;
22239   ;
22240   return 0;
22241 }
22242 _ACEOF
22243 rm -f conftest.$ac_objext conftest$ac_exeext
22244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22245   (eval $ac_link) 2>&5
22246   ac_status=$?
22247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248   (exit $ac_status); } &&
22249          { ac_try='test -s conftest$ac_exeext'
22250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22251   (eval $ac_try) 2>&5
22252   ac_status=$?
22253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254   (exit $ac_status); }; }; then
22255   ac_cv_func_remove=yes
22256 else
22257   echo "$as_me: failed program was:" >&5
22258 sed 's/^/| /' conftest.$ac_ext >&5
22259
22260 ac_cv_func_remove=no
22261 fi
22262 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22263 fi
22264 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
22265 echo "${ECHO_T}$ac_cv_func_remove" >&6
22266
22267     if test $ac_cv_func_remove = no; then
22268       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
22269 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
22270 if test "${ac_cv_lib_posix_remove+set}" = set; then
22271   echo $ECHO_N "(cached) $ECHO_C" >&6
22272 else
22273   ac_check_lib_save_LIBS=$LIBS
22274 LIBS="-lposix  $LIBS"
22275 cat >conftest.$ac_ext <<_ACEOF
22276 #line $LINENO "configure"
22277 /* confdefs.h.  */
22278 _ACEOF
22279 cat confdefs.h >>conftest.$ac_ext
22280 cat >>conftest.$ac_ext <<_ACEOF
22281 /* end confdefs.h.  */
22282
22283 /* Override any gcc2 internal prototype to avoid an error.  */
22284 #ifdef __cplusplus
22285 extern "C"
22286 #endif
22287 /* We use char because int might match the return type of a gcc2
22288    builtin and then its argument prototype would still apply.  */
22289 char remove ();
22290 int
22291 main ()
22292 {
22293 remove ();
22294   ;
22295   return 0;
22296 }
22297 _ACEOF
22298 rm -f conftest.$ac_objext conftest$ac_exeext
22299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22300   (eval $ac_link) 2>&5
22301   ac_status=$?
22302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303   (exit $ac_status); } &&
22304          { ac_try='test -s conftest$ac_exeext'
22305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22306   (eval $ac_try) 2>&5
22307   ac_status=$?
22308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309   (exit $ac_status); }; }; then
22310   ac_cv_lib_posix_remove=yes
22311 else
22312   echo "$as_me: failed program was:" >&5
22313 sed 's/^/| /' conftest.$ac_ext >&5
22314
22315 ac_cv_lib_posix_remove=no
22316 fi
22317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22318 LIBS=$ac_check_lib_save_LIBS
22319 fi
22320 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
22321 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
22322 if test $ac_cv_lib_posix_remove = yes; then
22323   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
22324 fi
22325
22326     fi
22327
22328     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
22329     echo "$as_me:$LINENO: checking for shmat" >&5
22330 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
22331 if test "${ac_cv_func_shmat+set}" = set; then
22332   echo $ECHO_N "(cached) $ECHO_C" >&6
22333 else
22334   cat >conftest.$ac_ext <<_ACEOF
22335 #line $LINENO "configure"
22336 /* confdefs.h.  */
22337 _ACEOF
22338 cat confdefs.h >>conftest.$ac_ext
22339 cat >>conftest.$ac_ext <<_ACEOF
22340 /* end confdefs.h.  */
22341 /* System header to define __stub macros and hopefully few prototypes,
22342     which can conflict with char shmat (); below.
22343     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22344     <limits.h> exists even on freestanding compilers.  */
22345 #ifdef __STDC__
22346 # include <limits.h>
22347 #else
22348 # include <assert.h>
22349 #endif
22350 /* Override any gcc2 internal prototype to avoid an error.  */
22351 #ifdef __cplusplus
22352 extern "C"
22353 {
22354 #endif
22355 /* We use char because int might match the return type of a gcc2
22356    builtin and then its argument prototype would still apply.  */
22357 char shmat ();
22358 /* The GNU C library defines this for functions which it implements
22359     to always fail with ENOSYS.  Some functions are actually named
22360     something starting with __ and the normal name is an alias.  */
22361 #if defined (__stub_shmat) || defined (__stub___shmat)
22362 choke me
22363 #else
22364 char (*f) () = shmat;
22365 #endif
22366 #ifdef __cplusplus
22367 }
22368 #endif
22369
22370 int
22371 main ()
22372 {
22373 return f != shmat;
22374   ;
22375   return 0;
22376 }
22377 _ACEOF
22378 rm -f conftest.$ac_objext conftest$ac_exeext
22379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22380   (eval $ac_link) 2>&5
22381   ac_status=$?
22382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383   (exit $ac_status); } &&
22384          { ac_try='test -s conftest$ac_exeext'
22385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22386   (eval $ac_try) 2>&5
22387   ac_status=$?
22388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389   (exit $ac_status); }; }; then
22390   ac_cv_func_shmat=yes
22391 else
22392   echo "$as_me: failed program was:" >&5
22393 sed 's/^/| /' conftest.$ac_ext >&5
22394
22395 ac_cv_func_shmat=no
22396 fi
22397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22398 fi
22399 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
22400 echo "${ECHO_T}$ac_cv_func_shmat" >&6
22401
22402     if test $ac_cv_func_shmat = no; then
22403       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
22404 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
22405 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
22406   echo $ECHO_N "(cached) $ECHO_C" >&6
22407 else
22408   ac_check_lib_save_LIBS=$LIBS
22409 LIBS="-lipc  $LIBS"
22410 cat >conftest.$ac_ext <<_ACEOF
22411 #line $LINENO "configure"
22412 /* confdefs.h.  */
22413 _ACEOF
22414 cat confdefs.h >>conftest.$ac_ext
22415 cat >>conftest.$ac_ext <<_ACEOF
22416 /* end confdefs.h.  */
22417
22418 /* Override any gcc2 internal prototype to avoid an error.  */
22419 #ifdef __cplusplus
22420 extern "C"
22421 #endif
22422 /* We use char because int might match the return type of a gcc2
22423    builtin and then its argument prototype would still apply.  */
22424 char shmat ();
22425 int
22426 main ()
22427 {
22428 shmat ();
22429   ;
22430   return 0;
22431 }
22432 _ACEOF
22433 rm -f conftest.$ac_objext conftest$ac_exeext
22434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22435   (eval $ac_link) 2>&5
22436   ac_status=$?
22437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438   (exit $ac_status); } &&
22439          { ac_try='test -s conftest$ac_exeext'
22440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22441   (eval $ac_try) 2>&5
22442   ac_status=$?
22443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444   (exit $ac_status); }; }; then
22445   ac_cv_lib_ipc_shmat=yes
22446 else
22447   echo "$as_me: failed program was:" >&5
22448 sed 's/^/| /' conftest.$ac_ext >&5
22449
22450 ac_cv_lib_ipc_shmat=no
22451 fi
22452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22453 LIBS=$ac_check_lib_save_LIBS
22454 fi
22455 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
22456 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
22457 if test $ac_cv_lib_ipc_shmat = yes; then
22458   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
22459 fi
22460
22461     fi
22462   fi
22463
22464   # Check for libraries that X11R6 Xt/Xaw programs need.
22465   ac_save_LDFLAGS=$LDFLAGS
22466   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
22467   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
22468   # check for ICE first), but we must link in the order -lSM -lICE or
22469   # we get undefined symbols.  So assume we have SM if we have ICE.
22470   # These have to be linked with before -lX11, unlike the other
22471   # libraries we check for below, so use a different variable.
22472   # John Interrante, Karl Berry
22473   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
22474 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
22475 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
22476   echo $ECHO_N "(cached) $ECHO_C" >&6
22477 else
22478   ac_check_lib_save_LIBS=$LIBS
22479 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
22480 cat >conftest.$ac_ext <<_ACEOF
22481 #line $LINENO "configure"
22482 /* confdefs.h.  */
22483 _ACEOF
22484 cat confdefs.h >>conftest.$ac_ext
22485 cat >>conftest.$ac_ext <<_ACEOF
22486 /* end confdefs.h.  */
22487
22488 /* Override any gcc2 internal prototype to avoid an error.  */
22489 #ifdef __cplusplus
22490 extern "C"
22491 #endif
22492 /* We use char because int might match the return type of a gcc2
22493    builtin and then its argument prototype would still apply.  */
22494 char IceConnectionNumber ();
22495 int
22496 main ()
22497 {
22498 IceConnectionNumber ();
22499   ;
22500   return 0;
22501 }
22502 _ACEOF
22503 rm -f conftest.$ac_objext conftest$ac_exeext
22504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22505   (eval $ac_link) 2>&5
22506   ac_status=$?
22507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22508   (exit $ac_status); } &&
22509          { ac_try='test -s conftest$ac_exeext'
22510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22511   (eval $ac_try) 2>&5
22512   ac_status=$?
22513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514   (exit $ac_status); }; }; then
22515   ac_cv_lib_ICE_IceConnectionNumber=yes
22516 else
22517   echo "$as_me: failed program was:" >&5
22518 sed 's/^/| /' conftest.$ac_ext >&5
22519
22520 ac_cv_lib_ICE_IceConnectionNumber=no
22521 fi
22522 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22523 LIBS=$ac_check_lib_save_LIBS
22524 fi
22525 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
22526 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
22527 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
22528   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
22529 fi
22530
22531   LDFLAGS=$ac_save_LDFLAGS
22532
22533 fi
22534
22535
22536         if test "$no_x" = "yes"; then
22537           { { echo "$as_me:$LINENO: error: X11 not found" >&5
22538 echo "$as_me: error: X11 not found" >&2;}
22539    { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
22540         fi
22541
22542         GUI_TK_LIBRARY="$X_LIBS"
22543         TOOLKIT_INCLUDE="$X_CFLAGS"
22544         AFMINSTALL=afminstall
22545         COMPILED_X_PROGRAM=0
22546
22547         if test "$wxUSE_NANOX" = "yes"; then
22548             echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
22549 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
22550             if test "x$MICROWIN" = x ; then
22551                 echo "$as_me:$LINENO: result: not found" >&5
22552 echo "${ECHO_T}not found" >&6
22553                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
22554 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
22555    { (exit 1); exit 1; }; }
22556             else
22557                 echo "$as_me:$LINENO: result: $MICROWIN" >&5
22558 echo "${ECHO_T}$MICROWIN" >&6
22559                 cat >>confdefs.h <<\_ACEOF
22560 #define wxUSE_NANOX 1
22561 _ACEOF
22562
22563             fi
22564         fi
22565
22566         xpm_link=
22567         echo "$as_me:$LINENO: checking for Xpm library" >&5
22568 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
22569
22570 ac_find_libraries=
22571 for ac_dir in $SEARCH_LIB /usr/lib;
22572   do
22573     for ac_extension in a so sl dylib; do
22574       if test -f "$ac_dir/libXpm.$ac_extension"; then
22575         ac_find_libraries=$ac_dir
22576         break 2
22577       fi
22578     done
22579   done
22580
22581         if test "$ac_find_libraries" != "" ; then
22582
22583   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
22584   result=$?
22585   if test $result = 0; then
22586     ac_path_to_link=""
22587   else
22588     ac_path_to_link=" -L$ac_find_libraries"
22589   fi
22590
22591             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
22592             xpm_link=" -lXpm"
22593             cat >>confdefs.h <<\_ACEOF
22594 #define wxHAVE_LIB_XPM 1
22595 _ACEOF
22596
22597             echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
22598 echo "${ECHO_T}found at $ac_find_libraries" >&6
22599         else
22600             cat >conftest.$ac_ext <<_ACEOF
22601 #line $LINENO "configure"
22602 /* confdefs.h.  */
22603 _ACEOF
22604 cat confdefs.h >>conftest.$ac_ext
22605 cat >>conftest.$ac_ext <<_ACEOF
22606 /* end confdefs.h.  */
22607
22608                     #include <X11/xpm.h>
22609
22610 int
22611 main ()
22612 {
22613
22614                     int version;
22615                     version = XpmLibraryVersion();
22616
22617   ;
22618   return 0;
22619 }
22620 _ACEOF
22621 rm -f conftest.$ac_objext
22622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22623   (eval $ac_compile) 2>&5
22624   ac_status=$?
22625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626   (exit $ac_status); } &&
22627          { ac_try='test -s conftest.$ac_objext'
22628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22629   (eval $ac_try) 2>&5
22630   ac_status=$?
22631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632   (exit $ac_status); }; }; then
22633
22634                     xpm_link=" -lXpm"
22635                     cat >>confdefs.h <<\_ACEOF
22636 #define wxHAVE_LIB_XPM 1
22637 _ACEOF
22638
22639                     echo "$as_me:$LINENO: result: found in default search path" >&5
22640 echo "${ECHO_T}found in default search path" >&6
22641                     COMPILED_X_PROGRAM=0
22642
22643 else
22644   echo "$as_me: failed program was:" >&5
22645 sed 's/^/| /' conftest.$ac_ext >&5
22646
22647
22648                     echo "$as_me:$LINENO: result: no" >&5
22649 echo "${ECHO_T}no" >&6
22650                     { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
22651 echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
22652
22653
22654 fi
22655 rm -f conftest.$ac_objext conftest.$ac_ext
22656         fi
22657
22658         echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
22659 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
22660 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
22661   echo $ECHO_N "(cached) $ECHO_C" >&6
22662 else
22663   ac_check_lib_save_LIBS=$LIBS
22664 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
22665 cat >conftest.$ac_ext <<_ACEOF
22666 #line $LINENO "configure"
22667 /* confdefs.h.  */
22668 _ACEOF
22669 cat confdefs.h >>conftest.$ac_ext
22670 cat >>conftest.$ac_ext <<_ACEOF
22671 /* end confdefs.h.  */
22672
22673 /* Override any gcc2 internal prototype to avoid an error.  */
22674 #ifdef __cplusplus
22675 extern "C"
22676 #endif
22677 /* We use char because int might match the return type of a gcc2
22678    builtin and then its argument prototype would still apply.  */
22679 char XShapeQueryExtension ();
22680 int
22681 main ()
22682 {
22683 XShapeQueryExtension ();
22684   ;
22685   return 0;
22686 }
22687 _ACEOF
22688 rm -f conftest.$ac_objext conftest$ac_exeext
22689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22690   (eval $ac_link) 2>&5
22691   ac_status=$?
22692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22693   (exit $ac_status); } &&
22694          { ac_try='test -s conftest$ac_exeext'
22695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22696   (eval $ac_try) 2>&5
22697   ac_status=$?
22698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22699   (exit $ac_status); }; }; then
22700   ac_cv_lib_Xext_XShapeQueryExtension=yes
22701 else
22702   echo "$as_me: failed program was:" >&5
22703 sed 's/^/| /' conftest.$ac_ext >&5
22704
22705 ac_cv_lib_Xext_XShapeQueryExtension=no
22706 fi
22707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22708 LIBS=$ac_check_lib_save_LIBS
22709 fi
22710 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
22711 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
22712 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
22713
22714                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
22715                       wxHAVE_XEXT_LIB=1
22716
22717 fi
22718
22719
22720         if test "$wxUSE_UNICODE" = "yes"; then
22721
22722   succeeded=no
22723
22724   if test -z "$PKG_CONFIG"; then
22725     # Extract the first word of "pkg-config", so it can be a program name with args.
22726 set dummy pkg-config; ac_word=$2
22727 echo "$as_me:$LINENO: checking for $ac_word" >&5
22728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22729 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22730   echo $ECHO_N "(cached) $ECHO_C" >&6
22731 else
22732   case $PKG_CONFIG in
22733   [\\/]* | ?:[\\/]*)
22734   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22735   ;;
22736   *)
22737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22738 for as_dir in $PATH
22739 do
22740   IFS=$as_save_IFS
22741   test -z "$as_dir" && as_dir=.
22742   for ac_exec_ext in '' $ac_executable_extensions; do
22743   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22744     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22746     break 2
22747   fi
22748 done
22749 done
22750
22751   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22752   ;;
22753 esac
22754 fi
22755 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22756
22757 if test -n "$PKG_CONFIG"; then
22758   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22759 echo "${ECHO_T}$PKG_CONFIG" >&6
22760 else
22761   echo "$as_me:$LINENO: result: no" >&5
22762 echo "${ECHO_T}no" >&6
22763 fi
22764
22765   fi
22766
22767   if test "$PKG_CONFIG" = "no" ; then
22768      echo "*** The pkg-config script could not be found. Make sure it is"
22769      echo "*** in your path, or set the PKG_CONFIG environment variable"
22770      echo "*** to the full path to pkg-config."
22771      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22772   else
22773      PKG_CONFIG_MIN_VERSION=0.9.0
22774      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22775         echo "$as_me:$LINENO: checking for pangox" >&5
22776 echo $ECHO_N "checking for pangox... $ECHO_C" >&6
22777
22778         if $PKG_CONFIG --exists "pangox" ; then
22779             echo "$as_me:$LINENO: result: yes" >&5
22780 echo "${ECHO_T}yes" >&6
22781             succeeded=yes
22782
22783             echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
22784 echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
22785             PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
22786             echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
22787 echo "${ECHO_T}$PANGOX_CFLAGS" >&6
22788
22789             echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
22790 echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
22791             PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
22792             echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
22793 echo "${ECHO_T}$PANGOX_LIBS" >&6
22794         else
22795             PANGOX_CFLAGS=""
22796             PANGOX_LIBS=""
22797             ## If we have a custom action on failure, don't print errors, but
22798             ## do set a variable so people can do so.
22799             PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
22800
22801         fi
22802
22803
22804
22805      else
22806         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22807         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22808      fi
22809   fi
22810
22811   if test $succeeded = yes; then
22812
22813                         CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
22814                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
22815
22816   else
22817
22818                         { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
22819 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
22820    { (exit 1); exit 1; }; }
22821
22822
22823   fi
22824
22825
22826   succeeded=no
22827
22828   if test -z "$PKG_CONFIG"; then
22829     # Extract the first word of "pkg-config", so it can be a program name with args.
22830 set dummy pkg-config; ac_word=$2
22831 echo "$as_me:$LINENO: checking for $ac_word" >&5
22832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22833 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22834   echo $ECHO_N "(cached) $ECHO_C" >&6
22835 else
22836   case $PKG_CONFIG in
22837   [\\/]* | ?:[\\/]*)
22838   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22839   ;;
22840   *)
22841   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22842 for as_dir in $PATH
22843 do
22844   IFS=$as_save_IFS
22845   test -z "$as_dir" && as_dir=.
22846   for ac_exec_ext in '' $ac_executable_extensions; do
22847   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22848     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22850     break 2
22851   fi
22852 done
22853 done
22854
22855   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22856   ;;
22857 esac
22858 fi
22859 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22860
22861 if test -n "$PKG_CONFIG"; then
22862   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22863 echo "${ECHO_T}$PKG_CONFIG" >&6
22864 else
22865   echo "$as_me:$LINENO: result: no" >&5
22866 echo "${ECHO_T}no" >&6
22867 fi
22868
22869   fi
22870
22871   if test "$PKG_CONFIG" = "no" ; then
22872      echo "*** The pkg-config script could not be found. Make sure it is"
22873      echo "*** in your path, or set the PKG_CONFIG environment variable"
22874      echo "*** to the full path to pkg-config."
22875      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22876   else
22877      PKG_CONFIG_MIN_VERSION=0.9.0
22878      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22879         echo "$as_me:$LINENO: checking for pangoft2" >&5
22880 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
22881
22882         if $PKG_CONFIG --exists "pangoft2" ; then
22883             echo "$as_me:$LINENO: result: yes" >&5
22884 echo "${ECHO_T}yes" >&6
22885             succeeded=yes
22886
22887             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22888 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
22889             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
22890             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22891 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
22892
22893             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22894 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
22895             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
22896             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22897 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
22898         else
22899             PANGOFT2_CFLAGS=""
22900             PANGOFT2_LIBS=""
22901             ## If we have a custom action on failure, don't print errors, but
22902             ## do set a variable so people can do so.
22903             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
22904
22905         fi
22906
22907
22908
22909      else
22910         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22911         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22912      fi
22913   fi
22914
22915   if test $succeeded = yes; then
22916
22917                         CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
22918                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
22919
22920   else
22921
22922                         { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22923 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
22924                         wxUSE_PRINTING_ARCHITECTURE="no"
22925
22926
22927   fi
22928
22929
22930   succeeded=no
22931
22932   if test -z "$PKG_CONFIG"; then
22933     # Extract the first word of "pkg-config", so it can be a program name with args.
22934 set dummy pkg-config; ac_word=$2
22935 echo "$as_me:$LINENO: checking for $ac_word" >&5
22936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22937 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22938   echo $ECHO_N "(cached) $ECHO_C" >&6
22939 else
22940   case $PKG_CONFIG in
22941   [\\/]* | ?:[\\/]*)
22942   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22943   ;;
22944   *)
22945   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22946 for as_dir in $PATH
22947 do
22948   IFS=$as_save_IFS
22949   test -z "$as_dir" && as_dir=.
22950   for ac_exec_ext in '' $ac_executable_extensions; do
22951   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22952     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22953     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22954     break 2
22955   fi
22956 done
22957 done
22958
22959   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22960   ;;
22961 esac
22962 fi
22963 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22964
22965 if test -n "$PKG_CONFIG"; then
22966   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22967 echo "${ECHO_T}$PKG_CONFIG" >&6
22968 else
22969   echo "$as_me:$LINENO: result: no" >&5
22970 echo "${ECHO_T}no" >&6
22971 fi
22972
22973   fi
22974
22975   if test "$PKG_CONFIG" = "no" ; then
22976      echo "*** The pkg-config script could not be found. Make sure it is"
22977      echo "*** in your path, or set the PKG_CONFIG environment variable"
22978      echo "*** to the full path to pkg-config."
22979      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22980   else
22981      PKG_CONFIG_MIN_VERSION=0.9.0
22982      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22983         echo "$as_me:$LINENO: checking for pangoxft" >&5
22984 echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
22985
22986         if $PKG_CONFIG --exists "pangoxft" ; then
22987             echo "$as_me:$LINENO: result: yes" >&5
22988 echo "${ECHO_T}yes" >&6
22989             succeeded=yes
22990
22991             echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
22992 echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
22993             PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
22994             echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
22995 echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
22996
22997             echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
22998 echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
22999             PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
23000             echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
23001 echo "${ECHO_T}$PANGOXFT_LIBS" >&6
23002         else
23003             PANGOXFT_CFLAGS=""
23004             PANGOXFT_LIBS=""
23005             ## If we have a custom action on failure, don't print errors, but
23006             ## do set a variable so people can do so.
23007             PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
23008
23009         fi
23010
23011
23012
23013      else
23014         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23015         echo "*** See http://www.freedesktop.org/software/pkgconfig"
23016      fi
23017   fi
23018
23019   if test $succeeded = yes; then
23020
23021                         CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
23022                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
23023
23024   else
23025
23026                         { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
23027 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
23028
23029
23030   fi
23031
23032         fi
23033
23034         wxUSE_UNIVERSAL="yes"
23035
23036         if test "$wxUSE_NANOX" = "yes"; then
23037             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
23038             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"
23039             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
23040         else
23041             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
23042         fi
23043
23044         TOOLKIT_VPATH="\${top_srcdir}/src/x11"
23045         TOOLKIT=X11
23046         GUIDIST=X11_DIST
23047     fi
23048
23049     if test "$wxUSE_MOTIF" = 1; then
23050                         if test "$no_x" = yes; then
23051   # Not all programs may use this symbol, but it does not hurt to define it.
23052
23053 cat >>confdefs.h <<\_ACEOF
23054 #define X_DISPLAY_MISSING 1
23055 _ACEOF
23056
23057   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23058 else
23059   if test -n "$x_includes"; then
23060     X_CFLAGS="$X_CFLAGS -I$x_includes"
23061   fi
23062
23063   # It would also be nice to do this for all -L options, not just this one.
23064   if test -n "$x_libraries"; then
23065     X_LIBS="$X_LIBS -L$x_libraries"
23066     # For Solaris; some versions of Sun CC require a space after -R and
23067     # others require no space.  Words are not sufficient . . . .
23068     case `(uname -sr) 2>/dev/null` in
23069     "SunOS 5"*)
23070       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23071 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
23072       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23073       cat >conftest.$ac_ext <<_ACEOF
23074 #line $LINENO "configure"
23075 /* confdefs.h.  */
23076 _ACEOF
23077 cat confdefs.h >>conftest.$ac_ext
23078 cat >>conftest.$ac_ext <<_ACEOF
23079 /* end confdefs.h.  */
23080
23081 int
23082 main ()
23083 {
23084
23085   ;
23086   return 0;
23087 }
23088 _ACEOF
23089 rm -f conftest.$ac_objext conftest$ac_exeext
23090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23091   (eval $ac_link) 2>&5
23092   ac_status=$?
23093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094   (exit $ac_status); } &&
23095          { ac_try='test -s conftest$ac_exeext'
23096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23097   (eval $ac_try) 2>&5
23098   ac_status=$?
23099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23100   (exit $ac_status); }; }; then
23101   ac_R_nospace=yes
23102 else
23103   echo "$as_me: failed program was:" >&5
23104 sed 's/^/| /' conftest.$ac_ext >&5
23105
23106 ac_R_nospace=no
23107 fi
23108 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23109       if test $ac_R_nospace = yes; then
23110         echo "$as_me:$LINENO: result: no" >&5
23111 echo "${ECHO_T}no" >&6
23112         X_LIBS="$X_LIBS -R$x_libraries"
23113       else
23114         LIBS="$ac_xsave_LIBS -R $x_libraries"
23115         cat >conftest.$ac_ext <<_ACEOF
23116 #line $LINENO "configure"
23117 /* confdefs.h.  */
23118 _ACEOF
23119 cat confdefs.h >>conftest.$ac_ext
23120 cat >>conftest.$ac_ext <<_ACEOF
23121 /* end confdefs.h.  */
23122
23123 int
23124 main ()
23125 {
23126
23127   ;
23128   return 0;
23129 }
23130 _ACEOF
23131 rm -f conftest.$ac_objext conftest$ac_exeext
23132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23133   (eval $ac_link) 2>&5
23134   ac_status=$?
23135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136   (exit $ac_status); } &&
23137          { ac_try='test -s conftest$ac_exeext'
23138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23139   (eval $ac_try) 2>&5
23140   ac_status=$?
23141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142   (exit $ac_status); }; }; then
23143   ac_R_space=yes
23144 else
23145   echo "$as_me: failed program was:" >&5
23146 sed 's/^/| /' conftest.$ac_ext >&5
23147
23148 ac_R_space=no
23149 fi
23150 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23151         if test $ac_R_space = yes; then
23152           echo "$as_me:$LINENO: result: yes" >&5
23153 echo "${ECHO_T}yes" >&6
23154           X_LIBS="$X_LIBS -R $x_libraries"
23155         else
23156           echo "$as_me:$LINENO: result: neither works" >&5
23157 echo "${ECHO_T}neither works" >&6
23158         fi
23159       fi
23160       LIBS=$ac_xsave_LIBS
23161     esac
23162   fi
23163
23164   # Check for system-dependent libraries X programs must link with.
23165   # Do this before checking for the system-independent R6 libraries
23166   # (-lICE), since we may need -lsocket or whatever for X linking.
23167
23168   if test "$ISC" = yes; then
23169     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23170   else
23171     # Martyn Johnson says this is needed for Ultrix, if the X
23172     # libraries were built with DECnet support.  And Karl Berry says
23173     # the Alpha needs dnet_stub (dnet does not exist).
23174     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23175     cat >conftest.$ac_ext <<_ACEOF
23176 #line $LINENO "configure"
23177 /* confdefs.h.  */
23178 _ACEOF
23179 cat confdefs.h >>conftest.$ac_ext
23180 cat >>conftest.$ac_ext <<_ACEOF
23181 /* end confdefs.h.  */
23182
23183 /* Override any gcc2 internal prototype to avoid an error.  */
23184 #ifdef __cplusplus
23185 extern "C"
23186 #endif
23187 /* We use char because int might match the return type of a gcc2
23188    builtin and then its argument prototype would still apply.  */
23189 char XOpenDisplay ();
23190 int
23191 main ()
23192 {
23193 XOpenDisplay ();
23194   ;
23195   return 0;
23196 }
23197 _ACEOF
23198 rm -f conftest.$ac_objext conftest$ac_exeext
23199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23200   (eval $ac_link) 2>&5
23201   ac_status=$?
23202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23203   (exit $ac_status); } &&
23204          { ac_try='test -s conftest$ac_exeext'
23205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23206   (eval $ac_try) 2>&5
23207   ac_status=$?
23208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23209   (exit $ac_status); }; }; then
23210   :
23211 else
23212   echo "$as_me: failed program was:" >&5
23213 sed 's/^/| /' conftest.$ac_ext >&5
23214
23215 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23216 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
23217 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23218   echo $ECHO_N "(cached) $ECHO_C" >&6
23219 else
23220   ac_check_lib_save_LIBS=$LIBS
23221 LIBS="-ldnet  $LIBS"
23222 cat >conftest.$ac_ext <<_ACEOF
23223 #line $LINENO "configure"
23224 /* confdefs.h.  */
23225 _ACEOF
23226 cat confdefs.h >>conftest.$ac_ext
23227 cat >>conftest.$ac_ext <<_ACEOF
23228 /* end confdefs.h.  */
23229
23230 /* Override any gcc2 internal prototype to avoid an error.  */
23231 #ifdef __cplusplus
23232 extern "C"
23233 #endif
23234 /* We use char because int might match the return type of a gcc2
23235    builtin and then its argument prototype would still apply.  */
23236 char dnet_ntoa ();
23237 int
23238 main ()
23239 {
23240 dnet_ntoa ();
23241   ;
23242   return 0;
23243 }
23244 _ACEOF
23245 rm -f conftest.$ac_objext conftest$ac_exeext
23246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23247   (eval $ac_link) 2>&5
23248   ac_status=$?
23249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23250   (exit $ac_status); } &&
23251          { ac_try='test -s conftest$ac_exeext'
23252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23253   (eval $ac_try) 2>&5
23254   ac_status=$?
23255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23256   (exit $ac_status); }; }; then
23257   ac_cv_lib_dnet_dnet_ntoa=yes
23258 else
23259   echo "$as_me: failed program was:" >&5
23260 sed 's/^/| /' conftest.$ac_ext >&5
23261
23262 ac_cv_lib_dnet_dnet_ntoa=no
23263 fi
23264 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23265 LIBS=$ac_check_lib_save_LIBS
23266 fi
23267 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23268 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
23269 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
23270   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23271 fi
23272
23273     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23274       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23275 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23276 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23277   echo $ECHO_N "(cached) $ECHO_C" >&6
23278 else
23279   ac_check_lib_save_LIBS=$LIBS
23280 LIBS="-ldnet_stub  $LIBS"
23281 cat >conftest.$ac_ext <<_ACEOF
23282 #line $LINENO "configure"
23283 /* confdefs.h.  */
23284 _ACEOF
23285 cat confdefs.h >>conftest.$ac_ext
23286 cat >>conftest.$ac_ext <<_ACEOF
23287 /* end confdefs.h.  */
23288
23289 /* Override any gcc2 internal prototype to avoid an error.  */
23290 #ifdef __cplusplus
23291 extern "C"
23292 #endif
23293 /* We use char because int might match the return type of a gcc2
23294    builtin and then its argument prototype would still apply.  */
23295 char dnet_ntoa ();
23296 int
23297 main ()
23298 {
23299 dnet_ntoa ();
23300   ;
23301   return 0;
23302 }
23303 _ACEOF
23304 rm -f conftest.$ac_objext conftest$ac_exeext
23305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23306   (eval $ac_link) 2>&5
23307   ac_status=$?
23308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23309   (exit $ac_status); } &&
23310          { ac_try='test -s conftest$ac_exeext'
23311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23312   (eval $ac_try) 2>&5
23313   ac_status=$?
23314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23315   (exit $ac_status); }; }; then
23316   ac_cv_lib_dnet_stub_dnet_ntoa=yes
23317 else
23318   echo "$as_me: failed program was:" >&5
23319 sed 's/^/| /' conftest.$ac_ext >&5
23320
23321 ac_cv_lib_dnet_stub_dnet_ntoa=no
23322 fi
23323 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23324 LIBS=$ac_check_lib_save_LIBS
23325 fi
23326 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23327 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23328 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
23329   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23330 fi
23331
23332     fi
23333 fi
23334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23335     LIBS="$ac_xsave_LIBS"
23336
23337     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23338     # to get the SysV transport functions.
23339     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23340     # needs -lnsl.
23341     # The nsl library prevents programs from opening the X display
23342     # on Irix 5.2, according to T.E. Dickey.
23343     # The functions gethostbyname, getservbyname, and inet_addr are
23344     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23345     echo "$as_me:$LINENO: checking for gethostbyname" >&5
23346 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23347 if test "${ac_cv_func_gethostbyname+set}" = set; then
23348   echo $ECHO_N "(cached) $ECHO_C" >&6
23349 else
23350   cat >conftest.$ac_ext <<_ACEOF
23351 #line $LINENO "configure"
23352 /* confdefs.h.  */
23353 _ACEOF
23354 cat confdefs.h >>conftest.$ac_ext
23355 cat >>conftest.$ac_ext <<_ACEOF
23356 /* end confdefs.h.  */
23357 /* System header to define __stub macros and hopefully few prototypes,
23358     which can conflict with char gethostbyname (); below.
23359     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23360     <limits.h> exists even on freestanding compilers.  */
23361 #ifdef __STDC__
23362 # include <limits.h>
23363 #else
23364 # include <assert.h>
23365 #endif
23366 /* Override any gcc2 internal prototype to avoid an error.  */
23367 #ifdef __cplusplus
23368 extern "C"
23369 {
23370 #endif
23371 /* We use char because int might match the return type of a gcc2
23372    builtin and then its argument prototype would still apply.  */
23373 char gethostbyname ();
23374 /* The GNU C library defines this for functions which it implements
23375     to always fail with ENOSYS.  Some functions are actually named
23376     something starting with __ and the normal name is an alias.  */
23377 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23378 choke me
23379 #else
23380 char (*f) () = gethostbyname;
23381 #endif
23382 #ifdef __cplusplus
23383 }
23384 #endif
23385
23386 int
23387 main ()
23388 {
23389 return f != gethostbyname;
23390   ;
23391   return 0;
23392 }
23393 _ACEOF
23394 rm -f conftest.$ac_objext conftest$ac_exeext
23395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23396   (eval $ac_link) 2>&5
23397   ac_status=$?
23398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399   (exit $ac_status); } &&
23400          { ac_try='test -s conftest$ac_exeext'
23401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23402   (eval $ac_try) 2>&5
23403   ac_status=$?
23404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405   (exit $ac_status); }; }; then
23406   ac_cv_func_gethostbyname=yes
23407 else
23408   echo "$as_me: failed program was:" >&5
23409 sed 's/^/| /' conftest.$ac_ext >&5
23410
23411 ac_cv_func_gethostbyname=no
23412 fi
23413 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23414 fi
23415 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23416 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
23417
23418     if test $ac_cv_func_gethostbyname = no; then
23419       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23420 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23421 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23422   echo $ECHO_N "(cached) $ECHO_C" >&6
23423 else
23424   ac_check_lib_save_LIBS=$LIBS
23425 LIBS="-lnsl  $LIBS"
23426 cat >conftest.$ac_ext <<_ACEOF
23427 #line $LINENO "configure"
23428 /* confdefs.h.  */
23429 _ACEOF
23430 cat confdefs.h >>conftest.$ac_ext
23431 cat >>conftest.$ac_ext <<_ACEOF
23432 /* end confdefs.h.  */
23433
23434 /* Override any gcc2 internal prototype to avoid an error.  */
23435 #ifdef __cplusplus
23436 extern "C"
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 gethostbyname ();
23441 int
23442 main ()
23443 {
23444 gethostbyname ();
23445   ;
23446   return 0;
23447 }
23448 _ACEOF
23449 rm -f conftest.$ac_objext conftest$ac_exeext
23450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23451   (eval $ac_link) 2>&5
23452   ac_status=$?
23453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454   (exit $ac_status); } &&
23455          { ac_try='test -s conftest$ac_exeext'
23456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23457   (eval $ac_try) 2>&5
23458   ac_status=$?
23459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460   (exit $ac_status); }; }; then
23461   ac_cv_lib_nsl_gethostbyname=yes
23462 else
23463   echo "$as_me: failed program was:" >&5
23464 sed 's/^/| /' conftest.$ac_ext >&5
23465
23466 ac_cv_lib_nsl_gethostbyname=no
23467 fi
23468 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23469 LIBS=$ac_check_lib_save_LIBS
23470 fi
23471 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23472 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23473 if test $ac_cv_lib_nsl_gethostbyname = yes; then
23474   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
23475 fi
23476
23477       if test $ac_cv_lib_nsl_gethostbyname = no; then
23478         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23479 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23480 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23481   echo $ECHO_N "(cached) $ECHO_C" >&6
23482 else
23483   ac_check_lib_save_LIBS=$LIBS
23484 LIBS="-lbsd  $LIBS"
23485 cat >conftest.$ac_ext <<_ACEOF
23486 #line $LINENO "configure"
23487 /* confdefs.h.  */
23488 _ACEOF
23489 cat confdefs.h >>conftest.$ac_ext
23490 cat >>conftest.$ac_ext <<_ACEOF
23491 /* end confdefs.h.  */
23492
23493 /* Override any gcc2 internal prototype to avoid an error.  */
23494 #ifdef __cplusplus
23495 extern "C"
23496 #endif
23497 /* We use char because int might match the return type of a gcc2
23498    builtin and then its argument prototype would still apply.  */
23499 char gethostbyname ();
23500 int
23501 main ()
23502 {
23503 gethostbyname ();
23504   ;
23505   return 0;
23506 }
23507 _ACEOF
23508 rm -f conftest.$ac_objext conftest$ac_exeext
23509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23510   (eval $ac_link) 2>&5
23511   ac_status=$?
23512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513   (exit $ac_status); } &&
23514          { ac_try='test -s conftest$ac_exeext'
23515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23516   (eval $ac_try) 2>&5
23517   ac_status=$?
23518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23519   (exit $ac_status); }; }; then
23520   ac_cv_lib_bsd_gethostbyname=yes
23521 else
23522   echo "$as_me: failed program was:" >&5
23523 sed 's/^/| /' conftest.$ac_ext >&5
23524
23525 ac_cv_lib_bsd_gethostbyname=no
23526 fi
23527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23528 LIBS=$ac_check_lib_save_LIBS
23529 fi
23530 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23531 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
23532 if test $ac_cv_lib_bsd_gethostbyname = yes; then
23533   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
23534 fi
23535
23536       fi
23537     fi
23538
23539     # lieder@skyler.mavd.honeywell.com says without -lsocket,
23540     # socket/setsockopt and other routines are undefined under SCO ODT
23541     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
23542     # on later versions), says Simon Leinen: it contains gethostby*
23543     # variants that don't use the name server (or something).  -lsocket
23544     # must be given before -lnsl if both are needed.  We assume that
23545     # if connect needs -lnsl, so does gethostbyname.
23546     echo "$as_me:$LINENO: checking for connect" >&5
23547 echo $ECHO_N "checking for connect... $ECHO_C" >&6
23548 if test "${ac_cv_func_connect+set}" = set; then
23549   echo $ECHO_N "(cached) $ECHO_C" >&6
23550 else
23551   cat >conftest.$ac_ext <<_ACEOF
23552 #line $LINENO "configure"
23553 /* confdefs.h.  */
23554 _ACEOF
23555 cat confdefs.h >>conftest.$ac_ext
23556 cat >>conftest.$ac_ext <<_ACEOF
23557 /* end confdefs.h.  */
23558 /* System header to define __stub macros and hopefully few prototypes,
23559     which can conflict with char connect (); below.
23560     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23561     <limits.h> exists even on freestanding compilers.  */
23562 #ifdef __STDC__
23563 # include <limits.h>
23564 #else
23565 # include <assert.h>
23566 #endif
23567 /* Override any gcc2 internal prototype to avoid an error.  */
23568 #ifdef __cplusplus
23569 extern "C"
23570 {
23571 #endif
23572 /* We use char because int might match the return type of a gcc2
23573    builtin and then its argument prototype would still apply.  */
23574 char connect ();
23575 /* The GNU C library defines this for functions which it implements
23576     to always fail with ENOSYS.  Some functions are actually named
23577     something starting with __ and the normal name is an alias.  */
23578 #if defined (__stub_connect) || defined (__stub___connect)
23579 choke me
23580 #else
23581 char (*f) () = connect;
23582 #endif
23583 #ifdef __cplusplus
23584 }
23585 #endif
23586
23587 int
23588 main ()
23589 {
23590 return f != connect;
23591   ;
23592   return 0;
23593 }
23594 _ACEOF
23595 rm -f conftest.$ac_objext conftest$ac_exeext
23596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23597   (eval $ac_link) 2>&5
23598   ac_status=$?
23599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23600   (exit $ac_status); } &&
23601          { ac_try='test -s conftest$ac_exeext'
23602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23603   (eval $ac_try) 2>&5
23604   ac_status=$?
23605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606   (exit $ac_status); }; }; then
23607   ac_cv_func_connect=yes
23608 else
23609   echo "$as_me: failed program was:" >&5
23610 sed 's/^/| /' conftest.$ac_ext >&5
23611
23612 ac_cv_func_connect=no
23613 fi
23614 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23615 fi
23616 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23617 echo "${ECHO_T}$ac_cv_func_connect" >&6
23618
23619     if test $ac_cv_func_connect = no; then
23620       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23621 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
23622 if test "${ac_cv_lib_socket_connect+set}" = set; then
23623   echo $ECHO_N "(cached) $ECHO_C" >&6
23624 else
23625   ac_check_lib_save_LIBS=$LIBS
23626 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
23627 cat >conftest.$ac_ext <<_ACEOF
23628 #line $LINENO "configure"
23629 /* confdefs.h.  */
23630 _ACEOF
23631 cat confdefs.h >>conftest.$ac_ext
23632 cat >>conftest.$ac_ext <<_ACEOF
23633 /* end confdefs.h.  */
23634
23635 /* Override any gcc2 internal prototype to avoid an error.  */
23636 #ifdef __cplusplus
23637 extern "C"
23638 #endif
23639 /* We use char because int might match the return type of a gcc2
23640    builtin and then its argument prototype would still apply.  */
23641 char connect ();
23642 int
23643 main ()
23644 {
23645 connect ();
23646   ;
23647   return 0;
23648 }
23649 _ACEOF
23650 rm -f conftest.$ac_objext conftest$ac_exeext
23651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23652   (eval $ac_link) 2>&5
23653   ac_status=$?
23654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655   (exit $ac_status); } &&
23656          { ac_try='test -s conftest$ac_exeext'
23657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23658   (eval $ac_try) 2>&5
23659   ac_status=$?
23660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661   (exit $ac_status); }; }; then
23662   ac_cv_lib_socket_connect=yes
23663 else
23664   echo "$as_me: failed program was:" >&5
23665 sed 's/^/| /' conftest.$ac_ext >&5
23666
23667 ac_cv_lib_socket_connect=no
23668 fi
23669 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23670 LIBS=$ac_check_lib_save_LIBS
23671 fi
23672 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23673 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23674 if test $ac_cv_lib_socket_connect = yes; then
23675   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
23676 fi
23677
23678     fi
23679
23680     # Guillermo Gomez says -lposix is necessary on A/UX.
23681     echo "$as_me:$LINENO: checking for remove" >&5
23682 echo $ECHO_N "checking for remove... $ECHO_C" >&6
23683 if test "${ac_cv_func_remove+set}" = set; then
23684   echo $ECHO_N "(cached) $ECHO_C" >&6
23685 else
23686   cat >conftest.$ac_ext <<_ACEOF
23687 #line $LINENO "configure"
23688 /* confdefs.h.  */
23689 _ACEOF
23690 cat confdefs.h >>conftest.$ac_ext
23691 cat >>conftest.$ac_ext <<_ACEOF
23692 /* end confdefs.h.  */
23693 /* System header to define __stub macros and hopefully few prototypes,
23694     which can conflict with char remove (); below.
23695     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23696     <limits.h> exists even on freestanding compilers.  */
23697 #ifdef __STDC__
23698 # include <limits.h>
23699 #else
23700 # include <assert.h>
23701 #endif
23702 /* Override any gcc2 internal prototype to avoid an error.  */
23703 #ifdef __cplusplus
23704 extern "C"
23705 {
23706 #endif
23707 /* We use char because int might match the return type of a gcc2
23708    builtin and then its argument prototype would still apply.  */
23709 char remove ();
23710 /* The GNU C library defines this for functions which it implements
23711     to always fail with ENOSYS.  Some functions are actually named
23712     something starting with __ and the normal name is an alias.  */
23713 #if defined (__stub_remove) || defined (__stub___remove)
23714 choke me
23715 #else
23716 char (*f) () = remove;
23717 #endif
23718 #ifdef __cplusplus
23719 }
23720 #endif
23721
23722 int
23723 main ()
23724 {
23725 return f != remove;
23726   ;
23727   return 0;
23728 }
23729 _ACEOF
23730 rm -f conftest.$ac_objext conftest$ac_exeext
23731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23732   (eval $ac_link) 2>&5
23733   ac_status=$?
23734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23735   (exit $ac_status); } &&
23736          { ac_try='test -s conftest$ac_exeext'
23737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23738   (eval $ac_try) 2>&5
23739   ac_status=$?
23740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23741   (exit $ac_status); }; }; then
23742   ac_cv_func_remove=yes
23743 else
23744   echo "$as_me: failed program was:" >&5
23745 sed 's/^/| /' conftest.$ac_ext >&5
23746
23747 ac_cv_func_remove=no
23748 fi
23749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23750 fi
23751 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23752 echo "${ECHO_T}$ac_cv_func_remove" >&6
23753
23754     if test $ac_cv_func_remove = no; then
23755       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23756 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23757 if test "${ac_cv_lib_posix_remove+set}" = set; then
23758   echo $ECHO_N "(cached) $ECHO_C" >&6
23759 else
23760   ac_check_lib_save_LIBS=$LIBS
23761 LIBS="-lposix  $LIBS"
23762 cat >conftest.$ac_ext <<_ACEOF
23763 #line $LINENO "configure"
23764 /* confdefs.h.  */
23765 _ACEOF
23766 cat confdefs.h >>conftest.$ac_ext
23767 cat >>conftest.$ac_ext <<_ACEOF
23768 /* end confdefs.h.  */
23769
23770 /* Override any gcc2 internal prototype to avoid an error.  */
23771 #ifdef __cplusplus
23772 extern "C"
23773 #endif
23774 /* We use char because int might match the return type of a gcc2
23775    builtin and then its argument prototype would still apply.  */
23776 char remove ();
23777 int
23778 main ()
23779 {
23780 remove ();
23781   ;
23782   return 0;
23783 }
23784 _ACEOF
23785 rm -f conftest.$ac_objext conftest$ac_exeext
23786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23787   (eval $ac_link) 2>&5
23788   ac_status=$?
23789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790   (exit $ac_status); } &&
23791          { ac_try='test -s conftest$ac_exeext'
23792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23793   (eval $ac_try) 2>&5
23794   ac_status=$?
23795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23796   (exit $ac_status); }; }; then
23797   ac_cv_lib_posix_remove=yes
23798 else
23799   echo "$as_me: failed program was:" >&5
23800 sed 's/^/| /' conftest.$ac_ext >&5
23801
23802 ac_cv_lib_posix_remove=no
23803 fi
23804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23805 LIBS=$ac_check_lib_save_LIBS
23806 fi
23807 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23808 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23809 if test $ac_cv_lib_posix_remove = yes; then
23810   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
23811 fi
23812
23813     fi
23814
23815     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
23816     echo "$as_me:$LINENO: checking for shmat" >&5
23817 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23818 if test "${ac_cv_func_shmat+set}" = set; then
23819   echo $ECHO_N "(cached) $ECHO_C" >&6
23820 else
23821   cat >conftest.$ac_ext <<_ACEOF
23822 #line $LINENO "configure"
23823 /* confdefs.h.  */
23824 _ACEOF
23825 cat confdefs.h >>conftest.$ac_ext
23826 cat >>conftest.$ac_ext <<_ACEOF
23827 /* end confdefs.h.  */
23828 /* System header to define __stub macros and hopefully few prototypes,
23829     which can conflict with char shmat (); below.
23830     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23831     <limits.h> exists even on freestanding compilers.  */
23832 #ifdef __STDC__
23833 # include <limits.h>
23834 #else
23835 # include <assert.h>
23836 #endif
23837 /* Override any gcc2 internal prototype to avoid an error.  */
23838 #ifdef __cplusplus
23839 extern "C"
23840 {
23841 #endif
23842 /* We use char because int might match the return type of a gcc2
23843    builtin and then its argument prototype would still apply.  */
23844 char shmat ();
23845 /* The GNU C library defines this for functions which it implements
23846     to always fail with ENOSYS.  Some functions are actually named
23847     something starting with __ and the normal name is an alias.  */
23848 #if defined (__stub_shmat) || defined (__stub___shmat)
23849 choke me
23850 #else
23851 char (*f) () = shmat;
23852 #endif
23853 #ifdef __cplusplus
23854 }
23855 #endif
23856
23857 int
23858 main ()
23859 {
23860 return f != shmat;
23861   ;
23862   return 0;
23863 }
23864 _ACEOF
23865 rm -f conftest.$ac_objext conftest$ac_exeext
23866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23867   (eval $ac_link) 2>&5
23868   ac_status=$?
23869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23870   (exit $ac_status); } &&
23871          { ac_try='test -s conftest$ac_exeext'
23872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23873   (eval $ac_try) 2>&5
23874   ac_status=$?
23875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23876   (exit $ac_status); }; }; then
23877   ac_cv_func_shmat=yes
23878 else
23879   echo "$as_me: failed program was:" >&5
23880 sed 's/^/| /' conftest.$ac_ext >&5
23881
23882 ac_cv_func_shmat=no
23883 fi
23884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23885 fi
23886 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23887 echo "${ECHO_T}$ac_cv_func_shmat" >&6
23888
23889     if test $ac_cv_func_shmat = no; then
23890       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23891 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23892 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23893   echo $ECHO_N "(cached) $ECHO_C" >&6
23894 else
23895   ac_check_lib_save_LIBS=$LIBS
23896 LIBS="-lipc  $LIBS"
23897 cat >conftest.$ac_ext <<_ACEOF
23898 #line $LINENO "configure"
23899 /* confdefs.h.  */
23900 _ACEOF
23901 cat confdefs.h >>conftest.$ac_ext
23902 cat >>conftest.$ac_ext <<_ACEOF
23903 /* end confdefs.h.  */
23904
23905 /* Override any gcc2 internal prototype to avoid an error.  */
23906 #ifdef __cplusplus
23907 extern "C"
23908 #endif
23909 /* We use char because int might match the return type of a gcc2
23910    builtin and then its argument prototype would still apply.  */
23911 char shmat ();
23912 int
23913 main ()
23914 {
23915 shmat ();
23916   ;
23917   return 0;
23918 }
23919 _ACEOF
23920 rm -f conftest.$ac_objext conftest$ac_exeext
23921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23922   (eval $ac_link) 2>&5
23923   ac_status=$?
23924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23925   (exit $ac_status); } &&
23926          { ac_try='test -s conftest$ac_exeext'
23927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23928   (eval $ac_try) 2>&5
23929   ac_status=$?
23930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23931   (exit $ac_status); }; }; then
23932   ac_cv_lib_ipc_shmat=yes
23933 else
23934   echo "$as_me: failed program was:" >&5
23935 sed 's/^/| /' conftest.$ac_ext >&5
23936
23937 ac_cv_lib_ipc_shmat=no
23938 fi
23939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23940 LIBS=$ac_check_lib_save_LIBS
23941 fi
23942 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23943 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23944 if test $ac_cv_lib_ipc_shmat = yes; then
23945   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
23946 fi
23947
23948     fi
23949   fi
23950
23951   # Check for libraries that X11R6 Xt/Xaw programs need.
23952   ac_save_LDFLAGS=$LDFLAGS
23953   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23954   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23955   # check for ICE first), but we must link in the order -lSM -lICE or
23956   # we get undefined symbols.  So assume we have SM if we have ICE.
23957   # These have to be linked with before -lX11, unlike the other
23958   # libraries we check for below, so use a different variable.
23959   # John Interrante, Karl Berry
23960   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23961 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23962 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23963   echo $ECHO_N "(cached) $ECHO_C" >&6
23964 else
23965   ac_check_lib_save_LIBS=$LIBS
23966 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
23967 cat >conftest.$ac_ext <<_ACEOF
23968 #line $LINENO "configure"
23969 /* confdefs.h.  */
23970 _ACEOF
23971 cat confdefs.h >>conftest.$ac_ext
23972 cat >>conftest.$ac_ext <<_ACEOF
23973 /* end confdefs.h.  */
23974
23975 /* Override any gcc2 internal prototype to avoid an error.  */
23976 #ifdef __cplusplus
23977 extern "C"
23978 #endif
23979 /* We use char because int might match the return type of a gcc2
23980    builtin and then its argument prototype would still apply.  */
23981 char IceConnectionNumber ();
23982 int
23983 main ()
23984 {
23985 IceConnectionNumber ();
23986   ;
23987   return 0;
23988 }
23989 _ACEOF
23990 rm -f conftest.$ac_objext conftest$ac_exeext
23991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23992   (eval $ac_link) 2>&5
23993   ac_status=$?
23994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995   (exit $ac_status); } &&
23996          { ac_try='test -s conftest$ac_exeext'
23997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23998   (eval $ac_try) 2>&5
23999   ac_status=$?
24000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24001   (exit $ac_status); }; }; then
24002   ac_cv_lib_ICE_IceConnectionNumber=yes
24003 else
24004   echo "$as_me: failed program was:" >&5
24005 sed 's/^/| /' conftest.$ac_ext >&5
24006
24007 ac_cv_lib_ICE_IceConnectionNumber=no
24008 fi
24009 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24010 LIBS=$ac_check_lib_save_LIBS
24011 fi
24012 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24013 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
24014 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
24015   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24016 fi
24017
24018   LDFLAGS=$ac_save_LDFLAGS
24019
24020 fi
24021
24022
24023         if test "$no_x" = "yes"; then
24024           { { echo "$as_me:$LINENO: error: X11 not found" >&5
24025 echo "$as_me: error: X11 not found" >&2;}
24026    { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
24027         fi
24028
24029                         GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
24030         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
24031         AFMINSTALL=afminstall
24032         COMPILED_X_PROGRAM=0
24033
24034         echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
24035 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
24036
24037 ac_find_includes=
24038 for ac_dir in $SEARCH_INCLUDE /usr/include;
24039   do
24040     if test -f "$ac_dir/Xm/Xm.h"; then
24041       ac_find_includes=$ac_dir
24042       break
24043     fi
24044   done
24045
24046         if test "$ac_find_includes" != "" ; then
24047             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
24048 echo "${ECHO_T}found in $ac_find_includes" >&6
24049
24050     if test "x$ac_find_includes" = "x/usr/include"; then
24051     ac_path_to_include=""
24052   else
24053     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
24054     result=$?
24055     if test $result = 0; then
24056       ac_path_to_include=""
24057     else
24058       ac_path_to_include=" -I$ac_find_includes"
24059     fi
24060   fi
24061
24062             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
24063         else
24064             cat >conftest.$ac_ext <<_ACEOF
24065 #line $LINENO "configure"
24066 /* confdefs.h.  */
24067 _ACEOF
24068 cat confdefs.h >>conftest.$ac_ext
24069 cat >>conftest.$ac_ext <<_ACEOF
24070 /* end confdefs.h.  */
24071
24072                     #include <Xm/Xm.h>
24073
24074 int
24075 main ()
24076 {
24077
24078                     int version;
24079                     version = xmUseVersion;
24080
24081   ;
24082   return 0;
24083 }
24084 _ACEOF
24085 rm -f conftest.$ac_objext
24086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24087   (eval $ac_compile) 2>&5
24088   ac_status=$?
24089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24090   (exit $ac_status); } &&
24091          { ac_try='test -s conftest.$ac_objext'
24092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24093   (eval $ac_try) 2>&5
24094   ac_status=$?
24095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24096   (exit $ac_status); }; }; then
24097
24098                     echo "$as_me:$LINENO: result: found in default search path" >&5
24099 echo "${ECHO_T}found in default search path" >&6
24100                     COMPILED_X_PROGRAM=1
24101
24102 else
24103   echo "$as_me: failed program was:" >&5
24104 sed 's/^/| /' conftest.$ac_ext >&5
24105
24106
24107                     echo "$as_me:$LINENO: result: no" >&5
24108 echo "${ECHO_T}no" >&6
24109                     { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
24110 echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
24111    { (exit 1); exit 1; }; }
24112
24113
24114 fi
24115 rm -f conftest.$ac_objext conftest.$ac_ext
24116         fi
24117
24118         if test "$COMPILED_X_PROGRAM" = 0; then
24119             echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
24120 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
24121
24122 ac_find_libraries=
24123 for ac_dir in $SEARCH_LIB /usr/lib;
24124   do
24125     for ac_extension in a so sl dylib; do
24126       if test -f "$ac_dir/libXm.$ac_extension"; then
24127         ac_find_libraries=$ac_dir
24128         break 2
24129       fi
24130     done
24131   done
24132
24133             if test "$ac_find_libraries" != "" ; then
24134                 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24135 echo "${ECHO_T}found at $ac_find_libraries" >&6
24136
24137
24138   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24139   result=$?
24140   if test $result = 0; then
24141     ac_path_to_link=""
24142   else
24143     ac_path_to_link=" -L$ac_find_libraries"
24144   fi
24145
24146                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
24147             else
24148                                                                 save_CFLAGS=$CFLAGS
24149                 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24150
24151                 cat >conftest.$ac_ext <<_ACEOF
24152 #line $LINENO "configure"
24153 /* confdefs.h.  */
24154 _ACEOF
24155 cat confdefs.h >>conftest.$ac_ext
24156 cat >>conftest.$ac_ext <<_ACEOF
24157 /* end confdefs.h.  */
24158
24159                         #include <Xm/Xm.h>
24160
24161 int
24162 main ()
24163 {
24164
24165                         int version;
24166                         version = xmUseVersion;
24167
24168   ;
24169   return 0;
24170 }
24171 _ACEOF
24172 rm -f conftest.$ac_objext
24173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24174   (eval $ac_compile) 2>&5
24175   ac_status=$?
24176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24177   (exit $ac_status); } &&
24178          { ac_try='test -s conftest.$ac_objext'
24179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24180   (eval $ac_try) 2>&5
24181   ac_status=$?
24182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24183   (exit $ac_status); }; }; then
24184
24185                         echo "$as_me:$LINENO: result: found in default search path" >&5
24186 echo "${ECHO_T}found in default search path" >&6
24187                         COMPILED_X_PROGRAM=1
24188
24189 else
24190   echo "$as_me: failed program was:" >&5
24191 sed 's/^/| /' conftest.$ac_ext >&5
24192
24193
24194                         echo "$as_me:$LINENO: result: no" >&5
24195 echo "${ECHO_T}no" >&6
24196                         { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
24197 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
24198    { (exit 1); exit 1; }; }
24199
24200
24201 fi
24202 rm -f conftest.$ac_objext conftest.$ac_ext
24203
24204                 CFLAGS=$save_CFLAGS
24205             fi
24206         fi
24207
24208         xpm_link=
24209         echo "$as_me:$LINENO: checking for Xpm library" >&5
24210 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
24211
24212 ac_find_libraries=
24213 for ac_dir in $SEARCH_LIB /usr/lib;
24214   do
24215     for ac_extension in a so sl dylib; do
24216       if test -f "$ac_dir/libXpm.$ac_extension"; then
24217         ac_find_libraries=$ac_dir
24218         break 2
24219       fi
24220     done
24221   done
24222
24223         if test "$ac_find_libraries" != "" ; then
24224
24225   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24226   result=$?
24227   if test $result = 0; then
24228     ac_path_to_link=""
24229   else
24230     ac_path_to_link=" -L$ac_find_libraries"
24231   fi
24232
24233             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
24234
24235             xpm_link=" -lXpm"
24236             cat >>confdefs.h <<\_ACEOF
24237 #define wxHAVE_LIB_XPM 1
24238 _ACEOF
24239
24240             echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24241 echo "${ECHO_T}found at $ac_find_libraries" >&6
24242         else
24243             save_CFLAGS=$CFLAGS
24244             CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24245
24246             cat >conftest.$ac_ext <<_ACEOF
24247 #line $LINENO "configure"
24248 /* confdefs.h.  */
24249 _ACEOF
24250 cat confdefs.h >>conftest.$ac_ext
24251 cat >>conftest.$ac_ext <<_ACEOF
24252 /* end confdefs.h.  */
24253
24254                     #include <X11/xpm.h>
24255
24256 int
24257 main ()
24258 {
24259
24260                     int version;
24261                     version = XpmLibraryVersion();
24262
24263   ;
24264   return 0;
24265 }
24266 _ACEOF
24267 rm -f conftest.$ac_objext
24268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24269   (eval $ac_compile) 2>&5
24270   ac_status=$?
24271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24272   (exit $ac_status); } &&
24273          { ac_try='test -s conftest.$ac_objext'
24274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24275   (eval $ac_try) 2>&5
24276   ac_status=$?
24277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24278   (exit $ac_status); }; }; then
24279
24280                     xpm_link=" -lXpm"
24281                     cat >>confdefs.h <<\_ACEOF
24282 #define wxHAVE_LIB_XPM 1
24283 _ACEOF
24284
24285                     echo "$as_me:$LINENO: result: found in default search path" >&5
24286 echo "${ECHO_T}found in default search path" >&6
24287                     COMPILED_X_PROGRAM=0
24288
24289 else
24290   echo "$as_me: failed program was:" >&5
24291 sed 's/^/| /' conftest.$ac_ext >&5
24292
24293
24294                     echo "$as_me:$LINENO: result: no" >&5
24295 echo "${ECHO_T}no" >&6
24296                     { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5
24297 echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;}
24298
24299
24300 fi
24301 rm -f conftest.$ac_objext conftest.$ac_ext
24302
24303             CFLAGS=$save_CFLAGS
24304         fi
24305
24306         echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
24307 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
24308         libp_link=""
24309         libsm_ice_link=""
24310         libs_found=0
24311         for libp in "" " -lXp"; do
24312             if test "$libs_found" = "0"; then
24313                 for libsm_ice in " -lSM -lICE"; do
24314                     if test "$libs_found" = "0"; then
24315                         save_LIBS="$LIBS"
24316                         LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
24317                         save_CFLAGS=$CFLAGS
24318                         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24319
24320                         cat >conftest.$ac_ext <<_ACEOF
24321 #line $LINENO "configure"
24322 /* confdefs.h.  */
24323 _ACEOF
24324 cat confdefs.h >>conftest.$ac_ext
24325 cat >>conftest.$ac_ext <<_ACEOF
24326 /* end confdefs.h.  */
24327
24328                                 #include <Xm/Xm.h>
24329                                 #include <Xm/List.h>
24330
24331 int
24332 main ()
24333 {
24334
24335                                 XmString string = NULL;
24336                                 Widget w = NULL;
24337                                 int position = 0;
24338                                 XmListAddItem(w, string, position);
24339
24340   ;
24341   return 0;
24342 }
24343 _ACEOF
24344 rm -f conftest.$ac_objext conftest$ac_exeext
24345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24346   (eval $ac_link) 2>&5
24347   ac_status=$?
24348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24349   (exit $ac_status); } &&
24350          { ac_try='test -s conftest$ac_exeext'
24351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24352   (eval $ac_try) 2>&5
24353   ac_status=$?
24354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24355   (exit $ac_status); }; }; then
24356
24357                                 libp_link="$libp"
24358                                 libsm_ice_link="$libsm_ice"
24359                                 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
24360 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
24361                                 libs_found=1
24362
24363 else
24364   echo "$as_me: failed program was:" >&5
24365 sed 's/^/| /' conftest.$ac_ext >&5
24366
24367
24368
24369 fi
24370 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24371
24372                         LIBS="$save_LIBS"
24373                         CFLAGS=$save_CFLAGS
24374                     fi
24375                 done
24376             fi
24377         done
24378
24379         if test "$libs_found" = "0"; then
24380             echo "$as_me:$LINENO: result: can't find the right libraries" >&5
24381 echo "${ECHO_T}can't find the right libraries" >&6
24382             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
24383 echo "$as_me: error: can't link a simple motif program" >&2;}
24384    { (exit 1); exit 1; }; }
24385         fi
24386
24387         save_CFLAGS=$CFLAGS
24388         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24389         echo "$as_me:$LINENO: checking for Motif 2" >&5
24390 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
24391         cat >conftest.$ac_ext <<_ACEOF
24392 #line $LINENO "configure"
24393 /* confdefs.h.  */
24394 _ACEOF
24395 cat confdefs.h >>conftest.$ac_ext
24396 cat >>conftest.$ac_ext <<_ACEOF
24397 /* end confdefs.h.  */
24398
24399                         #include <Xm/Xm.h>
24400
24401 int
24402 main ()
24403 {
24404
24405                         #if XmVersion < 2000
24406                         #error "Not Motif 2"
24407                         #endif
24408
24409   ;
24410   return 0;
24411 }
24412 _ACEOF
24413 rm -f conftest.$ac_objext
24414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24415   (eval $ac_compile) 2>&5
24416   ac_status=$?
24417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24418   (exit $ac_status); } &&
24419          { ac_try='test -s conftest.$ac_objext'
24420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24421   (eval $ac_try) 2>&5
24422   ac_status=$?
24423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424   (exit $ac_status); }; }; then
24425
24426                         cat >>confdefs.h <<\_ACEOF
24427 #define __WXMOTIF20__ 1
24428 _ACEOF
24429
24430                         echo "$as_me:$LINENO: result: found" >&5
24431 echo "${ECHO_T}found" >&6
24432
24433 else
24434   echo "$as_me: failed program was:" >&5
24435 sed 's/^/| /' conftest.$ac_ext >&5
24436
24437
24438                         cat >>confdefs.h <<\_ACEOF
24439 #define __WXMOTIF20__ 0
24440 _ACEOF
24441
24442                         echo "$as_me:$LINENO: result: not found" >&5
24443 echo "${ECHO_T}not found" >&6
24444
24445 fi
24446 rm -f conftest.$ac_objext conftest.$ac_ext
24447         CFLAGS=$save_CFLAGS
24448
24449         GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
24450         TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
24451         TOOLKIT=MOTIF
24452         GUIDIST=MOTIF_DIST
24453         wxHAVE_XEXT_LIB=1
24454     fi
24455
24456     if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 &&
24457        test "$wxHAVE_XEXT_LIB" = 1; then
24458         save_CFLAGS="$CFLAGS"
24459         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24460
24461         echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
24462 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
24463         cat >conftest.$ac_ext <<_ACEOF
24464 #line $LINENO "configure"
24465 /* confdefs.h.  */
24466 _ACEOF
24467 cat confdefs.h >>conftest.$ac_ext
24468 cat >>conftest.$ac_ext <<_ACEOF
24469 /* end confdefs.h.  */
24470
24471                         #include <X11/Xlib.h>
24472                         #include <X11/extensions/shape.h>
24473
24474 int
24475 main ()
24476 {
24477
24478                         int dummy1, dummy2;
24479                         XShapeQueryExtension((Display*)NULL,
24480                                              (int*)NULL, (int*)NULL);
24481
24482   ;
24483   return 0;
24484 }
24485 _ACEOF
24486 rm -f conftest.$ac_objext
24487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24488   (eval $ac_compile) 2>&5
24489   ac_status=$?
24490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24491   (exit $ac_status); } &&
24492          { ac_try='test -s conftest.$ac_objext'
24493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24494   (eval $ac_try) 2>&5
24495   ac_status=$?
24496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24497   (exit $ac_status); }; }; then
24498
24499                         cat >>confdefs.h <<\_ACEOF
24500 #define HAVE_XSHAPE 1
24501 _ACEOF
24502
24503                         echo "$as_me:$LINENO: result: found" >&5
24504 echo "${ECHO_T}found" >&6
24505
24506 else
24507   echo "$as_me: failed program was:" >&5
24508 sed 's/^/| /' conftest.$ac_ext >&5
24509
24510
24511                         echo "$as_me:$LINENO: result: not found" >&5
24512 echo "${ECHO_T}not found" >&6
24513
24514 fi
24515 rm -f conftest.$ac_objext conftest.$ac_ext
24516         CFLAGS="$save_CFLAGS"
24517     fi
24518
24519     if test "$wxUSE_MAC" = 1; then
24520         CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
24521
24522         TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
24523         TOOLKIT=MAC
24524                 GUIDIST=MACX_DIST
24525                         WXBASEPORT="_carbon"
24526     fi
24527
24528     if test "$wxUSE_COCOA" = 1; then
24529         TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
24530         TOOLKIT=COCOA
24531         GUIDIST=COCOA_DIST
24532     fi
24533
24534     if test "$wxUSE_PM" = 1; then
24535         TOOLKIT=PM
24536         GUIDIST=GTK_DIST
24537         { echo "$as_me:$LINENO: WARNING: OS/2 threads are not yet supported... disabled" >&5
24538 echo "$as_me: WARNING: OS/2 threads are not yet supported... disabled" >&2;}
24539         wxUSE_THREADS="no"
24540     fi
24541
24542         if test "$TOOLKIT" = "PM" ; then
24543         TOOLKIT_DIR="os2"
24544     else
24545         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
24546     fi
24547
24548         PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
24549
24550     if test "$wxUSE_UNIVERSAL" = "yes"; then
24551         ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
24552
24553                                 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
24554         ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
24555
24556         PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
24557         if test "$wxUSE_X11" = 1; then
24558             TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
24559         else
24560             TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
24561         fi
24562         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
24563         WIDGET_SET=univ
24564     else
24565         ALL_OBJECTS="\$(GUIOBJS)"
24566         ALL_SOURCES="\$(ALL_SOURCES)"
24567         ALL_HEADERS="\$(ALL_HEADERS)"
24568     fi
24569
24570     ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
24571
24572     if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
24573         ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
24574     fi
24575
24576     if test "$wxUSE_HTML" = "yes"; then
24577         ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
24578     fi
24579
24580     if test "$wxUSE_LIBJPEG" = "builtin" ; then
24581         ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
24582     fi
24583     if test "$wxUSE_LIBTIFF" = "builtin" ; then
24584         ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
24585     fi
24586     if test "$wxUSE_LIBPNG" = "builtin" ; then
24587         ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
24588     fi
24589
24590         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
24591     DISTDIR="wx\$(TOOLKIT)"
24592 else
24593     USE_GUI=0
24594
24595             TOOLKIT_DIR="base"
24596
24597         if test "$USE_WIN32" = 1 ; then
24598         ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
24599         TOOLKIT_VPATH="\${top_srcdir}/src/msw"
24600
24601                         TOOLKIT="MSW"
24602     else
24603         ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
24604         TOOLKIT_VPATH="\${top_srcdir}/src/unix"
24605     fi
24606
24607     ALL_SOURCES="\$(ALL_SOURCES)"
24608     ALL_HEADERS="\$(ALL_HEADERS)"
24609
24610     PORT_FILES="\${top_srcdir}/src/files.lst"
24611
24612         GUIDIST="BASE_DIST"
24613     DISTDIR="wxBase"
24614 fi
24615
24616
24617
24618
24619 IODBC_C_SRC=""
24620
24621
24622 if test "$TOOLKIT" != "MSW" ; then
24623
24624     if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
24625
24626         if test "${ac_cv_header_sql_h+set}" = set; then
24627   echo "$as_me:$LINENO: checking for sql.h" >&5
24628 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24629 if test "${ac_cv_header_sql_h+set}" = set; then
24630   echo $ECHO_N "(cached) $ECHO_C" >&6
24631 fi
24632 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24633 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24634 else
24635   # Is the header compilable?
24636 echo "$as_me:$LINENO: checking sql.h usability" >&5
24637 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
24638 cat >conftest.$ac_ext <<_ACEOF
24639 #line $LINENO "configure"
24640 /* confdefs.h.  */
24641 _ACEOF
24642 cat confdefs.h >>conftest.$ac_ext
24643 cat >>conftest.$ac_ext <<_ACEOF
24644 /* end confdefs.h.  */
24645 $ac_includes_default
24646 #include <sql.h>
24647 _ACEOF
24648 rm -f conftest.$ac_objext
24649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24650   (eval $ac_compile) 2>&5
24651   ac_status=$?
24652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24653   (exit $ac_status); } &&
24654          { ac_try='test -s conftest.$ac_objext'
24655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24656   (eval $ac_try) 2>&5
24657   ac_status=$?
24658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24659   (exit $ac_status); }; }; then
24660   ac_header_compiler=yes
24661 else
24662   echo "$as_me: failed program was:" >&5
24663 sed 's/^/| /' conftest.$ac_ext >&5
24664
24665 ac_header_compiler=no
24666 fi
24667 rm -f conftest.$ac_objext conftest.$ac_ext
24668 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24669 echo "${ECHO_T}$ac_header_compiler" >&6
24670
24671 # Is the header present?
24672 echo "$as_me:$LINENO: checking sql.h presence" >&5
24673 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
24674 cat >conftest.$ac_ext <<_ACEOF
24675 #line $LINENO "configure"
24676 /* confdefs.h.  */
24677 _ACEOF
24678 cat confdefs.h >>conftest.$ac_ext
24679 cat >>conftest.$ac_ext <<_ACEOF
24680 /* end confdefs.h.  */
24681 #include <sql.h>
24682 _ACEOF
24683 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24684   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24685   ac_status=$?
24686   grep -v '^ *+' conftest.er1 >conftest.err
24687   rm -f conftest.er1
24688   cat conftest.err >&5
24689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24690   (exit $ac_status); } >/dev/null; then
24691   if test -s conftest.err; then
24692     ac_cpp_err=$ac_c_preproc_warn_flag
24693   else
24694     ac_cpp_err=
24695   fi
24696 else
24697   ac_cpp_err=yes
24698 fi
24699 if test -z "$ac_cpp_err"; then
24700   ac_header_preproc=yes
24701 else
24702   echo "$as_me: failed program was:" >&5
24703 sed 's/^/| /' conftest.$ac_ext >&5
24704
24705   ac_header_preproc=no
24706 fi
24707 rm -f conftest.err conftest.$ac_ext
24708 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24709 echo "${ECHO_T}$ac_header_preproc" >&6
24710
24711 # So?  What about this header?
24712 case $ac_header_compiler:$ac_header_preproc in
24713   yes:no )
24714     { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
24715 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24716     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24717 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24718     (
24719       cat <<\_ASBOX
24720 ## ------------------------------------ ##
24721 ## Report this to bug-autoconf@gnu.org. ##
24722 ## ------------------------------------ ##
24723 _ASBOX
24724     ) |
24725       sed "s/^/$as_me: WARNING:     /" >&2
24726     ;;
24727   no:yes )
24728     { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
24729 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
24730     { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
24731 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
24732     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
24733 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
24734     (
24735       cat <<\_ASBOX
24736 ## ------------------------------------ ##
24737 ## Report this to bug-autoconf@gnu.org. ##
24738 ## ------------------------------------ ##
24739 _ASBOX
24740     ) |
24741       sed "s/^/$as_me: WARNING:     /" >&2
24742     ;;
24743 esac
24744 echo "$as_me:$LINENO: checking for sql.h" >&5
24745 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
24746 if test "${ac_cv_header_sql_h+set}" = set; then
24747   echo $ECHO_N "(cached) $ECHO_C" >&6
24748 else
24749   ac_cv_header_sql_h=$ac_header_preproc
24750 fi
24751 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
24752 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
24753
24754 fi
24755 if test $ac_cv_header_sql_h = yes; then
24756   found_sql_h=1
24757 fi
24758
24759
24760         if test "x$found_sql_h" = "x1" ; then
24761             echo "$as_me:$LINENO: checking for iodbc in -lSQLAllocEnv" >&5
24762 echo $ECHO_N "checking for iodbc in -lSQLAllocEnv... $ECHO_C" >&6
24763 if test "${ac_cv_lib_SQLAllocEnv_iodbc+set}" = set; then
24764   echo $ECHO_N "(cached) $ECHO_C" >&6
24765 else
24766   ac_check_lib_save_LIBS=$LIBS
24767 LIBS="-lSQLAllocEnv  $LIBS"
24768 cat >conftest.$ac_ext <<_ACEOF
24769 #line $LINENO "configure"
24770 /* confdefs.h.  */
24771 _ACEOF
24772 cat confdefs.h >>conftest.$ac_ext
24773 cat >>conftest.$ac_ext <<_ACEOF
24774 /* end confdefs.h.  */
24775
24776 /* Override any gcc2 internal prototype to avoid an error.  */
24777 #ifdef __cplusplus
24778 extern "C"
24779 #endif
24780 /* We use char because int might match the return type of a gcc2
24781    builtin and then its argument prototype would still apply.  */
24782 char iodbc ();
24783 int
24784 main ()
24785 {
24786 iodbc ();
24787   ;
24788   return 0;
24789 }
24790 _ACEOF
24791 rm -f conftest.$ac_objext conftest$ac_exeext
24792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24793   (eval $ac_link) 2>&5
24794   ac_status=$?
24795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24796   (exit $ac_status); } &&
24797          { ac_try='test -s conftest$ac_exeext'
24798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24799   (eval $ac_try) 2>&5
24800   ac_status=$?
24801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24802   (exit $ac_status); }; }; then
24803   ac_cv_lib_SQLAllocEnv_iodbc=yes
24804 else
24805   echo "$as_me: failed program was:" >&5
24806 sed 's/^/| /' conftest.$ac_ext >&5
24807
24808 ac_cv_lib_SQLAllocEnv_iodbc=no
24809 fi
24810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24811 LIBS=$ac_check_lib_save_LIBS
24812 fi
24813 echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_iodbc" >&5
24814 echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_iodbc" >&6
24815 if test $ac_cv_lib_SQLAllocEnv_iodbc = yes; then
24816   ODBC_LINK=" -liodbc"
24817 else
24818
24819                 echo "$as_me:$LINENO: checking for unixodbc in -lSQLAllocEnv" >&5
24820 echo $ECHO_N "checking for unixodbc in -lSQLAllocEnv... $ECHO_C" >&6
24821 if test "${ac_cv_lib_SQLAllocEnv_unixodbc+set}" = set; then
24822   echo $ECHO_N "(cached) $ECHO_C" >&6
24823 else
24824   ac_check_lib_save_LIBS=$LIBS
24825 LIBS="-lSQLAllocEnv  $LIBS"
24826 cat >conftest.$ac_ext <<_ACEOF
24827 #line $LINENO "configure"
24828 /* confdefs.h.  */
24829 _ACEOF
24830 cat confdefs.h >>conftest.$ac_ext
24831 cat >>conftest.$ac_ext <<_ACEOF
24832 /* end confdefs.h.  */
24833
24834 /* Override any gcc2 internal prototype to avoid an error.  */
24835 #ifdef __cplusplus
24836 extern "C"
24837 #endif
24838 /* We use char because int might match the return type of a gcc2
24839    builtin and then its argument prototype would still apply.  */
24840 char unixodbc ();
24841 int
24842 main ()
24843 {
24844 unixodbc ();
24845   ;
24846   return 0;
24847 }
24848 _ACEOF
24849 rm -f conftest.$ac_objext conftest$ac_exeext
24850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24851   (eval $ac_link) 2>&5
24852   ac_status=$?
24853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854   (exit $ac_status); } &&
24855          { ac_try='test -s conftest$ac_exeext'
24856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24857   (eval $ac_try) 2>&5
24858   ac_status=$?
24859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860   (exit $ac_status); }; }; then
24861   ac_cv_lib_SQLAllocEnv_unixodbc=yes
24862 else
24863   echo "$as_me: failed program was:" >&5
24864 sed 's/^/| /' conftest.$ac_ext >&5
24865
24866 ac_cv_lib_SQLAllocEnv_unixodbc=no
24867 fi
24868 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24869 LIBS=$ac_check_lib_save_LIBS
24870 fi
24871 echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_unixodbc" >&5
24872 echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_unixodbc" >&6
24873 if test $ac_cv_lib_SQLAllocEnv_unixodbc = yes; then
24874   ODBC_LINK=" -lunixodbc"
24875 else
24876
24877                     echo "$as_me:$LINENO: checking for odbc in -lSQLAllocEnv" >&5
24878 echo $ECHO_N "checking for odbc in -lSQLAllocEnv... $ECHO_C" >&6
24879 if test "${ac_cv_lib_SQLAllocEnv_odbc+set}" = set; then
24880   echo $ECHO_N "(cached) $ECHO_C" >&6
24881 else
24882   ac_check_lib_save_LIBS=$LIBS
24883 LIBS="-lSQLAllocEnv  $LIBS"
24884 cat >conftest.$ac_ext <<_ACEOF
24885 #line $LINENO "configure"
24886 /* confdefs.h.  */
24887 _ACEOF
24888 cat confdefs.h >>conftest.$ac_ext
24889 cat >>conftest.$ac_ext <<_ACEOF
24890 /* end confdefs.h.  */
24891
24892 /* Override any gcc2 internal prototype to avoid an error.  */
24893 #ifdef __cplusplus
24894 extern "C"
24895 #endif
24896 /* We use char because int might match the return type of a gcc2
24897    builtin and then its argument prototype would still apply.  */
24898 char odbc ();
24899 int
24900 main ()
24901 {
24902 odbc ();
24903   ;
24904   return 0;
24905 }
24906 _ACEOF
24907 rm -f conftest.$ac_objext conftest$ac_exeext
24908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24909   (eval $ac_link) 2>&5
24910   ac_status=$?
24911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24912   (exit $ac_status); } &&
24913          { ac_try='test -s conftest$ac_exeext'
24914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24915   (eval $ac_try) 2>&5
24916   ac_status=$?
24917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24918   (exit $ac_status); }; }; then
24919   ac_cv_lib_SQLAllocEnv_odbc=yes
24920 else
24921   echo "$as_me: failed program was:" >&5
24922 sed 's/^/| /' conftest.$ac_ext >&5
24923
24924 ac_cv_lib_SQLAllocEnv_odbc=no
24925 fi
24926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24927 LIBS=$ac_check_lib_save_LIBS
24928 fi
24929 echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_odbc" >&5
24930 echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_odbc" >&6
24931 if test $ac_cv_lib_SQLAllocEnv_odbc = yes; then
24932   ODBC_LINK=" -lodbc"
24933 fi
24934
24935
24936 fi
24937
24938
24939 fi
24940
24941         fi
24942         if test "x$ODBC_LINK" = "x" ; then
24943             if test "$wxUSE_ODBC" = "sys" ; then
24944                 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
24945 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
24946    { (exit 1); exit 1; }; }
24947             else
24948                 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
24949 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
24950                 wxUSE_ODBC=builtin
24951             fi
24952         else
24953                         wxUSE_ODBC=sys
24954         fi
24955     fi
24956     if test "$wxUSE_ODBC" != "no" ; then
24957         cat >>confdefs.h <<\_ACEOF
24958 #define wxUSE_ODBC 1
24959 _ACEOF
24960
24961         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
24962
24963                 WXODBCFLAG="-D_IODBC_"
24964     fi
24965 fi
24966
24967 if test "$wxUSE_REGEX" = "builtin" ; then
24968     ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
24969 fi
24970 if test "$wxUSE_ZLIB" = "builtin" ; then
24971     ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
24972 fi
24973
24974
24975 USE_OPENGL=0
24976 if test "$wxUSE_OPENGL" = "yes"; then
24977     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
24978         OPENGL_LIBS="-framework OpenGL -framework AGL"
24979     elif test "$wxUSE_MSW" = 1; then
24980         OPENGL_LIBS="-lopengl32 -lglu32"
24981     else
24982
24983
24984 ac_find_includes=
24985 for ac_dir in $SEARCH_INCLUDE /usr/include;
24986   do
24987     if test -f "$ac_dir/GL/gl.h"; then
24988       ac_find_includes=$ac_dir
24989       break
24990     fi
24991   done
24992
24993         if test "$ac_find_includes" != "" ; then
24994             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
24995 echo "${ECHO_T}found in $ac_find_includes" >&6
24996
24997     if test "x$ac_find_includes" = "x/usr/include"; then
24998     ac_path_to_include=""
24999   else
25000     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
25001     result=$?
25002     if test $result = 0; then
25003       ac_path_to_include=""
25004     else
25005       ac_path_to_include=" -I$ac_find_includes"
25006     fi
25007   fi
25008
25009             CPPFLAGS="$CPPFLAGS$ac_path_to_include"
25010         fi
25011
25012         if test "${ac_cv_header_GL_gl_h+set}" = set; then
25013   echo "$as_me:$LINENO: checking for GL/gl.h" >&5
25014 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
25015 if test "${ac_cv_header_GL_gl_h+set}" = set; then
25016   echo $ECHO_N "(cached) $ECHO_C" >&6
25017 fi
25018 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
25019 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
25020 else
25021   # Is the header compilable?
25022 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
25023 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
25024 cat >conftest.$ac_ext <<_ACEOF
25025 #line $LINENO "configure"
25026 /* confdefs.h.  */
25027 _ACEOF
25028 cat confdefs.h >>conftest.$ac_ext
25029 cat >>conftest.$ac_ext <<_ACEOF
25030 /* end confdefs.h.  */
25031 $ac_includes_default
25032 #include <GL/gl.h>
25033 _ACEOF
25034 rm -f conftest.$ac_objext
25035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25036   (eval $ac_compile) 2>&5
25037   ac_status=$?
25038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25039   (exit $ac_status); } &&
25040          { ac_try='test -s conftest.$ac_objext'
25041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25042   (eval $ac_try) 2>&5
25043   ac_status=$?
25044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25045   (exit $ac_status); }; }; then
25046   ac_header_compiler=yes
25047 else
25048   echo "$as_me: failed program was:" >&5
25049 sed 's/^/| /' conftest.$ac_ext >&5
25050
25051 ac_header_compiler=no
25052 fi
25053 rm -f conftest.$ac_objext conftest.$ac_ext
25054 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25055 echo "${ECHO_T}$ac_header_compiler" >&6
25056
25057 # Is the header present?
25058 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
25059 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
25060 cat >conftest.$ac_ext <<_ACEOF
25061 #line $LINENO "configure"
25062 /* confdefs.h.  */
25063 _ACEOF
25064 cat confdefs.h >>conftest.$ac_ext
25065 cat >>conftest.$ac_ext <<_ACEOF
25066 /* end confdefs.h.  */
25067 #include <GL/gl.h>
25068 _ACEOF
25069 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25070   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25071   ac_status=$?
25072   grep -v '^ *+' conftest.er1 >conftest.err
25073   rm -f conftest.er1
25074   cat conftest.err >&5
25075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076   (exit $ac_status); } >/dev/null; then
25077   if test -s conftest.err; then
25078     ac_cpp_err=$ac_c_preproc_warn_flag
25079   else
25080     ac_cpp_err=
25081   fi
25082 else
25083   ac_cpp_err=yes
25084 fi
25085 if test -z "$ac_cpp_err"; then
25086   ac_header_preproc=yes
25087 else
25088   echo "$as_me: failed program was:" >&5
25089 sed 's/^/| /' conftest.$ac_ext >&5
25090
25091   ac_header_preproc=no
25092 fi
25093 rm -f conftest.err conftest.$ac_ext
25094 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25095 echo "${ECHO_T}$ac_header_preproc" >&6
25096
25097 # So?  What about this header?
25098 case $ac_header_compiler:$ac_header_preproc in
25099   yes:no )
25100     { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25101 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25102     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
25103 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
25104     (
25105       cat <<\_ASBOX
25106 ## ------------------------------------ ##
25107 ## Report this to bug-autoconf@gnu.org. ##
25108 ## ------------------------------------ ##
25109 _ASBOX
25110     ) |
25111       sed "s/^/$as_me: WARNING:     /" >&2
25112     ;;
25113   no:yes )
25114     { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
25115 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
25116     { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
25117 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
25118     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
25119 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
25120     (
25121       cat <<\_ASBOX
25122 ## ------------------------------------ ##
25123 ## Report this to bug-autoconf@gnu.org. ##
25124 ## ------------------------------------ ##
25125 _ASBOX
25126     ) |
25127       sed "s/^/$as_me: WARNING:     /" >&2
25128     ;;
25129 esac
25130 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
25131 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
25132 if test "${ac_cv_header_GL_gl_h+set}" = set; then
25133   echo $ECHO_N "(cached) $ECHO_C" >&6
25134 else
25135   ac_cv_header_GL_gl_h=$ac_header_preproc
25136 fi
25137 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
25138 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
25139
25140 fi
25141 if test $ac_cv_header_GL_gl_h = yes; then
25142
25143                 found_gl=0
25144
25145                 echo "$as_me:$LINENO: checking for -lGL" >&5
25146 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
25147
25148 ac_find_libraries=
25149 for ac_dir in $SEARCH_LIB /usr/lib;
25150   do
25151     for ac_extension in a so sl dylib; do
25152       if test -f "$ac_dir/libGL.$ac_extension"; then
25153         ac_find_libraries=$ac_dir
25154         break 2
25155       fi
25156     done
25157   done
25158
25159                 if test "$ac_find_libraries" != "" ; then
25160
25161   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25162   result=$?
25163   if test $result = 0; then
25164     ac_path_to_link=""
25165   else
25166     ac_path_to_link=" -L$ac_find_libraries"
25167   fi
25168
25169                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
25170                         LDFLAGS_GL="$ac_path_to_link"
25171                     fi
25172
25173
25174 ac_find_libraries=
25175 for ac_dir in $SEARCH_LIB /usr/lib;
25176   do
25177     for ac_extension in a so sl dylib; do
25178       if test -f "$ac_dir/libGLU.$ac_extension"; then
25179         ac_find_libraries=$ac_dir
25180         break 2
25181       fi
25182     done
25183   done
25184
25185                     if test "$ac_find_libraries" != "" ; then
25186
25187   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25188   result=$?
25189   if test $result = 0; then
25190     ac_path_to_link=""
25191   else
25192     ac_path_to_link=" -L$ac_find_libraries"
25193   fi
25194
25195                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
25196                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
25197                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
25198                         fi
25199
25200                         found_gl=1
25201                         OPENGL_LIBS="-lGL -lGLU"
25202                         echo "$as_me:$LINENO: result: yes" >&5
25203 echo "${ECHO_T}yes" >&6
25204                     fi
25205                 fi
25206
25207                 if test "$found_gl" != 1; then
25208                     echo "$as_me:$LINENO: result: no" >&5
25209 echo "${ECHO_T}no" >&6
25210                     echo "$as_me:$LINENO: checking for -lMesaGL" >&5
25211 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
25212
25213 ac_find_libraries=
25214 for ac_dir in $SEARCH_LIB /usr/lib;
25215   do
25216     for ac_extension in a so sl dylib; do
25217       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
25218         ac_find_libraries=$ac_dir
25219         break 2
25220       fi
25221     done
25222   done
25223
25224                     if test "$ac_find_libraries" != "" ; then
25225
25226   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25227   result=$?
25228   if test $result = 0; then
25229     ac_path_to_link=""
25230   else
25231     ac_path_to_link=" -L$ac_find_libraries"
25232   fi
25233
25234                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
25235                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
25236                         echo "$as_me:$LINENO: result: yes" >&5
25237 echo "${ECHO_T}yes" >&6
25238                     else
25239                         echo "$as_me:$LINENO: result: no" >&5
25240 echo "${ECHO_T}no" >&6
25241                     fi
25242                 fi
25243
25244 fi
25245
25246
25247
25248         if test "x$OPENGL_LIBS" = "x"; then
25249                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
25250 echo "$as_me: error: OpenGL libraries not available" >&2;}
25251    { (exit 1); exit 1; }; }
25252         fi
25253     fi
25254
25255     if test "$wxUSE_OPENGL" = "yes"; then
25256         USE_OPENGL=1
25257         cat >>confdefs.h <<\_ACEOF
25258 #define wxUSE_OPENGL 1
25259 _ACEOF
25260
25261         cat >>confdefs.h <<\_ACEOF
25262 #define wxUSE_GLCANVAS 1
25263 _ACEOF
25264
25265         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
25266     fi
25267 fi
25268
25269 if test -z "$TOOLKIT_VPATH" ; then
25270     TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
25271 fi
25272
25273 if test -n "$TOOLKIT" ; then
25274     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
25275 fi
25276
25277 UNICODE=0
25278 lib_unicode_suffix=
25279 if test "$wxUSE_UNICODE" = "yes"; then
25280     lib_unicode_suffix=u
25281     UNICODE=1
25282 fi
25283
25284 lib_debug_suffix=
25285 DEBUG_FLAG=0
25286 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
25287     lib_debug_suffix=d
25288     DEBUG_FLAG=1
25289 fi
25290
25291 DEBUG_INFO=0
25292 if test "$wxUSE_DEBUG_INFO" = "yes"; then
25293     DEBUG_INFO=1
25294 fi
25295
25296 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
25297
25298 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
25299 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
25300
25301 if test "$cross_compiling" = "yes"; then
25302     TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
25303     TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
25304     HOST_SUFFIX="-${host_alias}"
25305 fi
25306
25307 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
25308 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
25309 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
25310 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
25311
25312 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
25313 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
25314
25315 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
25316 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
25317 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
25318 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
25319
25320 case "${host}" in
25321     *-*-cygwin* | *-*-mingw32* )
25322         WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
25323         WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
25324         ;;
25325
25326     *-*-darwin* )
25327
25328         WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
25329         WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
25330
25331         WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
25332         WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
25333         WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
25334         WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
25335
25336                         if test "$wxUSE_MAC" = 1; then
25337                                     WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
25338             WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
25339         fi
25340         ;;
25341 esac
25342
25343 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
25344 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
25345
25346 WXCONFIG_LIBS="-l${WX_LIBRARY}"
25347 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
25348
25349 if test "$wxUSE_OPENGL" = "yes"; then
25350     WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
25351     WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
25352 fi
25353
25354
25355
25356 if test "$wxUSE_SHARED" = "yes"; then
25357     case "${host}" in
25358       *-pc-os2_emx | *-pc-os2-emx | \
25359       *-pc-msdosdjgpp )
25360                 wxUSE_SHARED=no
25361         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
25362 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
25363       ;;
25364     esac
25365 fi
25366
25367 SHARED=0
25368 if test "$wxUSE_SHARED" = "yes"; then
25369     SHARED=1
25370
25371
25372   found_versioning=no
25373
25374
25375     if test $found_versioning = no ; then
25376       echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
25377 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
25378 if test "${wx_cv_version_script+set}" = set; then
25379   echo $ECHO_N "(cached) $ECHO_C" >&6
25380 else
25381
25382         echo "VER_1 { *; };" >conftest.sym
25383         echo "int main() { return 0; }" >conftest.cpp
25384
25385         if { ac_try='
25386                 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
25387                 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
25388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25389   (eval $ac_try) 2>&5
25390   ac_status=$?
25391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25392   (exit $ac_status); }; } ; then
25393           if test -s conftest.stderr ; then
25394               wx_cv_version_script=no
25395           else
25396               wx_cv_version_script=yes
25397           fi
25398         else
25399           wx_cv_version_script=no
25400         fi
25401         rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
25402
25403 fi
25404 echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
25405 echo "${ECHO_T}$wx_cv_version_script" >&6
25406       if test $wx_cv_version_script = yes ; then
25407         LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
25408       fi
25409   fi
25410
25411
25412     case "${host}" in
25413       *-*-linux* | *-*-gnu* )
25414         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
25415         ;;
25416
25417       *-*-solaris2* )
25418         if test "$GCC" = yes ; then
25419                                     CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
25420
25421                                     saveLdflags="$LDFLAGS"
25422             LDFLAGS="$saveLdflags -Wl,-rpath,/"
25423             echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
25424 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
25425             cat >conftest.$ac_ext <<_ACEOF
25426 #line $LINENO "configure"
25427 /* confdefs.h.  */
25428 _ACEOF
25429 cat confdefs.h >>conftest.$ac_ext
25430 cat >>conftest.$ac_ext <<_ACEOF
25431 /* end confdefs.h.  */
25432
25433 int
25434 main ()
25435 {
25436
25437   ;
25438   return 0;
25439 }
25440 _ACEOF
25441 rm -f conftest.$ac_objext conftest$ac_exeext
25442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25443   (eval $ac_link) 2>&5
25444   ac_status=$?
25445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25446   (exit $ac_status); } &&
25447          { ac_try='test -s conftest$ac_exeext'
25448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25449   (eval $ac_try) 2>&5
25450   ac_status=$?
25451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25452   (exit $ac_status); }; }; then
25453
25454                     echo "$as_me:$LINENO: result: yes" >&5
25455 echo "${ECHO_T}yes" >&6
25456                     SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
25457
25458 else
25459   echo "$as_me: failed program was:" >&5
25460 sed 's/^/| /' conftest.$ac_ext >&5
25461
25462
25463                     echo "$as_me:$LINENO: result: no" >&5
25464 echo "${ECHO_T}no" >&6
25465                     echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
25466 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
25467                     LDFLAGS="$saveLdflags -Wl,-R,/"
25468                     cat >conftest.$ac_ext <<_ACEOF
25469 #line $LINENO "configure"
25470 /* confdefs.h.  */
25471 _ACEOF
25472 cat confdefs.h >>conftest.$ac_ext
25473 cat >>conftest.$ac_ext <<_ACEOF
25474 /* end confdefs.h.  */
25475
25476 int
25477 main ()
25478 {
25479
25480   ;
25481   return 0;
25482 }
25483 _ACEOF
25484 rm -f conftest.$ac_objext conftest$ac_exeext
25485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25486   (eval $ac_link) 2>&5
25487   ac_status=$?
25488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489   (exit $ac_status); } &&
25490          { ac_try='test -s conftest$ac_exeext'
25491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25492   (eval $ac_try) 2>&5
25493   ac_status=$?
25494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25495   (exit $ac_status); }; }; then
25496
25497                              echo "$as_me:$LINENO: result: yes" >&5
25498 echo "${ECHO_T}yes" >&6
25499                              SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
25500 else
25501   echo "$as_me: failed program was:" >&5
25502 sed 's/^/| /' conftest.$ac_ext >&5
25503
25504
25505                             echo "$as_me:$LINENO: result: no" >&5
25506 echo "${ECHO_T}no" >&6
25507
25508 fi
25509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25510
25511 fi
25512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25513             LDFLAGS="$saveLdflags"
25514         else
25515             SHARED_LD="${CXX} -G -o"
25516             PIC_FLAG="-KPIC"
25517             SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
25518         fi
25519       ;;
25520
25521       powerpc-*-darwin* )
25522         SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
25523         cat <<EOF >change-install-names
25524 #!/bin/sh
25525 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
25526 inst_cmd="install_name_tool "
25527 for i in \${libnames} ; do
25528     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
25529 done
25530 \${inst_cmd} \${3}
25531 EOF
25532         chmod +x change-install-names
25533       ;;
25534
25535     esac
25536
25537         if test "x$WX_TARGET_LIBRARY" = "x"; then
25538         WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
25539         WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
25540     fi
25541
25542         WX_TARGET_LIBRARY_TYPE="so"
25543     INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
25544 fi
25545
25546 if test "$wxUSE_SHARED" = "no"; then
25547
25548         if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
25549                 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25550     fi
25551
25552     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
25553         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
25554     fi
25555
25556     if test "$wxUSE_OPENGL" = "yes"; then
25557         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
25558         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
25559     else
25560         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
25561     fi
25562
25563     WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
25564     WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
25565
25566     WX_TARGET_LIBRARY_TYPE="a"
25567     INSTALL_LIBRARY='$(INSTALL_DATA)'
25568
25569             STATIC_FLAG="yes"
25570 else
25571     STATIC_FLAG="no"
25572 fi
25573
25574 MACRESCOMP="@#"
25575 MACSETFILE="@#"
25576 MACRESWXCONFIG="#"
25577 if test "$wxUSE_MAC" = 1; then
25578         LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
25579     WX_ALL="${WX_ALL} ${LIBWXMACRES}"
25580     WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
25581     # Extract the first word of "Rez", so it can be a program name with args.
25582 set dummy Rez; ac_word=$2
25583 echo "$as_me:$LINENO: checking for $ac_word" >&5
25584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25585 if test "${ac_cv_prog_RESCOMP+set}" = set; then
25586   echo $ECHO_N "(cached) $ECHO_C" >&6
25587 else
25588   if test -n "$RESCOMP"; then
25589   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
25590 else
25591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25592 for as_dir in $PATH
25593 do
25594   IFS=$as_save_IFS
25595   test -z "$as_dir" && as_dir=.
25596   for ac_exec_ext in '' $ac_executable_extensions; do
25597   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25598     ac_cv_prog_RESCOMP="Rez"
25599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25600     break 2
25601   fi
25602 done
25603 done
25604
25605   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
25606 fi
25607 fi
25608 RESCOMP=$ac_cv_prog_RESCOMP
25609 if test -n "$RESCOMP"; then
25610   echo "$as_me:$LINENO: result: $RESCOMP" >&5
25611 echo "${ECHO_T}$RESCOMP" >&6
25612 else
25613   echo "$as_me:$LINENO: result: no" >&5
25614 echo "${ECHO_T}no" >&6
25615 fi
25616
25617     # Extract the first word of "DeRez", so it can be a program name with args.
25618 set dummy DeRez; ac_word=$2
25619 echo "$as_me:$LINENO: checking for $ac_word" >&5
25620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25621 if test "${ac_cv_prog_DEREZ+set}" = set; then
25622   echo $ECHO_N "(cached) $ECHO_C" >&6
25623 else
25624   if test -n "$DEREZ"; then
25625   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
25626 else
25627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25628 for as_dir in $PATH
25629 do
25630   IFS=$as_save_IFS
25631   test -z "$as_dir" && as_dir=.
25632   for ac_exec_ext in '' $ac_executable_extensions; do
25633   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25634     ac_cv_prog_DEREZ="DeRez"
25635     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25636     break 2
25637   fi
25638 done
25639 done
25640
25641   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
25642 fi
25643 fi
25644 DEREZ=$ac_cv_prog_DEREZ
25645 if test -n "$DEREZ"; then
25646   echo "$as_me:$LINENO: result: $DEREZ" >&5
25647 echo "${ECHO_T}$DEREZ" >&6
25648 else
25649   echo "$as_me:$LINENO: result: no" >&5
25650 echo "${ECHO_T}no" >&6
25651 fi
25652
25653     # Extract the first word of "SetFile", so it can be a program name with args.
25654 set dummy SetFile; ac_word=$2
25655 echo "$as_me:$LINENO: checking for $ac_word" >&5
25656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25657 if test "${ac_cv_prog_SETFILE+set}" = set; then
25658   echo $ECHO_N "(cached) $ECHO_C" >&6
25659 else
25660   if test -n "$SETFILE"; then
25661   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25662 else
25663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25664 for as_dir in $PATH
25665 do
25666   IFS=$as_save_IFS
25667   test -z "$as_dir" && as_dir=.
25668   for ac_exec_ext in '' $ac_executable_extensions; do
25669   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25670     ac_cv_prog_SETFILE="SetFile"
25671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25672     break 2
25673   fi
25674 done
25675 done
25676
25677   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25678 fi
25679 fi
25680 SETFILE=$ac_cv_prog_SETFILE
25681 if test -n "$SETFILE"; then
25682   echo "$as_me:$LINENO: result: $SETFILE" >&5
25683 echo "${ECHO_T}$SETFILE" >&6
25684 else
25685   echo "$as_me:$LINENO: result: no" >&5
25686 echo "${ECHO_T}no" >&6
25687 fi
25688
25689     MACOSX_BUNDLE="bundle"
25690             MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
25691     MACSETFILE="\$(SETFILE)"
25692     MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
25693 elif test "$wxUSE_COCOA" = 1; then
25694     # Extract the first word of "Rez", so it can be a program name with args.
25695 set dummy Rez; ac_word=$2
25696 echo "$as_me:$LINENO: checking for $ac_word" >&5
25697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25698 if test "${ac_cv_prog_RESCOMP+set}" = set; then
25699   echo $ECHO_N "(cached) $ECHO_C" >&6
25700 else
25701   if test -n "$RESCOMP"; then
25702   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
25703 else
25704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25705 for as_dir in $PATH
25706 do
25707   IFS=$as_save_IFS
25708   test -z "$as_dir" && as_dir=.
25709   for ac_exec_ext in '' $ac_executable_extensions; do
25710   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25711     ac_cv_prog_RESCOMP="Rez"
25712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25713     break 2
25714   fi
25715 done
25716 done
25717
25718   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
25719 fi
25720 fi
25721 RESCOMP=$ac_cv_prog_RESCOMP
25722 if test -n "$RESCOMP"; then
25723   echo "$as_me:$LINENO: result: $RESCOMP" >&5
25724 echo "${ECHO_T}$RESCOMP" >&6
25725 else
25726   echo "$as_me:$LINENO: result: no" >&5
25727 echo "${ECHO_T}no" >&6
25728 fi
25729
25730     # Extract the first word of "DeRez", so it can be a program name with args.
25731 set dummy DeRez; ac_word=$2
25732 echo "$as_me:$LINENO: checking for $ac_word" >&5
25733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25734 if test "${ac_cv_prog_DEREZ+set}" = set; then
25735   echo $ECHO_N "(cached) $ECHO_C" >&6
25736 else
25737   if test -n "$DEREZ"; then
25738   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
25739 else
25740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25741 for as_dir in $PATH
25742 do
25743   IFS=$as_save_IFS
25744   test -z "$as_dir" && as_dir=.
25745   for ac_exec_ext in '' $ac_executable_extensions; do
25746   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25747     ac_cv_prog_DEREZ="DeRez"
25748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25749     break 2
25750   fi
25751 done
25752 done
25753
25754   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
25755 fi
25756 fi
25757 DEREZ=$ac_cv_prog_DEREZ
25758 if test -n "$DEREZ"; then
25759   echo "$as_me:$LINENO: result: $DEREZ" >&5
25760 echo "${ECHO_T}$DEREZ" >&6
25761 else
25762   echo "$as_me:$LINENO: result: no" >&5
25763 echo "${ECHO_T}no" >&6
25764 fi
25765
25766     # Extract the first word of "SetFile", so it can be a program name with args.
25767 set dummy SetFile; ac_word=$2
25768 echo "$as_me:$LINENO: checking for $ac_word" >&5
25769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25770 if test "${ac_cv_prog_SETFILE+set}" = set; then
25771   echo $ECHO_N "(cached) $ECHO_C" >&6
25772 else
25773   if test -n "$SETFILE"; then
25774   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
25775 else
25776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25777 for as_dir in $PATH
25778 do
25779   IFS=$as_save_IFS
25780   test -z "$as_dir" && as_dir=.
25781   for ac_exec_ext in '' $ac_executable_extensions; do
25782   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25783     ac_cv_prog_SETFILE="SetFile"
25784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25785     break 2
25786   fi
25787 done
25788 done
25789
25790   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
25791 fi
25792 fi
25793 SETFILE=$ac_cv_prog_SETFILE
25794 if test -n "$SETFILE"; then
25795   echo "$as_me:$LINENO: result: $SETFILE" >&5
25796 echo "${ECHO_T}$SETFILE" >&6
25797 else
25798   echo "$as_me:$LINENO: result: no" >&5
25799 echo "${ECHO_T}no" >&6
25800 fi
25801
25802     MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
25803     MACSETFILE="\$(SETFILE)"
25804     MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
25805 else
25806     if test "$wxUSE_PM" = 1; then
25807         MACRESCOMP="emxbind -ep"
25808     fi
25809 fi
25810
25811
25812 echo "$as_me:$LINENO: checking for mode_t" >&5
25813 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
25814 if test "${ac_cv_type_mode_t+set}" = set; then
25815   echo $ECHO_N "(cached) $ECHO_C" >&6
25816 else
25817   cat >conftest.$ac_ext <<_ACEOF
25818 #line $LINENO "configure"
25819 /* confdefs.h.  */
25820 _ACEOF
25821 cat confdefs.h >>conftest.$ac_ext
25822 cat >>conftest.$ac_ext <<_ACEOF
25823 /* end confdefs.h.  */
25824 $ac_includes_default
25825 int
25826 main ()
25827 {
25828 if ((mode_t *) 0)
25829   return 0;
25830 if (sizeof (mode_t))
25831   return 0;
25832   ;
25833   return 0;
25834 }
25835 _ACEOF
25836 rm -f conftest.$ac_objext
25837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25838   (eval $ac_compile) 2>&5
25839   ac_status=$?
25840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25841   (exit $ac_status); } &&
25842          { ac_try='test -s conftest.$ac_objext'
25843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25844   (eval $ac_try) 2>&5
25845   ac_status=$?
25846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25847   (exit $ac_status); }; }; then
25848   ac_cv_type_mode_t=yes
25849 else
25850   echo "$as_me: failed program was:" >&5
25851 sed 's/^/| /' conftest.$ac_ext >&5
25852
25853 ac_cv_type_mode_t=no
25854 fi
25855 rm -f conftest.$ac_objext conftest.$ac_ext
25856 fi
25857 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
25858 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
25859 if test $ac_cv_type_mode_t = yes; then
25860   :
25861 else
25862
25863 cat >>confdefs.h <<_ACEOF
25864 #define mode_t int
25865 _ACEOF
25866
25867 fi
25868
25869 echo "$as_me:$LINENO: checking for off_t" >&5
25870 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
25871 if test "${ac_cv_type_off_t+set}" = set; then
25872   echo $ECHO_N "(cached) $ECHO_C" >&6
25873 else
25874   cat >conftest.$ac_ext <<_ACEOF
25875 #line $LINENO "configure"
25876 /* confdefs.h.  */
25877 _ACEOF
25878 cat confdefs.h >>conftest.$ac_ext
25879 cat >>conftest.$ac_ext <<_ACEOF
25880 /* end confdefs.h.  */
25881 $ac_includes_default
25882 int
25883 main ()
25884 {
25885 if ((off_t *) 0)
25886   return 0;
25887 if (sizeof (off_t))
25888   return 0;
25889   ;
25890   return 0;
25891 }
25892 _ACEOF
25893 rm -f conftest.$ac_objext
25894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25895   (eval $ac_compile) 2>&5
25896   ac_status=$?
25897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25898   (exit $ac_status); } &&
25899          { ac_try='test -s conftest.$ac_objext'
25900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25901   (eval $ac_try) 2>&5
25902   ac_status=$?
25903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25904   (exit $ac_status); }; }; then
25905   ac_cv_type_off_t=yes
25906 else
25907   echo "$as_me: failed program was:" >&5
25908 sed 's/^/| /' conftest.$ac_ext >&5
25909
25910 ac_cv_type_off_t=no
25911 fi
25912 rm -f conftest.$ac_objext conftest.$ac_ext
25913 fi
25914 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25915 echo "${ECHO_T}$ac_cv_type_off_t" >&6
25916 if test $ac_cv_type_off_t = yes; then
25917   :
25918 else
25919
25920 cat >>confdefs.h <<_ACEOF
25921 #define off_t long
25922 _ACEOF
25923
25924 fi
25925
25926 echo "$as_me:$LINENO: checking for pid_t" >&5
25927 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
25928 if test "${ac_cv_type_pid_t+set}" = set; then
25929   echo $ECHO_N "(cached) $ECHO_C" >&6
25930 else
25931   cat >conftest.$ac_ext <<_ACEOF
25932 #line $LINENO "configure"
25933 /* confdefs.h.  */
25934 _ACEOF
25935 cat confdefs.h >>conftest.$ac_ext
25936 cat >>conftest.$ac_ext <<_ACEOF
25937 /* end confdefs.h.  */
25938 $ac_includes_default
25939 int
25940 main ()
25941 {
25942 if ((pid_t *) 0)
25943   return 0;
25944 if (sizeof (pid_t))
25945   return 0;
25946   ;
25947   return 0;
25948 }
25949 _ACEOF
25950 rm -f conftest.$ac_objext
25951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25952   (eval $ac_compile) 2>&5
25953   ac_status=$?
25954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955   (exit $ac_status); } &&
25956          { ac_try='test -s conftest.$ac_objext'
25957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25958   (eval $ac_try) 2>&5
25959   ac_status=$?
25960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25961   (exit $ac_status); }; }; then
25962   ac_cv_type_pid_t=yes
25963 else
25964   echo "$as_me: failed program was:" >&5
25965 sed 's/^/| /' conftest.$ac_ext >&5
25966
25967 ac_cv_type_pid_t=no
25968 fi
25969 rm -f conftest.$ac_objext conftest.$ac_ext
25970 fi
25971 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25972 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
25973 if test $ac_cv_type_pid_t = yes; then
25974   :
25975 else
25976
25977 cat >>confdefs.h <<_ACEOF
25978 #define pid_t int
25979 _ACEOF
25980
25981 fi
25982
25983 echo "$as_me:$LINENO: checking for size_t" >&5
25984 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
25985 if test "${ac_cv_type_size_t+set}" = set; then
25986   echo $ECHO_N "(cached) $ECHO_C" >&6
25987 else
25988   cat >conftest.$ac_ext <<_ACEOF
25989 #line $LINENO "configure"
25990 /* confdefs.h.  */
25991 _ACEOF
25992 cat confdefs.h >>conftest.$ac_ext
25993 cat >>conftest.$ac_ext <<_ACEOF
25994 /* end confdefs.h.  */
25995 $ac_includes_default
25996 int
25997 main ()
25998 {
25999 if ((size_t *) 0)
26000   return 0;
26001 if (sizeof (size_t))
26002   return 0;
26003   ;
26004   return 0;
26005 }
26006 _ACEOF
26007 rm -f conftest.$ac_objext
26008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26009   (eval $ac_compile) 2>&5
26010   ac_status=$?
26011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26012   (exit $ac_status); } &&
26013          { ac_try='test -s conftest.$ac_objext'
26014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26015   (eval $ac_try) 2>&5
26016   ac_status=$?
26017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26018   (exit $ac_status); }; }; then
26019   ac_cv_type_size_t=yes
26020 else
26021   echo "$as_me: failed program was:" >&5
26022 sed 's/^/| /' conftest.$ac_ext >&5
26023
26024 ac_cv_type_size_t=no
26025 fi
26026 rm -f conftest.$ac_objext conftest.$ac_ext
26027 fi
26028 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26029 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26030 if test $ac_cv_type_size_t = yes; then
26031   :
26032 else
26033
26034 cat >>confdefs.h <<_ACEOF
26035 #define size_t unsigned
26036 _ACEOF
26037
26038 fi
26039
26040 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
26041 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
26042 if test "${ac_cv_type_uid_t+set}" = set; then
26043   echo $ECHO_N "(cached) $ECHO_C" >&6
26044 else
26045   cat >conftest.$ac_ext <<_ACEOF
26046 #line $LINENO "configure"
26047 /* confdefs.h.  */
26048 _ACEOF
26049 cat confdefs.h >>conftest.$ac_ext
26050 cat >>conftest.$ac_ext <<_ACEOF
26051 /* end confdefs.h.  */
26052 #include <sys/types.h>
26053
26054 _ACEOF
26055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26056   $EGREP "uid_t" >/dev/null 2>&1; then
26057   ac_cv_type_uid_t=yes
26058 else
26059   ac_cv_type_uid_t=no
26060 fi
26061 rm -f conftest*
26062
26063 fi
26064 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
26065 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
26066 if test $ac_cv_type_uid_t = no; then
26067
26068 cat >>confdefs.h <<\_ACEOF
26069 #define uid_t int
26070 _ACEOF
26071
26072
26073 cat >>confdefs.h <<\_ACEOF
26074 #define gid_t int
26075 _ACEOF
26076
26077 fi
26078
26079
26080
26081
26082 ac_ext=cc
26083 ac_cpp='$CXXCPP $CPPFLAGS'
26084 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26085 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26086 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26087
26088 echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
26089 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
26090 if test "${wx_cv_size_t_is_uint+set}" = set; then
26091   echo $ECHO_N "(cached) $ECHO_C" >&6
26092 else
26093
26094                             cat >conftest.$ac_ext <<_ACEOF
26095 #line $LINENO "configure"
26096 /* confdefs.h.  */
26097 _ACEOF
26098 cat confdefs.h >>conftest.$ac_ext
26099 cat >>conftest.$ac_ext <<_ACEOF
26100 /* end confdefs.h.  */
26101 #include <stddef.h>
26102 int
26103 main ()
26104 {
26105
26106             return 0; }
26107
26108             struct Foo { void foo(size_t); void foo(unsigned int); };
26109
26110             int bar() {
26111
26112   ;
26113   return 0;
26114 }
26115 _ACEOF
26116 rm -f conftest.$ac_objext
26117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26118   (eval $ac_compile) 2>&5
26119   ac_status=$?
26120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26121   (exit $ac_status); } &&
26122          { ac_try='test -s conftest.$ac_objext'
26123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26124   (eval $ac_try) 2>&5
26125   ac_status=$?
26126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26127   (exit $ac_status); }; }; then
26128   wx_cv_size_t_is_uint=no
26129 else
26130   echo "$as_me: failed program was:" >&5
26131 sed 's/^/| /' conftest.$ac_ext >&5
26132
26133 wx_cv_size_t_is_uint=yes
26134
26135 fi
26136 rm -f conftest.$ac_objext conftest.$ac_ext
26137
26138
26139 fi
26140 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
26141 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
26142
26143 if test "$wx_cv_size_t_is_uint" = "yes"; then
26144     cat >>confdefs.h <<\_ACEOF
26145 #define wxSIZE_T_IS_UINT 1
26146 _ACEOF
26147
26148 else
26149     echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
26150 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
26151 if test "${wx_cv_size_t_is_ulong+set}" = set; then
26152   echo $ECHO_N "(cached) $ECHO_C" >&6
26153 else
26154   cat >conftest.$ac_ext <<_ACEOF
26155 #line $LINENO "configure"
26156 /* confdefs.h.  */
26157 _ACEOF
26158 cat confdefs.h >>conftest.$ac_ext
26159 cat >>conftest.$ac_ext <<_ACEOF
26160 /* end confdefs.h.  */
26161 #include <stddef.h>
26162 int
26163 main ()
26164 {
26165
26166                 return 0; }
26167
26168                 struct Foo { void foo(size_t); void foo(unsigned long); };
26169
26170                 int bar() {
26171
26172   ;
26173   return 0;
26174 }
26175 _ACEOF
26176 rm -f conftest.$ac_objext
26177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26178   (eval $ac_compile) 2>&5
26179   ac_status=$?
26180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26181   (exit $ac_status); } &&
26182          { ac_try='test -s conftest.$ac_objext'
26183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26184   (eval $ac_try) 2>&5
26185   ac_status=$?
26186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26187   (exit $ac_status); }; }; then
26188   wx_cv_size_t_is_ulong=no
26189 else
26190   echo "$as_me: failed program was:" >&5
26191 sed 's/^/| /' conftest.$ac_ext >&5
26192
26193 wx_cv_size_t_is_ulong=yes
26194
26195 fi
26196 rm -f conftest.$ac_objext conftest.$ac_ext
26197
26198 fi
26199 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
26200 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
26201
26202     if test "$wx_cv_size_t_is_ulong" = "yes"; then
26203         cat >>confdefs.h <<\_ACEOF
26204 #define wxSIZE_T_IS_ULONG 1
26205 _ACEOF
26206
26207     fi
26208 fi
26209
26210 ac_ext=c
26211 ac_cpp='$CPP $CPPFLAGS'
26212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26215
26216
26217
26218 echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
26219 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
26220 if test "${wx_cv_struct_pw_gecos+set}" = set; then
26221   echo $ECHO_N "(cached) $ECHO_C" >&6
26222 else
26223
26224         cat >conftest.$ac_ext <<_ACEOF
26225 #line $LINENO "configure"
26226 /* confdefs.h.  */
26227 _ACEOF
26228 cat confdefs.h >>conftest.$ac_ext
26229 cat >>conftest.$ac_ext <<_ACEOF
26230 /* end confdefs.h.  */
26231 #include <pwd.h>
26232 int
26233 main ()
26234 {
26235
26236                 char *p;
26237                 struct passwd *pw;
26238                 p = pw->pw_gecos;
26239
26240   ;
26241   return 0;
26242 }
26243 _ACEOF
26244 rm -f conftest.$ac_objext
26245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26246   (eval $ac_compile) 2>&5
26247   ac_status=$?
26248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26249   (exit $ac_status); } &&
26250          { ac_try='test -s conftest.$ac_objext'
26251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26252   (eval $ac_try) 2>&5
26253   ac_status=$?
26254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26255   (exit $ac_status); }; }; then
26256
26257                 wx_cv_struct_pw_gecos=yes
26258
26259 else
26260   echo "$as_me: failed program was:" >&5
26261 sed 's/^/| /' conftest.$ac_ext >&5
26262
26263
26264                 wx_cv_struct_pw_gecos=no
26265
26266
26267 fi
26268 rm -f conftest.$ac_objext conftest.$ac_ext
26269
26270
26271 fi
26272 echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
26273 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
26274
26275 if test "$wx_cv_struct_pw_gecos" = "yes"; then
26276     cat >>confdefs.h <<\_ACEOF
26277 #define HAVE_PW_GECOS 1
26278 _ACEOF
26279
26280 fi
26281
26282
26283 if test "$wx_cv_sizeof_wchar_t" != "0"; then
26284     cat >>confdefs.h <<\_ACEOF
26285 #define wxUSE_WCHAR_T 1
26286 _ACEOF
26287
26288
26289         WCSLEN_FOUND=0
26290     WCHAR_LINK=
26291
26292 for ac_func in wcslen
26293 do
26294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26295 echo "$as_me:$LINENO: checking for $ac_func" >&5
26296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26297 if eval "test \"\${$as_ac_var+set}\" = set"; then
26298   echo $ECHO_N "(cached) $ECHO_C" >&6
26299 else
26300   cat >conftest.$ac_ext <<_ACEOF
26301 #line $LINENO "configure"
26302 /* confdefs.h.  */
26303 _ACEOF
26304 cat confdefs.h >>conftest.$ac_ext
26305 cat >>conftest.$ac_ext <<_ACEOF
26306 /* end confdefs.h.  */
26307 /* System header to define __stub macros and hopefully few prototypes,
26308     which can conflict with char $ac_func (); below.
26309     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26310     <limits.h> exists even on freestanding compilers.  */
26311 #ifdef __STDC__
26312 # include <limits.h>
26313 #else
26314 # include <assert.h>
26315 #endif
26316 /* Override any gcc2 internal prototype to avoid an error.  */
26317 #ifdef __cplusplus
26318 extern "C"
26319 {
26320 #endif
26321 /* We use char because int might match the return type of a gcc2
26322    builtin and then its argument prototype would still apply.  */
26323 char $ac_func ();
26324 /* The GNU C library defines this for functions which it implements
26325     to always fail with ENOSYS.  Some functions are actually named
26326     something starting with __ and the normal name is an alias.  */
26327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26328 choke me
26329 #else
26330 char (*f) () = $ac_func;
26331 #endif
26332 #ifdef __cplusplus
26333 }
26334 #endif
26335
26336 int
26337 main ()
26338 {
26339 return f != $ac_func;
26340   ;
26341   return 0;
26342 }
26343 _ACEOF
26344 rm -f conftest.$ac_objext conftest$ac_exeext
26345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26346   (eval $ac_link) 2>&5
26347   ac_status=$?
26348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26349   (exit $ac_status); } &&
26350          { ac_try='test -s conftest$ac_exeext'
26351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26352   (eval $ac_try) 2>&5
26353   ac_status=$?
26354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355   (exit $ac_status); }; }; then
26356   eval "$as_ac_var=yes"
26357 else
26358   echo "$as_me: failed program was:" >&5
26359 sed 's/^/| /' conftest.$ac_ext >&5
26360
26361 eval "$as_ac_var=no"
26362 fi
26363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26364 fi
26365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26366 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26367 if test `eval echo '${'$as_ac_var'}'` = yes; then
26368   cat >>confdefs.h <<_ACEOF
26369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26370 _ACEOF
26371  WCSLEN_FOUND=1
26372 fi
26373 done
26374
26375
26376     if test "$WCSLEN_FOUND" = 0; then
26377         if test "$TOOLKIT" = "MSW"; then
26378             echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
26379 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
26380 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
26381   echo $ECHO_N "(cached) $ECHO_C" >&6
26382 else
26383   ac_check_lib_save_LIBS=$LIBS
26384 LIBS="-lmsvcrt  $LIBS"
26385 cat >conftest.$ac_ext <<_ACEOF
26386 #line $LINENO "configure"
26387 /* confdefs.h.  */
26388 _ACEOF
26389 cat confdefs.h >>conftest.$ac_ext
26390 cat >>conftest.$ac_ext <<_ACEOF
26391 /* end confdefs.h.  */
26392
26393 /* Override any gcc2 internal prototype to avoid an error.  */
26394 #ifdef __cplusplus
26395 extern "C"
26396 #endif
26397 /* We use char because int might match the return type of a gcc2
26398    builtin and then its argument prototype would still apply.  */
26399 char wcslen ();
26400 int
26401 main ()
26402 {
26403 wcslen ();
26404   ;
26405   return 0;
26406 }
26407 _ACEOF
26408 rm -f conftest.$ac_objext conftest$ac_exeext
26409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26410   (eval $ac_link) 2>&5
26411   ac_status=$?
26412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26413   (exit $ac_status); } &&
26414          { ac_try='test -s conftest$ac_exeext'
26415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26416   (eval $ac_try) 2>&5
26417   ac_status=$?
26418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26419   (exit $ac_status); }; }; then
26420   ac_cv_lib_msvcrt_wcslen=yes
26421 else
26422   echo "$as_me: failed program was:" >&5
26423 sed 's/^/| /' conftest.$ac_ext >&5
26424
26425 ac_cv_lib_msvcrt_wcslen=no
26426 fi
26427 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26428 LIBS=$ac_check_lib_save_LIBS
26429 fi
26430 echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
26431 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
26432 if test $ac_cv_lib_msvcrt_wcslen = yes; then
26433   WCHAR_OK=1
26434 fi
26435
26436         else
26437             echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
26438 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
26439 if test "${ac_cv_lib_w_wcslen+set}" = set; then
26440   echo $ECHO_N "(cached) $ECHO_C" >&6
26441 else
26442   ac_check_lib_save_LIBS=$LIBS
26443 LIBS="-lw  $LIBS"
26444 cat >conftest.$ac_ext <<_ACEOF
26445 #line $LINENO "configure"
26446 /* confdefs.h.  */
26447 _ACEOF
26448 cat confdefs.h >>conftest.$ac_ext
26449 cat >>conftest.$ac_ext <<_ACEOF
26450 /* end confdefs.h.  */
26451
26452 /* Override any gcc2 internal prototype to avoid an error.  */
26453 #ifdef __cplusplus
26454 extern "C"
26455 #endif
26456 /* We use char because int might match the return type of a gcc2
26457    builtin and then its argument prototype would still apply.  */
26458 char wcslen ();
26459 int
26460 main ()
26461 {
26462 wcslen ();
26463   ;
26464   return 0;
26465 }
26466 _ACEOF
26467 rm -f conftest.$ac_objext conftest$ac_exeext
26468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26469   (eval $ac_link) 2>&5
26470   ac_status=$?
26471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26472   (exit $ac_status); } &&
26473          { ac_try='test -s conftest$ac_exeext'
26474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26475   (eval $ac_try) 2>&5
26476   ac_status=$?
26477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478   (exit $ac_status); }; }; then
26479   ac_cv_lib_w_wcslen=yes
26480 else
26481   echo "$as_me: failed program was:" >&5
26482 sed 's/^/| /' conftest.$ac_ext >&5
26483
26484 ac_cv_lib_w_wcslen=no
26485 fi
26486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26487 LIBS=$ac_check_lib_save_LIBS
26488 fi
26489 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
26490 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
26491 if test $ac_cv_lib_w_wcslen = yes; then
26492
26493                             WCHAR_LINK=" -lw"
26494                             WCSLEN_FOUND=1
26495
26496 fi
26497
26498         fi
26499     fi
26500
26501     if test "$WCSLEN_FOUND" = 1; then
26502         cat >>confdefs.h <<\_ACEOF
26503 #define HAVE_WCSLEN 1
26504 _ACEOF
26505
26506     fi
26507
26508
26509 for ac_func in wcsrtombs
26510 do
26511 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26512 echo "$as_me:$LINENO: checking for $ac_func" >&5
26513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26514 if eval "test \"\${$as_ac_var+set}\" = set"; then
26515   echo $ECHO_N "(cached) $ECHO_C" >&6
26516 else
26517   cat >conftest.$ac_ext <<_ACEOF
26518 #line $LINENO "configure"
26519 /* confdefs.h.  */
26520 _ACEOF
26521 cat confdefs.h >>conftest.$ac_ext
26522 cat >>conftest.$ac_ext <<_ACEOF
26523 /* end confdefs.h.  */
26524 /* System header to define __stub macros and hopefully few prototypes,
26525     which can conflict with char $ac_func (); below.
26526     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26527     <limits.h> exists even on freestanding compilers.  */
26528 #ifdef __STDC__
26529 # include <limits.h>
26530 #else
26531 # include <assert.h>
26532 #endif
26533 /* Override any gcc2 internal prototype to avoid an error.  */
26534 #ifdef __cplusplus
26535 extern "C"
26536 {
26537 #endif
26538 /* We use char because int might match the return type of a gcc2
26539    builtin and then its argument prototype would still apply.  */
26540 char $ac_func ();
26541 /* The GNU C library defines this for functions which it implements
26542     to always fail with ENOSYS.  Some functions are actually named
26543     something starting with __ and the normal name is an alias.  */
26544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26545 choke me
26546 #else
26547 char (*f) () = $ac_func;
26548 #endif
26549 #ifdef __cplusplus
26550 }
26551 #endif
26552
26553 int
26554 main ()
26555 {
26556 return f != $ac_func;
26557   ;
26558   return 0;
26559 }
26560 _ACEOF
26561 rm -f conftest.$ac_objext conftest$ac_exeext
26562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26563   (eval $ac_link) 2>&5
26564   ac_status=$?
26565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26566   (exit $ac_status); } &&
26567          { ac_try='test -s conftest$ac_exeext'
26568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26569   (eval $ac_try) 2>&5
26570   ac_status=$?
26571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26572   (exit $ac_status); }; }; then
26573   eval "$as_ac_var=yes"
26574 else
26575   echo "$as_me: failed program was:" >&5
26576 sed 's/^/| /' conftest.$ac_ext >&5
26577
26578 eval "$as_ac_var=no"
26579 fi
26580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26581 fi
26582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26583 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26584 if test `eval echo '${'$as_ac_var'}'` = yes; then
26585   cat >>confdefs.h <<_ACEOF
26586 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26587 _ACEOF
26588
26589 fi
26590 done
26591
26592 else
26593     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
26594 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
26595 fi
26596
26597
26598
26599 ac_ext=cc
26600 ac_cpp='$CXXCPP $CPPFLAGS'
26601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26602 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26604
26605
26606
26607 for ac_func in vsnprintf
26608 do
26609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26610 echo "$as_me:$LINENO: checking for $ac_func" >&5
26611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26612 if eval "test \"\${$as_ac_var+set}\" = set"; then
26613   echo $ECHO_N "(cached) $ECHO_C" >&6
26614 else
26615   cat >conftest.$ac_ext <<_ACEOF
26616 #line $LINENO "configure"
26617 /* confdefs.h.  */
26618 _ACEOF
26619 cat confdefs.h >>conftest.$ac_ext
26620 cat >>conftest.$ac_ext <<_ACEOF
26621 /* end confdefs.h.  */
26622 /* System header to define __stub macros and hopefully few prototypes,
26623     which can conflict with char $ac_func (); below.
26624     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26625     <limits.h> exists even on freestanding compilers.  */
26626 #ifdef __STDC__
26627 # include <limits.h>
26628 #else
26629 # include <assert.h>
26630 #endif
26631 /* Override any gcc2 internal prototype to avoid an error.  */
26632 #ifdef __cplusplus
26633 extern "C"
26634 {
26635 #endif
26636 /* We use char because int might match the return type of a gcc2
26637    builtin and then its argument prototype would still apply.  */
26638 char $ac_func ();
26639 /* The GNU C library defines this for functions which it implements
26640     to always fail with ENOSYS.  Some functions are actually named
26641     something starting with __ and the normal name is an alias.  */
26642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26643 choke me
26644 #else
26645 char (*f) () = $ac_func;
26646 #endif
26647 #ifdef __cplusplus
26648 }
26649 #endif
26650
26651 int
26652 main ()
26653 {
26654 return f != $ac_func;
26655   ;
26656   return 0;
26657 }
26658 _ACEOF
26659 rm -f conftest.$ac_objext conftest$ac_exeext
26660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26661   (eval $ac_link) 2>&5
26662   ac_status=$?
26663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26664   (exit $ac_status); } &&
26665          { ac_try='test -s conftest$ac_exeext'
26666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26667   (eval $ac_try) 2>&5
26668   ac_status=$?
26669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26670   (exit $ac_status); }; }; then
26671   eval "$as_ac_var=yes"
26672 else
26673   echo "$as_me: failed program was:" >&5
26674 sed 's/^/| /' conftest.$ac_ext >&5
26675
26676 eval "$as_ac_var=no"
26677 fi
26678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26679 fi
26680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26681 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26682 if test `eval echo '${'$as_ac_var'}'` = yes; then
26683   cat >>confdefs.h <<_ACEOF
26684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26685 _ACEOF
26686
26687 fi
26688 done
26689
26690
26691 if test "$ac_cv_func_vsnprintf" = "yes"; then
26692         echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
26693 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
26694 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
26695   echo $ECHO_N "(cached) $ECHO_C" >&6
26696 else
26697
26698             cat >conftest.$ac_ext <<_ACEOF
26699 #line $LINENO "configure"
26700 /* confdefs.h.  */
26701 _ACEOF
26702 cat confdefs.h >>conftest.$ac_ext
26703 cat >>conftest.$ac_ext <<_ACEOF
26704 /* end confdefs.h.  */
26705
26706                     #include <stdio.h>
26707                     #include <stdarg.h>
26708
26709 int
26710 main ()
26711 {
26712
26713                     char *buf;
26714                     va_list ap;
26715                     vsnprintf(buf, 10u, "%s", ap);
26716
26717   ;
26718   return 0;
26719 }
26720 _ACEOF
26721 rm -f conftest.$ac_objext
26722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26723   (eval $ac_compile) 2>&5
26724   ac_status=$?
26725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26726   (exit $ac_status); } &&
26727          { ac_try='test -s conftest.$ac_objext'
26728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26729   (eval $ac_try) 2>&5
26730   ac_status=$?
26731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26732   (exit $ac_status); }; }; then
26733   wx_cv_func_vsnprintf_decl=yes
26734 else
26735   echo "$as_me: failed program was:" >&5
26736 sed 's/^/| /' conftest.$ac_ext >&5
26737
26738 wx_cv_func_vsnprintf_decl=no
26739
26740 fi
26741 rm -f conftest.$ac_objext conftest.$ac_ext
26742
26743
26744 fi
26745 echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
26746 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
26747
26748     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
26749         cat >>confdefs.h <<\_ACEOF
26750 #define HAVE_VSNPRINTF_DECL 1
26751 _ACEOF
26752
26753     fi
26754 fi
26755
26756 if test "$wxUSE_UNICODE" = yes; then
26757
26758
26759
26760 for ac_func in fputwc wprintf vswprintf
26761 do
26762 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26763 echo "$as_me:$LINENO: checking for $ac_func" >&5
26764 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26765 if eval "test \"\${$as_ac_var+set}\" = set"; then
26766   echo $ECHO_N "(cached) $ECHO_C" >&6
26767 else
26768   cat >conftest.$ac_ext <<_ACEOF
26769 #line $LINENO "configure"
26770 /* confdefs.h.  */
26771 _ACEOF
26772 cat confdefs.h >>conftest.$ac_ext
26773 cat >>conftest.$ac_ext <<_ACEOF
26774 /* end confdefs.h.  */
26775 /* System header to define __stub macros and hopefully few prototypes,
26776     which can conflict with char $ac_func (); below.
26777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26778     <limits.h> exists even on freestanding compilers.  */
26779 #ifdef __STDC__
26780 # include <limits.h>
26781 #else
26782 # include <assert.h>
26783 #endif
26784 /* Override any gcc2 internal prototype to avoid an error.  */
26785 #ifdef __cplusplus
26786 extern "C"
26787 {
26788 #endif
26789 /* We use char because int might match the return type of a gcc2
26790    builtin and then its argument prototype would still apply.  */
26791 char $ac_func ();
26792 /* The GNU C library defines this for functions which it implements
26793     to always fail with ENOSYS.  Some functions are actually named
26794     something starting with __ and the normal name is an alias.  */
26795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26796 choke me
26797 #else
26798 char (*f) () = $ac_func;
26799 #endif
26800 #ifdef __cplusplus
26801 }
26802 #endif
26803
26804 int
26805 main ()
26806 {
26807 return f != $ac_func;
26808   ;
26809   return 0;
26810 }
26811 _ACEOF
26812 rm -f conftest.$ac_objext conftest$ac_exeext
26813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26814   (eval $ac_link) 2>&5
26815   ac_status=$?
26816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26817   (exit $ac_status); } &&
26818          { ac_try='test -s conftest$ac_exeext'
26819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26820   (eval $ac_try) 2>&5
26821   ac_status=$?
26822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823   (exit $ac_status); }; }; then
26824   eval "$as_ac_var=yes"
26825 else
26826   echo "$as_me: failed program was:" >&5
26827 sed 's/^/| /' conftest.$ac_ext >&5
26828
26829 eval "$as_ac_var=no"
26830 fi
26831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26832 fi
26833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26834 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26835 if test `eval echo '${'$as_ac_var'}'` = yes; then
26836   cat >>confdefs.h <<_ACEOF
26837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26838 _ACEOF
26839
26840 fi
26841 done
26842
26843
26844                 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
26845 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
26846     cat >conftest.$ac_ext <<_ACEOF
26847 #line $LINENO "configure"
26848 /* confdefs.h.  */
26849 _ACEOF
26850 cat confdefs.h >>conftest.$ac_ext
26851 cat >>conftest.$ac_ext <<_ACEOF
26852 /* end confdefs.h.  */
26853 #include <wchar.h>
26854 int
26855 main ()
26856 {
26857 &_vsnwprintf;
26858   ;
26859   return 0;
26860 }
26861 _ACEOF
26862 rm -f conftest.$ac_objext
26863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26864   (eval $ac_compile) 2>&5
26865   ac_status=$?
26866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26867   (exit $ac_status); } &&
26868          { ac_try='test -s conftest.$ac_objext'
26869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26870   (eval $ac_try) 2>&5
26871   ac_status=$?
26872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26873   (exit $ac_status); }; }; then
26874   echo "$as_me:$LINENO: result: yes" >&5
26875 echo "${ECHO_T}yes" >&6
26876                     cat >>confdefs.h <<\_ACEOF
26877 #define HAVE__VSNWPRINTF 1
26878 _ACEOF
26879
26880 else
26881   echo "$as_me: failed program was:" >&5
26882 sed 's/^/| /' conftest.$ac_ext >&5
26883
26884 echo "$as_me:$LINENO: result: no" >&5
26885 echo "${ECHO_T}no" >&6
26886 fi
26887 rm -f conftest.$ac_objext conftest.$ac_ext;
26888 fi
26889
26890 ac_ext=c
26891 ac_cpp='$CPP $CPPFLAGS'
26892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26895
26896
26897
26898
26899 if test "$TOOLKIT" != "MSW"; then
26900
26901
26902
26903
26904 ac_ext=cc
26905 ac_cpp='$CXXCPP $CPPFLAGS'
26906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26909
26910
26911
26912
26913 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
26914 if test "${with_libiconv_prefix+set}" = set; then
26915   withval="$with_libiconv_prefix"
26916
26917     for dir in `echo "$withval" | tr : ' '`; do
26918       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
26919       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
26920     done
26921
26922 fi;
26923
26924   echo "$as_me:$LINENO: checking for iconv" >&5
26925 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
26926 if test "${am_cv_func_iconv+set}" = set; then
26927   echo $ECHO_N "(cached) $ECHO_C" >&6
26928 else
26929
26930     am_cv_func_iconv="no, consider installing GNU libiconv"
26931     am_cv_lib_iconv=no
26932     cat >conftest.$ac_ext <<_ACEOF
26933 #line $LINENO "configure"
26934 /* confdefs.h.  */
26935 _ACEOF
26936 cat confdefs.h >>conftest.$ac_ext
26937 cat >>conftest.$ac_ext <<_ACEOF
26938 /* end confdefs.h.  */
26939 #include <stdlib.h>
26940 #include <iconv.h>
26941 int
26942 main ()
26943 {
26944 iconv_t cd = iconv_open("","");
26945        iconv(cd,NULL,NULL,NULL,NULL);
26946        iconv_close(cd);
26947   ;
26948   return 0;
26949 }
26950 _ACEOF
26951 rm -f conftest.$ac_objext conftest$ac_exeext
26952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26953   (eval $ac_link) 2>&5
26954   ac_status=$?
26955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26956   (exit $ac_status); } &&
26957          { ac_try='test -s conftest$ac_exeext'
26958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26959   (eval $ac_try) 2>&5
26960   ac_status=$?
26961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26962   (exit $ac_status); }; }; then
26963   am_cv_func_iconv=yes
26964 else
26965   echo "$as_me: failed program was:" >&5
26966 sed 's/^/| /' conftest.$ac_ext >&5
26967
26968 fi
26969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
26970     if test "$am_cv_func_iconv" != yes; then
26971       am_save_LIBS="$LIBS"
26972       LIBS="$LIBS -liconv"
26973       cat >conftest.$ac_ext <<_ACEOF
26974 #line $LINENO "configure"
26975 /* confdefs.h.  */
26976 _ACEOF
26977 cat confdefs.h >>conftest.$ac_ext
26978 cat >>conftest.$ac_ext <<_ACEOF
26979 /* end confdefs.h.  */
26980 #include <stdlib.h>
26981 #include <iconv.h>
26982 int
26983 main ()
26984 {
26985 iconv_t cd = iconv_open("","");
26986          iconv(cd,NULL,NULL,NULL,NULL);
26987          iconv_close(cd);
26988   ;
26989   return 0;
26990 }
26991 _ACEOF
26992 rm -f conftest.$ac_objext conftest$ac_exeext
26993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26994   (eval $ac_link) 2>&5
26995   ac_status=$?
26996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26997   (exit $ac_status); } &&
26998          { ac_try='test -s conftest$ac_exeext'
26999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27000   (eval $ac_try) 2>&5
27001   ac_status=$?
27002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27003   (exit $ac_status); }; }; then
27004   am_cv_lib_iconv=yes
27005         am_cv_func_iconv=yes
27006 else
27007   echo "$as_me: failed program was:" >&5
27008 sed 's/^/| /' conftest.$ac_ext >&5
27009
27010 fi
27011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27012       LIBS="$am_save_LIBS"
27013     fi
27014
27015 fi
27016 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
27017 echo "${ECHO_T}$am_cv_func_iconv" >&6
27018   if test "$am_cv_func_iconv" = yes; then
27019
27020 cat >>confdefs.h <<\_ACEOF
27021 #define HAVE_ICONV 1
27022 _ACEOF
27023
27024     echo "$as_me:$LINENO: checking if iconv needs const" >&5
27025 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
27026 if test "${wx_cv_func_iconv_const+set}" = set; then
27027   echo $ECHO_N "(cached) $ECHO_C" >&6
27028 else
27029   cat >conftest.$ac_ext <<_ACEOF
27030 #line $LINENO "configure"
27031 /* confdefs.h.  */
27032 _ACEOF
27033 cat confdefs.h >>conftest.$ac_ext
27034 cat >>conftest.$ac_ext <<_ACEOF
27035 /* end confdefs.h.  */
27036
27037 #include <stdlib.h>
27038 #include <iconv.h>
27039 extern
27040 #ifdef __cplusplus
27041 "C"
27042 #endif
27043 #if defined(__STDC__) || defined(__cplusplus)
27044 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
27045 #else
27046 size_t iconv();
27047 #endif
27048
27049 int
27050 main ()
27051 {
27052
27053   ;
27054   return 0;
27055 }
27056 _ACEOF
27057 rm -f conftest.$ac_objext
27058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27059   (eval $ac_compile) 2>&5
27060   ac_status=$?
27061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062   (exit $ac_status); } &&
27063          { ac_try='test -s conftest.$ac_objext'
27064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27065   (eval $ac_try) 2>&5
27066   ac_status=$?
27067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068   (exit $ac_status); }; }; then
27069   wx_cv_func_iconv_const="no"
27070 else
27071   echo "$as_me: failed program was:" >&5
27072 sed 's/^/| /' conftest.$ac_ext >&5
27073
27074 wx_cv_func_iconv_const="yes"
27075
27076 fi
27077 rm -f conftest.$ac_objext conftest.$ac_ext
27078
27079 fi
27080 echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
27081 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
27082
27083     iconv_const=
27084     if test "x$wx_cv_func_iconv_const" = "xyes"; then
27085         iconv_const="const"
27086     fi
27087
27088
27089 cat >>confdefs.h <<_ACEOF
27090 #define ICONV_CONST $iconv_const
27091 _ACEOF
27092
27093   fi
27094   LIBICONV=
27095   if test "$am_cv_lib_iconv" = yes; then
27096     LIBICONV="-liconv"
27097   fi
27098
27099
27100 LIBS="$LIBICONV $LIBS"
27101 ac_ext=c
27102 ac_cpp='$CPP $CPPFLAGS'
27103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27106
27107
27108 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
27109
27110 for ac_func in sigaction
27111 do
27112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27113 echo "$as_me:$LINENO: checking for $ac_func" >&5
27114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27115 if eval "test \"\${$as_ac_var+set}\" = set"; then
27116   echo $ECHO_N "(cached) $ECHO_C" >&6
27117 else
27118   cat >conftest.$ac_ext <<_ACEOF
27119 #line $LINENO "configure"
27120 /* confdefs.h.  */
27121 _ACEOF
27122 cat confdefs.h >>conftest.$ac_ext
27123 cat >>conftest.$ac_ext <<_ACEOF
27124 /* end confdefs.h.  */
27125 /* System header to define __stub macros and hopefully few prototypes,
27126     which can conflict with char $ac_func (); below.
27127     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27128     <limits.h> exists even on freestanding compilers.  */
27129 #ifdef __STDC__
27130 # include <limits.h>
27131 #else
27132 # include <assert.h>
27133 #endif
27134 /* Override any gcc2 internal prototype to avoid an error.  */
27135 #ifdef __cplusplus
27136 extern "C"
27137 {
27138 #endif
27139 /* We use char because int might match the return type of a gcc2
27140    builtin and then its argument prototype would still apply.  */
27141 char $ac_func ();
27142 /* The GNU C library defines this for functions which it implements
27143     to always fail with ENOSYS.  Some functions are actually named
27144     something starting with __ and the normal name is an alias.  */
27145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27146 choke me
27147 #else
27148 char (*f) () = $ac_func;
27149 #endif
27150 #ifdef __cplusplus
27151 }
27152 #endif
27153
27154 int
27155 main ()
27156 {
27157 return f != $ac_func;
27158   ;
27159   return 0;
27160 }
27161 _ACEOF
27162 rm -f conftest.$ac_objext conftest$ac_exeext
27163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27164   (eval $ac_link) 2>&5
27165   ac_status=$?
27166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27167   (exit $ac_status); } &&
27168          { ac_try='test -s conftest$ac_exeext'
27169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27170   (eval $ac_try) 2>&5
27171   ac_status=$?
27172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27173   (exit $ac_status); }; }; then
27174   eval "$as_ac_var=yes"
27175 else
27176   echo "$as_me: failed program was:" >&5
27177 sed 's/^/| /' conftest.$ac_ext >&5
27178
27179 eval "$as_ac_var=no"
27180 fi
27181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27182 fi
27183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27184 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27185 if test `eval echo '${'$as_ac_var'}'` = yes; then
27186   cat >>confdefs.h <<_ACEOF
27187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27188 _ACEOF
27189
27190 fi
27191 done
27192
27193
27194     if test "$ac_cv_func_sigaction" = "no"; then
27195         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
27196 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
27197         wxUSE_ON_FATAL_EXCEPTION=no
27198     fi
27199
27200     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
27201
27202
27203       ac_ext=cc
27204 ac_cpp='$CXXCPP $CPPFLAGS'
27205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27208
27209
27210       echo "$as_me:$LINENO: checking for sa_handler type" >&5
27211 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
27212 if test "${wx_cv_type_sa_handler+set}" = set; then
27213   echo $ECHO_N "(cached) $ECHO_C" >&6
27214 else
27215
27216         cat >conftest.$ac_ext <<_ACEOF
27217 #line $LINENO "configure"
27218 /* confdefs.h.  */
27219 _ACEOF
27220 cat confdefs.h >>conftest.$ac_ext
27221 cat >>conftest.$ac_ext <<_ACEOF
27222 /* end confdefs.h.  */
27223 #include <signal.h>
27224 int
27225 main ()
27226 {
27227
27228                         extern void testSigHandler(int);
27229
27230                         struct sigaction sa;
27231                         sa.sa_handler = testSigHandler;
27232
27233   ;
27234   return 0;
27235 }
27236 _ACEOF
27237 rm -f conftest.$ac_objext
27238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27239   (eval $ac_compile) 2>&5
27240   ac_status=$?
27241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27242   (exit $ac_status); } &&
27243          { ac_try='test -s conftest.$ac_objext'
27244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27245   (eval $ac_try) 2>&5
27246   ac_status=$?
27247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27248   (exit $ac_status); }; }; then
27249
27250                         wx_cv_type_sa_handler=int
27251
27252 else
27253   echo "$as_me: failed program was:" >&5
27254 sed 's/^/| /' conftest.$ac_ext >&5
27255
27256
27257                         wx_cv_type_sa_handler=void
27258
27259 fi
27260 rm -f conftest.$ac_objext conftest.$ac_ext
27261
27262 fi
27263 echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
27264 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
27265
27266       ac_ext=c
27267 ac_cpp='$CPP $CPPFLAGS'
27268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27271
27272
27273       cat >>confdefs.h <<_ACEOF
27274 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
27275 _ACEOF
27276
27277     fi
27278 fi
27279
27280
27281
27282 for ac_func in mkstemp mktemp
27283 do
27284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27285 echo "$as_me:$LINENO: checking for $ac_func" >&5
27286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27287 if eval "test \"\${$as_ac_var+set}\" = set"; then
27288   echo $ECHO_N "(cached) $ECHO_C" >&6
27289 else
27290   cat >conftest.$ac_ext <<_ACEOF
27291 #line $LINENO "configure"
27292 /* confdefs.h.  */
27293 _ACEOF
27294 cat confdefs.h >>conftest.$ac_ext
27295 cat >>conftest.$ac_ext <<_ACEOF
27296 /* end confdefs.h.  */
27297 /* System header to define __stub macros and hopefully few prototypes,
27298     which can conflict with char $ac_func (); below.
27299     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27300     <limits.h> exists even on freestanding compilers.  */
27301 #ifdef __STDC__
27302 # include <limits.h>
27303 #else
27304 # include <assert.h>
27305 #endif
27306 /* Override any gcc2 internal prototype to avoid an error.  */
27307 #ifdef __cplusplus
27308 extern "C"
27309 {
27310 #endif
27311 /* We use char because int might match the return type of a gcc2
27312    builtin and then its argument prototype would still apply.  */
27313 char $ac_func ();
27314 /* The GNU C library defines this for functions which it implements
27315     to always fail with ENOSYS.  Some functions are actually named
27316     something starting with __ and the normal name is an alias.  */
27317 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27318 choke me
27319 #else
27320 char (*f) () = $ac_func;
27321 #endif
27322 #ifdef __cplusplus
27323 }
27324 #endif
27325
27326 int
27327 main ()
27328 {
27329 return f != $ac_func;
27330   ;
27331   return 0;
27332 }
27333 _ACEOF
27334 rm -f conftest.$ac_objext conftest$ac_exeext
27335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27336   (eval $ac_link) 2>&5
27337   ac_status=$?
27338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27339   (exit $ac_status); } &&
27340          { ac_try='test -s conftest$ac_exeext'
27341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27342   (eval $ac_try) 2>&5
27343   ac_status=$?
27344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27345   (exit $ac_status); }; }; then
27346   eval "$as_ac_var=yes"
27347 else
27348   echo "$as_me: failed program was:" >&5
27349 sed 's/^/| /' conftest.$ac_ext >&5
27350
27351 eval "$as_ac_var=no"
27352 fi
27353 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27354 fi
27355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27356 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27357 if test `eval echo '${'$as_ac_var'}'` = yes; then
27358   cat >>confdefs.h <<_ACEOF
27359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27360 _ACEOF
27361  break
27362 fi
27363 done
27364
27365
27366 echo "$as_me:$LINENO: checking for statfs" >&5
27367 echo $ECHO_N "checking for statfs... $ECHO_C" >&6
27368 if test "${wx_cv_func_statfs+set}" = set; then
27369   echo $ECHO_N "(cached) $ECHO_C" >&6
27370 else
27371   cat >conftest.$ac_ext <<_ACEOF
27372 #line $LINENO "configure"
27373 /* confdefs.h.  */
27374 _ACEOF
27375 cat confdefs.h >>conftest.$ac_ext
27376 cat >>conftest.$ac_ext <<_ACEOF
27377 /* end confdefs.h.  */
27378
27379              #if defined(__BSD__)
27380                #include <sys/param.h>
27381                #include <sys/mount.h>
27382              #else
27383                #include <sys/vfs.h>
27384              #endif
27385
27386 int
27387 main ()
27388 {
27389
27390              long l;
27391              struct statfs fs;
27392              statfs("/", &fs);
27393              l = fs.f_bsize;
27394              l += fs.f_blocks;
27395              l += fs.f_bavail;
27396
27397   ;
27398   return 0;
27399 }
27400 _ACEOF
27401 rm -f conftest.$ac_objext
27402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27403   (eval $ac_compile) 2>&5
27404   ac_status=$?
27405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27406   (exit $ac_status); } &&
27407          { ac_try='test -s conftest.$ac_objext'
27408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27409   (eval $ac_try) 2>&5
27410   ac_status=$?
27411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27412   (exit $ac_status); }; }; then
27413
27414              wx_cv_func_statfs=yes
27415
27416 else
27417   echo "$as_me: failed program was:" >&5
27418 sed 's/^/| /' conftest.$ac_ext >&5
27419
27420
27421              wx_cv_func_statfs=no
27422
27423
27424 fi
27425 rm -f conftest.$ac_objext conftest.$ac_ext
27426
27427 fi
27428 echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
27429 echo "${ECHO_T}$wx_cv_func_statfs" >&6
27430
27431 if test "$wx_cv_func_statfs" = "yes"; then
27432     wx_cv_type_statvfs_t="struct statfs"
27433     cat >>confdefs.h <<\_ACEOF
27434 #define HAVE_STATFS 1
27435 _ACEOF
27436
27437 else
27438     echo "$as_me:$LINENO: checking for statvfs" >&5
27439 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
27440 if test "${wx_cv_func_statvfs+set}" = set; then
27441   echo $ECHO_N "(cached) $ECHO_C" >&6
27442 else
27443   cat >conftest.$ac_ext <<_ACEOF
27444 #line $LINENO "configure"
27445 /* confdefs.h.  */
27446 _ACEOF
27447 cat confdefs.h >>conftest.$ac_ext
27448 cat >>conftest.$ac_ext <<_ACEOF
27449 /* end confdefs.h.  */
27450
27451                 #include <stddef.h>
27452                 #include <sys/statvfs.h>
27453
27454 int
27455 main ()
27456 {
27457
27458                 statvfs("/", NULL);
27459
27460   ;
27461   return 0;
27462 }
27463 _ACEOF
27464 rm -f conftest.$ac_objext
27465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27466   (eval $ac_compile) 2>&5
27467   ac_status=$?
27468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27469   (exit $ac_status); } &&
27470          { ac_try='test -s conftest.$ac_objext'
27471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27472   (eval $ac_try) 2>&5
27473   ac_status=$?
27474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27475   (exit $ac_status); }; }; then
27476   wx_cv_func_statvfs=yes
27477 else
27478   echo "$as_me: failed program was:" >&5
27479 sed 's/^/| /' conftest.$ac_ext >&5
27480
27481 wx_cv_func_statvfs=no
27482
27483 fi
27484 rm -f conftest.$ac_objext conftest.$ac_ext
27485
27486 fi
27487 echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
27488 echo "${ECHO_T}$wx_cv_func_statvfs" >&6
27489
27490     if test "$wx_cv_func_statvfs" = "yes"; then
27491
27492
27493         ac_ext=cc
27494 ac_cpp='$CXXCPP $CPPFLAGS'
27495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27498
27499
27500         echo "$as_me:$LINENO: checking for statvfs argument type" >&5
27501 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
27502 if test "${wx_cv_type_statvfs_t+set}" = set; then
27503   echo $ECHO_N "(cached) $ECHO_C" >&6
27504 else
27505   cat >conftest.$ac_ext <<_ACEOF
27506 #line $LINENO "configure"
27507 /* confdefs.h.  */
27508 _ACEOF
27509 cat confdefs.h >>conftest.$ac_ext
27510 cat >>conftest.$ac_ext <<_ACEOF
27511 /* end confdefs.h.  */
27512
27513                     #include <sys/statvfs.h>
27514
27515 int
27516 main ()
27517 {
27518
27519                     long l;
27520                     statvfs_t fs;
27521                     statvfs("/", &fs);
27522                     l = fs.f_bsize;
27523                     l += fs.f_blocks;
27524                     l += fs.f_bavail;
27525
27526   ;
27527   return 0;
27528 }
27529 _ACEOF
27530 rm -f conftest.$ac_objext
27531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27532   (eval $ac_compile) 2>&5
27533   ac_status=$?
27534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27535   (exit $ac_status); } &&
27536          { ac_try='test -s conftest.$ac_objext'
27537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27538   (eval $ac_try) 2>&5
27539   ac_status=$?
27540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27541   (exit $ac_status); }; }; then
27542   wx_cv_type_statvfs_t=statvfs_t
27543 else
27544   echo "$as_me: failed program was:" >&5
27545 sed 's/^/| /' conftest.$ac_ext >&5
27546
27547
27548                     cat >conftest.$ac_ext <<_ACEOF
27549 #line $LINENO "configure"
27550 /* confdefs.h.  */
27551 _ACEOF
27552 cat confdefs.h >>conftest.$ac_ext
27553 cat >>conftest.$ac_ext <<_ACEOF
27554 /* end confdefs.h.  */
27555
27556                             #include <sys/statvfs.h>
27557
27558 int
27559 main ()
27560 {
27561
27562                             long l;
27563                             struct statvfs fs;
27564                             statvfs("/", &fs);
27565                             l = fs.f_bsize;
27566                             l += fs.f_blocks;
27567                             l += fs.f_bavail;
27568
27569   ;
27570   return 0;
27571 }
27572 _ACEOF
27573 rm -f conftest.$ac_objext
27574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27575   (eval $ac_compile) 2>&5
27576   ac_status=$?
27577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27578   (exit $ac_status); } &&
27579          { ac_try='test -s conftest.$ac_objext'
27580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27581   (eval $ac_try) 2>&5
27582   ac_status=$?
27583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27584   (exit $ac_status); }; }; then
27585   wx_cv_type_statvfs_t="struct statvfs"
27586 else
27587   echo "$as_me: failed program was:" >&5
27588 sed 's/^/| /' conftest.$ac_ext >&5
27589
27590 wx_cv_type_statvfs_t="unknown"
27591
27592 fi
27593 rm -f conftest.$ac_objext conftest.$ac_ext
27594
27595
27596 fi
27597 rm -f conftest.$ac_objext conftest.$ac_ext
27598
27599 fi
27600 echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
27601 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
27602
27603         ac_ext=c
27604 ac_cpp='$CPP $CPPFLAGS'
27605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27608
27609
27610         if test "$wx_cv_type_statvfs_t" != "unknown"; then
27611             cat >>confdefs.h <<\_ACEOF
27612 #define HAVE_STATVFS 1
27613 _ACEOF
27614
27615         fi
27616     else
27617                 wx_cv_type_statvfs_t="unknown"
27618     fi
27619 fi
27620
27621 if test "$wx_cv_type_statvfs_t" != "unknown"; then
27622     cat >>confdefs.h <<_ACEOF
27623 #define WX_STATFS_T $wx_cv_type_statvfs_t
27624 _ACEOF
27625
27626 else
27627     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
27628 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
27629 fi
27630
27631 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
27632
27633
27634 for ac_func in fcntl flock
27635 do
27636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27637 echo "$as_me:$LINENO: checking for $ac_func" >&5
27638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27639 if eval "test \"\${$as_ac_var+set}\" = set"; then
27640   echo $ECHO_N "(cached) $ECHO_C" >&6
27641 else
27642   cat >conftest.$ac_ext <<_ACEOF
27643 #line $LINENO "configure"
27644 /* confdefs.h.  */
27645 _ACEOF
27646 cat confdefs.h >>conftest.$ac_ext
27647 cat >>conftest.$ac_ext <<_ACEOF
27648 /* end confdefs.h.  */
27649 /* System header to define __stub macros and hopefully few prototypes,
27650     which can conflict with char $ac_func (); below.
27651     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27652     <limits.h> exists even on freestanding compilers.  */
27653 #ifdef __STDC__
27654 # include <limits.h>
27655 #else
27656 # include <assert.h>
27657 #endif
27658 /* Override any gcc2 internal prototype to avoid an error.  */
27659 #ifdef __cplusplus
27660 extern "C"
27661 {
27662 #endif
27663 /* We use char because int might match the return type of a gcc2
27664    builtin and then its argument prototype would still apply.  */
27665 char $ac_func ();
27666 /* The GNU C library defines this for functions which it implements
27667     to always fail with ENOSYS.  Some functions are actually named
27668     something starting with __ and the normal name is an alias.  */
27669 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27670 choke me
27671 #else
27672 char (*f) () = $ac_func;
27673 #endif
27674 #ifdef __cplusplus
27675 }
27676 #endif
27677
27678 int
27679 main ()
27680 {
27681 return f != $ac_func;
27682   ;
27683   return 0;
27684 }
27685 _ACEOF
27686 rm -f conftest.$ac_objext conftest$ac_exeext
27687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27688   (eval $ac_link) 2>&5
27689   ac_status=$?
27690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27691   (exit $ac_status); } &&
27692          { ac_try='test -s conftest$ac_exeext'
27693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27694   (eval $ac_try) 2>&5
27695   ac_status=$?
27696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27697   (exit $ac_status); }; }; then
27698   eval "$as_ac_var=yes"
27699 else
27700   echo "$as_me: failed program was:" >&5
27701 sed 's/^/| /' conftest.$ac_ext >&5
27702
27703 eval "$as_ac_var=no"
27704 fi
27705 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27706 fi
27707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27708 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27709 if test `eval echo '${'$as_ac_var'}'` = yes; then
27710   cat >>confdefs.h <<_ACEOF
27711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27712 _ACEOF
27713  break
27714 fi
27715 done
27716
27717
27718     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
27719         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
27720 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
27721         wxUSE_SNGLINST_CHECKER=no
27722     fi
27723 fi
27724
27725
27726 for ac_func in timegm
27727 do
27728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27729 echo "$as_me:$LINENO: checking for $ac_func" >&5
27730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27731 if eval "test \"\${$as_ac_var+set}\" = set"; then
27732   echo $ECHO_N "(cached) $ECHO_C" >&6
27733 else
27734   cat >conftest.$ac_ext <<_ACEOF
27735 #line $LINENO "configure"
27736 /* confdefs.h.  */
27737 _ACEOF
27738 cat confdefs.h >>conftest.$ac_ext
27739 cat >>conftest.$ac_ext <<_ACEOF
27740 /* end confdefs.h.  */
27741 /* System header to define __stub macros and hopefully few prototypes,
27742     which can conflict with char $ac_func (); below.
27743     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27744     <limits.h> exists even on freestanding compilers.  */
27745 #ifdef __STDC__
27746 # include <limits.h>
27747 #else
27748 # include <assert.h>
27749 #endif
27750 /* Override any gcc2 internal prototype to avoid an error.  */
27751 #ifdef __cplusplus
27752 extern "C"
27753 {
27754 #endif
27755 /* We use char because int might match the return type of a gcc2
27756    builtin and then its argument prototype would still apply.  */
27757 char $ac_func ();
27758 /* The GNU C library defines this for functions which it implements
27759     to always fail with ENOSYS.  Some functions are actually named
27760     something starting with __ and the normal name is an alias.  */
27761 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27762 choke me
27763 #else
27764 char (*f) () = $ac_func;
27765 #endif
27766 #ifdef __cplusplus
27767 }
27768 #endif
27769
27770 int
27771 main ()
27772 {
27773 return f != $ac_func;
27774   ;
27775   return 0;
27776 }
27777 _ACEOF
27778 rm -f conftest.$ac_objext conftest$ac_exeext
27779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27780   (eval $ac_link) 2>&5
27781   ac_status=$?
27782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27783   (exit $ac_status); } &&
27784          { ac_try='test -s conftest$ac_exeext'
27785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27786   (eval $ac_try) 2>&5
27787   ac_status=$?
27788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27789   (exit $ac_status); }; }; then
27790   eval "$as_ac_var=yes"
27791 else
27792   echo "$as_me: failed program was:" >&5
27793 sed 's/^/| /' conftest.$ac_ext >&5
27794
27795 eval "$as_ac_var=no"
27796 fi
27797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27798 fi
27799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27800 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27801 if test `eval echo '${'$as_ac_var'}'` = yes; then
27802   cat >>confdefs.h <<_ACEOF
27803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27804 _ACEOF
27805
27806 fi
27807 done
27808
27809
27810
27811
27812 for ac_func in putenv setenv
27813 do
27814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27815 echo "$as_me:$LINENO: checking for $ac_func" >&5
27816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27817 if eval "test \"\${$as_ac_var+set}\" = set"; then
27818   echo $ECHO_N "(cached) $ECHO_C" >&6
27819 else
27820   cat >conftest.$ac_ext <<_ACEOF
27821 #line $LINENO "configure"
27822 /* confdefs.h.  */
27823 _ACEOF
27824 cat confdefs.h >>conftest.$ac_ext
27825 cat >>conftest.$ac_ext <<_ACEOF
27826 /* end confdefs.h.  */
27827 /* System header to define __stub macros and hopefully few prototypes,
27828     which can conflict with char $ac_func (); below.
27829     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27830     <limits.h> exists even on freestanding compilers.  */
27831 #ifdef __STDC__
27832 # include <limits.h>
27833 #else
27834 # include <assert.h>
27835 #endif
27836 /* Override any gcc2 internal prototype to avoid an error.  */
27837 #ifdef __cplusplus
27838 extern "C"
27839 {
27840 #endif
27841 /* We use char because int might match the return type of a gcc2
27842    builtin and then its argument prototype would still apply.  */
27843 char $ac_func ();
27844 /* The GNU C library defines this for functions which it implements
27845     to always fail with ENOSYS.  Some functions are actually named
27846     something starting with __ and the normal name is an alias.  */
27847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27848 choke me
27849 #else
27850 char (*f) () = $ac_func;
27851 #endif
27852 #ifdef __cplusplus
27853 }
27854 #endif
27855
27856 int
27857 main ()
27858 {
27859 return f != $ac_func;
27860   ;
27861   return 0;
27862 }
27863 _ACEOF
27864 rm -f conftest.$ac_objext conftest$ac_exeext
27865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27866   (eval $ac_link) 2>&5
27867   ac_status=$?
27868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27869   (exit $ac_status); } &&
27870          { ac_try='test -s conftest$ac_exeext'
27871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27872   (eval $ac_try) 2>&5
27873   ac_status=$?
27874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27875   (exit $ac_status); }; }; then
27876   eval "$as_ac_var=yes"
27877 else
27878   echo "$as_me: failed program was:" >&5
27879 sed 's/^/| /' conftest.$ac_ext >&5
27880
27881 eval "$as_ac_var=no"
27882 fi
27883 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27884 fi
27885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27886 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27887 if test `eval echo '${'$as_ac_var'}'` = yes; then
27888   cat >>confdefs.h <<_ACEOF
27889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27890 _ACEOF
27891  break
27892 fi
27893 done
27894
27895
27896 HAVE_SOME_SLEEP_FUNC=0
27897 if test "$USE_BEOS" = 1; then
27898             cat >>confdefs.h <<\_ACEOF
27899 #define HAVE_SLEEP 1
27900 _ACEOF
27901
27902     HAVE_SOME_SLEEP_FUNC=1
27903 fi
27904
27905 if test "$USE_DARWIN" = 1; then
27906             cat >>confdefs.h <<\_ACEOF
27907 #define HAVE_USLEEP 1
27908 _ACEOF
27909
27910     HAVE_SOME_SLEEP_FUNC=1
27911 fi
27912
27913 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
27914         POSIX4_LINK=
27915
27916 for ac_func in nanosleep
27917 do
27918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27919 echo "$as_me:$LINENO: checking for $ac_func" >&5
27920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27921 if eval "test \"\${$as_ac_var+set}\" = set"; then
27922   echo $ECHO_N "(cached) $ECHO_C" >&6
27923 else
27924   cat >conftest.$ac_ext <<_ACEOF
27925 #line $LINENO "configure"
27926 /* confdefs.h.  */
27927 _ACEOF
27928 cat confdefs.h >>conftest.$ac_ext
27929 cat >>conftest.$ac_ext <<_ACEOF
27930 /* end confdefs.h.  */
27931 /* System header to define __stub macros and hopefully few prototypes,
27932     which can conflict with char $ac_func (); below.
27933     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27934     <limits.h> exists even on freestanding compilers.  */
27935 #ifdef __STDC__
27936 # include <limits.h>
27937 #else
27938 # include <assert.h>
27939 #endif
27940 /* Override any gcc2 internal prototype to avoid an error.  */
27941 #ifdef __cplusplus
27942 extern "C"
27943 {
27944 #endif
27945 /* We use char because int might match the return type of a gcc2
27946    builtin and then its argument prototype would still apply.  */
27947 char $ac_func ();
27948 /* The GNU C library defines this for functions which it implements
27949     to always fail with ENOSYS.  Some functions are actually named
27950     something starting with __ and the normal name is an alias.  */
27951 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27952 choke me
27953 #else
27954 char (*f) () = $ac_func;
27955 #endif
27956 #ifdef __cplusplus
27957 }
27958 #endif
27959
27960 int
27961 main ()
27962 {
27963 return f != $ac_func;
27964   ;
27965   return 0;
27966 }
27967 _ACEOF
27968 rm -f conftest.$ac_objext conftest$ac_exeext
27969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27970   (eval $ac_link) 2>&5
27971   ac_status=$?
27972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973   (exit $ac_status); } &&
27974          { ac_try='test -s conftest$ac_exeext'
27975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27976   (eval $ac_try) 2>&5
27977   ac_status=$?
27978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979   (exit $ac_status); }; }; then
27980   eval "$as_ac_var=yes"
27981 else
27982   echo "$as_me: failed program was:" >&5
27983 sed 's/^/| /' conftest.$ac_ext >&5
27984
27985 eval "$as_ac_var=no"
27986 fi
27987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
27988 fi
27989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27990 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27991 if test `eval echo '${'$as_ac_var'}'` = yes; then
27992   cat >>confdefs.h <<_ACEOF
27993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27994 _ACEOF
27995  cat >>confdefs.h <<\_ACEOF
27996 #define HAVE_NANOSLEEP 1
27997 _ACEOF
27998
27999 else
28000
28001             echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
28002 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
28003 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
28004   echo $ECHO_N "(cached) $ECHO_C" >&6
28005 else
28006   ac_check_lib_save_LIBS=$LIBS
28007 LIBS="-lposix4  $LIBS"
28008 cat >conftest.$ac_ext <<_ACEOF
28009 #line $LINENO "configure"
28010 /* confdefs.h.  */
28011 _ACEOF
28012 cat confdefs.h >>conftest.$ac_ext
28013 cat >>conftest.$ac_ext <<_ACEOF
28014 /* end confdefs.h.  */
28015
28016 /* Override any gcc2 internal prototype to avoid an error.  */
28017 #ifdef __cplusplus
28018 extern "C"
28019 #endif
28020 /* We use char because int might match the return type of a gcc2
28021    builtin and then its argument prototype would still apply.  */
28022 char nanosleep ();
28023 int
28024 main ()
28025 {
28026 nanosleep ();
28027   ;
28028   return 0;
28029 }
28030 _ACEOF
28031 rm -f conftest.$ac_objext conftest$ac_exeext
28032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28033   (eval $ac_link) 2>&5
28034   ac_status=$?
28035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28036   (exit $ac_status); } &&
28037          { ac_try='test -s conftest$ac_exeext'
28038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28039   (eval $ac_try) 2>&5
28040   ac_status=$?
28041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28042   (exit $ac_status); }; }; then
28043   ac_cv_lib_posix4_nanosleep=yes
28044 else
28045   echo "$as_me: failed program was:" >&5
28046 sed 's/^/| /' conftest.$ac_ext >&5
28047
28048 ac_cv_lib_posix4_nanosleep=no
28049 fi
28050 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28051 LIBS=$ac_check_lib_save_LIBS
28052 fi
28053 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
28054 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
28055 if test $ac_cv_lib_posix4_nanosleep = yes; then
28056
28057                     cat >>confdefs.h <<\_ACEOF
28058 #define HAVE_NANOSLEEP 1
28059 _ACEOF
28060
28061                     POSIX4_LINK=" -lposix4"
28062
28063 else
28064
28065
28066 for ac_func in usleep
28067 do
28068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28069 echo "$as_me:$LINENO: checking for $ac_func" >&5
28070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28071 if eval "test \"\${$as_ac_var+set}\" = set"; then
28072   echo $ECHO_N "(cached) $ECHO_C" >&6
28073 else
28074   cat >conftest.$ac_ext <<_ACEOF
28075 #line $LINENO "configure"
28076 /* confdefs.h.  */
28077 _ACEOF
28078 cat confdefs.h >>conftest.$ac_ext
28079 cat >>conftest.$ac_ext <<_ACEOF
28080 /* end confdefs.h.  */
28081 /* System header to define __stub macros and hopefully few prototypes,
28082     which can conflict with char $ac_func (); below.
28083     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28084     <limits.h> exists even on freestanding compilers.  */
28085 #ifdef __STDC__
28086 # include <limits.h>
28087 #else
28088 # include <assert.h>
28089 #endif
28090 /* Override any gcc2 internal prototype to avoid an error.  */
28091 #ifdef __cplusplus
28092 extern "C"
28093 {
28094 #endif
28095 /* We use char because int might match the return type of a gcc2
28096    builtin and then its argument prototype would still apply.  */
28097 char $ac_func ();
28098 /* The GNU C library defines this for functions which it implements
28099     to always fail with ENOSYS.  Some functions are actually named
28100     something starting with __ and the normal name is an alias.  */
28101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28102 choke me
28103 #else
28104 char (*f) () = $ac_func;
28105 #endif
28106 #ifdef __cplusplus
28107 }
28108 #endif
28109
28110 int
28111 main ()
28112 {
28113 return f != $ac_func;
28114   ;
28115   return 0;
28116 }
28117 _ACEOF
28118 rm -f conftest.$ac_objext conftest$ac_exeext
28119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28120   (eval $ac_link) 2>&5
28121   ac_status=$?
28122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28123   (exit $ac_status); } &&
28124          { ac_try='test -s conftest$ac_exeext'
28125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28126   (eval $ac_try) 2>&5
28127   ac_status=$?
28128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129   (exit $ac_status); }; }; then
28130   eval "$as_ac_var=yes"
28131 else
28132   echo "$as_me: failed program was:" >&5
28133 sed 's/^/| /' conftest.$ac_ext >&5
28134
28135 eval "$as_ac_var=no"
28136 fi
28137 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28138 fi
28139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28140 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28141 if test `eval echo '${'$as_ac_var'}'` = yes; then
28142   cat >>confdefs.h <<_ACEOF
28143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28144 _ACEOF
28145  cat >>confdefs.h <<\_ACEOF
28146 #define HAVE_USLEEP 1
28147 _ACEOF
28148
28149 else
28150   { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
28151 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
28152
28153 fi
28154 done
28155
28156
28157
28158 fi
28159
28160
28161
28162 fi
28163 done
28164
28165 fi
28166
28167
28168
28169 for ac_func in uname gethostname
28170 do
28171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28172 echo "$as_me:$LINENO: checking for $ac_func" >&5
28173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28174 if eval "test \"\${$as_ac_var+set}\" = set"; then
28175   echo $ECHO_N "(cached) $ECHO_C" >&6
28176 else
28177   cat >conftest.$ac_ext <<_ACEOF
28178 #line $LINENO "configure"
28179 /* confdefs.h.  */
28180 _ACEOF
28181 cat confdefs.h >>conftest.$ac_ext
28182 cat >>conftest.$ac_ext <<_ACEOF
28183 /* end confdefs.h.  */
28184 /* System header to define __stub macros and hopefully few prototypes,
28185     which can conflict with char $ac_func (); below.
28186     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28187     <limits.h> exists even on freestanding compilers.  */
28188 #ifdef __STDC__
28189 # include <limits.h>
28190 #else
28191 # include <assert.h>
28192 #endif
28193 /* Override any gcc2 internal prototype to avoid an error.  */
28194 #ifdef __cplusplus
28195 extern "C"
28196 {
28197 #endif
28198 /* We use char because int might match the return type of a gcc2
28199    builtin and then its argument prototype would still apply.  */
28200 char $ac_func ();
28201 /* The GNU C library defines this for functions which it implements
28202     to always fail with ENOSYS.  Some functions are actually named
28203     something starting with __ and the normal name is an alias.  */
28204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28205 choke me
28206 #else
28207 char (*f) () = $ac_func;
28208 #endif
28209 #ifdef __cplusplus
28210 }
28211 #endif
28212
28213 int
28214 main ()
28215 {
28216 return f != $ac_func;
28217   ;
28218   return 0;
28219 }
28220 _ACEOF
28221 rm -f conftest.$ac_objext conftest$ac_exeext
28222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28223   (eval $ac_link) 2>&5
28224   ac_status=$?
28225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28226   (exit $ac_status); } &&
28227          { ac_try='test -s conftest$ac_exeext'
28228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28229   (eval $ac_try) 2>&5
28230   ac_status=$?
28231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28232   (exit $ac_status); }; }; then
28233   eval "$as_ac_var=yes"
28234 else
28235   echo "$as_me: failed program was:" >&5
28236 sed 's/^/| /' conftest.$ac_ext >&5
28237
28238 eval "$as_ac_var=no"
28239 fi
28240 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28241 fi
28242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28243 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28244 if test `eval echo '${'$as_ac_var'}'` = yes; then
28245   cat >>confdefs.h <<_ACEOF
28246 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28247 _ACEOF
28248  break
28249 fi
28250 done
28251
28252
28253
28254
28255 ac_ext=cc
28256 ac_cpp='$CXXCPP $CPPFLAGS'
28257 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28258 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28259 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28260
28261
28262
28263 for ac_func in strtok_r
28264 do
28265 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28266 echo "$as_me:$LINENO: checking for $ac_func" >&5
28267 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28268 if eval "test \"\${$as_ac_var+set}\" = set"; then
28269   echo $ECHO_N "(cached) $ECHO_C" >&6
28270 else
28271   cat >conftest.$ac_ext <<_ACEOF
28272 #line $LINENO "configure"
28273 /* confdefs.h.  */
28274 _ACEOF
28275 cat confdefs.h >>conftest.$ac_ext
28276 cat >>conftest.$ac_ext <<_ACEOF
28277 /* end confdefs.h.  */
28278 /* System header to define __stub macros and hopefully few prototypes,
28279     which can conflict with char $ac_func (); below.
28280     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28281     <limits.h> exists even on freestanding compilers.  */
28282 #ifdef __STDC__
28283 # include <limits.h>
28284 #else
28285 # include <assert.h>
28286 #endif
28287 /* Override any gcc2 internal prototype to avoid an error.  */
28288 #ifdef __cplusplus
28289 extern "C"
28290 {
28291 #endif
28292 /* We use char because int might match the return type of a gcc2
28293    builtin and then its argument prototype would still apply.  */
28294 char $ac_func ();
28295 /* The GNU C library defines this for functions which it implements
28296     to always fail with ENOSYS.  Some functions are actually named
28297     something starting with __ and the normal name is an alias.  */
28298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28299 choke me
28300 #else
28301 char (*f) () = $ac_func;
28302 #endif
28303 #ifdef __cplusplus
28304 }
28305 #endif
28306
28307 int
28308 main ()
28309 {
28310 return f != $ac_func;
28311   ;
28312   return 0;
28313 }
28314 _ACEOF
28315 rm -f conftest.$ac_objext conftest$ac_exeext
28316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28317   (eval $ac_link) 2>&5
28318   ac_status=$?
28319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28320   (exit $ac_status); } &&
28321          { ac_try='test -s conftest$ac_exeext'
28322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28323   (eval $ac_try) 2>&5
28324   ac_status=$?
28325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28326   (exit $ac_status); }; }; then
28327   eval "$as_ac_var=yes"
28328 else
28329   echo "$as_me: failed program was:" >&5
28330 sed 's/^/| /' conftest.$ac_ext >&5
28331
28332 eval "$as_ac_var=no"
28333 fi
28334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28335 fi
28336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28337 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28338 if test `eval echo '${'$as_ac_var'}'` = yes; then
28339   cat >>confdefs.h <<_ACEOF
28340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28341 _ACEOF
28342
28343 fi
28344 done
28345
28346
28347 ac_ext=c
28348 ac_cpp='$CPP $CPPFLAGS'
28349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28352
28353
28354 INET_LINK=
28355
28356 for ac_func in inet_addr
28357 do
28358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28359 echo "$as_me:$LINENO: checking for $ac_func" >&5
28360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28361 if eval "test \"\${$as_ac_var+set}\" = set"; then
28362   echo $ECHO_N "(cached) $ECHO_C" >&6
28363 else
28364   cat >conftest.$ac_ext <<_ACEOF
28365 #line $LINENO "configure"
28366 /* confdefs.h.  */
28367 _ACEOF
28368 cat confdefs.h >>conftest.$ac_ext
28369 cat >>conftest.$ac_ext <<_ACEOF
28370 /* end confdefs.h.  */
28371 /* System header to define __stub macros and hopefully few prototypes,
28372     which can conflict with char $ac_func (); below.
28373     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28374     <limits.h> exists even on freestanding compilers.  */
28375 #ifdef __STDC__
28376 # include <limits.h>
28377 #else
28378 # include <assert.h>
28379 #endif
28380 /* Override any gcc2 internal prototype to avoid an error.  */
28381 #ifdef __cplusplus
28382 extern "C"
28383 {
28384 #endif
28385 /* We use char because int might match the return type of a gcc2
28386    builtin and then its argument prototype would still apply.  */
28387 char $ac_func ();
28388 /* The GNU C library defines this for functions which it implements
28389     to always fail with ENOSYS.  Some functions are actually named
28390     something starting with __ and the normal name is an alias.  */
28391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28392 choke me
28393 #else
28394 char (*f) () = $ac_func;
28395 #endif
28396 #ifdef __cplusplus
28397 }
28398 #endif
28399
28400 int
28401 main ()
28402 {
28403 return f != $ac_func;
28404   ;
28405   return 0;
28406 }
28407 _ACEOF
28408 rm -f conftest.$ac_objext conftest$ac_exeext
28409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28410   (eval $ac_link) 2>&5
28411   ac_status=$?
28412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28413   (exit $ac_status); } &&
28414          { ac_try='test -s conftest$ac_exeext'
28415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28416   (eval $ac_try) 2>&5
28417   ac_status=$?
28418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28419   (exit $ac_status); }; }; then
28420   eval "$as_ac_var=yes"
28421 else
28422   echo "$as_me: failed program was:" >&5
28423 sed 's/^/| /' conftest.$ac_ext >&5
28424
28425 eval "$as_ac_var=no"
28426 fi
28427 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28428 fi
28429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28430 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28431 if test `eval echo '${'$as_ac_var'}'` = yes; then
28432   cat >>confdefs.h <<_ACEOF
28433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28434 _ACEOF
28435  cat >>confdefs.h <<\_ACEOF
28436 #define HAVE_INET_ADDR 1
28437 _ACEOF
28438
28439 else
28440
28441         echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
28442 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
28443 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
28444   echo $ECHO_N "(cached) $ECHO_C" >&6
28445 else
28446   ac_check_lib_save_LIBS=$LIBS
28447 LIBS="-lnsl  $LIBS"
28448 cat >conftest.$ac_ext <<_ACEOF
28449 #line $LINENO "configure"
28450 /* confdefs.h.  */
28451 _ACEOF
28452 cat confdefs.h >>conftest.$ac_ext
28453 cat >>conftest.$ac_ext <<_ACEOF
28454 /* end confdefs.h.  */
28455
28456 /* Override any gcc2 internal prototype to avoid an error.  */
28457 #ifdef __cplusplus
28458 extern "C"
28459 #endif
28460 /* We use char because int might match the return type of a gcc2
28461    builtin and then its argument prototype would still apply.  */
28462 char inet_addr ();
28463 int
28464 main ()
28465 {
28466 inet_addr ();
28467   ;
28468   return 0;
28469 }
28470 _ACEOF
28471 rm -f conftest.$ac_objext conftest$ac_exeext
28472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28473   (eval $ac_link) 2>&5
28474   ac_status=$?
28475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28476   (exit $ac_status); } &&
28477          { ac_try='test -s conftest$ac_exeext'
28478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28479   (eval $ac_try) 2>&5
28480   ac_status=$?
28481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28482   (exit $ac_status); }; }; then
28483   ac_cv_lib_nsl_inet_addr=yes
28484 else
28485   echo "$as_me: failed program was:" >&5
28486 sed 's/^/| /' conftest.$ac_ext >&5
28487
28488 ac_cv_lib_nsl_inet_addr=no
28489 fi
28490 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28491 LIBS=$ac_check_lib_save_LIBS
28492 fi
28493 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
28494 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
28495 if test $ac_cv_lib_nsl_inet_addr = yes; then
28496   INET_LINK="nsl"
28497 else
28498   echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
28499 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
28500 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
28501   echo $ECHO_N "(cached) $ECHO_C" >&6
28502 else
28503   ac_check_lib_save_LIBS=$LIBS
28504 LIBS="-lresolv  $LIBS"
28505 cat >conftest.$ac_ext <<_ACEOF
28506 #line $LINENO "configure"
28507 /* confdefs.h.  */
28508 _ACEOF
28509 cat confdefs.h >>conftest.$ac_ext
28510 cat >>conftest.$ac_ext <<_ACEOF
28511 /* end confdefs.h.  */
28512
28513 /* Override any gcc2 internal prototype to avoid an error.  */
28514 #ifdef __cplusplus
28515 extern "C"
28516 #endif
28517 /* We use char because int might match the return type of a gcc2
28518    builtin and then its argument prototype would still apply.  */
28519 char inet_addr ();
28520 int
28521 main ()
28522 {
28523 inet_addr ();
28524   ;
28525   return 0;
28526 }
28527 _ACEOF
28528 rm -f conftest.$ac_objext conftest$ac_exeext
28529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28530   (eval $ac_link) 2>&5
28531   ac_status=$?
28532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28533   (exit $ac_status); } &&
28534          { ac_try='test -s conftest$ac_exeext'
28535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28536   (eval $ac_try) 2>&5
28537   ac_status=$?
28538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28539   (exit $ac_status); }; }; then
28540   ac_cv_lib_resolv_inet_addr=yes
28541 else
28542   echo "$as_me: failed program was:" >&5
28543 sed 's/^/| /' conftest.$ac_ext >&5
28544
28545 ac_cv_lib_resolv_inet_addr=no
28546 fi
28547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28548 LIBS=$ac_check_lib_save_LIBS
28549 fi
28550 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
28551 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
28552 if test $ac_cv_lib_resolv_inet_addr = yes; then
28553   INET_LINK="resolv"
28554 else
28555   echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
28556 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
28557 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
28558   echo $ECHO_N "(cached) $ECHO_C" >&6
28559 else
28560   ac_check_lib_save_LIBS=$LIBS
28561 LIBS="-lsocket  $LIBS"
28562 cat >conftest.$ac_ext <<_ACEOF
28563 #line $LINENO "configure"
28564 /* confdefs.h.  */
28565 _ACEOF
28566 cat confdefs.h >>conftest.$ac_ext
28567 cat >>conftest.$ac_ext <<_ACEOF
28568 /* end confdefs.h.  */
28569
28570 /* Override any gcc2 internal prototype to avoid an error.  */
28571 #ifdef __cplusplus
28572 extern "C"
28573 #endif
28574 /* We use char because int might match the return type of a gcc2
28575    builtin and then its argument prototype would still apply.  */
28576 char inet_addr ();
28577 int
28578 main ()
28579 {
28580 inet_addr ();
28581   ;
28582   return 0;
28583 }
28584 _ACEOF
28585 rm -f conftest.$ac_objext conftest$ac_exeext
28586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28587   (eval $ac_link) 2>&5
28588   ac_status=$?
28589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28590   (exit $ac_status); } &&
28591          { ac_try='test -s conftest$ac_exeext'
28592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28593   (eval $ac_try) 2>&5
28594   ac_status=$?
28595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28596   (exit $ac_status); }; }; then
28597   ac_cv_lib_socket_inet_addr=yes
28598 else
28599   echo "$as_me: failed program was:" >&5
28600 sed 's/^/| /' conftest.$ac_ext >&5
28601
28602 ac_cv_lib_socket_inet_addr=no
28603 fi
28604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28605 LIBS=$ac_check_lib_save_LIBS
28606 fi
28607 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
28608 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
28609 if test $ac_cv_lib_socket_inet_addr = yes; then
28610   INET_LINK="socket"
28611
28612 fi
28613
28614
28615 fi
28616
28617
28618 fi
28619
28620
28621
28622 fi
28623 done
28624
28625
28626
28627 for ac_func in inet_aton
28628 do
28629 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28630 echo "$as_me:$LINENO: checking for $ac_func" >&5
28631 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28632 if eval "test \"\${$as_ac_var+set}\" = set"; then
28633   echo $ECHO_N "(cached) $ECHO_C" >&6
28634 else
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 /* System header to define __stub macros and hopefully few prototypes,
28643     which can conflict with char $ac_func (); below.
28644     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28645     <limits.h> exists even on freestanding compilers.  */
28646 #ifdef __STDC__
28647 # include <limits.h>
28648 #else
28649 # include <assert.h>
28650 #endif
28651 /* Override any gcc2 internal prototype to avoid an error.  */
28652 #ifdef __cplusplus
28653 extern "C"
28654 {
28655 #endif
28656 /* We use char because int might match the return type of a gcc2
28657    builtin and then its argument prototype would still apply.  */
28658 char $ac_func ();
28659 /* The GNU C library defines this for functions which it implements
28660     to always fail with ENOSYS.  Some functions are actually named
28661     something starting with __ and the normal name is an alias.  */
28662 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28663 choke me
28664 #else
28665 char (*f) () = $ac_func;
28666 #endif
28667 #ifdef __cplusplus
28668 }
28669 #endif
28670
28671 int
28672 main ()
28673 {
28674 return f != $ac_func;
28675   ;
28676   return 0;
28677 }
28678 _ACEOF
28679 rm -f conftest.$ac_objext conftest$ac_exeext
28680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28681   (eval $ac_link) 2>&5
28682   ac_status=$?
28683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684   (exit $ac_status); } &&
28685          { ac_try='test -s conftest$ac_exeext'
28686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28687   (eval $ac_try) 2>&5
28688   ac_status=$?
28689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28690   (exit $ac_status); }; }; then
28691   eval "$as_ac_var=yes"
28692 else
28693   echo "$as_me: failed program was:" >&5
28694 sed 's/^/| /' conftest.$ac_ext >&5
28695
28696 eval "$as_ac_var=no"
28697 fi
28698 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28699 fi
28700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28701 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28702 if test `eval echo '${'$as_ac_var'}'` = yes; then
28703   cat >>confdefs.h <<_ACEOF
28704 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28705 _ACEOF
28706  cat >>confdefs.h <<\_ACEOF
28707 #define HAVE_INET_ATON 1
28708 _ACEOF
28709
28710 else
28711
28712                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
28713 echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
28714 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
28715 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
28716   echo $ECHO_N "(cached) $ECHO_C" >&6
28717 else
28718   ac_check_lib_save_LIBS=$LIBS
28719 LIBS="-l$INET_LINK  $LIBS"
28720 cat >conftest.$ac_ext <<_ACEOF
28721 #line $LINENO "configure"
28722 /* confdefs.h.  */
28723 _ACEOF
28724 cat confdefs.h >>conftest.$ac_ext
28725 cat >>conftest.$ac_ext <<_ACEOF
28726 /* end confdefs.h.  */
28727
28728 /* Override any gcc2 internal prototype to avoid an error.  */
28729 #ifdef __cplusplus
28730 extern "C"
28731 #endif
28732 /* We use char because int might match the return type of a gcc2
28733    builtin and then its argument prototype would still apply.  */
28734 char inet_aton ();
28735 int
28736 main ()
28737 {
28738 inet_aton ();
28739   ;
28740   return 0;
28741 }
28742 _ACEOF
28743 rm -f conftest.$ac_objext conftest$ac_exeext
28744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28745   (eval $ac_link) 2>&5
28746   ac_status=$?
28747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28748   (exit $ac_status); } &&
28749          { ac_try='test -s conftest$ac_exeext'
28750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28751   (eval $ac_try) 2>&5
28752   ac_status=$?
28753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28754   (exit $ac_status); }; }; then
28755   eval "$as_ac_Lib=yes"
28756 else
28757   echo "$as_me: failed program was:" >&5
28758 sed 's/^/| /' conftest.$ac_ext >&5
28759
28760 eval "$as_ac_Lib=no"
28761 fi
28762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28763 LIBS=$ac_check_lib_save_LIBS
28764 fi
28765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
28766 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
28767 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
28768   cat >>confdefs.h <<\_ACEOF
28769 #define HAVE_INET_ATON 1
28770 _ACEOF
28771
28772 fi
28773
28774
28775 fi
28776 done
28777
28778
28779 if test "x$INET_LINK" != "x"; then
28780     cat >>confdefs.h <<\_ACEOF
28781 #define HAVE_INET_ADDR 1
28782 _ACEOF
28783
28784     INET_LINK=" -l$INET_LINK"
28785 fi
28786
28787 fi
28788
28789
28790
28791 EXTRALIBS_ESD=
28792 echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
28793 echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
28794 if test "${ac_cv_lib_esd_esd_close+set}" = set; then
28795   echo $ECHO_N "(cached) $ECHO_C" >&6
28796 else
28797   ac_check_lib_save_LIBS=$LIBS
28798 LIBS="-lesd  $LIBS"
28799 cat >conftest.$ac_ext <<_ACEOF
28800 #line $LINENO "configure"
28801 /* confdefs.h.  */
28802 _ACEOF
28803 cat confdefs.h >>conftest.$ac_ext
28804 cat >>conftest.$ac_ext <<_ACEOF
28805 /* end confdefs.h.  */
28806
28807 /* Override any gcc2 internal prototype to avoid an error.  */
28808 #ifdef __cplusplus
28809 extern "C"
28810 #endif
28811 /* We use char because int might match the return type of a gcc2
28812    builtin and then its argument prototype would still apply.  */
28813 char esd_close ();
28814 int
28815 main ()
28816 {
28817 esd_close ();
28818   ;
28819   return 0;
28820 }
28821 _ACEOF
28822 rm -f conftest.$ac_objext conftest$ac_exeext
28823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28824   (eval $ac_link) 2>&5
28825   ac_status=$?
28826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28827   (exit $ac_status); } &&
28828          { ac_try='test -s conftest$ac_exeext'
28829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28830   (eval $ac_try) 2>&5
28831   ac_status=$?
28832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28833   (exit $ac_status); }; }; then
28834   ac_cv_lib_esd_esd_close=yes
28835 else
28836   echo "$as_me: failed program was:" >&5
28837 sed 's/^/| /' conftest.$ac_ext >&5
28838
28839 ac_cv_lib_esd_esd_close=no
28840 fi
28841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
28842 LIBS=$ac_check_lib_save_LIBS
28843 fi
28844 echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
28845 echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
28846 if test $ac_cv_lib_esd_esd_close = yes; then
28847
28848
28849 for ac_header in esd.h
28850 do
28851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28853   echo "$as_me:$LINENO: checking for $ac_header" >&5
28854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28855 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28856   echo $ECHO_N "(cached) $ECHO_C" >&6
28857 fi
28858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28859 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28860 else
28861   # Is the header compilable?
28862 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28863 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28864 cat >conftest.$ac_ext <<_ACEOF
28865 #line $LINENO "configure"
28866 /* confdefs.h.  */
28867 _ACEOF
28868 cat confdefs.h >>conftest.$ac_ext
28869 cat >>conftest.$ac_ext <<_ACEOF
28870 /* end confdefs.h.  */
28871 $ac_includes_default
28872 #include <$ac_header>
28873 _ACEOF
28874 rm -f conftest.$ac_objext
28875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28876   (eval $ac_compile) 2>&5
28877   ac_status=$?
28878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28879   (exit $ac_status); } &&
28880          { ac_try='test -s conftest.$ac_objext'
28881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28882   (eval $ac_try) 2>&5
28883   ac_status=$?
28884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28885   (exit $ac_status); }; }; then
28886   ac_header_compiler=yes
28887 else
28888   echo "$as_me: failed program was:" >&5
28889 sed 's/^/| /' conftest.$ac_ext >&5
28890
28891 ac_header_compiler=no
28892 fi
28893 rm -f conftest.$ac_objext conftest.$ac_ext
28894 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28895 echo "${ECHO_T}$ac_header_compiler" >&6
28896
28897 # Is the header present?
28898 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28899 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28900 cat >conftest.$ac_ext <<_ACEOF
28901 #line $LINENO "configure"
28902 /* confdefs.h.  */
28903 _ACEOF
28904 cat confdefs.h >>conftest.$ac_ext
28905 cat >>conftest.$ac_ext <<_ACEOF
28906 /* end confdefs.h.  */
28907 #include <$ac_header>
28908 _ACEOF
28909 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28910   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28911   ac_status=$?
28912   grep -v '^ *+' conftest.er1 >conftest.err
28913   rm -f conftest.er1
28914   cat conftest.err >&5
28915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28916   (exit $ac_status); } >/dev/null; then
28917   if test -s conftest.err; then
28918     ac_cpp_err=$ac_c_preproc_warn_flag
28919   else
28920     ac_cpp_err=
28921   fi
28922 else
28923   ac_cpp_err=yes
28924 fi
28925 if test -z "$ac_cpp_err"; then
28926   ac_header_preproc=yes
28927 else
28928   echo "$as_me: failed program was:" >&5
28929 sed 's/^/| /' conftest.$ac_ext >&5
28930
28931   ac_header_preproc=no
28932 fi
28933 rm -f conftest.err conftest.$ac_ext
28934 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28935 echo "${ECHO_T}$ac_header_preproc" >&6
28936
28937 # So?  What about this header?
28938 case $ac_header_compiler:$ac_header_preproc in
28939   yes:no )
28940     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28941 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28942     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28943 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28944     (
28945       cat <<\_ASBOX
28946 ## ------------------------------------ ##
28947 ## Report this to bug-autoconf@gnu.org. ##
28948 ## ------------------------------------ ##
28949 _ASBOX
28950     ) |
28951       sed "s/^/$as_me: WARNING:     /" >&2
28952     ;;
28953   no:yes )
28954     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28956     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28957 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28958     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28959 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28960     (
28961       cat <<\_ASBOX
28962 ## ------------------------------------ ##
28963 ## Report this to bug-autoconf@gnu.org. ##
28964 ## ------------------------------------ ##
28965 _ASBOX
28966     ) |
28967       sed "s/^/$as_me: WARNING:     /" >&2
28968     ;;
28969 esac
28970 echo "$as_me:$LINENO: checking for $ac_header" >&5
28971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28973   echo $ECHO_N "(cached) $ECHO_C" >&6
28974 else
28975   eval "$as_ac_Header=$ac_header_preproc"
28976 fi
28977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28978 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28979
28980 fi
28981 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28982   cat >>confdefs.h <<_ACEOF
28983 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28984 _ACEOF
28985
28986     EXTRALIBS_ESD="-lesd"
28987
28988 fi
28989
28990 done
28991
28992
28993 fi
28994
28995
28996
28997
28998
28999 cat >confcache <<\_ACEOF
29000 # This file is a shell script that caches the results of configure
29001 # tests run on this system so they can be shared between configure
29002 # scripts and configure runs, see configure's option --config-cache.
29003 # It is not useful on other systems.  If it contains results you don't
29004 # want to keep, you may remove or edit it.
29005 #
29006 # config.status only pays attention to the cache file if you give it
29007 # the --recheck option to rerun configure.
29008 #
29009 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29010 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29011 # following values.
29012
29013 _ACEOF
29014
29015 # The following way of writing the cache mishandles newlines in values,
29016 # but we know of no workaround that is simple, portable, and efficient.
29017 # So, don't put newlines in cache variables' values.
29018 # Ultrix sh set writes to stderr and can't be redirected directly,
29019 # and sets the high bit in the cache file unless we assign to the vars.
29020 {
29021   (set) 2>&1 |
29022     case `(ac_space=' '; set | grep ac_space) 2>&1` in
29023     *ac_space=\ *)
29024       # `set' does not quote correctly, so add quotes (double-quote
29025       # substitution turns \\\\ into \\, and sed turns \\ into \).
29026       sed -n \
29027         "s/'/'\\\\''/g;
29028           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29029       ;;
29030     *)
29031       # `set' quotes correctly as required by POSIX, so do not add quotes.
29032       sed -n \
29033         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29034       ;;
29035     esac;
29036 } |
29037   sed '
29038      t clear
29039      : clear
29040      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29041      t end
29042      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29043      : end' >>confcache
29044 if diff $cache_file confcache >/dev/null 2>&1; then :; else
29045   if test -w $cache_file; then
29046     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29047     cat confcache >$cache_file
29048   else
29049     echo "not updating unwritable cache $cache_file"
29050   fi
29051 fi
29052 rm -f confcache
29053
29054
29055 CPP_MT_FLAG=
29056 if test "$TOOLKIT" != "MSW"; then
29057
29058
29059     THREADS_LINK=
29060     THREADS_CFLAGS=
29061
29062     if test "$wxUSE_THREADS" = "yes" ; then
29063         if test "$USE_BEOS" = 1; then
29064             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
29065 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
29066             wxUSE_THREADS="no"
29067         fi
29068     fi
29069
29070     if test "$wxUSE_THREADS" = "yes" ; then
29071
29072
29073                                 THREAD_OPTS="-pthread"
29074         case "${host}" in
29075           *-*-solaris2* | *-*-sunos4* )
29076                 if test "x$GCC" = "xyes"; then
29077                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
29078                 else
29079                     THREAD_OPTS="-mt $THREAD_OPTS"
29080                 fi
29081                 ;;
29082           *-*-freebsd*)
29083                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
29084                 ;;
29085           *-*-darwin* | *-*-cygwin* )
29086                                                 THREAD_OPTS=""
29087                 ;;
29088           *-*-aix*)
29089                                 THREAD_OPTS="pthreads"
29090                 ;;
29091           *-hp-hpux* )
29092                                                                 if test "x$GCC" != "xyes"; then
29093                     THREAD_OPTS=""
29094                 fi
29095                 ;;
29096
29097           *-*-irix* )
29098                                                                 if test "x$GCC" = "xyes"; then
29099                     THREAD_OPTS=""
29100                 fi
29101                 ;;
29102
29103           *-*-*UnixWare*)
29104                                 if test "x$GCC" != "xyes"; then
29105                     THREAD_OPTS="-Ethread"
29106                 fi
29107                 ;;
29108         esac
29109
29110                                 THREAD_OPTS="$THREAD_OPTS pthread none"
29111
29112                 THREADS_OK=no
29113         for flag in $THREAD_OPTS; do
29114             case $flag in
29115                 none)
29116                     echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
29117 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
29118                     ;;
29119
29120                 -*)
29121                     echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
29122 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
29123                     THREADS_CFLAGS="$flag"
29124                     ;;
29125
29126                 *)
29127                     echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
29128 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
29129                     THREADS_LINK="-l$flag"
29130                     ;;
29131               esac
29132
29133               save_LIBS="$LIBS"
29134               save_CFLAGS="$CFLAGS"
29135               LIBS="$THREADS_LINK $LIBS"
29136               CFLAGS="$THREADS_CFLAGS $CFLAGS"
29137
29138               cat >conftest.$ac_ext <<_ACEOF
29139 #line $LINENO "configure"
29140 /* confdefs.h.  */
29141 _ACEOF
29142 cat confdefs.h >>conftest.$ac_ext
29143 cat >>conftest.$ac_ext <<_ACEOF
29144 /* end confdefs.h.  */
29145 #include <pthread.h>
29146 int
29147 main ()
29148 {
29149 pthread_create(0,0,0,0);
29150   ;
29151   return 0;
29152 }
29153 _ACEOF
29154 rm -f conftest.$ac_objext conftest$ac_exeext
29155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29156   (eval $ac_link) 2>&5
29157   ac_status=$?
29158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29159   (exit $ac_status); } &&
29160          { ac_try='test -s conftest$ac_exeext'
29161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29162   (eval $ac_try) 2>&5
29163   ac_status=$?
29164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29165   (exit $ac_status); }; }; then
29166   THREADS_OK=yes
29167 else
29168   echo "$as_me: failed program was:" >&5
29169 sed 's/^/| /' conftest.$ac_ext >&5
29170
29171 fi
29172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29173
29174               LIBS="$save_LIBS"
29175               CFLAGS="$save_CFLAGS"
29176
29177               echo "$as_me:$LINENO: result: $THREADS_OK" >&5
29178 echo "${ECHO_T}$THREADS_OK" >&6
29179               if test "x$THREADS_OK" = "xyes"; then
29180                       break;
29181               fi
29182
29183               THREADS_LINK=""
29184               THREADS_CFLAGS=""
29185       done
29186
29187       if test "x$THREADS_OK" != "xyes"; then
29188           wxUSE_THREADS=no
29189           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
29190 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
29191       else
29192                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
29193           LIBS="$THREADS_LINK $LIBS"
29194
29195           echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
29196 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
29197           flag=no
29198           case "${host}" in
29199             *-aix*)
29200                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
29201                 flag="-D_THREAD_SAFE"
29202                 ;;
29203             *-freebsd*)
29204                 flag="-D_THREAD_SAFE"
29205                 ;;
29206             *-hp-hpux* )
29207                 flag="-D_REENTRANT"
29208                 if test "x$GCC" != "xyes"; then
29209                                         flag="$flag -D_RWSTD_MULTI_THREAD"
29210                 fi
29211                 ;;
29212             *solaris* | alpha*-osf*)
29213                 flag="-D_REENTRANT"
29214                 ;;
29215           esac
29216           echo "$as_me:$LINENO: result: ${flag}" >&5
29217 echo "${ECHO_T}${flag}" >&6
29218           if test "x$flag" != xno; then
29219               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
29220           fi
29221
29222           if test "x$THREADS_CFLAGS" != "x"; then
29223                         CFLAGS="$CFLAGS $THREADS_CFLAGS"
29224             CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
29225           fi
29226       fi
29227     fi
29228
29229         if test "$wxUSE_THREADS" = "yes" ; then
29230
29231 for ac_func in thr_setconcurrency
29232 do
29233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29234 echo "$as_me:$LINENO: checking for $ac_func" >&5
29235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29236 if eval "test \"\${$as_ac_var+set}\" = set"; then
29237   echo $ECHO_N "(cached) $ECHO_C" >&6
29238 else
29239   cat >conftest.$ac_ext <<_ACEOF
29240 #line $LINENO "configure"
29241 /* confdefs.h.  */
29242 _ACEOF
29243 cat confdefs.h >>conftest.$ac_ext
29244 cat >>conftest.$ac_ext <<_ACEOF
29245 /* end confdefs.h.  */
29246 /* System header to define __stub macros and hopefully few prototypes,
29247     which can conflict with char $ac_func (); below.
29248     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29249     <limits.h> exists even on freestanding compilers.  */
29250 #ifdef __STDC__
29251 # include <limits.h>
29252 #else
29253 # include <assert.h>
29254 #endif
29255 /* Override any gcc2 internal prototype to avoid an error.  */
29256 #ifdef __cplusplus
29257 extern "C"
29258 {
29259 #endif
29260 /* We use char because int might match the return type of a gcc2
29261    builtin and then its argument prototype would still apply.  */
29262 char $ac_func ();
29263 /* The GNU C library defines this for functions which it implements
29264     to always fail with ENOSYS.  Some functions are actually named
29265     something starting with __ and the normal name is an alias.  */
29266 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29267 choke me
29268 #else
29269 char (*f) () = $ac_func;
29270 #endif
29271 #ifdef __cplusplus
29272 }
29273 #endif
29274
29275 int
29276 main ()
29277 {
29278 return f != $ac_func;
29279   ;
29280   return 0;
29281 }
29282 _ACEOF
29283 rm -f conftest.$ac_objext conftest$ac_exeext
29284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29285   (eval $ac_link) 2>&5
29286   ac_status=$?
29287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29288   (exit $ac_status); } &&
29289          { ac_try='test -s conftest$ac_exeext'
29290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29291   (eval $ac_try) 2>&5
29292   ac_status=$?
29293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294   (exit $ac_status); }; }; then
29295   eval "$as_ac_var=yes"
29296 else
29297   echo "$as_me: failed program was:" >&5
29298 sed 's/^/| /' conftest.$ac_ext >&5
29299
29300 eval "$as_ac_var=no"
29301 fi
29302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29303 fi
29304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29305 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29306 if test `eval echo '${'$as_ac_var'}'` = yes; then
29307   cat >>confdefs.h <<_ACEOF
29308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29309 _ACEOF
29310
29311 fi
29312 done
29313
29314
29315
29316 for ac_header in sched.h
29317 do
29318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29320   echo "$as_me:$LINENO: checking for $ac_header" >&5
29321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29323   echo $ECHO_N "(cached) $ECHO_C" >&6
29324 fi
29325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29327 else
29328   # Is the header compilable?
29329 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29331 cat >conftest.$ac_ext <<_ACEOF
29332 #line $LINENO "configure"
29333 /* confdefs.h.  */
29334 _ACEOF
29335 cat confdefs.h >>conftest.$ac_ext
29336 cat >>conftest.$ac_ext <<_ACEOF
29337 /* end confdefs.h.  */
29338 $ac_includes_default
29339 #include <$ac_header>
29340 _ACEOF
29341 rm -f conftest.$ac_objext
29342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29343   (eval $ac_compile) 2>&5
29344   ac_status=$?
29345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29346   (exit $ac_status); } &&
29347          { ac_try='test -s conftest.$ac_objext'
29348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29349   (eval $ac_try) 2>&5
29350   ac_status=$?
29351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29352   (exit $ac_status); }; }; then
29353   ac_header_compiler=yes
29354 else
29355   echo "$as_me: failed program was:" >&5
29356 sed 's/^/| /' conftest.$ac_ext >&5
29357
29358 ac_header_compiler=no
29359 fi
29360 rm -f conftest.$ac_objext conftest.$ac_ext
29361 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29362 echo "${ECHO_T}$ac_header_compiler" >&6
29363
29364 # Is the header present?
29365 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29367 cat >conftest.$ac_ext <<_ACEOF
29368 #line $LINENO "configure"
29369 /* confdefs.h.  */
29370 _ACEOF
29371 cat confdefs.h >>conftest.$ac_ext
29372 cat >>conftest.$ac_ext <<_ACEOF
29373 /* end confdefs.h.  */
29374 #include <$ac_header>
29375 _ACEOF
29376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29377   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29378   ac_status=$?
29379   grep -v '^ *+' conftest.er1 >conftest.err
29380   rm -f conftest.er1
29381   cat conftest.err >&5
29382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29383   (exit $ac_status); } >/dev/null; then
29384   if test -s conftest.err; then
29385     ac_cpp_err=$ac_c_preproc_warn_flag
29386   else
29387     ac_cpp_err=
29388   fi
29389 else
29390   ac_cpp_err=yes
29391 fi
29392 if test -z "$ac_cpp_err"; then
29393   ac_header_preproc=yes
29394 else
29395   echo "$as_me: failed program was:" >&5
29396 sed 's/^/| /' conftest.$ac_ext >&5
29397
29398   ac_header_preproc=no
29399 fi
29400 rm -f conftest.err conftest.$ac_ext
29401 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29402 echo "${ECHO_T}$ac_header_preproc" >&6
29403
29404 # So?  What about this header?
29405 case $ac_header_compiler:$ac_header_preproc in
29406   yes:no )
29407     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29408 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29409     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29411     (
29412       cat <<\_ASBOX
29413 ## ------------------------------------ ##
29414 ## Report this to bug-autoconf@gnu.org. ##
29415 ## ------------------------------------ ##
29416 _ASBOX
29417     ) |
29418       sed "s/^/$as_me: WARNING:     /" >&2
29419     ;;
29420   no:yes )
29421     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29422 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29423     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29424 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29425     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29426 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29427     (
29428       cat <<\_ASBOX
29429 ## ------------------------------------ ##
29430 ## Report this to bug-autoconf@gnu.org. ##
29431 ## ------------------------------------ ##
29432 _ASBOX
29433     ) |
29434       sed "s/^/$as_me: WARNING:     /" >&2
29435     ;;
29436 esac
29437 echo "$as_me:$LINENO: checking for $ac_header" >&5
29438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29440   echo $ECHO_N "(cached) $ECHO_C" >&6
29441 else
29442   eval "$as_ac_Header=$ac_header_preproc"
29443 fi
29444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29445 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29446
29447 fi
29448 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29449   cat >>confdefs.h <<_ACEOF
29450 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29451 _ACEOF
29452
29453 fi
29454
29455 done
29456
29457       if test "$ac_cv_header_sched_h" = "yes"; then
29458           echo "$as_me:$LINENO: checking for sched_yield" >&5
29459 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
29460 if test "${ac_cv_func_sched_yield+set}" = set; then
29461   echo $ECHO_N "(cached) $ECHO_C" >&6
29462 else
29463   cat >conftest.$ac_ext <<_ACEOF
29464 #line $LINENO "configure"
29465 /* confdefs.h.  */
29466 _ACEOF
29467 cat confdefs.h >>conftest.$ac_ext
29468 cat >>conftest.$ac_ext <<_ACEOF
29469 /* end confdefs.h.  */
29470 /* System header to define __stub macros and hopefully few prototypes,
29471     which can conflict with char sched_yield (); below.
29472     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29473     <limits.h> exists even on freestanding compilers.  */
29474 #ifdef __STDC__
29475 # include <limits.h>
29476 #else
29477 # include <assert.h>
29478 #endif
29479 /* Override any gcc2 internal prototype to avoid an error.  */
29480 #ifdef __cplusplus
29481 extern "C"
29482 {
29483 #endif
29484 /* We use char because int might match the return type of a gcc2
29485    builtin and then its argument prototype would still apply.  */
29486 char sched_yield ();
29487 /* The GNU C library defines this for functions which it implements
29488     to always fail with ENOSYS.  Some functions are actually named
29489     something starting with __ and the normal name is an alias.  */
29490 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
29491 choke me
29492 #else
29493 char (*f) () = sched_yield;
29494 #endif
29495 #ifdef __cplusplus
29496 }
29497 #endif
29498
29499 int
29500 main ()
29501 {
29502 return f != sched_yield;
29503   ;
29504   return 0;
29505 }
29506 _ACEOF
29507 rm -f conftest.$ac_objext conftest$ac_exeext
29508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29509   (eval $ac_link) 2>&5
29510   ac_status=$?
29511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29512   (exit $ac_status); } &&
29513          { ac_try='test -s conftest$ac_exeext'
29514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29515   (eval $ac_try) 2>&5
29516   ac_status=$?
29517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29518   (exit $ac_status); }; }; then
29519   ac_cv_func_sched_yield=yes
29520 else
29521   echo "$as_me: failed program was:" >&5
29522 sed 's/^/| /' conftest.$ac_ext >&5
29523
29524 ac_cv_func_sched_yield=no
29525 fi
29526 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29527 fi
29528 echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
29529 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
29530 if test $ac_cv_func_sched_yield = yes; then
29531   cat >>confdefs.h <<\_ACEOF
29532 #define HAVE_SCHED_YIELD 1
29533 _ACEOF
29534
29535 else
29536
29537                 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
29538 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
29539 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
29540   echo $ECHO_N "(cached) $ECHO_C" >&6
29541 else
29542   ac_check_lib_save_LIBS=$LIBS
29543 LIBS="-lposix4  $LIBS"
29544 cat >conftest.$ac_ext <<_ACEOF
29545 #line $LINENO "configure"
29546 /* confdefs.h.  */
29547 _ACEOF
29548 cat confdefs.h >>conftest.$ac_ext
29549 cat >>conftest.$ac_ext <<_ACEOF
29550 /* end confdefs.h.  */
29551
29552 /* Override any gcc2 internal prototype to avoid an error.  */
29553 #ifdef __cplusplus
29554 extern "C"
29555 #endif
29556 /* We use char because int might match the return type of a gcc2
29557    builtin and then its argument prototype would still apply.  */
29558 char sched_yield ();
29559 int
29560 main ()
29561 {
29562 sched_yield ();
29563   ;
29564   return 0;
29565 }
29566 _ACEOF
29567 rm -f conftest.$ac_objext conftest$ac_exeext
29568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29569   (eval $ac_link) 2>&5
29570   ac_status=$?
29571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29572   (exit $ac_status); } &&
29573          { ac_try='test -s conftest$ac_exeext'
29574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29575   (eval $ac_try) 2>&5
29576   ac_status=$?
29577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29578   (exit $ac_status); }; }; then
29579   ac_cv_lib_posix4_sched_yield=yes
29580 else
29581   echo "$as_me: failed program was:" >&5
29582 sed 's/^/| /' conftest.$ac_ext >&5
29583
29584 ac_cv_lib_posix4_sched_yield=no
29585 fi
29586 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29587 LIBS=$ac_check_lib_save_LIBS
29588 fi
29589 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
29590 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
29591 if test $ac_cv_lib_posix4_sched_yield = yes; then
29592   cat >>confdefs.h <<\_ACEOF
29593 #define HAVE_SCHED_YIELD 1
29594 _ACEOF
29595  POSIX4_LINK=" -lposix4"
29596 else
29597   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
29598 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
29599
29600 fi
29601
29602
29603
29604 fi
29605
29606       fi
29607
29608                                           HAVE_PRIOR_FUNCS=0
29609       echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
29610 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
29611 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
29612   echo $ECHO_N "(cached) $ECHO_C" >&6
29613 else
29614   cat >conftest.$ac_ext <<_ACEOF
29615 #line $LINENO "configure"
29616 /* confdefs.h.  */
29617 _ACEOF
29618 cat confdefs.h >>conftest.$ac_ext
29619 cat >>conftest.$ac_ext <<_ACEOF
29620 /* end confdefs.h.  */
29621 /* System header to define __stub macros and hopefully few prototypes,
29622     which can conflict with char pthread_attr_getschedpolicy (); below.
29623     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29624     <limits.h> exists even on freestanding compilers.  */
29625 #ifdef __STDC__
29626 # include <limits.h>
29627 #else
29628 # include <assert.h>
29629 #endif
29630 /* Override any gcc2 internal prototype to avoid an error.  */
29631 #ifdef __cplusplus
29632 extern "C"
29633 {
29634 #endif
29635 /* We use char because int might match the return type of a gcc2
29636    builtin and then its argument prototype would still apply.  */
29637 char pthread_attr_getschedpolicy ();
29638 /* The GNU C library defines this for functions which it implements
29639     to always fail with ENOSYS.  Some functions are actually named
29640     something starting with __ and the normal name is an alias.  */
29641 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
29642 choke me
29643 #else
29644 char (*f) () = pthread_attr_getschedpolicy;
29645 #endif
29646 #ifdef __cplusplus
29647 }
29648 #endif
29649
29650 int
29651 main ()
29652 {
29653 return f != pthread_attr_getschedpolicy;
29654   ;
29655   return 0;
29656 }
29657 _ACEOF
29658 rm -f conftest.$ac_objext conftest$ac_exeext
29659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29660   (eval $ac_link) 2>&5
29661   ac_status=$?
29662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29663   (exit $ac_status); } &&
29664          { ac_try='test -s conftest$ac_exeext'
29665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29666   (eval $ac_try) 2>&5
29667   ac_status=$?
29668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29669   (exit $ac_status); }; }; then
29670   ac_cv_func_pthread_attr_getschedpolicy=yes
29671 else
29672   echo "$as_me: failed program was:" >&5
29673 sed 's/^/| /' conftest.$ac_ext >&5
29674
29675 ac_cv_func_pthread_attr_getschedpolicy=no
29676 fi
29677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29678 fi
29679 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
29680 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
29681 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
29682   echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
29683 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
29684 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
29685   echo $ECHO_N "(cached) $ECHO_C" >&6
29686 else
29687   cat >conftest.$ac_ext <<_ACEOF
29688 #line $LINENO "configure"
29689 /* confdefs.h.  */
29690 _ACEOF
29691 cat confdefs.h >>conftest.$ac_ext
29692 cat >>conftest.$ac_ext <<_ACEOF
29693 /* end confdefs.h.  */
29694 /* System header to define __stub macros and hopefully few prototypes,
29695     which can conflict with char pthread_attr_setschedparam (); below.
29696     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29697     <limits.h> exists even on freestanding compilers.  */
29698 #ifdef __STDC__
29699 # include <limits.h>
29700 #else
29701 # include <assert.h>
29702 #endif
29703 /* Override any gcc2 internal prototype to avoid an error.  */
29704 #ifdef __cplusplus
29705 extern "C"
29706 {
29707 #endif
29708 /* We use char because int might match the return type of a gcc2
29709    builtin and then its argument prototype would still apply.  */
29710 char pthread_attr_setschedparam ();
29711 /* The GNU C library defines this for functions which it implements
29712     to always fail with ENOSYS.  Some functions are actually named
29713     something starting with __ and the normal name is an alias.  */
29714 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
29715 choke me
29716 #else
29717 char (*f) () = pthread_attr_setschedparam;
29718 #endif
29719 #ifdef __cplusplus
29720 }
29721 #endif
29722
29723 int
29724 main ()
29725 {
29726 return f != pthread_attr_setschedparam;
29727   ;
29728   return 0;
29729 }
29730 _ACEOF
29731 rm -f conftest.$ac_objext conftest$ac_exeext
29732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29733   (eval $ac_link) 2>&5
29734   ac_status=$?
29735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29736   (exit $ac_status); } &&
29737          { ac_try='test -s conftest$ac_exeext'
29738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29739   (eval $ac_try) 2>&5
29740   ac_status=$?
29741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29742   (exit $ac_status); }; }; then
29743   ac_cv_func_pthread_attr_setschedparam=yes
29744 else
29745   echo "$as_me: failed program was:" >&5
29746 sed 's/^/| /' conftest.$ac_ext >&5
29747
29748 ac_cv_func_pthread_attr_setschedparam=no
29749 fi
29750 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29751 fi
29752 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
29753 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
29754 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
29755   echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
29756 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
29757 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
29758   echo $ECHO_N "(cached) $ECHO_C" >&6
29759 else
29760   cat >conftest.$ac_ext <<_ACEOF
29761 #line $LINENO "configure"
29762 /* confdefs.h.  */
29763 _ACEOF
29764 cat confdefs.h >>conftest.$ac_ext
29765 cat >>conftest.$ac_ext <<_ACEOF
29766 /* end confdefs.h.  */
29767 /* System header to define __stub macros and hopefully few prototypes,
29768     which can conflict with char sched_get_priority_max (); below.
29769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29770     <limits.h> exists even on freestanding compilers.  */
29771 #ifdef __STDC__
29772 # include <limits.h>
29773 #else
29774 # include <assert.h>
29775 #endif
29776 /* Override any gcc2 internal prototype to avoid an error.  */
29777 #ifdef __cplusplus
29778 extern "C"
29779 {
29780 #endif
29781 /* We use char because int might match the return type of a gcc2
29782    builtin and then its argument prototype would still apply.  */
29783 char sched_get_priority_max ();
29784 /* The GNU C library defines this for functions which it implements
29785     to always fail with ENOSYS.  Some functions are actually named
29786     something starting with __ and the normal name is an alias.  */
29787 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
29788 choke me
29789 #else
29790 char (*f) () = sched_get_priority_max;
29791 #endif
29792 #ifdef __cplusplus
29793 }
29794 #endif
29795
29796 int
29797 main ()
29798 {
29799 return f != sched_get_priority_max;
29800   ;
29801   return 0;
29802 }
29803 _ACEOF
29804 rm -f conftest.$ac_objext conftest$ac_exeext
29805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29806   (eval $ac_link) 2>&5
29807   ac_status=$?
29808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29809   (exit $ac_status); } &&
29810          { ac_try='test -s conftest$ac_exeext'
29811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29812   (eval $ac_try) 2>&5
29813   ac_status=$?
29814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29815   (exit $ac_status); }; }; then
29816   ac_cv_func_sched_get_priority_max=yes
29817 else
29818   echo "$as_me: failed program was:" >&5
29819 sed 's/^/| /' conftest.$ac_ext >&5
29820
29821 ac_cv_func_sched_get_priority_max=no
29822 fi
29823 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29824 fi
29825 echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
29826 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
29827 if test $ac_cv_func_sched_get_priority_max = yes; then
29828   HAVE_PRIOR_FUNCS=1
29829 else
29830   echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
29831 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
29832 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
29833   echo $ECHO_N "(cached) $ECHO_C" >&6
29834 else
29835   ac_check_lib_save_LIBS=$LIBS
29836 LIBS="-lposix4  $LIBS"
29837 cat >conftest.$ac_ext <<_ACEOF
29838 #line $LINENO "configure"
29839 /* confdefs.h.  */
29840 _ACEOF
29841 cat confdefs.h >>conftest.$ac_ext
29842 cat >>conftest.$ac_ext <<_ACEOF
29843 /* end confdefs.h.  */
29844
29845 /* Override any gcc2 internal prototype to avoid an error.  */
29846 #ifdef __cplusplus
29847 extern "C"
29848 #endif
29849 /* We use char because int might match the return type of a gcc2
29850    builtin and then its argument prototype would still apply.  */
29851 char sched_get_priority_max ();
29852 int
29853 main ()
29854 {
29855 sched_get_priority_max ();
29856   ;
29857   return 0;
29858 }
29859 _ACEOF
29860 rm -f conftest.$ac_objext conftest$ac_exeext
29861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29862   (eval $ac_link) 2>&5
29863   ac_status=$?
29864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29865   (exit $ac_status); } &&
29866          { ac_try='test -s conftest$ac_exeext'
29867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29868   (eval $ac_try) 2>&5
29869   ac_status=$?
29870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29871   (exit $ac_status); }; }; then
29872   ac_cv_lib_posix4_sched_get_priority_max=yes
29873 else
29874   echo "$as_me: failed program was:" >&5
29875 sed 's/^/| /' conftest.$ac_ext >&5
29876
29877 ac_cv_lib_posix4_sched_get_priority_max=no
29878 fi
29879 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29880 LIBS=$ac_check_lib_save_LIBS
29881 fi
29882 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
29883 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
29884 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
29885
29886                                 HAVE_PRIOR_FUNCS=1
29887                                 POSIX4_LINK=" -lposix4"
29888
29889 fi
29890
29891
29892 fi
29893
29894
29895 fi
29896
29897
29898 fi
29899
29900
29901       if test "$HAVE_PRIOR_FUNCS" = 1; then
29902         cat >>confdefs.h <<\_ACEOF
29903 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
29904 _ACEOF
29905
29906       else
29907         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
29908 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
29909       fi
29910
29911       echo "$as_me:$LINENO: checking for pthread_cancel" >&5
29912 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
29913 if test "${ac_cv_func_pthread_cancel+set}" = set; then
29914   echo $ECHO_N "(cached) $ECHO_C" >&6
29915 else
29916   cat >conftest.$ac_ext <<_ACEOF
29917 #line $LINENO "configure"
29918 /* confdefs.h.  */
29919 _ACEOF
29920 cat confdefs.h >>conftest.$ac_ext
29921 cat >>conftest.$ac_ext <<_ACEOF
29922 /* end confdefs.h.  */
29923 /* System header to define __stub macros and hopefully few prototypes,
29924     which can conflict with char pthread_cancel (); below.
29925     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29926     <limits.h> exists even on freestanding compilers.  */
29927 #ifdef __STDC__
29928 # include <limits.h>
29929 #else
29930 # include <assert.h>
29931 #endif
29932 /* Override any gcc2 internal prototype to avoid an error.  */
29933 #ifdef __cplusplus
29934 extern "C"
29935 {
29936 #endif
29937 /* We use char because int might match the return type of a gcc2
29938    builtin and then its argument prototype would still apply.  */
29939 char pthread_cancel ();
29940 /* The GNU C library defines this for functions which it implements
29941     to always fail with ENOSYS.  Some functions are actually named
29942     something starting with __ and the normal name is an alias.  */
29943 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
29944 choke me
29945 #else
29946 char (*f) () = pthread_cancel;
29947 #endif
29948 #ifdef __cplusplus
29949 }
29950 #endif
29951
29952 int
29953 main ()
29954 {
29955 return f != pthread_cancel;
29956   ;
29957   return 0;
29958 }
29959 _ACEOF
29960 rm -f conftest.$ac_objext conftest$ac_exeext
29961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29962   (eval $ac_link) 2>&5
29963   ac_status=$?
29964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29965   (exit $ac_status); } &&
29966          { ac_try='test -s conftest$ac_exeext'
29967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29968   (eval $ac_try) 2>&5
29969   ac_status=$?
29970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29971   (exit $ac_status); }; }; then
29972   ac_cv_func_pthread_cancel=yes
29973 else
29974   echo "$as_me: failed program was:" >&5
29975 sed 's/^/| /' conftest.$ac_ext >&5
29976
29977 ac_cv_func_pthread_cancel=no
29978 fi
29979 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
29980 fi
29981 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
29982 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
29983 if test $ac_cv_func_pthread_cancel = yes; then
29984   cat >>confdefs.h <<\_ACEOF
29985 #define HAVE_PTHREAD_CANCEL 1
29986 _ACEOF
29987
29988 else
29989   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
29990 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
29991 fi
29992
29993
29994       echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
29995 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
29996 if test "${wx_cv_func_pthread_cleanup_push+set}" = set; then
29997   echo $ECHO_N "(cached) $ECHO_C" >&6
29998 else
29999
30000         cat >conftest.$ac_ext <<_ACEOF
30001 #line $LINENO "configure"
30002 /* confdefs.h.  */
30003 _ACEOF
30004 cat confdefs.h >>conftest.$ac_ext
30005 cat >>conftest.$ac_ext <<_ACEOF
30006 /* end confdefs.h.  */
30007 #include <pthread.h>
30008 int
30009 main ()
30010 {
30011
30012                         pthread_cleanup_push(NULL, NULL);
30013                         pthread_cleanup_pop(0);
30014
30015   ;
30016   return 0;
30017 }
30018 _ACEOF
30019 rm -f conftest.$ac_objext
30020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30021   (eval $ac_compile) 2>&5
30022   ac_status=$?
30023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30024   (exit $ac_status); } &&
30025          { ac_try='test -s conftest.$ac_objext'
30026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30027   (eval $ac_try) 2>&5
30028   ac_status=$?
30029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30030   (exit $ac_status); }; }; then
30031
30032                         wx_cv_func_pthread_cleanup_push=yes
30033
30034 else
30035   echo "$as_me: failed program was:" >&5
30036 sed 's/^/| /' conftest.$ac_ext >&5
30037
30038
30039                         wx_cv_func_pthread_cleanup_push=no
30040
30041 fi
30042 rm -f conftest.$ac_objext conftest.$ac_ext
30043
30044 fi
30045 echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup_push" >&5
30046 echo "${ECHO_T}$wx_cv_func_pthread_cleanup_push" >&6
30047
30048       if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
30049           cat >>confdefs.h <<\_ACEOF
30050 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
30051 _ACEOF
30052
30053       fi
30054
30055
30056       echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
30057 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
30058 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
30059   echo $ECHO_N "(cached) $ECHO_C" >&6
30060 else
30061
30062         cat >conftest.$ac_ext <<_ACEOF
30063 #line $LINENO "configure"
30064 /* confdefs.h.  */
30065 _ACEOF
30066 cat confdefs.h >>conftest.$ac_ext
30067 cat >>conftest.$ac_ext <<_ACEOF
30068 /* end confdefs.h.  */
30069 #include <pthread.h>
30070 int
30071 main ()
30072 {
30073
30074                pthread_mutexattr_t attr;
30075                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
30076
30077   ;
30078   return 0;
30079 }
30080 _ACEOF
30081 rm -f conftest.$ac_objext
30082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30083   (eval $ac_compile) 2>&5
30084   ac_status=$?
30085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30086   (exit $ac_status); } &&
30087          { ac_try='test -s conftest.$ac_objext'
30088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30089   (eval $ac_try) 2>&5
30090   ac_status=$?
30091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30092   (exit $ac_status); }; }; then
30093
30094                wx_cv_type_pthread_mutexattr_t=yes
30095
30096 else
30097   echo "$as_me: failed program was:" >&5
30098 sed 's/^/| /' conftest.$ac_ext >&5
30099
30100
30101                wx_cv_type_pthread_mutexattr_t=no
30102
30103
30104 fi
30105 rm -f conftest.$ac_objext conftest.$ac_ext
30106
30107 fi
30108 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
30109 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
30110
30111       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
30112         cat >>confdefs.h <<\_ACEOF
30113 #define HAVE_PTHREAD_MUTEXATTR_T 1
30114 _ACEOF
30115
30116       else
30117                 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
30118 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
30119 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
30120   echo $ECHO_N "(cached) $ECHO_C" >&6
30121 else
30122
30123             cat >conftest.$ac_ext <<_ACEOF
30124 #line $LINENO "configure"
30125 /* confdefs.h.  */
30126 _ACEOF
30127 cat confdefs.h >>conftest.$ac_ext
30128 cat >>conftest.$ac_ext <<_ACEOF
30129 /* end confdefs.h.  */
30130 #include <pthread.h>
30131 int
30132 main ()
30133 {
30134
30135                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
30136
30137   ;
30138   return 0;
30139 }
30140 _ACEOF
30141 rm -f conftest.$ac_objext
30142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30143   (eval $ac_compile) 2>&5
30144   ac_status=$?
30145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30146   (exit $ac_status); } &&
30147          { ac_try='test -s conftest.$ac_objext'
30148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30149   (eval $ac_try) 2>&5
30150   ac_status=$?
30151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30152   (exit $ac_status); }; }; then
30153
30154                     wx_cv_type_pthread_rec_mutex_init=yes
30155
30156 else
30157   echo "$as_me: failed program was:" >&5
30158 sed 's/^/| /' conftest.$ac_ext >&5
30159
30160
30161                     wx_cv_type_pthread_rec_mutex_init=no
30162
30163
30164 fi
30165 rm -f conftest.$ac_objext conftest.$ac_ext
30166
30167 fi
30168 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
30169 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
30170         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
30171           cat >>confdefs.h <<\_ACEOF
30172 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
30173 _ACEOF
30174
30175         else
30176                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
30177 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
30178         fi
30179       fi
30180     fi
30181
30182 else
30183     if test "$wxUSE_THREADS" = "yes" ; then
30184       case "${host}" in
30185         *-*-mingw32* )
30186                         echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
30187 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
30188 if test "${wx_cv_cflags_mthread+set}" = set; then
30189   echo $ECHO_N "(cached) $ECHO_C" >&6
30190 else
30191
30192                     CFLAGS_OLD="$CFLAGS"
30193                     CFLAGS="$CFLAGS -mthreads"
30194                     cat >conftest.$ac_ext <<_ACEOF
30195 #line $LINENO "configure"
30196 /* confdefs.h.  */
30197 _ACEOF
30198 cat confdefs.h >>conftest.$ac_ext
30199 cat >>conftest.$ac_ext <<_ACEOF
30200 /* end confdefs.h.  */
30201
30202 int
30203 main ()
30204 {
30205
30206   ;
30207   return 0;
30208 }
30209 _ACEOF
30210 rm -f conftest.$ac_objext
30211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30212   (eval $ac_compile) 2>&5
30213   ac_status=$?
30214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30215   (exit $ac_status); } &&
30216          { ac_try='test -s conftest.$ac_objext'
30217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30218   (eval $ac_try) 2>&5
30219   ac_status=$?
30220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30221   (exit $ac_status); }; }; then
30222   wx_cv_cflags_mthread=yes
30223 else
30224   echo "$as_me: failed program was:" >&5
30225 sed 's/^/| /' conftest.$ac_ext >&5
30226
30227 wx_cv_cflags_mthread=no
30228
30229 fi
30230 rm -f conftest.$ac_objext conftest.$ac_ext
30231
30232
30233 fi
30234 echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
30235 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
30236
30237             if test "$wx_cv_cflags_mthread" = "yes"; then
30238                                 CXXFLAGS="$CXXFLAGS -mthreads"
30239                 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
30240                 LDFLAGS="$LDFLAGS -mthreads"
30241             else
30242                                 CFLAGS="$CFLAGS_OLD"
30243             fi
30244         ;;
30245       esac
30246     fi
30247 fi
30248
30249 if test "$wxUSE_THREADS" = "yes"; then
30250   cat >>confdefs.h <<\_ACEOF
30251 #define wxUSE_THREADS 1
30252 _ACEOF
30253
30254
30255   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
30256 else
30257       if test "$ac_cv_func_strtok_r" = "yes"; then
30258     echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
30259 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
30260     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
30261         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
30262         echo "$as_me:$LINENO: result: yes" >&5
30263 echo "${ECHO_T}yes" >&6
30264     else
30265         echo "$as_me:$LINENO: result: no" >&5
30266 echo "${ECHO_T}no" >&6
30267     fi
30268   fi
30269 fi
30270
30271 if test "$WXGTK20" = 1 ; then
30272   cat >>confdefs.h <<_ACEOF
30273 #define __WXGTK20__ $WXGTK20
30274 _ACEOF
30275
30276   WXGTK12=1
30277 fi
30278
30279 if test "$WXGTK12" = 1 ; then
30280   cat >>confdefs.h <<_ACEOF
30281 #define __WXGTK12__ $WXGTK12
30282 _ACEOF
30283
30284 fi
30285
30286 if test "$WXGTK127" = 1 ; then
30287   cat >>confdefs.h <<_ACEOF
30288 #define __WXGTK127__ $WXGTK127
30289 _ACEOF
30290
30291 fi
30292
30293 WXDEBUG=
30294
30295 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
30296     WXDEBUG="-g"
30297     wxUSE_OPTIMISE=no
30298 fi
30299
30300 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
30301     wxUSE_DEBUG_INFO=yes
30302     WXDEBUG="-ggdb"
30303 fi
30304
30305 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
30306     cat >>confdefs.h <<\_ACEOF
30307 #define WXDEBUG 1
30308 _ACEOF
30309
30310     WXDEBUG_DEFINE="-D__WXDEBUG__"
30311 else
30312     if test "$wxUSE_GTK" = 1 ; then
30313         WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
30314     fi
30315 fi
30316
30317 if test "$wxUSE_MEM_TRACING" = "yes" ; then
30318     cat >>confdefs.h <<\_ACEOF
30319 #define wxUSE_MEMORY_TRACING 1
30320 _ACEOF
30321
30322     cat >>confdefs.h <<\_ACEOF
30323 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
30324 _ACEOF
30325
30326     cat >>confdefs.h <<\_ACEOF
30327 #define wxUSE_DEBUG_NEW_ALWAYS 1
30328 _ACEOF
30329
30330     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
30331 fi
30332
30333 if test "$wxUSE_DMALLOC" = "yes" ; then
30334     DMALLOC_LIBS="-ldmalloc"
30335 fi
30336
30337 PROFILE=
30338 if test "$wxUSE_PROFILE" = "yes" ; then
30339     PROFILE=" -pg"
30340 fi
30341
30342 CODE_GEN_FLAGS=
30343 CODE_GEN_FLAGS_CXX=
30344 if test "$GCC" = "yes" ; then
30345     if test "$wxUSE_NO_RTTI" = "yes" ; then
30346         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
30347     fi
30348     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
30349         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
30350     fi
30351     if test "$wxUSE_PERMISSIVE" = "yes" ; then
30352         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
30353     fi
30354
30355                                                 case "${host}" in
30356       powerpc*-*-aix* )
30357         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
30358         ;;
30359       *-hppa* )
30360         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
30361         ;;
30362     esac
30363 fi
30364
30365 OPTIMISE=
30366 if test "$wxUSE_OPTIMISE" = "no" ; then
30367     if test "$GCC" = yes ; then
30368                         OPTIMISE="-O0"
30369     fi
30370 else
30371     if test "$GCC" = yes ; then
30372         OPTIMISE="-O2"
30373
30374                 case "${host}" in
30375             i586-*-*|i686-*-* )
30376             OPTIMISE="${OPTIMISE} "
30377         ;;
30378         esac
30379     else
30380         OPTIMISE="-O"
30381     fi
30382 fi
30383
30384
30385 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
30386     cat >>confdefs.h <<\_ACEOF
30387 #define WXWIN_COMPATIBILITY_2 1
30388 _ACEOF
30389
30390
30391     WXWIN_COMPATIBILITY_2_2="yes"
30392 fi
30393
30394 if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
30395     cat >>confdefs.h <<\_ACEOF
30396 #define WXWIN_COMPATIBILITY_2_2 1
30397 _ACEOF
30398
30399
30400     WXWIN_COMPATIBILITY_2_4="yes"
30401 fi
30402
30403 if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
30404     cat >>confdefs.h <<\_ACEOF
30405 #define WXWIN_COMPATIBILITY_2_4 1
30406 _ACEOF
30407
30408 fi
30409
30410
30411 if test "$wxUSE_GUI" = "yes"; then
30412   cat >>confdefs.h <<\_ACEOF
30413 #define wxUSE_GUI 1
30414 _ACEOF
30415
30416
30417                       else
30418   cat >>confdefs.h <<\_ACEOF
30419 #define wxUSE_NOGUI 1
30420 _ACEOF
30421
30422 fi
30423
30424
30425 if test "$wxUSE_UNIX" = "yes"; then
30426   cat >>confdefs.h <<\_ACEOF
30427 #define wxUSE_UNIX 1
30428 _ACEOF
30429
30430 fi
30431
30432
30433 if test "$wxUSE_STL" = "yes"; then
30434   cat >>confdefs.h <<\_ACEOF
30435 #define wxUSE_STL 1
30436 _ACEOF
30437
30438 fi
30439
30440 if test "$wxUSE_APPLE_IEEE" = "yes"; then
30441   cat >>confdefs.h <<\_ACEOF
30442 #define wxUSE_APPLE_IEEE 1
30443 _ACEOF
30444
30445 fi
30446
30447 if test "$wxUSE_TIMER" = "yes"; then
30448   cat >>confdefs.h <<\_ACEOF
30449 #define wxUSE_TIMER 1
30450 _ACEOF
30451
30452 fi
30453
30454 if test "$wxUSE_WAVE" = "yes"; then
30455   cat >>confdefs.h <<\_ACEOF
30456 #define wxUSE_WAVE 1
30457 _ACEOF
30458
30459 fi
30460
30461 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
30462   cat >>confdefs.h <<\_ACEOF
30463 #define wxUSE_CMDLINE_PARSER 1
30464 _ACEOF
30465
30466 fi
30467
30468 if test "$wxUSE_STOPWATCH" = "yes"; then
30469   cat >>confdefs.h <<\_ACEOF
30470 #define wxUSE_STOPWATCH 1
30471 _ACEOF
30472
30473 fi
30474
30475 if test "$wxUSE_DATETIME" = "yes"; then
30476   cat >>confdefs.h <<\_ACEOF
30477 #define wxUSE_DATETIME 1
30478 _ACEOF
30479
30480 fi
30481
30482 if test "$wxUSE_FILE" = "yes"; then
30483   cat >>confdefs.h <<\_ACEOF
30484 #define wxUSE_FILE 1
30485 _ACEOF
30486
30487 fi
30488
30489 if test "$wxUSE_FFILE" = "yes"; then
30490   cat >>confdefs.h <<\_ACEOF
30491 #define wxUSE_FFILE 1
30492 _ACEOF
30493
30494 fi
30495
30496 if test "$wxUSE_FILESYSTEM" = "yes"; then
30497   cat >>confdefs.h <<\_ACEOF
30498 #define wxUSE_FILESYSTEM 1
30499 _ACEOF
30500
30501 fi
30502
30503 if test "$wxUSE_FS_ZIP" = "yes"; then
30504   cat >>confdefs.h <<\_ACEOF
30505 #define wxUSE_FS_ZIP 1
30506 _ACEOF
30507
30508 fi
30509
30510 if test "$wxUSE_ZIPSTREAM" = "yes"; then
30511   cat >>confdefs.h <<\_ACEOF
30512 #define wxUSE_ZIPSTREAM 1
30513 _ACEOF
30514
30515 fi
30516
30517 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
30518   cat >>confdefs.h <<\_ACEOF
30519 #define wxUSE_ON_FATAL_EXCEPTION 1
30520 _ACEOF
30521
30522 fi
30523
30524 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30525   cat >>confdefs.h <<\_ACEOF
30526 #define wxUSE_SNGLINST_CHECKER 1
30527 _ACEOF
30528
30529 fi
30530
30531 if test "$wxUSE_BUSYINFO" = "yes"; then
30532   cat >>confdefs.h <<\_ACEOF
30533 #define wxUSE_BUSYINFO 1
30534 _ACEOF
30535
30536 fi
30537
30538 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
30539   cat >>confdefs.h <<\_ACEOF
30540 #define wxUSE_STD_IOSTREAM 1
30541 _ACEOF
30542
30543 fi
30544
30545 if test "$wxUSE_TEXTBUFFER" = "yes"; then
30546     cat >>confdefs.h <<\_ACEOF
30547 #define wxUSE_TEXTBUFFER 1
30548 _ACEOF
30549
30550 fi
30551
30552 if test "$wxUSE_TEXTFILE" = "yes"; then
30553   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
30554     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
30555 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
30556   else
30557     cat >>confdefs.h <<\_ACEOF
30558 #define wxUSE_TEXTFILE 1
30559 _ACEOF
30560
30561   fi
30562 fi
30563
30564 if test "$wxUSE_CONFIG" = "yes" ; then
30565   if test "$wxUSE_TEXTFILE" != "yes"; then
30566     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
30567 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
30568   else
30569     cat >>confdefs.h <<\_ACEOF
30570 #define wxUSE_CONFIG 1
30571 _ACEOF
30572
30573     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
30574   fi
30575 fi
30576
30577 if test "$wxUSE_INTL" = "yes" ; then
30578   if test "$wxUSE_FILE" != "yes"; then
30579     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
30580 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
30581   else
30582     cat >>confdefs.h <<\_ACEOF
30583 #define wxUSE_INTL 1
30584 _ACEOF
30585
30586     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
30587     GUIDIST="$GUIDIST INTL_DIST"
30588   fi
30589 fi
30590
30591 if test "$wxUSE_LOG" = "yes"; then
30592   cat >>confdefs.h <<\_ACEOF
30593 #define wxUSE_LOG 1
30594 _ACEOF
30595
30596
30597     if test "$wxUSE_LOGGUI" = "yes"; then
30598       cat >>confdefs.h <<\_ACEOF
30599 #define wxUSE_LOGGUI 1
30600 _ACEOF
30601
30602     fi
30603
30604     if test "$wxUSE_LOGWINDOW" = "yes"; then
30605       cat >>confdefs.h <<\_ACEOF
30606 #define wxUSE_LOGWINDOW 1
30607 _ACEOF
30608
30609     fi
30610
30611     if test "$wxUSE_LOGDIALOG" = "yes"; then
30612       cat >>confdefs.h <<\_ACEOF
30613 #define wxUSE_LOG_DIALOG 1
30614 _ACEOF
30615
30616     fi
30617 fi
30618
30619 if test "$wxUSE_LONGLONG" = "yes"; then
30620   cat >>confdefs.h <<\_ACEOF
30621 #define wxUSE_LONGLONG 1
30622 _ACEOF
30623
30624 fi
30625
30626 if test "$wxUSE_GEOMETRY" = "yes"; then
30627   cat >>confdefs.h <<\_ACEOF
30628 #define wxUSE_GEOMETRY 1
30629 _ACEOF
30630
30631 fi
30632
30633 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
30634   cat >>confdefs.h <<\_ACEOF
30635 #define wxUSE_DIALUP_MANAGER 1
30636 _ACEOF
30637
30638   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
30639 fi
30640
30641 if test "$wxUSE_STREAMS" = "yes" ; then
30642   cat >>confdefs.h <<\_ACEOF
30643 #define wxUSE_STREAMS 1
30644 _ACEOF
30645
30646 fi
30647
30648
30649 if test "$wxUSE_DATETIME" = "yes"; then
30650
30651 for ac_func in strptime
30652 do
30653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30654 echo "$as_me:$LINENO: checking for $ac_func" >&5
30655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30656 if eval "test \"\${$as_ac_var+set}\" = set"; then
30657   echo $ECHO_N "(cached) $ECHO_C" >&6
30658 else
30659   cat >conftest.$ac_ext <<_ACEOF
30660 #line $LINENO "configure"
30661 /* confdefs.h.  */
30662 _ACEOF
30663 cat confdefs.h >>conftest.$ac_ext
30664 cat >>conftest.$ac_ext <<_ACEOF
30665 /* end confdefs.h.  */
30666 /* System header to define __stub macros and hopefully few prototypes,
30667     which can conflict with char $ac_func (); below.
30668     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30669     <limits.h> exists even on freestanding compilers.  */
30670 #ifdef __STDC__
30671 # include <limits.h>
30672 #else
30673 # include <assert.h>
30674 #endif
30675 /* Override any gcc2 internal prototype to avoid an error.  */
30676 #ifdef __cplusplus
30677 extern "C"
30678 {
30679 #endif
30680 /* We use char because int might match the return type of a gcc2
30681    builtin and then its argument prototype would still apply.  */
30682 char $ac_func ();
30683 /* The GNU C library defines this for functions which it implements
30684     to always fail with ENOSYS.  Some functions are actually named
30685     something starting with __ and the normal name is an alias.  */
30686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30687 choke me
30688 #else
30689 char (*f) () = $ac_func;
30690 #endif
30691 #ifdef __cplusplus
30692 }
30693 #endif
30694
30695 int
30696 main ()
30697 {
30698 return f != $ac_func;
30699   ;
30700   return 0;
30701 }
30702 _ACEOF
30703 rm -f conftest.$ac_objext conftest$ac_exeext
30704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30705   (eval $ac_link) 2>&5
30706   ac_status=$?
30707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30708   (exit $ac_status); } &&
30709          { ac_try='test -s conftest$ac_exeext'
30710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30711   (eval $ac_try) 2>&5
30712   ac_status=$?
30713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30714   (exit $ac_status); }; }; then
30715   eval "$as_ac_var=yes"
30716 else
30717   echo "$as_me: failed program was:" >&5
30718 sed 's/^/| /' conftest.$ac_ext >&5
30719
30720 eval "$as_ac_var=no"
30721 fi
30722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30723 fi
30724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30725 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30726 if test `eval echo '${'$as_ac_var'}'` = yes; then
30727   cat >>confdefs.h <<_ACEOF
30728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30729 _ACEOF
30730
30731 fi
30732 done
30733
30734
30735             echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
30736 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
30737 if test "${wx_cv_var_timezone+set}" = set; then
30738   echo $ECHO_N "(cached) $ECHO_C" >&6
30739 else
30740
30741                         cat >conftest.$ac_ext <<_ACEOF
30742 #line $LINENO "configure"
30743 /* confdefs.h.  */
30744 _ACEOF
30745 cat confdefs.h >>conftest.$ac_ext
30746 cat >>conftest.$ac_ext <<_ACEOF
30747 /* end confdefs.h.  */
30748
30749                                 #include <time.h>
30750
30751 int
30752 main ()
30753 {
30754
30755                                 int tz;
30756                                 tz = timezone;
30757
30758   ;
30759   return 0;
30760 }
30761 _ACEOF
30762 rm -f conftest.$ac_objext
30763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30764   (eval $ac_compile) 2>&5
30765   ac_status=$?
30766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30767   (exit $ac_status); } &&
30768          { ac_try='test -s conftest.$ac_objext'
30769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30770   (eval $ac_try) 2>&5
30771   ac_status=$?
30772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30773   (exit $ac_status); }; }; then
30774
30775                                 wx_cv_var_timezone=timezone
30776
30777 else
30778   echo "$as_me: failed program was:" >&5
30779 sed 's/^/| /' conftest.$ac_ext >&5
30780
30781
30782                                 cat >conftest.$ac_ext <<_ACEOF
30783 #line $LINENO "configure"
30784 /* confdefs.h.  */
30785 _ACEOF
30786 cat confdefs.h >>conftest.$ac_ext
30787 cat >>conftest.$ac_ext <<_ACEOF
30788 /* end confdefs.h.  */
30789
30790                                         #include <time.h>
30791
30792 int
30793 main ()
30794 {
30795
30796                                         int tz;
30797                                         tz = _timezone;
30798
30799   ;
30800   return 0;
30801 }
30802 _ACEOF
30803 rm -f conftest.$ac_objext
30804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30805   (eval $ac_compile) 2>&5
30806   ac_status=$?
30807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30808   (exit $ac_status); } &&
30809          { ac_try='test -s conftest.$ac_objext'
30810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30811   (eval $ac_try) 2>&5
30812   ac_status=$?
30813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30814   (exit $ac_status); }; }; then
30815
30816                                         wx_cv_var_timezone=_timezone
30817
30818 else
30819   echo "$as_me: failed program was:" >&5
30820 sed 's/^/| /' conftest.$ac_ext >&5
30821
30822
30823                                         cat >conftest.$ac_ext <<_ACEOF
30824 #line $LINENO "configure"
30825 /* confdefs.h.  */
30826 _ACEOF
30827 cat confdefs.h >>conftest.$ac_ext
30828 cat >>conftest.$ac_ext <<_ACEOF
30829 /* end confdefs.h.  */
30830
30831                                                 #include <time.h>
30832
30833 int
30834 main ()
30835 {
30836
30837                                                 int tz;
30838                                                 tz = __timezone;
30839
30840   ;
30841   return 0;
30842 }
30843 _ACEOF
30844 rm -f conftest.$ac_objext
30845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30846   (eval $ac_compile) 2>&5
30847   ac_status=$?
30848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30849   (exit $ac_status); } &&
30850          { ac_try='test -s conftest.$ac_objext'
30851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30852   (eval $ac_try) 2>&5
30853   ac_status=$?
30854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30855   (exit $ac_status); }; }; then
30856
30857                                                 wx_cv_var_timezone=__timezone
30858
30859 else
30860   echo "$as_me: failed program was:" >&5
30861 sed 's/^/| /' conftest.$ac_ext >&5
30862
30863
30864                                                 if test "$USE_DOS" = 0 ; then
30865                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
30866 echo "$as_me: WARNING: no timezone variable" >&2;}
30867                                                 fi
30868
30869
30870 fi
30871 rm -f conftest.$ac_objext conftest.$ac_ext
30872
30873
30874 fi
30875 rm -f conftest.$ac_objext conftest.$ac_ext
30876
30877
30878 fi
30879 rm -f conftest.$ac_objext conftest.$ac_ext
30880
30881
30882 fi
30883 echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
30884 echo "${ECHO_T}$wx_cv_var_timezone" >&6
30885
30886         if test "x$wx_cv_var_timezone" != x ; then
30887         cat >>confdefs.h <<_ACEOF
30888 #define WX_TIMEZONE $wx_cv_var_timezone
30889 _ACEOF
30890
30891     fi
30892
30893
30894 for ac_func in localtime
30895 do
30896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30897 echo "$as_me:$LINENO: checking for $ac_func" >&5
30898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30899 if eval "test \"\${$as_ac_var+set}\" = set"; then
30900   echo $ECHO_N "(cached) $ECHO_C" >&6
30901 else
30902   cat >conftest.$ac_ext <<_ACEOF
30903 #line $LINENO "configure"
30904 /* confdefs.h.  */
30905 _ACEOF
30906 cat confdefs.h >>conftest.$ac_ext
30907 cat >>conftest.$ac_ext <<_ACEOF
30908 /* end confdefs.h.  */
30909 /* System header to define __stub macros and hopefully few prototypes,
30910     which can conflict with char $ac_func (); below.
30911     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30912     <limits.h> exists even on freestanding compilers.  */
30913 #ifdef __STDC__
30914 # include <limits.h>
30915 #else
30916 # include <assert.h>
30917 #endif
30918 /* Override any gcc2 internal prototype to avoid an error.  */
30919 #ifdef __cplusplus
30920 extern "C"
30921 {
30922 #endif
30923 /* We use char because int might match the return type of a gcc2
30924    builtin and then its argument prototype would still apply.  */
30925 char $ac_func ();
30926 /* The GNU C library defines this for functions which it implements
30927     to always fail with ENOSYS.  Some functions are actually named
30928     something starting with __ and the normal name is an alias.  */
30929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30930 choke me
30931 #else
30932 char (*f) () = $ac_func;
30933 #endif
30934 #ifdef __cplusplus
30935 }
30936 #endif
30937
30938 int
30939 main ()
30940 {
30941 return f != $ac_func;
30942   ;
30943   return 0;
30944 }
30945 _ACEOF
30946 rm -f conftest.$ac_objext conftest$ac_exeext
30947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30948   (eval $ac_link) 2>&5
30949   ac_status=$?
30950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30951   (exit $ac_status); } &&
30952          { ac_try='test -s conftest$ac_exeext'
30953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30954   (eval $ac_try) 2>&5
30955   ac_status=$?
30956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30957   (exit $ac_status); }; }; then
30958   eval "$as_ac_var=yes"
30959 else
30960   echo "$as_me: failed program was:" >&5
30961 sed 's/^/| /' conftest.$ac_ext >&5
30962
30963 eval "$as_ac_var=no"
30964 fi
30965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
30966 fi
30967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30968 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30969 if test `eval echo '${'$as_ac_var'}'` = yes; then
30970   cat >>confdefs.h <<_ACEOF
30971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30972 _ACEOF
30973
30974 fi
30975 done
30976
30977
30978     if test "$ac_cv_func_localtime" = "yes"; then
30979         echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
30980 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
30981 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
30982   echo $ECHO_N "(cached) $ECHO_C" >&6
30983 else
30984
30985             cat >conftest.$ac_ext <<_ACEOF
30986 #line $LINENO "configure"
30987 /* confdefs.h.  */
30988 _ACEOF
30989 cat confdefs.h >>conftest.$ac_ext
30990 cat >>conftest.$ac_ext <<_ACEOF
30991 /* end confdefs.h.  */
30992
30993                     #include <time.h>
30994
30995 int
30996 main ()
30997 {
30998
30999                     struct tm tm;
31000                     tm.tm_gmtoff++;
31001
31002   ;
31003   return 0;
31004 }
31005 _ACEOF
31006 rm -f conftest.$ac_objext
31007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31008   (eval $ac_compile) 2>&5
31009   ac_status=$?
31010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31011   (exit $ac_status); } &&
31012          { ac_try='test -s conftest.$ac_objext'
31013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31014   (eval $ac_try) 2>&5
31015   ac_status=$?
31016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31017   (exit $ac_status); }; }; then
31018
31019                     wx_cv_struct_tm_has_gmtoff=yes
31020
31021 else
31022   echo "$as_me: failed program was:" >&5
31023 sed 's/^/| /' conftest.$ac_ext >&5
31024
31025 wx_cv_struct_tm_has_gmtoff=no
31026
31027 fi
31028 rm -f conftest.$ac_objext conftest.$ac_ext
31029
31030 fi
31031 echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
31032 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
31033     fi
31034
31035     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
31036         cat >>confdefs.h <<\_ACEOF
31037 #define WX_GMTOFF_IN_TM 1
31038 _ACEOF
31039
31040     fi
31041
31042
31043
31044 for ac_func in gettimeofday ftime
31045 do
31046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31047 echo "$as_me:$LINENO: checking for $ac_func" >&5
31048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31049 if eval "test \"\${$as_ac_var+set}\" = set"; then
31050   echo $ECHO_N "(cached) $ECHO_C" >&6
31051 else
31052   cat >conftest.$ac_ext <<_ACEOF
31053 #line $LINENO "configure"
31054 /* confdefs.h.  */
31055 _ACEOF
31056 cat confdefs.h >>conftest.$ac_ext
31057 cat >>conftest.$ac_ext <<_ACEOF
31058 /* end confdefs.h.  */
31059 /* System header to define __stub macros and hopefully few prototypes,
31060     which can conflict with char $ac_func (); below.
31061     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31062     <limits.h> exists even on freestanding compilers.  */
31063 #ifdef __STDC__
31064 # include <limits.h>
31065 #else
31066 # include <assert.h>
31067 #endif
31068 /* Override any gcc2 internal prototype to avoid an error.  */
31069 #ifdef __cplusplus
31070 extern "C"
31071 {
31072 #endif
31073 /* We use char because int might match the return type of a gcc2
31074    builtin and then its argument prototype would still apply.  */
31075 char $ac_func ();
31076 /* The GNU C library defines this for functions which it implements
31077     to always fail with ENOSYS.  Some functions are actually named
31078     something starting with __ and the normal name is an alias.  */
31079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31080 choke me
31081 #else
31082 char (*f) () = $ac_func;
31083 #endif
31084 #ifdef __cplusplus
31085 }
31086 #endif
31087
31088 int
31089 main ()
31090 {
31091 return f != $ac_func;
31092   ;
31093   return 0;
31094 }
31095 _ACEOF
31096 rm -f conftest.$ac_objext conftest$ac_exeext
31097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31098   (eval $ac_link) 2>&5
31099   ac_status=$?
31100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31101   (exit $ac_status); } &&
31102          { ac_try='test -s conftest$ac_exeext'
31103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31104   (eval $ac_try) 2>&5
31105   ac_status=$?
31106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31107   (exit $ac_status); }; }; then
31108   eval "$as_ac_var=yes"
31109 else
31110   echo "$as_me: failed program was:" >&5
31111 sed 's/^/| /' conftest.$ac_ext >&5
31112
31113 eval "$as_ac_var=no"
31114 fi
31115 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31116 fi
31117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31118 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31119 if test `eval echo '${'$as_ac_var'}'` = yes; then
31120   cat >>confdefs.h <<_ACEOF
31121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31122 _ACEOF
31123  break
31124 fi
31125 done
31126
31127
31128     if test "$ac_cv_func_gettimeofday" = "yes"; then
31129         echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
31130 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
31131 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
31132   echo $ECHO_N "(cached) $ECHO_C" >&6
31133 else
31134
31135
31136
31137             ac_ext=cc
31138 ac_cpp='$CXXCPP $CPPFLAGS'
31139 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31140 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31141 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31142
31143
31144             cat >conftest.$ac_ext <<_ACEOF
31145 #line $LINENO "configure"
31146 /* confdefs.h.  */
31147 _ACEOF
31148 cat confdefs.h >>conftest.$ac_ext
31149 cat >>conftest.$ac_ext <<_ACEOF
31150 /* end confdefs.h.  */
31151
31152                     #include <sys/time.h>
31153                     #include <unistd.h>
31154
31155 int
31156 main ()
31157 {
31158
31159                     struct timeval tv;
31160                     gettimeofday(&tv, NULL);
31161
31162   ;
31163   return 0;
31164 }
31165 _ACEOF
31166 rm -f conftest.$ac_objext
31167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31168   (eval $ac_compile) 2>&5
31169   ac_status=$?
31170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31171   (exit $ac_status); } &&
31172          { ac_try='test -s conftest.$ac_objext'
31173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31174   (eval $ac_try) 2>&5
31175   ac_status=$?
31176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31177   (exit $ac_status); }; }; then
31178   wx_cv_func_gettimeofday_has_2_args=yes
31179 else
31180   echo "$as_me: failed program was:" >&5
31181 sed 's/^/| /' conftest.$ac_ext >&5
31182
31183 cat >conftest.$ac_ext <<_ACEOF
31184 #line $LINENO "configure"
31185 /* confdefs.h.  */
31186 _ACEOF
31187 cat confdefs.h >>conftest.$ac_ext
31188 cat >>conftest.$ac_ext <<_ACEOF
31189 /* end confdefs.h.  */
31190
31191                         #include <sys/time.h>
31192                         #include <unistd.h>
31193
31194 int
31195 main ()
31196 {
31197
31198                         struct timeval tv;
31199                         gettimeofday(&tv);
31200
31201   ;
31202   return 0;
31203 }
31204 _ACEOF
31205 rm -f conftest.$ac_objext
31206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31207   (eval $ac_compile) 2>&5
31208   ac_status=$?
31209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31210   (exit $ac_status); } &&
31211          { ac_try='test -s conftest.$ac_objext'
31212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31213   (eval $ac_try) 2>&5
31214   ac_status=$?
31215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31216   (exit $ac_status); }; }; then
31217   wx_cv_func_gettimeofday_has_2_args=no
31218 else
31219   echo "$as_me: failed program was:" >&5
31220 sed 's/^/| /' conftest.$ac_ext >&5
31221
31222
31223                         { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
31224 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
31225                         wx_cv_func_gettimeofday_has_2_args=unknown
31226
31227
31228 fi
31229 rm -f conftest.$ac_objext conftest.$ac_ext
31230
31231 fi
31232 rm -f conftest.$ac_objext conftest.$ac_ext
31233             ac_ext=c
31234 ac_cpp='$CPP $CPPFLAGS'
31235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31238
31239
31240 fi
31241 echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
31242 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
31243
31244         if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
31245             cat >>confdefs.h <<\_ACEOF
31246 #define WX_GETTIMEOFDAY_NO_TZ 1
31247 _ACEOF
31248
31249         fi
31250     fi
31251
31252     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
31253 fi
31254
31255
31256 if test "$wxUSE_SOCKETS" = "yes"; then
31257     if test "$wxUSE_MGL" = "1"; then
31258         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
31259 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
31260         wxUSE_SOCKETS="no"
31261     fi
31262     if test "$wxUSE_COCOA" = "1"; then
31263         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under Cocoa... disabled" >&5
31264 echo "$as_me: WARNING: wxSocket not yet supported under Cocoa... disabled" >&2;}
31265         wxUSE_SOCKETS="no"
31266     fi
31267 fi
31268
31269 if test "$wxUSE_SOCKETS" = "yes"; then
31270         if test "$TOOLKIT" != "MSW"; then
31271                 echo "$as_me:$LINENO: checking for socket" >&5
31272 echo $ECHO_N "checking for socket... $ECHO_C" >&6
31273 if test "${ac_cv_func_socket+set}" = set; then
31274   echo $ECHO_N "(cached) $ECHO_C" >&6
31275 else
31276   cat >conftest.$ac_ext <<_ACEOF
31277 #line $LINENO "configure"
31278 /* confdefs.h.  */
31279 _ACEOF
31280 cat confdefs.h >>conftest.$ac_ext
31281 cat >>conftest.$ac_ext <<_ACEOF
31282 /* end confdefs.h.  */
31283 /* System header to define __stub macros and hopefully few prototypes,
31284     which can conflict with char socket (); below.
31285     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31286     <limits.h> exists even on freestanding compilers.  */
31287 #ifdef __STDC__
31288 # include <limits.h>
31289 #else
31290 # include <assert.h>
31291 #endif
31292 /* Override any gcc2 internal prototype to avoid an error.  */
31293 #ifdef __cplusplus
31294 extern "C"
31295 {
31296 #endif
31297 /* We use char because int might match the return type of a gcc2
31298    builtin and then its argument prototype would still apply.  */
31299 char socket ();
31300 /* The GNU C library defines this for functions which it implements
31301     to always fail with ENOSYS.  Some functions are actually named
31302     something starting with __ and the normal name is an alias.  */
31303 #if defined (__stub_socket) || defined (__stub___socket)
31304 choke me
31305 #else
31306 char (*f) () = socket;
31307 #endif
31308 #ifdef __cplusplus
31309 }
31310 #endif
31311
31312 int
31313 main ()
31314 {
31315 return f != socket;
31316   ;
31317   return 0;
31318 }
31319 _ACEOF
31320 rm -f conftest.$ac_objext conftest$ac_exeext
31321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31322   (eval $ac_link) 2>&5
31323   ac_status=$?
31324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31325   (exit $ac_status); } &&
31326          { ac_try='test -s conftest$ac_exeext'
31327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31328   (eval $ac_try) 2>&5
31329   ac_status=$?
31330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31331   (exit $ac_status); }; }; then
31332   ac_cv_func_socket=yes
31333 else
31334   echo "$as_me: failed program was:" >&5
31335 sed 's/^/| /' conftest.$ac_ext >&5
31336
31337 ac_cv_func_socket=no
31338 fi
31339 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31340 fi
31341 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
31342 echo "${ECHO_T}$ac_cv_func_socket" >&6
31343 if test $ac_cv_func_socket = yes; then
31344   :
31345 else
31346   echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
31347 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
31348 if test "${ac_cv_lib_socket_socket+set}" = set; then
31349   echo $ECHO_N "(cached) $ECHO_C" >&6
31350 else
31351   ac_check_lib_save_LIBS=$LIBS
31352 LIBS="-lsocket  $LIBS"
31353 cat >conftest.$ac_ext <<_ACEOF
31354 #line $LINENO "configure"
31355 /* confdefs.h.  */
31356 _ACEOF
31357 cat confdefs.h >>conftest.$ac_ext
31358 cat >>conftest.$ac_ext <<_ACEOF
31359 /* end confdefs.h.  */
31360
31361 /* Override any gcc2 internal prototype to avoid an error.  */
31362 #ifdef __cplusplus
31363 extern "C"
31364 #endif
31365 /* We use char because int might match the return type of a gcc2
31366    builtin and then its argument prototype would still apply.  */
31367 char socket ();
31368 int
31369 main ()
31370 {
31371 socket ();
31372   ;
31373   return 0;
31374 }
31375 _ACEOF
31376 rm -f conftest.$ac_objext conftest$ac_exeext
31377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31378   (eval $ac_link) 2>&5
31379   ac_status=$?
31380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31381   (exit $ac_status); } &&
31382          { ac_try='test -s conftest$ac_exeext'
31383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31384   (eval $ac_try) 2>&5
31385   ac_status=$?
31386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31387   (exit $ac_status); }; }; then
31388   ac_cv_lib_socket_socket=yes
31389 else
31390   echo "$as_me: failed program was:" >&5
31391 sed 's/^/| /' conftest.$ac_ext >&5
31392
31393 ac_cv_lib_socket_socket=no
31394 fi
31395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31396 LIBS=$ac_check_lib_save_LIBS
31397 fi
31398 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
31399 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
31400 if test $ac_cv_lib_socket_socket = yes; then
31401   if test "$INET_LINK" != " -lsocket"; then
31402                     INET_LINK="$INET_LINK -lsocket"
31403                 fi
31404 else
31405
31406                     { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
31407 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
31408                     wxUSE_SOCKETS=no
31409
31410
31411 fi
31412
31413
31414 fi
31415
31416     fi
31417 fi
31418
31419 if test "$wxUSE_SOCKETS" = "yes" ; then
31420                 if test "$TOOLKIT" != "MSW"; then
31421                 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
31422 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
31423 if test "${wx_cv_type_getsockname3+set}" = set; then
31424   echo $ECHO_N "(cached) $ECHO_C" >&6
31425 else
31426
31427                 cat >conftest.$ac_ext <<_ACEOF
31428 #line $LINENO "configure"
31429 /* confdefs.h.  */
31430 _ACEOF
31431 cat confdefs.h >>conftest.$ac_ext
31432 cat >>conftest.$ac_ext <<_ACEOF
31433 /* end confdefs.h.  */
31434
31435                         #include <sys/types.h>
31436                         #include <sys/socket.h>
31437
31438 int
31439 main ()
31440 {
31441
31442                         socklen_t len;
31443                         getsockname(0, 0, &len);
31444
31445   ;
31446   return 0;
31447 }
31448 _ACEOF
31449 rm -f conftest.$ac_objext
31450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31451   (eval $ac_compile) 2>&5
31452   ac_status=$?
31453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31454   (exit $ac_status); } &&
31455          { ac_try='test -s conftest.$ac_objext'
31456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31457   (eval $ac_try) 2>&5
31458   ac_status=$?
31459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31460   (exit $ac_status); }; }; then
31461   wx_cv_type_getsockname3=socklen_t
31462 else
31463   echo "$as_me: failed program was:" >&5
31464 sed 's/^/| /' conftest.$ac_ext >&5
31465
31466
31467                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
31468                         if test "$GCC" = yes ; then
31469                             CFLAGS="$CFLAGS -Werror"
31470                         fi
31471
31472                         cat >conftest.$ac_ext <<_ACEOF
31473 #line $LINENO "configure"
31474 /* confdefs.h.  */
31475 _ACEOF
31476 cat confdefs.h >>conftest.$ac_ext
31477 cat >>conftest.$ac_ext <<_ACEOF
31478 /* end confdefs.h.  */
31479
31480                                 #include <sys/types.h>
31481                                 #include <sys/socket.h>
31482
31483 int
31484 main ()
31485 {
31486
31487                                 size_t len;
31488                                 getsockname(0, 0, &len);
31489
31490   ;
31491   return 0;
31492 }
31493 _ACEOF
31494 rm -f conftest.$ac_objext
31495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31496   (eval $ac_compile) 2>&5
31497   ac_status=$?
31498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31499   (exit $ac_status); } &&
31500          { ac_try='test -s conftest.$ac_objext'
31501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31502   (eval $ac_try) 2>&5
31503   ac_status=$?
31504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31505   (exit $ac_status); }; }; then
31506   wx_cv_type_getsockname3=size_t
31507 else
31508   echo "$as_me: failed program was:" >&5
31509 sed 's/^/| /' conftest.$ac_ext >&5
31510
31511 cat >conftest.$ac_ext <<_ACEOF
31512 #line $LINENO "configure"
31513 /* confdefs.h.  */
31514 _ACEOF
31515 cat confdefs.h >>conftest.$ac_ext
31516 cat >>conftest.$ac_ext <<_ACEOF
31517 /* end confdefs.h.  */
31518
31519                                     #include <sys/types.h>
31520                                     #include <sys/socket.h>
31521
31522 int
31523 main ()
31524 {
31525
31526                                     int len;
31527                                     getsockname(0, 0, &len);
31528
31529   ;
31530   return 0;
31531 }
31532 _ACEOF
31533 rm -f conftest.$ac_objext
31534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31535   (eval $ac_compile) 2>&5
31536   ac_status=$?
31537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31538   (exit $ac_status); } &&
31539          { ac_try='test -s conftest.$ac_objext'
31540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31541   (eval $ac_try) 2>&5
31542   ac_status=$?
31543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31544   (exit $ac_status); }; }; then
31545   wx_cv_type_getsockname3=int
31546 else
31547   echo "$as_me: failed program was:" >&5
31548 sed 's/^/| /' conftest.$ac_ext >&5
31549
31550 wx_cv_type_getsockname3=unknown
31551
31552 fi
31553 rm -f conftest.$ac_objext conftest.$ac_ext
31554
31555 fi
31556 rm -f conftest.$ac_objext conftest.$ac_ext
31557
31558                         CFLAGS="$CFLAGS_OLD"
31559
31560
31561 fi
31562 rm -f conftest.$ac_objext conftest.$ac_ext
31563
31564 fi
31565 echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
31566 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
31567
31568         if test "$wx_cv_type_getsockname3" = "unknown"; then
31569             wxUSE_SOCKETS=no
31570             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
31571 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
31572         else
31573             cat >>confdefs.h <<_ACEOF
31574 #define SOCKLEN_T $wx_cv_type_getsockname3
31575 _ACEOF
31576
31577         fi
31578     fi
31579 fi
31580
31581 if test "$wxUSE_SOCKETS" = "yes" ; then
31582     cat >>confdefs.h <<\_ACEOF
31583 #define wxUSE_SOCKETS 1
31584 _ACEOF
31585
31586     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
31587 fi
31588
31589 if test "$wxUSE_PROTOCOL" = "yes"; then
31590     if test "$wxUSE_SOCKETS" != "yes"; then
31591         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
31592 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
31593         wxUSE_PROTOCOL=no
31594     fi
31595 fi
31596
31597 if test "$wxUSE_PROTOCOL" = "yes"; then
31598     cat >>confdefs.h <<\_ACEOF
31599 #define wxUSE_PROTOCOL 1
31600 _ACEOF
31601
31602
31603     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
31604         cat >>confdefs.h <<\_ACEOF
31605 #define wxUSE_PROTOCOL_HTTP 1
31606 _ACEOF
31607
31608     fi
31609     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
31610         cat >>confdefs.h <<\_ACEOF
31611 #define wxUSE_PROTOCOL_FTP 1
31612 _ACEOF
31613
31614     fi
31615     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
31616         cat >>confdefs.h <<\_ACEOF
31617 #define wxUSE_PROTOCOL_FILE 1
31618 _ACEOF
31619
31620     fi
31621 else
31622     if test "$wxUSE_FS_INET" = "yes"; then
31623         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
31624 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
31625         wxUSE_FS_INET="no"
31626     fi
31627 fi
31628
31629 if test "$wxUSE_URL" = "yes"; then
31630     if test "$wxUSE_PROTOCOL" != "yes"; then
31631         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
31632 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
31633         wxUSE_URL=no
31634     fi
31635     if test "$wxUSE_URL" = "yes"; then
31636         cat >>confdefs.h <<\_ACEOF
31637 #define wxUSE_URL 1
31638 _ACEOF
31639
31640     fi
31641 fi
31642
31643 if test "$wxUSE_FS_INET" = "yes"; then
31644   cat >>confdefs.h <<\_ACEOF
31645 #define wxUSE_FS_INET 1
31646 _ACEOF
31647
31648 fi
31649
31650
31651 if test "$wxUSE_GUI" = "yes"; then
31652
31653     if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
31654         { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
31655 echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
31656         wxUSE_JOYSTICK=no
31657      fi
31658
31659          if test "$TOOLKIT" != "MSW"; then
31660         if test "$wxUSE_JOYSTICK" = "yes"; then
31661
31662 for ac_header in linux/joystick.h
31663 do
31664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31666   echo "$as_me:$LINENO: checking for $ac_header" >&5
31667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31669   echo $ECHO_N "(cached) $ECHO_C" >&6
31670 fi
31671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31672 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31673 else
31674   # Is the header compilable?
31675 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31676 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31677 cat >conftest.$ac_ext <<_ACEOF
31678 #line $LINENO "configure"
31679 /* confdefs.h.  */
31680 _ACEOF
31681 cat confdefs.h >>conftest.$ac_ext
31682 cat >>conftest.$ac_ext <<_ACEOF
31683 /* end confdefs.h.  */
31684 $ac_includes_default
31685 #include <$ac_header>
31686 _ACEOF
31687 rm -f conftest.$ac_objext
31688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31689   (eval $ac_compile) 2>&5
31690   ac_status=$?
31691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31692   (exit $ac_status); } &&
31693          { ac_try='test -s conftest.$ac_objext'
31694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31695   (eval $ac_try) 2>&5
31696   ac_status=$?
31697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31698   (exit $ac_status); }; }; then
31699   ac_header_compiler=yes
31700 else
31701   echo "$as_me: failed program was:" >&5
31702 sed 's/^/| /' conftest.$ac_ext >&5
31703
31704 ac_header_compiler=no
31705 fi
31706 rm -f conftest.$ac_objext conftest.$ac_ext
31707 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31708 echo "${ECHO_T}$ac_header_compiler" >&6
31709
31710 # Is the header present?
31711 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31712 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31713 cat >conftest.$ac_ext <<_ACEOF
31714 #line $LINENO "configure"
31715 /* confdefs.h.  */
31716 _ACEOF
31717 cat confdefs.h >>conftest.$ac_ext
31718 cat >>conftest.$ac_ext <<_ACEOF
31719 /* end confdefs.h.  */
31720 #include <$ac_header>
31721 _ACEOF
31722 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31723   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31724   ac_status=$?
31725   grep -v '^ *+' conftest.er1 >conftest.err
31726   rm -f conftest.er1
31727   cat conftest.err >&5
31728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31729   (exit $ac_status); } >/dev/null; then
31730   if test -s conftest.err; then
31731     ac_cpp_err=$ac_c_preproc_warn_flag
31732   else
31733     ac_cpp_err=
31734   fi
31735 else
31736   ac_cpp_err=yes
31737 fi
31738 if test -z "$ac_cpp_err"; then
31739   ac_header_preproc=yes
31740 else
31741   echo "$as_me: failed program was:" >&5
31742 sed 's/^/| /' conftest.$ac_ext >&5
31743
31744   ac_header_preproc=no
31745 fi
31746 rm -f conftest.err conftest.$ac_ext
31747 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31748 echo "${ECHO_T}$ac_header_preproc" >&6
31749
31750 # So?  What about this header?
31751 case $ac_header_compiler:$ac_header_preproc in
31752   yes:no )
31753     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31754 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31755     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31757     (
31758       cat <<\_ASBOX
31759 ## ------------------------------------ ##
31760 ## Report this to bug-autoconf@gnu.org. ##
31761 ## ------------------------------------ ##
31762 _ASBOX
31763     ) |
31764       sed "s/^/$as_me: WARNING:     /" >&2
31765     ;;
31766   no:yes )
31767     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31768 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31769     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31770 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31771     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31773     (
31774       cat <<\_ASBOX
31775 ## ------------------------------------ ##
31776 ## Report this to bug-autoconf@gnu.org. ##
31777 ## ------------------------------------ ##
31778 _ASBOX
31779     ) |
31780       sed "s/^/$as_me: WARNING:     /" >&2
31781     ;;
31782 esac
31783 echo "$as_me:$LINENO: checking for $ac_header" >&5
31784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31785 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31786   echo $ECHO_N "(cached) $ECHO_C" >&6
31787 else
31788   eval "$as_ac_Header=$ac_header_preproc"
31789 fi
31790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31792
31793 fi
31794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31795   cat >>confdefs.h <<_ACEOF
31796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31797 _ACEOF
31798
31799 fi
31800
31801 done
31802
31803             if test "$ac_cv_header_linux_joystick_h" != "yes"; then
31804                 wxUSE_JOYSTICK=no
31805                 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
31806 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
31807             fi
31808         fi
31809     fi
31810
31811     if test "$wxUSE_JOYSTICK" = "yes"; then
31812         cat >>confdefs.h <<\_ACEOF
31813 #define wxUSE_JOYSTICK 1
31814 _ACEOF
31815
31816         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
31817     fi
31818 fi
31819
31820
31821 if test "$TOOLKIT" != "MSW"; then
31822
31823     HAVE_DL_FUNCS=0
31824     HAVE_SHL_FUNCS=0
31825     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
31826         if test "$USE_DARWIN" = 1; then
31827                         HAVE_DL_FUNCS=1
31828         else
31829
31830 for ac_func in dlopen
31831 do
31832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31833 echo "$as_me:$LINENO: checking for $ac_func" >&5
31834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31835 if eval "test \"\${$as_ac_var+set}\" = set"; then
31836   echo $ECHO_N "(cached) $ECHO_C" >&6
31837 else
31838   cat >conftest.$ac_ext <<_ACEOF
31839 #line $LINENO "configure"
31840 /* confdefs.h.  */
31841 _ACEOF
31842 cat confdefs.h >>conftest.$ac_ext
31843 cat >>conftest.$ac_ext <<_ACEOF
31844 /* end confdefs.h.  */
31845 /* System header to define __stub macros and hopefully few prototypes,
31846     which can conflict with char $ac_func (); below.
31847     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31848     <limits.h> exists even on freestanding compilers.  */
31849 #ifdef __STDC__
31850 # include <limits.h>
31851 #else
31852 # include <assert.h>
31853 #endif
31854 /* Override any gcc2 internal prototype to avoid an error.  */
31855 #ifdef __cplusplus
31856 extern "C"
31857 {
31858 #endif
31859 /* We use char because int might match the return type of a gcc2
31860    builtin and then its argument prototype would still apply.  */
31861 char $ac_func ();
31862 /* The GNU C library defines this for functions which it implements
31863     to always fail with ENOSYS.  Some functions are actually named
31864     something starting with __ and the normal name is an alias.  */
31865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31866 choke me
31867 #else
31868 char (*f) () = $ac_func;
31869 #endif
31870 #ifdef __cplusplus
31871 }
31872 #endif
31873
31874 int
31875 main ()
31876 {
31877 return f != $ac_func;
31878   ;
31879   return 0;
31880 }
31881 _ACEOF
31882 rm -f conftest.$ac_objext conftest$ac_exeext
31883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31884   (eval $ac_link) 2>&5
31885   ac_status=$?
31886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31887   (exit $ac_status); } &&
31888          { ac_try='test -s conftest$ac_exeext'
31889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31890   (eval $ac_try) 2>&5
31891   ac_status=$?
31892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31893   (exit $ac_status); }; }; then
31894   eval "$as_ac_var=yes"
31895 else
31896   echo "$as_me: failed program was:" >&5
31897 sed 's/^/| /' conftest.$ac_ext >&5
31898
31899 eval "$as_ac_var=no"
31900 fi
31901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31902 fi
31903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31904 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31905 if test `eval echo '${'$as_ac_var'}'` = yes; then
31906   cat >>confdefs.h <<_ACEOF
31907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31908 _ACEOF
31909
31910                 cat >>confdefs.h <<\_ACEOF
31911 #define HAVE_DLOPEN 1
31912 _ACEOF
31913
31914                 HAVE_DL_FUNCS=1
31915
31916 else
31917
31918                 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
31919 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
31920 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
31921   echo $ECHO_N "(cached) $ECHO_C" >&6
31922 else
31923   ac_check_lib_save_LIBS=$LIBS
31924 LIBS="-ldl  $LIBS"
31925 cat >conftest.$ac_ext <<_ACEOF
31926 #line $LINENO "configure"
31927 /* confdefs.h.  */
31928 _ACEOF
31929 cat confdefs.h >>conftest.$ac_ext
31930 cat >>conftest.$ac_ext <<_ACEOF
31931 /* end confdefs.h.  */
31932
31933 /* Override any gcc2 internal prototype to avoid an error.  */
31934 #ifdef __cplusplus
31935 extern "C"
31936 #endif
31937 /* We use char because int might match the return type of a gcc2
31938    builtin and then its argument prototype would still apply.  */
31939 char dlopen ();
31940 int
31941 main ()
31942 {
31943 dlopen ();
31944   ;
31945   return 0;
31946 }
31947 _ACEOF
31948 rm -f conftest.$ac_objext conftest$ac_exeext
31949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31950   (eval $ac_link) 2>&5
31951   ac_status=$?
31952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31953   (exit $ac_status); } &&
31954          { ac_try='test -s conftest$ac_exeext'
31955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31956   (eval $ac_try) 2>&5
31957   ac_status=$?
31958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31959   (exit $ac_status); }; }; then
31960   ac_cv_lib_dl_dlopen=yes
31961 else
31962   echo "$as_me: failed program was:" >&5
31963 sed 's/^/| /' conftest.$ac_ext >&5
31964
31965 ac_cv_lib_dl_dlopen=no
31966 fi
31967 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
31968 LIBS=$ac_check_lib_save_LIBS
31969 fi
31970 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
31971 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
31972 if test $ac_cv_lib_dl_dlopen = yes; then
31973
31974                                 cat >>confdefs.h <<\_ACEOF
31975 #define HAVE_DLOPEN 1
31976 _ACEOF
31977
31978                                 HAVE_DL_FUNCS=1
31979                                 DL_LINK=" -ldl$DL_LINK"
31980
31981 else
31982
31983
31984 for ac_func in shl_load
31985 do
31986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31987 echo "$as_me:$LINENO: checking for $ac_func" >&5
31988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31989 if eval "test \"\${$as_ac_var+set}\" = set"; then
31990   echo $ECHO_N "(cached) $ECHO_C" >&6
31991 else
31992   cat >conftest.$ac_ext <<_ACEOF
31993 #line $LINENO "configure"
31994 /* confdefs.h.  */
31995 _ACEOF
31996 cat confdefs.h >>conftest.$ac_ext
31997 cat >>conftest.$ac_ext <<_ACEOF
31998 /* end confdefs.h.  */
31999 /* System header to define __stub macros and hopefully few prototypes,
32000     which can conflict with char $ac_func (); below.
32001     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32002     <limits.h> exists even on freestanding compilers.  */
32003 #ifdef __STDC__
32004 # include <limits.h>
32005 #else
32006 # include <assert.h>
32007 #endif
32008 /* Override any gcc2 internal prototype to avoid an error.  */
32009 #ifdef __cplusplus
32010 extern "C"
32011 {
32012 #endif
32013 /* We use char because int might match the return type of a gcc2
32014    builtin and then its argument prototype would still apply.  */
32015 char $ac_func ();
32016 /* The GNU C library defines this for functions which it implements
32017     to always fail with ENOSYS.  Some functions are actually named
32018     something starting with __ and the normal name is an alias.  */
32019 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32020 choke me
32021 #else
32022 char (*f) () = $ac_func;
32023 #endif
32024 #ifdef __cplusplus
32025 }
32026 #endif
32027
32028 int
32029 main ()
32030 {
32031 return f != $ac_func;
32032   ;
32033   return 0;
32034 }
32035 _ACEOF
32036 rm -f conftest.$ac_objext conftest$ac_exeext
32037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32038   (eval $ac_link) 2>&5
32039   ac_status=$?
32040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32041   (exit $ac_status); } &&
32042          { ac_try='test -s conftest$ac_exeext'
32043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32044   (eval $ac_try) 2>&5
32045   ac_status=$?
32046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32047   (exit $ac_status); }; }; then
32048   eval "$as_ac_var=yes"
32049 else
32050   echo "$as_me: failed program was:" >&5
32051 sed 's/^/| /' conftest.$ac_ext >&5
32052
32053 eval "$as_ac_var=no"
32054 fi
32055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32056 fi
32057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32058 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32059 if test `eval echo '${'$as_ac_var'}'` = yes; then
32060   cat >>confdefs.h <<_ACEOF
32061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32062 _ACEOF
32063
32064                                                 cat >>confdefs.h <<\_ACEOF
32065 #define HAVE_SHL_LOAD 1
32066 _ACEOF
32067
32068                                                 HAVE_SHL_FUNCS=1
32069
32070 else
32071
32072                                                 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
32073 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
32074 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
32075   echo $ECHO_N "(cached) $ECHO_C" >&6
32076 else
32077   ac_check_lib_save_LIBS=$LIBS
32078 LIBS="-lshl_load  $LIBS"
32079 cat >conftest.$ac_ext <<_ACEOF
32080 #line $LINENO "configure"
32081 /* confdefs.h.  */
32082 _ACEOF
32083 cat confdefs.h >>conftest.$ac_ext
32084 cat >>conftest.$ac_ext <<_ACEOF
32085 /* end confdefs.h.  */
32086
32087 /* Override any gcc2 internal prototype to avoid an error.  */
32088 #ifdef __cplusplus
32089 extern "C"
32090 #endif
32091 /* We use char because int might match the return type of a gcc2
32092    builtin and then its argument prototype would still apply.  */
32093 char dld ();
32094 int
32095 main ()
32096 {
32097 dld ();
32098   ;
32099   return 0;
32100 }
32101 _ACEOF
32102 rm -f conftest.$ac_objext conftest$ac_exeext
32103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32104   (eval $ac_link) 2>&5
32105   ac_status=$?
32106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32107   (exit $ac_status); } &&
32108          { ac_try='test -s conftest$ac_exeext'
32109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32110   (eval $ac_try) 2>&5
32111   ac_status=$?
32112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32113   (exit $ac_status); }; }; then
32114   ac_cv_lib_shl_load_dld=yes
32115 else
32116   echo "$as_me: failed program was:" >&5
32117 sed 's/^/| /' conftest.$ac_ext >&5
32118
32119 ac_cv_lib_shl_load_dld=no
32120 fi
32121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32122 LIBS=$ac_check_lib_save_LIBS
32123 fi
32124 echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
32125 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
32126 if test $ac_cv_lib_shl_load_dld = yes; then
32127
32128                                                                 HAVE_SHL_FUNCS=1
32129                                                                 DL_LINK=" -ldld$DL_LINK"
32130
32131 fi
32132
32133
32134 fi
32135 done
32136
32137
32138 fi
32139
32140
32141 fi
32142 done
32143
32144
32145                 if test "$HAVE_DL_FUNCS" = 1; then
32146
32147 for ac_func in dlerror
32148 do
32149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32150 echo "$as_me:$LINENO: checking for $ac_func" >&5
32151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32152 if eval "test \"\${$as_ac_var+set}\" = set"; then
32153   echo $ECHO_N "(cached) $ECHO_C" >&6
32154 else
32155   cat >conftest.$ac_ext <<_ACEOF
32156 #line $LINENO "configure"
32157 /* confdefs.h.  */
32158 _ACEOF
32159 cat confdefs.h >>conftest.$ac_ext
32160 cat >>conftest.$ac_ext <<_ACEOF
32161 /* end confdefs.h.  */
32162 /* System header to define __stub macros and hopefully few prototypes,
32163     which can conflict with char $ac_func (); below.
32164     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32165     <limits.h> exists even on freestanding compilers.  */
32166 #ifdef __STDC__
32167 # include <limits.h>
32168 #else
32169 # include <assert.h>
32170 #endif
32171 /* Override any gcc2 internal prototype to avoid an error.  */
32172 #ifdef __cplusplus
32173 extern "C"
32174 {
32175 #endif
32176 /* We use char because int might match the return type of a gcc2
32177    builtin and then its argument prototype would still apply.  */
32178 char $ac_func ();
32179 /* The GNU C library defines this for functions which it implements
32180     to always fail with ENOSYS.  Some functions are actually named
32181     something starting with __ and the normal name is an alias.  */
32182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32183 choke me
32184 #else
32185 char (*f) () = $ac_func;
32186 #endif
32187 #ifdef __cplusplus
32188 }
32189 #endif
32190
32191 int
32192 main ()
32193 {
32194 return f != $ac_func;
32195   ;
32196   return 0;
32197 }
32198 _ACEOF
32199 rm -f conftest.$ac_objext conftest$ac_exeext
32200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32201   (eval $ac_link) 2>&5
32202   ac_status=$?
32203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32204   (exit $ac_status); } &&
32205          { ac_try='test -s conftest$ac_exeext'
32206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32207   (eval $ac_try) 2>&5
32208   ac_status=$?
32209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32210   (exit $ac_status); }; }; then
32211   eval "$as_ac_var=yes"
32212 else
32213   echo "$as_me: failed program was:" >&5
32214 sed 's/^/| /' conftest.$ac_ext >&5
32215
32216 eval "$as_ac_var=no"
32217 fi
32218 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32219 fi
32220 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32221 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32222 if test `eval echo '${'$as_ac_var'}'` = yes; then
32223   cat >>confdefs.h <<_ACEOF
32224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32225 _ACEOF
32226  cat >>confdefs.h <<\_ACEOF
32227 #define HAVE_DLERROR 1
32228 _ACEOF
32229
32230 else
32231   echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
32232 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
32233 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
32234   echo $ECHO_N "(cached) $ECHO_C" >&6
32235 else
32236   ac_check_lib_save_LIBS=$LIBS
32237 LIBS="-ldl  $LIBS"
32238 cat >conftest.$ac_ext <<_ACEOF
32239 #line $LINENO "configure"
32240 /* confdefs.h.  */
32241 _ACEOF
32242 cat confdefs.h >>conftest.$ac_ext
32243 cat >>conftest.$ac_ext <<_ACEOF
32244 /* end confdefs.h.  */
32245
32246 /* Override any gcc2 internal prototype to avoid an error.  */
32247 #ifdef __cplusplus
32248 extern "C"
32249 #endif
32250 /* We use char because int might match the return type of a gcc2
32251    builtin and then its argument prototype would still apply.  */
32252 char dlerror ();
32253 int
32254 main ()
32255 {
32256 dlerror ();
32257   ;
32258   return 0;
32259 }
32260 _ACEOF
32261 rm -f conftest.$ac_objext conftest$ac_exeext
32262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32263   (eval $ac_link) 2>&5
32264   ac_status=$?
32265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32266   (exit $ac_status); } &&
32267          { ac_try='test -s conftest$ac_exeext'
32268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32269   (eval $ac_try) 2>&5
32270   ac_status=$?
32271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32272   (exit $ac_status); }; }; then
32273   ac_cv_lib_dl_dlerror=yes
32274 else
32275   echo "$as_me: failed program was:" >&5
32276 sed 's/^/| /' conftest.$ac_ext >&5
32277
32278 ac_cv_lib_dl_dlerror=no
32279 fi
32280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32281 LIBS=$ac_check_lib_save_LIBS
32282 fi
32283 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
32284 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
32285 if test $ac_cv_lib_dl_dlerror = yes; then
32286   cat >>confdefs.h <<\_ACEOF
32287 #define HAVE_DLERROR 1
32288 _ACEOF
32289
32290 fi
32291
32292 fi
32293 done
32294
32295         fi
32296         fi
32297
32298         if test "$HAVE_DL_FUNCS" = 0; then
32299             if test "$HAVE_SHL_FUNCS" = 0; then
32300               if test "$USE_UNIX" = 1; then
32301                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
32302 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
32303                   wxUSE_DYNAMIC_LOADER=no
32304                   wxUSE_DYNLIB_CLASS=no
32305               else
32306                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
32307 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
32308               fi
32309             fi
32310         fi
32311     fi
32312 fi
32313
32314 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
32315     cat >>confdefs.h <<\_ACEOF
32316 #define wxUSE_DYNAMIC_LOADER 1
32317 _ACEOF
32318
32319 fi
32320 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
32321     cat >>confdefs.h <<\_ACEOF
32322 #define wxUSE_DYNLIB_CLASS 1
32323 _ACEOF
32324
32325 fi
32326
32327
32328 if test "$wxUSE_FONTMAP" = "yes" ; then
32329   cat >>confdefs.h <<\_ACEOF
32330 #define wxUSE_FONTMAP 1
32331 _ACEOF
32332
32333 fi
32334
32335 if test "$wxUSE_UNICODE" = "yes" ; then
32336   cat >>confdefs.h <<\_ACEOF
32337 #define wxUSE_UNICODE 1
32338 _ACEOF
32339
32340
32341   if test "$USE_WIN32" != 1; then
32342       wxUSE_UNICODE_MSLU=no
32343   fi
32344
32345   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
32346         echo "$as_me:$LINENO: checking for main in -lunicows" >&5
32347 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
32348 if test "${ac_cv_lib_unicows_main+set}" = set; then
32349   echo $ECHO_N "(cached) $ECHO_C" >&6
32350 else
32351   ac_check_lib_save_LIBS=$LIBS
32352 LIBS="-lunicows  $LIBS"
32353 cat >conftest.$ac_ext <<_ACEOF
32354 #line $LINENO "configure"
32355 /* confdefs.h.  */
32356 _ACEOF
32357 cat confdefs.h >>conftest.$ac_ext
32358 cat >>conftest.$ac_ext <<_ACEOF
32359 /* end confdefs.h.  */
32360
32361
32362 int
32363 main ()
32364 {
32365 main ();
32366   ;
32367   return 0;
32368 }
32369 _ACEOF
32370 rm -f conftest.$ac_objext conftest$ac_exeext
32371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32372   (eval $ac_link) 2>&5
32373   ac_status=$?
32374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32375   (exit $ac_status); } &&
32376          { ac_try='test -s conftest$ac_exeext'
32377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32378   (eval $ac_try) 2>&5
32379   ac_status=$?
32380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32381   (exit $ac_status); }; }; then
32382   ac_cv_lib_unicows_main=yes
32383 else
32384   echo "$as_me: failed program was:" >&5
32385 sed 's/^/| /' conftest.$ac_ext >&5
32386
32387 ac_cv_lib_unicows_main=no
32388 fi
32389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
32390 LIBS=$ac_check_lib_save_LIBS
32391 fi
32392 echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
32393 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
32394 if test $ac_cv_lib_unicows_main = yes; then
32395
32396                 cat >>confdefs.h <<\_ACEOF
32397 #define wxUSE_UNICODE_MSLU 1
32398 _ACEOF
32399
32400
32401 else
32402
32403                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
32404                              Applications will only run on Windows NT/2000/XP!" >&5
32405 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
32406                              Applications will only run on Windows NT/2000/XP!" >&2;}
32407                 wxUSE_UNICODE_MSLU=no
32408
32409 fi
32410
32411     fi
32412 fi
32413
32414 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
32415   cat >>confdefs.h <<\_ACEOF
32416 #define wxUSE_EXPERIMENTAL_PRINTF 1
32417 _ACEOF
32418
32419 fi
32420
32421
32422 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
32423   cat >>confdefs.h <<\_ACEOF
32424 #define wxUSE_POSTSCRIPT 1
32425 _ACEOF
32426
32427 fi
32428
32429 cat >>confdefs.h <<\_ACEOF
32430 #define wxUSE_AFM_FOR_POSTSCRIPT 1
32431 _ACEOF
32432
32433
32434 cat >>confdefs.h <<\_ACEOF
32435 #define wxUSE_NORMALIZED_PS_FONTS 1
32436 _ACEOF
32437
32438
32439
32440 if test "$wxUSE_CONSTRAINTS" = "yes"; then
32441     cat >>confdefs.h <<\_ACEOF
32442 #define wxUSE_CONSTRAINTS 1
32443 _ACEOF
32444
32445     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
32446 fi
32447
32448 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
32449    cat >>confdefs.h <<\_ACEOF
32450 #define wxUSE_MDI_ARCHITECTURE 1
32451 _ACEOF
32452
32453    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
32454 fi
32455
32456 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
32457     cat >>confdefs.h <<\_ACEOF
32458 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
32459 _ACEOF
32460
32461     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
32462     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
32463         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
32464     fi
32465 fi
32466
32467 if test "$wxUSE_HELP" = "yes"; then
32468     cat >>confdefs.h <<\_ACEOF
32469 #define wxUSE_HELP 1
32470 _ACEOF
32471
32472     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
32473
32474     if test "$wxUSE_MSW" = 1; then
32475       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
32476         cat >>confdefs.h <<\_ACEOF
32477 #define wxUSE_MS_HTML_HELP 1
32478 _ACEOF
32479
32480       fi
32481     fi
32482
32483     if test "$wxUSE_WXHTML_HELP" = "yes"; then
32484       if test "$wxUSE_HTML" = "yes"; then
32485         cat >>confdefs.h <<\_ACEOF
32486 #define wxUSE_WXHTML_HELP 1
32487 _ACEOF
32488
32489       else
32490         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
32491 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
32492         wxUSE_WXHTML_HELP=no
32493       fi
32494     fi
32495 fi
32496
32497 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
32498     if test "$wxUSE_CONSTRAINTS" != "yes"; then
32499         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
32500 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
32501     else
32502         cat >>confdefs.h <<\_ACEOF
32503 #define wxUSE_PRINTING_ARCHITECTURE 1
32504 _ACEOF
32505
32506     fi
32507     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
32508 fi
32509
32510 if test "$wxUSE_PROLOGIO" = "yes" -o  "$wxUSE_RESOURCES" = "yes"; then
32511     { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
32512 echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
32513    { (exit 1); exit 1; }; }
32514 fi
32515
32516
32517 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
32518                           -o "$wxUSE_CLIPBOARD"     = "yes" \
32519                           -o "$wxUSE_OLE"     = "yes" \
32520                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
32521
32522 for ac_header in ole2.h
32523 do
32524 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32526   echo "$as_me:$LINENO: checking for $ac_header" >&5
32527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32528 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32529   echo $ECHO_N "(cached) $ECHO_C" >&6
32530 fi
32531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32533 else
32534   # Is the header compilable?
32535 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32536 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32537 cat >conftest.$ac_ext <<_ACEOF
32538 #line $LINENO "configure"
32539 /* confdefs.h.  */
32540 _ACEOF
32541 cat confdefs.h >>conftest.$ac_ext
32542 cat >>conftest.$ac_ext <<_ACEOF
32543 /* end confdefs.h.  */
32544 $ac_includes_default
32545 #include <$ac_header>
32546 _ACEOF
32547 rm -f conftest.$ac_objext
32548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32549   (eval $ac_compile) 2>&5
32550   ac_status=$?
32551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32552   (exit $ac_status); } &&
32553          { ac_try='test -s conftest.$ac_objext'
32554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32555   (eval $ac_try) 2>&5
32556   ac_status=$?
32557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32558   (exit $ac_status); }; }; then
32559   ac_header_compiler=yes
32560 else
32561   echo "$as_me: failed program was:" >&5
32562 sed 's/^/| /' conftest.$ac_ext >&5
32563
32564 ac_header_compiler=no
32565 fi
32566 rm -f conftest.$ac_objext conftest.$ac_ext
32567 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32568 echo "${ECHO_T}$ac_header_compiler" >&6
32569
32570 # Is the header present?
32571 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32572 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32573 cat >conftest.$ac_ext <<_ACEOF
32574 #line $LINENO "configure"
32575 /* confdefs.h.  */
32576 _ACEOF
32577 cat confdefs.h >>conftest.$ac_ext
32578 cat >>conftest.$ac_ext <<_ACEOF
32579 /* end confdefs.h.  */
32580 #include <$ac_header>
32581 _ACEOF
32582 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32583   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32584   ac_status=$?
32585   grep -v '^ *+' conftest.er1 >conftest.err
32586   rm -f conftest.er1
32587   cat conftest.err >&5
32588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32589   (exit $ac_status); } >/dev/null; then
32590   if test -s conftest.err; then
32591     ac_cpp_err=$ac_c_preproc_warn_flag
32592   else
32593     ac_cpp_err=
32594   fi
32595 else
32596   ac_cpp_err=yes
32597 fi
32598 if test -z "$ac_cpp_err"; then
32599   ac_header_preproc=yes
32600 else
32601   echo "$as_me: failed program was:" >&5
32602 sed 's/^/| /' conftest.$ac_ext >&5
32603
32604   ac_header_preproc=no
32605 fi
32606 rm -f conftest.err conftest.$ac_ext
32607 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32608 echo "${ECHO_T}$ac_header_preproc" >&6
32609
32610 # So?  What about this header?
32611 case $ac_header_compiler:$ac_header_preproc in
32612   yes:no )
32613     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32615     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32616 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32617     (
32618       cat <<\_ASBOX
32619 ## ------------------------------------ ##
32620 ## Report this to bug-autoconf@gnu.org. ##
32621 ## ------------------------------------ ##
32622 _ASBOX
32623     ) |
32624       sed "s/^/$as_me: WARNING:     /" >&2
32625     ;;
32626   no:yes )
32627     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32628 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32629     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32630 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32631     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32633     (
32634       cat <<\_ASBOX
32635 ## ------------------------------------ ##
32636 ## Report this to bug-autoconf@gnu.org. ##
32637 ## ------------------------------------ ##
32638 _ASBOX
32639     ) |
32640       sed "s/^/$as_me: WARNING:     /" >&2
32641     ;;
32642 esac
32643 echo "$as_me:$LINENO: checking for $ac_header" >&5
32644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32646   echo $ECHO_N "(cached) $ECHO_C" >&6
32647 else
32648   eval "$as_ac_Header=$ac_header_preproc"
32649 fi
32650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32652
32653 fi
32654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32655   cat >>confdefs.h <<_ACEOF
32656 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32657 _ACEOF
32658
32659 fi
32660
32661 done
32662
32663
32664     if test "$ac_cv_header_ole2_h" = "yes" ; then
32665         if test "$GCC" = yes ; then
32666
32667
32668             ac_ext=cc
32669 ac_cpp='$CXXCPP $CPPFLAGS'
32670 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32671 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32672 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32673
32674
32675             echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
32676 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
32677             cat >conftest.$ac_ext <<_ACEOF
32678 #line $LINENO "configure"
32679 /* confdefs.h.  */
32680 _ACEOF
32681 cat confdefs.h >>conftest.$ac_ext
32682 cat >>conftest.$ac_ext <<_ACEOF
32683 /* end confdefs.h.  */
32684 #include <windows.h>
32685                             #include <ole2.h>
32686 int
32687 main ()
32688 {
32689
32690   ;
32691   return 0;
32692 }
32693 _ACEOF
32694 rm -f conftest.$ac_objext
32695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32696   (eval $ac_compile) 2>&5
32697   ac_status=$?
32698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32699   (exit $ac_status); } &&
32700          { ac_try='test -s conftest.$ac_objext'
32701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32702   (eval $ac_try) 2>&5
32703   ac_status=$?
32704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32705   (exit $ac_status); }; }; then
32706   echo "$as_me:$LINENO: result: no" >&5
32707 echo "${ECHO_T}no" >&6
32708 else
32709   echo "$as_me: failed program was:" >&5
32710 sed 's/^/| /' conftest.$ac_ext >&5
32711
32712 echo "$as_me:$LINENO: result: yes" >&5
32713 echo "${ECHO_T}yes" >&6
32714                             CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
32715 fi
32716 rm -f conftest.$ac_objext conftest.$ac_ext
32717             ac_ext=c
32718 ac_cpp='$CPP $CPPFLAGS'
32719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32722
32723             ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
32724             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
32725             cat >>confdefs.h <<\_ACEOF
32726 #define wxUSE_OLE 1
32727 _ACEOF
32728
32729
32730         fi
32731
32732                 cat >>confdefs.h <<\_ACEOF
32733 #define wxUSE_DATAOBJ 1
32734 _ACEOF
32735
32736     else
32737         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
32738 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
32739
32740         wxUSE_CLIPBOARD=no
32741         wxUSE_DRAG_AND_DROP=no
32742         wxUSE_DATAOBJ=no
32743         wxUSE_OLE=no
32744     fi
32745
32746     if test "$wxUSE_METAFILE" = "yes"; then
32747         cat >>confdefs.h <<\_ACEOF
32748 #define wxUSE_METAFILE 1
32749 _ACEOF
32750
32751
32752                 cat >>confdefs.h <<\_ACEOF
32753 #define wxUSE_ENH_METAFILE 1
32754 _ACEOF
32755
32756     fi
32757 fi
32758
32759 if test "$wxUSE_IPC" = "yes"; then
32760     if test "$wxUSE_SOCKETS" != "yes"; then
32761         { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
32762 echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
32763     fi
32764
32765     cat >>confdefs.h <<\_ACEOF
32766 #define wxUSE_IPC 1
32767 _ACEOF
32768
32769 fi
32770
32771 if test "$wxUSE_CLIPBOARD" = "yes"; then
32772     if test "$wxUSE_MGL" = 1; then
32773         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
32774 echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
32775         wxUSE_CLIPBOARD=no
32776     fi
32777
32778     if test "$wxUSE_CLIPBOARD" = "yes"; then
32779         cat >>confdefs.h <<\_ACEOF
32780 #define wxUSE_CLIPBOARD 1
32781 _ACEOF
32782
32783
32784                 cat >>confdefs.h <<\_ACEOF
32785 #define wxUSE_DATAOBJ 1
32786 _ACEOF
32787
32788     fi
32789 fi
32790
32791 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
32792     if test "$wxUSE_GTK" = 1; then
32793         if test "$WXGTK12" != 1; then
32794             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
32795 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
32796             wxUSE_DRAG_AND_DROP=no
32797         fi
32798     fi
32799
32800     if test "$wxUSE_MOTIF" = 1; then
32801         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
32802 echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
32803         wxUSE_DRAG_AND_DROP=no
32804     fi
32805
32806     if test "$wxUSE_X11" = 1; then
32807         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
32808 echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
32809         wxUSE_DRAG_AND_DROP=no
32810     fi
32811
32812     if test "$wxUSE_MGL" = 1; then
32813         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
32814 echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
32815         wxUSE_DRAG_AND_DROP=no
32816     fi
32817
32818     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
32819         cat >>confdefs.h <<\_ACEOF
32820 #define wxUSE_DRAG_AND_DROP 1
32821 _ACEOF
32822
32823         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
32824     fi
32825
32826 fi
32827
32828 if test "$wxUSE_SPLINES" = "yes" ; then
32829   cat >>confdefs.h <<\_ACEOF
32830 #define wxUSE_SPLINES 1
32831 _ACEOF
32832
32833 fi
32834
32835
32836 USES_CONTROLS=0
32837 if test "$wxUSE_CONTROLS" = "yes"; then
32838   USES_CONTROLS=1
32839 fi
32840
32841 if test "$wxUSE_ACCEL" = "yes"; then
32842   cat >>confdefs.h <<\_ACEOF
32843 #define wxUSE_ACCEL 1
32844 _ACEOF
32845
32846   USES_CONTROLS=1
32847 fi
32848
32849 if test "$wxUSE_BUTTON" = "yes"; then
32850   cat >>confdefs.h <<\_ACEOF
32851 #define wxUSE_BUTTON 1
32852 _ACEOF
32853
32854   USES_CONTROLS=1
32855 fi
32856
32857 if test "$wxUSE_BMPBUTTON" = "yes"; then
32858   cat >>confdefs.h <<\_ACEOF
32859 #define wxUSE_BMPBUTTON 1
32860 _ACEOF
32861
32862   USES_CONTROLS=1
32863 fi
32864
32865 if test "$wxUSE_CALCTRL" = "yes"; then
32866   cat >>confdefs.h <<\_ACEOF
32867 #define wxUSE_CALENDARCTRL 1
32868 _ACEOF
32869
32870   USES_CONTROLS=1
32871   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
32872 fi
32873
32874 if test "$wxUSE_CARET" = "yes"; then
32875   cat >>confdefs.h <<\_ACEOF
32876 #define wxUSE_CARET 1
32877 _ACEOF
32878
32879   USES_CONTROLS=1
32880   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
32881 fi
32882
32883 if test "$wxUSE_COMBOBOX" = "yes"; then
32884   cat >>confdefs.h <<\_ACEOF
32885 #define wxUSE_COMBOBOX 1
32886 _ACEOF
32887
32888   USES_CONTROLS=1
32889 fi
32890
32891 if test "$wxUSE_CHOICE" = "yes"; then
32892   cat >>confdefs.h <<\_ACEOF
32893 #define wxUSE_CHOICE 1
32894 _ACEOF
32895
32896   USES_CONTROLS=1
32897 fi
32898
32899 if test "$wxUSE_CHECKBOX" = "yes"; then
32900   cat >>confdefs.h <<\_ACEOF
32901 #define wxUSE_CHECKBOX 1
32902 _ACEOF
32903
32904   USES_CONTROLS=1
32905 fi
32906
32907 if test "$wxUSE_CHECKLST" = "yes"; then
32908   cat >>confdefs.h <<\_ACEOF
32909 #define wxUSE_CHECKLISTBOX 1
32910 _ACEOF
32911
32912   USES_CONTROLS=1
32913   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
32914 fi
32915
32916 if test "$wxUSE_DISPLAY" = "yes"; then
32917     cat >>confdefs.h <<\_ACEOF
32918 #define wxUSE_DISPLAY 1
32919 _ACEOF
32920
32921     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
32922 fi
32923
32924 if test "$wxUSE_GAUGE" = "yes"; then
32925   cat >>confdefs.h <<\_ACEOF
32926 #define wxUSE_GAUGE 1
32927 _ACEOF
32928
32929   USES_CONTROLS=1
32930 fi
32931
32932 if test "$wxUSE_GRID" = "yes"; then
32933   cat >>confdefs.h <<\_ACEOF
32934 #define wxUSE_GRID 1
32935 _ACEOF
32936
32937   USES_CONTROLS=1
32938   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
32939 fi
32940
32941 if test "$wxUSE_IMAGLIST" = "yes"; then
32942     cat >>confdefs.h <<\_ACEOF
32943 #define wxUSE_IMAGLIST 1
32944 _ACEOF
32945
32946 fi
32947
32948 if test "$wxUSE_LISTBOX" = "yes"; then
32949     cat >>confdefs.h <<\_ACEOF
32950 #define wxUSE_LISTBOX 1
32951 _ACEOF
32952
32953     USES_CONTROLS=1
32954 fi
32955
32956 if test "$wxUSE_LISTCTRL" = "yes"; then
32957     if test "$wxUSE_IMAGLIST" = "yes"; then
32958         cat >>confdefs.h <<\_ACEOF
32959 #define wxUSE_LISTCTRL 1
32960 _ACEOF
32961
32962         USES_CONTROLS=1
32963         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
32964     else
32965         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
32966 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
32967     fi
32968 fi
32969
32970 if test "$wxUSE_NOTEBOOK" = "yes"; then
32971     cat >>confdefs.h <<\_ACEOF
32972 #define wxUSE_NOTEBOOK 1
32973 _ACEOF
32974
32975     USES_CONTROLS=1
32976     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
32977 fi
32978
32979
32980 if test "$wxUSE_RADIOBOX" = "yes"; then
32981     cat >>confdefs.h <<\_ACEOF
32982 #define wxUSE_RADIOBOX 1
32983 _ACEOF
32984
32985     USES_CONTROLS=1
32986 fi
32987
32988 if test "$wxUSE_RADIOBTN" = "yes"; then
32989     cat >>confdefs.h <<\_ACEOF
32990 #define wxUSE_RADIOBTN 1
32991 _ACEOF
32992
32993     USES_CONTROLS=1
32994 fi
32995
32996 if test "$wxUSE_SASH" = "yes"; then
32997     cat >>confdefs.h <<\_ACEOF
32998 #define wxUSE_SASH 1
32999 _ACEOF
33000
33001     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
33002 fi
33003
33004 if test "$wxUSE_SCROLLBAR" = "yes"; then
33005     cat >>confdefs.h <<\_ACEOF
33006 #define wxUSE_SCROLLBAR 1
33007 _ACEOF
33008
33009     USES_CONTROLS=1
33010     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
33011 fi
33012
33013 if test "$wxUSE_SLIDER" = "yes"; then
33014     cat >>confdefs.h <<\_ACEOF
33015 #define wxUSE_SLIDER 1
33016 _ACEOF
33017
33018     USES_CONTROLS=1
33019 fi
33020
33021 if test "$wxUSE_SPINBTN" = "yes"; then
33022     cat >>confdefs.h <<\_ACEOF
33023 #define wxUSE_SPINBTN 1
33024 _ACEOF
33025
33026     USES_CONTROLS=1
33027 fi
33028
33029 if test "$wxUSE_SPINCTRL" = "yes"; then
33030     cat >>confdefs.h <<\_ACEOF
33031 #define wxUSE_SPINCTRL 1
33032 _ACEOF
33033
33034     USES_CONTROLS=1
33035 fi
33036
33037 if test "$wxUSE_SPLITTER" = "yes"; then
33038     cat >>confdefs.h <<\_ACEOF
33039 #define wxUSE_SPLITTER 1
33040 _ACEOF
33041
33042     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
33043 fi
33044
33045 if test "$wxUSE_STATBMP" = "yes"; then
33046     cat >>confdefs.h <<\_ACEOF
33047 #define wxUSE_STATBMP 1
33048 _ACEOF
33049
33050     USES_CONTROLS=1
33051 fi
33052
33053 if test "$wxUSE_STATBOX" = "yes"; then
33054     cat >>confdefs.h <<\_ACEOF
33055 #define wxUSE_STATBOX 1
33056 _ACEOF
33057
33058     USES_CONTROLS=1
33059 fi
33060
33061 if test "$wxUSE_STATTEXT" = "yes"; then
33062     cat >>confdefs.h <<\_ACEOF
33063 #define wxUSE_STATTEXT 1
33064 _ACEOF
33065
33066     USES_CONTROLS=1
33067 fi
33068
33069 if test "$wxUSE_STATLINE" = "yes"; then
33070     cat >>confdefs.h <<\_ACEOF
33071 #define wxUSE_STATLINE 1
33072 _ACEOF
33073
33074     USES_CONTROLS=1
33075 fi
33076
33077 if test "$wxUSE_STATUSBAR" = "yes"; then
33078     cat >>confdefs.h <<\_ACEOF
33079 #define wxUSE_STATUSBAR 1
33080 _ACEOF
33081
33082     USES_CONTROLS=1
33083
33084     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
33085 fi
33086
33087 if test "$wxUSE_TABDIALOG" = "yes"; then
33088     cat >>confdefs.h <<\_ACEOF
33089 #define wxUSE_TAB_DIALOG 1
33090 _ACEOF
33091
33092     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
33093 fi
33094
33095 if test "$wxUSE_TEXTCTRL" = "yes"; then
33096     cat >>confdefs.h <<\_ACEOF
33097 #define wxUSE_TEXTCTRL 1
33098 _ACEOF
33099
33100     USES_CONTROLS=1
33101     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
33102 fi
33103
33104 if test "$wxUSE_TOGGLEBTN" = "yes"; then
33105     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
33106         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
33107 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
33108         wxUSE_TOGGLEBTN=no
33109     fi
33110     if test "$wxUSE_UNIVERSAL" = "yes"; then
33111         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
33112 echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
33113         wxUSE_TOGGLEBTN=no
33114     fi
33115
33116     if test "$wxUSE_TOGGLEBTN" = "yes"; then
33117         cat >>confdefs.h <<\_ACEOF
33118 #define wxUSE_TOGGLEBTN 1
33119 _ACEOF
33120
33121         USES_CONTROLS=1
33122     fi
33123 fi
33124
33125 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
33126     cat >>confdefs.h <<\_ACEOF
33127 #define wxUSE_TOOLBAR_SIMPLE 1
33128 _ACEOF
33129
33130     wxUSE_TOOLBAR="yes"
33131     USES_CONTROLS=1
33132 fi
33133
33134 if test "$wxUSE_TOOLBAR" = "yes"; then
33135     cat >>confdefs.h <<\_ACEOF
33136 #define wxUSE_TOOLBAR 1
33137 _ACEOF
33138
33139     USES_CONTROLS=1
33140
33141         if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
33142         wxUSE_TOOLBAR_NATIVE="yes"
33143     fi
33144
33145     if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
33146         cat >>confdefs.h <<\_ACEOF
33147 #define wxUSE_TOOLBAR_NATIVE 1
33148 _ACEOF
33149
33150         USES_CONTROLS=1
33151     fi
33152
33153     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
33154 fi
33155
33156 if test "$wxUSE_TOOLTIPS" = "yes"; then
33157     if test "$wxUSE_MOTIF" = 1; then
33158         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
33159 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
33160     else
33161         if test "$wxUSE_UNIVERSAL" = "yes"; then
33162             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
33163 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
33164         else
33165             cat >>confdefs.h <<\_ACEOF
33166 #define wxUSE_TOOLTIPS 1
33167 _ACEOF
33168
33169         fi
33170     fi
33171 fi
33172
33173 if test "$wxUSE_TREECTRL" = "yes"; then
33174     if test "$wxUSE_IMAGLIST" = "yes"; then
33175         cat >>confdefs.h <<\_ACEOF
33176 #define wxUSE_TREECTRL 1
33177 _ACEOF
33178
33179         USES_CONTROLS=1
33180         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
33181     else
33182         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
33183 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
33184     fi
33185 fi
33186
33187 if test "$wxUSE_POPUPWIN" = "yes"; then
33188     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
33189         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
33190 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
33191     else
33192         if test "$wxUSE_MOTIF" = 1; then
33193             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&5
33194 echo "$as_me: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&2;}
33195         else
33196             if test "$wxUSE_PM" = 1; then
33197                 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
33198 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
33199             else
33200                 cat >>confdefs.h <<\_ACEOF
33201 #define wxUSE_POPUPWIN 1
33202 _ACEOF
33203
33204
33205                 USES_CONTROLS=1
33206             fi
33207         fi
33208     fi
33209 fi
33210
33211 if test "$wxUSE_TIPWINDOW" = "yes"; then
33212     if test "$wxUSE_PM" = 1; then
33213         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
33214 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
33215     else
33216         cat >>confdefs.h <<\_ACEOF
33217 #define wxUSE_TIPWINDOW 1
33218 _ACEOF
33219
33220     fi
33221 fi
33222
33223 if test "$USES_CONTROLS" = 1; then
33224     cat >>confdefs.h <<\_ACEOF
33225 #define wxUSE_CONTROLS 1
33226 _ACEOF
33227
33228 fi
33229
33230
33231
33232 if test "$wxUSE_DRAGIMAGE" = "yes"; then
33233     cat >>confdefs.h <<\_ACEOF
33234 #define wxUSE_DRAGIMAGE 1
33235 _ACEOF
33236
33237     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
33238 fi
33239
33240 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
33241     cat >>confdefs.h <<\_ACEOF
33242 #define wxUSE_ACCESSIBILITY 1
33243 _ACEOF
33244
33245     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
33246 fi
33247
33248 if test "$wxUSE_MENUS" = "yes"; then
33249     cat >>confdefs.h <<\_ACEOF
33250 #define wxUSE_MENUS 1
33251 _ACEOF
33252
33253     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
33254 fi
33255
33256 if test "$wxUSE_METAFILE" = "yes"; then
33257     cat >>confdefs.h <<\_ACEOF
33258 #define wxUSE_METAFILE 1
33259 _ACEOF
33260
33261 fi
33262
33263 if test "$wxUSE_MIMETYPE" = "yes"; then
33264     cat >>confdefs.h <<\_ACEOF
33265 #define wxUSE_MIMETYPE 1
33266 _ACEOF
33267
33268 fi
33269
33270 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
33271     cat >>confdefs.h <<\_ACEOF
33272 #define wxUSE_SYSTEM_OPTIONS 1
33273 _ACEOF
33274
33275 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
33276         "$TOOLKIT" = "MOTIF"; then
33277     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
33278 fi
33279
33280 fi
33281
33282 if test "$wxUSE_MINIFRAME" = "yes"; then
33283     cat >>confdefs.h <<\_ACEOF
33284 #define wxUSE_MINIFRAME 1
33285 _ACEOF
33286
33287     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
33288 fi
33289
33290 USE_HTML=0
33291 if test "$wxUSE_HTML" = "yes"; then
33292     cat >>confdefs.h <<\_ACEOF
33293 #define wxUSE_HTML 1
33294 _ACEOF
33295
33296     USE_HTML=1
33297     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
33298 fi
33299
33300 if test "$wxUSE_VALIDATORS" = "yes"; then
33301     cat >>confdefs.h <<\_ACEOF
33302 #define wxUSE_VALIDATORS 1
33303 _ACEOF
33304
33305     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
33306 fi
33307
33308 if test "$wxUSE_PALETTE" = "yes" ; then
33309   cat >>confdefs.h <<\_ACEOF
33310 #define wxUSE_PALETTE 1
33311 _ACEOF
33312
33313 fi
33314
33315 if test "$wxUSE_IMAGE" = "yes" ; then
33316   cat >>confdefs.h <<\_ACEOF
33317 #define wxUSE_IMAGE 1
33318 _ACEOF
33319
33320 fi
33321
33322 if test "$wxUSE_GIF" = "yes" ; then
33323   cat >>confdefs.h <<\_ACEOF
33324 #define wxUSE_GIF 1
33325 _ACEOF
33326
33327 fi
33328
33329 if test "$wxUSE_PCX" = "yes" ; then
33330   cat >>confdefs.h <<\_ACEOF
33331 #define wxUSE_PCX 1
33332 _ACEOF
33333
33334 fi
33335
33336 if test "$wxUSE_IFF" = "yes" ; then
33337   cat >>confdefs.h <<\_ACEOF
33338 #define wxUSE_IFF 1
33339 _ACEOF
33340
33341 fi
33342
33343 if test "$wxUSE_PNM" = "yes" ; then
33344   cat >>confdefs.h <<\_ACEOF
33345 #define wxUSE_PNM 1
33346 _ACEOF
33347
33348 fi
33349
33350 if test "$wxUSE_XPM" = "yes" ; then
33351   cat >>confdefs.h <<\_ACEOF
33352 #define wxUSE_XPM 1
33353 _ACEOF
33354
33355 fi
33356
33357 if test "$wxUSE_ICO_CUR" = "yes" ; then
33358   cat >>confdefs.h <<\_ACEOF
33359 #define wxUSE_ICO_CUR 1
33360 _ACEOF
33361
33362 fi
33363
33364 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
33365     LIBS=" -lunicows $LIBS"
33366 fi
33367
33368
33369 if test "$wxUSE_CHOICEDLG" = "yes"; then
33370     cat >>confdefs.h <<\_ACEOF
33371 #define wxUSE_CHOICEDLG 1
33372 _ACEOF
33373
33374 fi
33375
33376 if test "$wxUSE_COLOURDLG" = "yes"; then
33377     cat >>confdefs.h <<\_ACEOF
33378 #define wxUSE_COLOURDLG 1
33379 _ACEOF
33380
33381 fi
33382
33383 if test "$wxUSE_FILEDLG" = "yes"; then
33384     cat >>confdefs.h <<\_ACEOF
33385 #define wxUSE_FILEDLG 1
33386 _ACEOF
33387
33388 fi
33389
33390 if test "$wxUSE_FINDREPLDLG" = "yes"; then
33391     cat >>confdefs.h <<\_ACEOF
33392 #define wxUSE_FINDREPLDLG 1
33393 _ACEOF
33394
33395 fi
33396
33397 if test "$wxUSE_FONTDLG" = "yes"; then
33398     cat >>confdefs.h <<\_ACEOF
33399 #define wxUSE_FONTDLG 1
33400 _ACEOF
33401
33402 fi
33403
33404 if test "$wxUSE_DIRDLG" = "yes"; then
33405     if test "$wxUSE_TREECTRL" != "yes"; then
33406         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
33407 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
33408     else
33409         cat >>confdefs.h <<\_ACEOF
33410 #define wxUSE_DIRDLG 1
33411 _ACEOF
33412
33413     fi
33414 fi
33415
33416 if test "$wxUSE_MSGDLG" = "yes"; then
33417     cat >>confdefs.h <<\_ACEOF
33418 #define wxUSE_MSGDLG 1
33419 _ACEOF
33420
33421 fi
33422
33423 if test "$wxUSE_NUMBERDLG" = "yes"; then
33424     cat >>confdefs.h <<\_ACEOF
33425 #define wxUSE_NUMBERDLG 1
33426 _ACEOF
33427
33428 fi
33429
33430 if test "$wxUSE_PROGRESSDLG" = "yes"; then
33431     if test "$wxUSE_CONSTRAINTS" != "yes"; then
33432        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
33433 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
33434     else
33435         cat >>confdefs.h <<\_ACEOF
33436 #define wxUSE_PROGRESSDLG 1
33437 _ACEOF
33438
33439     fi
33440 fi
33441
33442 if test "$wxUSE_SPLASH" = "yes"; then
33443     cat >>confdefs.h <<\_ACEOF
33444 #define wxUSE_SPLASH 1
33445 _ACEOF
33446
33447 fi
33448
33449 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
33450     if test "$wxUSE_CONSTRAINTS" != "yes"; then
33451        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
33452 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
33453     else
33454         cat >>confdefs.h <<\_ACEOF
33455 #define wxUSE_STARTUP_TIPS 1
33456 _ACEOF
33457
33458     fi
33459 fi
33460
33461 if test "$wxUSE_TEXTDLG" = "yes"; then
33462     cat >>confdefs.h <<\_ACEOF
33463 #define wxUSE_TEXTDLG 1
33464 _ACEOF
33465
33466 fi
33467
33468 if test "$wxUSE_WIZARDDLG" = "yes"; then
33469     cat >>confdefs.h <<\_ACEOF
33470 #define wxUSE_WIZARDDLG 1
33471 _ACEOF
33472
33473     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
33474 fi
33475
33476
33477 if test "$cross_compiling" = "yes"; then
33478         OSINFO="\"$host\""
33479 else
33480         OSINFO=`uname -s -r -m`
33481     OSINFO="\"$OSINFO\""
33482 fi
33483
33484 cat >>confdefs.h <<_ACEOF
33485 #define WXWIN_OS_DESCRIPTION $OSINFO
33486 _ACEOF
33487
33488
33489
33490 if test "x$prefix" != "xNONE"; then
33491     wxPREFIX=$prefix
33492 else
33493     wxPREFIX=$ac_default_prefix
33494 fi
33495
33496 cat >>confdefs.h <<_ACEOF
33497 #define wxINSTALL_PREFIX "$wxPREFIX"
33498 _ACEOF
33499
33500
33501 top_builddir_wxconfig=`pwd`
33502
33503
33504
33505 CORE_BASE_LIBS="net base"
33506 CORE_GUI_LIBS="adv core"
33507
33508 if test "$wxUSE_XML" = "yes" ; then
33509     CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
33510 fi
33511 if test "$wxUSE_ODBC" != "no" ; then
33512     CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
33513     CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
33514 fi
33515 if test "$wxUSE_HTML" = "yes" ; then
33516     CORE_GUI_LIBS="html $CORE_GUI_LIBS"
33517 fi
33518
33519
33520
33521
33522
33523
33524
33525
33526 if test "$wxUSE_MAC" = 1 ; then
33527     LDFLAGS="$LDFLAGS -framework Carbon -framework System"
33528 fi
33529 if test "$wxUSE_COCOA" = 1 ; then
33530     LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
33531 fi
33532
33533
33534 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
33535
33536 have_cos=0
33537 have_floor=0
33538
33539 for ac_func in cos
33540 do
33541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33542 echo "$as_me:$LINENO: checking for $ac_func" >&5
33543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33544 if eval "test \"\${$as_ac_var+set}\" = set"; then
33545   echo $ECHO_N "(cached) $ECHO_C" >&6
33546 else
33547   cat >conftest.$ac_ext <<_ACEOF
33548 #line $LINENO "configure"
33549 /* confdefs.h.  */
33550 _ACEOF
33551 cat confdefs.h >>conftest.$ac_ext
33552 cat >>conftest.$ac_ext <<_ACEOF
33553 /* end confdefs.h.  */
33554 /* System header to define __stub macros and hopefully few prototypes,
33555     which can conflict with char $ac_func (); below.
33556     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33557     <limits.h> exists even on freestanding compilers.  */
33558 #ifdef __STDC__
33559 # include <limits.h>
33560 #else
33561 # include <assert.h>
33562 #endif
33563 /* Override any gcc2 internal prototype to avoid an error.  */
33564 #ifdef __cplusplus
33565 extern "C"
33566 {
33567 #endif
33568 /* We use char because int might match the return type of a gcc2
33569    builtin and then its argument prototype would still apply.  */
33570 char $ac_func ();
33571 /* The GNU C library defines this for functions which it implements
33572     to always fail with ENOSYS.  Some functions are actually named
33573     something starting with __ and the normal name is an alias.  */
33574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33575 choke me
33576 #else
33577 char (*f) () = $ac_func;
33578 #endif
33579 #ifdef __cplusplus
33580 }
33581 #endif
33582
33583 int
33584 main ()
33585 {
33586 return f != $ac_func;
33587   ;
33588   return 0;
33589 }
33590 _ACEOF
33591 rm -f conftest.$ac_objext conftest$ac_exeext
33592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33593   (eval $ac_link) 2>&5
33594   ac_status=$?
33595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33596   (exit $ac_status); } &&
33597          { ac_try='test -s conftest$ac_exeext'
33598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33599   (eval $ac_try) 2>&5
33600   ac_status=$?
33601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33602   (exit $ac_status); }; }; then
33603   eval "$as_ac_var=yes"
33604 else
33605   echo "$as_me: failed program was:" >&5
33606 sed 's/^/| /' conftest.$ac_ext >&5
33607
33608 eval "$as_ac_var=no"
33609 fi
33610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33611 fi
33612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33613 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33614 if test `eval echo '${'$as_ac_var'}'` = yes; then
33615   cat >>confdefs.h <<_ACEOF
33616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33617 _ACEOF
33618  have_cos=1
33619 fi
33620 done
33621
33622
33623 for ac_func in floor
33624 do
33625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33626 echo "$as_me:$LINENO: checking for $ac_func" >&5
33627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33628 if eval "test \"\${$as_ac_var+set}\" = set"; then
33629   echo $ECHO_N "(cached) $ECHO_C" >&6
33630 else
33631   cat >conftest.$ac_ext <<_ACEOF
33632 #line $LINENO "configure"
33633 /* confdefs.h.  */
33634 _ACEOF
33635 cat confdefs.h >>conftest.$ac_ext
33636 cat >>conftest.$ac_ext <<_ACEOF
33637 /* end confdefs.h.  */
33638 /* System header to define __stub macros and hopefully few prototypes,
33639     which can conflict with char $ac_func (); below.
33640     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33641     <limits.h> exists even on freestanding compilers.  */
33642 #ifdef __STDC__
33643 # include <limits.h>
33644 #else
33645 # include <assert.h>
33646 #endif
33647 /* Override any gcc2 internal prototype to avoid an error.  */
33648 #ifdef __cplusplus
33649 extern "C"
33650 {
33651 #endif
33652 /* We use char because int might match the return type of a gcc2
33653    builtin and then its argument prototype would still apply.  */
33654 char $ac_func ();
33655 /* The GNU C library defines this for functions which it implements
33656     to always fail with ENOSYS.  Some functions are actually named
33657     something starting with __ and the normal name is an alias.  */
33658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33659 choke me
33660 #else
33661 char (*f) () = $ac_func;
33662 #endif
33663 #ifdef __cplusplus
33664 }
33665 #endif
33666
33667 int
33668 main ()
33669 {
33670 return f != $ac_func;
33671   ;
33672   return 0;
33673 }
33674 _ACEOF
33675 rm -f conftest.$ac_objext conftest$ac_exeext
33676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33677   (eval $ac_link) 2>&5
33678   ac_status=$?
33679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33680   (exit $ac_status); } &&
33681          { ac_try='test -s conftest$ac_exeext'
33682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33683   (eval $ac_try) 2>&5
33684   ac_status=$?
33685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33686   (exit $ac_status); }; }; then
33687   eval "$as_ac_var=yes"
33688 else
33689   echo "$as_me: failed program was:" >&5
33690 sed 's/^/| /' conftest.$ac_ext >&5
33691
33692 eval "$as_ac_var=no"
33693 fi
33694 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33695 fi
33696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33697 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33698 if test `eval echo '${'$as_ac_var'}'` = yes; then
33699   cat >>confdefs.h <<_ACEOF
33700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33701 _ACEOF
33702  have_floor=1
33703 fi
33704 done
33705
33706 echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
33707 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
33708 if test "$have_cos" = 1 -a "$have_floor" = 1; then
33709     echo "$as_me:$LINENO: result: yes" >&5
33710 echo "${ECHO_T}yes" >&6
33711 else
33712     echo "$as_me:$LINENO: result: no" >&5
33713 echo "${ECHO_T}no" >&6
33714     LIBS="$LIBS -lm"
33715     # use different functions to avoid configure caching
33716     have_sin=0
33717     have_ceil=0
33718
33719 for ac_func in sin
33720 do
33721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33722 echo "$as_me:$LINENO: checking for $ac_func" >&5
33723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33724 if eval "test \"\${$as_ac_var+set}\" = set"; then
33725   echo $ECHO_N "(cached) $ECHO_C" >&6
33726 else
33727   cat >conftest.$ac_ext <<_ACEOF
33728 #line $LINENO "configure"
33729 /* confdefs.h.  */
33730 _ACEOF
33731 cat confdefs.h >>conftest.$ac_ext
33732 cat >>conftest.$ac_ext <<_ACEOF
33733 /* end confdefs.h.  */
33734 /* System header to define __stub macros and hopefully few prototypes,
33735     which can conflict with char $ac_func (); below.
33736     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33737     <limits.h> exists even on freestanding compilers.  */
33738 #ifdef __STDC__
33739 # include <limits.h>
33740 #else
33741 # include <assert.h>
33742 #endif
33743 /* Override any gcc2 internal prototype to avoid an error.  */
33744 #ifdef __cplusplus
33745 extern "C"
33746 {
33747 #endif
33748 /* We use char because int might match the return type of a gcc2
33749    builtin and then its argument prototype would still apply.  */
33750 char $ac_func ();
33751 /* The GNU C library defines this for functions which it implements
33752     to always fail with ENOSYS.  Some functions are actually named
33753     something starting with __ and the normal name is an alias.  */
33754 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33755 choke me
33756 #else
33757 char (*f) () = $ac_func;
33758 #endif
33759 #ifdef __cplusplus
33760 }
33761 #endif
33762
33763 int
33764 main ()
33765 {
33766 return f != $ac_func;
33767   ;
33768   return 0;
33769 }
33770 _ACEOF
33771 rm -f conftest.$ac_objext conftest$ac_exeext
33772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33773   (eval $ac_link) 2>&5
33774   ac_status=$?
33775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33776   (exit $ac_status); } &&
33777          { ac_try='test -s conftest$ac_exeext'
33778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33779   (eval $ac_try) 2>&5
33780   ac_status=$?
33781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33782   (exit $ac_status); }; }; then
33783   eval "$as_ac_var=yes"
33784 else
33785   echo "$as_me: failed program was:" >&5
33786 sed 's/^/| /' conftest.$ac_ext >&5
33787
33788 eval "$as_ac_var=no"
33789 fi
33790 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33791 fi
33792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33793 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33794 if test `eval echo '${'$as_ac_var'}'` = yes; then
33795   cat >>confdefs.h <<_ACEOF
33796 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33797 _ACEOF
33798  have_sin=1
33799 fi
33800 done
33801
33802
33803 for ac_func in ceil
33804 do
33805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33806 echo "$as_me:$LINENO: checking for $ac_func" >&5
33807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33808 if eval "test \"\${$as_ac_var+set}\" = set"; then
33809   echo $ECHO_N "(cached) $ECHO_C" >&6
33810 else
33811   cat >conftest.$ac_ext <<_ACEOF
33812 #line $LINENO "configure"
33813 /* confdefs.h.  */
33814 _ACEOF
33815 cat confdefs.h >>conftest.$ac_ext
33816 cat >>conftest.$ac_ext <<_ACEOF
33817 /* end confdefs.h.  */
33818 /* System header to define __stub macros and hopefully few prototypes,
33819     which can conflict with char $ac_func (); below.
33820     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33821     <limits.h> exists even on freestanding compilers.  */
33822 #ifdef __STDC__
33823 # include <limits.h>
33824 #else
33825 # include <assert.h>
33826 #endif
33827 /* Override any gcc2 internal prototype to avoid an error.  */
33828 #ifdef __cplusplus
33829 extern "C"
33830 {
33831 #endif
33832 /* We use char because int might match the return type of a gcc2
33833    builtin and then its argument prototype would still apply.  */
33834 char $ac_func ();
33835 /* The GNU C library defines this for functions which it implements
33836     to always fail with ENOSYS.  Some functions are actually named
33837     something starting with __ and the normal name is an alias.  */
33838 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33839 choke me
33840 #else
33841 char (*f) () = $ac_func;
33842 #endif
33843 #ifdef __cplusplus
33844 }
33845 #endif
33846
33847 int
33848 main ()
33849 {
33850 return f != $ac_func;
33851   ;
33852   return 0;
33853 }
33854 _ACEOF
33855 rm -f conftest.$ac_objext conftest$ac_exeext
33856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33857   (eval $ac_link) 2>&5
33858   ac_status=$?
33859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33860   (exit $ac_status); } &&
33861          { ac_try='test -s conftest$ac_exeext'
33862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33863   (eval $ac_try) 2>&5
33864   ac_status=$?
33865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33866   (exit $ac_status); }; }; then
33867   eval "$as_ac_var=yes"
33868 else
33869   echo "$as_me: failed program was:" >&5
33870 sed 's/^/| /' conftest.$ac_ext >&5
33871
33872 eval "$as_ac_var=no"
33873 fi
33874 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
33875 fi
33876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33877 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33878 if test `eval echo '${'$as_ac_var'}'` = yes; then
33879   cat >>confdefs.h <<_ACEOF
33880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33881 _ACEOF
33882  have_ceil=1
33883 fi
33884 done
33885
33886     echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
33887 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
33888     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
33889         echo "$as_me:$LINENO: result: yes" >&5
33890 echo "${ECHO_T}yes" >&6
33891     else
33892         echo "$as_me:$LINENO: result: no" >&5
33893 echo "${ECHO_T}no" >&6
33894         # not sure we should warn the user, crash, etc.
33895     fi
33896 fi
33897
33898 if test "$wxUSE_GUI" = "yes"; then
33899
33900
33901             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
33902                      drawing dynamic erase event exec font image \
33903                      minimal propsize rotate shaped widgets render"
33904
33905     if test "$wxUSE_MONOLITHIC" != "yes"; then
33906         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
33907     fi
33908 else
33909     SAMPLES_SUBDIRS="console"
33910 fi
33911
33912
33913 INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
33914 -I\${top_srcdir}/include \
33915 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
33916 $TOOLKIT_INCLUDE"
33917
33918 if test "$GXX" = yes ; then
33919         CXXWARNINGS="-Wall"
33920         fi
33921
33922 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
33923
33924 CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
33925 CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
33926 CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
33927
33928
33929 LIBS=`echo $LIBS | sed 's/ \+/ /g'`
33930 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
33931 EXTRALIBS_XML="$EXPAT_LINK"
33932 EXTRALIBS_ODBC="$ODBC_LINK"
33933 if test "$wxUSE_GUI" = "yes"; then
33934     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
33935 fi
33936 if test "$wxUSE_OPENGL" = "yes"; then
33937     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
33938 fi
33939
33940 LDFLAGS="$LDFLAGS $PROFILE"
33941
33942 if test "$wxUSE_GTK" = 1; then
33943     WXCONFIG_INCLUDE=
33944 else
33945     WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
33946 fi
33947
33948 WXCONFIG_EXTRALIBS="$LIBS"
33949
33950 if test "$wxUSE_REGEX" = "builtin" ; then
33951     wxconfig_3rdparty="$wxconfig_3rdparty regex"
33952 fi
33953 if test "$wxUSE_EXPAT" = "builtin" ; then
33954     wxconfig_3rdparty="$wxconfig_3rdparty expat"
33955 fi
33956 if test "$wxUSE_ODBC" = "builtin" ; then
33957     wxconfig_3rdparty="$wxconfig_3rdparty odbc"
33958 fi
33959 if test "$wxUSE_LIBTIFF" = "builtin" ; then
33960     wxconfig_3rdparty="$wxconfig_3rdparty tiff"
33961 fi
33962 if test "$wxUSE_LIBJPEG" = "builtin" ; then
33963     wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
33964 fi
33965 if test "$wxUSE_LIBPNG" = "builtin" ; then
33966     wxconfig_3rdparty="$wxconfig_3rdparty png"
33967 fi
33968 if test "$wxUSE_ZLIB" = "builtin" ; then
33969     wxconfig_3rdparty="$wxconfig_3rdparty zlib"
33970 fi
33971 if test "$wxUSE_ODBC" = "builtin" ; then
33972     wxconfig_3rdparty="$wxconfig_3rdparty odbc"
33973 fi
33974
33975 for i in $wxconfig_3rdparty ; do
33976     WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
33977 done
33978
33979
33980 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
33981     WXUNIV=1
33982 else
33983     WXUNIV=0
33984 fi
33985
33986
33987
33988
33989
33990
33991
33992
33993
33994 if test $wxUSE_MONOLITHIC = "yes" ; then
33995     MONOLITHIC=1
33996 else
33997     MONOLITHIC=0
33998 fi
33999
34000 if test $wxUSE_ODBC != "no" ; then
34001     USE_ODBC=1
34002 else
34003     USE_ODBC=0
34004 fi
34005
34006 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
34007     OFFICIAL_BUILD=1
34008 else
34009     OFFICIAL_BUILD=0
34010 fi
34011
34012
34013
34014
34015
34016
34017
34018
34019
34020
34021
34022
34023
34024
34025
34026
34027
34028 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr [A-Z] [a-z]`
34029
34030
34031
34032
34033
34034
34035
34036     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
34037
34038     if test -n "$ac_tool_prefix"; then
34039   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
34040 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
34041 echo "$as_me:$LINENO: checking for $ac_word" >&5
34042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34043 if test "${ac_cv_prog_RANLIB+set}" = set; then
34044   echo $ECHO_N "(cached) $ECHO_C" >&6
34045 else
34046   if test -n "$RANLIB"; then
34047   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
34048 else
34049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34050 for as_dir in $PATH
34051 do
34052   IFS=$as_save_IFS
34053   test -z "$as_dir" && as_dir=.
34054   for ac_exec_ext in '' $ac_executable_extensions; do
34055   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34056     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
34057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34058     break 2
34059   fi
34060 done
34061 done
34062
34063 fi
34064 fi
34065 RANLIB=$ac_cv_prog_RANLIB
34066 if test -n "$RANLIB"; then
34067   echo "$as_me:$LINENO: result: $RANLIB" >&5
34068 echo "${ECHO_T}$RANLIB" >&6
34069 else
34070   echo "$as_me:$LINENO: result: no" >&5
34071 echo "${ECHO_T}no" >&6
34072 fi
34073
34074 fi
34075 if test -z "$ac_cv_prog_RANLIB"; then
34076   ac_ct_RANLIB=$RANLIB
34077   # Extract the first word of "ranlib", so it can be a program name with args.
34078 set dummy ranlib; ac_word=$2
34079 echo "$as_me:$LINENO: checking for $ac_word" >&5
34080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34081 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
34082   echo $ECHO_N "(cached) $ECHO_C" >&6
34083 else
34084   if test -n "$ac_ct_RANLIB"; then
34085   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
34086 else
34087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34088 for as_dir in $PATH
34089 do
34090   IFS=$as_save_IFS
34091   test -z "$as_dir" && as_dir=.
34092   for ac_exec_ext in '' $ac_executable_extensions; do
34093   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34094     ac_cv_prog_ac_ct_RANLIB="ranlib"
34095     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34096     break 2
34097   fi
34098 done
34099 done
34100
34101   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
34102 fi
34103 fi
34104 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
34105 if test -n "$ac_ct_RANLIB"; then
34106   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
34107 echo "${ECHO_T}$ac_ct_RANLIB" >&6
34108 else
34109   echo "$as_me:$LINENO: result: no" >&5
34110 echo "${ECHO_T}no" >&6
34111 fi
34112
34113   RANLIB=$ac_ct_RANLIB
34114 else
34115   RANLIB="$ac_cv_prog_RANLIB"
34116 fi
34117
34118     # Find a good install program.  We prefer a C program (faster),
34119 # so one script is as good as another.  But avoid the broken or
34120 # incompatible versions:
34121 # SysV /etc/install, /usr/sbin/install
34122 # SunOS /usr/etc/install
34123 # IRIX /sbin/install
34124 # AIX /bin/install
34125 # AmigaOS /C/install, which installs bootblocks on floppy discs
34126 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
34127 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
34128 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
34129 # ./install, which can be erroneously created by make from ./install.sh.
34130 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
34131 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
34132 if test -z "$INSTALL"; then
34133 if test "${ac_cv_path_install+set}" = set; then
34134   echo $ECHO_N "(cached) $ECHO_C" >&6
34135 else
34136   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34137 for as_dir in $PATH
34138 do
34139   IFS=$as_save_IFS
34140   test -z "$as_dir" && as_dir=.
34141   # Account for people who put trailing slashes in PATH elements.
34142 case $as_dir/ in
34143   ./ | .// | /cC/* | \
34144   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
34145   /usr/ucb/* ) ;;
34146   *)
34147     # OSF1 and SCO ODT 3.0 have their own names for install.
34148     # Don't use installbsd from OSF since it installs stuff as root
34149     # by default.
34150     for ac_prog in ginstall scoinst install; do
34151       for ac_exec_ext in '' $ac_executable_extensions; do
34152         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
34153           if test $ac_prog = install &&
34154             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
34155             # AIX install.  It has an incompatible calling convention.
34156             :
34157           elif test $ac_prog = install &&
34158             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
34159             # program-specific install script used by HP pwplus--don't use.
34160             :
34161           else
34162             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
34163             break 3
34164           fi
34165         fi
34166       done
34167     done
34168     ;;
34169 esac
34170 done
34171
34172
34173 fi
34174   if test "${ac_cv_path_install+set}" = set; then
34175     INSTALL=$ac_cv_path_install
34176   else
34177     # As a last resort, use the slow shell script.  We don't cache a
34178     # path for INSTALL within a source directory, because that will
34179     # break other packages using the cache if that directory is
34180     # removed, or if the path is relative.
34181     INSTALL=$ac_install_sh
34182   fi
34183 fi
34184 echo "$as_me:$LINENO: result: $INSTALL" >&5
34185 echo "${ECHO_T}$INSTALL" >&6
34186
34187 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
34188 # It thinks the first close brace ends the variable substitution.
34189 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
34190
34191 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
34192
34193 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
34194
34195     echo "$as_me:$LINENO: checking whether ln -s works" >&5
34196 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
34197 LN_S=$as_ln_s
34198 if test "$LN_S" = "ln -s"; then
34199   echo "$as_me:$LINENO: result: yes" >&5
34200 echo "${ECHO_T}yes" >&6
34201 else
34202   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
34203 echo "${ECHO_T}no, using $LN_S" >&6
34204 fi
34205
34206
34207     echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
34208 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
34209 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
34210 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
34211   echo $ECHO_N "(cached) $ECHO_C" >&6
34212 else
34213   cat >conftest.make <<\_ACEOF
34214 all:
34215         @echo 'ac_maketemp="$(MAKE)"'
34216 _ACEOF
34217 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
34218 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
34219 if test -n "$ac_maketemp"; then
34220   eval ac_cv_prog_make_${ac_make}_set=yes
34221 else
34222   eval ac_cv_prog_make_${ac_make}_set=no
34223 fi
34224 rm -f conftest.make
34225 fi
34226 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
34227   echo "$as_me:$LINENO: result: yes" >&5
34228 echo "${ECHO_T}yes" >&6
34229   SET_MAKE=
34230 else
34231   echo "$as_me:$LINENO: result: no" >&5
34232 echo "${ECHO_T}no" >&6
34233   SET_MAKE="MAKE=${MAKE-make}"
34234 fi
34235
34236
34237
34238     if test "$build" != "$host" ; then
34239         AR=$host_alias-ar
34240         STRIP=$host_alias-strip
34241     else
34242         # Extract the first word of "ar", so it can be a program name with args.
34243 set dummy ar; ac_word=$2
34244 echo "$as_me:$LINENO: checking for $ac_word" >&5
34245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34246 if test "${ac_cv_prog_AR+set}" = set; then
34247   echo $ECHO_N "(cached) $ECHO_C" >&6
34248 else
34249   if test -n "$AR"; then
34250   ac_cv_prog_AR="$AR" # Let the user override the test.
34251 else
34252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34253 for as_dir in $PATH
34254 do
34255   IFS=$as_save_IFS
34256   test -z "$as_dir" && as_dir=.
34257   for ac_exec_ext in '' $ac_executable_extensions; do
34258   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34259     ac_cv_prog_AR="ar"
34260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34261     break 2
34262   fi
34263 done
34264 done
34265
34266   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
34267 fi
34268 fi
34269 AR=$ac_cv_prog_AR
34270 if test -n "$AR"; then
34271   echo "$as_me:$LINENO: result: $AR" >&5
34272 echo "${ECHO_T}$AR" >&6
34273 else
34274   echo "$as_me:$LINENO: result: no" >&5
34275 echo "${ECHO_T}no" >&6
34276 fi
34277
34278         # Extract the first word of "strip", so it can be a program name with args.
34279 set dummy strip; ac_word=$2
34280 echo "$as_me:$LINENO: checking for $ac_word" >&5
34281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34282 if test "${ac_cv_prog_STRIP+set}" = set; then
34283   echo $ECHO_N "(cached) $ECHO_C" >&6
34284 else
34285   if test -n "$STRIP"; then
34286   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
34287 else
34288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34289 for as_dir in $PATH
34290 do
34291   IFS=$as_save_IFS
34292   test -z "$as_dir" && as_dir=.
34293   for ac_exec_ext in '' $ac_executable_extensions; do
34294   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34295     ac_cv_prog_STRIP="strip"
34296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34297     break 2
34298   fi
34299 done
34300 done
34301
34302   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
34303 fi
34304 fi
34305 STRIP=$ac_cv_prog_STRIP
34306 if test -n "$STRIP"; then
34307   echo "$as_me:$LINENO: result: $STRIP" >&5
34308 echo "${ECHO_T}$STRIP" >&6
34309 else
34310   echo "$as_me:$LINENO: result: no" >&5
34311 echo "${ECHO_T}no" >&6
34312 fi
34313
34314     fi
34315
34316     case ${host} in
34317         *-hp-hpux* )
34318             INSTALL_DIR="mkdir"
34319             ;;
34320         *)  INSTALL_DIR="$INSTALL -d"
34321             ;;
34322     esac
34323
34324
34325     LDFLAGS_GUI=
34326     case ${host} in
34327         *-*-cygwin* | *-*-mingw32* )
34328         LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
34329     esac
34330
34331
34332     fi
34333
34334         echo "$as_me:$LINENO: checking if make is GNU make" >&5
34335 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
34336 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
34337   echo $ECHO_N "(cached) $ECHO_C" >&6
34338 else
34339
34340         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
34341                 egrep -s GNU > /dev/null); then
34342             bakefile_cv_prog_makeisgnu="yes"
34343         else
34344             bakefile_cv_prog_makeisgnu="no"
34345         fi
34346
34347 fi
34348 echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
34349 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
34350
34351     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
34352         IF_GNU_MAKE=""
34353     else
34354         IF_GNU_MAKE="#"
34355     fi
34356
34357
34358
34359     PLATFORM_UNIX=0
34360     PLATFORM_WIN32=0
34361     PLATFORM_MSDOS=0
34362     PLATFORM_MAC=0
34363     PLATFORM_MACOSX=0
34364
34365     case "${host}" in
34366         *-*-cygwin* | *-*-mingw32* )
34367             PLATFORM_WIN32=1
34368         ;;
34369         *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
34370             PLATFORM_MSDOS=1
34371         ;;
34372         powerpc-*-darwin* )
34373             PLATFORM_MAC=1
34374             PLATFORM_MACOSX=1
34375         ;;
34376         * )
34377             PLATFORM_UNIX=1
34378         ;;
34379     esac
34380
34381
34382
34383
34384
34385
34386
34387
34388     SO_SUFFIX="so"
34389     SO_SUFFIX_MODULE="so"
34390     EXEEXT=""
34391     DLLPREFIX=lib
34392     DLLPREFIX_MODULE=
34393
34394     case "${host}" in
34395         *-hp-hpux* )
34396             SO_SUFFIX="sl"
34397             SO_SUFFIX_MODULE="sl"
34398         ;;
34399         *-*-aix* )
34400                                                                         SO_SUFFIX="a"
34401             SO_SUFFIX_MODULE="a"
34402         ;;
34403         *-*-cygwin* | *-*-mingw32* )
34404             SO_SUFFIX="dll"
34405             SO_SUFFIX_MODULE="dll"
34406             EXEEXT=".exe"
34407             DLLPREFIX=""
34408         ;;
34409         *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
34410             EXEEXT=".exe"
34411             DLLPREFIX=""
34412         ;;
34413         powerpc-*-darwin* )
34414             SO_SUFFIX="dylib"
34415             SO_SUFFIX_MODULE="bundle"
34416         ;;
34417     esac
34418
34419
34420
34421
34422
34423
34424
34425
34426         SHARED_LD_CC="\$(CC) -shared -o"
34427     SHARED_LD_CXX="\$(CXX) -shared -o"
34428
34429         if test "x$GCC" = "xyes"; then
34430                 PIC_FLAG="-fPIC"
34431     fi
34432
34433     case "${host}" in
34434       *-hp-hpux* )
34435                 if test "x$GCC" = "xyes"; then
34436                         SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
34437             SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
34438         else
34439                         LDFLAGS="$LDFLAGS -L/usr/lib"
34440
34441             SHARED_LD_CC="${CC} -b -o"
34442             SHARED_LD_CXX="${CXX} -b -o"
34443             PIC_FLAG="+Z"
34444         fi
34445       ;;
34446
34447       *-*-linux* )
34448         if test "x$GCC" != "xyes"; then
34449             echo "$as_me:$LINENO: checking for Intel compiler" >&5
34450 echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
34451 if test "${bakefile_cv_prog_icc+set}" = set; then
34452   echo $ECHO_N "(cached) $ECHO_C" >&6
34453 else
34454
34455                 cat >conftest.$ac_ext <<_ACEOF
34456 #line $LINENO "configure"
34457 /* confdefs.h.  */
34458 _ACEOF
34459 cat confdefs.h >>conftest.$ac_ext
34460 cat >>conftest.$ac_ext <<_ACEOF
34461 /* end confdefs.h.  */
34462
34463 int
34464 main ()
34465 {
34466
34467                         #ifndef __INTEL_COMPILER
34468                         #error Not icc
34469                         #endif
34470
34471   ;
34472   return 0;
34473 }
34474 _ACEOF
34475 rm -f conftest.$ac_objext
34476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34477   (eval $ac_compile) 2>&5
34478   ac_status=$?
34479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34480   (exit $ac_status); } &&
34481          { ac_try='test -s conftest.$ac_objext'
34482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34483   (eval $ac_try) 2>&5
34484   ac_status=$?
34485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34486   (exit $ac_status); }; }; then
34487   bakefile_cv_prog_icc=yes
34488 else
34489   echo "$as_me: failed program was:" >&5
34490 sed 's/^/| /' conftest.$ac_ext >&5
34491
34492 bakefile_cv_prog_icc=no
34493
34494 fi
34495 rm -f conftest.$ac_objext conftest.$ac_ext
34496
34497 fi
34498 echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
34499 echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
34500             if test "$bakefile_cv_prog_icc" = "yes"; then
34501                 PIC_FLAG="-KPIC"
34502             fi
34503         fi
34504       ;;
34505
34506       *-*-solaris2* )
34507         if test "x$GCC" != xyes ; then
34508             SHARED_LD_CC="${CC} -G -o"
34509             SHARED_LD_CXX="${CXX} -G -o"
34510             PIC_FLAG="-KPIC"
34511         fi
34512       ;;
34513
34514       *-*-darwin* )
34515                         CFLAGS="$CFLAGS -fno-common"
34516         CXXFLAGS="$CXXFLAGS -fno-common"
34517
34518
34519         cat <<EOF >shared-ld-sh
34520 #!/bin/sh
34521 #-----------------------------------------------------------------------------
34522 #-- Name:        distrib/mac/shared-ld-sh
34523 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
34524 #-- Author:      Gilles Depeyrot
34525 #-- Copyright:   (c) 2002 Gilles Depeyrot
34526 #-- Licence:     any use permitted
34527 #-----------------------------------------------------------------------------
34528
34529 verbose=0
34530 args=""
34531 objects=""
34532 linking_flag="-dynamiclib"
34533
34534 while test \${#} -gt 0; do
34535     case \${1} in
34536
34537        -v)
34538         verbose=1
34539         ;;
34540
34541        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
34542         # collect these options and values
34543         args="\${args} \${1} \${2}"
34544         shift
34545         ;;
34546
34547        -l*|-L*|-flat_namespace)
34548         # collect these options
34549         args="\${args} \${1}"
34550         ;;
34551
34552        -dynamiclib|-bundle)
34553         linking_flag="\${1}"
34554         ;;
34555
34556        -*)
34557         echo "shared-ld: unhandled option '\${1}'"
34558         exit 1
34559         ;;
34560
34561         *.o | *.a | *.dylib)
34562         # collect object files
34563         objects="\${objects} \${1}"
34564         ;;
34565
34566         *)
34567         echo "shared-ld: unhandled argument '\${1}'"
34568         exit 1
34569         ;;
34570
34571     esac
34572     shift
34573 done
34574
34575 #
34576 # Link one module containing all the others
34577 #
34578 if test \${verbose} = 1; then
34579     echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
34580 fi
34581 c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
34582 status=\$?
34583 if test \${status} != 0; then
34584     exit \${status}
34585 fi
34586
34587 #
34588 # Link the shared library from the single module created
34589 #
34590 if test \${verbose} = 1; then
34591     echo "cc \${linking_flag} master.\$\$.o \${args}"
34592 fi
34593 c++ \${linking_flag} master.\$\$.o \${args}
34594 status=\$?
34595 if test \${status} != 0; then
34596     exit \${status}
34597 fi
34598
34599 #
34600 # Remove intermediate module
34601 #
34602 rm -f master.\$\$.o
34603
34604 exit 0
34605 EOF
34606         chmod +x shared-ld-sh
34607
34608         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -undefined suppress -flat_namespace -o"
34609         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -undefined suppress -flat_namespace -o"
34610         SHARED_LD_CXX="$SHARED_LD_CC"
34611         SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
34612         PIC_FLAG="-dynamic -fPIC"
34613                                       ;;
34614
34615       *-*-aix* )
34616                 if test "x$GCC" != "xyes"; then
34617                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
34618 set dummy makeC++SharedLib; ac_word=$2
34619 echo "$as_me:$LINENO: checking for $ac_word" >&5
34620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34621 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
34622   echo $ECHO_N "(cached) $ECHO_C" >&6
34623 else
34624   if test -n "$AIX_CXX_LD"; then
34625   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
34626 else
34627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34628 for as_dir in $PATH
34629 do
34630   IFS=$as_save_IFS
34631   test -z "$as_dir" && as_dir=.
34632   for ac_exec_ext in '' $ac_executable_extensions; do
34633   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34634     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
34635     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34636     break 2
34637   fi
34638 done
34639 done
34640
34641   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
34642 fi
34643 fi
34644 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
34645 if test -n "$AIX_CXX_LD"; then
34646   echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
34647 echo "${ECHO_T}$AIX_CXX_LD" >&6
34648 else
34649   echo "$as_me:$LINENO: result: no" >&5
34650 echo "${ECHO_T}no" >&6
34651 fi
34652
34653                         SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
34654             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
34655         fi
34656       ;;
34657
34658       *-*-beos* )
34659                         SHARED_LD_CC="${LD} -shared -o"
34660         SHARED_LD_CXX="${LD} -shared -o"
34661       ;;
34662
34663       *-*-irix* )
34664                 if test "x$GCC" != "xyes"; then
34665             PIC_FLAG="-KPIC"
34666         fi
34667       ;;
34668
34669       *-*-cygwin* | *-*-mingw32* )
34670         PIC_FLAG=""
34671       ;;
34672
34673       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
34674       *-*-sunos4* | \
34675       *-*-osf* | \
34676       *-*-dgux5* | \
34677       *-*-sysv5* )
34678               ;;
34679
34680       *)
34681         { { echo "$as_me:$LINENO: error: unknown system type $host." >&5
34682 echo "$as_me: error: unknown system type $host." >&2;}
34683    { (exit 1); exit 1; }; }
34684     esac
34685
34686     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
34687         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
34688     fi
34689     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
34690         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
34691     fi
34692
34693
34694
34695
34696
34697
34698
34699
34700     USE_SOVERSION=0
34701     USE_SOVERLINUX=0
34702     USE_SOVERSOLARIS=0
34703     USE_SOSYMLINKS=0
34704     USE_MACVERSION=0
34705     SONAME_FLAG=
34706
34707     case "${host}" in
34708       *-*-linux* )
34709         SONAME_FLAG="-Wl,-soname,"
34710         USE_SOVERSION=1
34711         USE_SOVERLINUX=1
34712         USE_SOSYMLINKS=1
34713       ;;
34714
34715       *-*-solaris2* )
34716         SONAME_FLAG="-h "
34717         USE_SOVERSION=1
34718         USE_SOVERSOLARIS=1
34719         USE_SOSYMLINKS=1
34720       ;;
34721
34722       *-*-darwin* )
34723         USE_MACVERSION=1
34724         USE_SOVERSION=1
34725         USE_SOSYMLINKS=1
34726       ;;
34727     esac
34728
34729
34730
34731
34732
34733
34734
34735
34736
34737     echo "$as_me:$LINENO: checking for dependency tracking method" >&5
34738 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
34739     DEPS_TRACKING=0
34740
34741     if test "x$GCC" = "xyes"; then
34742         DEPSMODE=gcc
34743         DEPS_TRACKING=1
34744         case "${host}" in
34745             powerpc-*-darwin* )
34746                                                 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
34747             ;;
34748             * )
34749                 DEPSFLAG_GCC="-MMD"
34750             ;;
34751         esac
34752         echo "$as_me:$LINENO: result: gcc" >&5
34753 echo "${ECHO_T}gcc" >&6
34754     else
34755         echo "$as_me:$LINENO: result: none" >&5
34756 echo "${ECHO_T}none" >&6
34757     fi
34758
34759     if test $DEPS_TRACKING = 1 ; then
34760         cat <<EOF >bk-deps
34761 #!/bin/sh
34762
34763 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
34764 # script. It is used to track C/C++ files dependencies in portable way.
34765 #
34766 # Permission is given to use this file in any way.
34767
34768 DEPSMODE=$DEPSMODE
34769 DEPSDIR=.deps
34770 DEPSFLAG_GCC="$DEPSFLAG_GCC"
34771
34772 mkdir -p \$DEPSDIR
34773
34774 if test \$DEPSMODE = gcc ; then
34775     \${*} \${DEPSFLAG_GCC}
34776     status=\${?}
34777     if test \${status} != 0 ; then
34778         exit \${status}
34779     fi
34780     # move created file to the location we want it in:
34781     while test \${#} -gt 0; do
34782         case "\${1}" in
34783             -o )
34784                 shift
34785                 objfile=\${1}
34786             ;;
34787             -* )
34788             ;;
34789             * )
34790                 srcfile=\${1}
34791             ;;
34792         esac
34793         shift
34794     done
34795     depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
34796     depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
34797     if test -f \$depfile ; then
34798         sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
34799         rm -f \$depfile
34800     else
34801         depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
34802         if test -f \$depfile ; then
34803             sed -e "/^\$objfile/! s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
34804             rm -f \$depfile
34805         fi
34806     fi
34807     exit 0
34808 else
34809     \${*}
34810     exit \${?}
34811 fi
34812 EOF
34813         chmod +x bk-deps
34814     fi
34815
34816
34817
34818
34819     RESCOMP=
34820     SETFILE=
34821
34822     case ${host} in
34823         *-*-cygwin* | *-*-mingw32* )
34824                         if test "$build" != "$host" ; then
34825                 RESCOMP=$host_alias-windres
34826             else
34827                 # Extract the first word of "windres", so it can be a program name with args.
34828 set dummy windres; ac_word=$2
34829 echo "$as_me:$LINENO: checking for $ac_word" >&5
34830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34831 if test "${ac_cv_prog_RESCOMP+set}" = set; then
34832   echo $ECHO_N "(cached) $ECHO_C" >&6
34833 else
34834   if test -n "$RESCOMP"; then
34835   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34836 else
34837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34838 for as_dir in $PATH
34839 do
34840   IFS=$as_save_IFS
34841   test -z "$as_dir" && as_dir=.
34842   for ac_exec_ext in '' $ac_executable_extensions; do
34843   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34844     ac_cv_prog_RESCOMP="windres"
34845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34846     break 2
34847   fi
34848 done
34849 done
34850
34851   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
34852 fi
34853 fi
34854 RESCOMP=$ac_cv_prog_RESCOMP
34855 if test -n "$RESCOMP"; then
34856   echo "$as_me:$LINENO: result: $RESCOMP" >&5
34857 echo "${ECHO_T}$RESCOMP" >&6
34858 else
34859   echo "$as_me:$LINENO: result: no" >&5
34860 echo "${ECHO_T}no" >&6
34861 fi
34862
34863             fi
34864          ;;
34865
34866       *-*-darwin* )
34867             # Extract the first word of "Rez", so it can be a program name with args.
34868 set dummy Rez; ac_word=$2
34869 echo "$as_me:$LINENO: checking for $ac_word" >&5
34870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34871 if test "${ac_cv_prog_RESCOMP+set}" = set; then
34872   echo $ECHO_N "(cached) $ECHO_C" >&6
34873 else
34874   if test -n "$RESCOMP"; then
34875   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
34876 else
34877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34878 for as_dir in $PATH
34879 do
34880   IFS=$as_save_IFS
34881   test -z "$as_dir" && as_dir=.
34882   for ac_exec_ext in '' $ac_executable_extensions; do
34883   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34884     ac_cv_prog_RESCOMP="Rez"
34885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34886     break 2
34887   fi
34888 done
34889 done
34890
34891   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
34892 fi
34893 fi
34894 RESCOMP=$ac_cv_prog_RESCOMP
34895 if test -n "$RESCOMP"; then
34896   echo "$as_me:$LINENO: result: $RESCOMP" >&5
34897 echo "${ECHO_T}$RESCOMP" >&6
34898 else
34899   echo "$as_me:$LINENO: result: no" >&5
34900 echo "${ECHO_T}no" >&6
34901 fi
34902
34903             # Extract the first word of "SetFile", so it can be a program name with args.
34904 set dummy SetFile; ac_word=$2
34905 echo "$as_me:$LINENO: checking for $ac_word" >&5
34906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34907 if test "${ac_cv_prog_SETFILE+set}" = set; then
34908   echo $ECHO_N "(cached) $ECHO_C" >&6
34909 else
34910   if test -n "$SETFILE"; then
34911   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
34912 else
34913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34914 for as_dir in $PATH
34915 do
34916   IFS=$as_save_IFS
34917   test -z "$as_dir" && as_dir=.
34918   for ac_exec_ext in '' $ac_executable_extensions; do
34919   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34920     ac_cv_prog_SETFILE="SetFile"
34921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34922     break 2
34923   fi
34924 done
34925 done
34926
34927   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
34928 fi
34929 fi
34930 SETFILE=$ac_cv_prog_SETFILE
34931 if test -n "$SETFILE"; then
34932   echo "$as_me:$LINENO: result: $SETFILE" >&5
34933 echo "${ECHO_T}$SETFILE" >&6
34934 else
34935   echo "$as_me:$LINENO: result: no" >&5
34936 echo "${ECHO_T}no" >&6
34937 fi
34938
34939         ;;
34940     esac
34941
34942
34943
34944
34945
34946
34947
34948
34949     # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
34950 if test "${enable_precomp_headers+set}" = set; then
34951   enableval="$enable_precomp_headers"
34952   bk_use_pch="$enableval"
34953 fi;
34954
34955     GCC_PCH=0
34956
34957     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
34958         if test "x$GCC" = "xyes"; then
34959                         echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
34960 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
34961             cat >conftest.$ac_ext <<_ACEOF
34962 #line $LINENO "configure"
34963 /* confdefs.h.  */
34964 _ACEOF
34965 cat confdefs.h >>conftest.$ac_ext
34966 cat >>conftest.$ac_ext <<_ACEOF
34967 /* end confdefs.h.  */
34968
34969 int
34970 main ()
34971 {
34972
34973                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
34974                         #error "no pch support"
34975                     #endif
34976                     #if (__GNUC__ < 3)
34977                         #error "no pch support"
34978                     #endif
34979                     #if (__GNUC__ == 3) && \
34980                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
34981                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
34982                         #error "no pch support"
34983                     #endif
34984
34985   ;
34986   return 0;
34987 }
34988 _ACEOF
34989 rm -f conftest.$ac_objext
34990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34991   (eval $ac_compile) 2>&5
34992   ac_status=$?
34993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34994   (exit $ac_status); } &&
34995          { ac_try='test -s conftest.$ac_objext'
34996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34997   (eval $ac_try) 2>&5
34998   ac_status=$?
34999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35000   (exit $ac_status); }; }; then
35001
35002                     echo "$as_me:$LINENO: result: yes" >&5
35003 echo "${ECHO_T}yes" >&6
35004                                                             CPPFLAGS="-fpch-deps $CPPFLAGS"
35005                     GCC_PCH=1
35006
35007 else
35008   echo "$as_me: failed program was:" >&5
35009 sed 's/^/| /' conftest.$ac_ext >&5
35010
35011
35012                     echo "$as_me:$LINENO: result: no" >&5
35013 echo "${ECHO_T}no" >&6
35014
35015 fi
35016 rm -f conftest.$ac_objext conftest.$ac_ext
35017             if test $GCC_PCH = 1 ; then
35018                 cat <<EOF >bk-make-pch
35019 #!/bin/sh
35020
35021 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
35022 # script. It is used to generated precompiled headers.
35023 #
35024 # Permission is given to use this file in any way.
35025
35026 outfile="\${1}"
35027 header="\${2}"
35028 shift
35029 shift
35030
35031 compiler=
35032 headerfile=
35033 while test \${#} -gt 0; do
35034     case "\${1}" in
35035         -I* )
35036             incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
35037             if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
35038                 headerfile="\${incdir}/\${header}"
35039             fi
35040         ;;
35041     esac
35042     compiler="\${compiler} \${1}"
35043     shift
35044 done
35045
35046 if test "x\${headerfile}" = "x" ; then
35047     echo "error: can't find header \${header} in include paths" >2
35048 else
35049     if test -f \${outfile} ; then
35050         rm -f \${outfile}
35051     else
35052         mkdir -p \`dirname \${outfile}\`
35053     fi
35054     depsfile=".deps/\`basename \${outfile}\`.d"
35055     mkdir -p .deps
35056     # can do this because gcc is >= 3.4:
35057     \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
35058     exit \${?}
35059 fi
35060 EOF
35061                 chmod +x bk-make-pch
35062             fi
35063         fi
35064     fi
35065
35066
35067
35068
35069
35070     COND_BUILD_DEBUG="#"
35071     if test "x$BUILD" = "xdebug" ; then
35072         COND_BUILD_DEBUG=""
35073     fi
35074
35075     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
35076     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
35077         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
35078     fi
35079
35080     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
35081     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
35082         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
35083     fi
35084
35085     COND_BUILD_RELEASE="#"
35086     if test "x$BUILD" = "xrelease" ; then
35087         COND_BUILD_RELEASE=""
35088     fi
35089
35090     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
35091     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
35092         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
35093     fi
35094
35095     COND_DEBUG_FLAG_1="#"
35096     if test "x$DEBUG_FLAG" = "x1" ; then
35097         COND_DEBUG_FLAG_1=""
35098     fi
35099
35100     COND_DEBUG_INFO_0="#"
35101     if test "x$DEBUG_INFO" = "x0" ; then
35102         COND_DEBUG_INFO_0=""
35103     fi
35104
35105     COND_DEBUG_INFO_1="#"
35106     if test "x$DEBUG_INFO" = "x1" ; then
35107         COND_DEBUG_INFO_1=""
35108     fi
35109
35110     COND_DEPS_TRACKING_0="#"
35111     if test "x$DEPS_TRACKING" = "x0" ; then
35112         COND_DEPS_TRACKING_0=""
35113     fi
35114
35115     COND_DEPS_TRACKING_1="#"
35116     if test "x$DEPS_TRACKING" = "x1" ; then
35117         COND_DEPS_TRACKING_1=""
35118     fi
35119
35120     COND_GCC_PCH_1="#"
35121     if test "x$GCC_PCH" = "x1" ; then
35122         COND_GCC_PCH_1=""
35123     fi
35124
35125     COND_MONOLITHIC_0="#"
35126     if test "x$MONOLITHIC" = "x0" ; then
35127         COND_MONOLITHIC_0=""
35128     fi
35129
35130     COND_MONOLITHIC_0_SHARED_0="#"
35131     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
35132         COND_MONOLITHIC_0_SHARED_0=""
35133     fi
35134
35135     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
35136     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
35137         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
35138     fi
35139
35140     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
35141     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
35142         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
35143     fi
35144
35145     COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
35146     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
35147         COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
35148     fi
35149
35150     COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
35151     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
35152         COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
35153     fi
35154
35155     COND_MONOLITHIC_0_SHARED_1="#"
35156     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
35157         COND_MONOLITHIC_0_SHARED_1=""
35158     fi
35159
35160     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
35161     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
35162         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
35163     fi
35164
35165     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
35166     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
35167         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
35168     fi
35169
35170     COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
35171     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
35172         COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
35173     fi
35174
35175     COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
35176     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
35177         COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
35178     fi
35179
35180     COND_MONOLITHIC_1="#"
35181     if test "x$MONOLITHIC" = "x1" ; then
35182         COND_MONOLITHIC_1=""
35183     fi
35184
35185     COND_MONOLITHIC_1_SHARED_0="#"
35186     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
35187         COND_MONOLITHIC_1_SHARED_0=""
35188     fi
35189
35190     COND_MONOLITHIC_1_SHARED_1="#"
35191     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
35192         COND_MONOLITHIC_1_SHARED_1=""
35193     fi
35194
35195     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
35196     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
35197         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
35198     fi
35199
35200     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
35201     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
35202         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
35203     fi
35204
35205     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
35206     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
35207         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
35208     fi
35209
35210     COND_PLATFORM_MACOSX_1="#"
35211     if test "x$PLATFORM_MACOSX" = "x1" ; then
35212         COND_PLATFORM_MACOSX_1=""
35213     fi
35214
35215     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
35216     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
35217         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
35218     fi
35219
35220     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
35221     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
35222         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
35223     fi
35224
35225     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
35226     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
35227         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
35228     fi
35229
35230     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
35231     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
35232         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
35233     fi
35234
35235     COND_PLATFORM_MAC_1="#"
35236     if test "x$PLATFORM_MAC" = "x1" ; then
35237         COND_PLATFORM_MAC_1=""
35238     fi
35239
35240     COND_PLATFORM_UNIX_0="#"
35241     if test "x$PLATFORM_UNIX" = "x0" ; then
35242         COND_PLATFORM_UNIX_0=""
35243     fi
35244
35245     COND_PLATFORM_UNIX_1="#"
35246     if test "x$PLATFORM_UNIX" = "x1" ; then
35247         COND_PLATFORM_UNIX_1=""
35248     fi
35249
35250     COND_PLATFORM_WIN32_0="#"
35251     if test "x$PLATFORM_WIN32" = "x0" ; then
35252         COND_PLATFORM_WIN32_0=""
35253     fi
35254
35255     COND_PLATFORM_WIN32_1="#"
35256     if test "x$PLATFORM_WIN32" = "x1" ; then
35257         COND_PLATFORM_WIN32_1=""
35258     fi
35259
35260     COND_SHARED_0="#"
35261     if test "x$SHARED" = "x0" ; then
35262         COND_SHARED_0=""
35263     fi
35264
35265     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
35266     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
35267         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
35268     fi
35269
35270     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
35271     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35272         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
35273     fi
35274
35275     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
35276     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35277         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
35278     fi
35279
35280     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
35281     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35282         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
35283     fi
35284
35285     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
35286     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
35287         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
35288     fi
35289
35290     COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
35291     if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
35292         COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
35293     fi
35294
35295     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
35296     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
35297         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
35298     fi
35299
35300     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
35301     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
35302         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
35303     fi
35304
35305     COND_SHARED_1="#"
35306     if test "x$SHARED" = "x1" ; then
35307         COND_SHARED_1=""
35308     fi
35309
35310     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
35311     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
35312         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
35313     fi
35314
35315     COND_TOOLKIT_COCOA="#"
35316     if test "x$TOOLKIT" = "xCOCOA" ; then
35317         COND_TOOLKIT_COCOA=""
35318     fi
35319
35320     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
35321     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35322         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
35323     fi
35324
35325     COND_TOOLKIT_GTK="#"
35326     if test "x$TOOLKIT" = "xGTK" ; then
35327         COND_TOOLKIT_GTK=""
35328     fi
35329
35330     COND_TOOLKIT_GTK_USE_GUI_1="#"
35331     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
35332         COND_TOOLKIT_GTK_USE_GUI_1=""
35333     fi
35334
35335     COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
35336     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35337         COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
35338     fi
35339
35340     COND_TOOLKIT_MAC="#"
35341     if test "x$TOOLKIT" = "xMAC" ; then
35342         COND_TOOLKIT_MAC=""
35343     fi
35344
35345     COND_TOOLKIT_MAC_USE_GUI_1="#"
35346     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
35347         COND_TOOLKIT_MAC_USE_GUI_1=""
35348     fi
35349
35350     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
35351     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35352         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
35353     fi
35354
35355     COND_TOOLKIT_MGL="#"
35356     if test "x$TOOLKIT" = "xMGL" ; then
35357         COND_TOOLKIT_MGL=""
35358     fi
35359
35360     COND_TOOLKIT_MGL_USE_GUI_1="#"
35361     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
35362         COND_TOOLKIT_MGL_USE_GUI_1=""
35363     fi
35364
35365     COND_TOOLKIT_MOTIF="#"
35366     if test "x$TOOLKIT" = "xMOTIF" ; then
35367         COND_TOOLKIT_MOTIF=""
35368     fi
35369
35370     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
35371     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
35372         COND_TOOLKIT_MOTIF_USE_GUI_1=""
35373     fi
35374
35375     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
35376     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35377         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
35378     fi
35379
35380     COND_TOOLKIT_MSW="#"
35381     if test "x$TOOLKIT" = "xMSW" ; then
35382         COND_TOOLKIT_MSW=""
35383     fi
35384
35385     COND_TOOLKIT_MSW_USE_GUI_1="#"
35386     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
35387         COND_TOOLKIT_MSW_USE_GUI_1=""
35388     fi
35389
35390     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
35391     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35392         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
35393     fi
35394
35395     COND_TOOLKIT_OS2="#"
35396     if test "x$TOOLKIT" = "xOS2" ; then
35397         COND_TOOLKIT_OS2=""
35398     fi
35399
35400     COND_TOOLKIT_OS2_USE_GUI_1="#"
35401     if test "x$TOOLKIT" = "xOS2" -a "x$USE_GUI" = "x1" ; then
35402         COND_TOOLKIT_OS2_USE_GUI_1=""
35403     fi
35404
35405     COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0="#"
35406     if test "x$TOOLKIT" = "xOS2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35407         COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0=""
35408     fi
35409
35410     COND_TOOLKIT_X11="#"
35411     if test "x$TOOLKIT" = "xX11" ; then
35412         COND_TOOLKIT_X11=""
35413     fi
35414
35415     COND_TOOLKIT_X11_USE_GUI_1="#"
35416     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
35417         COND_TOOLKIT_X11_USE_GUI_1=""
35418     fi
35419
35420     COND_UNICODE_1="#"
35421     if test "x$UNICODE" = "x1" ; then
35422         COND_UNICODE_1=""
35423     fi
35424
35425     COND_USE_GUI_0="#"
35426     if test "x$USE_GUI" = "x0" ; then
35427         COND_USE_GUI_0=""
35428     fi
35429
35430     COND_USE_GUI_1="#"
35431     if test "x$USE_GUI" = "x1" ; then
35432         COND_USE_GUI_1=""
35433     fi
35434
35435     COND_USE_GUI_1_WXUNIV_0="#"
35436     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
35437         COND_USE_GUI_1_WXUNIV_0=""
35438     fi
35439
35440     COND_USE_GUI_1_WXUNIV_1="#"
35441     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
35442         COND_USE_GUI_1_WXUNIV_1=""
35443     fi
35444
35445     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
35446     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35447         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
35448     fi
35449
35450     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
35451     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35452         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
35453     fi
35454
35455     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
35456     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35457         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
35458     fi
35459
35460     COND_USE_SOSYMLINKS_1="#"
35461     if test "x$USE_SOSYMLINKS" = "x1" ; then
35462         COND_USE_SOSYMLINKS_1=""
35463     fi
35464
35465     COND_USE_SOVERLINUX_1="#"
35466     if test "x$USE_SOVERLINUX" = "x1" ; then
35467         COND_USE_SOVERLINUX_1=""
35468     fi
35469
35470     COND_USE_SOVERSION_0="#"
35471     if test "x$USE_SOVERSION" = "x0" ; then
35472         COND_USE_SOVERSION_0=""
35473     fi
35474
35475     COND_USE_SOVERSOLARIS_1="#"
35476     if test "x$USE_SOVERSOLARIS" = "x1" ; then
35477         COND_USE_SOVERSOLARIS_1=""
35478     fi
35479
35480     COND_WXUNIV_1="#"
35481     if test "x$WXUNIV" = "x1" ; then
35482         COND_WXUNIV_1=""
35483     fi
35484
35485     COND_WXUSE_EXPAT_BUILTIN="#"
35486     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
35487         COND_WXUSE_EXPAT_BUILTIN=""
35488     fi
35489
35490     COND_WXUSE_LIBJPEG_BUILTIN="#"
35491     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
35492         COND_WXUSE_LIBJPEG_BUILTIN=""
35493     fi
35494
35495     COND_WXUSE_LIBPNG_BUILTIN="#"
35496     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
35497         COND_WXUSE_LIBPNG_BUILTIN=""
35498     fi
35499
35500     COND_WXUSE_LIBTIFF_BUILTIN="#"
35501     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
35502         COND_WXUSE_LIBTIFF_BUILTIN=""
35503     fi
35504
35505     COND_WXUSE_ODBC_BUILTIN="#"
35506     if test "x$wxUSE_ODBC" = "xbuiltin" ; then
35507         COND_WXUSE_ODBC_BUILTIN=""
35508     fi
35509
35510     COND_WXUSE_REGEX_BUILTIN="#"
35511     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
35512         COND_WXUSE_REGEX_BUILTIN=""
35513     fi
35514
35515     COND_WXUSE_ZLIB_BUILTIN="#"
35516     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
35517         COND_WXUSE_ZLIB_BUILTIN=""
35518     fi
35519
35520
35521
35522
35523
35524 if test $GCC_PCH = 1 ; then
35525     CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
35526 else
35527     case "${host}" in
35528         powerpc-*-darwin* )
35529                                     CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
35530             ;;
35531     esac
35532 fi
35533 case "${host}" in
35534     powerpc-*-darwin* )
35535                         CODE_GEN_FLAGS_CXX="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS_CXX"
35536         ;;
35537 esac
35538
35539
35540 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
35541
35542
35543
35544
35545
35546
35547
35548
35549
35550
35551
35552
35553
35554
35555
35556
35557
35558
35559
35560
35561
35562
35563
35564
35565
35566
35567
35568
35569
35570
35571
35572
35573
35574
35575
35576
35577
35578
35579
35580
35581
35582
35583
35584
35585
35586
35587
35588
35589
35590
35591
35592
35593
35594
35595
35596
35597
35598
35599
35600
35601
35602
35603
35604
35605
35606
35607
35608
35609
35610
35611
35612
35613
35614
35615
35616
35617
35618
35619
35620
35621
35622
35623
35624
35625
35626
35627
35628
35629
35630
35631
35632
35633
35634
35635
35636
35637
35638
35639
35640
35641
35642 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
35643 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
35644 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
35645 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
35646   echo $ECHO_N "(cached) $ECHO_C" >&6
35647 else
35648   cat >conftest.make <<\_ACEOF
35649 all:
35650         @echo 'ac_maketemp="$(MAKE)"'
35651 _ACEOF
35652 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
35653 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
35654 if test -n "$ac_maketemp"; then
35655   eval ac_cv_prog_make_${ac_make}_set=yes
35656 else
35657   eval ac_cv_prog_make_${ac_make}_set=no
35658 fi
35659 rm -f conftest.make
35660 fi
35661 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
35662   echo "$as_me:$LINENO: result: yes" >&5
35663 echo "${ECHO_T}yes" >&6
35664   SET_MAKE=
35665 else
35666   echo "$as_me:$LINENO: result: no" >&5
35667 echo "${ECHO_T}no" >&6
35668   SET_MAKE="MAKE=${MAKE-make}"
35669 fi
35670
35671
35672 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
35673     mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
35674 fi
35675
35676           ac_config_headers="$ac_config_headers setup.h"
35677
35678
35679                               ac_config_files="$ac_config_files wx-config version-script Makefile"
35680
35681
35682           ac_config_commands="$ac_config_commands default"
35683
35684
35685
35686 if test "$wxUSE_GUI" = "yes"; then
35687     SUBDIRS="samples demos utils contrib"
35688 else         SUBDIRS="samples utils"
35689 fi
35690
35691 for subdir in `echo $SUBDIRS`; do
35692     if test -d ${srcdir}/${subdir} ; then
35693         if test "$wxUSE_GUI" = "yes"; then
35694             if test ${subdir} = "samples"; then
35695                                                 makefiles="samples/Makefile.in $makefiles"
35696                 for sample in `echo $SAMPLES_SUBDIRS`; do
35697                     if test -d $srcdir/samples/$sample; then
35698                         makefiles="samples/$sample/Makefile.in $makefiles"
35699                     fi
35700                 done
35701             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
35702             fi
35703         else                                     if test ${subdir} = "samples"; then
35704                 makefiles="samples/Makefile.in samples/console/Makefile.in"
35705             else                 makefiles="utils/HelpGen/Makefile.in \
35706                            utils/HelpGen/src/Makefile.in \
35707                            utils/makegen/Makefile.in"
35708             fi
35709         fi
35710
35711         for mkin in $makefiles ; do
35712             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
35713                       ac_config_files="$ac_config_files $mk"
35714
35715         done
35716     fi
35717 done
35718
35719
35720 cat >confcache <<\_ACEOF
35721 # This file is a shell script that caches the results of configure
35722 # tests run on this system so they can be shared between configure
35723 # scripts and configure runs, see configure's option --config-cache.
35724 # It is not useful on other systems.  If it contains results you don't
35725 # want to keep, you may remove or edit it.
35726 #
35727 # config.status only pays attention to the cache file if you give it
35728 # the --recheck option to rerun configure.
35729 #
35730 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35731 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35732 # following values.
35733
35734 _ACEOF
35735
35736 # The following way of writing the cache mishandles newlines in values,
35737 # but we know of no workaround that is simple, portable, and efficient.
35738 # So, don't put newlines in cache variables' values.
35739 # Ultrix sh set writes to stderr and can't be redirected directly,
35740 # and sets the high bit in the cache file unless we assign to the vars.
35741 {
35742   (set) 2>&1 |
35743     case `(ac_space=' '; set | grep ac_space) 2>&1` in
35744     *ac_space=\ *)
35745       # `set' does not quote correctly, so add quotes (double-quote
35746       # substitution turns \\\\ into \\, and sed turns \\ into \).
35747       sed -n \
35748         "s/'/'\\\\''/g;
35749           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35750       ;;
35751     *)
35752       # `set' quotes correctly as required by POSIX, so do not add quotes.
35753       sed -n \
35754         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
35755       ;;
35756     esac;
35757 } |
35758   sed '
35759      t clear
35760      : clear
35761      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35762      t end
35763      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35764      : end' >>confcache
35765 if diff $cache_file confcache >/dev/null 2>&1; then :; else
35766   if test -w $cache_file; then
35767     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
35768     cat confcache >$cache_file
35769   else
35770     echo "not updating unwritable cache $cache_file"
35771   fi
35772 fi
35773 rm -f confcache
35774
35775 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35776 # Let make expand exec_prefix.
35777 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35778
35779 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35780 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35781 # trailing colons and then remove the whole line if VPATH becomes empty
35782 # (actually we leave an empty line to preserve line numbers).
35783 if test "x$srcdir" = x.; then
35784   ac_vpsub='/^[         ]*VPATH[        ]*=/{
35785 s/:*\$(srcdir):*/:/;
35786 s/:*\${srcdir}:*/:/;
35787 s/:*@srcdir@:*/:/;
35788 s/^\([^=]*=[    ]*\):*/\1/;
35789 s/:*$//;
35790 s/^[^=]*=[      ]*$//;
35791 }'
35792 fi
35793
35794 DEFS=-DHAVE_CONFIG_H
35795
35796 ac_libobjs=
35797 ac_ltlibobjs=
35798 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35799   # 1. Remove the extension, and $U if already installed.
35800   ac_i=`echo "$ac_i" |
35801          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
35802   # 2. Add them.
35803   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
35804   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
35805 done
35806 LIBOBJS=$ac_libobjs
35807
35808 LTLIBOBJS=$ac_ltlibobjs
35809
35810
35811
35812 : ${CONFIG_STATUS=./config.status}
35813 ac_clean_files_save=$ac_clean_files
35814 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35815 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35816 echo "$as_me: creating $CONFIG_STATUS" >&6;}
35817 cat >$CONFIG_STATUS <<_ACEOF
35818 #! $SHELL
35819 # Generated by $as_me.
35820 # Run this file to recreate the current configuration.
35821 # Compiler output produced by configure, useful for debugging
35822 # configure, is in config.log if it exists.
35823
35824 debug=false
35825 ac_cs_recheck=false
35826 ac_cs_silent=false
35827 SHELL=\${CONFIG_SHELL-$SHELL}
35828 _ACEOF
35829
35830 cat >>$CONFIG_STATUS <<\_ACEOF
35831 ## --------------------- ##
35832 ## M4sh Initialization.  ##
35833 ## --------------------- ##
35834
35835 # Be Bourne compatible
35836 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35837   emulate sh
35838   NULLCMD=:
35839   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35840   # is contrary to our usage.  Disable this feature.
35841   alias -g '${1+"$@"}'='"$@"'
35842 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
35843   set -o posix
35844 fi
35845
35846 # Support unset when possible.
35847 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
35848   as_unset=unset
35849 else
35850   as_unset=false
35851 fi
35852
35853
35854 # Work around bugs in pre-3.0 UWIN ksh.
35855 $as_unset ENV MAIL MAILPATH
35856 PS1='$ '
35857 PS2='> '
35858 PS4='+ '
35859
35860 # NLS nuisances.
35861 for as_var in \
35862   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35863   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35864   LC_TELEPHONE LC_TIME
35865 do
35866   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
35867     eval $as_var=C; export $as_var
35868   else
35869     $as_unset $as_var
35870   fi
35871 done
35872
35873 # Required to use basename.
35874 if expr a : '\(a\)' >/dev/null 2>&1; then
35875   as_expr=expr
35876 else
35877   as_expr=false
35878 fi
35879
35880 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
35881   as_basename=basename
35882 else
35883   as_basename=false
35884 fi
35885
35886
35887 # Name of the executable.
35888 as_me=`$as_basename "$0" ||
35889 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35890          X"$0" : 'X\(//\)$' \| \
35891          X"$0" : 'X\(/\)$' \| \
35892          .     : '\(.\)' 2>/dev/null ||
35893 echo X/"$0" |
35894     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
35895           /^X\/\(\/\/\)$/{ s//\1/; q; }
35896           /^X\/\(\/\).*/{ s//\1/; q; }
35897           s/.*/./; q'`
35898
35899
35900 # PATH needs CR, and LINENO needs CR and PATH.
35901 # Avoid depending upon Character Ranges.
35902 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35903 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35904 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35905 as_cr_digits='0123456789'
35906 as_cr_alnum=$as_cr_Letters$as_cr_digits
35907
35908 # The user is always right.
35909 if test "${PATH_SEPARATOR+set}" != set; then
35910   echo "#! /bin/sh" >conf$$.sh
35911   echo  "exit 0"   >>conf$$.sh
35912   chmod +x conf$$.sh
35913   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
35914     PATH_SEPARATOR=';'
35915   else
35916     PATH_SEPARATOR=:
35917   fi
35918   rm -f conf$$.sh
35919 fi
35920
35921
35922   as_lineno_1=$LINENO
35923   as_lineno_2=$LINENO
35924   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
35925   test "x$as_lineno_1" != "x$as_lineno_2" &&
35926   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
35927   # Find who we are.  Look in the path if we contain no path at all
35928   # relative or not.
35929   case $0 in
35930     *[\\/]* ) as_myself=$0 ;;
35931     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35932 for as_dir in $PATH
35933 do
35934   IFS=$as_save_IFS
35935   test -z "$as_dir" && as_dir=.
35936   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35937 done
35938
35939        ;;
35940   esac
35941   # We did not find ourselves, most probably we were run as `sh COMMAND'
35942   # in which case we are not to be found in the path.
35943   if test "x$as_myself" = x; then
35944     as_myself=$0
35945   fi
35946   if test ! -f "$as_myself"; then
35947     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
35948 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
35949    { (exit 1); exit 1; }; }
35950   fi
35951   case $CONFIG_SHELL in
35952   '')
35953     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35954 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
35955 do
35956   IFS=$as_save_IFS
35957   test -z "$as_dir" && as_dir=.
35958   for as_base in sh bash ksh sh5; do
35959          case $as_dir in
35960          /*)
35961            if ("$as_dir/$as_base" -c '
35962   as_lineno_1=$LINENO
35963   as_lineno_2=$LINENO
35964   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
35965   test "x$as_lineno_1" != "x$as_lineno_2" &&
35966   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
35967              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
35968              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
35969              CONFIG_SHELL=$as_dir/$as_base
35970              export CONFIG_SHELL
35971              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
35972            fi;;
35973          esac
35974        done
35975 done
35976 ;;
35977   esac
35978
35979   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35980   # uniformly replaced by the line number.  The first 'sed' inserts a
35981   # line-number line before each line; the second 'sed' does the real
35982   # work.  The second script uses 'N' to pair each line-number line
35983   # with the numbered line, and appends trailing '-' during
35984   # substitution so that $LINENO is not a special case at line end.
35985   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
35986   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
35987   sed '=' <$as_myself |
35988     sed '
35989       N
35990       s,$,-,
35991       : loop
35992       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
35993       t loop
35994       s,-$,,
35995       s,^['$as_cr_digits']*\n,,
35996     ' >$as_me.lineno &&
35997   chmod +x $as_me.lineno ||
35998     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
35999 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
36000    { (exit 1); exit 1; }; }
36001
36002   # Don't try to exec as it changes $[0], causing all sort of problems
36003   # (the dirname of $[0] is not the place where we might find the
36004   # original and so on.  Autoconf is especially sensible to this).
36005   . ./$as_me.lineno
36006   # Exit status is that of the last command.
36007   exit
36008 }
36009
36010
36011 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
36012   *c*,-n*) ECHO_N= ECHO_C='
36013 ' ECHO_T='      ' ;;
36014   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
36015   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
36016 esac
36017
36018 if expr a : '\(a\)' >/dev/null 2>&1; then
36019   as_expr=expr
36020 else
36021   as_expr=false
36022 fi
36023
36024 rm -f conf$$ conf$$.exe conf$$.file
36025 echo >conf$$.file
36026 if ln -s conf$$.file conf$$ 2>/dev/null; then
36027   # We could just check for DJGPP; but this test a) works b) is more generic
36028   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
36029   if test -f conf$$.exe; then
36030     # Don't use ln at all; we don't have any links
36031     as_ln_s='cp -p'
36032   else
36033     as_ln_s='ln -s'
36034   fi
36035 elif ln conf$$.file conf$$ 2>/dev/null; then
36036   as_ln_s=ln
36037 else
36038   as_ln_s='cp -p'
36039 fi
36040 rm -f conf$$ conf$$.exe conf$$.file
36041
36042 if mkdir -p . 2>/dev/null; then
36043   as_mkdir_p=:
36044 else
36045   as_mkdir_p=false
36046 fi
36047
36048 as_executable_p="test -f"
36049
36050 # Sed expression to map a string onto a valid CPP name.
36051 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
36052
36053 # Sed expression to map a string onto a valid variable name.
36054 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
36055
36056
36057 # IFS
36058 # We need space, tab and new line, in precisely that order.
36059 as_nl='
36060 '
36061 IFS="   $as_nl"
36062
36063 # CDPATH.
36064 $as_unset CDPATH
36065
36066 exec 6>&1
36067
36068 # Open the log real soon, to keep \$[0] and so on meaningful, and to
36069 # report actual input values of CONFIG_FILES etc. instead of their
36070 # values after options handling.  Logging --version etc. is OK.
36071 exec 5>>config.log
36072 {
36073   echo
36074   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36075 ## Running $as_me. ##
36076 _ASBOX
36077 } >&5
36078 cat >&5 <<_CSEOF
36079
36080 This file was extended by wxWindows $as_me 2.5.0, which was
36081 generated by GNU Autoconf 2.57.  Invocation command line was
36082
36083   CONFIG_FILES    = $CONFIG_FILES
36084   CONFIG_HEADERS  = $CONFIG_HEADERS
36085   CONFIG_LINKS    = $CONFIG_LINKS
36086   CONFIG_COMMANDS = $CONFIG_COMMANDS
36087   $ $0 $@
36088
36089 _CSEOF
36090 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
36091 echo >&5
36092 _ACEOF
36093
36094 # Files that config.status was made for.
36095 if test -n "$ac_config_files"; then
36096   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
36097 fi
36098
36099 if test -n "$ac_config_headers"; then
36100   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
36101 fi
36102
36103 if test -n "$ac_config_links"; then
36104   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
36105 fi
36106
36107 if test -n "$ac_config_commands"; then
36108   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
36109 fi
36110
36111 cat >>$CONFIG_STATUS <<\_ACEOF
36112
36113 ac_cs_usage="\
36114 \`$as_me' instantiates files from templates according to the
36115 current configuration.
36116
36117 Usage: $0 [OPTIONS] [FILE]...
36118
36119   -h, --help       print this help, then exit
36120   -V, --version    print version number, then exit
36121   -q, --quiet      do not print progress messages
36122   -d, --debug      don't remove temporary files
36123       --recheck    update $as_me by reconfiguring in the same conditions
36124   --file=FILE[:TEMPLATE]
36125                    instantiate the configuration file FILE
36126   --header=FILE[:TEMPLATE]
36127                    instantiate the configuration header FILE
36128
36129 Configuration files:
36130 $config_files
36131
36132 Configuration headers:
36133 $config_headers
36134
36135 Configuration commands:
36136 $config_commands
36137
36138 Report bugs to <bug-autoconf@gnu.org>."
36139 _ACEOF
36140
36141 cat >>$CONFIG_STATUS <<_ACEOF
36142 ac_cs_version="\\
36143 wxWindows config.status 2.5.0
36144 configured by $0, generated by GNU Autoconf 2.57,
36145   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
36146
36147 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
36148 Free Software Foundation, Inc.
36149 This config.status script is free software; the Free Software Foundation
36150 gives unlimited permission to copy, distribute and modify it."
36151 srcdir=$srcdir
36152 INSTALL="$INSTALL"
36153 _ACEOF
36154
36155 cat >>$CONFIG_STATUS <<\_ACEOF
36156 # If no file are specified by the user, then we need to provide default
36157 # value.  By we need to know if files were specified by the user.
36158 ac_need_defaults=:
36159 while test $# != 0
36160 do
36161   case $1 in
36162   --*=*)
36163     ac_option=`expr "x$1" : 'x\([^=]*\)='`
36164     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
36165     ac_shift=:
36166     ;;
36167   -*)
36168     ac_option=$1
36169     ac_optarg=$2
36170     ac_shift=shift
36171     ;;
36172   *) # This is not an option, so the user has probably given explicit
36173      # arguments.
36174      ac_option=$1
36175      ac_need_defaults=false;;
36176   esac
36177
36178   case $ac_option in
36179   # Handling of the options.
36180 _ACEOF
36181 cat >>$CONFIG_STATUS <<\_ACEOF
36182   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36183     ac_cs_recheck=: ;;
36184   --version | --vers* | -V )
36185     echo "$ac_cs_version"; exit 0 ;;
36186   --he | --h)
36187     # Conflict between --help and --header
36188     { { echo "$as_me:$LINENO: error: ambiguous option: $1
36189 Try \`$0 --help' for more information." >&5
36190 echo "$as_me: error: ambiguous option: $1
36191 Try \`$0 --help' for more information." >&2;}
36192    { (exit 1); exit 1; }; };;
36193   --help | --hel | -h )
36194     echo "$ac_cs_usage"; exit 0 ;;
36195   --debug | --d* | -d )
36196     debug=: ;;
36197   --file | --fil | --fi | --f )
36198     $ac_shift
36199     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
36200     ac_need_defaults=false;;
36201   --header | --heade | --head | --hea )
36202     $ac_shift
36203     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
36204     ac_need_defaults=false;;
36205   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36206   | -silent | --silent | --silen | --sile | --sil | --si | --s)
36207     ac_cs_silent=: ;;
36208
36209   # This is an error.
36210   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
36211 Try \`$0 --help' for more information." >&5
36212 echo "$as_me: error: unrecognized option: $1
36213 Try \`$0 --help' for more information." >&2;}
36214    { (exit 1); exit 1; }; } ;;
36215
36216   *) ac_config_targets="$ac_config_targets $1" ;;
36217
36218   esac
36219   shift
36220 done
36221
36222 ac_configure_extra_args=
36223
36224 if $ac_cs_silent; then
36225   exec 6>/dev/null
36226   ac_configure_extra_args="$ac_configure_extra_args --silent"
36227 fi
36228
36229 _ACEOF
36230 cat >>$CONFIG_STATUS <<_ACEOF
36231 if \$ac_cs_recheck; then
36232   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
36233   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36234 fi
36235
36236 _ACEOF
36237
36238 cat >>$CONFIG_STATUS <<_ACEOF
36239 #
36240 # INIT-COMMANDS section.
36241 #
36242
36243
36244             TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
36245             LN_S="${LN_S}"
36246
36247
36248
36249 _ACEOF
36250
36251
36252
36253 cat >>$CONFIG_STATUS <<\_ACEOF
36254 for ac_config_target in $ac_config_targets
36255 do
36256   case "$ac_config_target" in
36257   # Handling of arguments.
36258   "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
36259   "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
36260   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36261   "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
36262   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
36263   "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
36264   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36265 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36266    { (exit 1); exit 1; }; };;
36267   esac
36268 done
36269
36270 # If the user did not use the arguments to specify the items to instantiate,
36271 # then the envvar interface is used.  Set only those that are not.
36272 # We use the long form for the default assignment because of an extremely
36273 # bizarre bug on SunOS 4.1.3.
36274 if $ac_need_defaults; then
36275   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36276   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36277   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36278 fi
36279
36280 # Have a temporary directory for convenience.  Make it in the build tree
36281 # simply because there is no reason to put it here, and in addition,
36282 # creating and moving files from /tmp can sometimes cause problems.
36283 # Create a temporary directory, and hook for its removal unless debugging.
36284 $debug ||
36285 {
36286   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
36287   trap '{ (exit 1); exit 1; }' 1 2 13 15
36288 }
36289
36290 # Create a (secure) tmp directory for tmp files.
36291
36292 {
36293   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
36294   test -n "$tmp" && test -d "$tmp"
36295 }  ||
36296 {
36297   tmp=./confstat$$-$RANDOM
36298   (umask 077 && mkdir $tmp)
36299 } ||
36300 {
36301    echo "$me: cannot create a temporary directory in ." >&2
36302    { (exit 1); exit 1; }
36303 }
36304
36305 _ACEOF
36306
36307 cat >>$CONFIG_STATUS <<_ACEOF
36308
36309 #
36310 # CONFIG_FILES section.
36311 #
36312
36313 # No need to generate the scripts if there are no CONFIG_FILES.
36314 # This happens for instance when ./config.status config.h
36315 if test -n "\$CONFIG_FILES"; then
36316   # Protect against being on the right side of a sed subst in config.status.
36317   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
36318    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
36319 s,@SHELL@,$SHELL,;t t
36320 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
36321 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
36322 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
36323 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
36324 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
36325 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
36326 s,@exec_prefix@,$exec_prefix,;t t
36327 s,@prefix@,$prefix,;t t
36328 s,@program_transform_name@,$program_transform_name,;t t
36329 s,@bindir@,$bindir,;t t
36330 s,@sbindir@,$sbindir,;t t
36331 s,@libexecdir@,$libexecdir,;t t
36332 s,@datadir@,$datadir,;t t
36333 s,@sysconfdir@,$sysconfdir,;t t
36334 s,@sharedstatedir@,$sharedstatedir,;t t
36335 s,@localstatedir@,$localstatedir,;t t
36336 s,@libdir@,$libdir,;t t
36337 s,@includedir@,$includedir,;t t
36338 s,@oldincludedir@,$oldincludedir,;t t
36339 s,@infodir@,$infodir,;t t
36340 s,@mandir@,$mandir,;t t
36341 s,@build_alias@,$build_alias,;t t
36342 s,@host_alias@,$host_alias,;t t
36343 s,@target_alias@,$target_alias,;t t
36344 s,@DEFS@,$DEFS,;t t
36345 s,@ECHO_C@,$ECHO_C,;t t
36346 s,@ECHO_N@,$ECHO_N,;t t
36347 s,@ECHO_T@,$ECHO_T,;t t
36348 s,@LIBS@,$LIBS,;t t
36349 s,@build@,$build,;t t
36350 s,@build_cpu@,$build_cpu,;t t
36351 s,@build_vendor@,$build_vendor,;t t
36352 s,@build_os@,$build_os,;t t
36353 s,@host@,$host,;t t
36354 s,@host_cpu@,$host_cpu,;t t
36355 s,@host_vendor@,$host_vendor,;t t
36356 s,@host_os@,$host_os,;t t
36357 s,@target@,$target,;t t
36358 s,@target_cpu@,$target_cpu,;t t
36359 s,@target_vendor@,$target_vendor,;t t
36360 s,@target_os@,$target_os,;t t
36361 s,@CC@,$CC,;t t
36362 s,@CFLAGS@,$CFLAGS,;t t
36363 s,@LDFLAGS@,$LDFLAGS,;t t
36364 s,@CPPFLAGS@,$CPPFLAGS,;t t
36365 s,@ac_ct_CC@,$ac_ct_CC,;t t
36366 s,@EXEEXT@,$EXEEXT,;t t
36367 s,@OBJEXT@,$OBJEXT,;t t
36368 s,@CPP@,$CPP,;t t
36369 s,@EGREP@,$EGREP,;t t
36370 s,@CXX@,$CXX,;t t
36371 s,@CXXFLAGS@,$CXXFLAGS,;t t
36372 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
36373 s,@RANLIB@,$RANLIB,;t t
36374 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
36375 s,@AR@,$AR,;t t
36376 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
36377 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
36378 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
36379 s,@STRIP@,$STRIP,;t t
36380 s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
36381 s,@YACC@,$YACC,;t t
36382 s,@LEX@,$LEX,;t t
36383 s,@LEXLIB@,$LEXLIB,;t t
36384 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
36385 s,@LN_S@,$LN_S,;t t
36386 s,@CXXCPP@,$CXXCPP,;t t
36387 s,@subdirs@,$subdirs,;t t
36388 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
36389 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
36390 s,@GTK_LIBS@,$GTK_LIBS,;t t
36391 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
36392 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
36393 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
36394 s,@X_CFLAGS@,$X_CFLAGS,;t t
36395 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
36396 s,@X_LIBS@,$X_LIBS,;t t
36397 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
36398 s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
36399 s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
36400 s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
36401 s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
36402 s,@RESCOMP@,$RESCOMP,;t t
36403 s,@DEREZ@,$DEREZ,;t t
36404 s,@SETFILE@,$SETFILE,;t t
36405 s,@LIBICONV@,$LIBICONV,;t t
36406 s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
36407 s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
36408 s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
36409 s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
36410 s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
36411 s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
36412 s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
36413 s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
36414 s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
36415 s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
36416 s,@VENDOR@,$VENDOR,;t t
36417 s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
36418 s,@WXUNIV@,$WXUNIV,;t t
36419 s,@MONOLITHIC@,$MONOLITHIC,;t t
36420 s,@EXTRALIBS@,$EXTRALIBS,;t t
36421 s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
36422 s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
36423 s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
36424 s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
36425 s,@UNICODE@,$UNICODE,;t t
36426 s,@BUILD@,$BUILD,;t t
36427 s,@DEBUG_INFO@,$DEBUG_INFO,;t t
36428 s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
36429 s,@SHARED@,$SHARED,;t t
36430 s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
36431 s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
36432 s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
36433 s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
36434 s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
36435 s,@SET_MAKE@,$SET_MAKE,;t t
36436 s,@MAKE_SET@,$MAKE_SET,;t t
36437 s,@INSTALL_DIR@,$INSTALL_DIR,;t t
36438 s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
36439 s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
36440 s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
36441 s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
36442 s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
36443 s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
36444 s,@SO_SUFFIX@,$SO_SUFFIX,;t t
36445 s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
36446 s,@DLLPREFIX@,$DLLPREFIX,;t t
36447 s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
36448 s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
36449 s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
36450 s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
36451 s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
36452 s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
36453 s,@PIC_FLAG@,$PIC_FLAG,;t t
36454 s,@USE_SOVERSION@,$USE_SOVERSION,;t t
36455 s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
36456 s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
36457 s,@USE_MACVERSION@,$USE_MACVERSION,;t t
36458 s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
36459 s,@SONAME_FLAG@,$SONAME_FLAG,;t t
36460 s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
36461 s,@GCC_PCH@,$GCC_PCH,;t t
36462 s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
36463 s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
36464 s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
36465 s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
36466 s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
36467 s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
36468 s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
36469 s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
36470 s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
36471 s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
36472 s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
36473 s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
36474 s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
36475 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
36476 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
36477 s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
36478 s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
36479 s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
36480 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
36481 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
36482 s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
36483 s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
36484 s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
36485 s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
36486 s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
36487 s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
36488 s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
36489 s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
36490 s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
36491 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
36492 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
36493 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
36494 s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
36495 s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
36496 s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
36497 s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
36498 s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
36499 s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
36500 s,@COND_SHARED_0@,$COND_SHARED_0,;t t
36501 s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
36502 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
36503 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
36504 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
36505 s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
36506 s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
36507 s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
36508 s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
36509 s,@COND_SHARED_1@,$COND_SHARED_1,;t t
36510 s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
36511 s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
36512 s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
36513 s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
36514 s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
36515 s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
36516 s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
36517 s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
36518 s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
36519 s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
36520 s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
36521 s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
36522 s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
36523 s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
36524 s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
36525 s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
36526 s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
36527 s,@COND_TOOLKIT_OS2@,$COND_TOOLKIT_OS2,;t t
36528 s,@COND_TOOLKIT_OS2_USE_GUI_1@,$COND_TOOLKIT_OS2_USE_GUI_1,;t t
36529 s,@COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_OS2_USE_GUI_1_WXUNIV_0,;t t
36530 s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
36531 s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
36532 s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
36533 s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
36534 s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
36535 s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
36536 s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
36537 s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
36538 s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
36539 s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
36540 s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
36541 s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
36542 s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
36543 s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
36544 s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
36545 s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
36546 s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
36547 s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
36548 s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
36549 s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
36550 s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
36551 s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
36552 s,@LEX_STEM@,$LEX_STEM,;t t
36553 s,@PATH_IFS@,$PATH_IFS,;t t
36554 s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
36555 s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
36556 s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
36557 s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
36558 s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
36559 s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
36560 s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
36561 s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
36562 s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
36563 s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
36564 s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
36565 s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
36566 s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
36567 s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
36568 s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
36569 s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
36570 s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
36571 s,@WX_ALL@,$WX_ALL,;t t
36572 s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
36573 s,@SHARED_LD@,$SHARED_LD,;t t
36574 s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
36575 s,@STATIC_FLAG@,$STATIC_FLAG,;t t
36576 s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
36577 s,@USE_GUI@,$USE_GUI,;t t
36578 s,@AFMINSTALL@,$AFMINSTALL,;t t
36579 s,@WIN32INSTALL@,$WIN32INSTALL,;t t
36580 s,@TOOLKIT@,$TOOLKIT,;t t
36581 s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
36582 s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
36583 s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
36584 s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
36585 s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
36586 s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
36587 s,@cross_compiling@,$cross_compiling,;t t
36588 s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
36589 s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
36590 s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
36591 s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
36592 s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
36593 s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
36594 s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
36595 s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
36596 s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
36597 s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
36598 s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
36599 s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
36600 s,@ALL_HEADERS@,$ALL_HEADERS,;t t
36601 s,@ALL_SOURCES@,$ALL_SOURCES,;t t
36602 s,@GUIDIST@,$GUIDIST,;t t
36603 s,@PORT_FILES@,$PORT_FILES,;t t
36604 s,@DISTDIR@,$DISTDIR,;t t
36605 s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
36606 s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
36607 s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
36608 s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
36609 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
36610 s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
36611 s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
36612 s,@RESFLAGS@,$RESFLAGS,;t t
36613 s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
36614 s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
36615 s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
36616 s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t
36617 s,@LIBWXMACRES@,$LIBWXMACRES,;t t
36618 s,@MACRESCOMP@,$MACRESCOMP,;t t
36619 s,@MACSETFILE@,$MACSETFILE,;t t
36620 s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
36621 s,@GCC@,$GCC,;t t
36622 s,@DLLTOOL@,$DLLTOOL,;t t
36623 s,@AS@,$AS,;t t
36624 s,@NM@,$NM,;t t
36625 s,@LD@,$LD,;t t
36626 s,@MAKEINFO@,$MAKEINFO,;t t
36627 s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
36628 s,@LIBOBJS@,$LIBOBJS,;t t
36629 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
36630 CEOF
36631
36632 _ACEOF
36633
36634   cat >>$CONFIG_STATUS <<\_ACEOF
36635   # Split the substitutions into bite-sized pieces for seds with
36636   # small command number limits, like on Digital OSF/1 and HP-UX.
36637   ac_max_sed_lines=48
36638   ac_sed_frag=1 # Number of current file.
36639   ac_beg=1 # First line for current file.
36640   ac_end=$ac_max_sed_lines # Line after last line for current file.
36641   ac_more_lines=:
36642   ac_sed_cmds=
36643   while $ac_more_lines; do
36644     if test $ac_beg -gt 1; then
36645       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
36646     else
36647       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
36648     fi
36649     if test ! -s $tmp/subs.frag; then
36650       ac_more_lines=false
36651     else
36652       # The purpose of the label and of the branching condition is to
36653       # speed up the sed processing (if there are no `@' at all, there
36654       # is no need to browse any of the substitutions).
36655       # These are the two extra sed commands mentioned above.
36656       (echo ':t
36657   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
36658       if test -z "$ac_sed_cmds"; then
36659         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
36660       else
36661         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
36662       fi
36663       ac_sed_frag=`expr $ac_sed_frag + 1`
36664       ac_beg=$ac_end
36665       ac_end=`expr $ac_end + $ac_max_sed_lines`
36666     fi
36667   done
36668   if test -z "$ac_sed_cmds"; then
36669     ac_sed_cmds=cat
36670   fi
36671 fi # test -n "$CONFIG_FILES"
36672
36673 _ACEOF
36674 cat >>$CONFIG_STATUS <<\_ACEOF
36675 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
36676   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
36677   case $ac_file in
36678   - | *:- | *:-:* ) # input from stdin
36679         cat >$tmp/stdin
36680         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36681         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36682   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36683         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36684   * )   ac_file_in=$ac_file.in ;;
36685   esac
36686
36687   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
36688   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
36689 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36690          X"$ac_file" : 'X\(//\)[^/]' \| \
36691          X"$ac_file" : 'X\(//\)$' \| \
36692          X"$ac_file" : 'X\(/\)' \| \
36693          .     : '\(.\)' 2>/dev/null ||
36694 echo X"$ac_file" |
36695     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36696           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36697           /^X\(\/\/\)$/{ s//\1/; q; }
36698           /^X\(\/\).*/{ s//\1/; q; }
36699           s/.*/./; q'`
36700   { if $as_mkdir_p; then
36701     mkdir -p "$ac_dir"
36702   else
36703     as_dir="$ac_dir"
36704     as_dirs=
36705     while test ! -d "$as_dir"; do
36706       as_dirs="$as_dir $as_dirs"
36707       as_dir=`(dirname "$as_dir") 2>/dev/null ||
36708 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36709          X"$as_dir" : 'X\(//\)[^/]' \| \
36710          X"$as_dir" : 'X\(//\)$' \| \
36711          X"$as_dir" : 'X\(/\)' \| \
36712          .     : '\(.\)' 2>/dev/null ||
36713 echo X"$as_dir" |
36714     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36715           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36716           /^X\(\/\/\)$/{ s//\1/; q; }
36717           /^X\(\/\).*/{ s//\1/; q; }
36718           s/.*/./; q'`
36719     done
36720     test ! -n "$as_dirs" || mkdir $as_dirs
36721   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36722 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36723    { (exit 1); exit 1; }; }; }
36724
36725   ac_builddir=.
36726
36727 if test "$ac_dir" != .; then
36728   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36729   # A "../" for each directory in $ac_dir_suffix.
36730   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
36731 else
36732   ac_dir_suffix= ac_top_builddir=
36733 fi
36734
36735 case $srcdir in
36736   .)  # No --srcdir option.  We are building in place.
36737     ac_srcdir=.
36738     if test -z "$ac_top_builddir"; then
36739        ac_top_srcdir=.
36740     else
36741        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
36742     fi ;;
36743   [\\/]* | ?:[\\/]* )  # Absolute path.
36744     ac_srcdir=$srcdir$ac_dir_suffix;
36745     ac_top_srcdir=$srcdir ;;
36746   *) # Relative path.
36747     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
36748     ac_top_srcdir=$ac_top_builddir$srcdir ;;
36749 esac
36750 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
36751 # absolute.
36752 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
36753 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
36754 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
36755 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
36756
36757
36758   case $INSTALL in
36759   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36760   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
36761   esac
36762
36763   if test x"$ac_file" != x-; then
36764     { echo "$as_me:$LINENO: creating $ac_file" >&5
36765 echo "$as_me: creating $ac_file" >&6;}
36766     rm -f "$ac_file"
36767   fi
36768   # Let's still pretend it is `configure' which instantiates (i.e., don't
36769   # use $as_me), people would be surprised to read:
36770   #    /* config.h.  Generated by config.status.  */
36771   if test x"$ac_file" = x-; then
36772     configure_input=
36773   else
36774     configure_input="$ac_file.  "
36775   fi
36776   configure_input=$configure_input"Generated from `echo $ac_file_in |
36777                                      sed 's,.*/,,'` by configure."
36778
36779   # First look for the input files in the build tree, otherwise in the
36780   # src tree.
36781   ac_file_inputs=`IFS=:
36782     for f in $ac_file_in; do
36783       case $f in
36784       -) echo $tmp/stdin ;;
36785       [\\/$]*)
36786          # Absolute (can't be DOS-style, as IFS=:)
36787          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36788 echo "$as_me: error: cannot find input file: $f" >&2;}
36789    { (exit 1); exit 1; }; }
36790          echo $f;;
36791       *) # Relative
36792          if test -f "$f"; then
36793            # Build tree
36794            echo $f
36795          elif test -f "$srcdir/$f"; then
36796            # Source tree
36797            echo $srcdir/$f
36798          else
36799            # /dev/null tree
36800            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36801 echo "$as_me: error: cannot find input file: $f" >&2;}
36802    { (exit 1); exit 1; }; }
36803          fi;;
36804       esac
36805     done` || { (exit 1); exit 1; }
36806 _ACEOF
36807 cat >>$CONFIG_STATUS <<_ACEOF
36808   sed "$ac_vpsub
36809 $extrasub
36810 _ACEOF
36811 cat >>$CONFIG_STATUS <<\_ACEOF
36812 :t
36813 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36814 s,@configure_input@,$configure_input,;t t
36815 s,@srcdir@,$ac_srcdir,;t t
36816 s,@abs_srcdir@,$ac_abs_srcdir,;t t
36817 s,@top_srcdir@,$ac_top_srcdir,;t t
36818 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
36819 s,@builddir@,$ac_builddir,;t t
36820 s,@abs_builddir@,$ac_abs_builddir,;t t
36821 s,@top_builddir@,$ac_top_builddir,;t t
36822 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
36823 s,@INSTALL@,$ac_INSTALL,;t t
36824 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
36825   rm -f $tmp/stdin
36826   if test x"$ac_file" != x-; then
36827     mv $tmp/out $ac_file
36828   else
36829     cat $tmp/out
36830     rm -f $tmp/out
36831   fi
36832
36833 done
36834 _ACEOF
36835 cat >>$CONFIG_STATUS <<\_ACEOF
36836
36837 #
36838 # CONFIG_HEADER section.
36839 #
36840
36841 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
36842 # NAME is the cpp macro being defined and VALUE is the value it is being given.
36843 #
36844 # ac_d sets the value in "#define NAME VALUE" lines.
36845 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
36846 ac_dB='[        ].*$,\1#\2'
36847 ac_dC=' '
36848 ac_dD=',;t'
36849 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
36850 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
36851 ac_uB='$,\1#\2define\3'
36852 ac_uC=' '
36853 ac_uD=',;t'
36854
36855 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
36856   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
36857   case $ac_file in
36858   - | *:- | *:-:* ) # input from stdin
36859         cat >$tmp/stdin
36860         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36861         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36862   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36863         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36864   * )   ac_file_in=$ac_file.in ;;
36865   esac
36866
36867   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
36868 echo "$as_me: creating $ac_file" >&6;}
36869
36870   # First look for the input files in the build tree, otherwise in the
36871   # src tree.
36872   ac_file_inputs=`IFS=:
36873     for f in $ac_file_in; do
36874       case $f in
36875       -) echo $tmp/stdin ;;
36876       [\\/$]*)
36877          # Absolute (can't be DOS-style, as IFS=:)
36878          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36879 echo "$as_me: error: cannot find input file: $f" >&2;}
36880    { (exit 1); exit 1; }; }
36881          echo $f;;
36882       *) # Relative
36883          if test -f "$f"; then
36884            # Build tree
36885            echo $f
36886          elif test -f "$srcdir/$f"; then
36887            # Source tree
36888            echo $srcdir/$f
36889          else
36890            # /dev/null tree
36891            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
36892 echo "$as_me: error: cannot find input file: $f" >&2;}
36893    { (exit 1); exit 1; }; }
36894          fi;;
36895       esac
36896     done` || { (exit 1); exit 1; }
36897   # Remove the trailing spaces.
36898   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
36899
36900 _ACEOF
36901
36902 # Transform confdefs.h into two sed scripts, `conftest.defines' and
36903 # `conftest.undefs', that substitutes the proper values into
36904 # config.h.in to produce config.h.  The first handles `#define'
36905 # templates, and the second `#undef' templates.
36906 # And first: Protect against being on the right side of a sed subst in
36907 # config.status.  Protect against being in an unquoted here document
36908 # in config.status.
36909 rm -f conftest.defines conftest.undefs
36910 # Using a here document instead of a string reduces the quoting nightmare.
36911 # Putting comments in sed scripts is not portable.
36912 #
36913 # `end' is used to avoid that the second main sed command (meant for
36914 # 0-ary CPP macros) applies to n-ary macro definitions.
36915 # See the Autoconf documentation for `clear'.
36916 cat >confdef2sed.sed <<\_ACEOF
36917 s/[\\&,]/\\&/g
36918 s,[\\$`],\\&,g
36919 t clear
36920 : clear
36921 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
36922 t end
36923 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
36924 : end
36925 _ACEOF
36926 # If some macros were called several times there might be several times
36927 # the same #defines, which is useless.  Nevertheless, we may not want to
36928 # sort them, since we want the *last* AC-DEFINE to be honored.
36929 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
36930 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
36931 rm -f confdef2sed.sed
36932
36933 # This sed command replaces #undef with comments.  This is necessary, for
36934 # example, in the case of _POSIX_SOURCE, which is predefined and required
36935 # on some systems where configure will not decide to define it.
36936 cat >>conftest.undefs <<\_ACEOF
36937 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
36938 _ACEOF
36939
36940 # Break up conftest.defines because some shells have a limit on the size
36941 # of here documents, and old seds have small limits too (100 cmds).
36942 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
36943 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
36944 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
36945 echo '  :' >>$CONFIG_STATUS
36946 rm -f conftest.tail
36947 while grep . conftest.defines >/dev/null
36948 do
36949   # Write a limited-size here document to $tmp/defines.sed.
36950   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
36951   # Speed up: don't consider the non `#define' lines.
36952   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
36953   # Work around the forget-to-reset-the-flag bug.
36954   echo 't clr' >>$CONFIG_STATUS
36955   echo ': clr' >>$CONFIG_STATUS
36956   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
36957   echo 'CEOF
36958   sed -f $tmp/defines.sed $tmp/in >$tmp/out
36959   rm -f $tmp/in
36960   mv $tmp/out $tmp/in
36961 ' >>$CONFIG_STATUS
36962   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
36963   rm -f conftest.defines
36964   mv conftest.tail conftest.defines
36965 done
36966 rm -f conftest.defines
36967 echo '  fi # grep' >>$CONFIG_STATUS
36968 echo >>$CONFIG_STATUS
36969
36970 # Break up conftest.undefs because some shells have a limit on the size
36971 # of here documents, and old seds have small limits too (100 cmds).
36972 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
36973 rm -f conftest.tail
36974 while grep . conftest.undefs >/dev/null
36975 do
36976   # Write a limited-size here document to $tmp/undefs.sed.
36977   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
36978   # Speed up: don't consider the non `#undef'
36979   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
36980   # Work around the forget-to-reset-the-flag bug.
36981   echo 't clr' >>$CONFIG_STATUS
36982   echo ': clr' >>$CONFIG_STATUS
36983   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
36984   echo 'CEOF
36985   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
36986   rm -f $tmp/in
36987   mv $tmp/out $tmp/in
36988 ' >>$CONFIG_STATUS
36989   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
36990   rm -f conftest.undefs
36991   mv conftest.tail conftest.undefs
36992 done
36993 rm -f conftest.undefs
36994
36995 cat >>$CONFIG_STATUS <<\_ACEOF
36996   # Let's still pretend it is `configure' which instantiates (i.e., don't
36997   # use $as_me), people would be surprised to read:
36998   #    /* config.h.  Generated by config.status.  */
36999   if test x"$ac_file" = x-; then
37000     echo "/* Generated by configure.  */" >$tmp/config.h
37001   else
37002     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
37003   fi
37004   cat $tmp/in >>$tmp/config.h
37005   rm -f $tmp/in
37006   if test x"$ac_file" != x-; then
37007     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
37008       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
37009 echo "$as_me: $ac_file is unchanged" >&6;}
37010     else
37011       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
37012 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37013          X"$ac_file" : 'X\(//\)[^/]' \| \
37014          X"$ac_file" : 'X\(//\)$' \| \
37015          X"$ac_file" : 'X\(/\)' \| \
37016          .     : '\(.\)' 2>/dev/null ||
37017 echo X"$ac_file" |
37018     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37019           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37020           /^X\(\/\/\)$/{ s//\1/; q; }
37021           /^X\(\/\).*/{ s//\1/; q; }
37022           s/.*/./; q'`
37023       { if $as_mkdir_p; then
37024     mkdir -p "$ac_dir"
37025   else
37026     as_dir="$ac_dir"
37027     as_dirs=
37028     while test ! -d "$as_dir"; do
37029       as_dirs="$as_dir $as_dirs"
37030       as_dir=`(dirname "$as_dir") 2>/dev/null ||
37031 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37032          X"$as_dir" : 'X\(//\)[^/]' \| \
37033          X"$as_dir" : 'X\(//\)$' \| \
37034          X"$as_dir" : 'X\(/\)' \| \
37035          .     : '\(.\)' 2>/dev/null ||
37036 echo X"$as_dir" |
37037     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37038           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37039           /^X\(\/\/\)$/{ s//\1/; q; }
37040           /^X\(\/\).*/{ s//\1/; q; }
37041           s/.*/./; q'`
37042     done
37043     test ! -n "$as_dirs" || mkdir $as_dirs
37044   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
37045 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
37046    { (exit 1); exit 1; }; }; }
37047
37048       rm -f $ac_file
37049       mv $tmp/config.h $ac_file
37050     fi
37051   else
37052     cat $tmp/config.h
37053     rm -f $tmp/config.h
37054   fi
37055 done
37056 _ACEOF
37057 cat >>$CONFIG_STATUS <<\_ACEOF
37058
37059 #
37060 # CONFIG_COMMANDS section.
37061 #
37062 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
37063   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
37064   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
37065   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
37066 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37067          X"$ac_dest" : 'X\(//\)[^/]' \| \
37068          X"$ac_dest" : 'X\(//\)$' \| \
37069          X"$ac_dest" : 'X\(/\)' \| \
37070          .     : '\(.\)' 2>/dev/null ||
37071 echo X"$ac_dest" |
37072     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37073           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37074           /^X\(\/\/\)$/{ s//\1/; q; }
37075           /^X\(\/\).*/{ s//\1/; q; }
37076           s/.*/./; q'`
37077   ac_builddir=.
37078
37079 if test "$ac_dir" != .; then
37080   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
37081   # A "../" for each directory in $ac_dir_suffix.
37082   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
37083 else
37084   ac_dir_suffix= ac_top_builddir=
37085 fi
37086
37087 case $srcdir in
37088   .)  # No --srcdir option.  We are building in place.
37089     ac_srcdir=.
37090     if test -z "$ac_top_builddir"; then
37091        ac_top_srcdir=.
37092     else
37093        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
37094     fi ;;
37095   [\\/]* | ?:[\\/]* )  # Absolute path.
37096     ac_srcdir=$srcdir$ac_dir_suffix;
37097     ac_top_srcdir=$srcdir ;;
37098   *) # Relative path.
37099     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
37100     ac_top_srcdir=$ac_top_builddir$srcdir ;;
37101 esac
37102 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
37103 # absolute.
37104 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
37105 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
37106 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
37107 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
37108
37109
37110   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
37111 echo "$as_me: executing $ac_dest commands" >&6;}
37112   case $ac_dest in
37113     default )
37114                                                                                                 if test ! -h wx-config; then
37115                 chmod +x wx-config
37116                 mv wx-config wx${TOOLCHAIN_NAME}-config
37117                 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
37118             fi
37119
37120             if test ! -d lib; then
37121               mkdir lib
37122             fi
37123             if test ! -d lib/wx; then
37124               mkdir lib/wx
37125             fi
37126             if test ! -d lib/wx/include; then
37127               mkdir lib/wx/include
37128             fi
37129             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
37130               mkdir lib/wx/include/${TOOLCHAIN_NAME}
37131             fi
37132             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
37133               mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
37134             fi
37135             if test -f setup.h; then
37136               mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
37137             fi
37138            ;;
37139   esac
37140 done
37141 _ACEOF
37142
37143 cat >>$CONFIG_STATUS <<\_ACEOF
37144
37145 { (exit 0); exit 0; }
37146 _ACEOF
37147 chmod +x $CONFIG_STATUS
37148 ac_clean_files=$ac_clean_files_save
37149
37150
37151 # configure is writing to config.log, and then calls config.status.
37152 # config.status does its own redirection, appending to config.log.
37153 # Unfortunately, on DOS this fails, as config.log is still kept open
37154 # by configure, so config.status won't be able to write to it; its
37155 # output is simply discarded.  So we exec the FD to /dev/null,
37156 # effectively closing config.log, so it can be properly (re)opened and
37157 # appended to by config.status.  When coming back to configure, we
37158 # need to make the FD available again.
37159 if test "$no_create" != yes; then
37160   ac_cs_success=:
37161   ac_config_status_args=
37162   test "$silent" = yes &&
37163     ac_config_status_args="$ac_config_status_args --quiet"
37164   exec 5>/dev/null
37165   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37166   exec 5>>config.log
37167   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37168   # would make configure fail if this is the last instruction.
37169   $ac_cs_success || { (exit 1); exit 1; }
37170 fi
37171
37172 #
37173 # CONFIG_SUBDIRS section.
37174 #
37175 if test "$no_recursion" != yes; then
37176
37177   # Remove --cache-file and --srcdir arguments so they do not pile up.
37178   ac_sub_configure_args=
37179   ac_prev=
37180   for ac_arg in $ac_configure_args; do
37181     if test -n "$ac_prev"; then
37182       ac_prev=
37183       continue
37184     fi
37185     case $ac_arg in
37186     -cache-file | --cache-file | --cache-fil | --cache-fi \
37187     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
37188       ac_prev=cache_file ;;
37189     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
37190     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
37191     | --c=*)
37192       ;;
37193     --config-cache | -C)
37194       ;;
37195     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
37196       ac_prev=srcdir ;;
37197     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
37198       ;;
37199     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
37200       ac_prev=prefix ;;
37201     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
37202       ;;
37203     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
37204     esac
37205   done
37206
37207   # Always prepend --prefix to ensure using the same prefix
37208   # in subdir configurations.
37209   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
37210
37211   ac_popdir=`pwd`
37212   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
37213
37214     # Do not complain, so a configure script can configure whichever
37215     # parts of a large source tree are present.
37216     test -d $srcdir/$ac_dir || continue
37217
37218     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
37219 echo "$as_me: configuring in $ac_dir" >&6;}
37220     { if $as_mkdir_p; then
37221     mkdir -p "$ac_dir"
37222   else
37223     as_dir="$ac_dir"
37224     as_dirs=
37225     while test ! -d "$as_dir"; do
37226       as_dirs="$as_dir $as_dirs"
37227       as_dir=`(dirname "$as_dir") 2>/dev/null ||
37228 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37229          X"$as_dir" : 'X\(//\)[^/]' \| \
37230          X"$as_dir" : 'X\(//\)$' \| \
37231          X"$as_dir" : 'X\(/\)' \| \
37232          .     : '\(.\)' 2>/dev/null ||
37233 echo X"$as_dir" |
37234     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37235           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37236           /^X\(\/\/\)$/{ s//\1/; q; }
37237           /^X\(\/\).*/{ s//\1/; q; }
37238           s/.*/./; q'`
37239     done
37240     test ! -n "$as_dirs" || mkdir $as_dirs
37241   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
37242 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
37243    { (exit 1); exit 1; }; }; }
37244
37245     ac_builddir=.
37246
37247 if test "$ac_dir" != .; then
37248   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
37249   # A "../" for each directory in $ac_dir_suffix.
37250   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
37251 else
37252   ac_dir_suffix= ac_top_builddir=
37253 fi
37254
37255 case $srcdir in
37256   .)  # No --srcdir option.  We are building in place.
37257     ac_srcdir=.
37258     if test -z "$ac_top_builddir"; then
37259        ac_top_srcdir=.
37260     else
37261        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
37262     fi ;;
37263   [\\/]* | ?:[\\/]* )  # Absolute path.
37264     ac_srcdir=$srcdir$ac_dir_suffix;
37265     ac_top_srcdir=$srcdir ;;
37266   *) # Relative path.
37267     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
37268     ac_top_srcdir=$ac_top_builddir$srcdir ;;
37269 esac
37270 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
37271 # absolute.
37272 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
37273 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
37274 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
37275 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
37276
37277
37278     cd $ac_dir
37279
37280     # Check for guested configure; otherwise get Cygnus style configure.
37281     if test -f $ac_srcdir/configure.gnu; then
37282       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
37283     elif test -f $ac_srcdir/configure; then
37284       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
37285     elif test -f $ac_srcdir/configure.in; then
37286       ac_sub_configure=$ac_configure
37287     else
37288       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
37289 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
37290       ac_sub_configure=
37291     fi
37292
37293     # The recursion is here.
37294     if test -n "$ac_sub_configure"; then
37295       # Make the cache file name correct relative to the subdirectory.
37296       case $cache_file in
37297       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
37298       *) # Relative path.
37299         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
37300       esac
37301
37302       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
37303 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
37304       # The eval makes quoting arguments work.
37305       eval $ac_sub_configure $ac_sub_configure_args \
37306            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
37307         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
37308 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
37309    { (exit 1); exit 1; }; }
37310     fi
37311
37312     cd $ac_popdir
37313   done
37314 fi
37315
37316
37317 echo
37318 echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
37319 echo ""
37320 echo "  Which GUI toolkit should wxWindows use?                 ${TOOLKIT:-base only}"
37321 echo "  Should wxWindows be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
37322
37323 echo "  Should wxWindows be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
37324 echo "  Should wxWindows be linked as a shared library?         ${wxUSE_SHARED:-no}"
37325 echo "  Should wxWindows be compiled in Unicode mode?           ${wxUSE_UNICODE:-no}"
37326
37327 echo "  What level of wxWindows compatibility should be enabled?"
37328 echo "                                       wxWindows 2.0      ${WXWIN_COMPATIBILITY_2:-no}"
37329 echo "                                       wxWindows 2.2      ${WXWIN_COMPATIBILITY_2_2:-no}"
37330 echo "                                       wxWindows 2.4      ${WXWIN_COMPATIBILITY_2_4:-yes}"
37331
37332 echo "  Which libraries should wxWindows use?"
37333 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
37334 echo "                                       png                ${wxUSE_LIBPNG-none}"
37335 echo "                                       regex              ${wxUSE_REGEX}"
37336 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
37337 echo "                                       zlib               ${wxUSE_ZLIB}"
37338 echo "                                       odbc               ${wxUSE_ODBC}"
37339 echo "                                       expat              ${wxUSE_EXPAT}"
37340
37341 echo ""
37342