Fixed MinGW compilation with GCC 3.x when wxUSE_STL == 1.
[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.59 for wxWindows 2.5.1.
5 #
6 # Report bugs to <wx-dev@lists.wxwindows.org>.
7 #
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23   set -o posix
24 fi
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29   as_unset=unset
30 else
31   as_unset=false
32 fi
33
34
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
40
41 # NLS nuisances.
42 for as_var in \
43   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45   LC_TELEPHONE LC_TIME
46 do
47   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48     eval $as_var=C; export $as_var
49   else
50     $as_unset $as_var
51   fi
52 done
53
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56   as_expr=expr
57 else
58   as_expr=false
59 fi
60
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62   as_basename=basename
63 else
64   as_basename=false
65 fi
66
67
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71          X"$0" : 'X\(//\)$' \| \
72          X"$0" : 'X\(/\)$' \| \
73          .     : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76           /^X\/\(\/\/\)$/{ s//\1/; q; }
77           /^X\/\(\/\).*/{ s//\1/; q; }
78           s/.*/./; q'`
79
80
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91   echo "#! /bin/sh" >conf$$.sh
92   echo  "exit 0"   >>conf$$.sh
93   chmod +x conf$$.sh
94   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95     PATH_SEPARATOR=';'
96   else
97     PATH_SEPARATOR=:
98   fi
99   rm -f conf$$.sh
100 fi
101
102
103   as_lineno_1=$LINENO
104   as_lineno_2=$LINENO
105   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106   test "x$as_lineno_1" != "x$as_lineno_2" &&
107   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
108   # Find who we are.  Look in the path if we contain no path at all
109   # relative or not.
110   case $0 in
111     *[\\/]* ) as_myself=$0 ;;
112     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
114 do
115   IFS=$as_save_IFS
116   test -z "$as_dir" && as_dir=.
117   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
119
120        ;;
121   esac
122   # We did not find ourselves, most probably we were run as `sh COMMAND'
123   # in which case we are not to be found in the path.
124   if test "x$as_myself" = x; then
125     as_myself=$0
126   fi
127   if test ! -f "$as_myself"; then
128     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129    { (exit 1); exit 1; }; }
130   fi
131   case $CONFIG_SHELL in
132   '')
133     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 do
136   IFS=$as_save_IFS
137   test -z "$as_dir" && as_dir=.
138   for as_base in sh bash ksh sh5; do
139          case $as_dir in
140          /*)
141            if ("$as_dir/$as_base" -c '
142   as_lineno_1=$LINENO
143   as_lineno_2=$LINENO
144   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145   test "x$as_lineno_1" != "x$as_lineno_2" &&
146   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
147              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149              CONFIG_SHELL=$as_dir/$as_base
150              export CONFIG_SHELL
151              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152            fi;;
153          esac
154        done
155 done
156 ;;
157   esac
158
159   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160   # uniformly replaced by the line number.  The first 'sed' inserts a
161   # line-number line before each line; the second 'sed' does the real
162   # work.  The second script uses 'N' to pair each line-number line
163   # with the numbered line, and appends trailing '-' during
164   # substitution so that $LINENO is not a special case at line end.
165   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
167   sed '=' <$as_myself |
168     sed '
169       N
170       s,$,-,
171       : loop
172       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173       t loop
174       s,-$,,
175       s,^['$as_cr_digits']*\n,,
176     ' >$as_me.lineno &&
177   chmod +x $as_me.lineno ||
178     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179    { (exit 1); exit 1; }; }
180
181   # Don't try to exec as it changes $[0], causing all sort of problems
182   # (the dirname of $[0] is not the place where we might find the
183   # original and so on.  Autoconf is especially sensible to this).
184   . ./$as_me.lineno
185   # Exit status is that of the last command.
186   exit
187 }
188
189
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191   *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T='      ' ;;
193   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
196
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198   as_expr=expr
199 else
200   as_expr=false
201 fi
202
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206   # We could just check for DJGPP; but this test a) works b) is more generic
207   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208   if test -f conf$$.exe; then
209     # Don't use ln at all; we don't have any links
210     as_ln_s='cp -p'
211   else
212     as_ln_s='ln -s'
213   fi
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215   as_ln_s=ln
216 else
217   as_ln_s='cp -p'
218 fi
219 rm -f conf$$ conf$$.exe conf$$.file
220
221 if mkdir -p . 2>/dev/null; then
222   as_mkdir_p=:
223 else
224   test -d ./-p && rmdir ./-p
225   as_mkdir_p=false
226 fi
227
228 as_executable_p="test -f"
229
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
240 '
241 IFS="   $as_nl"
242
243 # CDPATH.
244 $as_unset CDPATH
245
246
247 # Name of the host.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252 exec 6>&1
253
254 #
255 # Initializations.
256 #
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
259 cross_compiling=no
260 subdirs=
261 MFLAGS=
262 MAKEFLAGS=
263 SHELL=${CONFIG_SHELL-/bin/sh}
264
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete.  It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
269
270 # Identity of this package.
271 PACKAGE_NAME='wxWindows'
272 PACKAGE_TARNAME='wxwindows'
273 PACKAGE_VERSION='2.5.1'
274 PACKAGE_STRING='wxWindows 2.5.1'
275 PACKAGE_BUGREPORT='wx-dev@lists.wxwindows.org'
276
277 ac_unique_file="wx-config.in"
278 # Factoring default headers for most tests.
279 ac_includes_default="\
280 #include <stdio.h>
281 #if HAVE_SYS_TYPES_H
282 # include <sys/types.h>
283 #endif
284 #if HAVE_SYS_STAT_H
285 # include <sys/stat.h>
286 #endif
287 #if STDC_HEADERS
288 # include <stdlib.h>
289 # include <stddef.h>
290 #else
291 # if HAVE_STDLIB_H
292 #  include <stdlib.h>
293 # endif
294 #endif
295 #if HAVE_STRING_H
296 # if !STDC_HEADERS && HAVE_MEMORY_H
297 #  include <memory.h>
298 # endif
299 # include <string.h>
300 #endif
301 #if HAVE_STRINGS_H
302 # include <strings.h>
303 #endif
304 #if HAVE_INTTYPES_H
305 # include <inttypes.h>
306 #else
307 # if HAVE_STDINT_H
308 #  include <stdint.h>
309 # endif
310 #endif
311 #if HAVE_UNISTD_H
312 # include <unistd.h>
313 #endif"
314
315 ac_subdirs_all="$ac_subdirs_all src/expat"
316 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WITH_PLUGIN_SDL_1 COND_WITH_SDL_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WX_LIBRARY_IMPORTLIB WX_TARGET_LIBRARY WX_LIBRARY_LINK1 WX_LIBRARY_LINK2 PROGRAM_EXT WX_LIBRARY_NAME_STATIC_GL WX_LIBRARY_NAME_SHARED_GL WX_TARGET_LIBRARY_GL WX_LIBRARY_LINK1_GL WX_LIBRARY_LINK2_GL WX_ALL WX_ALL_INSTALLED SHARED_LD WX_TARGET_LIBRARY_TYPE STATIC_FLAG WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLKIT_VPATH TOOLCHAIN_NAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS top_builddir_wxconfig cross_compiling WXCONFIG_EXTRALIBS WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX ALL_OBJECTS ALL_HEADERS ALL_SOURCES GUIDIST PORT_FILES DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL LDFLAGS_VERSIONING LDFLAGS_EXE OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC GCC_SEARCHES_USR_LOCAL_INCLUDE DLLTOOL AS LD MAKEINFO INSTALL_LIBRARY CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
317 ac_subst_files=''
318
319 # Initialize some variables set by options.
320 ac_init_help=
321 ac_init_version=false
322 # The variables have the same names as the options, with
323 # dashes changed to underlines.
324 cache_file=/dev/null
325 exec_prefix=NONE
326 no_create=
327 no_recursion=
328 prefix=NONE
329 program_prefix=NONE
330 program_suffix=NONE
331 program_transform_name=s,x,x,
332 silent=
333 site=
334 srcdir=
335 verbose=
336 x_includes=NONE
337 x_libraries=NONE
338
339 # Installation directory options.
340 # These are left unexpanded so users can "make install exec_prefix=/foo"
341 # and all the variables that are supposed to be based on exec_prefix
342 # by default will actually change.
343 # Use braces instead of parens because sh, perl, etc. also accept them.
344 bindir='${exec_prefix}/bin'
345 sbindir='${exec_prefix}/sbin'
346 libexecdir='${exec_prefix}/libexec'
347 datadir='${prefix}/share'
348 sysconfdir='${prefix}/etc'
349 sharedstatedir='${prefix}/com'
350 localstatedir='${prefix}/var'
351 libdir='${exec_prefix}/lib'
352 includedir='${prefix}/include'
353 oldincludedir='/usr/include'
354 infodir='${prefix}/info'
355 mandir='${prefix}/man'
356
357 ac_prev=
358 for ac_option
359 do
360   # If the previous option needs an argument, assign it.
361   if test -n "$ac_prev"; then
362     eval "$ac_prev=\$ac_option"
363     ac_prev=
364     continue
365   fi
366
367   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369   # Accept the important Cygnus configure options, so we can diagnose typos.
370
371   case $ac_option in
372
373   -bindir | --bindir | --bindi | --bind | --bin | --bi)
374     ac_prev=bindir ;;
375   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376     bindir=$ac_optarg ;;
377
378   -build | --build | --buil | --bui | --bu)
379     ac_prev=build_alias ;;
380   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381     build_alias=$ac_optarg ;;
382
383   -cache-file | --cache-file | --cache-fil | --cache-fi \
384   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385     ac_prev=cache_file ;;
386   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388     cache_file=$ac_optarg ;;
389
390   --config-cache | -C)
391     cache_file=config.cache ;;
392
393   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394     ac_prev=datadir ;;
395   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396   | --da=*)
397     datadir=$ac_optarg ;;
398
399   -disable-* | --disable-*)
400     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401     # Reject names that are not valid shell variable names.
402     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404    { (exit 1); exit 1; }; }
405     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406     eval "enable_$ac_feature=no" ;;
407
408   -enable-* | --enable-*)
409     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410     # Reject names that are not valid shell variable names.
411     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413    { (exit 1); exit 1; }; }
414     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415     case $ac_option in
416       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417       *) ac_optarg=yes ;;
418     esac
419     eval "enable_$ac_feature='$ac_optarg'" ;;
420
421   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423   | --exec | --exe | --ex)
424     ac_prev=exec_prefix ;;
425   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427   | --exec=* | --exe=* | --ex=*)
428     exec_prefix=$ac_optarg ;;
429
430   -gas | --gas | --ga | --g)
431     # Obsolete; use --with-gas.
432     with_gas=yes ;;
433
434   -help | --help | --hel | --he | -h)
435     ac_init_help=long ;;
436   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437     ac_init_help=recursive ;;
438   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439     ac_init_help=short ;;
440
441   -host | --host | --hos | --ho)
442     ac_prev=host_alias ;;
443   -host=* | --host=* | --hos=* | --ho=*)
444     host_alias=$ac_optarg ;;
445
446   -includedir | --includedir | --includedi | --included | --include \
447   | --includ | --inclu | --incl | --inc)
448     ac_prev=includedir ;;
449   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450   | --includ=* | --inclu=* | --incl=* | --inc=*)
451     includedir=$ac_optarg ;;
452
453   -infodir | --infodir | --infodi | --infod | --info | --inf)
454     ac_prev=infodir ;;
455   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456     infodir=$ac_optarg ;;
457
458   -libdir | --libdir | --libdi | --libd)
459     ac_prev=libdir ;;
460   -libdir=* | --libdir=* | --libdi=* | --libd=*)
461     libdir=$ac_optarg ;;
462
463   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464   | --libexe | --libex | --libe)
465     ac_prev=libexecdir ;;
466   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467   | --libexe=* | --libex=* | --libe=*)
468     libexecdir=$ac_optarg ;;
469
470   -localstatedir | --localstatedir | --localstatedi | --localstated \
471   | --localstate | --localstat | --localsta | --localst \
472   | --locals | --local | --loca | --loc | --lo)
473     ac_prev=localstatedir ;;
474   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477     localstatedir=$ac_optarg ;;
478
479   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480     ac_prev=mandir ;;
481   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482     mandir=$ac_optarg ;;
483
484   -nfp | --nfp | --nf)
485     # Obsolete; use --without-fp.
486     with_fp=no ;;
487
488   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489   | --no-cr | --no-c | -n)
490     no_create=yes ;;
491
492   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494     no_recursion=yes ;;
495
496   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498   | --oldin | --oldi | --old | --ol | --o)
499     ac_prev=oldincludedir ;;
500   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503     oldincludedir=$ac_optarg ;;
504
505   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506     ac_prev=prefix ;;
507   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508     prefix=$ac_optarg ;;
509
510   -program-prefix | --program-prefix | --program-prefi | --program-pref \
511   | --program-pre | --program-pr | --program-p)
512     ac_prev=program_prefix ;;
513   -program-prefix=* | --program-prefix=* | --program-prefi=* \
514   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515     program_prefix=$ac_optarg ;;
516
517   -program-suffix | --program-suffix | --program-suffi | --program-suff \
518   | --program-suf | --program-su | --program-s)
519     ac_prev=program_suffix ;;
520   -program-suffix=* | --program-suffix=* | --program-suffi=* \
521   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522     program_suffix=$ac_optarg ;;
523
524   -program-transform-name | --program-transform-name \
525   | --program-transform-nam | --program-transform-na \
526   | --program-transform-n | --program-transform- \
527   | --program-transform | --program-transfor \
528   | --program-transfo | --program-transf \
529   | --program-trans | --program-tran \
530   | --progr-tra | --program-tr | --program-t)
531     ac_prev=program_transform_name ;;
532   -program-transform-name=* | --program-transform-name=* \
533   | --program-transform-nam=* | --program-transform-na=* \
534   | --program-transform-n=* | --program-transform-=* \
535   | --program-transform=* | --program-transfor=* \
536   | --program-transfo=* | --program-transf=* \
537   | --program-trans=* | --program-tran=* \
538   | --progr-tra=* | --program-tr=* | --program-t=*)
539     program_transform_name=$ac_optarg ;;
540
541   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542   | -silent | --silent | --silen | --sile | --sil)
543     silent=yes ;;
544
545   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546     ac_prev=sbindir ;;
547   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548   | --sbi=* | --sb=*)
549     sbindir=$ac_optarg ;;
550
551   -sharedstatedir | --sharedstatedir | --sharedstatedi \
552   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553   | --sharedst | --shareds | --shared | --share | --shar \
554   | --sha | --sh)
555     ac_prev=sharedstatedir ;;
556   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559   | --sha=* | --sh=*)
560     sharedstatedir=$ac_optarg ;;
561
562   -site | --site | --sit)
563     ac_prev=site ;;
564   -site=* | --site=* | --sit=*)
565     site=$ac_optarg ;;
566
567   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568     ac_prev=srcdir ;;
569   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570     srcdir=$ac_optarg ;;
571
572   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573   | --syscon | --sysco | --sysc | --sys | --sy)
574     ac_prev=sysconfdir ;;
575   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577     sysconfdir=$ac_optarg ;;
578
579   -target | --target | --targe | --targ | --tar | --ta | --t)
580     ac_prev=target_alias ;;
581   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582     target_alias=$ac_optarg ;;
583
584   -v | -verbose | --verbose | --verbos | --verbo | --verb)
585     verbose=yes ;;
586
587   -version | --version | --versio | --versi | --vers | -V)
588     ac_init_version=: ;;
589
590   -with-* | --with-*)
591     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592     # Reject names that are not valid shell variable names.
593     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594       { echo "$as_me: error: invalid package name: $ac_package" >&2
595    { (exit 1); exit 1; }; }
596     ac_package=`echo $ac_package| sed 's/-/_/g'`
597     case $ac_option in
598       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599       *) ac_optarg=yes ;;
600     esac
601     eval "with_$ac_package='$ac_optarg'" ;;
602
603   -without-* | --without-*)
604     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605     # Reject names that are not valid shell variable names.
606     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607       { echo "$as_me: error: invalid package name: $ac_package" >&2
608    { (exit 1); exit 1; }; }
609     ac_package=`echo $ac_package | sed 's/-/_/g'`
610     eval "with_$ac_package=no" ;;
611
612   --x)
613     # Obsolete; use --with-x.
614     with_x=yes ;;
615
616   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617   | --x-incl | --x-inc | --x-in | --x-i)
618     ac_prev=x_includes ;;
619   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621     x_includes=$ac_optarg ;;
622
623   -x-libraries | --x-libraries | --x-librarie | --x-librari \
624   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625     ac_prev=x_libraries ;;
626   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628     x_libraries=$ac_optarg ;;
629
630   -*) { echo "$as_me: error: unrecognized option: $ac_option
631 Try \`$0 --help' for more information." >&2
632    { (exit 1); exit 1; }; }
633     ;;
634
635   *=*)
636     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637     # Reject names that are not valid shell variable names.
638     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640    { (exit 1); exit 1; }; }
641     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642     eval "$ac_envvar='$ac_optarg'"
643     export $ac_envvar ;;
644
645   *)
646     # FIXME: should be removed in autoconf 3.0.
647     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651     ;;
652
653   esac
654 done
655
656 if test -n "$ac_prev"; then
657   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658   { echo "$as_me: error: missing argument to $ac_option" >&2
659    { (exit 1); exit 1; }; }
660 fi
661
662 # Be sure to have absolute paths.
663 for ac_var in exec_prefix prefix
664 do
665   eval ac_val=$`echo $ac_var`
666   case $ac_val in
667     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669    { (exit 1); exit 1; }; };;
670   esac
671 done
672
673 # Be sure to have absolute paths.
674 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
675               localstatedir libdir includedir oldincludedir infodir mandir
676 do
677   eval ac_val=$`echo $ac_var`
678   case $ac_val in
679     [\\/$]* | ?:[\\/]* ) ;;
680     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681    { (exit 1); exit 1; }; };;
682   esac
683 done
684
685 # There might be people who depend on the old broken behavior: `$host'
686 # used to hold the argument of --host etc.
687 # FIXME: To remove some day.
688 build=$build_alias
689 host=$host_alias
690 target=$target_alias
691
692 # FIXME: To remove some day.
693 if test "x$host_alias" != x; then
694   if test "x$build_alias" = x; then
695     cross_compiling=maybe
696     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697     If a cross compiler is detected then cross compile mode will be used." >&2
698   elif test "x$build_alias" != "x$host_alias"; then
699     cross_compiling=yes
700   fi
701 fi
702
703 ac_tool_prefix=
704 test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706 test "$silent" = yes && exec 6>/dev/null
707
708
709 # Find the source files, if location was not specified.
710 if test -z "$srcdir"; then
711   ac_srcdir_defaulted=yes
712   # Try the directory containing this script, then its parent.
713   ac_confdir=`(dirname "$0") 2>/dev/null ||
714 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
715          X"$0" : 'X\(//\)[^/]' \| \
716          X"$0" : 'X\(//\)$' \| \
717          X"$0" : 'X\(/\)' \| \
718          .     : '\(.\)' 2>/dev/null ||
719 echo X"$0" |
720     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722           /^X\(\/\/\)$/{ s//\1/; q; }
723           /^X\(\/\).*/{ s//\1/; q; }
724           s/.*/./; q'`
725   srcdir=$ac_confdir
726   if test ! -r $srcdir/$ac_unique_file; then
727     srcdir=..
728   fi
729 else
730   ac_srcdir_defaulted=no
731 fi
732 if test ! -r $srcdir/$ac_unique_file; then
733   if test "$ac_srcdir_defaulted" = yes; then
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735    { (exit 1); exit 1; }; }
736   else
737     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738    { (exit 1); exit 1; }; }
739   fi
740 fi
741 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743    { (exit 1); exit 1; }; }
744 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745 ac_env_build_alias_set=${build_alias+set}
746 ac_env_build_alias_value=$build_alias
747 ac_cv_env_build_alias_set=${build_alias+set}
748 ac_cv_env_build_alias_value=$build_alias
749 ac_env_host_alias_set=${host_alias+set}
750 ac_env_host_alias_value=$host_alias
751 ac_cv_env_host_alias_set=${host_alias+set}
752 ac_cv_env_host_alias_value=$host_alias
753 ac_env_target_alias_set=${target_alias+set}
754 ac_env_target_alias_value=$target_alias
755 ac_cv_env_target_alias_set=${target_alias+set}
756 ac_cv_env_target_alias_value=$target_alias
757 ac_env_CC_set=${CC+set}
758 ac_env_CC_value=$CC
759 ac_cv_env_CC_set=${CC+set}
760 ac_cv_env_CC_value=$CC
761 ac_env_CFLAGS_set=${CFLAGS+set}
762 ac_env_CFLAGS_value=$CFLAGS
763 ac_cv_env_CFLAGS_set=${CFLAGS+set}
764 ac_cv_env_CFLAGS_value=$CFLAGS
765 ac_env_LDFLAGS_set=${LDFLAGS+set}
766 ac_env_LDFLAGS_value=$LDFLAGS
767 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768 ac_cv_env_LDFLAGS_value=$LDFLAGS
769 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770 ac_env_CPPFLAGS_value=$CPPFLAGS
771 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773 ac_env_CPP_set=${CPP+set}
774 ac_env_CPP_value=$CPP
775 ac_cv_env_CPP_set=${CPP+set}
776 ac_cv_env_CPP_value=$CPP
777 ac_env_CXX_set=${CXX+set}
778 ac_env_CXX_value=$CXX
779 ac_cv_env_CXX_set=${CXX+set}
780 ac_cv_env_CXX_value=$CXX
781 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782 ac_env_CXXFLAGS_value=$CXXFLAGS
783 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785 ac_env_CXXCPP_set=${CXXCPP+set}
786 ac_env_CXXCPP_value=$CXXCPP
787 ac_cv_env_CXXCPP_set=${CXXCPP+set}
788 ac_cv_env_CXXCPP_value=$CXXCPP
789
790 #
791 # Report the --help message.
792 #
793 if test "$ac_init_help" = "long"; then
794   # Omit some internal or obsolete options to make the list less imposing.
795   # This message is too long to be a string in the A/UX 3.1 sh.
796   cat <<_ACEOF
797 \`configure' configures wxWindows 2.5.1 to adapt to many kinds of systems.
798
799 Usage: $0 [OPTION]... [VAR=VALUE]...
800
801 To assign environment variables (e.g., CC, CFLAGS...), specify them as
802 VAR=VALUE.  See below for descriptions of some of the useful variables.
803
804 Defaults for the options are specified in brackets.
805
806 Configuration:
807   -h, --help              display this help and exit
808       --help=short        display options specific to this package
809       --help=recursive    display the short help of all the included packages
810   -V, --version           display version information and exit
811   -q, --quiet, --silent   do not print \`checking...' messages
812       --cache-file=FILE   cache test results in FILE [disabled]
813   -C, --config-cache      alias for \`--cache-file=config.cache'
814   -n, --no-create         do not create output files
815       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
816
817 _ACEOF
818
819   cat <<_ACEOF
820 Installation directories:
821   --prefix=PREFIX         install architecture-independent files in PREFIX
822                           [$ac_default_prefix]
823   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
824                           [PREFIX]
825
826 By default, \`make install' will install all the files in
827 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
828 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829 for instance \`--prefix=\$HOME'.
830
831 For better control, use the options below.
832
833 Fine tuning of the installation directories:
834   --bindir=DIR           user executables [EPREFIX/bin]
835   --sbindir=DIR          system admin executables [EPREFIX/sbin]
836   --libexecdir=DIR       program executables [EPREFIX/libexec]
837   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
838   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
839   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
840   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
841   --libdir=DIR           object code libraries [EPREFIX/lib]
842   --includedir=DIR       C header files [PREFIX/include]
843   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
844   --infodir=DIR          info documentation [PREFIX/info]
845   --mandir=DIR           man documentation [PREFIX/man]
846 _ACEOF
847
848   cat <<\_ACEOF
849
850 X features:
851   --x-includes=DIR    X include files are in DIR
852   --x-libraries=DIR   X library files are in DIR
853
854 System types:
855   --build=BUILD     configure for building on BUILD [guessed]
856   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
857   --target=TARGET   configure for building compilers for TARGET [HOST]
858 _ACEOF
859 fi
860
861 if test -n "$ac_init_help"; then
862   case $ac_init_help in
863      short | recursive ) echo "Configuration of wxWindows 2.5.1:";;
864    esac
865   cat <<\_ACEOF
866
867 Optional Features:
868   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
869   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
870   --enable-gui            use GUI classes
871   --enable-monolithic     build wxWindows as single library
872   --enable-plugins        build parts of wxWindows as loadable components
873   --enable-universal      use wxWindows GUI controls instead of native ones
874   --enable-nanox          use NanoX
875   --enable-gtk2           use GTK+ 2.0 if available (EXPERIMENTAL)
876   --enable-gpe            use GNOME PDA Environment features if possible
877   --enable-shared         create shared library code
878   --enable-optimise       create optimised code
879   --enable-debug          same as debug_flag and debug_info
880   --enable-stl            use STL for containers
881   --enable-omf            use OMF object format
882   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
883   --enable-debug_info     create code with debugging information
884   --enable-debug_gdb      create code with extra GDB debugging information
885   --enable-debug_cntxt    use wxDebugContext
886   --enable-mem_tracing    create code with memory tracing
887   --enable-profile        create code with profiling information
888   --enable-no_rtti        create code without RTTI information
889   --enable-no_exceptions  create code without C++ exceptions handling
890   --enable-permissive     compile code disregarding strict ANSI
891   --enable-no_deps        create code without dependency information
892   --enable-compat22       enable wxWindows 2.2 compatibility
893   --disable-compat24      disable wxWindows 2.4 compatibility
894   --enable-rpath=DIR      output the rpath flag from wx-config
895   --enable-intl           use internationalization system
896   --enable-config         use wxConfig (and derived) classes
897   --enable-protocols      use wxProtocol and derived classes
898   --enable-ftp            use wxFTP (requires wxProtocol
899   --enable-http           use wxHTTP (requires wxProtocol
900   --enable-fileproto      use wxFileProto class (requires wxProtocol
901   --enable-sockets        use socket/network classes
902   --enable-ole            use OLE classes (Win32 only)
903   --enable-dataobj        use data object classes
904   --enable-ipc            use interprocess communication (wxSocket etc.)
905   --enable-apple_ieee     use the Apple IEEE codec
906   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
907   --enable-cmdline        use wxCmdLineParser class
908   --enable-datetime       use wxDateTime class
909   --enable-dialupman      use dialup network classes
910   --enable-dynlib         use wxLibrary class for DLL loading
911   --enable-dynamicloader  use (new) wxDynamicLibrary class
912   --enable-exceptions     build exception-safe library
913   --enable-ffile          use wxFFile class
914   --enable-file           use wxFile class
915   --enable-filesystem     use virtual file systems classes
916   --enable-fontmap        use font encodings conversion classes
917   --enable-fs_inet        use virtual HTTP/FTP filesystems
918   --enable-fs_zip         use virtual ZIP filesystems
919   --enable-geometry       use geometry class
920   --enable-log            use logging system
921   --enable-longlong       use wxLongLong class
922   --enable-mimetype       use wxMimeTypesManager
923   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
924   --enable-snglinst       use wxSingleInstanceChecker class
925   --enable-streams        use wxStream etc classes
926   --enable-std_iostreams  use standard C++ stream classes
927   --enable-stopwatch      use wxStopWatch class
928   --enable-sysoptions     use wxSystemOptions
929   --enable-textbuf        use wxTextBuffer class
930   --enable-textfile       use wxTextFile class
931   --enable-timer          use wxTimer class
932   --enable-unicode        compile wxString with Unicode support
933   --enable-sound          use wxSound class
934   --enable-wxprintfv      use wxWindows implementation of vprintf()
935   --enable-zipstream      use wxZipInputStream
936   --enable-url            use wxURL class
937   --enable-protocol       use wxProtocol class
938   --enable-protocol-http  HTTP support in wxProtocol
939   --enable-protocol-ftp   FTP support in wxProtocol
940   --enable-protocol-file  FILE support in wxProtocol
941   --enable-threads        use threads
942   --enable-docview        use document view architecture
943   --enable-help           use help subsystem
944   --enable-mshtmlhelp     use MS HTML Help (win32)
945   --enable-html           use wxHTML sub-library
946   --enable-htmlhelp       use wxHTML-based help
947   --enable-constraints    use layout-constraints system
948   --enable-printarch      use printing architecture
949   --enable-mdi            use multiple document interface architecture
950   --enable-loggui         use standard GUI logger
951   --enable-logwin         use wxLogWindow
952   --enable-logdialog      use wxLogDialog
953   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
954   --enable-prologio       not available; see contrib
955   --enable-resources      not available; see contrib
956   --enable-clipboard      use wxClipboard class
957   --enable-dnd            use Drag'n'Drop classes
958   --enable-metafile       use win32 metafiles
959   --enable-controls       use all usual controls
960   --enable-accel          use accelerators
961   --enable-button         use wxButton class
962   --enable-bmpbutton      use wxBitmapButton class
963   --enable-calendar       use wxCalendarCtrl class
964   --enable-caret          use wxCaret class
965   --enable-checkbox       use wxCheckBox class
966   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
967   --enable-choice         use wxChoice class
968   --enable-combobox       use wxComboBox class
969   --enable-display        use wxDisplay class
970   --enable-gauge          use wxGauge class
971   --enable-grid           use wxGrid class
972   --enable-imaglist       use wxImageList class
973   --enable-listbook       use wxListbook class
974   --enable-listbox        use wxListBox class
975   --enable-listctrl       use wxListCtrl class
976   --enable-notebook       use wxNotebook class
977   --enable-radiobox       use wxRadioBox class
978   --enable-radiobtn       use wxRadioButton class
979   --enable-sash           use wxSashWindow class
980   --enable-scrollbar      use wxScrollBar class and scrollable windows
981   --enable-slider         use wxSlider class
982   --enable-spinbtn        use wxSpinButton class
983   --enable-spinctrl       use wxSpinCtrl class
984   --enable-splitter       use wxSplitterWindow class
985   --enable-statbmp        use wxStaticBitmap class
986   --enable-statbox        use wxStaticBox class
987   --enable-statline       use wxStaticLine class
988   --enable-stattext       use wxStaticText class
989   --enable-statusbar      use wxStatusBar class
990   --enable-tabdialog      use wxTabControl class
991   --enable-textctrl       use wxTextCtrl class
992   --enable-togglebtn      use wxToggleButton class
993   --enable-toolbar        use wxToolBar class
994   --enable-tbarnative     use native wxToolBar class
995   --enable-tbarsmpl       use wxToolBarSimple class
996   --enable-treectrl       use wxTreeCtrl class
997   --enable-tipwindow      use wxTipWindow class
998   --enable-popupwin       use wxPopUpWindow class
999   --enable-commondlg      use all common dialogs
1000   --enable-choicedlg      use wxChoiceDialog
1001   --enable-coldlg         use wxColourDialog
1002   --enable-filedlg        use wxFileDialog
1003   --enable-finddlg        use wxFindReplaceDialog
1004   --enable-fontdlg        use wxFontDialog
1005   --enable-dirdlg         use wxDirDialog
1006   --enable-msgdlg         use wxMessageDialog
1007   --enable-numberdlg      use wxNumberEntryDialog
1008   --enable-splash         use wxSplashScreen
1009   --enable-textdlg        use wxTextDialog
1010   --enable-tipdlg         use startup tips
1011   --enable-progressdlg    use wxProgressDialog
1012   --enable-wizarddlg      use wxWizard
1013   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1014   --enable-miniframe      use wxMiniFrame class
1015   --enable-tooltips       use wxToolTip class
1016   --enable-splines        use spline drawing code
1017   --enable-validators     use wxValidator and derived classes
1018   --enable-busyinfo       use wxBusyInfo
1019   --enable-joystick       use wxJoystick (Linux only)
1020   --enable-metafiles      use wxMetaFile (Windows only)
1021   --enable-dragimage      use wxDragImage
1022   --enable-accessibility  enable accessibility support
1023   --enable-palette        use wxPalette class
1024   --enable-image          use wxImage class
1025   --enable-gif            use gif images (GIF file format)
1026   --enable-pcx            use pcx images (PCX file format)
1027   --enable-iff            use iff images (IFF file format)
1028   --enable-pnm            use pnm images (PNM file format)
1029   --enable-xpm            use xpm images (XPM file format)
1030   --enable-icocur         use Windows ICO and CUR formats
1031   --enable-official_build official build of wxWindows (win32 DLL only)
1032   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1033   --disable-largefile     omit support for large files
1034   --disable-gtktest       do not try to compile and run a test GTK+ program
1035   --disable-gtktest       Do not try to compile and run a test GTK program
1036   --disable-sdltest       Do not try to compile and run a test SDL program
1037   --enable-omf            use OMF object format (OS/2)
1038   --disable-precomp-headers  don't use precompiled headers even if compiler can
1039
1040 Optional Packages:
1041   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1042   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1043   --with-gtk              use GTK+
1044   --with-motif            use Motif/Lesstif
1045   --with-mac              use Mac OS X
1046   --with-cocoa            use Cocoa
1047   --with-wine             use Wine
1048   --with-msw              use MS-Windows
1049   --with-pm               use OS/2 Presentation Manager
1050   --with-mgl              use SciTech MGL
1051   --with-microwin         use MicroWindows
1052   --with-x11              use X11
1053   --with-libpng           use libpng (PNG image format)
1054   --with-libjpeg          use libjpeg (JPEG file format)
1055   --with-libtiff          use libtiff (TIFF file format)
1056   --with-libxpm           use libxpm (XPM file format)
1057   --with-libmspack        use libmspack (CHM help files loading)
1058   --with-sdl              use SDL for audio on Unix
1059   --with-opengl           use OpenGL (or Mesa)
1060   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1061   --with-regex            enable support for wxRegEx class
1062   --with-zlib             use zlib for LZW compression
1063   --with-odbc             use the IODBC and wxODBC classes
1064   --with-expat            enable XML support using expat parser
1065   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1066   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1067   --with-x                use the X Window System
1068   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1069   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1070   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1071   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1072   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1073
1074 Some influential environment variables:
1075   CC          C compiler command
1076   CFLAGS      C compiler flags
1077   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1078               nonstandard directory <lib dir>
1079   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1080               headers in a nonstandard directory <include dir>
1081   CPP         C preprocessor
1082   CXX         C++ compiler command
1083   CXXFLAGS    C++ compiler flags
1084   CXXCPP      C++ preprocessor
1085
1086 Use these variables to override the choices made by `configure' or to help
1087 it to find libraries and programs with nonstandard names/locations.
1088
1089 Report bugs to <wx-dev@lists.wxwindows.org>.
1090 _ACEOF
1091 fi
1092
1093 if test "$ac_init_help" = "recursive"; then
1094   # If there are subdirs, report their specific --help.
1095   ac_popdir=`pwd`
1096   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1097     test -d $ac_dir || continue
1098     ac_builddir=.
1099
1100 if test "$ac_dir" != .; then
1101   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1102   # A "../" for each directory in $ac_dir_suffix.
1103   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1104 else
1105   ac_dir_suffix= ac_top_builddir=
1106 fi
1107
1108 case $srcdir in
1109   .)  # No --srcdir option.  We are building in place.
1110     ac_srcdir=.
1111     if test -z "$ac_top_builddir"; then
1112        ac_top_srcdir=.
1113     else
1114        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1115     fi ;;
1116   [\\/]* | ?:[\\/]* )  # Absolute path.
1117     ac_srcdir=$srcdir$ac_dir_suffix;
1118     ac_top_srcdir=$srcdir ;;
1119   *) # Relative path.
1120     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1121     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1122 esac
1123
1124 # Do not use `cd foo && pwd` to compute absolute paths, because
1125 # the directories may not exist.
1126 case `pwd` in
1127 .) ac_abs_builddir="$ac_dir";;
1128 *)
1129   case "$ac_dir" in
1130   .) ac_abs_builddir=`pwd`;;
1131   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1132   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1133   esac;;
1134 esac
1135 case $ac_abs_builddir in
1136 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1137 *)
1138   case ${ac_top_builddir}. in
1139   .) ac_abs_top_builddir=$ac_abs_builddir;;
1140   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1141   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1142   esac;;
1143 esac
1144 case $ac_abs_builddir in
1145 .) ac_abs_srcdir=$ac_srcdir;;
1146 *)
1147   case $ac_srcdir in
1148   .) ac_abs_srcdir=$ac_abs_builddir;;
1149   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1150   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1151   esac;;
1152 esac
1153 case $ac_abs_builddir in
1154 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1155 *)
1156   case $ac_top_srcdir in
1157   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1158   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1159   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1160   esac;;
1161 esac
1162
1163     cd $ac_dir
1164     # Check for guested configure; otherwise get Cygnus style configure.
1165     if test -f $ac_srcdir/configure.gnu; then
1166       echo
1167       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1168     elif test -f $ac_srcdir/configure; then
1169       echo
1170       $SHELL $ac_srcdir/configure  --help=recursive
1171     elif test -f $ac_srcdir/configure.ac ||
1172            test -f $ac_srcdir/configure.in; then
1173       echo
1174       $ac_configure --help
1175     else
1176       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1177     fi
1178     cd $ac_popdir
1179   done
1180 fi
1181
1182 test -n "$ac_init_help" && exit 0
1183 if $ac_init_version; then
1184   cat <<\_ACEOF
1185 wxWindows configure 2.5.1
1186 generated by GNU Autoconf 2.59
1187
1188 Copyright (C) 2003 Free Software Foundation, Inc.
1189 This configure script is free software; the Free Software Foundation
1190 gives unlimited permission to copy, distribute and modify it.
1191 _ACEOF
1192   exit 0
1193 fi
1194 exec 5>config.log
1195 cat >&5 <<_ACEOF
1196 This file contains any messages produced by compilers while
1197 running configure, to aid debugging if configure makes a mistake.
1198
1199 It was created by wxWindows $as_me 2.5.1, which was
1200 generated by GNU Autoconf 2.59.  Invocation command line was
1201
1202   $ $0 $@
1203
1204 _ACEOF
1205 {
1206 cat <<_ASUNAME
1207 ## --------- ##
1208 ## Platform. ##
1209 ## --------- ##
1210
1211 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1212 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1213 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1214 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1215 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1216
1217 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1218 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1219
1220 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1221 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1222 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1223 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1224 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1225 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1226 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1227
1228 _ASUNAME
1229
1230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1231 for as_dir in $PATH
1232 do
1233   IFS=$as_save_IFS
1234   test -z "$as_dir" && as_dir=.
1235   echo "PATH: $as_dir"
1236 done
1237
1238 } >&5
1239
1240 cat >&5 <<_ACEOF
1241
1242
1243 ## ----------- ##
1244 ## Core tests. ##
1245 ## ----------- ##
1246
1247 _ACEOF
1248
1249
1250 # Keep a trace of the command line.
1251 # Strip out --no-create and --no-recursion so they do not pile up.
1252 # Strip out --silent because we don't want to record it for future runs.
1253 # Also quote any args containing shell meta-characters.
1254 # Make two passes to allow for proper duplicate-argument suppression.
1255 ac_configure_args=
1256 ac_configure_args0=
1257 ac_configure_args1=
1258 ac_sep=
1259 ac_must_keep_next=false
1260 for ac_pass in 1 2
1261 do
1262   for ac_arg
1263   do
1264     case $ac_arg in
1265     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1266     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1267     | -silent | --silent | --silen | --sile | --sil)
1268       continue ;;
1269     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1270       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1271     esac
1272     case $ac_pass in
1273     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1274     2)
1275       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1276       if test $ac_must_keep_next = true; then
1277         ac_must_keep_next=false # Got value, back to normal.
1278       else
1279         case $ac_arg in
1280           *=* | --config-cache | -C | -disable-* | --disable-* \
1281           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1282           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1283           | -with-* | --with-* | -without-* | --without-* | --x)
1284             case "$ac_configure_args0 " in
1285               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1286             esac
1287             ;;
1288           -* ) ac_must_keep_next=true ;;
1289         esac
1290       fi
1291       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1292       # Get rid of the leading space.
1293       ac_sep=" "
1294       ;;
1295     esac
1296   done
1297 done
1298 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1299 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1300
1301 # When interrupted or exit'd, cleanup temporary files, and complete
1302 # config.log.  We remove comments because anyway the quotes in there
1303 # would cause problems or look ugly.
1304 # WARNING: Be sure not to use single quotes in there, as some shells,
1305 # such as our DU 5.0 friend, will then `close' the trap.
1306 trap 'exit_status=$?
1307   # Save into config.log some information that might help in debugging.
1308   {
1309     echo
1310
1311     cat <<\_ASBOX
1312 ## ---------------- ##
1313 ## Cache variables. ##
1314 ## ---------------- ##
1315 _ASBOX
1316     echo
1317     # The following way of writing the cache mishandles newlines in values,
1318 {
1319   (set) 2>&1 |
1320     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1321     *ac_space=\ *)
1322       sed -n \
1323         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1324           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1325       ;;
1326     *)
1327       sed -n \
1328         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1329       ;;
1330     esac;
1331 }
1332     echo
1333
1334     cat <<\_ASBOX
1335 ## ----------------- ##
1336 ## Output variables. ##
1337 ## ----------------- ##
1338 _ASBOX
1339     echo
1340     for ac_var in $ac_subst_vars
1341     do
1342       eval ac_val=$`echo $ac_var`
1343       echo "$ac_var='"'"'$ac_val'"'"'"
1344     done | sort
1345     echo
1346
1347     if test -n "$ac_subst_files"; then
1348       cat <<\_ASBOX
1349 ## ------------- ##
1350 ## Output files. ##
1351 ## ------------- ##
1352 _ASBOX
1353       echo
1354       for ac_var in $ac_subst_files
1355       do
1356         eval ac_val=$`echo $ac_var`
1357         echo "$ac_var='"'"'$ac_val'"'"'"
1358       done | sort
1359       echo
1360     fi
1361
1362     if test -s confdefs.h; then
1363       cat <<\_ASBOX
1364 ## ----------- ##
1365 ## confdefs.h. ##
1366 ## ----------- ##
1367 _ASBOX
1368       echo
1369       sed "/^$/d" confdefs.h | sort
1370       echo
1371     fi
1372     test "$ac_signal" != 0 &&
1373       echo "$as_me: caught signal $ac_signal"
1374     echo "$as_me: exit $exit_status"
1375   } >&5
1376   rm -f core *.core &&
1377   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1378     exit $exit_status
1379      ' 0
1380 for ac_signal in 1 2 13 15; do
1381   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1382 done
1383 ac_signal=0
1384
1385 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1386 rm -rf conftest* confdefs.h
1387 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1388 echo >confdefs.h
1389
1390 # Predefined preprocessor variables.
1391
1392 cat >>confdefs.h <<_ACEOF
1393 #define PACKAGE_NAME "$PACKAGE_NAME"
1394 _ACEOF
1395
1396
1397 cat >>confdefs.h <<_ACEOF
1398 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1399 _ACEOF
1400
1401
1402 cat >>confdefs.h <<_ACEOF
1403 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1404 _ACEOF
1405
1406
1407 cat >>confdefs.h <<_ACEOF
1408 #define PACKAGE_STRING "$PACKAGE_STRING"
1409 _ACEOF
1410
1411
1412 cat >>confdefs.h <<_ACEOF
1413 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1414 _ACEOF
1415
1416
1417 # Let the site file select an alternate cache file if it wants to.
1418 # Prefer explicitly selected file to automatically selected ones.
1419 if test -z "$CONFIG_SITE"; then
1420   if test "x$prefix" != xNONE; then
1421     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1422   else
1423     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1424   fi
1425 fi
1426 for ac_site_file in $CONFIG_SITE; do
1427   if test -r "$ac_site_file"; then
1428     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1429 echo "$as_me: loading site script $ac_site_file" >&6;}
1430     sed 's/^/| /' "$ac_site_file" >&5
1431     . "$ac_site_file"
1432   fi
1433 done
1434
1435 if test -r "$cache_file"; then
1436   # Some versions of bash will fail to source /dev/null (special
1437   # files actually), so we avoid doing that.
1438   if test -f "$cache_file"; then
1439     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1440 echo "$as_me: loading cache $cache_file" >&6;}
1441     case $cache_file in
1442       [\\/]* | ?:[\\/]* ) . $cache_file;;
1443       *)                      . ./$cache_file;;
1444     esac
1445   fi
1446 else
1447   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1448 echo "$as_me: creating cache $cache_file" >&6;}
1449   >$cache_file
1450 fi
1451
1452 # Check that the precious variables saved in the cache have kept the same
1453 # value.
1454 ac_cache_corrupted=false
1455 for ac_var in `(set) 2>&1 |
1456                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1457   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1458   eval ac_new_set=\$ac_env_${ac_var}_set
1459   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1460   eval ac_new_val="\$ac_env_${ac_var}_value"
1461   case $ac_old_set,$ac_new_set in
1462     set,)
1463       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1464 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1465       ac_cache_corrupted=: ;;
1466     ,set)
1467       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1468 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1469       ac_cache_corrupted=: ;;
1470     ,);;
1471     *)
1472       if test "x$ac_old_val" != "x$ac_new_val"; then
1473         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1474 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1475         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1476 echo "$as_me:   former value:  $ac_old_val" >&2;}
1477         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1478 echo "$as_me:   current value: $ac_new_val" >&2;}
1479         ac_cache_corrupted=:
1480       fi;;
1481   esac
1482   # Pass precious variables to config.status.
1483   if test "$ac_new_set" = set; then
1484     case $ac_new_val in
1485     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1486       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1487     *) ac_arg=$ac_var=$ac_new_val ;;
1488     esac
1489     case " $ac_configure_args " in
1490       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1491       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1492     esac
1493   fi
1494 done
1495 if $ac_cache_corrupted; then
1496   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1497 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1498   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1499 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1500    { (exit 1); exit 1; }; }
1501 fi
1502
1503 ac_ext=c
1504 ac_cpp='$CPP $CPPFLAGS'
1505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538 ac_aux_dir=
1539 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1540   if test -f $ac_dir/install-sh; then
1541     ac_aux_dir=$ac_dir
1542     ac_install_sh="$ac_aux_dir/install-sh -c"
1543     break
1544   elif test -f $ac_dir/install.sh; then
1545     ac_aux_dir=$ac_dir
1546     ac_install_sh="$ac_aux_dir/install.sh -c"
1547     break
1548   elif test -f $ac_dir/shtool; then
1549     ac_aux_dir=$ac_dir
1550     ac_install_sh="$ac_aux_dir/shtool install -c"
1551     break
1552   fi
1553 done
1554 if test -z "$ac_aux_dir"; then
1555   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1556 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1557    { (exit 1); exit 1; }; }
1558 fi
1559 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1560 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1561 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1562
1563 # Make sure we can run config.sub.
1564 $ac_config_sub sun4 >/dev/null 2>&1 ||
1565   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1566 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1567    { (exit 1); exit 1; }; }
1568
1569 echo "$as_me:$LINENO: checking build system type" >&5
1570 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1571 if test "${ac_cv_build+set}" = set; then
1572   echo $ECHO_N "(cached) $ECHO_C" >&6
1573 else
1574   ac_cv_build_alias=$build_alias
1575 test -z "$ac_cv_build_alias" &&
1576   ac_cv_build_alias=`$ac_config_guess`
1577 test -z "$ac_cv_build_alias" &&
1578   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1579 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1580    { (exit 1); exit 1; }; }
1581 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1582   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1583 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1584    { (exit 1); exit 1; }; }
1585
1586 fi
1587 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1588 echo "${ECHO_T}$ac_cv_build" >&6
1589 build=$ac_cv_build
1590 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1591 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1592 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1593
1594
1595 echo "$as_me:$LINENO: checking host system type" >&5
1596 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1597 if test "${ac_cv_host+set}" = set; then
1598   echo $ECHO_N "(cached) $ECHO_C" >&6
1599 else
1600   ac_cv_host_alias=$host_alias
1601 test -z "$ac_cv_host_alias" &&
1602   ac_cv_host_alias=$ac_cv_build_alias
1603 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1604   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1605 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1606    { (exit 1); exit 1; }; }
1607
1608 fi
1609 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1610 echo "${ECHO_T}$ac_cv_host" >&6
1611 host=$ac_cv_host
1612 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1613 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1614 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1615
1616
1617 echo "$as_me:$LINENO: checking target system type" >&5
1618 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1619 if test "${ac_cv_target+set}" = set; then
1620   echo $ECHO_N "(cached) $ECHO_C" >&6
1621 else
1622   ac_cv_target_alias=$target_alias
1623 test "x$ac_cv_target_alias" = "x" &&
1624   ac_cv_target_alias=$ac_cv_host_alias
1625 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1626   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1627 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1628    { (exit 1); exit 1; }; }
1629
1630 fi
1631 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1632 echo "${ECHO_T}$ac_cv_target" >&6
1633 target=$ac_cv_target
1634 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1635 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1636 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1637
1638
1639 # The aliases save the names the user supplied, while $host etc.
1640 # will get canonicalized.
1641 test -n "$target_alias" &&
1642   test "$program_prefix$program_suffix$program_transform_name" = \
1643     NONENONEs,x,x, &&
1644   program_prefix=${target_alias}-
1645
1646
1647
1648 WX_MAJOR_VERSION_NUMBER=2
1649 WX_MINOR_VERSION_NUMBER=5
1650 WX_RELEASE_NUMBER=1
1651
1652 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1653 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1654
1655 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1656
1657 WX_CURRENT=1
1658 WX_REVISION=0
1659 WX_AGE=0
1660
1661
1662
1663 USE_UNIX=1
1664 USE_OS2=0
1665 USE_WIN32=0
1666 USE_DOS=0
1667 USE_BEOS=0
1668 USE_MAC=0
1669
1670 USE_AIX=
1671 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
1672 USE_GNU=                            USE_HPUX=
1673 USE_LINUX=
1674 USE_NETBSD=
1675 USE_OPENBSD=
1676 USE_OSF=                            USE_SGI=
1677 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
1678 USE_ULTRIX=
1679 USE_UNIXWARE=
1680
1681 USE_ALPHA=
1682
1683 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1684
1685 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1686
1687 DEFAULT_wxUSE_COCOA=0
1688 DEFAULT_wxUSE_GTK=0
1689 DEFAULT_wxUSE_MAC=0
1690 DEFAULT_wxUSE_MGL=0
1691 DEFAULT_wxUSE_MICROWIN=0
1692 DEFAULT_wxUSE_MOTIF=0
1693 DEFAULT_wxUSE_MSW=0
1694 DEFAULT_wxUSE_PM=0
1695 DEFAULT_wxUSE_X11=0
1696
1697 DEFAULT_DEFAULT_wxUSE_COCOA=0
1698 DEFAULT_DEFAULT_wxUSE_GTK=0
1699 DEFAULT_DEFAULT_wxUSE_MAC=0
1700 DEFAULT_DEFAULT_wxUSE_MGL=0
1701 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1702 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1703 DEFAULT_DEFAULT_wxUSE_MSW=0
1704 DEFAULT_DEFAULT_wxUSE_PM=0
1705 DEFAULT_DEFAULT_wxUSE_X11=0
1706
1707 PROGRAM_EXT=
1708 SO_SUFFIX=so
1709 SAMPLES_RPATH_FLAG=
1710 SAMPLES_RPATH_POSTLINK=
1711
1712 case "${host}" in
1713   *-hp-hpux* )
1714     USE_HPUX=1
1715     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1716     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1717     SO_SUFFIX=sl
1718     cat >>confdefs.h <<\_ACEOF
1719 #define __HPUX__ 1
1720 _ACEOF
1721
1722   ;;
1723   *-*-linux* )
1724     USE_LINUX=1
1725     cat >>confdefs.h <<\_ACEOF
1726 #define __LINUX__ 1
1727 _ACEOF
1728
1729     TMP=`uname -m`
1730     if test "x$TMP" = "xalpha"; then
1731       USE_ALPHA=1
1732       cat >>confdefs.h <<\_ACEOF
1733 #define __ALPHA__ 1
1734 _ACEOF
1735
1736     fi
1737     DEFAULT_DEFAULT_wxUSE_GTK=1
1738   ;;
1739   *-*-gnu* | *-*-k*bsd*-gnu )
1740     USE_GNU=1
1741     TMP=`uname -m`
1742     if test "x$TMP" = "xalpha"; then
1743       USE_ALPHA=1
1744       cat >>confdefs.h <<\_ACEOF
1745 #define __ALPHA__ 1
1746 _ACEOF
1747
1748     fi
1749     DEFAULT_DEFAULT_wxUSE_GTK=1
1750   ;;
1751   *-*-irix5* | *-*-irix6* )
1752     USE_SGI=1
1753     USE_SVR4=1
1754     cat >>confdefs.h <<\_ACEOF
1755 #define __SGI__ 1
1756 _ACEOF
1757
1758     cat >>confdefs.h <<\_ACEOF
1759 #define __SVR4__ 1
1760 _ACEOF
1761
1762     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1763   ;;
1764   *-*-solaris2* )
1765     USE_SUN=1
1766     USE_SOLARIS=1
1767     USE_SVR4=1
1768     cat >>confdefs.h <<\_ACEOF
1769 #define __SUN__ 1
1770 _ACEOF
1771
1772     cat >>confdefs.h <<\_ACEOF
1773 #define __SOLARIS__ 1
1774 _ACEOF
1775
1776     cat >>confdefs.h <<\_ACEOF
1777 #define __SVR4__ 1
1778 _ACEOF
1779
1780     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1781     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1782   ;;
1783   *-*-sunos4* )
1784     USE_SUN=1
1785     USE_SUNOS=1
1786     USE_BSD=1
1787     cat >>confdefs.h <<\_ACEOF
1788 #define __SUN__ 1
1789 _ACEOF
1790
1791     cat >>confdefs.h <<\_ACEOF
1792 #define __SUNOS__ 1
1793 _ACEOF
1794
1795     cat >>confdefs.h <<\_ACEOF
1796 #define __BSD__ 1
1797 _ACEOF
1798
1799     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1800   ;;
1801   *-*-freebsd*)
1802     USE_BSD=1
1803     USE_FREEBSD=1
1804     cat >>confdefs.h <<\_ACEOF
1805 #define __FREEBSD__ 1
1806 _ACEOF
1807
1808     cat >>confdefs.h <<\_ACEOF
1809 #define __BSD__ 1
1810 _ACEOF
1811
1812     DEFAULT_DEFAULT_wxUSE_GTK=1
1813   ;;
1814   *-*-openbsd*)
1815     USE_BSD=1
1816     USE_OPENBSD=1
1817     cat >>confdefs.h <<\_ACEOF
1818 #define __OPENBSD__ 1
1819 _ACEOF
1820
1821     cat >>confdefs.h <<\_ACEOF
1822 #define __BSD__ 1
1823 _ACEOF
1824
1825     DEFAULT_DEFAULT_wxUSE_GTK=1
1826   ;;
1827   *-*-netbsd*)
1828     USE_BSD=1
1829     USE_NETBSD=1
1830     cat >>confdefs.h <<\_ACEOF
1831 #define __NETBSD__ 1
1832 _ACEOF
1833
1834     cat >>confdefs.h <<\_ACEOF
1835 #define __BSD__ 1
1836 _ACEOF
1837
1838     DEFAULT_DEFAULT_wxUSE_GTK=1
1839   ;;
1840   *-*-osf* )
1841     USE_ALPHA=1
1842     USE_OSF=1
1843     cat >>confdefs.h <<\_ACEOF
1844 #define __ALPHA__ 1
1845 _ACEOF
1846
1847     cat >>confdefs.h <<\_ACEOF
1848 #define __OSF__ 1
1849 _ACEOF
1850
1851     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1852     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1853   ;;
1854   *-*-dgux5* )
1855     USE_ALPHA=1
1856     USE_SVR4=1
1857     cat >>confdefs.h <<\_ACEOF
1858 #define __ALPHA__ 1
1859 _ACEOF
1860
1861     cat >>confdefs.h <<\_ACEOF
1862 #define __SVR4__ 1
1863 _ACEOF
1864
1865     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1866   ;;
1867   *-*-sysv5* )
1868     USE_SYSV=1
1869     USE_SVR4=1
1870     cat >>confdefs.h <<\_ACEOF
1871 #define __SYSV__ 1
1872 _ACEOF
1873
1874     cat >>confdefs.h <<\_ACEOF
1875 #define __SVR4__ 1
1876 _ACEOF
1877
1878     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1879   ;;
1880   *-*-aix* )
1881     USE_AIX=1
1882     USE_SYSV=1
1883     USE_SVR4=1
1884                         SO_SUFFIX=a
1885     cat >>confdefs.h <<\_ACEOF
1886 #define __AIX__ 1
1887 _ACEOF
1888
1889     cat >>confdefs.h <<\_ACEOF
1890 #define __SYSV__ 1
1891 _ACEOF
1892
1893     cat >>confdefs.h <<\_ACEOF
1894 #define __SVR4__ 1
1895 _ACEOF
1896
1897     DEFAULT_DEFAULT_wxUSE_MOTIF=1
1898   ;;
1899
1900   *-*-*UnixWare*)
1901     USE_SYSV=1
1902     USE_SVR4=1
1903     USE_UNIXWARE=1
1904     cat >>confdefs.h <<\_ACEOF
1905 #define __UNIXWARE__ 1
1906 _ACEOF
1907
1908   ;;
1909
1910   *-*-cygwin* | *-*-mingw32* )
1911                 SO_SUFFIX=dll
1912     PROGRAM_EXT=".exe"
1913     RESCOMP=windres
1914     DEFAULT_DEFAULT_wxUSE_MSW=1
1915   ;;
1916
1917   *-pc-msdosdjgpp )
1918     USE_UNIX=0
1919     USE_DOS=1
1920     cat >>confdefs.h <<\_ACEOF
1921 #define __DOS__ 1
1922 _ACEOF
1923
1924     PROGRAM_EXT=".exe"
1925     DEFAULT_DEFAULT_wxUSE_MGL=1
1926         LIBS="$LIBS -lstdc++"
1927   ;;
1928
1929   *-pc-os2_emx | *-pc-os2-emx )
1930     cat >>confdefs.h <<\_ACEOF
1931 #define __EMX__ 1
1932 _ACEOF
1933
1934     USE_OS2=1
1935     cat >>confdefs.h <<\_ACEOF
1936 #define __OS2__ 1
1937 _ACEOF
1938
1939     PROGRAM_EXT=".exe"
1940     DEFAULT_DEFAULT_wxUSE_PM=1
1941         CXX=gcc
1942     LDFLAGS="$LDFLAGS -Zcrtdll"
1943                         ac_executable_extensions=".exe"
1944     export ac_executable_extensions
1945             ac_save_IFS="$IFS"
1946     IFS='\\'
1947     ac_TEMP_PATH=
1948     for ac_dir in $PATH; do
1949       IFS=$ac_save_IFS
1950       if test -z "$ac_TEMP_PATH"; then
1951         ac_TEMP_PATH="$ac_dir"
1952       else
1953         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1954       fi
1955     done
1956     export PATH="$ac_TEMP_PATH"
1957     unset ac_TEMP_PATH
1958   ;;
1959
1960   powerpc-*-darwin* )
1961         USE_BSD=1
1962     USE_DARWIN=1
1963     SO_SUFFIX=dylib
1964     cat >>confdefs.h <<\_ACEOF
1965 #define __BSD__ 1
1966 _ACEOF
1967
1968     cat >>confdefs.h <<\_ACEOF
1969 #define __DARWIN__ 1
1970 _ACEOF
1971
1972     cat >>confdefs.h <<\_ACEOF
1973 #define __POWERPC__ 1
1974 _ACEOF
1975
1976     cat >>confdefs.h <<\_ACEOF
1977 #define TARGET_CARBON 1
1978 _ACEOF
1979
1980     DEFAULT_DEFAULT_wxUSE_MAC=1
1981   ;;
1982
1983   *-*-beos* )
1984         USE_BEOS=1
1985     cat >>confdefs.h <<\_ACEOF
1986 #define __BEOS__ 1
1987 _ACEOF
1988
1989   ;;
1990
1991   *)
1992     { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1993 echo "$as_me: error: unknown system type ${host}." >&2;}
1994    { (exit 1); exit 1; }; }
1995 esac
1996
1997
1998
1999
2000           wx_arg_cache_file="configarg.cache"
2001           echo "loading argument cache $wx_arg_cache_file"
2002           rm -f ${wx_arg_cache_file}.tmp
2003           touch ${wx_arg_cache_file}.tmp
2004           touch ${wx_arg_cache_file}
2005
2006
2007 DEBUG_CONFIGURE=0
2008 if test $DEBUG_CONFIGURE = 1; then
2009   DEFAULT_wxUSE_UNIVERSAL=no
2010   DEFAULT_wxUSE_STL=no
2011
2012   DEFAULT_wxUSE_NANOX=no
2013
2014   DEFAULT_wxUSE_THREADS=yes
2015
2016   DEFAULT_wxUSE_SHARED=yes
2017   DEFAULT_wxUSE_OPTIMISE=no
2018   DEFAULT_wxUSE_PROFILE=no
2019   DEFAULT_wxUSE_NO_DEPS=no
2020   DEFAULT_wxUSE_NO_RTTI=no
2021   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2022   DEFAULT_wxUSE_PERMISSIVE=no
2023   DEFAULT_wxUSE_DEBUG_FLAG=yes
2024   DEFAULT_wxUSE_DEBUG_INFO=yes
2025   DEFAULT_wxUSE_DEBUG_GDB=yes
2026   DEFAULT_wxUSE_MEM_TRACING=no
2027   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2028   DEFAULT_wxUSE_DMALLOC=no
2029   DEFAULT_wxUSE_APPLE_IEEE=no
2030
2031   DEFAULT_wxUSE_EXCEPTIONS=no
2032   DEFAULT_wxUSE_LOG=yes
2033   DEFAULT_wxUSE_LOGWINDOW=no
2034   DEFAULT_wxUSE_LOGGUI=no
2035   DEFAULT_wxUSE_LOGDIALOG=no
2036
2037   DEFAULT_wxUSE_GUI=yes
2038   DEFAULT_wxUSE_CONTROLS=no
2039
2040   DEFAULT_wxUSE_REGEX=no
2041   DEFAULT_wxUSE_XML=no
2042   DEFAULT_wxUSE_EXPAT=no
2043   DEFAULT_wxUSE_ZLIB=no
2044   DEFAULT_wxUSE_LIBPNG=no
2045   DEFAULT_wxUSE_LIBJPEG=no
2046   DEFAULT_wxUSE_LIBTIFF=no
2047   DEFAULT_wxUSE_LIBXPM=no
2048   DEFAULT_wxUSE_LIBMSPACK=no
2049   DEFAULT_wxUSE_LIBSDL=no
2050   DEFAULT_wxUSE_ODBC=no
2051   DEFAULT_wxUSE_OPENGL=no
2052
2053   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2054   DEFAULT_wxUSE_SNGLINST_CHECKER=no
2055   DEFAULT_wxUSE_STD_IOSTREAM=no
2056   DEFAULT_wxUSE_CMDLINE_PARSER=no
2057   DEFAULT_wxUSE_DATETIME=no
2058   DEFAULT_wxUSE_TIMER=no
2059   DEFAULT_wxUSE_STOPWATCH=no
2060   DEFAULT_wxUSE_FILE=no
2061   DEFAULT_wxUSE_FFILE=no
2062   DEFAULT_wxUSE_TEXTBUFFER=no
2063   DEFAULT_wxUSE_TEXTFILE=no
2064   DEFAULT_wxUSE_SOUND=no
2065   DEFAULT_wxUSE_INTL=no
2066   DEFAULT_wxUSE_CONFIG=no
2067   DEFAULT_wxUSE_FONTMAP=no
2068   DEFAULT_wxUSE_STREAMS=no
2069   DEFAULT_wxUSE_SOCKETS=no
2070   DEFAULT_wxUSE_OLE=no
2071   DEFAULT_wxUSE_DATAOBJ=no
2072   DEFAULT_wxUSE_DIALUP_MANAGER=no
2073   DEFAULT_wxUSE_JOYSTICK=no
2074   DEFAULT_wxUSE_DYNLIB_CLASS=no
2075   DEFAULT_wxUSE_DYNAMIC_LOADER=no
2076   DEFAULT_wxUSE_LONGLONG=no
2077   DEFAULT_wxUSE_GEOMETRY=no
2078
2079   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2080   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2081   DEFAULT_wxUSE_POSTSCRIPT=no
2082
2083   DEFAULT_wxUSE_CLIPBOARD=no
2084   DEFAULT_wxUSE_TOOLTIPS=no
2085   DEFAULT_wxUSE_DRAG_AND_DROP=no
2086   DEFAULT_wxUSE_DRAGIMAGE=no
2087   DEFAULT_wxUSE_SPLINES=no
2088
2089   DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2090   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2091   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2092
2093   DEFAULT_wxUSE_RESOURCES=no
2094   DEFAULT_wxUSE_CONSTRAINTS=no
2095   DEFAULT_wxUSE_IPC=no
2096   DEFAULT_wxUSE_HELP=no
2097   DEFAULT_wxUSE_MS_HTML_HELP=no
2098   DEFAULT_wxUSE_WXHTML_HELP=no
2099   DEFAULT_wxUSE_TREELAYOUT=no
2100   DEFAULT_wxUSE_METAFILE=no
2101   DEFAULT_wxUSE_MIMETYPE=no
2102   DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2103   DEFAULT_wxUSE_PROTOCOL=no
2104   DEFAULT_wxUSE_PROTOCOL_HTTP=no
2105   DEFAULT_wxUSE_PROTOCOL_FTP=no
2106   DEFAULT_wxUSE_PROTOCOL_FILE=no
2107   DEFAULT_wxUSE_URL=no
2108
2109   DEFAULT_wxUSE_COMMONDLGS=no
2110   DEFAULT_wxUSE_CHOICEDLG=no
2111   DEFAULT_wxUSE_COLOURDLG=no
2112   DEFAULT_wxUSE_DIRDLG=no
2113   DEFAULT_wxUSE_FILEDLG=no
2114   DEFAULT_wxUSE_FINDREPLDLG=no
2115   DEFAULT_wxUSE_FONTDLG=no
2116   DEFAULT_wxUSE_MSGDLG=no
2117   DEFAULT_wxUSE_NUMBERDLG=no
2118   DEFAULT_wxUSE_TEXTDLG=no
2119   DEFAULT_wxUSE_SPLASH=no
2120   DEFAULT_wxUSE_STARTUP_TIPS=no
2121   DEFAULT_wxUSE_PROGRESSDLG=no
2122   DEFAULT_wxUSE_WIZARDDLG=no
2123
2124   DEFAULT_wxUSE_MENUS=no
2125   DEFAULT_wxUSE_MINIFRAME=no
2126   DEFAULT_wxUSE_HTML=no
2127   DEFAULT_wxUSE_FILESYSTEM=no
2128   DEFAULT_wxUSE_FS_INET=no
2129   DEFAULT_wxUSE_FS_ZIP=no
2130   DEFAULT_wxUSE_BUSYINFO=no
2131   DEFAULT_wxUSE_ZIPSTREAM=no
2132   DEFAULT_wxUSE_VALIDATORS=no
2133
2134   DEFAULT_wxUSE_ACCEL=no
2135   DEFAULT_wxUSE_BUTTON=no
2136   DEFAULT_wxUSE_BMPBUTTON=no
2137   DEFAULT_wxUSE_CALCTRL=no
2138   DEFAULT_wxUSE_CARET=no
2139   DEFAULT_wxUSE_CHECKBOX=no
2140   DEFAULT_wxUSE_CHECKLST=no
2141   DEFAULT_wxUSE_CHOICE=no
2142   DEFAULT_wxUSE_COMBOBOX=no
2143   DEFAULT_wxUSE_DISPLAY=no
2144   DEFAULT_wxUSE_GAUGE=no
2145   DEFAULT_wxUSE_GRID=no
2146   DEFAULT_wxUSE_IMAGLIST=no
2147   DEFAULT_wxUSE_LISTBOOK=no
2148   DEFAULT_wxUSE_LISTBOX=no
2149   DEFAULT_wxUSE_LISTCTRL=no
2150   DEFAULT_wxUSE_NOTEBOOK=no
2151   DEFAULT_wxUSE_RADIOBOX=no
2152   DEFAULT_wxUSE_RADIOBTN=no
2153   DEFAULT_wxUSE_SASH=no
2154   DEFAULT_wxUSE_SCROLLBAR=no
2155   DEFAULT_wxUSE_SLIDER=no
2156   DEFAULT_wxUSE_SPINBTN=no
2157   DEFAULT_wxUSE_SPINCTRL=no
2158   DEFAULT_wxUSE_SPLITTER=no
2159   DEFAULT_wxUSE_STATBMP=no
2160   DEFAULT_wxUSE_STATBOX=no
2161   DEFAULT_wxUSE_STATLINE=no
2162   DEFAULT_wxUSE_STATTEXT=no
2163   DEFAULT_wxUSE_STATUSBAR=yes
2164   DEFAULT_wxUSE_TABDIALOG=no
2165   DEFAULT_wxUSE_TEXTCTRL=no
2166   DEFAULT_wxUSE_TOGGLEBTN=no
2167   DEFAULT_wxUSE_TOOLBAR=no
2168   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2169   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2170   DEFAULT_wxUSE_TREECTRL=no
2171   DEFAULT_wxUSE_POPUPWIN=no
2172   DEFAULT_wxUSE_TIPWINDOW=no
2173
2174   DEFAULT_wxUSE_UNICODE=no
2175   DEFAULT_wxUSE_UNICODE_MSLU=no
2176   DEFAULT_wxUSE_WCSRTOMBS=no
2177
2178   DEFAULT_wxUSE_PALETTE=no
2179   DEFAULT_wxUSE_IMAGE=no
2180   DEFAULT_wxUSE_GIF=no
2181   DEFAULT_wxUSE_PCX=no
2182   DEFAULT_wxUSE_PNM=no
2183   DEFAULT_wxUSE_IFF=no
2184   DEFAULT_wxUSE_XPM=no
2185   DEFAULT_wxUSE_ICO_CUR=no
2186   DEFAULT_wxUSE_ACCESSIBILITY=no
2187
2188   DEFAULT_wxUSE_MONOLITHIC=no
2189   DEFAULT_wxUSE_PLUGINS=no
2190   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2191 else
2192   DEFAULT_wxUSE_UNIVERSAL=no
2193   DEFAULT_wxUSE_STL=no
2194
2195   DEFAULT_wxUSE_NANOX=no
2196
2197   DEFAULT_wxUSE_THREADS=yes
2198
2199   DEFAULT_wxUSE_SHARED=yes
2200   DEFAULT_wxUSE_OPTIMISE=yes
2201   DEFAULT_wxUSE_PROFILE=no
2202   DEFAULT_wxUSE_NO_DEPS=no
2203   DEFAULT_wxUSE_NO_RTTI=no
2204   DEFAULT_wxUSE_NO_EXCEPTIONS=no
2205   DEFAULT_wxUSE_PERMISSIVE=no
2206   DEFAULT_wxUSE_DEBUG_FLAG=no
2207   DEFAULT_wxUSE_DEBUG_INFO=no
2208   DEFAULT_wxUSE_DEBUG_GDB=no
2209   DEFAULT_wxUSE_MEM_TRACING=no
2210   DEFAULT_wxUSE_DEBUG_CONTEXT=no
2211   DEFAULT_wxUSE_DMALLOC=no
2212   DEFAULT_wxUSE_APPLE_IEEE=yes
2213
2214   DEFAULT_wxUSE_EXCEPTIONS=yes
2215   DEFAULT_wxUSE_LOG=yes
2216   DEFAULT_wxUSE_LOGWINDOW=yes
2217   DEFAULT_wxUSE_LOGGUI=yes
2218   DEFAULT_wxUSE_LOGDIALOG=yes
2219
2220   DEFAULT_wxUSE_GUI=yes
2221
2222   DEFAULT_wxUSE_REGEX=yes
2223   DEFAULT_wxUSE_XML=yes
2224   DEFAULT_wxUSE_EXPAT=yes
2225   DEFAULT_wxUSE_ZLIB=yes
2226   DEFAULT_wxUSE_LIBPNG=yes
2227   DEFAULT_wxUSE_LIBJPEG=yes
2228   DEFAULT_wxUSE_LIBTIFF=yes
2229   DEFAULT_wxUSE_LIBXPM=yes
2230   DEFAULT_wxUSE_LIBMSPACK=yes
2231   DEFAULT_wxUSE_LIBSDL=no
2232   DEFAULT_wxUSE_ODBC=no
2233   DEFAULT_wxUSE_OPENGL=no
2234
2235   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2236   DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2237   DEFAULT_wxUSE_STD_IOSTREAM=no
2238   DEFAULT_wxUSE_CMDLINE_PARSER=yes
2239   DEFAULT_wxUSE_DATETIME=yes
2240   DEFAULT_wxUSE_TIMER=yes
2241   DEFAULT_wxUSE_STOPWATCH=yes
2242   DEFAULT_wxUSE_FILE=yes
2243   DEFAULT_wxUSE_FFILE=yes
2244   DEFAULT_wxUSE_TEXTBUFFER=yes
2245   DEFAULT_wxUSE_TEXTFILE=yes
2246   DEFAULT_wxUSE_SOUND=yes
2247   DEFAULT_wxUSE_INTL=yes
2248   DEFAULT_wxUSE_CONFIG=yes
2249   DEFAULT_wxUSE_FONTMAP=yes
2250   DEFAULT_wxUSE_STREAMS=yes
2251   DEFAULT_wxUSE_SOCKETS=yes
2252   DEFAULT_wxUSE_OLE=yes
2253   DEFAULT_wxUSE_DATAOBJ=yes
2254   DEFAULT_wxUSE_DIALUP_MANAGER=yes
2255   DEFAULT_wxUSE_JOYSTICK=yes
2256   DEFAULT_wxUSE_DYNLIB_CLASS=yes
2257   DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2258   DEFAULT_wxUSE_LONGLONG=yes
2259   DEFAULT_wxUSE_GEOMETRY=yes
2260
2261   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2262   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2263   DEFAULT_wxUSE_POSTSCRIPT=yes
2264
2265   DEFAULT_wxUSE_CLIPBOARD=yes
2266   DEFAULT_wxUSE_TOOLTIPS=yes
2267   DEFAULT_wxUSE_DRAG_AND_DROP=yes
2268   DEFAULT_wxUSE_DRAGIMAGE=yes
2269   DEFAULT_wxUSE_SPLINES=yes
2270
2271   DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2272   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2273   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2274
2275   DEFAULT_wxUSE_RESOURCES=no
2276   DEFAULT_wxUSE_CONSTRAINTS=yes
2277   DEFAULT_wxUSE_IPC=yes
2278   DEFAULT_wxUSE_HELP=yes
2279   DEFAULT_wxUSE_MS_HTML_HELP=yes
2280   DEFAULT_wxUSE_WXHTML_HELP=yes
2281   DEFAULT_wxUSE_TREELAYOUT=yes
2282   DEFAULT_wxUSE_METAFILE=yes
2283   DEFAULT_wxUSE_MIMETYPE=yes
2284   DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2285   DEFAULT_wxUSE_PROTOCOL=yes
2286   DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2287   DEFAULT_wxUSE_PROTOCOL_FTP=yes
2288   DEFAULT_wxUSE_PROTOCOL_FILE=yes
2289   DEFAULT_wxUSE_URL=yes
2290
2291   DEFAULT_wxUSE_COMMONDLGS=yes
2292   DEFAULT_wxUSE_CHOICEDLG=yes
2293   DEFAULT_wxUSE_COLOURDLG=yes
2294   DEFAULT_wxUSE_DIRDLG=yes
2295   DEFAULT_wxUSE_FILEDLG=yes
2296   DEFAULT_wxUSE_FINDREPLDLG=yes
2297   DEFAULT_wxUSE_FONTDLG=yes
2298   DEFAULT_wxUSE_MSGDLG=yes
2299   DEFAULT_wxUSE_NUMBERDLG=yes
2300   DEFAULT_wxUSE_TEXTDLG=yes
2301   DEFAULT_wxUSE_SPLASH=yes
2302   DEFAULT_wxUSE_STARTUP_TIPS=yes
2303   DEFAULT_wxUSE_PROGRESSDLG=yes
2304   DEFAULT_wxUSE_WIZARDDLG=yes
2305
2306   DEFAULT_wxUSE_MENUS=yes
2307   DEFAULT_wxUSE_MINIFRAME=yes
2308   DEFAULT_wxUSE_HTML=yes
2309   DEFAULT_wxUSE_FILESYSTEM=yes
2310   DEFAULT_wxUSE_FS_INET=yes
2311   DEFAULT_wxUSE_FS_ZIP=yes
2312   DEFAULT_wxUSE_BUSYINFO=yes
2313   DEFAULT_wxUSE_ZIPSTREAM=yes
2314   DEFAULT_wxUSE_VALIDATORS=yes
2315
2316   DEFAULT_wxUSE_ACCEL=yes
2317   DEFAULT_wxUSE_BUTTON=yes
2318   DEFAULT_wxUSE_BMPBUTTON=yes
2319   DEFAULT_wxUSE_CALCTRL=yes
2320   DEFAULT_wxUSE_CARET=yes
2321   DEFAULT_wxUSE_CHECKBOX=yes
2322   DEFAULT_wxUSE_CHECKLST=yes
2323   DEFAULT_wxUSE_CHOICE=yes
2324   DEFAULT_wxUSE_COMBOBOX=yes
2325   DEFAULT_wxUSE_DISPLAY=yes
2326   DEFAULT_wxUSE_GAUGE=yes
2327   DEFAULT_wxUSE_GRID=yes
2328   DEFAULT_wxUSE_IMAGLIST=yes
2329   DEFAULT_wxUSE_LISTBOOK=yes
2330   DEFAULT_wxUSE_LISTBOX=yes
2331   DEFAULT_wxUSE_LISTCTRL=yes
2332   DEFAULT_wxUSE_NOTEBOOK=yes
2333   DEFAULT_wxUSE_RADIOBOX=yes
2334   DEFAULT_wxUSE_RADIOBTN=yes
2335   DEFAULT_wxUSE_SASH=yes
2336   DEFAULT_wxUSE_SCROLLBAR=yes
2337   DEFAULT_wxUSE_SLIDER=yes
2338   DEFAULT_wxUSE_SPINBTN=yes
2339   DEFAULT_wxUSE_SPINCTRL=yes
2340   DEFAULT_wxUSE_SPLITTER=yes
2341   DEFAULT_wxUSE_STATBMP=yes
2342   DEFAULT_wxUSE_STATBOX=yes
2343   DEFAULT_wxUSE_STATLINE=yes
2344   DEFAULT_wxUSE_STATTEXT=yes
2345   DEFAULT_wxUSE_STATUSBAR=yes
2346   DEFAULT_wxUSE_TABDIALOG=no
2347   DEFAULT_wxUSE_TEXTCTRL=yes
2348   DEFAULT_wxUSE_TOGGLEBTN=yes
2349   DEFAULT_wxUSE_TOOLBAR=yes
2350   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2351   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2352   DEFAULT_wxUSE_TREECTRL=yes
2353   DEFAULT_wxUSE_POPUPWIN=yes
2354   DEFAULT_wxUSE_TIPWINDOW=yes
2355
2356   DEFAULT_wxUSE_UNICODE=no
2357   DEFAULT_wxUSE_UNICODE_MSLU=yes
2358   DEFAULT_wxUSE_WCSRTOMBS=no
2359
2360   DEFAULT_wxUSE_PALETTE=yes
2361   DEFAULT_wxUSE_IMAGE=yes
2362   DEFAULT_wxUSE_GIF=yes
2363   DEFAULT_wxUSE_PCX=yes
2364   DEFAULT_wxUSE_IFF=no
2365   DEFAULT_wxUSE_PNM=yes
2366   DEFAULT_wxUSE_XPM=yes
2367   DEFAULT_wxUSE_ICO_CUR=yes
2368   DEFAULT_wxUSE_ACCESSIBILITY=no
2369
2370   DEFAULT_wxUSE_MONOLITHIC=no
2371   DEFAULT_wxUSE_PLUGINS=no
2372   DEFAULT_wxUSE_OFFICIAL_BUILD=no
2373 fi
2374
2375
2376
2377 for toolkit in `echo $ALL_TOOLKITS`; do
2378   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2379   if test "x$LINE" != "x" ; then
2380     has_toolkit_in_cache=1
2381     eval "DEFAULT_$LINE"
2382     eval "CACHE_$toolkit=1"
2383   fi
2384 done
2385
2386
2387
2388           enablestring=
2389           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2390 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2391           no_cache=0
2392           # Check whether --enable-gui or --disable-gui was given.
2393 if test "${enable_gui+set}" = set; then
2394   enableval="$enable_gui"
2395
2396                           if test "$enableval" = yes; then
2397                             ac_cv_use_gui='wxUSE_GUI=yes'
2398                           else
2399                             ac_cv_use_gui='wxUSE_GUI=no'
2400                           fi
2401
2402 else
2403
2404                           LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2405                           if test "x$LINE" != x ; then
2406                             eval "DEFAULT_$LINE"
2407                           else
2408                             no_cache=1
2409                           fi
2410
2411                           ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2412
2413 fi;
2414
2415           eval "$ac_cv_use_gui"
2416           if test "$no_cache" != 1; then
2417             echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2418           fi
2419
2420           if test "$wxUSE_GUI" = yes; then
2421             echo "$as_me:$LINENO: result: yes" >&5
2422 echo "${ECHO_T}yes" >&6
2423           else
2424             echo "$as_me:$LINENO: result: no" >&5
2425 echo "${ECHO_T}no" >&6
2426           fi
2427
2428
2429           enablestring=
2430           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2431 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2432           no_cache=0
2433           # Check whether --enable-monolithic or --disable-monolithic was given.
2434 if test "${enable_monolithic+set}" = set; then
2435   enableval="$enable_monolithic"
2436
2437                           if test "$enableval" = yes; then
2438                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2439                           else
2440                             ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2441                           fi
2442
2443 else
2444
2445                           LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2446                           if test "x$LINE" != x ; then
2447                             eval "DEFAULT_$LINE"
2448                           else
2449                             no_cache=1
2450                           fi
2451
2452                           ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2453
2454 fi;
2455
2456           eval "$ac_cv_use_monolithic"
2457           if test "$no_cache" != 1; then
2458             echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2459           fi
2460
2461           if test "$wxUSE_MONOLITHIC" = yes; then
2462             echo "$as_me:$LINENO: result: yes" >&5
2463 echo "${ECHO_T}yes" >&6
2464           else
2465             echo "$as_me:$LINENO: result: no" >&5
2466 echo "${ECHO_T}no" >&6
2467           fi
2468
2469
2470           enablestring=
2471           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2472 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2473           no_cache=0
2474           # Check whether --enable-plugins or --disable-plugins was given.
2475 if test "${enable_plugins+set}" = set; then
2476   enableval="$enable_plugins"
2477
2478                           if test "$enableval" = yes; then
2479                             ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2480                           else
2481                             ac_cv_use_plugins='wxUSE_PLUGINS=no'
2482                           fi
2483
2484 else
2485
2486                           LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2487                           if test "x$LINE" != x ; then
2488                             eval "DEFAULT_$LINE"
2489                           else
2490                             no_cache=1
2491                           fi
2492
2493                           ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2494
2495 fi;
2496
2497           eval "$ac_cv_use_plugins"
2498           if test "$no_cache" != 1; then
2499             echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2500           fi
2501
2502           if test "$wxUSE_PLUGINS" = yes; then
2503             echo "$as_me:$LINENO: result: yes" >&5
2504 echo "${ECHO_T}yes" >&6
2505           else
2506             echo "$as_me:$LINENO: result: no" >&5
2507 echo "${ECHO_T}no" >&6
2508           fi
2509
2510
2511 if test "$wxUSE_GUI" = "yes"; then
2512
2513
2514           enablestring=
2515           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2516 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2517           no_cache=0
2518           # Check whether --enable-universal or --disable-universal was given.
2519 if test "${enable_universal+set}" = set; then
2520   enableval="$enable_universal"
2521
2522                           if test "$enableval" = yes; then
2523                             ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2524                           else
2525                             ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2526                           fi
2527
2528 else
2529
2530                           LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2531                           if test "x$LINE" != x ; then
2532                             eval "DEFAULT_$LINE"
2533                           else
2534                             no_cache=1
2535                           fi
2536
2537                           ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2538
2539 fi;
2540
2541           eval "$ac_cv_use_universal"
2542           if test "$no_cache" != 1; then
2543             echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2544           fi
2545
2546           if test "$wxUSE_UNIVERSAL" = yes; then
2547             echo "$as_me:$LINENO: result: yes" >&5
2548 echo "${ECHO_T}yes" >&6
2549           else
2550             echo "$as_me:$LINENO: result: no" >&5
2551 echo "${ECHO_T}no" >&6
2552           fi
2553
2554
2555 # Check whether --with-gtk or --without-gtk was given.
2556 if test "${with_gtk+set}" = set; then
2557   withval="$with_gtk"
2558   wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2559 fi;
2560
2561 # Check whether --with-motif or --without-motif was given.
2562 if test "${with_motif+set}" = set; then
2563   withval="$with_motif"
2564   wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2565 fi;
2566
2567 # Check whether --with-mac or --without-mac was given.
2568 if test "${with_mac+set}" = set; then
2569   withval="$with_mac"
2570   wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
2571 fi;
2572
2573 # Check whether --with-cocoa or --without-cocoa was given.
2574 if test "${with_cocoa+set}" = set; then
2575   withval="$with_cocoa"
2576   wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
2577 fi;
2578
2579 # Check whether --with-wine or --without-wine was given.
2580 if test "${with_wine+set}" = set; then
2581   withval="$with_wine"
2582   wxUSE_WINE="$withval" CACHE_WINE=1
2583 fi;
2584
2585 # Check whether --with-msw or --without-msw was given.
2586 if test "${with_msw+set}" = set; then
2587   withval="$with_msw"
2588   wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2589 fi;
2590
2591 # Check whether --with-pm or --without-pm was given.
2592 if test "${with_pm+set}" = set; then
2593   withval="$with_pm"
2594   wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2595 fi;
2596
2597 # Check whether --with-mgl or --without-mgl was given.
2598 if test "${with_mgl+set}" = set; then
2599   withval="$with_mgl"
2600   wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2601 fi;
2602
2603 # Check whether --with-microwin or --without-microwin was given.
2604 if test "${with_microwin+set}" = set; then
2605   withval="$with_microwin"
2606   wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2607 fi;
2608
2609 # Check whether --with-x11 or --without-x11 was given.
2610 if test "${with_x11+set}" = set; then
2611   withval="$with_x11"
2612   wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2613 fi;
2614
2615           enablestring=
2616           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2617 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2618           no_cache=0
2619           # Check whether --enable-nanox or --disable-nanox was given.
2620 if test "${enable_nanox+set}" = set; then
2621   enableval="$enable_nanox"
2622
2623                           if test "$enableval" = yes; then
2624                             ac_cv_use_nanox='wxUSE_NANOX=yes'
2625                           else
2626                             ac_cv_use_nanox='wxUSE_NANOX=no'
2627                           fi
2628
2629 else
2630
2631                           LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2632                           if test "x$LINE" != x ; then
2633                             eval "DEFAULT_$LINE"
2634                           else
2635                             no_cache=1
2636                           fi
2637
2638                           ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2639
2640 fi;
2641
2642           eval "$ac_cv_use_nanox"
2643           if test "$no_cache" != 1; then
2644             echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2645           fi
2646
2647           if test "$wxUSE_NANOX" = yes; then
2648             echo "$as_me:$LINENO: result: yes" >&5
2649 echo "${ECHO_T}yes" >&6
2650           else
2651             echo "$as_me:$LINENO: result: no" >&5
2652 echo "${ECHO_T}no" >&6
2653           fi
2654
2655
2656
2657           enablestring=
2658           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2659 echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2660           no_cache=0
2661           # Check whether --enable-gtk2 or --disable-gtk2 was given.
2662 if test "${enable_gtk2+set}" = set; then
2663   enableval="$enable_gtk2"
2664
2665                           if test "$enableval" = yes; then
2666                             ac_cv_use_gtk2='wxUSE_GTK2=yes'
2667                           else
2668                             ac_cv_use_gtk2='wxUSE_GTK2=no'
2669                           fi
2670
2671 else
2672
2673                           LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2674                           if test "x$LINE" != x ; then
2675                             eval "DEFAULT_$LINE"
2676                           else
2677                             no_cache=1
2678                           fi
2679
2680                           ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2681
2682 fi;
2683
2684           eval "$ac_cv_use_gtk2"
2685           if test "$no_cache" != 1; then
2686             echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2687           fi
2688
2689           if test "$wxUSE_GTK2" = yes; then
2690             echo "$as_me:$LINENO: result: yes" >&5
2691 echo "${ECHO_T}yes" >&6
2692           else
2693             echo "$as_me:$LINENO: result: no" >&5
2694 echo "${ECHO_T}no" >&6
2695           fi
2696
2697
2698           enablestring=
2699           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2700 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2701           no_cache=0
2702           # Check whether --enable-gpe or --disable-gpe was given.
2703 if test "${enable_gpe+set}" = set; then
2704   enableval="$enable_gpe"
2705
2706                           if test "$enableval" = yes; then
2707                             ac_cv_use_gpe='wxUSE_GPE=yes'
2708                           else
2709                             ac_cv_use_gpe='wxUSE_GPE=no'
2710                           fi
2711
2712 else
2713
2714                           LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2715                           if test "x$LINE" != x ; then
2716                             eval "DEFAULT_$LINE"
2717                           else
2718                             no_cache=1
2719                           fi
2720
2721                           ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2722
2723 fi;
2724
2725           eval "$ac_cv_use_gpe"
2726           if test "$no_cache" != 1; then
2727             echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2728           fi
2729
2730           if test "$wxUSE_GPE" = yes; then
2731             echo "$as_me:$LINENO: result: yes" >&5
2732 echo "${ECHO_T}yes" >&6
2733           else
2734             echo "$as_me:$LINENO: result: no" >&5
2735 echo "${ECHO_T}no" >&6
2736           fi
2737
2738
2739
2740           echo "$as_me:$LINENO: checking for --with-libpng" >&5
2741 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2742           no_cache=0
2743
2744 # Check whether --with-libpng or --without-libpng was given.
2745 if test "${with_libpng+set}" = set; then
2746   withval="$with_libpng"
2747
2748                         if test "$withval" = yes; then
2749                           ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2750                         elif test "$withval" = no; then
2751                           ac_cv_use_libpng='wxUSE_LIBPNG=no'
2752                         elif test "$withval" = sys; then
2753                           ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2754                         elif test "$withval" = builtin; then
2755                           ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2756                         else
2757                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2758 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2759    { (exit 1); exit 1; }; }
2760                         fi
2761
2762 else
2763
2764                         LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2765                         if test "x$LINE" != x ; then
2766                           eval "DEFAULT_$LINE"
2767                         else
2768                           no_cache=1
2769                         fi
2770
2771                         ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2772
2773 fi;
2774
2775           eval "$ac_cv_use_libpng"
2776           if test "$no_cache" != 1; then
2777             echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2778           fi
2779
2780           if test "$wxUSE_LIBPNG" = yes; then
2781             echo "$as_me:$LINENO: result: yes" >&5
2782 echo "${ECHO_T}yes" >&6
2783           elif test "$wxUSE_LIBPNG" = no; then
2784             echo "$as_me:$LINENO: result: no" >&5
2785 echo "${ECHO_T}no" >&6
2786           elif test "$wxUSE_LIBPNG" = sys; then
2787             echo "$as_me:$LINENO: result: system version" >&5
2788 echo "${ECHO_T}system version" >&6
2789           elif test "$wxUSE_LIBPNG" = builtin; then
2790             echo "$as_me:$LINENO: result: builtin version" >&5
2791 echo "${ECHO_T}builtin version" >&6
2792           else
2793             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2794 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2795    { (exit 1); exit 1; }; }
2796           fi
2797
2798
2799           echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2800 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2801           no_cache=0
2802
2803 # Check whether --with-libjpeg or --without-libjpeg was given.
2804 if test "${with_libjpeg+set}" = set; then
2805   withval="$with_libjpeg"
2806
2807                         if test "$withval" = yes; then
2808                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2809                         elif test "$withval" = no; then
2810                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2811                         elif test "$withval" = sys; then
2812                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2813                         elif test "$withval" = builtin; then
2814                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2815                         else
2816                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2817 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2818    { (exit 1); exit 1; }; }
2819                         fi
2820
2821 else
2822
2823                         LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2824                         if test "x$LINE" != x ; then
2825                           eval "DEFAULT_$LINE"
2826                         else
2827                           no_cache=1
2828                         fi
2829
2830                         ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2831
2832 fi;
2833
2834           eval "$ac_cv_use_libjpeg"
2835           if test "$no_cache" != 1; then
2836             echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2837           fi
2838
2839           if test "$wxUSE_LIBJPEG" = yes; then
2840             echo "$as_me:$LINENO: result: yes" >&5
2841 echo "${ECHO_T}yes" >&6
2842           elif test "$wxUSE_LIBJPEG" = no; then
2843             echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6
2845           elif test "$wxUSE_LIBJPEG" = sys; then
2846             echo "$as_me:$LINENO: result: system version" >&5
2847 echo "${ECHO_T}system version" >&6
2848           elif test "$wxUSE_LIBJPEG" = builtin; then
2849             echo "$as_me:$LINENO: result: builtin version" >&5
2850 echo "${ECHO_T}builtin version" >&6
2851           else
2852             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2853 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2854    { (exit 1); exit 1; }; }
2855           fi
2856
2857
2858           echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2859 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2860           no_cache=0
2861
2862 # Check whether --with-libtiff or --without-libtiff was given.
2863 if test "${with_libtiff+set}" = set; then
2864   withval="$with_libtiff"
2865
2866                         if test "$withval" = yes; then
2867                           ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2868                         elif test "$withval" = no; then
2869                           ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2870                         elif test "$withval" = sys; then
2871                           ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2872                         elif test "$withval" = builtin; then
2873                           ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2874                         else
2875                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2876 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2877    { (exit 1); exit 1; }; }
2878                         fi
2879
2880 else
2881
2882                         LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2883                         if test "x$LINE" != x ; then
2884                           eval "DEFAULT_$LINE"
2885                         else
2886                           no_cache=1
2887                         fi
2888
2889                         ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2890
2891 fi;
2892
2893           eval "$ac_cv_use_libtiff"
2894           if test "$no_cache" != 1; then
2895             echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2896           fi
2897
2898           if test "$wxUSE_LIBTIFF" = yes; then
2899             echo "$as_me:$LINENO: result: yes" >&5
2900 echo "${ECHO_T}yes" >&6
2901           elif test "$wxUSE_LIBTIFF" = no; then
2902             echo "$as_me:$LINENO: result: no" >&5
2903 echo "${ECHO_T}no" >&6
2904           elif test "$wxUSE_LIBTIFF" = sys; then
2905             echo "$as_me:$LINENO: result: system version" >&5
2906 echo "${ECHO_T}system version" >&6
2907           elif test "$wxUSE_LIBTIFF" = builtin; then
2908             echo "$as_me:$LINENO: result: builtin version" >&5
2909 echo "${ECHO_T}builtin version" >&6
2910           else
2911             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2912 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2913    { (exit 1); exit 1; }; }
2914           fi
2915
2916
2917           echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2918 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2919           no_cache=0
2920
2921 # Check whether --with-libxpm or --without-libxpm was given.
2922 if test "${with_libxpm+set}" = set; then
2923   withval="$with_libxpm"
2924
2925                         if test "$withval" = yes; then
2926                           ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2927                         elif test "$withval" = no; then
2928                           ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2929                         elif test "$withval" = sys; then
2930                           ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2931                         elif test "$withval" = builtin; then
2932                           ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2933                         else
2934                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2935 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2936    { (exit 1); exit 1; }; }
2937                         fi
2938
2939 else
2940
2941                         LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2942                         if test "x$LINE" != x ; then
2943                           eval "DEFAULT_$LINE"
2944                         else
2945                           no_cache=1
2946                         fi
2947
2948                         ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2949
2950 fi;
2951
2952           eval "$ac_cv_use_libxpm"
2953           if test "$no_cache" != 1; then
2954             echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2955           fi
2956
2957           if test "$wxUSE_LIBXPM" = yes; then
2958             echo "$as_me:$LINENO: result: yes" >&5
2959 echo "${ECHO_T}yes" >&6
2960           elif test "$wxUSE_LIBXPM" = no; then
2961             echo "$as_me:$LINENO: result: no" >&5
2962 echo "${ECHO_T}no" >&6
2963           elif test "$wxUSE_LIBXPM" = sys; then
2964             echo "$as_me:$LINENO: result: system version" >&5
2965 echo "${ECHO_T}system version" >&6
2966           elif test "$wxUSE_LIBXPM" = builtin; then
2967             echo "$as_me:$LINENO: result: builtin version" >&5
2968 echo "${ECHO_T}builtin version" >&6
2969           else
2970             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2971 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2972    { (exit 1); exit 1; }; }
2973           fi
2974
2975
2976           echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2977 echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2978           no_cache=0
2979
2980 # Check whether --with-libmspack or --without-libmspack was given.
2981 if test "${with_libmspack+set}" = set; then
2982   withval="$with_libmspack"
2983
2984                         if test "$withval" = yes; then
2985                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
2986                         else
2987                           ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
2988                         fi
2989
2990 else
2991
2992                         LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
2993                         if test "x$LINE" != x ; then
2994                           eval "DEFAULT_$LINE"
2995                         else
2996                           no_cache=1
2997                         fi
2998
2999                         ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3000
3001 fi;
3002
3003           eval "$ac_cv_use_libmspack"
3004           if test "$no_cache" != 1; then
3005             echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3006           fi
3007
3008           if test "$wxUSE_LIBMSPACK" = yes; then
3009             echo "$as_me:$LINENO: result: yes" >&5
3010 echo "${ECHO_T}yes" >&6
3011           else
3012             echo "$as_me:$LINENO: result: no" >&5
3013 echo "${ECHO_T}no" >&6
3014           fi
3015
3016
3017           echo "$as_me:$LINENO: checking for --with-sdl" >&5
3018 echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3019           no_cache=0
3020
3021 # Check whether --with-sdl or --without-sdl was given.
3022 if test "${with_sdl+set}" = set; then
3023   withval="$with_sdl"
3024
3025                         if test "$withval" = yes; then
3026                           ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3027                         else
3028                           ac_cv_use_sdl='wxUSE_LIBSDL=no'
3029                         fi
3030
3031 else
3032
3033                         LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3034                         if test "x$LINE" != x ; then
3035                           eval "DEFAULT_$LINE"
3036                         else
3037                           no_cache=1
3038                         fi
3039
3040                         ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3041
3042 fi;
3043
3044           eval "$ac_cv_use_sdl"
3045           if test "$no_cache" != 1; then
3046             echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3047           fi
3048
3049           if test "$wxUSE_LIBSDL" = yes; then
3050             echo "$as_me:$LINENO: result: yes" >&5
3051 echo "${ECHO_T}yes" >&6
3052           else
3053             echo "$as_me:$LINENO: result: no" >&5
3054 echo "${ECHO_T}no" >&6
3055           fi
3056
3057
3058           echo "$as_me:$LINENO: checking for --with-opengl" >&5
3059 echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3060           no_cache=0
3061
3062 # Check whether --with-opengl or --without-opengl was given.
3063 if test "${with_opengl+set}" = set; then
3064   withval="$with_opengl"
3065
3066                         if test "$withval" = yes; then
3067                           ac_cv_use_opengl='wxUSE_OPENGL=yes'
3068                         else
3069                           ac_cv_use_opengl='wxUSE_OPENGL=no'
3070                         fi
3071
3072 else
3073
3074                         LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3075                         if test "x$LINE" != x ; then
3076                           eval "DEFAULT_$LINE"
3077                         else
3078                           no_cache=1
3079                         fi
3080
3081                         ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3082
3083 fi;
3084
3085           eval "$ac_cv_use_opengl"
3086           if test "$no_cache" != 1; then
3087             echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3088           fi
3089
3090           if test "$wxUSE_OPENGL" = yes; then
3091             echo "$as_me:$LINENO: result: yes" >&5
3092 echo "${ECHO_T}yes" >&6
3093           else
3094             echo "$as_me:$LINENO: result: no" >&5
3095 echo "${ECHO_T}no" >&6
3096           fi
3097
3098
3099 fi
3100
3101
3102           echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3103 echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3104           no_cache=0
3105
3106 # Check whether --with-dmalloc or --without-dmalloc was given.
3107 if test "${with_dmalloc+set}" = set; then
3108   withval="$with_dmalloc"
3109
3110                         if test "$withval" = yes; then
3111                           ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3112                         else
3113                           ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3114                         fi
3115
3116 else
3117
3118                         LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3119                         if test "x$LINE" != x ; then
3120                           eval "DEFAULT_$LINE"
3121                         else
3122                           no_cache=1
3123                         fi
3124
3125                         ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3126
3127 fi;
3128
3129           eval "$ac_cv_use_dmalloc"
3130           if test "$no_cache" != 1; then
3131             echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3132           fi
3133
3134           if test "$wxUSE_DMALLOC" = yes; then
3135             echo "$as_me:$LINENO: result: yes" >&5
3136 echo "${ECHO_T}yes" >&6
3137           else
3138             echo "$as_me:$LINENO: result: no" >&5
3139 echo "${ECHO_T}no" >&6
3140           fi
3141
3142
3143           echo "$as_me:$LINENO: checking for --with-regex" >&5
3144 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3145           no_cache=0
3146
3147 # Check whether --with-regex or --without-regex was given.
3148 if test "${with_regex+set}" = set; then
3149   withval="$with_regex"
3150
3151                         if test "$withval" = yes; then
3152                           ac_cv_use_regex='wxUSE_REGEX=yes'
3153                         elif test "$withval" = no; then
3154                           ac_cv_use_regex='wxUSE_REGEX=no'
3155                         elif test "$withval" = sys; then
3156                           ac_cv_use_regex='wxUSE_REGEX=sys'
3157                         elif test "$withval" = builtin; then
3158                           ac_cv_use_regex='wxUSE_REGEX=builtin'
3159                         else
3160                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3161 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3162    { (exit 1); exit 1; }; }
3163                         fi
3164
3165 else
3166
3167                         LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3168                         if test "x$LINE" != x ; then
3169                           eval "DEFAULT_$LINE"
3170                         else
3171                           no_cache=1
3172                         fi
3173
3174                         ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3175
3176 fi;
3177
3178           eval "$ac_cv_use_regex"
3179           if test "$no_cache" != 1; then
3180             echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3181           fi
3182
3183           if test "$wxUSE_REGEX" = yes; then
3184             echo "$as_me:$LINENO: result: yes" >&5
3185 echo "${ECHO_T}yes" >&6
3186           elif test "$wxUSE_REGEX" = no; then
3187             echo "$as_me:$LINENO: result: no" >&5
3188 echo "${ECHO_T}no" >&6
3189           elif test "$wxUSE_REGEX" = sys; then
3190             echo "$as_me:$LINENO: result: system version" >&5
3191 echo "${ECHO_T}system version" >&6
3192           elif test "$wxUSE_REGEX" = builtin; then
3193             echo "$as_me:$LINENO: result: builtin version" >&5
3194 echo "${ECHO_T}builtin version" >&6
3195           else
3196             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3197 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3198    { (exit 1); exit 1; }; }
3199           fi
3200
3201
3202           echo "$as_me:$LINENO: checking for --with-zlib" >&5
3203 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3204           no_cache=0
3205
3206 # Check whether --with-zlib or --without-zlib was given.
3207 if test "${with_zlib+set}" = set; then
3208   withval="$with_zlib"
3209
3210                         if test "$withval" = yes; then
3211                           ac_cv_use_zlib='wxUSE_ZLIB=yes'
3212                         elif test "$withval" = no; then
3213                           ac_cv_use_zlib='wxUSE_ZLIB=no'
3214                         elif test "$withval" = sys; then
3215                           ac_cv_use_zlib='wxUSE_ZLIB=sys'
3216                         elif test "$withval" = builtin; then
3217                           ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3218                         else
3219                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3220 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3221    { (exit 1); exit 1; }; }
3222                         fi
3223
3224 else
3225
3226                         LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3227                         if test "x$LINE" != x ; then
3228                           eval "DEFAULT_$LINE"
3229                         else
3230                           no_cache=1
3231                         fi
3232
3233                         ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3234
3235 fi;
3236
3237           eval "$ac_cv_use_zlib"
3238           if test "$no_cache" != 1; then
3239             echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3240           fi
3241
3242           if test "$wxUSE_ZLIB" = yes; then
3243             echo "$as_me:$LINENO: result: yes" >&5
3244 echo "${ECHO_T}yes" >&6
3245           elif test "$wxUSE_ZLIB" = no; then
3246             echo "$as_me:$LINENO: result: no" >&5
3247 echo "${ECHO_T}no" >&6
3248           elif test "$wxUSE_ZLIB" = sys; then
3249             echo "$as_me:$LINENO: result: system version" >&5
3250 echo "${ECHO_T}system version" >&6
3251           elif test "$wxUSE_ZLIB" = builtin; then
3252             echo "$as_me:$LINENO: result: builtin version" >&5
3253 echo "${ECHO_T}builtin version" >&6
3254           else
3255             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3256 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3257    { (exit 1); exit 1; }; }
3258           fi
3259
3260
3261           echo "$as_me:$LINENO: checking for --with-odbc" >&5
3262 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3263           no_cache=0
3264
3265 # Check whether --with-odbc or --without-odbc was given.
3266 if test "${with_odbc+set}" = set; then
3267   withval="$with_odbc"
3268
3269                         if test "$withval" = yes; then
3270                           ac_cv_use_odbc='wxUSE_ODBC=yes'
3271                         elif test "$withval" = no; then
3272                           ac_cv_use_odbc='wxUSE_ODBC=no'
3273                         elif test "$withval" = sys; then
3274                           ac_cv_use_odbc='wxUSE_ODBC=sys'
3275                         elif test "$withval" = builtin; then
3276                           ac_cv_use_odbc='wxUSE_ODBC=builtin'
3277                         else
3278                           { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3279 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3280    { (exit 1); exit 1; }; }
3281                         fi
3282
3283 else
3284
3285                         LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3286                         if test "x$LINE" != x ; then
3287                           eval "DEFAULT_$LINE"
3288                         else
3289                           no_cache=1
3290                         fi
3291
3292                         ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3293
3294 fi;
3295
3296           eval "$ac_cv_use_odbc"
3297           if test "$no_cache" != 1; then
3298             echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3299           fi
3300
3301           if test "$wxUSE_ODBC" = yes; then
3302             echo "$as_me:$LINENO: result: yes" >&5
3303 echo "${ECHO_T}yes" >&6
3304           elif test "$wxUSE_ODBC" = no; then
3305             echo "$as_me:$LINENO: result: no" >&5
3306 echo "${ECHO_T}no" >&6
3307           elif test "$wxUSE_ODBC" = sys; then
3308             echo "$as_me:$LINENO: result: system version" >&5
3309 echo "${ECHO_T}system version" >&6
3310           elif test "$wxUSE_ODBC" = builtin; then
3311             echo "$as_me:$LINENO: result: builtin version" >&5
3312 echo "${ECHO_T}builtin version" >&6
3313           else
3314             { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3315 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3316    { (exit 1); exit 1; }; }
3317           fi
3318
3319
3320           echo "$as_me:$LINENO: checking for --with-expat" >&5
3321 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3322           no_cache=0
3323
3324 # Check whether --with-expat or --without-expat was given.
3325 if test "${with_expat+set}" = set; then
3326   withval="$with_expat"
3327
3328                         if test "$withval" = yes; then
3329                           ac_cv_use_expat='wxUSE_EXPAT=yes'
3330                         elif test "$withval" = no; then
3331                           ac_cv_use_expat='wxUSE_EXPAT=no'
3332                         elif test "$withval" = sys; then
3333                           ac_cv_use_expat='wxUSE_EXPAT=sys'
3334                         elif test "$withval" = builtin; then
3335                           ac_cv_use_expat='wxUSE_EXPAT=builtin'
3336                         else
3337                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3338 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3339    { (exit 1); exit 1; }; }
3340                         fi
3341
3342 else
3343
3344                         LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3345                         if test "x$LINE" != x ; then
3346                           eval "DEFAULT_$LINE"
3347                         else
3348                           no_cache=1
3349                         fi
3350
3351                         ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3352
3353 fi;
3354
3355           eval "$ac_cv_use_expat"
3356           if test "$no_cache" != 1; then
3357             echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3358           fi
3359
3360           if test "$wxUSE_EXPAT" = yes; then
3361             echo "$as_me:$LINENO: result: yes" >&5
3362 echo "${ECHO_T}yes" >&6
3363           elif test "$wxUSE_EXPAT" = no; then
3364             echo "$as_me:$LINENO: result: no" >&5
3365 echo "${ECHO_T}no" >&6
3366           elif test "$wxUSE_EXPAT" = sys; then
3367             echo "$as_me:$LINENO: result: system version" >&5
3368 echo "${ECHO_T}system version" >&6
3369           elif test "$wxUSE_EXPAT" = builtin; then
3370             echo "$as_me:$LINENO: result: builtin version" >&5
3371 echo "${ECHO_T}builtin version" >&6
3372           else
3373             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3374 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3375    { (exit 1); exit 1; }; }
3376           fi
3377
3378
3379
3380
3381           enablestring=
3382           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3383 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3384           no_cache=0
3385           # Check whether --enable-shared or --disable-shared was given.
3386 if test "${enable_shared+set}" = set; then
3387   enableval="$enable_shared"
3388
3389                           if test "$enableval" = yes; then
3390                             ac_cv_use_shared='wxUSE_SHARED=yes'
3391                           else
3392                             ac_cv_use_shared='wxUSE_SHARED=no'
3393                           fi
3394
3395 else
3396
3397                           LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3398                           if test "x$LINE" != x ; then
3399                             eval "DEFAULT_$LINE"
3400                           else
3401                             no_cache=1
3402                           fi
3403
3404                           ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3405
3406 fi;
3407
3408           eval "$ac_cv_use_shared"
3409           if test "$no_cache" != 1; then
3410             echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3411           fi
3412
3413           if test "$wxUSE_SHARED" = yes; then
3414             echo "$as_me:$LINENO: result: yes" >&5
3415 echo "${ECHO_T}yes" >&6
3416           else
3417             echo "$as_me:$LINENO: result: no" >&5
3418 echo "${ECHO_T}no" >&6
3419           fi
3420
3421
3422           enablestring=
3423           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3424 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3425           no_cache=0
3426           # Check whether --enable-optimise or --disable-optimise was given.
3427 if test "${enable_optimise+set}" = set; then
3428   enableval="$enable_optimise"
3429
3430                           if test "$enableval" = yes; then
3431                             ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3432                           else
3433                             ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3434                           fi
3435
3436 else
3437
3438                           LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3439                           if test "x$LINE" != x ; then
3440                             eval "DEFAULT_$LINE"
3441                           else
3442                             no_cache=1
3443                           fi
3444
3445                           ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3446
3447 fi;
3448
3449           eval "$ac_cv_use_optimise"
3450           if test "$no_cache" != 1; then
3451             echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3452           fi
3453
3454           if test "$wxUSE_OPTIMISE" = yes; then
3455             echo "$as_me:$LINENO: result: yes" >&5
3456 echo "${ECHO_T}yes" >&6
3457           else
3458             echo "$as_me:$LINENO: result: no" >&5
3459 echo "${ECHO_T}no" >&6
3460           fi
3461
3462
3463           enablestring=
3464           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3465 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3466           no_cache=0
3467           # Check whether --enable-debug or --disable-debug was given.
3468 if test "${enable_debug+set}" = set; then
3469   enableval="$enable_debug"
3470
3471                           if test "$enableval" = yes; then
3472                             ac_cv_use_debug='wxUSE_DEBUG=yes'
3473                           else
3474                             ac_cv_use_debug='wxUSE_DEBUG=no'
3475                           fi
3476
3477 else
3478
3479                           LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3480                           if test "x$LINE" != x ; then
3481                             eval "DEFAULT_$LINE"
3482                           else
3483                             no_cache=1
3484                           fi
3485
3486                           ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3487
3488 fi;
3489
3490           eval "$ac_cv_use_debug"
3491           if test "$no_cache" != 1; then
3492             echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3493           fi
3494
3495           if test "$wxUSE_DEBUG" = yes; then
3496             echo "$as_me:$LINENO: result: yes" >&5
3497 echo "${ECHO_T}yes" >&6
3498           else
3499             echo "$as_me:$LINENO: result: no" >&5
3500 echo "${ECHO_T}no" >&6
3501           fi
3502
3503
3504           enablestring=
3505           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3506 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3507           no_cache=0
3508           # Check whether --enable-stl or --disable-stl was given.
3509 if test "${enable_stl+set}" = set; then
3510   enableval="$enable_stl"
3511
3512                           if test "$enableval" = yes; then
3513                             ac_cv_use_stl='wxUSE_STL=yes'
3514                           else
3515                             ac_cv_use_stl='wxUSE_STL=no'
3516                           fi
3517
3518 else
3519
3520                           LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3521                           if test "x$LINE" != x ; then
3522                             eval "DEFAULT_$LINE"
3523                           else
3524                             no_cache=1
3525                           fi
3526
3527                           ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3528
3529 fi;
3530
3531           eval "$ac_cv_use_stl"
3532           if test "$no_cache" != 1; then
3533             echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3534           fi
3535
3536           if test "$wxUSE_STL" = yes; then
3537             echo "$as_me:$LINENO: result: yes" >&5
3538 echo "${ECHO_T}yes" >&6
3539           else
3540             echo "$as_me:$LINENO: result: no" >&5
3541 echo "${ECHO_T}no" >&6
3542           fi
3543
3544 if test "$USE_OS2" = "1"; then
3545
3546           enablestring=
3547           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3548 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3549           no_cache=0
3550           # Check whether --enable-omf or --disable-omf was given.
3551 if test "${enable_omf+set}" = set; then
3552   enableval="$enable_omf"
3553
3554                           if test "$enableval" = yes; then
3555                             ac_cv_use_omf='wxUSE_OMF=yes'
3556                           else
3557                             ac_cv_use_omf='wxUSE_OMF=no'
3558                           fi
3559
3560 else
3561
3562                           LINE=`grep "wxUSE_OMF" ${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_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3570
3571 fi;
3572
3573           eval "$ac_cv_use_omf"
3574           if test "$no_cache" != 1; then
3575             echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3576           fi
3577
3578           if test "$wxUSE_OMF" = 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 fi
3587
3588 if test "$wxUSE_DEBUG" = "yes"; then
3589   DEFAULT_wxUSE_DEBUG_FLAG=yes
3590   DEFAULT_wxUSE_DEBUG_INFO=yes
3591   BUILD=debug
3592 elif test "$wxUSE_DEBUG" = "no"; then
3593   DEFAULT_wxUSE_DEBUG_FLAG=no
3594   DEFAULT_wxUSE_DEBUG_INFO=no
3595   BUILD=release
3596 fi
3597
3598
3599           enablestring=
3600           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3601 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3602           no_cache=0
3603           # Check whether --enable-debug_flag or --disable-debug_flag was given.
3604 if test "${enable_debug_flag+set}" = set; then
3605   enableval="$enable_debug_flag"
3606
3607                           if test "$enableval" = yes; then
3608                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3609                           else
3610                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3611                           fi
3612
3613 else
3614
3615                           LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3616                           if test "x$LINE" != x ; then
3617                             eval "DEFAULT_$LINE"
3618                           else
3619                             no_cache=1
3620                           fi
3621
3622                           ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3623
3624 fi;
3625
3626           eval "$ac_cv_use_debug_flag"
3627           if test "$no_cache" != 1; then
3628             echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3629           fi
3630
3631           if test "$wxUSE_DEBUG_FLAG" = yes; then
3632             echo "$as_me:$LINENO: result: yes" >&5
3633 echo "${ECHO_T}yes" >&6
3634           else
3635             echo "$as_me:$LINENO: result: no" >&5
3636 echo "${ECHO_T}no" >&6
3637           fi
3638
3639
3640           enablestring=
3641           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3642 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3643           no_cache=0
3644           # Check whether --enable-debug_info or --disable-debug_info was given.
3645 if test "${enable_debug_info+set}" = set; then
3646   enableval="$enable_debug_info"
3647
3648                           if test "$enableval" = yes; then
3649                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3650                           else
3651                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3652                           fi
3653
3654 else
3655
3656                           LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3657                           if test "x$LINE" != x ; then
3658                             eval "DEFAULT_$LINE"
3659                           else
3660                             no_cache=1
3661                           fi
3662
3663                           ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3664
3665 fi;
3666
3667           eval "$ac_cv_use_debug_info"
3668           if test "$no_cache" != 1; then
3669             echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3670           fi
3671
3672           if test "$wxUSE_DEBUG_INFO" = yes; then
3673             echo "$as_me:$LINENO: result: yes" >&5
3674 echo "${ECHO_T}yes" >&6
3675           else
3676             echo "$as_me:$LINENO: result: no" >&5
3677 echo "${ECHO_T}no" >&6
3678           fi
3679
3680
3681           enablestring=
3682           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3683 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3684           no_cache=0
3685           # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3686 if test "${enable_debug_gdb+set}" = set; then
3687   enableval="$enable_debug_gdb"
3688
3689                           if test "$enableval" = yes; then
3690                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3691                           else
3692                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3693                           fi
3694
3695 else
3696
3697                           LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3698                           if test "x$LINE" != x ; then
3699                             eval "DEFAULT_$LINE"
3700                           else
3701                             no_cache=1
3702                           fi
3703
3704                           ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3705
3706 fi;
3707
3708           eval "$ac_cv_use_debug_gdb"
3709           if test "$no_cache" != 1; then
3710             echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3711           fi
3712
3713           if test "$wxUSE_DEBUG_GDB" = yes; then
3714             echo "$as_me:$LINENO: result: yes" >&5
3715 echo "${ECHO_T}yes" >&6
3716           else
3717             echo "$as_me:$LINENO: result: no" >&5
3718 echo "${ECHO_T}no" >&6
3719           fi
3720
3721
3722           enablestring=
3723           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3724 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3725           no_cache=0
3726           # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3727 if test "${enable_debug_cntxt+set}" = set; then
3728   enableval="$enable_debug_cntxt"
3729
3730                           if test "$enableval" = yes; then
3731                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3732                           else
3733                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3734                           fi
3735
3736 else
3737
3738                           LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3739                           if test "x$LINE" != x ; then
3740                             eval "DEFAULT_$LINE"
3741                           else
3742                             no_cache=1
3743                           fi
3744
3745                           ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3746
3747 fi;
3748
3749           eval "$ac_cv_use_debug_cntxt"
3750           if test "$no_cache" != 1; then
3751             echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3752           fi
3753
3754           if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3755             echo "$as_me:$LINENO: result: yes" >&5
3756 echo "${ECHO_T}yes" >&6
3757           else
3758             echo "$as_me:$LINENO: result: no" >&5
3759 echo "${ECHO_T}no" >&6
3760           fi
3761
3762
3763           enablestring=
3764           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3765 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3766           no_cache=0
3767           # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3768 if test "${enable_mem_tracing+set}" = set; then
3769   enableval="$enable_mem_tracing"
3770
3771                           if test "$enableval" = yes; then
3772                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3773                           else
3774                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3775                           fi
3776
3777 else
3778
3779                           LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3780                           if test "x$LINE" != x ; then
3781                             eval "DEFAULT_$LINE"
3782                           else
3783                             no_cache=1
3784                           fi
3785
3786                           ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3787
3788 fi;
3789
3790           eval "$ac_cv_use_mem_tracing"
3791           if test "$no_cache" != 1; then
3792             echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3793           fi
3794
3795           if test "$wxUSE_MEM_TRACING" = yes; then
3796             echo "$as_me:$LINENO: result: yes" >&5
3797 echo "${ECHO_T}yes" >&6
3798           else
3799             echo "$as_me:$LINENO: result: no" >&5
3800 echo "${ECHO_T}no" >&6
3801           fi
3802
3803
3804           enablestring=
3805           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3806 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3807           no_cache=0
3808           # Check whether --enable-profile or --disable-profile was given.
3809 if test "${enable_profile+set}" = set; then
3810   enableval="$enable_profile"
3811
3812                           if test "$enableval" = yes; then
3813                             ac_cv_use_profile='wxUSE_PROFILE=yes'
3814                           else
3815                             ac_cv_use_profile='wxUSE_PROFILE=no'
3816                           fi
3817
3818 else
3819
3820                           LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3821                           if test "x$LINE" != x ; then
3822                             eval "DEFAULT_$LINE"
3823                           else
3824                             no_cache=1
3825                           fi
3826
3827                           ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3828
3829 fi;
3830
3831           eval "$ac_cv_use_profile"
3832           if test "$no_cache" != 1; then
3833             echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3834           fi
3835
3836           if test "$wxUSE_PROFILE" = yes; then
3837             echo "$as_me:$LINENO: result: yes" >&5
3838 echo "${ECHO_T}yes" >&6
3839           else
3840             echo "$as_me:$LINENO: result: no" >&5
3841 echo "${ECHO_T}no" >&6
3842           fi
3843
3844
3845           enablestring=
3846           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3847 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3848           no_cache=0
3849           # Check whether --enable-no_rtti or --disable-no_rtti was given.
3850 if test "${enable_no_rtti+set}" = set; then
3851   enableval="$enable_no_rtti"
3852
3853                           if test "$enableval" = yes; then
3854                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3855                           else
3856                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3857                           fi
3858
3859 else
3860
3861                           LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3862                           if test "x$LINE" != x ; then
3863                             eval "DEFAULT_$LINE"
3864                           else
3865                             no_cache=1
3866                           fi
3867
3868                           ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3869
3870 fi;
3871
3872           eval "$ac_cv_use_no_rtti"
3873           if test "$no_cache" != 1; then
3874             echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3875           fi
3876
3877           if test "$wxUSE_NO_RTTI" = yes; then
3878             echo "$as_me:$LINENO: result: yes" >&5
3879 echo "${ECHO_T}yes" >&6
3880           else
3881             echo "$as_me:$LINENO: result: no" >&5
3882 echo "${ECHO_T}no" >&6
3883           fi
3884
3885
3886           enablestring=
3887           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3888 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3889           no_cache=0
3890           # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3891 if test "${enable_no_exceptions+set}" = set; then
3892   enableval="$enable_no_exceptions"
3893
3894                           if test "$enableval" = yes; then
3895                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3896                           else
3897                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3898                           fi
3899
3900 else
3901
3902                           LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3903                           if test "x$LINE" != x ; then
3904                             eval "DEFAULT_$LINE"
3905                           else
3906                             no_cache=1
3907                           fi
3908
3909                           ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3910
3911 fi;
3912
3913           eval "$ac_cv_use_no_exceptions"
3914           if test "$no_cache" != 1; then
3915             echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3916           fi
3917
3918           if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3919             echo "$as_me:$LINENO: result: yes" >&5
3920 echo "${ECHO_T}yes" >&6
3921           else
3922             echo "$as_me:$LINENO: result: no" >&5
3923 echo "${ECHO_T}no" >&6
3924           fi
3925
3926
3927           enablestring=
3928           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3929 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3930           no_cache=0
3931           # Check whether --enable-permissive or --disable-permissive was given.
3932 if test "${enable_permissive+set}" = set; then
3933   enableval="$enable_permissive"
3934
3935                           if test "$enableval" = yes; then
3936                             ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3937                           else
3938                             ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3939                           fi
3940
3941 else
3942
3943                           LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3944                           if test "x$LINE" != x ; then
3945                             eval "DEFAULT_$LINE"
3946                           else
3947                             no_cache=1
3948                           fi
3949
3950                           ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
3951
3952 fi;
3953
3954           eval "$ac_cv_use_permissive"
3955           if test "$no_cache" != 1; then
3956             echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3957           fi
3958
3959           if test "$wxUSE_PERMISSIVE" = yes; then
3960             echo "$as_me:$LINENO: result: yes" >&5
3961 echo "${ECHO_T}yes" >&6
3962           else
3963             echo "$as_me:$LINENO: result: no" >&5
3964 echo "${ECHO_T}no" >&6
3965           fi
3966
3967
3968           enablestring=
3969           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3970 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
3971           no_cache=0
3972           # Check whether --enable-no_deps or --disable-no_deps was given.
3973 if test "${enable_no_deps+set}" = set; then
3974   enableval="$enable_no_deps"
3975
3976                           if test "$enableval" = yes; then
3977                             ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3978                           else
3979                             ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3980                           fi
3981
3982 else
3983
3984                           LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3985                           if test "x$LINE" != x ; then
3986                             eval "DEFAULT_$LINE"
3987                           else
3988                             no_cache=1
3989                           fi
3990
3991                           ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
3992
3993 fi;
3994
3995           eval "$ac_cv_use_no_deps"
3996           if test "$no_cache" != 1; then
3997             echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3998           fi
3999
4000           if test "$wxUSE_NO_DEPS" = yes; then
4001             echo "$as_me:$LINENO: result: yes" >&5
4002 echo "${ECHO_T}yes" >&6
4003           else
4004             echo "$as_me:$LINENO: result: no" >&5
4005 echo "${ECHO_T}no" >&6
4006           fi
4007
4008
4009
4010           enablestring=
4011           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4012 echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4013           no_cache=0
4014           # Check whether --enable-compat22 or --disable-compat22 was given.
4015 if test "${enable_compat22+set}" = set; then
4016   enableval="$enable_compat22"
4017
4018                           if test "$enableval" = yes; then
4019                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4020                           else
4021                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4022                           fi
4023
4024 else
4025
4026                           LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4027                           if test "x$LINE" != x ; then
4028                             eval "DEFAULT_$LINE"
4029                           else
4030                             no_cache=1
4031                           fi
4032
4033                           ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4034
4035 fi;
4036
4037           eval "$ac_cv_use_compat22"
4038           if test "$no_cache" != 1; then
4039             echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4040           fi
4041
4042           if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4043             echo "$as_me:$LINENO: result: yes" >&5
4044 echo "${ECHO_T}yes" >&6
4045           else
4046             echo "$as_me:$LINENO: result: no" >&5
4047 echo "${ECHO_T}no" >&6
4048           fi
4049
4050
4051           enablestring=disable
4052           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4053 echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4054           no_cache=0
4055           # Check whether --enable-compat24 or --disable-compat24 was given.
4056 if test "${enable_compat24+set}" = set; then
4057   enableval="$enable_compat24"
4058
4059                           if test "$enableval" = yes; then
4060                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4061                           else
4062                             ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4063                           fi
4064
4065 else
4066
4067                           LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4068                           if test "x$LINE" != x ; then
4069                             eval "DEFAULT_$LINE"
4070                           else
4071                             no_cache=1
4072                           fi
4073
4074                           ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4075
4076 fi;
4077
4078           eval "$ac_cv_use_compat24"
4079           if test "$no_cache" != 1; then
4080             echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4081           fi
4082
4083           if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4084             echo "$as_me:$LINENO: result: yes" >&5
4085 echo "${ECHO_T}yes" >&6
4086           else
4087             echo "$as_me:$LINENO: result: no" >&5
4088 echo "${ECHO_T}no" >&6
4089           fi
4090
4091
4092 # Check whether --enable-rpath or --disable-rpath was given.
4093 if test "${enable_rpath+set}" = set; then
4094   enableval="$enable_rpath"
4095   wxRPATH_DIR="$enableval"
4096 fi;
4097
4098 if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
4099    WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
4100 fi
4101
4102
4103
4104
4105           enablestring=
4106           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4107 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4108           no_cache=0
4109           # Check whether --enable-intl or --disable-intl was given.
4110 if test "${enable_intl+set}" = set; then
4111   enableval="$enable_intl"
4112
4113                           if test "$enableval" = yes; then
4114                             ac_cv_use_intl='wxUSE_INTL=yes'
4115                           else
4116                             ac_cv_use_intl='wxUSE_INTL=no'
4117                           fi
4118
4119 else
4120
4121                           LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4122                           if test "x$LINE" != x ; then
4123                             eval "DEFAULT_$LINE"
4124                           else
4125                             no_cache=1
4126                           fi
4127
4128                           ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4129
4130 fi;
4131
4132           eval "$ac_cv_use_intl"
4133           if test "$no_cache" != 1; then
4134             echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4135           fi
4136
4137           if test "$wxUSE_INTL" = yes; then
4138             echo "$as_me:$LINENO: result: yes" >&5
4139 echo "${ECHO_T}yes" >&6
4140           else
4141             echo "$as_me:$LINENO: result: no" >&5
4142 echo "${ECHO_T}no" >&6
4143           fi
4144
4145
4146           enablestring=
4147           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4148 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4149           no_cache=0
4150           # Check whether --enable-config or --disable-config was given.
4151 if test "${enable_config+set}" = set; then
4152   enableval="$enable_config"
4153
4154                           if test "$enableval" = yes; then
4155                             ac_cv_use_config='wxUSE_CONFIG=yes'
4156                           else
4157                             ac_cv_use_config='wxUSE_CONFIG=no'
4158                           fi
4159
4160 else
4161
4162                           LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4163                           if test "x$LINE" != x ; then
4164                             eval "DEFAULT_$LINE"
4165                           else
4166                             no_cache=1
4167                           fi
4168
4169                           ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4170
4171 fi;
4172
4173           eval "$ac_cv_use_config"
4174           if test "$no_cache" != 1; then
4175             echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4176           fi
4177
4178           if test "$wxUSE_CONFIG" = yes; then
4179             echo "$as_me:$LINENO: result: yes" >&5
4180 echo "${ECHO_T}yes" >&6
4181           else
4182             echo "$as_me:$LINENO: result: no" >&5
4183 echo "${ECHO_T}no" >&6
4184           fi
4185
4186
4187
4188           enablestring=
4189           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4190 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4191           no_cache=0
4192           # Check whether --enable-protocols or --disable-protocols was given.
4193 if test "${enable_protocols+set}" = set; then
4194   enableval="$enable_protocols"
4195
4196                           if test "$enableval" = yes; then
4197                             ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4198                           else
4199                             ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4200                           fi
4201
4202 else
4203
4204                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4205                           if test "x$LINE" != x ; then
4206                             eval "DEFAULT_$LINE"
4207                           else
4208                             no_cache=1
4209                           fi
4210
4211                           ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4212
4213 fi;
4214
4215           eval "$ac_cv_use_protocols"
4216           if test "$no_cache" != 1; then
4217             echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4218           fi
4219
4220           if test "$wxUSE_PROTOCOL" = yes; then
4221             echo "$as_me:$LINENO: result: yes" >&5
4222 echo "${ECHO_T}yes" >&6
4223           else
4224             echo "$as_me:$LINENO: result: no" >&5
4225 echo "${ECHO_T}no" >&6
4226           fi
4227
4228
4229           enablestring=
4230           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4231 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4232           no_cache=0
4233           # Check whether --enable-ftp or --disable-ftp was given.
4234 if test "${enable_ftp+set}" = set; then
4235   enableval="$enable_ftp"
4236
4237                           if test "$enableval" = yes; then
4238                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4239                           else
4240                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4241                           fi
4242
4243 else
4244
4245                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4246                           if test "x$LINE" != x ; then
4247                             eval "DEFAULT_$LINE"
4248                           else
4249                             no_cache=1
4250                           fi
4251
4252                           ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4253
4254 fi;
4255
4256           eval "$ac_cv_use_ftp"
4257           if test "$no_cache" != 1; then
4258             echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4259           fi
4260
4261           if test "$wxUSE_PROTOCOL_FTP" = yes; then
4262             echo "$as_me:$LINENO: result: yes" >&5
4263 echo "${ECHO_T}yes" >&6
4264           else
4265             echo "$as_me:$LINENO: result: no" >&5
4266 echo "${ECHO_T}no" >&6
4267           fi
4268
4269
4270           enablestring=
4271           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4272 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4273           no_cache=0
4274           # Check whether --enable-http or --disable-http was given.
4275 if test "${enable_http+set}" = set; then
4276   enableval="$enable_http"
4277
4278                           if test "$enableval" = yes; then
4279                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4280                           else
4281                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4282                           fi
4283
4284 else
4285
4286                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4287                           if test "x$LINE" != x ; then
4288                             eval "DEFAULT_$LINE"
4289                           else
4290                             no_cache=1
4291                           fi
4292
4293                           ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4294
4295 fi;
4296
4297           eval "$ac_cv_use_http"
4298           if test "$no_cache" != 1; then
4299             echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4300           fi
4301
4302           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4303             echo "$as_me:$LINENO: result: yes" >&5
4304 echo "${ECHO_T}yes" >&6
4305           else
4306             echo "$as_me:$LINENO: result: no" >&5
4307 echo "${ECHO_T}no" >&6
4308           fi
4309
4310
4311           enablestring=
4312           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4313 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4314           no_cache=0
4315           # Check whether --enable-fileproto or --disable-fileproto was given.
4316 if test "${enable_fileproto+set}" = set; then
4317   enableval="$enable_fileproto"
4318
4319                           if test "$enableval" = yes; then
4320                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4321                           else
4322                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4323                           fi
4324
4325 else
4326
4327                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4328                           if test "x$LINE" != x ; then
4329                             eval "DEFAULT_$LINE"
4330                           else
4331                             no_cache=1
4332                           fi
4333
4334                           ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4335
4336 fi;
4337
4338           eval "$ac_cv_use_fileproto"
4339           if test "$no_cache" != 1; then
4340             echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4341           fi
4342
4343           if test "$wxUSE_PROTOCOL_FILE" = yes; then
4344             echo "$as_me:$LINENO: result: yes" >&5
4345 echo "${ECHO_T}yes" >&6
4346           else
4347             echo "$as_me:$LINENO: result: no" >&5
4348 echo "${ECHO_T}no" >&6
4349           fi
4350
4351
4352           enablestring=
4353           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4354 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4355           no_cache=0
4356           # Check whether --enable-sockets or --disable-sockets was given.
4357 if test "${enable_sockets+set}" = set; then
4358   enableval="$enable_sockets"
4359
4360                           if test "$enableval" = yes; then
4361                             ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4362                           else
4363                             ac_cv_use_sockets='wxUSE_SOCKETS=no'
4364                           fi
4365
4366 else
4367
4368                           LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4369                           if test "x$LINE" != x ; then
4370                             eval "DEFAULT_$LINE"
4371                           else
4372                             no_cache=1
4373                           fi
4374
4375                           ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4376
4377 fi;
4378
4379           eval "$ac_cv_use_sockets"
4380           if test "$no_cache" != 1; then
4381             echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4382           fi
4383
4384           if test "$wxUSE_SOCKETS" = yes; then
4385             echo "$as_me:$LINENO: result: yes" >&5
4386 echo "${ECHO_T}yes" >&6
4387           else
4388             echo "$as_me:$LINENO: result: no" >&5
4389 echo "${ECHO_T}no" >&6
4390           fi
4391
4392
4393           enablestring=
4394           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4395 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4396           no_cache=0
4397           # Check whether --enable-ole or --disable-ole was given.
4398 if test "${enable_ole+set}" = set; then
4399   enableval="$enable_ole"
4400
4401                           if test "$enableval" = yes; then
4402                             ac_cv_use_ole='wxUSE_OLE=yes'
4403                           else
4404                             ac_cv_use_ole='wxUSE_OLE=no'
4405                           fi
4406
4407 else
4408
4409                           LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4410                           if test "x$LINE" != x ; then
4411                             eval "DEFAULT_$LINE"
4412                           else
4413                             no_cache=1
4414                           fi
4415
4416                           ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4417
4418 fi;
4419
4420           eval "$ac_cv_use_ole"
4421           if test "$no_cache" != 1; then
4422             echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4423           fi
4424
4425           if test "$wxUSE_OLE" = yes; then
4426             echo "$as_me:$LINENO: result: yes" >&5
4427 echo "${ECHO_T}yes" >&6
4428           else
4429             echo "$as_me:$LINENO: result: no" >&5
4430 echo "${ECHO_T}no" >&6
4431           fi
4432
4433
4434           enablestring=
4435           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4436 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4437           no_cache=0
4438           # Check whether --enable-dataobj or --disable-dataobj was given.
4439 if test "${enable_dataobj+set}" = set; then
4440   enableval="$enable_dataobj"
4441
4442                           if test "$enableval" = yes; then
4443                             ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4444                           else
4445                             ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4446                           fi
4447
4448 else
4449
4450                           LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4451                           if test "x$LINE" != x ; then
4452                             eval "DEFAULT_$LINE"
4453                           else
4454                             no_cache=1
4455                           fi
4456
4457                           ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4458
4459 fi;
4460
4461           eval "$ac_cv_use_dataobj"
4462           if test "$no_cache" != 1; then
4463             echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4464           fi
4465
4466           if test "$wxUSE_DATAOBJ" = yes; then
4467             echo "$as_me:$LINENO: result: yes" >&5
4468 echo "${ECHO_T}yes" >&6
4469           else
4470             echo "$as_me:$LINENO: result: no" >&5
4471 echo "${ECHO_T}no" >&6
4472           fi
4473
4474
4475
4476           enablestring=
4477           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4478 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4479           no_cache=0
4480           # Check whether --enable-ipc or --disable-ipc was given.
4481 if test "${enable_ipc+set}" = set; then
4482   enableval="$enable_ipc"
4483
4484                           if test "$enableval" = yes; then
4485                             ac_cv_use_ipc='wxUSE_IPC=yes'
4486                           else
4487                             ac_cv_use_ipc='wxUSE_IPC=no'
4488                           fi
4489
4490 else
4491
4492                           LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4493                           if test "x$LINE" != x ; then
4494                             eval "DEFAULT_$LINE"
4495                           else
4496                             no_cache=1
4497                           fi
4498
4499                           ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4500
4501 fi;
4502
4503           eval "$ac_cv_use_ipc"
4504           if test "$no_cache" != 1; then
4505             echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4506           fi
4507
4508           if test "$wxUSE_IPC" = yes; then
4509             echo "$as_me:$LINENO: result: yes" >&5
4510 echo "${ECHO_T}yes" >&6
4511           else
4512             echo "$as_me:$LINENO: result: no" >&5
4513 echo "${ECHO_T}no" >&6
4514           fi
4515
4516
4517
4518           enablestring=
4519           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4520 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4521           no_cache=0
4522           # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4523 if test "${enable_apple_ieee+set}" = set; then
4524   enableval="$enable_apple_ieee"
4525
4526                           if test "$enableval" = yes; then
4527                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4528                           else
4529                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4530                           fi
4531
4532 else
4533
4534                           LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4535                           if test "x$LINE" != x ; then
4536                             eval "DEFAULT_$LINE"
4537                           else
4538                             no_cache=1
4539                           fi
4540
4541                           ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4542
4543 fi;
4544
4545           eval "$ac_cv_use_apple_ieee"
4546           if test "$no_cache" != 1; then
4547             echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4548           fi
4549
4550           if test "$wxUSE_APPLE_IEEE" = yes; then
4551             echo "$as_me:$LINENO: result: yes" >&5
4552 echo "${ECHO_T}yes" >&6
4553           else
4554             echo "$as_me:$LINENO: result: no" >&5
4555 echo "${ECHO_T}no" >&6
4556           fi
4557
4558
4559           enablestring=
4560           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4561 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4562           no_cache=0
4563           # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4564 if test "${enable_catch_segvs+set}" = set; then
4565   enableval="$enable_catch_segvs"
4566
4567                           if test "$enableval" = yes; then
4568                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4569                           else
4570                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4571                           fi
4572
4573 else
4574
4575                           LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4576                           if test "x$LINE" != x ; then
4577                             eval "DEFAULT_$LINE"
4578                           else
4579                             no_cache=1
4580                           fi
4581
4582                           ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4583
4584 fi;
4585
4586           eval "$ac_cv_use_catch_segvs"
4587           if test "$no_cache" != 1; then
4588             echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4589           fi
4590
4591           if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4592             echo "$as_me:$LINENO: result: yes" >&5
4593 echo "${ECHO_T}yes" >&6
4594           else
4595             echo "$as_me:$LINENO: result: no" >&5
4596 echo "${ECHO_T}no" >&6
4597           fi
4598
4599
4600           enablestring=
4601           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4602 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4603           no_cache=0
4604           # Check whether --enable-cmdline or --disable-cmdline was given.
4605 if test "${enable_cmdline+set}" = set; then
4606   enableval="$enable_cmdline"
4607
4608                           if test "$enableval" = yes; then
4609                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4610                           else
4611                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4612                           fi
4613
4614 else
4615
4616                           LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4617                           if test "x$LINE" != x ; then
4618                             eval "DEFAULT_$LINE"
4619                           else
4620                             no_cache=1
4621                           fi
4622
4623                           ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4624
4625 fi;
4626
4627           eval "$ac_cv_use_cmdline"
4628           if test "$no_cache" != 1; then
4629             echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4630           fi
4631
4632           if test "$wxUSE_CMDLINE_PARSER" = yes; then
4633             echo "$as_me:$LINENO: result: yes" >&5
4634 echo "${ECHO_T}yes" >&6
4635           else
4636             echo "$as_me:$LINENO: result: no" >&5
4637 echo "${ECHO_T}no" >&6
4638           fi
4639
4640
4641           enablestring=
4642           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4643 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4644           no_cache=0
4645           # Check whether --enable-datetime or --disable-datetime was given.
4646 if test "${enable_datetime+set}" = set; then
4647   enableval="$enable_datetime"
4648
4649                           if test "$enableval" = yes; then
4650                             ac_cv_use_datetime='wxUSE_DATETIME=yes'
4651                           else
4652                             ac_cv_use_datetime='wxUSE_DATETIME=no'
4653                           fi
4654
4655 else
4656
4657                           LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4658                           if test "x$LINE" != x ; then
4659                             eval "DEFAULT_$LINE"
4660                           else
4661                             no_cache=1
4662                           fi
4663
4664                           ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4665
4666 fi;
4667
4668           eval "$ac_cv_use_datetime"
4669           if test "$no_cache" != 1; then
4670             echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4671           fi
4672
4673           if test "$wxUSE_DATETIME" = yes; then
4674             echo "$as_me:$LINENO: result: yes" >&5
4675 echo "${ECHO_T}yes" >&6
4676           else
4677             echo "$as_me:$LINENO: result: no" >&5
4678 echo "${ECHO_T}no" >&6
4679           fi
4680
4681
4682           enablestring=
4683           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4684 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4685           no_cache=0
4686           # Check whether --enable-dialupman or --disable-dialupman was given.
4687 if test "${enable_dialupman+set}" = set; then
4688   enableval="$enable_dialupman"
4689
4690                           if test "$enableval" = yes; then
4691                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4692                           else
4693                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4694                           fi
4695
4696 else
4697
4698                           LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4699                           if test "x$LINE" != x ; then
4700                             eval "DEFAULT_$LINE"
4701                           else
4702                             no_cache=1
4703                           fi
4704
4705                           ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4706
4707 fi;
4708
4709           eval "$ac_cv_use_dialupman"
4710           if test "$no_cache" != 1; then
4711             echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4712           fi
4713
4714           if test "$wxUSE_DIALUP_MANAGER" = yes; then
4715             echo "$as_me:$LINENO: result: yes" >&5
4716 echo "${ECHO_T}yes" >&6
4717           else
4718             echo "$as_me:$LINENO: result: no" >&5
4719 echo "${ECHO_T}no" >&6
4720           fi
4721
4722
4723           enablestring=
4724           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4725 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4726           no_cache=0
4727           # Check whether --enable-dynlib or --disable-dynlib was given.
4728 if test "${enable_dynlib+set}" = set; then
4729   enableval="$enable_dynlib"
4730
4731                           if test "$enableval" = yes; then
4732                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4733                           else
4734                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4735                           fi
4736
4737 else
4738
4739                           LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4740                           if test "x$LINE" != x ; then
4741                             eval "DEFAULT_$LINE"
4742                           else
4743                             no_cache=1
4744                           fi
4745
4746                           ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4747
4748 fi;
4749
4750           eval "$ac_cv_use_dynlib"
4751           if test "$no_cache" != 1; then
4752             echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4753           fi
4754
4755           if test "$wxUSE_DYNLIB_CLASS" = yes; then
4756             echo "$as_me:$LINENO: result: yes" >&5
4757 echo "${ECHO_T}yes" >&6
4758           else
4759             echo "$as_me:$LINENO: result: no" >&5
4760 echo "${ECHO_T}no" >&6
4761           fi
4762
4763
4764           enablestring=
4765           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4766 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4767           no_cache=0
4768           # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4769 if test "${enable_dynamicloader+set}" = set; then
4770   enableval="$enable_dynamicloader"
4771
4772                           if test "$enableval" = yes; then
4773                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4774                           else
4775                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4776                           fi
4777
4778 else
4779
4780                           LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4781                           if test "x$LINE" != x ; then
4782                             eval "DEFAULT_$LINE"
4783                           else
4784                             no_cache=1
4785                           fi
4786
4787                           ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4788
4789 fi;
4790
4791           eval "$ac_cv_use_dynamicloader"
4792           if test "$no_cache" != 1; then
4793             echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4794           fi
4795
4796           if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4797             echo "$as_me:$LINENO: result: yes" >&5
4798 echo "${ECHO_T}yes" >&6
4799           else
4800             echo "$as_me:$LINENO: result: no" >&5
4801 echo "${ECHO_T}no" >&6
4802           fi
4803
4804
4805           enablestring=
4806           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4807 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4808           no_cache=0
4809           # Check whether --enable-exceptions or --disable-exceptions was given.
4810 if test "${enable_exceptions+set}" = set; then
4811   enableval="$enable_exceptions"
4812
4813                           if test "$enableval" = yes; then
4814                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4815                           else
4816                             ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4817                           fi
4818
4819 else
4820
4821                           LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4822                           if test "x$LINE" != x ; then
4823                             eval "DEFAULT_$LINE"
4824                           else
4825                             no_cache=1
4826                           fi
4827
4828                           ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4829
4830 fi;
4831
4832           eval "$ac_cv_use_exceptions"
4833           if test "$no_cache" != 1; then
4834             echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4835           fi
4836
4837           if test "$wxUSE_EXCEPTIONS" = yes; then
4838             echo "$as_me:$LINENO: result: yes" >&5
4839 echo "${ECHO_T}yes" >&6
4840           else
4841             echo "$as_me:$LINENO: result: no" >&5
4842 echo "${ECHO_T}no" >&6
4843           fi
4844
4845
4846           enablestring=
4847           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4848 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4849           no_cache=0
4850           # Check whether --enable-ffile or --disable-ffile was given.
4851 if test "${enable_ffile+set}" = set; then
4852   enableval="$enable_ffile"
4853
4854                           if test "$enableval" = yes; then
4855                             ac_cv_use_ffile='wxUSE_FFILE=yes'
4856                           else
4857                             ac_cv_use_ffile='wxUSE_FFILE=no'
4858                           fi
4859
4860 else
4861
4862                           LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4863                           if test "x$LINE" != x ; then
4864                             eval "DEFAULT_$LINE"
4865                           else
4866                             no_cache=1
4867                           fi
4868
4869                           ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4870
4871 fi;
4872
4873           eval "$ac_cv_use_ffile"
4874           if test "$no_cache" != 1; then
4875             echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4876           fi
4877
4878           if test "$wxUSE_FFILE" = yes; then
4879             echo "$as_me:$LINENO: result: yes" >&5
4880 echo "${ECHO_T}yes" >&6
4881           else
4882             echo "$as_me:$LINENO: result: no" >&5
4883 echo "${ECHO_T}no" >&6
4884           fi
4885
4886
4887           enablestring=
4888           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4889 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4890           no_cache=0
4891           # Check whether --enable-file or --disable-file was given.
4892 if test "${enable_file+set}" = set; then
4893   enableval="$enable_file"
4894
4895                           if test "$enableval" = yes; then
4896                             ac_cv_use_file='wxUSE_FILE=yes'
4897                           else
4898                             ac_cv_use_file='wxUSE_FILE=no'
4899                           fi
4900
4901 else
4902
4903                           LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4904                           if test "x$LINE" != x ; then
4905                             eval "DEFAULT_$LINE"
4906                           else
4907                             no_cache=1
4908                           fi
4909
4910                           ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4911
4912 fi;
4913
4914           eval "$ac_cv_use_file"
4915           if test "$no_cache" != 1; then
4916             echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4917           fi
4918
4919           if test "$wxUSE_FILE" = yes; then
4920             echo "$as_me:$LINENO: result: yes" >&5
4921 echo "${ECHO_T}yes" >&6
4922           else
4923             echo "$as_me:$LINENO: result: no" >&5
4924 echo "${ECHO_T}no" >&6
4925           fi
4926
4927
4928           enablestring=
4929           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4930 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
4931           no_cache=0
4932           # Check whether --enable-filesystem or --disable-filesystem was given.
4933 if test "${enable_filesystem+set}" = set; then
4934   enableval="$enable_filesystem"
4935
4936                           if test "$enableval" = yes; then
4937                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4938                           else
4939                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4940                           fi
4941
4942 else
4943
4944                           LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4945                           if test "x$LINE" != x ; then
4946                             eval "DEFAULT_$LINE"
4947                           else
4948                             no_cache=1
4949                           fi
4950
4951                           ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4952
4953 fi;
4954
4955           eval "$ac_cv_use_filesystem"
4956           if test "$no_cache" != 1; then
4957             echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4958           fi
4959
4960           if test "$wxUSE_FILESYSTEM" = yes; then
4961             echo "$as_me:$LINENO: result: yes" >&5
4962 echo "${ECHO_T}yes" >&6
4963           else
4964             echo "$as_me:$LINENO: result: no" >&5
4965 echo "${ECHO_T}no" >&6
4966           fi
4967
4968
4969           enablestring=
4970           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4971 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
4972           no_cache=0
4973           # Check whether --enable-fontmap or --disable-fontmap was given.
4974 if test "${enable_fontmap+set}" = set; then
4975   enableval="$enable_fontmap"
4976
4977                           if test "$enableval" = yes; then
4978                             ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4979                           else
4980                             ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4981                           fi
4982
4983 else
4984
4985                           LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4986                           if test "x$LINE" != x ; then
4987                             eval "DEFAULT_$LINE"
4988                           else
4989                             no_cache=1
4990                           fi
4991
4992                           ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4993
4994 fi;
4995
4996           eval "$ac_cv_use_fontmap"
4997           if test "$no_cache" != 1; then
4998             echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4999           fi
5000
5001           if test "$wxUSE_FONTMAP" = yes; then
5002             echo "$as_me:$LINENO: result: yes" >&5
5003 echo "${ECHO_T}yes" >&6
5004           else
5005             echo "$as_me:$LINENO: result: no" >&5
5006 echo "${ECHO_T}no" >&6
5007           fi
5008
5009
5010           enablestring=
5011           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5012 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5013           no_cache=0
5014           # Check whether --enable-fs_inet or --disable-fs_inet was given.
5015 if test "${enable_fs_inet+set}" = set; then
5016   enableval="$enable_fs_inet"
5017
5018                           if test "$enableval" = yes; then
5019                             ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5020                           else
5021                             ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5022                           fi
5023
5024 else
5025
5026                           LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5027                           if test "x$LINE" != x ; then
5028                             eval "DEFAULT_$LINE"
5029                           else
5030                             no_cache=1
5031                           fi
5032
5033                           ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5034
5035 fi;
5036
5037           eval "$ac_cv_use_fs_inet"
5038           if test "$no_cache" != 1; then
5039             echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5040           fi
5041
5042           if test "$wxUSE_FS_INET" = yes; then
5043             echo "$as_me:$LINENO: result: yes" >&5
5044 echo "${ECHO_T}yes" >&6
5045           else
5046             echo "$as_me:$LINENO: result: no" >&5
5047 echo "${ECHO_T}no" >&6
5048           fi
5049
5050
5051           enablestring=
5052           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5053 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5054           no_cache=0
5055           # Check whether --enable-fs_zip or --disable-fs_zip was given.
5056 if test "${enable_fs_zip+set}" = set; then
5057   enableval="$enable_fs_zip"
5058
5059                           if test "$enableval" = yes; then
5060                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5061                           else
5062                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5063                           fi
5064
5065 else
5066
5067                           LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5068                           if test "x$LINE" != x ; then
5069                             eval "DEFAULT_$LINE"
5070                           else
5071                             no_cache=1
5072                           fi
5073
5074                           ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5075
5076 fi;
5077
5078           eval "$ac_cv_use_fs_zip"
5079           if test "$no_cache" != 1; then
5080             echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5081           fi
5082
5083           if test "$wxUSE_FS_ZIP" = yes; then
5084             echo "$as_me:$LINENO: result: yes" >&5
5085 echo "${ECHO_T}yes" >&6
5086           else
5087             echo "$as_me:$LINENO: result: no" >&5
5088 echo "${ECHO_T}no" >&6
5089           fi
5090
5091
5092           enablestring=
5093           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5094 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5095           no_cache=0
5096           # Check whether --enable-geometry or --disable-geometry was given.
5097 if test "${enable_geometry+set}" = set; then
5098   enableval="$enable_geometry"
5099
5100                           if test "$enableval" = yes; then
5101                             ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5102                           else
5103                             ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5104                           fi
5105
5106 else
5107
5108                           LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5109                           if test "x$LINE" != x ; then
5110                             eval "DEFAULT_$LINE"
5111                           else
5112                             no_cache=1
5113                           fi
5114
5115                           ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5116
5117 fi;
5118
5119           eval "$ac_cv_use_geometry"
5120           if test "$no_cache" != 1; then
5121             echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5122           fi
5123
5124           if test "$wxUSE_GEOMETRY" = yes; then
5125             echo "$as_me:$LINENO: result: yes" >&5
5126 echo "${ECHO_T}yes" >&6
5127           else
5128             echo "$as_me:$LINENO: result: no" >&5
5129 echo "${ECHO_T}no" >&6
5130           fi
5131
5132
5133           enablestring=
5134           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5135 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5136           no_cache=0
5137           # Check whether --enable-log or --disable-log was given.
5138 if test "${enable_log+set}" = set; then
5139   enableval="$enable_log"
5140
5141                           if test "$enableval" = yes; then
5142                             ac_cv_use_log='wxUSE_LOG=yes'
5143                           else
5144                             ac_cv_use_log='wxUSE_LOG=no'
5145                           fi
5146
5147 else
5148
5149                           LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5150                           if test "x$LINE" != x ; then
5151                             eval "DEFAULT_$LINE"
5152                           else
5153                             no_cache=1
5154                           fi
5155
5156                           ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5157
5158 fi;
5159
5160           eval "$ac_cv_use_log"
5161           if test "$no_cache" != 1; then
5162             echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5163           fi
5164
5165           if test "$wxUSE_LOG" = yes; then
5166             echo "$as_me:$LINENO: result: yes" >&5
5167 echo "${ECHO_T}yes" >&6
5168           else
5169             echo "$as_me:$LINENO: result: no" >&5
5170 echo "${ECHO_T}no" >&6
5171           fi
5172
5173
5174           enablestring=
5175           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5176 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5177           no_cache=0
5178           # Check whether --enable-longlong or --disable-longlong was given.
5179 if test "${enable_longlong+set}" = set; then
5180   enableval="$enable_longlong"
5181
5182                           if test "$enableval" = yes; then
5183                             ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5184                           else
5185                             ac_cv_use_longlong='wxUSE_LONGLONG=no'
5186                           fi
5187
5188 else
5189
5190                           LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5191                           if test "x$LINE" != x ; then
5192                             eval "DEFAULT_$LINE"
5193                           else
5194                             no_cache=1
5195                           fi
5196
5197                           ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5198
5199 fi;
5200
5201           eval "$ac_cv_use_longlong"
5202           if test "$no_cache" != 1; then
5203             echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5204           fi
5205
5206           if test "$wxUSE_LONGLONG" = yes; then
5207             echo "$as_me:$LINENO: result: yes" >&5
5208 echo "${ECHO_T}yes" >&6
5209           else
5210             echo "$as_me:$LINENO: result: no" >&5
5211 echo "${ECHO_T}no" >&6
5212           fi
5213
5214
5215           enablestring=
5216           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5217 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5218           no_cache=0
5219           # Check whether --enable-mimetype or --disable-mimetype was given.
5220 if test "${enable_mimetype+set}" = set; then
5221   enableval="$enable_mimetype"
5222
5223                           if test "$enableval" = yes; then
5224                             ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5225                           else
5226                             ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5227                           fi
5228
5229 else
5230
5231                           LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5232                           if test "x$LINE" != x ; then
5233                             eval "DEFAULT_$LINE"
5234                           else
5235                             no_cache=1
5236                           fi
5237
5238                           ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5239
5240 fi;
5241
5242           eval "$ac_cv_use_mimetype"
5243           if test "$no_cache" != 1; then
5244             echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5245           fi
5246
5247           if test "$wxUSE_MIMETYPE" = yes; then
5248             echo "$as_me:$LINENO: result: yes" >&5
5249 echo "${ECHO_T}yes" >&6
5250           else
5251             echo "$as_me:$LINENO: result: no" >&5
5252 echo "${ECHO_T}no" >&6
5253           fi
5254
5255
5256           enablestring=
5257           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5258 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5259           no_cache=0
5260           # Check whether --enable-mslu or --disable-mslu was given.
5261 if test "${enable_mslu+set}" = set; then
5262   enableval="$enable_mslu"
5263
5264                           if test "$enableval" = yes; then
5265                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5266                           else
5267                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5268                           fi
5269
5270 else
5271
5272                           LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5273                           if test "x$LINE" != x ; then
5274                             eval "DEFAULT_$LINE"
5275                           else
5276                             no_cache=1
5277                           fi
5278
5279                           ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5280
5281 fi;
5282
5283           eval "$ac_cv_use_mslu"
5284           if test "$no_cache" != 1; then
5285             echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5286           fi
5287
5288           if test "$wxUSE_UNICODE_MSLU" = yes; then
5289             echo "$as_me:$LINENO: result: yes" >&5
5290 echo "${ECHO_T}yes" >&6
5291           else
5292             echo "$as_me:$LINENO: result: no" >&5
5293 echo "${ECHO_T}no" >&6
5294           fi
5295
5296
5297           enablestring=
5298           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5299 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5300           no_cache=0
5301           # Check whether --enable-snglinst or --disable-snglinst was given.
5302 if test "${enable_snglinst+set}" = set; then
5303   enableval="$enable_snglinst"
5304
5305                           if test "$enableval" = yes; then
5306                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5307                           else
5308                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5309                           fi
5310
5311 else
5312
5313                           LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5314                           if test "x$LINE" != x ; then
5315                             eval "DEFAULT_$LINE"
5316                           else
5317                             no_cache=1
5318                           fi
5319
5320                           ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5321
5322 fi;
5323
5324           eval "$ac_cv_use_snglinst"
5325           if test "$no_cache" != 1; then
5326             echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5327           fi
5328
5329           if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5330             echo "$as_me:$LINENO: result: yes" >&5
5331 echo "${ECHO_T}yes" >&6
5332           else
5333             echo "$as_me:$LINENO: result: no" >&5
5334 echo "${ECHO_T}no" >&6
5335           fi
5336
5337
5338           enablestring=
5339           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5340 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5341           no_cache=0
5342           # Check whether --enable-streams or --disable-streams was given.
5343 if test "${enable_streams+set}" = set; then
5344   enableval="$enable_streams"
5345
5346                           if test "$enableval" = yes; then
5347                             ac_cv_use_streams='wxUSE_STREAMS=yes'
5348                           else
5349                             ac_cv_use_streams='wxUSE_STREAMS=no'
5350                           fi
5351
5352 else
5353
5354                           LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5355                           if test "x$LINE" != x ; then
5356                             eval "DEFAULT_$LINE"
5357                           else
5358                             no_cache=1
5359                           fi
5360
5361                           ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5362
5363 fi;
5364
5365           eval "$ac_cv_use_streams"
5366           if test "$no_cache" != 1; then
5367             echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5368           fi
5369
5370           if test "$wxUSE_STREAMS" = yes; then
5371             echo "$as_me:$LINENO: result: yes" >&5
5372 echo "${ECHO_T}yes" >&6
5373           else
5374             echo "$as_me:$LINENO: result: no" >&5
5375 echo "${ECHO_T}no" >&6
5376           fi
5377
5378
5379           enablestring=
5380           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5381 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5382           no_cache=0
5383           # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5384 if test "${enable_std_iostreams+set}" = set; then
5385   enableval="$enable_std_iostreams"
5386
5387                           if test "$enableval" = yes; then
5388                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5389                           else
5390                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5391                           fi
5392
5393 else
5394
5395                           LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5396                           if test "x$LINE" != x ; then
5397                             eval "DEFAULT_$LINE"
5398                           else
5399                             no_cache=1
5400                           fi
5401
5402                           ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5403
5404 fi;
5405
5406           eval "$ac_cv_use_std_iostreams"
5407           if test "$no_cache" != 1; then
5408             echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5409           fi
5410
5411           if test "$wxUSE_STD_IOSTREAM" = yes; then
5412             echo "$as_me:$LINENO: result: yes" >&5
5413 echo "${ECHO_T}yes" >&6
5414           else
5415             echo "$as_me:$LINENO: result: no" >&5
5416 echo "${ECHO_T}no" >&6
5417           fi
5418
5419
5420           enablestring=
5421           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5422 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5423           no_cache=0
5424           # Check whether --enable-stopwatch or --disable-stopwatch was given.
5425 if test "${enable_stopwatch+set}" = set; then
5426   enableval="$enable_stopwatch"
5427
5428                           if test "$enableval" = yes; then
5429                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5430                           else
5431                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5432                           fi
5433
5434 else
5435
5436                           LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5437                           if test "x$LINE" != x ; then
5438                             eval "DEFAULT_$LINE"
5439                           else
5440                             no_cache=1
5441                           fi
5442
5443                           ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5444
5445 fi;
5446
5447           eval "$ac_cv_use_stopwatch"
5448           if test "$no_cache" != 1; then
5449             echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5450           fi
5451
5452           if test "$wxUSE_STOPWATCH" = yes; then
5453             echo "$as_me:$LINENO: result: yes" >&5
5454 echo "${ECHO_T}yes" >&6
5455           else
5456             echo "$as_me:$LINENO: result: no" >&5
5457 echo "${ECHO_T}no" >&6
5458           fi
5459
5460
5461           enablestring=
5462           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5463 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5464           no_cache=0
5465           # Check whether --enable-system_options or --disable-system_options was given.
5466 if test "${enable_system_options+set}" = set; then
5467   enableval="$enable_system_options"
5468
5469                           if test "$enableval" = yes; then
5470                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5471                           else
5472                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5473                           fi
5474
5475 else
5476
5477                           LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5478                           if test "x$LINE" != x ; then
5479                             eval "DEFAULT_$LINE"
5480                           else
5481                             no_cache=1
5482                           fi
5483
5484                           ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5485
5486 fi;
5487
5488           eval "$ac_cv_use_system_options"
5489           if test "$no_cache" != 1; then
5490             echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5491           fi
5492
5493           if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5494             echo "$as_me:$LINENO: result: yes" >&5
5495 echo "${ECHO_T}yes" >&6
5496           else
5497             echo "$as_me:$LINENO: result: no" >&5
5498 echo "${ECHO_T}no" >&6
5499           fi
5500
5501
5502           enablestring=
5503           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5504 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5505           no_cache=0
5506           # Check whether --enable-textbuf or --disable-textbuf was given.
5507 if test "${enable_textbuf+set}" = set; then
5508   enableval="$enable_textbuf"
5509
5510                           if test "$enableval" = yes; then
5511                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5512                           else
5513                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5514                           fi
5515
5516 else
5517
5518                           LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5519                           if test "x$LINE" != x ; then
5520                             eval "DEFAULT_$LINE"
5521                           else
5522                             no_cache=1
5523                           fi
5524
5525                           ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5526
5527 fi;
5528
5529           eval "$ac_cv_use_textbuf"
5530           if test "$no_cache" != 1; then
5531             echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5532           fi
5533
5534           if test "$wxUSE_TEXTBUFFER" = yes; then
5535             echo "$as_me:$LINENO: result: yes" >&5
5536 echo "${ECHO_T}yes" >&6
5537           else
5538             echo "$as_me:$LINENO: result: no" >&5
5539 echo "${ECHO_T}no" >&6
5540           fi
5541
5542
5543           enablestring=
5544           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5545 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5546           no_cache=0
5547           # Check whether --enable-textfile or --disable-textfile was given.
5548 if test "${enable_textfile+set}" = set; then
5549   enableval="$enable_textfile"
5550
5551                           if test "$enableval" = yes; then
5552                             ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5553                           else
5554                             ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5555                           fi
5556
5557 else
5558
5559                           LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5560                           if test "x$LINE" != x ; then
5561                             eval "DEFAULT_$LINE"
5562                           else
5563                             no_cache=1
5564                           fi
5565
5566                           ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5567
5568 fi;
5569
5570           eval "$ac_cv_use_textfile"
5571           if test "$no_cache" != 1; then
5572             echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5573           fi
5574
5575           if test "$wxUSE_TEXTFILE" = yes; then
5576             echo "$as_me:$LINENO: result: yes" >&5
5577 echo "${ECHO_T}yes" >&6
5578           else
5579             echo "$as_me:$LINENO: result: no" >&5
5580 echo "${ECHO_T}no" >&6
5581           fi
5582
5583
5584           enablestring=
5585           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5586 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5587           no_cache=0
5588           # Check whether --enable-timer or --disable-timer was given.
5589 if test "${enable_timer+set}" = set; then
5590   enableval="$enable_timer"
5591
5592                           if test "$enableval" = yes; then
5593                             ac_cv_use_timer='wxUSE_TIMER=yes'
5594                           else
5595                             ac_cv_use_timer='wxUSE_TIMER=no'
5596                           fi
5597
5598 else
5599
5600                           LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5601                           if test "x$LINE" != x ; then
5602                             eval "DEFAULT_$LINE"
5603                           else
5604                             no_cache=1
5605                           fi
5606
5607                           ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5608
5609 fi;
5610
5611           eval "$ac_cv_use_timer"
5612           if test "$no_cache" != 1; then
5613             echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5614           fi
5615
5616           if test "$wxUSE_TIMER" = yes; then
5617             echo "$as_me:$LINENO: result: yes" >&5
5618 echo "${ECHO_T}yes" >&6
5619           else
5620             echo "$as_me:$LINENO: result: no" >&5
5621 echo "${ECHO_T}no" >&6
5622           fi
5623
5624
5625           enablestring=
5626           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5627 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5628           no_cache=0
5629           # Check whether --enable-unicode or --disable-unicode was given.
5630 if test "${enable_unicode+set}" = set; then
5631   enableval="$enable_unicode"
5632
5633                           if test "$enableval" = yes; then
5634                             ac_cv_use_unicode='wxUSE_UNICODE=yes'
5635                           else
5636                             ac_cv_use_unicode='wxUSE_UNICODE=no'
5637                           fi
5638
5639 else
5640
5641                           LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5642                           if test "x$LINE" != x ; then
5643                             eval "DEFAULT_$LINE"
5644                           else
5645                             no_cache=1
5646                           fi
5647
5648                           ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5649
5650 fi;
5651
5652           eval "$ac_cv_use_unicode"
5653           if test "$no_cache" != 1; then
5654             echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5655           fi
5656
5657           if test "$wxUSE_UNICODE" = yes; then
5658             echo "$as_me:$LINENO: result: yes" >&5
5659 echo "${ECHO_T}yes" >&6
5660           else
5661             echo "$as_me:$LINENO: result: no" >&5
5662 echo "${ECHO_T}no" >&6
5663           fi
5664
5665
5666           enablestring=
5667           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5668 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5669           no_cache=0
5670           # Check whether --enable-sound or --disable-sound was given.
5671 if test "${enable_sound+set}" = set; then
5672   enableval="$enable_sound"
5673
5674                           if test "$enableval" = yes; then
5675                             ac_cv_use_sound='wxUSE_SOUND=yes'
5676                           else
5677                             ac_cv_use_sound='wxUSE_SOUND=no'
5678                           fi
5679
5680 else
5681
5682                           LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5683                           if test "x$LINE" != x ; then
5684                             eval "DEFAULT_$LINE"
5685                           else
5686                             no_cache=1
5687                           fi
5688
5689                           ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5690
5691 fi;
5692
5693           eval "$ac_cv_use_sound"
5694           if test "$no_cache" != 1; then
5695             echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5696           fi
5697
5698           if test "$wxUSE_SOUND" = yes; then
5699             echo "$as_me:$LINENO: result: yes" >&5
5700 echo "${ECHO_T}yes" >&6
5701           else
5702             echo "$as_me:$LINENO: result: no" >&5
5703 echo "${ECHO_T}no" >&6
5704           fi
5705
5706
5707           enablestring=
5708           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5709 echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5710           no_cache=0
5711           # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5712 if test "${enable_wxprintfv+set}" = set; then
5713   enableval="$enable_wxprintfv"
5714
5715                           if test "$enableval" = yes; then
5716                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5717                           else
5718                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5719                           fi
5720
5721 else
5722
5723                           LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5724                           if test "x$LINE" != x ; then
5725                             eval "DEFAULT_$LINE"
5726                           else
5727                             no_cache=1
5728                           fi
5729
5730                           ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5731
5732 fi;
5733
5734           eval "$ac_cv_use_wxprintfv"
5735           if test "$no_cache" != 1; then
5736             echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5737           fi
5738
5739           if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5740             echo "$as_me:$LINENO: result: yes" >&5
5741 echo "${ECHO_T}yes" >&6
5742           else
5743             echo "$as_me:$LINENO: result: no" >&5
5744 echo "${ECHO_T}no" >&6
5745           fi
5746
5747
5748           enablestring=
5749           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5750 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5751           no_cache=0
5752           # Check whether --enable-zipstream or --disable-zipstream was given.
5753 if test "${enable_zipstream+set}" = set; then
5754   enableval="$enable_zipstream"
5755
5756                           if test "$enableval" = yes; then
5757                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5758                           else
5759                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5760                           fi
5761
5762 else
5763
5764                           LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5765                           if test "x$LINE" != x ; then
5766                             eval "DEFAULT_$LINE"
5767                           else
5768                             no_cache=1
5769                           fi
5770
5771                           ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5772
5773 fi;
5774
5775           eval "$ac_cv_use_zipstream"
5776           if test "$no_cache" != 1; then
5777             echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5778           fi
5779
5780           if test "$wxUSE_ZIPSTREAM" = yes; then
5781             echo "$as_me:$LINENO: result: yes" >&5
5782 echo "${ECHO_T}yes" >&6
5783           else
5784             echo "$as_me:$LINENO: result: no" >&5
5785 echo "${ECHO_T}no" >&6
5786           fi
5787
5788
5789
5790           enablestring=
5791           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5792 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5793           no_cache=0
5794           # Check whether --enable-url or --disable-url was given.
5795 if test "${enable_url+set}" = set; then
5796   enableval="$enable_url"
5797
5798                           if test "$enableval" = yes; then
5799                             ac_cv_use_url='wxUSE_URL=yes'
5800                           else
5801                             ac_cv_use_url='wxUSE_URL=no'
5802                           fi
5803
5804 else
5805
5806                           LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5807                           if test "x$LINE" != x ; then
5808                             eval "DEFAULT_$LINE"
5809                           else
5810                             no_cache=1
5811                           fi
5812
5813                           ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5814
5815 fi;
5816
5817           eval "$ac_cv_use_url"
5818           if test "$no_cache" != 1; then
5819             echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5820           fi
5821
5822           if test "$wxUSE_URL" = yes; then
5823             echo "$as_me:$LINENO: result: yes" >&5
5824 echo "${ECHO_T}yes" >&6
5825           else
5826             echo "$as_me:$LINENO: result: no" >&5
5827 echo "${ECHO_T}no" >&6
5828           fi
5829
5830
5831           enablestring=
5832           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5833 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5834           no_cache=0
5835           # Check whether --enable-protocol or --disable-protocol was given.
5836 if test "${enable_protocol+set}" = set; then
5837   enableval="$enable_protocol"
5838
5839                           if test "$enableval" = yes; then
5840                             ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5841                           else
5842                             ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5843                           fi
5844
5845 else
5846
5847                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5848                           if test "x$LINE" != x ; then
5849                             eval "DEFAULT_$LINE"
5850                           else
5851                             no_cache=1
5852                           fi
5853
5854                           ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5855
5856 fi;
5857
5858           eval "$ac_cv_use_protocol"
5859           if test "$no_cache" != 1; then
5860             echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5861           fi
5862
5863           if test "$wxUSE_PROTOCOL" = yes; then
5864             echo "$as_me:$LINENO: result: yes" >&5
5865 echo "${ECHO_T}yes" >&6
5866           else
5867             echo "$as_me:$LINENO: result: no" >&5
5868 echo "${ECHO_T}no" >&6
5869           fi
5870
5871
5872           enablestring=
5873           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5874 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
5875           no_cache=0
5876           # Check whether --enable-protocol_http or --disable-protocol_http was given.
5877 if test "${enable_protocol_http+set}" = set; then
5878   enableval="$enable_protocol_http"
5879
5880                           if test "$enableval" = yes; then
5881                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5882                           else
5883                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5884                           fi
5885
5886 else
5887
5888                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5889                           if test "x$LINE" != x ; then
5890                             eval "DEFAULT_$LINE"
5891                           else
5892                             no_cache=1
5893                           fi
5894
5895                           ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5896
5897 fi;
5898
5899           eval "$ac_cv_use_protocol_http"
5900           if test "$no_cache" != 1; then
5901             echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5902           fi
5903
5904           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5905             echo "$as_me:$LINENO: result: yes" >&5
5906 echo "${ECHO_T}yes" >&6
5907           else
5908             echo "$as_me:$LINENO: result: no" >&5
5909 echo "${ECHO_T}no" >&6
5910           fi
5911
5912
5913           enablestring=
5914           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5915 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
5916           no_cache=0
5917           # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5918 if test "${enable_protocol_ftp+set}" = set; then
5919   enableval="$enable_protocol_ftp"
5920
5921                           if test "$enableval" = yes; then
5922                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5923                           else
5924                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5925                           fi
5926
5927 else
5928
5929                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5930                           if test "x$LINE" != x ; then
5931                             eval "DEFAULT_$LINE"
5932                           else
5933                             no_cache=1
5934                           fi
5935
5936                           ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5937
5938 fi;
5939
5940           eval "$ac_cv_use_protocol_ftp"
5941           if test "$no_cache" != 1; then
5942             echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5943           fi
5944
5945           if test "$wxUSE_PROTOCOL_FTP" = yes; then
5946             echo "$as_me:$LINENO: result: yes" >&5
5947 echo "${ECHO_T}yes" >&6
5948           else
5949             echo "$as_me:$LINENO: result: no" >&5
5950 echo "${ECHO_T}no" >&6
5951           fi
5952
5953
5954           enablestring=
5955           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5956 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
5957           no_cache=0
5958           # Check whether --enable-protocol_file or --disable-protocol_file was given.
5959 if test "${enable_protocol_file+set}" = set; then
5960   enableval="$enable_protocol_file"
5961
5962                           if test "$enableval" = yes; then
5963                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5964                           else
5965                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5966                           fi
5967
5968 else
5969
5970                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5971                           if test "x$LINE" != x ; then
5972                             eval "DEFAULT_$LINE"
5973                           else
5974                             no_cache=1
5975                           fi
5976
5977                           ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
5978
5979 fi;
5980
5981           eval "$ac_cv_use_protocol_file"
5982           if test "$no_cache" != 1; then
5983             echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5984           fi
5985
5986           if test "$wxUSE_PROTOCOL_FILE" = yes; then
5987             echo "$as_me:$LINENO: result: yes" >&5
5988 echo "${ECHO_T}yes" >&6
5989           else
5990             echo "$as_me:$LINENO: result: no" >&5
5991 echo "${ECHO_T}no" >&6
5992           fi
5993
5994
5995
5996
5997
5998           enablestring=
5999           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6000 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6001           no_cache=0
6002           # Check whether --enable-threads or --disable-threads was given.
6003 if test "${enable_threads+set}" = set; then
6004   enableval="$enable_threads"
6005
6006                           if test "$enableval" = yes; then
6007                             ac_cv_use_threads='wxUSE_THREADS=yes'
6008                           else
6009                             ac_cv_use_threads='wxUSE_THREADS=no'
6010                           fi
6011
6012 else
6013
6014                           LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6015                           if test "x$LINE" != x ; then
6016                             eval "DEFAULT_$LINE"
6017                           else
6018                             no_cache=1
6019                           fi
6020
6021                           ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6022
6023 fi;
6024
6025           eval "$ac_cv_use_threads"
6026           if test "$no_cache" != 1; then
6027             echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6028           fi
6029
6030           if test "$wxUSE_THREADS" = yes; then
6031             echo "$as_me:$LINENO: result: yes" >&5
6032 echo "${ECHO_T}yes" >&6
6033           else
6034             echo "$as_me:$LINENO: result: no" >&5
6035 echo "${ECHO_T}no" >&6
6036           fi
6037
6038
6039 if test "$wxUSE_GUI" = "yes"; then
6040
6041
6042
6043           enablestring=
6044           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6045 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6046           no_cache=0
6047           # Check whether --enable-docview or --disable-docview was given.
6048 if test "${enable_docview+set}" = set; then
6049   enableval="$enable_docview"
6050
6051                           if test "$enableval" = yes; then
6052                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6053                           else
6054                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6055                           fi
6056
6057 else
6058
6059                           LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6060                           if test "x$LINE" != x ; then
6061                             eval "DEFAULT_$LINE"
6062                           else
6063                             no_cache=1
6064                           fi
6065
6066                           ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6067
6068 fi;
6069
6070           eval "$ac_cv_use_docview"
6071           if test "$no_cache" != 1; then
6072             echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6073           fi
6074
6075           if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6076             echo "$as_me:$LINENO: result: yes" >&5
6077 echo "${ECHO_T}yes" >&6
6078           else
6079             echo "$as_me:$LINENO: result: no" >&5
6080 echo "${ECHO_T}no" >&6
6081           fi
6082
6083
6084           enablestring=
6085           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6086 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6087           no_cache=0
6088           # Check whether --enable-help or --disable-help was given.
6089 if test "${enable_help+set}" = set; then
6090   enableval="$enable_help"
6091
6092                           if test "$enableval" = yes; then
6093                             ac_cv_use_help='wxUSE_HELP=yes'
6094                           else
6095                             ac_cv_use_help='wxUSE_HELP=no'
6096                           fi
6097
6098 else
6099
6100                           LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6101                           if test "x$LINE" != x ; then
6102                             eval "DEFAULT_$LINE"
6103                           else
6104                             no_cache=1
6105                           fi
6106
6107                           ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6108
6109 fi;
6110
6111           eval "$ac_cv_use_help"
6112           if test "$no_cache" != 1; then
6113             echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6114           fi
6115
6116           if test "$wxUSE_HELP" = yes; then
6117             echo "$as_me:$LINENO: result: yes" >&5
6118 echo "${ECHO_T}yes" >&6
6119           else
6120             echo "$as_me:$LINENO: result: no" >&5
6121 echo "${ECHO_T}no" >&6
6122           fi
6123
6124
6125           enablestring=
6126           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6127 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6128           no_cache=0
6129           # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6130 if test "${enable_mshtmlhelp+set}" = set; then
6131   enableval="$enable_mshtmlhelp"
6132
6133                           if test "$enableval" = yes; then
6134                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6135                           else
6136                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6137                           fi
6138
6139 else
6140
6141                           LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6142                           if test "x$LINE" != x ; then
6143                             eval "DEFAULT_$LINE"
6144                           else
6145                             no_cache=1
6146                           fi
6147
6148                           ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6149
6150 fi;
6151
6152           eval "$ac_cv_use_mshtmlhelp"
6153           if test "$no_cache" != 1; then
6154             echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6155           fi
6156
6157           if test "$wxUSE_MS_HTML_HELP" = yes; then
6158             echo "$as_me:$LINENO: result: yes" >&5
6159 echo "${ECHO_T}yes" >&6
6160           else
6161             echo "$as_me:$LINENO: result: no" >&5
6162 echo "${ECHO_T}no" >&6
6163           fi
6164
6165
6166           enablestring=
6167           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6168 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6169           no_cache=0
6170           # Check whether --enable-html or --disable-html was given.
6171 if test "${enable_html+set}" = set; then
6172   enableval="$enable_html"
6173
6174                           if test "$enableval" = yes; then
6175                             ac_cv_use_html='wxUSE_HTML=yes'
6176                           else
6177                             ac_cv_use_html='wxUSE_HTML=no'
6178                           fi
6179
6180 else
6181
6182                           LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6183                           if test "x$LINE" != x ; then
6184                             eval "DEFAULT_$LINE"
6185                           else
6186                             no_cache=1
6187                           fi
6188
6189                           ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6190
6191 fi;
6192
6193           eval "$ac_cv_use_html"
6194           if test "$no_cache" != 1; then
6195             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6196           fi
6197
6198           if test "$wxUSE_HTML" = yes; then
6199             echo "$as_me:$LINENO: result: yes" >&5
6200 echo "${ECHO_T}yes" >&6
6201           else
6202             echo "$as_me:$LINENO: result: no" >&5
6203 echo "${ECHO_T}no" >&6
6204           fi
6205
6206
6207           enablestring=
6208           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6209 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6210           no_cache=0
6211           # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6212 if test "${enable_htmlhelp+set}" = set; then
6213   enableval="$enable_htmlhelp"
6214
6215                           if test "$enableval" = yes; then
6216                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6217                           else
6218                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6219                           fi
6220
6221 else
6222
6223                           LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6224                           if test "x$LINE" != x ; then
6225                             eval "DEFAULT_$LINE"
6226                           else
6227                             no_cache=1
6228                           fi
6229
6230                           ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6231
6232 fi;
6233
6234           eval "$ac_cv_use_htmlhelp"
6235           if test "$no_cache" != 1; then
6236             echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6237           fi
6238
6239           if test "$wxUSE_WXHTML_HELP" = yes; then
6240             echo "$as_me:$LINENO: result: yes" >&5
6241 echo "${ECHO_T}yes" >&6
6242           else
6243             echo "$as_me:$LINENO: result: no" >&5
6244 echo "${ECHO_T}no" >&6
6245           fi
6246
6247
6248           enablestring=
6249           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6250 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6251           no_cache=0
6252           # Check whether --enable-constraints or --disable-constraints was given.
6253 if test "${enable_constraints+set}" = set; then
6254   enableval="$enable_constraints"
6255
6256                           if test "$enableval" = yes; then
6257                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6258                           else
6259                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6260                           fi
6261
6262 else
6263
6264                           LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6265                           if test "x$LINE" != x ; then
6266                             eval "DEFAULT_$LINE"
6267                           else
6268                             no_cache=1
6269                           fi
6270
6271                           ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6272
6273 fi;
6274
6275           eval "$ac_cv_use_constraints"
6276           if test "$no_cache" != 1; then
6277             echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6278           fi
6279
6280           if test "$wxUSE_CONSTRAINTS" = yes; then
6281             echo "$as_me:$LINENO: result: yes" >&5
6282 echo "${ECHO_T}yes" >&6
6283           else
6284             echo "$as_me:$LINENO: result: no" >&5
6285 echo "${ECHO_T}no" >&6
6286           fi
6287
6288
6289           enablestring=
6290           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6291 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6292           no_cache=0
6293           # Check whether --enable-printarch or --disable-printarch was given.
6294 if test "${enable_printarch+set}" = set; then
6295   enableval="$enable_printarch"
6296
6297                           if test "$enableval" = yes; then
6298                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6299                           else
6300                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6301                           fi
6302
6303 else
6304
6305                           LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6306                           if test "x$LINE" != x ; then
6307                             eval "DEFAULT_$LINE"
6308                           else
6309                             no_cache=1
6310                           fi
6311
6312                           ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6313
6314 fi;
6315
6316           eval "$ac_cv_use_printarch"
6317           if test "$no_cache" != 1; then
6318             echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6319           fi
6320
6321           if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6322             echo "$as_me:$LINENO: result: yes" >&5
6323 echo "${ECHO_T}yes" >&6
6324           else
6325             echo "$as_me:$LINENO: result: no" >&5
6326 echo "${ECHO_T}no" >&6
6327           fi
6328
6329
6330           enablestring=
6331           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6332 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6333           no_cache=0
6334           # Check whether --enable-mdi or --disable-mdi was given.
6335 if test "${enable_mdi+set}" = set; then
6336   enableval="$enable_mdi"
6337
6338                           if test "$enableval" = yes; then
6339                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6340                           else
6341                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6342                           fi
6343
6344 else
6345
6346                           LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6347                           if test "x$LINE" != x ; then
6348                             eval "DEFAULT_$LINE"
6349                           else
6350                             no_cache=1
6351                           fi
6352
6353                           ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6354
6355 fi;
6356
6357           eval "$ac_cv_use_mdi"
6358           if test "$no_cache" != 1; then
6359             echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6360           fi
6361
6362           if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6363             echo "$as_me:$LINENO: result: yes" >&5
6364 echo "${ECHO_T}yes" >&6
6365           else
6366             echo "$as_me:$LINENO: result: no" >&5
6367 echo "${ECHO_T}no" >&6
6368           fi
6369
6370
6371           enablestring=
6372           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6373 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6374           no_cache=0
6375           # Check whether --enable-loggui or --disable-loggui was given.
6376 if test "${enable_loggui+set}" = set; then
6377   enableval="$enable_loggui"
6378
6379                           if test "$enableval" = yes; then
6380                             ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6381                           else
6382                             ac_cv_use_loggui='wxUSE_LOGGUI=no'
6383                           fi
6384
6385 else
6386
6387                           LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6388                           if test "x$LINE" != x ; then
6389                             eval "DEFAULT_$LINE"
6390                           else
6391                             no_cache=1
6392                           fi
6393
6394                           ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6395
6396 fi;
6397
6398           eval "$ac_cv_use_loggui"
6399           if test "$no_cache" != 1; then
6400             echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6401           fi
6402
6403           if test "$wxUSE_LOGGUI" = yes; then
6404             echo "$as_me:$LINENO: result: yes" >&5
6405 echo "${ECHO_T}yes" >&6
6406           else
6407             echo "$as_me:$LINENO: result: no" >&5
6408 echo "${ECHO_T}no" >&6
6409           fi
6410
6411
6412           enablestring=
6413           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6414 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6415           no_cache=0
6416           # Check whether --enable-logwin or --disable-logwin was given.
6417 if test "${enable_logwin+set}" = set; then
6418   enableval="$enable_logwin"
6419
6420                           if test "$enableval" = yes; then
6421                             ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6422                           else
6423                             ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6424                           fi
6425
6426 else
6427
6428                           LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6429                           if test "x$LINE" != x ; then
6430                             eval "DEFAULT_$LINE"
6431                           else
6432                             no_cache=1
6433                           fi
6434
6435                           ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6436
6437 fi;
6438
6439           eval "$ac_cv_use_logwin"
6440           if test "$no_cache" != 1; then
6441             echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6442           fi
6443
6444           if test "$wxUSE_LOGWINDOW" = yes; then
6445             echo "$as_me:$LINENO: result: yes" >&5
6446 echo "${ECHO_T}yes" >&6
6447           else
6448             echo "$as_me:$LINENO: result: no" >&5
6449 echo "${ECHO_T}no" >&6
6450           fi
6451
6452
6453           enablestring=
6454           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6455 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6456           no_cache=0
6457           # Check whether --enable-logdialog or --disable-logdialog was given.
6458 if test "${enable_logdialog+set}" = set; then
6459   enableval="$enable_logdialog"
6460
6461                           if test "$enableval" = yes; then
6462                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6463                           else
6464                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6465                           fi
6466
6467 else
6468
6469                           LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6470                           if test "x$LINE" != x ; then
6471                             eval "DEFAULT_$LINE"
6472                           else
6473                             no_cache=1
6474                           fi
6475
6476                           ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6477
6478 fi;
6479
6480           eval "$ac_cv_use_logdialog"
6481           if test "$no_cache" != 1; then
6482             echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6483           fi
6484
6485           if test "$wxUSE_LOGDIALOG" = yes; then
6486             echo "$as_me:$LINENO: result: yes" >&5
6487 echo "${ECHO_T}yes" >&6
6488           else
6489             echo "$as_me:$LINENO: result: no" >&5
6490 echo "${ECHO_T}no" >&6
6491           fi
6492
6493
6494
6495           enablestring=
6496           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6497 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6498           no_cache=0
6499           # Check whether --enable-postscript or --disable-postscript was given.
6500 if test "${enable_postscript+set}" = set; then
6501   enableval="$enable_postscript"
6502
6503                           if test "$enableval" = yes; then
6504                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6505                           else
6506                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6507                           fi
6508
6509 else
6510
6511                           LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6512                           if test "x$LINE" != x ; then
6513                             eval "DEFAULT_$LINE"
6514                           else
6515                             no_cache=1
6516                           fi
6517
6518                           ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6519
6520 fi;
6521
6522           eval "$ac_cv_use_postscript"
6523           if test "$no_cache" != 1; then
6524             echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6525           fi
6526
6527           if test "$wxUSE_POSTSCRIPT" = yes; then
6528             echo "$as_me:$LINENO: result: yes" >&5
6529 echo "${ECHO_T}yes" >&6
6530           else
6531             echo "$as_me:$LINENO: result: no" >&5
6532 echo "${ECHO_T}no" >&6
6533           fi
6534
6535
6536
6537
6538
6539           enablestring=
6540           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6541 echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6542           no_cache=0
6543           # Check whether --enable-prologio or --disable-prologio was given.
6544 if test "${enable_prologio+set}" = set; then
6545   enableval="$enable_prologio"
6546
6547                           if test "$enableval" = yes; then
6548                             ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6549                           else
6550                             ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6551                           fi
6552
6553 else
6554
6555                           LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6556                           if test "x$LINE" != x ; then
6557                             eval "DEFAULT_$LINE"
6558                           else
6559                             no_cache=1
6560                           fi
6561
6562                           ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6563
6564 fi;
6565
6566           eval "$ac_cv_use_prologio"
6567           if test "$no_cache" != 1; then
6568             echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6569           fi
6570
6571           if test "$wxUSE_PROLOGIO" = yes; then
6572             echo "$as_me:$LINENO: result: yes" >&5
6573 echo "${ECHO_T}yes" >&6
6574           else
6575             echo "$as_me:$LINENO: result: no" >&5
6576 echo "${ECHO_T}no" >&6
6577           fi
6578
6579
6580           enablestring=
6581           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6582 echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6583           no_cache=0
6584           # Check whether --enable-resources or --disable-resources was given.
6585 if test "${enable_resources+set}" = set; then
6586   enableval="$enable_resources"
6587
6588                           if test "$enableval" = yes; then
6589                             ac_cv_use_resources='wxUSE_RESOURCES=yes'
6590                           else
6591                             ac_cv_use_resources='wxUSE_RESOURCES=no'
6592                           fi
6593
6594 else
6595
6596                           LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6597                           if test "x$LINE" != x ; then
6598                             eval "DEFAULT_$LINE"
6599                           else
6600                             no_cache=1
6601                           fi
6602
6603                           ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6604
6605 fi;
6606
6607           eval "$ac_cv_use_resources"
6608           if test "$no_cache" != 1; then
6609             echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6610           fi
6611
6612           if test "$wxUSE_RESOURCES" = yes; then
6613             echo "$as_me:$LINENO: result: yes" >&5
6614 echo "${ECHO_T}yes" >&6
6615           else
6616             echo "$as_me:$LINENO: result: no" >&5
6617 echo "${ECHO_T}no" >&6
6618           fi
6619
6620
6621
6622
6623           enablestring=
6624           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6625 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6626           no_cache=0
6627           # Check whether --enable-clipboard or --disable-clipboard was given.
6628 if test "${enable_clipboard+set}" = set; then
6629   enableval="$enable_clipboard"
6630
6631                           if test "$enableval" = yes; then
6632                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6633                           else
6634                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6635                           fi
6636
6637 else
6638
6639                           LINE=`grep "wxUSE_CLIPBOARD" ${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_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6647
6648 fi;
6649
6650           eval "$ac_cv_use_clipboard"
6651           if test "$no_cache" != 1; then
6652             echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6653           fi
6654
6655           if test "$wxUSE_CLIPBOARD" = 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}-dnd" >&5
6666 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6667           no_cache=0
6668           # Check whether --enable-dnd or --disable-dnd was given.
6669 if test "${enable_dnd+set}" = set; then
6670   enableval="$enable_dnd"
6671
6672                           if test "$enableval" = yes; then
6673                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6674                           else
6675                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6676                           fi
6677
6678 else
6679
6680                           LINE=`grep "wxUSE_DRAG_AND_DROP" ${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_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6688
6689 fi;
6690
6691           eval "$ac_cv_use_dnd"
6692           if test "$no_cache" != 1; then
6693             echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6694           fi
6695
6696           if test "$wxUSE_DRAG_AND_DROP" = 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}-metafile" >&5
6707 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6708           no_cache=0
6709           # Check whether --enable-metafile or --disable-metafile was given.
6710 if test "${enable_metafile+set}" = set; then
6711   enableval="$enable_metafile"
6712
6713                           if test "$enableval" = yes; then
6714                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
6715                           else
6716                             ac_cv_use_metafile='wxUSE_METAFILE=no'
6717                           fi
6718
6719 else
6720
6721                           LINE=`grep "wxUSE_METAFILE" ${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_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6729
6730 fi;
6731
6732           eval "$ac_cv_use_metafile"
6733           if test "$no_cache" != 1; then
6734             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6735           fi
6736
6737           if test "$wxUSE_METAFILE" = 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
6747
6748
6749           enablestring=
6750           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6751 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
6752           no_cache=0
6753           # Check whether --enable-controls or --disable-controls was given.
6754 if test "${enable_controls+set}" = set; then
6755   enableval="$enable_controls"
6756
6757                           if test "$enableval" = yes; then
6758                             ac_cv_use_controls='wxUSE_CONTROLS=yes'
6759                           else
6760                             ac_cv_use_controls='wxUSE_CONTROLS=no'
6761                           fi
6762
6763 else
6764
6765                           LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6766                           if test "x$LINE" != x ; then
6767                             eval "DEFAULT_$LINE"
6768                           else
6769                             no_cache=1
6770                           fi
6771
6772                           ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
6773
6774 fi;
6775
6776           eval "$ac_cv_use_controls"
6777           if test "$no_cache" != 1; then
6778             echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6779           fi
6780
6781           if test "$wxUSE_CONTROLS" = yes; then
6782             echo "$as_me:$LINENO: result: yes" >&5
6783 echo "${ECHO_T}yes" >&6
6784           else
6785             echo "$as_me:$LINENO: result: no" >&5
6786 echo "${ECHO_T}no" >&6
6787           fi
6788
6789
6790 if test "$wxUSE_CONTROLS" = "yes"; then
6791   DEFAULT_wxUSE_ACCEL=yes
6792   DEFAULT_wxUSE_BMPBUTTON=yes
6793   DEFAULT_wxUSE_BUTTON=yes
6794   DEFAULT_wxUSE_CALCTRL=no
6795   DEFAULT_wxUSE_CARET=yes
6796   DEFAULT_wxUSE_COMBOBOX=yes
6797   DEFAULT_wxUSE_CHECKBOX=yes
6798   DEFAULT_wxUSE_CHECKLISTBOX=yes
6799   DEFAULT_wxUSE_CHOICE=yes
6800   DEFAULT_wxUSE_GAUGE=yes
6801   DEFAULT_wxUSE_GRID=yes
6802   DEFAULT_wxUSE_IMAGLIST=yes
6803   DEFAULT_wxUSE_LISTBOOK=yes
6804   DEFAULT_wxUSE_LISTBOX=yes
6805   DEFAULT_wxUSE_LISTCTRL=yes
6806   DEFAULT_wxUSE_NOTEBOOK=yes
6807   DEFAULT_wxUSE_RADIOBOX=yes
6808   DEFAULT_wxUSE_RADIOBTN=yes
6809   DEFAULT_wxUSE_SASH=yes
6810   DEFAULT_wxUSE_SCROLLBAR=yes
6811   DEFAULT_wxUSE_SLIDER=yes
6812   DEFAULT_wxUSE_SPINBTN=yes
6813   DEFAULT_wxUSE_SPINCTRL=yes
6814   DEFAULT_wxUSE_SPLITTER=yes
6815   DEFAULT_wxUSE_STATBMP=yes
6816   DEFAULT_wxUSE_STATBOX=yes
6817   DEFAULT_wxUSE_STATLINE=yes
6818   DEFAULT_wxUSE_STATUSBAR=yes
6819   DEFAULT_wxUSE_TAB_DIALOG=yes
6820   DEFAULT_wxUSE_TOGGLEBTN=yes
6821   DEFAULT_wxUSE_TOOLBAR=yes
6822   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6823   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
6824   DEFAULT_wxUSE_TOOLTIPS=yes
6825   DEFAULT_wxUSE_TREECTRL=yes
6826   DEFAULT_wxUSE_POPUPWIN=yes
6827   DEFAULT_wxUSE_TIPWINDOW=yes
6828 elif test "$wxUSE_CONTROLS" = "no"; then
6829   DEFAULT_wxUSE_ACCEL=no
6830   DEFAULT_wxUSE_BMPBUTTON=no
6831   DEFAULT_wxUSE_BUTTON=no
6832   DEFAULT_wxUSE_CALCTRL=no
6833   DEFAULT_wxUSE_CARET=no
6834   DEFAULT_wxUSE_COMBOBOX=no
6835   DEFAULT_wxUSE_CHECKBOX=no
6836   DEFAULT_wxUSE_CHECKLISTBOX=no
6837   DEFAULT_wxUSE_CHOICE=no
6838   DEFAULT_wxUSE_GAUGE=no
6839   DEFAULT_wxUSE_GRID=no
6840   DEFAULT_wxUSE_IMAGLIST=no
6841   DEFAULT_wxUSE_LISTBOOK=no
6842   DEFAULT_wxUSE_LISTBOX=no
6843   DEFAULT_wxUSE_LISTCTRL=no
6844   DEFAULT_wxUSE_NOTEBOOK=no
6845   DEFAULT_wxUSE_RADIOBOX=no
6846   DEFAULT_wxUSE_RADIOBTN=no
6847   DEFAULT_wxUSE_SASH=no
6848   DEFAULT_wxUSE_SCROLLBAR=no
6849   DEFAULT_wxUSE_SLIDER=no
6850   DEFAULT_wxUSE_SPINBTN=no
6851   DEFAULT_wxUSE_SPINCTRL=no
6852   DEFAULT_wxUSE_SPLITTER=no
6853   DEFAULT_wxUSE_STATBMP=no
6854   DEFAULT_wxUSE_STATBOX=no
6855   DEFAULT_wxUSE_STATLINE=no
6856   DEFAULT_wxUSE_STATUSBAR=no
6857   DEFAULT_wxUSE_TAB_DIALOG=no
6858   DEFAULT_wxUSE_TOGGLEBTN=no
6859   DEFAULT_wxUSE_TOOLBAR=no
6860   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6861   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
6862   DEFAULT_wxUSE_TOOLTIPS=no
6863   DEFAULT_wxUSE_TREECTRL=no
6864   DEFAULT_wxUSE_POPUPWIN=no
6865   DEFAULT_wxUSE_TIPWINDOW=no
6866 fi
6867
6868 ## FIXME: This is a blatant hack
6869 if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6870   wxUSE_PRINTING_ARCHITECTURE=no
6871   wxUSE_DRAG_AND_DROP=no
6872   # Generic notebook requires tab dialog
6873   DEFAULT_wxUSE_TABDIALOG=yes
6874   DEFAULT_wxUSE_SCROLLBAR=no
6875   DEFAULT_wxUSE_TOOLTIPS=no
6876   DEFAULT_wxUSE_DRAGIMAGE=no
6877 fi
6878
6879
6880           enablestring=
6881           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6882 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
6883           no_cache=0
6884           # Check whether --enable-accel or --disable-accel was given.
6885 if test "${enable_accel+set}" = set; then
6886   enableval="$enable_accel"
6887
6888                           if test "$enableval" = yes; then
6889                             ac_cv_use_accel='wxUSE_ACCEL=yes'
6890                           else
6891                             ac_cv_use_accel='wxUSE_ACCEL=no'
6892                           fi
6893
6894 else
6895
6896                           LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6897                           if test "x$LINE" != x ; then
6898                             eval "DEFAULT_$LINE"
6899                           else
6900                             no_cache=1
6901                           fi
6902
6903                           ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
6904
6905 fi;
6906
6907           eval "$ac_cv_use_accel"
6908           if test "$no_cache" != 1; then
6909             echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6910           fi
6911
6912           if test "$wxUSE_ACCEL" = yes; then
6913             echo "$as_me:$LINENO: result: yes" >&5
6914 echo "${ECHO_T}yes" >&6
6915           else
6916             echo "$as_me:$LINENO: result: no" >&5
6917 echo "${ECHO_T}no" >&6
6918           fi
6919
6920
6921           enablestring=
6922           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6923 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
6924           no_cache=0
6925           # Check whether --enable-button or --disable-button was given.
6926 if test "${enable_button+set}" = set; then
6927   enableval="$enable_button"
6928
6929                           if test "$enableval" = yes; then
6930                             ac_cv_use_button='wxUSE_BUTTON=yes'
6931                           else
6932                             ac_cv_use_button='wxUSE_BUTTON=no'
6933                           fi
6934
6935 else
6936
6937                           LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
6938                           if test "x$LINE" != x ; then
6939                             eval "DEFAULT_$LINE"
6940                           else
6941                             no_cache=1
6942                           fi
6943
6944                           ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
6945
6946 fi;
6947
6948           eval "$ac_cv_use_button"
6949           if test "$no_cache" != 1; then
6950             echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
6951           fi
6952
6953           if test "$wxUSE_BUTTON" = yes; then
6954             echo "$as_me:$LINENO: result: yes" >&5
6955 echo "${ECHO_T}yes" >&6
6956           else
6957             echo "$as_me:$LINENO: result: no" >&5
6958 echo "${ECHO_T}no" >&6
6959           fi
6960
6961
6962           enablestring=
6963           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6964 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
6965           no_cache=0
6966           # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6967 if test "${enable_bmpbutton+set}" = set; then
6968   enableval="$enable_bmpbutton"
6969
6970                           if test "$enableval" = yes; then
6971                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6972                           else
6973                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6974                           fi
6975
6976 else
6977
6978                           LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6979                           if test "x$LINE" != x ; then
6980                             eval "DEFAULT_$LINE"
6981                           else
6982                             no_cache=1
6983                           fi
6984
6985                           ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
6986
6987 fi;
6988
6989           eval "$ac_cv_use_bmpbutton"
6990           if test "$no_cache" != 1; then
6991             echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6992           fi
6993
6994           if test "$wxUSE_BMPBUTTON" = yes; then
6995             echo "$as_me:$LINENO: result: yes" >&5
6996 echo "${ECHO_T}yes" >&6
6997           else
6998             echo "$as_me:$LINENO: result: no" >&5
6999 echo "${ECHO_T}no" >&6
7000           fi
7001
7002
7003           enablestring=
7004           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7005 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7006           no_cache=0
7007           # Check whether --enable-calendar or --disable-calendar was given.
7008 if test "${enable_calendar+set}" = set; then
7009   enableval="$enable_calendar"
7010
7011                           if test "$enableval" = yes; then
7012                             ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7013                           else
7014                             ac_cv_use_calendar='wxUSE_CALCTRL=no'
7015                           fi
7016
7017 else
7018
7019                           LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7020                           if test "x$LINE" != x ; then
7021                             eval "DEFAULT_$LINE"
7022                           else
7023                             no_cache=1
7024                           fi
7025
7026                           ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7027
7028 fi;
7029
7030           eval "$ac_cv_use_calendar"
7031           if test "$no_cache" != 1; then
7032             echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7033           fi
7034
7035           if test "$wxUSE_CALCTRL" = yes; then
7036             echo "$as_me:$LINENO: result: yes" >&5
7037 echo "${ECHO_T}yes" >&6
7038           else
7039             echo "$as_me:$LINENO: result: no" >&5
7040 echo "${ECHO_T}no" >&6
7041           fi
7042
7043
7044           enablestring=
7045           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7046 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7047           no_cache=0
7048           # Check whether --enable-caret or --disable-caret was given.
7049 if test "${enable_caret+set}" = set; then
7050   enableval="$enable_caret"
7051
7052                           if test "$enableval" = yes; then
7053                             ac_cv_use_caret='wxUSE_CARET=yes'
7054                           else
7055                             ac_cv_use_caret='wxUSE_CARET=no'
7056                           fi
7057
7058 else
7059
7060                           LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7061                           if test "x$LINE" != x ; then
7062                             eval "DEFAULT_$LINE"
7063                           else
7064                             no_cache=1
7065                           fi
7066
7067                           ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7068
7069 fi;
7070
7071           eval "$ac_cv_use_caret"
7072           if test "$no_cache" != 1; then
7073             echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7074           fi
7075
7076           if test "$wxUSE_CARET" = yes; then
7077             echo "$as_me:$LINENO: result: yes" >&5
7078 echo "${ECHO_T}yes" >&6
7079           else
7080             echo "$as_me:$LINENO: result: no" >&5
7081 echo "${ECHO_T}no" >&6
7082           fi
7083
7084
7085           enablestring=
7086           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7087 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7088           no_cache=0
7089           # Check whether --enable-checkbox or --disable-checkbox was given.
7090 if test "${enable_checkbox+set}" = set; then
7091   enableval="$enable_checkbox"
7092
7093                           if test "$enableval" = yes; then
7094                             ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7095                           else
7096                             ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7097                           fi
7098
7099 else
7100
7101                           LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7102                           if test "x$LINE" != x ; then
7103                             eval "DEFAULT_$LINE"
7104                           else
7105                             no_cache=1
7106                           fi
7107
7108                           ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7109
7110 fi;
7111
7112           eval "$ac_cv_use_checkbox"
7113           if test "$no_cache" != 1; then
7114             echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7115           fi
7116
7117           if test "$wxUSE_CHECKBOX" = yes; then
7118             echo "$as_me:$LINENO: result: yes" >&5
7119 echo "${ECHO_T}yes" >&6
7120           else
7121             echo "$as_me:$LINENO: result: no" >&5
7122 echo "${ECHO_T}no" >&6
7123           fi
7124
7125
7126           enablestring=
7127           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7128 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7129           no_cache=0
7130           # Check whether --enable-checklst or --disable-checklst was given.
7131 if test "${enable_checklst+set}" = set; then
7132   enableval="$enable_checklst"
7133
7134                           if test "$enableval" = yes; then
7135                             ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7136                           else
7137                             ac_cv_use_checklst='wxUSE_CHECKLST=no'
7138                           fi
7139
7140 else
7141
7142                           LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7143                           if test "x$LINE" != x ; then
7144                             eval "DEFAULT_$LINE"
7145                           else
7146                             no_cache=1
7147                           fi
7148
7149                           ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7150
7151 fi;
7152
7153           eval "$ac_cv_use_checklst"
7154           if test "$no_cache" != 1; then
7155             echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7156           fi
7157
7158           if test "$wxUSE_CHECKLST" = yes; then
7159             echo "$as_me:$LINENO: result: yes" >&5
7160 echo "${ECHO_T}yes" >&6
7161           else
7162             echo "$as_me:$LINENO: result: no" >&5
7163 echo "${ECHO_T}no" >&6
7164           fi
7165
7166
7167           enablestring=
7168           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7169 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7170           no_cache=0
7171           # Check whether --enable-choice or --disable-choice was given.
7172 if test "${enable_choice+set}" = set; then
7173   enableval="$enable_choice"
7174
7175                           if test "$enableval" = yes; then
7176                             ac_cv_use_choice='wxUSE_CHOICE=yes'
7177                           else
7178                             ac_cv_use_choice='wxUSE_CHOICE=no'
7179                           fi
7180
7181 else
7182
7183                           LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7184                           if test "x$LINE" != x ; then
7185                             eval "DEFAULT_$LINE"
7186                           else
7187                             no_cache=1
7188                           fi
7189
7190                           ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7191
7192 fi;
7193
7194           eval "$ac_cv_use_choice"
7195           if test "$no_cache" != 1; then
7196             echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7197           fi
7198
7199           if test "$wxUSE_CHOICE" = yes; then
7200             echo "$as_me:$LINENO: result: yes" >&5
7201 echo "${ECHO_T}yes" >&6
7202           else
7203             echo "$as_me:$LINENO: result: no" >&5
7204 echo "${ECHO_T}no" >&6
7205           fi
7206
7207
7208           enablestring=
7209           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7210 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7211           no_cache=0
7212           # Check whether --enable-combobox or --disable-combobox was given.
7213 if test "${enable_combobox+set}" = set; then
7214   enableval="$enable_combobox"
7215
7216                           if test "$enableval" = yes; then
7217                             ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7218                           else
7219                             ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7220                           fi
7221
7222 else
7223
7224                           LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7225                           if test "x$LINE" != x ; then
7226                             eval "DEFAULT_$LINE"
7227                           else
7228                             no_cache=1
7229                           fi
7230
7231                           ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7232
7233 fi;
7234
7235           eval "$ac_cv_use_combobox"
7236           if test "$no_cache" != 1; then
7237             echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7238           fi
7239
7240           if test "$wxUSE_COMBOBOX" = yes; then
7241             echo "$as_me:$LINENO: result: yes" >&5
7242 echo "${ECHO_T}yes" >&6
7243           else
7244             echo "$as_me:$LINENO: result: no" >&5
7245 echo "${ECHO_T}no" >&6
7246           fi
7247
7248
7249           enablestring=
7250           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7251 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7252           no_cache=0
7253           # Check whether --enable-display or --disable-display was given.
7254 if test "${enable_display+set}" = set; then
7255   enableval="$enable_display"
7256
7257                           if test "$enableval" = yes; then
7258                             ac_cv_use_display='wxUSE_DISPLAY=yes'
7259                           else
7260                             ac_cv_use_display='wxUSE_DISPLAY=no'
7261                           fi
7262
7263 else
7264
7265                           LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7266                           if test "x$LINE" != x ; then
7267                             eval "DEFAULT_$LINE"
7268                           else
7269                             no_cache=1
7270                           fi
7271
7272                           ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7273
7274 fi;
7275
7276           eval "$ac_cv_use_display"
7277           if test "$no_cache" != 1; then
7278             echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7279           fi
7280
7281           if test "$wxUSE_DISPLAY" = yes; then
7282             echo "$as_me:$LINENO: result: yes" >&5
7283 echo "${ECHO_T}yes" >&6
7284           else
7285             echo "$as_me:$LINENO: result: no" >&5
7286 echo "${ECHO_T}no" >&6
7287           fi
7288
7289
7290           enablestring=
7291           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7292 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7293           no_cache=0
7294           # Check whether --enable-gauge or --disable-gauge was given.
7295 if test "${enable_gauge+set}" = set; then
7296   enableval="$enable_gauge"
7297
7298                           if test "$enableval" = yes; then
7299                             ac_cv_use_gauge='wxUSE_GAUGE=yes'
7300                           else
7301                             ac_cv_use_gauge='wxUSE_GAUGE=no'
7302                           fi
7303
7304 else
7305
7306                           LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7307                           if test "x$LINE" != x ; then
7308                             eval "DEFAULT_$LINE"
7309                           else
7310                             no_cache=1
7311                           fi
7312
7313                           ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7314
7315 fi;
7316
7317           eval "$ac_cv_use_gauge"
7318           if test "$no_cache" != 1; then
7319             echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7320           fi
7321
7322           if test "$wxUSE_GAUGE" = yes; then
7323             echo "$as_me:$LINENO: result: yes" >&5
7324 echo "${ECHO_T}yes" >&6
7325           else
7326             echo "$as_me:$LINENO: result: no" >&5
7327 echo "${ECHO_T}no" >&6
7328           fi
7329
7330
7331           enablestring=
7332           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7333 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7334           no_cache=0
7335           # Check whether --enable-grid or --disable-grid was given.
7336 if test "${enable_grid+set}" = set; then
7337   enableval="$enable_grid"
7338
7339                           if test "$enableval" = yes; then
7340                             ac_cv_use_grid='wxUSE_GRID=yes'
7341                           else
7342                             ac_cv_use_grid='wxUSE_GRID=no'
7343                           fi
7344
7345 else
7346
7347                           LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7348                           if test "x$LINE" != x ; then
7349                             eval "DEFAULT_$LINE"
7350                           else
7351                             no_cache=1
7352                           fi
7353
7354                           ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7355
7356 fi;
7357
7358           eval "$ac_cv_use_grid"
7359           if test "$no_cache" != 1; then
7360             echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7361           fi
7362
7363           if test "$wxUSE_GRID" = yes; then
7364             echo "$as_me:$LINENO: result: yes" >&5
7365 echo "${ECHO_T}yes" >&6
7366           else
7367             echo "$as_me:$LINENO: result: no" >&5
7368 echo "${ECHO_T}no" >&6
7369           fi
7370
7371
7372           enablestring=
7373           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7374 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7375           no_cache=0
7376           # Check whether --enable-imaglist or --disable-imaglist was given.
7377 if test "${enable_imaglist+set}" = set; then
7378   enableval="$enable_imaglist"
7379
7380                           if test "$enableval" = yes; then
7381                             ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7382                           else
7383                             ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7384                           fi
7385
7386 else
7387
7388                           LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7389                           if test "x$LINE" != x ; then
7390                             eval "DEFAULT_$LINE"
7391                           else
7392                             no_cache=1
7393                           fi
7394
7395                           ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7396
7397 fi;
7398
7399           eval "$ac_cv_use_imaglist"
7400           if test "$no_cache" != 1; then
7401             echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7402           fi
7403
7404           if test "$wxUSE_IMAGLIST" = yes; then
7405             echo "$as_me:$LINENO: result: yes" >&5
7406 echo "${ECHO_T}yes" >&6
7407           else
7408             echo "$as_me:$LINENO: result: no" >&5
7409 echo "${ECHO_T}no" >&6
7410           fi
7411
7412
7413           enablestring=
7414           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7415 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7416           no_cache=0
7417           # Check whether --enable-listbook or --disable-listbook was given.
7418 if test "${enable_listbook+set}" = set; then
7419   enableval="$enable_listbook"
7420
7421                           if test "$enableval" = yes; then
7422                             ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7423                           else
7424                             ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7425                           fi
7426
7427 else
7428
7429                           LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7430                           if test "x$LINE" != x ; then
7431                             eval "DEFAULT_$LINE"
7432                           else
7433                             no_cache=1
7434                           fi
7435
7436                           ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7437
7438 fi;
7439
7440           eval "$ac_cv_use_listbook"
7441           if test "$no_cache" != 1; then
7442             echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7443           fi
7444
7445           if test "$wxUSE_LISTBOOK" = yes; then
7446             echo "$as_me:$LINENO: result: yes" >&5
7447 echo "${ECHO_T}yes" >&6
7448           else
7449             echo "$as_me:$LINENO: result: no" >&5
7450 echo "${ECHO_T}no" >&6
7451           fi
7452
7453
7454           enablestring=
7455           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7456 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7457           no_cache=0
7458           # Check whether --enable-listbox or --disable-listbox was given.
7459 if test "${enable_listbox+set}" = set; then
7460   enableval="$enable_listbox"
7461
7462                           if test "$enableval" = yes; then
7463                             ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7464                           else
7465                             ac_cv_use_listbox='wxUSE_LISTBOX=no'
7466                           fi
7467
7468 else
7469
7470                           LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7471                           if test "x$LINE" != x ; then
7472                             eval "DEFAULT_$LINE"
7473                           else
7474                             no_cache=1
7475                           fi
7476
7477                           ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7478
7479 fi;
7480
7481           eval "$ac_cv_use_listbox"
7482           if test "$no_cache" != 1; then
7483             echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7484           fi
7485
7486           if test "$wxUSE_LISTBOX" = yes; then
7487             echo "$as_me:$LINENO: result: yes" >&5
7488 echo "${ECHO_T}yes" >&6
7489           else
7490             echo "$as_me:$LINENO: result: no" >&5
7491 echo "${ECHO_T}no" >&6
7492           fi
7493
7494
7495           enablestring=
7496           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7497 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7498           no_cache=0
7499           # Check whether --enable-listctrl or --disable-listctrl was given.
7500 if test "${enable_listctrl+set}" = set; then
7501   enableval="$enable_listctrl"
7502
7503                           if test "$enableval" = yes; then
7504                             ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7505                           else
7506                             ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7507                           fi
7508
7509 else
7510
7511                           LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7512                           if test "x$LINE" != x ; then
7513                             eval "DEFAULT_$LINE"
7514                           else
7515                             no_cache=1
7516                           fi
7517
7518                           ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7519
7520 fi;
7521
7522           eval "$ac_cv_use_listctrl"
7523           if test "$no_cache" != 1; then
7524             echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7525           fi
7526
7527           if test "$wxUSE_LISTCTRL" = yes; then
7528             echo "$as_me:$LINENO: result: yes" >&5
7529 echo "${ECHO_T}yes" >&6
7530           else
7531             echo "$as_me:$LINENO: result: no" >&5
7532 echo "${ECHO_T}no" >&6
7533           fi
7534
7535
7536           enablestring=
7537           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7538 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7539           no_cache=0
7540           # Check whether --enable-notebook or --disable-notebook was given.
7541 if test "${enable_notebook+set}" = set; then
7542   enableval="$enable_notebook"
7543
7544                           if test "$enableval" = yes; then
7545                             ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7546                           else
7547                             ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7548                           fi
7549
7550 else
7551
7552                           LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7553                           if test "x$LINE" != x ; then
7554                             eval "DEFAULT_$LINE"
7555                           else
7556                             no_cache=1
7557                           fi
7558
7559                           ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7560
7561 fi;
7562
7563           eval "$ac_cv_use_notebook"
7564           if test "$no_cache" != 1; then
7565             echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7566           fi
7567
7568           if test "$wxUSE_NOTEBOOK" = yes; then
7569             echo "$as_me:$LINENO: result: yes" >&5
7570 echo "${ECHO_T}yes" >&6
7571           else
7572             echo "$as_me:$LINENO: result: no" >&5
7573 echo "${ECHO_T}no" >&6
7574           fi
7575
7576
7577           enablestring=
7578           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7579 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7580           no_cache=0
7581           # Check whether --enable-radiobox or --disable-radiobox was given.
7582 if test "${enable_radiobox+set}" = set; then
7583   enableval="$enable_radiobox"
7584
7585                           if test "$enableval" = yes; then
7586                             ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7587                           else
7588                             ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7589                           fi
7590
7591 else
7592
7593                           LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7594                           if test "x$LINE" != x ; then
7595                             eval "DEFAULT_$LINE"
7596                           else
7597                             no_cache=1
7598                           fi
7599
7600                           ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7601
7602 fi;
7603
7604           eval "$ac_cv_use_radiobox"
7605           if test "$no_cache" != 1; then
7606             echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7607           fi
7608
7609           if test "$wxUSE_RADIOBOX" = yes; then
7610             echo "$as_me:$LINENO: result: yes" >&5
7611 echo "${ECHO_T}yes" >&6
7612           else
7613             echo "$as_me:$LINENO: result: no" >&5
7614 echo "${ECHO_T}no" >&6
7615           fi
7616
7617
7618           enablestring=
7619           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7620 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7621           no_cache=0
7622           # Check whether --enable-radiobtn or --disable-radiobtn was given.
7623 if test "${enable_radiobtn+set}" = set; then
7624   enableval="$enable_radiobtn"
7625
7626                           if test "$enableval" = yes; then
7627                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7628                           else
7629                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7630                           fi
7631
7632 else
7633
7634                           LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7635                           if test "x$LINE" != x ; then
7636                             eval "DEFAULT_$LINE"
7637                           else
7638                             no_cache=1
7639                           fi
7640
7641                           ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7642
7643 fi;
7644
7645           eval "$ac_cv_use_radiobtn"
7646           if test "$no_cache" != 1; then
7647             echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7648           fi
7649
7650           if test "$wxUSE_RADIOBTN" = yes; then
7651             echo "$as_me:$LINENO: result: yes" >&5
7652 echo "${ECHO_T}yes" >&6
7653           else
7654             echo "$as_me:$LINENO: result: no" >&5
7655 echo "${ECHO_T}no" >&6
7656           fi
7657
7658
7659           enablestring=
7660           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7661 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7662           no_cache=0
7663           # Check whether --enable-sash or --disable-sash was given.
7664 if test "${enable_sash+set}" = set; then
7665   enableval="$enable_sash"
7666
7667                           if test "$enableval" = yes; then
7668                             ac_cv_use_sash='wxUSE_SASH=yes'
7669                           else
7670                             ac_cv_use_sash='wxUSE_SASH=no'
7671                           fi
7672
7673 else
7674
7675                           LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7676                           if test "x$LINE" != x ; then
7677                             eval "DEFAULT_$LINE"
7678                           else
7679                             no_cache=1
7680                           fi
7681
7682                           ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7683
7684 fi;
7685
7686           eval "$ac_cv_use_sash"
7687           if test "$no_cache" != 1; then
7688             echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7689           fi
7690
7691           if test "$wxUSE_SASH" = yes; then
7692             echo "$as_me:$LINENO: result: yes" >&5
7693 echo "${ECHO_T}yes" >&6
7694           else
7695             echo "$as_me:$LINENO: result: no" >&5
7696 echo "${ECHO_T}no" >&6
7697           fi
7698
7699
7700           enablestring=
7701           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7702 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7703           no_cache=0
7704           # Check whether --enable-scrollbar or --disable-scrollbar was given.
7705 if test "${enable_scrollbar+set}" = set; then
7706   enableval="$enable_scrollbar"
7707
7708                           if test "$enableval" = yes; then
7709                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7710                           else
7711                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7712                           fi
7713
7714 else
7715
7716                           LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7717                           if test "x$LINE" != x ; then
7718                             eval "DEFAULT_$LINE"
7719                           else
7720                             no_cache=1
7721                           fi
7722
7723                           ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7724
7725 fi;
7726
7727           eval "$ac_cv_use_scrollbar"
7728           if test "$no_cache" != 1; then
7729             echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7730           fi
7731
7732           if test "$wxUSE_SCROLLBAR" = yes; then
7733             echo "$as_me:$LINENO: result: yes" >&5
7734 echo "${ECHO_T}yes" >&6
7735           else
7736             echo "$as_me:$LINENO: result: no" >&5
7737 echo "${ECHO_T}no" >&6
7738           fi
7739
7740
7741           enablestring=
7742           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7743 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7744           no_cache=0
7745           # Check whether --enable-slider or --disable-slider was given.
7746 if test "${enable_slider+set}" = set; then
7747   enableval="$enable_slider"
7748
7749                           if test "$enableval" = yes; then
7750                             ac_cv_use_slider='wxUSE_SLIDER=yes'
7751                           else
7752                             ac_cv_use_slider='wxUSE_SLIDER=no'
7753                           fi
7754
7755 else
7756
7757                           LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7758                           if test "x$LINE" != x ; then
7759                             eval "DEFAULT_$LINE"
7760                           else
7761                             no_cache=1
7762                           fi
7763
7764                           ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
7765
7766 fi;
7767
7768           eval "$ac_cv_use_slider"
7769           if test "$no_cache" != 1; then
7770             echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7771           fi
7772
7773           if test "$wxUSE_SLIDER" = yes; then
7774             echo "$as_me:$LINENO: result: yes" >&5
7775 echo "${ECHO_T}yes" >&6
7776           else
7777             echo "$as_me:$LINENO: result: no" >&5
7778 echo "${ECHO_T}no" >&6
7779           fi
7780
7781
7782           enablestring=
7783           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7784 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
7785           no_cache=0
7786           # Check whether --enable-spinbtn or --disable-spinbtn was given.
7787 if test "${enable_spinbtn+set}" = set; then
7788   enableval="$enable_spinbtn"
7789
7790                           if test "$enableval" = yes; then
7791                             ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7792                           else
7793                             ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7794                           fi
7795
7796 else
7797
7798                           LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7799                           if test "x$LINE" != x ; then
7800                             eval "DEFAULT_$LINE"
7801                           else
7802                             no_cache=1
7803                           fi
7804
7805                           ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
7806
7807 fi;
7808
7809           eval "$ac_cv_use_spinbtn"
7810           if test "$no_cache" != 1; then
7811             echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7812           fi
7813
7814           if test "$wxUSE_SPINBTN" = yes; then
7815             echo "$as_me:$LINENO: result: yes" >&5
7816 echo "${ECHO_T}yes" >&6
7817           else
7818             echo "$as_me:$LINENO: result: no" >&5
7819 echo "${ECHO_T}no" >&6
7820           fi
7821
7822
7823           enablestring=
7824           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7825 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
7826           no_cache=0
7827           # Check whether --enable-spinctrl or --disable-spinctrl was given.
7828 if test "${enable_spinctrl+set}" = set; then
7829   enableval="$enable_spinctrl"
7830
7831                           if test "$enableval" = yes; then
7832                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7833                           else
7834                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7835                           fi
7836
7837 else
7838
7839                           LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7840                           if test "x$LINE" != x ; then
7841                             eval "DEFAULT_$LINE"
7842                           else
7843                             no_cache=1
7844                           fi
7845
7846                           ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
7847
7848 fi;
7849
7850           eval "$ac_cv_use_spinctrl"
7851           if test "$no_cache" != 1; then
7852             echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7853           fi
7854
7855           if test "$wxUSE_SPINCTRL" = yes; then
7856             echo "$as_me:$LINENO: result: yes" >&5
7857 echo "${ECHO_T}yes" >&6
7858           else
7859             echo "$as_me:$LINENO: result: no" >&5
7860 echo "${ECHO_T}no" >&6
7861           fi
7862
7863
7864           enablestring=
7865           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7866 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
7867           no_cache=0
7868           # Check whether --enable-splitter or --disable-splitter was given.
7869 if test "${enable_splitter+set}" = set; then
7870   enableval="$enable_splitter"
7871
7872                           if test "$enableval" = yes; then
7873                             ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7874                           else
7875                             ac_cv_use_splitter='wxUSE_SPLITTER=no'
7876                           fi
7877
7878 else
7879
7880                           LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7881                           if test "x$LINE" != x ; then
7882                             eval "DEFAULT_$LINE"
7883                           else
7884                             no_cache=1
7885                           fi
7886
7887                           ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
7888
7889 fi;
7890
7891           eval "$ac_cv_use_splitter"
7892           if test "$no_cache" != 1; then
7893             echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7894           fi
7895
7896           if test "$wxUSE_SPLITTER" = yes; then
7897             echo "$as_me:$LINENO: result: yes" >&5
7898 echo "${ECHO_T}yes" >&6
7899           else
7900             echo "$as_me:$LINENO: result: no" >&5
7901 echo "${ECHO_T}no" >&6
7902           fi
7903
7904
7905           enablestring=
7906           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7907 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
7908           no_cache=0
7909           # Check whether --enable-statbmp or --disable-statbmp was given.
7910 if test "${enable_statbmp+set}" = set; then
7911   enableval="$enable_statbmp"
7912
7913                           if test "$enableval" = yes; then
7914                             ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7915                           else
7916                             ac_cv_use_statbmp='wxUSE_STATBMP=no'
7917                           fi
7918
7919 else
7920
7921                           LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7922                           if test "x$LINE" != x ; then
7923                             eval "DEFAULT_$LINE"
7924                           else
7925                             no_cache=1
7926                           fi
7927
7928                           ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
7929
7930 fi;
7931
7932           eval "$ac_cv_use_statbmp"
7933           if test "$no_cache" != 1; then
7934             echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7935           fi
7936
7937           if test "$wxUSE_STATBMP" = yes; then
7938             echo "$as_me:$LINENO: result: yes" >&5
7939 echo "${ECHO_T}yes" >&6
7940           else
7941             echo "$as_me:$LINENO: result: no" >&5
7942 echo "${ECHO_T}no" >&6
7943           fi
7944
7945
7946           enablestring=
7947           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7948 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
7949           no_cache=0
7950           # Check whether --enable-statbox or --disable-statbox was given.
7951 if test "${enable_statbox+set}" = set; then
7952   enableval="$enable_statbox"
7953
7954                           if test "$enableval" = yes; then
7955                             ac_cv_use_statbox='wxUSE_STATBOX=yes'
7956                           else
7957                             ac_cv_use_statbox='wxUSE_STATBOX=no'
7958                           fi
7959
7960 else
7961
7962                           LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7963                           if test "x$LINE" != x ; then
7964                             eval "DEFAULT_$LINE"
7965                           else
7966                             no_cache=1
7967                           fi
7968
7969                           ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
7970
7971 fi;
7972
7973           eval "$ac_cv_use_statbox"
7974           if test "$no_cache" != 1; then
7975             echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7976           fi
7977
7978           if test "$wxUSE_STATBOX" = yes; then
7979             echo "$as_me:$LINENO: result: yes" >&5
7980 echo "${ECHO_T}yes" >&6
7981           else
7982             echo "$as_me:$LINENO: result: no" >&5
7983 echo "${ECHO_T}no" >&6
7984           fi
7985
7986
7987           enablestring=
7988           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7989 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
7990           no_cache=0
7991           # Check whether --enable-statline or --disable-statline was given.
7992 if test "${enable_statline+set}" = set; then
7993   enableval="$enable_statline"
7994
7995                           if test "$enableval" = yes; then
7996                             ac_cv_use_statline='wxUSE_STATLINE=yes'
7997                           else
7998                             ac_cv_use_statline='wxUSE_STATLINE=no'
7999                           fi
8000
8001 else
8002
8003                           LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8004                           if test "x$LINE" != x ; then
8005                             eval "DEFAULT_$LINE"
8006                           else
8007                             no_cache=1
8008                           fi
8009
8010                           ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8011
8012 fi;
8013
8014           eval "$ac_cv_use_statline"
8015           if test "$no_cache" != 1; then
8016             echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8017           fi
8018
8019           if test "$wxUSE_STATLINE" = yes; then
8020             echo "$as_me:$LINENO: result: yes" >&5
8021 echo "${ECHO_T}yes" >&6
8022           else
8023             echo "$as_me:$LINENO: result: no" >&5
8024 echo "${ECHO_T}no" >&6
8025           fi
8026
8027
8028           enablestring=
8029           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8030 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8031           no_cache=0
8032           # Check whether --enable-stattext or --disable-stattext was given.
8033 if test "${enable_stattext+set}" = set; then
8034   enableval="$enable_stattext"
8035
8036                           if test "$enableval" = yes; then
8037                             ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8038                           else
8039                             ac_cv_use_stattext='wxUSE_STATTEXT=no'
8040                           fi
8041
8042 else
8043
8044                           LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8045                           if test "x$LINE" != x ; then
8046                             eval "DEFAULT_$LINE"
8047                           else
8048                             no_cache=1
8049                           fi
8050
8051                           ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8052
8053 fi;
8054
8055           eval "$ac_cv_use_stattext"
8056           if test "$no_cache" != 1; then
8057             echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8058           fi
8059
8060           if test "$wxUSE_STATTEXT" = yes; then
8061             echo "$as_me:$LINENO: result: yes" >&5
8062 echo "${ECHO_T}yes" >&6
8063           else
8064             echo "$as_me:$LINENO: result: no" >&5
8065 echo "${ECHO_T}no" >&6
8066           fi
8067
8068
8069           enablestring=
8070           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8071 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8072           no_cache=0
8073           # Check whether --enable-statusbar or --disable-statusbar was given.
8074 if test "${enable_statusbar+set}" = set; then
8075   enableval="$enable_statusbar"
8076
8077                           if test "$enableval" = yes; then
8078                             ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8079                           else
8080                             ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8081                           fi
8082
8083 else
8084
8085                           LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8086                           if test "x$LINE" != x ; then
8087                             eval "DEFAULT_$LINE"
8088                           else
8089                             no_cache=1
8090                           fi
8091
8092                           ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8093
8094 fi;
8095
8096           eval "$ac_cv_use_statusbar"
8097           if test "$no_cache" != 1; then
8098             echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8099           fi
8100
8101           if test "$wxUSE_STATUSBAR" = yes; then
8102             echo "$as_me:$LINENO: result: yes" >&5
8103 echo "${ECHO_T}yes" >&6
8104           else
8105             echo "$as_me:$LINENO: result: no" >&5
8106 echo "${ECHO_T}no" >&6
8107           fi
8108
8109
8110           enablestring=
8111           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8112 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8113           no_cache=0
8114           # Check whether --enable-tabdialog or --disable-tabdialog was given.
8115 if test "${enable_tabdialog+set}" = set; then
8116   enableval="$enable_tabdialog"
8117
8118                           if test "$enableval" = yes; then
8119                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8120                           else
8121                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8122                           fi
8123
8124 else
8125
8126                           LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8127                           if test "x$LINE" != x ; then
8128                             eval "DEFAULT_$LINE"
8129                           else
8130                             no_cache=1
8131                           fi
8132
8133                           ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8134
8135 fi;
8136
8137           eval "$ac_cv_use_tabdialog"
8138           if test "$no_cache" != 1; then
8139             echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8140           fi
8141
8142           if test "$wxUSE_TABDIALOG" = yes; then
8143             echo "$as_me:$LINENO: result: yes" >&5
8144 echo "${ECHO_T}yes" >&6
8145           else
8146             echo "$as_me:$LINENO: result: no" >&5
8147 echo "${ECHO_T}no" >&6
8148           fi
8149
8150
8151           enablestring=
8152           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8153 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8154           no_cache=0
8155           # Check whether --enable-textctrl or --disable-textctrl was given.
8156 if test "${enable_textctrl+set}" = set; then
8157   enableval="$enable_textctrl"
8158
8159                           if test "$enableval" = yes; then
8160                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8161                           else
8162                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8163                           fi
8164
8165 else
8166
8167                           LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8168                           if test "x$LINE" != x ; then
8169                             eval "DEFAULT_$LINE"
8170                           else
8171                             no_cache=1
8172                           fi
8173
8174                           ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8175
8176 fi;
8177
8178           eval "$ac_cv_use_textctrl"
8179           if test "$no_cache" != 1; then
8180             echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8181           fi
8182
8183           if test "$wxUSE_TEXTCTRL" = yes; then
8184             echo "$as_me:$LINENO: result: yes" >&5
8185 echo "${ECHO_T}yes" >&6
8186           else
8187             echo "$as_me:$LINENO: result: no" >&5
8188 echo "${ECHO_T}no" >&6
8189           fi
8190
8191
8192           enablestring=
8193           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8194 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8195           no_cache=0
8196           # Check whether --enable-togglebtn or --disable-togglebtn was given.
8197 if test "${enable_togglebtn+set}" = set; then
8198   enableval="$enable_togglebtn"
8199
8200                           if test "$enableval" = yes; then
8201                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8202                           else
8203                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8204                           fi
8205
8206 else
8207
8208                           LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8209                           if test "x$LINE" != x ; then
8210                             eval "DEFAULT_$LINE"
8211                           else
8212                             no_cache=1
8213                           fi
8214
8215                           ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8216
8217 fi;
8218
8219           eval "$ac_cv_use_togglebtn"
8220           if test "$no_cache" != 1; then
8221             echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8222           fi
8223
8224           if test "$wxUSE_TOGGLEBTN" = yes; then
8225             echo "$as_me:$LINENO: result: yes" >&5
8226 echo "${ECHO_T}yes" >&6
8227           else
8228             echo "$as_me:$LINENO: result: no" >&5
8229 echo "${ECHO_T}no" >&6
8230           fi
8231
8232
8233           enablestring=
8234           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8235 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8236           no_cache=0
8237           # Check whether --enable-toolbar or --disable-toolbar was given.
8238 if test "${enable_toolbar+set}" = set; then
8239   enableval="$enable_toolbar"
8240
8241                           if test "$enableval" = yes; then
8242                             ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8243                           else
8244                             ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8245                           fi
8246
8247 else
8248
8249                           LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8250                           if test "x$LINE" != x ; then
8251                             eval "DEFAULT_$LINE"
8252                           else
8253                             no_cache=1
8254                           fi
8255
8256                           ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8257
8258 fi;
8259
8260           eval "$ac_cv_use_toolbar"
8261           if test "$no_cache" != 1; then
8262             echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8263           fi
8264
8265           if test "$wxUSE_TOOLBAR" = yes; then
8266             echo "$as_me:$LINENO: result: yes" >&5
8267 echo "${ECHO_T}yes" >&6
8268           else
8269             echo "$as_me:$LINENO: result: no" >&5
8270 echo "${ECHO_T}no" >&6
8271           fi
8272
8273
8274           enablestring=
8275           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8276 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8277           no_cache=0
8278           # Check whether --enable-tbarnative or --disable-tbarnative was given.
8279 if test "${enable_tbarnative+set}" = set; then
8280   enableval="$enable_tbarnative"
8281
8282                           if test "$enableval" = yes; then
8283                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8284                           else
8285                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8286                           fi
8287
8288 else
8289
8290                           LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8291                           if test "x$LINE" != x ; then
8292                             eval "DEFAULT_$LINE"
8293                           else
8294                             no_cache=1
8295                           fi
8296
8297                           ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8298
8299 fi;
8300
8301           eval "$ac_cv_use_tbarnative"
8302           if test "$no_cache" != 1; then
8303             echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8304           fi
8305
8306           if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8307             echo "$as_me:$LINENO: result: yes" >&5
8308 echo "${ECHO_T}yes" >&6
8309           else
8310             echo "$as_me:$LINENO: result: no" >&5
8311 echo "${ECHO_T}no" >&6
8312           fi
8313
8314
8315           enablestring=
8316           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8317 echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8318           no_cache=0
8319           # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8320 if test "${enable_tbarsmpl+set}" = set; then
8321   enableval="$enable_tbarsmpl"
8322
8323                           if test "$enableval" = yes; then
8324                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8325                           else
8326                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8327                           fi
8328
8329 else
8330
8331                           LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8332                           if test "x$LINE" != x ; then
8333                             eval "DEFAULT_$LINE"
8334                           else
8335                             no_cache=1
8336                           fi
8337
8338                           ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8339
8340 fi;
8341
8342           eval "$ac_cv_use_tbarsmpl"
8343           if test "$no_cache" != 1; then
8344             echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8345           fi
8346
8347           if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8348             echo "$as_me:$LINENO: result: yes" >&5
8349 echo "${ECHO_T}yes" >&6
8350           else
8351             echo "$as_me:$LINENO: result: no" >&5
8352 echo "${ECHO_T}no" >&6
8353           fi
8354
8355
8356           enablestring=
8357           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8358 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8359           no_cache=0
8360           # Check whether --enable-treectrl or --disable-treectrl was given.
8361 if test "${enable_treectrl+set}" = set; then
8362   enableval="$enable_treectrl"
8363
8364                           if test "$enableval" = yes; then
8365                             ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8366                           else
8367                             ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8368                           fi
8369
8370 else
8371
8372                           LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8373                           if test "x$LINE" != x ; then
8374                             eval "DEFAULT_$LINE"
8375                           else
8376                             no_cache=1
8377                           fi
8378
8379                           ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8380
8381 fi;
8382
8383           eval "$ac_cv_use_treectrl"
8384           if test "$no_cache" != 1; then
8385             echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8386           fi
8387
8388           if test "$wxUSE_TREECTRL" = yes; then
8389             echo "$as_me:$LINENO: result: yes" >&5
8390 echo "${ECHO_T}yes" >&6
8391           else
8392             echo "$as_me:$LINENO: result: no" >&5
8393 echo "${ECHO_T}no" >&6
8394           fi
8395
8396
8397           enablestring=
8398           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8399 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8400           no_cache=0
8401           # Check whether --enable-tipwindow or --disable-tipwindow was given.
8402 if test "${enable_tipwindow+set}" = set; then
8403   enableval="$enable_tipwindow"
8404
8405                           if test "$enableval" = yes; then
8406                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8407                           else
8408                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8409                           fi
8410
8411 else
8412
8413                           LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8414                           if test "x$LINE" != x ; then
8415                             eval "DEFAULT_$LINE"
8416                           else
8417                             no_cache=1
8418                           fi
8419
8420                           ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8421
8422 fi;
8423
8424           eval "$ac_cv_use_tipwindow"
8425           if test "$no_cache" != 1; then
8426             echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8427           fi
8428
8429           if test "$wxUSE_TIPWINDOW" = yes; then
8430             echo "$as_me:$LINENO: result: yes" >&5
8431 echo "${ECHO_T}yes" >&6
8432           else
8433             echo "$as_me:$LINENO: result: no" >&5
8434 echo "${ECHO_T}no" >&6
8435           fi
8436
8437
8438           enablestring=
8439           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8440 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8441           no_cache=0
8442           # Check whether --enable-popupwin or --disable-popupwin was given.
8443 if test "${enable_popupwin+set}" = set; then
8444   enableval="$enable_popupwin"
8445
8446                           if test "$enableval" = yes; then
8447                             ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8448                           else
8449                             ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8450                           fi
8451
8452 else
8453
8454                           LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8455                           if test "x$LINE" != x ; then
8456                             eval "DEFAULT_$LINE"
8457                           else
8458                             no_cache=1
8459                           fi
8460
8461                           ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8462
8463 fi;
8464
8465           eval "$ac_cv_use_popupwin"
8466           if test "$no_cache" != 1; then
8467             echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8468           fi
8469
8470           if test "$wxUSE_POPUPWIN" = yes; then
8471             echo "$as_me:$LINENO: result: yes" >&5
8472 echo "${ECHO_T}yes" >&6
8473           else
8474             echo "$as_me:$LINENO: result: no" >&5
8475 echo "${ECHO_T}no" >&6
8476           fi
8477
8478
8479
8480
8481           enablestring=
8482           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8483 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8484           no_cache=0
8485           # Check whether --enable-commondlg or --disable-commondlg was given.
8486 if test "${enable_commondlg+set}" = set; then
8487   enableval="$enable_commondlg"
8488
8489                           if test "$enableval" = yes; then
8490                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8491                           else
8492                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8493                           fi
8494
8495 else
8496
8497                           LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8498                           if test "x$LINE" != x ; then
8499                             eval "DEFAULT_$LINE"
8500                           else
8501                             no_cache=1
8502                           fi
8503
8504                           ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8505
8506 fi;
8507
8508           eval "$ac_cv_use_commondlg"
8509           if test "$no_cache" != 1; then
8510             echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8511           fi
8512
8513           if test "$wxUSE_COMMONDLGS" = yes; then
8514             echo "$as_me:$LINENO: result: yes" >&5
8515 echo "${ECHO_T}yes" >&6
8516           else
8517             echo "$as_me:$LINENO: result: no" >&5
8518 echo "${ECHO_T}no" >&6
8519           fi
8520
8521
8522           enablestring=
8523           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8524 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8525           no_cache=0
8526           # Check whether --enable-choicedlg or --disable-choicedlg was given.
8527 if test "${enable_choicedlg+set}" = set; then
8528   enableval="$enable_choicedlg"
8529
8530                           if test "$enableval" = yes; then
8531                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8532                           else
8533                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8534                           fi
8535
8536 else
8537
8538                           LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8539                           if test "x$LINE" != x ; then
8540                             eval "DEFAULT_$LINE"
8541                           else
8542                             no_cache=1
8543                           fi
8544
8545                           ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8546
8547 fi;
8548
8549           eval "$ac_cv_use_choicedlg"
8550           if test "$no_cache" != 1; then
8551             echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8552           fi
8553
8554           if test "$wxUSE_CHOICEDLG" = yes; then
8555             echo "$as_me:$LINENO: result: yes" >&5
8556 echo "${ECHO_T}yes" >&6
8557           else
8558             echo "$as_me:$LINENO: result: no" >&5
8559 echo "${ECHO_T}no" >&6
8560           fi
8561
8562
8563           enablestring=
8564           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8565 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8566           no_cache=0
8567           # Check whether --enable-coldlg or --disable-coldlg was given.
8568 if test "${enable_coldlg+set}" = set; then
8569   enableval="$enable_coldlg"
8570
8571                           if test "$enableval" = yes; then
8572                             ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8573                           else
8574                             ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8575                           fi
8576
8577 else
8578
8579                           LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8580                           if test "x$LINE" != x ; then
8581                             eval "DEFAULT_$LINE"
8582                           else
8583                             no_cache=1
8584                           fi
8585
8586                           ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8587
8588 fi;
8589
8590           eval "$ac_cv_use_coldlg"
8591           if test "$no_cache" != 1; then
8592             echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8593           fi
8594
8595           if test "$wxUSE_COLOURDLG" = yes; then
8596             echo "$as_me:$LINENO: result: yes" >&5
8597 echo "${ECHO_T}yes" >&6
8598           else
8599             echo "$as_me:$LINENO: result: no" >&5
8600 echo "${ECHO_T}no" >&6
8601           fi
8602
8603
8604           enablestring=
8605           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8606 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8607           no_cache=0
8608           # Check whether --enable-filedlg or --disable-filedlg was given.
8609 if test "${enable_filedlg+set}" = set; then
8610   enableval="$enable_filedlg"
8611
8612                           if test "$enableval" = yes; then
8613                             ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8614                           else
8615                             ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8616                           fi
8617
8618 else
8619
8620                           LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8621                           if test "x$LINE" != x ; then
8622                             eval "DEFAULT_$LINE"
8623                           else
8624                             no_cache=1
8625                           fi
8626
8627                           ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8628
8629 fi;
8630
8631           eval "$ac_cv_use_filedlg"
8632           if test "$no_cache" != 1; then
8633             echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8634           fi
8635
8636           if test "$wxUSE_FILEDLG" = yes; then
8637             echo "$as_me:$LINENO: result: yes" >&5
8638 echo "${ECHO_T}yes" >&6
8639           else
8640             echo "$as_me:$LINENO: result: no" >&5
8641 echo "${ECHO_T}no" >&6
8642           fi
8643
8644
8645           enablestring=
8646           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8647 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8648           no_cache=0
8649           # Check whether --enable-finddlg or --disable-finddlg was given.
8650 if test "${enable_finddlg+set}" = set; then
8651   enableval="$enable_finddlg"
8652
8653                           if test "$enableval" = yes; then
8654                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8655                           else
8656                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8657                           fi
8658
8659 else
8660
8661                           LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8662                           if test "x$LINE" != x ; then
8663                             eval "DEFAULT_$LINE"
8664                           else
8665                             no_cache=1
8666                           fi
8667
8668                           ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8669
8670 fi;
8671
8672           eval "$ac_cv_use_finddlg"
8673           if test "$no_cache" != 1; then
8674             echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8675           fi
8676
8677           if test "$wxUSE_FINDREPLDLG" = yes; then
8678             echo "$as_me:$LINENO: result: yes" >&5
8679 echo "${ECHO_T}yes" >&6
8680           else
8681             echo "$as_me:$LINENO: result: no" >&5
8682 echo "${ECHO_T}no" >&6
8683           fi
8684
8685
8686           enablestring=
8687           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8688 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8689           no_cache=0
8690           # Check whether --enable-fontdlg or --disable-fontdlg was given.
8691 if test "${enable_fontdlg+set}" = set; then
8692   enableval="$enable_fontdlg"
8693
8694                           if test "$enableval" = yes; then
8695                             ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8696                           else
8697                             ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8698                           fi
8699
8700 else
8701
8702                           LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8703                           if test "x$LINE" != x ; then
8704                             eval "DEFAULT_$LINE"
8705                           else
8706                             no_cache=1
8707                           fi
8708
8709                           ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8710
8711 fi;
8712
8713           eval "$ac_cv_use_fontdlg"
8714           if test "$no_cache" != 1; then
8715             echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8716           fi
8717
8718           if test "$wxUSE_FONTDLG" = yes; then
8719             echo "$as_me:$LINENO: result: yes" >&5
8720 echo "${ECHO_T}yes" >&6
8721           else
8722             echo "$as_me:$LINENO: result: no" >&5
8723 echo "${ECHO_T}no" >&6
8724           fi
8725
8726
8727           enablestring=
8728           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8729 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8730           no_cache=0
8731           # Check whether --enable-dirdlg or --disable-dirdlg was given.
8732 if test "${enable_dirdlg+set}" = set; then
8733   enableval="$enable_dirdlg"
8734
8735                           if test "$enableval" = yes; then
8736                             ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8737                           else
8738                             ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8739                           fi
8740
8741 else
8742
8743                           LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8744                           if test "x$LINE" != x ; then
8745                             eval "DEFAULT_$LINE"
8746                           else
8747                             no_cache=1
8748                           fi
8749
8750                           ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
8751
8752 fi;
8753
8754           eval "$ac_cv_use_dirdlg"
8755           if test "$no_cache" != 1; then
8756             echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
8757           fi
8758
8759           if test "$wxUSE_DIRDLG" = yes; then
8760             echo "$as_me:$LINENO: result: yes" >&5
8761 echo "${ECHO_T}yes" >&6
8762           else
8763             echo "$as_me:$LINENO: result: no" >&5
8764 echo "${ECHO_T}no" >&6
8765           fi
8766
8767
8768           enablestring=
8769           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8770 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
8771           no_cache=0
8772           # Check whether --enable-msgdlg or --disable-msgdlg was given.
8773 if test "${enable_msgdlg+set}" = set; then
8774   enableval="$enable_msgdlg"
8775
8776                           if test "$enableval" = yes; then
8777                             ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
8778                           else
8779                             ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
8780                           fi
8781
8782 else
8783
8784                           LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
8785                           if test "x$LINE" != x ; then
8786                             eval "DEFAULT_$LINE"
8787                           else
8788                             no_cache=1
8789                           fi
8790
8791                           ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
8792
8793 fi;
8794
8795           eval "$ac_cv_use_msgdlg"
8796           if test "$no_cache" != 1; then
8797             echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
8798           fi
8799
8800           if test "$wxUSE_MSGDLG" = yes; then
8801             echo "$as_me:$LINENO: result: yes" >&5
8802 echo "${ECHO_T}yes" >&6
8803           else
8804             echo "$as_me:$LINENO: result: no" >&5
8805 echo "${ECHO_T}no" >&6
8806           fi
8807
8808
8809           enablestring=
8810           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8811 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
8812           no_cache=0
8813           # Check whether --enable-numberdlg or --disable-numberdlg was given.
8814 if test "${enable_numberdlg+set}" = set; then
8815   enableval="$enable_numberdlg"
8816
8817                           if test "$enableval" = yes; then
8818                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
8819                           else
8820                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
8821                           fi
8822
8823 else
8824
8825                           LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
8826                           if test "x$LINE" != x ; then
8827                             eval "DEFAULT_$LINE"
8828                           else
8829                             no_cache=1
8830                           fi
8831
8832                           ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
8833
8834 fi;
8835
8836           eval "$ac_cv_use_numberdlg"
8837           if test "$no_cache" != 1; then
8838             echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
8839           fi
8840
8841           if test "$wxUSE_NUMBERDLG" = yes; then
8842             echo "$as_me:$LINENO: result: yes" >&5
8843 echo "${ECHO_T}yes" >&6
8844           else
8845             echo "$as_me:$LINENO: result: no" >&5
8846 echo "${ECHO_T}no" >&6
8847           fi
8848
8849
8850           enablestring=
8851           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8852 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
8853           no_cache=0
8854           # Check whether --enable-splash or --disable-splash was given.
8855 if test "${enable_splash+set}" = set; then
8856   enableval="$enable_splash"
8857
8858                           if test "$enableval" = yes; then
8859                             ac_cv_use_splash='wxUSE_SPLASH=yes'
8860                           else
8861                             ac_cv_use_splash='wxUSE_SPLASH=no'
8862                           fi
8863
8864 else
8865
8866                           LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8867                           if test "x$LINE" != x ; then
8868                             eval "DEFAULT_$LINE"
8869                           else
8870                             no_cache=1
8871                           fi
8872
8873                           ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
8874
8875 fi;
8876
8877           eval "$ac_cv_use_splash"
8878           if test "$no_cache" != 1; then
8879             echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8880           fi
8881
8882           if test "$wxUSE_SPLASH" = yes; then
8883             echo "$as_me:$LINENO: result: yes" >&5
8884 echo "${ECHO_T}yes" >&6
8885           else
8886             echo "$as_me:$LINENO: result: no" >&5
8887 echo "${ECHO_T}no" >&6
8888           fi
8889
8890
8891           enablestring=
8892           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8893 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
8894           no_cache=0
8895           # Check whether --enable-textdlg or --disable-textdlg was given.
8896 if test "${enable_textdlg+set}" = set; then
8897   enableval="$enable_textdlg"
8898
8899                           if test "$enableval" = yes; then
8900                             ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8901                           else
8902                             ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8903                           fi
8904
8905 else
8906
8907                           LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8908                           if test "x$LINE" != x ; then
8909                             eval "DEFAULT_$LINE"
8910                           else
8911                             no_cache=1
8912                           fi
8913
8914                           ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
8915
8916 fi;
8917
8918           eval "$ac_cv_use_textdlg"
8919           if test "$no_cache" != 1; then
8920             echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8921           fi
8922
8923           if test "$wxUSE_TEXTDLG" = yes; then
8924             echo "$as_me:$LINENO: result: yes" >&5
8925 echo "${ECHO_T}yes" >&6
8926           else
8927             echo "$as_me:$LINENO: result: no" >&5
8928 echo "${ECHO_T}no" >&6
8929           fi
8930
8931
8932           enablestring=
8933           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8934 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
8935           no_cache=0
8936           # Check whether --enable-tipdlg or --disable-tipdlg was given.
8937 if test "${enable_tipdlg+set}" = set; then
8938   enableval="$enable_tipdlg"
8939
8940                           if test "$enableval" = yes; then
8941                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8942                           else
8943                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8944                           fi
8945
8946 else
8947
8948                           LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8949                           if test "x$LINE" != x ; then
8950                             eval "DEFAULT_$LINE"
8951                           else
8952                             no_cache=1
8953                           fi
8954
8955                           ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
8956
8957 fi;
8958
8959           eval "$ac_cv_use_tipdlg"
8960           if test "$no_cache" != 1; then
8961             echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8962           fi
8963
8964           if test "$wxUSE_STARTUP_TIPS" = yes; then
8965             echo "$as_me:$LINENO: result: yes" >&5
8966 echo "${ECHO_T}yes" >&6
8967           else
8968             echo "$as_me:$LINENO: result: no" >&5
8969 echo "${ECHO_T}no" >&6
8970           fi
8971
8972
8973           enablestring=
8974           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8975 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
8976           no_cache=0
8977           # Check whether --enable-progressdlg or --disable-progressdlg was given.
8978 if test "${enable_progressdlg+set}" = set; then
8979   enableval="$enable_progressdlg"
8980
8981                           if test "$enableval" = yes; then
8982                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8983                           else
8984                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8985                           fi
8986
8987 else
8988
8989                           LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8990                           if test "x$LINE" != x ; then
8991                             eval "DEFAULT_$LINE"
8992                           else
8993                             no_cache=1
8994                           fi
8995
8996                           ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
8997
8998 fi;
8999
9000           eval "$ac_cv_use_progressdlg"
9001           if test "$no_cache" != 1; then
9002             echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9003           fi
9004
9005           if test "$wxUSE_PROGRESSDLG" = yes; then
9006             echo "$as_me:$LINENO: result: yes" >&5
9007 echo "${ECHO_T}yes" >&6
9008           else
9009             echo "$as_me:$LINENO: result: no" >&5
9010 echo "${ECHO_T}no" >&6
9011           fi
9012
9013
9014           enablestring=
9015           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9016 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9017           no_cache=0
9018           # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9019 if test "${enable_wizarddlg+set}" = set; then
9020   enableval="$enable_wizarddlg"
9021
9022                           if test "$enableval" = yes; then
9023                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9024                           else
9025                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9026                           fi
9027
9028 else
9029
9030                           LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9031                           if test "x$LINE" != x ; then
9032                             eval "DEFAULT_$LINE"
9033                           else
9034                             no_cache=1
9035                           fi
9036
9037                           ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9038
9039 fi;
9040
9041           eval "$ac_cv_use_wizarddlg"
9042           if test "$no_cache" != 1; then
9043             echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9044           fi
9045
9046           if test "$wxUSE_WIZARDDLG" = yes; then
9047             echo "$as_me:$LINENO: result: yes" >&5
9048 echo "${ECHO_T}yes" >&6
9049           else
9050             echo "$as_me:$LINENO: result: no" >&5
9051 echo "${ECHO_T}no" >&6
9052           fi
9053
9054
9055
9056
9057           enablestring=
9058           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9059 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9060           no_cache=0
9061           # Check whether --enable-menus or --disable-menus was given.
9062 if test "${enable_menus+set}" = set; then
9063   enableval="$enable_menus"
9064
9065                           if test "$enableval" = yes; then
9066                             ac_cv_use_menus='wxUSE_MENUS=yes'
9067                           else
9068                             ac_cv_use_menus='wxUSE_MENUS=no'
9069                           fi
9070
9071 else
9072
9073                           LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9074                           if test "x$LINE" != x ; then
9075                             eval "DEFAULT_$LINE"
9076                           else
9077                             no_cache=1
9078                           fi
9079
9080                           ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9081
9082 fi;
9083
9084           eval "$ac_cv_use_menus"
9085           if test "$no_cache" != 1; then
9086             echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9087           fi
9088
9089           if test "$wxUSE_MENUS" = yes; then
9090             echo "$as_me:$LINENO: result: yes" >&5
9091 echo "${ECHO_T}yes" >&6
9092           else
9093             echo "$as_me:$LINENO: result: no" >&5
9094 echo "${ECHO_T}no" >&6
9095           fi
9096
9097
9098           enablestring=
9099           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9100 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9101           no_cache=0
9102           # Check whether --enable-miniframe or --disable-miniframe was given.
9103 if test "${enable_miniframe+set}" = set; then
9104   enableval="$enable_miniframe"
9105
9106                           if test "$enableval" = yes; then
9107                             ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9108                           else
9109                             ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9110                           fi
9111
9112 else
9113
9114                           LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9115                           if test "x$LINE" != x ; then
9116                             eval "DEFAULT_$LINE"
9117                           else
9118                             no_cache=1
9119                           fi
9120
9121                           ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9122
9123 fi;
9124
9125           eval "$ac_cv_use_miniframe"
9126           if test "$no_cache" != 1; then
9127             echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9128           fi
9129
9130           if test "$wxUSE_MINIFRAME" = yes; then
9131             echo "$as_me:$LINENO: result: yes" >&5
9132 echo "${ECHO_T}yes" >&6
9133           else
9134             echo "$as_me:$LINENO: result: no" >&5
9135 echo "${ECHO_T}no" >&6
9136           fi
9137
9138
9139           enablestring=
9140           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9141 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9142           no_cache=0
9143           # Check whether --enable-tooltips or --disable-tooltips was given.
9144 if test "${enable_tooltips+set}" = set; then
9145   enableval="$enable_tooltips"
9146
9147                           if test "$enableval" = yes; then
9148                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9149                           else
9150                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9151                           fi
9152
9153 else
9154
9155                           LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9156                           if test "x$LINE" != x ; then
9157                             eval "DEFAULT_$LINE"
9158                           else
9159                             no_cache=1
9160                           fi
9161
9162                           ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9163
9164 fi;
9165
9166           eval "$ac_cv_use_tooltips"
9167           if test "$no_cache" != 1; then
9168             echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9169           fi
9170
9171           if test "$wxUSE_TOOLTIPS" = yes; then
9172             echo "$as_me:$LINENO: result: yes" >&5
9173 echo "${ECHO_T}yes" >&6
9174           else
9175             echo "$as_me:$LINENO: result: no" >&5
9176 echo "${ECHO_T}no" >&6
9177           fi
9178
9179
9180           enablestring=
9181           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9182 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9183           no_cache=0
9184           # Check whether --enable-splines or --disable-splines was given.
9185 if test "${enable_splines+set}" = set; then
9186   enableval="$enable_splines"
9187
9188                           if test "$enableval" = yes; then
9189                             ac_cv_use_splines='wxUSE_SPLINES=yes'
9190                           else
9191                             ac_cv_use_splines='wxUSE_SPLINES=no'
9192                           fi
9193
9194 else
9195
9196                           LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9197                           if test "x$LINE" != x ; then
9198                             eval "DEFAULT_$LINE"
9199                           else
9200                             no_cache=1
9201                           fi
9202
9203                           ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9204
9205 fi;
9206
9207           eval "$ac_cv_use_splines"
9208           if test "$no_cache" != 1; then
9209             echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9210           fi
9211
9212           if test "$wxUSE_SPLINES" = yes; then
9213             echo "$as_me:$LINENO: result: yes" >&5
9214 echo "${ECHO_T}yes" >&6
9215           else
9216             echo "$as_me:$LINENO: result: no" >&5
9217 echo "${ECHO_T}no" >&6
9218           fi
9219
9220
9221           enablestring=
9222           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9223 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9224           no_cache=0
9225           # Check whether --enable-validators or --disable-validators was given.
9226 if test "${enable_validators+set}" = set; then
9227   enableval="$enable_validators"
9228
9229                           if test "$enableval" = yes; then
9230                             ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9231                           else
9232                             ac_cv_use_validators='wxUSE_VALIDATORS=no'
9233                           fi
9234
9235 else
9236
9237                           LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9238                           if test "x$LINE" != x ; then
9239                             eval "DEFAULT_$LINE"
9240                           else
9241                             no_cache=1
9242                           fi
9243
9244                           ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9245
9246 fi;
9247
9248           eval "$ac_cv_use_validators"
9249           if test "$no_cache" != 1; then
9250             echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9251           fi
9252
9253           if test "$wxUSE_VALIDATORS" = yes; then
9254             echo "$as_me:$LINENO: result: yes" >&5
9255 echo "${ECHO_T}yes" >&6
9256           else
9257             echo "$as_me:$LINENO: result: no" >&5
9258 echo "${ECHO_T}no" >&6
9259           fi
9260
9261
9262           enablestring=
9263           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9264 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9265           no_cache=0
9266           # Check whether --enable-busyinfo or --disable-busyinfo was given.
9267 if test "${enable_busyinfo+set}" = set; then
9268   enableval="$enable_busyinfo"
9269
9270                           if test "$enableval" = yes; then
9271                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9272                           else
9273                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9274                           fi
9275
9276 else
9277
9278                           LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9279                           if test "x$LINE" != x ; then
9280                             eval "DEFAULT_$LINE"
9281                           else
9282                             no_cache=1
9283                           fi
9284
9285                           ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9286
9287 fi;
9288
9289           eval "$ac_cv_use_busyinfo"
9290           if test "$no_cache" != 1; then
9291             echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9292           fi
9293
9294           if test "$wxUSE_BUSYINFO" = yes; then
9295             echo "$as_me:$LINENO: result: yes" >&5
9296 echo "${ECHO_T}yes" >&6
9297           else
9298             echo "$as_me:$LINENO: result: no" >&5
9299 echo "${ECHO_T}no" >&6
9300           fi
9301
9302
9303           enablestring=
9304           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9305 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9306           no_cache=0
9307           # Check whether --enable-joystick or --disable-joystick was given.
9308 if test "${enable_joystick+set}" = set; then
9309   enableval="$enable_joystick"
9310
9311                           if test "$enableval" = yes; then
9312                             ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9313                           else
9314                             ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9315                           fi
9316
9317 else
9318
9319                           LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9320                           if test "x$LINE" != x ; then
9321                             eval "DEFAULT_$LINE"
9322                           else
9323                             no_cache=1
9324                           fi
9325
9326                           ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9327
9328 fi;
9329
9330           eval "$ac_cv_use_joystick"
9331           if test "$no_cache" != 1; then
9332             echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9333           fi
9334
9335           if test "$wxUSE_JOYSTICK" = yes; then
9336             echo "$as_me:$LINENO: result: yes" >&5
9337 echo "${ECHO_T}yes" >&6
9338           else
9339             echo "$as_me:$LINENO: result: no" >&5
9340 echo "${ECHO_T}no" >&6
9341           fi
9342
9343
9344           enablestring=
9345           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9346 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9347           no_cache=0
9348           # Check whether --enable-metafile or --disable-metafile was given.
9349 if test "${enable_metafile+set}" = set; then
9350   enableval="$enable_metafile"
9351
9352                           if test "$enableval" = yes; then
9353                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
9354                           else
9355                             ac_cv_use_metafile='wxUSE_METAFILE=no'
9356                           fi
9357
9358 else
9359
9360                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9361                           if test "x$LINE" != x ; then
9362                             eval "DEFAULT_$LINE"
9363                           else
9364                             no_cache=1
9365                           fi
9366
9367                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9368
9369 fi;
9370
9371           eval "$ac_cv_use_metafile"
9372           if test "$no_cache" != 1; then
9373             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9374           fi
9375
9376           if test "$wxUSE_METAFILE" = yes; then
9377             echo "$as_me:$LINENO: result: yes" >&5
9378 echo "${ECHO_T}yes" >&6
9379           else
9380             echo "$as_me:$LINENO: result: no" >&5
9381 echo "${ECHO_T}no" >&6
9382           fi
9383
9384
9385           enablestring=
9386           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9387 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9388           no_cache=0
9389           # Check whether --enable-dragimage or --disable-dragimage was given.
9390 if test "${enable_dragimage+set}" = set; then
9391   enableval="$enable_dragimage"
9392
9393                           if test "$enableval" = yes; then
9394                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9395                           else
9396                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9397                           fi
9398
9399 else
9400
9401                           LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9402                           if test "x$LINE" != x ; then
9403                             eval "DEFAULT_$LINE"
9404                           else
9405                             no_cache=1
9406                           fi
9407
9408                           ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9409
9410 fi;
9411
9412           eval "$ac_cv_use_dragimage"
9413           if test "$no_cache" != 1; then
9414             echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9415           fi
9416
9417           if test "$wxUSE_DRAGIMAGE" = yes; then
9418             echo "$as_me:$LINENO: result: yes" >&5
9419 echo "${ECHO_T}yes" >&6
9420           else
9421             echo "$as_me:$LINENO: result: no" >&5
9422 echo "${ECHO_T}no" >&6
9423           fi
9424
9425
9426           enablestring=
9427           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9428 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9429           no_cache=0
9430           # Check whether --enable-accessibility or --disable-accessibility was given.
9431 if test "${enable_accessibility+set}" = set; then
9432   enableval="$enable_accessibility"
9433
9434                           if test "$enableval" = yes; then
9435                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9436                           else
9437                             ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9438                           fi
9439
9440 else
9441
9442                           LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9443                           if test "x$LINE" != x ; then
9444                             eval "DEFAULT_$LINE"
9445                           else
9446                             no_cache=1
9447                           fi
9448
9449                           ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9450
9451 fi;
9452
9453           eval "$ac_cv_use_accessibility"
9454           if test "$no_cache" != 1; then
9455             echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9456           fi
9457
9458           if test "$wxUSE_ACCESSIBILITY" = yes; then
9459             echo "$as_me:$LINENO: result: yes" >&5
9460 echo "${ECHO_T}yes" >&6
9461           else
9462             echo "$as_me:$LINENO: result: no" >&5
9463 echo "${ECHO_T}no" >&6
9464           fi
9465
9466
9467
9468
9469           enablestring=
9470           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9471 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9472           no_cache=0
9473           # Check whether --enable-palette or --disable-palette was given.
9474 if test "${enable_palette+set}" = set; then
9475   enableval="$enable_palette"
9476
9477                           if test "$enableval" = yes; then
9478                             ac_cv_use_palette='wxUSE_PALETTE=yes'
9479                           else
9480                             ac_cv_use_palette='wxUSE_PALETTE=no'
9481                           fi
9482
9483 else
9484
9485                           LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9486                           if test "x$LINE" != x ; then
9487                             eval "DEFAULT_$LINE"
9488                           else
9489                             no_cache=1
9490                           fi
9491
9492                           ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9493
9494 fi;
9495
9496           eval "$ac_cv_use_palette"
9497           if test "$no_cache" != 1; then
9498             echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9499           fi
9500
9501           if test "$wxUSE_PALETTE" = yes; then
9502             echo "$as_me:$LINENO: result: yes" >&5
9503 echo "${ECHO_T}yes" >&6
9504           else
9505             echo "$as_me:$LINENO: result: no" >&5
9506 echo "${ECHO_T}no" >&6
9507           fi
9508
9509
9510           enablestring=
9511           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9512 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9513           no_cache=0
9514           # Check whether --enable-image or --disable-image was given.
9515 if test "${enable_image+set}" = set; then
9516   enableval="$enable_image"
9517
9518                           if test "$enableval" = yes; then
9519                             ac_cv_use_image='wxUSE_IMAGE=yes'
9520                           else
9521                             ac_cv_use_image='wxUSE_IMAGE=no'
9522                           fi
9523
9524 else
9525
9526                           LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9527                           if test "x$LINE" != x ; then
9528                             eval "DEFAULT_$LINE"
9529                           else
9530                             no_cache=1
9531                           fi
9532
9533                           ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9534
9535 fi;
9536
9537           eval "$ac_cv_use_image"
9538           if test "$no_cache" != 1; then
9539             echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9540           fi
9541
9542           if test "$wxUSE_IMAGE" = yes; then
9543             echo "$as_me:$LINENO: result: yes" >&5
9544 echo "${ECHO_T}yes" >&6
9545           else
9546             echo "$as_me:$LINENO: result: no" >&5
9547 echo "${ECHO_T}no" >&6
9548           fi
9549
9550
9551           enablestring=
9552           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9553 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9554           no_cache=0
9555           # Check whether --enable-gif or --disable-gif was given.
9556 if test "${enable_gif+set}" = set; then
9557   enableval="$enable_gif"
9558
9559                           if test "$enableval" = yes; then
9560                             ac_cv_use_gif='wxUSE_GIF=yes'
9561                           else
9562                             ac_cv_use_gif='wxUSE_GIF=no'
9563                           fi
9564
9565 else
9566
9567                           LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9568                           if test "x$LINE" != x ; then
9569                             eval "DEFAULT_$LINE"
9570                           else
9571                             no_cache=1
9572                           fi
9573
9574                           ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9575
9576 fi;
9577
9578           eval "$ac_cv_use_gif"
9579           if test "$no_cache" != 1; then
9580             echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9581           fi
9582
9583           if test "$wxUSE_GIF" = yes; then
9584             echo "$as_me:$LINENO: result: yes" >&5
9585 echo "${ECHO_T}yes" >&6
9586           else
9587             echo "$as_me:$LINENO: result: no" >&5
9588 echo "${ECHO_T}no" >&6
9589           fi
9590
9591
9592           enablestring=
9593           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9594 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9595           no_cache=0
9596           # Check whether --enable-pcx or --disable-pcx was given.
9597 if test "${enable_pcx+set}" = set; then
9598   enableval="$enable_pcx"
9599
9600                           if test "$enableval" = yes; then
9601                             ac_cv_use_pcx='wxUSE_PCX=yes'
9602                           else
9603                             ac_cv_use_pcx='wxUSE_PCX=no'
9604                           fi
9605
9606 else
9607
9608                           LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9609                           if test "x$LINE" != x ; then
9610                             eval "DEFAULT_$LINE"
9611                           else
9612                             no_cache=1
9613                           fi
9614
9615                           ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9616
9617 fi;
9618
9619           eval "$ac_cv_use_pcx"
9620           if test "$no_cache" != 1; then
9621             echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9622           fi
9623
9624           if test "$wxUSE_PCX" = yes; then
9625             echo "$as_me:$LINENO: result: yes" >&5
9626 echo "${ECHO_T}yes" >&6
9627           else
9628             echo "$as_me:$LINENO: result: no" >&5
9629 echo "${ECHO_T}no" >&6
9630           fi
9631
9632
9633           enablestring=
9634           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9635 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9636           no_cache=0
9637           # Check whether --enable-iff or --disable-iff was given.
9638 if test "${enable_iff+set}" = set; then
9639   enableval="$enable_iff"
9640
9641                           if test "$enableval" = yes; then
9642                             ac_cv_use_iff='wxUSE_IFF=yes'
9643                           else
9644                             ac_cv_use_iff='wxUSE_IFF=no'
9645                           fi
9646
9647 else
9648
9649                           LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9650                           if test "x$LINE" != x ; then
9651                             eval "DEFAULT_$LINE"
9652                           else
9653                             no_cache=1
9654                           fi
9655
9656                           ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9657
9658 fi;
9659
9660           eval "$ac_cv_use_iff"
9661           if test "$no_cache" != 1; then
9662             echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9663           fi
9664
9665           if test "$wxUSE_IFF" = yes; then
9666             echo "$as_me:$LINENO: result: yes" >&5
9667 echo "${ECHO_T}yes" >&6
9668           else
9669             echo "$as_me:$LINENO: result: no" >&5
9670 echo "${ECHO_T}no" >&6
9671           fi
9672
9673
9674           enablestring=
9675           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9676 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9677           no_cache=0
9678           # Check whether --enable-pnm or --disable-pnm was given.
9679 if test "${enable_pnm+set}" = set; then
9680   enableval="$enable_pnm"
9681
9682                           if test "$enableval" = yes; then
9683                             ac_cv_use_pnm='wxUSE_PNM=yes'
9684                           else
9685                             ac_cv_use_pnm='wxUSE_PNM=no'
9686                           fi
9687
9688 else
9689
9690                           LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9691                           if test "x$LINE" != x ; then
9692                             eval "DEFAULT_$LINE"
9693                           else
9694                             no_cache=1
9695                           fi
9696
9697                           ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9698
9699 fi;
9700
9701           eval "$ac_cv_use_pnm"
9702           if test "$no_cache" != 1; then
9703             echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9704           fi
9705
9706           if test "$wxUSE_PNM" = yes; then
9707             echo "$as_me:$LINENO: result: yes" >&5
9708 echo "${ECHO_T}yes" >&6
9709           else
9710             echo "$as_me:$LINENO: result: no" >&5
9711 echo "${ECHO_T}no" >&6
9712           fi
9713
9714
9715           enablestring=
9716           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9717 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9718           no_cache=0
9719           # Check whether --enable-xpm or --disable-xpm was given.
9720 if test "${enable_xpm+set}" = set; then
9721   enableval="$enable_xpm"
9722
9723                           if test "$enableval" = yes; then
9724                             ac_cv_use_xpm='wxUSE_XPM=yes'
9725                           else
9726                             ac_cv_use_xpm='wxUSE_XPM=no'
9727                           fi
9728
9729 else
9730
9731                           LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9732                           if test "x$LINE" != x ; then
9733                             eval "DEFAULT_$LINE"
9734                           else
9735                             no_cache=1
9736                           fi
9737
9738                           ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9739
9740 fi;
9741
9742           eval "$ac_cv_use_xpm"
9743           if test "$no_cache" != 1; then
9744             echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9745           fi
9746
9747           if test "$wxUSE_XPM" = yes; then
9748             echo "$as_me:$LINENO: result: yes" >&5
9749 echo "${ECHO_T}yes" >&6
9750           else
9751             echo "$as_me:$LINENO: result: no" >&5
9752 echo "${ECHO_T}no" >&6
9753           fi
9754
9755
9756           enablestring=
9757           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9758 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
9759           no_cache=0
9760           # Check whether --enable-ico_cur or --disable-ico_cur was given.
9761 if test "${enable_ico_cur+set}" = set; then
9762   enableval="$enable_ico_cur"
9763
9764                           if test "$enableval" = yes; then
9765                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
9766                           else
9767                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
9768                           fi
9769
9770 else
9771
9772                           LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9773                           if test "x$LINE" != x ; then
9774                             eval "DEFAULT_$LINE"
9775                           else
9776                             no_cache=1
9777                           fi
9778
9779                           ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
9780
9781 fi;
9782
9783           eval "$ac_cv_use_ico_cur"
9784           if test "$no_cache" != 1; then
9785             echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
9786           fi
9787
9788           if test "$wxUSE_ICO_CUR" = yes; then
9789             echo "$as_me:$LINENO: result: yes" >&5
9790 echo "${ECHO_T}yes" >&6
9791           else
9792             echo "$as_me:$LINENO: result: no" >&5
9793 echo "${ECHO_T}no" >&6
9794           fi
9795
9796
9797 fi
9798
9799
9800
9801           enablestring=
9802           echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9803 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9804           no_cache=0
9805           # Check whether --enable-official_build or --disable-official_build was given.
9806 if test "${enable_official_build+set}" = set; then
9807   enableval="$enable_official_build"
9808
9809                           if test "$enableval" = yes; then
9810                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9811                           else
9812                             ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9813                           fi
9814
9815 else
9816
9817                           LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9818                           if test "x$LINE" != x ; then
9819                             eval "DEFAULT_$LINE"
9820                           else
9821                             no_cache=1
9822                           fi
9823
9824                           ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9825
9826 fi;
9827
9828           eval "$ac_cv_use_official_build"
9829           if test "$no_cache" != 1; then
9830             echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9831           fi
9832
9833           if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9834             echo "$as_me:$LINENO: result: yes" >&5
9835 echo "${ECHO_T}yes" >&6
9836           else
9837             echo "$as_me:$LINENO: result: no" >&5
9838 echo "${ECHO_T}no" >&6
9839           fi
9840
9841 # Check whether --enable-vendor or --disable-vendor was given.
9842 if test "${enable_vendor+set}" = set; then
9843   enableval="$enable_vendor"
9844   VENDOR="$enableval"
9845 fi;
9846 if test "x$VENDOR" = "x"; then
9847     VENDOR="custom"
9848 fi
9849
9850 case "${host}" in
9851   *-pc-os2_emx | *-pc-os2-emx )
9852     PATH_IFS=';'
9853   ;;
9854   *)
9855     PATH_IFS=':'
9856   ;;
9857 esac
9858
9859
9860
9861           echo "saving argument cache $wx_arg_cache_file"
9862           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
9863
9864
9865
9866 echo "$as_me:$LINENO: checking for toolkit" >&5
9867 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
9868
9869 # In Wine, we need to default to MSW, not GTK or MOTIF
9870 if test "$wxUSE_WINE" = "yes"; then
9871     DEFAULT_DEFAULT_wxUSE_GTK=0
9872     DEFAULT_DEFAULT_wxUSE_MOTIF=0
9873     DEFAULT_DEFAULT_wxUSE_MSW=1
9874     wxUSE_SHARED=no
9875 fi
9876
9877 if test "$wxUSE_GUI" = "yes"; then
9878
9879     if test "$USE_BEOS" = 1; then
9880         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9881 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9882    { (exit 1); exit 1; }; }
9883     fi
9884
9885     if test "$TOOLKIT_GIVEN" = 1; then
9886             for toolkit in `echo $ALL_TOOLKITS`; do
9887         var=wxUSE_$toolkit
9888         eval "value=\$${var}"
9889         eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9890       done
9891     else
9892             for toolkit in `echo $ALL_TOOLKITS`; do
9893         if test "$has_toolkit_in_cache" != 1; then
9894           var=DEFAULT_DEFAULT_wxUSE_$toolkit
9895         else
9896           var=DEFAULT_wxUSE_$toolkit
9897         fi
9898         eval "wxUSE_$toolkit=\$${var}"
9899       done
9900     fi
9901
9902             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9903                   + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9904                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
9905
9906         case "${host}" in
9907       *-pc-os2_emx | *-pc-os2-emx )
9908         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
9909     esac
9910
9911     case "$NUM_TOOLKITS" in
9912       1)
9913       ;;
9914       0)
9915         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9916 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9917    { (exit 1); exit 1; }; }
9918       ;;
9919       *)
9920         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9921 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9922    { (exit 1); exit 1; }; }
9923     esac
9924
9925         for toolkit in `echo $ALL_TOOLKITS`; do
9926       var=wxUSE_$toolkit
9927       eval "value=\$${var}"
9928       if test "x$value" != x; then
9929         cache_var=CACHE_$toolkit
9930         eval "cache=\$${cache_var}"
9931         if test "$cache" = 1; then
9932           echo "$var=$value" >> ${wx_arg_cache_file}
9933         fi
9934         if test "$value" = 1; then
9935           toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
9936           echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9937 echo "${ECHO_T}$toolkit_echo" >&6
9938         fi
9939       fi
9940     done
9941 else
9942     if test "x$host_alias" != "x"; then
9943         echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
9944 echo "${ECHO_T}base ($host_alias hosted) only" >&6
9945     else
9946         echo "$as_me:$LINENO: result: base only" >&5
9947 echo "${ECHO_T}base only" >&6
9948     fi
9949 fi
9950
9951 wants_win32=0
9952 doesnt_want_win32=0
9953 case "${host}" in
9954   *-*-cygwin*)
9955       if test "$wxUSE_MSW" = 1 ; then
9956         wants_win32=1
9957       else
9958         doesnt_want_win32=1
9959       fi
9960   ;;
9961   *-*-mingw*)
9962       wants_win32=1
9963   ;;
9964 esac
9965
9966 if test "$wxUSE_WINE" = "yes"; then
9967     wants_win32=1
9968         CC=winegcc
9969     CXX=wineg++
9970     RESCOMP=wrc
9971     LDFLAGS_GUI="-mwindows"
9972 fi
9973
9974 if test "$wants_win32" = 1 ; then
9975     USE_UNIX=0
9976     USE_WIN32=1
9977     cat >>confdefs.h <<\_ACEOF
9978 #define __WIN32__ 1
9979 _ACEOF
9980
9981     cat >>confdefs.h <<\_ACEOF
9982 #define __WIN95__ 1
9983 _ACEOF
9984
9985     cat >>confdefs.h <<\_ACEOF
9986 #define __WINDOWS__ 1
9987 _ACEOF
9988
9989     cat >>confdefs.h <<\_ACEOF
9990 #define __GNUWIN32__ 1
9991 _ACEOF
9992
9993     cat >>confdefs.h <<\_ACEOF
9994 #define STRICT 1
9995 _ACEOF
9996
9997     cat >>confdefs.h <<\_ACEOF
9998 #define WINVER 0x0400
9999 _ACEOF
10000
10001 fi
10002 if test "$doesnt_want_win32" = 1 ; then
10003     USE_UNIX=1
10004     USE_WIN32=0
10005 fi
10006
10007 if test "$USE_UNIX" = 1 ; then
10008     wxUSE_UNIX=yes
10009     cat >>confdefs.h <<\_ACEOF
10010 #define __UNIX__ 1
10011 _ACEOF
10012
10013 fi
10014
10015
10016 cat >confcache <<\_ACEOF
10017 # This file is a shell script that caches the results of configure
10018 # tests run on this system so they can be shared between configure
10019 # scripts and configure runs, see configure's option --config-cache.
10020 # It is not useful on other systems.  If it contains results you don't
10021 # want to keep, you may remove or edit it.
10022 #
10023 # config.status only pays attention to the cache file if you give it
10024 # the --recheck option to rerun configure.
10025 #
10026 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10027 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10028 # following values.
10029
10030 _ACEOF
10031
10032 # The following way of writing the cache mishandles newlines in values,
10033 # but we know of no workaround that is simple, portable, and efficient.
10034 # So, don't put newlines in cache variables' values.
10035 # Ultrix sh set writes to stderr and can't be redirected directly,
10036 # and sets the high bit in the cache file unless we assign to the vars.
10037 {
10038   (set) 2>&1 |
10039     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10040     *ac_space=\ *)
10041       # `set' does not quote correctly, so add quotes (double-quote
10042       # substitution turns \\\\ into \\, and sed turns \\ into \).
10043       sed -n \
10044         "s/'/'\\\\''/g;
10045           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10046       ;;
10047     *)
10048       # `set' quotes correctly as required by POSIX, so do not add quotes.
10049       sed -n \
10050         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10051       ;;
10052     esac;
10053 } |
10054   sed '
10055      t clear
10056      : clear
10057      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10058      t end
10059      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10060      : end' >>confcache
10061 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10062   if test -w $cache_file; then
10063     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10064     cat confcache >$cache_file
10065   else
10066     echo "not updating unwritable cache $cache_file"
10067   fi
10068 fi
10069 rm -f confcache
10070
10071 if test "$build" != "$host" ; then
10072     if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
10073         CC=$host_alias-gcc
10074         CXX=$host_alias-c++
10075         AR=$host_alias-ar
10076         RANLIB=$host_alias-ranlib
10077         DLLTOOL=$host_alias-dlltool
10078         RESCOMP=$host_alias-windres
10079         LD=$host_alias-ld
10080         NM=$host_alias-nm
10081         STRIP=$host_alias-strip
10082     else
10083         { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10084 echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10085    { (exit 1); exit 1; }; }
10086     fi
10087 fi
10088
10089 CFLAGS=${CFLAGS:=}
10090 ac_ext=c
10091 ac_cpp='$CPP $CPPFLAGS'
10092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10095 if test -n "$ac_tool_prefix"; then
10096   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10097 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10098 echo "$as_me:$LINENO: checking for $ac_word" >&5
10099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10100 if test "${ac_cv_prog_CC+set}" = set; then
10101   echo $ECHO_N "(cached) $ECHO_C" >&6
10102 else
10103   if test -n "$CC"; then
10104   ac_cv_prog_CC="$CC" # Let the user override the test.
10105 else
10106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10107 for as_dir in $PATH
10108 do
10109   IFS=$as_save_IFS
10110   test -z "$as_dir" && as_dir=.
10111   for ac_exec_ext in '' $ac_executable_extensions; do
10112   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10113     ac_cv_prog_CC="${ac_tool_prefix}gcc"
10114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10115     break 2
10116   fi
10117 done
10118 done
10119
10120 fi
10121 fi
10122 CC=$ac_cv_prog_CC
10123 if test -n "$CC"; then
10124   echo "$as_me:$LINENO: result: $CC" >&5
10125 echo "${ECHO_T}$CC" >&6
10126 else
10127   echo "$as_me:$LINENO: result: no" >&5
10128 echo "${ECHO_T}no" >&6
10129 fi
10130
10131 fi
10132 if test -z "$ac_cv_prog_CC"; then
10133   ac_ct_CC=$CC
10134   # Extract the first word of "gcc", so it can be a program name with args.
10135 set dummy gcc; ac_word=$2
10136 echo "$as_me:$LINENO: checking for $ac_word" >&5
10137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10138 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10139   echo $ECHO_N "(cached) $ECHO_C" >&6
10140 else
10141   if test -n "$ac_ct_CC"; then
10142   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10143 else
10144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10145 for as_dir in $PATH
10146 do
10147   IFS=$as_save_IFS
10148   test -z "$as_dir" && as_dir=.
10149   for ac_exec_ext in '' $ac_executable_extensions; do
10150   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10151     ac_cv_prog_ac_ct_CC="gcc"
10152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10153     break 2
10154   fi
10155 done
10156 done
10157
10158 fi
10159 fi
10160 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10161 if test -n "$ac_ct_CC"; then
10162   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10163 echo "${ECHO_T}$ac_ct_CC" >&6
10164 else
10165   echo "$as_me:$LINENO: result: no" >&5
10166 echo "${ECHO_T}no" >&6
10167 fi
10168
10169   CC=$ac_ct_CC
10170 else
10171   CC="$ac_cv_prog_CC"
10172 fi
10173
10174 if test -z "$CC"; then
10175   if test -n "$ac_tool_prefix"; then
10176   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10177 set dummy ${ac_tool_prefix}cc; ac_word=$2
10178 echo "$as_me:$LINENO: checking for $ac_word" >&5
10179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10180 if test "${ac_cv_prog_CC+set}" = set; then
10181   echo $ECHO_N "(cached) $ECHO_C" >&6
10182 else
10183   if test -n "$CC"; then
10184   ac_cv_prog_CC="$CC" # Let the user override the test.
10185 else
10186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10187 for as_dir in $PATH
10188 do
10189   IFS=$as_save_IFS
10190   test -z "$as_dir" && as_dir=.
10191   for ac_exec_ext in '' $ac_executable_extensions; do
10192   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10193     ac_cv_prog_CC="${ac_tool_prefix}cc"
10194     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10195     break 2
10196   fi
10197 done
10198 done
10199
10200 fi
10201 fi
10202 CC=$ac_cv_prog_CC
10203 if test -n "$CC"; then
10204   echo "$as_me:$LINENO: result: $CC" >&5
10205 echo "${ECHO_T}$CC" >&6
10206 else
10207   echo "$as_me:$LINENO: result: no" >&5
10208 echo "${ECHO_T}no" >&6
10209 fi
10210
10211 fi
10212 if test -z "$ac_cv_prog_CC"; then
10213   ac_ct_CC=$CC
10214   # Extract the first word of "cc", so it can be a program name with args.
10215 set dummy cc; ac_word=$2
10216 echo "$as_me:$LINENO: checking for $ac_word" >&5
10217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10218 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10219   echo $ECHO_N "(cached) $ECHO_C" >&6
10220 else
10221   if test -n "$ac_ct_CC"; then
10222   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10223 else
10224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10225 for as_dir in $PATH
10226 do
10227   IFS=$as_save_IFS
10228   test -z "$as_dir" && as_dir=.
10229   for ac_exec_ext in '' $ac_executable_extensions; do
10230   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10231     ac_cv_prog_ac_ct_CC="cc"
10232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10233     break 2
10234   fi
10235 done
10236 done
10237
10238 fi
10239 fi
10240 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10241 if test -n "$ac_ct_CC"; then
10242   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10243 echo "${ECHO_T}$ac_ct_CC" >&6
10244 else
10245   echo "$as_me:$LINENO: result: no" >&5
10246 echo "${ECHO_T}no" >&6
10247 fi
10248
10249   CC=$ac_ct_CC
10250 else
10251   CC="$ac_cv_prog_CC"
10252 fi
10253
10254 fi
10255 if test -z "$CC"; then
10256   # Extract the first word of "cc", so it can be a program name with args.
10257 set dummy cc; ac_word=$2
10258 echo "$as_me:$LINENO: checking for $ac_word" >&5
10259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10260 if test "${ac_cv_prog_CC+set}" = set; then
10261   echo $ECHO_N "(cached) $ECHO_C" >&6
10262 else
10263   if test -n "$CC"; then
10264   ac_cv_prog_CC="$CC" # Let the user override the test.
10265 else
10266   ac_prog_rejected=no
10267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10268 for as_dir in $PATH
10269 do
10270   IFS=$as_save_IFS
10271   test -z "$as_dir" && as_dir=.
10272   for ac_exec_ext in '' $ac_executable_extensions; do
10273   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10274     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10275        ac_prog_rejected=yes
10276        continue
10277      fi
10278     ac_cv_prog_CC="cc"
10279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10280     break 2
10281   fi
10282 done
10283 done
10284
10285 if test $ac_prog_rejected = yes; then
10286   # We found a bogon in the path, so make sure we never use it.
10287   set dummy $ac_cv_prog_CC
10288   shift
10289   if test $# != 0; then
10290     # We chose a different compiler from the bogus one.
10291     # However, it has the same basename, so the bogon will be chosen
10292     # first if we set CC to just the basename; use the full file name.
10293     shift
10294     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10295   fi
10296 fi
10297 fi
10298 fi
10299 CC=$ac_cv_prog_CC
10300 if test -n "$CC"; then
10301   echo "$as_me:$LINENO: result: $CC" >&5
10302 echo "${ECHO_T}$CC" >&6
10303 else
10304   echo "$as_me:$LINENO: result: no" >&5
10305 echo "${ECHO_T}no" >&6
10306 fi
10307
10308 fi
10309 if test -z "$CC"; then
10310   if test -n "$ac_tool_prefix"; then
10311   for ac_prog in cl
10312   do
10313     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10314 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10315 echo "$as_me:$LINENO: checking for $ac_word" >&5
10316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10317 if test "${ac_cv_prog_CC+set}" = set; then
10318   echo $ECHO_N "(cached) $ECHO_C" >&6
10319 else
10320   if test -n "$CC"; then
10321   ac_cv_prog_CC="$CC" # Let the user override the test.
10322 else
10323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10324 for as_dir in $PATH
10325 do
10326   IFS=$as_save_IFS
10327   test -z "$as_dir" && as_dir=.
10328   for ac_exec_ext in '' $ac_executable_extensions; do
10329   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10330     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10331     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10332     break 2
10333   fi
10334 done
10335 done
10336
10337 fi
10338 fi
10339 CC=$ac_cv_prog_CC
10340 if test -n "$CC"; then
10341   echo "$as_me:$LINENO: result: $CC" >&5
10342 echo "${ECHO_T}$CC" >&6
10343 else
10344   echo "$as_me:$LINENO: result: no" >&5
10345 echo "${ECHO_T}no" >&6
10346 fi
10347
10348     test -n "$CC" && break
10349   done
10350 fi
10351 if test -z "$CC"; then
10352   ac_ct_CC=$CC
10353   for ac_prog in cl
10354 do
10355   # Extract the first word of "$ac_prog", so it can be a program name with args.
10356 set dummy $ac_prog; ac_word=$2
10357 echo "$as_me:$LINENO: checking for $ac_word" >&5
10358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10359 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10360   echo $ECHO_N "(cached) $ECHO_C" >&6
10361 else
10362   if test -n "$ac_ct_CC"; then
10363   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10364 else
10365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10366 for as_dir in $PATH
10367 do
10368   IFS=$as_save_IFS
10369   test -z "$as_dir" && as_dir=.
10370   for ac_exec_ext in '' $ac_executable_extensions; do
10371   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10372     ac_cv_prog_ac_ct_CC="$ac_prog"
10373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10374     break 2
10375   fi
10376 done
10377 done
10378
10379 fi
10380 fi
10381 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10382 if test -n "$ac_ct_CC"; then
10383   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10384 echo "${ECHO_T}$ac_ct_CC" >&6
10385 else
10386   echo "$as_me:$LINENO: result: no" >&5
10387 echo "${ECHO_T}no" >&6
10388 fi
10389
10390   test -n "$ac_ct_CC" && break
10391 done
10392
10393   CC=$ac_ct_CC
10394 fi
10395
10396 fi
10397
10398
10399 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10400 See \`config.log' for more details." >&5
10401 echo "$as_me: error: no acceptable C compiler found in \$PATH
10402 See \`config.log' for more details." >&2;}
10403    { (exit 1); exit 1; }; }
10404
10405 # Provide some information about the compiler.
10406 echo "$as_me:$LINENO:" \
10407      "checking for C compiler version" >&5
10408 ac_compiler=`set X $ac_compile; echo $2`
10409 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10410   (eval $ac_compiler --version </dev/null >&5) 2>&5
10411   ac_status=$?
10412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413   (exit $ac_status); }
10414 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10415   (eval $ac_compiler -v </dev/null >&5) 2>&5
10416   ac_status=$?
10417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418   (exit $ac_status); }
10419 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10420   (eval $ac_compiler -V </dev/null >&5) 2>&5
10421   ac_status=$?
10422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423   (exit $ac_status); }
10424
10425 cat >conftest.$ac_ext <<_ACEOF
10426 /* confdefs.h.  */
10427 _ACEOF
10428 cat confdefs.h >>conftest.$ac_ext
10429 cat >>conftest.$ac_ext <<_ACEOF
10430 /* end confdefs.h.  */
10431
10432 int
10433 main ()
10434 {
10435
10436   ;
10437   return 0;
10438 }
10439 _ACEOF
10440 ac_clean_files_save=$ac_clean_files
10441 ac_clean_files="$ac_clean_files a.out a.exe b.out"
10442 # Try to create an executable without -o first, disregard a.out.
10443 # It will help us diagnose broken compilers, and finding out an intuition
10444 # of exeext.
10445 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10446 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
10447 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10448 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10449   (eval $ac_link_default) 2>&5
10450   ac_status=$?
10451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452   (exit $ac_status); }; then
10453   # Find the output, starting from the most likely.  This scheme is
10454 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
10455 # resort.
10456
10457 # Be careful to initialize this variable, since it used to be cached.
10458 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10459 ac_cv_exeext=
10460 # b.out is created by i960 compilers.
10461 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10462 do
10463   test -f "$ac_file" || continue
10464   case $ac_file in
10465     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
10466         ;;
10467     conftest.$ac_ext )
10468         # This is the source file.
10469         ;;
10470     [ab].out )
10471         # We found the default executable, but exeext='' is most
10472         # certainly right.
10473         break;;
10474     *.* )
10475         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10476         # FIXME: I believe we export ac_cv_exeext for Libtool,
10477         # but it would be cool to find out if it's true.  Does anybody
10478         # maintain Libtool? --akim.
10479         export ac_cv_exeext
10480         break;;
10481     * )
10482         break;;
10483   esac
10484 done
10485 else
10486   echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10488
10489 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
10490 See \`config.log' for more details." >&5
10491 echo "$as_me: error: C compiler cannot create executables
10492 See \`config.log' for more details." >&2;}
10493    { (exit 77); exit 77; }; }
10494 fi
10495
10496 ac_exeext=$ac_cv_exeext
10497 echo "$as_me:$LINENO: result: $ac_file" >&5
10498 echo "${ECHO_T}$ac_file" >&6
10499
10500 # Check the compiler produces executables we can run.  If not, either
10501 # the compiler is broken, or we cross compile.
10502 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10503 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10504 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10505 # If not cross compiling, check that we can run a simple program.
10506 if test "$cross_compiling" != yes; then
10507   if { ac_try='./$ac_file'
10508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10509   (eval $ac_try) 2>&5
10510   ac_status=$?
10511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512   (exit $ac_status); }; }; then
10513     cross_compiling=no
10514   else
10515     if test "$cross_compiling" = maybe; then
10516         cross_compiling=yes
10517     else
10518         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10519 If you meant to cross compile, use \`--host'.
10520 See \`config.log' for more details." >&5
10521 echo "$as_me: error: cannot run C compiled programs.
10522 If you meant to cross compile, use \`--host'.
10523 See \`config.log' for more details." >&2;}
10524    { (exit 1); exit 1; }; }
10525     fi
10526   fi
10527 fi
10528 echo "$as_me:$LINENO: result: yes" >&5
10529 echo "${ECHO_T}yes" >&6
10530
10531 rm -f a.out a.exe conftest$ac_cv_exeext b.out
10532 ac_clean_files=$ac_clean_files_save
10533 # Check the compiler produces executables we can run.  If not, either
10534 # the compiler is broken, or we cross compile.
10535 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10536 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10537 echo "$as_me:$LINENO: result: $cross_compiling" >&5
10538 echo "${ECHO_T}$cross_compiling" >&6
10539
10540 echo "$as_me:$LINENO: checking for suffix of executables" >&5
10541 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10543   (eval $ac_link) 2>&5
10544   ac_status=$?
10545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546   (exit $ac_status); }; then
10547   # If both `conftest.exe' and `conftest' are `present' (well, observable)
10548 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
10549 # work properly (i.e., refer to `conftest.exe'), while it won't with
10550 # `rm'.
10551 for ac_file in conftest.exe conftest conftest.*; do
10552   test -f "$ac_file" || continue
10553   case $ac_file in
10554     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10555     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10556           export ac_cv_exeext
10557           break;;
10558     * ) break;;
10559   esac
10560 done
10561 else
10562   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10563 See \`config.log' for more details." >&5
10564 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10565 See \`config.log' for more details." >&2;}
10566    { (exit 1); exit 1; }; }
10567 fi
10568
10569 rm -f conftest$ac_cv_exeext
10570 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10571 echo "${ECHO_T}$ac_cv_exeext" >&6
10572
10573 rm -f conftest.$ac_ext
10574 EXEEXT=$ac_cv_exeext
10575 ac_exeext=$EXEEXT
10576 echo "$as_me:$LINENO: checking for suffix of object files" >&5
10577 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10578 if test "${ac_cv_objext+set}" = set; then
10579   echo $ECHO_N "(cached) $ECHO_C" >&6
10580 else
10581   cat >conftest.$ac_ext <<_ACEOF
10582 /* confdefs.h.  */
10583 _ACEOF
10584 cat confdefs.h >>conftest.$ac_ext
10585 cat >>conftest.$ac_ext <<_ACEOF
10586 /* end confdefs.h.  */
10587
10588 int
10589 main ()
10590 {
10591
10592   ;
10593   return 0;
10594 }
10595 _ACEOF
10596 rm -f conftest.o conftest.obj
10597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10598   (eval $ac_compile) 2>&5
10599   ac_status=$?
10600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601   (exit $ac_status); }; then
10602   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10603   case $ac_file in
10604     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10605     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10606        break;;
10607   esac
10608 done
10609 else
10610   echo "$as_me: failed program was:" >&5
10611 sed 's/^/| /' conftest.$ac_ext >&5
10612
10613 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10614 See \`config.log' for more details." >&5
10615 echo "$as_me: error: cannot compute suffix of object files: cannot compile
10616 See \`config.log' for more details." >&2;}
10617    { (exit 1); exit 1; }; }
10618 fi
10619
10620 rm -f conftest.$ac_cv_objext conftest.$ac_ext
10621 fi
10622 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10623 echo "${ECHO_T}$ac_cv_objext" >&6
10624 OBJEXT=$ac_cv_objext
10625 ac_objext=$OBJEXT
10626 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10627 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10628 if test "${ac_cv_c_compiler_gnu+set}" = set; then
10629   echo $ECHO_N "(cached) $ECHO_C" >&6
10630 else
10631   cat >conftest.$ac_ext <<_ACEOF
10632 /* confdefs.h.  */
10633 _ACEOF
10634 cat confdefs.h >>conftest.$ac_ext
10635 cat >>conftest.$ac_ext <<_ACEOF
10636 /* end confdefs.h.  */
10637
10638 int
10639 main ()
10640 {
10641 #ifndef __GNUC__
10642        choke me
10643 #endif
10644
10645   ;
10646   return 0;
10647 }
10648 _ACEOF
10649 rm -f conftest.$ac_objext
10650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10651   (eval $ac_compile) 2>conftest.er1
10652   ac_status=$?
10653   grep -v '^ *+' conftest.er1 >conftest.err
10654   rm -f conftest.er1
10655   cat conftest.err >&5
10656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657   (exit $ac_status); } &&
10658          { ac_try='test -z "$ac_c_werror_flag"
10659                          || test ! -s conftest.err'
10660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10661   (eval $ac_try) 2>&5
10662   ac_status=$?
10663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664   (exit $ac_status); }; } &&
10665          { ac_try='test -s conftest.$ac_objext'
10666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10667   (eval $ac_try) 2>&5
10668   ac_status=$?
10669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670   (exit $ac_status); }; }; then
10671   ac_compiler_gnu=yes
10672 else
10673   echo "$as_me: failed program was:" >&5
10674 sed 's/^/| /' conftest.$ac_ext >&5
10675
10676 ac_compiler_gnu=no
10677 fi
10678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10679 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10680
10681 fi
10682 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10683 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10684 GCC=`test $ac_compiler_gnu = yes && echo yes`
10685 ac_test_CFLAGS=${CFLAGS+set}
10686 ac_save_CFLAGS=$CFLAGS
10687 CFLAGS="-g"
10688 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10689 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10690 if test "${ac_cv_prog_cc_g+set}" = set; then
10691   echo $ECHO_N "(cached) $ECHO_C" >&6
10692 else
10693   cat >conftest.$ac_ext <<_ACEOF
10694 /* confdefs.h.  */
10695 _ACEOF
10696 cat confdefs.h >>conftest.$ac_ext
10697 cat >>conftest.$ac_ext <<_ACEOF
10698 /* end confdefs.h.  */
10699
10700 int
10701 main ()
10702 {
10703
10704   ;
10705   return 0;
10706 }
10707 _ACEOF
10708 rm -f conftest.$ac_objext
10709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10710   (eval $ac_compile) 2>conftest.er1
10711   ac_status=$?
10712   grep -v '^ *+' conftest.er1 >conftest.err
10713   rm -f conftest.er1
10714   cat conftest.err >&5
10715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716   (exit $ac_status); } &&
10717          { ac_try='test -z "$ac_c_werror_flag"
10718                          || test ! -s conftest.err'
10719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10720   (eval $ac_try) 2>&5
10721   ac_status=$?
10722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723   (exit $ac_status); }; } &&
10724          { ac_try='test -s conftest.$ac_objext'
10725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10726   (eval $ac_try) 2>&5
10727   ac_status=$?
10728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729   (exit $ac_status); }; }; then
10730   ac_cv_prog_cc_g=yes
10731 else
10732   echo "$as_me: failed program was:" >&5
10733 sed 's/^/| /' conftest.$ac_ext >&5
10734
10735 ac_cv_prog_cc_g=no
10736 fi
10737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10738 fi
10739 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10740 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10741 if test "$ac_test_CFLAGS" = set; then
10742   CFLAGS=$ac_save_CFLAGS
10743 elif test $ac_cv_prog_cc_g = yes; then
10744   if test "$GCC" = yes; then
10745     CFLAGS="-g -O2"
10746   else
10747     CFLAGS="-g"
10748   fi
10749 else
10750   if test "$GCC" = yes; then
10751     CFLAGS="-O2"
10752   else
10753     CFLAGS=
10754   fi
10755 fi
10756 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10757 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10758 if test "${ac_cv_prog_cc_stdc+set}" = set; then
10759   echo $ECHO_N "(cached) $ECHO_C" >&6
10760 else
10761   ac_cv_prog_cc_stdc=no
10762 ac_save_CC=$CC
10763 cat >conftest.$ac_ext <<_ACEOF
10764 /* confdefs.h.  */
10765 _ACEOF
10766 cat confdefs.h >>conftest.$ac_ext
10767 cat >>conftest.$ac_ext <<_ACEOF
10768 /* end confdefs.h.  */
10769 #include <stdarg.h>
10770 #include <stdio.h>
10771 #include <sys/types.h>
10772 #include <sys/stat.h>
10773 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
10774 struct buf { int x; };
10775 FILE * (*rcsopen) (struct buf *, struct stat *, int);
10776 static char *e (p, i)
10777      char **p;
10778      int i;
10779 {
10780   return p[i];
10781 }
10782 static char *f (char * (*g) (char **, int), char **p, ...)
10783 {
10784   char *s;
10785   va_list v;
10786   va_start (v,p);
10787   s = g (p, va_arg (v,int));
10788   va_end (v);
10789   return s;
10790 }
10791
10792 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
10793    function prototypes and stuff, but not '\xHH' hex character constants.
10794    These don't provoke an error unfortunately, instead are silently treated
10795    as 'x'.  The following induces an error, until -std1 is added to get
10796    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
10797    array size at least.  It's necessary to write '\x00'==0 to get something
10798    that's true only with -std1.  */
10799 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10800
10801 int test (int i, double x);
10802 struct s1 {int (*f) (int a);};
10803 struct s2 {int (*f) (double a);};
10804 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10805 int argc;
10806 char **argv;
10807 int
10808 main ()
10809 {
10810 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
10811   ;
10812   return 0;
10813 }
10814 _ACEOF
10815 # Don't try gcc -ansi; that turns off useful extensions and
10816 # breaks some systems' header files.
10817 # AIX                   -qlanglvl=ansi
10818 # Ultrix and OSF/1      -std1
10819 # HP-UX 10.20 and later -Ae
10820 # HP-UX older versions  -Aa -D_HPUX_SOURCE
10821 # SVR4                  -Xc -D__EXTENSIONS__
10822 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10823 do
10824   CC="$ac_save_CC $ac_arg"
10825   rm -f conftest.$ac_objext
10826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10827   (eval $ac_compile) 2>conftest.er1
10828   ac_status=$?
10829   grep -v '^ *+' conftest.er1 >conftest.err
10830   rm -f conftest.er1
10831   cat conftest.err >&5
10832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833   (exit $ac_status); } &&
10834          { ac_try='test -z "$ac_c_werror_flag"
10835                          || test ! -s conftest.err'
10836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10837   (eval $ac_try) 2>&5
10838   ac_status=$?
10839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10840   (exit $ac_status); }; } &&
10841          { ac_try='test -s conftest.$ac_objext'
10842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10843   (eval $ac_try) 2>&5
10844   ac_status=$?
10845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846   (exit $ac_status); }; }; then
10847   ac_cv_prog_cc_stdc=$ac_arg
10848 break
10849 else
10850   echo "$as_me: failed program was:" >&5
10851 sed 's/^/| /' conftest.$ac_ext >&5
10852
10853 fi
10854 rm -f conftest.err conftest.$ac_objext
10855 done
10856 rm -f conftest.$ac_ext conftest.$ac_objext
10857 CC=$ac_save_CC
10858
10859 fi
10860
10861 case "x$ac_cv_prog_cc_stdc" in
10862   x|xno)
10863     echo "$as_me:$LINENO: result: none needed" >&5
10864 echo "${ECHO_T}none needed" >&6 ;;
10865   *)
10866     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10867 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10868     CC="$CC $ac_cv_prog_cc_stdc" ;;
10869 esac
10870
10871 # Some people use a C++ compiler to compile C.  Since we use `exit',
10872 # in C++ we need to declare it.  In case someone uses the same compiler
10873 # for both compiling C and C++ we need to have the C++ compiler decide
10874 # the declaration of exit, since it's the most demanding environment.
10875 cat >conftest.$ac_ext <<_ACEOF
10876 #ifndef __cplusplus
10877   choke me
10878 #endif
10879 _ACEOF
10880 rm -f conftest.$ac_objext
10881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10882   (eval $ac_compile) 2>conftest.er1
10883   ac_status=$?
10884   grep -v '^ *+' conftest.er1 >conftest.err
10885   rm -f conftest.er1
10886   cat conftest.err >&5
10887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888   (exit $ac_status); } &&
10889          { ac_try='test -z "$ac_c_werror_flag"
10890                          || test ! -s conftest.err'
10891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10892   (eval $ac_try) 2>&5
10893   ac_status=$?
10894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895   (exit $ac_status); }; } &&
10896          { ac_try='test -s conftest.$ac_objext'
10897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10898   (eval $ac_try) 2>&5
10899   ac_status=$?
10900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901   (exit $ac_status); }; }; then
10902   for ac_declaration in \
10903    '' \
10904    'extern "C" void std::exit (int) throw (); using std::exit;' \
10905    'extern "C" void std::exit (int); using std::exit;' \
10906    'extern "C" void exit (int) throw ();' \
10907    'extern "C" void exit (int);' \
10908    'void exit (int);'
10909 do
10910   cat >conftest.$ac_ext <<_ACEOF
10911 /* confdefs.h.  */
10912 _ACEOF
10913 cat confdefs.h >>conftest.$ac_ext
10914 cat >>conftest.$ac_ext <<_ACEOF
10915 /* end confdefs.h.  */
10916 $ac_declaration
10917 #include <stdlib.h>
10918 int
10919 main ()
10920 {
10921 exit (42);
10922   ;
10923   return 0;
10924 }
10925 _ACEOF
10926 rm -f conftest.$ac_objext
10927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10928   (eval $ac_compile) 2>conftest.er1
10929   ac_status=$?
10930   grep -v '^ *+' conftest.er1 >conftest.err
10931   rm -f conftest.er1
10932   cat conftest.err >&5
10933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934   (exit $ac_status); } &&
10935          { ac_try='test -z "$ac_c_werror_flag"
10936                          || test ! -s conftest.err'
10937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10938   (eval $ac_try) 2>&5
10939   ac_status=$?
10940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941   (exit $ac_status); }; } &&
10942          { ac_try='test -s conftest.$ac_objext'
10943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10944   (eval $ac_try) 2>&5
10945   ac_status=$?
10946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947   (exit $ac_status); }; }; then
10948   :
10949 else
10950   echo "$as_me: failed program was:" >&5
10951 sed 's/^/| /' conftest.$ac_ext >&5
10952
10953 continue
10954 fi
10955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10956   cat >conftest.$ac_ext <<_ACEOF
10957 /* confdefs.h.  */
10958 _ACEOF
10959 cat confdefs.h >>conftest.$ac_ext
10960 cat >>conftest.$ac_ext <<_ACEOF
10961 /* end confdefs.h.  */
10962 $ac_declaration
10963 int
10964 main ()
10965 {
10966 exit (42);
10967   ;
10968   return 0;
10969 }
10970 _ACEOF
10971 rm -f conftest.$ac_objext
10972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10973   (eval $ac_compile) 2>conftest.er1
10974   ac_status=$?
10975   grep -v '^ *+' conftest.er1 >conftest.err
10976   rm -f conftest.er1
10977   cat conftest.err >&5
10978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979   (exit $ac_status); } &&
10980          { ac_try='test -z "$ac_c_werror_flag"
10981                          || test ! -s conftest.err'
10982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10983   (eval $ac_try) 2>&5
10984   ac_status=$?
10985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986   (exit $ac_status); }; } &&
10987          { ac_try='test -s conftest.$ac_objext'
10988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10989   (eval $ac_try) 2>&5
10990   ac_status=$?
10991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992   (exit $ac_status); }; }; then
10993   break
10994 else
10995   echo "$as_me: failed program was:" >&5
10996 sed 's/^/| /' conftest.$ac_ext >&5
10997
10998 fi
10999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11000 done
11001 rm -f conftest*
11002 if test -n "$ac_declaration"; then
11003   echo '#ifdef __cplusplus' >>confdefs.h
11004   echo $ac_declaration      >>confdefs.h
11005   echo '#endif'             >>confdefs.h
11006 fi
11007
11008 else
11009   echo "$as_me: failed program was:" >&5
11010 sed 's/^/| /' conftest.$ac_ext >&5
11011
11012 fi
11013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11014 ac_ext=c
11015 ac_cpp='$CPP $CPPFLAGS'
11016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11019
11020
11021
11022 ac_ext=c
11023 ac_cpp='$CPP $CPPFLAGS'
11024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11027 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11028 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11029 # On Suns, sometimes $CPP names a directory.
11030 if test -n "$CPP" && test -d "$CPP"; then
11031   CPP=
11032 fi
11033 if test -z "$CPP"; then
11034   if test "${ac_cv_prog_CPP+set}" = set; then
11035   echo $ECHO_N "(cached) $ECHO_C" >&6
11036 else
11037       # Double quotes because CPP needs to be expanded
11038     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11039     do
11040       ac_preproc_ok=false
11041 for ac_c_preproc_warn_flag in '' yes
11042 do
11043   # Use a header file that comes with gcc, so configuring glibc
11044   # with a fresh cross-compiler works.
11045   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11046   # <limits.h> exists even on freestanding compilers.
11047   # On the NeXT, cc -E runs the code through the compiler's parser,
11048   # not just through cpp. "Syntax error" is here to catch this case.
11049   cat >conftest.$ac_ext <<_ACEOF
11050 /* confdefs.h.  */
11051 _ACEOF
11052 cat confdefs.h >>conftest.$ac_ext
11053 cat >>conftest.$ac_ext <<_ACEOF
11054 /* end confdefs.h.  */
11055 #ifdef __STDC__
11056 # include <limits.h>
11057 #else
11058 # include <assert.h>
11059 #endif
11060                      Syntax error
11061 _ACEOF
11062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11063   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11064   ac_status=$?
11065   grep -v '^ *+' conftest.er1 >conftest.err
11066   rm -f conftest.er1
11067   cat conftest.err >&5
11068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069   (exit $ac_status); } >/dev/null; then
11070   if test -s conftest.err; then
11071     ac_cpp_err=$ac_c_preproc_warn_flag
11072     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11073   else
11074     ac_cpp_err=
11075   fi
11076 else
11077   ac_cpp_err=yes
11078 fi
11079 if test -z "$ac_cpp_err"; then
11080   :
11081 else
11082   echo "$as_me: failed program was:" >&5
11083 sed 's/^/| /' conftest.$ac_ext >&5
11084
11085   # Broken: fails on valid input.
11086 continue
11087 fi
11088 rm -f conftest.err conftest.$ac_ext
11089
11090   # OK, works on sane cases.  Now check whether non-existent headers
11091   # can be detected and how.
11092   cat >conftest.$ac_ext <<_ACEOF
11093 /* confdefs.h.  */
11094 _ACEOF
11095 cat confdefs.h >>conftest.$ac_ext
11096 cat >>conftest.$ac_ext <<_ACEOF
11097 /* end confdefs.h.  */
11098 #include <ac_nonexistent.h>
11099 _ACEOF
11100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11101   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11102   ac_status=$?
11103   grep -v '^ *+' conftest.er1 >conftest.err
11104   rm -f conftest.er1
11105   cat conftest.err >&5
11106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107   (exit $ac_status); } >/dev/null; then
11108   if test -s conftest.err; then
11109     ac_cpp_err=$ac_c_preproc_warn_flag
11110     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11111   else
11112     ac_cpp_err=
11113   fi
11114 else
11115   ac_cpp_err=yes
11116 fi
11117 if test -z "$ac_cpp_err"; then
11118   # Broken: success on invalid input.
11119 continue
11120 else
11121   echo "$as_me: failed program was:" >&5
11122 sed 's/^/| /' conftest.$ac_ext >&5
11123
11124   # Passes both tests.
11125 ac_preproc_ok=:
11126 break
11127 fi
11128 rm -f conftest.err conftest.$ac_ext
11129
11130 done
11131 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11132 rm -f conftest.err conftest.$ac_ext
11133 if $ac_preproc_ok; then
11134   break
11135 fi
11136
11137     done
11138     ac_cv_prog_CPP=$CPP
11139
11140 fi
11141   CPP=$ac_cv_prog_CPP
11142 else
11143   ac_cv_prog_CPP=$CPP
11144 fi
11145 echo "$as_me:$LINENO: result: $CPP" >&5
11146 echo "${ECHO_T}$CPP" >&6
11147 ac_preproc_ok=false
11148 for ac_c_preproc_warn_flag in '' yes
11149 do
11150   # Use a header file that comes with gcc, so configuring glibc
11151   # with a fresh cross-compiler works.
11152   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11153   # <limits.h> exists even on freestanding compilers.
11154   # On the NeXT, cc -E runs the code through the compiler's parser,
11155   # not just through cpp. "Syntax error" is here to catch this case.
11156   cat >conftest.$ac_ext <<_ACEOF
11157 /* confdefs.h.  */
11158 _ACEOF
11159 cat confdefs.h >>conftest.$ac_ext
11160 cat >>conftest.$ac_ext <<_ACEOF
11161 /* end confdefs.h.  */
11162 #ifdef __STDC__
11163 # include <limits.h>
11164 #else
11165 # include <assert.h>
11166 #endif
11167                      Syntax error
11168 _ACEOF
11169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11170   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11171   ac_status=$?
11172   grep -v '^ *+' conftest.er1 >conftest.err
11173   rm -f conftest.er1
11174   cat conftest.err >&5
11175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176   (exit $ac_status); } >/dev/null; then
11177   if test -s conftest.err; then
11178     ac_cpp_err=$ac_c_preproc_warn_flag
11179     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11180   else
11181     ac_cpp_err=
11182   fi
11183 else
11184   ac_cpp_err=yes
11185 fi
11186 if test -z "$ac_cpp_err"; then
11187   :
11188 else
11189   echo "$as_me: failed program was:" >&5
11190 sed 's/^/| /' conftest.$ac_ext >&5
11191
11192   # Broken: fails on valid input.
11193 continue
11194 fi
11195 rm -f conftest.err conftest.$ac_ext
11196
11197   # OK, works on sane cases.  Now check whether non-existent headers
11198   # can be detected and how.
11199   cat >conftest.$ac_ext <<_ACEOF
11200 /* confdefs.h.  */
11201 _ACEOF
11202 cat confdefs.h >>conftest.$ac_ext
11203 cat >>conftest.$ac_ext <<_ACEOF
11204 /* end confdefs.h.  */
11205 #include <ac_nonexistent.h>
11206 _ACEOF
11207 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11208   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11209   ac_status=$?
11210   grep -v '^ *+' conftest.er1 >conftest.err
11211   rm -f conftest.er1
11212   cat conftest.err >&5
11213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214   (exit $ac_status); } >/dev/null; then
11215   if test -s conftest.err; then
11216     ac_cpp_err=$ac_c_preproc_warn_flag
11217     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11218   else
11219     ac_cpp_err=
11220   fi
11221 else
11222   ac_cpp_err=yes
11223 fi
11224 if test -z "$ac_cpp_err"; then
11225   # Broken: success on invalid input.
11226 continue
11227 else
11228   echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11230
11231   # Passes both tests.
11232 ac_preproc_ok=:
11233 break
11234 fi
11235 rm -f conftest.err conftest.$ac_ext
11236
11237 done
11238 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11239 rm -f conftest.err conftest.$ac_ext
11240 if $ac_preproc_ok; then
11241   :
11242 else
11243   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11244 See \`config.log' for more details." >&5
11245 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11246 See \`config.log' for more details." >&2;}
11247    { (exit 1); exit 1; }; }
11248 fi
11249
11250 ac_ext=c
11251 ac_cpp='$CPP $CPPFLAGS'
11252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11255
11256
11257 echo "$as_me:$LINENO: checking for egrep" >&5
11258 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11259 if test "${ac_cv_prog_egrep+set}" = set; then
11260   echo $ECHO_N "(cached) $ECHO_C" >&6
11261 else
11262   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11263     then ac_cv_prog_egrep='grep -E'
11264     else ac_cv_prog_egrep='egrep'
11265     fi
11266 fi
11267 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11268 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11269  EGREP=$ac_cv_prog_egrep
11270
11271
11272 if test $ac_cv_c_compiler_gnu = yes; then
11273     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11274 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11275 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11276   echo $ECHO_N "(cached) $ECHO_C" >&6
11277 else
11278     ac_pattern="Autoconf.*'x'"
11279   cat >conftest.$ac_ext <<_ACEOF
11280 /* confdefs.h.  */
11281 _ACEOF
11282 cat confdefs.h >>conftest.$ac_ext
11283 cat >>conftest.$ac_ext <<_ACEOF
11284 /* end confdefs.h.  */
11285 #include <sgtty.h>
11286 Autoconf TIOCGETP
11287 _ACEOF
11288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11289   $EGREP "$ac_pattern" >/dev/null 2>&1; then
11290   ac_cv_prog_gcc_traditional=yes
11291 else
11292   ac_cv_prog_gcc_traditional=no
11293 fi
11294 rm -f conftest*
11295
11296
11297   if test $ac_cv_prog_gcc_traditional = no; then
11298     cat >conftest.$ac_ext <<_ACEOF
11299 /* confdefs.h.  */
11300 _ACEOF
11301 cat confdefs.h >>conftest.$ac_ext
11302 cat >>conftest.$ac_ext <<_ACEOF
11303 /* end confdefs.h.  */
11304 #include <termio.h>
11305 Autoconf TCGETA
11306 _ACEOF
11307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11308   $EGREP "$ac_pattern" >/dev/null 2>&1; then
11309   ac_cv_prog_gcc_traditional=yes
11310 fi
11311 rm -f conftest*
11312
11313   fi
11314 fi
11315 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11316 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11317   if test $ac_cv_prog_gcc_traditional = yes; then
11318     CC="$CC -traditional"
11319   fi
11320 fi
11321
11322
11323
11324
11325 ac_ext=cc
11326 ac_cpp='$CXXCPP $CPPFLAGS'
11327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11330
11331
11332 CXXFLAGS=${CXXFLAGS:=}
11333 ac_ext=cc
11334 ac_cpp='$CXXCPP $CPPFLAGS'
11335 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11336 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11337 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11338 if test -n "$ac_tool_prefix"; then
11339   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11340   do
11341     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11342 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11343 echo "$as_me:$LINENO: checking for $ac_word" >&5
11344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11345 if test "${ac_cv_prog_CXX+set}" = set; then
11346   echo $ECHO_N "(cached) $ECHO_C" >&6
11347 else
11348   if test -n "$CXX"; then
11349   ac_cv_prog_CXX="$CXX" # Let the user override the test.
11350 else
11351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11352 for as_dir in $PATH
11353 do
11354   IFS=$as_save_IFS
11355   test -z "$as_dir" && as_dir=.
11356   for ac_exec_ext in '' $ac_executable_extensions; do
11357   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11358     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11360     break 2
11361   fi
11362 done
11363 done
11364
11365 fi
11366 fi
11367 CXX=$ac_cv_prog_CXX
11368 if test -n "$CXX"; then
11369   echo "$as_me:$LINENO: result: $CXX" >&5
11370 echo "${ECHO_T}$CXX" >&6
11371 else
11372   echo "$as_me:$LINENO: result: no" >&5
11373 echo "${ECHO_T}no" >&6
11374 fi
11375
11376     test -n "$CXX" && break
11377   done
11378 fi
11379 if test -z "$CXX"; then
11380   ac_ct_CXX=$CXX
11381   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11382 do
11383   # Extract the first word of "$ac_prog", so it can be a program name with args.
11384 set dummy $ac_prog; ac_word=$2
11385 echo "$as_me:$LINENO: checking for $ac_word" >&5
11386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11387 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11388   echo $ECHO_N "(cached) $ECHO_C" >&6
11389 else
11390   if test -n "$ac_ct_CXX"; then
11391   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11392 else
11393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11394 for as_dir in $PATH
11395 do
11396   IFS=$as_save_IFS
11397   test -z "$as_dir" && as_dir=.
11398   for ac_exec_ext in '' $ac_executable_extensions; do
11399   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11400     ac_cv_prog_ac_ct_CXX="$ac_prog"
11401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11402     break 2
11403   fi
11404 done
11405 done
11406
11407 fi
11408 fi
11409 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11410 if test -n "$ac_ct_CXX"; then
11411   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11412 echo "${ECHO_T}$ac_ct_CXX" >&6
11413 else
11414   echo "$as_me:$LINENO: result: no" >&5
11415 echo "${ECHO_T}no" >&6
11416 fi
11417
11418   test -n "$ac_ct_CXX" && break
11419 done
11420 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11421
11422   CXX=$ac_ct_CXX
11423 fi
11424
11425
11426 # Provide some information about the compiler.
11427 echo "$as_me:$LINENO:" \
11428      "checking for C++ compiler version" >&5
11429 ac_compiler=`set X $ac_compile; echo $2`
11430 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11431   (eval $ac_compiler --version </dev/null >&5) 2>&5
11432   ac_status=$?
11433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434   (exit $ac_status); }
11435 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11436   (eval $ac_compiler -v </dev/null >&5) 2>&5
11437   ac_status=$?
11438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439   (exit $ac_status); }
11440 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11441   (eval $ac_compiler -V </dev/null >&5) 2>&5
11442   ac_status=$?
11443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444   (exit $ac_status); }
11445
11446 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11447 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11448 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11449   echo $ECHO_N "(cached) $ECHO_C" >&6
11450 else
11451   cat >conftest.$ac_ext <<_ACEOF
11452 /* confdefs.h.  */
11453 _ACEOF
11454 cat confdefs.h >>conftest.$ac_ext
11455 cat >>conftest.$ac_ext <<_ACEOF
11456 /* end confdefs.h.  */
11457
11458 int
11459 main ()
11460 {
11461 #ifndef __GNUC__
11462        choke me
11463 #endif
11464
11465   ;
11466   return 0;
11467 }
11468 _ACEOF
11469 rm -f conftest.$ac_objext
11470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11471   (eval $ac_compile) 2>conftest.er1
11472   ac_status=$?
11473   grep -v '^ *+' conftest.er1 >conftest.err
11474   rm -f conftest.er1
11475   cat conftest.err >&5
11476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477   (exit $ac_status); } &&
11478          { ac_try='test -z "$ac_cxx_werror_flag"
11479                          || test ! -s conftest.err'
11480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11481   (eval $ac_try) 2>&5
11482   ac_status=$?
11483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484   (exit $ac_status); }; } &&
11485          { ac_try='test -s conftest.$ac_objext'
11486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11487   (eval $ac_try) 2>&5
11488   ac_status=$?
11489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490   (exit $ac_status); }; }; then
11491   ac_compiler_gnu=yes
11492 else
11493   echo "$as_me: failed program was:" >&5
11494 sed 's/^/| /' conftest.$ac_ext >&5
11495
11496 ac_compiler_gnu=no
11497 fi
11498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11499 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11500
11501 fi
11502 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11503 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11504 GXX=`test $ac_compiler_gnu = yes && echo yes`
11505 ac_test_CXXFLAGS=${CXXFLAGS+set}
11506 ac_save_CXXFLAGS=$CXXFLAGS
11507 CXXFLAGS="-g"
11508 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11509 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11510 if test "${ac_cv_prog_cxx_g+set}" = set; then
11511   echo $ECHO_N "(cached) $ECHO_C" >&6
11512 else
11513   cat >conftest.$ac_ext <<_ACEOF
11514 /* confdefs.h.  */
11515 _ACEOF
11516 cat confdefs.h >>conftest.$ac_ext
11517 cat >>conftest.$ac_ext <<_ACEOF
11518 /* end confdefs.h.  */
11519
11520 int
11521 main ()
11522 {
11523
11524   ;
11525   return 0;
11526 }
11527 _ACEOF
11528 rm -f conftest.$ac_objext
11529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11530   (eval $ac_compile) 2>conftest.er1
11531   ac_status=$?
11532   grep -v '^ *+' conftest.er1 >conftest.err
11533   rm -f conftest.er1
11534   cat conftest.err >&5
11535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536   (exit $ac_status); } &&
11537          { ac_try='test -z "$ac_cxx_werror_flag"
11538                          || test ! -s conftest.err'
11539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11540   (eval $ac_try) 2>&5
11541   ac_status=$?
11542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543   (exit $ac_status); }; } &&
11544          { ac_try='test -s conftest.$ac_objext'
11545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11546   (eval $ac_try) 2>&5
11547   ac_status=$?
11548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549   (exit $ac_status); }; }; then
11550   ac_cv_prog_cxx_g=yes
11551 else
11552   echo "$as_me: failed program was:" >&5
11553 sed 's/^/| /' conftest.$ac_ext >&5
11554
11555 ac_cv_prog_cxx_g=no
11556 fi
11557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11558 fi
11559 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11560 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11561 if test "$ac_test_CXXFLAGS" = set; then
11562   CXXFLAGS=$ac_save_CXXFLAGS
11563 elif test $ac_cv_prog_cxx_g = yes; then
11564   if test "$GXX" = yes; then
11565     CXXFLAGS="-g -O2"
11566   else
11567     CXXFLAGS="-g"
11568   fi
11569 else
11570   if test "$GXX" = yes; then
11571     CXXFLAGS="-O2"
11572   else
11573     CXXFLAGS=
11574   fi
11575 fi
11576 for ac_declaration in \
11577    '' \
11578    'extern "C" void std::exit (int) throw (); using std::exit;' \
11579    'extern "C" void std::exit (int); using std::exit;' \
11580    'extern "C" void exit (int) throw ();' \
11581    'extern "C" void exit (int);' \
11582    'void exit (int);'
11583 do
11584   cat >conftest.$ac_ext <<_ACEOF
11585 /* confdefs.h.  */
11586 _ACEOF
11587 cat confdefs.h >>conftest.$ac_ext
11588 cat >>conftest.$ac_ext <<_ACEOF
11589 /* end confdefs.h.  */
11590 $ac_declaration
11591 #include <stdlib.h>
11592 int
11593 main ()
11594 {
11595 exit (42);
11596   ;
11597   return 0;
11598 }
11599 _ACEOF
11600 rm -f conftest.$ac_objext
11601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11602   (eval $ac_compile) 2>conftest.er1
11603   ac_status=$?
11604   grep -v '^ *+' conftest.er1 >conftest.err
11605   rm -f conftest.er1
11606   cat conftest.err >&5
11607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608   (exit $ac_status); } &&
11609          { ac_try='test -z "$ac_cxx_werror_flag"
11610                          || test ! -s conftest.err'
11611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11612   (eval $ac_try) 2>&5
11613   ac_status=$?
11614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615   (exit $ac_status); }; } &&
11616          { ac_try='test -s conftest.$ac_objext'
11617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11618   (eval $ac_try) 2>&5
11619   ac_status=$?
11620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621   (exit $ac_status); }; }; then
11622   :
11623 else
11624   echo "$as_me: failed program was:" >&5
11625 sed 's/^/| /' conftest.$ac_ext >&5
11626
11627 continue
11628 fi
11629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11630   cat >conftest.$ac_ext <<_ACEOF
11631 /* confdefs.h.  */
11632 _ACEOF
11633 cat confdefs.h >>conftest.$ac_ext
11634 cat >>conftest.$ac_ext <<_ACEOF
11635 /* end confdefs.h.  */
11636 $ac_declaration
11637 int
11638 main ()
11639 {
11640 exit (42);
11641   ;
11642   return 0;
11643 }
11644 _ACEOF
11645 rm -f conftest.$ac_objext
11646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11647   (eval $ac_compile) 2>conftest.er1
11648   ac_status=$?
11649   grep -v '^ *+' conftest.er1 >conftest.err
11650   rm -f conftest.er1
11651   cat conftest.err >&5
11652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653   (exit $ac_status); } &&
11654          { ac_try='test -z "$ac_cxx_werror_flag"
11655                          || test ! -s conftest.err'
11656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11657   (eval $ac_try) 2>&5
11658   ac_status=$?
11659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660   (exit $ac_status); }; } &&
11661          { ac_try='test -s conftest.$ac_objext'
11662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11663   (eval $ac_try) 2>&5
11664   ac_status=$?
11665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666   (exit $ac_status); }; }; then
11667   break
11668 else
11669   echo "$as_me: failed program was:" >&5
11670 sed 's/^/| /' conftest.$ac_ext >&5
11671
11672 fi
11673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11674 done
11675 rm -f conftest*
11676 if test -n "$ac_declaration"; then
11677   echo '#ifdef __cplusplus' >>confdefs.h
11678   echo $ac_declaration      >>confdefs.h
11679   echo '#endif'             >>confdefs.h
11680 fi
11681
11682 ac_ext=cc
11683 ac_cpp='$CXXCPP $CPPFLAGS'
11684 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11685 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11686 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11687
11688
11689 ac_ext=c
11690 ac_cpp='$CPP $CPPFLAGS'
11691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11694
11695
11696 echo "$as_me:$LINENO: checking for /usr/local/include in default include path" >&5
11697 echo $ECHO_N "checking for /usr/local/include in default include path... $ECHO_C" >&6
11698 GCC_SEARCHES_USR_LOCAL_INCLUDE="no"
11699 if test "$GCC" = "yes" ; then
11700   echo | gcc -v -x c++ -E - 2>&1 | sed -n '/^#include </,$p' | \
11701         sed -n '1,/End of search list\./p' | \
11702         grep '^ */usr/local/include$' 2>&1 /dev/null \
11703   && GCC_SEARCHES_USR_LOCAL_INCLUDE="yes"
11704 fi
11705 echo "$as_me:$LINENO: result: $GCC_SEARCHES_USR_LOCAL_INCLUDE" >&5
11706 echo "${ECHO_T}$GCC_SEARCHES_USR_LOCAL_INCLUDE" >&6
11707
11708 if test -n "$ac_tool_prefix"; then
11709   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11710 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11711 echo "$as_me:$LINENO: checking for $ac_word" >&5
11712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11713 if test "${ac_cv_prog_RANLIB+set}" = set; then
11714   echo $ECHO_N "(cached) $ECHO_C" >&6
11715 else
11716   if test -n "$RANLIB"; then
11717   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11718 else
11719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720 for as_dir in $PATH
11721 do
11722   IFS=$as_save_IFS
11723   test -z "$as_dir" && as_dir=.
11724   for ac_exec_ext in '' $ac_executable_extensions; do
11725   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11726     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11728     break 2
11729   fi
11730 done
11731 done
11732
11733 fi
11734 fi
11735 RANLIB=$ac_cv_prog_RANLIB
11736 if test -n "$RANLIB"; then
11737   echo "$as_me:$LINENO: result: $RANLIB" >&5
11738 echo "${ECHO_T}$RANLIB" >&6
11739 else
11740   echo "$as_me:$LINENO: result: no" >&5
11741 echo "${ECHO_T}no" >&6
11742 fi
11743
11744 fi
11745 if test -z "$ac_cv_prog_RANLIB"; then
11746   ac_ct_RANLIB=$RANLIB
11747   # Extract the first word of "ranlib", so it can be a program name with args.
11748 set dummy ranlib; ac_word=$2
11749 echo "$as_me:$LINENO: checking for $ac_word" >&5
11750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11751 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11752   echo $ECHO_N "(cached) $ECHO_C" >&6
11753 else
11754   if test -n "$ac_ct_RANLIB"; then
11755   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11756 else
11757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11758 for as_dir in $PATH
11759 do
11760   IFS=$as_save_IFS
11761   test -z "$as_dir" && as_dir=.
11762   for ac_exec_ext in '' $ac_executable_extensions; do
11763   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11764     ac_cv_prog_ac_ct_RANLIB="ranlib"
11765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11766     break 2
11767   fi
11768 done
11769 done
11770
11771   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11772 fi
11773 fi
11774 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11775 if test -n "$ac_ct_RANLIB"; then
11776   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11777 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11778 else
11779   echo "$as_me:$LINENO: result: no" >&5
11780 echo "${ECHO_T}no" >&6
11781 fi
11782
11783   RANLIB=$ac_ct_RANLIB
11784 else
11785   RANLIB="$ac_cv_prog_RANLIB"
11786 fi
11787
11788
11789 # Extract the first word of "ar", so it can be a program name with args.
11790 set dummy ar; ac_word=$2
11791 echo "$as_me:$LINENO: checking for $ac_word" >&5
11792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11793 if test "${ac_cv_prog_AR+set}" = set; then
11794   echo $ECHO_N "(cached) $ECHO_C" >&6
11795 else
11796   if test -n "$AR"; then
11797   ac_cv_prog_AR="$AR" # Let the user override the test.
11798 else
11799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11800 for as_dir in $PATH
11801 do
11802   IFS=$as_save_IFS
11803   test -z "$as_dir" && as_dir=.
11804   for ac_exec_ext in '' $ac_executable_extensions; do
11805   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11806     ac_cv_prog_AR="ar"
11807     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11808     break 2
11809   fi
11810 done
11811 done
11812
11813 fi
11814 fi
11815 AR=$ac_cv_prog_AR
11816 if test -n "$AR"; then
11817   echo "$as_me:$LINENO: result: $AR" >&5
11818 echo "${ECHO_T}$AR" >&6
11819 else
11820   echo "$as_me:$LINENO: result: no" >&5
11821 echo "${ECHO_T}no" >&6
11822 fi
11823
11824 if test "x$AR" = "x" ; then
11825     { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5
11826 echo "$as_me: error: ar is needed to build wxWindows" >&2;}
11827    { (exit 1); exit 1; }; }
11828 fi
11829
11830 # Find a good install program.  We prefer a C program (faster),
11831 # so one script is as good as another.  But avoid the broken or
11832 # incompatible versions:
11833 # SysV /etc/install, /usr/sbin/install
11834 # SunOS /usr/etc/install
11835 # IRIX /sbin/install
11836 # AIX /bin/install
11837 # AmigaOS /C/install, which installs bootblocks on floppy discs
11838 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11839 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11840 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11841 # OS/2's system install, which has a completely different semantic
11842 # ./install, which can be erroneously created by make from ./install.sh.
11843 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11844 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11845 if test -z "$INSTALL"; then
11846 if test "${ac_cv_path_install+set}" = set; then
11847   echo $ECHO_N "(cached) $ECHO_C" >&6
11848 else
11849   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11850 for as_dir in $PATH
11851 do
11852   IFS=$as_save_IFS
11853   test -z "$as_dir" && as_dir=.
11854   # Account for people who put trailing slashes in PATH elements.
11855 case $as_dir/ in
11856   ./ | .// | /cC/* | \
11857   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11858   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11859   /usr/ucb/* ) ;;
11860   *)
11861     # OSF1 and SCO ODT 3.0 have their own names for install.
11862     # Don't use installbsd from OSF since it installs stuff as root
11863     # by default.
11864     for ac_prog in ginstall scoinst install; do
11865       for ac_exec_ext in '' $ac_executable_extensions; do
11866         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11867           if test $ac_prog = install &&
11868             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11869             # AIX install.  It has an incompatible calling convention.
11870             :
11871           elif test $ac_prog = install &&
11872             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11873             # program-specific install script used by HP pwplus--don't use.
11874             :
11875           else
11876             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11877             break 3
11878           fi
11879         fi
11880       done
11881     done
11882     ;;
11883 esac
11884 done
11885
11886
11887 fi
11888   if test "${ac_cv_path_install+set}" = set; then
11889     INSTALL=$ac_cv_path_install
11890   else
11891     # As a last resort, use the slow shell script.  We don't cache a
11892     # path for INSTALL within a source directory, because that will
11893     # break other packages using the cache if that directory is
11894     # removed, or if the path is relative.
11895     INSTALL=$ac_install_sh
11896   fi
11897 fi
11898 echo "$as_me:$LINENO: result: $INSTALL" >&5
11899 echo "${ECHO_T}$INSTALL" >&6
11900
11901 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11902 # It thinks the first close brace ends the variable substitution.
11903 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11904
11905 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11906
11907 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11908
11909
11910 case ${INSTALL} in
11911   /* ) # Absolute
11912      ;;
11913   ?:* ) # Drive letter, considered as absolute.
11914      ;;
11915   *)
11916      INSTALL=`pwd`/${INSTALL} ;;
11917 esac
11918
11919 case ${host} in
11920     *-hp-hpux* )
11921         INSTALL_DIR="mkdir"
11922         ;;
11923
11924     *)  INSTALL_DIR="$INSTALL -d"
11925         ;;
11926 esac
11927
11928
11929 case "${host}" in
11930
11931                 powerpc-*-darwin* )
11932         INSTALL_PROGRAM="cp -fp"
11933         INSTALL_DATA="cp -fp"
11934         ;;
11935     *)
11936         ;;
11937 esac
11938
11939 # Extract the first word of "strip", so it can be a program name with args.
11940 set dummy strip; ac_word=$2
11941 echo "$as_me:$LINENO: checking for $ac_word" >&5
11942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11943 if test "${ac_cv_prog_STRIP+set}" = set; then
11944   echo $ECHO_N "(cached) $ECHO_C" >&6
11945 else
11946   if test -n "$STRIP"; then
11947   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11948 else
11949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11950 for as_dir in $PATH
11951 do
11952   IFS=$as_save_IFS
11953   test -z "$as_dir" && as_dir=.
11954   for ac_exec_ext in '' $ac_executable_extensions; do
11955   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11956     ac_cv_prog_STRIP="strip"
11957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11958     break 2
11959   fi
11960 done
11961 done
11962
11963   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11964 fi
11965 fi
11966 STRIP=$ac_cv_prog_STRIP
11967 if test -n "$STRIP"; then
11968   echo "$as_me:$LINENO: result: $STRIP" >&5
11969 echo "${ECHO_T}$STRIP" >&6
11970 else
11971   echo "$as_me:$LINENO: result: no" >&5
11972 echo "${ECHO_T}no" >&6
11973 fi
11974
11975
11976 echo "$as_me:$LINENO: checking if make is GNU make" >&5
11977 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11978 if test "${wx_cv_prog_makeisgnu+set}" = set; then
11979   echo $ECHO_N "(cached) $ECHO_C" >&6
11980 else
11981
11982     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
11983             egrep -s GNU > /dev/null); then
11984         wx_cv_prog_makeisgnu="yes"
11985     else
11986         wx_cv_prog_makeisgnu="no"
11987     fi
11988
11989 fi
11990 echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11991 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
11992
11993 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11994     IF_GNU_MAKE=""
11995 else
11996     IF_GNU_MAKE="#"
11997 fi
11998
11999
12000
12001 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12002 echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12003 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12004 if test "${wx_cv_prog_makevpath+set}" = set; then
12005   echo $ECHO_N "(cached) $ECHO_C" >&6
12006 else
12007
12008 cat - << EOF > confMake
12009 check : file
12010         cp \$? \$@
12011         cp \$? final_file
12012 EOF
12013
12014 if test ! -d sub ; then
12015   mkdir sub
12016 fi
12017 echo dummy > sub/file
12018 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12019 RESULT=$?
12020 rm -f sub/file check final_file confMake
12021 rmdir sub
12022 if test "$RESULT" = 0; then
12023   wx_cv_prog_makevpath="yes"
12024 else
12025   wx_cv_prog_makevpath="no"
12026 fi
12027
12028 fi
12029 echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12030 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12031
12032 if test "x$wx_cv_prog_makevpath" != "xyes"; then
12033 { { echo "$as_me:$LINENO: error:
12034 You need a make-utility that is able to use the variable
12035 VPATH correctly.
12036 If your version of make does not support VPATH correctly,
12037 please install GNU-make (possibly as gmake), and start
12038 configure with the following command:
12039 export MAKE=gmake; ./configure  for sh-type shells
12040 setenv MAKE gmake; ./configure  for csh-type shells
12041 Also please do remember to use gmake in this case every time
12042 you are trying to compile.
12043 " >&5
12044 echo "$as_me: error:
12045 You need a make-utility that is able to use the variable
12046 VPATH correctly.
12047 If your version of make does not support VPATH correctly,
12048 please install GNU-make (possibly as gmake), and start
12049 configure with the following command:
12050 export MAKE=gmake; ./configure  for sh-type shells
12051 setenv MAKE gmake; ./configure  for csh-type shells
12052 Also please do remember to use gmake in this case every time
12053 you are trying to compile.
12054 " >&2;}
12055    { (exit 1); exit 1; }; }
12056 fi fi
12057 echo "$as_me:$LINENO: checking whether ln -s works" >&5
12058 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12059 LN_S=$as_ln_s
12060 if test "$LN_S" = "ln -s"; then
12061   echo "$as_me:$LINENO: result: yes" >&5
12062 echo "${ECHO_T}yes" >&6
12063 else
12064   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12065 echo "${ECHO_T}no, using $LN_S" >&6
12066 fi
12067
12068
12069
12070 case "${host}" in
12071   *-pc-os2_emx | *-pc-os2-emx )
12072                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12073                               echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12074 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12075 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12076   echo $ECHO_N "(cached) $ECHO_C" >&6
12077 else
12078   ac_check_lib_save_LIBS=$LIBS
12079 LIBS="-lcExt  $LIBS"
12080 cat >conftest.$ac_ext <<_ACEOF
12081 /* confdefs.h.  */
12082 _ACEOF
12083 cat confdefs.h >>conftest.$ac_ext
12084 cat >>conftest.$ac_ext <<_ACEOF
12085 /* end confdefs.h.  */
12086
12087 /* Override any gcc2 internal prototype to avoid an error.  */
12088 #ifdef __cplusplus
12089 extern "C"
12090 #endif
12091 /* We use char because int might match the return type of a gcc2
12092    builtin and then its argument prototype would still apply.  */
12093 char drand48 ();
12094 int
12095 main ()
12096 {
12097 drand48 ();
12098   ;
12099   return 0;
12100 }
12101 _ACEOF
12102 rm -f conftest.$ac_objext conftest$ac_exeext
12103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12104   (eval $ac_link) 2>conftest.er1
12105   ac_status=$?
12106   grep -v '^ *+' conftest.er1 >conftest.err
12107   rm -f conftest.er1
12108   cat conftest.err >&5
12109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110   (exit $ac_status); } &&
12111          { ac_try='test -z "$ac_c_werror_flag"
12112                          || test ! -s conftest.err'
12113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12114   (eval $ac_try) 2>&5
12115   ac_status=$?
12116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117   (exit $ac_status); }; } &&
12118          { ac_try='test -s conftest$ac_exeext'
12119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120   (eval $ac_try) 2>&5
12121   ac_status=$?
12122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123   (exit $ac_status); }; }; then
12124   ac_cv_lib_cExt_drand48=yes
12125 else
12126   echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12128
12129 ac_cv_lib_cExt_drand48=no
12130 fi
12131 rm -f conftest.err conftest.$ac_objext \
12132       conftest$ac_exeext conftest.$ac_ext
12133 LIBS=$ac_check_lib_save_LIBS
12134 fi
12135 echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12136 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12137 if test $ac_cv_lib_cExt_drand48 = yes; then
12138   LIBS="$LIBS -lcExt"
12139 fi
12140
12141       else
12142                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12143       fi
12144       echo "$as_me:$LINENO: checking for gcc version" >&5
12145 echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12146 if test "${wx_cv_gccversion+set}" = set; then
12147   echo $ECHO_N "(cached) $ECHO_C" >&6
12148 else
12149
12150           cat >conftest.$ac_ext <<_ACEOF
12151 /* confdefs.h.  */
12152 _ACEOF
12153 cat confdefs.h >>conftest.$ac_ext
12154 cat >>conftest.$ac_ext <<_ACEOF
12155 /* end confdefs.h.  */
12156
12157 int
12158 main ()
12159 {
12160
12161                   #if (__GNUC__ < 3)
12162                       #error old gcc
12163                   #endif
12164
12165   ;
12166   return 0;
12167 }
12168 _ACEOF
12169 rm -f conftest.$ac_objext
12170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12171   (eval $ac_compile) 2>conftest.er1
12172   ac_status=$?
12173   grep -v '^ *+' conftest.er1 >conftest.err
12174   rm -f conftest.er1
12175   cat conftest.err >&5
12176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177   (exit $ac_status); } &&
12178          { ac_try='test -z "$ac_c_werror_flag"
12179                          || test ! -s conftest.err'
12180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12181   (eval $ac_try) 2>&5
12182   ac_status=$?
12183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184   (exit $ac_status); }; } &&
12185          { ac_try='test -s conftest.$ac_objext'
12186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12187   (eval $ac_try) 2>&5
12188   ac_status=$?
12189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190   (exit $ac_status); }; }; then
12191
12192                   cat >conftest.$ac_ext <<_ACEOF
12193 /* confdefs.h.  */
12194 _ACEOF
12195 cat confdefs.h >>conftest.$ac_ext
12196 cat >>conftest.$ac_ext <<_ACEOF
12197 /* end confdefs.h.  */
12198
12199 int
12200 main ()
12201 {
12202
12203                           #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12204                               #error intermediate gcc
12205                           #endif
12206
12207   ;
12208   return 0;
12209 }
12210 _ACEOF
12211 rm -f conftest.$ac_objext
12212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12213   (eval $ac_compile) 2>conftest.er1
12214   ac_status=$?
12215   grep -v '^ *+' conftest.er1 >conftest.err
12216   rm -f conftest.er1
12217   cat conftest.err >&5
12218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219   (exit $ac_status); } &&
12220          { ac_try='test -z "$ac_c_werror_flag"
12221                          || test ! -s conftest.err'
12222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12223   (eval $ac_try) 2>&5
12224   ac_status=$?
12225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226   (exit $ac_status); }; } &&
12227          { ac_try='test -s conftest.$ac_objext'
12228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12229   (eval $ac_try) 2>&5
12230   ac_status=$?
12231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232   (exit $ac_status); }; }; then
12233
12234                          wx_cv_gccversion=Innotek
12235
12236 else
12237   echo "$as_me: failed program was:" >&5
12238 sed 's/^/| /' conftest.$ac_ext >&5
12239
12240
12241                          wx_cv_gccversion=3
12242
12243
12244 fi
12245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12246
12247 else
12248   echo "$as_me: failed program was:" >&5
12249 sed 's/^/| /' conftest.$ac_ext >&5
12250
12251
12252                   wx_cv_gccversion=2
12253
12254
12255 fi
12256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12257
12258 fi
12259 echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12260 echo "${ECHO_T}$wx_cv_gccversion" >&6
12261       if test "$wx_cv_gccversion" = "2"; then
12262           LIBS="$LIBS -lstdcpp"
12263           LDFLAGS="$LDFLAGS -Zsysv-signals"
12264       else
12265           if test "$wx_cv_gccversion" = "3"; then
12266               LIBS="$LIBS -lstdcxx"
12267               LDFLAGS="$LDFLAGS -Zsysv-signals"
12268           else
12269               LIBS="$LIBS -lstdc++"
12270           fi
12271       fi
12272       if test "$wxUSE_OMF" = "yes"; then
12273         LDFLAGS="$LDFLAGS -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
12274       fi
12275         ;;
12276   *)
12277
12278
12279
12280       ac_ext=cc
12281 ac_cpp='$CXXCPP $CPPFLAGS'
12282 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12283 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12284 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12285
12286
12287
12288 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12289 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12290 if test "${ac_cv_string_strcasecmp+set}" = set; then
12291   echo $ECHO_N "(cached) $ECHO_C" >&6
12292 else
12293
12294           cat >conftest.$ac_ext <<_ACEOF
12295 /* confdefs.h.  */
12296 _ACEOF
12297 cat confdefs.h >>conftest.$ac_ext
12298 cat >>conftest.$ac_ext <<_ACEOF
12299 /* end confdefs.h.  */
12300
12301               #include <string.h>
12302
12303 int
12304 main ()
12305 {
12306
12307                   strcasecmp("foo", "bar");
12308
12309   ;
12310   return 0;
12311 }
12312 _ACEOF
12313 rm -f conftest.$ac_objext conftest$ac_exeext
12314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12315   (eval $ac_link) 2>conftest.er1
12316   ac_status=$?
12317   grep -v '^ *+' conftest.er1 >conftest.err
12318   rm -f conftest.er1
12319   cat conftest.err >&5
12320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321   (exit $ac_status); } &&
12322          { ac_try='test -z "$ac_cxx_werror_flag"
12323                          || test ! -s conftest.err'
12324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12325   (eval $ac_try) 2>&5
12326   ac_status=$?
12327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328   (exit $ac_status); }; } &&
12329          { ac_try='test -s conftest$ac_exeext'
12330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12331   (eval $ac_try) 2>&5
12332   ac_status=$?
12333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334   (exit $ac_status); }; }; then
12335   ac_cv_string_strcasecmp=yes
12336 else
12337   echo "$as_me: failed program was:" >&5
12338 sed 's/^/| /' conftest.$ac_ext >&5
12339
12340 ac_cv_string_strcasecmp=no
12341
12342 fi
12343 rm -f conftest.err conftest.$ac_objext \
12344       conftest$ac_exeext conftest.$ac_ext
12345
12346 fi
12347 echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12348 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12349
12350       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12351           cat >>confdefs.h <<\_ACEOF
12352 #define HAVE_STRCASECMP_IN_STRING_H 1
12353 _ACEOF
12354
12355       else
12356           echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12357 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12358 if test "${ac_cv_strings_strcasecmp+set}" = set; then
12359   echo $ECHO_N "(cached) $ECHO_C" >&6
12360 else
12361
12362               cat >conftest.$ac_ext <<_ACEOF
12363 /* confdefs.h.  */
12364 _ACEOF
12365 cat confdefs.h >>conftest.$ac_ext
12366 cat >>conftest.$ac_ext <<_ACEOF
12367 /* end confdefs.h.  */
12368
12369                   #include <strings.h>
12370
12371 int
12372 main ()
12373 {
12374
12375                       strcasecmp("foo", "bar");
12376
12377   ;
12378   return 0;
12379 }
12380 _ACEOF
12381 rm -f conftest.$ac_objext conftest$ac_exeext
12382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12383   (eval $ac_link) 2>conftest.er1
12384   ac_status=$?
12385   grep -v '^ *+' conftest.er1 >conftest.err
12386   rm -f conftest.er1
12387   cat conftest.err >&5
12388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389   (exit $ac_status); } &&
12390          { ac_try='test -z "$ac_cxx_werror_flag"
12391                          || test ! -s conftest.err'
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); }; } &&
12397          { ac_try='test -s conftest$ac_exeext'
12398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399   (eval $ac_try) 2>&5
12400   ac_status=$?
12401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402   (exit $ac_status); }; }; then
12403   ac_cv_strings_strcasecmp=yes
12404 else
12405   echo "$as_me: failed program was:" >&5
12406 sed 's/^/| /' conftest.$ac_ext >&5
12407
12408 ac_cv_strings_strcasecmp=no
12409
12410 fi
12411 rm -f conftest.err conftest.$ac_objext \
12412       conftest$ac_exeext conftest.$ac_ext
12413
12414 fi
12415 echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12416 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12417
12418           if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12419               cat >>confdefs.h <<\_ACEOF
12420 #define HAVE_STRCASECMP_IN_STRINGS_H 1
12421 _ACEOF
12422
12423           else
12424               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12425 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12426    { (exit 1); exit 1; }; }
12427           fi
12428       fi
12429
12430       ac_ext=c
12431 ac_cpp='$CPP $CPPFLAGS'
12432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12435
12436         ;;
12437 esac
12438
12439
12440 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12441 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12442 if test "${ac_cv_header_stdc+set}" = set; then
12443   echo $ECHO_N "(cached) $ECHO_C" >&6
12444 else
12445   cat >conftest.$ac_ext <<_ACEOF
12446 /* confdefs.h.  */
12447 _ACEOF
12448 cat confdefs.h >>conftest.$ac_ext
12449 cat >>conftest.$ac_ext <<_ACEOF
12450 /* end confdefs.h.  */
12451 #include <stdlib.h>
12452 #include <stdarg.h>
12453 #include <string.h>
12454 #include <float.h>
12455
12456 int
12457 main ()
12458 {
12459
12460   ;
12461   return 0;
12462 }
12463 _ACEOF
12464 rm -f conftest.$ac_objext
12465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12466   (eval $ac_compile) 2>conftest.er1
12467   ac_status=$?
12468   grep -v '^ *+' conftest.er1 >conftest.err
12469   rm -f conftest.er1
12470   cat conftest.err >&5
12471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472   (exit $ac_status); } &&
12473          { ac_try='test -z "$ac_c_werror_flag"
12474                          || test ! -s conftest.err'
12475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12476   (eval $ac_try) 2>&5
12477   ac_status=$?
12478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479   (exit $ac_status); }; } &&
12480          { ac_try='test -s conftest.$ac_objext'
12481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12482   (eval $ac_try) 2>&5
12483   ac_status=$?
12484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485   (exit $ac_status); }; }; then
12486   ac_cv_header_stdc=yes
12487 else
12488   echo "$as_me: failed program was:" >&5
12489 sed 's/^/| /' conftest.$ac_ext >&5
12490
12491 ac_cv_header_stdc=no
12492 fi
12493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12494
12495 if test $ac_cv_header_stdc = yes; then
12496   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12497   cat >conftest.$ac_ext <<_ACEOF
12498 /* confdefs.h.  */
12499 _ACEOF
12500 cat confdefs.h >>conftest.$ac_ext
12501 cat >>conftest.$ac_ext <<_ACEOF
12502 /* end confdefs.h.  */
12503 #include <string.h>
12504
12505 _ACEOF
12506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12507   $EGREP "memchr" >/dev/null 2>&1; then
12508   :
12509 else
12510   ac_cv_header_stdc=no
12511 fi
12512 rm -f conftest*
12513
12514 fi
12515
12516 if test $ac_cv_header_stdc = yes; then
12517   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12518   cat >conftest.$ac_ext <<_ACEOF
12519 /* confdefs.h.  */
12520 _ACEOF
12521 cat confdefs.h >>conftest.$ac_ext
12522 cat >>conftest.$ac_ext <<_ACEOF
12523 /* end confdefs.h.  */
12524 #include <stdlib.h>
12525
12526 _ACEOF
12527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12528   $EGREP "free" >/dev/null 2>&1; then
12529   :
12530 else
12531   ac_cv_header_stdc=no
12532 fi
12533 rm -f conftest*
12534
12535 fi
12536
12537 if test $ac_cv_header_stdc = yes; then
12538   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12539   if test "$cross_compiling" = yes; then
12540   :
12541 else
12542   cat >conftest.$ac_ext <<_ACEOF
12543 /* confdefs.h.  */
12544 _ACEOF
12545 cat confdefs.h >>conftest.$ac_ext
12546 cat >>conftest.$ac_ext <<_ACEOF
12547 /* end confdefs.h.  */
12548 #include <ctype.h>
12549 #if ((' ' & 0x0FF) == 0x020)
12550 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12551 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12552 #else
12553 # define ISLOWER(c) \
12554                    (('a' <= (c) && (c) <= 'i') \
12555                      || ('j' <= (c) && (c) <= 'r') \
12556                      || ('s' <= (c) && (c) <= 'z'))
12557 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12558 #endif
12559
12560 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12561 int
12562 main ()
12563 {
12564   int i;
12565   for (i = 0; i < 256; i++)
12566     if (XOR (islower (i), ISLOWER (i))
12567         || toupper (i) != TOUPPER (i))
12568       exit(2);
12569   exit (0);
12570 }
12571 _ACEOF
12572 rm -f conftest$ac_exeext
12573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12574   (eval $ac_link) 2>&5
12575   ac_status=$?
12576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12579   (eval $ac_try) 2>&5
12580   ac_status=$?
12581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582   (exit $ac_status); }; }; then
12583   :
12584 else
12585   echo "$as_me: program exited with status $ac_status" >&5
12586 echo "$as_me: failed program was:" >&5
12587 sed 's/^/| /' conftest.$ac_ext >&5
12588
12589 ( exit $ac_status )
12590 ac_cv_header_stdc=no
12591 fi
12592 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12593 fi
12594 fi
12595 fi
12596 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12597 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12598 if test $ac_cv_header_stdc = yes; then
12599
12600 cat >>confdefs.h <<\_ACEOF
12601 #define STDC_HEADERS 1
12602 _ACEOF
12603
12604 fi
12605
12606 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12617                   inttypes.h stdint.h unistd.h
12618 do
12619 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12620 echo "$as_me:$LINENO: checking for $ac_header" >&5
12621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12623   echo $ECHO_N "(cached) $ECHO_C" >&6
12624 else
12625   cat >conftest.$ac_ext <<_ACEOF
12626 /* confdefs.h.  */
12627 _ACEOF
12628 cat confdefs.h >>conftest.$ac_ext
12629 cat >>conftest.$ac_ext <<_ACEOF
12630 /* end confdefs.h.  */
12631 $ac_includes_default
12632
12633 #include <$ac_header>
12634 _ACEOF
12635 rm -f conftest.$ac_objext
12636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12637   (eval $ac_compile) 2>conftest.er1
12638   ac_status=$?
12639   grep -v '^ *+' conftest.er1 >conftest.err
12640   rm -f conftest.er1
12641   cat conftest.err >&5
12642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643   (exit $ac_status); } &&
12644          { ac_try='test -z "$ac_c_werror_flag"
12645                          || test ! -s conftest.err'
12646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12647   (eval $ac_try) 2>&5
12648   ac_status=$?
12649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650   (exit $ac_status); }; } &&
12651          { ac_try='test -s conftest.$ac_objext'
12652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12653   (eval $ac_try) 2>&5
12654   ac_status=$?
12655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656   (exit $ac_status); }; }; then
12657   eval "$as_ac_Header=yes"
12658 else
12659   echo "$as_me: failed program was:" >&5
12660 sed 's/^/| /' conftest.$ac_ext >&5
12661
12662 eval "$as_ac_Header=no"
12663 fi
12664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12665 fi
12666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12669   cat >>confdefs.h <<_ACEOF
12670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12671 _ACEOF
12672
12673 fi
12674
12675 done
12676
12677
12678
12679 for ac_header in stdlib.h
12680 do
12681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12682 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12683   echo "$as_me:$LINENO: checking for $ac_header" >&5
12684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12685 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12686   echo $ECHO_N "(cached) $ECHO_C" >&6
12687 fi
12688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12689 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12690 else
12691   # Is the header compilable?
12692 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12693 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12694 cat >conftest.$ac_ext <<_ACEOF
12695 /* confdefs.h.  */
12696 _ACEOF
12697 cat confdefs.h >>conftest.$ac_ext
12698 cat >>conftest.$ac_ext <<_ACEOF
12699 /* end confdefs.h.  */
12700 $ac_includes_default
12701 #include <$ac_header>
12702 _ACEOF
12703 rm -f conftest.$ac_objext
12704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12705   (eval $ac_compile) 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); } &&
12712          { ac_try='test -z "$ac_c_werror_flag"
12713                          || test ! -s conftest.err'
12714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12715   (eval $ac_try) 2>&5
12716   ac_status=$?
12717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718   (exit $ac_status); }; } &&
12719          { ac_try='test -s conftest.$ac_objext'
12720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12721   (eval $ac_try) 2>&5
12722   ac_status=$?
12723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724   (exit $ac_status); }; }; then
12725   ac_header_compiler=yes
12726 else
12727   echo "$as_me: failed program was:" >&5
12728 sed 's/^/| /' conftest.$ac_ext >&5
12729
12730 ac_header_compiler=no
12731 fi
12732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12733 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12734 echo "${ECHO_T}$ac_header_compiler" >&6
12735
12736 # Is the header present?
12737 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12739 cat >conftest.$ac_ext <<_ACEOF
12740 /* confdefs.h.  */
12741 _ACEOF
12742 cat confdefs.h >>conftest.$ac_ext
12743 cat >>conftest.$ac_ext <<_ACEOF
12744 /* end confdefs.h.  */
12745 #include <$ac_header>
12746 _ACEOF
12747 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12748   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12749   ac_status=$?
12750   grep -v '^ *+' conftest.er1 >conftest.err
12751   rm -f conftest.er1
12752   cat conftest.err >&5
12753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754   (exit $ac_status); } >/dev/null; then
12755   if test -s conftest.err; then
12756     ac_cpp_err=$ac_c_preproc_warn_flag
12757     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12758   else
12759     ac_cpp_err=
12760   fi
12761 else
12762   ac_cpp_err=yes
12763 fi
12764 if test -z "$ac_cpp_err"; then
12765   ac_header_preproc=yes
12766 else
12767   echo "$as_me: failed program was:" >&5
12768 sed 's/^/| /' conftest.$ac_ext >&5
12769
12770   ac_header_preproc=no
12771 fi
12772 rm -f conftest.err conftest.$ac_ext
12773 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12774 echo "${ECHO_T}$ac_header_preproc" >&6
12775
12776 # So?  What about this header?
12777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12778   yes:no: )
12779     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12780 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12781     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12782 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12783     ac_header_preproc=yes
12784     ;;
12785   no:yes:* )
12786     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12787 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12788     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12789 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12790     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12791 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12792     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12793 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12794     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12796     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12797 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12798     (
12799       cat <<\_ASBOX
12800 ## ----------------------------------------- ##
12801 ## Report this to wx-dev@lists.wxwindows.org ##
12802 ## ----------------------------------------- ##
12803 _ASBOX
12804     ) |
12805       sed "s/^/$as_me: WARNING:     /" >&2
12806     ;;
12807 esac
12808 echo "$as_me:$LINENO: checking for $ac_header" >&5
12809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12811   echo $ECHO_N "(cached) $ECHO_C" >&6
12812 else
12813   eval "$as_ac_Header=\$ac_header_preproc"
12814 fi
12815 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12816 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12817
12818 fi
12819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12820   cat >>confdefs.h <<_ACEOF
12821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12822 _ACEOF
12823
12824 fi
12825
12826 done
12827
12828
12829 for ac_header in malloc.h
12830 do
12831 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12833   echo "$as_me:$LINENO: checking for $ac_header" >&5
12834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12836   echo $ECHO_N "(cached) $ECHO_C" >&6
12837 fi
12838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12839 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12840 else
12841   # Is the header compilable?
12842 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12843 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12844 cat >conftest.$ac_ext <<_ACEOF
12845 /* confdefs.h.  */
12846 _ACEOF
12847 cat confdefs.h >>conftest.$ac_ext
12848 cat >>conftest.$ac_ext <<_ACEOF
12849 /* end confdefs.h.  */
12850 $ac_includes_default
12851 #include <$ac_header>
12852 _ACEOF
12853 rm -f conftest.$ac_objext
12854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12855   (eval $ac_compile) 2>conftest.er1
12856   ac_status=$?
12857   grep -v '^ *+' conftest.er1 >conftest.err
12858   rm -f conftest.er1
12859   cat conftest.err >&5
12860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861   (exit $ac_status); } &&
12862          { ac_try='test -z "$ac_c_werror_flag"
12863                          || test ! -s conftest.err'
12864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12865   (eval $ac_try) 2>&5
12866   ac_status=$?
12867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868   (exit $ac_status); }; } &&
12869          { ac_try='test -s conftest.$ac_objext'
12870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12871   (eval $ac_try) 2>&5
12872   ac_status=$?
12873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12874   (exit $ac_status); }; }; then
12875   ac_header_compiler=yes
12876 else
12877   echo "$as_me: failed program was:" >&5
12878 sed 's/^/| /' conftest.$ac_ext >&5
12879
12880 ac_header_compiler=no
12881 fi
12882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12883 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12884 echo "${ECHO_T}$ac_header_compiler" >&6
12885
12886 # Is the header present?
12887 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12888 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12889 cat >conftest.$ac_ext <<_ACEOF
12890 /* confdefs.h.  */
12891 _ACEOF
12892 cat confdefs.h >>conftest.$ac_ext
12893 cat >>conftest.$ac_ext <<_ACEOF
12894 /* end confdefs.h.  */
12895 #include <$ac_header>
12896 _ACEOF
12897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12898   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12899   ac_status=$?
12900   grep -v '^ *+' conftest.er1 >conftest.err
12901   rm -f conftest.er1
12902   cat conftest.err >&5
12903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904   (exit $ac_status); } >/dev/null; then
12905   if test -s conftest.err; then
12906     ac_cpp_err=$ac_c_preproc_warn_flag
12907     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12908   else
12909     ac_cpp_err=
12910   fi
12911 else
12912   ac_cpp_err=yes
12913 fi
12914 if test -z "$ac_cpp_err"; then
12915   ac_header_preproc=yes
12916 else
12917   echo "$as_me: failed program was:" >&5
12918 sed 's/^/| /' conftest.$ac_ext >&5
12919
12920   ac_header_preproc=no
12921 fi
12922 rm -f conftest.err conftest.$ac_ext
12923 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12924 echo "${ECHO_T}$ac_header_preproc" >&6
12925
12926 # So?  What about this header?
12927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12928   yes:no: )
12929     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12930 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12931     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12932 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12933     ac_header_preproc=yes
12934     ;;
12935   no:yes:* )
12936     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12937 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12938     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12939 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12940     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12941 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12942     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12943 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12944     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12945 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12946     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12947 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12948     (
12949       cat <<\_ASBOX
12950 ## ----------------------------------------- ##
12951 ## Report this to wx-dev@lists.wxwindows.org ##
12952 ## ----------------------------------------- ##
12953 _ASBOX
12954     ) |
12955       sed "s/^/$as_me: WARNING:     /" >&2
12956     ;;
12957 esac
12958 echo "$as_me:$LINENO: checking for $ac_header" >&5
12959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12961   echo $ECHO_N "(cached) $ECHO_C" >&6
12962 else
12963   eval "$as_ac_Header=\$ac_header_preproc"
12964 fi
12965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12966 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12967
12968 fi
12969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12970   cat >>confdefs.h <<_ACEOF
12971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12972 _ACEOF
12973
12974 fi
12975
12976 done
12977
12978
12979 for ac_header in unistd.h
12980 do
12981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12983   echo "$as_me:$LINENO: checking for $ac_header" >&5
12984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12986   echo $ECHO_N "(cached) $ECHO_C" >&6
12987 fi
12988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12989 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12990 else
12991   # Is the header compilable?
12992 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12993 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12994 cat >conftest.$ac_ext <<_ACEOF
12995 /* confdefs.h.  */
12996 _ACEOF
12997 cat confdefs.h >>conftest.$ac_ext
12998 cat >>conftest.$ac_ext <<_ACEOF
12999 /* end confdefs.h.  */
13000 $ac_includes_default
13001 #include <$ac_header>
13002 _ACEOF
13003 rm -f conftest.$ac_objext
13004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13005   (eval $ac_compile) 2>conftest.er1
13006   ac_status=$?
13007   grep -v '^ *+' conftest.er1 >conftest.err
13008   rm -f conftest.er1
13009   cat conftest.err >&5
13010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011   (exit $ac_status); } &&
13012          { ac_try='test -z "$ac_c_werror_flag"
13013                          || test ! -s conftest.err'
13014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13015   (eval $ac_try) 2>&5
13016   ac_status=$?
13017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018   (exit $ac_status); }; } &&
13019          { ac_try='test -s conftest.$ac_objext'
13020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13021   (eval $ac_try) 2>&5
13022   ac_status=$?
13023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024   (exit $ac_status); }; }; then
13025   ac_header_compiler=yes
13026 else
13027   echo "$as_me: failed program was:" >&5
13028 sed 's/^/| /' conftest.$ac_ext >&5
13029
13030 ac_header_compiler=no
13031 fi
13032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13033 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13034 echo "${ECHO_T}$ac_header_compiler" >&6
13035
13036 # Is the header present?
13037 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13038 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13039 cat >conftest.$ac_ext <<_ACEOF
13040 /* confdefs.h.  */
13041 _ACEOF
13042 cat confdefs.h >>conftest.$ac_ext
13043 cat >>conftest.$ac_ext <<_ACEOF
13044 /* end confdefs.h.  */
13045 #include <$ac_header>
13046 _ACEOF
13047 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13048   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13049   ac_status=$?
13050   grep -v '^ *+' conftest.er1 >conftest.err
13051   rm -f conftest.er1
13052   cat conftest.err >&5
13053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054   (exit $ac_status); } >/dev/null; then
13055   if test -s conftest.err; then
13056     ac_cpp_err=$ac_c_preproc_warn_flag
13057     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13058   else
13059     ac_cpp_err=
13060   fi
13061 else
13062   ac_cpp_err=yes
13063 fi
13064 if test -z "$ac_cpp_err"; then
13065   ac_header_preproc=yes
13066 else
13067   echo "$as_me: failed program was:" >&5
13068 sed 's/^/| /' conftest.$ac_ext >&5
13069
13070   ac_header_preproc=no
13071 fi
13072 rm -f conftest.err conftest.$ac_ext
13073 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13074 echo "${ECHO_T}$ac_header_preproc" >&6
13075
13076 # So?  What about this header?
13077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13078   yes:no: )
13079     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13081     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13083     ac_header_preproc=yes
13084     ;;
13085   no:yes:* )
13086     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13088     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13089 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13090     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13092     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13093 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13094     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13096     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13098     (
13099       cat <<\_ASBOX
13100 ## ----------------------------------------- ##
13101 ## Report this to wx-dev@lists.wxwindows.org ##
13102 ## ----------------------------------------- ##
13103 _ASBOX
13104     ) |
13105       sed "s/^/$as_me: WARNING:     /" >&2
13106     ;;
13107 esac
13108 echo "$as_me:$LINENO: checking for $ac_header" >&5
13109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13110 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13111   echo $ECHO_N "(cached) $ECHO_C" >&6
13112 else
13113   eval "$as_ac_Header=\$ac_header_preproc"
13114 fi
13115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13117
13118 fi
13119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13120   cat >>confdefs.h <<_ACEOF
13121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13122 _ACEOF
13123
13124 fi
13125
13126 done
13127
13128
13129 for ac_header in wchar.h
13130 do
13131 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13132 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13133   echo "$as_me:$LINENO: checking for $ac_header" >&5
13134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13135 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13136   echo $ECHO_N "(cached) $ECHO_C" >&6
13137 fi
13138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13140 else
13141   # Is the header compilable?
13142 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13143 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13144 cat >conftest.$ac_ext <<_ACEOF
13145 /* confdefs.h.  */
13146 _ACEOF
13147 cat confdefs.h >>conftest.$ac_ext
13148 cat >>conftest.$ac_ext <<_ACEOF
13149 /* end confdefs.h.  */
13150 $ac_includes_default
13151 #include <$ac_header>
13152 _ACEOF
13153 rm -f conftest.$ac_objext
13154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13155   (eval $ac_compile) 2>conftest.er1
13156   ac_status=$?
13157   grep -v '^ *+' conftest.er1 >conftest.err
13158   rm -f conftest.er1
13159   cat conftest.err >&5
13160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161   (exit $ac_status); } &&
13162          { ac_try='test -z "$ac_c_werror_flag"
13163                          || test ! -s conftest.err'
13164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13165   (eval $ac_try) 2>&5
13166   ac_status=$?
13167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168   (exit $ac_status); }; } &&
13169          { ac_try='test -s conftest.$ac_objext'
13170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13171   (eval $ac_try) 2>&5
13172   ac_status=$?
13173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174   (exit $ac_status); }; }; then
13175   ac_header_compiler=yes
13176 else
13177   echo "$as_me: failed program was:" >&5
13178 sed 's/^/| /' conftest.$ac_ext >&5
13179
13180 ac_header_compiler=no
13181 fi
13182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13183 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13184 echo "${ECHO_T}$ac_header_compiler" >&6
13185
13186 # Is the header present?
13187 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13188 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13189 cat >conftest.$ac_ext <<_ACEOF
13190 /* confdefs.h.  */
13191 _ACEOF
13192 cat confdefs.h >>conftest.$ac_ext
13193 cat >>conftest.$ac_ext <<_ACEOF
13194 /* end confdefs.h.  */
13195 #include <$ac_header>
13196 _ACEOF
13197 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13198   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13199   ac_status=$?
13200   grep -v '^ *+' conftest.er1 >conftest.err
13201   rm -f conftest.er1
13202   cat conftest.err >&5
13203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204   (exit $ac_status); } >/dev/null; then
13205   if test -s conftest.err; then
13206     ac_cpp_err=$ac_c_preproc_warn_flag
13207     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13208   else
13209     ac_cpp_err=
13210   fi
13211 else
13212   ac_cpp_err=yes
13213 fi
13214 if test -z "$ac_cpp_err"; then
13215   ac_header_preproc=yes
13216 else
13217   echo "$as_me: failed program was:" >&5
13218 sed 's/^/| /' conftest.$ac_ext >&5
13219
13220   ac_header_preproc=no
13221 fi
13222 rm -f conftest.err conftest.$ac_ext
13223 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13224 echo "${ECHO_T}$ac_header_preproc" >&6
13225
13226 # So?  What about this header?
13227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13228   yes:no: )
13229     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13230 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13231     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13232 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13233     ac_header_preproc=yes
13234     ;;
13235   no:yes:* )
13236     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13237 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13238     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13239 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13240     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13241 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13242     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13243 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13244     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13245 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13246     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13247 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13248     (
13249       cat <<\_ASBOX
13250 ## ----------------------------------------- ##
13251 ## Report this to wx-dev@lists.wxwindows.org ##
13252 ## ----------------------------------------- ##
13253 _ASBOX
13254     ) |
13255       sed "s/^/$as_me: WARNING:     /" >&2
13256     ;;
13257 esac
13258 echo "$as_me:$LINENO: checking for $ac_header" >&5
13259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13261   echo $ECHO_N "(cached) $ECHO_C" >&6
13262 else
13263   eval "$as_ac_Header=\$ac_header_preproc"
13264 fi
13265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13267
13268 fi
13269 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13270   cat >>confdefs.h <<_ACEOF
13271 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13272 _ACEOF
13273
13274 fi
13275
13276 done
13277
13278
13279 if test "$ac_cv_header_wchar_h" != "yes"; then
13280
13281 for ac_header in wcstr.h
13282 do
13283 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13284 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13285   echo "$as_me:$LINENO: checking for $ac_header" >&5
13286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13287 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13288   echo $ECHO_N "(cached) $ECHO_C" >&6
13289 fi
13290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13291 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13292 else
13293   # Is the header compilable?
13294 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13295 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13296 cat >conftest.$ac_ext <<_ACEOF
13297 /* confdefs.h.  */
13298 _ACEOF
13299 cat confdefs.h >>conftest.$ac_ext
13300 cat >>conftest.$ac_ext <<_ACEOF
13301 /* end confdefs.h.  */
13302 $ac_includes_default
13303 #include <$ac_header>
13304 _ACEOF
13305 rm -f conftest.$ac_objext
13306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13307   (eval $ac_compile) 2>conftest.er1
13308   ac_status=$?
13309   grep -v '^ *+' conftest.er1 >conftest.err
13310   rm -f conftest.er1
13311   cat conftest.err >&5
13312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313   (exit $ac_status); } &&
13314          { ac_try='test -z "$ac_c_werror_flag"
13315                          || test ! -s conftest.err'
13316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13317   (eval $ac_try) 2>&5
13318   ac_status=$?
13319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320   (exit $ac_status); }; } &&
13321          { ac_try='test -s conftest.$ac_objext'
13322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13323   (eval $ac_try) 2>&5
13324   ac_status=$?
13325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326   (exit $ac_status); }; }; then
13327   ac_header_compiler=yes
13328 else
13329   echo "$as_me: failed program was:" >&5
13330 sed 's/^/| /' conftest.$ac_ext >&5
13331
13332 ac_header_compiler=no
13333 fi
13334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13335 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13336 echo "${ECHO_T}$ac_header_compiler" >&6
13337
13338 # Is the header present?
13339 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13340 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13341 cat >conftest.$ac_ext <<_ACEOF
13342 /* confdefs.h.  */
13343 _ACEOF
13344 cat confdefs.h >>conftest.$ac_ext
13345 cat >>conftest.$ac_ext <<_ACEOF
13346 /* end confdefs.h.  */
13347 #include <$ac_header>
13348 _ACEOF
13349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13350   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13351   ac_status=$?
13352   grep -v '^ *+' conftest.er1 >conftest.err
13353   rm -f conftest.er1
13354   cat conftest.err >&5
13355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356   (exit $ac_status); } >/dev/null; then
13357   if test -s conftest.err; then
13358     ac_cpp_err=$ac_c_preproc_warn_flag
13359     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13360   else
13361     ac_cpp_err=
13362   fi
13363 else
13364   ac_cpp_err=yes
13365 fi
13366 if test -z "$ac_cpp_err"; then
13367   ac_header_preproc=yes
13368 else
13369   echo "$as_me: failed program was:" >&5
13370 sed 's/^/| /' conftest.$ac_ext >&5
13371
13372   ac_header_preproc=no
13373 fi
13374 rm -f conftest.err conftest.$ac_ext
13375 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13376 echo "${ECHO_T}$ac_header_preproc" >&6
13377
13378 # So?  What about this header?
13379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13380   yes:no: )
13381     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13382 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13383     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13384 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13385     ac_header_preproc=yes
13386     ;;
13387   no:yes:* )
13388     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13389 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13390     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13391 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13392     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13393 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13394     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13395 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13396     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13397 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13398     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13399 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13400     (
13401       cat <<\_ASBOX
13402 ## ----------------------------------------- ##
13403 ## Report this to wx-dev@lists.wxwindows.org ##
13404 ## ----------------------------------------- ##
13405 _ASBOX
13406     ) |
13407       sed "s/^/$as_me: WARNING:     /" >&2
13408     ;;
13409 esac
13410 echo "$as_me:$LINENO: checking for $ac_header" >&5
13411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13413   echo $ECHO_N "(cached) $ECHO_C" >&6
13414 else
13415   eval "$as_ac_Header=\$ac_header_preproc"
13416 fi
13417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13419
13420 fi
13421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13422   cat >>confdefs.h <<_ACEOF
13423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13424 _ACEOF
13425
13426 fi
13427
13428 done
13429
13430 fi
13431
13432
13433 for ac_header in fnmatch.h
13434 do
13435 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13437   echo "$as_me:$LINENO: checking for $ac_header" >&5
13438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13440   echo $ECHO_N "(cached) $ECHO_C" >&6
13441 fi
13442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13444 else
13445   # Is the header compilable?
13446 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13447 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13448 cat >conftest.$ac_ext <<_ACEOF
13449 /* confdefs.h.  */
13450 _ACEOF
13451 cat confdefs.h >>conftest.$ac_ext
13452 cat >>conftest.$ac_ext <<_ACEOF
13453 /* end confdefs.h.  */
13454 $ac_includes_default
13455 #include <$ac_header>
13456 _ACEOF
13457 rm -f conftest.$ac_objext
13458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13459   (eval $ac_compile) 2>conftest.er1
13460   ac_status=$?
13461   grep -v '^ *+' conftest.er1 >conftest.err
13462   rm -f conftest.er1
13463   cat conftest.err >&5
13464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465   (exit $ac_status); } &&
13466          { ac_try='test -z "$ac_c_werror_flag"
13467                          || test ! -s conftest.err'
13468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13469   (eval $ac_try) 2>&5
13470   ac_status=$?
13471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472   (exit $ac_status); }; } &&
13473          { ac_try='test -s conftest.$ac_objext'
13474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13475   (eval $ac_try) 2>&5
13476   ac_status=$?
13477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478   (exit $ac_status); }; }; then
13479   ac_header_compiler=yes
13480 else
13481   echo "$as_me: failed program was:" >&5
13482 sed 's/^/| /' conftest.$ac_ext >&5
13483
13484 ac_header_compiler=no
13485 fi
13486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13487 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13488 echo "${ECHO_T}$ac_header_compiler" >&6
13489
13490 # Is the header present?
13491 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13493 cat >conftest.$ac_ext <<_ACEOF
13494 /* confdefs.h.  */
13495 _ACEOF
13496 cat confdefs.h >>conftest.$ac_ext
13497 cat >>conftest.$ac_ext <<_ACEOF
13498 /* end confdefs.h.  */
13499 #include <$ac_header>
13500 _ACEOF
13501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13502   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13503   ac_status=$?
13504   grep -v '^ *+' conftest.er1 >conftest.err
13505   rm -f conftest.er1
13506   cat conftest.err >&5
13507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508   (exit $ac_status); } >/dev/null; then
13509   if test -s conftest.err; then
13510     ac_cpp_err=$ac_c_preproc_warn_flag
13511     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13512   else
13513     ac_cpp_err=
13514   fi
13515 else
13516   ac_cpp_err=yes
13517 fi
13518 if test -z "$ac_cpp_err"; then
13519   ac_header_preproc=yes
13520 else
13521   echo "$as_me: failed program was:" >&5
13522 sed 's/^/| /' conftest.$ac_ext >&5
13523
13524   ac_header_preproc=no
13525 fi
13526 rm -f conftest.err conftest.$ac_ext
13527 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13528 echo "${ECHO_T}$ac_header_preproc" >&6
13529
13530 # So?  What about this header?
13531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13532   yes:no: )
13533     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13534 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13535     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13536 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13537     ac_header_preproc=yes
13538     ;;
13539   no:yes:* )
13540     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13541 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13542     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13543 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13544     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13545 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13546     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13547 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13548     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13550     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13551 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13552     (
13553       cat <<\_ASBOX
13554 ## ----------------------------------------- ##
13555 ## Report this to wx-dev@lists.wxwindows.org ##
13556 ## ----------------------------------------- ##
13557 _ASBOX
13558     ) |
13559       sed "s/^/$as_me: WARNING:     /" >&2
13560     ;;
13561 esac
13562 echo "$as_me:$LINENO: checking for $ac_header" >&5
13563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13565   echo $ECHO_N "(cached) $ECHO_C" >&6
13566 else
13567   eval "$as_ac_Header=\$ac_header_preproc"
13568 fi
13569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13571
13572 fi
13573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13574   cat >>confdefs.h <<_ACEOF
13575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13576 _ACEOF
13577
13578 fi
13579
13580 done
13581
13582
13583 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13584
13585 for ac_func in fnmatch
13586 do
13587 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13588 echo "$as_me:$LINENO: checking for $ac_func" >&5
13589 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13590 if eval "test \"\${$as_ac_var+set}\" = set"; then
13591   echo $ECHO_N "(cached) $ECHO_C" >&6
13592 else
13593   cat >conftest.$ac_ext <<_ACEOF
13594 /* confdefs.h.  */
13595 _ACEOF
13596 cat confdefs.h >>conftest.$ac_ext
13597 cat >>conftest.$ac_ext <<_ACEOF
13598 /* end confdefs.h.  */
13599 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13600    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13601 #define $ac_func innocuous_$ac_func
13602
13603 /* System header to define __stub macros and hopefully few prototypes,
13604     which can conflict with char $ac_func (); below.
13605     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13606     <limits.h> exists even on freestanding compilers.  */
13607
13608 #ifdef __STDC__
13609 # include <limits.h>
13610 #else
13611 # include <assert.h>
13612 #endif
13613
13614 #undef $ac_func
13615
13616 /* Override any gcc2 internal prototype to avoid an error.  */
13617 #ifdef __cplusplus
13618 extern "C"
13619 {
13620 #endif
13621 /* We use char because int might match the return type of a gcc2
13622    builtin and then its argument prototype would still apply.  */
13623 char $ac_func ();
13624 /* The GNU C library defines this for functions which it implements
13625     to always fail with ENOSYS.  Some functions are actually named
13626     something starting with __ and the normal name is an alias.  */
13627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13628 choke me
13629 #else
13630 char (*f) () = $ac_func;
13631 #endif
13632 #ifdef __cplusplus
13633 }
13634 #endif
13635
13636 int
13637 main ()
13638 {
13639 return f != $ac_func;
13640   ;
13641   return 0;
13642 }
13643 _ACEOF
13644 rm -f conftest.$ac_objext conftest$ac_exeext
13645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13646   (eval $ac_link) 2>conftest.er1
13647   ac_status=$?
13648   grep -v '^ *+' conftest.er1 >conftest.err
13649   rm -f conftest.er1
13650   cat conftest.err >&5
13651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652   (exit $ac_status); } &&
13653          { ac_try='test -z "$ac_c_werror_flag"
13654                          || test ! -s conftest.err'
13655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13656   (eval $ac_try) 2>&5
13657   ac_status=$?
13658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659   (exit $ac_status); }; } &&
13660          { ac_try='test -s conftest$ac_exeext'
13661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13662   (eval $ac_try) 2>&5
13663   ac_status=$?
13664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665   (exit $ac_status); }; }; then
13666   eval "$as_ac_var=yes"
13667 else
13668   echo "$as_me: failed program was:" >&5
13669 sed 's/^/| /' conftest.$ac_ext >&5
13670
13671 eval "$as_ac_var=no"
13672 fi
13673 rm -f conftest.err conftest.$ac_objext \
13674       conftest$ac_exeext conftest.$ac_ext
13675 fi
13676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13677 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13678 if test `eval echo '${'$as_ac_var'}'` = yes; then
13679   cat >>confdefs.h <<_ACEOF
13680 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13681 _ACEOF
13682
13683 fi
13684 done
13685
13686 fi
13687
13688
13689 for ac_header in langinfo.h
13690 do
13691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13692 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13693   echo "$as_me:$LINENO: checking for $ac_header" >&5
13694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13696   echo $ECHO_N "(cached) $ECHO_C" >&6
13697 fi
13698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13700 else
13701   # Is the header compilable?
13702 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13703 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13704 cat >conftest.$ac_ext <<_ACEOF
13705 /* confdefs.h.  */
13706 _ACEOF
13707 cat confdefs.h >>conftest.$ac_ext
13708 cat >>conftest.$ac_ext <<_ACEOF
13709 /* end confdefs.h.  */
13710 $ac_includes_default
13711 #include <$ac_header>
13712 _ACEOF
13713 rm -f conftest.$ac_objext
13714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13715   (eval $ac_compile) 2>conftest.er1
13716   ac_status=$?
13717   grep -v '^ *+' conftest.er1 >conftest.err
13718   rm -f conftest.er1
13719   cat conftest.err >&5
13720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721   (exit $ac_status); } &&
13722          { ac_try='test -z "$ac_c_werror_flag"
13723                          || test ! -s conftest.err'
13724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13725   (eval $ac_try) 2>&5
13726   ac_status=$?
13727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728   (exit $ac_status); }; } &&
13729          { ac_try='test -s conftest.$ac_objext'
13730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13731   (eval $ac_try) 2>&5
13732   ac_status=$?
13733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734   (exit $ac_status); }; }; then
13735   ac_header_compiler=yes
13736 else
13737   echo "$as_me: failed program was:" >&5
13738 sed 's/^/| /' conftest.$ac_ext >&5
13739
13740 ac_header_compiler=no
13741 fi
13742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13743 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13744 echo "${ECHO_T}$ac_header_compiler" >&6
13745
13746 # Is the header present?
13747 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13749 cat >conftest.$ac_ext <<_ACEOF
13750 /* confdefs.h.  */
13751 _ACEOF
13752 cat confdefs.h >>conftest.$ac_ext
13753 cat >>conftest.$ac_ext <<_ACEOF
13754 /* end confdefs.h.  */
13755 #include <$ac_header>
13756 _ACEOF
13757 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13758   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13759   ac_status=$?
13760   grep -v '^ *+' conftest.er1 >conftest.err
13761   rm -f conftest.er1
13762   cat conftest.err >&5
13763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764   (exit $ac_status); } >/dev/null; then
13765   if test -s conftest.err; then
13766     ac_cpp_err=$ac_c_preproc_warn_flag
13767     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13768   else
13769     ac_cpp_err=
13770   fi
13771 else
13772   ac_cpp_err=yes
13773 fi
13774 if test -z "$ac_cpp_err"; then
13775   ac_header_preproc=yes
13776 else
13777   echo "$as_me: failed program was:" >&5
13778 sed 's/^/| /' conftest.$ac_ext >&5
13779
13780   ac_header_preproc=no
13781 fi
13782 rm -f conftest.err conftest.$ac_ext
13783 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13784 echo "${ECHO_T}$ac_header_preproc" >&6
13785
13786 # So?  What about this header?
13787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13788   yes:no: )
13789     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13790 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13791     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13792 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13793     ac_header_preproc=yes
13794     ;;
13795   no:yes:* )
13796     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13797 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13798     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13799 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13800     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13801 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13802     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13803 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13804     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13806     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13807 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13808     (
13809       cat <<\_ASBOX
13810 ## ----------------------------------------- ##
13811 ## Report this to wx-dev@lists.wxwindows.org ##
13812 ## ----------------------------------------- ##
13813 _ASBOX
13814     ) |
13815       sed "s/^/$as_me: WARNING:     /" >&2
13816     ;;
13817 esac
13818 echo "$as_me:$LINENO: checking for $ac_header" >&5
13819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13821   echo $ECHO_N "(cached) $ECHO_C" >&6
13822 else
13823   eval "$as_ac_Header=\$ac_header_preproc"
13824 fi
13825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13826 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13827
13828 fi
13829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13830   cat >>confdefs.h <<_ACEOF
13831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13832 _ACEOF
13833
13834 fi
13835
13836 done
13837
13838
13839 case "${host}" in
13840   *-pc-os2_emx | *-pc-os2-emx )
13841             if test $ac_cv_header_langinfo_h = "yes"; then
13842           LIBS="$LIBS -lintl"
13843       fi
13844   ;;
13845 esac
13846
13847 if test "$wxUSE_GUI" = "yes"; then
13848     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
13849
13850 for ac_header in X11/Xlib.h
13851 do
13852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13854   echo "$as_me:$LINENO: checking for $ac_header" >&5
13855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13857   echo $ECHO_N "(cached) $ECHO_C" >&6
13858 fi
13859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13861 else
13862   # Is the header compilable?
13863 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13865 cat >conftest.$ac_ext <<_ACEOF
13866 /* confdefs.h.  */
13867 _ACEOF
13868 cat confdefs.h >>conftest.$ac_ext
13869 cat >>conftest.$ac_ext <<_ACEOF
13870 /* end confdefs.h.  */
13871 $ac_includes_default
13872 #include <$ac_header>
13873 _ACEOF
13874 rm -f conftest.$ac_objext
13875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13876   (eval $ac_compile) 2>conftest.er1
13877   ac_status=$?
13878   grep -v '^ *+' conftest.er1 >conftest.err
13879   rm -f conftest.er1
13880   cat conftest.err >&5
13881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882   (exit $ac_status); } &&
13883          { ac_try='test -z "$ac_c_werror_flag"
13884                          || test ! -s conftest.err'
13885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13886   (eval $ac_try) 2>&5
13887   ac_status=$?
13888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889   (exit $ac_status); }; } &&
13890          { ac_try='test -s conftest.$ac_objext'
13891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13892   (eval $ac_try) 2>&5
13893   ac_status=$?
13894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895   (exit $ac_status); }; }; then
13896   ac_header_compiler=yes
13897 else
13898   echo "$as_me: failed program was:" >&5
13899 sed 's/^/| /' conftest.$ac_ext >&5
13900
13901 ac_header_compiler=no
13902 fi
13903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13904 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13905 echo "${ECHO_T}$ac_header_compiler" >&6
13906
13907 # Is the header present?
13908 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13910 cat >conftest.$ac_ext <<_ACEOF
13911 /* confdefs.h.  */
13912 _ACEOF
13913 cat confdefs.h >>conftest.$ac_ext
13914 cat >>conftest.$ac_ext <<_ACEOF
13915 /* end confdefs.h.  */
13916 #include <$ac_header>
13917 _ACEOF
13918 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13919   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13920   ac_status=$?
13921   grep -v '^ *+' conftest.er1 >conftest.err
13922   rm -f conftest.er1
13923   cat conftest.err >&5
13924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13925   (exit $ac_status); } >/dev/null; then
13926   if test -s conftest.err; then
13927     ac_cpp_err=$ac_c_preproc_warn_flag
13928     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13929   else
13930     ac_cpp_err=
13931   fi
13932 else
13933   ac_cpp_err=yes
13934 fi
13935 if test -z "$ac_cpp_err"; then
13936   ac_header_preproc=yes
13937 else
13938   echo "$as_me: failed program was:" >&5
13939 sed 's/^/| /' conftest.$ac_ext >&5
13940
13941   ac_header_preproc=no
13942 fi
13943 rm -f conftest.err conftest.$ac_ext
13944 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13945 echo "${ECHO_T}$ac_header_preproc" >&6
13946
13947 # So?  What about this header?
13948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13949   yes:no: )
13950     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13951 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13952     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13953 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13954     ac_header_preproc=yes
13955     ;;
13956   no:yes:* )
13957     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13958 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13959     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13960 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13961     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13962 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13963     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13964 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13965     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13966 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13967     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13968 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13969     (
13970       cat <<\_ASBOX
13971 ## ----------------------------------------- ##
13972 ## Report this to wx-dev@lists.wxwindows.org ##
13973 ## ----------------------------------------- ##
13974 _ASBOX
13975     ) |
13976       sed "s/^/$as_me: WARNING:     /" >&2
13977     ;;
13978 esac
13979 echo "$as_me:$LINENO: checking for $ac_header" >&5
13980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13982   echo $ECHO_N "(cached) $ECHO_C" >&6
13983 else
13984   eval "$as_ac_Header=\$ac_header_preproc"
13985 fi
13986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13988
13989 fi
13990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13991   cat >>confdefs.h <<_ACEOF
13992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13993 _ACEOF
13994
13995 fi
13996
13997 done
13998
13999
14000 for ac_header in X11/XKBlib.h
14001 do
14002 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14003 echo "$as_me:$LINENO: checking for $ac_header" >&5
14004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14006   echo $ECHO_N "(cached) $ECHO_C" >&6
14007 else
14008   cat >conftest.$ac_ext <<_ACEOF
14009 /* confdefs.h.  */
14010 _ACEOF
14011 cat confdefs.h >>conftest.$ac_ext
14012 cat >>conftest.$ac_ext <<_ACEOF
14013 /* end confdefs.h.  */
14014
14015                           #if HAVE_X11_XLIB_H
14016                             #include <X11/Xlib.h>
14017                           #endif
14018
14019
14020 #include <$ac_header>
14021 _ACEOF
14022 rm -f conftest.$ac_objext
14023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14024   (eval $ac_compile) 2>conftest.er1
14025   ac_status=$?
14026   grep -v '^ *+' conftest.er1 >conftest.err
14027   rm -f conftest.er1
14028   cat conftest.err >&5
14029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030   (exit $ac_status); } &&
14031          { ac_try='test -z "$ac_c_werror_flag"
14032                          || test ! -s conftest.err'
14033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14034   (eval $ac_try) 2>&5
14035   ac_status=$?
14036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037   (exit $ac_status); }; } &&
14038          { ac_try='test -s conftest.$ac_objext'
14039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14040   (eval $ac_try) 2>&5
14041   ac_status=$?
14042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043   (exit $ac_status); }; }; then
14044   eval "$as_ac_Header=yes"
14045 else
14046   echo "$as_me: failed program was:" >&5
14047 sed 's/^/| /' conftest.$ac_ext >&5
14048
14049 eval "$as_ac_Header=no"
14050 fi
14051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14052 fi
14053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14056   cat >>confdefs.h <<_ACEOF
14057 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14058 _ACEOF
14059
14060 fi
14061
14062 done
14063
14064     fi
14065 fi
14066
14067
14068 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14069 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14070 if test "${ac_cv_c_const+set}" = set; then
14071   echo $ECHO_N "(cached) $ECHO_C" >&6
14072 else
14073   cat >conftest.$ac_ext <<_ACEOF
14074 /* confdefs.h.  */
14075 _ACEOF
14076 cat confdefs.h >>conftest.$ac_ext
14077 cat >>conftest.$ac_ext <<_ACEOF
14078 /* end confdefs.h.  */
14079
14080 int
14081 main ()
14082 {
14083 /* FIXME: Include the comments suggested by Paul. */
14084 #ifndef __cplusplus
14085   /* Ultrix mips cc rejects this.  */
14086   typedef int charset[2];
14087   const charset x;
14088   /* SunOS 4.1.1 cc rejects this.  */
14089   char const *const *ccp;
14090   char **p;
14091   /* NEC SVR4.0.2 mips cc rejects this.  */
14092   struct point {int x, y;};
14093   static struct point const zero = {0,0};
14094   /* AIX XL C 1.02.0.0 rejects this.
14095      It does not let you subtract one const X* pointer from another in
14096      an arm of an if-expression whose if-part is not a constant
14097      expression */
14098   const char *g = "string";
14099   ccp = &g + (g ? g-g : 0);
14100   /* HPUX 7.0 cc rejects these. */
14101   ++ccp;
14102   p = (char**) ccp;
14103   ccp = (char const *const *) p;
14104   { /* SCO 3.2v4 cc rejects this.  */
14105     char *t;
14106     char const *s = 0 ? (char *) 0 : (char const *) 0;
14107
14108     *t++ = 0;
14109   }
14110   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14111     int x[] = {25, 17};
14112     const int *foo = &x[0];
14113     ++foo;
14114   }
14115   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14116     typedef const int *iptr;
14117     iptr p = 0;
14118     ++p;
14119   }
14120   { /* AIX XL C 1.02.0.0 rejects this saying
14121        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14122     struct s { int j; const int *ap[3]; };
14123     struct s *b; b->j = 5;
14124   }
14125   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14126     const int foo = 10;
14127   }
14128 #endif
14129
14130   ;
14131   return 0;
14132 }
14133 _ACEOF
14134 rm -f conftest.$ac_objext
14135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14136   (eval $ac_compile) 2>conftest.er1
14137   ac_status=$?
14138   grep -v '^ *+' conftest.er1 >conftest.err
14139   rm -f conftest.er1
14140   cat conftest.err >&5
14141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142   (exit $ac_status); } &&
14143          { ac_try='test -z "$ac_c_werror_flag"
14144                          || test ! -s conftest.err'
14145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146   (eval $ac_try) 2>&5
14147   ac_status=$?
14148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149   (exit $ac_status); }; } &&
14150          { ac_try='test -s conftest.$ac_objext'
14151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14152   (eval $ac_try) 2>&5
14153   ac_status=$?
14154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155   (exit $ac_status); }; }; then
14156   ac_cv_c_const=yes
14157 else
14158   echo "$as_me: failed program was:" >&5
14159 sed 's/^/| /' conftest.$ac_ext >&5
14160
14161 ac_cv_c_const=no
14162 fi
14163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14164 fi
14165 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14166 echo "${ECHO_T}$ac_cv_c_const" >&6
14167 if test $ac_cv_c_const = no; then
14168
14169 cat >>confdefs.h <<\_ACEOF
14170 #define const
14171 _ACEOF
14172
14173 fi
14174
14175 echo "$as_me:$LINENO: checking for inline" >&5
14176 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14177 if test "${ac_cv_c_inline+set}" = set; then
14178   echo $ECHO_N "(cached) $ECHO_C" >&6
14179 else
14180   ac_cv_c_inline=no
14181 for ac_kw in inline __inline__ __inline; do
14182   cat >conftest.$ac_ext <<_ACEOF
14183 /* confdefs.h.  */
14184 _ACEOF
14185 cat confdefs.h >>conftest.$ac_ext
14186 cat >>conftest.$ac_ext <<_ACEOF
14187 /* end confdefs.h.  */
14188 #ifndef __cplusplus
14189 typedef int foo_t;
14190 static $ac_kw foo_t static_foo () {return 0; }
14191 $ac_kw foo_t foo () {return 0; }
14192 #endif
14193
14194 _ACEOF
14195 rm -f conftest.$ac_objext
14196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14197   (eval $ac_compile) 2>conftest.er1
14198   ac_status=$?
14199   grep -v '^ *+' conftest.er1 >conftest.err
14200   rm -f conftest.er1
14201   cat conftest.err >&5
14202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203   (exit $ac_status); } &&
14204          { ac_try='test -z "$ac_c_werror_flag"
14205                          || test ! -s conftest.err'
14206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14207   (eval $ac_try) 2>&5
14208   ac_status=$?
14209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210   (exit $ac_status); }; } &&
14211          { ac_try='test -s conftest.$ac_objext'
14212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14213   (eval $ac_try) 2>&5
14214   ac_status=$?
14215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216   (exit $ac_status); }; }; then
14217   ac_cv_c_inline=$ac_kw; break
14218 else
14219   echo "$as_me: failed program was:" >&5
14220 sed 's/^/| /' conftest.$ac_ext >&5
14221
14222 fi
14223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14224 done
14225
14226 fi
14227 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14228 echo "${ECHO_T}$ac_cv_c_inline" >&6
14229
14230
14231 case $ac_cv_c_inline in
14232   inline | yes) ;;
14233   *)
14234     case $ac_cv_c_inline in
14235       no) ac_val=;;
14236       *) ac_val=$ac_cv_c_inline;;
14237     esac
14238     cat >>confdefs.h <<_ACEOF
14239 #ifndef __cplusplus
14240 #define inline $ac_val
14241 #endif
14242 _ACEOF
14243     ;;
14244 esac
14245
14246
14247 echo "$as_me:$LINENO: checking for char" >&5
14248 echo $ECHO_N "checking for char... $ECHO_C" >&6
14249 if test "${ac_cv_type_char+set}" = set; then
14250   echo $ECHO_N "(cached) $ECHO_C" >&6
14251 else
14252   cat >conftest.$ac_ext <<_ACEOF
14253 /* confdefs.h.  */
14254 _ACEOF
14255 cat confdefs.h >>conftest.$ac_ext
14256 cat >>conftest.$ac_ext <<_ACEOF
14257 /* end confdefs.h.  */
14258 $ac_includes_default
14259 int
14260 main ()
14261 {
14262 if ((char *) 0)
14263   return 0;
14264 if (sizeof (char))
14265   return 0;
14266   ;
14267   return 0;
14268 }
14269 _ACEOF
14270 rm -f conftest.$ac_objext
14271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14272   (eval $ac_compile) 2>conftest.er1
14273   ac_status=$?
14274   grep -v '^ *+' conftest.er1 >conftest.err
14275   rm -f conftest.er1
14276   cat conftest.err >&5
14277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278   (exit $ac_status); } &&
14279          { ac_try='test -z "$ac_c_werror_flag"
14280                          || test ! -s conftest.err'
14281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14282   (eval $ac_try) 2>&5
14283   ac_status=$?
14284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285   (exit $ac_status); }; } &&
14286          { ac_try='test -s conftest.$ac_objext'
14287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14288   (eval $ac_try) 2>&5
14289   ac_status=$?
14290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291   (exit $ac_status); }; }; then
14292   ac_cv_type_char=yes
14293 else
14294   echo "$as_me: failed program was:" >&5
14295 sed 's/^/| /' conftest.$ac_ext >&5
14296
14297 ac_cv_type_char=no
14298 fi
14299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14300 fi
14301 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14302 echo "${ECHO_T}$ac_cv_type_char" >&6
14303
14304 echo "$as_me:$LINENO: checking size of char" >&5
14305 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14306 if test "${ac_cv_sizeof_char+set}" = set; then
14307   echo $ECHO_N "(cached) $ECHO_C" >&6
14308 else
14309   if test "$ac_cv_type_char" = yes; then
14310   # The cast to unsigned long works around a bug in the HP C Compiler
14311   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14312   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14313   # This bug is HP SR number 8606223364.
14314   if test "$cross_compiling" = yes; then
14315   # Depending upon the size, compute the lo and hi bounds.
14316 cat >conftest.$ac_ext <<_ACEOF
14317 /* confdefs.h.  */
14318 _ACEOF
14319 cat confdefs.h >>conftest.$ac_ext
14320 cat >>conftest.$ac_ext <<_ACEOF
14321 /* end confdefs.h.  */
14322 $ac_includes_default
14323 int
14324 main ()
14325 {
14326 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14327 test_array [0] = 0
14328
14329   ;
14330   return 0;
14331 }
14332 _ACEOF
14333 rm -f conftest.$ac_objext
14334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14335   (eval $ac_compile) 2>conftest.er1
14336   ac_status=$?
14337   grep -v '^ *+' conftest.er1 >conftest.err
14338   rm -f conftest.er1
14339   cat conftest.err >&5
14340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341   (exit $ac_status); } &&
14342          { ac_try='test -z "$ac_c_werror_flag"
14343                          || test ! -s conftest.err'
14344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14345   (eval $ac_try) 2>&5
14346   ac_status=$?
14347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348   (exit $ac_status); }; } &&
14349          { ac_try='test -s conftest.$ac_objext'
14350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14351   (eval $ac_try) 2>&5
14352   ac_status=$?
14353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354   (exit $ac_status); }; }; then
14355   ac_lo=0 ac_mid=0
14356   while :; do
14357     cat >conftest.$ac_ext <<_ACEOF
14358 /* confdefs.h.  */
14359 _ACEOF
14360 cat confdefs.h >>conftest.$ac_ext
14361 cat >>conftest.$ac_ext <<_ACEOF
14362 /* end confdefs.h.  */
14363 $ac_includes_default
14364 int
14365 main ()
14366 {
14367 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14368 test_array [0] = 0
14369
14370   ;
14371   return 0;
14372 }
14373 _ACEOF
14374 rm -f conftest.$ac_objext
14375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14376   (eval $ac_compile) 2>conftest.er1
14377   ac_status=$?
14378   grep -v '^ *+' conftest.er1 >conftest.err
14379   rm -f conftest.er1
14380   cat conftest.err >&5
14381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382   (exit $ac_status); } &&
14383          { ac_try='test -z "$ac_c_werror_flag"
14384                          || test ! -s conftest.err'
14385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14386   (eval $ac_try) 2>&5
14387   ac_status=$?
14388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389   (exit $ac_status); }; } &&
14390          { ac_try='test -s conftest.$ac_objext'
14391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14392   (eval $ac_try) 2>&5
14393   ac_status=$?
14394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395   (exit $ac_status); }; }; then
14396   ac_hi=$ac_mid; break
14397 else
14398   echo "$as_me: failed program was:" >&5
14399 sed 's/^/| /' conftest.$ac_ext >&5
14400
14401 ac_lo=`expr $ac_mid + 1`
14402                     if test $ac_lo -le $ac_mid; then
14403                       ac_lo= ac_hi=
14404                       break
14405                     fi
14406                     ac_mid=`expr 2 '*' $ac_mid + 1`
14407 fi
14408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14409   done
14410 else
14411   echo "$as_me: failed program was:" >&5
14412 sed 's/^/| /' conftest.$ac_ext >&5
14413
14414 cat >conftest.$ac_ext <<_ACEOF
14415 /* confdefs.h.  */
14416 _ACEOF
14417 cat confdefs.h >>conftest.$ac_ext
14418 cat >>conftest.$ac_ext <<_ACEOF
14419 /* end confdefs.h.  */
14420 $ac_includes_default
14421 int
14422 main ()
14423 {
14424 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14425 test_array [0] = 0
14426
14427   ;
14428   return 0;
14429 }
14430 _ACEOF
14431 rm -f conftest.$ac_objext
14432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14433   (eval $ac_compile) 2>conftest.er1
14434   ac_status=$?
14435   grep -v '^ *+' conftest.er1 >conftest.err
14436   rm -f conftest.er1
14437   cat conftest.err >&5
14438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439   (exit $ac_status); } &&
14440          { ac_try='test -z "$ac_c_werror_flag"
14441                          || test ! -s conftest.err'
14442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14443   (eval $ac_try) 2>&5
14444   ac_status=$?
14445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446   (exit $ac_status); }; } &&
14447          { ac_try='test -s conftest.$ac_objext'
14448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14449   (eval $ac_try) 2>&5
14450   ac_status=$?
14451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452   (exit $ac_status); }; }; then
14453   ac_hi=-1 ac_mid=-1
14454   while :; do
14455     cat >conftest.$ac_ext <<_ACEOF
14456 /* confdefs.h.  */
14457 _ACEOF
14458 cat confdefs.h >>conftest.$ac_ext
14459 cat >>conftest.$ac_ext <<_ACEOF
14460 /* end confdefs.h.  */
14461 $ac_includes_default
14462 int
14463 main ()
14464 {
14465 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14466 test_array [0] = 0
14467
14468   ;
14469   return 0;
14470 }
14471 _ACEOF
14472 rm -f conftest.$ac_objext
14473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14474   (eval $ac_compile) 2>conftest.er1
14475   ac_status=$?
14476   grep -v '^ *+' conftest.er1 >conftest.err
14477   rm -f conftest.er1
14478   cat conftest.err >&5
14479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480   (exit $ac_status); } &&
14481          { ac_try='test -z "$ac_c_werror_flag"
14482                          || test ! -s conftest.err'
14483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14484   (eval $ac_try) 2>&5
14485   ac_status=$?
14486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487   (exit $ac_status); }; } &&
14488          { ac_try='test -s conftest.$ac_objext'
14489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14490   (eval $ac_try) 2>&5
14491   ac_status=$?
14492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493   (exit $ac_status); }; }; then
14494   ac_lo=$ac_mid; break
14495 else
14496   echo "$as_me: failed program was:" >&5
14497 sed 's/^/| /' conftest.$ac_ext >&5
14498
14499 ac_hi=`expr '(' $ac_mid ')' - 1`
14500                        if test $ac_mid -le $ac_hi; then
14501                          ac_lo= ac_hi=
14502                          break
14503                        fi
14504                        ac_mid=`expr 2 '*' $ac_mid`
14505 fi
14506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14507   done
14508 else
14509   echo "$as_me: failed program was:" >&5
14510 sed 's/^/| /' conftest.$ac_ext >&5
14511
14512 ac_lo= ac_hi=
14513 fi
14514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14515 fi
14516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14517 # Binary search between lo and hi bounds.
14518 while test "x$ac_lo" != "x$ac_hi"; do
14519   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14520   cat >conftest.$ac_ext <<_ACEOF
14521 /* confdefs.h.  */
14522 _ACEOF
14523 cat confdefs.h >>conftest.$ac_ext
14524 cat >>conftest.$ac_ext <<_ACEOF
14525 /* end confdefs.h.  */
14526 $ac_includes_default
14527 int
14528 main ()
14529 {
14530 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14531 test_array [0] = 0
14532
14533   ;
14534   return 0;
14535 }
14536 _ACEOF
14537 rm -f conftest.$ac_objext
14538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14539   (eval $ac_compile) 2>conftest.er1
14540   ac_status=$?
14541   grep -v '^ *+' conftest.er1 >conftest.err
14542   rm -f conftest.er1
14543   cat conftest.err >&5
14544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545   (exit $ac_status); } &&
14546          { ac_try='test -z "$ac_c_werror_flag"
14547                          || test ! -s conftest.err'
14548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14549   (eval $ac_try) 2>&5
14550   ac_status=$?
14551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552   (exit $ac_status); }; } &&
14553          { ac_try='test -s conftest.$ac_objext'
14554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14555   (eval $ac_try) 2>&5
14556   ac_status=$?
14557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558   (exit $ac_status); }; }; then
14559   ac_hi=$ac_mid
14560 else
14561   echo "$as_me: failed program was:" >&5
14562 sed 's/^/| /' conftest.$ac_ext >&5
14563
14564 ac_lo=`expr '(' $ac_mid ')' + 1`
14565 fi
14566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14567 done
14568 case $ac_lo in
14569 ?*) ac_cv_sizeof_char=$ac_lo;;
14570 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14571 See \`config.log' for more details." >&5
14572 echo "$as_me: error: cannot compute sizeof (char), 77
14573 See \`config.log' for more details." >&2;}
14574    { (exit 1); exit 1; }; } ;;
14575 esac
14576 else
14577   if test "$cross_compiling" = yes; then
14578   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14579 See \`config.log' for more details." >&5
14580 echo "$as_me: error: cannot run test program while cross compiling
14581 See \`config.log' for more details." >&2;}
14582    { (exit 1); exit 1; }; }
14583 else
14584   cat >conftest.$ac_ext <<_ACEOF
14585 /* confdefs.h.  */
14586 _ACEOF
14587 cat confdefs.h >>conftest.$ac_ext
14588 cat >>conftest.$ac_ext <<_ACEOF
14589 /* end confdefs.h.  */
14590 $ac_includes_default
14591 long longval () { return (long) (sizeof (char)); }
14592 unsigned long ulongval () { return (long) (sizeof (char)); }
14593 #include <stdio.h>
14594 #include <stdlib.h>
14595 int
14596 main ()
14597 {
14598
14599   FILE *f = fopen ("conftest.val", "w");
14600   if (! f)
14601     exit (1);
14602   if (((long) (sizeof (char))) < 0)
14603     {
14604       long i = longval ();
14605       if (i != ((long) (sizeof (char))))
14606         exit (1);
14607       fprintf (f, "%ld\n", i);
14608     }
14609   else
14610     {
14611       unsigned long i = ulongval ();
14612       if (i != ((long) (sizeof (char))))
14613         exit (1);
14614       fprintf (f, "%lu\n", i);
14615     }
14616   exit (ferror (f) || fclose (f) != 0);
14617
14618   ;
14619   return 0;
14620 }
14621 _ACEOF
14622 rm -f conftest$ac_exeext
14623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14624   (eval $ac_link) 2>&5
14625   ac_status=$?
14626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14629   (eval $ac_try) 2>&5
14630   ac_status=$?
14631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632   (exit $ac_status); }; }; then
14633   ac_cv_sizeof_char=`cat conftest.val`
14634 else
14635   echo "$as_me: program exited with status $ac_status" >&5
14636 echo "$as_me: failed program was:" >&5
14637 sed 's/^/| /' conftest.$ac_ext >&5
14638
14639 ( exit $ac_status )
14640 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14641 See \`config.log' for more details." >&5
14642 echo "$as_me: error: cannot compute sizeof (char), 77
14643 See \`config.log' for more details." >&2;}
14644    { (exit 1); exit 1; }; }
14645 fi
14646 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14647 fi
14648 fi
14649 rm -f conftest.val
14650 else
14651   ac_cv_sizeof_char=0
14652 fi
14653 fi
14654 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14655 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14656 cat >>confdefs.h <<_ACEOF
14657 #define SIZEOF_CHAR $ac_cv_sizeof_char
14658 _ACEOF
14659
14660
14661 echo "$as_me:$LINENO: checking for short" >&5
14662 echo $ECHO_N "checking for short... $ECHO_C" >&6
14663 if test "${ac_cv_type_short+set}" = set; then
14664   echo $ECHO_N "(cached) $ECHO_C" >&6
14665 else
14666   cat >conftest.$ac_ext <<_ACEOF
14667 /* confdefs.h.  */
14668 _ACEOF
14669 cat confdefs.h >>conftest.$ac_ext
14670 cat >>conftest.$ac_ext <<_ACEOF
14671 /* end confdefs.h.  */
14672 $ac_includes_default
14673 int
14674 main ()
14675 {
14676 if ((short *) 0)
14677   return 0;
14678 if (sizeof (short))
14679   return 0;
14680   ;
14681   return 0;
14682 }
14683 _ACEOF
14684 rm -f conftest.$ac_objext
14685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14686   (eval $ac_compile) 2>conftest.er1
14687   ac_status=$?
14688   grep -v '^ *+' conftest.er1 >conftest.err
14689   rm -f conftest.er1
14690   cat conftest.err >&5
14691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692   (exit $ac_status); } &&
14693          { ac_try='test -z "$ac_c_werror_flag"
14694                          || test ! -s conftest.err'
14695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14696   (eval $ac_try) 2>&5
14697   ac_status=$?
14698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699   (exit $ac_status); }; } &&
14700          { ac_try='test -s conftest.$ac_objext'
14701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14702   (eval $ac_try) 2>&5
14703   ac_status=$?
14704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705   (exit $ac_status); }; }; then
14706   ac_cv_type_short=yes
14707 else
14708   echo "$as_me: failed program was:" >&5
14709 sed 's/^/| /' conftest.$ac_ext >&5
14710
14711 ac_cv_type_short=no
14712 fi
14713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14714 fi
14715 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14716 echo "${ECHO_T}$ac_cv_type_short" >&6
14717
14718 echo "$as_me:$LINENO: checking size of short" >&5
14719 echo $ECHO_N "checking size of short... $ECHO_C" >&6
14720 if test "${ac_cv_sizeof_short+set}" = set; then
14721   echo $ECHO_N "(cached) $ECHO_C" >&6
14722 else
14723   if test "$ac_cv_type_short" = yes; then
14724   # The cast to unsigned long works around a bug in the HP C Compiler
14725   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14726   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14727   # This bug is HP SR number 8606223364.
14728   if test "$cross_compiling" = yes; then
14729   # Depending upon the size, compute the lo and hi bounds.
14730 cat >conftest.$ac_ext <<_ACEOF
14731 /* confdefs.h.  */
14732 _ACEOF
14733 cat confdefs.h >>conftest.$ac_ext
14734 cat >>conftest.$ac_ext <<_ACEOF
14735 /* end confdefs.h.  */
14736 $ac_includes_default
14737 int
14738 main ()
14739 {
14740 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14741 test_array [0] = 0
14742
14743   ;
14744   return 0;
14745 }
14746 _ACEOF
14747 rm -f conftest.$ac_objext
14748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14749   (eval $ac_compile) 2>conftest.er1
14750   ac_status=$?
14751   grep -v '^ *+' conftest.er1 >conftest.err
14752   rm -f conftest.er1
14753   cat conftest.err >&5
14754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755   (exit $ac_status); } &&
14756          { ac_try='test -z "$ac_c_werror_flag"
14757                          || test ! -s conftest.err'
14758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14759   (eval $ac_try) 2>&5
14760   ac_status=$?
14761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762   (exit $ac_status); }; } &&
14763          { ac_try='test -s conftest.$ac_objext'
14764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14765   (eval $ac_try) 2>&5
14766   ac_status=$?
14767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768   (exit $ac_status); }; }; then
14769   ac_lo=0 ac_mid=0
14770   while :; do
14771     cat >conftest.$ac_ext <<_ACEOF
14772 /* confdefs.h.  */
14773 _ACEOF
14774 cat confdefs.h >>conftest.$ac_ext
14775 cat >>conftest.$ac_ext <<_ACEOF
14776 /* end confdefs.h.  */
14777 $ac_includes_default
14778 int
14779 main ()
14780 {
14781 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14782 test_array [0] = 0
14783
14784   ;
14785   return 0;
14786 }
14787 _ACEOF
14788 rm -f conftest.$ac_objext
14789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14790   (eval $ac_compile) 2>conftest.er1
14791   ac_status=$?
14792   grep -v '^ *+' conftest.er1 >conftest.err
14793   rm -f conftest.er1
14794   cat conftest.err >&5
14795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796   (exit $ac_status); } &&
14797          { ac_try='test -z "$ac_c_werror_flag"
14798                          || test ! -s conftest.err'
14799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800   (eval $ac_try) 2>&5
14801   ac_status=$?
14802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803   (exit $ac_status); }; } &&
14804          { ac_try='test -s conftest.$ac_objext'
14805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14806   (eval $ac_try) 2>&5
14807   ac_status=$?
14808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809   (exit $ac_status); }; }; then
14810   ac_hi=$ac_mid; break
14811 else
14812   echo "$as_me: failed program was:" >&5
14813 sed 's/^/| /' conftest.$ac_ext >&5
14814
14815 ac_lo=`expr $ac_mid + 1`
14816                     if test $ac_lo -le $ac_mid; then
14817                       ac_lo= ac_hi=
14818                       break
14819                     fi
14820                     ac_mid=`expr 2 '*' $ac_mid + 1`
14821 fi
14822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14823   done
14824 else
14825   echo "$as_me: failed program was:" >&5
14826 sed 's/^/| /' conftest.$ac_ext >&5
14827
14828 cat >conftest.$ac_ext <<_ACEOF
14829 /* confdefs.h.  */
14830 _ACEOF
14831 cat confdefs.h >>conftest.$ac_ext
14832 cat >>conftest.$ac_ext <<_ACEOF
14833 /* end confdefs.h.  */
14834 $ac_includes_default
14835 int
14836 main ()
14837 {
14838 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14839 test_array [0] = 0
14840
14841   ;
14842   return 0;
14843 }
14844 _ACEOF
14845 rm -f conftest.$ac_objext
14846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14847   (eval $ac_compile) 2>conftest.er1
14848   ac_status=$?
14849   grep -v '^ *+' conftest.er1 >conftest.err
14850   rm -f conftest.er1
14851   cat conftest.err >&5
14852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853   (exit $ac_status); } &&
14854          { ac_try='test -z "$ac_c_werror_flag"
14855                          || test ! -s conftest.err'
14856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14857   (eval $ac_try) 2>&5
14858   ac_status=$?
14859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860   (exit $ac_status); }; } &&
14861          { ac_try='test -s conftest.$ac_objext'
14862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14863   (eval $ac_try) 2>&5
14864   ac_status=$?
14865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866   (exit $ac_status); }; }; then
14867   ac_hi=-1 ac_mid=-1
14868   while :; do
14869     cat >conftest.$ac_ext <<_ACEOF
14870 /* confdefs.h.  */
14871 _ACEOF
14872 cat confdefs.h >>conftest.$ac_ext
14873 cat >>conftest.$ac_ext <<_ACEOF
14874 /* end confdefs.h.  */
14875 $ac_includes_default
14876 int
14877 main ()
14878 {
14879 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14880 test_array [0] = 0
14881
14882   ;
14883   return 0;
14884 }
14885 _ACEOF
14886 rm -f conftest.$ac_objext
14887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14888   (eval $ac_compile) 2>conftest.er1
14889   ac_status=$?
14890   grep -v '^ *+' conftest.er1 >conftest.err
14891   rm -f conftest.er1
14892   cat conftest.err >&5
14893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894   (exit $ac_status); } &&
14895          { ac_try='test -z "$ac_c_werror_flag"
14896                          || test ! -s conftest.err'
14897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14898   (eval $ac_try) 2>&5
14899   ac_status=$?
14900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901   (exit $ac_status); }; } &&
14902          { ac_try='test -s conftest.$ac_objext'
14903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14904   (eval $ac_try) 2>&5
14905   ac_status=$?
14906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907   (exit $ac_status); }; }; then
14908   ac_lo=$ac_mid; break
14909 else
14910   echo "$as_me: failed program was:" >&5
14911 sed 's/^/| /' conftest.$ac_ext >&5
14912
14913 ac_hi=`expr '(' $ac_mid ')' - 1`
14914                        if test $ac_mid -le $ac_hi; then
14915                          ac_lo= ac_hi=
14916                          break
14917                        fi
14918                        ac_mid=`expr 2 '*' $ac_mid`
14919 fi
14920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14921   done
14922 else
14923   echo "$as_me: failed program was:" >&5
14924 sed 's/^/| /' conftest.$ac_ext >&5
14925
14926 ac_lo= ac_hi=
14927 fi
14928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14929 fi
14930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14931 # Binary search between lo and hi bounds.
14932 while test "x$ac_lo" != "x$ac_hi"; do
14933   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14934   cat >conftest.$ac_ext <<_ACEOF
14935 /* confdefs.h.  */
14936 _ACEOF
14937 cat confdefs.h >>conftest.$ac_ext
14938 cat >>conftest.$ac_ext <<_ACEOF
14939 /* end confdefs.h.  */
14940 $ac_includes_default
14941 int
14942 main ()
14943 {
14944 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14945 test_array [0] = 0
14946
14947   ;
14948   return 0;
14949 }
14950 _ACEOF
14951 rm -f conftest.$ac_objext
14952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14953   (eval $ac_compile) 2>conftest.er1
14954   ac_status=$?
14955   grep -v '^ *+' conftest.er1 >conftest.err
14956   rm -f conftest.er1
14957   cat conftest.err >&5
14958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959   (exit $ac_status); } &&
14960          { ac_try='test -z "$ac_c_werror_flag"
14961                          || test ! -s conftest.err'
14962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14963   (eval $ac_try) 2>&5
14964   ac_status=$?
14965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966   (exit $ac_status); }; } &&
14967          { ac_try='test -s conftest.$ac_objext'
14968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14969   (eval $ac_try) 2>&5
14970   ac_status=$?
14971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14972   (exit $ac_status); }; }; then
14973   ac_hi=$ac_mid
14974 else
14975   echo "$as_me: failed program was:" >&5
14976 sed 's/^/| /' conftest.$ac_ext >&5
14977
14978 ac_lo=`expr '(' $ac_mid ')' + 1`
14979 fi
14980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14981 done
14982 case $ac_lo in
14983 ?*) ac_cv_sizeof_short=$ac_lo;;
14984 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14985 See \`config.log' for more details." >&5
14986 echo "$as_me: error: cannot compute sizeof (short), 77
14987 See \`config.log' for more details." >&2;}
14988    { (exit 1); exit 1; }; } ;;
14989 esac
14990 else
14991   if test "$cross_compiling" = yes; then
14992   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14993 See \`config.log' for more details." >&5
14994 echo "$as_me: error: cannot run test program while cross compiling
14995 See \`config.log' for more details." >&2;}
14996    { (exit 1); exit 1; }; }
14997 else
14998   cat >conftest.$ac_ext <<_ACEOF
14999 /* confdefs.h.  */
15000 _ACEOF
15001 cat confdefs.h >>conftest.$ac_ext
15002 cat >>conftest.$ac_ext <<_ACEOF
15003 /* end confdefs.h.  */
15004 $ac_includes_default
15005 long longval () { return (long) (sizeof (short)); }
15006 unsigned long ulongval () { return (long) (sizeof (short)); }
15007 #include <stdio.h>
15008 #include <stdlib.h>
15009 int
15010 main ()
15011 {
15012
15013   FILE *f = fopen ("conftest.val", "w");
15014   if (! f)
15015     exit (1);
15016   if (((long) (sizeof (short))) < 0)
15017     {
15018       long i = longval ();
15019       if (i != ((long) (sizeof (short))))
15020         exit (1);
15021       fprintf (f, "%ld\n", i);
15022     }
15023   else
15024     {
15025       unsigned long i = ulongval ();
15026       if (i != ((long) (sizeof (short))))
15027         exit (1);
15028       fprintf (f, "%lu\n", i);
15029     }
15030   exit (ferror (f) || fclose (f) != 0);
15031
15032   ;
15033   return 0;
15034 }
15035 _ACEOF
15036 rm -f conftest$ac_exeext
15037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15038   (eval $ac_link) 2>&5
15039   ac_status=$?
15040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15043   (eval $ac_try) 2>&5
15044   ac_status=$?
15045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046   (exit $ac_status); }; }; then
15047   ac_cv_sizeof_short=`cat conftest.val`
15048 else
15049   echo "$as_me: program exited with status $ac_status" >&5
15050 echo "$as_me: failed program was:" >&5
15051 sed 's/^/| /' conftest.$ac_ext >&5
15052
15053 ( exit $ac_status )
15054 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15055 See \`config.log' for more details." >&5
15056 echo "$as_me: error: cannot compute sizeof (short), 77
15057 See \`config.log' for more details." >&2;}
15058    { (exit 1); exit 1; }; }
15059 fi
15060 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15061 fi
15062 fi
15063 rm -f conftest.val
15064 else
15065   ac_cv_sizeof_short=0
15066 fi
15067 fi
15068 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15069 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15070 cat >>confdefs.h <<_ACEOF
15071 #define SIZEOF_SHORT $ac_cv_sizeof_short
15072 _ACEOF
15073
15074
15075 echo "$as_me:$LINENO: checking for void *" >&5
15076 echo $ECHO_N "checking for void *... $ECHO_C" >&6
15077 if test "${ac_cv_type_void_p+set}" = set; then
15078   echo $ECHO_N "(cached) $ECHO_C" >&6
15079 else
15080   cat >conftest.$ac_ext <<_ACEOF
15081 /* confdefs.h.  */
15082 _ACEOF
15083 cat confdefs.h >>conftest.$ac_ext
15084 cat >>conftest.$ac_ext <<_ACEOF
15085 /* end confdefs.h.  */
15086 $ac_includes_default
15087 int
15088 main ()
15089 {
15090 if ((void * *) 0)
15091   return 0;
15092 if (sizeof (void *))
15093   return 0;
15094   ;
15095   return 0;
15096 }
15097 _ACEOF
15098 rm -f conftest.$ac_objext
15099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15100   (eval $ac_compile) 2>conftest.er1
15101   ac_status=$?
15102   grep -v '^ *+' conftest.er1 >conftest.err
15103   rm -f conftest.er1
15104   cat conftest.err >&5
15105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106   (exit $ac_status); } &&
15107          { ac_try='test -z "$ac_c_werror_flag"
15108                          || test ! -s conftest.err'
15109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15110   (eval $ac_try) 2>&5
15111   ac_status=$?
15112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113   (exit $ac_status); }; } &&
15114          { ac_try='test -s conftest.$ac_objext'
15115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15116   (eval $ac_try) 2>&5
15117   ac_status=$?
15118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119   (exit $ac_status); }; }; then
15120   ac_cv_type_void_p=yes
15121 else
15122   echo "$as_me: failed program was:" >&5
15123 sed 's/^/| /' conftest.$ac_ext >&5
15124
15125 ac_cv_type_void_p=no
15126 fi
15127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15128 fi
15129 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15130 echo "${ECHO_T}$ac_cv_type_void_p" >&6
15131
15132 echo "$as_me:$LINENO: checking size of void *" >&5
15133 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15134 if test "${ac_cv_sizeof_void_p+set}" = set; then
15135   echo $ECHO_N "(cached) $ECHO_C" >&6
15136 else
15137   if test "$ac_cv_type_void_p" = yes; then
15138   # The cast to unsigned long works around a bug in the HP C Compiler
15139   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15140   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15141   # This bug is HP SR number 8606223364.
15142   if test "$cross_compiling" = yes; then
15143   # Depending upon the size, compute the lo and hi bounds.
15144 cat >conftest.$ac_ext <<_ACEOF
15145 /* confdefs.h.  */
15146 _ACEOF
15147 cat confdefs.h >>conftest.$ac_ext
15148 cat >>conftest.$ac_ext <<_ACEOF
15149 /* end confdefs.h.  */
15150 $ac_includes_default
15151 int
15152 main ()
15153 {
15154 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15155 test_array [0] = 0
15156
15157   ;
15158   return 0;
15159 }
15160 _ACEOF
15161 rm -f conftest.$ac_objext
15162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15163   (eval $ac_compile) 2>conftest.er1
15164   ac_status=$?
15165   grep -v '^ *+' conftest.er1 >conftest.err
15166   rm -f conftest.er1
15167   cat conftest.err >&5
15168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169   (exit $ac_status); } &&
15170          { ac_try='test -z "$ac_c_werror_flag"
15171                          || test ! -s conftest.err'
15172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15173   (eval $ac_try) 2>&5
15174   ac_status=$?
15175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176   (exit $ac_status); }; } &&
15177          { ac_try='test -s conftest.$ac_objext'
15178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179   (eval $ac_try) 2>&5
15180   ac_status=$?
15181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182   (exit $ac_status); }; }; then
15183   ac_lo=0 ac_mid=0
15184   while :; do
15185     cat >conftest.$ac_ext <<_ACEOF
15186 /* confdefs.h.  */
15187 _ACEOF
15188 cat confdefs.h >>conftest.$ac_ext
15189 cat >>conftest.$ac_ext <<_ACEOF
15190 /* end confdefs.h.  */
15191 $ac_includes_default
15192 int
15193 main ()
15194 {
15195 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15196 test_array [0] = 0
15197
15198   ;
15199   return 0;
15200 }
15201 _ACEOF
15202 rm -f conftest.$ac_objext
15203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15204   (eval $ac_compile) 2>conftest.er1
15205   ac_status=$?
15206   grep -v '^ *+' conftest.er1 >conftest.err
15207   rm -f conftest.er1
15208   cat conftest.err >&5
15209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210   (exit $ac_status); } &&
15211          { ac_try='test -z "$ac_c_werror_flag"
15212                          || test ! -s conftest.err'
15213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15214   (eval $ac_try) 2>&5
15215   ac_status=$?
15216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217   (exit $ac_status); }; } &&
15218          { ac_try='test -s conftest.$ac_objext'
15219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15220   (eval $ac_try) 2>&5
15221   ac_status=$?
15222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223   (exit $ac_status); }; }; then
15224   ac_hi=$ac_mid; break
15225 else
15226   echo "$as_me: failed program was:" >&5
15227 sed 's/^/| /' conftest.$ac_ext >&5
15228
15229 ac_lo=`expr $ac_mid + 1`
15230                     if test $ac_lo -le $ac_mid; then
15231                       ac_lo= ac_hi=
15232                       break
15233                     fi
15234                     ac_mid=`expr 2 '*' $ac_mid + 1`
15235 fi
15236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15237   done
15238 else
15239   echo "$as_me: failed program was:" >&5
15240 sed 's/^/| /' conftest.$ac_ext >&5
15241
15242 cat >conftest.$ac_ext <<_ACEOF
15243 /* confdefs.h.  */
15244 _ACEOF
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h.  */
15248 $ac_includes_default
15249 int
15250 main ()
15251 {
15252 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15253 test_array [0] = 0
15254
15255   ;
15256   return 0;
15257 }
15258 _ACEOF
15259 rm -f conftest.$ac_objext
15260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15261   (eval $ac_compile) 2>conftest.er1
15262   ac_status=$?
15263   grep -v '^ *+' conftest.er1 >conftest.err
15264   rm -f conftest.er1
15265   cat conftest.err >&5
15266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267   (exit $ac_status); } &&
15268          { ac_try='test -z "$ac_c_werror_flag"
15269                          || test ! -s conftest.err'
15270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271   (eval $ac_try) 2>&5
15272   ac_status=$?
15273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274   (exit $ac_status); }; } &&
15275          { ac_try='test -s conftest.$ac_objext'
15276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277   (eval $ac_try) 2>&5
15278   ac_status=$?
15279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280   (exit $ac_status); }; }; then
15281   ac_hi=-1 ac_mid=-1
15282   while :; do
15283     cat >conftest.$ac_ext <<_ACEOF
15284 /* confdefs.h.  */
15285 _ACEOF
15286 cat confdefs.h >>conftest.$ac_ext
15287 cat >>conftest.$ac_ext <<_ACEOF
15288 /* end confdefs.h.  */
15289 $ac_includes_default
15290 int
15291 main ()
15292 {
15293 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15294 test_array [0] = 0
15295
15296   ;
15297   return 0;
15298 }
15299 _ACEOF
15300 rm -f conftest.$ac_objext
15301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15302   (eval $ac_compile) 2>conftest.er1
15303   ac_status=$?
15304   grep -v '^ *+' conftest.er1 >conftest.err
15305   rm -f conftest.er1
15306   cat conftest.err >&5
15307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308   (exit $ac_status); } &&
15309          { ac_try='test -z "$ac_c_werror_flag"
15310                          || test ! -s conftest.err'
15311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15312   (eval $ac_try) 2>&5
15313   ac_status=$?
15314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315   (exit $ac_status); }; } &&
15316          { ac_try='test -s conftest.$ac_objext'
15317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15318   (eval $ac_try) 2>&5
15319   ac_status=$?
15320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321   (exit $ac_status); }; }; then
15322   ac_lo=$ac_mid; break
15323 else
15324   echo "$as_me: failed program was:" >&5
15325 sed 's/^/| /' conftest.$ac_ext >&5
15326
15327 ac_hi=`expr '(' $ac_mid ')' - 1`
15328                        if test $ac_mid -le $ac_hi; then
15329                          ac_lo= ac_hi=
15330                          break
15331                        fi
15332                        ac_mid=`expr 2 '*' $ac_mid`
15333 fi
15334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15335   done
15336 else
15337   echo "$as_me: failed program was:" >&5
15338 sed 's/^/| /' conftest.$ac_ext >&5
15339
15340 ac_lo= ac_hi=
15341 fi
15342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15343 fi
15344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15345 # Binary search between lo and hi bounds.
15346 while test "x$ac_lo" != "x$ac_hi"; do
15347   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15348   cat >conftest.$ac_ext <<_ACEOF
15349 /* confdefs.h.  */
15350 _ACEOF
15351 cat confdefs.h >>conftest.$ac_ext
15352 cat >>conftest.$ac_ext <<_ACEOF
15353 /* end confdefs.h.  */
15354 $ac_includes_default
15355 int
15356 main ()
15357 {
15358 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15359 test_array [0] = 0
15360
15361   ;
15362   return 0;
15363 }
15364 _ACEOF
15365 rm -f conftest.$ac_objext
15366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15367   (eval $ac_compile) 2>conftest.er1
15368   ac_status=$?
15369   grep -v '^ *+' conftest.er1 >conftest.err
15370   rm -f conftest.er1
15371   cat conftest.err >&5
15372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373   (exit $ac_status); } &&
15374          { ac_try='test -z "$ac_c_werror_flag"
15375                          || test ! -s conftest.err'
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); }; } &&
15381          { ac_try='test -s conftest.$ac_objext'
15382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15383   (eval $ac_try) 2>&5
15384   ac_status=$?
15385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386   (exit $ac_status); }; }; then
15387   ac_hi=$ac_mid
15388 else
15389   echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.$ac_ext >&5
15391
15392 ac_lo=`expr '(' $ac_mid ')' + 1`
15393 fi
15394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15395 done
15396 case $ac_lo in
15397 ?*) ac_cv_sizeof_void_p=$ac_lo;;
15398 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15399 See \`config.log' for more details." >&5
15400 echo "$as_me: error: cannot compute sizeof (void *), 77
15401 See \`config.log' for more details." >&2;}
15402    { (exit 1); exit 1; }; } ;;
15403 esac
15404 else
15405   if test "$cross_compiling" = yes; then
15406   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15407 See \`config.log' for more details." >&5
15408 echo "$as_me: error: cannot run test program while cross compiling
15409 See \`config.log' for more details." >&2;}
15410    { (exit 1); exit 1; }; }
15411 else
15412   cat >conftest.$ac_ext <<_ACEOF
15413 /* confdefs.h.  */
15414 _ACEOF
15415 cat confdefs.h >>conftest.$ac_ext
15416 cat >>conftest.$ac_ext <<_ACEOF
15417 /* end confdefs.h.  */
15418 $ac_includes_default
15419 long longval () { return (long) (sizeof (void *)); }
15420 unsigned long ulongval () { return (long) (sizeof (void *)); }
15421 #include <stdio.h>
15422 #include <stdlib.h>
15423 int
15424 main ()
15425 {
15426
15427   FILE *f = fopen ("conftest.val", "w");
15428   if (! f)
15429     exit (1);
15430   if (((long) (sizeof (void *))) < 0)
15431     {
15432       long i = longval ();
15433       if (i != ((long) (sizeof (void *))))
15434         exit (1);
15435       fprintf (f, "%ld\n", i);
15436     }
15437   else
15438     {
15439       unsigned long i = ulongval ();
15440       if (i != ((long) (sizeof (void *))))
15441         exit (1);
15442       fprintf (f, "%lu\n", i);
15443     }
15444   exit (ferror (f) || fclose (f) != 0);
15445
15446   ;
15447   return 0;
15448 }
15449 _ACEOF
15450 rm -f conftest$ac_exeext
15451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15452   (eval $ac_link) 2>&5
15453   ac_status=$?
15454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_void_p=`cat conftest.val`
15462 else
15463   echo "$as_me: program exited with status $ac_status" >&5
15464 echo "$as_me: failed program was:" >&5
15465 sed 's/^/| /' conftest.$ac_ext >&5
15466
15467 ( exit $ac_status )
15468 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15469 See \`config.log' for more details." >&5
15470 echo "$as_me: error: cannot compute sizeof (void *), 77
15471 See \`config.log' for more details." >&2;}
15472    { (exit 1); exit 1; }; }
15473 fi
15474 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15475 fi
15476 fi
15477 rm -f conftest.val
15478 else
15479   ac_cv_sizeof_void_p=0
15480 fi
15481 fi
15482 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15483 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15484 cat >>confdefs.h <<_ACEOF
15485 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15486 _ACEOF
15487
15488
15489 echo "$as_me:$LINENO: checking for int" >&5
15490 echo $ECHO_N "checking for int... $ECHO_C" >&6
15491 if test "${ac_cv_type_int+set}" = set; then
15492   echo $ECHO_N "(cached) $ECHO_C" >&6
15493 else
15494   cat >conftest.$ac_ext <<_ACEOF
15495 /* confdefs.h.  */
15496 _ACEOF
15497 cat confdefs.h >>conftest.$ac_ext
15498 cat >>conftest.$ac_ext <<_ACEOF
15499 /* end confdefs.h.  */
15500 $ac_includes_default
15501 int
15502 main ()
15503 {
15504 if ((int *) 0)
15505   return 0;
15506 if (sizeof (int))
15507   return 0;
15508   ;
15509   return 0;
15510 }
15511 _ACEOF
15512 rm -f conftest.$ac_objext
15513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15514   (eval $ac_compile) 2>conftest.er1
15515   ac_status=$?
15516   grep -v '^ *+' conftest.er1 >conftest.err
15517   rm -f conftest.er1
15518   cat conftest.err >&5
15519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520   (exit $ac_status); } &&
15521          { ac_try='test -z "$ac_c_werror_flag"
15522                          || test ! -s conftest.err'
15523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15524   (eval $ac_try) 2>&5
15525   ac_status=$?
15526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527   (exit $ac_status); }; } &&
15528          { ac_try='test -s conftest.$ac_objext'
15529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15530   (eval $ac_try) 2>&5
15531   ac_status=$?
15532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533   (exit $ac_status); }; }; then
15534   ac_cv_type_int=yes
15535 else
15536   echo "$as_me: failed program was:" >&5
15537 sed 's/^/| /' conftest.$ac_ext >&5
15538
15539 ac_cv_type_int=no
15540 fi
15541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15542 fi
15543 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15544 echo "${ECHO_T}$ac_cv_type_int" >&6
15545
15546 echo "$as_me:$LINENO: checking size of int" >&5
15547 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15548 if test "${ac_cv_sizeof_int+set}" = set; then
15549   echo $ECHO_N "(cached) $ECHO_C" >&6
15550 else
15551   if test "$ac_cv_type_int" = yes; then
15552   # The cast to unsigned long works around a bug in the HP C Compiler
15553   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15554   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15555   # This bug is HP SR number 8606223364.
15556   if test "$cross_compiling" = yes; then
15557   # Depending upon the size, compute the lo and hi bounds.
15558 cat >conftest.$ac_ext <<_ACEOF
15559 /* confdefs.h.  */
15560 _ACEOF
15561 cat confdefs.h >>conftest.$ac_ext
15562 cat >>conftest.$ac_ext <<_ACEOF
15563 /* end confdefs.h.  */
15564 $ac_includes_default
15565 int
15566 main ()
15567 {
15568 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15569 test_array [0] = 0
15570
15571   ;
15572   return 0;
15573 }
15574 _ACEOF
15575 rm -f conftest.$ac_objext
15576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15577   (eval $ac_compile) 2>conftest.er1
15578   ac_status=$?
15579   grep -v '^ *+' conftest.er1 >conftest.err
15580   rm -f conftest.er1
15581   cat conftest.err >&5
15582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583   (exit $ac_status); } &&
15584          { ac_try='test -z "$ac_c_werror_flag"
15585                          || test ! -s conftest.err'
15586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15587   (eval $ac_try) 2>&5
15588   ac_status=$?
15589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590   (exit $ac_status); }; } &&
15591          { ac_try='test -s conftest.$ac_objext'
15592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593   (eval $ac_try) 2>&5
15594   ac_status=$?
15595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596   (exit $ac_status); }; }; then
15597   ac_lo=0 ac_mid=0
15598   while :; do
15599     cat >conftest.$ac_ext <<_ACEOF
15600 /* confdefs.h.  */
15601 _ACEOF
15602 cat confdefs.h >>conftest.$ac_ext
15603 cat >>conftest.$ac_ext <<_ACEOF
15604 /* end confdefs.h.  */
15605 $ac_includes_default
15606 int
15607 main ()
15608 {
15609 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15610 test_array [0] = 0
15611
15612   ;
15613   return 0;
15614 }
15615 _ACEOF
15616 rm -f conftest.$ac_objext
15617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15618   (eval $ac_compile) 2>conftest.er1
15619   ac_status=$?
15620   grep -v '^ *+' conftest.er1 >conftest.err
15621   rm -f conftest.er1
15622   cat conftest.err >&5
15623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624   (exit $ac_status); } &&
15625          { ac_try='test -z "$ac_c_werror_flag"
15626                          || test ! -s conftest.err'
15627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15628   (eval $ac_try) 2>&5
15629   ac_status=$?
15630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631   (exit $ac_status); }; } &&
15632          { ac_try='test -s conftest.$ac_objext'
15633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15634   (eval $ac_try) 2>&5
15635   ac_status=$?
15636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637   (exit $ac_status); }; }; then
15638   ac_hi=$ac_mid; break
15639 else
15640   echo "$as_me: failed program was:" >&5
15641 sed 's/^/| /' conftest.$ac_ext >&5
15642
15643 ac_lo=`expr $ac_mid + 1`
15644                     if test $ac_lo -le $ac_mid; then
15645                       ac_lo= ac_hi=
15646                       break
15647                     fi
15648                     ac_mid=`expr 2 '*' $ac_mid + 1`
15649 fi
15650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15651   done
15652 else
15653   echo "$as_me: failed program was:" >&5
15654 sed 's/^/| /' conftest.$ac_ext >&5
15655
15656 cat >conftest.$ac_ext <<_ACEOF
15657 /* confdefs.h.  */
15658 _ACEOF
15659 cat confdefs.h >>conftest.$ac_ext
15660 cat >>conftest.$ac_ext <<_ACEOF
15661 /* end confdefs.h.  */
15662 $ac_includes_default
15663 int
15664 main ()
15665 {
15666 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15667 test_array [0] = 0
15668
15669   ;
15670   return 0;
15671 }
15672 _ACEOF
15673 rm -f conftest.$ac_objext
15674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15675   (eval $ac_compile) 2>conftest.er1
15676   ac_status=$?
15677   grep -v '^ *+' conftest.er1 >conftest.err
15678   rm -f conftest.er1
15679   cat conftest.err >&5
15680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681   (exit $ac_status); } &&
15682          { ac_try='test -z "$ac_c_werror_flag"
15683                          || test ! -s conftest.err'
15684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15685   (eval $ac_try) 2>&5
15686   ac_status=$?
15687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688   (exit $ac_status); }; } &&
15689          { ac_try='test -s conftest.$ac_objext'
15690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15691   (eval $ac_try) 2>&5
15692   ac_status=$?
15693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694   (exit $ac_status); }; }; then
15695   ac_hi=-1 ac_mid=-1
15696   while :; do
15697     cat >conftest.$ac_ext <<_ACEOF
15698 /* confdefs.h.  */
15699 _ACEOF
15700 cat confdefs.h >>conftest.$ac_ext
15701 cat >>conftest.$ac_ext <<_ACEOF
15702 /* end confdefs.h.  */
15703 $ac_includes_default
15704 int
15705 main ()
15706 {
15707 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15708 test_array [0] = 0
15709
15710   ;
15711   return 0;
15712 }
15713 _ACEOF
15714 rm -f conftest.$ac_objext
15715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15716   (eval $ac_compile) 2>conftest.er1
15717   ac_status=$?
15718   grep -v '^ *+' conftest.er1 >conftest.err
15719   rm -f conftest.er1
15720   cat conftest.err >&5
15721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722   (exit $ac_status); } &&
15723          { ac_try='test -z "$ac_c_werror_flag"
15724                          || test ! -s conftest.err'
15725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15726   (eval $ac_try) 2>&5
15727   ac_status=$?
15728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729   (exit $ac_status); }; } &&
15730          { ac_try='test -s conftest.$ac_objext'
15731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15732   (eval $ac_try) 2>&5
15733   ac_status=$?
15734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735   (exit $ac_status); }; }; then
15736   ac_lo=$ac_mid; break
15737 else
15738   echo "$as_me: failed program was:" >&5
15739 sed 's/^/| /' conftest.$ac_ext >&5
15740
15741 ac_hi=`expr '(' $ac_mid ')' - 1`
15742                        if test $ac_mid -le $ac_hi; then
15743                          ac_lo= ac_hi=
15744                          break
15745                        fi
15746                        ac_mid=`expr 2 '*' $ac_mid`
15747 fi
15748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15749   done
15750 else
15751   echo "$as_me: failed program was:" >&5
15752 sed 's/^/| /' conftest.$ac_ext >&5
15753
15754 ac_lo= ac_hi=
15755 fi
15756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15757 fi
15758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15759 # Binary search between lo and hi bounds.
15760 while test "x$ac_lo" != "x$ac_hi"; do
15761   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15762   cat >conftest.$ac_ext <<_ACEOF
15763 /* confdefs.h.  */
15764 _ACEOF
15765 cat confdefs.h >>conftest.$ac_ext
15766 cat >>conftest.$ac_ext <<_ACEOF
15767 /* end confdefs.h.  */
15768 $ac_includes_default
15769 int
15770 main ()
15771 {
15772 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15773 test_array [0] = 0
15774
15775   ;
15776   return 0;
15777 }
15778 _ACEOF
15779 rm -f conftest.$ac_objext
15780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15781   (eval $ac_compile) 2>conftest.er1
15782   ac_status=$?
15783   grep -v '^ *+' conftest.er1 >conftest.err
15784   rm -f conftest.er1
15785   cat conftest.err >&5
15786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787   (exit $ac_status); } &&
15788          { ac_try='test -z "$ac_c_werror_flag"
15789                          || test ! -s conftest.err'
15790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15791   (eval $ac_try) 2>&5
15792   ac_status=$?
15793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794   (exit $ac_status); }; } &&
15795          { ac_try='test -s conftest.$ac_objext'
15796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15797   (eval $ac_try) 2>&5
15798   ac_status=$?
15799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800   (exit $ac_status); }; }; then
15801   ac_hi=$ac_mid
15802 else
15803   echo "$as_me: failed program was:" >&5
15804 sed 's/^/| /' conftest.$ac_ext >&5
15805
15806 ac_lo=`expr '(' $ac_mid ')' + 1`
15807 fi
15808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15809 done
15810 case $ac_lo in
15811 ?*) ac_cv_sizeof_int=$ac_lo;;
15812 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15813 See \`config.log' for more details." >&5
15814 echo "$as_me: error: cannot compute sizeof (int), 77
15815 See \`config.log' for more details." >&2;}
15816    { (exit 1); exit 1; }; } ;;
15817 esac
15818 else
15819   if test "$cross_compiling" = yes; then
15820   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15821 See \`config.log' for more details." >&5
15822 echo "$as_me: error: cannot run test program while cross compiling
15823 See \`config.log' for more details." >&2;}
15824    { (exit 1); exit 1; }; }
15825 else
15826   cat >conftest.$ac_ext <<_ACEOF
15827 /* confdefs.h.  */
15828 _ACEOF
15829 cat confdefs.h >>conftest.$ac_ext
15830 cat >>conftest.$ac_ext <<_ACEOF
15831 /* end confdefs.h.  */
15832 $ac_includes_default
15833 long longval () { return (long) (sizeof (int)); }
15834 unsigned long ulongval () { return (long) (sizeof (int)); }
15835 #include <stdio.h>
15836 #include <stdlib.h>
15837 int
15838 main ()
15839 {
15840
15841   FILE *f = fopen ("conftest.val", "w");
15842   if (! f)
15843     exit (1);
15844   if (((long) (sizeof (int))) < 0)
15845     {
15846       long i = longval ();
15847       if (i != ((long) (sizeof (int))))
15848         exit (1);
15849       fprintf (f, "%ld\n", i);
15850     }
15851   else
15852     {
15853       unsigned long i = ulongval ();
15854       if (i != ((long) (sizeof (int))))
15855         exit (1);
15856       fprintf (f, "%lu\n", i);
15857     }
15858   exit (ferror (f) || fclose (f) != 0);
15859
15860   ;
15861   return 0;
15862 }
15863 _ACEOF
15864 rm -f conftest$ac_exeext
15865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15866   (eval $ac_link) 2>&5
15867   ac_status=$?
15868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15871   (eval $ac_try) 2>&5
15872   ac_status=$?
15873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874   (exit $ac_status); }; }; then
15875   ac_cv_sizeof_int=`cat conftest.val`
15876 else
15877   echo "$as_me: program exited with status $ac_status" >&5
15878 echo "$as_me: failed program was:" >&5
15879 sed 's/^/| /' conftest.$ac_ext >&5
15880
15881 ( exit $ac_status )
15882 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15883 See \`config.log' for more details." >&5
15884 echo "$as_me: error: cannot compute sizeof (int), 77
15885 See \`config.log' for more details." >&2;}
15886    { (exit 1); exit 1; }; }
15887 fi
15888 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15889 fi
15890 fi
15891 rm -f conftest.val
15892 else
15893   ac_cv_sizeof_int=0
15894 fi
15895 fi
15896 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15897 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15898 cat >>confdefs.h <<_ACEOF
15899 #define SIZEOF_INT $ac_cv_sizeof_int
15900 _ACEOF
15901
15902
15903 echo "$as_me:$LINENO: checking for long" >&5
15904 echo $ECHO_N "checking for long... $ECHO_C" >&6
15905 if test "${ac_cv_type_long+set}" = set; then
15906   echo $ECHO_N "(cached) $ECHO_C" >&6
15907 else
15908   cat >conftest.$ac_ext <<_ACEOF
15909 /* confdefs.h.  */
15910 _ACEOF
15911 cat confdefs.h >>conftest.$ac_ext
15912 cat >>conftest.$ac_ext <<_ACEOF
15913 /* end confdefs.h.  */
15914 $ac_includes_default
15915 int
15916 main ()
15917 {
15918 if ((long *) 0)
15919   return 0;
15920 if (sizeof (long))
15921   return 0;
15922   ;
15923   return 0;
15924 }
15925 _ACEOF
15926 rm -f conftest.$ac_objext
15927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15928   (eval $ac_compile) 2>conftest.er1
15929   ac_status=$?
15930   grep -v '^ *+' conftest.er1 >conftest.err
15931   rm -f conftest.er1
15932   cat conftest.err >&5
15933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934   (exit $ac_status); } &&
15935          { ac_try='test -z "$ac_c_werror_flag"
15936                          || test ! -s conftest.err'
15937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15938   (eval $ac_try) 2>&5
15939   ac_status=$?
15940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941   (exit $ac_status); }; } &&
15942          { ac_try='test -s conftest.$ac_objext'
15943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944   (eval $ac_try) 2>&5
15945   ac_status=$?
15946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947   (exit $ac_status); }; }; then
15948   ac_cv_type_long=yes
15949 else
15950   echo "$as_me: failed program was:" >&5
15951 sed 's/^/| /' conftest.$ac_ext >&5
15952
15953 ac_cv_type_long=no
15954 fi
15955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15956 fi
15957 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15958 echo "${ECHO_T}$ac_cv_type_long" >&6
15959
15960 echo "$as_me:$LINENO: checking size of long" >&5
15961 echo $ECHO_N "checking size of long... $ECHO_C" >&6
15962 if test "${ac_cv_sizeof_long+set}" = set; then
15963   echo $ECHO_N "(cached) $ECHO_C" >&6
15964 else
15965   if test "$ac_cv_type_long" = yes; then
15966   # The cast to unsigned long works around a bug in the HP C Compiler
15967   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15968   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15969   # This bug is HP SR number 8606223364.
15970   if test "$cross_compiling" = yes; then
15971   # Depending upon the size, compute the lo and hi bounds.
15972 cat >conftest.$ac_ext <<_ACEOF
15973 /* confdefs.h.  */
15974 _ACEOF
15975 cat confdefs.h >>conftest.$ac_ext
15976 cat >>conftest.$ac_ext <<_ACEOF
15977 /* end confdefs.h.  */
15978 $ac_includes_default
15979 int
15980 main ()
15981 {
15982 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15983 test_array [0] = 0
15984
15985   ;
15986   return 0;
15987 }
15988 _ACEOF
15989 rm -f conftest.$ac_objext
15990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15991   (eval $ac_compile) 2>conftest.er1
15992   ac_status=$?
15993   grep -v '^ *+' conftest.er1 >conftest.err
15994   rm -f conftest.er1
15995   cat conftest.err >&5
15996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997   (exit $ac_status); } &&
15998          { ac_try='test -z "$ac_c_werror_flag"
15999                          || test ! -s conftest.err'
16000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16001   (eval $ac_try) 2>&5
16002   ac_status=$?
16003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004   (exit $ac_status); }; } &&
16005          { ac_try='test -s conftest.$ac_objext'
16006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16007   (eval $ac_try) 2>&5
16008   ac_status=$?
16009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010   (exit $ac_status); }; }; then
16011   ac_lo=0 ac_mid=0
16012   while :; do
16013     cat >conftest.$ac_ext <<_ACEOF
16014 /* confdefs.h.  */
16015 _ACEOF
16016 cat confdefs.h >>conftest.$ac_ext
16017 cat >>conftest.$ac_ext <<_ACEOF
16018 /* end confdefs.h.  */
16019 $ac_includes_default
16020 int
16021 main ()
16022 {
16023 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16024 test_array [0] = 0
16025
16026   ;
16027   return 0;
16028 }
16029 _ACEOF
16030 rm -f conftest.$ac_objext
16031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16032   (eval $ac_compile) 2>conftest.er1
16033   ac_status=$?
16034   grep -v '^ *+' conftest.er1 >conftest.err
16035   rm -f conftest.er1
16036   cat conftest.err >&5
16037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038   (exit $ac_status); } &&
16039          { ac_try='test -z "$ac_c_werror_flag"
16040                          || test ! -s conftest.err'
16041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16042   (eval $ac_try) 2>&5
16043   ac_status=$?
16044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045   (exit $ac_status); }; } &&
16046          { ac_try='test -s conftest.$ac_objext'
16047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16048   (eval $ac_try) 2>&5
16049   ac_status=$?
16050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051   (exit $ac_status); }; }; then
16052   ac_hi=$ac_mid; break
16053 else
16054   echo "$as_me: failed program was:" >&5
16055 sed 's/^/| /' conftest.$ac_ext >&5
16056
16057 ac_lo=`expr $ac_mid + 1`
16058                     if test $ac_lo -le $ac_mid; then
16059                       ac_lo= ac_hi=
16060                       break
16061                     fi
16062                     ac_mid=`expr 2 '*' $ac_mid + 1`
16063 fi
16064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16065   done
16066 else
16067   echo "$as_me: failed program was:" >&5
16068 sed 's/^/| /' conftest.$ac_ext >&5
16069
16070 cat >conftest.$ac_ext <<_ACEOF
16071 /* confdefs.h.  */
16072 _ACEOF
16073 cat confdefs.h >>conftest.$ac_ext
16074 cat >>conftest.$ac_ext <<_ACEOF
16075 /* end confdefs.h.  */
16076 $ac_includes_default
16077 int
16078 main ()
16079 {
16080 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16081 test_array [0] = 0
16082
16083   ;
16084   return 0;
16085 }
16086 _ACEOF
16087 rm -f conftest.$ac_objext
16088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16089   (eval $ac_compile) 2>conftest.er1
16090   ac_status=$?
16091   grep -v '^ *+' conftest.er1 >conftest.err
16092   rm -f conftest.er1
16093   cat conftest.err >&5
16094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095   (exit $ac_status); } &&
16096          { ac_try='test -z "$ac_c_werror_flag"
16097                          || test ! -s conftest.err'
16098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099   (eval $ac_try) 2>&5
16100   ac_status=$?
16101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102   (exit $ac_status); }; } &&
16103          { ac_try='test -s conftest.$ac_objext'
16104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105   (eval $ac_try) 2>&5
16106   ac_status=$?
16107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108   (exit $ac_status); }; }; then
16109   ac_hi=-1 ac_mid=-1
16110   while :; do
16111     cat >conftest.$ac_ext <<_ACEOF
16112 /* confdefs.h.  */
16113 _ACEOF
16114 cat confdefs.h >>conftest.$ac_ext
16115 cat >>conftest.$ac_ext <<_ACEOF
16116 /* end confdefs.h.  */
16117 $ac_includes_default
16118 int
16119 main ()
16120 {
16121 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16122 test_array [0] = 0
16123
16124   ;
16125   return 0;
16126 }
16127 _ACEOF
16128 rm -f conftest.$ac_objext
16129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16130   (eval $ac_compile) 2>conftest.er1
16131   ac_status=$?
16132   grep -v '^ *+' conftest.er1 >conftest.err
16133   rm -f conftest.er1
16134   cat conftest.err >&5
16135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136   (exit $ac_status); } &&
16137          { ac_try='test -z "$ac_c_werror_flag"
16138                          || test ! -s conftest.err'
16139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16140   (eval $ac_try) 2>&5
16141   ac_status=$?
16142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143   (exit $ac_status); }; } &&
16144          { ac_try='test -s conftest.$ac_objext'
16145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16146   (eval $ac_try) 2>&5
16147   ac_status=$?
16148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149   (exit $ac_status); }; }; then
16150   ac_lo=$ac_mid; break
16151 else
16152   echo "$as_me: failed program was:" >&5
16153 sed 's/^/| /' conftest.$ac_ext >&5
16154
16155 ac_hi=`expr '(' $ac_mid ')' - 1`
16156                        if test $ac_mid -le $ac_hi; then
16157                          ac_lo= ac_hi=
16158                          break
16159                        fi
16160                        ac_mid=`expr 2 '*' $ac_mid`
16161 fi
16162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16163   done
16164 else
16165   echo "$as_me: failed program was:" >&5
16166 sed 's/^/| /' conftest.$ac_ext >&5
16167
16168 ac_lo= ac_hi=
16169 fi
16170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16171 fi
16172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16173 # Binary search between lo and hi bounds.
16174 while test "x$ac_lo" != "x$ac_hi"; do
16175   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16176   cat >conftest.$ac_ext <<_ACEOF
16177 /* confdefs.h.  */
16178 _ACEOF
16179 cat confdefs.h >>conftest.$ac_ext
16180 cat >>conftest.$ac_ext <<_ACEOF
16181 /* end confdefs.h.  */
16182 $ac_includes_default
16183 int
16184 main ()
16185 {
16186 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16187 test_array [0] = 0
16188
16189   ;
16190   return 0;
16191 }
16192 _ACEOF
16193 rm -f conftest.$ac_objext
16194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16195   (eval $ac_compile) 2>conftest.er1
16196   ac_status=$?
16197   grep -v '^ *+' conftest.er1 >conftest.err
16198   rm -f conftest.er1
16199   cat conftest.err >&5
16200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201   (exit $ac_status); } &&
16202          { ac_try='test -z "$ac_c_werror_flag"
16203                          || test ! -s conftest.err'
16204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16205   (eval $ac_try) 2>&5
16206   ac_status=$?
16207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208   (exit $ac_status); }; } &&
16209          { ac_try='test -s conftest.$ac_objext'
16210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16211   (eval $ac_try) 2>&5
16212   ac_status=$?
16213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214   (exit $ac_status); }; }; then
16215   ac_hi=$ac_mid
16216 else
16217   echo "$as_me: failed program was:" >&5
16218 sed 's/^/| /' conftest.$ac_ext >&5
16219
16220 ac_lo=`expr '(' $ac_mid ')' + 1`
16221 fi
16222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16223 done
16224 case $ac_lo in
16225 ?*) ac_cv_sizeof_long=$ac_lo;;
16226 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16227 See \`config.log' for more details." >&5
16228 echo "$as_me: error: cannot compute sizeof (long), 77
16229 See \`config.log' for more details." >&2;}
16230    { (exit 1); exit 1; }; } ;;
16231 esac
16232 else
16233   if test "$cross_compiling" = yes; then
16234   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16235 See \`config.log' for more details." >&5
16236 echo "$as_me: error: cannot run test program while cross compiling
16237 See \`config.log' for more details." >&2;}
16238    { (exit 1); exit 1; }; }
16239 else
16240   cat >conftest.$ac_ext <<_ACEOF
16241 /* confdefs.h.  */
16242 _ACEOF
16243 cat confdefs.h >>conftest.$ac_ext
16244 cat >>conftest.$ac_ext <<_ACEOF
16245 /* end confdefs.h.  */
16246 $ac_includes_default
16247 long longval () { return (long) (sizeof (long)); }
16248 unsigned long ulongval () { return (long) (sizeof (long)); }
16249 #include <stdio.h>
16250 #include <stdlib.h>
16251 int
16252 main ()
16253 {
16254
16255   FILE *f = fopen ("conftest.val", "w");
16256   if (! f)
16257     exit (1);
16258   if (((long) (sizeof (long))) < 0)
16259     {
16260       long i = longval ();
16261       if (i != ((long) (sizeof (long))))
16262         exit (1);
16263       fprintf (f, "%ld\n", i);
16264     }
16265   else
16266     {
16267       unsigned long i = ulongval ();
16268       if (i != ((long) (sizeof (long))))
16269         exit (1);
16270       fprintf (f, "%lu\n", i);
16271     }
16272   exit (ferror (f) || fclose (f) != 0);
16273
16274   ;
16275   return 0;
16276 }
16277 _ACEOF
16278 rm -f conftest$ac_exeext
16279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16280   (eval $ac_link) 2>&5
16281   ac_status=$?
16282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16285   (eval $ac_try) 2>&5
16286   ac_status=$?
16287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288   (exit $ac_status); }; }; then
16289   ac_cv_sizeof_long=`cat conftest.val`
16290 else
16291   echo "$as_me: program exited with status $ac_status" >&5
16292 echo "$as_me: failed program was:" >&5
16293 sed 's/^/| /' conftest.$ac_ext >&5
16294
16295 ( exit $ac_status )
16296 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16297 See \`config.log' for more details." >&5
16298 echo "$as_me: error: cannot compute sizeof (long), 77
16299 See \`config.log' for more details." >&2;}
16300    { (exit 1); exit 1; }; }
16301 fi
16302 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16303 fi
16304 fi
16305 rm -f conftest.val
16306 else
16307   ac_cv_sizeof_long=0
16308 fi
16309 fi
16310 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16311 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16312 cat >>confdefs.h <<_ACEOF
16313 #define SIZEOF_LONG $ac_cv_sizeof_long
16314 _ACEOF
16315
16316
16317 echo "$as_me:$LINENO: checking for size_t" >&5
16318 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16319 if test "${ac_cv_type_size_t+set}" = set; then
16320   echo $ECHO_N "(cached) $ECHO_C" >&6
16321 else
16322   cat >conftest.$ac_ext <<_ACEOF
16323 /* confdefs.h.  */
16324 _ACEOF
16325 cat confdefs.h >>conftest.$ac_ext
16326 cat >>conftest.$ac_ext <<_ACEOF
16327 /* end confdefs.h.  */
16328 $ac_includes_default
16329 int
16330 main ()
16331 {
16332 if ((size_t *) 0)
16333   return 0;
16334 if (sizeof (size_t))
16335   return 0;
16336   ;
16337   return 0;
16338 }
16339 _ACEOF
16340 rm -f conftest.$ac_objext
16341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16342   (eval $ac_compile) 2>conftest.er1
16343   ac_status=$?
16344   grep -v '^ *+' conftest.er1 >conftest.err
16345   rm -f conftest.er1
16346   cat conftest.err >&5
16347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348   (exit $ac_status); } &&
16349          { ac_try='test -z "$ac_c_werror_flag"
16350                          || test ! -s conftest.err'
16351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16352   (eval $ac_try) 2>&5
16353   ac_status=$?
16354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355   (exit $ac_status); }; } &&
16356          { ac_try='test -s conftest.$ac_objext'
16357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16358   (eval $ac_try) 2>&5
16359   ac_status=$?
16360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361   (exit $ac_status); }; }; then
16362   ac_cv_type_size_t=yes
16363 else
16364   echo "$as_me: failed program was:" >&5
16365 sed 's/^/| /' conftest.$ac_ext >&5
16366
16367 ac_cv_type_size_t=no
16368 fi
16369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16370 fi
16371 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16372 echo "${ECHO_T}$ac_cv_type_size_t" >&6
16373
16374 echo "$as_me:$LINENO: checking size of size_t" >&5
16375 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16376 if test "${ac_cv_sizeof_size_t+set}" = set; then
16377   echo $ECHO_N "(cached) $ECHO_C" >&6
16378 else
16379   if test "$ac_cv_type_size_t" = yes; then
16380   # The cast to unsigned long works around a bug in the HP C Compiler
16381   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16382   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16383   # This bug is HP SR number 8606223364.
16384   if test "$cross_compiling" = yes; then
16385   # Depending upon the size, compute the lo and hi bounds.
16386 cat >conftest.$ac_ext <<_ACEOF
16387 /* confdefs.h.  */
16388 _ACEOF
16389 cat confdefs.h >>conftest.$ac_ext
16390 cat >>conftest.$ac_ext <<_ACEOF
16391 /* end confdefs.h.  */
16392 $ac_includes_default
16393 int
16394 main ()
16395 {
16396 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16397 test_array [0] = 0
16398
16399   ;
16400   return 0;
16401 }
16402 _ACEOF
16403 rm -f conftest.$ac_objext
16404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16405   (eval $ac_compile) 2>conftest.er1
16406   ac_status=$?
16407   grep -v '^ *+' conftest.er1 >conftest.err
16408   rm -f conftest.er1
16409   cat conftest.err >&5
16410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411   (exit $ac_status); } &&
16412          { ac_try='test -z "$ac_c_werror_flag"
16413                          || test ! -s conftest.err'
16414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16415   (eval $ac_try) 2>&5
16416   ac_status=$?
16417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418   (exit $ac_status); }; } &&
16419          { ac_try='test -s conftest.$ac_objext'
16420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16421   (eval $ac_try) 2>&5
16422   ac_status=$?
16423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424   (exit $ac_status); }; }; then
16425   ac_lo=0 ac_mid=0
16426   while :; do
16427     cat >conftest.$ac_ext <<_ACEOF
16428 /* confdefs.h.  */
16429 _ACEOF
16430 cat confdefs.h >>conftest.$ac_ext
16431 cat >>conftest.$ac_ext <<_ACEOF
16432 /* end confdefs.h.  */
16433 $ac_includes_default
16434 int
16435 main ()
16436 {
16437 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16438 test_array [0] = 0
16439
16440   ;
16441   return 0;
16442 }
16443 _ACEOF
16444 rm -f conftest.$ac_objext
16445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16446   (eval $ac_compile) 2>conftest.er1
16447   ac_status=$?
16448   grep -v '^ *+' conftest.er1 >conftest.err
16449   rm -f conftest.er1
16450   cat conftest.err >&5
16451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452   (exit $ac_status); } &&
16453          { ac_try='test -z "$ac_c_werror_flag"
16454                          || test ! -s conftest.err'
16455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16456   (eval $ac_try) 2>&5
16457   ac_status=$?
16458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459   (exit $ac_status); }; } &&
16460          { ac_try='test -s conftest.$ac_objext'
16461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16462   (eval $ac_try) 2>&5
16463   ac_status=$?
16464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465   (exit $ac_status); }; }; then
16466   ac_hi=$ac_mid; break
16467 else
16468   echo "$as_me: failed program was:" >&5
16469 sed 's/^/| /' conftest.$ac_ext >&5
16470
16471 ac_lo=`expr $ac_mid + 1`
16472                     if test $ac_lo -le $ac_mid; then
16473                       ac_lo= ac_hi=
16474                       break
16475                     fi
16476                     ac_mid=`expr 2 '*' $ac_mid + 1`
16477 fi
16478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16479   done
16480 else
16481   echo "$as_me: failed program was:" >&5
16482 sed 's/^/| /' conftest.$ac_ext >&5
16483
16484 cat >conftest.$ac_ext <<_ACEOF
16485 /* confdefs.h.  */
16486 _ACEOF
16487 cat confdefs.h >>conftest.$ac_ext
16488 cat >>conftest.$ac_ext <<_ACEOF
16489 /* end confdefs.h.  */
16490 $ac_includes_default
16491 int
16492 main ()
16493 {
16494 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16495 test_array [0] = 0
16496
16497   ;
16498   return 0;
16499 }
16500 _ACEOF
16501 rm -f conftest.$ac_objext
16502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16503   (eval $ac_compile) 2>conftest.er1
16504   ac_status=$?
16505   grep -v '^ *+' conftest.er1 >conftest.err
16506   rm -f conftest.er1
16507   cat conftest.err >&5
16508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509   (exit $ac_status); } &&
16510          { ac_try='test -z "$ac_c_werror_flag"
16511                          || test ! -s conftest.err'
16512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16513   (eval $ac_try) 2>&5
16514   ac_status=$?
16515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516   (exit $ac_status); }; } &&
16517          { ac_try='test -s conftest.$ac_objext'
16518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16519   (eval $ac_try) 2>&5
16520   ac_status=$?
16521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522   (exit $ac_status); }; }; then
16523   ac_hi=-1 ac_mid=-1
16524   while :; do
16525     cat >conftest.$ac_ext <<_ACEOF
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 (size_t))) >= $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>conftest.er1
16545   ac_status=$?
16546   grep -v '^ *+' conftest.er1 >conftest.err
16547   rm -f conftest.er1
16548   cat conftest.err >&5
16549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550   (exit $ac_status); } &&
16551          { ac_try='test -z "$ac_c_werror_flag"
16552                          || test ! -s conftest.err'
16553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16554   (eval $ac_try) 2>&5
16555   ac_status=$?
16556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557   (exit $ac_status); }; } &&
16558          { ac_try='test -s conftest.$ac_objext'
16559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16560   (eval $ac_try) 2>&5
16561   ac_status=$?
16562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563   (exit $ac_status); }; }; then
16564   ac_lo=$ac_mid; break
16565 else
16566   echo "$as_me: failed program was:" >&5
16567 sed 's/^/| /' conftest.$ac_ext >&5
16568
16569 ac_hi=`expr '(' $ac_mid ')' - 1`
16570                        if test $ac_mid -le $ac_hi; then
16571                          ac_lo= ac_hi=
16572                          break
16573                        fi
16574                        ac_mid=`expr 2 '*' $ac_mid`
16575 fi
16576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16577   done
16578 else
16579   echo "$as_me: failed program was:" >&5
16580 sed 's/^/| /' conftest.$ac_ext >&5
16581
16582 ac_lo= ac_hi=
16583 fi
16584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16585 fi
16586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16587 # Binary search between lo and hi bounds.
16588 while test "x$ac_lo" != "x$ac_hi"; do
16589   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16590   cat >conftest.$ac_ext <<_ACEOF
16591 /* confdefs.h.  */
16592 _ACEOF
16593 cat confdefs.h >>conftest.$ac_ext
16594 cat >>conftest.$ac_ext <<_ACEOF
16595 /* end confdefs.h.  */
16596 $ac_includes_default
16597 int
16598 main ()
16599 {
16600 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16601 test_array [0] = 0
16602
16603   ;
16604   return 0;
16605 }
16606 _ACEOF
16607 rm -f conftest.$ac_objext
16608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16609   (eval $ac_compile) 2>conftest.er1
16610   ac_status=$?
16611   grep -v '^ *+' conftest.er1 >conftest.err
16612   rm -f conftest.er1
16613   cat conftest.err >&5
16614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615   (exit $ac_status); } &&
16616          { ac_try='test -z "$ac_c_werror_flag"
16617                          || test ! -s conftest.err'
16618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16619   (eval $ac_try) 2>&5
16620   ac_status=$?
16621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622   (exit $ac_status); }; } &&
16623          { ac_try='test -s conftest.$ac_objext'
16624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16625   (eval $ac_try) 2>&5
16626   ac_status=$?
16627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628   (exit $ac_status); }; }; then
16629   ac_hi=$ac_mid
16630 else
16631   echo "$as_me: failed program was:" >&5
16632 sed 's/^/| /' conftest.$ac_ext >&5
16633
16634 ac_lo=`expr '(' $ac_mid ')' + 1`
16635 fi
16636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16637 done
16638 case $ac_lo in
16639 ?*) ac_cv_sizeof_size_t=$ac_lo;;
16640 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16641 See \`config.log' for more details." >&5
16642 echo "$as_me: error: cannot compute sizeof (size_t), 77
16643 See \`config.log' for more details." >&2;}
16644    { (exit 1); exit 1; }; } ;;
16645 esac
16646 else
16647   if test "$cross_compiling" = yes; then
16648   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16649 See \`config.log' for more details." >&5
16650 echo "$as_me: error: cannot run test program while cross compiling
16651 See \`config.log' for more details." >&2;}
16652    { (exit 1); exit 1; }; }
16653 else
16654   cat >conftest.$ac_ext <<_ACEOF
16655 /* confdefs.h.  */
16656 _ACEOF
16657 cat confdefs.h >>conftest.$ac_ext
16658 cat >>conftest.$ac_ext <<_ACEOF
16659 /* end confdefs.h.  */
16660 $ac_includes_default
16661 long longval () { return (long) (sizeof (size_t)); }
16662 unsigned long ulongval () { return (long) (sizeof (size_t)); }
16663 #include <stdio.h>
16664 #include <stdlib.h>
16665 int
16666 main ()
16667 {
16668
16669   FILE *f = fopen ("conftest.val", "w");
16670   if (! f)
16671     exit (1);
16672   if (((long) (sizeof (size_t))) < 0)
16673     {
16674       long i = longval ();
16675       if (i != ((long) (sizeof (size_t))))
16676         exit (1);
16677       fprintf (f, "%ld\n", i);
16678     }
16679   else
16680     {
16681       unsigned long i = ulongval ();
16682       if (i != ((long) (sizeof (size_t))))
16683         exit (1);
16684       fprintf (f, "%lu\n", i);
16685     }
16686   exit (ferror (f) || fclose (f) != 0);
16687
16688   ;
16689   return 0;
16690 }
16691 _ACEOF
16692 rm -f conftest$ac_exeext
16693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16694   (eval $ac_link) 2>&5
16695   ac_status=$?
16696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16699   (eval $ac_try) 2>&5
16700   ac_status=$?
16701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702   (exit $ac_status); }; }; then
16703   ac_cv_sizeof_size_t=`cat conftest.val`
16704 else
16705   echo "$as_me: program exited with status $ac_status" >&5
16706 echo "$as_me: failed program was:" >&5
16707 sed 's/^/| /' conftest.$ac_ext >&5
16708
16709 ( exit $ac_status )
16710 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16711 See \`config.log' for more details." >&5
16712 echo "$as_me: error: cannot compute sizeof (size_t), 77
16713 See \`config.log' for more details." >&2;}
16714    { (exit 1); exit 1; }; }
16715 fi
16716 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16717 fi
16718 fi
16719 rm -f conftest.val
16720 else
16721   ac_cv_sizeof_size_t=0
16722 fi
16723 fi
16724 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16725 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16726 cat >>confdefs.h <<_ACEOF
16727 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16728 _ACEOF
16729
16730
16731
16732 case "${host}" in
16733     arm-*-linux* )
16734         echo "$as_me:$LINENO: checking for long long" >&5
16735 echo $ECHO_N "checking for long long... $ECHO_C" >&6
16736 if test "${ac_cv_type_long_long+set}" = set; then
16737   echo $ECHO_N "(cached) $ECHO_C" >&6
16738 else
16739   cat >conftest.$ac_ext <<_ACEOF
16740 /* confdefs.h.  */
16741 _ACEOF
16742 cat confdefs.h >>conftest.$ac_ext
16743 cat >>conftest.$ac_ext <<_ACEOF
16744 /* end confdefs.h.  */
16745 $ac_includes_default
16746 int
16747 main ()
16748 {
16749 if ((long long *) 0)
16750   return 0;
16751 if (sizeof (long long))
16752   return 0;
16753   ;
16754   return 0;
16755 }
16756 _ACEOF
16757 rm -f conftest.$ac_objext
16758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16759   (eval $ac_compile) 2>conftest.er1
16760   ac_status=$?
16761   grep -v '^ *+' conftest.er1 >conftest.err
16762   rm -f conftest.er1
16763   cat conftest.err >&5
16764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765   (exit $ac_status); } &&
16766          { ac_try='test -z "$ac_c_werror_flag"
16767                          || test ! -s conftest.err'
16768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16769   (eval $ac_try) 2>&5
16770   ac_status=$?
16771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772   (exit $ac_status); }; } &&
16773          { ac_try='test -s conftest.$ac_objext'
16774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16775   (eval $ac_try) 2>&5
16776   ac_status=$?
16777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778   (exit $ac_status); }; }; then
16779   ac_cv_type_long_long=yes
16780 else
16781   echo "$as_me: failed program was:" >&5
16782 sed 's/^/| /' conftest.$ac_ext >&5
16783
16784 ac_cv_type_long_long=no
16785 fi
16786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16787 fi
16788 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16789 echo "${ECHO_T}$ac_cv_type_long_long" >&6
16790
16791 echo "$as_me:$LINENO: checking size of long long" >&5
16792 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16793 if test "${ac_cv_sizeof_long_long+set}" = set; then
16794   echo $ECHO_N "(cached) $ECHO_C" >&6
16795 else
16796   if test "$ac_cv_type_long_long" = yes; then
16797   # The cast to unsigned long works around a bug in the HP C Compiler
16798   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16799   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16800   # This bug is HP SR number 8606223364.
16801   if test "$cross_compiling" = yes; then
16802   # Depending upon the size, compute the lo and hi bounds.
16803 cat >conftest.$ac_ext <<_ACEOF
16804 /* confdefs.h.  */
16805 _ACEOF
16806 cat confdefs.h >>conftest.$ac_ext
16807 cat >>conftest.$ac_ext <<_ACEOF
16808 /* end confdefs.h.  */
16809 $ac_includes_default
16810 int
16811 main ()
16812 {
16813 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16814 test_array [0] = 0
16815
16816   ;
16817   return 0;
16818 }
16819 _ACEOF
16820 rm -f conftest.$ac_objext
16821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16822   (eval $ac_compile) 2>conftest.er1
16823   ac_status=$?
16824   grep -v '^ *+' conftest.er1 >conftest.err
16825   rm -f conftest.er1
16826   cat conftest.err >&5
16827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828   (exit $ac_status); } &&
16829          { ac_try='test -z "$ac_c_werror_flag"
16830                          || test ! -s conftest.err'
16831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16832   (eval $ac_try) 2>&5
16833   ac_status=$?
16834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835   (exit $ac_status); }; } &&
16836          { ac_try='test -s conftest.$ac_objext'
16837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16838   (eval $ac_try) 2>&5
16839   ac_status=$?
16840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841   (exit $ac_status); }; }; then
16842   ac_lo=0 ac_mid=0
16843   while :; do
16844     cat >conftest.$ac_ext <<_ACEOF
16845 /* confdefs.h.  */
16846 _ACEOF
16847 cat confdefs.h >>conftest.$ac_ext
16848 cat >>conftest.$ac_ext <<_ACEOF
16849 /* end confdefs.h.  */
16850 $ac_includes_default
16851 int
16852 main ()
16853 {
16854 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16855 test_array [0] = 0
16856
16857   ;
16858   return 0;
16859 }
16860 _ACEOF
16861 rm -f conftest.$ac_objext
16862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16863   (eval $ac_compile) 2>conftest.er1
16864   ac_status=$?
16865   grep -v '^ *+' conftest.er1 >conftest.err
16866   rm -f conftest.er1
16867   cat conftest.err >&5
16868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869   (exit $ac_status); } &&
16870          { ac_try='test -z "$ac_c_werror_flag"
16871                          || test ! -s conftest.err'
16872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16873   (eval $ac_try) 2>&5
16874   ac_status=$?
16875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876   (exit $ac_status); }; } &&
16877          { ac_try='test -s conftest.$ac_objext'
16878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16879   (eval $ac_try) 2>&5
16880   ac_status=$?
16881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882   (exit $ac_status); }; }; then
16883   ac_hi=$ac_mid; break
16884 else
16885   echo "$as_me: failed program was:" >&5
16886 sed 's/^/| /' conftest.$ac_ext >&5
16887
16888 ac_lo=`expr $ac_mid + 1`
16889                     if test $ac_lo -le $ac_mid; then
16890                       ac_lo= ac_hi=
16891                       break
16892                     fi
16893                     ac_mid=`expr 2 '*' $ac_mid + 1`
16894 fi
16895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16896   done
16897 else
16898   echo "$as_me: failed program was:" >&5
16899 sed 's/^/| /' conftest.$ac_ext >&5
16900
16901 cat >conftest.$ac_ext <<_ACEOF
16902 /* confdefs.h.  */
16903 _ACEOF
16904 cat confdefs.h >>conftest.$ac_ext
16905 cat >>conftest.$ac_ext <<_ACEOF
16906 /* end confdefs.h.  */
16907 $ac_includes_default
16908 int
16909 main ()
16910 {
16911 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16912 test_array [0] = 0
16913
16914   ;
16915   return 0;
16916 }
16917 _ACEOF
16918 rm -f conftest.$ac_objext
16919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16920   (eval $ac_compile) 2>conftest.er1
16921   ac_status=$?
16922   grep -v '^ *+' conftest.er1 >conftest.err
16923   rm -f conftest.er1
16924   cat conftest.err >&5
16925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926   (exit $ac_status); } &&
16927          { ac_try='test -z "$ac_c_werror_flag"
16928                          || test ! -s conftest.err'
16929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16930   (eval $ac_try) 2>&5
16931   ac_status=$?
16932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933   (exit $ac_status); }; } &&
16934          { ac_try='test -s conftest.$ac_objext'
16935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16936   (eval $ac_try) 2>&5
16937   ac_status=$?
16938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939   (exit $ac_status); }; }; then
16940   ac_hi=-1 ac_mid=-1
16941   while :; do
16942     cat >conftest.$ac_ext <<_ACEOF
16943 /* confdefs.h.  */
16944 _ACEOF
16945 cat confdefs.h >>conftest.$ac_ext
16946 cat >>conftest.$ac_ext <<_ACEOF
16947 /* end confdefs.h.  */
16948 $ac_includes_default
16949 int
16950 main ()
16951 {
16952 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16953 test_array [0] = 0
16954
16955   ;
16956   return 0;
16957 }
16958 _ACEOF
16959 rm -f conftest.$ac_objext
16960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16961   (eval $ac_compile) 2>conftest.er1
16962   ac_status=$?
16963   grep -v '^ *+' conftest.er1 >conftest.err
16964   rm -f conftest.er1
16965   cat conftest.err >&5
16966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967   (exit $ac_status); } &&
16968          { ac_try='test -z "$ac_c_werror_flag"
16969                          || test ! -s conftest.err'
16970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16971   (eval $ac_try) 2>&5
16972   ac_status=$?
16973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974   (exit $ac_status); }; } &&
16975          { ac_try='test -s conftest.$ac_objext'
16976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16977   (eval $ac_try) 2>&5
16978   ac_status=$?
16979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16980   (exit $ac_status); }; }; then
16981   ac_lo=$ac_mid; break
16982 else
16983   echo "$as_me: failed program was:" >&5
16984 sed 's/^/| /' conftest.$ac_ext >&5
16985
16986 ac_hi=`expr '(' $ac_mid ')' - 1`
16987                        if test $ac_mid -le $ac_hi; then
16988                          ac_lo= ac_hi=
16989                          break
16990                        fi
16991                        ac_mid=`expr 2 '*' $ac_mid`
16992 fi
16993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16994   done
16995 else
16996   echo "$as_me: failed program was:" >&5
16997 sed 's/^/| /' conftest.$ac_ext >&5
16998
16999 ac_lo= ac_hi=
17000 fi
17001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17002 fi
17003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17004 # Binary search between lo and hi bounds.
17005 while test "x$ac_lo" != "x$ac_hi"; do
17006   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17007   cat >conftest.$ac_ext <<_ACEOF
17008 /* confdefs.h.  */
17009 _ACEOF
17010 cat confdefs.h >>conftest.$ac_ext
17011 cat >>conftest.$ac_ext <<_ACEOF
17012 /* end confdefs.h.  */
17013 $ac_includes_default
17014 int
17015 main ()
17016 {
17017 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17018 test_array [0] = 0
17019
17020   ;
17021   return 0;
17022 }
17023 _ACEOF
17024 rm -f conftest.$ac_objext
17025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17026   (eval $ac_compile) 2>conftest.er1
17027   ac_status=$?
17028   grep -v '^ *+' conftest.er1 >conftest.err
17029   rm -f conftest.er1
17030   cat conftest.err >&5
17031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032   (exit $ac_status); } &&
17033          { ac_try='test -z "$ac_c_werror_flag"
17034                          || test ! -s conftest.err'
17035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17036   (eval $ac_try) 2>&5
17037   ac_status=$?
17038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039   (exit $ac_status); }; } &&
17040          { ac_try='test -s conftest.$ac_objext'
17041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17042   (eval $ac_try) 2>&5
17043   ac_status=$?
17044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045   (exit $ac_status); }; }; then
17046   ac_hi=$ac_mid
17047 else
17048   echo "$as_me: failed program was:" >&5
17049 sed 's/^/| /' conftest.$ac_ext >&5
17050
17051 ac_lo=`expr '(' $ac_mid ')' + 1`
17052 fi
17053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17054 done
17055 case $ac_lo in
17056 ?*) ac_cv_sizeof_long_long=$ac_lo;;
17057 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17058 See \`config.log' for more details." >&5
17059 echo "$as_me: error: cannot compute sizeof (long long), 77
17060 See \`config.log' for more details." >&2;}
17061    { (exit 1); exit 1; }; } ;;
17062 esac
17063 else
17064   if test "$cross_compiling" = yes; then
17065   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17066 See \`config.log' for more details." >&5
17067 echo "$as_me: error: cannot run test program while cross compiling
17068 See \`config.log' for more details." >&2;}
17069    { (exit 1); exit 1; }; }
17070 else
17071   cat >conftest.$ac_ext <<_ACEOF
17072 /* confdefs.h.  */
17073 _ACEOF
17074 cat confdefs.h >>conftest.$ac_ext
17075 cat >>conftest.$ac_ext <<_ACEOF
17076 /* end confdefs.h.  */
17077 $ac_includes_default
17078 long longval () { return (long) (sizeof (long long)); }
17079 unsigned long ulongval () { return (long) (sizeof (long long)); }
17080 #include <stdio.h>
17081 #include <stdlib.h>
17082 int
17083 main ()
17084 {
17085
17086   FILE *f = fopen ("conftest.val", "w");
17087   if (! f)
17088     exit (1);
17089   if (((long) (sizeof (long long))) < 0)
17090     {
17091       long i = longval ();
17092       if (i != ((long) (sizeof (long long))))
17093         exit (1);
17094       fprintf (f, "%ld\n", i);
17095     }
17096   else
17097     {
17098       unsigned long i = ulongval ();
17099       if (i != ((long) (sizeof (long long))))
17100         exit (1);
17101       fprintf (f, "%lu\n", i);
17102     }
17103   exit (ferror (f) || fclose (f) != 0);
17104
17105   ;
17106   return 0;
17107 }
17108 _ACEOF
17109 rm -f conftest$ac_exeext
17110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17111   (eval $ac_link) 2>&5
17112   ac_status=$?
17113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17116   (eval $ac_try) 2>&5
17117   ac_status=$?
17118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119   (exit $ac_status); }; }; then
17120   ac_cv_sizeof_long_long=`cat conftest.val`
17121 else
17122   echo "$as_me: program exited with status $ac_status" >&5
17123 echo "$as_me: failed program was:" >&5
17124 sed 's/^/| /' conftest.$ac_ext >&5
17125
17126 ( exit $ac_status )
17127 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17128 See \`config.log' for more details." >&5
17129 echo "$as_me: error: cannot compute sizeof (long long), 77
17130 See \`config.log' for more details." >&2;}
17131    { (exit 1); exit 1; }; }
17132 fi
17133 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17134 fi
17135 fi
17136 rm -f conftest.val
17137 else
17138   ac_cv_sizeof_long_long=0
17139 fi
17140 fi
17141 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17142 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17143 cat >>confdefs.h <<_ACEOF
17144 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17145 _ACEOF
17146
17147
17148     ;;
17149     *-hp-hpux* )
17150         echo "$as_me:$LINENO: checking for long long" >&5
17151 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17152 if test "${ac_cv_type_long_long+set}" = set; then
17153   echo $ECHO_N "(cached) $ECHO_C" >&6
17154 else
17155   cat >conftest.$ac_ext <<_ACEOF
17156 /* confdefs.h.  */
17157 _ACEOF
17158 cat confdefs.h >>conftest.$ac_ext
17159 cat >>conftest.$ac_ext <<_ACEOF
17160 /* end confdefs.h.  */
17161 $ac_includes_default
17162 int
17163 main ()
17164 {
17165 if ((long long *) 0)
17166   return 0;
17167 if (sizeof (long long))
17168   return 0;
17169   ;
17170   return 0;
17171 }
17172 _ACEOF
17173 rm -f conftest.$ac_objext
17174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17175   (eval $ac_compile) 2>conftest.er1
17176   ac_status=$?
17177   grep -v '^ *+' conftest.er1 >conftest.err
17178   rm -f conftest.er1
17179   cat conftest.err >&5
17180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181   (exit $ac_status); } &&
17182          { ac_try='test -z "$ac_c_werror_flag"
17183                          || test ! -s conftest.err'
17184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17185   (eval $ac_try) 2>&5
17186   ac_status=$?
17187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188   (exit $ac_status); }; } &&
17189          { ac_try='test -s conftest.$ac_objext'
17190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17191   (eval $ac_try) 2>&5
17192   ac_status=$?
17193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194   (exit $ac_status); }; }; then
17195   ac_cv_type_long_long=yes
17196 else
17197   echo "$as_me: failed program was:" >&5
17198 sed 's/^/| /' conftest.$ac_ext >&5
17199
17200 ac_cv_type_long_long=no
17201 fi
17202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17203 fi
17204 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17205 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17206
17207 echo "$as_me:$LINENO: checking size of long long" >&5
17208 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17209 if test "${ac_cv_sizeof_long_long+set}" = set; then
17210   echo $ECHO_N "(cached) $ECHO_C" >&6
17211 else
17212   if test "$ac_cv_type_long_long" = yes; then
17213   # The cast to unsigned long works around a bug in the HP C Compiler
17214   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17215   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17216   # This bug is HP SR number 8606223364.
17217   if test "$cross_compiling" = yes; then
17218   # Depending upon the size, compute the lo and hi bounds.
17219 cat >conftest.$ac_ext <<_ACEOF
17220 /* confdefs.h.  */
17221 _ACEOF
17222 cat confdefs.h >>conftest.$ac_ext
17223 cat >>conftest.$ac_ext <<_ACEOF
17224 /* end confdefs.h.  */
17225 $ac_includes_default
17226 int
17227 main ()
17228 {
17229 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17230 test_array [0] = 0
17231
17232   ;
17233   return 0;
17234 }
17235 _ACEOF
17236 rm -f conftest.$ac_objext
17237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17238   (eval $ac_compile) 2>conftest.er1
17239   ac_status=$?
17240   grep -v '^ *+' conftest.er1 >conftest.err
17241   rm -f conftest.er1
17242   cat conftest.err >&5
17243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244   (exit $ac_status); } &&
17245          { ac_try='test -z "$ac_c_werror_flag"
17246                          || test ! -s conftest.err'
17247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17248   (eval $ac_try) 2>&5
17249   ac_status=$?
17250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251   (exit $ac_status); }; } &&
17252          { ac_try='test -s conftest.$ac_objext'
17253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17254   (eval $ac_try) 2>&5
17255   ac_status=$?
17256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257   (exit $ac_status); }; }; then
17258   ac_lo=0 ac_mid=0
17259   while :; do
17260     cat >conftest.$ac_ext <<_ACEOF
17261 /* confdefs.h.  */
17262 _ACEOF
17263 cat confdefs.h >>conftest.$ac_ext
17264 cat >>conftest.$ac_ext <<_ACEOF
17265 /* end confdefs.h.  */
17266 $ac_includes_default
17267 int
17268 main ()
17269 {
17270 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17271 test_array [0] = 0
17272
17273   ;
17274   return 0;
17275 }
17276 _ACEOF
17277 rm -f conftest.$ac_objext
17278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17279   (eval $ac_compile) 2>conftest.er1
17280   ac_status=$?
17281   grep -v '^ *+' conftest.er1 >conftest.err
17282   rm -f conftest.er1
17283   cat conftest.err >&5
17284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285   (exit $ac_status); } &&
17286          { ac_try='test -z "$ac_c_werror_flag"
17287                          || test ! -s conftest.err'
17288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17289   (eval $ac_try) 2>&5
17290   ac_status=$?
17291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292   (exit $ac_status); }; } &&
17293          { ac_try='test -s conftest.$ac_objext'
17294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17295   (eval $ac_try) 2>&5
17296   ac_status=$?
17297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298   (exit $ac_status); }; }; then
17299   ac_hi=$ac_mid; break
17300 else
17301   echo "$as_me: failed program was:" >&5
17302 sed 's/^/| /' conftest.$ac_ext >&5
17303
17304 ac_lo=`expr $ac_mid + 1`
17305                     if test $ac_lo -le $ac_mid; then
17306                       ac_lo= ac_hi=
17307                       break
17308                     fi
17309                     ac_mid=`expr 2 '*' $ac_mid + 1`
17310 fi
17311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17312   done
17313 else
17314   echo "$as_me: failed program was:" >&5
17315 sed 's/^/| /' conftest.$ac_ext >&5
17316
17317 cat >conftest.$ac_ext <<_ACEOF
17318 /* confdefs.h.  */
17319 _ACEOF
17320 cat confdefs.h >>conftest.$ac_ext
17321 cat >>conftest.$ac_ext <<_ACEOF
17322 /* end confdefs.h.  */
17323 $ac_includes_default
17324 int
17325 main ()
17326 {
17327 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17328 test_array [0] = 0
17329
17330   ;
17331   return 0;
17332 }
17333 _ACEOF
17334 rm -f conftest.$ac_objext
17335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17336   (eval $ac_compile) 2>conftest.er1
17337   ac_status=$?
17338   grep -v '^ *+' conftest.er1 >conftest.err
17339   rm -f conftest.er1
17340   cat conftest.err >&5
17341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342   (exit $ac_status); } &&
17343          { ac_try='test -z "$ac_c_werror_flag"
17344                          || test ! -s conftest.err'
17345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17346   (eval $ac_try) 2>&5
17347   ac_status=$?
17348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349   (exit $ac_status); }; } &&
17350          { ac_try='test -s conftest.$ac_objext'
17351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17352   (eval $ac_try) 2>&5
17353   ac_status=$?
17354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355   (exit $ac_status); }; }; then
17356   ac_hi=-1 ac_mid=-1
17357   while :; do
17358     cat >conftest.$ac_ext <<_ACEOF
17359 /* confdefs.h.  */
17360 _ACEOF
17361 cat confdefs.h >>conftest.$ac_ext
17362 cat >>conftest.$ac_ext <<_ACEOF
17363 /* end confdefs.h.  */
17364 $ac_includes_default
17365 int
17366 main ()
17367 {
17368 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17369 test_array [0] = 0
17370
17371   ;
17372   return 0;
17373 }
17374 _ACEOF
17375 rm -f conftest.$ac_objext
17376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17377   (eval $ac_compile) 2>conftest.er1
17378   ac_status=$?
17379   grep -v '^ *+' conftest.er1 >conftest.err
17380   rm -f conftest.er1
17381   cat conftest.err >&5
17382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383   (exit $ac_status); } &&
17384          { ac_try='test -z "$ac_c_werror_flag"
17385                          || test ! -s conftest.err'
17386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17387   (eval $ac_try) 2>&5
17388   ac_status=$?
17389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390   (exit $ac_status); }; } &&
17391          { ac_try='test -s conftest.$ac_objext'
17392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17393   (eval $ac_try) 2>&5
17394   ac_status=$?
17395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396   (exit $ac_status); }; }; then
17397   ac_lo=$ac_mid; break
17398 else
17399   echo "$as_me: failed program was:" >&5
17400 sed 's/^/| /' conftest.$ac_ext >&5
17401
17402 ac_hi=`expr '(' $ac_mid ')' - 1`
17403                        if test $ac_mid -le $ac_hi; then
17404                          ac_lo= ac_hi=
17405                          break
17406                        fi
17407                        ac_mid=`expr 2 '*' $ac_mid`
17408 fi
17409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17410   done
17411 else
17412   echo "$as_me: failed program was:" >&5
17413 sed 's/^/| /' conftest.$ac_ext >&5
17414
17415 ac_lo= ac_hi=
17416 fi
17417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17418 fi
17419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17420 # Binary search between lo and hi bounds.
17421 while test "x$ac_lo" != "x$ac_hi"; do
17422   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17423   cat >conftest.$ac_ext <<_ACEOF
17424 /* confdefs.h.  */
17425 _ACEOF
17426 cat confdefs.h >>conftest.$ac_ext
17427 cat >>conftest.$ac_ext <<_ACEOF
17428 /* end confdefs.h.  */
17429 $ac_includes_default
17430 int
17431 main ()
17432 {
17433 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17434 test_array [0] = 0
17435
17436   ;
17437   return 0;
17438 }
17439 _ACEOF
17440 rm -f conftest.$ac_objext
17441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17442   (eval $ac_compile) 2>conftest.er1
17443   ac_status=$?
17444   grep -v '^ *+' conftest.er1 >conftest.err
17445   rm -f conftest.er1
17446   cat conftest.err >&5
17447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448   (exit $ac_status); } &&
17449          { ac_try='test -z "$ac_c_werror_flag"
17450                          || test ! -s conftest.err'
17451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17452   (eval $ac_try) 2>&5
17453   ac_status=$?
17454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455   (exit $ac_status); }; } &&
17456          { ac_try='test -s conftest.$ac_objext'
17457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17458   (eval $ac_try) 2>&5
17459   ac_status=$?
17460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461   (exit $ac_status); }; }; then
17462   ac_hi=$ac_mid
17463 else
17464   echo "$as_me: failed program was:" >&5
17465 sed 's/^/| /' conftest.$ac_ext >&5
17466
17467 ac_lo=`expr '(' $ac_mid ')' + 1`
17468 fi
17469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17470 done
17471 case $ac_lo in
17472 ?*) ac_cv_sizeof_long_long=$ac_lo;;
17473 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17474 See \`config.log' for more details." >&5
17475 echo "$as_me: error: cannot compute sizeof (long long), 77
17476 See \`config.log' for more details." >&2;}
17477    { (exit 1); exit 1; }; } ;;
17478 esac
17479 else
17480   if test "$cross_compiling" = yes; then
17481   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17482 See \`config.log' for more details." >&5
17483 echo "$as_me: error: cannot run test program while cross compiling
17484 See \`config.log' for more details." >&2;}
17485    { (exit 1); exit 1; }; }
17486 else
17487   cat >conftest.$ac_ext <<_ACEOF
17488 /* confdefs.h.  */
17489 _ACEOF
17490 cat confdefs.h >>conftest.$ac_ext
17491 cat >>conftest.$ac_ext <<_ACEOF
17492 /* end confdefs.h.  */
17493 $ac_includes_default
17494 long longval () { return (long) (sizeof (long long)); }
17495 unsigned long ulongval () { return (long) (sizeof (long long)); }
17496 #include <stdio.h>
17497 #include <stdlib.h>
17498 int
17499 main ()
17500 {
17501
17502   FILE *f = fopen ("conftest.val", "w");
17503   if (! f)
17504     exit (1);
17505   if (((long) (sizeof (long long))) < 0)
17506     {
17507       long i = longval ();
17508       if (i != ((long) (sizeof (long long))))
17509         exit (1);
17510       fprintf (f, "%ld\n", i);
17511     }
17512   else
17513     {
17514       unsigned long i = ulongval ();
17515       if (i != ((long) (sizeof (long long))))
17516         exit (1);
17517       fprintf (f, "%lu\n", i);
17518     }
17519   exit (ferror (f) || fclose (f) != 0);
17520
17521   ;
17522   return 0;
17523 }
17524 _ACEOF
17525 rm -f conftest$ac_exeext
17526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17527   (eval $ac_link) 2>&5
17528   ac_status=$?
17529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17532   (eval $ac_try) 2>&5
17533   ac_status=$?
17534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535   (exit $ac_status); }; }; then
17536   ac_cv_sizeof_long_long=`cat conftest.val`
17537 else
17538   echo "$as_me: program exited with status $ac_status" >&5
17539 echo "$as_me: failed program was:" >&5
17540 sed 's/^/| /' conftest.$ac_ext >&5
17541
17542 ( exit $ac_status )
17543 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17544 See \`config.log' for more details." >&5
17545 echo "$as_me: error: cannot compute sizeof (long long), 77
17546 See \`config.log' for more details." >&2;}
17547    { (exit 1); exit 1; }; }
17548 fi
17549 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17550 fi
17551 fi
17552 rm -f conftest.val
17553 else
17554   ac_cv_sizeof_long_long=0
17555 fi
17556 fi
17557 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17558 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17559 cat >>confdefs.h <<_ACEOF
17560 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17561 _ACEOF
17562
17563
17564         if test "$ac_cv_sizeof_long_long" != "0"; then
17565                         CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17566         fi
17567     ;;
17568     * )
17569         echo "$as_me:$LINENO: checking for long long" >&5
17570 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17571 if test "${ac_cv_type_long_long+set}" = set; then
17572   echo $ECHO_N "(cached) $ECHO_C" >&6
17573 else
17574   cat >conftest.$ac_ext <<_ACEOF
17575 /* confdefs.h.  */
17576 _ACEOF
17577 cat confdefs.h >>conftest.$ac_ext
17578 cat >>conftest.$ac_ext <<_ACEOF
17579 /* end confdefs.h.  */
17580 $ac_includes_default
17581 int
17582 main ()
17583 {
17584 if ((long long *) 0)
17585   return 0;
17586 if (sizeof (long long))
17587   return 0;
17588   ;
17589   return 0;
17590 }
17591 _ACEOF
17592 rm -f conftest.$ac_objext
17593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17594   (eval $ac_compile) 2>conftest.er1
17595   ac_status=$?
17596   grep -v '^ *+' conftest.er1 >conftest.err
17597   rm -f conftest.er1
17598   cat conftest.err >&5
17599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600   (exit $ac_status); } &&
17601          { ac_try='test -z "$ac_c_werror_flag"
17602                          || test ! -s conftest.err'
17603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604   (eval $ac_try) 2>&5
17605   ac_status=$?
17606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607   (exit $ac_status); }; } &&
17608          { ac_try='test -s conftest.$ac_objext'
17609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17610   (eval $ac_try) 2>&5
17611   ac_status=$?
17612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613   (exit $ac_status); }; }; then
17614   ac_cv_type_long_long=yes
17615 else
17616   echo "$as_me: failed program was:" >&5
17617 sed 's/^/| /' conftest.$ac_ext >&5
17618
17619 ac_cv_type_long_long=no
17620 fi
17621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17622 fi
17623 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17624 echo "${ECHO_T}$ac_cv_type_long_long" >&6
17625
17626 echo "$as_me:$LINENO: checking size of long long" >&5
17627 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17628 if test "${ac_cv_sizeof_long_long+set}" = set; then
17629   echo $ECHO_N "(cached) $ECHO_C" >&6
17630 else
17631   if test "$ac_cv_type_long_long" = yes; then
17632   # The cast to unsigned long works around a bug in the HP C Compiler
17633   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17634   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17635   # This bug is HP SR number 8606223364.
17636   if test "$cross_compiling" = yes; then
17637   # Depending upon the size, compute the lo and hi bounds.
17638 cat >conftest.$ac_ext <<_ACEOF
17639 /* confdefs.h.  */
17640 _ACEOF
17641 cat confdefs.h >>conftest.$ac_ext
17642 cat >>conftest.$ac_ext <<_ACEOF
17643 /* end confdefs.h.  */
17644 $ac_includes_default
17645 int
17646 main ()
17647 {
17648 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17649 test_array [0] = 0
17650
17651   ;
17652   return 0;
17653 }
17654 _ACEOF
17655 rm -f conftest.$ac_objext
17656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17657   (eval $ac_compile) 2>conftest.er1
17658   ac_status=$?
17659   grep -v '^ *+' conftest.er1 >conftest.err
17660   rm -f conftest.er1
17661   cat conftest.err >&5
17662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663   (exit $ac_status); } &&
17664          { ac_try='test -z "$ac_c_werror_flag"
17665                          || test ! -s conftest.err'
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); }; } &&
17671          { ac_try='test -s conftest.$ac_objext'
17672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17673   (eval $ac_try) 2>&5
17674   ac_status=$?
17675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676   (exit $ac_status); }; }; then
17677   ac_lo=0 ac_mid=0
17678   while :; do
17679     cat >conftest.$ac_ext <<_ACEOF
17680 /* confdefs.h.  */
17681 _ACEOF
17682 cat confdefs.h >>conftest.$ac_ext
17683 cat >>conftest.$ac_ext <<_ACEOF
17684 /* end confdefs.h.  */
17685 $ac_includes_default
17686 int
17687 main ()
17688 {
17689 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17690 test_array [0] = 0
17691
17692   ;
17693   return 0;
17694 }
17695 _ACEOF
17696 rm -f conftest.$ac_objext
17697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17698   (eval $ac_compile) 2>conftest.er1
17699   ac_status=$?
17700   grep -v '^ *+' conftest.er1 >conftest.err
17701   rm -f conftest.er1
17702   cat conftest.err >&5
17703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704   (exit $ac_status); } &&
17705          { ac_try='test -z "$ac_c_werror_flag"
17706                          || test ! -s conftest.err'
17707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17708   (eval $ac_try) 2>&5
17709   ac_status=$?
17710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711   (exit $ac_status); }; } &&
17712          { ac_try='test -s conftest.$ac_objext'
17713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17714   (eval $ac_try) 2>&5
17715   ac_status=$?
17716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717   (exit $ac_status); }; }; then
17718   ac_hi=$ac_mid; break
17719 else
17720   echo "$as_me: failed program was:" >&5
17721 sed 's/^/| /' conftest.$ac_ext >&5
17722
17723 ac_lo=`expr $ac_mid + 1`
17724                     if test $ac_lo -le $ac_mid; then
17725                       ac_lo= ac_hi=
17726                       break
17727                     fi
17728                     ac_mid=`expr 2 '*' $ac_mid + 1`
17729 fi
17730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17731   done
17732 else
17733   echo "$as_me: failed program was:" >&5
17734 sed 's/^/| /' conftest.$ac_ext >&5
17735
17736 cat >conftest.$ac_ext <<_ACEOF
17737 /* confdefs.h.  */
17738 _ACEOF
17739 cat confdefs.h >>conftest.$ac_ext
17740 cat >>conftest.$ac_ext <<_ACEOF
17741 /* end confdefs.h.  */
17742 $ac_includes_default
17743 int
17744 main ()
17745 {
17746 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17747 test_array [0] = 0
17748
17749   ;
17750   return 0;
17751 }
17752 _ACEOF
17753 rm -f conftest.$ac_objext
17754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17755   (eval $ac_compile) 2>conftest.er1
17756   ac_status=$?
17757   grep -v '^ *+' conftest.er1 >conftest.err
17758   rm -f conftest.er1
17759   cat conftest.err >&5
17760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761   (exit $ac_status); } &&
17762          { ac_try='test -z "$ac_c_werror_flag"
17763                          || test ! -s conftest.err'
17764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17765   (eval $ac_try) 2>&5
17766   ac_status=$?
17767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768   (exit $ac_status); }; } &&
17769          { ac_try='test -s conftest.$ac_objext'
17770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17771   (eval $ac_try) 2>&5
17772   ac_status=$?
17773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774   (exit $ac_status); }; }; then
17775   ac_hi=-1 ac_mid=-1
17776   while :; do
17777     cat >conftest.$ac_ext <<_ACEOF
17778 /* confdefs.h.  */
17779 _ACEOF
17780 cat confdefs.h >>conftest.$ac_ext
17781 cat >>conftest.$ac_ext <<_ACEOF
17782 /* end confdefs.h.  */
17783 $ac_includes_default
17784 int
17785 main ()
17786 {
17787 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17788 test_array [0] = 0
17789
17790   ;
17791   return 0;
17792 }
17793 _ACEOF
17794 rm -f conftest.$ac_objext
17795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17796   (eval $ac_compile) 2>conftest.er1
17797   ac_status=$?
17798   grep -v '^ *+' conftest.er1 >conftest.err
17799   rm -f conftest.er1
17800   cat conftest.err >&5
17801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802   (exit $ac_status); } &&
17803          { ac_try='test -z "$ac_c_werror_flag"
17804                          || test ! -s conftest.err'
17805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17806   (eval $ac_try) 2>&5
17807   ac_status=$?
17808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809   (exit $ac_status); }; } &&
17810          { ac_try='test -s conftest.$ac_objext'
17811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17812   (eval $ac_try) 2>&5
17813   ac_status=$?
17814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815   (exit $ac_status); }; }; then
17816   ac_lo=$ac_mid; break
17817 else
17818   echo "$as_me: failed program was:" >&5
17819 sed 's/^/| /' conftest.$ac_ext >&5
17820
17821 ac_hi=`expr '(' $ac_mid ')' - 1`
17822                        if test $ac_mid -le $ac_hi; then
17823                          ac_lo= ac_hi=
17824                          break
17825                        fi
17826                        ac_mid=`expr 2 '*' $ac_mid`
17827 fi
17828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17829   done
17830 else
17831   echo "$as_me: failed program was:" >&5
17832 sed 's/^/| /' conftest.$ac_ext >&5
17833
17834 ac_lo= ac_hi=
17835 fi
17836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17837 fi
17838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17839 # Binary search between lo and hi bounds.
17840 while test "x$ac_lo" != "x$ac_hi"; do
17841   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17842   cat >conftest.$ac_ext <<_ACEOF
17843 /* confdefs.h.  */
17844 _ACEOF
17845 cat confdefs.h >>conftest.$ac_ext
17846 cat >>conftest.$ac_ext <<_ACEOF
17847 /* end confdefs.h.  */
17848 $ac_includes_default
17849 int
17850 main ()
17851 {
17852 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17853 test_array [0] = 0
17854
17855   ;
17856   return 0;
17857 }
17858 _ACEOF
17859 rm -f conftest.$ac_objext
17860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17861   (eval $ac_compile) 2>conftest.er1
17862   ac_status=$?
17863   grep -v '^ *+' conftest.er1 >conftest.err
17864   rm -f conftest.er1
17865   cat conftest.err >&5
17866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867   (exit $ac_status); } &&
17868          { ac_try='test -z "$ac_c_werror_flag"
17869                          || test ! -s conftest.err'
17870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17871   (eval $ac_try) 2>&5
17872   ac_status=$?
17873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874   (exit $ac_status); }; } &&
17875          { ac_try='test -s conftest.$ac_objext'
17876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877   (eval $ac_try) 2>&5
17878   ac_status=$?
17879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880   (exit $ac_status); }; }; then
17881   ac_hi=$ac_mid
17882 else
17883   echo "$as_me: failed program was:" >&5
17884 sed 's/^/| /' conftest.$ac_ext >&5
17885
17886 ac_lo=`expr '(' $ac_mid ')' + 1`
17887 fi
17888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17889 done
17890 case $ac_lo in
17891 ?*) ac_cv_sizeof_long_long=$ac_lo;;
17892 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17893 See \`config.log' for more details." >&5
17894 echo "$as_me: error: cannot compute sizeof (long long), 77
17895 See \`config.log' for more details." >&2;}
17896    { (exit 1); exit 1; }; } ;;
17897 esac
17898 else
17899   if test "$cross_compiling" = yes; then
17900   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17901 See \`config.log' for more details." >&5
17902 echo "$as_me: error: cannot run test program while cross compiling
17903 See \`config.log' for more details." >&2;}
17904    { (exit 1); exit 1; }; }
17905 else
17906   cat >conftest.$ac_ext <<_ACEOF
17907 /* confdefs.h.  */
17908 _ACEOF
17909 cat confdefs.h >>conftest.$ac_ext
17910 cat >>conftest.$ac_ext <<_ACEOF
17911 /* end confdefs.h.  */
17912 $ac_includes_default
17913 long longval () { return (long) (sizeof (long long)); }
17914 unsigned long ulongval () { return (long) (sizeof (long long)); }
17915 #include <stdio.h>
17916 #include <stdlib.h>
17917 int
17918 main ()
17919 {
17920
17921   FILE *f = fopen ("conftest.val", "w");
17922   if (! f)
17923     exit (1);
17924   if (((long) (sizeof (long long))) < 0)
17925     {
17926       long i = longval ();
17927       if (i != ((long) (sizeof (long long))))
17928         exit (1);
17929       fprintf (f, "%ld\n", i);
17930     }
17931   else
17932     {
17933       unsigned long i = ulongval ();
17934       if (i != ((long) (sizeof (long long))))
17935         exit (1);
17936       fprintf (f, "%lu\n", i);
17937     }
17938   exit (ferror (f) || fclose (f) != 0);
17939
17940   ;
17941   return 0;
17942 }
17943 _ACEOF
17944 rm -f conftest$ac_exeext
17945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17946   (eval $ac_link) 2>&5
17947   ac_status=$?
17948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17951   (eval $ac_try) 2>&5
17952   ac_status=$?
17953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954   (exit $ac_status); }; }; then
17955   ac_cv_sizeof_long_long=`cat conftest.val`
17956 else
17957   echo "$as_me: program exited with status $ac_status" >&5
17958 echo "$as_me: failed program was:" >&5
17959 sed 's/^/| /' conftest.$ac_ext >&5
17960
17961 ( exit $ac_status )
17962 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17963 See \`config.log' for more details." >&5
17964 echo "$as_me: error: cannot compute sizeof (long long), 77
17965 See \`config.log' for more details." >&2;}
17966    { (exit 1); exit 1; }; }
17967 fi
17968 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17969 fi
17970 fi
17971 rm -f conftest.val
17972 else
17973   ac_cv_sizeof_long_long=0
17974 fi
17975 fi
17976 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17977 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17978 cat >>confdefs.h <<_ACEOF
17979 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17980 _ACEOF
17981
17982
17983 esac
17984
17985 echo "$as_me:$LINENO: checking size of wchar_t" >&5
17986 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
17987 if test "${wx_cv_sizeof_wchar_t+set}" = set; then
17988   echo $ECHO_N "(cached) $ECHO_C" >&6
17989 else
17990
17991     if test "$cross_compiling" = yes; then
17992
17993             case "${host}" in
17994               *-pc-msdosdjgpp )
17995                 wx_cv_sizeof_wchar_t=0
17996                 ;;
17997               * )
17998                 wx_cv_sizeof_wchar_t=4
17999                 ;;
18000             esac
18001
18002
18003 else
18004   cat >conftest.$ac_ext <<_ACEOF
18005 /* confdefs.h.  */
18006 _ACEOF
18007 cat confdefs.h >>conftest.$ac_ext
18008 cat >>conftest.$ac_ext <<_ACEOF
18009 /* end confdefs.h.  */
18010
18011             /* DJGPP only has fake wchar_t: */
18012             #ifdef __DJGPP__
18013             #  error "fake wchar_t"
18014             #endif
18015             #ifdef HAVE_WCHAR_H
18016             #  ifdef __CYGWIN__
18017             #    include <stddef.h>
18018             #  endif
18019             #  include <wchar.h>
18020             #endif
18021             #ifdef HAVE_STDLIB_H
18022             #  include <stdlib.h>
18023             #endif
18024             #include <stdio.h>
18025             int main()
18026             {
18027                 FILE *f=fopen("conftestval", "w");
18028                 if (!f) exit(1);
18029                 fprintf(f, "%i", sizeof(wchar_t));
18030                 exit(0);
18031             }
18032
18033 _ACEOF
18034 rm -f conftest$ac_exeext
18035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18036   (eval $ac_link) 2>&5
18037   ac_status=$?
18038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18041   (eval $ac_try) 2>&5
18042   ac_status=$?
18043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044   (exit $ac_status); }; }; then
18045   wx_cv_sizeof_wchar_t=`cat conftestval`
18046 else
18047   echo "$as_me: program exited with status $ac_status" >&5
18048 echo "$as_me: failed program was:" >&5
18049 sed 's/^/| /' conftest.$ac_ext >&5
18050
18051 ( exit $ac_status )
18052 wx_cv_sizeof_wchar_t=0
18053 fi
18054 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18055 fi
18056
18057 fi
18058 echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18059 echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18060
18061 cat >>confdefs.h <<_ACEOF
18062 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18063 _ACEOF
18064
18065
18066 # Check whether --enable-largefile or --disable-largefile was given.
18067 if test "${enable_largefile+set}" = set; then
18068   enableval="$enable_largefile"
18069
18070 fi;
18071 if test "$enable_largefile" != no; then
18072             wx_largefile=no
18073
18074     echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18075 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18076 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18077   echo $ECHO_N "(cached) $ECHO_C" >&6
18078 else
18079
18080           cat >conftest.$ac_ext <<_ACEOF
18081 /* confdefs.h.  */
18082 _ACEOF
18083 cat confdefs.h >>conftest.$ac_ext
18084 cat >>conftest.$ac_ext <<_ACEOF
18085 /* end confdefs.h.  */
18086 #define _FILE_OFFSET_BITS 64
18087                           #include <sys/types.h>
18088 int
18089 main ()
18090 {
18091 typedef struct {
18092     unsigned int field: sizeof(off_t) == 8;
18093 } wxlf;
18094
18095   ;
18096   return 0;
18097 }
18098 _ACEOF
18099 rm -f conftest.$ac_objext
18100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18101   (eval $ac_compile) 2>conftest.er1
18102   ac_status=$?
18103   grep -v '^ *+' conftest.er1 >conftest.err
18104   rm -f conftest.er1
18105   cat conftest.err >&5
18106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107   (exit $ac_status); } &&
18108          { ac_try='test -z "$ac_c_werror_flag"
18109                          || test ! -s conftest.err'
18110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18111   (eval $ac_try) 2>&5
18112   ac_status=$?
18113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18114   (exit $ac_status); }; } &&
18115          { ac_try='test -s conftest.$ac_objext'
18116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18117   (eval $ac_try) 2>&5
18118   ac_status=$?
18119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120   (exit $ac_status); }; }; then
18121   ac_cv_sys_file_offset_bits=64
18122 else
18123   echo "$as_me: failed program was:" >&5
18124 sed 's/^/| /' conftest.$ac_ext >&5
18125
18126 ac_cv_sys_file_offset_bits=no
18127 fi
18128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18129
18130
18131 fi
18132 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18133 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18134
18135     if test "$ac_cv_sys_file_offset_bits" != no; then
18136         wx_largefile=yes
18137         cat >>confdefs.h <<_ACEOF
18138 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18139 _ACEOF
18140
18141     fi
18142
18143     if test "x$wx_largefile" != "xyes"; then
18144
18145     echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18146 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18147 if test "${ac_cv_sys_large_files+set}" = set; then
18148   echo $ECHO_N "(cached) $ECHO_C" >&6
18149 else
18150
18151           cat >conftest.$ac_ext <<_ACEOF
18152 /* confdefs.h.  */
18153 _ACEOF
18154 cat confdefs.h >>conftest.$ac_ext
18155 cat >>conftest.$ac_ext <<_ACEOF
18156 /* end confdefs.h.  */
18157 #define _LARGE_FILES 1
18158                           #include <sys/types.h>
18159 int
18160 main ()
18161 {
18162 typedef struct {
18163     unsigned int field: sizeof(off_t) == 8;
18164 } wxlf;
18165
18166   ;
18167   return 0;
18168 }
18169 _ACEOF
18170 rm -f conftest.$ac_objext
18171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18172   (eval $ac_compile) 2>conftest.er1
18173   ac_status=$?
18174   grep -v '^ *+' conftest.er1 >conftest.err
18175   rm -f conftest.er1
18176   cat conftest.err >&5
18177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178   (exit $ac_status); } &&
18179          { ac_try='test -z "$ac_c_werror_flag"
18180                          || test ! -s conftest.err'
18181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18182   (eval $ac_try) 2>&5
18183   ac_status=$?
18184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185   (exit $ac_status); }; } &&
18186          { ac_try='test -s conftest.$ac_objext'
18187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18188   (eval $ac_try) 2>&5
18189   ac_status=$?
18190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191   (exit $ac_status); }; }; then
18192   ac_cv_sys_large_files=1
18193 else
18194   echo "$as_me: failed program was:" >&5
18195 sed 's/^/| /' conftest.$ac_ext >&5
18196
18197 ac_cv_sys_large_files=no
18198 fi
18199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18200
18201
18202 fi
18203 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18204 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18205
18206     if test "$ac_cv_sys_large_files" != no; then
18207         wx_largefile=yes
18208         cat >>confdefs.h <<_ACEOF
18209 #define _LARGE_FILES $ac_cv_sys_large_files
18210 _ACEOF
18211
18212     fi
18213
18214     fi
18215
18216     echo "$as_me:$LINENO: checking if large file support is available" >&5
18217 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18218     if test "x$wx_largefile" = "xyes"; then
18219         cat >>confdefs.h <<\_ACEOF
18220 #define HAVE_LARGEFILE_SUPPORT 1
18221 _ACEOF
18222
18223     fi
18224     echo "$as_me:$LINENO: result: $wx_largefile" >&5
18225 echo "${ECHO_T}$wx_largefile" >&6
18226 fi
18227
18228
18229 if test "x$wx_largefile" = "xyes"; then
18230     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18231         WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18232     else
18233         WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18234     fi
18235     CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18236 fi
18237
18238 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18239 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18240 if test "${ac_cv_c_bigendian+set}" = set; then
18241   echo $ECHO_N "(cached) $ECHO_C" >&6
18242 else
18243   ac_cv_c_bigendian=unknown
18244 # See if sys/param.h defines the BYTE_ORDER macro.
18245 cat >conftest.$ac_ext <<_ACEOF
18246 /* confdefs.h.  */
18247 _ACEOF
18248 cat confdefs.h >>conftest.$ac_ext
18249 cat >>conftest.$ac_ext <<_ACEOF
18250 /* end confdefs.h.  */
18251 #include <sys/types.h>
18252 #include <sys/param.h>
18253 int
18254 main ()
18255 {
18256
18257 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18258  bogus endian macros
18259 #endif
18260   ;
18261   return 0;
18262 }
18263 _ACEOF
18264 rm -f conftest.$ac_objext
18265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18266   (eval $ac_compile) 2>conftest.er1
18267   ac_status=$?
18268   grep -v '^ *+' conftest.er1 >conftest.err
18269   rm -f conftest.er1
18270   cat conftest.err >&5
18271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272   (exit $ac_status); } &&
18273          { ac_try='test -z "$ac_c_werror_flag"
18274                          || test ! -s conftest.err'
18275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18276   (eval $ac_try) 2>&5
18277   ac_status=$?
18278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279   (exit $ac_status); }; } &&
18280          { ac_try='test -s conftest.$ac_objext'
18281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282   (eval $ac_try) 2>&5
18283   ac_status=$?
18284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285   (exit $ac_status); }; }; then
18286   # It does; now see whether it defined to BIG_ENDIAN or not.
18287 cat >conftest.$ac_ext <<_ACEOF
18288 /* confdefs.h.  */
18289 _ACEOF
18290 cat confdefs.h >>conftest.$ac_ext
18291 cat >>conftest.$ac_ext <<_ACEOF
18292 /* end confdefs.h.  */
18293 #include <sys/types.h>
18294 #include <sys/param.h>
18295 int
18296 main ()
18297 {
18298
18299 #if BYTE_ORDER != BIG_ENDIAN
18300  not big endian
18301 #endif
18302   ;
18303   return 0;
18304 }
18305 _ACEOF
18306 rm -f conftest.$ac_objext
18307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18308   (eval $ac_compile) 2>conftest.er1
18309   ac_status=$?
18310   grep -v '^ *+' conftest.er1 >conftest.err
18311   rm -f conftest.er1
18312   cat conftest.err >&5
18313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314   (exit $ac_status); } &&
18315          { ac_try='test -z "$ac_c_werror_flag"
18316                          || test ! -s conftest.err'
18317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18318   (eval $ac_try) 2>&5
18319   ac_status=$?
18320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321   (exit $ac_status); }; } &&
18322          { ac_try='test -s conftest.$ac_objext'
18323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18324   (eval $ac_try) 2>&5
18325   ac_status=$?
18326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327   (exit $ac_status); }; }; then
18328   ac_cv_c_bigendian=yes
18329 else
18330   echo "$as_me: failed program was:" >&5
18331 sed 's/^/| /' conftest.$ac_ext >&5
18332
18333 ac_cv_c_bigendian=no
18334 fi
18335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18336 else
18337   echo "$as_me: failed program was:" >&5
18338 sed 's/^/| /' conftest.$ac_ext >&5
18339
18340 fi
18341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18342 if test $ac_cv_c_bigendian = unknown; then
18343 if test "$cross_compiling" = yes; then
18344   ac_cv_c_bigendian=unknown
18345 else
18346   cat >conftest.$ac_ext <<_ACEOF
18347 /* confdefs.h.  */
18348 _ACEOF
18349 cat confdefs.h >>conftest.$ac_ext
18350 cat >>conftest.$ac_ext <<_ACEOF
18351 /* end confdefs.h.  */
18352 main () {
18353   /* Are we little or big endian?  From Harbison&Steele.  */
18354   union
18355   {
18356     long l;
18357     char c[sizeof (long)];
18358   } u;
18359   u.l = 1;
18360   exit (u.c[sizeof (long) - 1] == 1);
18361 }
18362 _ACEOF
18363 rm -f conftest$ac_exeext
18364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18365   (eval $ac_link) 2>&5
18366   ac_status=$?
18367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18370   (eval $ac_try) 2>&5
18371   ac_status=$?
18372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373   (exit $ac_status); }; }; then
18374   ac_cv_c_bigendian=no
18375 else
18376   echo "$as_me: program exited with status $ac_status" >&5
18377 echo "$as_me: failed program was:" >&5
18378 sed 's/^/| /' conftest.$ac_ext >&5
18379
18380 ( exit $ac_status )
18381 ac_cv_c_bigendian=yes
18382 fi
18383 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18384 fi
18385 fi
18386 fi
18387 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18388 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18389 if test $ac_cv_c_bigendian = unknown; then
18390   { 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
18391 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;}
18392 fi
18393 if test $ac_cv_c_bigendian = yes; then
18394   cat >>confdefs.h <<\_ACEOF
18395 #define WORDS_BIGENDIAN 1
18396 _ACEOF
18397
18398 fi
18399
18400
18401 ac_ext=cc
18402 ac_cpp='$CXXCPP $CPPFLAGS'
18403 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18404 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18405 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18406 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18407 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18408 if test -z "$CXXCPP"; then
18409   if test "${ac_cv_prog_CXXCPP+set}" = set; then
18410   echo $ECHO_N "(cached) $ECHO_C" >&6
18411 else
18412       # Double quotes because CXXCPP needs to be expanded
18413     for CXXCPP in "$CXX -E" "/lib/cpp"
18414     do
18415       ac_preproc_ok=false
18416 for ac_cxx_preproc_warn_flag in '' yes
18417 do
18418   # Use a header file that comes with gcc, so configuring glibc
18419   # with a fresh cross-compiler works.
18420   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18421   # <limits.h> exists even on freestanding compilers.
18422   # On the NeXT, cc -E runs the code through the compiler's parser,
18423   # not just through cpp. "Syntax error" is here to catch this case.
18424   cat >conftest.$ac_ext <<_ACEOF
18425 /* confdefs.h.  */
18426 _ACEOF
18427 cat confdefs.h >>conftest.$ac_ext
18428 cat >>conftest.$ac_ext <<_ACEOF
18429 /* end confdefs.h.  */
18430 #ifdef __STDC__
18431 # include <limits.h>
18432 #else
18433 # include <assert.h>
18434 #endif
18435                      Syntax error
18436 _ACEOF
18437 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18438   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18439   ac_status=$?
18440   grep -v '^ *+' conftest.er1 >conftest.err
18441   rm -f conftest.er1
18442   cat conftest.err >&5
18443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444   (exit $ac_status); } >/dev/null; then
18445   if test -s conftest.err; then
18446     ac_cpp_err=$ac_cxx_preproc_warn_flag
18447     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18448   else
18449     ac_cpp_err=
18450   fi
18451 else
18452   ac_cpp_err=yes
18453 fi
18454 if test -z "$ac_cpp_err"; then
18455   :
18456 else
18457   echo "$as_me: failed program was:" >&5
18458 sed 's/^/| /' conftest.$ac_ext >&5
18459
18460   # Broken: fails on valid input.
18461 continue
18462 fi
18463 rm -f conftest.err conftest.$ac_ext
18464
18465   # OK, works on sane cases.  Now check whether non-existent headers
18466   # can be detected and how.
18467   cat >conftest.$ac_ext <<_ACEOF
18468 /* confdefs.h.  */
18469 _ACEOF
18470 cat confdefs.h >>conftest.$ac_ext
18471 cat >>conftest.$ac_ext <<_ACEOF
18472 /* end confdefs.h.  */
18473 #include <ac_nonexistent.h>
18474 _ACEOF
18475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18476   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18477   ac_status=$?
18478   grep -v '^ *+' conftest.er1 >conftest.err
18479   rm -f conftest.er1
18480   cat conftest.err >&5
18481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482   (exit $ac_status); } >/dev/null; then
18483   if test -s conftest.err; then
18484     ac_cpp_err=$ac_cxx_preproc_warn_flag
18485     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18486   else
18487     ac_cpp_err=
18488   fi
18489 else
18490   ac_cpp_err=yes
18491 fi
18492 if test -z "$ac_cpp_err"; then
18493   # Broken: success on invalid input.
18494 continue
18495 else
18496   echo "$as_me: failed program was:" >&5
18497 sed 's/^/| /' conftest.$ac_ext >&5
18498
18499   # Passes both tests.
18500 ac_preproc_ok=:
18501 break
18502 fi
18503 rm -f conftest.err conftest.$ac_ext
18504
18505 done
18506 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18507 rm -f conftest.err conftest.$ac_ext
18508 if $ac_preproc_ok; then
18509   break
18510 fi
18511
18512     done
18513     ac_cv_prog_CXXCPP=$CXXCPP
18514
18515 fi
18516   CXXCPP=$ac_cv_prog_CXXCPP
18517 else
18518   ac_cv_prog_CXXCPP=$CXXCPP
18519 fi
18520 echo "$as_me:$LINENO: result: $CXXCPP" >&5
18521 echo "${ECHO_T}$CXXCPP" >&6
18522 ac_preproc_ok=false
18523 for ac_cxx_preproc_warn_flag in '' yes
18524 do
18525   # Use a header file that comes with gcc, so configuring glibc
18526   # with a fresh cross-compiler works.
18527   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18528   # <limits.h> exists even on freestanding compilers.
18529   # On the NeXT, cc -E runs the code through the compiler's parser,
18530   # not just through cpp. "Syntax error" is here to catch this case.
18531   cat >conftest.$ac_ext <<_ACEOF
18532 /* confdefs.h.  */
18533 _ACEOF
18534 cat confdefs.h >>conftest.$ac_ext
18535 cat >>conftest.$ac_ext <<_ACEOF
18536 /* end confdefs.h.  */
18537 #ifdef __STDC__
18538 # include <limits.h>
18539 #else
18540 # include <assert.h>
18541 #endif
18542                      Syntax error
18543 _ACEOF
18544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18545   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18546   ac_status=$?
18547   grep -v '^ *+' conftest.er1 >conftest.err
18548   rm -f conftest.er1
18549   cat conftest.err >&5
18550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551   (exit $ac_status); } >/dev/null; then
18552   if test -s conftest.err; then
18553     ac_cpp_err=$ac_cxx_preproc_warn_flag
18554     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18555   else
18556     ac_cpp_err=
18557   fi
18558 else
18559   ac_cpp_err=yes
18560 fi
18561 if test -z "$ac_cpp_err"; then
18562   :
18563 else
18564   echo "$as_me: failed program was:" >&5
18565 sed 's/^/| /' conftest.$ac_ext >&5
18566
18567   # Broken: fails on valid input.
18568 continue
18569 fi
18570 rm -f conftest.err conftest.$ac_ext
18571
18572   # OK, works on sane cases.  Now check whether non-existent headers
18573   # can be detected and how.
18574   cat >conftest.$ac_ext <<_ACEOF
18575 /* confdefs.h.  */
18576 _ACEOF
18577 cat confdefs.h >>conftest.$ac_ext
18578 cat >>conftest.$ac_ext <<_ACEOF
18579 /* end confdefs.h.  */
18580 #include <ac_nonexistent.h>
18581 _ACEOF
18582 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18583   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18584   ac_status=$?
18585   grep -v '^ *+' conftest.er1 >conftest.err
18586   rm -f conftest.er1
18587   cat conftest.err >&5
18588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18589   (exit $ac_status); } >/dev/null; then
18590   if test -s conftest.err; then
18591     ac_cpp_err=$ac_cxx_preproc_warn_flag
18592     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18593   else
18594     ac_cpp_err=
18595   fi
18596 else
18597   ac_cpp_err=yes
18598 fi
18599 if test -z "$ac_cpp_err"; then
18600   # Broken: success on invalid input.
18601 continue
18602 else
18603   echo "$as_me: failed program was:" >&5
18604 sed 's/^/| /' conftest.$ac_ext >&5
18605
18606   # Passes both tests.
18607 ac_preproc_ok=:
18608 break
18609 fi
18610 rm -f conftest.err conftest.$ac_ext
18611
18612 done
18613 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18614 rm -f conftest.err conftest.$ac_ext
18615 if $ac_preproc_ok; then
18616   :
18617 else
18618   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18619 See \`config.log' for more details." >&5
18620 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18621 See \`config.log' for more details." >&2;}
18622    { (exit 1); exit 1; }; }
18623 fi
18624
18625 ac_ext=cc
18626 ac_cpp='$CXXCPP $CPPFLAGS'
18627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18630
18631
18632
18633   if test "$cross_compiling" = "yes"; then
18634     cat >>confdefs.h <<\_ACEOF
18635 #define wxUSE_IOSTREAMH 1
18636 _ACEOF
18637
18638   else
18639
18640
18641     ac_ext=cc
18642 ac_cpp='$CXXCPP $CPPFLAGS'
18643 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18644 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18645 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18646
18647
18648
18649 for ac_header in iostream
18650 do
18651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18653   echo "$as_me:$LINENO: checking for $ac_header" >&5
18654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18656   echo $ECHO_N "(cached) $ECHO_C" >&6
18657 fi
18658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18660 else
18661   # Is the header compilable?
18662 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18663 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18664 cat >conftest.$ac_ext <<_ACEOF
18665 /* confdefs.h.  */
18666 _ACEOF
18667 cat confdefs.h >>conftest.$ac_ext
18668 cat >>conftest.$ac_ext <<_ACEOF
18669 /* end confdefs.h.  */
18670 $ac_includes_default
18671 #include <$ac_header>
18672 _ACEOF
18673 rm -f conftest.$ac_objext
18674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18675   (eval $ac_compile) 2>conftest.er1
18676   ac_status=$?
18677   grep -v '^ *+' conftest.er1 >conftest.err
18678   rm -f conftest.er1
18679   cat conftest.err >&5
18680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681   (exit $ac_status); } &&
18682          { ac_try='test -z "$ac_cxx_werror_flag"
18683                          || test ! -s conftest.err'
18684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18685   (eval $ac_try) 2>&5
18686   ac_status=$?
18687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688   (exit $ac_status); }; } &&
18689          { ac_try='test -s conftest.$ac_objext'
18690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18691   (eval $ac_try) 2>&5
18692   ac_status=$?
18693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694   (exit $ac_status); }; }; then
18695   ac_header_compiler=yes
18696 else
18697   echo "$as_me: failed program was:" >&5
18698 sed 's/^/| /' conftest.$ac_ext >&5
18699
18700 ac_header_compiler=no
18701 fi
18702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18703 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18704 echo "${ECHO_T}$ac_header_compiler" >&6
18705
18706 # Is the header present?
18707 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18708 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18709 cat >conftest.$ac_ext <<_ACEOF
18710 /* confdefs.h.  */
18711 _ACEOF
18712 cat confdefs.h >>conftest.$ac_ext
18713 cat >>conftest.$ac_ext <<_ACEOF
18714 /* end confdefs.h.  */
18715 #include <$ac_header>
18716 _ACEOF
18717 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18718   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18719   ac_status=$?
18720   grep -v '^ *+' conftest.er1 >conftest.err
18721   rm -f conftest.er1
18722   cat conftest.err >&5
18723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724   (exit $ac_status); } >/dev/null; then
18725   if test -s conftest.err; then
18726     ac_cpp_err=$ac_cxx_preproc_warn_flag
18727     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
18728   else
18729     ac_cpp_err=
18730   fi
18731 else
18732   ac_cpp_err=yes
18733 fi
18734 if test -z "$ac_cpp_err"; then
18735   ac_header_preproc=yes
18736 else
18737   echo "$as_me: failed program was:" >&5
18738 sed 's/^/| /' conftest.$ac_ext >&5
18739
18740   ac_header_preproc=no
18741 fi
18742 rm -f conftest.err conftest.$ac_ext
18743 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18744 echo "${ECHO_T}$ac_header_preproc" >&6
18745
18746 # So?  What about this header?
18747 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
18748   yes:no: )
18749     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18750 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18751     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18752 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18753     ac_header_preproc=yes
18754     ;;
18755   no:yes:* )
18756     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18757 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18758     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18759 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18760     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18761 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18762     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18763 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18764     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18765 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18766     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18767 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18768     (
18769       cat <<\_ASBOX
18770 ## ----------------------------------------- ##
18771 ## Report this to wx-dev@lists.wxwindows.org ##
18772 ## ----------------------------------------- ##
18773 _ASBOX
18774     ) |
18775       sed "s/^/$as_me: WARNING:     /" >&2
18776     ;;
18777 esac
18778 echo "$as_me:$LINENO: checking for $ac_header" >&5
18779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18781   echo $ECHO_N "(cached) $ECHO_C" >&6
18782 else
18783   eval "$as_ac_Header=\$ac_header_preproc"
18784 fi
18785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18786 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18787
18788 fi
18789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18790   cat >>confdefs.h <<_ACEOF
18791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18792 _ACEOF
18793
18794 fi
18795
18796 done
18797
18798
18799     if test "$ac_cv_header_iostream" = "yes" ; then
18800       :
18801     else
18802       cat >>confdefs.h <<\_ACEOF
18803 #define wxUSE_IOSTREAMH 1
18804 _ACEOF
18805
18806     fi
18807
18808     ac_ext=c
18809 ac_cpp='$CPP $CPPFLAGS'
18810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18813
18814   fi
18815
18816
18817
18818   echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
18819 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
18820 if test "${wx_cv_cpp_bool+set}" = set; then
18821   echo $ECHO_N "(cached) $ECHO_C" >&6
18822 else
18823
18824
18825
18826     ac_ext=cc
18827 ac_cpp='$CXXCPP $CPPFLAGS'
18828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18829 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18830 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18831
18832
18833     cat >conftest.$ac_ext <<_ACEOF
18834 /* confdefs.h.  */
18835 _ACEOF
18836 cat confdefs.h >>conftest.$ac_ext
18837 cat >>conftest.$ac_ext <<_ACEOF
18838 /* end confdefs.h.  */
18839
18840
18841 int
18842 main ()
18843 {
18844
18845         bool b = true;
18846
18847         return 0;
18848
18849   ;
18850   return 0;
18851 }
18852 _ACEOF
18853 rm -f conftest.$ac_objext
18854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18855   (eval $ac_compile) 2>conftest.er1
18856   ac_status=$?
18857   grep -v '^ *+' conftest.er1 >conftest.err
18858   rm -f conftest.er1
18859   cat conftest.err >&5
18860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861   (exit $ac_status); } &&
18862          { ac_try='test -z "$ac_cxx_werror_flag"
18863                          || test ! -s conftest.err'
18864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18865   (eval $ac_try) 2>&5
18866   ac_status=$?
18867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868   (exit $ac_status); }; } &&
18869          { ac_try='test -s conftest.$ac_objext'
18870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18871   (eval $ac_try) 2>&5
18872   ac_status=$?
18873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874   (exit $ac_status); }; }; then
18875
18876         wx_cv_cpp_bool=yes
18877
18878 else
18879   echo "$as_me: failed program was:" >&5
18880 sed 's/^/| /' conftest.$ac_ext >&5
18881
18882
18883         wx_cv_cpp_bool=no
18884
18885
18886 fi
18887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18888
18889     ac_ext=c
18890 ac_cpp='$CPP $CPPFLAGS'
18891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18894
18895
18896 fi
18897 echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
18898 echo "${ECHO_T}$wx_cv_cpp_bool" >&6
18899
18900   if test "$wx_cv_cpp_bool" = "yes"; then
18901     cat >>confdefs.h <<\_ACEOF
18902 #define HAVE_BOOL 1
18903 _ACEOF
18904
18905   fi
18906
18907
18908
18909   echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
18910 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
18911 if test "${wx_cv_explicit+set}" = set; then
18912   echo $ECHO_N "(cached) $ECHO_C" >&6
18913 else
18914
18915
18916
18917     ac_ext=cc
18918 ac_cpp='$CXXCPP $CPPFLAGS'
18919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18922
18923
18924             cat >conftest.$ac_ext <<_ACEOF
18925 /* confdefs.h.  */
18926 _ACEOF
18927 cat confdefs.h >>conftest.$ac_ext
18928 cat >>conftest.$ac_ext <<_ACEOF
18929 /* end confdefs.h.  */
18930
18931         class Foo { public: explicit Foo(int) {} };
18932
18933 int
18934 main ()
18935 {
18936
18937         return 0;
18938
18939   ;
18940   return 0;
18941 }
18942 _ACEOF
18943 rm -f conftest.$ac_objext
18944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18945   (eval $ac_compile) 2>conftest.er1
18946   ac_status=$?
18947   grep -v '^ *+' conftest.er1 >conftest.err
18948   rm -f conftest.er1
18949   cat conftest.err >&5
18950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951   (exit $ac_status); } &&
18952          { ac_try='test -z "$ac_cxx_werror_flag"
18953                          || test ! -s conftest.err'
18954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18955   (eval $ac_try) 2>&5
18956   ac_status=$?
18957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958   (exit $ac_status); }; } &&
18959          { ac_try='test -s conftest.$ac_objext'
18960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18961   (eval $ac_try) 2>&5
18962   ac_status=$?
18963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964   (exit $ac_status); }; }; then
18965
18966         cat >conftest.$ac_ext <<_ACEOF
18967 /* confdefs.h.  */
18968 _ACEOF
18969 cat confdefs.h >>conftest.$ac_ext
18970 cat >>conftest.$ac_ext <<_ACEOF
18971 /* end confdefs.h.  */
18972
18973                 class Foo { public: explicit Foo(int) {} };
18974                 static void TakeFoo(const Foo& foo) { }
18975
18976 int
18977 main ()
18978 {
18979
18980                 TakeFoo(17);
18981                 return 0;
18982
18983   ;
18984   return 0;
18985 }
18986 _ACEOF
18987 rm -f conftest.$ac_objext
18988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18989   (eval $ac_compile) 2>conftest.er1
18990   ac_status=$?
18991   grep -v '^ *+' conftest.er1 >conftest.err
18992   rm -f conftest.er1
18993   cat conftest.err >&5
18994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995   (exit $ac_status); } &&
18996          { ac_try='test -z "$ac_cxx_werror_flag"
18997                          || test ! -s conftest.err'
18998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18999   (eval $ac_try) 2>&5
19000   ac_status=$?
19001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002   (exit $ac_status); }; } &&
19003          { ac_try='test -s conftest.$ac_objext'
19004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19005   (eval $ac_try) 2>&5
19006   ac_status=$?
19007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008   (exit $ac_status); }; }; then
19009   wx_cv_explicit=no
19010 else
19011   echo "$as_me: failed program was:" >&5
19012 sed 's/^/| /' conftest.$ac_ext >&5
19013
19014 wx_cv_explicit=yes
19015
19016 fi
19017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19018
19019 else
19020   echo "$as_me: failed program was:" >&5
19021 sed 's/^/| /' conftest.$ac_ext >&5
19022
19023 wx_cv_explicit=no
19024
19025 fi
19026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19027
19028     ac_ext=c
19029 ac_cpp='$CPP $CPPFLAGS'
19030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19033
19034
19035 fi
19036 echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19037 echo "${ECHO_T}$wx_cv_explicit" >&6
19038
19039   if test "$wx_cv_explicit" = "yes"; then
19040     cat >>confdefs.h <<\_ACEOF
19041 #define HAVE_EXPLICIT 1
19042 _ACEOF
19043
19044   fi
19045
19046
19047 echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19048 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19049 if test "${ac_cv_cxx_const_cast+set}" = set; then
19050   echo $ECHO_N "(cached) $ECHO_C" >&6
19051 else
19052
19053
19054  ac_ext=cc
19055 ac_cpp='$CXXCPP $CPPFLAGS'
19056 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19057 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19058 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19059
19060  cat >conftest.$ac_ext <<_ACEOF
19061 /* confdefs.h.  */
19062 _ACEOF
19063 cat confdefs.h >>conftest.$ac_ext
19064 cat >>conftest.$ac_ext <<_ACEOF
19065 /* end confdefs.h.  */
19066
19067 int
19068 main ()
19069 {
19070 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19071   ;
19072   return 0;
19073 }
19074 _ACEOF
19075 rm -f conftest.$ac_objext
19076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19077   (eval $ac_compile) 2>conftest.er1
19078   ac_status=$?
19079   grep -v '^ *+' conftest.er1 >conftest.err
19080   rm -f conftest.er1
19081   cat conftest.err >&5
19082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083   (exit $ac_status); } &&
19084          { ac_try='test -z "$ac_cxx_werror_flag"
19085                          || test ! -s conftest.err'
19086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19087   (eval $ac_try) 2>&5
19088   ac_status=$?
19089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090   (exit $ac_status); }; } &&
19091          { ac_try='test -s conftest.$ac_objext'
19092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19093   (eval $ac_try) 2>&5
19094   ac_status=$?
19095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096   (exit $ac_status); }; }; then
19097   ac_cv_cxx_const_cast=yes
19098 else
19099   echo "$as_me: failed program was:" >&5
19100 sed 's/^/| /' conftest.$ac_ext >&5
19101
19102 ac_cv_cxx_const_cast=no
19103 fi
19104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19105  ac_ext=c
19106 ac_cpp='$CPP $CPPFLAGS'
19107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19110
19111
19112 fi
19113 echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19114 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19115 if test "$ac_cv_cxx_const_cast" = yes; then
19116
19117 cat >>confdefs.h <<\_ACEOF
19118 #define HAVE_CONST_CAST
19119 _ACEOF
19120
19121 fi
19122
19123 echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19124 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19125 if test "${ac_cv_cxx_static_cast+set}" = set; then
19126   echo $ECHO_N "(cached) $ECHO_C" >&6
19127 else
19128
19129
19130  ac_ext=cc
19131 ac_cpp='$CXXCPP $CPPFLAGS'
19132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19135
19136  cat >conftest.$ac_ext <<_ACEOF
19137 /* confdefs.h.  */
19138 _ACEOF
19139 cat confdefs.h >>conftest.$ac_ext
19140 cat >>conftest.$ac_ext <<_ACEOF
19141 /* end confdefs.h.  */
19142 #include <typeinfo>
19143 class Base { public : Base () {} virtual void f () = 0; };
19144 class Derived : public Base { public : Derived () {} virtual void f () {} };
19145 int g (Derived&) { return 0; }
19146 int
19147 main ()
19148 {
19149
19150 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19151   ;
19152   return 0;
19153 }
19154 _ACEOF
19155 rm -f conftest.$ac_objext
19156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19157   (eval $ac_compile) 2>conftest.er1
19158   ac_status=$?
19159   grep -v '^ *+' conftest.er1 >conftest.err
19160   rm -f conftest.er1
19161   cat conftest.err >&5
19162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163   (exit $ac_status); } &&
19164          { ac_try='test -z "$ac_cxx_werror_flag"
19165                          || test ! -s conftest.err'
19166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19167   (eval $ac_try) 2>&5
19168   ac_status=$?
19169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170   (exit $ac_status); }; } &&
19171          { ac_try='test -s conftest.$ac_objext'
19172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19173   (eval $ac_try) 2>&5
19174   ac_status=$?
19175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176   (exit $ac_status); }; }; then
19177   ac_cv_cxx_static_cast=yes
19178 else
19179   echo "$as_me: failed program was:" >&5
19180 sed 's/^/| /' conftest.$ac_ext >&5
19181
19182 ac_cv_cxx_static_cast=no
19183 fi
19184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19185  ac_ext=c
19186 ac_cpp='$CPP $CPPFLAGS'
19187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19190
19191
19192 fi
19193 echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19194 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19195 if test "$ac_cv_cxx_static_cast" = yes; then
19196
19197 cat >>confdefs.h <<\_ACEOF
19198 #define HAVE_STATIC_CAST
19199 _ACEOF
19200
19201 fi
19202
19203
19204 if test "$wxUSE_STL" = "yes"; then
19205     ac_ext=cc
19206 ac_cpp='$CXXCPP $CPPFLAGS'
19207 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19208 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19209 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19210
19211
19212         echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19213 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19214     cat >conftest.$ac_ext <<_ACEOF
19215 /* confdefs.h.  */
19216 _ACEOF
19217 cat confdefs.h >>conftest.$ac_ext
19218 cat >>conftest.$ac_ext <<_ACEOF
19219 /* end confdefs.h.  */
19220 #include <string>
19221                     #include <functional>
19222                     #include <algorithm>
19223                     #include <vector>
19224                     #include <list>
19225 int
19226 main ()
19227 {
19228 std::vector<int> moo;
19229                      std::list<int> foo;
19230                      std::vector<int>::iterator it =
19231                          std::find_if(moo.begin(), moo.end(),
19232                                       std::bind2nd(std::less<int>(), 3));
19233   ;
19234   return 0;
19235 }
19236 _ACEOF
19237 rm -f conftest.$ac_objext
19238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19239   (eval $ac_compile) 2>conftest.er1
19240   ac_status=$?
19241   grep -v '^ *+' conftest.er1 >conftest.err
19242   rm -f conftest.er1
19243   cat conftest.err >&5
19244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245   (exit $ac_status); } &&
19246          { ac_try='test -z "$ac_cxx_werror_flag"
19247                          || test ! -s conftest.err'
19248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19249   (eval $ac_try) 2>&5
19250   ac_status=$?
19251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252   (exit $ac_status); }; } &&
19253          { ac_try='test -s conftest.$ac_objext'
19254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19255   (eval $ac_try) 2>&5
19256   ac_status=$?
19257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258   (exit $ac_status); }; }; then
19259   echo "$as_me:$LINENO: result: yes" >&5
19260 echo "${ECHO_T}yes" >&6
19261 else
19262   echo "$as_me: failed program was:" >&5
19263 sed 's/^/| /' conftest.$ac_ext >&5
19264
19265 echo "$as_me:$LINENO: result: no" >&5
19266 echo "${ECHO_T}no" >&6
19267                      { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19268 echo "$as_me: error: Basic STL functionality missing" >&2;}
19269    { (exit 1); exit 1; }; }
19270 fi
19271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19272
19273         echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19274 echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19275     cat >conftest.$ac_ext <<_ACEOF
19276 /* confdefs.h.  */
19277 _ACEOF
19278 cat confdefs.h >>conftest.$ac_ext
19279 cat >>conftest.$ac_ext <<_ACEOF
19280 /* end confdefs.h.  */
19281 #include <string>
19282 int
19283 main ()
19284 {
19285 std::wstring foo;
19286   ;
19287   return 0;
19288 }
19289 _ACEOF
19290 rm -f conftest.$ac_objext
19291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19292   (eval $ac_compile) 2>conftest.er1
19293   ac_status=$?
19294   grep -v '^ *+' conftest.er1 >conftest.err
19295   rm -f conftest.er1
19296   cat conftest.err >&5
19297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298   (exit $ac_status); } &&
19299          { ac_try='test -z "$ac_cxx_werror_flag"
19300                          || test ! -s conftest.err'
19301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302   (eval $ac_try) 2>&5
19303   ac_status=$?
19304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305   (exit $ac_status); }; } &&
19306          { ac_try='test -s conftest.$ac_objext'
19307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19308   (eval $ac_try) 2>&5
19309   ac_status=$?
19310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311   (exit $ac_status); }; }; then
19312   echo "$as_me:$LINENO: result: yes" >&5
19313 echo "${ECHO_T}yes" >&6
19314                     cat >>confdefs.h <<\_ACEOF
19315 #define HAVE_STD_WSTRING 1
19316 _ACEOF
19317
19318 else
19319   echo "$as_me: failed program was:" >&5
19320 sed 's/^/| /' conftest.$ac_ext >&5
19321
19322 echo "$as_me:$LINENO: result: no" >&5
19323 echo "${ECHO_T}no" >&6
19324 fi
19325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19326
19327         echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19328 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19329     cat >conftest.$ac_ext <<_ACEOF
19330 /* confdefs.h.  */
19331 _ACEOF
19332 cat confdefs.h >>conftest.$ac_ext
19333 cat >>conftest.$ac_ext <<_ACEOF
19334 /* end confdefs.h.  */
19335 #include <string>
19336 int
19337 main ()
19338 {
19339 std::string foo, bar;
19340                     foo.compare(bar);
19341                     foo.compare(1, 1, bar);
19342                     foo.compare(1, 1, bar, 1, 1);
19343                     foo.compare("");
19344                     foo.compare(1, 1, "");
19345                     foo.compare(1, 1, "", 2);
19346   ;
19347   return 0;
19348 }
19349 _ACEOF
19350 rm -f conftest.$ac_objext
19351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19352   (eval $ac_compile) 2>conftest.er1
19353   ac_status=$?
19354   grep -v '^ *+' conftest.er1 >conftest.err
19355   rm -f conftest.er1
19356   cat conftest.err >&5
19357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358   (exit $ac_status); } &&
19359          { ac_try='test -z "$ac_cxx_werror_flag"
19360                          || test ! -s conftest.err'
19361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19362   (eval $ac_try) 2>&5
19363   ac_status=$?
19364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365   (exit $ac_status); }; } &&
19366          { ac_try='test -s conftest.$ac_objext'
19367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19368   (eval $ac_try) 2>&5
19369   ac_status=$?
19370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371   (exit $ac_status); }; }; then
19372   echo "$as_me:$LINENO: result: yes" >&5
19373 echo "${ECHO_T}yes" >&6
19374                     cat >>confdefs.h <<\_ACEOF
19375 #define HAVE_STD_STRING_COMPARE 1
19376 _ACEOF
19377
19378 else
19379   echo "$as_me: failed program was:" >&5
19380 sed 's/^/| /' conftest.$ac_ext >&5
19381
19382 echo "$as_me:$LINENO: result: no" >&5
19383 echo "${ECHO_T}no" >&6
19384 fi
19385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19386
19387     ac_ext=c
19388 ac_cpp='$CPP $CPPFLAGS'
19389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19392
19393 fi
19394
19395
19396 SEARCH_INCLUDE="\
19397     /usr/local/include        \
19398                               \
19399     /usr/Motif-2.1/include    \
19400     /usr/Motif-1.2/include    \
19401     /usr/include/Motif1.2     \
19402     /opt/xpm/include/X11      \
19403     /opt/GBxpm/include/       \
19404     /opt/GBxpm/X11/include/   \
19405                               \
19406     /usr/dt/include           \
19407     /usr/openwin/include      \
19408                               \
19409     /usr/include/Xm           \
19410                               \
19411     /usr/X11R6/include        \
19412     /usr/X11R6.4/include      \
19413     /usr/X11R5/include        \
19414     /usr/X11R4/include        \
19415                               \
19416     /usr/include/X11R6        \
19417     /usr/include/X11R5        \
19418     /usr/include/X11R4        \
19419                               \
19420     /usr/local/X11R6/include  \
19421     /usr/local/X11R5/include  \
19422     /usr/local/X11R4/include  \
19423                               \
19424     /usr/local/include/X11R6  \
19425     /usr/local/include/X11R5  \
19426     /usr/local/include/X11R4  \
19427                               \
19428     /usr/X11/include          \
19429     /usr/include/X11          \
19430     /usr/local/X11/include    \
19431     /usr/local/include/X11    \
19432                               \
19433     /usr/X386/include         \
19434     /usr/x386/include         \
19435     /usr/XFree86/include/X11  \
19436                               \
19437     X:/XFree86/include        \
19438     X:/XFree86/include/X11    \
19439                               \
19440     /usr/include/gtk          \
19441     /usr/local/include/gtk    \
19442     /usr/include/glib         \
19443     /usr/local/include/glib   \
19444                               \
19445     /usr/include/qt           \
19446     /usr/local/include/qt     \
19447                               \
19448     /usr/local/arm/3.3.2/include     \
19449                               \
19450     /usr/include/windows      \
19451     /usr/include/wine         \
19452     /usr/local/include/wine   \
19453                               \
19454     /usr/unsupported/include  \
19455     /usr/athena/include       \
19456     /usr/local/x11r5/include  \
19457     /usr/lpp/Xamples/include  \
19458                               \
19459     /usr/openwin/share/include"
19460
19461 SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
19462
19463
19464 cat >confcache <<\_ACEOF
19465 # This file is a shell script that caches the results of configure
19466 # tests run on this system so they can be shared between configure
19467 # scripts and configure runs, see configure's option --config-cache.
19468 # It is not useful on other systems.  If it contains results you don't
19469 # want to keep, you may remove or edit it.
19470 #
19471 # config.status only pays attention to the cache file if you give it
19472 # the --recheck option to rerun configure.
19473 #
19474 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19475 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19476 # following values.
19477
19478 _ACEOF
19479
19480 # The following way of writing the cache mishandles newlines in values,
19481 # but we know of no workaround that is simple, portable, and efficient.
19482 # So, don't put newlines in cache variables' values.
19483 # Ultrix sh set writes to stderr and can't be redirected directly,
19484 # and sets the high bit in the cache file unless we assign to the vars.
19485 {
19486   (set) 2>&1 |
19487     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19488     *ac_space=\ *)
19489       # `set' does not quote correctly, so add quotes (double-quote
19490       # substitution turns \\\\ into \\, and sed turns \\ into \).
19491       sed -n \
19492         "s/'/'\\\\''/g;
19493           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19494       ;;
19495     *)
19496       # `set' quotes correctly as required by POSIX, so do not add quotes.
19497       sed -n \
19498         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19499       ;;
19500     esac;
19501 } |
19502   sed '
19503      t clear
19504      : clear
19505      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19506      t end
19507      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19508      : end' >>confcache
19509 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19510   if test -w $cache_file; then
19511     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19512     cat confcache >$cache_file
19513   else
19514     echo "not updating unwritable cache $cache_file"
19515   fi
19516 fi
19517 rm -f confcache
19518
19519 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
19520     echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
19521 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
19522 if test "${wx_cv_lib_glibc21+set}" = set; then
19523   echo $ECHO_N "(cached) $ECHO_C" >&6
19524 else
19525
19526         cat >conftest.$ac_ext <<_ACEOF
19527 /* confdefs.h.  */
19528 _ACEOF
19529 cat confdefs.h >>conftest.$ac_ext
19530 cat >>conftest.$ac_ext <<_ACEOF
19531 /* end confdefs.h.  */
19532 #include <features.h>
19533 int
19534 main ()
19535 {
19536
19537                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
19538                     #error not glibc2.1
19539                 #endif
19540
19541   ;
19542   return 0;
19543 }
19544 _ACEOF
19545 rm -f conftest.$ac_objext
19546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19547   (eval $ac_compile) 2>conftest.er1
19548   ac_status=$?
19549   grep -v '^ *+' conftest.er1 >conftest.err
19550   rm -f conftest.er1
19551   cat conftest.err >&5
19552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553   (exit $ac_status); } &&
19554          { ac_try='test -z "$ac_c_werror_flag"
19555                          || test ! -s conftest.err'
19556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19557   (eval $ac_try) 2>&5
19558   ac_status=$?
19559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560   (exit $ac_status); }; } &&
19561          { ac_try='test -s conftest.$ac_objext'
19562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19563   (eval $ac_try) 2>&5
19564   ac_status=$?
19565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566   (exit $ac_status); }; }; then
19567
19568                 wx_cv_lib_glibc21=yes
19569
19570 else
19571   echo "$as_me: failed program was:" >&5
19572 sed 's/^/| /' conftest.$ac_ext >&5
19573
19574
19575                 wx_cv_lib_glibc21=no
19576
19577
19578 fi
19579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19580
19581 fi
19582 echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
19583 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
19584     if test "$wx_cv_lib_glibc21" = "yes"; then
19585         cat >>confdefs.h <<\_ACEOF
19586 #define wxHAVE_GLIBC2 1
19587 _ACEOF
19588
19589     fi
19590 fi
19591
19592 if test "x$wx_cv_lib_glibc21" = "xyes"; then
19593     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
19594         cat >>confdefs.h <<\_ACEOF
19595 #define _GNU_SOURCE 1
19596 _ACEOF
19597
19598     fi
19599 fi
19600
19601
19602
19603 if test "$wxUSE_REGEX" != "no"; then
19604     cat >>confdefs.h <<\_ACEOF
19605 #define wxUSE_REGEX 1
19606 _ACEOF
19607
19608
19609     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
19610         { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
19611 echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
19612         wxUSE_REGEX=builtin
19613     fi
19614
19615     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
19616                         if test "${ac_cv_header_regex_h+set}" = set; then
19617   echo "$as_me:$LINENO: checking for regex.h" >&5
19618 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
19619 if test "${ac_cv_header_regex_h+set}" = set; then
19620   echo $ECHO_N "(cached) $ECHO_C" >&6
19621 fi
19622 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
19623 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
19624 else
19625   # Is the header compilable?
19626 echo "$as_me:$LINENO: checking regex.h usability" >&5
19627 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
19628 cat >conftest.$ac_ext <<_ACEOF
19629 /* confdefs.h.  */
19630 _ACEOF
19631 cat confdefs.h >>conftest.$ac_ext
19632 cat >>conftest.$ac_ext <<_ACEOF
19633 /* end confdefs.h.  */
19634 $ac_includes_default
19635 #include <regex.h>
19636 _ACEOF
19637 rm -f conftest.$ac_objext
19638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19639   (eval $ac_compile) 2>conftest.er1
19640   ac_status=$?
19641   grep -v '^ *+' conftest.er1 >conftest.err
19642   rm -f conftest.er1
19643   cat conftest.err >&5
19644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645   (exit $ac_status); } &&
19646          { ac_try='test -z "$ac_c_werror_flag"
19647                          || test ! -s conftest.err'
19648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19649   (eval $ac_try) 2>&5
19650   ac_status=$?
19651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652   (exit $ac_status); }; } &&
19653          { ac_try='test -s conftest.$ac_objext'
19654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19655   (eval $ac_try) 2>&5
19656   ac_status=$?
19657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658   (exit $ac_status); }; }; then
19659   ac_header_compiler=yes
19660 else
19661   echo "$as_me: failed program was:" >&5
19662 sed 's/^/| /' conftest.$ac_ext >&5
19663
19664 ac_header_compiler=no
19665 fi
19666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19667 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19668 echo "${ECHO_T}$ac_header_compiler" >&6
19669
19670 # Is the header present?
19671 echo "$as_me:$LINENO: checking regex.h presence" >&5
19672 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
19673 cat >conftest.$ac_ext <<_ACEOF
19674 /* confdefs.h.  */
19675 _ACEOF
19676 cat confdefs.h >>conftest.$ac_ext
19677 cat >>conftest.$ac_ext <<_ACEOF
19678 /* end confdefs.h.  */
19679 #include <regex.h>
19680 _ACEOF
19681 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19682   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19683   ac_status=$?
19684   grep -v '^ *+' conftest.er1 >conftest.err
19685   rm -f conftest.er1
19686   cat conftest.err >&5
19687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688   (exit $ac_status); } >/dev/null; then
19689   if test -s conftest.err; then
19690     ac_cpp_err=$ac_c_preproc_warn_flag
19691     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19692   else
19693     ac_cpp_err=
19694   fi
19695 else
19696   ac_cpp_err=yes
19697 fi
19698 if test -z "$ac_cpp_err"; then
19699   ac_header_preproc=yes
19700 else
19701   echo "$as_me: failed program was:" >&5
19702 sed 's/^/| /' conftest.$ac_ext >&5
19703
19704   ac_header_preproc=no
19705 fi
19706 rm -f conftest.err conftest.$ac_ext
19707 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19708 echo "${ECHO_T}$ac_header_preproc" >&6
19709
19710 # So?  What about this header?
19711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19712   yes:no: )
19713     { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
19714 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19715     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
19716 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
19717     ac_header_preproc=yes
19718     ;;
19719   no:yes:* )
19720     { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
19721 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
19722     { echo "$as_me:$LINENO: WARNING: regex.h:     check for missing prerequisite headers?" >&5
19723 echo "$as_me: WARNING: regex.h:     check for missing prerequisite headers?" >&2;}
19724     { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
19725 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
19726     { echo "$as_me:$LINENO: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&5
19727 echo "$as_me: WARNING: regex.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19728     { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
19729 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
19730     { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
19731 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
19732     (
19733       cat <<\_ASBOX
19734 ## ----------------------------------------- ##
19735 ## Report this to wx-dev@lists.wxwindows.org ##
19736 ## ----------------------------------------- ##
19737 _ASBOX
19738     ) |
19739       sed "s/^/$as_me: WARNING:     /" >&2
19740     ;;
19741 esac
19742 echo "$as_me:$LINENO: checking for regex.h" >&5
19743 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
19744 if test "${ac_cv_header_regex_h+set}" = set; then
19745   echo $ECHO_N "(cached) $ECHO_C" >&6
19746 else
19747   ac_cv_header_regex_h=$ac_header_preproc
19748 fi
19749 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
19750 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
19751
19752 fi
19753 if test $ac_cv_header_regex_h = yes; then
19754
19755 for ac_func in regcomp
19756 do
19757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19758 echo "$as_me:$LINENO: checking for $ac_func" >&5
19759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19760 if eval "test \"\${$as_ac_var+set}\" = set"; then
19761   echo $ECHO_N "(cached) $ECHO_C" >&6
19762 else
19763   cat >conftest.$ac_ext <<_ACEOF
19764 /* confdefs.h.  */
19765 _ACEOF
19766 cat confdefs.h >>conftest.$ac_ext
19767 cat >>conftest.$ac_ext <<_ACEOF
19768 /* end confdefs.h.  */
19769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19770    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19771 #define $ac_func innocuous_$ac_func
19772
19773 /* System header to define __stub macros and hopefully few prototypes,
19774     which can conflict with char $ac_func (); below.
19775     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19776     <limits.h> exists even on freestanding compilers.  */
19777
19778 #ifdef __STDC__
19779 # include <limits.h>
19780 #else
19781 # include <assert.h>
19782 #endif
19783
19784 #undef $ac_func
19785
19786 /* Override any gcc2 internal prototype to avoid an error.  */
19787 #ifdef __cplusplus
19788 extern "C"
19789 {
19790 #endif
19791 /* We use char because int might match the return type of a gcc2
19792    builtin and then its argument prototype would still apply.  */
19793 char $ac_func ();
19794 /* The GNU C library defines this for functions which it implements
19795     to always fail with ENOSYS.  Some functions are actually named
19796     something starting with __ and the normal name is an alias.  */
19797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19798 choke me
19799 #else
19800 char (*f) () = $ac_func;
19801 #endif
19802 #ifdef __cplusplus
19803 }
19804 #endif
19805
19806 int
19807 main ()
19808 {
19809 return f != $ac_func;
19810   ;
19811   return 0;
19812 }
19813 _ACEOF
19814 rm -f conftest.$ac_objext conftest$ac_exeext
19815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19816   (eval $ac_link) 2>conftest.er1
19817   ac_status=$?
19818   grep -v '^ *+' conftest.er1 >conftest.err
19819   rm -f conftest.er1
19820   cat conftest.err >&5
19821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822   (exit $ac_status); } &&
19823          { ac_try='test -z "$ac_c_werror_flag"
19824                          || test ! -s conftest.err'
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); }; } &&
19830          { ac_try='test -s conftest$ac_exeext'
19831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19832   (eval $ac_try) 2>&5
19833   ac_status=$?
19834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835   (exit $ac_status); }; }; then
19836   eval "$as_ac_var=yes"
19837 else
19838   echo "$as_me: failed program was:" >&5
19839 sed 's/^/| /' conftest.$ac_ext >&5
19840
19841 eval "$as_ac_var=no"
19842 fi
19843 rm -f conftest.err conftest.$ac_objext \
19844       conftest$ac_exeext conftest.$ac_ext
19845 fi
19846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19847 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19848 if test `eval echo '${'$as_ac_var'}'` = yes; then
19849   cat >>confdefs.h <<_ACEOF
19850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19851 _ACEOF
19852
19853 fi
19854 done
19855
19856 fi
19857
19858
19859
19860         if test "x$ac_cv_func_regcomp" != "xyes"; then
19861             if test "$wxUSE_REGEX" = "sys" ; then
19862                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
19863 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
19864    { (exit 1); exit 1; }; }
19865             else
19866                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
19867 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
19868                 wxUSE_REGEX=builtin
19869             fi
19870         else
19871                         wxUSE_REGEX=sys
19872                         cat >>confdefs.h <<\_ACEOF
19873 #define WX_NO_REGEX_ADVANCED 1
19874 _ACEOF
19875
19876         fi
19877     fi
19878 fi
19879
19880
19881 ZLIB_LINK=
19882 if test "$wxUSE_ZLIB" != "no" ; then
19883     cat >>confdefs.h <<\_ACEOF
19884 #define wxUSE_ZLIB 1
19885 _ACEOF
19886
19887
19888     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
19889                                                 if test "$USE_DARWIN" = 1; then
19890             system_zlib_h_ok="yes"
19891         else
19892                                                                                     echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
19893 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
19894 if test "${ac_cv_header_zlib_h+set}" = set; then
19895   echo $ECHO_N "(cached) $ECHO_C" >&6
19896 else
19897   if test "$cross_compiling" = yes; then
19898                       unset ac_cv_header_zlib_h
19899
19900 else
19901   cat >conftest.$ac_ext <<_ACEOF
19902 /* confdefs.h.  */
19903 _ACEOF
19904 cat confdefs.h >>conftest.$ac_ext
19905 cat >>conftest.$ac_ext <<_ACEOF
19906 /* end confdefs.h.  */
19907
19908                         #include <zlib.h>
19909                         #include <stdio.h>
19910
19911                         int main()
19912                         {
19913                             FILE *f=fopen("conftestval", "w");
19914                             if (!f) exit(1);
19915                             fprintf(f, "%s",
19916                                     ZLIB_VERSION[0] == '1' &&
19917                                     (ZLIB_VERSION[2] > '1' ||
19918                                     (ZLIB_VERSION[2] == '1' &&
19919                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
19920                             exit(0);
19921                         }
19922
19923 _ACEOF
19924 rm -f conftest$ac_exeext
19925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19926   (eval $ac_link) 2>&5
19927   ac_status=$?
19928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19931   (eval $ac_try) 2>&5
19932   ac_status=$?
19933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934   (exit $ac_status); }; }; then
19935   ac_cv_header_zlib_h=`cat conftestval`
19936 else
19937   echo "$as_me: program exited with status $ac_status" >&5
19938 echo "$as_me: failed program was:" >&5
19939 sed 's/^/| /' conftest.$ac_ext >&5
19940
19941 ( exit $ac_status )
19942 ac_cv_header_zlib_h=no
19943 fi
19944 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19945 fi
19946
19947 fi
19948 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19949 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19950                                     if test "${ac_cv_header_zlib_h+set}" = set; then
19951   echo "$as_me:$LINENO: checking for zlib.h" >&5
19952 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19953 if test "${ac_cv_header_zlib_h+set}" = set; then
19954   echo $ECHO_N "(cached) $ECHO_C" >&6
19955 fi
19956 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19957 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19958 else
19959   # Is the header compilable?
19960 echo "$as_me:$LINENO: checking zlib.h usability" >&5
19961 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
19962 cat >conftest.$ac_ext <<_ACEOF
19963 /* confdefs.h.  */
19964 _ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h.  */
19968 $ac_includes_default
19969 #include <zlib.h>
19970 _ACEOF
19971 rm -f conftest.$ac_objext
19972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19973   (eval $ac_compile) 2>conftest.er1
19974   ac_status=$?
19975   grep -v '^ *+' conftest.er1 >conftest.err
19976   rm -f conftest.er1
19977   cat conftest.err >&5
19978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979   (exit $ac_status); } &&
19980          { ac_try='test -z "$ac_c_werror_flag"
19981                          || test ! -s conftest.err'
19982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19983   (eval $ac_try) 2>&5
19984   ac_status=$?
19985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986   (exit $ac_status); }; } &&
19987          { ac_try='test -s conftest.$ac_objext'
19988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19989   (eval $ac_try) 2>&5
19990   ac_status=$?
19991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992   (exit $ac_status); }; }; then
19993   ac_header_compiler=yes
19994 else
19995   echo "$as_me: failed program was:" >&5
19996 sed 's/^/| /' conftest.$ac_ext >&5
19997
19998 ac_header_compiler=no
19999 fi
20000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20001 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20002 echo "${ECHO_T}$ac_header_compiler" >&6
20003
20004 # Is the header present?
20005 echo "$as_me:$LINENO: checking zlib.h presence" >&5
20006 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
20007 cat >conftest.$ac_ext <<_ACEOF
20008 /* confdefs.h.  */
20009 _ACEOF
20010 cat confdefs.h >>conftest.$ac_ext
20011 cat >>conftest.$ac_ext <<_ACEOF
20012 /* end confdefs.h.  */
20013 #include <zlib.h>
20014 _ACEOF
20015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20016   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20017   ac_status=$?
20018   grep -v '^ *+' conftest.er1 >conftest.err
20019   rm -f conftest.er1
20020   cat conftest.err >&5
20021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022   (exit $ac_status); } >/dev/null; then
20023   if test -s conftest.err; then
20024     ac_cpp_err=$ac_c_preproc_warn_flag
20025     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20026   else
20027     ac_cpp_err=
20028   fi
20029 else
20030   ac_cpp_err=yes
20031 fi
20032 if test -z "$ac_cpp_err"; then
20033   ac_header_preproc=yes
20034 else
20035   echo "$as_me: failed program was:" >&5
20036 sed 's/^/| /' conftest.$ac_ext >&5
20037
20038   ac_header_preproc=no
20039 fi
20040 rm -f conftest.err conftest.$ac_ext
20041 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20042 echo "${ECHO_T}$ac_header_preproc" >&6
20043
20044 # So?  What about this header?
20045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20046   yes:no: )
20047     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20048 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20049     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20050 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20051     ac_header_preproc=yes
20052     ;;
20053   no:yes:* )
20054     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20055 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
20056     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
20057 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
20058     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20059 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20060     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
20061 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20062     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
20063 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
20064     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20065 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
20066     (
20067       cat <<\_ASBOX
20068 ## ----------------------------------------- ##
20069 ## Report this to wx-dev@lists.wxwindows.org ##
20070 ## ----------------------------------------- ##
20071 _ASBOX
20072     ) |
20073       sed "s/^/$as_me: WARNING:     /" >&2
20074     ;;
20075 esac
20076 echo "$as_me:$LINENO: checking for zlib.h" >&5
20077 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20078 if test "${ac_cv_header_zlib_h+set}" = set; then
20079   echo $ECHO_N "(cached) $ECHO_C" >&6
20080 else
20081   ac_cv_header_zlib_h=$ac_header_preproc
20082 fi
20083 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20084 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20085
20086 fi
20087
20088
20089
20090             system_zlib_h_ok=$ac_cv_header_zlib_h
20091         fi
20092
20093         if test "$system_zlib_h_ok" = "yes"; then
20094             echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20095 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20096 if test "${ac_cv_lib_z_deflate+set}" = set; then
20097   echo $ECHO_N "(cached) $ECHO_C" >&6
20098 else
20099   ac_check_lib_save_LIBS=$LIBS
20100 LIBS="-lz  $LIBS"
20101 cat >conftest.$ac_ext <<_ACEOF
20102 /* confdefs.h.  */
20103 _ACEOF
20104 cat confdefs.h >>conftest.$ac_ext
20105 cat >>conftest.$ac_ext <<_ACEOF
20106 /* end confdefs.h.  */
20107
20108 /* Override any gcc2 internal prototype to avoid an error.  */
20109 #ifdef __cplusplus
20110 extern "C"
20111 #endif
20112 /* We use char because int might match the return type of a gcc2
20113    builtin and then its argument prototype would still apply.  */
20114 char deflate ();
20115 int
20116 main ()
20117 {
20118 deflate ();
20119   ;
20120   return 0;
20121 }
20122 _ACEOF
20123 rm -f conftest.$ac_objext conftest$ac_exeext
20124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20125   (eval $ac_link) 2>conftest.er1
20126   ac_status=$?
20127   grep -v '^ *+' conftest.er1 >conftest.err
20128   rm -f conftest.er1
20129   cat conftest.err >&5
20130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131   (exit $ac_status); } &&
20132          { ac_try='test -z "$ac_c_werror_flag"
20133                          || test ! -s conftest.err'
20134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20135   (eval $ac_try) 2>&5
20136   ac_status=$?
20137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138   (exit $ac_status); }; } &&
20139          { ac_try='test -s conftest$ac_exeext'
20140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20141   (eval $ac_try) 2>&5
20142   ac_status=$?
20143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144   (exit $ac_status); }; }; then
20145   ac_cv_lib_z_deflate=yes
20146 else
20147   echo "$as_me: failed program was:" >&5
20148 sed 's/^/| /' conftest.$ac_ext >&5
20149
20150 ac_cv_lib_z_deflate=no
20151 fi
20152 rm -f conftest.err conftest.$ac_objext \
20153       conftest$ac_exeext conftest.$ac_ext
20154 LIBS=$ac_check_lib_save_LIBS
20155 fi
20156 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20157 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20158 if test $ac_cv_lib_z_deflate = yes; then
20159   ZLIB_LINK=" -lz"
20160 fi
20161
20162         fi
20163
20164         if test "x$ZLIB_LINK" = "x" ; then
20165             if test "$wxUSE_ZLIB" = "sys" ; then
20166                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
20167 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
20168    { (exit 1); exit 1; }; }
20169             else
20170                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
20171 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
20172                 wxUSE_ZLIB=builtin
20173             fi
20174         else
20175                         wxUSE_ZLIB=sys
20176         fi
20177     fi
20178 fi
20179
20180
20181 PNG_LINK=
20182 if test "$wxUSE_LIBPNG" != "no" ; then
20183     cat >>confdefs.h <<\_ACEOF
20184 #define wxUSE_LIBPNG 1
20185 _ACEOF
20186
20187
20188     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
20189         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
20190 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
20191         wxUSE_LIBPNG=sys
20192     fi
20193
20194                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
20195         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
20196 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
20197         wxUSE_LIBPNG=builtin
20198     fi
20199
20200     if test "$wxUSE_MGL" != 1 ; then
20201                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
20202                                     echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
20203 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
20204 if test "${ac_cv_header_png_h+set}" = set; then
20205   echo $ECHO_N "(cached) $ECHO_C" >&6
20206 else
20207   if test "$cross_compiling" = yes; then
20208                       unset ac_cv_header_png_h
20209
20210 else
20211   cat >conftest.$ac_ext <<_ACEOF
20212 /* confdefs.h.  */
20213 _ACEOF
20214 cat confdefs.h >>conftest.$ac_ext
20215 cat >>conftest.$ac_ext <<_ACEOF
20216 /* end confdefs.h.  */
20217
20218                         #include <png.h>
20219                         #include <stdio.h>
20220
20221                         int main()
20222                         {
20223                             FILE *f=fopen("conftestval", "w");
20224                             if (!f) exit(1);
20225                             fprintf(f, "%s",
20226                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
20227                             exit(0);
20228                         }
20229
20230 _ACEOF
20231 rm -f conftest$ac_exeext
20232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20233   (eval $ac_link) 2>&5
20234   ac_status=$?
20235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20238   (eval $ac_try) 2>&5
20239   ac_status=$?
20240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241   (exit $ac_status); }; }; then
20242   ac_cv_header_png_h=`cat conftestval`
20243 else
20244   echo "$as_me: program exited with status $ac_status" >&5
20245 echo "$as_me: failed program was:" >&5
20246 sed 's/^/| /' conftest.$ac_ext >&5
20247
20248 ( exit $ac_status )
20249 ac_cv_header_png_h=no
20250 fi
20251 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20252 fi
20253
20254 fi
20255 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20256 echo "${ECHO_T}$ac_cv_header_png_h" >&6
20257             if test "${ac_cv_header_png_h+set}" = set; then
20258   echo "$as_me:$LINENO: checking for png.h" >&5
20259 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20260 if test "${ac_cv_header_png_h+set}" = set; then
20261   echo $ECHO_N "(cached) $ECHO_C" >&6
20262 fi
20263 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20264 echo "${ECHO_T}$ac_cv_header_png_h" >&6
20265 else
20266   # Is the header compilable?
20267 echo "$as_me:$LINENO: checking png.h usability" >&5
20268 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
20269 cat >conftest.$ac_ext <<_ACEOF
20270 /* confdefs.h.  */
20271 _ACEOF
20272 cat confdefs.h >>conftest.$ac_ext
20273 cat >>conftest.$ac_ext <<_ACEOF
20274 /* end confdefs.h.  */
20275 $ac_includes_default
20276 #include <png.h>
20277 _ACEOF
20278 rm -f conftest.$ac_objext
20279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20280   (eval $ac_compile) 2>conftest.er1
20281   ac_status=$?
20282   grep -v '^ *+' conftest.er1 >conftest.err
20283   rm -f conftest.er1
20284   cat conftest.err >&5
20285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286   (exit $ac_status); } &&
20287          { ac_try='test -z "$ac_c_werror_flag"
20288                          || test ! -s conftest.err'
20289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20290   (eval $ac_try) 2>&5
20291   ac_status=$?
20292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293   (exit $ac_status); }; } &&
20294          { ac_try='test -s conftest.$ac_objext'
20295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20296   (eval $ac_try) 2>&5
20297   ac_status=$?
20298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299   (exit $ac_status); }; }; then
20300   ac_header_compiler=yes
20301 else
20302   echo "$as_me: failed program was:" >&5
20303 sed 's/^/| /' conftest.$ac_ext >&5
20304
20305 ac_header_compiler=no
20306 fi
20307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20308 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20309 echo "${ECHO_T}$ac_header_compiler" >&6
20310
20311 # Is the header present?
20312 echo "$as_me:$LINENO: checking png.h presence" >&5
20313 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
20314 cat >conftest.$ac_ext <<_ACEOF
20315 /* confdefs.h.  */
20316 _ACEOF
20317 cat confdefs.h >>conftest.$ac_ext
20318 cat >>conftest.$ac_ext <<_ACEOF
20319 /* end confdefs.h.  */
20320 #include <png.h>
20321 _ACEOF
20322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20323   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20324   ac_status=$?
20325   grep -v '^ *+' conftest.er1 >conftest.err
20326   rm -f conftest.er1
20327   cat conftest.err >&5
20328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329   (exit $ac_status); } >/dev/null; then
20330   if test -s conftest.err; then
20331     ac_cpp_err=$ac_c_preproc_warn_flag
20332     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20333   else
20334     ac_cpp_err=
20335   fi
20336 else
20337   ac_cpp_err=yes
20338 fi
20339 if test -z "$ac_cpp_err"; then
20340   ac_header_preproc=yes
20341 else
20342   echo "$as_me: failed program was:" >&5
20343 sed 's/^/| /' conftest.$ac_ext >&5
20344
20345   ac_header_preproc=no
20346 fi
20347 rm -f conftest.err conftest.$ac_ext
20348 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20349 echo "${ECHO_T}$ac_header_preproc" >&6
20350
20351 # So?  What about this header?
20352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20353   yes:no: )
20354     { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
20355 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20356     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
20357 echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
20358     ac_header_preproc=yes
20359     ;;
20360   no:yes:* )
20361     { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
20362 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
20363     { echo "$as_me:$LINENO: WARNING: png.h:     check for missing prerequisite headers?" >&5
20364 echo "$as_me: WARNING: png.h:     check for missing prerequisite headers?" >&2;}
20365     { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
20366 echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
20367     { echo "$as_me:$LINENO: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&5
20368 echo "$as_me: WARNING: png.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20369     { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
20370 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
20371     { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
20372 echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
20373     (
20374       cat <<\_ASBOX
20375 ## ----------------------------------------- ##
20376 ## Report this to wx-dev@lists.wxwindows.org ##
20377 ## ----------------------------------------- ##
20378 _ASBOX
20379     ) |
20380       sed "s/^/$as_me: WARNING:     /" >&2
20381     ;;
20382 esac
20383 echo "$as_me:$LINENO: checking for png.h" >&5
20384 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20385 if test "${ac_cv_header_png_h+set}" = set; then
20386   echo $ECHO_N "(cached) $ECHO_C" >&6
20387 else
20388   ac_cv_header_png_h=$ac_header_preproc
20389 fi
20390 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20391 echo "${ECHO_T}$ac_cv_header_png_h" >&6
20392
20393 fi
20394
20395
20396
20397             if test "$ac_cv_header_png_h" = "yes"; then
20398                 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
20399 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
20400 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
20401   echo $ECHO_N "(cached) $ECHO_C" >&6
20402 else
20403   ac_check_lib_save_LIBS=$LIBS
20404 LIBS="-lpng -lz -lm $LIBS"
20405 cat >conftest.$ac_ext <<_ACEOF
20406 /* confdefs.h.  */
20407 _ACEOF
20408 cat confdefs.h >>conftest.$ac_ext
20409 cat >>conftest.$ac_ext <<_ACEOF
20410 /* end confdefs.h.  */
20411
20412 /* Override any gcc2 internal prototype to avoid an error.  */
20413 #ifdef __cplusplus
20414 extern "C"
20415 #endif
20416 /* We use char because int might match the return type of a gcc2
20417    builtin and then its argument prototype would still apply.  */
20418 char png_check_sig ();
20419 int
20420 main ()
20421 {
20422 png_check_sig ();
20423   ;
20424   return 0;
20425 }
20426 _ACEOF
20427 rm -f conftest.$ac_objext conftest$ac_exeext
20428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20429   (eval $ac_link) 2>conftest.er1
20430   ac_status=$?
20431   grep -v '^ *+' conftest.er1 >conftest.err
20432   rm -f conftest.er1
20433   cat conftest.err >&5
20434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435   (exit $ac_status); } &&
20436          { ac_try='test -z "$ac_c_werror_flag"
20437                          || test ! -s conftest.err'
20438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20439   (eval $ac_try) 2>&5
20440   ac_status=$?
20441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442   (exit $ac_status); }; } &&
20443          { ac_try='test -s conftest$ac_exeext'
20444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20445   (eval $ac_try) 2>&5
20446   ac_status=$?
20447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448   (exit $ac_status); }; }; then
20449   ac_cv_lib_png_png_check_sig=yes
20450 else
20451   echo "$as_me: failed program was:" >&5
20452 sed 's/^/| /' conftest.$ac_ext >&5
20453
20454 ac_cv_lib_png_png_check_sig=no
20455 fi
20456 rm -f conftest.err conftest.$ac_objext \
20457       conftest$ac_exeext conftest.$ac_ext
20458 LIBS=$ac_check_lib_save_LIBS
20459 fi
20460 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
20461 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
20462 if test $ac_cv_lib_png_png_check_sig = yes; then
20463   PNG_LINK=" -lpng -lz"
20464 fi
20465
20466             fi
20467
20468             if test "x$PNG_LINK" = "x" ; then
20469                 if test "$wxUSE_LIBPNG" = "sys" ; then
20470                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
20471 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
20472    { (exit 1); exit 1; }; }
20473                 else
20474                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
20475 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
20476                     wxUSE_LIBPNG=builtin
20477                 fi
20478             else
20479                                 wxUSE_LIBPNG=sys
20480             fi
20481         fi
20482     fi
20483
20484     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
20485 fi
20486
20487
20488 JPEG_LINK=
20489 if test "$wxUSE_LIBJPEG" != "no" ; then
20490     cat >>confdefs.h <<\_ACEOF
20491 #define wxUSE_LIBJPEG 1
20492 _ACEOF
20493
20494
20495     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
20496         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
20497 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
20498         wxUSE_LIBJPEG=sys
20499     fi
20500
20501     if test "$wxUSE_MGL" != 1 ; then
20502                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
20503                                                 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
20504 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
20505             if test "${ac_cv_header_jpeglib_h+set}" = set; then
20506   echo $ECHO_N "(cached) $ECHO_C" >&6
20507 else
20508   cat >conftest.$ac_ext <<_ACEOF
20509 /* confdefs.h.  */
20510 _ACEOF
20511 cat confdefs.h >>conftest.$ac_ext
20512 cat >>conftest.$ac_ext <<_ACEOF
20513 /* end confdefs.h.  */
20514
20515                         #undef HAVE_STDLIB_H
20516                         #include <stdio.h>
20517                         #include <jpeglib.h>
20518
20519 int
20520 main ()
20521 {
20522
20523
20524   ;
20525   return 0;
20526 }
20527 _ACEOF
20528 rm -f conftest.$ac_objext
20529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20530   (eval $ac_compile) 2>conftest.er1
20531   ac_status=$?
20532   grep -v '^ *+' conftest.er1 >conftest.err
20533   rm -f conftest.er1
20534   cat conftest.err >&5
20535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536   (exit $ac_status); } &&
20537          { ac_try='test -z "$ac_c_werror_flag"
20538                          || test ! -s conftest.err'
20539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20540   (eval $ac_try) 2>&5
20541   ac_status=$?
20542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543   (exit $ac_status); }; } &&
20544          { ac_try='test -s conftest.$ac_objext'
20545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20546   (eval $ac_try) 2>&5
20547   ac_status=$?
20548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549   (exit $ac_status); }; }; then
20550   ac_cv_header_jpeglib_h=yes
20551 else
20552   echo "$as_me: failed program was:" >&5
20553 sed 's/^/| /' conftest.$ac_ext >&5
20554
20555 ac_cv_header_jpeglib_h=no
20556
20557 fi
20558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20559
20560 fi
20561
20562             echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
20563 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
20564
20565             if test "$ac_cv_header_jpeglib_h" = "yes"; then
20566                 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
20567 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
20568 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
20569   echo $ECHO_N "(cached) $ECHO_C" >&6
20570 else
20571   ac_check_lib_save_LIBS=$LIBS
20572 LIBS="-ljpeg  $LIBS"
20573 cat >conftest.$ac_ext <<_ACEOF
20574 /* confdefs.h.  */
20575 _ACEOF
20576 cat confdefs.h >>conftest.$ac_ext
20577 cat >>conftest.$ac_ext <<_ACEOF
20578 /* end confdefs.h.  */
20579
20580 /* Override any gcc2 internal prototype to avoid an error.  */
20581 #ifdef __cplusplus
20582 extern "C"
20583 #endif
20584 /* We use char because int might match the return type of a gcc2
20585    builtin and then its argument prototype would still apply.  */
20586 char jpeg_read_header ();
20587 int
20588 main ()
20589 {
20590 jpeg_read_header ();
20591   ;
20592   return 0;
20593 }
20594 _ACEOF
20595 rm -f conftest.$ac_objext conftest$ac_exeext
20596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20597   (eval $ac_link) 2>conftest.er1
20598   ac_status=$?
20599   grep -v '^ *+' conftest.er1 >conftest.err
20600   rm -f conftest.er1
20601   cat conftest.err >&5
20602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603   (exit $ac_status); } &&
20604          { ac_try='test -z "$ac_c_werror_flag"
20605                          || test ! -s conftest.err'
20606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20607   (eval $ac_try) 2>&5
20608   ac_status=$?
20609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610   (exit $ac_status); }; } &&
20611          { ac_try='test -s conftest$ac_exeext'
20612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20613   (eval $ac_try) 2>&5
20614   ac_status=$?
20615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616   (exit $ac_status); }; }; then
20617   ac_cv_lib_jpeg_jpeg_read_header=yes
20618 else
20619   echo "$as_me: failed program was:" >&5
20620 sed 's/^/| /' conftest.$ac_ext >&5
20621
20622 ac_cv_lib_jpeg_jpeg_read_header=no
20623 fi
20624 rm -f conftest.err conftest.$ac_objext \
20625       conftest$ac_exeext conftest.$ac_ext
20626 LIBS=$ac_check_lib_save_LIBS
20627 fi
20628 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
20629 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
20630 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
20631   JPEG_LINK=" -ljpeg"
20632 fi
20633
20634             fi
20635
20636             if test "x$JPEG_LINK" = "x" ; then
20637                 if test "$wxUSE_LIBJPEG" = "sys" ; then
20638                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
20639 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
20640    { (exit 1); exit 1; }; }
20641                 else
20642                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
20643 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
20644                     wxUSE_LIBJPEG=builtin
20645                 fi
20646             else
20647                                 wxUSE_LIBJPEG=sys
20648             fi
20649         fi
20650     fi
20651 fi
20652
20653
20654 TIFF_LINK=
20655 TIFF_PREREQ_LINKS=-lm
20656 if test "$wxUSE_LIBTIFF" != "no" ; then
20657     cat >>confdefs.h <<\_ACEOF
20658 #define wxUSE_LIBTIFF 1
20659 _ACEOF
20660
20661
20662     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
20663                         if test "$wxUSE_LIBJPEG" = "sys"; then
20664             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
20665         fi
20666         if test "$wxUSE_ZLIB" = "sys"; then
20667             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
20668         fi
20669         if test "${ac_cv_header_tiffio_h+set}" = set; then
20670   echo "$as_me:$LINENO: checking for tiffio.h" >&5
20671 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
20672 if test "${ac_cv_header_tiffio_h+set}" = set; then
20673   echo $ECHO_N "(cached) $ECHO_C" >&6
20674 fi
20675 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
20676 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
20677 else
20678   # Is the header compilable?
20679 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
20680 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
20681 cat >conftest.$ac_ext <<_ACEOF
20682 /* confdefs.h.  */
20683 _ACEOF
20684 cat confdefs.h >>conftest.$ac_ext
20685 cat >>conftest.$ac_ext <<_ACEOF
20686 /* end confdefs.h.  */
20687 $ac_includes_default
20688 #include <tiffio.h>
20689 _ACEOF
20690 rm -f conftest.$ac_objext
20691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20692   (eval $ac_compile) 2>conftest.er1
20693   ac_status=$?
20694   grep -v '^ *+' conftest.er1 >conftest.err
20695   rm -f conftest.er1
20696   cat conftest.err >&5
20697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698   (exit $ac_status); } &&
20699          { ac_try='test -z "$ac_c_werror_flag"
20700                          || test ! -s conftest.err'
20701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20702   (eval $ac_try) 2>&5
20703   ac_status=$?
20704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705   (exit $ac_status); }; } &&
20706          { ac_try='test -s conftest.$ac_objext'
20707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20708   (eval $ac_try) 2>&5
20709   ac_status=$?
20710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711   (exit $ac_status); }; }; then
20712   ac_header_compiler=yes
20713 else
20714   echo "$as_me: failed program was:" >&5
20715 sed 's/^/| /' conftest.$ac_ext >&5
20716
20717 ac_header_compiler=no
20718 fi
20719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20720 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20721 echo "${ECHO_T}$ac_header_compiler" >&6
20722
20723 # Is the header present?
20724 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
20725 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
20726 cat >conftest.$ac_ext <<_ACEOF
20727 /* confdefs.h.  */
20728 _ACEOF
20729 cat confdefs.h >>conftest.$ac_ext
20730 cat >>conftest.$ac_ext <<_ACEOF
20731 /* end confdefs.h.  */
20732 #include <tiffio.h>
20733 _ACEOF
20734 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20735   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20736   ac_status=$?
20737   grep -v '^ *+' conftest.er1 >conftest.err
20738   rm -f conftest.er1
20739   cat conftest.err >&5
20740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741   (exit $ac_status); } >/dev/null; then
20742   if test -s conftest.err; then
20743     ac_cpp_err=$ac_c_preproc_warn_flag
20744     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20745   else
20746     ac_cpp_err=
20747   fi
20748 else
20749   ac_cpp_err=yes
20750 fi
20751 if test -z "$ac_cpp_err"; then
20752   ac_header_preproc=yes
20753 else
20754   echo "$as_me: failed program was:" >&5
20755 sed 's/^/| /' conftest.$ac_ext >&5
20756
20757   ac_header_preproc=no
20758 fi
20759 rm -f conftest.err conftest.$ac_ext
20760 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20761 echo "${ECHO_T}$ac_header_preproc" >&6
20762
20763 # So?  What about this header?
20764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20765   yes:no: )
20766     { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
20767 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20768     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
20769 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
20770     ac_header_preproc=yes
20771     ;;
20772   no:yes:* )
20773     { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
20774 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
20775     { echo "$as_me:$LINENO: WARNING: tiffio.h:     check for missing prerequisite headers?" >&5
20776 echo "$as_me: WARNING: tiffio.h:     check for missing prerequisite headers?" >&2;}
20777     { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
20778 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
20779     { echo "$as_me:$LINENO: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&5
20780 echo "$as_me: WARNING: tiffio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20781     { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
20782 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
20783     { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
20784 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
20785     (
20786       cat <<\_ASBOX
20787 ## ----------------------------------------- ##
20788 ## Report this to wx-dev@lists.wxwindows.org ##
20789 ## ----------------------------------------- ##
20790 _ASBOX
20791     ) |
20792       sed "s/^/$as_me: WARNING:     /" >&2
20793     ;;
20794 esac
20795 echo "$as_me:$LINENO: checking for tiffio.h" >&5
20796 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
20797 if test "${ac_cv_header_tiffio_h+set}" = set; then
20798   echo $ECHO_N "(cached) $ECHO_C" >&6
20799 else
20800   ac_cv_header_tiffio_h=$ac_header_preproc
20801 fi
20802 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
20803 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
20804
20805 fi
20806 if test $ac_cv_header_tiffio_h = yes; then
20807
20808                             echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
20809 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
20810 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
20811   echo $ECHO_N "(cached) $ECHO_C" >&6
20812 else
20813   ac_check_lib_save_LIBS=$LIBS
20814 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
20815 cat >conftest.$ac_ext <<_ACEOF
20816 /* confdefs.h.  */
20817 _ACEOF
20818 cat confdefs.h >>conftest.$ac_ext
20819 cat >>conftest.$ac_ext <<_ACEOF
20820 /* end confdefs.h.  */
20821
20822 /* Override any gcc2 internal prototype to avoid an error.  */
20823 #ifdef __cplusplus
20824 extern "C"
20825 #endif
20826 /* We use char because int might match the return type of a gcc2
20827    builtin and then its argument prototype would still apply.  */
20828 char TIFFError ();
20829 int
20830 main ()
20831 {
20832 TIFFError ();
20833   ;
20834   return 0;
20835 }
20836 _ACEOF
20837 rm -f conftest.$ac_objext conftest$ac_exeext
20838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20839   (eval $ac_link) 2>conftest.er1
20840   ac_status=$?
20841   grep -v '^ *+' conftest.er1 >conftest.err
20842   rm -f conftest.er1
20843   cat conftest.err >&5
20844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20845   (exit $ac_status); } &&
20846          { ac_try='test -z "$ac_c_werror_flag"
20847                          || test ! -s conftest.err'
20848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20849   (eval $ac_try) 2>&5
20850   ac_status=$?
20851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852   (exit $ac_status); }; } &&
20853          { ac_try='test -s conftest$ac_exeext'
20854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20855   (eval $ac_try) 2>&5
20856   ac_status=$?
20857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858   (exit $ac_status); }; }; then
20859   ac_cv_lib_tiff_TIFFError=yes
20860 else
20861   echo "$as_me: failed program was:" >&5
20862 sed 's/^/| /' conftest.$ac_ext >&5
20863
20864 ac_cv_lib_tiff_TIFFError=no
20865 fi
20866 rm -f conftest.err conftest.$ac_objext \
20867       conftest$ac_exeext conftest.$ac_ext
20868 LIBS=$ac_check_lib_save_LIBS
20869 fi
20870 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
20871 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
20872 if test $ac_cv_lib_tiff_TIFFError = yes; then
20873   TIFF_LINK=" -ltiff"
20874 fi
20875
20876
20877
20878 fi
20879
20880
20881
20882         if test "x$TIFF_LINK" = "x" ; then
20883             if test "$wxUSE_LIBTIFF" = "sys" ; then
20884                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
20885 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
20886    { (exit 1); exit 1; }; }
20887             else
20888                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
20889 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
20890                 wxUSE_LIBTIFF=builtin
20891             fi
20892         else
20893                         wxUSE_LIBTIFF=sys
20894         fi
20895     fi
20896 fi
20897
20898
20899 if test "$wxUSE_EXPAT" != "no"; then
20900     wxUSE_XML=yes
20901     cat >>confdefs.h <<\_ACEOF
20902 #define wxUSE_EXPAT 1
20903 _ACEOF
20904
20905     cat >>confdefs.h <<\_ACEOF
20906 #define wxUSE_XML 1
20907 _ACEOF
20908
20909
20910     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
20911         if test "${ac_cv_header_expat_h+set}" = set; then
20912   echo "$as_me:$LINENO: checking for expat.h" >&5
20913 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
20914 if test "${ac_cv_header_expat_h+set}" = set; then
20915   echo $ECHO_N "(cached) $ECHO_C" >&6
20916 fi
20917 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20918 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
20919 else
20920   # Is the header compilable?
20921 echo "$as_me:$LINENO: checking expat.h usability" >&5
20922 echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
20923 cat >conftest.$ac_ext <<_ACEOF
20924 /* confdefs.h.  */
20925 _ACEOF
20926 cat confdefs.h >>conftest.$ac_ext
20927 cat >>conftest.$ac_ext <<_ACEOF
20928 /* end confdefs.h.  */
20929 $ac_includes_default
20930 #include <expat.h>
20931 _ACEOF
20932 rm -f conftest.$ac_objext
20933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20934   (eval $ac_compile) 2>conftest.er1
20935   ac_status=$?
20936   grep -v '^ *+' conftest.er1 >conftest.err
20937   rm -f conftest.er1
20938   cat conftest.err >&5
20939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940   (exit $ac_status); } &&
20941          { ac_try='test -z "$ac_c_werror_flag"
20942                          || test ! -s conftest.err'
20943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20944   (eval $ac_try) 2>&5
20945   ac_status=$?
20946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947   (exit $ac_status); }; } &&
20948          { ac_try='test -s conftest.$ac_objext'
20949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20950   (eval $ac_try) 2>&5
20951   ac_status=$?
20952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953   (exit $ac_status); }; }; then
20954   ac_header_compiler=yes
20955 else
20956   echo "$as_me: failed program was:" >&5
20957 sed 's/^/| /' conftest.$ac_ext >&5
20958
20959 ac_header_compiler=no
20960 fi
20961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20962 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20963 echo "${ECHO_T}$ac_header_compiler" >&6
20964
20965 # Is the header present?
20966 echo "$as_me:$LINENO: checking expat.h presence" >&5
20967 echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
20968 cat >conftest.$ac_ext <<_ACEOF
20969 /* confdefs.h.  */
20970 _ACEOF
20971 cat confdefs.h >>conftest.$ac_ext
20972 cat >>conftest.$ac_ext <<_ACEOF
20973 /* end confdefs.h.  */
20974 #include <expat.h>
20975 _ACEOF
20976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20977   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20978   ac_status=$?
20979   grep -v '^ *+' conftest.er1 >conftest.err
20980   rm -f conftest.er1
20981   cat conftest.err >&5
20982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983   (exit $ac_status); } >/dev/null; then
20984   if test -s conftest.err; then
20985     ac_cpp_err=$ac_c_preproc_warn_flag
20986     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20987   else
20988     ac_cpp_err=
20989   fi
20990 else
20991   ac_cpp_err=yes
20992 fi
20993 if test -z "$ac_cpp_err"; then
20994   ac_header_preproc=yes
20995 else
20996   echo "$as_me: failed program was:" >&5
20997 sed 's/^/| /' conftest.$ac_ext >&5
20998
20999   ac_header_preproc=no
21000 fi
21001 rm -f conftest.err conftest.$ac_ext
21002 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21003 echo "${ECHO_T}$ac_header_preproc" >&6
21004
21005 # So?  What about this header?
21006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21007   yes:no: )
21008     { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
21009 echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21010     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
21011 echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
21012     ac_header_preproc=yes
21013     ;;
21014   no:yes:* )
21015     { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
21016 echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
21017     { echo "$as_me:$LINENO: WARNING: expat.h:     check for missing prerequisite headers?" >&5
21018 echo "$as_me: WARNING: expat.h:     check for missing prerequisite headers?" >&2;}
21019     { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
21020 echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
21021     { echo "$as_me:$LINENO: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&5
21022 echo "$as_me: WARNING: expat.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21023     { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
21024 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
21025     { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
21026 echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
21027     (
21028       cat <<\_ASBOX
21029 ## ----------------------------------------- ##
21030 ## Report this to wx-dev@lists.wxwindows.org ##
21031 ## ----------------------------------------- ##
21032 _ASBOX
21033     ) |
21034       sed "s/^/$as_me: WARNING:     /" >&2
21035     ;;
21036 esac
21037 echo "$as_me:$LINENO: checking for expat.h" >&5
21038 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21039 if test "${ac_cv_header_expat_h+set}" = set; then
21040   echo $ECHO_N "(cached) $ECHO_C" >&6
21041 else
21042   ac_cv_header_expat_h=$ac_header_preproc
21043 fi
21044 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21045 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21046
21047 fi
21048 if test $ac_cv_header_expat_h = yes; then
21049   found_expat_h=1
21050 fi
21051
21052
21053         if test "x$found_expat_h" = "x1"; then
21054                         echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
21055 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
21056 if test "${wx_cv_expat_is_not_broken+set}" = set; then
21057   echo $ECHO_N "(cached) $ECHO_C" >&6
21058 else
21059
21060
21061
21062                 ac_ext=cc
21063 ac_cpp='$CXXCPP $CPPFLAGS'
21064 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21065 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21066 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21067
21068                 cat >conftest.$ac_ext <<_ACEOF
21069 /* confdefs.h.  */
21070 _ACEOF
21071 cat confdefs.h >>conftest.$ac_ext
21072 cat >>conftest.$ac_ext <<_ACEOF
21073 /* end confdefs.h.  */
21074 #include <expat.h>
21075 int
21076 main ()
21077 {
21078
21079   ;
21080   return 0;
21081 }
21082 _ACEOF
21083 rm -f conftest.$ac_objext
21084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21085   (eval $ac_compile) 2>conftest.er1
21086   ac_status=$?
21087   grep -v '^ *+' conftest.er1 >conftest.err
21088   rm -f conftest.er1
21089   cat conftest.err >&5
21090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091   (exit $ac_status); } &&
21092          { ac_try='test -z "$ac_cxx_werror_flag"
21093                          || test ! -s conftest.err'
21094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21095   (eval $ac_try) 2>&5
21096   ac_status=$?
21097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098   (exit $ac_status); }; } &&
21099          { ac_try='test -s conftest.$ac_objext'
21100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21101   (eval $ac_try) 2>&5
21102   ac_status=$?
21103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104   (exit $ac_status); }; }; then
21105   wx_cv_expat_is_not_broken=yes
21106 else
21107   echo "$as_me: failed program was:" >&5
21108 sed 's/^/| /' conftest.$ac_ext >&5
21109
21110 wx_cv_expat_is_not_broken=no
21111
21112 fi
21113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21114                 ac_ext=c
21115 ac_cpp='$CPP $CPPFLAGS'
21116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21119
21120
21121
21122 fi
21123 echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
21124 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
21125             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
21126                 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
21127 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
21128 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
21129   echo $ECHO_N "(cached) $ECHO_C" >&6
21130 else
21131   ac_check_lib_save_LIBS=$LIBS
21132 LIBS="-lexpat  $LIBS"
21133 cat >conftest.$ac_ext <<_ACEOF
21134 /* confdefs.h.  */
21135 _ACEOF
21136 cat confdefs.h >>conftest.$ac_ext
21137 cat >>conftest.$ac_ext <<_ACEOF
21138 /* end confdefs.h.  */
21139
21140 /* Override any gcc2 internal prototype to avoid an error.  */
21141 #ifdef __cplusplus
21142 extern "C"
21143 #endif
21144 /* We use char because int might match the return type of a gcc2
21145    builtin and then its argument prototype would still apply.  */
21146 char XML_ParserCreate ();
21147 int
21148 main ()
21149 {
21150 XML_ParserCreate ();
21151   ;
21152   return 0;
21153 }
21154 _ACEOF
21155 rm -f conftest.$ac_objext conftest$ac_exeext
21156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21157   (eval $ac_link) 2>conftest.er1
21158   ac_status=$?
21159   grep -v '^ *+' conftest.er1 >conftest.err
21160   rm -f conftest.er1
21161   cat conftest.err >&5
21162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163   (exit $ac_status); } &&
21164          { ac_try='test -z "$ac_c_werror_flag"
21165                          || test ! -s conftest.err'
21166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21167   (eval $ac_try) 2>&5
21168   ac_status=$?
21169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170   (exit $ac_status); }; } &&
21171          { ac_try='test -s conftest$ac_exeext'
21172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21173   (eval $ac_try) 2>&5
21174   ac_status=$?
21175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176   (exit $ac_status); }; }; then
21177   ac_cv_lib_expat_XML_ParserCreate=yes
21178 else
21179   echo "$as_me: failed program was:" >&5
21180 sed 's/^/| /' conftest.$ac_ext >&5
21181
21182 ac_cv_lib_expat_XML_ParserCreate=no
21183 fi
21184 rm -f conftest.err conftest.$ac_objext \
21185       conftest$ac_exeext conftest.$ac_ext
21186 LIBS=$ac_check_lib_save_LIBS
21187 fi
21188 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
21189 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
21190 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
21191   EXPAT_LINK=" -lexpat"
21192 fi
21193
21194             fi
21195         fi
21196         if test "x$EXPAT_LINK" = "x" ; then
21197             if test "$wxUSE_EXPAT" = "sys" ; then
21198                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
21199 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
21200    { (exit 1); exit 1; }; }
21201             else
21202                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
21203 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
21204                 wxUSE_EXPAT=builtin
21205             fi
21206         else
21207                         wxUSE_EXPAT=sys
21208         fi
21209     fi
21210     if test "$wxUSE_EXPAT" = "builtin" ; then
21211
21212
21213 subdirs="$subdirs src/expat"
21214
21215     fi
21216 fi
21217
21218
21219
21220 if test "$wxUSE_LIBMSPACK" != "no"; then
21221
21222     if test "${ac_cv_header_mspack_h+set}" = set; then
21223   echo "$as_me:$LINENO: checking for mspack.h" >&5
21224 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21225 if test "${ac_cv_header_mspack_h+set}" = set; then
21226   echo $ECHO_N "(cached) $ECHO_C" >&6
21227 fi
21228 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21229 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21230 else
21231   # Is the header compilable?
21232 echo "$as_me:$LINENO: checking mspack.h usability" >&5
21233 echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
21234 cat >conftest.$ac_ext <<_ACEOF
21235 /* confdefs.h.  */
21236 _ACEOF
21237 cat confdefs.h >>conftest.$ac_ext
21238 cat >>conftest.$ac_ext <<_ACEOF
21239 /* end confdefs.h.  */
21240 $ac_includes_default
21241 #include <mspack.h>
21242 _ACEOF
21243 rm -f conftest.$ac_objext
21244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21245   (eval $ac_compile) 2>conftest.er1
21246   ac_status=$?
21247   grep -v '^ *+' conftest.er1 >conftest.err
21248   rm -f conftest.er1
21249   cat conftest.err >&5
21250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251   (exit $ac_status); } &&
21252          { ac_try='test -z "$ac_c_werror_flag"
21253                          || test ! -s conftest.err'
21254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21255   (eval $ac_try) 2>&5
21256   ac_status=$?
21257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258   (exit $ac_status); }; } &&
21259          { ac_try='test -s conftest.$ac_objext'
21260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21261   (eval $ac_try) 2>&5
21262   ac_status=$?
21263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264   (exit $ac_status); }; }; then
21265   ac_header_compiler=yes
21266 else
21267   echo "$as_me: failed program was:" >&5
21268 sed 's/^/| /' conftest.$ac_ext >&5
21269
21270 ac_header_compiler=no
21271 fi
21272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21273 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21274 echo "${ECHO_T}$ac_header_compiler" >&6
21275
21276 # Is the header present?
21277 echo "$as_me:$LINENO: checking mspack.h presence" >&5
21278 echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
21279 cat >conftest.$ac_ext <<_ACEOF
21280 /* confdefs.h.  */
21281 _ACEOF
21282 cat confdefs.h >>conftest.$ac_ext
21283 cat >>conftest.$ac_ext <<_ACEOF
21284 /* end confdefs.h.  */
21285 #include <mspack.h>
21286 _ACEOF
21287 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21288   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21289   ac_status=$?
21290   grep -v '^ *+' conftest.er1 >conftest.err
21291   rm -f conftest.er1
21292   cat conftest.err >&5
21293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294   (exit $ac_status); } >/dev/null; then
21295   if test -s conftest.err; then
21296     ac_cpp_err=$ac_c_preproc_warn_flag
21297     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21298   else
21299     ac_cpp_err=
21300   fi
21301 else
21302   ac_cpp_err=yes
21303 fi
21304 if test -z "$ac_cpp_err"; then
21305   ac_header_preproc=yes
21306 else
21307   echo "$as_me: failed program was:" >&5
21308 sed 's/^/| /' conftest.$ac_ext >&5
21309
21310   ac_header_preproc=no
21311 fi
21312 rm -f conftest.err conftest.$ac_ext
21313 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21314 echo "${ECHO_T}$ac_header_preproc" >&6
21315
21316 # So?  What about this header?
21317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21318   yes:no: )
21319     { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
21320 echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21321     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
21322 echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
21323     ac_header_preproc=yes
21324     ;;
21325   no:yes:* )
21326     { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
21327 echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
21328     { echo "$as_me:$LINENO: WARNING: mspack.h:     check for missing prerequisite headers?" >&5
21329 echo "$as_me: WARNING: mspack.h:     check for missing prerequisite headers?" >&2;}
21330     { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
21331 echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
21332     { echo "$as_me:$LINENO: WARNING: mspack.h:     section \"Present But Cannot Be Compiled\"" >&5
21333 echo "$as_me: WARNING: mspack.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21334     { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
21335 echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
21336     { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
21337 echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
21338     (
21339       cat <<\_ASBOX
21340 ## ----------------------------------------- ##
21341 ## Report this to wx-dev@lists.wxwindows.org ##
21342 ## ----------------------------------------- ##
21343 _ASBOX
21344     ) |
21345       sed "s/^/$as_me: WARNING:     /" >&2
21346     ;;
21347 esac
21348 echo "$as_me:$LINENO: checking for mspack.h" >&5
21349 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21350 if test "${ac_cv_header_mspack_h+set}" = set; then
21351   echo $ECHO_N "(cached) $ECHO_C" >&6
21352 else
21353   ac_cv_header_mspack_h=$ac_header_preproc
21354 fi
21355 echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21356 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21357
21358 fi
21359 if test $ac_cv_header_mspack_h = yes; then
21360   found_mspack_h=1
21361 fi
21362
21363
21364     if test "x$found_mspack_h" = "x1"; then
21365         echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
21366 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
21367 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
21368   echo $ECHO_N "(cached) $ECHO_C" >&6
21369 else
21370   ac_check_lib_save_LIBS=$LIBS
21371 LIBS="-lmspack  $LIBS"
21372 cat >conftest.$ac_ext <<_ACEOF
21373 /* confdefs.h.  */
21374 _ACEOF
21375 cat confdefs.h >>conftest.$ac_ext
21376 cat >>conftest.$ac_ext <<_ACEOF
21377 /* end confdefs.h.  */
21378
21379 /* Override any gcc2 internal prototype to avoid an error.  */
21380 #ifdef __cplusplus
21381 extern "C"
21382 #endif
21383 /* We use char because int might match the return type of a gcc2
21384    builtin and then its argument prototype would still apply.  */
21385 char mspack_create_chm_decompressor ();
21386 int
21387 main ()
21388 {
21389 mspack_create_chm_decompressor ();
21390   ;
21391   return 0;
21392 }
21393 _ACEOF
21394 rm -f conftest.$ac_objext conftest$ac_exeext
21395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21396   (eval $ac_link) 2>conftest.er1
21397   ac_status=$?
21398   grep -v '^ *+' conftest.er1 >conftest.err
21399   rm -f conftest.er1
21400   cat conftest.err >&5
21401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402   (exit $ac_status); } &&
21403          { ac_try='test -z "$ac_c_werror_flag"
21404                          || test ! -s conftest.err'
21405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21406   (eval $ac_try) 2>&5
21407   ac_status=$?
21408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409   (exit $ac_status); }; } &&
21410          { ac_try='test -s conftest$ac_exeext'
21411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21412   (eval $ac_try) 2>&5
21413   ac_status=$?
21414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415   (exit $ac_status); }; }; then
21416   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
21417 else
21418   echo "$as_me: failed program was:" >&5
21419 sed 's/^/| /' conftest.$ac_ext >&5
21420
21421 ac_cv_lib_mspack_mspack_create_chm_decompressor=no
21422 fi
21423 rm -f conftest.err conftest.$ac_objext \
21424       conftest$ac_exeext conftest.$ac_ext
21425 LIBS=$ac_check_lib_save_LIBS
21426 fi
21427 echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
21428 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
21429 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
21430   MSPACK_LINK=" -lmspack"
21431 fi
21432
21433     fi
21434     if test "x$MSPACK_LINK" = "x" ; then
21435         wxUSE_LIBMSPACK=no
21436     else
21437         cat >>confdefs.h <<\_ACEOF
21438 #define wxUSE_LIBMSPACK 1
21439 _ACEOF
21440
21441     fi
21442 fi
21443
21444
21445
21446 AFMINSTALL=
21447 WIN32INSTALL=
21448
21449 TOOLKIT=
21450 TOOLKIT_INCLUDE=
21451 WIDGET_SET=
21452
21453 if test "$USE_WIN32" = 1 ; then
21454
21455 for ac_header in w32api.h
21456 do
21457 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21459   echo "$as_me:$LINENO: checking for $ac_header" >&5
21460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21462   echo $ECHO_N "(cached) $ECHO_C" >&6
21463 fi
21464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21466 else
21467   # Is the header compilable?
21468 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21469 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21470 cat >conftest.$ac_ext <<_ACEOF
21471 /* confdefs.h.  */
21472 _ACEOF
21473 cat confdefs.h >>conftest.$ac_ext
21474 cat >>conftest.$ac_ext <<_ACEOF
21475 /* end confdefs.h.  */
21476 $ac_includes_default
21477 #include <$ac_header>
21478 _ACEOF
21479 rm -f conftest.$ac_objext
21480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21481   (eval $ac_compile) 2>conftest.er1
21482   ac_status=$?
21483   grep -v '^ *+' conftest.er1 >conftest.err
21484   rm -f conftest.er1
21485   cat conftest.err >&5
21486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487   (exit $ac_status); } &&
21488          { ac_try='test -z "$ac_c_werror_flag"
21489                          || test ! -s conftest.err'
21490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21491   (eval $ac_try) 2>&5
21492   ac_status=$?
21493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494   (exit $ac_status); }; } &&
21495          { ac_try='test -s conftest.$ac_objext'
21496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21497   (eval $ac_try) 2>&5
21498   ac_status=$?
21499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500   (exit $ac_status); }; }; then
21501   ac_header_compiler=yes
21502 else
21503   echo "$as_me: failed program was:" >&5
21504 sed 's/^/| /' conftest.$ac_ext >&5
21505
21506 ac_header_compiler=no
21507 fi
21508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21509 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21510 echo "${ECHO_T}$ac_header_compiler" >&6
21511
21512 # Is the header present?
21513 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21514 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21515 cat >conftest.$ac_ext <<_ACEOF
21516 /* confdefs.h.  */
21517 _ACEOF
21518 cat confdefs.h >>conftest.$ac_ext
21519 cat >>conftest.$ac_ext <<_ACEOF
21520 /* end confdefs.h.  */
21521 #include <$ac_header>
21522 _ACEOF
21523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21524   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21525   ac_status=$?
21526   grep -v '^ *+' conftest.er1 >conftest.err
21527   rm -f conftest.er1
21528   cat conftest.err >&5
21529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530   (exit $ac_status); } >/dev/null; then
21531   if test -s conftest.err; then
21532     ac_cpp_err=$ac_c_preproc_warn_flag
21533     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21534   else
21535     ac_cpp_err=
21536   fi
21537 else
21538   ac_cpp_err=yes
21539 fi
21540 if test -z "$ac_cpp_err"; then
21541   ac_header_preproc=yes
21542 else
21543   echo "$as_me: failed program was:" >&5
21544 sed 's/^/| /' conftest.$ac_ext >&5
21545
21546   ac_header_preproc=no
21547 fi
21548 rm -f conftest.err conftest.$ac_ext
21549 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21550 echo "${ECHO_T}$ac_header_preproc" >&6
21551
21552 # So?  What about this header?
21553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21554   yes:no: )
21555     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21556 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21557     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21558 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21559     ac_header_preproc=yes
21560     ;;
21561   no:yes:* )
21562     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21563 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21564     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21565 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21566     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21567 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21568     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21569 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21570     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21571 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21572     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21573 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21574     (
21575       cat <<\_ASBOX
21576 ## ----------------------------------------- ##
21577 ## Report this to wx-dev@lists.wxwindows.org ##
21578 ## ----------------------------------------- ##
21579 _ASBOX
21580     ) |
21581       sed "s/^/$as_me: WARNING:     /" >&2
21582     ;;
21583 esac
21584 echo "$as_me:$LINENO: checking for $ac_header" >&5
21585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21587   echo $ECHO_N "(cached) $ECHO_C" >&6
21588 else
21589   eval "$as_ac_Header=\$ac_header_preproc"
21590 fi
21591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21592 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21593
21594 fi
21595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21596   cat >>confdefs.h <<_ACEOF
21597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21598 _ACEOF
21599
21600 fi
21601
21602 done
21603
21604     if test "${ac_cv_header_windows_h+set}" = set; then
21605   echo "$as_me:$LINENO: checking for windows.h" >&5
21606 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
21607 if test "${ac_cv_header_windows_h+set}" = set; then
21608   echo $ECHO_N "(cached) $ECHO_C" >&6
21609 fi
21610 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21611 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
21612 else
21613   # Is the header compilable?
21614 echo "$as_me:$LINENO: checking windows.h usability" >&5
21615 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
21616 cat >conftest.$ac_ext <<_ACEOF
21617 /* confdefs.h.  */
21618 _ACEOF
21619 cat confdefs.h >>conftest.$ac_ext
21620 cat >>conftest.$ac_ext <<_ACEOF
21621 /* end confdefs.h.  */
21622 $ac_includes_default
21623 #include <windows.h>
21624 _ACEOF
21625 rm -f conftest.$ac_objext
21626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21627   (eval $ac_compile) 2>conftest.er1
21628   ac_status=$?
21629   grep -v '^ *+' conftest.er1 >conftest.err
21630   rm -f conftest.er1
21631   cat conftest.err >&5
21632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21633   (exit $ac_status); } &&
21634          { ac_try='test -z "$ac_c_werror_flag"
21635                          || test ! -s conftest.err'
21636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21637   (eval $ac_try) 2>&5
21638   ac_status=$?
21639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640   (exit $ac_status); }; } &&
21641          { ac_try='test -s conftest.$ac_objext'
21642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21643   (eval $ac_try) 2>&5
21644   ac_status=$?
21645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646   (exit $ac_status); }; }; then
21647   ac_header_compiler=yes
21648 else
21649   echo "$as_me: failed program was:" >&5
21650 sed 's/^/| /' conftest.$ac_ext >&5
21651
21652 ac_header_compiler=no
21653 fi
21654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21655 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21656 echo "${ECHO_T}$ac_header_compiler" >&6
21657
21658 # Is the header present?
21659 echo "$as_me:$LINENO: checking windows.h presence" >&5
21660 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
21661 cat >conftest.$ac_ext <<_ACEOF
21662 /* confdefs.h.  */
21663 _ACEOF
21664 cat confdefs.h >>conftest.$ac_ext
21665 cat >>conftest.$ac_ext <<_ACEOF
21666 /* end confdefs.h.  */
21667 #include <windows.h>
21668 _ACEOF
21669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21670   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21671   ac_status=$?
21672   grep -v '^ *+' conftest.er1 >conftest.err
21673   rm -f conftest.er1
21674   cat conftest.err >&5
21675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676   (exit $ac_status); } >/dev/null; then
21677   if test -s conftest.err; then
21678     ac_cpp_err=$ac_c_preproc_warn_flag
21679     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21680   else
21681     ac_cpp_err=
21682   fi
21683 else
21684   ac_cpp_err=yes
21685 fi
21686 if test -z "$ac_cpp_err"; then
21687   ac_header_preproc=yes
21688 else
21689   echo "$as_me: failed program was:" >&5
21690 sed 's/^/| /' conftest.$ac_ext >&5
21691
21692   ac_header_preproc=no
21693 fi
21694 rm -f conftest.err conftest.$ac_ext
21695 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21696 echo "${ECHO_T}$ac_header_preproc" >&6
21697
21698 # So?  What about this header?
21699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21700   yes:no: )
21701     { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
21702 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21703     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
21704 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
21705     ac_header_preproc=yes
21706     ;;
21707   no:yes:* )
21708     { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
21709 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
21710     { echo "$as_me:$LINENO: WARNING: windows.h:     check for missing prerequisite headers?" >&5
21711 echo "$as_me: WARNING: windows.h:     check for missing prerequisite headers?" >&2;}
21712     { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
21713 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
21714     { echo "$as_me:$LINENO: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&5
21715 echo "$as_me: WARNING: windows.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21716     { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
21717 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
21718     { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
21719 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
21720     (
21721       cat <<\_ASBOX
21722 ## ----------------------------------------- ##
21723 ## Report this to wx-dev@lists.wxwindows.org ##
21724 ## ----------------------------------------- ##
21725 _ASBOX
21726     ) |
21727       sed "s/^/$as_me: WARNING:     /" >&2
21728     ;;
21729 esac
21730 echo "$as_me:$LINENO: checking for windows.h" >&5
21731 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
21732 if test "${ac_cv_header_windows_h+set}" = set; then
21733   echo $ECHO_N "(cached) $ECHO_C" >&6
21734 else
21735   ac_cv_header_windows_h=$ac_header_preproc
21736 fi
21737 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21738 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
21739
21740 fi
21741 if test $ac_cv_header_windows_h = yes; then
21742   :
21743 else
21744
21745         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
21746 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
21747    { (exit 1); exit 1; }; }
21748
21749 fi
21750
21751
21752
21753             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21754
21755     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
21756         LIBS="$LIBS -loleacc"
21757     fi
21758
21759     case "${host}" in
21760         *-*-cygwin* )
21761                         LIBS="$LIBS -lkernel32 -luser32"
21762             TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
21763     esac
21764
21765         if test "$wxUSE_ODBC" = "sys" ; then
21766         wxUSE_ODBC = "yes"
21767     fi
21768     if test "$wxUSE_ODBC" = "yes" ; then
21769         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
21770         cat >>confdefs.h <<\_ACEOF
21771 #define wxUSE_ODBC 1
21772 _ACEOF
21773
21774     fi
21775
21776     RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
21777     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
21778
21779         WIN32INSTALL=win32install
21780 fi
21781
21782 if test "$wxUSE_GUI" = "yes"; then
21783     USE_GUI=1
21784
21785     GUI_TK_LIBRARY=
21786
21787     WXGTK12=
21788     WXGTK127=
21789     WXGTK20=
21790     WXGPE=
21791
21792     if test "$wxUSE_MSW" = 1 ; then
21793         TOOLKIT=MSW
21794         GUIDIST=MSW_DIST
21795
21796                                 case "${host}" in
21797             *-*-mingw32* )
21798                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
21799         esac
21800     fi
21801
21802     if test "$wxUSE_GTK" = 1; then
21803         echo "$as_me:$LINENO: checking for GTK+ version" >&5
21804 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21805
21806         gtk_version_cached=1
21807         if test "${wx_cv_lib_gtk+set}" = set; then
21808   echo $ECHO_N "(cached) $ECHO_C" >&6
21809 else
21810
21811                                                 gtk_version_cached=0
21812                 echo "$as_me:$LINENO: result: " >&5
21813 echo "${ECHO_T}" >&6
21814
21815                                                 GTK_MODULES=
21816                 if test "$wxUSE_THREADS" = "yes"; then
21817                     GTK_MODULES=gthread
21818                 fi
21819
21820                                                 wx_cv_lib_gtk=
21821                 if test "x$wxUSE_GTK2" = "xyes"; then
21822                     # Check whether --enable-gtktest or --disable-gtktest was given.
21823 if test "${enable_gtktest+set}" = set; then
21824   enableval="$enable_gtktest"
21825
21826 else
21827   enable_gtktest=yes
21828 fi;
21829
21830   pkg_config_args=gtk+-2.0
21831   for module in . $GTK_MODULES
21832   do
21833       case "$module" in
21834          gthread)
21835              pkg_config_args="$pkg_config_args gthread-2.0"
21836          ;;
21837       esac
21838   done
21839
21840   no_gtk=""
21841
21842   # Extract the first word of "pkg-config", so it can be a program name with args.
21843 set dummy pkg-config; ac_word=$2
21844 echo "$as_me:$LINENO: checking for $ac_word" >&5
21845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21846 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21847   echo $ECHO_N "(cached) $ECHO_C" >&6
21848 else
21849   case $PKG_CONFIG in
21850   [\\/]* | ?:[\\/]*)
21851   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21852   ;;
21853   *)
21854   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21855 for as_dir in $PATH
21856 do
21857   IFS=$as_save_IFS
21858   test -z "$as_dir" && as_dir=.
21859   for ac_exec_ext in '' $ac_executable_extensions; do
21860   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21861     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21863     break 2
21864   fi
21865 done
21866 done
21867
21868   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21869   ;;
21870 esac
21871 fi
21872 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21873
21874 if test -n "$PKG_CONFIG"; then
21875   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21876 echo "${ECHO_T}$PKG_CONFIG" >&6
21877 else
21878   echo "$as_me:$LINENO: result: no" >&5
21879 echo "${ECHO_T}no" >&6
21880 fi
21881
21882
21883   if test x$PKG_CONFIG != xno ; then
21884     if pkg-config --atleast-pkgconfig-version 0.7 ; then
21885       :
21886     else
21887       echo *** pkg-config too old; version 0.7 or better required.
21888       no_gtk=yes
21889       PKG_CONFIG=no
21890     fi
21891   else
21892     no_gtk=yes
21893   fi
21894
21895   min_gtk_version=2.0.0
21896   echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
21897 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
21898
21899   if test x$PKG_CONFIG != xno ; then
21900     ## don't try to run the test against uninstalled libtool libs
21901     if $PKG_CONFIG --uninstalled $pkg_config_args; then
21902           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
21903           enable_gtktest=no
21904     fi
21905
21906     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
21907           :
21908     else
21909           no_gtk=yes
21910     fi
21911   fi
21912
21913   if test x"$no_gtk" = x ; then
21914     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
21915     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
21916     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21917            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21918     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21919            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21920     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21921            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21922     if test "x$enable_gtktest" = "xyes" ; then
21923       ac_save_CFLAGS="$CFLAGS"
21924       ac_save_LIBS="$LIBS"
21925       CFLAGS="$CFLAGS $GTK_CFLAGS"
21926       LIBS="$GTK_LIBS $LIBS"
21927       rm -f conf.gtktest
21928       if test "$cross_compiling" = yes; then
21929   echo $ac_n "cross compiling; assumed OK... $ac_c"
21930 else
21931   cat >conftest.$ac_ext <<_ACEOF
21932 /* confdefs.h.  */
21933 _ACEOF
21934 cat confdefs.h >>conftest.$ac_ext
21935 cat >>conftest.$ac_ext <<_ACEOF
21936 /* end confdefs.h.  */
21937
21938 #include <gtk/gtk.h>
21939 #include <stdio.h>
21940 #include <stdlib.h>
21941
21942 int
21943 main ()
21944 {
21945   int major, minor, micro;
21946   char *tmp_version;
21947
21948   system ("touch conf.gtktest");
21949
21950   /* HP/UX 9 (%@#!) writes to sscanf strings */
21951   tmp_version = g_strdup("$min_gtk_version");
21952   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21953      printf("%s, bad version string\n", "$min_gtk_version");
21954      exit(1);
21955    }
21956
21957   if ((gtk_major_version != $gtk_config_major_version) ||
21958       (gtk_minor_version != $gtk_config_minor_version) ||
21959       (gtk_micro_version != $gtk_config_micro_version))
21960     {
21961       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21962              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21963              gtk_major_version, gtk_minor_version, gtk_micro_version);
21964       printf ("*** was found! If pkg-config was correct, then it is best\n");
21965       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21966       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21967       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21968       printf("*** required on your system.\n");
21969       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
21970       printf("*** to point to the correct configuration files\n");
21971     }
21972   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21973            (gtk_minor_version != GTK_MINOR_VERSION) ||
21974            (gtk_micro_version != GTK_MICRO_VERSION))
21975     {
21976       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21977              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21978       printf("*** library (version %d.%d.%d)\n",
21979              gtk_major_version, gtk_minor_version, gtk_micro_version);
21980     }
21981   else
21982     {
21983       if ((gtk_major_version > major) ||
21984         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21985         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21986       {
21987         return 0;
21988        }
21989      else
21990       {
21991         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21992                gtk_major_version, gtk_minor_version, gtk_micro_version);
21993         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21994                major, minor, micro);
21995         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21996         printf("***\n");
21997         printf("*** If you have already installed a sufficiently new version, this error\n");
21998         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
21999         printf("*** being found. The easiest way to fix this is to remove the old version\n");
22000         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
22001         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
22002         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22003         printf("*** so that the correct libraries are found at run-time))\n");
22004       }
22005     }
22006   return 1;
22007 }
22008
22009 _ACEOF
22010 rm -f conftest$ac_exeext
22011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22012   (eval $ac_link) 2>&5
22013   ac_status=$?
22014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22017   (eval $ac_try) 2>&5
22018   ac_status=$?
22019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020   (exit $ac_status); }; }; then
22021   :
22022 else
22023   echo "$as_me: program exited with status $ac_status" >&5
22024 echo "$as_me: failed program was:" >&5
22025 sed 's/^/| /' conftest.$ac_ext >&5
22026
22027 ( exit $ac_status )
22028 no_gtk=yes
22029 fi
22030 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22031 fi
22032        CFLAGS="$ac_save_CFLAGS"
22033        LIBS="$ac_save_LIBS"
22034      fi
22035   fi
22036   if test "x$no_gtk" = x ; then
22037      echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
22038 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
22039      wx_cv_lib_gtk=2.0
22040   else
22041      echo "$as_me:$LINENO: result: no" >&5
22042 echo "${ECHO_T}no" >&6
22043      if test "$PKG_CONFIG" = "no" ; then
22044        echo "*** A new enough version of pkg-config was not found."
22045        echo "*** See http://pkgconfig.sourceforge.net"
22046      else
22047        if test -f conf.gtktest ; then
22048         :
22049        else
22050           echo "*** Could not run GTK+ test program, checking why..."
22051           ac_save_CFLAGS="$CFLAGS"
22052           ac_save_LIBS="$LIBS"
22053           CFLAGS="$CFLAGS $GTK_CFLAGS"
22054           LIBS="$LIBS $GTK_LIBS"
22055           cat >conftest.$ac_ext <<_ACEOF
22056 /* confdefs.h.  */
22057 _ACEOF
22058 cat confdefs.h >>conftest.$ac_ext
22059 cat >>conftest.$ac_ext <<_ACEOF
22060 /* end confdefs.h.  */
22061
22062 #include <gtk/gtk.h>
22063 #include <stdio.h>
22064
22065 int
22066 main ()
22067 {
22068  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22069   ;
22070   return 0;
22071 }
22072 _ACEOF
22073 rm -f conftest.$ac_objext conftest$ac_exeext
22074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22075   (eval $ac_link) 2>conftest.er1
22076   ac_status=$?
22077   grep -v '^ *+' conftest.er1 >conftest.err
22078   rm -f conftest.er1
22079   cat conftest.err >&5
22080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081   (exit $ac_status); } &&
22082          { ac_try='test -z "$ac_c_werror_flag"
22083                          || test ! -s conftest.err'
22084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22085   (eval $ac_try) 2>&5
22086   ac_status=$?
22087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22088   (exit $ac_status); }; } &&
22089          { ac_try='test -s conftest$ac_exeext'
22090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22091   (eval $ac_try) 2>&5
22092   ac_status=$?
22093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094   (exit $ac_status); }; }; then
22095    echo "*** The test program compiled, but did not run. This usually means"
22096           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
22097           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
22098           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22099           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
22100           echo "*** is required on your system"
22101           echo "***"
22102           echo "*** If you have an old version installed, it is best to remove it, although"
22103           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22104 else
22105   echo "$as_me: failed program was:" >&5
22106 sed 's/^/| /' conftest.$ac_ext >&5
22107
22108  echo "*** The test program failed to compile or link. See the file config.log for the"
22109           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
22110 fi
22111 rm -f conftest.err conftest.$ac_objext \
22112       conftest$ac_exeext conftest.$ac_ext
22113           CFLAGS="$ac_save_CFLAGS"
22114           LIBS="$ac_save_LIBS"
22115        fi
22116      fi
22117      GTK_CFLAGS=""
22118      GTK_LIBS=""
22119      :
22120   fi
22121
22122
22123   rm -f conf.gtktest
22124
22125                 else
22126
22127 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22128 if test "${with_gtk_prefix+set}" = set; then
22129   withval="$with_gtk_prefix"
22130   gtk_config_prefix="$withval"
22131 else
22132   gtk_config_prefix=""
22133 fi;
22134
22135 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22136 if test "${with_gtk_exec_prefix+set}" = set; then
22137   withval="$with_gtk_exec_prefix"
22138   gtk_config_exec_prefix="$withval"
22139 else
22140   gtk_config_exec_prefix=""
22141 fi;
22142 # Check whether --enable-gtktest or --disable-gtktest was given.
22143 if test "${enable_gtktest+set}" = set; then
22144   enableval="$enable_gtktest"
22145
22146 else
22147   enable_gtktest=yes
22148 fi;
22149
22150   for module in . $GTK_MODULES
22151   do
22152       case "$module" in
22153          gthread)
22154              gtk_config_args="$gtk_config_args gthread"
22155          ;;
22156       esac
22157   done
22158
22159   if test x$gtk_config_exec_prefix != x ; then
22160      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22161      if test x${GTK_CONFIG+set} != xset ; then
22162         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22163      fi
22164   fi
22165   if test x$gtk_config_prefix != x ; then
22166      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22167      if test x${GTK_CONFIG+set} != xset ; then
22168         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22169      fi
22170   fi
22171
22172   # Extract the first word of "gtk-config", so it can be a program name with args.
22173 set dummy gtk-config; ac_word=$2
22174 echo "$as_me:$LINENO: checking for $ac_word" >&5
22175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22176 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22177   echo $ECHO_N "(cached) $ECHO_C" >&6
22178 else
22179   case $GTK_CONFIG in
22180   [\\/]* | ?:[\\/]*)
22181   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22182   ;;
22183   *)
22184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22185 for as_dir in $PATH
22186 do
22187   IFS=$as_save_IFS
22188   test -z "$as_dir" && as_dir=.
22189   for ac_exec_ext in '' $ac_executable_extensions; do
22190   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22191     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22193     break 2
22194   fi
22195 done
22196 done
22197
22198   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22199   ;;
22200 esac
22201 fi
22202 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22203
22204 if test -n "$GTK_CONFIG"; then
22205   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22206 echo "${ECHO_T}$GTK_CONFIG" >&6
22207 else
22208   echo "$as_me:$LINENO: result: no" >&5
22209 echo "${ECHO_T}no" >&6
22210 fi
22211
22212   min_gtk_version=1.2.7
22213   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22214 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22215   no_gtk=""
22216   if test "$GTK_CONFIG" = "no" ; then
22217     no_gtk=yes
22218   else
22219     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22220     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22221     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22222            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22223     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22224            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22225     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22226            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22227     if test "x$enable_gtktest" = "xyes" ; then
22228       ac_save_CFLAGS="$CFLAGS"
22229       ac_save_LIBS="$LIBS"
22230       CFLAGS="$CFLAGS $GTK_CFLAGS"
22231       LIBS="$GTK_LIBS $LIBS"
22232       rm -f conf.gtktest
22233       if test "$cross_compiling" = yes; then
22234   echo $ac_n "cross compiling; assumed OK... $ac_c"
22235 else
22236   cat >conftest.$ac_ext <<_ACEOF
22237 /* confdefs.h.  */
22238 _ACEOF
22239 cat confdefs.h >>conftest.$ac_ext
22240 cat >>conftest.$ac_ext <<_ACEOF
22241 /* end confdefs.h.  */
22242
22243 #include <gtk/gtk.h>
22244 #include <stdio.h>
22245 #include <stdlib.h>
22246
22247 int
22248 main ()
22249 {
22250   int major, minor, micro;
22251   char *tmp_version;
22252
22253   system ("touch conf.gtktest");
22254
22255   /* HP/UX 9 (%@#!) writes to sscanf strings */
22256   tmp_version = g_strdup("$min_gtk_version");
22257   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22258      printf("%s, bad version string\n", "$min_gtk_version");
22259      exit(1);
22260    }
22261
22262   if ((gtk_major_version != $gtk_config_major_version) ||
22263       (gtk_minor_version != $gtk_config_minor_version) ||
22264       (gtk_micro_version != $gtk_config_micro_version))
22265     {
22266       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22267              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22268              gtk_major_version, gtk_minor_version, gtk_micro_version);
22269       printf ("*** was found! If gtk-config was correct, then it is best\n");
22270       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22271       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22272       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22273       printf("*** required on your system.\n");
22274       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22275       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22276       printf("*** before re-running configure\n");
22277     }
22278 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22279   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22280            (gtk_minor_version != GTK_MINOR_VERSION) ||
22281            (gtk_micro_version != GTK_MICRO_VERSION))
22282     {
22283       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22284              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22285       printf("*** library (version %d.%d.%d)\n",
22286              gtk_major_version, gtk_minor_version, gtk_micro_version);
22287     }
22288 #endif /* defined (GTK_MAJOR_VERSION) ... */
22289   else
22290     {
22291       if ((gtk_major_version > major) ||
22292         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22293         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22294       {
22295         return 0;
22296        }
22297      else
22298       {
22299         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22300                gtk_major_version, gtk_minor_version, gtk_micro_version);
22301         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22302                major, minor, micro);
22303         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22304         printf("***\n");
22305         printf("*** If you have already installed a sufficiently new version, this error\n");
22306         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22307         printf("*** being found. The easiest way to fix this is to remove the old version\n");
22308         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22309         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22310         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22311         printf("*** so that the correct libraries are found at run-time))\n");
22312       }
22313     }
22314   return 1;
22315 }
22316
22317 _ACEOF
22318 rm -f conftest$ac_exeext
22319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22320   (eval $ac_link) 2>&5
22321   ac_status=$?
22322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22325   (eval $ac_try) 2>&5
22326   ac_status=$?
22327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328   (exit $ac_status); }; }; then
22329   :
22330 else
22331   echo "$as_me: program exited with status $ac_status" >&5
22332 echo "$as_me: failed program was:" >&5
22333 sed 's/^/| /' conftest.$ac_ext >&5
22334
22335 ( exit $ac_status )
22336 no_gtk=yes
22337 fi
22338 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22339 fi
22340        CFLAGS="$ac_save_CFLAGS"
22341        LIBS="$ac_save_LIBS"
22342      fi
22343   fi
22344   if test "x$no_gtk" = x ; then
22345      echo "$as_me:$LINENO: result: yes" >&5
22346 echo "${ECHO_T}yes" >&6
22347      wx_cv_lib_gtk=1.2.7
22348   else
22349      echo "$as_me:$LINENO: result: no" >&5
22350 echo "${ECHO_T}no" >&6
22351      if test "$GTK_CONFIG" = "no" ; then
22352        echo "*** The gtk-config script installed by GTK could not be found"
22353        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22354        echo "*** your path, or set the GTK_CONFIG environment variable to the"
22355        echo "*** full path to gtk-config."
22356      else
22357        if test -f conf.gtktest ; then
22358         :
22359        else
22360           echo "*** Could not run GTK test program, checking why..."
22361           CFLAGS="$CFLAGS $GTK_CFLAGS"
22362           LIBS="$LIBS $GTK_LIBS"
22363           cat >conftest.$ac_ext <<_ACEOF
22364 /* confdefs.h.  */
22365 _ACEOF
22366 cat confdefs.h >>conftest.$ac_ext
22367 cat >>conftest.$ac_ext <<_ACEOF
22368 /* end confdefs.h.  */
22369
22370 #include <gtk/gtk.h>
22371 #include <stdio.h>
22372
22373 int
22374 main ()
22375 {
22376  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22377   ;
22378   return 0;
22379 }
22380 _ACEOF
22381 rm -f conftest.$ac_objext conftest$ac_exeext
22382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22383   (eval $ac_link) 2>conftest.er1
22384   ac_status=$?
22385   grep -v '^ *+' conftest.er1 >conftest.err
22386   rm -f conftest.er1
22387   cat conftest.err >&5
22388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22389   (exit $ac_status); } &&
22390          { ac_try='test -z "$ac_c_werror_flag"
22391                          || test ! -s conftest.err'
22392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22393   (eval $ac_try) 2>&5
22394   ac_status=$?
22395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396   (exit $ac_status); }; } &&
22397          { ac_try='test -s conftest$ac_exeext'
22398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22399   (eval $ac_try) 2>&5
22400   ac_status=$?
22401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402   (exit $ac_status); }; }; then
22403    echo "*** The test program compiled, but did not run. This usually means"
22404           echo "*** that the run-time linker is not finding GTK or finding the wrong"
22405           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22406           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22407           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
22408           echo "*** is required on your system"
22409           echo "***"
22410           echo "*** If you have an old version installed, it is best to remove it, although"
22411           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22412           echo "***"
22413           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22414           echo "*** came with the system with the command"
22415           echo "***"
22416           echo "***    rpm --erase --nodeps gtk gtk-devel"
22417 else
22418   echo "$as_me: failed program was:" >&5
22419 sed 's/^/| /' conftest.$ac_ext >&5
22420
22421  echo "*** The test program failed to compile or link. See the file config.log for the"
22422           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22423           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
22424           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
22425 fi
22426 rm -f conftest.err conftest.$ac_objext \
22427       conftest$ac_exeext conftest.$ac_ext
22428           CFLAGS="$ac_save_CFLAGS"
22429           LIBS="$ac_save_LIBS"
22430        fi
22431      fi
22432      GTK_CFLAGS=""
22433      GTK_LIBS=""
22434      :
22435   fi
22436
22437
22438   rm -f conf.gtktest
22439
22440
22441                     if test -z "$wx_cv_lib_gtk"; then
22442
22443 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22444 if test "${with_gtk_prefix+set}" = set; then
22445   withval="$with_gtk_prefix"
22446   gtk_config_prefix="$withval"
22447 else
22448   gtk_config_prefix=""
22449 fi;
22450
22451 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22452 if test "${with_gtk_exec_prefix+set}" = set; then
22453   withval="$with_gtk_exec_prefix"
22454   gtk_config_exec_prefix="$withval"
22455 else
22456   gtk_config_exec_prefix=""
22457 fi;
22458 # Check whether --enable-gtktest or --disable-gtktest was given.
22459 if test "${enable_gtktest+set}" = set; then
22460   enableval="$enable_gtktest"
22461
22462 else
22463   enable_gtktest=yes
22464 fi;
22465
22466   for module in . $GTK_MODULES
22467   do
22468       case "$module" in
22469          gthread)
22470              gtk_config_args="$gtk_config_args gthread"
22471          ;;
22472       esac
22473   done
22474
22475   if test x$gtk_config_exec_prefix != x ; then
22476      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22477      if test x${GTK_CONFIG+set} != xset ; then
22478         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22479      fi
22480   fi
22481   if test x$gtk_config_prefix != x ; then
22482      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22483      if test x${GTK_CONFIG+set} != xset ; then
22484         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22485      fi
22486   fi
22487
22488   # Extract the first word of "gtk-config", so it can be a program name with args.
22489 set dummy gtk-config; ac_word=$2
22490 echo "$as_me:$LINENO: checking for $ac_word" >&5
22491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22492 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22493   echo $ECHO_N "(cached) $ECHO_C" >&6
22494 else
22495   case $GTK_CONFIG in
22496   [\\/]* | ?:[\\/]*)
22497   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22498   ;;
22499   *)
22500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22501 for as_dir in $PATH
22502 do
22503   IFS=$as_save_IFS
22504   test -z "$as_dir" && as_dir=.
22505   for ac_exec_ext in '' $ac_executable_extensions; do
22506   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22507     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22509     break 2
22510   fi
22511 done
22512 done
22513
22514   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22515   ;;
22516 esac
22517 fi
22518 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22519
22520 if test -n "$GTK_CONFIG"; then
22521   echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22522 echo "${ECHO_T}$GTK_CONFIG" >&6
22523 else
22524   echo "$as_me:$LINENO: result: no" >&5
22525 echo "${ECHO_T}no" >&6
22526 fi
22527
22528   min_gtk_version=1.2.3
22529   echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22530 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22531   no_gtk=""
22532   if test "$GTK_CONFIG" = "no" ; then
22533     no_gtk=yes
22534   else
22535     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22536     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22537     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22538            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22539     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22540            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22541     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22542            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22543     if test "x$enable_gtktest" = "xyes" ; then
22544       ac_save_CFLAGS="$CFLAGS"
22545       ac_save_LIBS="$LIBS"
22546       CFLAGS="$CFLAGS $GTK_CFLAGS"
22547       LIBS="$GTK_LIBS $LIBS"
22548       rm -f conf.gtktest
22549       if test "$cross_compiling" = yes; then
22550   echo $ac_n "cross compiling; assumed OK... $ac_c"
22551 else
22552   cat >conftest.$ac_ext <<_ACEOF
22553 /* confdefs.h.  */
22554 _ACEOF
22555 cat confdefs.h >>conftest.$ac_ext
22556 cat >>conftest.$ac_ext <<_ACEOF
22557 /* end confdefs.h.  */
22558
22559 #include <gtk/gtk.h>
22560 #include <stdio.h>
22561 #include <stdlib.h>
22562
22563 int
22564 main ()
22565 {
22566   int major, minor, micro;
22567   char *tmp_version;
22568
22569   system ("touch conf.gtktest");
22570
22571   /* HP/UX 9 (%@#!) writes to sscanf strings */
22572   tmp_version = g_strdup("$min_gtk_version");
22573   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22574      printf("%s, bad version string\n", "$min_gtk_version");
22575      exit(1);
22576    }
22577
22578   if ((gtk_major_version != $gtk_config_major_version) ||
22579       (gtk_minor_version != $gtk_config_minor_version) ||
22580       (gtk_micro_version != $gtk_config_micro_version))
22581     {
22582       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22583              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22584              gtk_major_version, gtk_minor_version, gtk_micro_version);
22585       printf ("*** was found! If gtk-config was correct, then it is best\n");
22586       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22587       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22588       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22589       printf("*** required on your system.\n");
22590       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22591       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22592       printf("*** before re-running configure\n");
22593     }
22594 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22595   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22596            (gtk_minor_version != GTK_MINOR_VERSION) ||
22597            (gtk_micro_version != GTK_MICRO_VERSION))
22598     {
22599       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22600              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22601       printf("*** library (version %d.%d.%d)\n",
22602              gtk_major_version, gtk_minor_version, gtk_micro_version);
22603     }
22604 #endif /* defined (GTK_MAJOR_VERSION) ... */
22605   else
22606     {
22607       if ((gtk_major_version > major) ||
22608         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22609         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22610       {
22611         return 0;
22612        }
22613      else
22614       {
22615         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22616                gtk_major_version, gtk_minor_version, gtk_micro_version);
22617         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22618                major, minor, micro);
22619         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22620         printf("***\n");
22621         printf("*** If you have already installed a sufficiently new version, this error\n");
22622         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22623         printf("*** being found. The easiest way to fix this is to remove the old version\n");
22624         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22625         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22626         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22627         printf("*** so that the correct libraries are found at run-time))\n");
22628       }
22629     }
22630   return 1;
22631 }
22632
22633 _ACEOF
22634 rm -f conftest$ac_exeext
22635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22636   (eval $ac_link) 2>&5
22637   ac_status=$?
22638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22641   (eval $ac_try) 2>&5
22642   ac_status=$?
22643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644   (exit $ac_status); }; }; then
22645   :
22646 else
22647   echo "$as_me: program exited with status $ac_status" >&5
22648 echo "$as_me: failed program was:" >&5
22649 sed 's/^/| /' conftest.$ac_ext >&5
22650
22651 ( exit $ac_status )
22652 no_gtk=yes
22653 fi
22654 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22655 fi
22656        CFLAGS="$ac_save_CFLAGS"
22657        LIBS="$ac_save_LIBS"
22658      fi
22659   fi
22660   if test "x$no_gtk" = x ; then
22661      echo "$as_me:$LINENO: result: yes" >&5
22662 echo "${ECHO_T}yes" >&6
22663      wx_cv_lib_gtk=1.2.3
22664   else
22665      echo "$as_me:$LINENO: result: no" >&5
22666 echo "${ECHO_T}no" >&6
22667      if test "$GTK_CONFIG" = "no" ; then
22668        echo "*** The gtk-config script installed by GTK could not be found"
22669        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22670        echo "*** your path, or set the GTK_CONFIG environment variable to the"
22671        echo "*** full path to gtk-config."
22672      else
22673        if test -f conf.gtktest ; then
22674         :
22675        else
22676           echo "*** Could not run GTK test program, checking why..."
22677           CFLAGS="$CFLAGS $GTK_CFLAGS"
22678           LIBS="$LIBS $GTK_LIBS"
22679           cat >conftest.$ac_ext <<_ACEOF
22680 /* confdefs.h.  */
22681 _ACEOF
22682 cat confdefs.h >>conftest.$ac_ext
22683 cat >>conftest.$ac_ext <<_ACEOF
22684 /* end confdefs.h.  */
22685
22686 #include <gtk/gtk.h>
22687 #include <stdio.h>
22688
22689 int
22690 main ()
22691 {
22692  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22693   ;
22694   return 0;
22695 }
22696 _ACEOF
22697 rm -f conftest.$ac_objext conftest$ac_exeext
22698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22699   (eval $ac_link) 2>conftest.er1
22700   ac_status=$?
22701   grep -v '^ *+' conftest.er1 >conftest.err
22702   rm -f conftest.er1
22703   cat conftest.err >&5
22704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22705   (exit $ac_status); } &&
22706          { ac_try='test -z "$ac_c_werror_flag"
22707                          || test ! -s conftest.err'
22708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22709   (eval $ac_try) 2>&5
22710   ac_status=$?
22711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22712   (exit $ac_status); }; } &&
22713          { ac_try='test -s conftest$ac_exeext'
22714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22715   (eval $ac_try) 2>&5
22716   ac_status=$?
22717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22718   (exit $ac_status); }; }; then
22719    echo "*** The test program compiled, but did not run. This usually means"
22720           echo "*** that the run-time linker is not finding GTK or finding the wrong"
22721           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22722           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22723           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
22724           echo "*** is required on your system"
22725           echo "***"
22726           echo "*** If you have an old version installed, it is best to remove it, although"
22727           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22728           echo "***"
22729           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22730           echo "*** came with the system with the command"
22731           echo "***"
22732           echo "***    rpm --erase --nodeps gtk gtk-devel"
22733 else
22734   echo "$as_me: failed program was:" >&5
22735 sed 's/^/| /' conftest.$ac_ext >&5
22736
22737  echo "*** The test program failed to compile or link. See the file config.log for the"
22738           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22739           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
22740           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
22741 fi
22742 rm -f conftest.err conftest.$ac_objext \
22743       conftest$ac_exeext conftest.$ac_ext
22744           CFLAGS="$ac_save_CFLAGS"
22745           LIBS="$ac_save_LIBS"
22746        fi
22747      fi
22748      GTK_CFLAGS=""
22749      GTK_LIBS=""
22750      :
22751   fi
22752
22753
22754   rm -f conf.gtktest
22755
22756                     fi
22757                 fi
22758
22759                 if test -z "$wx_cv_lib_gtk"; then
22760                                         wx_cv_lib_gtk=none
22761                 else
22762                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
22763                     wx_cv_libs_gtk=$GTK_LIBS
22764                 fi
22765
22766
22767 fi
22768
22769
22770                         if test "$gtk_version_cached" = 1; then
22771             echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
22772 echo "${ECHO_T}$wx_cv_lib_gtk" >&6
22773         fi
22774
22775         case "$wx_cv_lib_gtk" in
22776             2.0)    WXGTK20=1
22777                     TOOLKIT_VERSION=2
22778                     ;;
22779             1.2.7)  WXGTK127=1
22780                     WXGTK12=1
22781                     ;;
22782             1.2.3)  WXGTK12=1
22783                     ;;
22784             *)      { { echo "$as_me:$LINENO: error:
22785 Please check that gtk-config is in path, the directory
22786 where GTK+ libraries are installed (returned by
22787 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22788 equivalent variable and GTK+ is version 1.2.3 or above.
22789                             " >&5
22790 echo "$as_me: error:
22791 Please check that gtk-config is in path, the directory
22792 where GTK+ libraries are installed (returned by
22793 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22794 equivalent variable and GTK+ is version 1.2.3 or above.
22795                             " >&2;}
22796    { (exit 1); exit 1; }; }
22797                     ;;
22798         esac
22799
22800         if test "$WXGTK20" = 1; then
22801             if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
22802
22803   succeeded=no
22804
22805   if test -z "$PKG_CONFIG"; then
22806     # Extract the first word of "pkg-config", so it can be a program name with args.
22807 set dummy pkg-config; ac_word=$2
22808 echo "$as_me:$LINENO: checking for $ac_word" >&5
22809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22810 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22811   echo $ECHO_N "(cached) $ECHO_C" >&6
22812 else
22813   case $PKG_CONFIG in
22814   [\\/]* | ?:[\\/]*)
22815   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22816   ;;
22817   *)
22818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22819 for as_dir in $PATH
22820 do
22821   IFS=$as_save_IFS
22822   test -z "$as_dir" && as_dir=.
22823   for ac_exec_ext in '' $ac_executable_extensions; do
22824   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22825     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22827     break 2
22828   fi
22829 done
22830 done
22831
22832   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22833   ;;
22834 esac
22835 fi
22836 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22837
22838 if test -n "$PKG_CONFIG"; then
22839   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22840 echo "${ECHO_T}$PKG_CONFIG" >&6
22841 else
22842   echo "$as_me:$LINENO: result: no" >&5
22843 echo "${ECHO_T}no" >&6
22844 fi
22845
22846   fi
22847
22848   if test "$PKG_CONFIG" = "no" ; then
22849      echo "*** The pkg-config script could not be found. Make sure it is"
22850      echo "*** in your path, or set the PKG_CONFIG environment variable"
22851      echo "*** to the full path to pkg-config."
22852      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22853   else
22854      PKG_CONFIG_MIN_VERSION=0.9.0
22855      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22856         echo "$as_me:$LINENO: checking for pangoft2" >&5
22857 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
22858
22859         if $PKG_CONFIG --exists "pangoft2" ; then
22860             echo "$as_me:$LINENO: result: yes" >&5
22861 echo "${ECHO_T}yes" >&6
22862             succeeded=yes
22863
22864             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22865 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
22866             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
22867             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22868 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
22869
22870             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22871 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
22872             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
22873             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22874 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
22875         else
22876             PANGOFT2_CFLAGS=""
22877             PANGOFT2_LIBS=""
22878             ## If we have a custom action on failure, don't print errors, but
22879             ## do set a variable so people can do so.
22880             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
22881
22882         fi
22883
22884
22885
22886      else
22887         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22888         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22889      fi
22890   fi
22891
22892   if test $succeeded = yes; then
22893
22894                         CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
22895                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
22896
22897   else
22898
22899                         { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22900 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
22901                         wxUSE_PRINTING_ARCHITECTURE="no"
22902
22903
22904   fi
22905
22906             fi
22907         else
22908             if test "$wxUSE_UNICODE" = "yes"; then
22909                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
22910 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
22911                 wxUSE_UNICODE=no
22912             fi
22913         fi
22914
22915                         if test "$USE_DARWIN" != 1; then
22916
22917 for ac_func in poll
22918 do
22919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22920 echo "$as_me:$LINENO: checking for $ac_func" >&5
22921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22922 if eval "test \"\${$as_ac_var+set}\" = set"; then
22923   echo $ECHO_N "(cached) $ECHO_C" >&6
22924 else
22925   cat >conftest.$ac_ext <<_ACEOF
22926 /* confdefs.h.  */
22927 _ACEOF
22928 cat confdefs.h >>conftest.$ac_ext
22929 cat >>conftest.$ac_ext <<_ACEOF
22930 /* end confdefs.h.  */
22931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22932    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22933 #define $ac_func innocuous_$ac_func
22934
22935 /* System header to define __stub macros and hopefully few prototypes,
22936     which can conflict with char $ac_func (); below.
22937     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22938     <limits.h> exists even on freestanding compilers.  */
22939
22940 #ifdef __STDC__
22941 # include <limits.h>
22942 #else
22943 # include <assert.h>
22944 #endif
22945
22946 #undef $ac_func
22947
22948 /* Override any gcc2 internal prototype to avoid an error.  */
22949 #ifdef __cplusplus
22950 extern "C"
22951 {
22952 #endif
22953 /* We use char because int might match the return type of a gcc2
22954    builtin and then its argument prototype would still apply.  */
22955 char $ac_func ();
22956 /* The GNU C library defines this for functions which it implements
22957     to always fail with ENOSYS.  Some functions are actually named
22958     something starting with __ and the normal name is an alias.  */
22959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22960 choke me
22961 #else
22962 char (*f) () = $ac_func;
22963 #endif
22964 #ifdef __cplusplus
22965 }
22966 #endif
22967
22968 int
22969 main ()
22970 {
22971 return f != $ac_func;
22972   ;
22973   return 0;
22974 }
22975 _ACEOF
22976 rm -f conftest.$ac_objext conftest$ac_exeext
22977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22978   (eval $ac_link) 2>conftest.er1
22979   ac_status=$?
22980   grep -v '^ *+' conftest.er1 >conftest.err
22981   rm -f conftest.er1
22982   cat conftest.err >&5
22983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22984   (exit $ac_status); } &&
22985          { ac_try='test -z "$ac_c_werror_flag"
22986                          || test ! -s conftest.err'
22987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22988   (eval $ac_try) 2>&5
22989   ac_status=$?
22990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22991   (exit $ac_status); }; } &&
22992          { ac_try='test -s conftest$ac_exeext'
22993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22994   (eval $ac_try) 2>&5
22995   ac_status=$?
22996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997   (exit $ac_status); }; }; then
22998   eval "$as_ac_var=yes"
22999 else
23000   echo "$as_me: failed program was:" >&5
23001 sed 's/^/| /' conftest.$ac_ext >&5
23002
23003 eval "$as_ac_var=no"
23004 fi
23005 rm -f conftest.err conftest.$ac_objext \
23006       conftest$ac_exeext conftest.$ac_ext
23007 fi
23008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23009 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23010 if test `eval echo '${'$as_ac_var'}'` = yes; then
23011   cat >>confdefs.h <<_ACEOF
23012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23013 _ACEOF
23014
23015 fi
23016 done
23017
23018         fi
23019
23020         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
23021         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
23022
23023         AFMINSTALL=afminstall
23024         TOOLKIT=GTK
23025         GUIDIST=GTK_DIST
23026
23027                 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
23028 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
23029 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
23030   echo $ECHO_N "(cached) $ECHO_C" >&6
23031 else
23032   ac_check_lib_save_LIBS=$LIBS
23033 LIBS="-lgdk  $LIBS"
23034 cat >conftest.$ac_ext <<_ACEOF
23035 /* confdefs.h.  */
23036 _ACEOF
23037 cat confdefs.h >>conftest.$ac_ext
23038 cat >>conftest.$ac_ext <<_ACEOF
23039 /* end confdefs.h.  */
23040
23041 /* Override any gcc2 internal prototype to avoid an error.  */
23042 #ifdef __cplusplus
23043 extern "C"
23044 #endif
23045 /* We use char because int might match the return type of a gcc2
23046    builtin and then its argument prototype would still apply.  */
23047 char gdk_im_open ();
23048 int
23049 main ()
23050 {
23051 gdk_im_open ();
23052   ;
23053   return 0;
23054 }
23055 _ACEOF
23056 rm -f conftest.$ac_objext conftest$ac_exeext
23057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23058   (eval $ac_link) 2>conftest.er1
23059   ac_status=$?
23060   grep -v '^ *+' conftest.er1 >conftest.err
23061   rm -f conftest.er1
23062   cat conftest.err >&5
23063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064   (exit $ac_status); } &&
23065          { ac_try='test -z "$ac_c_werror_flag"
23066                          || test ! -s conftest.err'
23067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23068   (eval $ac_try) 2>&5
23069   ac_status=$?
23070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071   (exit $ac_status); }; } &&
23072          { ac_try='test -s conftest$ac_exeext'
23073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23074   (eval $ac_try) 2>&5
23075   ac_status=$?
23076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23077   (exit $ac_status); }; }; then
23078   ac_cv_lib_gdk_gdk_im_open=yes
23079 else
23080   echo "$as_me: failed program was:" >&5
23081 sed 's/^/| /' conftest.$ac_ext >&5
23082
23083 ac_cv_lib_gdk_gdk_im_open=no
23084 fi
23085 rm -f conftest.err conftest.$ac_objext \
23086       conftest$ac_exeext conftest.$ac_ext
23087 LIBS=$ac_check_lib_save_LIBS
23088 fi
23089 echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
23090 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
23091 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
23092   cat >>confdefs.h <<\_ACEOF
23093 #define HAVE_XIM 1
23094 _ACEOF
23095
23096 fi
23097
23098
23099
23100                 if test "$wxUSE_GPE" = "yes"; then
23101             echo "$as_me:$LINENO: checking for gpewidget library" >&5
23102 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
23103
23104 ac_find_libraries=
23105 for ac_dir in $SEARCH_LIB /usr/lib;
23106   do
23107     for ac_extension in a so sl dylib; do
23108       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
23109         ac_find_libraries=$ac_dir
23110         break 2
23111       fi
23112     done
23113   done
23114
23115             if test "$ac_find_libraries" != "" ; then
23116
23117   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23118   result=$?
23119   if test $result = 0; then
23120     ac_path_to_link=""
23121   else
23122     ac_path_to_link=" -L$ac_find_libraries"
23123   fi
23124
23125                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
23126                 WXGPE=1
23127                 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23128 echo "${ECHO_T}found at $ac_find_libraries" >&6
23129             else
23130                 echo "$as_me:$LINENO: result: not found" >&5
23131 echo "${ECHO_T}not found" >&6
23132             fi
23133
23134                                                                                                                     fi
23135     fi
23136
23137     if test "$wxUSE_MGL" = 1; then
23138        echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
23139 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
23140         if test "x$MGL_ROOT" = x ; then
23141             echo "$as_me:$LINENO: result: not found" >&5
23142 echo "${ECHO_T}not found" >&6
23143             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
23144 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
23145    { (exit 1); exit 1; }; }
23146         else
23147             echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
23148 echo "${ECHO_T}$MGL_ROOT" >&6
23149         fi
23150
23151         echo "$as_me:$LINENO: checking for libmgl location" >&5
23152 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
23153                                 case "${host}" in
23154             *-*-linux* )
23155                                           if test "x$wxUSE_SHARED" = xyes ; then
23156                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
23157               else
23158                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
23159               fi
23160               ;;
23161             *-pc-msdosdjgpp )
23162               mgl_os_candidates="dos32/dj2"
23163               ;;
23164             *)
23165               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
23166 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
23167    { (exit 1); exit 1; }; }
23168         esac
23169
23170         mgl_lib_type=""
23171         mgl_os=""
23172
23173         for mgl_os_i in $mgl_os_candidates ; do
23174             if test "x$mgl_os" = x ; then
23175                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
23176                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
23177                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
23178                         mgl_lib_type=debug
23179                         mgl_os=$mgl_os_i
23180                     fi
23181                 fi
23182                 if test "x$mgl_lib_type" = x ; then
23183                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
23184                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
23185                         mgl_lib_type=release
23186                         mgl_os=$mgl_os_i
23187                     fi
23188                 fi
23189             fi
23190         done
23191
23192         if test "x$mgl_os" = x ; then
23193             echo "$as_me:$LINENO: result: not found" >&5
23194 echo "${ECHO_T}not found" >&6
23195             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
23196 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
23197    { (exit 1); exit 1; }; }
23198         fi
23199         echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
23200 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
23201
23202         wxUSE_UNIVERSAL="yes"
23203
23204         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
23205         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
23206
23207         AFMINSTALL=afminstall
23208         TOOLKIT=MGL
23209         GUIDIST=MGL_DIST
23210     fi
23211
23212     if test "$wxUSE_MICROWIN" = 1; then
23213         echo "$as_me:$LINENO: checking for MicroWindows" >&5
23214 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
23215         if test "x$MICROWINDOWS" = x ; then
23216             echo "$as_me:$LINENO: result: not found" >&5
23217 echo "${ECHO_T}not found" >&6
23218             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
23219 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
23220    { (exit 1); exit 1; }; }
23221         else
23222             echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
23223 echo "${ECHO_T}$MICROWINDOWS" >&6
23224         fi
23225
23226         if test -f $MICROWINDOWS/lib/libmwin.a; then
23227             echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
23228 echo "${ECHO_T}MicroWindows' libraries found." >&6
23229         else
23230             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
23231 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
23232    { (exit 1); exit 1; }; }
23233         fi
23234
23235         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
23236         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
23237
23238         wxUSE_UNIVERSAL="yes"
23239
23240         AFMINSTALL=afminstall
23241         TOOLKIT=MICROWIN
23242         GUIDIST=MICROWIN_DIST
23243
23244         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
23245     fi
23246
23247     if test "$wxUSE_X11" = 1; then
23248                         echo "$as_me:$LINENO: checking for X" >&5
23249 echo $ECHO_N "checking for X... $ECHO_C" >&6
23250
23251
23252 # Check whether --with-x or --without-x was given.
23253 if test "${with_x+set}" = set; then
23254   withval="$with_x"
23255
23256 fi;
23257 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23258 if test "x$with_x" = xno; then
23259   # The user explicitly disabled X.
23260   have_x=disabled
23261 else
23262   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23263     # Both variables are already set.
23264     have_x=yes
23265   else
23266     if test "${ac_cv_have_x+set}" = set; then
23267   echo $ECHO_N "(cached) $ECHO_C" >&6
23268 else
23269   # One or both of the vars are not set, and there is no cached value.
23270 ac_x_includes=no ac_x_libraries=no
23271 rm -fr conftest.dir
23272 if mkdir conftest.dir; then
23273   cd conftest.dir
23274   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
23275   cat >Imakefile <<'_ACEOF'
23276 acfindx:
23277         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
23278 _ACEOF
23279   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
23280     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23281     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23282     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23283     for ac_extension in a so sl; do
23284       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
23285          test -f $ac_im_libdir/libX11.$ac_extension; then
23286         ac_im_usrlibdir=$ac_im_libdir; break
23287       fi
23288     done
23289     # Screen out bogus values from the imake configuration.  They are
23290     # bogus both because they are the default anyway, and because
23291     # using them would break gcc on systems where it needs fixed includes.
23292     case $ac_im_incroot in
23293         /usr/include) ;;
23294         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23295     esac
23296     case $ac_im_usrlibdir in
23297         /usr/lib | /lib) ;;
23298         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23299     esac
23300   fi
23301   cd ..
23302   rm -fr conftest.dir
23303 fi
23304
23305 # Standard set of common directories for X headers.
23306 # Check X11 before X11Rn because it is often a symlink to the current release.
23307 ac_x_header_dirs='
23308 /usr/X11/include
23309 /usr/X11R6/include
23310 /usr/X11R5/include
23311 /usr/X11R4/include
23312
23313 /usr/include/X11
23314 /usr/include/X11R6
23315 /usr/include/X11R5
23316 /usr/include/X11R4
23317
23318 /usr/local/X11/include
23319 /usr/local/X11R6/include
23320 /usr/local/X11R5/include
23321 /usr/local/X11R4/include
23322
23323 /usr/local/include/X11
23324 /usr/local/include/X11R6
23325 /usr/local/include/X11R5
23326 /usr/local/include/X11R4
23327
23328 /usr/X386/include
23329 /usr/x386/include
23330 /usr/XFree86/include/X11
23331
23332 /usr/include
23333 /usr/local/include
23334 /usr/unsupported/include
23335 /usr/athena/include
23336 /usr/local/x11r5/include
23337 /usr/lpp/Xamples/include
23338
23339 /usr/openwin/include
23340 /usr/openwin/share/include'
23341
23342 if test "$ac_x_includes" = no; then
23343   # Guess where to find include files, by looking for Intrinsic.h.
23344   # First, try using that file with no special directory specified.
23345   cat >conftest.$ac_ext <<_ACEOF
23346 /* confdefs.h.  */
23347 _ACEOF
23348 cat confdefs.h >>conftest.$ac_ext
23349 cat >>conftest.$ac_ext <<_ACEOF
23350 /* end confdefs.h.  */
23351 #include <X11/Intrinsic.h>
23352 _ACEOF
23353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23354   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23355   ac_status=$?
23356   grep -v '^ *+' conftest.er1 >conftest.err
23357   rm -f conftest.er1
23358   cat conftest.err >&5
23359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23360   (exit $ac_status); } >/dev/null; then
23361   if test -s conftest.err; then
23362     ac_cpp_err=$ac_c_preproc_warn_flag
23363     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23364   else
23365     ac_cpp_err=
23366   fi
23367 else
23368   ac_cpp_err=yes
23369 fi
23370 if test -z "$ac_cpp_err"; then
23371   # We can compile using X headers with no special include directory.
23372 ac_x_includes=
23373 else
23374   echo "$as_me: failed program was:" >&5
23375 sed 's/^/| /' conftest.$ac_ext >&5
23376
23377   for ac_dir in $ac_x_header_dirs; do
23378   if test -r "$ac_dir/X11/Intrinsic.h"; then
23379     ac_x_includes=$ac_dir
23380     break
23381   fi
23382 done
23383 fi
23384 rm -f conftest.err conftest.$ac_ext
23385 fi # $ac_x_includes = no
23386
23387 if test "$ac_x_libraries" = no; then
23388   # Check for the libraries.
23389   # See if we find them without any special options.
23390   # Don't add to $LIBS permanently.
23391   ac_save_LIBS=$LIBS
23392   LIBS="-lXt $LIBS"
23393   cat >conftest.$ac_ext <<_ACEOF
23394 /* confdefs.h.  */
23395 _ACEOF
23396 cat confdefs.h >>conftest.$ac_ext
23397 cat >>conftest.$ac_ext <<_ACEOF
23398 /* end confdefs.h.  */
23399 #include <X11/Intrinsic.h>
23400 int
23401 main ()
23402 {
23403 XtMalloc (0)
23404   ;
23405   return 0;
23406 }
23407 _ACEOF
23408 rm -f conftest.$ac_objext conftest$ac_exeext
23409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23410   (eval $ac_link) 2>conftest.er1
23411   ac_status=$?
23412   grep -v '^ *+' conftest.er1 >conftest.err
23413   rm -f conftest.er1
23414   cat conftest.err >&5
23415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416   (exit $ac_status); } &&
23417          { ac_try='test -z "$ac_c_werror_flag"
23418                          || test ! -s conftest.err'
23419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23420   (eval $ac_try) 2>&5
23421   ac_status=$?
23422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423   (exit $ac_status); }; } &&
23424          { ac_try='test -s conftest$ac_exeext'
23425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23426   (eval $ac_try) 2>&5
23427   ac_status=$?
23428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23429   (exit $ac_status); }; }; then
23430   LIBS=$ac_save_LIBS
23431 # We can link X programs with no special library path.
23432 ac_x_libraries=
23433 else
23434   echo "$as_me: failed program was:" >&5
23435 sed 's/^/| /' conftest.$ac_ext >&5
23436
23437 LIBS=$ac_save_LIBS
23438 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23439 do
23440   # Don't even attempt the hair of trying to link an X program!
23441   for ac_extension in a so sl; do
23442     if test -r $ac_dir/libXt.$ac_extension; then
23443       ac_x_libraries=$ac_dir
23444       break 2
23445     fi
23446   done
23447 done
23448 fi
23449 rm -f conftest.err conftest.$ac_objext \
23450       conftest$ac_exeext conftest.$ac_ext
23451 fi # $ac_x_libraries = no
23452
23453 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
23454   # Didn't find X anywhere.  Cache the known absence of X.
23455   ac_cv_have_x="have_x=no"
23456 else
23457   # Record where we found X for the cache.
23458   ac_cv_have_x="have_x=yes \
23459                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
23460 fi
23461 fi
23462
23463   fi
23464   eval "$ac_cv_have_x"
23465 fi # $with_x != no
23466
23467 if test "$have_x" != yes; then
23468   echo "$as_me:$LINENO: result: $have_x" >&5
23469 echo "${ECHO_T}$have_x" >&6
23470   no_x=yes
23471 else
23472   # If each of the values was on the command line, it overrides each guess.
23473   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23474   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23475   # Update the cache value to reflect the command line values.
23476   ac_cv_have_x="have_x=yes \
23477                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
23478   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
23479 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
23480 fi
23481
23482 if test "$no_x" = yes; then
23483   # Not all programs may use this symbol, but it does not hurt to define it.
23484
23485 cat >>confdefs.h <<\_ACEOF
23486 #define X_DISPLAY_MISSING 1
23487 _ACEOF
23488
23489   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23490 else
23491   if test -n "$x_includes"; then
23492     X_CFLAGS="$X_CFLAGS -I$x_includes"
23493   fi
23494
23495   # It would also be nice to do this for all -L options, not just this one.
23496   if test -n "$x_libraries"; then
23497     X_LIBS="$X_LIBS -L$x_libraries"
23498     # For Solaris; some versions of Sun CC require a space after -R and
23499     # others require no space.  Words are not sufficient . . . .
23500     case `(uname -sr) 2>/dev/null` in
23501     "SunOS 5"*)
23502       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23503 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
23504       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23505       cat >conftest.$ac_ext <<_ACEOF
23506 /* confdefs.h.  */
23507 _ACEOF
23508 cat confdefs.h >>conftest.$ac_ext
23509 cat >>conftest.$ac_ext <<_ACEOF
23510 /* end confdefs.h.  */
23511
23512 int
23513 main ()
23514 {
23515
23516   ;
23517   return 0;
23518 }
23519 _ACEOF
23520 rm -f conftest.$ac_objext conftest$ac_exeext
23521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23522   (eval $ac_link) 2>conftest.er1
23523   ac_status=$?
23524   grep -v '^ *+' conftest.er1 >conftest.err
23525   rm -f conftest.er1
23526   cat conftest.err >&5
23527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528   (exit $ac_status); } &&
23529          { ac_try='test -z "$ac_c_werror_flag"
23530                          || test ! -s conftest.err'
23531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23532   (eval $ac_try) 2>&5
23533   ac_status=$?
23534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23535   (exit $ac_status); }; } &&
23536          { ac_try='test -s conftest$ac_exeext'
23537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23538   (eval $ac_try) 2>&5
23539   ac_status=$?
23540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541   (exit $ac_status); }; }; then
23542   ac_R_nospace=yes
23543 else
23544   echo "$as_me: failed program was:" >&5
23545 sed 's/^/| /' conftest.$ac_ext >&5
23546
23547 ac_R_nospace=no
23548 fi
23549 rm -f conftest.err conftest.$ac_objext \
23550       conftest$ac_exeext conftest.$ac_ext
23551       if test $ac_R_nospace = yes; then
23552         echo "$as_me:$LINENO: result: no" >&5
23553 echo "${ECHO_T}no" >&6
23554         X_LIBS="$X_LIBS -R$x_libraries"
23555       else
23556         LIBS="$ac_xsave_LIBS -R $x_libraries"
23557         cat >conftest.$ac_ext <<_ACEOF
23558 /* confdefs.h.  */
23559 _ACEOF
23560 cat confdefs.h >>conftest.$ac_ext
23561 cat >>conftest.$ac_ext <<_ACEOF
23562 /* end confdefs.h.  */
23563
23564 int
23565 main ()
23566 {
23567
23568   ;
23569   return 0;
23570 }
23571 _ACEOF
23572 rm -f conftest.$ac_objext conftest$ac_exeext
23573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23574   (eval $ac_link) 2>conftest.er1
23575   ac_status=$?
23576   grep -v '^ *+' conftest.er1 >conftest.err
23577   rm -f conftest.er1
23578   cat conftest.err >&5
23579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23580   (exit $ac_status); } &&
23581          { ac_try='test -z "$ac_c_werror_flag"
23582                          || test ! -s conftest.err'
23583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23584   (eval $ac_try) 2>&5
23585   ac_status=$?
23586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23587   (exit $ac_status); }; } &&
23588          { ac_try='test -s conftest$ac_exeext'
23589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23590   (eval $ac_try) 2>&5
23591   ac_status=$?
23592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23593   (exit $ac_status); }; }; then
23594   ac_R_space=yes
23595 else
23596   echo "$as_me: failed program was:" >&5
23597 sed 's/^/| /' conftest.$ac_ext >&5
23598
23599 ac_R_space=no
23600 fi
23601 rm -f conftest.err conftest.$ac_objext \
23602       conftest$ac_exeext conftest.$ac_ext
23603         if test $ac_R_space = yes; then
23604           echo "$as_me:$LINENO: result: yes" >&5
23605 echo "${ECHO_T}yes" >&6
23606           X_LIBS="$X_LIBS -R $x_libraries"
23607         else
23608           echo "$as_me:$LINENO: result: neither works" >&5
23609 echo "${ECHO_T}neither works" >&6
23610         fi
23611       fi
23612       LIBS=$ac_xsave_LIBS
23613     esac
23614   fi
23615
23616   # Check for system-dependent libraries X programs must link with.
23617   # Do this before checking for the system-independent R6 libraries
23618   # (-lICE), since we may need -lsocket or whatever for X linking.
23619
23620   if test "$ISC" = yes; then
23621     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23622   else
23623     # Martyn Johnson says this is needed for Ultrix, if the X
23624     # libraries were built with DECnet support.  And Karl Berry says
23625     # the Alpha needs dnet_stub (dnet does not exist).
23626     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23627     cat >conftest.$ac_ext <<_ACEOF
23628 /* confdefs.h.  */
23629 _ACEOF
23630 cat confdefs.h >>conftest.$ac_ext
23631 cat >>conftest.$ac_ext <<_ACEOF
23632 /* end confdefs.h.  */
23633
23634 /* Override any gcc2 internal prototype to avoid an error.  */
23635 #ifdef __cplusplus
23636 extern "C"
23637 #endif
23638 /* We use char because int might match the return type of a gcc2
23639    builtin and then its argument prototype would still apply.  */
23640 char XOpenDisplay ();
23641 int
23642 main ()
23643 {
23644 XOpenDisplay ();
23645   ;
23646   return 0;
23647 }
23648 _ACEOF
23649 rm -f conftest.$ac_objext conftest$ac_exeext
23650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23651   (eval $ac_link) 2>conftest.er1
23652   ac_status=$?
23653   grep -v '^ *+' conftest.er1 >conftest.err
23654   rm -f conftest.er1
23655   cat conftest.err >&5
23656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23657   (exit $ac_status); } &&
23658          { ac_try='test -z "$ac_c_werror_flag"
23659                          || test ! -s conftest.err'
23660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23661   (eval $ac_try) 2>&5
23662   ac_status=$?
23663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23664   (exit $ac_status); }; } &&
23665          { ac_try='test -s conftest$ac_exeext'
23666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23667   (eval $ac_try) 2>&5
23668   ac_status=$?
23669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23670   (exit $ac_status); }; }; then
23671   :
23672 else
23673   echo "$as_me: failed program was:" >&5
23674 sed 's/^/| /' conftest.$ac_ext >&5
23675
23676 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23677 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
23678 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23679   echo $ECHO_N "(cached) $ECHO_C" >&6
23680 else
23681   ac_check_lib_save_LIBS=$LIBS
23682 LIBS="-ldnet  $LIBS"
23683 cat >conftest.$ac_ext <<_ACEOF
23684 /* confdefs.h.  */
23685 _ACEOF
23686 cat confdefs.h >>conftest.$ac_ext
23687 cat >>conftest.$ac_ext <<_ACEOF
23688 /* end confdefs.h.  */
23689
23690 /* Override any gcc2 internal prototype to avoid an error.  */
23691 #ifdef __cplusplus
23692 extern "C"
23693 #endif
23694 /* We use char because int might match the return type of a gcc2
23695    builtin and then its argument prototype would still apply.  */
23696 char dnet_ntoa ();
23697 int
23698 main ()
23699 {
23700 dnet_ntoa ();
23701   ;
23702   return 0;
23703 }
23704 _ACEOF
23705 rm -f conftest.$ac_objext conftest$ac_exeext
23706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23707   (eval $ac_link) 2>conftest.er1
23708   ac_status=$?
23709   grep -v '^ *+' conftest.er1 >conftest.err
23710   rm -f conftest.er1
23711   cat conftest.err >&5
23712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23713   (exit $ac_status); } &&
23714          { ac_try='test -z "$ac_c_werror_flag"
23715                          || test ! -s conftest.err'
23716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23717   (eval $ac_try) 2>&5
23718   ac_status=$?
23719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23720   (exit $ac_status); }; } &&
23721          { ac_try='test -s conftest$ac_exeext'
23722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23723   (eval $ac_try) 2>&5
23724   ac_status=$?
23725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726   (exit $ac_status); }; }; then
23727   ac_cv_lib_dnet_dnet_ntoa=yes
23728 else
23729   echo "$as_me: failed program was:" >&5
23730 sed 's/^/| /' conftest.$ac_ext >&5
23731
23732 ac_cv_lib_dnet_dnet_ntoa=no
23733 fi
23734 rm -f conftest.err conftest.$ac_objext \
23735       conftest$ac_exeext conftest.$ac_ext
23736 LIBS=$ac_check_lib_save_LIBS
23737 fi
23738 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23739 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
23740 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
23741   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23742 fi
23743
23744     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23745       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23746 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23747 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23748   echo $ECHO_N "(cached) $ECHO_C" >&6
23749 else
23750   ac_check_lib_save_LIBS=$LIBS
23751 LIBS="-ldnet_stub  $LIBS"
23752 cat >conftest.$ac_ext <<_ACEOF
23753 /* confdefs.h.  */
23754 _ACEOF
23755 cat confdefs.h >>conftest.$ac_ext
23756 cat >>conftest.$ac_ext <<_ACEOF
23757 /* end confdefs.h.  */
23758
23759 /* Override any gcc2 internal prototype to avoid an error.  */
23760 #ifdef __cplusplus
23761 extern "C"
23762 #endif
23763 /* We use char because int might match the return type of a gcc2
23764    builtin and then its argument prototype would still apply.  */
23765 char dnet_ntoa ();
23766 int
23767 main ()
23768 {
23769 dnet_ntoa ();
23770   ;
23771   return 0;
23772 }
23773 _ACEOF
23774 rm -f conftest.$ac_objext conftest$ac_exeext
23775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23776   (eval $ac_link) 2>conftest.er1
23777   ac_status=$?
23778   grep -v '^ *+' conftest.er1 >conftest.err
23779   rm -f conftest.er1
23780   cat conftest.err >&5
23781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23782   (exit $ac_status); } &&
23783          { ac_try='test -z "$ac_c_werror_flag"
23784                          || test ! -s conftest.err'
23785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23786   (eval $ac_try) 2>&5
23787   ac_status=$?
23788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23789   (exit $ac_status); }; } &&
23790          { ac_try='test -s conftest$ac_exeext'
23791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23792   (eval $ac_try) 2>&5
23793   ac_status=$?
23794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23795   (exit $ac_status); }; }; then
23796   ac_cv_lib_dnet_stub_dnet_ntoa=yes
23797 else
23798   echo "$as_me: failed program was:" >&5
23799 sed 's/^/| /' conftest.$ac_ext >&5
23800
23801 ac_cv_lib_dnet_stub_dnet_ntoa=no
23802 fi
23803 rm -f conftest.err conftest.$ac_objext \
23804       conftest$ac_exeext conftest.$ac_ext
23805 LIBS=$ac_check_lib_save_LIBS
23806 fi
23807 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23808 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23809 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
23810   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23811 fi
23812
23813     fi
23814 fi
23815 rm -f conftest.err conftest.$ac_objext \
23816       conftest$ac_exeext conftest.$ac_ext
23817     LIBS="$ac_xsave_LIBS"
23818
23819     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23820     # to get the SysV transport functions.
23821     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23822     # needs -lnsl.
23823     # The nsl library prevents programs from opening the X display
23824     # on Irix 5.2, according to T.E. Dickey.
23825     # The functions gethostbyname, getservbyname, and inet_addr are
23826     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23827     echo "$as_me:$LINENO: checking for gethostbyname" >&5
23828 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23829 if test "${ac_cv_func_gethostbyname+set}" = set; then
23830   echo $ECHO_N "(cached) $ECHO_C" >&6
23831 else
23832   cat >conftest.$ac_ext <<_ACEOF
23833 /* confdefs.h.  */
23834 _ACEOF
23835 cat confdefs.h >>conftest.$ac_ext
23836 cat >>conftest.$ac_ext <<_ACEOF
23837 /* end confdefs.h.  */
23838 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23839    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23840 #define gethostbyname innocuous_gethostbyname
23841
23842 /* System header to define __stub macros and hopefully few prototypes,
23843     which can conflict with char gethostbyname (); below.
23844     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23845     <limits.h> exists even on freestanding compilers.  */
23846
23847 #ifdef __STDC__
23848 # include <limits.h>
23849 #else
23850 # include <assert.h>
23851 #endif
23852
23853 #undef gethostbyname
23854
23855 /* Override any gcc2 internal prototype to avoid an error.  */
23856 #ifdef __cplusplus
23857 extern "C"
23858 {
23859 #endif
23860 /* We use char because int might match the return type of a gcc2
23861    builtin and then its argument prototype would still apply.  */
23862 char gethostbyname ();
23863 /* The GNU C library defines this for functions which it implements
23864     to always fail with ENOSYS.  Some functions are actually named
23865     something starting with __ and the normal name is an alias.  */
23866 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23867 choke me
23868 #else
23869 char (*f) () = gethostbyname;
23870 #endif
23871 #ifdef __cplusplus
23872 }
23873 #endif
23874
23875 int
23876 main ()
23877 {
23878 return f != gethostbyname;
23879   ;
23880   return 0;
23881 }
23882 _ACEOF
23883 rm -f conftest.$ac_objext conftest$ac_exeext
23884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23885   (eval $ac_link) 2>conftest.er1
23886   ac_status=$?
23887   grep -v '^ *+' conftest.er1 >conftest.err
23888   rm -f conftest.er1
23889   cat conftest.err >&5
23890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891   (exit $ac_status); } &&
23892          { ac_try='test -z "$ac_c_werror_flag"
23893                          || test ! -s conftest.err'
23894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23895   (eval $ac_try) 2>&5
23896   ac_status=$?
23897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23898   (exit $ac_status); }; } &&
23899          { ac_try='test -s conftest$ac_exeext'
23900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23901   (eval $ac_try) 2>&5
23902   ac_status=$?
23903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23904   (exit $ac_status); }; }; then
23905   ac_cv_func_gethostbyname=yes
23906 else
23907   echo "$as_me: failed program was:" >&5
23908 sed 's/^/| /' conftest.$ac_ext >&5
23909
23910 ac_cv_func_gethostbyname=no
23911 fi
23912 rm -f conftest.err conftest.$ac_objext \
23913       conftest$ac_exeext conftest.$ac_ext
23914 fi
23915 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23916 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
23917
23918     if test $ac_cv_func_gethostbyname = no; then
23919       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23920 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23921 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23922   echo $ECHO_N "(cached) $ECHO_C" >&6
23923 else
23924   ac_check_lib_save_LIBS=$LIBS
23925 LIBS="-lnsl  $LIBS"
23926 cat >conftest.$ac_ext <<_ACEOF
23927 /* confdefs.h.  */
23928 _ACEOF
23929 cat confdefs.h >>conftest.$ac_ext
23930 cat >>conftest.$ac_ext <<_ACEOF
23931 /* end confdefs.h.  */
23932
23933 /* Override any gcc2 internal prototype to avoid an error.  */
23934 #ifdef __cplusplus
23935 extern "C"
23936 #endif
23937 /* We use char because int might match the return type of a gcc2
23938    builtin and then its argument prototype would still apply.  */
23939 char gethostbyname ();
23940 int
23941 main ()
23942 {
23943 gethostbyname ();
23944   ;
23945   return 0;
23946 }
23947 _ACEOF
23948 rm -f conftest.$ac_objext conftest$ac_exeext
23949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23950   (eval $ac_link) 2>conftest.er1
23951   ac_status=$?
23952   grep -v '^ *+' conftest.er1 >conftest.err
23953   rm -f conftest.er1
23954   cat conftest.err >&5
23955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23956   (exit $ac_status); } &&
23957          { ac_try='test -z "$ac_c_werror_flag"
23958                          || test ! -s conftest.err'
23959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23960   (eval $ac_try) 2>&5
23961   ac_status=$?
23962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963   (exit $ac_status); }; } &&
23964          { ac_try='test -s conftest$ac_exeext'
23965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23966   (eval $ac_try) 2>&5
23967   ac_status=$?
23968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969   (exit $ac_status); }; }; then
23970   ac_cv_lib_nsl_gethostbyname=yes
23971 else
23972   echo "$as_me: failed program was:" >&5
23973 sed 's/^/| /' conftest.$ac_ext >&5
23974
23975 ac_cv_lib_nsl_gethostbyname=no
23976 fi
23977 rm -f conftest.err conftest.$ac_objext \
23978       conftest$ac_exeext conftest.$ac_ext
23979 LIBS=$ac_check_lib_save_LIBS
23980 fi
23981 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23982 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23983 if test $ac_cv_lib_nsl_gethostbyname = yes; then
23984   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
23985 fi
23986
23987       if test $ac_cv_lib_nsl_gethostbyname = no; then
23988         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
23989 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23990 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23991   echo $ECHO_N "(cached) $ECHO_C" >&6
23992 else
23993   ac_check_lib_save_LIBS=$LIBS
23994 LIBS="-lbsd  $LIBS"
23995 cat >conftest.$ac_ext <<_ACEOF
23996 /* confdefs.h.  */
23997 _ACEOF
23998 cat confdefs.h >>conftest.$ac_ext
23999 cat >>conftest.$ac_ext <<_ACEOF
24000 /* end confdefs.h.  */
24001
24002 /* Override any gcc2 internal prototype to avoid an error.  */
24003 #ifdef __cplusplus
24004 extern "C"
24005 #endif
24006 /* We use char because int might match the return type of a gcc2
24007    builtin and then its argument prototype would still apply.  */
24008 char gethostbyname ();
24009 int
24010 main ()
24011 {
24012 gethostbyname ();
24013   ;
24014   return 0;
24015 }
24016 _ACEOF
24017 rm -f conftest.$ac_objext conftest$ac_exeext
24018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24019   (eval $ac_link) 2>conftest.er1
24020   ac_status=$?
24021   grep -v '^ *+' conftest.er1 >conftest.err
24022   rm -f conftest.er1
24023   cat conftest.err >&5
24024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24025   (exit $ac_status); } &&
24026          { ac_try='test -z "$ac_c_werror_flag"
24027                          || test ! -s conftest.err'
24028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24029   (eval $ac_try) 2>&5
24030   ac_status=$?
24031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24032   (exit $ac_status); }; } &&
24033          { ac_try='test -s conftest$ac_exeext'
24034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24035   (eval $ac_try) 2>&5
24036   ac_status=$?
24037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24038   (exit $ac_status); }; }; then
24039   ac_cv_lib_bsd_gethostbyname=yes
24040 else
24041   echo "$as_me: failed program was:" >&5
24042 sed 's/^/| /' conftest.$ac_ext >&5
24043
24044 ac_cv_lib_bsd_gethostbyname=no
24045 fi
24046 rm -f conftest.err conftest.$ac_objext \
24047       conftest$ac_exeext conftest.$ac_ext
24048 LIBS=$ac_check_lib_save_LIBS
24049 fi
24050 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24051 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24052 if test $ac_cv_lib_bsd_gethostbyname = yes; then
24053   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24054 fi
24055
24056       fi
24057     fi
24058
24059     # lieder@skyler.mavd.honeywell.com says without -lsocket,
24060     # socket/setsockopt and other routines are undefined under SCO ODT
24061     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
24062     # on later versions), says Simon Leinen: it contains gethostby*
24063     # variants that don't use the name server (or something).  -lsocket
24064     # must be given before -lnsl if both are needed.  We assume that
24065     # if connect needs -lnsl, so does gethostbyname.
24066     echo "$as_me:$LINENO: checking for connect" >&5
24067 echo $ECHO_N "checking for connect... $ECHO_C" >&6
24068 if test "${ac_cv_func_connect+set}" = set; then
24069   echo $ECHO_N "(cached) $ECHO_C" >&6
24070 else
24071   cat >conftest.$ac_ext <<_ACEOF
24072 /* confdefs.h.  */
24073 _ACEOF
24074 cat confdefs.h >>conftest.$ac_ext
24075 cat >>conftest.$ac_ext <<_ACEOF
24076 /* end confdefs.h.  */
24077 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
24078    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24079 #define connect innocuous_connect
24080
24081 /* System header to define __stub macros and hopefully few prototypes,
24082     which can conflict with char connect (); below.
24083     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24084     <limits.h> exists even on freestanding compilers.  */
24085
24086 #ifdef __STDC__
24087 # include <limits.h>
24088 #else
24089 # include <assert.h>
24090 #endif
24091
24092 #undef connect
24093
24094 /* Override any gcc2 internal prototype to avoid an error.  */
24095 #ifdef __cplusplus
24096 extern "C"
24097 {
24098 #endif
24099 /* We use char because int might match the return type of a gcc2
24100    builtin and then its argument prototype would still apply.  */
24101 char connect ();
24102 /* The GNU C library defines this for functions which it implements
24103     to always fail with ENOSYS.  Some functions are actually named
24104     something starting with __ and the normal name is an alias.  */
24105 #if defined (__stub_connect) || defined (__stub___connect)
24106 choke me
24107 #else
24108 char (*f) () = connect;
24109 #endif
24110 #ifdef __cplusplus
24111 }
24112 #endif
24113
24114 int
24115 main ()
24116 {
24117 return f != connect;
24118   ;
24119   return 0;
24120 }
24121 _ACEOF
24122 rm -f conftest.$ac_objext conftest$ac_exeext
24123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24124   (eval $ac_link) 2>conftest.er1
24125   ac_status=$?
24126   grep -v '^ *+' conftest.er1 >conftest.err
24127   rm -f conftest.er1
24128   cat conftest.err >&5
24129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24130   (exit $ac_status); } &&
24131          { ac_try='test -z "$ac_c_werror_flag"
24132                          || test ! -s conftest.err'
24133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24134   (eval $ac_try) 2>&5
24135   ac_status=$?
24136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24137   (exit $ac_status); }; } &&
24138          { ac_try='test -s conftest$ac_exeext'
24139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24140   (eval $ac_try) 2>&5
24141   ac_status=$?
24142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24143   (exit $ac_status); }; }; then
24144   ac_cv_func_connect=yes
24145 else
24146   echo "$as_me: failed program was:" >&5
24147 sed 's/^/| /' conftest.$ac_ext >&5
24148
24149 ac_cv_func_connect=no
24150 fi
24151 rm -f conftest.err conftest.$ac_objext \
24152       conftest$ac_exeext conftest.$ac_ext
24153 fi
24154 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24155 echo "${ECHO_T}$ac_cv_func_connect" >&6
24156
24157     if test $ac_cv_func_connect = no; then
24158       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24159 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24160 if test "${ac_cv_lib_socket_connect+set}" = set; then
24161   echo $ECHO_N "(cached) $ECHO_C" >&6
24162 else
24163   ac_check_lib_save_LIBS=$LIBS
24164 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24165 cat >conftest.$ac_ext <<_ACEOF
24166 /* confdefs.h.  */
24167 _ACEOF
24168 cat confdefs.h >>conftest.$ac_ext
24169 cat >>conftest.$ac_ext <<_ACEOF
24170 /* end confdefs.h.  */
24171
24172 /* Override any gcc2 internal prototype to avoid an error.  */
24173 #ifdef __cplusplus
24174 extern "C"
24175 #endif
24176 /* We use char because int might match the return type of a gcc2
24177    builtin and then its argument prototype would still apply.  */
24178 char connect ();
24179 int
24180 main ()
24181 {
24182 connect ();
24183   ;
24184   return 0;
24185 }
24186 _ACEOF
24187 rm -f conftest.$ac_objext conftest$ac_exeext
24188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24189   (eval $ac_link) 2>conftest.er1
24190   ac_status=$?
24191   grep -v '^ *+' conftest.er1 >conftest.err
24192   rm -f conftest.er1
24193   cat conftest.err >&5
24194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24195   (exit $ac_status); } &&
24196          { ac_try='test -z "$ac_c_werror_flag"
24197                          || test ! -s conftest.err'
24198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24199   (eval $ac_try) 2>&5
24200   ac_status=$?
24201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24202   (exit $ac_status); }; } &&
24203          { ac_try='test -s conftest$ac_exeext'
24204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24205   (eval $ac_try) 2>&5
24206   ac_status=$?
24207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24208   (exit $ac_status); }; }; then
24209   ac_cv_lib_socket_connect=yes
24210 else
24211   echo "$as_me: failed program was:" >&5
24212 sed 's/^/| /' conftest.$ac_ext >&5
24213
24214 ac_cv_lib_socket_connect=no
24215 fi
24216 rm -f conftest.err conftest.$ac_objext \
24217       conftest$ac_exeext conftest.$ac_ext
24218 LIBS=$ac_check_lib_save_LIBS
24219 fi
24220 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24221 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24222 if test $ac_cv_lib_socket_connect = yes; then
24223   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24224 fi
24225
24226     fi
24227
24228     # Guillermo Gomez says -lposix is necessary on A/UX.
24229     echo "$as_me:$LINENO: checking for remove" >&5
24230 echo $ECHO_N "checking for remove... $ECHO_C" >&6
24231 if test "${ac_cv_func_remove+set}" = set; then
24232   echo $ECHO_N "(cached) $ECHO_C" >&6
24233 else
24234   cat >conftest.$ac_ext <<_ACEOF
24235 /* confdefs.h.  */
24236 _ACEOF
24237 cat confdefs.h >>conftest.$ac_ext
24238 cat >>conftest.$ac_ext <<_ACEOF
24239 /* end confdefs.h.  */
24240 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
24241    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24242 #define remove innocuous_remove
24243
24244 /* System header to define __stub macros and hopefully few prototypes,
24245     which can conflict with char remove (); below.
24246     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24247     <limits.h> exists even on freestanding compilers.  */
24248
24249 #ifdef __STDC__
24250 # include <limits.h>
24251 #else
24252 # include <assert.h>
24253 #endif
24254
24255 #undef remove
24256
24257 /* Override any gcc2 internal prototype to avoid an error.  */
24258 #ifdef __cplusplus
24259 extern "C"
24260 {
24261 #endif
24262 /* We use char because int might match the return type of a gcc2
24263    builtin and then its argument prototype would still apply.  */
24264 char remove ();
24265 /* The GNU C library defines this for functions which it implements
24266     to always fail with ENOSYS.  Some functions are actually named
24267     something starting with __ and the normal name is an alias.  */
24268 #if defined (__stub_remove) || defined (__stub___remove)
24269 choke me
24270 #else
24271 char (*f) () = remove;
24272 #endif
24273 #ifdef __cplusplus
24274 }
24275 #endif
24276
24277 int
24278 main ()
24279 {
24280 return f != remove;
24281   ;
24282   return 0;
24283 }
24284 _ACEOF
24285 rm -f conftest.$ac_objext conftest$ac_exeext
24286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24287   (eval $ac_link) 2>conftest.er1
24288   ac_status=$?
24289   grep -v '^ *+' conftest.er1 >conftest.err
24290   rm -f conftest.er1
24291   cat conftest.err >&5
24292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24293   (exit $ac_status); } &&
24294          { ac_try='test -z "$ac_c_werror_flag"
24295                          || test ! -s conftest.err'
24296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24297   (eval $ac_try) 2>&5
24298   ac_status=$?
24299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24300   (exit $ac_status); }; } &&
24301          { ac_try='test -s conftest$ac_exeext'
24302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24303   (eval $ac_try) 2>&5
24304   ac_status=$?
24305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24306   (exit $ac_status); }; }; then
24307   ac_cv_func_remove=yes
24308 else
24309   echo "$as_me: failed program was:" >&5
24310 sed 's/^/| /' conftest.$ac_ext >&5
24311
24312 ac_cv_func_remove=no
24313 fi
24314 rm -f conftest.err conftest.$ac_objext \
24315       conftest$ac_exeext conftest.$ac_ext
24316 fi
24317 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24318 echo "${ECHO_T}$ac_cv_func_remove" >&6
24319
24320     if test $ac_cv_func_remove = no; then
24321       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24322 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
24323 if test "${ac_cv_lib_posix_remove+set}" = set; then
24324   echo $ECHO_N "(cached) $ECHO_C" >&6
24325 else
24326   ac_check_lib_save_LIBS=$LIBS
24327 LIBS="-lposix  $LIBS"
24328 cat >conftest.$ac_ext <<_ACEOF
24329 /* confdefs.h.  */
24330 _ACEOF
24331 cat confdefs.h >>conftest.$ac_ext
24332 cat >>conftest.$ac_ext <<_ACEOF
24333 /* end confdefs.h.  */
24334
24335 /* Override any gcc2 internal prototype to avoid an error.  */
24336 #ifdef __cplusplus
24337 extern "C"
24338 #endif
24339 /* We use char because int might match the return type of a gcc2
24340    builtin and then its argument prototype would still apply.  */
24341 char remove ();
24342 int
24343 main ()
24344 {
24345 remove ();
24346   ;
24347   return 0;
24348 }
24349 _ACEOF
24350 rm -f conftest.$ac_objext conftest$ac_exeext
24351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24352   (eval $ac_link) 2>conftest.er1
24353   ac_status=$?
24354   grep -v '^ *+' conftest.er1 >conftest.err
24355   rm -f conftest.er1
24356   cat conftest.err >&5
24357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24358   (exit $ac_status); } &&
24359          { ac_try='test -z "$ac_c_werror_flag"
24360                          || test ! -s conftest.err'
24361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24362   (eval $ac_try) 2>&5
24363   ac_status=$?
24364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24365   (exit $ac_status); }; } &&
24366          { ac_try='test -s conftest$ac_exeext'
24367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24368   (eval $ac_try) 2>&5
24369   ac_status=$?
24370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24371   (exit $ac_status); }; }; then
24372   ac_cv_lib_posix_remove=yes
24373 else
24374   echo "$as_me: failed program was:" >&5
24375 sed 's/^/| /' conftest.$ac_ext >&5
24376
24377 ac_cv_lib_posix_remove=no
24378 fi
24379 rm -f conftest.err conftest.$ac_objext \
24380       conftest$ac_exeext conftest.$ac_ext
24381 LIBS=$ac_check_lib_save_LIBS
24382 fi
24383 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24384 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
24385 if test $ac_cv_lib_posix_remove = yes; then
24386   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24387 fi
24388
24389     fi
24390
24391     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24392     echo "$as_me:$LINENO: checking for shmat" >&5
24393 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
24394 if test "${ac_cv_func_shmat+set}" = set; then
24395   echo $ECHO_N "(cached) $ECHO_C" >&6
24396 else
24397   cat >conftest.$ac_ext <<_ACEOF
24398 /* confdefs.h.  */
24399 _ACEOF
24400 cat confdefs.h >>conftest.$ac_ext
24401 cat >>conftest.$ac_ext <<_ACEOF
24402 /* end confdefs.h.  */
24403 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
24404    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24405 #define shmat innocuous_shmat
24406
24407 /* System header to define __stub macros and hopefully few prototypes,
24408     which can conflict with char shmat (); below.
24409     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24410     <limits.h> exists even on freestanding compilers.  */
24411
24412 #ifdef __STDC__
24413 # include <limits.h>
24414 #else
24415 # include <assert.h>
24416 #endif
24417
24418 #undef shmat
24419
24420 /* Override any gcc2 internal prototype to avoid an error.  */
24421 #ifdef __cplusplus
24422 extern "C"
24423 {
24424 #endif
24425 /* We use char because int might match the return type of a gcc2
24426    builtin and then its argument prototype would still apply.  */
24427 char shmat ();
24428 /* The GNU C library defines this for functions which it implements
24429     to always fail with ENOSYS.  Some functions are actually named
24430     something starting with __ and the normal name is an alias.  */
24431 #if defined (__stub_shmat) || defined (__stub___shmat)
24432 choke me
24433 #else
24434 char (*f) () = shmat;
24435 #endif
24436 #ifdef __cplusplus
24437 }
24438 #endif
24439
24440 int
24441 main ()
24442 {
24443 return f != shmat;
24444   ;
24445   return 0;
24446 }
24447 _ACEOF
24448 rm -f conftest.$ac_objext conftest$ac_exeext
24449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24450   (eval $ac_link) 2>conftest.er1
24451   ac_status=$?
24452   grep -v '^ *+' conftest.er1 >conftest.err
24453   rm -f conftest.er1
24454   cat conftest.err >&5
24455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24456   (exit $ac_status); } &&
24457          { ac_try='test -z "$ac_c_werror_flag"
24458                          || test ! -s conftest.err'
24459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24460   (eval $ac_try) 2>&5
24461   ac_status=$?
24462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24463   (exit $ac_status); }; } &&
24464          { ac_try='test -s conftest$ac_exeext'
24465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24466   (eval $ac_try) 2>&5
24467   ac_status=$?
24468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469   (exit $ac_status); }; }; then
24470   ac_cv_func_shmat=yes
24471 else
24472   echo "$as_me: failed program was:" >&5
24473 sed 's/^/| /' conftest.$ac_ext >&5
24474
24475 ac_cv_func_shmat=no
24476 fi
24477 rm -f conftest.err conftest.$ac_objext \
24478       conftest$ac_exeext conftest.$ac_ext
24479 fi
24480 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
24481 echo "${ECHO_T}$ac_cv_func_shmat" >&6
24482
24483     if test $ac_cv_func_shmat = no; then
24484       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
24485 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
24486 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
24487   echo $ECHO_N "(cached) $ECHO_C" >&6
24488 else
24489   ac_check_lib_save_LIBS=$LIBS
24490 LIBS="-lipc  $LIBS"
24491 cat >conftest.$ac_ext <<_ACEOF
24492 /* confdefs.h.  */
24493 _ACEOF
24494 cat confdefs.h >>conftest.$ac_ext
24495 cat >>conftest.$ac_ext <<_ACEOF
24496 /* end confdefs.h.  */
24497
24498 /* Override any gcc2 internal prototype to avoid an error.  */
24499 #ifdef __cplusplus
24500 extern "C"
24501 #endif
24502 /* We use char because int might match the return type of a gcc2
24503    builtin and then its argument prototype would still apply.  */
24504 char shmat ();
24505 int
24506 main ()
24507 {
24508 shmat ();
24509   ;
24510   return 0;
24511 }
24512 _ACEOF
24513 rm -f conftest.$ac_objext conftest$ac_exeext
24514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24515   (eval $ac_link) 2>conftest.er1
24516   ac_status=$?
24517   grep -v '^ *+' conftest.er1 >conftest.err
24518   rm -f conftest.er1
24519   cat conftest.err >&5
24520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24521   (exit $ac_status); } &&
24522          { ac_try='test -z "$ac_c_werror_flag"
24523                          || test ! -s conftest.err'
24524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24525   (eval $ac_try) 2>&5
24526   ac_status=$?
24527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528   (exit $ac_status); }; } &&
24529          { ac_try='test -s conftest$ac_exeext'
24530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24531   (eval $ac_try) 2>&5
24532   ac_status=$?
24533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24534   (exit $ac_status); }; }; then
24535   ac_cv_lib_ipc_shmat=yes
24536 else
24537   echo "$as_me: failed program was:" >&5
24538 sed 's/^/| /' conftest.$ac_ext >&5
24539
24540 ac_cv_lib_ipc_shmat=no
24541 fi
24542 rm -f conftest.err conftest.$ac_objext \
24543       conftest$ac_exeext conftest.$ac_ext
24544 LIBS=$ac_check_lib_save_LIBS
24545 fi
24546 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24547 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
24548 if test $ac_cv_lib_ipc_shmat = yes; then
24549   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24550 fi
24551
24552     fi
24553   fi
24554
24555   # Check for libraries that X11R6 Xt/Xaw programs need.
24556   ac_save_LDFLAGS=$LDFLAGS
24557   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24558   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24559   # check for ICE first), but we must link in the order -lSM -lICE or
24560   # we get undefined symbols.  So assume we have SM if we have ICE.
24561   # These have to be linked with before -lX11, unlike the other
24562   # libraries we check for below, so use a different variable.
24563   # John Interrante, Karl Berry
24564   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
24565 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
24566 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
24567   echo $ECHO_N "(cached) $ECHO_C" >&6
24568 else
24569   ac_check_lib_save_LIBS=$LIBS
24570 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24571 cat >conftest.$ac_ext <<_ACEOF
24572 /* confdefs.h.  */
24573 _ACEOF
24574 cat confdefs.h >>conftest.$ac_ext
24575 cat >>conftest.$ac_ext <<_ACEOF
24576 /* end confdefs.h.  */
24577
24578 /* Override any gcc2 internal prototype to avoid an error.  */
24579 #ifdef __cplusplus
24580 extern "C"
24581 #endif
24582 /* We use char because int might match the return type of a gcc2
24583    builtin and then its argument prototype would still apply.  */
24584 char IceConnectionNumber ();
24585 int
24586 main ()
24587 {
24588 IceConnectionNumber ();
24589   ;
24590   return 0;
24591 }
24592 _ACEOF
24593 rm -f conftest.$ac_objext conftest$ac_exeext
24594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24595   (eval $ac_link) 2>conftest.er1
24596   ac_status=$?
24597   grep -v '^ *+' conftest.er1 >conftest.err
24598   rm -f conftest.er1
24599   cat conftest.err >&5
24600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24601   (exit $ac_status); } &&
24602          { ac_try='test -z "$ac_c_werror_flag"
24603                          || test ! -s conftest.err'
24604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24605   (eval $ac_try) 2>&5
24606   ac_status=$?
24607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608   (exit $ac_status); }; } &&
24609          { ac_try='test -s conftest$ac_exeext'
24610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24611   (eval $ac_try) 2>&5
24612   ac_status=$?
24613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24614   (exit $ac_status); }; }; then
24615   ac_cv_lib_ICE_IceConnectionNumber=yes
24616 else
24617   echo "$as_me: failed program was:" >&5
24618 sed 's/^/| /' conftest.$ac_ext >&5
24619
24620 ac_cv_lib_ICE_IceConnectionNumber=no
24621 fi
24622 rm -f conftest.err conftest.$ac_objext \
24623       conftest$ac_exeext conftest.$ac_ext
24624 LIBS=$ac_check_lib_save_LIBS
24625 fi
24626 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24627 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
24628 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
24629   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24630 fi
24631
24632   LDFLAGS=$ac_save_LDFLAGS
24633
24634 fi
24635
24636
24637         if test "$no_x" = "yes"; then
24638           { { echo "$as_me:$LINENO: error: X11 not found" >&5
24639 echo "$as_me: error: X11 not found" >&2;}
24640    { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
24641         fi
24642
24643         GUI_TK_LIBRARY="$X_LIBS"
24644         TOOLKIT_INCLUDE="$X_CFLAGS"
24645         AFMINSTALL=afminstall
24646         COMPILED_X_PROGRAM=0
24647
24648         if test "$wxUSE_NANOX" = "yes"; then
24649             echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
24650 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
24651             if test "x$MICROWIN" = x ; then
24652                 echo "$as_me:$LINENO: result: not found" >&5
24653 echo "${ECHO_T}not found" >&6
24654                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
24655 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
24656    { (exit 1); exit 1; }; }
24657             else
24658                 echo "$as_me:$LINENO: result: $MICROWIN" >&5
24659 echo "${ECHO_T}$MICROWIN" >&6
24660                 cat >>confdefs.h <<\_ACEOF
24661 #define wxUSE_NANOX 1
24662 _ACEOF
24663
24664             fi
24665         fi
24666
24667         if test "$wxUSE_UNICODE" = "yes"; then
24668
24669   succeeded=no
24670
24671   if test -z "$PKG_CONFIG"; then
24672     # Extract the first word of "pkg-config", so it can be a program name with args.
24673 set dummy pkg-config; ac_word=$2
24674 echo "$as_me:$LINENO: checking for $ac_word" >&5
24675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24676 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24677   echo $ECHO_N "(cached) $ECHO_C" >&6
24678 else
24679   case $PKG_CONFIG in
24680   [\\/]* | ?:[\\/]*)
24681   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24682   ;;
24683   *)
24684   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24685 for as_dir in $PATH
24686 do
24687   IFS=$as_save_IFS
24688   test -z "$as_dir" && as_dir=.
24689   for ac_exec_ext in '' $ac_executable_extensions; do
24690   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24691     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24693     break 2
24694   fi
24695 done
24696 done
24697
24698   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24699   ;;
24700 esac
24701 fi
24702 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24703
24704 if test -n "$PKG_CONFIG"; then
24705   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24706 echo "${ECHO_T}$PKG_CONFIG" >&6
24707 else
24708   echo "$as_me:$LINENO: result: no" >&5
24709 echo "${ECHO_T}no" >&6
24710 fi
24711
24712   fi
24713
24714   if test "$PKG_CONFIG" = "no" ; then
24715      echo "*** The pkg-config script could not be found. Make sure it is"
24716      echo "*** in your path, or set the PKG_CONFIG environment variable"
24717      echo "*** to the full path to pkg-config."
24718      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24719   else
24720      PKG_CONFIG_MIN_VERSION=0.9.0
24721      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24722         echo "$as_me:$LINENO: checking for pangox" >&5
24723 echo $ECHO_N "checking for pangox... $ECHO_C" >&6
24724
24725         if $PKG_CONFIG --exists "pangox" ; then
24726             echo "$as_me:$LINENO: result: yes" >&5
24727 echo "${ECHO_T}yes" >&6
24728             succeeded=yes
24729
24730             echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
24731 echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
24732             PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
24733             echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
24734 echo "${ECHO_T}$PANGOX_CFLAGS" >&6
24735
24736             echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
24737 echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
24738             PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
24739             echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
24740 echo "${ECHO_T}$PANGOX_LIBS" >&6
24741         else
24742             PANGOX_CFLAGS=""
24743             PANGOX_LIBS=""
24744             ## If we have a custom action on failure, don't print errors, but
24745             ## do set a variable so people can do so.
24746             PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
24747
24748         fi
24749
24750
24751
24752      else
24753         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24754         echo "*** See http://www.freedesktop.org/software/pkgconfig"
24755      fi
24756   fi
24757
24758   if test $succeeded = yes; then
24759
24760                         CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
24761                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
24762
24763   else
24764
24765                         { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
24766 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
24767    { (exit 1); exit 1; }; }
24768
24769
24770   fi
24771
24772
24773   succeeded=no
24774
24775   if test -z "$PKG_CONFIG"; then
24776     # Extract the first word of "pkg-config", so it can be a program name with args.
24777 set dummy pkg-config; ac_word=$2
24778 echo "$as_me:$LINENO: checking for $ac_word" >&5
24779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24780 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24781   echo $ECHO_N "(cached) $ECHO_C" >&6
24782 else
24783   case $PKG_CONFIG in
24784   [\\/]* | ?:[\\/]*)
24785   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24786   ;;
24787   *)
24788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24789 for as_dir in $PATH
24790 do
24791   IFS=$as_save_IFS
24792   test -z "$as_dir" && as_dir=.
24793   for ac_exec_ext in '' $ac_executable_extensions; do
24794   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24795     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24797     break 2
24798   fi
24799 done
24800 done
24801
24802   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24803   ;;
24804 esac
24805 fi
24806 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24807
24808 if test -n "$PKG_CONFIG"; then
24809   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24810 echo "${ECHO_T}$PKG_CONFIG" >&6
24811 else
24812   echo "$as_me:$LINENO: result: no" >&5
24813 echo "${ECHO_T}no" >&6
24814 fi
24815
24816   fi
24817
24818   if test "$PKG_CONFIG" = "no" ; then
24819      echo "*** The pkg-config script could not be found. Make sure it is"
24820      echo "*** in your path, or set the PKG_CONFIG environment variable"
24821      echo "*** to the full path to pkg-config."
24822      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24823   else
24824      PKG_CONFIG_MIN_VERSION=0.9.0
24825      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24826         echo "$as_me:$LINENO: checking for pangoft2" >&5
24827 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
24828
24829         if $PKG_CONFIG --exists "pangoft2" ; then
24830             echo "$as_me:$LINENO: result: yes" >&5
24831 echo "${ECHO_T}yes" >&6
24832             succeeded=yes
24833
24834             echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
24835 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
24836             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
24837             echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
24838 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
24839
24840             echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
24841 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
24842             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
24843             echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
24844 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
24845         else
24846             PANGOFT2_CFLAGS=""
24847             PANGOFT2_LIBS=""
24848             ## If we have a custom action on failure, don't print errors, but
24849             ## do set a variable so people can do so.
24850             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
24851
24852         fi
24853
24854
24855
24856      else
24857         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24858         echo "*** See http://www.freedesktop.org/software/pkgconfig"
24859      fi
24860   fi
24861
24862   if test $succeeded = yes; then
24863
24864                         CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
24865                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
24866
24867   else
24868
24869                         { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
24870 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
24871                         wxUSE_PRINTING_ARCHITECTURE="no"
24872
24873
24874   fi
24875
24876
24877   succeeded=no
24878
24879   if test -z "$PKG_CONFIG"; then
24880     # Extract the first word of "pkg-config", so it can be a program name with args.
24881 set dummy pkg-config; ac_word=$2
24882 echo "$as_me:$LINENO: checking for $ac_word" >&5
24883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24884 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24885   echo $ECHO_N "(cached) $ECHO_C" >&6
24886 else
24887   case $PKG_CONFIG in
24888   [\\/]* | ?:[\\/]*)
24889   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24890   ;;
24891   *)
24892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24893 for as_dir in $PATH
24894 do
24895   IFS=$as_save_IFS
24896   test -z "$as_dir" && as_dir=.
24897   for ac_exec_ext in '' $ac_executable_extensions; do
24898   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24899     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24901     break 2
24902   fi
24903 done
24904 done
24905
24906   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24907   ;;
24908 esac
24909 fi
24910 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24911
24912 if test -n "$PKG_CONFIG"; then
24913   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24914 echo "${ECHO_T}$PKG_CONFIG" >&6
24915 else
24916   echo "$as_me:$LINENO: result: no" >&5
24917 echo "${ECHO_T}no" >&6
24918 fi
24919
24920   fi
24921
24922   if test "$PKG_CONFIG" = "no" ; then
24923      echo "*** The pkg-config script could not be found. Make sure it is"
24924      echo "*** in your path, or set the PKG_CONFIG environment variable"
24925      echo "*** to the full path to pkg-config."
24926      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24927   else
24928      PKG_CONFIG_MIN_VERSION=0.9.0
24929      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
24930         echo "$as_me:$LINENO: checking for pangoxft" >&5
24931 echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
24932
24933         if $PKG_CONFIG --exists "pangoxft" ; then
24934             echo "$as_me:$LINENO: result: yes" >&5
24935 echo "${ECHO_T}yes" >&6
24936             succeeded=yes
24937
24938             echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
24939 echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
24940             PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
24941             echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
24942 echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
24943
24944             echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
24945 echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
24946             PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
24947             echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
24948 echo "${ECHO_T}$PANGOXFT_LIBS" >&6
24949         else
24950             PANGOXFT_CFLAGS=""
24951             PANGOXFT_LIBS=""
24952             ## If we have a custom action on failure, don't print errors, but
24953             ## do set a variable so people can do so.
24954             PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
24955
24956         fi
24957
24958
24959
24960      else
24961         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24962         echo "*** See http://www.freedesktop.org/software/pkgconfig"
24963      fi
24964   fi
24965
24966   if test $succeeded = yes; then
24967
24968                         CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
24969                         GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
24970
24971   else
24972
24973                         { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
24974 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
24975
24976
24977   fi
24978
24979         fi
24980
24981         wxUSE_UNIVERSAL="yes"
24982
24983         if test "$wxUSE_NANOX" = "yes"; then
24984             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
24985             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"
24986             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
24987         else
24988             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
24989         fi
24990
24991         TOOLKIT_VPATH="\${top_srcdir}/src/x11"
24992         TOOLKIT=X11
24993         GUIDIST=X11_DIST
24994     fi
24995
24996     if test "$wxUSE_MOTIF" = 1; then
24997                         if test "$no_x" = yes; then
24998   # Not all programs may use this symbol, but it does not hurt to define it.
24999
25000 cat >>confdefs.h <<\_ACEOF
25001 #define X_DISPLAY_MISSING 1
25002 _ACEOF
25003
25004   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25005 else
25006   if test -n "$x_includes"; then
25007     X_CFLAGS="$X_CFLAGS -I$x_includes"
25008   fi
25009
25010   # It would also be nice to do this for all -L options, not just this one.
25011   if test -n "$x_libraries"; then
25012     X_LIBS="$X_LIBS -L$x_libraries"
25013     # For Solaris; some versions of Sun CC require a space after -R and
25014     # others require no space.  Words are not sufficient . . . .
25015     case `(uname -sr) 2>/dev/null` in
25016     "SunOS 5"*)
25017       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
25018 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
25019       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25020       cat >conftest.$ac_ext <<_ACEOF
25021 /* confdefs.h.  */
25022 _ACEOF
25023 cat confdefs.h >>conftest.$ac_ext
25024 cat >>conftest.$ac_ext <<_ACEOF
25025 /* end confdefs.h.  */
25026
25027 int
25028 main ()
25029 {
25030
25031   ;
25032   return 0;
25033 }
25034 _ACEOF
25035 rm -f conftest.$ac_objext conftest$ac_exeext
25036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25037   (eval $ac_link) 2>conftest.er1
25038   ac_status=$?
25039   grep -v '^ *+' conftest.er1 >conftest.err
25040   rm -f conftest.er1
25041   cat conftest.err >&5
25042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25043   (exit $ac_status); } &&
25044          { ac_try='test -z "$ac_c_werror_flag"
25045                          || test ! -s conftest.err'
25046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25047   (eval $ac_try) 2>&5
25048   ac_status=$?
25049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25050   (exit $ac_status); }; } &&
25051          { ac_try='test -s conftest$ac_exeext'
25052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25053   (eval $ac_try) 2>&5
25054   ac_status=$?
25055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25056   (exit $ac_status); }; }; then
25057   ac_R_nospace=yes
25058 else
25059   echo "$as_me: failed program was:" >&5
25060 sed 's/^/| /' conftest.$ac_ext >&5
25061
25062 ac_R_nospace=no
25063 fi
25064 rm -f conftest.err conftest.$ac_objext \
25065       conftest$ac_exeext conftest.$ac_ext
25066       if test $ac_R_nospace = yes; then
25067         echo "$as_me:$LINENO: result: no" >&5
25068 echo "${ECHO_T}no" >&6
25069         X_LIBS="$X_LIBS -R$x_libraries"
25070       else
25071         LIBS="$ac_xsave_LIBS -R $x_libraries"
25072         cat >conftest.$ac_ext <<_ACEOF
25073 /* confdefs.h.  */
25074 _ACEOF
25075 cat confdefs.h >>conftest.$ac_ext
25076 cat >>conftest.$ac_ext <<_ACEOF
25077 /* end confdefs.h.  */
25078
25079 int
25080 main ()
25081 {
25082
25083   ;
25084   return 0;
25085 }
25086 _ACEOF
25087 rm -f conftest.$ac_objext conftest$ac_exeext
25088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25089   (eval $ac_link) 2>conftest.er1
25090   ac_status=$?
25091   grep -v '^ *+' conftest.er1 >conftest.err
25092   rm -f conftest.er1
25093   cat conftest.err >&5
25094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095   (exit $ac_status); } &&
25096          { ac_try='test -z "$ac_c_werror_flag"
25097                          || test ! -s conftest.err'
25098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25099   (eval $ac_try) 2>&5
25100   ac_status=$?
25101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25102   (exit $ac_status); }; } &&
25103          { ac_try='test -s conftest$ac_exeext'
25104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25105   (eval $ac_try) 2>&5
25106   ac_status=$?
25107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108   (exit $ac_status); }; }; then
25109   ac_R_space=yes
25110 else
25111   echo "$as_me: failed program was:" >&5
25112 sed 's/^/| /' conftest.$ac_ext >&5
25113
25114 ac_R_space=no
25115 fi
25116 rm -f conftest.err conftest.$ac_objext \
25117       conftest$ac_exeext conftest.$ac_ext
25118         if test $ac_R_space = yes; then
25119           echo "$as_me:$LINENO: result: yes" >&5
25120 echo "${ECHO_T}yes" >&6
25121           X_LIBS="$X_LIBS -R $x_libraries"
25122         else
25123           echo "$as_me:$LINENO: result: neither works" >&5
25124 echo "${ECHO_T}neither works" >&6
25125         fi
25126       fi
25127       LIBS=$ac_xsave_LIBS
25128     esac
25129   fi
25130
25131   # Check for system-dependent libraries X programs must link with.
25132   # Do this before checking for the system-independent R6 libraries
25133   # (-lICE), since we may need -lsocket or whatever for X linking.
25134
25135   if test "$ISC" = yes; then
25136     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25137   else
25138     # Martyn Johnson says this is needed for Ultrix, if the X
25139     # libraries were built with DECnet support.  And Karl Berry says
25140     # the Alpha needs dnet_stub (dnet does not exist).
25141     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25142     cat >conftest.$ac_ext <<_ACEOF
25143 /* confdefs.h.  */
25144 _ACEOF
25145 cat confdefs.h >>conftest.$ac_ext
25146 cat >>conftest.$ac_ext <<_ACEOF
25147 /* end confdefs.h.  */
25148
25149 /* Override any gcc2 internal prototype to avoid an error.  */
25150 #ifdef __cplusplus
25151 extern "C"
25152 #endif
25153 /* We use char because int might match the return type of a gcc2
25154    builtin and then its argument prototype would still apply.  */
25155 char XOpenDisplay ();
25156 int
25157 main ()
25158 {
25159 XOpenDisplay ();
25160   ;
25161   return 0;
25162 }
25163 _ACEOF
25164 rm -f conftest.$ac_objext conftest$ac_exeext
25165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25166   (eval $ac_link) 2>conftest.er1
25167   ac_status=$?
25168   grep -v '^ *+' conftest.er1 >conftest.err
25169   rm -f conftest.er1
25170   cat conftest.err >&5
25171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25172   (exit $ac_status); } &&
25173          { ac_try='test -z "$ac_c_werror_flag"
25174                          || test ! -s conftest.err'
25175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25176   (eval $ac_try) 2>&5
25177   ac_status=$?
25178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25179   (exit $ac_status); }; } &&
25180          { ac_try='test -s conftest$ac_exeext'
25181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25182   (eval $ac_try) 2>&5
25183   ac_status=$?
25184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25185   (exit $ac_status); }; }; then
25186   :
25187 else
25188   echo "$as_me: failed program was:" >&5
25189 sed 's/^/| /' conftest.$ac_ext >&5
25190
25191 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
25192 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
25193 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
25194   echo $ECHO_N "(cached) $ECHO_C" >&6
25195 else
25196   ac_check_lib_save_LIBS=$LIBS
25197 LIBS="-ldnet  $LIBS"
25198 cat >conftest.$ac_ext <<_ACEOF
25199 /* confdefs.h.  */
25200 _ACEOF
25201 cat confdefs.h >>conftest.$ac_ext
25202 cat >>conftest.$ac_ext <<_ACEOF
25203 /* end confdefs.h.  */
25204
25205 /* Override any gcc2 internal prototype to avoid an error.  */
25206 #ifdef __cplusplus
25207 extern "C"
25208 #endif
25209 /* We use char because int might match the return type of a gcc2
25210    builtin and then its argument prototype would still apply.  */
25211 char dnet_ntoa ();
25212 int
25213 main ()
25214 {
25215 dnet_ntoa ();
25216   ;
25217   return 0;
25218 }
25219 _ACEOF
25220 rm -f conftest.$ac_objext conftest$ac_exeext
25221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25222   (eval $ac_link) 2>conftest.er1
25223   ac_status=$?
25224   grep -v '^ *+' conftest.er1 >conftest.err
25225   rm -f conftest.er1
25226   cat conftest.err >&5
25227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25228   (exit $ac_status); } &&
25229          { ac_try='test -z "$ac_c_werror_flag"
25230                          || test ! -s conftest.err'
25231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25232   (eval $ac_try) 2>&5
25233   ac_status=$?
25234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25235   (exit $ac_status); }; } &&
25236          { ac_try='test -s conftest$ac_exeext'
25237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25238   (eval $ac_try) 2>&5
25239   ac_status=$?
25240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25241   (exit $ac_status); }; }; then
25242   ac_cv_lib_dnet_dnet_ntoa=yes
25243 else
25244   echo "$as_me: failed program was:" >&5
25245 sed 's/^/| /' conftest.$ac_ext >&5
25246
25247 ac_cv_lib_dnet_dnet_ntoa=no
25248 fi
25249 rm -f conftest.err conftest.$ac_objext \
25250       conftest$ac_exeext conftest.$ac_ext
25251 LIBS=$ac_check_lib_save_LIBS
25252 fi
25253 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25254 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
25255 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
25256   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25257 fi
25258
25259     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25260       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
25261 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
25262 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
25263   echo $ECHO_N "(cached) $ECHO_C" >&6
25264 else
25265   ac_check_lib_save_LIBS=$LIBS
25266 LIBS="-ldnet_stub  $LIBS"
25267 cat >conftest.$ac_ext <<_ACEOF
25268 /* confdefs.h.  */
25269 _ACEOF
25270 cat confdefs.h >>conftest.$ac_ext
25271 cat >>conftest.$ac_ext <<_ACEOF
25272 /* end confdefs.h.  */
25273
25274 /* Override any gcc2 internal prototype to avoid an error.  */
25275 #ifdef __cplusplus
25276 extern "C"
25277 #endif
25278 /* We use char because int might match the return type of a gcc2
25279    builtin and then its argument prototype would still apply.  */
25280 char dnet_ntoa ();
25281 int
25282 main ()
25283 {
25284 dnet_ntoa ();
25285   ;
25286   return 0;
25287 }
25288 _ACEOF
25289 rm -f conftest.$ac_objext conftest$ac_exeext
25290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25291   (eval $ac_link) 2>conftest.er1
25292   ac_status=$?
25293   grep -v '^ *+' conftest.er1 >conftest.err
25294   rm -f conftest.er1
25295   cat conftest.err >&5
25296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25297   (exit $ac_status); } &&
25298          { ac_try='test -z "$ac_c_werror_flag"
25299                          || test ! -s conftest.err'
25300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25301   (eval $ac_try) 2>&5
25302   ac_status=$?
25303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25304   (exit $ac_status); }; } &&
25305          { ac_try='test -s conftest$ac_exeext'
25306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25307   (eval $ac_try) 2>&5
25308   ac_status=$?
25309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25310   (exit $ac_status); }; }; then
25311   ac_cv_lib_dnet_stub_dnet_ntoa=yes
25312 else
25313   echo "$as_me: failed program was:" >&5
25314 sed 's/^/| /' conftest.$ac_ext >&5
25315
25316 ac_cv_lib_dnet_stub_dnet_ntoa=no
25317 fi
25318 rm -f conftest.err conftest.$ac_objext \
25319       conftest$ac_exeext conftest.$ac_ext
25320 LIBS=$ac_check_lib_save_LIBS
25321 fi
25322 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25323 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
25324 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
25325   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25326 fi
25327
25328     fi
25329 fi
25330 rm -f conftest.err conftest.$ac_objext \
25331       conftest$ac_exeext conftest.$ac_ext
25332     LIBS="$ac_xsave_LIBS"
25333
25334     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25335     # to get the SysV transport functions.
25336     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25337     # needs -lnsl.
25338     # The nsl library prevents programs from opening the X display
25339     # on Irix 5.2, according to T.E. Dickey.
25340     # The functions gethostbyname, getservbyname, and inet_addr are
25341     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25342     echo "$as_me:$LINENO: checking for gethostbyname" >&5
25343 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
25344 if test "${ac_cv_func_gethostbyname+set}" = set; then
25345   echo $ECHO_N "(cached) $ECHO_C" >&6
25346 else
25347   cat >conftest.$ac_ext <<_ACEOF
25348 /* confdefs.h.  */
25349 _ACEOF
25350 cat confdefs.h >>conftest.$ac_ext
25351 cat >>conftest.$ac_ext <<_ACEOF
25352 /* end confdefs.h.  */
25353 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
25354    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25355 #define gethostbyname innocuous_gethostbyname
25356
25357 /* System header to define __stub macros and hopefully few prototypes,
25358     which can conflict with char gethostbyname (); below.
25359     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25360     <limits.h> exists even on freestanding compilers.  */
25361
25362 #ifdef __STDC__
25363 # include <limits.h>
25364 #else
25365 # include <assert.h>
25366 #endif
25367
25368 #undef gethostbyname
25369
25370 /* Override any gcc2 internal prototype to avoid an error.  */
25371 #ifdef __cplusplus
25372 extern "C"
25373 {
25374 #endif
25375 /* We use char because int might match the return type of a gcc2
25376    builtin and then its argument prototype would still apply.  */
25377 char gethostbyname ();
25378 /* The GNU C library defines this for functions which it implements
25379     to always fail with ENOSYS.  Some functions are actually named
25380     something starting with __ and the normal name is an alias.  */
25381 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
25382 choke me
25383 #else
25384 char (*f) () = gethostbyname;
25385 #endif
25386 #ifdef __cplusplus
25387 }
25388 #endif
25389
25390 int
25391 main ()
25392 {
25393 return f != gethostbyname;
25394   ;
25395   return 0;
25396 }
25397 _ACEOF
25398 rm -f conftest.$ac_objext conftest$ac_exeext
25399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25400   (eval $ac_link) 2>conftest.er1
25401   ac_status=$?
25402   grep -v '^ *+' conftest.er1 >conftest.err
25403   rm -f conftest.er1
25404   cat conftest.err >&5
25405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25406   (exit $ac_status); } &&
25407          { ac_try='test -z "$ac_c_werror_flag"
25408                          || test ! -s conftest.err'
25409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25410   (eval $ac_try) 2>&5
25411   ac_status=$?
25412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25413   (exit $ac_status); }; } &&
25414          { ac_try='test -s conftest$ac_exeext'
25415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25416   (eval $ac_try) 2>&5
25417   ac_status=$?
25418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25419   (exit $ac_status); }; }; then
25420   ac_cv_func_gethostbyname=yes
25421 else
25422   echo "$as_me: failed program was:" >&5
25423 sed 's/^/| /' conftest.$ac_ext >&5
25424
25425 ac_cv_func_gethostbyname=no
25426 fi
25427 rm -f conftest.err conftest.$ac_objext \
25428       conftest$ac_exeext conftest.$ac_ext
25429 fi
25430 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
25431 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
25432
25433     if test $ac_cv_func_gethostbyname = no; then
25434       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25435 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
25436 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25437   echo $ECHO_N "(cached) $ECHO_C" >&6
25438 else
25439   ac_check_lib_save_LIBS=$LIBS
25440 LIBS="-lnsl  $LIBS"
25441 cat >conftest.$ac_ext <<_ACEOF
25442 /* confdefs.h.  */
25443 _ACEOF
25444 cat confdefs.h >>conftest.$ac_ext
25445 cat >>conftest.$ac_ext <<_ACEOF
25446 /* end confdefs.h.  */
25447
25448 /* Override any gcc2 internal prototype to avoid an error.  */
25449 #ifdef __cplusplus
25450 extern "C"
25451 #endif
25452 /* We use char because int might match the return type of a gcc2
25453    builtin and then its argument prototype would still apply.  */
25454 char gethostbyname ();
25455 int
25456 main ()
25457 {
25458 gethostbyname ();
25459   ;
25460   return 0;
25461 }
25462 _ACEOF
25463 rm -f conftest.$ac_objext conftest$ac_exeext
25464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25465   (eval $ac_link) 2>conftest.er1
25466   ac_status=$?
25467   grep -v '^ *+' conftest.er1 >conftest.err
25468   rm -f conftest.er1
25469   cat conftest.err >&5
25470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25471   (exit $ac_status); } &&
25472          { ac_try='test -z "$ac_c_werror_flag"
25473                          || test ! -s conftest.err'
25474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25475   (eval $ac_try) 2>&5
25476   ac_status=$?
25477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478   (exit $ac_status); }; } &&
25479          { ac_try='test -s conftest$ac_exeext'
25480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25481   (eval $ac_try) 2>&5
25482   ac_status=$?
25483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25484   (exit $ac_status); }; }; then
25485   ac_cv_lib_nsl_gethostbyname=yes
25486 else
25487   echo "$as_me: failed program was:" >&5
25488 sed 's/^/| /' conftest.$ac_ext >&5
25489
25490 ac_cv_lib_nsl_gethostbyname=no
25491 fi
25492 rm -f conftest.err conftest.$ac_objext \
25493       conftest$ac_exeext conftest.$ac_ext
25494 LIBS=$ac_check_lib_save_LIBS
25495 fi
25496 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25497 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
25498 if test $ac_cv_lib_nsl_gethostbyname = yes; then
25499   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25500 fi
25501
25502       if test $ac_cv_lib_nsl_gethostbyname = no; then
25503         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
25504 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
25505 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
25506   echo $ECHO_N "(cached) $ECHO_C" >&6
25507 else
25508   ac_check_lib_save_LIBS=$LIBS
25509 LIBS="-lbsd  $LIBS"
25510 cat >conftest.$ac_ext <<_ACEOF
25511 /* confdefs.h.  */
25512 _ACEOF
25513 cat confdefs.h >>conftest.$ac_ext
25514 cat >>conftest.$ac_ext <<_ACEOF
25515 /* end confdefs.h.  */
25516
25517 /* Override any gcc2 internal prototype to avoid an error.  */
25518 #ifdef __cplusplus
25519 extern "C"
25520 #endif
25521 /* We use char because int might match the return type of a gcc2
25522    builtin and then its argument prototype would still apply.  */
25523 char gethostbyname ();
25524 int
25525 main ()
25526 {
25527 gethostbyname ();
25528   ;
25529   return 0;
25530 }
25531 _ACEOF
25532 rm -f conftest.$ac_objext conftest$ac_exeext
25533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25534   (eval $ac_link) 2>conftest.er1
25535   ac_status=$?
25536   grep -v '^ *+' conftest.er1 >conftest.err
25537   rm -f conftest.er1
25538   cat conftest.err >&5
25539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25540   (exit $ac_status); } &&
25541          { ac_try='test -z "$ac_c_werror_flag"
25542                          || test ! -s conftest.err'
25543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25544   (eval $ac_try) 2>&5
25545   ac_status=$?
25546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25547   (exit $ac_status); }; } &&
25548          { ac_try='test -s conftest$ac_exeext'
25549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25550   (eval $ac_try) 2>&5
25551   ac_status=$?
25552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25553   (exit $ac_status); }; }; then
25554   ac_cv_lib_bsd_gethostbyname=yes
25555 else
25556   echo "$as_me: failed program was:" >&5
25557 sed 's/^/| /' conftest.$ac_ext >&5
25558
25559 ac_cv_lib_bsd_gethostbyname=no
25560 fi
25561 rm -f conftest.err conftest.$ac_objext \
25562       conftest$ac_exeext conftest.$ac_ext
25563 LIBS=$ac_check_lib_save_LIBS
25564 fi
25565 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
25566 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
25567 if test $ac_cv_lib_bsd_gethostbyname = yes; then
25568   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25569 fi
25570
25571       fi
25572     fi
25573
25574     # lieder@skyler.mavd.honeywell.com says without -lsocket,
25575     # socket/setsockopt and other routines are undefined under SCO ODT
25576     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
25577     # on later versions), says Simon Leinen: it contains gethostby*
25578     # variants that don't use the name server (or something).  -lsocket
25579     # must be given before -lnsl if both are needed.  We assume that
25580     # if connect needs -lnsl, so does gethostbyname.
25581     echo "$as_me:$LINENO: checking for connect" >&5
25582 echo $ECHO_N "checking for connect... $ECHO_C" >&6
25583 if test "${ac_cv_func_connect+set}" = set; then
25584   echo $ECHO_N "(cached) $ECHO_C" >&6
25585 else
25586   cat >conftest.$ac_ext <<_ACEOF
25587 /* confdefs.h.  */
25588 _ACEOF
25589 cat confdefs.h >>conftest.$ac_ext
25590 cat >>conftest.$ac_ext <<_ACEOF
25591 /* end confdefs.h.  */
25592 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
25593    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25594 #define connect innocuous_connect
25595
25596 /* System header to define __stub macros and hopefully few prototypes,
25597     which can conflict with char connect (); below.
25598     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25599     <limits.h> exists even on freestanding compilers.  */
25600
25601 #ifdef __STDC__
25602 # include <limits.h>
25603 #else
25604 # include <assert.h>
25605 #endif
25606
25607 #undef connect
25608
25609 /* Override any gcc2 internal prototype to avoid an error.  */
25610 #ifdef __cplusplus
25611 extern "C"
25612 {
25613 #endif
25614 /* We use char because int might match the return type of a gcc2
25615    builtin and then its argument prototype would still apply.  */
25616 char connect ();
25617 /* The GNU C library defines this for functions which it implements
25618     to always fail with ENOSYS.  Some functions are actually named
25619     something starting with __ and the normal name is an alias.  */
25620 #if defined (__stub_connect) || defined (__stub___connect)
25621 choke me
25622 #else
25623 char (*f) () = connect;
25624 #endif
25625 #ifdef __cplusplus
25626 }
25627 #endif
25628
25629 int
25630 main ()
25631 {
25632 return f != connect;
25633   ;
25634   return 0;
25635 }
25636 _ACEOF
25637 rm -f conftest.$ac_objext conftest$ac_exeext
25638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25639   (eval $ac_link) 2>conftest.er1
25640   ac_status=$?
25641   grep -v '^ *+' conftest.er1 >conftest.err
25642   rm -f conftest.er1
25643   cat conftest.err >&5
25644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25645   (exit $ac_status); } &&
25646          { ac_try='test -z "$ac_c_werror_flag"
25647                          || test ! -s conftest.err'
25648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25649   (eval $ac_try) 2>&5
25650   ac_status=$?
25651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25652   (exit $ac_status); }; } &&
25653          { ac_try='test -s conftest$ac_exeext'
25654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25655   (eval $ac_try) 2>&5
25656   ac_status=$?
25657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25658   (exit $ac_status); }; }; then
25659   ac_cv_func_connect=yes
25660 else
25661   echo "$as_me: failed program was:" >&5
25662 sed 's/^/| /' conftest.$ac_ext >&5
25663
25664 ac_cv_func_connect=no
25665 fi
25666 rm -f conftest.err conftest.$ac_objext \
25667       conftest$ac_exeext conftest.$ac_ext
25668 fi
25669 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
25670 echo "${ECHO_T}$ac_cv_func_connect" >&6
25671
25672     if test $ac_cv_func_connect = no; then
25673       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25674 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
25675 if test "${ac_cv_lib_socket_connect+set}" = set; then
25676   echo $ECHO_N "(cached) $ECHO_C" >&6
25677 else
25678   ac_check_lib_save_LIBS=$LIBS
25679 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25680 cat >conftest.$ac_ext <<_ACEOF
25681 /* confdefs.h.  */
25682 _ACEOF
25683 cat confdefs.h >>conftest.$ac_ext
25684 cat >>conftest.$ac_ext <<_ACEOF
25685 /* end confdefs.h.  */
25686
25687 /* Override any gcc2 internal prototype to avoid an error.  */
25688 #ifdef __cplusplus
25689 extern "C"
25690 #endif
25691 /* We use char because int might match the return type of a gcc2
25692    builtin and then its argument prototype would still apply.  */
25693 char connect ();
25694 int
25695 main ()
25696 {
25697 connect ();
25698   ;
25699   return 0;
25700 }
25701 _ACEOF
25702 rm -f conftest.$ac_objext conftest$ac_exeext
25703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25704   (eval $ac_link) 2>conftest.er1
25705   ac_status=$?
25706   grep -v '^ *+' conftest.er1 >conftest.err
25707   rm -f conftest.er1
25708   cat conftest.err >&5
25709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25710   (exit $ac_status); } &&
25711          { ac_try='test -z "$ac_c_werror_flag"
25712                          || test ! -s conftest.err'
25713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25714   (eval $ac_try) 2>&5
25715   ac_status=$?
25716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25717   (exit $ac_status); }; } &&
25718          { ac_try='test -s conftest$ac_exeext'
25719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25720   (eval $ac_try) 2>&5
25721   ac_status=$?
25722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25723   (exit $ac_status); }; }; then
25724   ac_cv_lib_socket_connect=yes
25725 else
25726   echo "$as_me: failed program was:" >&5
25727 sed 's/^/| /' conftest.$ac_ext >&5
25728
25729 ac_cv_lib_socket_connect=no
25730 fi
25731 rm -f conftest.err conftest.$ac_objext \
25732       conftest$ac_exeext conftest.$ac_ext
25733 LIBS=$ac_check_lib_save_LIBS
25734 fi
25735 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25736 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
25737 if test $ac_cv_lib_socket_connect = yes; then
25738   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25739 fi
25740
25741     fi
25742
25743     # Guillermo Gomez says -lposix is necessary on A/UX.
25744     echo "$as_me:$LINENO: checking for remove" >&5
25745 echo $ECHO_N "checking for remove... $ECHO_C" >&6
25746 if test "${ac_cv_func_remove+set}" = set; then
25747   echo $ECHO_N "(cached) $ECHO_C" >&6
25748 else
25749   cat >conftest.$ac_ext <<_ACEOF
25750 /* confdefs.h.  */
25751 _ACEOF
25752 cat confdefs.h >>conftest.$ac_ext
25753 cat >>conftest.$ac_ext <<_ACEOF
25754 /* end confdefs.h.  */
25755 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
25756    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25757 #define remove innocuous_remove
25758
25759 /* System header to define __stub macros and hopefully few prototypes,
25760     which can conflict with char remove (); below.
25761     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25762     <limits.h> exists even on freestanding compilers.  */
25763
25764 #ifdef __STDC__
25765 # include <limits.h>
25766 #else
25767 # include <assert.h>
25768 #endif
25769
25770 #undef remove
25771
25772 /* Override any gcc2 internal prototype to avoid an error.  */
25773 #ifdef __cplusplus
25774 extern "C"
25775 {
25776 #endif
25777 /* We use char because int might match the return type of a gcc2
25778    builtin and then its argument prototype would still apply.  */
25779 char remove ();
25780 /* The GNU C library defines this for functions which it implements
25781     to always fail with ENOSYS.  Some functions are actually named
25782     something starting with __ and the normal name is an alias.  */
25783 #if defined (__stub_remove) || defined (__stub___remove)
25784 choke me
25785 #else
25786 char (*f) () = remove;
25787 #endif
25788 #ifdef __cplusplus
25789 }
25790 #endif
25791
25792 int
25793 main ()
25794 {
25795 return f != remove;
25796   ;
25797   return 0;
25798 }
25799 _ACEOF
25800 rm -f conftest.$ac_objext conftest$ac_exeext
25801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25802   (eval $ac_link) 2>conftest.er1
25803   ac_status=$?
25804   grep -v '^ *+' conftest.er1 >conftest.err
25805   rm -f conftest.er1
25806   cat conftest.err >&5
25807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25808   (exit $ac_status); } &&
25809          { ac_try='test -z "$ac_c_werror_flag"
25810                          || test ! -s conftest.err'
25811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25812   (eval $ac_try) 2>&5
25813   ac_status=$?
25814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25815   (exit $ac_status); }; } &&
25816          { ac_try='test -s conftest$ac_exeext'
25817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25818   (eval $ac_try) 2>&5
25819   ac_status=$?
25820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25821   (exit $ac_status); }; }; then
25822   ac_cv_func_remove=yes
25823 else
25824   echo "$as_me: failed program was:" >&5
25825 sed 's/^/| /' conftest.$ac_ext >&5
25826
25827 ac_cv_func_remove=no
25828 fi
25829 rm -f conftest.err conftest.$ac_objext \
25830       conftest$ac_exeext conftest.$ac_ext
25831 fi
25832 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25833 echo "${ECHO_T}$ac_cv_func_remove" >&6
25834
25835     if test $ac_cv_func_remove = no; then
25836       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25837 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25838 if test "${ac_cv_lib_posix_remove+set}" = set; then
25839   echo $ECHO_N "(cached) $ECHO_C" >&6
25840 else
25841   ac_check_lib_save_LIBS=$LIBS
25842 LIBS="-lposix  $LIBS"
25843 cat >conftest.$ac_ext <<_ACEOF
25844 /* confdefs.h.  */
25845 _ACEOF
25846 cat confdefs.h >>conftest.$ac_ext
25847 cat >>conftest.$ac_ext <<_ACEOF
25848 /* end confdefs.h.  */
25849
25850 /* Override any gcc2 internal prototype to avoid an error.  */
25851 #ifdef __cplusplus
25852 extern "C"
25853 #endif
25854 /* We use char because int might match the return type of a gcc2
25855    builtin and then its argument prototype would still apply.  */
25856 char remove ();
25857 int
25858 main ()
25859 {
25860 remove ();
25861   ;
25862   return 0;
25863 }
25864 _ACEOF
25865 rm -f conftest.$ac_objext conftest$ac_exeext
25866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25867   (eval $ac_link) 2>conftest.er1
25868   ac_status=$?
25869   grep -v '^ *+' conftest.er1 >conftest.err
25870   rm -f conftest.er1
25871   cat conftest.err >&5
25872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25873   (exit $ac_status); } &&
25874          { ac_try='test -z "$ac_c_werror_flag"
25875                          || test ! -s conftest.err'
25876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25877   (eval $ac_try) 2>&5
25878   ac_status=$?
25879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25880   (exit $ac_status); }; } &&
25881          { ac_try='test -s conftest$ac_exeext'
25882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25883   (eval $ac_try) 2>&5
25884   ac_status=$?
25885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25886   (exit $ac_status); }; }; then
25887   ac_cv_lib_posix_remove=yes
25888 else
25889   echo "$as_me: failed program was:" >&5
25890 sed 's/^/| /' conftest.$ac_ext >&5
25891
25892 ac_cv_lib_posix_remove=no
25893 fi
25894 rm -f conftest.err conftest.$ac_objext \
25895       conftest$ac_exeext conftest.$ac_ext
25896 LIBS=$ac_check_lib_save_LIBS
25897 fi
25898 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25899 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25900 if test $ac_cv_lib_posix_remove = yes; then
25901   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25902 fi
25903
25904     fi
25905
25906     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25907     echo "$as_me:$LINENO: checking for shmat" >&5
25908 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25909 if test "${ac_cv_func_shmat+set}" = set; then
25910   echo $ECHO_N "(cached) $ECHO_C" >&6
25911 else
25912   cat >conftest.$ac_ext <<_ACEOF
25913 /* confdefs.h.  */
25914 _ACEOF
25915 cat confdefs.h >>conftest.$ac_ext
25916 cat >>conftest.$ac_ext <<_ACEOF
25917 /* end confdefs.h.  */
25918 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25919    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25920 #define shmat innocuous_shmat
25921
25922 /* System header to define __stub macros and hopefully few prototypes,
25923     which can conflict with char shmat (); below.
25924     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25925     <limits.h> exists even on freestanding compilers.  */
25926
25927 #ifdef __STDC__
25928 # include <limits.h>
25929 #else
25930 # include <assert.h>
25931 #endif
25932
25933 #undef shmat
25934
25935 /* Override any gcc2 internal prototype to avoid an error.  */
25936 #ifdef __cplusplus
25937 extern "C"
25938 {
25939 #endif
25940 /* We use char because int might match the return type of a gcc2
25941    builtin and then its argument prototype would still apply.  */
25942 char shmat ();
25943 /* The GNU C library defines this for functions which it implements
25944     to always fail with ENOSYS.  Some functions are actually named
25945     something starting with __ and the normal name is an alias.  */
25946 #if defined (__stub_shmat) || defined (__stub___shmat)
25947 choke me
25948 #else
25949 char (*f) () = shmat;
25950 #endif
25951 #ifdef __cplusplus
25952 }
25953 #endif
25954
25955 int
25956 main ()
25957 {
25958 return f != shmat;
25959   ;
25960   return 0;
25961 }
25962 _ACEOF
25963 rm -f conftest.$ac_objext conftest$ac_exeext
25964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25965   (eval $ac_link) 2>conftest.er1
25966   ac_status=$?
25967   grep -v '^ *+' conftest.er1 >conftest.err
25968   rm -f conftest.er1
25969   cat conftest.err >&5
25970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971   (exit $ac_status); } &&
25972          { ac_try='test -z "$ac_c_werror_flag"
25973                          || test ! -s conftest.err'
25974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25975   (eval $ac_try) 2>&5
25976   ac_status=$?
25977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25978   (exit $ac_status); }; } &&
25979          { ac_try='test -s conftest$ac_exeext'
25980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25981   (eval $ac_try) 2>&5
25982   ac_status=$?
25983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25984   (exit $ac_status); }; }; then
25985   ac_cv_func_shmat=yes
25986 else
25987   echo "$as_me: failed program was:" >&5
25988 sed 's/^/| /' conftest.$ac_ext >&5
25989
25990 ac_cv_func_shmat=no
25991 fi
25992 rm -f conftest.err conftest.$ac_objext \
25993       conftest$ac_exeext conftest.$ac_ext
25994 fi
25995 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25996 echo "${ECHO_T}$ac_cv_func_shmat" >&6
25997
25998     if test $ac_cv_func_shmat = no; then
25999       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
26000 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
26001 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
26002   echo $ECHO_N "(cached) $ECHO_C" >&6
26003 else
26004   ac_check_lib_save_LIBS=$LIBS
26005 LIBS="-lipc  $LIBS"
26006 cat >conftest.$ac_ext <<_ACEOF
26007 /* confdefs.h.  */
26008 _ACEOF
26009 cat confdefs.h >>conftest.$ac_ext
26010 cat >>conftest.$ac_ext <<_ACEOF
26011 /* end confdefs.h.  */
26012
26013 /* Override any gcc2 internal prototype to avoid an error.  */
26014 #ifdef __cplusplus
26015 extern "C"
26016 #endif
26017 /* We use char because int might match the return type of a gcc2
26018    builtin and then its argument prototype would still apply.  */
26019 char shmat ();
26020 int
26021 main ()
26022 {
26023 shmat ();
26024   ;
26025   return 0;
26026 }
26027 _ACEOF
26028 rm -f conftest.$ac_objext conftest$ac_exeext
26029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26030   (eval $ac_link) 2>conftest.er1
26031   ac_status=$?
26032   grep -v '^ *+' conftest.er1 >conftest.err
26033   rm -f conftest.er1
26034   cat conftest.err >&5
26035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26036   (exit $ac_status); } &&
26037          { ac_try='test -z "$ac_c_werror_flag"
26038                          || test ! -s conftest.err'
26039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26040   (eval $ac_try) 2>&5
26041   ac_status=$?
26042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26043   (exit $ac_status); }; } &&
26044          { ac_try='test -s conftest$ac_exeext'
26045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26046   (eval $ac_try) 2>&5
26047   ac_status=$?
26048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26049   (exit $ac_status); }; }; then
26050   ac_cv_lib_ipc_shmat=yes
26051 else
26052   echo "$as_me: failed program was:" >&5
26053 sed 's/^/| /' conftest.$ac_ext >&5
26054
26055 ac_cv_lib_ipc_shmat=no
26056 fi
26057 rm -f conftest.err conftest.$ac_objext \
26058       conftest$ac_exeext conftest.$ac_ext
26059 LIBS=$ac_check_lib_save_LIBS
26060 fi
26061 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
26062 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
26063 if test $ac_cv_lib_ipc_shmat = yes; then
26064   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
26065 fi
26066
26067     fi
26068   fi
26069
26070   # Check for libraries that X11R6 Xt/Xaw programs need.
26071   ac_save_LDFLAGS=$LDFLAGS
26072   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
26073   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
26074   # check for ICE first), but we must link in the order -lSM -lICE or
26075   # we get undefined symbols.  So assume we have SM if we have ICE.
26076   # These have to be linked with before -lX11, unlike the other
26077   # libraries we check for below, so use a different variable.
26078   # John Interrante, Karl Berry
26079   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
26080 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
26081 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
26082   echo $ECHO_N "(cached) $ECHO_C" >&6
26083 else
26084   ac_check_lib_save_LIBS=$LIBS
26085 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
26086 cat >conftest.$ac_ext <<_ACEOF
26087 /* confdefs.h.  */
26088 _ACEOF
26089 cat confdefs.h >>conftest.$ac_ext
26090 cat >>conftest.$ac_ext <<_ACEOF
26091 /* end confdefs.h.  */
26092
26093 /* Override any gcc2 internal prototype to avoid an error.  */
26094 #ifdef __cplusplus
26095 extern "C"
26096 #endif
26097 /* We use char because int might match the return type of a gcc2
26098    builtin and then its argument prototype would still apply.  */
26099 char IceConnectionNumber ();
26100 int
26101 main ()
26102 {
26103 IceConnectionNumber ();
26104   ;
26105   return 0;
26106 }
26107 _ACEOF
26108 rm -f conftest.$ac_objext conftest$ac_exeext
26109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26110   (eval $ac_link) 2>conftest.er1
26111   ac_status=$?
26112   grep -v '^ *+' conftest.er1 >conftest.err
26113   rm -f conftest.er1
26114   cat conftest.err >&5
26115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26116   (exit $ac_status); } &&
26117          { ac_try='test -z "$ac_c_werror_flag"
26118                          || test ! -s conftest.err'
26119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26120   (eval $ac_try) 2>&5
26121   ac_status=$?
26122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26123   (exit $ac_status); }; } &&
26124          { ac_try='test -s conftest$ac_exeext'
26125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26126   (eval $ac_try) 2>&5
26127   ac_status=$?
26128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26129   (exit $ac_status); }; }; then
26130   ac_cv_lib_ICE_IceConnectionNumber=yes
26131 else
26132   echo "$as_me: failed program was:" >&5
26133 sed 's/^/| /' conftest.$ac_ext >&5
26134
26135 ac_cv_lib_ICE_IceConnectionNumber=no
26136 fi
26137 rm -f conftest.err conftest.$ac_objext \
26138       conftest$ac_exeext conftest.$ac_ext
26139 LIBS=$ac_check_lib_save_LIBS
26140 fi
26141 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
26142 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
26143 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
26144   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
26145 fi
26146
26147   LDFLAGS=$ac_save_LDFLAGS
26148
26149 fi
26150
26151
26152         if test "$no_x" = "yes"; then
26153           { { echo "$as_me:$LINENO: error: X11 not found" >&5
26154 echo "$as_me: error: X11 not found" >&2;}
26155    { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
26156         fi
26157
26158                         GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
26159         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
26160         AFMINSTALL=afminstall
26161         COMPILED_X_PROGRAM=0
26162
26163         echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
26164 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
26165
26166 ac_find_includes=
26167 for ac_dir in $SEARCH_INCLUDE /usr/include;
26168   do
26169     if test -f "$ac_dir/Xm/Xm.h"; then
26170       ac_find_includes=$ac_dir
26171       break
26172     fi
26173   done
26174
26175         if test "$ac_find_includes" != "" ; then
26176             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26177 echo "${ECHO_T}found in $ac_find_includes" >&6
26178
26179     if test "x$ac_find_includes" = "x/usr/include"; then
26180     ac_path_to_include=""
26181   else
26182     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
26183     result=$?
26184     if test $result = 0; then
26185       ac_path_to_include=""
26186     else
26187       ac_path_to_include=" -I$ac_find_includes"
26188     fi
26189   fi
26190
26191             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
26192         else
26193             cat >conftest.$ac_ext <<_ACEOF
26194 /* confdefs.h.  */
26195 _ACEOF
26196 cat confdefs.h >>conftest.$ac_ext
26197 cat >>conftest.$ac_ext <<_ACEOF
26198 /* end confdefs.h.  */
26199
26200                     #include <Xm/Xm.h>
26201
26202 int
26203 main ()
26204 {
26205
26206                     int version;
26207                     version = xmUseVersion;
26208
26209   ;
26210   return 0;
26211 }
26212 _ACEOF
26213 rm -f conftest.$ac_objext
26214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26215   (eval $ac_compile) 2>conftest.er1
26216   ac_status=$?
26217   grep -v '^ *+' conftest.er1 >conftest.err
26218   rm -f conftest.er1
26219   cat conftest.err >&5
26220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26221   (exit $ac_status); } &&
26222          { ac_try='test -z "$ac_c_werror_flag"
26223                          || test ! -s conftest.err'
26224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26225   (eval $ac_try) 2>&5
26226   ac_status=$?
26227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26228   (exit $ac_status); }; } &&
26229          { ac_try='test -s conftest.$ac_objext'
26230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26231   (eval $ac_try) 2>&5
26232   ac_status=$?
26233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26234   (exit $ac_status); }; }; then
26235
26236                     echo "$as_me:$LINENO: result: found in default search path" >&5
26237 echo "${ECHO_T}found in default search path" >&6
26238                     COMPILED_X_PROGRAM=1
26239
26240 else
26241   echo "$as_me: failed program was:" >&5
26242 sed 's/^/| /' conftest.$ac_ext >&5
26243
26244
26245                     echo "$as_me:$LINENO: result: no" >&5
26246 echo "${ECHO_T}no" >&6
26247                     { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
26248 echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
26249    { (exit 1); exit 1; }; }
26250
26251
26252 fi
26253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26254         fi
26255
26256         if test "$COMPILED_X_PROGRAM" = 0; then
26257             echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
26258 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
26259
26260 ac_find_libraries=
26261 for ac_dir in $SEARCH_LIB /usr/lib;
26262   do
26263     for ac_extension in a so sl dylib; do
26264       if test -f "$ac_dir/libXm.$ac_extension"; then
26265         ac_find_libraries=$ac_dir
26266         break 2
26267       fi
26268     done
26269   done
26270
26271             if test "$ac_find_libraries" != "" ; then
26272                 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26273 echo "${ECHO_T}found at $ac_find_libraries" >&6
26274
26275
26276   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26277   result=$?
26278   if test $result = 0; then
26279     ac_path_to_link=""
26280   else
26281     ac_path_to_link=" -L$ac_find_libraries"
26282   fi
26283
26284                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26285             else
26286                                                                 save_CFLAGS=$CFLAGS
26287                 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26288
26289                 cat >conftest.$ac_ext <<_ACEOF
26290 /* confdefs.h.  */
26291 _ACEOF
26292 cat confdefs.h >>conftest.$ac_ext
26293 cat >>conftest.$ac_ext <<_ACEOF
26294 /* end confdefs.h.  */
26295
26296                         #include <Xm/Xm.h>
26297
26298 int
26299 main ()
26300 {
26301
26302                         int version;
26303                         version = xmUseVersion;
26304
26305   ;
26306   return 0;
26307 }
26308 _ACEOF
26309 rm -f conftest.$ac_objext
26310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26311   (eval $ac_compile) 2>conftest.er1
26312   ac_status=$?
26313   grep -v '^ *+' conftest.er1 >conftest.err
26314   rm -f conftest.er1
26315   cat conftest.err >&5
26316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26317   (exit $ac_status); } &&
26318          { ac_try='test -z "$ac_c_werror_flag"
26319                          || test ! -s conftest.err'
26320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26321   (eval $ac_try) 2>&5
26322   ac_status=$?
26323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26324   (exit $ac_status); }; } &&
26325          { ac_try='test -s conftest.$ac_objext'
26326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26327   (eval $ac_try) 2>&5
26328   ac_status=$?
26329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26330   (exit $ac_status); }; }; then
26331
26332                         echo "$as_me:$LINENO: result: found in default search path" >&5
26333 echo "${ECHO_T}found in default search path" >&6
26334                         COMPILED_X_PROGRAM=1
26335
26336 else
26337   echo "$as_me: failed program was:" >&5
26338 sed 's/^/| /' conftest.$ac_ext >&5
26339
26340
26341                         echo "$as_me:$LINENO: result: no" >&5
26342 echo "${ECHO_T}no" >&6
26343                         { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
26344 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
26345    { (exit 1); exit 1; }; }
26346
26347
26348 fi
26349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26350
26351                 CFLAGS=$save_CFLAGS
26352             fi
26353         fi
26354
26355         echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
26356 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
26357         libp_link=""
26358         libsm_ice_link=""
26359         libs_found=0
26360         for libp in "" " -lXp"; do
26361             if test "$libs_found" = "0"; then
26362                 for libsm_ice in "" " -lSM -lICE"; do
26363                     if test "$libs_found" = "0"; then
26364                         save_LIBS="$LIBS"
26365                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
26366                         save_CFLAGS=$CFLAGS
26367                         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26368
26369                         cat >conftest.$ac_ext <<_ACEOF
26370 /* confdefs.h.  */
26371 _ACEOF
26372 cat confdefs.h >>conftest.$ac_ext
26373 cat >>conftest.$ac_ext <<_ACEOF
26374 /* end confdefs.h.  */
26375
26376                                 #include <Xm/Xm.h>
26377                                 #include <Xm/List.h>
26378
26379 int
26380 main ()
26381 {
26382
26383                                 XmString string = NULL;
26384                                 Widget w = NULL;
26385                                 int position = 0;
26386                                 XmListAddItem(w, string, position);
26387
26388   ;
26389   return 0;
26390 }
26391 _ACEOF
26392 rm -f conftest.$ac_objext conftest$ac_exeext
26393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26394   (eval $ac_link) 2>conftest.er1
26395   ac_status=$?
26396   grep -v '^ *+' conftest.er1 >conftest.err
26397   rm -f conftest.er1
26398   cat conftest.err >&5
26399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26400   (exit $ac_status); } &&
26401          { ac_try='test -z "$ac_c_werror_flag"
26402                          || test ! -s conftest.err'
26403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26404   (eval $ac_try) 2>&5
26405   ac_status=$?
26406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26407   (exit $ac_status); }; } &&
26408          { ac_try='test -s conftest$ac_exeext'
26409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26410   (eval $ac_try) 2>&5
26411   ac_status=$?
26412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26413   (exit $ac_status); }; }; then
26414
26415                                 libp_link="$libp"
26416                                 libsm_ice_link="$libsm_ice"
26417                                 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
26418 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
26419                                 libs_found=1
26420
26421 else
26422   echo "$as_me: failed program was:" >&5
26423 sed 's/^/| /' conftest.$ac_ext >&5
26424
26425
26426
26427 fi
26428 rm -f conftest.err conftest.$ac_objext \
26429       conftest$ac_exeext conftest.$ac_ext
26430
26431                         LIBS="$save_LIBS"
26432                         CFLAGS=$save_CFLAGS
26433                     fi
26434                 done
26435             fi
26436         done
26437
26438         if test "$libs_found" = "0"; then
26439             echo "$as_me:$LINENO: result: can't find the right libraries" >&5
26440 echo "${ECHO_T}can't find the right libraries" >&6
26441             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
26442 echo "$as_me: error: can't link a simple motif program" >&2;}
26443    { (exit 1); exit 1; }; }
26444         fi
26445
26446         save_CFLAGS=$CFLAGS
26447         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26448         echo "$as_me:$LINENO: checking for Motif 2" >&5
26449 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
26450         cat >conftest.$ac_ext <<_ACEOF
26451 /* confdefs.h.  */
26452 _ACEOF
26453 cat confdefs.h >>conftest.$ac_ext
26454 cat >>conftest.$ac_ext <<_ACEOF
26455 /* end confdefs.h.  */
26456
26457                         #include <Xm/Xm.h>
26458
26459 int
26460 main ()
26461 {
26462
26463                         #if XmVersion < 2000
26464                         #error "Not Motif 2"
26465                         #endif
26466
26467   ;
26468   return 0;
26469 }
26470 _ACEOF
26471 rm -f conftest.$ac_objext
26472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26473   (eval $ac_compile) 2>conftest.er1
26474   ac_status=$?
26475   grep -v '^ *+' conftest.er1 >conftest.err
26476   rm -f conftest.er1
26477   cat conftest.err >&5
26478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479   (exit $ac_status); } &&
26480          { ac_try='test -z "$ac_c_werror_flag"
26481                          || test ! -s conftest.err'
26482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26483   (eval $ac_try) 2>&5
26484   ac_status=$?
26485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26486   (exit $ac_status); }; } &&
26487          { ac_try='test -s conftest.$ac_objext'
26488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26489   (eval $ac_try) 2>&5
26490   ac_status=$?
26491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492   (exit $ac_status); }; }; then
26493
26494                         cat >>confdefs.h <<\_ACEOF
26495 #define __WXMOTIF20__ 1
26496 _ACEOF
26497
26498                         echo "$as_me:$LINENO: result: found" >&5
26499 echo "${ECHO_T}found" >&6
26500
26501 else
26502   echo "$as_me: failed program was:" >&5
26503 sed 's/^/| /' conftest.$ac_ext >&5
26504
26505
26506                         cat >>confdefs.h <<\_ACEOF
26507 #define __WXMOTIF20__ 0
26508 _ACEOF
26509
26510                         echo "$as_me:$LINENO: result: not found" >&5
26511 echo "${ECHO_T}not found" >&6
26512
26513 fi
26514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26515         CFLAGS=$save_CFLAGS
26516
26517         GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
26518         TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
26519         TOOLKIT=MOTIF
26520         GUIDIST=MOTIF_DIST
26521     fi
26522
26523     if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
26524                 if test "$wxUSE_LIBXPM" = "sys"; then
26525             echo "$as_me:$LINENO: checking for Xpm library" >&5
26526 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26527
26528 ac_find_libraries=
26529 for ac_dir in $SEARCH_LIB /usr/lib;
26530   do
26531     for ac_extension in a so sl dylib; do
26532       if test -f "$ac_dir/libXpm.$ac_extension"; then
26533         ac_find_libraries=$ac_dir
26534         break 2
26535       fi
26536     done
26537   done
26538
26539             if test "$ac_find_libraries" != "" ; then
26540
26541   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26542   result=$?
26543   if test $result = 0; then
26544     ac_path_to_link=""
26545   else
26546     ac_path_to_link=" -L$ac_find_libraries"
26547   fi
26548
26549                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26550                 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26551 echo "${ECHO_T}found at $ac_find_libraries" >&6
26552
26553                 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26554 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26555 if test "${wx_cv_x11_xpm_h+set}" = set; then
26556   echo $ECHO_N "(cached) $ECHO_C" >&6
26557 else
26558
26559                         save_CFLAGS=$CFLAGS
26560                         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26561
26562                         cat >conftest.$ac_ext <<_ACEOF
26563 /* confdefs.h.  */
26564 _ACEOF
26565 cat confdefs.h >>conftest.$ac_ext
26566 cat >>conftest.$ac_ext <<_ACEOF
26567 /* end confdefs.h.  */
26568
26569                                 #include <X11/xpm.h>
26570
26571 int
26572 main ()
26573 {
26574
26575                                 int version;
26576                                 version = XpmLibraryVersion();
26577
26578   ;
26579   return 0;
26580 }
26581 _ACEOF
26582 rm -f conftest.$ac_objext
26583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26584   (eval $ac_compile) 2>conftest.er1
26585   ac_status=$?
26586   grep -v '^ *+' conftest.er1 >conftest.err
26587   rm -f conftest.er1
26588   cat conftest.err >&5
26589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26590   (exit $ac_status); } &&
26591          { ac_try='test -z "$ac_c_werror_flag"
26592                          || test ! -s conftest.err'
26593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26594   (eval $ac_try) 2>&5
26595   ac_status=$?
26596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26597   (exit $ac_status); }; } &&
26598          { ac_try='test -s conftest.$ac_objext'
26599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26600   (eval $ac_try) 2>&5
26601   ac_status=$?
26602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26603   (exit $ac_status); }; }; then
26604   wx_cv_x11_xpm_h=yes
26605 else
26606   echo "$as_me: failed program was:" >&5
26607 sed 's/^/| /' conftest.$ac_ext >&5
26608
26609 wx_cv_x11_xpm_h=no
26610
26611 fi
26612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26613
26614                         CFLAGS=$save_CFLAGS
26615
26616
26617 fi
26618 echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26619 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26620
26621                 if test $wx_cv_x11_xpm_h = "yes"; then
26622                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
26623                     cat >>confdefs.h <<\_ACEOF
26624 #define wxHAVE_LIB_XPM 1
26625 _ACEOF
26626
26627                 else
26628                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26629 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26630                 fi
26631             fi
26632
26633         fi
26634
26635                 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26636 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26637 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26638   echo $ECHO_N "(cached) $ECHO_C" >&6
26639 else
26640   ac_check_lib_save_LIBS=$LIBS
26641 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26642 cat >conftest.$ac_ext <<_ACEOF
26643 /* confdefs.h.  */
26644 _ACEOF
26645 cat confdefs.h >>conftest.$ac_ext
26646 cat >>conftest.$ac_ext <<_ACEOF
26647 /* end confdefs.h.  */
26648
26649 /* Override any gcc2 internal prototype to avoid an error.  */
26650 #ifdef __cplusplus
26651 extern "C"
26652 #endif
26653 /* We use char because int might match the return type of a gcc2
26654    builtin and then its argument prototype would still apply.  */
26655 char XShapeQueryExtension ();
26656 int
26657 main ()
26658 {
26659 XShapeQueryExtension ();
26660   ;
26661   return 0;
26662 }
26663 _ACEOF
26664 rm -f conftest.$ac_objext conftest$ac_exeext
26665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26666   (eval $ac_link) 2>conftest.er1
26667   ac_status=$?
26668   grep -v '^ *+' conftest.er1 >conftest.err
26669   rm -f conftest.er1
26670   cat conftest.err >&5
26671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26672   (exit $ac_status); } &&
26673          { ac_try='test -z "$ac_c_werror_flag"
26674                          || test ! -s conftest.err'
26675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26676   (eval $ac_try) 2>&5
26677   ac_status=$?
26678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26679   (exit $ac_status); }; } &&
26680          { ac_try='test -s conftest$ac_exeext'
26681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26682   (eval $ac_try) 2>&5
26683   ac_status=$?
26684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26685   (exit $ac_status); }; }; then
26686   ac_cv_lib_Xext_XShapeQueryExtension=yes
26687 else
26688   echo "$as_me: failed program was:" >&5
26689 sed 's/^/| /' conftest.$ac_ext >&5
26690
26691 ac_cv_lib_Xext_XShapeQueryExtension=no
26692 fi
26693 rm -f conftest.err conftest.$ac_objext \
26694       conftest$ac_exeext conftest.$ac_ext
26695 LIBS=$ac_check_lib_save_LIBS
26696 fi
26697 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26698 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26699 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26700
26701                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26702                       wxHAVE_XEXT_LIB=1
26703
26704 fi
26705
26706
26707         if test "$wxHAVE_XEXT_LIB" = 1; then
26708             save_CFLAGS="$CFLAGS"
26709             CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26710
26711             echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
26712 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
26713             cat >conftest.$ac_ext <<_ACEOF
26714 /* confdefs.h.  */
26715 _ACEOF
26716 cat confdefs.h >>conftest.$ac_ext
26717 cat >>conftest.$ac_ext <<_ACEOF
26718 /* end confdefs.h.  */
26719
26720                             #include <X11/Xlib.h>
26721                             #include <X11/extensions/shape.h>
26722
26723 int
26724 main ()
26725 {
26726
26727                             int dummy1, dummy2;
26728                             XShapeQueryExtension((Display*)NULL,
26729                                                  (int*)NULL, (int*)NULL);
26730
26731   ;
26732   return 0;
26733 }
26734 _ACEOF
26735 rm -f conftest.$ac_objext
26736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26737   (eval $ac_compile) 2>conftest.er1
26738   ac_status=$?
26739   grep -v '^ *+' conftest.er1 >conftest.err
26740   rm -f conftest.er1
26741   cat conftest.err >&5
26742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26743   (exit $ac_status); } &&
26744          { ac_try='test -z "$ac_c_werror_flag"
26745                          || test ! -s conftest.err'
26746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26747   (eval $ac_try) 2>&5
26748   ac_status=$?
26749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26750   (exit $ac_status); }; } &&
26751          { ac_try='test -s conftest.$ac_objext'
26752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26753   (eval $ac_try) 2>&5
26754   ac_status=$?
26755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26756   (exit $ac_status); }; }; then
26757
26758                             cat >>confdefs.h <<\_ACEOF
26759 #define HAVE_XSHAPE 1
26760 _ACEOF
26761
26762                             echo "$as_me:$LINENO: result: found" >&5
26763 echo "${ECHO_T}found" >&6
26764
26765 else
26766   echo "$as_me: failed program was:" >&5
26767 sed 's/^/| /' conftest.$ac_ext >&5
26768
26769
26770                             echo "$as_me:$LINENO: result: not found" >&5
26771 echo "${ECHO_T}not found" >&6
26772
26773 fi
26774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26775             CFLAGS="$save_CFLAGS"
26776
26777         fi
26778     fi
26779
26780     if test "$wxUSE_MAC" = 1; then
26781         echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26782 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26783         if test "$GCC" = yes; then
26784             echo "$as_me:$LINENO: result: gcc" >&5
26785 echo "${ECHO_T}gcc" >&6
26786             CPPFLAGS_PASCAL="-fpascal-strings"
26787         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26788             echo "$as_me:$LINENO: result: xlc" >&5
26789 echo "${ECHO_T}xlc" >&6
26790             CPPFLAGS_PASCAL="-qmacpstr"
26791         else
26792             echo "$as_me:$LINENO: result: none" >&5
26793 echo "${ECHO_T}none" >&6
26794         fi
26795
26796         CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
26797
26798         TOOLKIT_VPATH="\${top_srcdir}/src/mac/carbon${PATH_IFS}\${top_srcdir}/src/mac/carbon/morefilex"
26799         TOOLKIT=MAC
26800                 GUIDIST=MACX_DIST
26801                         WXBASEPORT="_carbon"
26802     fi
26803
26804     if test "$wxUSE_COCOA" = 1; then
26805         TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
26806         TOOLKIT=COCOA
26807         GUIDIST=COCOA_DIST
26808     fi
26809
26810     if test "$wxUSE_PM" = 1; then
26811         TOOLKIT=PM
26812         GUIDIST=GTK_DIST
26813     fi
26814
26815         if test "$TOOLKIT" = "PM" ; then
26816         TOOLKIT_DIR="os2"
26817     else
26818         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26819     fi
26820
26821         PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
26822
26823     if test "$wxUSE_UNIVERSAL" = "yes"; then
26824         ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
26825
26826                                 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
26827         ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
26828
26829         PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
26830         if test "$wxUSE_X11" = 1; then
26831             TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
26832         else
26833             TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
26834         fi
26835         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26836         WIDGET_SET=univ
26837     else
26838         ALL_OBJECTS="\$(GUIOBJS)"
26839         ALL_SOURCES="\$(ALL_SOURCES)"
26840         ALL_HEADERS="\$(ALL_HEADERS)"
26841     fi
26842
26843     ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
26844
26845     if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
26846         ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
26847     fi
26848
26849     if test "$wxUSE_HTML" = "yes"; then
26850         ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
26851     fi
26852
26853     if test "$wxUSE_LIBJPEG" = "builtin" ; then
26854         ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
26855     fi
26856     if test "$wxUSE_LIBTIFF" = "builtin" ; then
26857         ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
26858     fi
26859     if test "$wxUSE_LIBPNG" = "builtin" ; then
26860         ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
26861     fi
26862
26863         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26864     DISTDIR="wx\$(TOOLKIT)"
26865 else
26866     USE_GUI=0
26867
26868             TOOLKIT_DIR="base"
26869
26870         if test "$USE_WIN32" = 1 ; then
26871         ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
26872         TOOLKIT_VPATH="\${top_srcdir}/src/msw"
26873
26874                         TOOLKIT="MSW"
26875     else
26876         ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
26877         TOOLKIT_VPATH="\${top_srcdir}/src/unix"
26878     fi
26879
26880     ALL_SOURCES="\$(ALL_SOURCES)"
26881     ALL_HEADERS="\$(ALL_HEADERS)"
26882
26883     PORT_FILES="\${top_srcdir}/src/files.lst"
26884
26885         GUIDIST="BASE_DIST"
26886     DISTDIR="wxBase"
26887 fi
26888
26889
26890
26891
26892 IODBC_C_SRC=""
26893
26894
26895 if test "$TOOLKIT" != "MSW" ; then
26896
26897     if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
26898
26899         if test "${ac_cv_header_sql_h+set}" = set; then
26900   echo "$as_me:$LINENO: checking for sql.h" >&5
26901 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26902 if test "${ac_cv_header_sql_h+set}" = set; then
26903   echo $ECHO_N "(cached) $ECHO_C" >&6
26904 fi
26905 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26906 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26907 else
26908   # Is the header compilable?
26909 echo "$as_me:$LINENO: checking sql.h usability" >&5
26910 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26911 cat >conftest.$ac_ext <<_ACEOF
26912 /* confdefs.h.  */
26913 _ACEOF
26914 cat confdefs.h >>conftest.$ac_ext
26915 cat >>conftest.$ac_ext <<_ACEOF
26916 /* end confdefs.h.  */
26917 $ac_includes_default
26918 #include <sql.h>
26919 _ACEOF
26920 rm -f conftest.$ac_objext
26921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26922   (eval $ac_compile) 2>conftest.er1
26923   ac_status=$?
26924   grep -v '^ *+' conftest.er1 >conftest.err
26925   rm -f conftest.er1
26926   cat conftest.err >&5
26927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26928   (exit $ac_status); } &&
26929          { ac_try='test -z "$ac_c_werror_flag"
26930                          || test ! -s conftest.err'
26931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26932   (eval $ac_try) 2>&5
26933   ac_status=$?
26934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26935   (exit $ac_status); }; } &&
26936          { ac_try='test -s conftest.$ac_objext'
26937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26938   (eval $ac_try) 2>&5
26939   ac_status=$?
26940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26941   (exit $ac_status); }; }; then
26942   ac_header_compiler=yes
26943 else
26944   echo "$as_me: failed program was:" >&5
26945 sed 's/^/| /' conftest.$ac_ext >&5
26946
26947 ac_header_compiler=no
26948 fi
26949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26950 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26951 echo "${ECHO_T}$ac_header_compiler" >&6
26952
26953 # Is the header present?
26954 echo "$as_me:$LINENO: checking sql.h presence" >&5
26955 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26956 cat >conftest.$ac_ext <<_ACEOF
26957 /* confdefs.h.  */
26958 _ACEOF
26959 cat confdefs.h >>conftest.$ac_ext
26960 cat >>conftest.$ac_ext <<_ACEOF
26961 /* end confdefs.h.  */
26962 #include <sql.h>
26963 _ACEOF
26964 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26965   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26966   ac_status=$?
26967   grep -v '^ *+' conftest.er1 >conftest.err
26968   rm -f conftest.er1
26969   cat conftest.err >&5
26970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26971   (exit $ac_status); } >/dev/null; then
26972   if test -s conftest.err; then
26973     ac_cpp_err=$ac_c_preproc_warn_flag
26974     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26975   else
26976     ac_cpp_err=
26977   fi
26978 else
26979   ac_cpp_err=yes
26980 fi
26981 if test -z "$ac_cpp_err"; then
26982   ac_header_preproc=yes
26983 else
26984   echo "$as_me: failed program was:" >&5
26985 sed 's/^/| /' conftest.$ac_ext >&5
26986
26987   ac_header_preproc=no
26988 fi
26989 rm -f conftest.err conftest.$ac_ext
26990 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26991 echo "${ECHO_T}$ac_header_preproc" >&6
26992
26993 # So?  What about this header?
26994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26995   yes:no: )
26996     { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26997 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26998     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26999 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
27000     ac_header_preproc=yes
27001     ;;
27002   no:yes:* )
27003     { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
27004 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
27005     { echo "$as_me:$LINENO: WARNING: sql.h:     check for missing prerequisite headers?" >&5
27006 echo "$as_me: WARNING: sql.h:     check for missing prerequisite headers?" >&2;}
27007     { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
27008 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
27009     { echo "$as_me:$LINENO: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&5
27010 echo "$as_me: WARNING: sql.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27011     { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
27012 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
27013     { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
27014 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
27015     (
27016       cat <<\_ASBOX
27017 ## ----------------------------------------- ##
27018 ## Report this to wx-dev@lists.wxwindows.org ##
27019 ## ----------------------------------------- ##
27020 _ASBOX
27021     ) |
27022       sed "s/^/$as_me: WARNING:     /" >&2
27023     ;;
27024 esac
27025 echo "$as_me:$LINENO: checking for sql.h" >&5
27026 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
27027 if test "${ac_cv_header_sql_h+set}" = set; then
27028   echo $ECHO_N "(cached) $ECHO_C" >&6
27029 else
27030   ac_cv_header_sql_h=$ac_header_preproc
27031 fi
27032 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
27033 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
27034
27035 fi
27036 if test $ac_cv_header_sql_h = yes; then
27037   found_sql_h=1
27038 fi
27039
27040
27041         if test "x$found_sql_h" = "x1" ; then
27042             echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
27043 echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
27044 if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
27045   echo $ECHO_N "(cached) $ECHO_C" >&6
27046 else
27047   ac_check_lib_save_LIBS=$LIBS
27048 LIBS="-liodbc  $LIBS"
27049 cat >conftest.$ac_ext <<_ACEOF
27050 /* confdefs.h.  */
27051 _ACEOF
27052 cat confdefs.h >>conftest.$ac_ext
27053 cat >>conftest.$ac_ext <<_ACEOF
27054 /* end confdefs.h.  */
27055
27056 /* Override any gcc2 internal prototype to avoid an error.  */
27057 #ifdef __cplusplus
27058 extern "C"
27059 #endif
27060 /* We use char because int might match the return type of a gcc2
27061    builtin and then its argument prototype would still apply.  */
27062 char SQLAllocEnv ();
27063 int
27064 main ()
27065 {
27066 SQLAllocEnv ();
27067   ;
27068   return 0;
27069 }
27070 _ACEOF
27071 rm -f conftest.$ac_objext conftest$ac_exeext
27072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27073   (eval $ac_link) 2>conftest.er1
27074   ac_status=$?
27075   grep -v '^ *+' conftest.er1 >conftest.err
27076   rm -f conftest.er1
27077   cat conftest.err >&5
27078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27079   (exit $ac_status); } &&
27080          { ac_try='test -z "$ac_c_werror_flag"
27081                          || test ! -s conftest.err'
27082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27083   (eval $ac_try) 2>&5
27084   ac_status=$?
27085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27086   (exit $ac_status); }; } &&
27087          { ac_try='test -s conftest$ac_exeext'
27088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27089   (eval $ac_try) 2>&5
27090   ac_status=$?
27091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27092   (exit $ac_status); }; }; then
27093   ac_cv_lib_iodbc_SQLAllocEnv=yes
27094 else
27095   echo "$as_me: failed program was:" >&5
27096 sed 's/^/| /' conftest.$ac_ext >&5
27097
27098 ac_cv_lib_iodbc_SQLAllocEnv=no
27099 fi
27100 rm -f conftest.err conftest.$ac_objext \
27101       conftest$ac_exeext conftest.$ac_ext
27102 LIBS=$ac_check_lib_save_LIBS
27103 fi
27104 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
27105 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
27106 if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
27107   ODBC_LINK=" -liodbc"
27108 else
27109
27110                 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
27111 echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
27112 if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
27113   echo $ECHO_N "(cached) $ECHO_C" >&6
27114 else
27115   ac_check_lib_save_LIBS=$LIBS
27116 LIBS="-lunixodbc  $LIBS"
27117 cat >conftest.$ac_ext <<_ACEOF
27118 /* confdefs.h.  */
27119 _ACEOF
27120 cat confdefs.h >>conftest.$ac_ext
27121 cat >>conftest.$ac_ext <<_ACEOF
27122 /* end confdefs.h.  */
27123
27124 /* Override any gcc2 internal prototype to avoid an error.  */
27125 #ifdef __cplusplus
27126 extern "C"
27127 #endif
27128 /* We use char because int might match the return type of a gcc2
27129    builtin and then its argument prototype would still apply.  */
27130 char SQLAllocEnv ();
27131 int
27132 main ()
27133 {
27134 SQLAllocEnv ();
27135   ;
27136   return 0;
27137 }
27138 _ACEOF
27139 rm -f conftest.$ac_objext conftest$ac_exeext
27140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27141   (eval $ac_link) 2>conftest.er1
27142   ac_status=$?
27143   grep -v '^ *+' conftest.er1 >conftest.err
27144   rm -f conftest.er1
27145   cat conftest.err >&5
27146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27147   (exit $ac_status); } &&
27148          { ac_try='test -z "$ac_c_werror_flag"
27149                          || test ! -s conftest.err'
27150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27151   (eval $ac_try) 2>&5
27152   ac_status=$?
27153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154   (exit $ac_status); }; } &&
27155          { ac_try='test -s conftest$ac_exeext'
27156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27157   (eval $ac_try) 2>&5
27158   ac_status=$?
27159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27160   (exit $ac_status); }; }; then
27161   ac_cv_lib_unixodbc_SQLAllocEnv=yes
27162 else
27163   echo "$as_me: failed program was:" >&5
27164 sed 's/^/| /' conftest.$ac_ext >&5
27165
27166 ac_cv_lib_unixodbc_SQLAllocEnv=no
27167 fi
27168 rm -f conftest.err conftest.$ac_objext \
27169       conftest$ac_exeext conftest.$ac_ext
27170 LIBS=$ac_check_lib_save_LIBS
27171 fi
27172 echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
27173 echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
27174 if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
27175   ODBC_LINK=" -lunixodbc"
27176 else
27177
27178                     echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
27179 echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
27180 if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
27181   echo $ECHO_N "(cached) $ECHO_C" >&6
27182 else
27183   ac_check_lib_save_LIBS=$LIBS
27184 LIBS="-lodbc  $LIBS"
27185 cat >conftest.$ac_ext <<_ACEOF
27186 /* confdefs.h.  */
27187 _ACEOF
27188 cat confdefs.h >>conftest.$ac_ext
27189 cat >>conftest.$ac_ext <<_ACEOF
27190 /* end confdefs.h.  */
27191
27192 /* Override any gcc2 internal prototype to avoid an error.  */
27193 #ifdef __cplusplus
27194 extern "C"
27195 #endif
27196 /* We use char because int might match the return type of a gcc2
27197    builtin and then its argument prototype would still apply.  */
27198 char SQLAllocEnv ();
27199 int
27200 main ()
27201 {
27202 SQLAllocEnv ();
27203   ;
27204   return 0;
27205 }
27206 _ACEOF
27207 rm -f conftest.$ac_objext conftest$ac_exeext
27208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27209   (eval $ac_link) 2>conftest.er1
27210   ac_status=$?
27211   grep -v '^ *+' conftest.er1 >conftest.err
27212   rm -f conftest.er1
27213   cat conftest.err >&5
27214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27215   (exit $ac_status); } &&
27216          { ac_try='test -z "$ac_c_werror_flag"
27217                          || test ! -s conftest.err'
27218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27219   (eval $ac_try) 2>&5
27220   ac_status=$?
27221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27222   (exit $ac_status); }; } &&
27223          { ac_try='test -s conftest$ac_exeext'
27224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27225   (eval $ac_try) 2>&5
27226   ac_status=$?
27227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27228   (exit $ac_status); }; }; then
27229   ac_cv_lib_odbc_SQLAllocEnv=yes
27230 else
27231   echo "$as_me: failed program was:" >&5
27232 sed 's/^/| /' conftest.$ac_ext >&5
27233
27234 ac_cv_lib_odbc_SQLAllocEnv=no
27235 fi
27236 rm -f conftest.err conftest.$ac_objext \
27237       conftest$ac_exeext conftest.$ac_ext
27238 LIBS=$ac_check_lib_save_LIBS
27239 fi
27240 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
27241 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
27242 if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
27243   ODBC_LINK=" -lodbc"
27244 fi
27245
27246
27247 fi
27248
27249
27250 fi
27251
27252         fi
27253         if test "x$ODBC_LINK" = "x" ; then
27254             if test "$wxUSE_ODBC" = "sys" ; then
27255                 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
27256 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
27257    { (exit 1); exit 1; }; }
27258             else
27259                 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
27260 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
27261                 wxUSE_ODBC=builtin
27262             fi
27263         else
27264                         wxUSE_ODBC=sys
27265         fi
27266     fi
27267     if test "$wxUSE_ODBC" != "no" ; then
27268         cat >>confdefs.h <<\_ACEOF
27269 #define wxUSE_ODBC 1
27270 _ACEOF
27271
27272         if test "$wxUSE_ODBC" = "builtin" ; then
27273             cat >>confdefs.h <<\_ACEOF
27274 #define wxUSE_BUILTIN_IODBC 1
27275 _ACEOF
27276
27277         fi
27278         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
27279
27280                 WXODBCFLAG="-D_IODBC_"
27281     fi
27282 fi
27283
27284 if test "$wxUSE_REGEX" = "builtin" ; then
27285     ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
27286 fi
27287 if test "$wxUSE_ZLIB" = "builtin" ; then
27288     ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
27289 fi
27290
27291
27292 if test "$wxUSE_DISPLAY" = "yes"; then
27293     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1; then
27294         echo "$as_me:$LINENO: checking for Xinerama" >&5
27295 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
27296
27297 ac_find_libraries=
27298 for ac_dir in $SEARCH_LIB /usr/lib;
27299   do
27300     for ac_extension in a so sl dylib; do
27301       if test -f "$ac_dir/libXinerama.$ac_extension"; then
27302         ac_find_libraries=$ac_dir
27303         break 2
27304       fi
27305     done
27306   done
27307
27308         if test "$ac_find_libraries" != "" ; then
27309
27310   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27311   result=$?
27312   if test $result = 0; then
27313     ac_path_to_link=""
27314   else
27315     ac_path_to_link=" -L$ac_find_libraries"
27316   fi
27317
27318             if test "$ac_path_to_link" != " -L/usr/lib" ; then
27319                 LDFLAGS="$LDFLAGS $ac_path_to_link"
27320             fi
27321             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
27322             echo "$as_me:$LINENO: result: yes" >&5
27323 echo "${ECHO_T}yes" >&6
27324
27325             echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
27326 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
27327
27328 ac_find_libraries=
27329 for ac_dir in $SEARCH_LIB /usr/lib;
27330   do
27331     for ac_extension in a so sl dylib; do
27332       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
27333         ac_find_libraries=$ac_dir
27334         break 2
27335       fi
27336     done
27337   done
27338
27339             if test "$ac_find_libraries" != "" ; then
27340                 echo "$as_me:$LINENO: result: yes" >&5
27341 echo "${ECHO_T}yes" >&6
27342
27343 for ac_header in X11/extensions/xf86vmode.h
27344 do
27345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27346 echo "$as_me:$LINENO: checking for $ac_header" >&5
27347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27349   echo $ECHO_N "(cached) $ECHO_C" >&6
27350 else
27351   cat >conftest.$ac_ext <<_ACEOF
27352 /* confdefs.h.  */
27353 _ACEOF
27354 cat confdefs.h >>conftest.$ac_ext
27355 cat >>conftest.$ac_ext <<_ACEOF
27356 /* end confdefs.h.  */
27357
27358                                       #if HAVE_X11_XLIB_H
27359                                         #include <X11/Xlib.h>
27360                                       #endif
27361
27362
27363 #include <$ac_header>
27364 _ACEOF
27365 rm -f conftest.$ac_objext
27366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27367   (eval $ac_compile) 2>conftest.er1
27368   ac_status=$?
27369   grep -v '^ *+' conftest.er1 >conftest.err
27370   rm -f conftest.er1
27371   cat conftest.err >&5
27372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27373   (exit $ac_status); } &&
27374          { ac_try='test -z "$ac_c_werror_flag"
27375                          || test ! -s conftest.err'
27376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27377   (eval $ac_try) 2>&5
27378   ac_status=$?
27379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27380   (exit $ac_status); }; } &&
27381          { ac_try='test -s conftest.$ac_objext'
27382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27383   (eval $ac_try) 2>&5
27384   ac_status=$?
27385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27386   (exit $ac_status); }; }; then
27387   eval "$as_ac_Header=yes"
27388 else
27389   echo "$as_me: failed program was:" >&5
27390 sed 's/^/| /' conftest.$ac_ext >&5
27391
27392 eval "$as_ac_Header=no"
27393 fi
27394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27395 fi
27396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27399   cat >>confdefs.h <<_ACEOF
27400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27401 _ACEOF
27402
27403                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27404
27405 fi
27406
27407 done
27408
27409             else
27410                 echo "$as_me:$LINENO: result: no" >&5
27411 echo "${ECHO_T}no" >&6
27412             fi
27413
27414         else
27415             echo "$as_me:$LINENO: result: no" >&5
27416 echo "${ECHO_T}no" >&6
27417             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
27418 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
27419             wxUSE_DISPLAY="no"
27420         fi
27421     elif test "$wxUSE_MSW" = 1; then
27422
27423
27424 for ac_header in multimon.h ddraw.h
27425 do
27426 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27428   echo "$as_me:$LINENO: checking for $ac_header" >&5
27429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27431   echo $ECHO_N "(cached) $ECHO_C" >&6
27432 fi
27433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27435 else
27436   # Is the header compilable?
27437 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27438 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27439 cat >conftest.$ac_ext <<_ACEOF
27440 /* confdefs.h.  */
27441 _ACEOF
27442 cat confdefs.h >>conftest.$ac_ext
27443 cat >>conftest.$ac_ext <<_ACEOF
27444 /* end confdefs.h.  */
27445 $ac_includes_default
27446 #include <$ac_header>
27447 _ACEOF
27448 rm -f conftest.$ac_objext
27449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27450   (eval $ac_compile) 2>conftest.er1
27451   ac_status=$?
27452   grep -v '^ *+' conftest.er1 >conftest.err
27453   rm -f conftest.er1
27454   cat conftest.err >&5
27455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27456   (exit $ac_status); } &&
27457          { ac_try='test -z "$ac_c_werror_flag"
27458                          || test ! -s conftest.err'
27459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27460   (eval $ac_try) 2>&5
27461   ac_status=$?
27462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27463   (exit $ac_status); }; } &&
27464          { ac_try='test -s conftest.$ac_objext'
27465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27466   (eval $ac_try) 2>&5
27467   ac_status=$?
27468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27469   (exit $ac_status); }; }; then
27470   ac_header_compiler=yes
27471 else
27472   echo "$as_me: failed program was:" >&5
27473 sed 's/^/| /' conftest.$ac_ext >&5
27474
27475 ac_header_compiler=no
27476 fi
27477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27478 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27479 echo "${ECHO_T}$ac_header_compiler" >&6
27480
27481 # Is the header present?
27482 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27483 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27484 cat >conftest.$ac_ext <<_ACEOF
27485 /* confdefs.h.  */
27486 _ACEOF
27487 cat confdefs.h >>conftest.$ac_ext
27488 cat >>conftest.$ac_ext <<_ACEOF
27489 /* end confdefs.h.  */
27490 #include <$ac_header>
27491 _ACEOF
27492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27493   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27494   ac_status=$?
27495   grep -v '^ *+' conftest.er1 >conftest.err
27496   rm -f conftest.er1
27497   cat conftest.err >&5
27498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27499   (exit $ac_status); } >/dev/null; then
27500   if test -s conftest.err; then
27501     ac_cpp_err=$ac_c_preproc_warn_flag
27502     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27503   else
27504     ac_cpp_err=
27505   fi
27506 else
27507   ac_cpp_err=yes
27508 fi
27509 if test -z "$ac_cpp_err"; then
27510   ac_header_preproc=yes
27511 else
27512   echo "$as_me: failed program was:" >&5
27513 sed 's/^/| /' conftest.$ac_ext >&5
27514
27515   ac_header_preproc=no
27516 fi
27517 rm -f conftest.err conftest.$ac_ext
27518 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27519 echo "${ECHO_T}$ac_header_preproc" >&6
27520
27521 # So?  What about this header?
27522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27523   yes:no: )
27524     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27525 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27526     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27527 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27528     ac_header_preproc=yes
27529     ;;
27530   no:yes:* )
27531     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27532 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27533     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27534 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27535     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27536 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27537     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27538 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27539     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27541     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27542 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27543     (
27544       cat <<\_ASBOX
27545 ## ----------------------------------------- ##
27546 ## Report this to wx-dev@lists.wxwindows.org ##
27547 ## ----------------------------------------- ##
27548 _ASBOX
27549     ) |
27550       sed "s/^/$as_me: WARNING:     /" >&2
27551     ;;
27552 esac
27553 echo "$as_me:$LINENO: checking for $ac_header" >&5
27554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27556   echo $ECHO_N "(cached) $ECHO_C" >&6
27557 else
27558   eval "$as_ac_Header=\$ac_header_preproc"
27559 fi
27560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27561 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27562
27563 fi
27564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27565   cat >>confdefs.h <<_ACEOF
27566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27567 _ACEOF
27568
27569 else
27570
27571             wxUSE_DISPLAY="no"
27572             { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
27573 echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
27574
27575 fi
27576
27577 done
27578
27579     fi
27580 fi
27581
27582
27583 USE_OPENGL=0
27584 if test "$wxUSE_OPENGL" = "yes"; then
27585     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27586         OPENGL_LIBS="-framework OpenGL -framework AGL"
27587     elif test "$wxUSE_MSW" = 1; then
27588         OPENGL_LIBS="-lopengl32 -lglu32"
27589     else
27590
27591
27592 ac_find_includes=
27593 for ac_dir in $SEARCH_INCLUDE /usr/include;
27594   do
27595     if test -f "$ac_dir/GL/gl.h"; then
27596       ac_find_includes=$ac_dir
27597       break
27598     fi
27599   done
27600
27601         if test "$ac_find_includes" != "" ; then
27602             echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27603 echo "${ECHO_T}found in $ac_find_includes" >&6
27604
27605     if test "x$ac_find_includes" = "x/usr/include"; then
27606     ac_path_to_include=""
27607   else
27608     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27609     result=$?
27610     if test $result = 0; then
27611       ac_path_to_include=""
27612     else
27613       ac_path_to_include=" -I$ac_find_includes"
27614     fi
27615   fi
27616
27617             CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27618         fi
27619
27620         if test "${ac_cv_header_GL_gl_h+set}" = set; then
27621   echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27622 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27623 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27624   echo $ECHO_N "(cached) $ECHO_C" >&6
27625 fi
27626 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27627 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27628 else
27629   # Is the header compilable?
27630 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27631 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27632 cat >conftest.$ac_ext <<_ACEOF
27633 /* confdefs.h.  */
27634 _ACEOF
27635 cat confdefs.h >>conftest.$ac_ext
27636 cat >>conftest.$ac_ext <<_ACEOF
27637 /* end confdefs.h.  */
27638 $ac_includes_default
27639 #include <GL/gl.h>
27640 _ACEOF
27641 rm -f conftest.$ac_objext
27642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27643   (eval $ac_compile) 2>conftest.er1
27644   ac_status=$?
27645   grep -v '^ *+' conftest.er1 >conftest.err
27646   rm -f conftest.er1
27647   cat conftest.err >&5
27648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27649   (exit $ac_status); } &&
27650          { ac_try='test -z "$ac_c_werror_flag"
27651                          || test ! -s conftest.err'
27652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27653   (eval $ac_try) 2>&5
27654   ac_status=$?
27655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656   (exit $ac_status); }; } &&
27657          { ac_try='test -s conftest.$ac_objext'
27658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27659   (eval $ac_try) 2>&5
27660   ac_status=$?
27661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27662   (exit $ac_status); }; }; then
27663   ac_header_compiler=yes
27664 else
27665   echo "$as_me: failed program was:" >&5
27666 sed 's/^/| /' conftest.$ac_ext >&5
27667
27668 ac_header_compiler=no
27669 fi
27670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27671 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27672 echo "${ECHO_T}$ac_header_compiler" >&6
27673
27674 # Is the header present?
27675 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27676 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27677 cat >conftest.$ac_ext <<_ACEOF
27678 /* confdefs.h.  */
27679 _ACEOF
27680 cat confdefs.h >>conftest.$ac_ext
27681 cat >>conftest.$ac_ext <<_ACEOF
27682 /* end confdefs.h.  */
27683 #include <GL/gl.h>
27684 _ACEOF
27685 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27686   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27687   ac_status=$?
27688   grep -v '^ *+' conftest.er1 >conftest.err
27689   rm -f conftest.er1
27690   cat conftest.err >&5
27691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27692   (exit $ac_status); } >/dev/null; then
27693   if test -s conftest.err; then
27694     ac_cpp_err=$ac_c_preproc_warn_flag
27695     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27696   else
27697     ac_cpp_err=
27698   fi
27699 else
27700   ac_cpp_err=yes
27701 fi
27702 if test -z "$ac_cpp_err"; then
27703   ac_header_preproc=yes
27704 else
27705   echo "$as_me: failed program was:" >&5
27706 sed 's/^/| /' conftest.$ac_ext >&5
27707
27708   ac_header_preproc=no
27709 fi
27710 rm -f conftest.err conftest.$ac_ext
27711 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27712 echo "${ECHO_T}$ac_header_preproc" >&6
27713
27714 # So?  What about this header?
27715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27716   yes:no: )
27717     { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27718 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27719     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27720 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27721     ac_header_preproc=yes
27722     ;;
27723   no:yes:* )
27724     { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27725 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
27726     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&5
27727 echo "$as_me: WARNING: GL/gl.h:     check for missing prerequisite headers?" >&2;}
27728     { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27729 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27730     { echo "$as_me:$LINENO: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&5
27731 echo "$as_me: WARNING: GL/gl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
27732     { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27733 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
27734     { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27735 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
27736     (
27737       cat <<\_ASBOX
27738 ## ----------------------------------------- ##
27739 ## Report this to wx-dev@lists.wxwindows.org ##
27740 ## ----------------------------------------- ##
27741 _ASBOX
27742     ) |
27743       sed "s/^/$as_me: WARNING:     /" >&2
27744     ;;
27745 esac
27746 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27747 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27748 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27749   echo $ECHO_N "(cached) $ECHO_C" >&6
27750 else
27751   ac_cv_header_GL_gl_h=$ac_header_preproc
27752 fi
27753 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27754 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27755
27756 fi
27757 if test $ac_cv_header_GL_gl_h = yes; then
27758
27759                 found_gl=0
27760
27761                 echo "$as_me:$LINENO: checking for -lGL" >&5
27762 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27763
27764 ac_find_libraries=
27765 for ac_dir in $SEARCH_LIB /usr/lib;
27766   do
27767     for ac_extension in a so sl dylib; do
27768       if test -f "$ac_dir/libGL.$ac_extension"; then
27769         ac_find_libraries=$ac_dir
27770         break 2
27771       fi
27772     done
27773   done
27774
27775                 if test "$ac_find_libraries" != "" ; then
27776
27777   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27778   result=$?
27779   if test $result = 0; then
27780     ac_path_to_link=""
27781   else
27782     ac_path_to_link=" -L$ac_find_libraries"
27783   fi
27784
27785                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
27786                         LDFLAGS_GL="$ac_path_to_link"
27787                     fi
27788
27789
27790 ac_find_libraries=
27791 for ac_dir in $SEARCH_LIB /usr/lib;
27792   do
27793     for ac_extension in a so sl dylib; do
27794       if test -f "$ac_dir/libGLU.$ac_extension"; then
27795         ac_find_libraries=$ac_dir
27796         break 2
27797       fi
27798     done
27799   done
27800
27801                     if test "$ac_find_libraries" != "" ; then
27802
27803   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27804   result=$?
27805   if test $result = 0; then
27806     ac_path_to_link=""
27807   else
27808     ac_path_to_link=" -L$ac_find_libraries"
27809   fi
27810
27811                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
27812                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
27813                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27814                         fi
27815
27816                         found_gl=1
27817                         OPENGL_LIBS="-lGL -lGLU"
27818                         echo "$as_me:$LINENO: result: yes" >&5
27819 echo "${ECHO_T}yes" >&6
27820                     fi
27821                 fi
27822
27823                 if test "$found_gl" != 1; then
27824                     echo "$as_me:$LINENO: result: no" >&5
27825 echo "${ECHO_T}no" >&6
27826                     echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27827 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27828
27829 ac_find_libraries=
27830 for ac_dir in $SEARCH_LIB /usr/lib;
27831   do
27832     for ac_extension in a so sl dylib; do
27833       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27834         ac_find_libraries=$ac_dir
27835         break 2
27836       fi
27837     done
27838   done
27839
27840                     if test "$ac_find_libraries" != "" ; then
27841
27842   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27843   result=$?
27844   if test $result = 0; then
27845     ac_path_to_link=""
27846   else
27847     ac_path_to_link=" -L$ac_find_libraries"
27848   fi
27849
27850                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27851                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
27852                         echo "$as_me:$LINENO: result: yes" >&5
27853 echo "${ECHO_T}yes" >&6
27854                     else
27855                         echo "$as_me:$LINENO: result: no" >&5
27856 echo "${ECHO_T}no" >&6
27857                     fi
27858                 fi
27859
27860 fi
27861
27862
27863
27864         if test "x$OPENGL_LIBS" = "x"; then
27865                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
27866 echo "$as_me: error: OpenGL libraries not available" >&2;}
27867    { (exit 1); exit 1; }; }
27868         fi
27869     fi
27870
27871     if test "$wxUSE_OPENGL" = "yes"; then
27872         USE_OPENGL=1
27873         cat >>confdefs.h <<\_ACEOF
27874 #define wxUSE_OPENGL 1
27875 _ACEOF
27876
27877         cat >>confdefs.h <<\_ACEOF
27878 #define wxUSE_GLCANVAS 1
27879 _ACEOF
27880
27881         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
27882     fi
27883 fi
27884
27885 if test -z "$TOOLKIT_VPATH" ; then
27886     TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
27887 fi
27888
27889 if test -n "$TOOLKIT" ; then
27890     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
27891 fi
27892
27893 UNICODE=0
27894 lib_unicode_suffix=
27895 if test "$wxUSE_UNICODE" = "yes"; then
27896     lib_unicode_suffix=u
27897     UNICODE=1
27898 fi
27899
27900 lib_debug_suffix=
27901 DEBUG_FLAG=0
27902 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
27903     lib_debug_suffix=d
27904     DEBUG_FLAG=1
27905 fi
27906
27907 DEBUG_INFO=0
27908 if test "$wxUSE_DEBUG_INFO" = "yes"; then
27909     DEBUG_INFO=1
27910 fi
27911
27912 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
27913
27914 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
27915 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
27916
27917 if test "$cross_compiling" = "yes"; then
27918     TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
27919     TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
27920     HOST_SUFFIX="-${host_alias}"
27921 fi
27922
27923 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
27924 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
27925 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
27926 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
27927
27928 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27929 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27930
27931 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
27932 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27933 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
27934 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27935
27936 case "${host}" in
27937     *-*-cygwin* | *-*-mingw32* )
27938         WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
27939         WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27940         ;;
27941
27942     *-*-darwin* )
27943
27944         WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27945         WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27946
27947         WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
27948         WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27949         WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
27950         WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27951
27952                         if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27953             WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
27954             WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
27955         fi
27956         ;;
27957 esac
27958
27959 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
27960 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
27961
27962 WXCONFIG_LIBS="-l${WX_LIBRARY}"
27963 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
27964
27965 if test "$wxUSE_OPENGL" = "yes"; then
27966     WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
27967     WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
27968 fi
27969
27970
27971
27972 if test "$wxUSE_SHARED" = "yes"; then
27973     case "${host}" in
27974       *-pc-msdosdjgpp )
27975                 wxUSE_SHARED=no
27976         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27977 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
27978       ;;
27979     esac
27980 fi
27981
27982 SHARED=0
27983 if test "$wxUSE_SHARED" = "yes"; then
27984     SHARED=1
27985
27986
27987   found_versioning=no
27988
27989
27990     if test $found_versioning = no ; then
27991       echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27992 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27993 if test "${wx_cv_version_script+set}" = set; then
27994   echo $ECHO_N "(cached) $ECHO_C" >&6
27995 else
27996
27997         echo "VER_1 { *; };" >conftest.sym
27998         echo "int main() { return 0; }" >conftest.cpp
27999
28000         if { ac_try='
28001                 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
28002                 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
28003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28004   (eval $ac_try) 2>&5
28005   ac_status=$?
28006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28007   (exit $ac_status); }; } ; then
28008           if test -s conftest.stderr ; then
28009               wx_cv_version_script=no
28010           else
28011               wx_cv_version_script=yes
28012           fi
28013         else
28014           wx_cv_version_script=no
28015         fi
28016         rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
28017
28018 fi
28019 echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
28020 echo "${ECHO_T}$wx_cv_version_script" >&6
28021       if test $wx_cv_version_script = yes ; then
28022         LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
28023       fi
28024   fi
28025
28026
28027     case "${host}" in
28028       *-*-linux* | *-*-gnu* )
28029         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
28030         ;;
28031
28032       *-*-solaris2* )
28033         if test "$GCC" = yes ; then
28034                                     CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
28035
28036                                     saveLdflags="$LDFLAGS"
28037             LDFLAGS="$saveLdflags -Wl,-rpath,/"
28038             echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
28039 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
28040             cat >conftest.$ac_ext <<_ACEOF
28041 /* confdefs.h.  */
28042 _ACEOF
28043 cat confdefs.h >>conftest.$ac_ext
28044 cat >>conftest.$ac_ext <<_ACEOF
28045 /* end confdefs.h.  */
28046
28047 int
28048 main ()
28049 {
28050
28051   ;
28052   return 0;
28053 }
28054 _ACEOF
28055 rm -f conftest.$ac_objext conftest$ac_exeext
28056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28057   (eval $ac_link) 2>conftest.er1
28058   ac_status=$?
28059   grep -v '^ *+' conftest.er1 >conftest.err
28060   rm -f conftest.er1
28061   cat conftest.err >&5
28062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063   (exit $ac_status); } &&
28064          { ac_try='test -z "$ac_c_werror_flag"
28065                          || test ! -s conftest.err'
28066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28067   (eval $ac_try) 2>&5
28068   ac_status=$?
28069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28070   (exit $ac_status); }; } &&
28071          { ac_try='test -s conftest$ac_exeext'
28072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28073   (eval $ac_try) 2>&5
28074   ac_status=$?
28075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28076   (exit $ac_status); }; }; then
28077
28078                     echo "$as_me:$LINENO: result: yes" >&5
28079 echo "${ECHO_T}yes" >&6
28080                     SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
28081
28082 else
28083   echo "$as_me: failed program was:" >&5
28084 sed 's/^/| /' conftest.$ac_ext >&5
28085
28086
28087                     echo "$as_me:$LINENO: result: no" >&5
28088 echo "${ECHO_T}no" >&6
28089                     echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
28090 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
28091                     LDFLAGS="$saveLdflags -Wl,-R,/"
28092                     cat >conftest.$ac_ext <<_ACEOF
28093 /* confdefs.h.  */
28094 _ACEOF
28095 cat confdefs.h >>conftest.$ac_ext
28096 cat >>conftest.$ac_ext <<_ACEOF
28097 /* end confdefs.h.  */
28098
28099 int
28100 main ()
28101 {
28102
28103   ;
28104   return 0;
28105 }
28106 _ACEOF
28107 rm -f conftest.$ac_objext conftest$ac_exeext
28108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28109   (eval $ac_link) 2>conftest.er1
28110   ac_status=$?
28111   grep -v '^ *+' conftest.er1 >conftest.err
28112   rm -f conftest.er1
28113   cat conftest.err >&5
28114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115   (exit $ac_status); } &&
28116          { ac_try='test -z "$ac_c_werror_flag"
28117                          || test ! -s conftest.err'
28118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28119   (eval $ac_try) 2>&5
28120   ac_status=$?
28121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28122   (exit $ac_status); }; } &&
28123          { ac_try='test -s conftest$ac_exeext'
28124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28125   (eval $ac_try) 2>&5
28126   ac_status=$?
28127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28128   (exit $ac_status); }; }; then
28129
28130                              echo "$as_me:$LINENO: result: yes" >&5
28131 echo "${ECHO_T}yes" >&6
28132                              SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
28133 else
28134   echo "$as_me: failed program was:" >&5
28135 sed 's/^/| /' conftest.$ac_ext >&5
28136
28137
28138                             echo "$as_me:$LINENO: result: no" >&5
28139 echo "${ECHO_T}no" >&6
28140
28141 fi
28142 rm -f conftest.err conftest.$ac_objext \
28143       conftest$ac_exeext conftest.$ac_ext
28144
28145 fi
28146 rm -f conftest.err conftest.$ac_objext \
28147       conftest$ac_exeext conftest.$ac_ext
28148             LDFLAGS="$saveLdflags"
28149         else
28150             SHARED_LD="${CXX} -G -o"
28151             PIC_FLAG="-KPIC"
28152             SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
28153         fi
28154       ;;
28155
28156       powerpc-*-darwin* )
28157         SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
28158         cat <<EOF >change-install-names
28159 #!/bin/sh
28160 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
28161 inst_cmd="install_name_tool "
28162 for i in \${libnames} ; do
28163     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
28164 done
28165 \${inst_cmd} \${3}
28166 EOF
28167         chmod +x change-install-names
28168       ;;
28169
28170       *-*-cygwin* | *-*-mingw32* )
28171         TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
28172         ;;
28173
28174     esac
28175
28176         if test "x$WX_TARGET_LIBRARY" = "x"; then
28177         WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
28178         WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
28179     fi
28180
28181         WX_TARGET_LIBRARY_TYPE="so"
28182     INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
28183 fi
28184
28185 if test "$wxUSE_SHARED" = "no"; then
28186
28187         if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
28188                 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
28189     fi
28190
28191     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
28192         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
28193     fi
28194
28195     if test "$wxUSE_OPENGL" = "yes"; then
28196         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
28197         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
28198     else
28199         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
28200     fi
28201
28202     WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
28203     WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
28204
28205     WX_TARGET_LIBRARY_TYPE="a"
28206     INSTALL_LIBRARY='$(INSTALL_DATA)'
28207
28208             STATIC_FLAG="yes"
28209 else
28210     STATIC_FLAG="no"
28211 fi
28212
28213 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
28214         LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
28215     WX_ALL="${WX_ALL} ${LIBWXMACRES}"
28216     WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
28217
28218     # Extract the first word of "Rez", so it can be a program name with args.
28219 set dummy Rez; ac_word=$2
28220 echo "$as_me:$LINENO: checking for $ac_word" >&5
28221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28222 if test "${ac_cv_prog_RESCOMP+set}" = set; then
28223   echo $ECHO_N "(cached) $ECHO_C" >&6
28224 else
28225   if test -n "$RESCOMP"; then
28226   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
28227 else
28228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28229 for as_dir in $PATH
28230 do
28231   IFS=$as_save_IFS
28232   test -z "$as_dir" && as_dir=.
28233   for ac_exec_ext in '' $ac_executable_extensions; do
28234   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28235     ac_cv_prog_RESCOMP="Rez"
28236     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28237     break 2
28238   fi
28239 done
28240 done
28241
28242   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
28243 fi
28244 fi
28245 RESCOMP=$ac_cv_prog_RESCOMP
28246 if test -n "$RESCOMP"; then
28247   echo "$as_me:$LINENO: result: $RESCOMP" >&5
28248 echo "${ECHO_T}$RESCOMP" >&6
28249 else
28250   echo "$as_me:$LINENO: result: no" >&5
28251 echo "${ECHO_T}no" >&6
28252 fi
28253
28254     # Extract the first word of "DeRez", so it can be a program name with args.
28255 set dummy DeRez; ac_word=$2
28256 echo "$as_me:$LINENO: checking for $ac_word" >&5
28257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28258 if test "${ac_cv_prog_DEREZ+set}" = set; then
28259   echo $ECHO_N "(cached) $ECHO_C" >&6
28260 else
28261   if test -n "$DEREZ"; then
28262   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
28263 else
28264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28265 for as_dir in $PATH
28266 do
28267   IFS=$as_save_IFS
28268   test -z "$as_dir" && as_dir=.
28269   for ac_exec_ext in '' $ac_executable_extensions; do
28270   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28271     ac_cv_prog_DEREZ="DeRez"
28272     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28273     break 2
28274   fi
28275 done
28276 done
28277
28278   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
28279 fi
28280 fi
28281 DEREZ=$ac_cv_prog_DEREZ
28282 if test -n "$DEREZ"; then
28283   echo "$as_me:$LINENO: result: $DEREZ" >&5
28284 echo "${ECHO_T}$DEREZ" >&6
28285 else
28286   echo "$as_me:$LINENO: result: no" >&5
28287 echo "${ECHO_T}no" >&6
28288 fi
28289
28290     # Extract the first word of "SetFile", so it can be a program name with args.
28291 set dummy SetFile; ac_word=$2
28292 echo "$as_me:$LINENO: checking for $ac_word" >&5
28293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28294 if test "${ac_cv_prog_SETFILE+set}" = set; then
28295   echo $ECHO_N "(cached) $ECHO_C" >&6
28296 else
28297   if test -n "$SETFILE"; then
28298   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
28299 else
28300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28301 for as_dir in $PATH
28302 do
28303   IFS=$as_save_IFS
28304   test -z "$as_dir" && as_dir=.
28305   for ac_exec_ext in '' $ac_executable_extensions; do
28306   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28307     ac_cv_prog_SETFILE="SetFile"
28308     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28309     break 2
28310   fi
28311 done
28312 done
28313
28314   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
28315 fi
28316 fi
28317 SETFILE=$ac_cv_prog_SETFILE
28318 if test -n "$SETFILE"; then
28319   echo "$as_me:$LINENO: result: $SETFILE" >&5
28320 echo "${ECHO_T}$SETFILE" >&6
28321 else
28322   echo "$as_me:$LINENO: result: no" >&5
28323 echo "${ECHO_T}no" >&6
28324 fi
28325
28326
28327     MACSETFILE="\$(SETFILE)"
28328
28329             if test "$wxUSE_MAC" = 1; then
28330         MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
28331
28332                         MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28333     else
28334         MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
28335         MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28336     fi
28337 else
28338         MACSETFILE="@#"
28339     MACRESWXCONFIG="#"
28340
28341         if test "$wxUSE_PM" = 1; then
28342         MACRESCOMP="emxbind -ep"
28343     else
28344         MACRESCOMP="@#"
28345     fi
28346 fi
28347
28348
28349
28350 echo "$as_me:$LINENO: checking for mode_t" >&5
28351 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
28352 if test "${ac_cv_type_mode_t+set}" = set; then
28353   echo $ECHO_N "(cached) $ECHO_C" >&6
28354 else
28355   cat >conftest.$ac_ext <<_ACEOF
28356 /* confdefs.h.  */
28357 _ACEOF
28358 cat confdefs.h >>conftest.$ac_ext
28359 cat >>conftest.$ac_ext <<_ACEOF
28360 /* end confdefs.h.  */
28361 $ac_includes_default
28362 int
28363 main ()
28364 {
28365 if ((mode_t *) 0)
28366   return 0;
28367 if (sizeof (mode_t))
28368   return 0;
28369   ;
28370   return 0;
28371 }
28372 _ACEOF
28373 rm -f conftest.$ac_objext
28374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28375   (eval $ac_compile) 2>conftest.er1
28376   ac_status=$?
28377   grep -v '^ *+' conftest.er1 >conftest.err
28378   rm -f conftest.er1
28379   cat conftest.err >&5
28380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28381   (exit $ac_status); } &&
28382          { ac_try='test -z "$ac_c_werror_flag"
28383                          || test ! -s conftest.err'
28384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28385   (eval $ac_try) 2>&5
28386   ac_status=$?
28387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28388   (exit $ac_status); }; } &&
28389          { ac_try='test -s conftest.$ac_objext'
28390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28391   (eval $ac_try) 2>&5
28392   ac_status=$?
28393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28394   (exit $ac_status); }; }; then
28395   ac_cv_type_mode_t=yes
28396 else
28397   echo "$as_me: failed program was:" >&5
28398 sed 's/^/| /' conftest.$ac_ext >&5
28399
28400 ac_cv_type_mode_t=no
28401 fi
28402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28403 fi
28404 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28405 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28406 if test $ac_cv_type_mode_t = yes; then
28407   :
28408 else
28409
28410 cat >>confdefs.h <<_ACEOF
28411 #define mode_t int
28412 _ACEOF
28413
28414 fi
28415
28416 echo "$as_me:$LINENO: checking for off_t" >&5
28417 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28418 if test "${ac_cv_type_off_t+set}" = set; then
28419   echo $ECHO_N "(cached) $ECHO_C" >&6
28420 else
28421   cat >conftest.$ac_ext <<_ACEOF
28422 /* confdefs.h.  */
28423 _ACEOF
28424 cat confdefs.h >>conftest.$ac_ext
28425 cat >>conftest.$ac_ext <<_ACEOF
28426 /* end confdefs.h.  */
28427 $ac_includes_default
28428 int
28429 main ()
28430 {
28431 if ((off_t *) 0)
28432   return 0;
28433 if (sizeof (off_t))
28434   return 0;
28435   ;
28436   return 0;
28437 }
28438 _ACEOF
28439 rm -f conftest.$ac_objext
28440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28441   (eval $ac_compile) 2>conftest.er1
28442   ac_status=$?
28443   grep -v '^ *+' conftest.er1 >conftest.err
28444   rm -f conftest.er1
28445   cat conftest.err >&5
28446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28447   (exit $ac_status); } &&
28448          { ac_try='test -z "$ac_c_werror_flag"
28449                          || test ! -s conftest.err'
28450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28451   (eval $ac_try) 2>&5
28452   ac_status=$?
28453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28454   (exit $ac_status); }; } &&
28455          { ac_try='test -s conftest.$ac_objext'
28456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28457   (eval $ac_try) 2>&5
28458   ac_status=$?
28459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28460   (exit $ac_status); }; }; then
28461   ac_cv_type_off_t=yes
28462 else
28463   echo "$as_me: failed program was:" >&5
28464 sed 's/^/| /' conftest.$ac_ext >&5
28465
28466 ac_cv_type_off_t=no
28467 fi
28468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28469 fi
28470 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28471 echo "${ECHO_T}$ac_cv_type_off_t" >&6
28472 if test $ac_cv_type_off_t = yes; then
28473   :
28474 else
28475
28476 cat >>confdefs.h <<_ACEOF
28477 #define off_t long
28478 _ACEOF
28479
28480 fi
28481
28482 echo "$as_me:$LINENO: checking for pid_t" >&5
28483 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28484 if test "${ac_cv_type_pid_t+set}" = set; then
28485   echo $ECHO_N "(cached) $ECHO_C" >&6
28486 else
28487   cat >conftest.$ac_ext <<_ACEOF
28488 /* confdefs.h.  */
28489 _ACEOF
28490 cat confdefs.h >>conftest.$ac_ext
28491 cat >>conftest.$ac_ext <<_ACEOF
28492 /* end confdefs.h.  */
28493 $ac_includes_default
28494 int
28495 main ()
28496 {
28497 if ((pid_t *) 0)
28498   return 0;
28499 if (sizeof (pid_t))
28500   return 0;
28501   ;
28502   return 0;
28503 }
28504 _ACEOF
28505 rm -f conftest.$ac_objext
28506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28507   (eval $ac_compile) 2>conftest.er1
28508   ac_status=$?
28509   grep -v '^ *+' conftest.er1 >conftest.err
28510   rm -f conftest.er1
28511   cat conftest.err >&5
28512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28513   (exit $ac_status); } &&
28514          { ac_try='test -z "$ac_c_werror_flag"
28515                          || test ! -s conftest.err'
28516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28517   (eval $ac_try) 2>&5
28518   ac_status=$?
28519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28520   (exit $ac_status); }; } &&
28521          { ac_try='test -s conftest.$ac_objext'
28522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28523   (eval $ac_try) 2>&5
28524   ac_status=$?
28525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28526   (exit $ac_status); }; }; then
28527   ac_cv_type_pid_t=yes
28528 else
28529   echo "$as_me: failed program was:" >&5
28530 sed 's/^/| /' conftest.$ac_ext >&5
28531
28532 ac_cv_type_pid_t=no
28533 fi
28534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28535 fi
28536 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28537 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28538 if test $ac_cv_type_pid_t = yes; then
28539   :
28540 else
28541
28542 cat >>confdefs.h <<_ACEOF
28543 #define pid_t int
28544 _ACEOF
28545
28546 fi
28547
28548 echo "$as_me:$LINENO: checking for size_t" >&5
28549 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28550 if test "${ac_cv_type_size_t+set}" = set; then
28551   echo $ECHO_N "(cached) $ECHO_C" >&6
28552 else
28553   cat >conftest.$ac_ext <<_ACEOF
28554 /* confdefs.h.  */
28555 _ACEOF
28556 cat confdefs.h >>conftest.$ac_ext
28557 cat >>conftest.$ac_ext <<_ACEOF
28558 /* end confdefs.h.  */
28559 $ac_includes_default
28560 int
28561 main ()
28562 {
28563 if ((size_t *) 0)
28564   return 0;
28565 if (sizeof (size_t))
28566   return 0;
28567   ;
28568   return 0;
28569 }
28570 _ACEOF
28571 rm -f conftest.$ac_objext
28572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28573   (eval $ac_compile) 2>conftest.er1
28574   ac_status=$?
28575   grep -v '^ *+' conftest.er1 >conftest.err
28576   rm -f conftest.er1
28577   cat conftest.err >&5
28578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28579   (exit $ac_status); } &&
28580          { ac_try='test -z "$ac_c_werror_flag"
28581                          || test ! -s conftest.err'
28582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28583   (eval $ac_try) 2>&5
28584   ac_status=$?
28585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28586   (exit $ac_status); }; } &&
28587          { ac_try='test -s conftest.$ac_objext'
28588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28589   (eval $ac_try) 2>&5
28590   ac_status=$?
28591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28592   (exit $ac_status); }; }; then
28593   ac_cv_type_size_t=yes
28594 else
28595   echo "$as_me: failed program was:" >&5
28596 sed 's/^/| /' conftest.$ac_ext >&5
28597
28598 ac_cv_type_size_t=no
28599 fi
28600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28601 fi
28602 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28603 echo "${ECHO_T}$ac_cv_type_size_t" >&6
28604 if test $ac_cv_type_size_t = yes; then
28605   :
28606 else
28607
28608 cat >>confdefs.h <<_ACEOF
28609 #define size_t unsigned
28610 _ACEOF
28611
28612 fi
28613
28614 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28615 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28616 if test "${ac_cv_type_uid_t+set}" = set; then
28617   echo $ECHO_N "(cached) $ECHO_C" >&6
28618 else
28619   cat >conftest.$ac_ext <<_ACEOF
28620 /* confdefs.h.  */
28621 _ACEOF
28622 cat confdefs.h >>conftest.$ac_ext
28623 cat >>conftest.$ac_ext <<_ACEOF
28624 /* end confdefs.h.  */
28625 #include <sys/types.h>
28626
28627 _ACEOF
28628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28629   $EGREP "uid_t" >/dev/null 2>&1; then
28630   ac_cv_type_uid_t=yes
28631 else
28632   ac_cv_type_uid_t=no
28633 fi
28634 rm -f conftest*
28635
28636 fi
28637 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28638 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28639 if test $ac_cv_type_uid_t = no; then
28640
28641 cat >>confdefs.h <<\_ACEOF
28642 #define uid_t int
28643 _ACEOF
28644
28645
28646 cat >>confdefs.h <<\_ACEOF
28647 #define gid_t int
28648 _ACEOF
28649
28650 fi
28651
28652
28653
28654
28655 ac_ext=cc
28656 ac_cpp='$CXXCPP $CPPFLAGS'
28657 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28658 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28659 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28660
28661 echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28662 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28663 if test "${wx_cv_size_t_is_uint+set}" = set; then
28664   echo $ECHO_N "(cached) $ECHO_C" >&6
28665 else
28666
28667                             cat >conftest.$ac_ext <<_ACEOF
28668 /* confdefs.h.  */
28669 _ACEOF
28670 cat confdefs.h >>conftest.$ac_ext
28671 cat >>conftest.$ac_ext <<_ACEOF
28672 /* end confdefs.h.  */
28673 #include <stddef.h>
28674 int
28675 main ()
28676 {
28677
28678             return 0; }
28679
28680             struct Foo { void foo(size_t); void foo(unsigned int); };
28681
28682             int bar() {
28683
28684   ;
28685   return 0;
28686 }
28687 _ACEOF
28688 rm -f conftest.$ac_objext
28689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28690   (eval $ac_compile) 2>conftest.er1
28691   ac_status=$?
28692   grep -v '^ *+' conftest.er1 >conftest.err
28693   rm -f conftest.er1
28694   cat conftest.err >&5
28695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28696   (exit $ac_status); } &&
28697          { ac_try='test -z "$ac_cxx_werror_flag"
28698                          || test ! -s conftest.err'
28699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28700   (eval $ac_try) 2>&5
28701   ac_status=$?
28702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28703   (exit $ac_status); }; } &&
28704          { ac_try='test -s conftest.$ac_objext'
28705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28706   (eval $ac_try) 2>&5
28707   ac_status=$?
28708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28709   (exit $ac_status); }; }; then
28710   wx_cv_size_t_is_uint=no
28711 else
28712   echo "$as_me: failed program was:" >&5
28713 sed 's/^/| /' conftest.$ac_ext >&5
28714
28715 wx_cv_size_t_is_uint=yes
28716
28717 fi
28718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28719
28720
28721 fi
28722 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28723 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
28724
28725 if test "$wx_cv_size_t_is_uint" = "yes"; then
28726     cat >>confdefs.h <<\_ACEOF
28727 #define wxSIZE_T_IS_UINT 1
28728 _ACEOF
28729
28730 else
28731     echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28732 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28733 if test "${wx_cv_size_t_is_ulong+set}" = set; then
28734   echo $ECHO_N "(cached) $ECHO_C" >&6
28735 else
28736   cat >conftest.$ac_ext <<_ACEOF
28737 /* confdefs.h.  */
28738 _ACEOF
28739 cat confdefs.h >>conftest.$ac_ext
28740 cat >>conftest.$ac_ext <<_ACEOF
28741 /* end confdefs.h.  */
28742 #include <stddef.h>
28743 int
28744 main ()
28745 {
28746
28747                 return 0; }
28748
28749                 struct Foo { void foo(size_t); void foo(unsigned long); };
28750
28751                 int bar() {
28752
28753   ;
28754   return 0;
28755 }
28756 _ACEOF
28757 rm -f conftest.$ac_objext
28758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28759   (eval $ac_compile) 2>conftest.er1
28760   ac_status=$?
28761   grep -v '^ *+' conftest.er1 >conftest.err
28762   rm -f conftest.er1
28763   cat conftest.err >&5
28764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28765   (exit $ac_status); } &&
28766          { ac_try='test -z "$ac_cxx_werror_flag"
28767                          || test ! -s conftest.err'
28768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28769   (eval $ac_try) 2>&5
28770   ac_status=$?
28771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28772   (exit $ac_status); }; } &&
28773          { ac_try='test -s conftest.$ac_objext'
28774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28775   (eval $ac_try) 2>&5
28776   ac_status=$?
28777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28778   (exit $ac_status); }; }; then
28779   wx_cv_size_t_is_ulong=no
28780 else
28781   echo "$as_me: failed program was:" >&5
28782 sed 's/^/| /' conftest.$ac_ext >&5
28783
28784 wx_cv_size_t_is_ulong=yes
28785
28786 fi
28787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28788
28789 fi
28790 echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28791 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
28792
28793     if test "$wx_cv_size_t_is_ulong" = "yes"; then
28794         cat >>confdefs.h <<\_ACEOF
28795 #define wxSIZE_T_IS_ULONG 1
28796 _ACEOF
28797
28798     fi
28799 fi
28800
28801 ac_ext=c
28802 ac_cpp='$CPP $CPPFLAGS'
28803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28806
28807
28808
28809 echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28810 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28811 if test "${wx_cv_struct_pw_gecos+set}" = set; then
28812   echo $ECHO_N "(cached) $ECHO_C" >&6
28813 else
28814
28815         cat >conftest.$ac_ext <<_ACEOF
28816 /* confdefs.h.  */
28817 _ACEOF
28818 cat confdefs.h >>conftest.$ac_ext
28819 cat >>conftest.$ac_ext <<_ACEOF
28820 /* end confdefs.h.  */
28821 #include <pwd.h>
28822 int
28823 main ()
28824 {
28825
28826                 char *p;
28827                 struct passwd *pw;
28828                 p = pw->pw_gecos;
28829
28830   ;
28831   return 0;
28832 }
28833 _ACEOF
28834 rm -f conftest.$ac_objext
28835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28836   (eval $ac_compile) 2>conftest.er1
28837   ac_status=$?
28838   grep -v '^ *+' conftest.er1 >conftest.err
28839   rm -f conftest.er1
28840   cat conftest.err >&5
28841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28842   (exit $ac_status); } &&
28843          { ac_try='test -z "$ac_c_werror_flag"
28844                          || test ! -s conftest.err'
28845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28846   (eval $ac_try) 2>&5
28847   ac_status=$?
28848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28849   (exit $ac_status); }; } &&
28850          { ac_try='test -s conftest.$ac_objext'
28851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28852   (eval $ac_try) 2>&5
28853   ac_status=$?
28854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28855   (exit $ac_status); }; }; then
28856
28857                 wx_cv_struct_pw_gecos=yes
28858
28859 else
28860   echo "$as_me: failed program was:" >&5
28861 sed 's/^/| /' conftest.$ac_ext >&5
28862
28863
28864                 wx_cv_struct_pw_gecos=no
28865
28866
28867 fi
28868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28869
28870
28871 fi
28872 echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28873 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
28874
28875 if test "$wx_cv_struct_pw_gecos" = "yes"; then
28876     cat >>confdefs.h <<\_ACEOF
28877 #define HAVE_PW_GECOS 1
28878 _ACEOF
28879
28880 fi
28881
28882
28883 if test "$wx_cv_sizeof_wchar_t" != "0"; then
28884     cat >>confdefs.h <<\_ACEOF
28885 #define wxUSE_WCHAR_T 1
28886 _ACEOF
28887
28888
28889         WCSLEN_FOUND=0
28890     WCHAR_LINK=
28891
28892 for ac_func in wcslen
28893 do
28894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28895 echo "$as_me:$LINENO: checking for $ac_func" >&5
28896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28897 if eval "test \"\${$as_ac_var+set}\" = set"; then
28898   echo $ECHO_N "(cached) $ECHO_C" >&6
28899 else
28900   cat >conftest.$ac_ext <<_ACEOF
28901 /* confdefs.h.  */
28902 _ACEOF
28903 cat confdefs.h >>conftest.$ac_ext
28904 cat >>conftest.$ac_ext <<_ACEOF
28905 /* end confdefs.h.  */
28906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28907    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28908 #define $ac_func innocuous_$ac_func
28909
28910 /* System header to define __stub macros and hopefully few prototypes,
28911     which can conflict with char $ac_func (); below.
28912     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28913     <limits.h> exists even on freestanding compilers.  */
28914
28915 #ifdef __STDC__
28916 # include <limits.h>
28917 #else
28918 # include <assert.h>
28919 #endif
28920
28921 #undef $ac_func
28922
28923 /* Override any gcc2 internal prototype to avoid an error.  */
28924 #ifdef __cplusplus
28925 extern "C"
28926 {
28927 #endif
28928 /* We use char because int might match the return type of a gcc2
28929    builtin and then its argument prototype would still apply.  */
28930 char $ac_func ();
28931 /* The GNU C library defines this for functions which it implements
28932     to always fail with ENOSYS.  Some functions are actually named
28933     something starting with __ and the normal name is an alias.  */
28934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28935 choke me
28936 #else
28937 char (*f) () = $ac_func;
28938 #endif
28939 #ifdef __cplusplus
28940 }
28941 #endif
28942
28943 int
28944 main ()
28945 {
28946 return f != $ac_func;
28947   ;
28948   return 0;
28949 }
28950 _ACEOF
28951 rm -f conftest.$ac_objext conftest$ac_exeext
28952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28953   (eval $ac_link) 2>conftest.er1
28954   ac_status=$?
28955   grep -v '^ *+' conftest.er1 >conftest.err
28956   rm -f conftest.er1
28957   cat conftest.err >&5
28958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28959   (exit $ac_status); } &&
28960          { ac_try='test -z "$ac_c_werror_flag"
28961                          || test ! -s conftest.err'
28962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28963   (eval $ac_try) 2>&5
28964   ac_status=$?
28965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28966   (exit $ac_status); }; } &&
28967          { ac_try='test -s conftest$ac_exeext'
28968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28969   (eval $ac_try) 2>&5
28970   ac_status=$?
28971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28972   (exit $ac_status); }; }; then
28973   eval "$as_ac_var=yes"
28974 else
28975   echo "$as_me: failed program was:" >&5
28976 sed 's/^/| /' conftest.$ac_ext >&5
28977
28978 eval "$as_ac_var=no"
28979 fi
28980 rm -f conftest.err conftest.$ac_objext \
28981       conftest$ac_exeext conftest.$ac_ext
28982 fi
28983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28984 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28985 if test `eval echo '${'$as_ac_var'}'` = yes; then
28986   cat >>confdefs.h <<_ACEOF
28987 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28988 _ACEOF
28989  WCSLEN_FOUND=1
28990 fi
28991 done
28992
28993
28994     if test "$WCSLEN_FOUND" = 0; then
28995         if test "$TOOLKIT" = "MSW"; then
28996             echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28997 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28998 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28999   echo $ECHO_N "(cached) $ECHO_C" >&6
29000 else
29001   ac_check_lib_save_LIBS=$LIBS
29002 LIBS="-lmsvcrt  $LIBS"
29003 cat >conftest.$ac_ext <<_ACEOF
29004 /* confdefs.h.  */
29005 _ACEOF
29006 cat confdefs.h >>conftest.$ac_ext
29007 cat >>conftest.$ac_ext <<_ACEOF
29008 /* end confdefs.h.  */
29009
29010 /* Override any gcc2 internal prototype to avoid an error.  */
29011 #ifdef __cplusplus
29012 extern "C"
29013 #endif
29014 /* We use char because int might match the return type of a gcc2
29015    builtin and then its argument prototype would still apply.  */
29016 char wcslen ();
29017 int
29018 main ()
29019 {
29020 wcslen ();
29021   ;
29022   return 0;
29023 }
29024 _ACEOF
29025 rm -f conftest.$ac_objext conftest$ac_exeext
29026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29027   (eval $ac_link) 2>conftest.er1
29028   ac_status=$?
29029   grep -v '^ *+' conftest.er1 >conftest.err
29030   rm -f conftest.er1
29031   cat conftest.err >&5
29032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29033   (exit $ac_status); } &&
29034          { ac_try='test -z "$ac_c_werror_flag"
29035                          || test ! -s conftest.err'
29036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29037   (eval $ac_try) 2>&5
29038   ac_status=$?
29039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29040   (exit $ac_status); }; } &&
29041          { ac_try='test -s conftest$ac_exeext'
29042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29043   (eval $ac_try) 2>&5
29044   ac_status=$?
29045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29046   (exit $ac_status); }; }; then
29047   ac_cv_lib_msvcrt_wcslen=yes
29048 else
29049   echo "$as_me: failed program was:" >&5
29050 sed 's/^/| /' conftest.$ac_ext >&5
29051
29052 ac_cv_lib_msvcrt_wcslen=no
29053 fi
29054 rm -f conftest.err conftest.$ac_objext \
29055       conftest$ac_exeext conftest.$ac_ext
29056 LIBS=$ac_check_lib_save_LIBS
29057 fi
29058 echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
29059 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
29060 if test $ac_cv_lib_msvcrt_wcslen = yes; then
29061   WCHAR_OK=1
29062 fi
29063
29064         else
29065             echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
29066 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
29067 if test "${ac_cv_lib_w_wcslen+set}" = set; then
29068   echo $ECHO_N "(cached) $ECHO_C" >&6
29069 else
29070   ac_check_lib_save_LIBS=$LIBS
29071 LIBS="-lw  $LIBS"
29072 cat >conftest.$ac_ext <<_ACEOF
29073 /* confdefs.h.  */
29074 _ACEOF
29075 cat confdefs.h >>conftest.$ac_ext
29076 cat >>conftest.$ac_ext <<_ACEOF
29077 /* end confdefs.h.  */
29078
29079 /* Override any gcc2 internal prototype to avoid an error.  */
29080 #ifdef __cplusplus
29081 extern "C"
29082 #endif
29083 /* We use char because int might match the return type of a gcc2
29084    builtin and then its argument prototype would still apply.  */
29085 char wcslen ();
29086 int
29087 main ()
29088 {
29089 wcslen ();
29090   ;
29091   return 0;
29092 }
29093 _ACEOF
29094 rm -f conftest.$ac_objext conftest$ac_exeext
29095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29096   (eval $ac_link) 2>conftest.er1
29097   ac_status=$?
29098   grep -v '^ *+' conftest.er1 >conftest.err
29099   rm -f conftest.er1
29100   cat conftest.err >&5
29101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102   (exit $ac_status); } &&
29103          { ac_try='test -z "$ac_c_werror_flag"
29104                          || test ! -s conftest.err'
29105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29106   (eval $ac_try) 2>&5
29107   ac_status=$?
29108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29109   (exit $ac_status); }; } &&
29110          { ac_try='test -s conftest$ac_exeext'
29111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29112   (eval $ac_try) 2>&5
29113   ac_status=$?
29114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29115   (exit $ac_status); }; }; then
29116   ac_cv_lib_w_wcslen=yes
29117 else
29118   echo "$as_me: failed program was:" >&5
29119 sed 's/^/| /' conftest.$ac_ext >&5
29120
29121 ac_cv_lib_w_wcslen=no
29122 fi
29123 rm -f conftest.err conftest.$ac_objext \
29124       conftest$ac_exeext conftest.$ac_ext
29125 LIBS=$ac_check_lib_save_LIBS
29126 fi
29127 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
29128 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
29129 if test $ac_cv_lib_w_wcslen = yes; then
29130
29131                             WCHAR_LINK=" -lw"
29132                             WCSLEN_FOUND=1
29133
29134 fi
29135
29136         fi
29137     fi
29138
29139     if test "$WCSLEN_FOUND" = 1; then
29140         cat >>confdefs.h <<\_ACEOF
29141 #define HAVE_WCSLEN 1
29142 _ACEOF
29143
29144     fi
29145
29146         if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
29147         CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
29148     fi
29149
29150
29151 for ac_func in wcsrtombs
29152 do
29153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29154 echo "$as_me:$LINENO: checking for $ac_func" >&5
29155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29156 if eval "test \"\${$as_ac_var+set}\" = set"; then
29157   echo $ECHO_N "(cached) $ECHO_C" >&6
29158 else
29159   cat >conftest.$ac_ext <<_ACEOF
29160 /* confdefs.h.  */
29161 _ACEOF
29162 cat confdefs.h >>conftest.$ac_ext
29163 cat >>conftest.$ac_ext <<_ACEOF
29164 /* end confdefs.h.  */
29165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29166    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29167 #define $ac_func innocuous_$ac_func
29168
29169 /* System header to define __stub macros and hopefully few prototypes,
29170     which can conflict with char $ac_func (); below.
29171     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29172     <limits.h> exists even on freestanding compilers.  */
29173
29174 #ifdef __STDC__
29175 # include <limits.h>
29176 #else
29177 # include <assert.h>
29178 #endif
29179
29180 #undef $ac_func
29181
29182 /* Override any gcc2 internal prototype to avoid an error.  */
29183 #ifdef __cplusplus
29184 extern "C"
29185 {
29186 #endif
29187 /* We use char because int might match the return type of a gcc2
29188    builtin and then its argument prototype would still apply.  */
29189 char $ac_func ();
29190 /* The GNU C library defines this for functions which it implements
29191     to always fail with ENOSYS.  Some functions are actually named
29192     something starting with __ and the normal name is an alias.  */
29193 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29194 choke me
29195 #else
29196 char (*f) () = $ac_func;
29197 #endif
29198 #ifdef __cplusplus
29199 }
29200 #endif
29201
29202 int
29203 main ()
29204 {
29205 return f != $ac_func;
29206   ;
29207   return 0;
29208 }
29209 _ACEOF
29210 rm -f conftest.$ac_objext conftest$ac_exeext
29211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29212   (eval $ac_link) 2>conftest.er1
29213   ac_status=$?
29214   grep -v '^ *+' conftest.er1 >conftest.err
29215   rm -f conftest.er1
29216   cat conftest.err >&5
29217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29218   (exit $ac_status); } &&
29219          { ac_try='test -z "$ac_c_werror_flag"
29220                          || test ! -s conftest.err'
29221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29222   (eval $ac_try) 2>&5
29223   ac_status=$?
29224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29225   (exit $ac_status); }; } &&
29226          { ac_try='test -s conftest$ac_exeext'
29227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29228   (eval $ac_try) 2>&5
29229   ac_status=$?
29230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29231   (exit $ac_status); }; }; then
29232   eval "$as_ac_var=yes"
29233 else
29234   echo "$as_me: failed program was:" >&5
29235 sed 's/^/| /' conftest.$ac_ext >&5
29236
29237 eval "$as_ac_var=no"
29238 fi
29239 rm -f conftest.err conftest.$ac_objext \
29240       conftest$ac_exeext conftest.$ac_ext
29241 fi
29242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29243 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29244 if test `eval echo '${'$as_ac_var'}'` = yes; then
29245   cat >>confdefs.h <<_ACEOF
29246 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29247 _ACEOF
29248
29249 fi
29250 done
29251
29252 else
29253     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
29254 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
29255 fi
29256
29257
29258
29259 ac_ext=cc
29260 ac_cpp='$CXXCPP $CPPFLAGS'
29261 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29262 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29263 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29264
29265
29266
29267 for ac_func in vsnprintf
29268 do
29269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29270 echo "$as_me:$LINENO: checking for $ac_func" >&5
29271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29272 if eval "test \"\${$as_ac_var+set}\" = set"; then
29273   echo $ECHO_N "(cached) $ECHO_C" >&6
29274 else
29275   cat >conftest.$ac_ext <<_ACEOF
29276 /* confdefs.h.  */
29277 _ACEOF
29278 cat confdefs.h >>conftest.$ac_ext
29279 cat >>conftest.$ac_ext <<_ACEOF
29280 /* end confdefs.h.  */
29281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29282    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29283 #define $ac_func innocuous_$ac_func
29284
29285 /* System header to define __stub macros and hopefully few prototypes,
29286     which can conflict with char $ac_func (); below.
29287     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29288     <limits.h> exists even on freestanding compilers.  */
29289
29290 #ifdef __STDC__
29291 # include <limits.h>
29292 #else
29293 # include <assert.h>
29294 #endif
29295
29296 #undef $ac_func
29297
29298 /* Override any gcc2 internal prototype to avoid an error.  */
29299 #ifdef __cplusplus
29300 extern "C"
29301 {
29302 #endif
29303 /* We use char because int might match the return type of a gcc2
29304    builtin and then its argument prototype would still apply.  */
29305 char $ac_func ();
29306 /* The GNU C library defines this for functions which it implements
29307     to always fail with ENOSYS.  Some functions are actually named
29308     something starting with __ and the normal name is an alias.  */
29309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29310 choke me
29311 #else
29312 char (*f) () = $ac_func;
29313 #endif
29314 #ifdef __cplusplus
29315 }
29316 #endif
29317
29318 int
29319 main ()
29320 {
29321 return f != $ac_func;
29322   ;
29323   return 0;
29324 }
29325 _ACEOF
29326 rm -f conftest.$ac_objext conftest$ac_exeext
29327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29328   (eval $ac_link) 2>conftest.er1
29329   ac_status=$?
29330   grep -v '^ *+' conftest.er1 >conftest.err
29331   rm -f conftest.er1
29332   cat conftest.err >&5
29333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29334   (exit $ac_status); } &&
29335          { ac_try='test -z "$ac_cxx_werror_flag"
29336                          || test ! -s conftest.err'
29337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29338   (eval $ac_try) 2>&5
29339   ac_status=$?
29340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29341   (exit $ac_status); }; } &&
29342          { ac_try='test -s conftest$ac_exeext'
29343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29344   (eval $ac_try) 2>&5
29345   ac_status=$?
29346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29347   (exit $ac_status); }; }; then
29348   eval "$as_ac_var=yes"
29349 else
29350   echo "$as_me: failed program was:" >&5
29351 sed 's/^/| /' conftest.$ac_ext >&5
29352
29353 eval "$as_ac_var=no"
29354 fi
29355 rm -f conftest.err conftest.$ac_objext \
29356       conftest$ac_exeext conftest.$ac_ext
29357 fi
29358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29359 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29360 if test `eval echo '${'$as_ac_var'}'` = yes; then
29361   cat >>confdefs.h <<_ACEOF
29362 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29363 _ACEOF
29364
29365 fi
29366 done
29367
29368
29369 if test "$ac_cv_func_vsnprintf" = "yes"; then
29370         echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
29371 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
29372 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
29373   echo $ECHO_N "(cached) $ECHO_C" >&6
29374 else
29375
29376             cat >conftest.$ac_ext <<_ACEOF
29377 /* confdefs.h.  */
29378 _ACEOF
29379 cat confdefs.h >>conftest.$ac_ext
29380 cat >>conftest.$ac_ext <<_ACEOF
29381 /* end confdefs.h.  */
29382
29383                     #include <stdio.h>
29384                     #include <stdarg.h>
29385
29386 int
29387 main ()
29388 {
29389
29390                     char *buf;
29391                     va_list ap;
29392                     vsnprintf(buf, 10u, "%s", ap);
29393
29394   ;
29395   return 0;
29396 }
29397 _ACEOF
29398 rm -f conftest.$ac_objext
29399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29400   (eval $ac_compile) 2>conftest.er1
29401   ac_status=$?
29402   grep -v '^ *+' conftest.er1 >conftest.err
29403   rm -f conftest.er1
29404   cat conftest.err >&5
29405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406   (exit $ac_status); } &&
29407          { ac_try='test -z "$ac_cxx_werror_flag"
29408                          || test ! -s conftest.err'
29409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29410   (eval $ac_try) 2>&5
29411   ac_status=$?
29412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29413   (exit $ac_status); }; } &&
29414          { ac_try='test -s conftest.$ac_objext'
29415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29416   (eval $ac_try) 2>&5
29417   ac_status=$?
29418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29419   (exit $ac_status); }; }; then
29420   wx_cv_func_vsnprintf_decl=yes
29421 else
29422   echo "$as_me: failed program was:" >&5
29423 sed 's/^/| /' conftest.$ac_ext >&5
29424
29425 wx_cv_func_vsnprintf_decl=no
29426
29427 fi
29428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29429
29430
29431 fi
29432 echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29433 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
29434
29435     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
29436         cat >>confdefs.h <<\_ACEOF
29437 #define HAVE_VSNPRINTF_DECL 1
29438 _ACEOF
29439
29440     fi
29441 fi
29442
29443 if test "$wxUSE_UNICODE" = yes; then
29444
29445
29446
29447 for ac_func in fputwc wprintf vswprintf
29448 do
29449 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29450 echo "$as_me:$LINENO: checking for $ac_func" >&5
29451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29452 if eval "test \"\${$as_ac_var+set}\" = set"; then
29453   echo $ECHO_N "(cached) $ECHO_C" >&6
29454 else
29455   cat >conftest.$ac_ext <<_ACEOF
29456 /* confdefs.h.  */
29457 _ACEOF
29458 cat confdefs.h >>conftest.$ac_ext
29459 cat >>conftest.$ac_ext <<_ACEOF
29460 /* end confdefs.h.  */
29461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29462    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29463 #define $ac_func innocuous_$ac_func
29464
29465 /* System header to define __stub macros and hopefully few prototypes,
29466     which can conflict with char $ac_func (); below.
29467     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29468     <limits.h> exists even on freestanding compilers.  */
29469
29470 #ifdef __STDC__
29471 # include <limits.h>
29472 #else
29473 # include <assert.h>
29474 #endif
29475
29476 #undef $ac_func
29477
29478 /* Override any gcc2 internal prototype to avoid an error.  */
29479 #ifdef __cplusplus
29480 extern "C"
29481 {
29482 #endif
29483 /* We use char because int might match the return type of a gcc2
29484    builtin and then its argument prototype would still apply.  */
29485 char $ac_func ();
29486 /* The GNU C library defines this for functions which it implements
29487     to always fail with ENOSYS.  Some functions are actually named
29488     something starting with __ and the normal name is an alias.  */
29489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29490 choke me
29491 #else
29492 char (*f) () = $ac_func;
29493 #endif
29494 #ifdef __cplusplus
29495 }
29496 #endif
29497
29498 int
29499 main ()
29500 {
29501 return f != $ac_func;
29502   ;
29503   return 0;
29504 }
29505 _ACEOF
29506 rm -f conftest.$ac_objext conftest$ac_exeext
29507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29508   (eval $ac_link) 2>conftest.er1
29509   ac_status=$?
29510   grep -v '^ *+' conftest.er1 >conftest.err
29511   rm -f conftest.er1
29512   cat conftest.err >&5
29513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29514   (exit $ac_status); } &&
29515          { ac_try='test -z "$ac_cxx_werror_flag"
29516                          || test ! -s conftest.err'
29517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29518   (eval $ac_try) 2>&5
29519   ac_status=$?
29520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29521   (exit $ac_status); }; } &&
29522          { ac_try='test -s conftest$ac_exeext'
29523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29524   (eval $ac_try) 2>&5
29525   ac_status=$?
29526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29527   (exit $ac_status); }; }; then
29528   eval "$as_ac_var=yes"
29529 else
29530   echo "$as_me: failed program was:" >&5
29531 sed 's/^/| /' conftest.$ac_ext >&5
29532
29533 eval "$as_ac_var=no"
29534 fi
29535 rm -f conftest.err conftest.$ac_objext \
29536       conftest$ac_exeext conftest.$ac_ext
29537 fi
29538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29539 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29540 if test `eval echo '${'$as_ac_var'}'` = yes; then
29541   cat >>confdefs.h <<_ACEOF
29542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29543 _ACEOF
29544
29545 fi
29546 done
29547
29548
29549                 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29550 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29551     cat >conftest.$ac_ext <<_ACEOF
29552 /* confdefs.h.  */
29553 _ACEOF
29554 cat confdefs.h >>conftest.$ac_ext
29555 cat >>conftest.$ac_ext <<_ACEOF
29556 /* end confdefs.h.  */
29557 #include <wchar.h>
29558 int
29559 main ()
29560 {
29561 &_vsnwprintf;
29562   ;
29563   return 0;
29564 }
29565 _ACEOF
29566 rm -f conftest.$ac_objext
29567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29568   (eval $ac_compile) 2>conftest.er1
29569   ac_status=$?
29570   grep -v '^ *+' conftest.er1 >conftest.err
29571   rm -f conftest.er1
29572   cat conftest.err >&5
29573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29574   (exit $ac_status); } &&
29575          { ac_try='test -z "$ac_cxx_werror_flag"
29576                          || test ! -s conftest.err'
29577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29578   (eval $ac_try) 2>&5
29579   ac_status=$?
29580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29581   (exit $ac_status); }; } &&
29582          { ac_try='test -s conftest.$ac_objext'
29583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29584   (eval $ac_try) 2>&5
29585   ac_status=$?
29586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29587   (exit $ac_status); }; }; then
29588   echo "$as_me:$LINENO: result: yes" >&5
29589 echo "${ECHO_T}yes" >&6
29590                     cat >>confdefs.h <<\_ACEOF
29591 #define HAVE__VSNWPRINTF 1
29592 _ACEOF
29593
29594 else
29595   echo "$as_me: failed program was:" >&5
29596 sed 's/^/| /' conftest.$ac_ext >&5
29597
29598 echo "$as_me:$LINENO: result: no" >&5
29599 echo "${ECHO_T}no" >&6
29600 fi
29601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
29602 fi
29603
29604 ac_ext=c
29605 ac_cpp='$CPP $CPPFLAGS'
29606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29609
29610
29611
29612
29613 if test "$TOOLKIT" != "MSW"; then
29614
29615
29616
29617
29618 ac_ext=cc
29619 ac_cpp='$CXXCPP $CPPFLAGS'
29620 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29621 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29622 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29623
29624
29625
29626
29627 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29628 if test "${with_libiconv_prefix+set}" = set; then
29629   withval="$with_libiconv_prefix"
29630
29631     for dir in `echo "$withval" | tr : ' '`; do
29632       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29633       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29634     done
29635
29636 fi;
29637
29638   echo "$as_me:$LINENO: checking for iconv" >&5
29639 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29640 if test "${am_cv_func_iconv+set}" = set; then
29641   echo $ECHO_N "(cached) $ECHO_C" >&6
29642 else
29643
29644     am_cv_func_iconv="no, consider installing GNU libiconv"
29645     am_cv_lib_iconv=no
29646     cat >conftest.$ac_ext <<_ACEOF
29647 /* confdefs.h.  */
29648 _ACEOF
29649 cat confdefs.h >>conftest.$ac_ext
29650 cat >>conftest.$ac_ext <<_ACEOF
29651 /* end confdefs.h.  */
29652 #include <stdlib.h>
29653 #include <iconv.h>
29654 int
29655 main ()
29656 {
29657 iconv_t cd = iconv_open("","");
29658        iconv(cd,NULL,NULL,NULL,NULL);
29659        iconv_close(cd);
29660   ;
29661   return 0;
29662 }
29663 _ACEOF
29664 rm -f conftest.$ac_objext conftest$ac_exeext
29665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29666   (eval $ac_link) 2>conftest.er1
29667   ac_status=$?
29668   grep -v '^ *+' conftest.er1 >conftest.err
29669   rm -f conftest.er1
29670   cat conftest.err >&5
29671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29672   (exit $ac_status); } &&
29673          { ac_try='test -z "$ac_cxx_werror_flag"
29674                          || test ! -s conftest.err'
29675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29676   (eval $ac_try) 2>&5
29677   ac_status=$?
29678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29679   (exit $ac_status); }; } &&
29680          { ac_try='test -s conftest$ac_exeext'
29681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29682   (eval $ac_try) 2>&5
29683   ac_status=$?
29684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685   (exit $ac_status); }; }; then
29686   am_cv_func_iconv=yes
29687 else
29688   echo "$as_me: failed program was:" >&5
29689 sed 's/^/| /' conftest.$ac_ext >&5
29690
29691 fi
29692 rm -f conftest.err conftest.$ac_objext \
29693       conftest$ac_exeext conftest.$ac_ext
29694     if test "$am_cv_func_iconv" != yes; then
29695       am_save_LIBS="$LIBS"
29696       LIBS="$LIBS -liconv"
29697       cat >conftest.$ac_ext <<_ACEOF
29698 /* confdefs.h.  */
29699 _ACEOF
29700 cat confdefs.h >>conftest.$ac_ext
29701 cat >>conftest.$ac_ext <<_ACEOF
29702 /* end confdefs.h.  */
29703 #include <stdlib.h>
29704 #include <iconv.h>
29705 int
29706 main ()
29707 {
29708 iconv_t cd = iconv_open("","");
29709          iconv(cd,NULL,NULL,NULL,NULL);
29710          iconv_close(cd);
29711   ;
29712   return 0;
29713 }
29714 _ACEOF
29715 rm -f conftest.$ac_objext conftest$ac_exeext
29716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29717   (eval $ac_link) 2>conftest.er1
29718   ac_status=$?
29719   grep -v '^ *+' conftest.er1 >conftest.err
29720   rm -f conftest.er1
29721   cat conftest.err >&5
29722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29723   (exit $ac_status); } &&
29724          { ac_try='test -z "$ac_cxx_werror_flag"
29725                          || test ! -s conftest.err'
29726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29727   (eval $ac_try) 2>&5
29728   ac_status=$?
29729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29730   (exit $ac_status); }; } &&
29731          { ac_try='test -s conftest$ac_exeext'
29732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29733   (eval $ac_try) 2>&5
29734   ac_status=$?
29735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29736   (exit $ac_status); }; }; then
29737   am_cv_lib_iconv=yes
29738         am_cv_func_iconv=yes
29739 else
29740   echo "$as_me: failed program was:" >&5
29741 sed 's/^/| /' conftest.$ac_ext >&5
29742
29743 fi
29744 rm -f conftest.err conftest.$ac_objext \
29745       conftest$ac_exeext conftest.$ac_ext
29746       LIBS="$am_save_LIBS"
29747     fi
29748
29749 fi
29750 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29751 echo "${ECHO_T}$am_cv_func_iconv" >&6
29752   if test "$am_cv_func_iconv" = yes; then
29753
29754 cat >>confdefs.h <<\_ACEOF
29755 #define HAVE_ICONV 1
29756 _ACEOF
29757
29758     echo "$as_me:$LINENO: checking if iconv needs const" >&5
29759 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29760 if test "${wx_cv_func_iconv_const+set}" = set; then
29761   echo $ECHO_N "(cached) $ECHO_C" >&6
29762 else
29763   cat >conftest.$ac_ext <<_ACEOF
29764 /* confdefs.h.  */
29765 _ACEOF
29766 cat confdefs.h >>conftest.$ac_ext
29767 cat >>conftest.$ac_ext <<_ACEOF
29768 /* end confdefs.h.  */
29769
29770 #include <stdlib.h>
29771 #include <iconv.h>
29772 extern
29773 #ifdef __cplusplus
29774 "C"
29775 #endif
29776 #if defined(__STDC__) || defined(__cplusplus)
29777 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29778 #else
29779 size_t iconv();
29780 #endif
29781
29782 int
29783 main ()
29784 {
29785
29786   ;
29787   return 0;
29788 }
29789 _ACEOF
29790 rm -f conftest.$ac_objext
29791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29792   (eval $ac_compile) 2>conftest.er1
29793   ac_status=$?
29794   grep -v '^ *+' conftest.er1 >conftest.err
29795   rm -f conftest.er1
29796   cat conftest.err >&5
29797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29798   (exit $ac_status); } &&
29799          { ac_try='test -z "$ac_cxx_werror_flag"
29800                          || test ! -s conftest.err'
29801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29802   (eval $ac_try) 2>&5
29803   ac_status=$?
29804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29805   (exit $ac_status); }; } &&
29806          { ac_try='test -s conftest.$ac_objext'
29807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29808   (eval $ac_try) 2>&5
29809   ac_status=$?
29810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29811   (exit $ac_status); }; }; then
29812   wx_cv_func_iconv_const="no"
29813 else
29814   echo "$as_me: failed program was:" >&5
29815 sed 's/^/| /' conftest.$ac_ext >&5
29816
29817 wx_cv_func_iconv_const="yes"
29818
29819 fi
29820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29821
29822 fi
29823 echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29824 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
29825
29826     iconv_const=
29827     if test "x$wx_cv_func_iconv_const" = "xyes"; then
29828         iconv_const="const"
29829     fi
29830
29831
29832 cat >>confdefs.h <<_ACEOF
29833 #define ICONV_CONST $iconv_const
29834 _ACEOF
29835
29836   fi
29837   LIBICONV=
29838   if test "$am_cv_lib_iconv" = yes; then
29839     LIBICONV="-liconv"
29840   fi
29841
29842
29843 LIBS="$LIBICONV $LIBS"
29844 ac_ext=c
29845 ac_cpp='$CPP $CPPFLAGS'
29846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29849
29850
29851 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
29852
29853 for ac_func in sigaction
29854 do
29855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29856 echo "$as_me:$LINENO: checking for $ac_func" >&5
29857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29858 if eval "test \"\${$as_ac_var+set}\" = set"; then
29859   echo $ECHO_N "(cached) $ECHO_C" >&6
29860 else
29861   cat >conftest.$ac_ext <<_ACEOF
29862 /* confdefs.h.  */
29863 _ACEOF
29864 cat confdefs.h >>conftest.$ac_ext
29865 cat >>conftest.$ac_ext <<_ACEOF
29866 /* end confdefs.h.  */
29867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29868    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29869 #define $ac_func innocuous_$ac_func
29870
29871 /* System header to define __stub macros and hopefully few prototypes,
29872     which can conflict with char $ac_func (); below.
29873     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29874     <limits.h> exists even on freestanding compilers.  */
29875
29876 #ifdef __STDC__
29877 # include <limits.h>
29878 #else
29879 # include <assert.h>
29880 #endif
29881
29882 #undef $ac_func
29883
29884 /* Override any gcc2 internal prototype to avoid an error.  */
29885 #ifdef __cplusplus
29886 extern "C"
29887 {
29888 #endif
29889 /* We use char because int might match the return type of a gcc2
29890    builtin and then its argument prototype would still apply.  */
29891 char $ac_func ();
29892 /* The GNU C library defines this for functions which it implements
29893     to always fail with ENOSYS.  Some functions are actually named
29894     something starting with __ and the normal name is an alias.  */
29895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29896 choke me
29897 #else
29898 char (*f) () = $ac_func;
29899 #endif
29900 #ifdef __cplusplus
29901 }
29902 #endif
29903
29904 int
29905 main ()
29906 {
29907 return f != $ac_func;
29908   ;
29909   return 0;
29910 }
29911 _ACEOF
29912 rm -f conftest.$ac_objext conftest$ac_exeext
29913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29914   (eval $ac_link) 2>conftest.er1
29915   ac_status=$?
29916   grep -v '^ *+' conftest.er1 >conftest.err
29917   rm -f conftest.er1
29918   cat conftest.err >&5
29919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29920   (exit $ac_status); } &&
29921          { ac_try='test -z "$ac_c_werror_flag"
29922                          || test ! -s conftest.err'
29923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29924   (eval $ac_try) 2>&5
29925   ac_status=$?
29926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29927   (exit $ac_status); }; } &&
29928          { ac_try='test -s conftest$ac_exeext'
29929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29930   (eval $ac_try) 2>&5
29931   ac_status=$?
29932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29933   (exit $ac_status); }; }; then
29934   eval "$as_ac_var=yes"
29935 else
29936   echo "$as_me: failed program was:" >&5
29937 sed 's/^/| /' conftest.$ac_ext >&5
29938
29939 eval "$as_ac_var=no"
29940 fi
29941 rm -f conftest.err conftest.$ac_objext \
29942       conftest$ac_exeext conftest.$ac_ext
29943 fi
29944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29945 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29946 if test `eval echo '${'$as_ac_var'}'` = yes; then
29947   cat >>confdefs.h <<_ACEOF
29948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29949 _ACEOF
29950
29951 fi
29952 done
29953
29954
29955     if test "$ac_cv_func_sigaction" = "no"; then
29956         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29957 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
29958         wxUSE_ON_FATAL_EXCEPTION=no
29959     fi
29960
29961     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
29962
29963
29964       ac_ext=cc
29965 ac_cpp='$CXXCPP $CPPFLAGS'
29966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29969
29970
29971       echo "$as_me:$LINENO: checking for sa_handler type" >&5
29972 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29973 if test "${wx_cv_type_sa_handler+set}" = set; then
29974   echo $ECHO_N "(cached) $ECHO_C" >&6
29975 else
29976
29977         cat >conftest.$ac_ext <<_ACEOF
29978 /* confdefs.h.  */
29979 _ACEOF
29980 cat confdefs.h >>conftest.$ac_ext
29981 cat >>conftest.$ac_ext <<_ACEOF
29982 /* end confdefs.h.  */
29983 #include <signal.h>
29984 int
29985 main ()
29986 {
29987
29988                         extern void testSigHandler(int);
29989
29990                         struct sigaction sa;
29991                         sa.sa_handler = testSigHandler;
29992
29993   ;
29994   return 0;
29995 }
29996 _ACEOF
29997 rm -f conftest.$ac_objext
29998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29999   (eval $ac_compile) 2>conftest.er1
30000   ac_status=$?
30001   grep -v '^ *+' conftest.er1 >conftest.err
30002   rm -f conftest.er1
30003   cat conftest.err >&5
30004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30005   (exit $ac_status); } &&
30006          { ac_try='test -z "$ac_cxx_werror_flag"
30007                          || test ! -s conftest.err'
30008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30009   (eval $ac_try) 2>&5
30010   ac_status=$?
30011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30012   (exit $ac_status); }; } &&
30013          { ac_try='test -s conftest.$ac_objext'
30014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30015   (eval $ac_try) 2>&5
30016   ac_status=$?
30017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30018   (exit $ac_status); }; }; then
30019
30020                         wx_cv_type_sa_handler=int
30021
30022 else
30023   echo "$as_me: failed program was:" >&5
30024 sed 's/^/| /' conftest.$ac_ext >&5
30025
30026
30027                         wx_cv_type_sa_handler=void
30028
30029 fi
30030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30031
30032 fi
30033 echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
30034 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
30035
30036       ac_ext=c
30037 ac_cpp='$CPP $CPPFLAGS'
30038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30041
30042
30043       cat >>confdefs.h <<_ACEOF
30044 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
30045 _ACEOF
30046
30047     fi
30048 fi
30049
30050
30051
30052 for ac_func in mkstemp mktemp
30053 do
30054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30055 echo "$as_me:$LINENO: checking for $ac_func" >&5
30056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30057 if eval "test \"\${$as_ac_var+set}\" = set"; then
30058   echo $ECHO_N "(cached) $ECHO_C" >&6
30059 else
30060   cat >conftest.$ac_ext <<_ACEOF
30061 /* confdefs.h.  */
30062 _ACEOF
30063 cat confdefs.h >>conftest.$ac_ext
30064 cat >>conftest.$ac_ext <<_ACEOF
30065 /* end confdefs.h.  */
30066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30067    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30068 #define $ac_func innocuous_$ac_func
30069
30070 /* System header to define __stub macros and hopefully few prototypes,
30071     which can conflict with char $ac_func (); below.
30072     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30073     <limits.h> exists even on freestanding compilers.  */
30074
30075 #ifdef __STDC__
30076 # include <limits.h>
30077 #else
30078 # include <assert.h>
30079 #endif
30080
30081 #undef $ac_func
30082
30083 /* Override any gcc2 internal prototype to avoid an error.  */
30084 #ifdef __cplusplus
30085 extern "C"
30086 {
30087 #endif
30088 /* We use char because int might match the return type of a gcc2
30089    builtin and then its argument prototype would still apply.  */
30090 char $ac_func ();
30091 /* The GNU C library defines this for functions which it implements
30092     to always fail with ENOSYS.  Some functions are actually named
30093     something starting with __ and the normal name is an alias.  */
30094 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30095 choke me
30096 #else
30097 char (*f) () = $ac_func;
30098 #endif
30099 #ifdef __cplusplus
30100 }
30101 #endif
30102
30103 int
30104 main ()
30105 {
30106 return f != $ac_func;
30107   ;
30108   return 0;
30109 }
30110 _ACEOF
30111 rm -f conftest.$ac_objext conftest$ac_exeext
30112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30113   (eval $ac_link) 2>conftest.er1
30114   ac_status=$?
30115   grep -v '^ *+' conftest.er1 >conftest.err
30116   rm -f conftest.er1
30117   cat conftest.err >&5
30118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30119   (exit $ac_status); } &&
30120          { ac_try='test -z "$ac_c_werror_flag"
30121                          || test ! -s conftest.err'
30122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30123   (eval $ac_try) 2>&5
30124   ac_status=$?
30125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30126   (exit $ac_status); }; } &&
30127          { ac_try='test -s conftest$ac_exeext'
30128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30129   (eval $ac_try) 2>&5
30130   ac_status=$?
30131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30132   (exit $ac_status); }; }; then
30133   eval "$as_ac_var=yes"
30134 else
30135   echo "$as_me: failed program was:" >&5
30136 sed 's/^/| /' conftest.$ac_ext >&5
30137
30138 eval "$as_ac_var=no"
30139 fi
30140 rm -f conftest.err conftest.$ac_objext \
30141       conftest$ac_exeext conftest.$ac_ext
30142 fi
30143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30144 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30145 if test `eval echo '${'$as_ac_var'}'` = yes; then
30146   cat >>confdefs.h <<_ACEOF
30147 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30148 _ACEOF
30149  break
30150 fi
30151 done
30152
30153
30154 echo "$as_me:$LINENO: checking for statfs" >&5
30155 echo $ECHO_N "checking for statfs... $ECHO_C" >&6
30156 if test "${wx_cv_func_statfs+set}" = set; then
30157   echo $ECHO_N "(cached) $ECHO_C" >&6
30158 else
30159   cat >conftest.$ac_ext <<_ACEOF
30160 /* confdefs.h.  */
30161 _ACEOF
30162 cat confdefs.h >>conftest.$ac_ext
30163 cat >>conftest.$ac_ext <<_ACEOF
30164 /* end confdefs.h.  */
30165
30166              #if defined(__BSD__)
30167                #include <sys/param.h>
30168                #include <sys/mount.h>
30169              #else
30170                #include <sys/vfs.h>
30171              #endif
30172
30173 int
30174 main ()
30175 {
30176
30177              long l;
30178              struct statfs fs;
30179              statfs("/", &fs);
30180              l = fs.f_bsize;
30181              l += fs.f_blocks;
30182              l += fs.f_bavail;
30183
30184   ;
30185   return 0;
30186 }
30187 _ACEOF
30188 rm -f conftest.$ac_objext
30189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30190   (eval $ac_compile) 2>conftest.er1
30191   ac_status=$?
30192   grep -v '^ *+' conftest.er1 >conftest.err
30193   rm -f conftest.er1
30194   cat conftest.err >&5
30195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30196   (exit $ac_status); } &&
30197          { ac_try='test -z "$ac_c_werror_flag"
30198                          || test ! -s conftest.err'
30199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30200   (eval $ac_try) 2>&5
30201   ac_status=$?
30202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30203   (exit $ac_status); }; } &&
30204          { ac_try='test -s conftest.$ac_objext'
30205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30206   (eval $ac_try) 2>&5
30207   ac_status=$?
30208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30209   (exit $ac_status); }; }; then
30210
30211              wx_cv_func_statfs=yes
30212
30213 else
30214   echo "$as_me: failed program was:" >&5
30215 sed 's/^/| /' conftest.$ac_ext >&5
30216
30217
30218              wx_cv_func_statfs=no
30219
30220
30221 fi
30222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30223
30224 fi
30225 echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
30226 echo "${ECHO_T}$wx_cv_func_statfs" >&6
30227
30228 if test "$wx_cv_func_statfs" = "yes"; then
30229     wx_cv_type_statvfs_t="struct statfs"
30230     cat >>confdefs.h <<\_ACEOF
30231 #define HAVE_STATFS 1
30232 _ACEOF
30233
30234 else
30235     echo "$as_me:$LINENO: checking for statvfs" >&5
30236 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
30237 if test "${wx_cv_func_statvfs+set}" = set; then
30238   echo $ECHO_N "(cached) $ECHO_C" >&6
30239 else
30240   cat >conftest.$ac_ext <<_ACEOF
30241 /* confdefs.h.  */
30242 _ACEOF
30243 cat confdefs.h >>conftest.$ac_ext
30244 cat >>conftest.$ac_ext <<_ACEOF
30245 /* end confdefs.h.  */
30246
30247                 #include <stddef.h>
30248                 #include <sys/statvfs.h>
30249
30250 int
30251 main ()
30252 {
30253
30254                 statvfs("/", NULL);
30255
30256   ;
30257   return 0;
30258 }
30259 _ACEOF
30260 rm -f conftest.$ac_objext
30261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30262   (eval $ac_compile) 2>conftest.er1
30263   ac_status=$?
30264   grep -v '^ *+' conftest.er1 >conftest.err
30265   rm -f conftest.er1
30266   cat conftest.err >&5
30267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30268   (exit $ac_status); } &&
30269          { ac_try='test -z "$ac_c_werror_flag"
30270                          || test ! -s conftest.err'
30271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30272   (eval $ac_try) 2>&5
30273   ac_status=$?
30274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30275   (exit $ac_status); }; } &&
30276          { ac_try='test -s conftest.$ac_objext'
30277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30278   (eval $ac_try) 2>&5
30279   ac_status=$?
30280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30281   (exit $ac_status); }; }; then
30282   wx_cv_func_statvfs=yes
30283 else
30284   echo "$as_me: failed program was:" >&5
30285 sed 's/^/| /' conftest.$ac_ext >&5
30286
30287 wx_cv_func_statvfs=no
30288
30289 fi
30290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30291
30292 fi
30293 echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
30294 echo "${ECHO_T}$wx_cv_func_statvfs" >&6
30295
30296     if test "$wx_cv_func_statvfs" = "yes"; then
30297
30298
30299         ac_ext=cc
30300 ac_cpp='$CXXCPP $CPPFLAGS'
30301 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30302 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30303 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30304
30305
30306         echo "$as_me:$LINENO: checking for statvfs argument type" >&5
30307 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
30308 if test "${wx_cv_type_statvfs_t+set}" = set; then
30309   echo $ECHO_N "(cached) $ECHO_C" >&6
30310 else
30311   cat >conftest.$ac_ext <<_ACEOF
30312 /* confdefs.h.  */
30313 _ACEOF
30314 cat confdefs.h >>conftest.$ac_ext
30315 cat >>conftest.$ac_ext <<_ACEOF
30316 /* end confdefs.h.  */
30317
30318                     #include <sys/statvfs.h>
30319
30320 int
30321 main ()
30322 {
30323
30324                     long l;
30325                     statvfs_t fs;
30326                     statvfs("/", &fs);
30327                     l = fs.f_bsize;
30328                     l += fs.f_blocks;
30329                     l += fs.f_bavail;
30330
30331   ;
30332   return 0;
30333 }
30334 _ACEOF
30335 rm -f conftest.$ac_objext
30336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30337   (eval $ac_compile) 2>conftest.er1
30338   ac_status=$?
30339   grep -v '^ *+' conftest.er1 >conftest.err
30340   rm -f conftest.er1
30341   cat conftest.err >&5
30342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30343   (exit $ac_status); } &&
30344          { ac_try='test -z "$ac_cxx_werror_flag"
30345                          || test ! -s conftest.err'
30346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30347   (eval $ac_try) 2>&5
30348   ac_status=$?
30349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30350   (exit $ac_status); }; } &&
30351          { ac_try='test -s conftest.$ac_objext'
30352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30353   (eval $ac_try) 2>&5
30354   ac_status=$?
30355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30356   (exit $ac_status); }; }; then
30357   wx_cv_type_statvfs_t=statvfs_t
30358 else
30359   echo "$as_me: failed program was:" >&5
30360 sed 's/^/| /' conftest.$ac_ext >&5
30361
30362
30363                     cat >conftest.$ac_ext <<_ACEOF
30364 /* confdefs.h.  */
30365 _ACEOF
30366 cat confdefs.h >>conftest.$ac_ext
30367 cat >>conftest.$ac_ext <<_ACEOF
30368 /* end confdefs.h.  */
30369
30370                             #include <sys/statvfs.h>
30371
30372 int
30373 main ()
30374 {
30375
30376                             long l;
30377                             struct statvfs fs;
30378                             statvfs("/", &fs);
30379                             l = fs.f_bsize;
30380                             l += fs.f_blocks;
30381                             l += fs.f_bavail;
30382
30383   ;
30384   return 0;
30385 }
30386 _ACEOF
30387 rm -f conftest.$ac_objext
30388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30389   (eval $ac_compile) 2>conftest.er1
30390   ac_status=$?
30391   grep -v '^ *+' conftest.er1 >conftest.err
30392   rm -f conftest.er1
30393   cat conftest.err >&5
30394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30395   (exit $ac_status); } &&
30396          { ac_try='test -z "$ac_cxx_werror_flag"
30397                          || test ! -s conftest.err'
30398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30399   (eval $ac_try) 2>&5
30400   ac_status=$?
30401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30402   (exit $ac_status); }; } &&
30403          { ac_try='test -s conftest.$ac_objext'
30404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30405   (eval $ac_try) 2>&5
30406   ac_status=$?
30407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30408   (exit $ac_status); }; }; then
30409   wx_cv_type_statvfs_t="struct statvfs"
30410 else
30411   echo "$as_me: failed program was:" >&5
30412 sed 's/^/| /' conftest.$ac_ext >&5
30413
30414 wx_cv_type_statvfs_t="unknown"
30415
30416 fi
30417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30418
30419
30420 fi
30421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30422
30423 fi
30424 echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
30425 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
30426
30427         ac_ext=c
30428 ac_cpp='$CPP $CPPFLAGS'
30429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30432
30433
30434         if test "$wx_cv_type_statvfs_t" != "unknown"; then
30435             cat >>confdefs.h <<\_ACEOF
30436 #define HAVE_STATVFS 1
30437 _ACEOF
30438
30439         fi
30440     else
30441                 wx_cv_type_statvfs_t="unknown"
30442     fi
30443 fi
30444
30445 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30446     cat >>confdefs.h <<_ACEOF
30447 #define WX_STATFS_T $wx_cv_type_statvfs_t
30448 _ACEOF
30449
30450 else
30451     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30452 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
30453 fi
30454
30455 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30456
30457
30458 for ac_func in fcntl flock
30459 do
30460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30461 echo "$as_me:$LINENO: checking for $ac_func" >&5
30462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30463 if eval "test \"\${$as_ac_var+set}\" = set"; then
30464   echo $ECHO_N "(cached) $ECHO_C" >&6
30465 else
30466   cat >conftest.$ac_ext <<_ACEOF
30467 /* confdefs.h.  */
30468 _ACEOF
30469 cat confdefs.h >>conftest.$ac_ext
30470 cat >>conftest.$ac_ext <<_ACEOF
30471 /* end confdefs.h.  */
30472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30473    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30474 #define $ac_func innocuous_$ac_func
30475
30476 /* System header to define __stub macros and hopefully few prototypes,
30477     which can conflict with char $ac_func (); below.
30478     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30479     <limits.h> exists even on freestanding compilers.  */
30480
30481 #ifdef __STDC__
30482 # include <limits.h>
30483 #else
30484 # include <assert.h>
30485 #endif
30486
30487 #undef $ac_func
30488
30489 /* Override any gcc2 internal prototype to avoid an error.  */
30490 #ifdef __cplusplus
30491 extern "C"
30492 {
30493 #endif
30494 /* We use char because int might match the return type of a gcc2
30495    builtin and then its argument prototype would still apply.  */
30496 char $ac_func ();
30497 /* The GNU C library defines this for functions which it implements
30498     to always fail with ENOSYS.  Some functions are actually named
30499     something starting with __ and the normal name is an alias.  */
30500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30501 choke me
30502 #else
30503 char (*f) () = $ac_func;
30504 #endif
30505 #ifdef __cplusplus
30506 }
30507 #endif
30508
30509 int
30510 main ()
30511 {
30512 return f != $ac_func;
30513   ;
30514   return 0;
30515 }
30516 _ACEOF
30517 rm -f conftest.$ac_objext conftest$ac_exeext
30518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30519   (eval $ac_link) 2>conftest.er1
30520   ac_status=$?
30521   grep -v '^ *+' conftest.er1 >conftest.err
30522   rm -f conftest.er1
30523   cat conftest.err >&5
30524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30525   (exit $ac_status); } &&
30526          { ac_try='test -z "$ac_c_werror_flag"
30527                          || test ! -s conftest.err'
30528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30529   (eval $ac_try) 2>&5
30530   ac_status=$?
30531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30532   (exit $ac_status); }; } &&
30533          { ac_try='test -s conftest$ac_exeext'
30534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30535   (eval $ac_try) 2>&5
30536   ac_status=$?
30537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30538   (exit $ac_status); }; }; then
30539   eval "$as_ac_var=yes"
30540 else
30541   echo "$as_me: failed program was:" >&5
30542 sed 's/^/| /' conftest.$ac_ext >&5
30543
30544 eval "$as_ac_var=no"
30545 fi
30546 rm -f conftest.err conftest.$ac_objext \
30547       conftest$ac_exeext conftest.$ac_ext
30548 fi
30549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30550 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30551 if test `eval echo '${'$as_ac_var'}'` = yes; then
30552   cat >>confdefs.h <<_ACEOF
30553 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30554 _ACEOF
30555  break
30556 fi
30557 done
30558
30559
30560     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
30561         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
30562 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
30563         wxUSE_SNGLINST_CHECKER=no
30564     fi
30565 fi
30566
30567
30568 for ac_func in timegm
30569 do
30570 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30571 echo "$as_me:$LINENO: checking for $ac_func" >&5
30572 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30573 if eval "test \"\${$as_ac_var+set}\" = set"; then
30574   echo $ECHO_N "(cached) $ECHO_C" >&6
30575 else
30576   cat >conftest.$ac_ext <<_ACEOF
30577 /* confdefs.h.  */
30578 _ACEOF
30579 cat confdefs.h >>conftest.$ac_ext
30580 cat >>conftest.$ac_ext <<_ACEOF
30581 /* end confdefs.h.  */
30582 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30583    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30584 #define $ac_func innocuous_$ac_func
30585
30586 /* System header to define __stub macros and hopefully few prototypes,
30587     which can conflict with char $ac_func (); below.
30588     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30589     <limits.h> exists even on freestanding compilers.  */
30590
30591 #ifdef __STDC__
30592 # include <limits.h>
30593 #else
30594 # include <assert.h>
30595 #endif
30596
30597 #undef $ac_func
30598
30599 /* Override any gcc2 internal prototype to avoid an error.  */
30600 #ifdef __cplusplus
30601 extern "C"
30602 {
30603 #endif
30604 /* We use char because int might match the return type of a gcc2
30605    builtin and then its argument prototype would still apply.  */
30606 char $ac_func ();
30607 /* The GNU C library defines this for functions which it implements
30608     to always fail with ENOSYS.  Some functions are actually named
30609     something starting with __ and the normal name is an alias.  */
30610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30611 choke me
30612 #else
30613 char (*f) () = $ac_func;
30614 #endif
30615 #ifdef __cplusplus
30616 }
30617 #endif
30618
30619 int
30620 main ()
30621 {
30622 return f != $ac_func;
30623   ;
30624   return 0;
30625 }
30626 _ACEOF
30627 rm -f conftest.$ac_objext conftest$ac_exeext
30628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30629   (eval $ac_link) 2>conftest.er1
30630   ac_status=$?
30631   grep -v '^ *+' conftest.er1 >conftest.err
30632   rm -f conftest.er1
30633   cat conftest.err >&5
30634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30635   (exit $ac_status); } &&
30636          { ac_try='test -z "$ac_c_werror_flag"
30637                          || test ! -s conftest.err'
30638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30639   (eval $ac_try) 2>&5
30640   ac_status=$?
30641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30642   (exit $ac_status); }; } &&
30643          { ac_try='test -s conftest$ac_exeext'
30644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30645   (eval $ac_try) 2>&5
30646   ac_status=$?
30647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30648   (exit $ac_status); }; }; then
30649   eval "$as_ac_var=yes"
30650 else
30651   echo "$as_me: failed program was:" >&5
30652 sed 's/^/| /' conftest.$ac_ext >&5
30653
30654 eval "$as_ac_var=no"
30655 fi
30656 rm -f conftest.err conftest.$ac_objext \
30657       conftest$ac_exeext conftest.$ac_ext
30658 fi
30659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30660 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30661 if test `eval echo '${'$as_ac_var'}'` = yes; then
30662   cat >>confdefs.h <<_ACEOF
30663 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30664 _ACEOF
30665
30666 fi
30667 done
30668
30669
30670
30671
30672 for ac_func in putenv setenv
30673 do
30674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30675 echo "$as_me:$LINENO: checking for $ac_func" >&5
30676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30677 if eval "test \"\${$as_ac_var+set}\" = set"; then
30678   echo $ECHO_N "(cached) $ECHO_C" >&6
30679 else
30680   cat >conftest.$ac_ext <<_ACEOF
30681 /* confdefs.h.  */
30682 _ACEOF
30683 cat confdefs.h >>conftest.$ac_ext
30684 cat >>conftest.$ac_ext <<_ACEOF
30685 /* end confdefs.h.  */
30686 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30687    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30688 #define $ac_func innocuous_$ac_func
30689
30690 /* System header to define __stub macros and hopefully few prototypes,
30691     which can conflict with char $ac_func (); below.
30692     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30693     <limits.h> exists even on freestanding compilers.  */
30694
30695 #ifdef __STDC__
30696 # include <limits.h>
30697 #else
30698 # include <assert.h>
30699 #endif
30700
30701 #undef $ac_func
30702
30703 /* Override any gcc2 internal prototype to avoid an error.  */
30704 #ifdef __cplusplus
30705 extern "C"
30706 {
30707 #endif
30708 /* We use char because int might match the return type of a gcc2
30709    builtin and then its argument prototype would still apply.  */
30710 char $ac_func ();
30711 /* The GNU C library defines this for functions which it implements
30712     to always fail with ENOSYS.  Some functions are actually named
30713     something starting with __ and the normal name is an alias.  */
30714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30715 choke me
30716 #else
30717 char (*f) () = $ac_func;
30718 #endif
30719 #ifdef __cplusplus
30720 }
30721 #endif
30722
30723 int
30724 main ()
30725 {
30726 return f != $ac_func;
30727   ;
30728   return 0;
30729 }
30730 _ACEOF
30731 rm -f conftest.$ac_objext conftest$ac_exeext
30732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30733   (eval $ac_link) 2>conftest.er1
30734   ac_status=$?
30735   grep -v '^ *+' conftest.er1 >conftest.err
30736   rm -f conftest.er1
30737   cat conftest.err >&5
30738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30739   (exit $ac_status); } &&
30740          { ac_try='test -z "$ac_c_werror_flag"
30741                          || test ! -s conftest.err'
30742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30743   (eval $ac_try) 2>&5
30744   ac_status=$?
30745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30746   (exit $ac_status); }; } &&
30747          { ac_try='test -s conftest$ac_exeext'
30748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30749   (eval $ac_try) 2>&5
30750   ac_status=$?
30751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30752   (exit $ac_status); }; }; then
30753   eval "$as_ac_var=yes"
30754 else
30755   echo "$as_me: failed program was:" >&5
30756 sed 's/^/| /' conftest.$ac_ext >&5
30757
30758 eval "$as_ac_var=no"
30759 fi
30760 rm -f conftest.err conftest.$ac_objext \
30761       conftest$ac_exeext conftest.$ac_ext
30762 fi
30763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30764 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30765 if test `eval echo '${'$as_ac_var'}'` = yes; then
30766   cat >>confdefs.h <<_ACEOF
30767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30768 _ACEOF
30769  break
30770 fi
30771 done
30772
30773
30774 HAVE_SOME_SLEEP_FUNC=0
30775 if test "$USE_BEOS" = 1; then
30776             cat >>confdefs.h <<\_ACEOF
30777 #define HAVE_SLEEP 1
30778 _ACEOF
30779
30780     HAVE_SOME_SLEEP_FUNC=1
30781 fi
30782
30783 if test "$USE_DARWIN" = 1; then
30784             cat >>confdefs.h <<\_ACEOF
30785 #define HAVE_USLEEP 1
30786 _ACEOF
30787
30788     HAVE_SOME_SLEEP_FUNC=1
30789 fi
30790
30791 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
30792         POSIX4_LINK=
30793
30794 for ac_func in nanosleep
30795 do
30796 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30797 echo "$as_me:$LINENO: checking for $ac_func" >&5
30798 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30799 if eval "test \"\${$as_ac_var+set}\" = set"; then
30800   echo $ECHO_N "(cached) $ECHO_C" >&6
30801 else
30802   cat >conftest.$ac_ext <<_ACEOF
30803 /* confdefs.h.  */
30804 _ACEOF
30805 cat confdefs.h >>conftest.$ac_ext
30806 cat >>conftest.$ac_ext <<_ACEOF
30807 /* end confdefs.h.  */
30808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30809    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30810 #define $ac_func innocuous_$ac_func
30811
30812 /* System header to define __stub macros and hopefully few prototypes,
30813     which can conflict with char $ac_func (); below.
30814     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30815     <limits.h> exists even on freestanding compilers.  */
30816
30817 #ifdef __STDC__
30818 # include <limits.h>
30819 #else
30820 # include <assert.h>
30821 #endif
30822
30823 #undef $ac_func
30824
30825 /* Override any gcc2 internal prototype to avoid an error.  */
30826 #ifdef __cplusplus
30827 extern "C"
30828 {
30829 #endif
30830 /* We use char because int might match the return type of a gcc2
30831    builtin and then its argument prototype would still apply.  */
30832 char $ac_func ();
30833 /* The GNU C library defines this for functions which it implements
30834     to always fail with ENOSYS.  Some functions are actually named
30835     something starting with __ and the normal name is an alias.  */
30836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30837 choke me
30838 #else
30839 char (*f) () = $ac_func;
30840 #endif
30841 #ifdef __cplusplus
30842 }
30843 #endif
30844
30845 int
30846 main ()
30847 {
30848 return f != $ac_func;
30849   ;
30850   return 0;
30851 }
30852 _ACEOF
30853 rm -f conftest.$ac_objext conftest$ac_exeext
30854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30855   (eval $ac_link) 2>conftest.er1
30856   ac_status=$?
30857   grep -v '^ *+' conftest.er1 >conftest.err
30858   rm -f conftest.er1
30859   cat conftest.err >&5
30860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30861   (exit $ac_status); } &&
30862          { ac_try='test -z "$ac_c_werror_flag"
30863                          || test ! -s conftest.err'
30864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30865   (eval $ac_try) 2>&5
30866   ac_status=$?
30867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30868   (exit $ac_status); }; } &&
30869          { ac_try='test -s conftest$ac_exeext'
30870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30871   (eval $ac_try) 2>&5
30872   ac_status=$?
30873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30874   (exit $ac_status); }; }; then
30875   eval "$as_ac_var=yes"
30876 else
30877   echo "$as_me: failed program was:" >&5
30878 sed 's/^/| /' conftest.$ac_ext >&5
30879
30880 eval "$as_ac_var=no"
30881 fi
30882 rm -f conftest.err conftest.$ac_objext \
30883       conftest$ac_exeext conftest.$ac_ext
30884 fi
30885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30886 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30887 if test `eval echo '${'$as_ac_var'}'` = yes; then
30888   cat >>confdefs.h <<_ACEOF
30889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30890 _ACEOF
30891  cat >>confdefs.h <<\_ACEOF
30892 #define HAVE_NANOSLEEP 1
30893 _ACEOF
30894
30895 else
30896
30897             echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
30898 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
30899 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
30900   echo $ECHO_N "(cached) $ECHO_C" >&6
30901 else
30902   ac_check_lib_save_LIBS=$LIBS
30903 LIBS="-lposix4  $LIBS"
30904 cat >conftest.$ac_ext <<_ACEOF
30905 /* confdefs.h.  */
30906 _ACEOF
30907 cat confdefs.h >>conftest.$ac_ext
30908 cat >>conftest.$ac_ext <<_ACEOF
30909 /* end confdefs.h.  */
30910
30911 /* Override any gcc2 internal prototype to avoid an error.  */
30912 #ifdef __cplusplus
30913 extern "C"
30914 #endif
30915 /* We use char because int might match the return type of a gcc2
30916    builtin and then its argument prototype would still apply.  */
30917 char nanosleep ();
30918 int
30919 main ()
30920 {
30921 nanosleep ();
30922   ;
30923   return 0;
30924 }
30925 _ACEOF
30926 rm -f conftest.$ac_objext conftest$ac_exeext
30927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30928   (eval $ac_link) 2>conftest.er1
30929   ac_status=$?
30930   grep -v '^ *+' conftest.er1 >conftest.err
30931   rm -f conftest.er1
30932   cat conftest.err >&5
30933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30934   (exit $ac_status); } &&
30935          { ac_try='test -z "$ac_c_werror_flag"
30936                          || test ! -s conftest.err'
30937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30938   (eval $ac_try) 2>&5
30939   ac_status=$?
30940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30941   (exit $ac_status); }; } &&
30942          { ac_try='test -s conftest$ac_exeext'
30943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30944   (eval $ac_try) 2>&5
30945   ac_status=$?
30946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30947   (exit $ac_status); }; }; then
30948   ac_cv_lib_posix4_nanosleep=yes
30949 else
30950   echo "$as_me: failed program was:" >&5
30951 sed 's/^/| /' conftest.$ac_ext >&5
30952
30953 ac_cv_lib_posix4_nanosleep=no
30954 fi
30955 rm -f conftest.err conftest.$ac_objext \
30956       conftest$ac_exeext conftest.$ac_ext
30957 LIBS=$ac_check_lib_save_LIBS
30958 fi
30959 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30960 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30961 if test $ac_cv_lib_posix4_nanosleep = yes; then
30962
30963                     cat >>confdefs.h <<\_ACEOF
30964 #define HAVE_NANOSLEEP 1
30965 _ACEOF
30966
30967                     POSIX4_LINK=" -lposix4"
30968
30969 else
30970
30971
30972 for ac_func in usleep
30973 do
30974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30975 echo "$as_me:$LINENO: checking for $ac_func" >&5
30976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30977 if eval "test \"\${$as_ac_var+set}\" = set"; then
30978   echo $ECHO_N "(cached) $ECHO_C" >&6
30979 else
30980   cat >conftest.$ac_ext <<_ACEOF
30981 /* confdefs.h.  */
30982 _ACEOF
30983 cat confdefs.h >>conftest.$ac_ext
30984 cat >>conftest.$ac_ext <<_ACEOF
30985 /* end confdefs.h.  */
30986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30987    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30988 #define $ac_func innocuous_$ac_func
30989
30990 /* System header to define __stub macros and hopefully few prototypes,
30991     which can conflict with char $ac_func (); below.
30992     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30993     <limits.h> exists even on freestanding compilers.  */
30994
30995 #ifdef __STDC__
30996 # include <limits.h>
30997 #else
30998 # include <assert.h>
30999 #endif
31000
31001 #undef $ac_func
31002
31003 /* Override any gcc2 internal prototype to avoid an error.  */
31004 #ifdef __cplusplus
31005 extern "C"
31006 {
31007 #endif
31008 /* We use char because int might match the return type of a gcc2
31009    builtin and then its argument prototype would still apply.  */
31010 char $ac_func ();
31011 /* The GNU C library defines this for functions which it implements
31012     to always fail with ENOSYS.  Some functions are actually named
31013     something starting with __ and the normal name is an alias.  */
31014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31015 choke me
31016 #else
31017 char (*f) () = $ac_func;
31018 #endif
31019 #ifdef __cplusplus
31020 }
31021 #endif
31022
31023 int
31024 main ()
31025 {
31026 return f != $ac_func;
31027   ;
31028   return 0;
31029 }
31030 _ACEOF
31031 rm -f conftest.$ac_objext conftest$ac_exeext
31032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31033   (eval $ac_link) 2>conftest.er1
31034   ac_status=$?
31035   grep -v '^ *+' conftest.er1 >conftest.err
31036   rm -f conftest.er1
31037   cat conftest.err >&5
31038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31039   (exit $ac_status); } &&
31040          { ac_try='test -z "$ac_c_werror_flag"
31041                          || test ! -s conftest.err'
31042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31043   (eval $ac_try) 2>&5
31044   ac_status=$?
31045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31046   (exit $ac_status); }; } &&
31047          { ac_try='test -s conftest$ac_exeext'
31048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31049   (eval $ac_try) 2>&5
31050   ac_status=$?
31051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31052   (exit $ac_status); }; }; then
31053   eval "$as_ac_var=yes"
31054 else
31055   echo "$as_me: failed program was:" >&5
31056 sed 's/^/| /' conftest.$ac_ext >&5
31057
31058 eval "$as_ac_var=no"
31059 fi
31060 rm -f conftest.err conftest.$ac_objext \
31061       conftest$ac_exeext conftest.$ac_ext
31062 fi
31063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31064 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31065 if test `eval echo '${'$as_ac_var'}'` = yes; then
31066   cat >>confdefs.h <<_ACEOF
31067 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31068 _ACEOF
31069  cat >>confdefs.h <<\_ACEOF
31070 #define HAVE_USLEEP 1
31071 _ACEOF
31072
31073 else
31074   { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
31075 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
31076
31077 fi
31078 done
31079
31080
31081
31082 fi
31083
31084
31085
31086 fi
31087 done
31088
31089 fi
31090
31091
31092
31093 for ac_func in uname gethostname
31094 do
31095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31096 echo "$as_me:$LINENO: checking for $ac_func" >&5
31097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31098 if eval "test \"\${$as_ac_var+set}\" = set"; then
31099   echo $ECHO_N "(cached) $ECHO_C" >&6
31100 else
31101   cat >conftest.$ac_ext <<_ACEOF
31102 /* confdefs.h.  */
31103 _ACEOF
31104 cat confdefs.h >>conftest.$ac_ext
31105 cat >>conftest.$ac_ext <<_ACEOF
31106 /* end confdefs.h.  */
31107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31108    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31109 #define $ac_func innocuous_$ac_func
31110
31111 /* System header to define __stub macros and hopefully few prototypes,
31112     which can conflict with char $ac_func (); below.
31113     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31114     <limits.h> exists even on freestanding compilers.  */
31115
31116 #ifdef __STDC__
31117 # include <limits.h>
31118 #else
31119 # include <assert.h>
31120 #endif
31121
31122 #undef $ac_func
31123
31124 /* Override any gcc2 internal prototype to avoid an error.  */
31125 #ifdef __cplusplus
31126 extern "C"
31127 {
31128 #endif
31129 /* We use char because int might match the return type of a gcc2
31130    builtin and then its argument prototype would still apply.  */
31131 char $ac_func ();
31132 /* The GNU C library defines this for functions which it implements
31133     to always fail with ENOSYS.  Some functions are actually named
31134     something starting with __ and the normal name is an alias.  */
31135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31136 choke me
31137 #else
31138 char (*f) () = $ac_func;
31139 #endif
31140 #ifdef __cplusplus
31141 }
31142 #endif
31143
31144 int
31145 main ()
31146 {
31147 return f != $ac_func;
31148   ;
31149   return 0;
31150 }
31151 _ACEOF
31152 rm -f conftest.$ac_objext conftest$ac_exeext
31153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31154   (eval $ac_link) 2>conftest.er1
31155   ac_status=$?
31156   grep -v '^ *+' conftest.er1 >conftest.err
31157   rm -f conftest.er1
31158   cat conftest.err >&5
31159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31160   (exit $ac_status); } &&
31161          { ac_try='test -z "$ac_c_werror_flag"
31162                          || test ! -s conftest.err'
31163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31164   (eval $ac_try) 2>&5
31165   ac_status=$?
31166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31167   (exit $ac_status); }; } &&
31168          { ac_try='test -s conftest$ac_exeext'
31169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31170   (eval $ac_try) 2>&5
31171   ac_status=$?
31172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31173   (exit $ac_status); }; }; then
31174   eval "$as_ac_var=yes"
31175 else
31176   echo "$as_me: failed program was:" >&5
31177 sed 's/^/| /' conftest.$ac_ext >&5
31178
31179 eval "$as_ac_var=no"
31180 fi
31181 rm -f conftest.err conftest.$ac_objext \
31182       conftest$ac_exeext conftest.$ac_ext
31183 fi
31184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31185 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31186 if test `eval echo '${'$as_ac_var'}'` = yes; then
31187   cat >>confdefs.h <<_ACEOF
31188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31189 _ACEOF
31190  break
31191 fi
31192 done
31193
31194
31195
31196
31197 ac_ext=cc
31198 ac_cpp='$CXXCPP $CPPFLAGS'
31199 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31200 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31201 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31202
31203
31204
31205 for ac_func in strtok_r
31206 do
31207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31208 echo "$as_me:$LINENO: checking for $ac_func" >&5
31209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31210 if eval "test \"\${$as_ac_var+set}\" = set"; then
31211   echo $ECHO_N "(cached) $ECHO_C" >&6
31212 else
31213   cat >conftest.$ac_ext <<_ACEOF
31214 /* confdefs.h.  */
31215 _ACEOF
31216 cat confdefs.h >>conftest.$ac_ext
31217 cat >>conftest.$ac_ext <<_ACEOF
31218 /* end confdefs.h.  */
31219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31220    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31221 #define $ac_func innocuous_$ac_func
31222
31223 /* System header to define __stub macros and hopefully few prototypes,
31224     which can conflict with char $ac_func (); below.
31225     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31226     <limits.h> exists even on freestanding compilers.  */
31227
31228 #ifdef __STDC__
31229 # include <limits.h>
31230 #else
31231 # include <assert.h>
31232 #endif
31233
31234 #undef $ac_func
31235
31236 /* Override any gcc2 internal prototype to avoid an error.  */
31237 #ifdef __cplusplus
31238 extern "C"
31239 {
31240 #endif
31241 /* We use char because int might match the return type of a gcc2
31242    builtin and then its argument prototype would still apply.  */
31243 char $ac_func ();
31244 /* The GNU C library defines this for functions which it implements
31245     to always fail with ENOSYS.  Some functions are actually named
31246     something starting with __ and the normal name is an alias.  */
31247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31248 choke me
31249 #else
31250 char (*f) () = $ac_func;
31251 #endif
31252 #ifdef __cplusplus
31253 }
31254 #endif
31255
31256 int
31257 main ()
31258 {
31259 return f != $ac_func;
31260   ;
31261   return 0;
31262 }
31263 _ACEOF
31264 rm -f conftest.$ac_objext conftest$ac_exeext
31265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31266   (eval $ac_link) 2>conftest.er1
31267   ac_status=$?
31268   grep -v '^ *+' conftest.er1 >conftest.err
31269   rm -f conftest.er1
31270   cat conftest.err >&5
31271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31272   (exit $ac_status); } &&
31273          { ac_try='test -z "$ac_cxx_werror_flag"
31274                          || test ! -s conftest.err'
31275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31276   (eval $ac_try) 2>&5
31277   ac_status=$?
31278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31279   (exit $ac_status); }; } &&
31280          { ac_try='test -s conftest$ac_exeext'
31281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31282   (eval $ac_try) 2>&5
31283   ac_status=$?
31284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31285   (exit $ac_status); }; }; then
31286   eval "$as_ac_var=yes"
31287 else
31288   echo "$as_me: failed program was:" >&5
31289 sed 's/^/| /' conftest.$ac_ext >&5
31290
31291 eval "$as_ac_var=no"
31292 fi
31293 rm -f conftest.err conftest.$ac_objext \
31294       conftest$ac_exeext conftest.$ac_ext
31295 fi
31296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31297 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31298 if test `eval echo '${'$as_ac_var'}'` = yes; then
31299   cat >>confdefs.h <<_ACEOF
31300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31301 _ACEOF
31302
31303 fi
31304 done
31305
31306
31307 ac_ext=c
31308 ac_cpp='$CPP $CPPFLAGS'
31309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31312
31313
31314 INET_LINK=
31315
31316 for ac_func in inet_addr
31317 do
31318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31319 echo "$as_me:$LINENO: checking for $ac_func" >&5
31320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31321 if eval "test \"\${$as_ac_var+set}\" = set"; then
31322   echo $ECHO_N "(cached) $ECHO_C" >&6
31323 else
31324   cat >conftest.$ac_ext <<_ACEOF
31325 /* confdefs.h.  */
31326 _ACEOF
31327 cat confdefs.h >>conftest.$ac_ext
31328 cat >>conftest.$ac_ext <<_ACEOF
31329 /* end confdefs.h.  */
31330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31331    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31332 #define $ac_func innocuous_$ac_func
31333
31334 /* System header to define __stub macros and hopefully few prototypes,
31335     which can conflict with char $ac_func (); below.
31336     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31337     <limits.h> exists even on freestanding compilers.  */
31338
31339 #ifdef __STDC__
31340 # include <limits.h>
31341 #else
31342 # include <assert.h>
31343 #endif
31344
31345 #undef $ac_func
31346
31347 /* Override any gcc2 internal prototype to avoid an error.  */
31348 #ifdef __cplusplus
31349 extern "C"
31350 {
31351 #endif
31352 /* We use char because int might match the return type of a gcc2
31353    builtin and then its argument prototype would still apply.  */
31354 char $ac_func ();
31355 /* The GNU C library defines this for functions which it implements
31356     to always fail with ENOSYS.  Some functions are actually named
31357     something starting with __ and the normal name is an alias.  */
31358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31359 choke me
31360 #else
31361 char (*f) () = $ac_func;
31362 #endif
31363 #ifdef __cplusplus
31364 }
31365 #endif
31366
31367 int
31368 main ()
31369 {
31370 return f != $ac_func;
31371   ;
31372   return 0;
31373 }
31374 _ACEOF
31375 rm -f conftest.$ac_objext conftest$ac_exeext
31376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31377   (eval $ac_link) 2>conftest.er1
31378   ac_status=$?
31379   grep -v '^ *+' conftest.er1 >conftest.err
31380   rm -f conftest.er1
31381   cat conftest.err >&5
31382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31383   (exit $ac_status); } &&
31384          { ac_try='test -z "$ac_c_werror_flag"
31385                          || test ! -s conftest.err'
31386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31387   (eval $ac_try) 2>&5
31388   ac_status=$?
31389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31390   (exit $ac_status); }; } &&
31391          { ac_try='test -s conftest$ac_exeext'
31392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31393   (eval $ac_try) 2>&5
31394   ac_status=$?
31395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31396   (exit $ac_status); }; }; then
31397   eval "$as_ac_var=yes"
31398 else
31399   echo "$as_me: failed program was:" >&5
31400 sed 's/^/| /' conftest.$ac_ext >&5
31401
31402 eval "$as_ac_var=no"
31403 fi
31404 rm -f conftest.err conftest.$ac_objext \
31405       conftest$ac_exeext conftest.$ac_ext
31406 fi
31407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31408 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31409 if test `eval echo '${'$as_ac_var'}'` = yes; then
31410   cat >>confdefs.h <<_ACEOF
31411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31412 _ACEOF
31413  cat >>confdefs.h <<\_ACEOF
31414 #define HAVE_INET_ADDR 1
31415 _ACEOF
31416
31417 else
31418
31419         echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
31420 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
31421 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
31422   echo $ECHO_N "(cached) $ECHO_C" >&6
31423 else
31424   ac_check_lib_save_LIBS=$LIBS
31425 LIBS="-lnsl  $LIBS"
31426 cat >conftest.$ac_ext <<_ACEOF
31427 /* confdefs.h.  */
31428 _ACEOF
31429 cat confdefs.h >>conftest.$ac_ext
31430 cat >>conftest.$ac_ext <<_ACEOF
31431 /* end confdefs.h.  */
31432
31433 /* Override any gcc2 internal prototype to avoid an error.  */
31434 #ifdef __cplusplus
31435 extern "C"
31436 #endif
31437 /* We use char because int might match the return type of a gcc2
31438    builtin and then its argument prototype would still apply.  */
31439 char inet_addr ();
31440 int
31441 main ()
31442 {
31443 inet_addr ();
31444   ;
31445   return 0;
31446 }
31447 _ACEOF
31448 rm -f conftest.$ac_objext conftest$ac_exeext
31449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31450   (eval $ac_link) 2>conftest.er1
31451   ac_status=$?
31452   grep -v '^ *+' conftest.er1 >conftest.err
31453   rm -f conftest.er1
31454   cat conftest.err >&5
31455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31456   (exit $ac_status); } &&
31457          { ac_try='test -z "$ac_c_werror_flag"
31458                          || test ! -s conftest.err'
31459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31460   (eval $ac_try) 2>&5
31461   ac_status=$?
31462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31463   (exit $ac_status); }; } &&
31464          { ac_try='test -s conftest$ac_exeext'
31465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31466   (eval $ac_try) 2>&5
31467   ac_status=$?
31468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31469   (exit $ac_status); }; }; then
31470   ac_cv_lib_nsl_inet_addr=yes
31471 else
31472   echo "$as_me: failed program was:" >&5
31473 sed 's/^/| /' conftest.$ac_ext >&5
31474
31475 ac_cv_lib_nsl_inet_addr=no
31476 fi
31477 rm -f conftest.err conftest.$ac_objext \
31478       conftest$ac_exeext conftest.$ac_ext
31479 LIBS=$ac_check_lib_save_LIBS
31480 fi
31481 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31482 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31483 if test $ac_cv_lib_nsl_inet_addr = yes; then
31484   INET_LINK="nsl"
31485 else
31486
31487                 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
31488 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31489 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31490   echo $ECHO_N "(cached) $ECHO_C" >&6
31491 else
31492   ac_check_lib_save_LIBS=$LIBS
31493 LIBS="-lresolv  $LIBS"
31494 cat >conftest.$ac_ext <<_ACEOF
31495 /* confdefs.h.  */
31496 _ACEOF
31497 cat confdefs.h >>conftest.$ac_ext
31498 cat >>conftest.$ac_ext <<_ACEOF
31499 /* end confdefs.h.  */
31500
31501 /* Override any gcc2 internal prototype to avoid an error.  */
31502 #ifdef __cplusplus
31503 extern "C"
31504 #endif
31505 /* We use char because int might match the return type of a gcc2
31506    builtin and then its argument prototype would still apply.  */
31507 char inet_addr ();
31508 int
31509 main ()
31510 {
31511 inet_addr ();
31512   ;
31513   return 0;
31514 }
31515 _ACEOF
31516 rm -f conftest.$ac_objext conftest$ac_exeext
31517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31518   (eval $ac_link) 2>conftest.er1
31519   ac_status=$?
31520   grep -v '^ *+' conftest.er1 >conftest.err
31521   rm -f conftest.er1
31522   cat conftest.err >&5
31523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31524   (exit $ac_status); } &&
31525          { ac_try='test -z "$ac_c_werror_flag"
31526                          || test ! -s conftest.err'
31527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31528   (eval $ac_try) 2>&5
31529   ac_status=$?
31530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31531   (exit $ac_status); }; } &&
31532          { ac_try='test -s conftest$ac_exeext'
31533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31534   (eval $ac_try) 2>&5
31535   ac_status=$?
31536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31537   (exit $ac_status); }; }; then
31538   ac_cv_lib_resolv_inet_addr=yes
31539 else
31540   echo "$as_me: failed program was:" >&5
31541 sed 's/^/| /' conftest.$ac_ext >&5
31542
31543 ac_cv_lib_resolv_inet_addr=no
31544 fi
31545 rm -f conftest.err conftest.$ac_objext \
31546       conftest$ac_exeext conftest.$ac_ext
31547 LIBS=$ac_check_lib_save_LIBS
31548 fi
31549 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
31550 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
31551 if test $ac_cv_lib_resolv_inet_addr = yes; then
31552   INET_LINK="resolv"
31553 else
31554
31555                         echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
31556 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
31557 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
31558   echo $ECHO_N "(cached) $ECHO_C" >&6
31559 else
31560   ac_check_lib_save_LIBS=$LIBS
31561 LIBS="-lsocket  $LIBS"
31562 cat >conftest.$ac_ext <<_ACEOF
31563 /* confdefs.h.  */
31564 _ACEOF
31565 cat confdefs.h >>conftest.$ac_ext
31566 cat >>conftest.$ac_ext <<_ACEOF
31567 /* end confdefs.h.  */
31568
31569 /* Override any gcc2 internal prototype to avoid an error.  */
31570 #ifdef __cplusplus
31571 extern "C"
31572 #endif
31573 /* We use char because int might match the return type of a gcc2
31574    builtin and then its argument prototype would still apply.  */
31575 char inet_addr ();
31576 int
31577 main ()
31578 {
31579 inet_addr ();
31580   ;
31581   return 0;
31582 }
31583 _ACEOF
31584 rm -f conftest.$ac_objext conftest$ac_exeext
31585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31586   (eval $ac_link) 2>conftest.er1
31587   ac_status=$?
31588   grep -v '^ *+' conftest.er1 >conftest.err
31589   rm -f conftest.er1
31590   cat conftest.err >&5
31591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31592   (exit $ac_status); } &&
31593          { ac_try='test -z "$ac_c_werror_flag"
31594                          || test ! -s conftest.err'
31595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31596   (eval $ac_try) 2>&5
31597   ac_status=$?
31598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31599   (exit $ac_status); }; } &&
31600          { ac_try='test -s conftest$ac_exeext'
31601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31602   (eval $ac_try) 2>&5
31603   ac_status=$?
31604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31605   (exit $ac_status); }; }; then
31606   ac_cv_lib_socket_inet_addr=yes
31607 else
31608   echo "$as_me: failed program was:" >&5
31609 sed 's/^/| /' conftest.$ac_ext >&5
31610
31611 ac_cv_lib_socket_inet_addr=no
31612 fi
31613 rm -f conftest.err conftest.$ac_objext \
31614       conftest$ac_exeext conftest.$ac_ext
31615 LIBS=$ac_check_lib_save_LIBS
31616 fi
31617 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31618 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31619 if test $ac_cv_lib_socket_inet_addr = yes; then
31620   INET_LINK="socket"
31621
31622 fi
31623
31624
31625
31626 fi
31627
31628
31629
31630 fi
31631
31632
31633
31634 fi
31635 done
31636
31637
31638
31639 for ac_func in inet_aton
31640 do
31641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31642 echo "$as_me:$LINENO: checking for $ac_func" >&5
31643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31644 if eval "test \"\${$as_ac_var+set}\" = set"; then
31645   echo $ECHO_N "(cached) $ECHO_C" >&6
31646 else
31647   cat >conftest.$ac_ext <<_ACEOF
31648 /* confdefs.h.  */
31649 _ACEOF
31650 cat confdefs.h >>conftest.$ac_ext
31651 cat >>conftest.$ac_ext <<_ACEOF
31652 /* end confdefs.h.  */
31653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31654    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31655 #define $ac_func innocuous_$ac_func
31656
31657 /* System header to define __stub macros and hopefully few prototypes,
31658     which can conflict with char $ac_func (); below.
31659     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31660     <limits.h> exists even on freestanding compilers.  */
31661
31662 #ifdef __STDC__
31663 # include <limits.h>
31664 #else
31665 # include <assert.h>
31666 #endif
31667
31668 #undef $ac_func
31669
31670 /* Override any gcc2 internal prototype to avoid an error.  */
31671 #ifdef __cplusplus
31672 extern "C"
31673 {
31674 #endif
31675 /* We use char because int might match the return type of a gcc2
31676    builtin and then its argument prototype would still apply.  */
31677 char $ac_func ();
31678 /* The GNU C library defines this for functions which it implements
31679     to always fail with ENOSYS.  Some functions are actually named
31680     something starting with __ and the normal name is an alias.  */
31681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31682 choke me
31683 #else
31684 char (*f) () = $ac_func;
31685 #endif
31686 #ifdef __cplusplus
31687 }
31688 #endif
31689
31690 int
31691 main ()
31692 {
31693 return f != $ac_func;
31694   ;
31695   return 0;
31696 }
31697 _ACEOF
31698 rm -f conftest.$ac_objext conftest$ac_exeext
31699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31700   (eval $ac_link) 2>conftest.er1
31701   ac_status=$?
31702   grep -v '^ *+' conftest.er1 >conftest.err
31703   rm -f conftest.er1
31704   cat conftest.err >&5
31705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31706   (exit $ac_status); } &&
31707          { ac_try='test -z "$ac_c_werror_flag"
31708                          || test ! -s conftest.err'
31709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31710   (eval $ac_try) 2>&5
31711   ac_status=$?
31712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31713   (exit $ac_status); }; } &&
31714          { ac_try='test -s conftest$ac_exeext'
31715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31716   (eval $ac_try) 2>&5
31717   ac_status=$?
31718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31719   (exit $ac_status); }; }; then
31720   eval "$as_ac_var=yes"
31721 else
31722   echo "$as_me: failed program was:" >&5
31723 sed 's/^/| /' conftest.$ac_ext >&5
31724
31725 eval "$as_ac_var=no"
31726 fi
31727 rm -f conftest.err conftest.$ac_objext \
31728       conftest$ac_exeext conftest.$ac_ext
31729 fi
31730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31731 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31732 if test `eval echo '${'$as_ac_var'}'` = yes; then
31733   cat >>confdefs.h <<_ACEOF
31734 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31735 _ACEOF
31736  cat >>confdefs.h <<\_ACEOF
31737 #define HAVE_INET_ATON 1
31738 _ACEOF
31739
31740 else
31741
31742                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
31743 echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
31744 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
31745 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
31746   echo $ECHO_N "(cached) $ECHO_C" >&6
31747 else
31748   ac_check_lib_save_LIBS=$LIBS
31749 LIBS="-l$INET_LINK  $LIBS"
31750 cat >conftest.$ac_ext <<_ACEOF
31751 /* confdefs.h.  */
31752 _ACEOF
31753 cat confdefs.h >>conftest.$ac_ext
31754 cat >>conftest.$ac_ext <<_ACEOF
31755 /* end confdefs.h.  */
31756
31757 /* Override any gcc2 internal prototype to avoid an error.  */
31758 #ifdef __cplusplus
31759 extern "C"
31760 #endif
31761 /* We use char because int might match the return type of a gcc2
31762    builtin and then its argument prototype would still apply.  */
31763 char inet_aton ();
31764 int
31765 main ()
31766 {
31767 inet_aton ();
31768   ;
31769   return 0;
31770 }
31771 _ACEOF
31772 rm -f conftest.$ac_objext conftest$ac_exeext
31773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31774   (eval $ac_link) 2>conftest.er1
31775   ac_status=$?
31776   grep -v '^ *+' conftest.er1 >conftest.err
31777   rm -f conftest.er1
31778   cat conftest.err >&5
31779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31780   (exit $ac_status); } &&
31781          { ac_try='test -z "$ac_c_werror_flag"
31782                          || test ! -s conftest.err'
31783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31784   (eval $ac_try) 2>&5
31785   ac_status=$?
31786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31787   (exit $ac_status); }; } &&
31788          { ac_try='test -s conftest$ac_exeext'
31789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31790   (eval $ac_try) 2>&5
31791   ac_status=$?
31792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31793   (exit $ac_status); }; }; then
31794   eval "$as_ac_Lib=yes"
31795 else
31796   echo "$as_me: failed program was:" >&5
31797 sed 's/^/| /' conftest.$ac_ext >&5
31798
31799 eval "$as_ac_Lib=no"
31800 fi
31801 rm -f conftest.err conftest.$ac_objext \
31802       conftest$ac_exeext conftest.$ac_ext
31803 LIBS=$ac_check_lib_save_LIBS
31804 fi
31805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
31806 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
31807 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31808   cat >>confdefs.h <<\_ACEOF
31809 #define HAVE_INET_ATON 1
31810 _ACEOF
31811
31812 fi
31813
31814
31815 fi
31816 done
31817
31818
31819 if test "x$INET_LINK" != "x"; then
31820     cat >>confdefs.h <<\_ACEOF
31821 #define HAVE_INET_ADDR 1
31822 _ACEOF
31823
31824     INET_LINK=" -l$INET_LINK"
31825 fi
31826
31827 fi
31828
31829
31830
31831 EXTRALIBS_ESD=
31832 echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31833 echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31834 if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31835   echo $ECHO_N "(cached) $ECHO_C" >&6
31836 else
31837   ac_check_lib_save_LIBS=$LIBS
31838 LIBS="-lesd  $LIBS"
31839 cat >conftest.$ac_ext <<_ACEOF
31840 /* confdefs.h.  */
31841 _ACEOF
31842 cat confdefs.h >>conftest.$ac_ext
31843 cat >>conftest.$ac_ext <<_ACEOF
31844 /* end confdefs.h.  */
31845
31846 /* Override any gcc2 internal prototype to avoid an error.  */
31847 #ifdef __cplusplus
31848 extern "C"
31849 #endif
31850 /* We use char because int might match the return type of a gcc2
31851    builtin and then its argument prototype would still apply.  */
31852 char esd_close ();
31853 int
31854 main ()
31855 {
31856 esd_close ();
31857   ;
31858   return 0;
31859 }
31860 _ACEOF
31861 rm -f conftest.$ac_objext conftest$ac_exeext
31862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31863   (eval $ac_link) 2>conftest.er1
31864   ac_status=$?
31865   grep -v '^ *+' conftest.er1 >conftest.err
31866   rm -f conftest.er1
31867   cat conftest.err >&5
31868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31869   (exit $ac_status); } &&
31870          { ac_try='test -z "$ac_c_werror_flag"
31871                          || test ! -s conftest.err'
31872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31873   (eval $ac_try) 2>&5
31874   ac_status=$?
31875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31876   (exit $ac_status); }; } &&
31877          { ac_try='test -s conftest$ac_exeext'
31878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31879   (eval $ac_try) 2>&5
31880   ac_status=$?
31881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31882   (exit $ac_status); }; }; then
31883   ac_cv_lib_esd_esd_close=yes
31884 else
31885   echo "$as_me: failed program was:" >&5
31886 sed 's/^/| /' conftest.$ac_ext >&5
31887
31888 ac_cv_lib_esd_esd_close=no
31889 fi
31890 rm -f conftest.err conftest.$ac_objext \
31891       conftest$ac_exeext conftest.$ac_ext
31892 LIBS=$ac_check_lib_save_LIBS
31893 fi
31894 echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
31895 echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
31896 if test $ac_cv_lib_esd_esd_close = yes; then
31897
31898
31899 for ac_header in esd.h
31900 do
31901 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31902 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31903   echo "$as_me:$LINENO: checking for $ac_header" >&5
31904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31906   echo $ECHO_N "(cached) $ECHO_C" >&6
31907 fi
31908 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31909 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31910 else
31911   # Is the header compilable?
31912 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31913 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31914 cat >conftest.$ac_ext <<_ACEOF
31915 /* confdefs.h.  */
31916 _ACEOF
31917 cat confdefs.h >>conftest.$ac_ext
31918 cat >>conftest.$ac_ext <<_ACEOF
31919 /* end confdefs.h.  */
31920 $ac_includes_default
31921 #include <$ac_header>
31922 _ACEOF
31923 rm -f conftest.$ac_objext
31924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31925   (eval $ac_compile) 2>conftest.er1
31926   ac_status=$?
31927   grep -v '^ *+' conftest.er1 >conftest.err
31928   rm -f conftest.er1
31929   cat conftest.err >&5
31930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31931   (exit $ac_status); } &&
31932          { ac_try='test -z "$ac_c_werror_flag"
31933                          || test ! -s conftest.err'
31934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31935   (eval $ac_try) 2>&5
31936   ac_status=$?
31937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31938   (exit $ac_status); }; } &&
31939          { ac_try='test -s conftest.$ac_objext'
31940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31941   (eval $ac_try) 2>&5
31942   ac_status=$?
31943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31944   (exit $ac_status); }; }; then
31945   ac_header_compiler=yes
31946 else
31947   echo "$as_me: failed program was:" >&5
31948 sed 's/^/| /' conftest.$ac_ext >&5
31949
31950 ac_header_compiler=no
31951 fi
31952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31953 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31954 echo "${ECHO_T}$ac_header_compiler" >&6
31955
31956 # Is the header present?
31957 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31958 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31959 cat >conftest.$ac_ext <<_ACEOF
31960 /* confdefs.h.  */
31961 _ACEOF
31962 cat confdefs.h >>conftest.$ac_ext
31963 cat >>conftest.$ac_ext <<_ACEOF
31964 /* end confdefs.h.  */
31965 #include <$ac_header>
31966 _ACEOF
31967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31968   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31969   ac_status=$?
31970   grep -v '^ *+' conftest.er1 >conftest.err
31971   rm -f conftest.er1
31972   cat conftest.err >&5
31973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31974   (exit $ac_status); } >/dev/null; then
31975   if test -s conftest.err; then
31976     ac_cpp_err=$ac_c_preproc_warn_flag
31977     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31978   else
31979     ac_cpp_err=
31980   fi
31981 else
31982   ac_cpp_err=yes
31983 fi
31984 if test -z "$ac_cpp_err"; then
31985   ac_header_preproc=yes
31986 else
31987   echo "$as_me: failed program was:" >&5
31988 sed 's/^/| /' conftest.$ac_ext >&5
31989
31990   ac_header_preproc=no
31991 fi
31992 rm -f conftest.err conftest.$ac_ext
31993 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31994 echo "${ECHO_T}$ac_header_preproc" >&6
31995
31996 # So?  What about this header?
31997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31998   yes:no: )
31999     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32000 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32001     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32002 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32003     ac_header_preproc=yes
32004     ;;
32005   no:yes:* )
32006     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32007 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32008     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32009 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32010     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32011 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32012     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32013 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32014     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32016     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32017 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32018     (
32019       cat <<\_ASBOX
32020 ## ----------------------------------------- ##
32021 ## Report this to wx-dev@lists.wxwindows.org ##
32022 ## ----------------------------------------- ##
32023 _ASBOX
32024     ) |
32025       sed "s/^/$as_me: WARNING:     /" >&2
32026     ;;
32027 esac
32028 echo "$as_me:$LINENO: checking for $ac_header" >&5
32029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32031   echo $ECHO_N "(cached) $ECHO_C" >&6
32032 else
32033   eval "$as_ac_Header=\$ac_header_preproc"
32034 fi
32035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32037
32038 fi
32039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32040   cat >>confdefs.h <<_ACEOF
32041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32042 _ACEOF
32043
32044     EXTRALIBS_ESD="-lesd"
32045
32046 fi
32047
32048 done
32049
32050
32051 fi
32052
32053
32054
32055 echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
32056 echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
32057 cat >conftest.$ac_ext <<_ACEOF
32058 /* confdefs.h.  */
32059 _ACEOF
32060 cat confdefs.h >>conftest.$ac_ext
32061 cat >>conftest.$ac_ext <<_ACEOF
32062 /* end confdefs.h.  */
32063 #ifdef __linux__
32064                 #include <linux/cdrom.h>
32065                 #else
32066                 /* For Solaris */
32067                 #include <sys/cdio.h>
32068                 #endif
32069
32070 int
32071 main ()
32072 {
32073 struct cdrom_tocentry entry, old_entry;
32074   ;
32075   return 0;
32076 }
32077 _ACEOF
32078 rm -f conftest.$ac_objext
32079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32080   (eval $ac_compile) 2>conftest.er1
32081   ac_status=$?
32082   grep -v '^ *+' conftest.er1 >conftest.err
32083   rm -f conftest.er1
32084   cat conftest.err >&5
32085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32086   (exit $ac_status); } &&
32087          { ac_try='test -z "$ac_c_werror_flag"
32088                          || test ! -s conftest.err'
32089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32090   (eval $ac_try) 2>&5
32091   ac_status=$?
32092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32093   (exit $ac_status); }; } &&
32094          { ac_try='test -s conftest.$ac_objext'
32095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32096   (eval $ac_try) 2>&5
32097   ac_status=$?
32098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32099   (exit $ac_status); }; }; then
32100   echo "$as_me:$LINENO: result: yes" >&5
32101 echo "${ECHO_T}yes" >&6
32102                 cat >>confdefs.h <<\_ACEOF
32103 #define HAVE_KNOWN_CDROM_INTERFACE 1
32104 _ACEOF
32105
32106 else
32107   echo "$as_me: failed program was:" >&5
32108 sed 's/^/| /' conftest.$ac_ext >&5
32109
32110 echo "$as_me:$LINENO: result: no" >&5
32111 echo "${ECHO_T}no" >&6
32112 fi
32113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32114
32115
32116 cat >confcache <<\_ACEOF
32117 # This file is a shell script that caches the results of configure
32118 # tests run on this system so they can be shared between configure
32119 # scripts and configure runs, see configure's option --config-cache.
32120 # It is not useful on other systems.  If it contains results you don't
32121 # want to keep, you may remove or edit it.
32122 #
32123 # config.status only pays attention to the cache file if you give it
32124 # the --recheck option to rerun configure.
32125 #
32126 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32127 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32128 # following values.
32129
32130 _ACEOF
32131
32132 # The following way of writing the cache mishandles newlines in values,
32133 # but we know of no workaround that is simple, portable, and efficient.
32134 # So, don't put newlines in cache variables' values.
32135 # Ultrix sh set writes to stderr and can't be redirected directly,
32136 # and sets the high bit in the cache file unless we assign to the vars.
32137 {
32138   (set) 2>&1 |
32139     case `(ac_space=' '; set | grep ac_space) 2>&1` in
32140     *ac_space=\ *)
32141       # `set' does not quote correctly, so add quotes (double-quote
32142       # substitution turns \\\\ into \\, and sed turns \\ into \).
32143       sed -n \
32144         "s/'/'\\\\''/g;
32145           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32146       ;;
32147     *)
32148       # `set' quotes correctly as required by POSIX, so do not add quotes.
32149       sed -n \
32150         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
32151       ;;
32152     esac;
32153 } |
32154   sed '
32155      t clear
32156      : clear
32157      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32158      t end
32159      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32160      : end' >>confcache
32161 if diff $cache_file confcache >/dev/null 2>&1; then :; else
32162   if test -w $cache_file; then
32163     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
32164     cat confcache >$cache_file
32165   else
32166     echo "not updating unwritable cache $cache_file"
32167   fi
32168 fi
32169 rm -f confcache
32170
32171
32172 CPP_MT_FLAG=
32173 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
32174
32175
32176     THREADS_LINK=
32177     THREADS_CFLAGS=
32178
32179     if test "$wxUSE_THREADS" = "yes" ; then
32180         if test "$USE_BEOS" = 1; then
32181             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
32182 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
32183             wxUSE_THREADS="no"
32184         fi
32185     fi
32186
32187     if test "$wxUSE_THREADS" = "yes" ; then
32188
32189
32190                                 THREAD_OPTS="-pthread"
32191         case "${host}" in
32192           *-*-solaris2* | *-*-sunos4* )
32193                 if test "x$GCC" = "xyes"; then
32194                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
32195                 else
32196                     THREAD_OPTS="-mt $THREAD_OPTS"
32197                 fi
32198                 ;;
32199           *-*-freebsd*)
32200                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
32201                 ;;
32202           *-*-darwin* | *-*-cygwin* )
32203                                                 THREAD_OPTS=""
32204                 ;;
32205           *-*-aix*)
32206                                 THREAD_OPTS="pthreads"
32207                 ;;
32208           *-hp-hpux* )
32209                                                                 if test "x$GCC" != "xyes"; then
32210                     THREAD_OPTS=""
32211                 fi
32212                 ;;
32213
32214           *-*-irix* )
32215                                                                 if test "x$GCC" = "xyes"; then
32216                     THREAD_OPTS=""
32217                 fi
32218                 ;;
32219
32220           *-*-*UnixWare*)
32221                                 if test "x$GCC" != "xyes"; then
32222                     THREAD_OPTS="-Ethread"
32223                 fi
32224                 ;;
32225         esac
32226
32227                                 THREAD_OPTS="$THREAD_OPTS pthread none"
32228
32229                 THREADS_OK=no
32230         for flag in $THREAD_OPTS; do
32231             case $flag in
32232                 none)
32233                     echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
32234 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
32235                     ;;
32236
32237                 -*)
32238                     echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
32239 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
32240                     THREADS_CFLAGS="$flag"
32241                     ;;
32242
32243                 *)
32244                     echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
32245 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
32246                     THREADS_LINK="-l$flag"
32247                     ;;
32248               esac
32249
32250               save_LIBS="$LIBS"
32251               save_CFLAGS="$CFLAGS"
32252               LIBS="$THREADS_LINK $LIBS"
32253               CFLAGS="$THREADS_CFLAGS $CFLAGS"
32254
32255               cat >conftest.$ac_ext <<_ACEOF
32256 /* confdefs.h.  */
32257 _ACEOF
32258 cat confdefs.h >>conftest.$ac_ext
32259 cat >>conftest.$ac_ext <<_ACEOF
32260 /* end confdefs.h.  */
32261 #include <pthread.h>
32262 int
32263 main ()
32264 {
32265 pthread_create(0,0,0,0);
32266   ;
32267   return 0;
32268 }
32269 _ACEOF
32270 rm -f conftest.$ac_objext conftest$ac_exeext
32271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32272   (eval $ac_link) 2>conftest.er1
32273   ac_status=$?
32274   grep -v '^ *+' conftest.er1 >conftest.err
32275   rm -f conftest.er1
32276   cat conftest.err >&5
32277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32278   (exit $ac_status); } &&
32279          { ac_try='test -z "$ac_c_werror_flag"
32280                          || test ! -s conftest.err'
32281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32282   (eval $ac_try) 2>&5
32283   ac_status=$?
32284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32285   (exit $ac_status); }; } &&
32286          { ac_try='test -s conftest$ac_exeext'
32287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32288   (eval $ac_try) 2>&5
32289   ac_status=$?
32290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32291   (exit $ac_status); }; }; then
32292   THREADS_OK=yes
32293 else
32294   echo "$as_me: failed program was:" >&5
32295 sed 's/^/| /' conftest.$ac_ext >&5
32296
32297 fi
32298 rm -f conftest.err conftest.$ac_objext \
32299       conftest$ac_exeext conftest.$ac_ext
32300
32301               LIBS="$save_LIBS"
32302               CFLAGS="$save_CFLAGS"
32303
32304               echo "$as_me:$LINENO: result: $THREADS_OK" >&5
32305 echo "${ECHO_T}$THREADS_OK" >&6
32306               if test "x$THREADS_OK" = "xyes"; then
32307                       break;
32308               fi
32309
32310               THREADS_LINK=""
32311               THREADS_CFLAGS=""
32312       done
32313
32314       if test "x$THREADS_OK" != "xyes"; then
32315           wxUSE_THREADS=no
32316           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
32317 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
32318       else
32319                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
32320           LIBS="$THREADS_LINK $LIBS"
32321
32322           echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
32323 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
32324           flag=no
32325           case "${host}" in
32326             *-aix*)
32327                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
32328                 flag="-D_THREAD_SAFE"
32329                 ;;
32330             *-freebsd*)
32331                 flag="-D_THREAD_SAFE"
32332                 ;;
32333             *-hp-hpux* )
32334                 flag="-D_REENTRANT"
32335                 if test "x$GCC" != "xyes"; then
32336                                         flag="$flag -D_RWSTD_MULTI_THREAD"
32337
32338                                                             LIBS="$LIBS -lcma"
32339                 fi
32340                 ;;
32341             *solaris* | alpha*-osf*)
32342                 flag="-D_REENTRANT"
32343                 ;;
32344           esac
32345           echo "$as_me:$LINENO: result: ${flag}" >&5
32346 echo "${ECHO_T}${flag}" >&6
32347           if test "x$flag" != xno; then
32348               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
32349           fi
32350
32351           if test "x$THREADS_CFLAGS" != "x"; then
32352                         CFLAGS="$CFLAGS $THREADS_CFLAGS"
32353             CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
32354           fi
32355       fi
32356     fi
32357
32358         if test "$wxUSE_THREADS" = "yes" ; then
32359
32360 for ac_func in thr_setconcurrency
32361 do
32362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32363 echo "$as_me:$LINENO: checking for $ac_func" >&5
32364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32365 if eval "test \"\${$as_ac_var+set}\" = set"; then
32366   echo $ECHO_N "(cached) $ECHO_C" >&6
32367 else
32368   cat >conftest.$ac_ext <<_ACEOF
32369 /* confdefs.h.  */
32370 _ACEOF
32371 cat confdefs.h >>conftest.$ac_ext
32372 cat >>conftest.$ac_ext <<_ACEOF
32373 /* end confdefs.h.  */
32374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32375    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32376 #define $ac_func innocuous_$ac_func
32377
32378 /* System header to define __stub macros and hopefully few prototypes,
32379     which can conflict with char $ac_func (); below.
32380     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32381     <limits.h> exists even on freestanding compilers.  */
32382
32383 #ifdef __STDC__
32384 # include <limits.h>
32385 #else
32386 # include <assert.h>
32387 #endif
32388
32389 #undef $ac_func
32390
32391 /* Override any gcc2 internal prototype to avoid an error.  */
32392 #ifdef __cplusplus
32393 extern "C"
32394 {
32395 #endif
32396 /* We use char because int might match the return type of a gcc2
32397    builtin and then its argument prototype would still apply.  */
32398 char $ac_func ();
32399 /* The GNU C library defines this for functions which it implements
32400     to always fail with ENOSYS.  Some functions are actually named
32401     something starting with __ and the normal name is an alias.  */
32402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32403 choke me
32404 #else
32405 char (*f) () = $ac_func;
32406 #endif
32407 #ifdef __cplusplus
32408 }
32409 #endif
32410
32411 int
32412 main ()
32413 {
32414 return f != $ac_func;
32415   ;
32416   return 0;
32417 }
32418 _ACEOF
32419 rm -f conftest.$ac_objext conftest$ac_exeext
32420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32421   (eval $ac_link) 2>conftest.er1
32422   ac_status=$?
32423   grep -v '^ *+' conftest.er1 >conftest.err
32424   rm -f conftest.er1
32425   cat conftest.err >&5
32426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32427   (exit $ac_status); } &&
32428          { ac_try='test -z "$ac_c_werror_flag"
32429                          || test ! -s conftest.err'
32430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32431   (eval $ac_try) 2>&5
32432   ac_status=$?
32433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32434   (exit $ac_status); }; } &&
32435          { ac_try='test -s conftest$ac_exeext'
32436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32437   (eval $ac_try) 2>&5
32438   ac_status=$?
32439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32440   (exit $ac_status); }; }; then
32441   eval "$as_ac_var=yes"
32442 else
32443   echo "$as_me: failed program was:" >&5
32444 sed 's/^/| /' conftest.$ac_ext >&5
32445
32446 eval "$as_ac_var=no"
32447 fi
32448 rm -f conftest.err conftest.$ac_objext \
32449       conftest$ac_exeext conftest.$ac_ext
32450 fi
32451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32452 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32453 if test `eval echo '${'$as_ac_var'}'` = yes; then
32454   cat >>confdefs.h <<_ACEOF
32455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32456 _ACEOF
32457
32458 fi
32459 done
32460
32461
32462
32463 for ac_header in sched.h
32464 do
32465 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32467   echo "$as_me:$LINENO: checking for $ac_header" >&5
32468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32470   echo $ECHO_N "(cached) $ECHO_C" >&6
32471 fi
32472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32474 else
32475   # Is the header compilable?
32476 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32477 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32478 cat >conftest.$ac_ext <<_ACEOF
32479 /* confdefs.h.  */
32480 _ACEOF
32481 cat confdefs.h >>conftest.$ac_ext
32482 cat >>conftest.$ac_ext <<_ACEOF
32483 /* end confdefs.h.  */
32484 $ac_includes_default
32485 #include <$ac_header>
32486 _ACEOF
32487 rm -f conftest.$ac_objext
32488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32489   (eval $ac_compile) 2>conftest.er1
32490   ac_status=$?
32491   grep -v '^ *+' conftest.er1 >conftest.err
32492   rm -f conftest.er1
32493   cat conftest.err >&5
32494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32495   (exit $ac_status); } &&
32496          { ac_try='test -z "$ac_c_werror_flag"
32497                          || test ! -s conftest.err'
32498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32499   (eval $ac_try) 2>&5
32500   ac_status=$?
32501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32502   (exit $ac_status); }; } &&
32503          { ac_try='test -s conftest.$ac_objext'
32504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32505   (eval $ac_try) 2>&5
32506   ac_status=$?
32507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32508   (exit $ac_status); }; }; then
32509   ac_header_compiler=yes
32510 else
32511   echo "$as_me: failed program was:" >&5
32512 sed 's/^/| /' conftest.$ac_ext >&5
32513
32514 ac_header_compiler=no
32515 fi
32516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32517 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32518 echo "${ECHO_T}$ac_header_compiler" >&6
32519
32520 # Is the header present?
32521 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32522 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32523 cat >conftest.$ac_ext <<_ACEOF
32524 /* confdefs.h.  */
32525 _ACEOF
32526 cat confdefs.h >>conftest.$ac_ext
32527 cat >>conftest.$ac_ext <<_ACEOF
32528 /* end confdefs.h.  */
32529 #include <$ac_header>
32530 _ACEOF
32531 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32532   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32533   ac_status=$?
32534   grep -v '^ *+' conftest.er1 >conftest.err
32535   rm -f conftest.er1
32536   cat conftest.err >&5
32537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32538   (exit $ac_status); } >/dev/null; then
32539   if test -s conftest.err; then
32540     ac_cpp_err=$ac_c_preproc_warn_flag
32541     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32542   else
32543     ac_cpp_err=
32544   fi
32545 else
32546   ac_cpp_err=yes
32547 fi
32548 if test -z "$ac_cpp_err"; then
32549   ac_header_preproc=yes
32550 else
32551   echo "$as_me: failed program was:" >&5
32552 sed 's/^/| /' conftest.$ac_ext >&5
32553
32554   ac_header_preproc=no
32555 fi
32556 rm -f conftest.err conftest.$ac_ext
32557 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32558 echo "${ECHO_T}$ac_header_preproc" >&6
32559
32560 # So?  What about this header?
32561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32562   yes:no: )
32563     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32565     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32566 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32567     ac_header_preproc=yes
32568     ;;
32569   no:yes:* )
32570     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32571 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32572     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32573 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32574     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32575 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32576     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32577 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32578     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32580     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32581 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32582     (
32583       cat <<\_ASBOX
32584 ## ----------------------------------------- ##
32585 ## Report this to wx-dev@lists.wxwindows.org ##
32586 ## ----------------------------------------- ##
32587 _ASBOX
32588     ) |
32589       sed "s/^/$as_me: WARNING:     /" >&2
32590     ;;
32591 esac
32592 echo "$as_me:$LINENO: checking for $ac_header" >&5
32593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32595   echo $ECHO_N "(cached) $ECHO_C" >&6
32596 else
32597   eval "$as_ac_Header=\$ac_header_preproc"
32598 fi
32599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32601
32602 fi
32603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32604   cat >>confdefs.h <<_ACEOF
32605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32606 _ACEOF
32607
32608 fi
32609
32610 done
32611
32612       if test "$ac_cv_header_sched_h" = "yes"; then
32613           echo "$as_me:$LINENO: checking for sched_yield" >&5
32614 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32615 if test "${ac_cv_func_sched_yield+set}" = set; then
32616   echo $ECHO_N "(cached) $ECHO_C" >&6
32617 else
32618   cat >conftest.$ac_ext <<_ACEOF
32619 /* confdefs.h.  */
32620 _ACEOF
32621 cat confdefs.h >>conftest.$ac_ext
32622 cat >>conftest.$ac_ext <<_ACEOF
32623 /* end confdefs.h.  */
32624 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32625    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32626 #define sched_yield innocuous_sched_yield
32627
32628 /* System header to define __stub macros and hopefully few prototypes,
32629     which can conflict with char sched_yield (); below.
32630     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32631     <limits.h> exists even on freestanding compilers.  */
32632
32633 #ifdef __STDC__
32634 # include <limits.h>
32635 #else
32636 # include <assert.h>
32637 #endif
32638
32639 #undef sched_yield
32640
32641 /* Override any gcc2 internal prototype to avoid an error.  */
32642 #ifdef __cplusplus
32643 extern "C"
32644 {
32645 #endif
32646 /* We use char because int might match the return type of a gcc2
32647    builtin and then its argument prototype would still apply.  */
32648 char sched_yield ();
32649 /* The GNU C library defines this for functions which it implements
32650     to always fail with ENOSYS.  Some functions are actually named
32651     something starting with __ and the normal name is an alias.  */
32652 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32653 choke me
32654 #else
32655 char (*f) () = sched_yield;
32656 #endif
32657 #ifdef __cplusplus
32658 }
32659 #endif
32660
32661 int
32662 main ()
32663 {
32664 return f != sched_yield;
32665   ;
32666   return 0;
32667 }
32668 _ACEOF
32669 rm -f conftest.$ac_objext conftest$ac_exeext
32670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32671   (eval $ac_link) 2>conftest.er1
32672   ac_status=$?
32673   grep -v '^ *+' conftest.er1 >conftest.err
32674   rm -f conftest.er1
32675   cat conftest.err >&5
32676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32677   (exit $ac_status); } &&
32678          { ac_try='test -z "$ac_c_werror_flag"
32679                          || test ! -s conftest.err'
32680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32681   (eval $ac_try) 2>&5
32682   ac_status=$?
32683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32684   (exit $ac_status); }; } &&
32685          { ac_try='test -s conftest$ac_exeext'
32686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32687   (eval $ac_try) 2>&5
32688   ac_status=$?
32689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32690   (exit $ac_status); }; }; then
32691   ac_cv_func_sched_yield=yes
32692 else
32693   echo "$as_me: failed program was:" >&5
32694 sed 's/^/| /' conftest.$ac_ext >&5
32695
32696 ac_cv_func_sched_yield=no
32697 fi
32698 rm -f conftest.err conftest.$ac_objext \
32699       conftest$ac_exeext conftest.$ac_ext
32700 fi
32701 echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
32702 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
32703 if test $ac_cv_func_sched_yield = yes; then
32704   cat >>confdefs.h <<\_ACEOF
32705 #define HAVE_SCHED_YIELD 1
32706 _ACEOF
32707
32708 else
32709
32710                 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
32711 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
32712 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
32713   echo $ECHO_N "(cached) $ECHO_C" >&6
32714 else
32715   ac_check_lib_save_LIBS=$LIBS
32716 LIBS="-lposix4  $LIBS"
32717 cat >conftest.$ac_ext <<_ACEOF
32718 /* confdefs.h.  */
32719 _ACEOF
32720 cat confdefs.h >>conftest.$ac_ext
32721 cat >>conftest.$ac_ext <<_ACEOF
32722 /* end confdefs.h.  */
32723
32724 /* Override any gcc2 internal prototype to avoid an error.  */
32725 #ifdef __cplusplus
32726 extern "C"
32727 #endif
32728 /* We use char because int might match the return type of a gcc2
32729    builtin and then its argument prototype would still apply.  */
32730 char sched_yield ();
32731 int
32732 main ()
32733 {
32734 sched_yield ();
32735   ;
32736   return 0;
32737 }
32738 _ACEOF
32739 rm -f conftest.$ac_objext conftest$ac_exeext
32740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32741   (eval $ac_link) 2>conftest.er1
32742   ac_status=$?
32743   grep -v '^ *+' conftest.er1 >conftest.err
32744   rm -f conftest.er1
32745   cat conftest.err >&5
32746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32747   (exit $ac_status); } &&
32748          { ac_try='test -z "$ac_c_werror_flag"
32749                          || test ! -s conftest.err'
32750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32751   (eval $ac_try) 2>&5
32752   ac_status=$?
32753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32754   (exit $ac_status); }; } &&
32755          { ac_try='test -s conftest$ac_exeext'
32756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32757   (eval $ac_try) 2>&5
32758   ac_status=$?
32759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32760   (exit $ac_status); }; }; then
32761   ac_cv_lib_posix4_sched_yield=yes
32762 else
32763   echo "$as_me: failed program was:" >&5
32764 sed 's/^/| /' conftest.$ac_ext >&5
32765
32766 ac_cv_lib_posix4_sched_yield=no
32767 fi
32768 rm -f conftest.err conftest.$ac_objext \
32769       conftest$ac_exeext conftest.$ac_ext
32770 LIBS=$ac_check_lib_save_LIBS
32771 fi
32772 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
32773 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
32774 if test $ac_cv_lib_posix4_sched_yield = yes; then
32775   cat >>confdefs.h <<\_ACEOF
32776 #define HAVE_SCHED_YIELD 1
32777 _ACEOF
32778  POSIX4_LINK=" -lposix4"
32779 else
32780   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
32781 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
32782
32783 fi
32784
32785
32786
32787 fi
32788
32789       fi
32790
32791                                           HAVE_PRIOR_FUNCS=0
32792       echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
32793 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
32794 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
32795   echo $ECHO_N "(cached) $ECHO_C" >&6
32796 else
32797   cat >conftest.$ac_ext <<_ACEOF
32798 /* confdefs.h.  */
32799 _ACEOF
32800 cat confdefs.h >>conftest.$ac_ext
32801 cat >>conftest.$ac_ext <<_ACEOF
32802 /* end confdefs.h.  */
32803 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
32804    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32805 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
32806
32807 /* System header to define __stub macros and hopefully few prototypes,
32808     which can conflict with char pthread_attr_getschedpolicy (); below.
32809     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32810     <limits.h> exists even on freestanding compilers.  */
32811
32812 #ifdef __STDC__
32813 # include <limits.h>
32814 #else
32815 # include <assert.h>
32816 #endif
32817
32818 #undef pthread_attr_getschedpolicy
32819
32820 /* Override any gcc2 internal prototype to avoid an error.  */
32821 #ifdef __cplusplus
32822 extern "C"
32823 {
32824 #endif
32825 /* We use char because int might match the return type of a gcc2
32826    builtin and then its argument prototype would still apply.  */
32827 char pthread_attr_getschedpolicy ();
32828 /* The GNU C library defines this for functions which it implements
32829     to always fail with ENOSYS.  Some functions are actually named
32830     something starting with __ and the normal name is an alias.  */
32831 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32832 choke me
32833 #else
32834 char (*f) () = pthread_attr_getschedpolicy;
32835 #endif
32836 #ifdef __cplusplus
32837 }
32838 #endif
32839
32840 int
32841 main ()
32842 {
32843 return f != pthread_attr_getschedpolicy;
32844   ;
32845   return 0;
32846 }
32847 _ACEOF
32848 rm -f conftest.$ac_objext conftest$ac_exeext
32849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32850   (eval $ac_link) 2>conftest.er1
32851   ac_status=$?
32852   grep -v '^ *+' conftest.er1 >conftest.err
32853   rm -f conftest.er1
32854   cat conftest.err >&5
32855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32856   (exit $ac_status); } &&
32857          { ac_try='test -z "$ac_c_werror_flag"
32858                          || test ! -s conftest.err'
32859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32860   (eval $ac_try) 2>&5
32861   ac_status=$?
32862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32863   (exit $ac_status); }; } &&
32864          { ac_try='test -s conftest$ac_exeext'
32865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32866   (eval $ac_try) 2>&5
32867   ac_status=$?
32868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32869   (exit $ac_status); }; }; then
32870   ac_cv_func_pthread_attr_getschedpolicy=yes
32871 else
32872   echo "$as_me: failed program was:" >&5
32873 sed 's/^/| /' conftest.$ac_ext >&5
32874
32875 ac_cv_func_pthread_attr_getschedpolicy=no
32876 fi
32877 rm -f conftest.err conftest.$ac_objext \
32878       conftest$ac_exeext conftest.$ac_ext
32879 fi
32880 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
32881 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
32882 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
32883   echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
32884 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
32885 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
32886   echo $ECHO_N "(cached) $ECHO_C" >&6
32887 else
32888   cat >conftest.$ac_ext <<_ACEOF
32889 /* confdefs.h.  */
32890 _ACEOF
32891 cat confdefs.h >>conftest.$ac_ext
32892 cat >>conftest.$ac_ext <<_ACEOF
32893 /* end confdefs.h.  */
32894 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
32895    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32896 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
32897
32898 /* System header to define __stub macros and hopefully few prototypes,
32899     which can conflict with char pthread_attr_setschedparam (); below.
32900     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32901     <limits.h> exists even on freestanding compilers.  */
32902
32903 #ifdef __STDC__
32904 # include <limits.h>
32905 #else
32906 # include <assert.h>
32907 #endif
32908
32909 #undef pthread_attr_setschedparam
32910
32911 /* Override any gcc2 internal prototype to avoid an error.  */
32912 #ifdef __cplusplus
32913 extern "C"
32914 {
32915 #endif
32916 /* We use char because int might match the return type of a gcc2
32917    builtin and then its argument prototype would still apply.  */
32918 char pthread_attr_setschedparam ();
32919 /* The GNU C library defines this for functions which it implements
32920     to always fail with ENOSYS.  Some functions are actually named
32921     something starting with __ and the normal name is an alias.  */
32922 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32923 choke me
32924 #else
32925 char (*f) () = pthread_attr_setschedparam;
32926 #endif
32927 #ifdef __cplusplus
32928 }
32929 #endif
32930
32931 int
32932 main ()
32933 {
32934 return f != pthread_attr_setschedparam;
32935   ;
32936   return 0;
32937 }
32938 _ACEOF
32939 rm -f conftest.$ac_objext conftest$ac_exeext
32940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32941   (eval $ac_link) 2>conftest.er1
32942   ac_status=$?
32943   grep -v '^ *+' conftest.er1 >conftest.err
32944   rm -f conftest.er1
32945   cat conftest.err >&5
32946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32947   (exit $ac_status); } &&
32948          { ac_try='test -z "$ac_c_werror_flag"
32949                          || test ! -s conftest.err'
32950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32951   (eval $ac_try) 2>&5
32952   ac_status=$?
32953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32954   (exit $ac_status); }; } &&
32955          { ac_try='test -s conftest$ac_exeext'
32956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32957   (eval $ac_try) 2>&5
32958   ac_status=$?
32959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32960   (exit $ac_status); }; }; then
32961   ac_cv_func_pthread_attr_setschedparam=yes
32962 else
32963   echo "$as_me: failed program was:" >&5
32964 sed 's/^/| /' conftest.$ac_ext >&5
32965
32966 ac_cv_func_pthread_attr_setschedparam=no
32967 fi
32968 rm -f conftest.err conftest.$ac_objext \
32969       conftest$ac_exeext conftest.$ac_ext
32970 fi
32971 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32972 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32973 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32974   echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32975 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32976 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32977   echo $ECHO_N "(cached) $ECHO_C" >&6
32978 else
32979   cat >conftest.$ac_ext <<_ACEOF
32980 /* confdefs.h.  */
32981 _ACEOF
32982 cat confdefs.h >>conftest.$ac_ext
32983 cat >>conftest.$ac_ext <<_ACEOF
32984 /* end confdefs.h.  */
32985 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32986    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32987 #define sched_get_priority_max innocuous_sched_get_priority_max
32988
32989 /* System header to define __stub macros and hopefully few prototypes,
32990     which can conflict with char sched_get_priority_max (); below.
32991     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32992     <limits.h> exists even on freestanding compilers.  */
32993
32994 #ifdef __STDC__
32995 # include <limits.h>
32996 #else
32997 # include <assert.h>
32998 #endif
32999
33000 #undef sched_get_priority_max
33001
33002 /* Override any gcc2 internal prototype to avoid an error.  */
33003 #ifdef __cplusplus
33004 extern "C"
33005 {
33006 #endif
33007 /* We use char because int might match the return type of a gcc2
33008    builtin and then its argument prototype would still apply.  */
33009 char sched_get_priority_max ();
33010 /* The GNU C library defines this for functions which it implements
33011     to always fail with ENOSYS.  Some functions are actually named
33012     something starting with __ and the normal name is an alias.  */
33013 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
33014 choke me
33015 #else
33016 char (*f) () = sched_get_priority_max;
33017 #endif
33018 #ifdef __cplusplus
33019 }
33020 #endif
33021
33022 int
33023 main ()
33024 {
33025 return f != sched_get_priority_max;
33026   ;
33027   return 0;
33028 }
33029 _ACEOF
33030 rm -f conftest.$ac_objext conftest$ac_exeext
33031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33032   (eval $ac_link) 2>conftest.er1
33033   ac_status=$?
33034   grep -v '^ *+' conftest.er1 >conftest.err
33035   rm -f conftest.er1
33036   cat conftest.err >&5
33037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33038   (exit $ac_status); } &&
33039          { ac_try='test -z "$ac_c_werror_flag"
33040                          || test ! -s conftest.err'
33041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33042   (eval $ac_try) 2>&5
33043   ac_status=$?
33044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33045   (exit $ac_status); }; } &&
33046          { ac_try='test -s conftest$ac_exeext'
33047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33048   (eval $ac_try) 2>&5
33049   ac_status=$?
33050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33051   (exit $ac_status); }; }; then
33052   ac_cv_func_sched_get_priority_max=yes
33053 else
33054   echo "$as_me: failed program was:" >&5
33055 sed 's/^/| /' conftest.$ac_ext >&5
33056
33057 ac_cv_func_sched_get_priority_max=no
33058 fi
33059 rm -f conftest.err conftest.$ac_objext \
33060       conftest$ac_exeext conftest.$ac_ext
33061 fi
33062 echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
33063 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
33064 if test $ac_cv_func_sched_get_priority_max = yes; then
33065   HAVE_PRIOR_FUNCS=1
33066 else
33067   echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
33068 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
33069 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
33070   echo $ECHO_N "(cached) $ECHO_C" >&6
33071 else
33072   ac_check_lib_save_LIBS=$LIBS
33073 LIBS="-lposix4  $LIBS"
33074 cat >conftest.$ac_ext <<_ACEOF
33075 /* confdefs.h.  */
33076 _ACEOF
33077 cat confdefs.h >>conftest.$ac_ext
33078 cat >>conftest.$ac_ext <<_ACEOF
33079 /* end confdefs.h.  */
33080
33081 /* Override any gcc2 internal prototype to avoid an error.  */
33082 #ifdef __cplusplus
33083 extern "C"
33084 #endif
33085 /* We use char because int might match the return type of a gcc2
33086    builtin and then its argument prototype would still apply.  */
33087 char sched_get_priority_max ();
33088 int
33089 main ()
33090 {
33091 sched_get_priority_max ();
33092   ;
33093   return 0;
33094 }
33095 _ACEOF
33096 rm -f conftest.$ac_objext conftest$ac_exeext
33097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33098   (eval $ac_link) 2>conftest.er1
33099   ac_status=$?
33100   grep -v '^ *+' conftest.er1 >conftest.err
33101   rm -f conftest.er1
33102   cat conftest.err >&5
33103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33104   (exit $ac_status); } &&
33105          { ac_try='test -z "$ac_c_werror_flag"
33106                          || test ! -s conftest.err'
33107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33108   (eval $ac_try) 2>&5
33109   ac_status=$?
33110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33111   (exit $ac_status); }; } &&
33112          { ac_try='test -s conftest$ac_exeext'
33113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33114   (eval $ac_try) 2>&5
33115   ac_status=$?
33116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33117   (exit $ac_status); }; }; then
33118   ac_cv_lib_posix4_sched_get_priority_max=yes
33119 else
33120   echo "$as_me: failed program was:" >&5
33121 sed 's/^/| /' conftest.$ac_ext >&5
33122
33123 ac_cv_lib_posix4_sched_get_priority_max=no
33124 fi
33125 rm -f conftest.err conftest.$ac_objext \
33126       conftest$ac_exeext conftest.$ac_ext
33127 LIBS=$ac_check_lib_save_LIBS
33128 fi
33129 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
33130 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
33131 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
33132
33133                                 HAVE_PRIOR_FUNCS=1
33134                                 POSIX4_LINK=" -lposix4"
33135
33136 fi
33137
33138
33139 fi
33140
33141
33142 fi
33143
33144
33145 fi
33146
33147
33148       if test "$HAVE_PRIOR_FUNCS" = 1; then
33149         cat >>confdefs.h <<\_ACEOF
33150 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
33151 _ACEOF
33152
33153       else
33154         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
33155 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
33156       fi
33157
33158       echo "$as_me:$LINENO: checking for pthread_cancel" >&5
33159 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
33160 if test "${ac_cv_func_pthread_cancel+set}" = set; then
33161   echo $ECHO_N "(cached) $ECHO_C" >&6
33162 else
33163   cat >conftest.$ac_ext <<_ACEOF
33164 /* confdefs.h.  */
33165 _ACEOF
33166 cat confdefs.h >>conftest.$ac_ext
33167 cat >>conftest.$ac_ext <<_ACEOF
33168 /* end confdefs.h.  */
33169 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
33170    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33171 #define pthread_cancel innocuous_pthread_cancel
33172
33173 /* System header to define __stub macros and hopefully few prototypes,
33174     which can conflict with char pthread_cancel (); below.
33175     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33176     <limits.h> exists even on freestanding compilers.  */
33177
33178 #ifdef __STDC__
33179 # include <limits.h>
33180 #else
33181 # include <assert.h>
33182 #endif
33183
33184 #undef pthread_cancel
33185
33186 /* Override any gcc2 internal prototype to avoid an error.  */
33187 #ifdef __cplusplus
33188 extern "C"
33189 {
33190 #endif
33191 /* We use char because int might match the return type of a gcc2
33192    builtin and then its argument prototype would still apply.  */
33193 char pthread_cancel ();
33194 /* The GNU C library defines this for functions which it implements
33195     to always fail with ENOSYS.  Some functions are actually named
33196     something starting with __ and the normal name is an alias.  */
33197 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
33198 choke me
33199 #else
33200 char (*f) () = pthread_cancel;
33201 #endif
33202 #ifdef __cplusplus
33203 }
33204 #endif
33205
33206 int
33207 main ()
33208 {
33209 return f != pthread_cancel;
33210   ;
33211   return 0;
33212 }
33213 _ACEOF
33214 rm -f conftest.$ac_objext conftest$ac_exeext
33215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33216   (eval $ac_link) 2>conftest.er1
33217   ac_status=$?
33218   grep -v '^ *+' conftest.er1 >conftest.err
33219   rm -f conftest.er1
33220   cat conftest.err >&5
33221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33222   (exit $ac_status); } &&
33223          { ac_try='test -z "$ac_c_werror_flag"
33224                          || test ! -s conftest.err'
33225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33226   (eval $ac_try) 2>&5
33227   ac_status=$?
33228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33229   (exit $ac_status); }; } &&
33230          { ac_try='test -s conftest$ac_exeext'
33231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33232   (eval $ac_try) 2>&5
33233   ac_status=$?
33234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33235   (exit $ac_status); }; }; then
33236   ac_cv_func_pthread_cancel=yes
33237 else
33238   echo "$as_me: failed program was:" >&5
33239 sed 's/^/| /' conftest.$ac_ext >&5
33240
33241 ac_cv_func_pthread_cancel=no
33242 fi
33243 rm -f conftest.err conftest.$ac_objext \
33244       conftest$ac_exeext conftest.$ac_ext
33245 fi
33246 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
33247 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
33248 if test $ac_cv_func_pthread_cancel = yes; then
33249   cat >>confdefs.h <<\_ACEOF
33250 #define HAVE_PTHREAD_CANCEL 1
33251 _ACEOF
33252
33253 else
33254   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
33255 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
33256 fi
33257
33258
33259
33260
33261       echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
33262 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
33263 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
33264   echo $ECHO_N "(cached) $ECHO_C" >&6
33265 else
33266
33267         cat >conftest.$ac_ext <<_ACEOF
33268 /* confdefs.h.  */
33269 _ACEOF
33270 cat confdefs.h >>conftest.$ac_ext
33271 cat >>conftest.$ac_ext <<_ACEOF
33272 /* end confdefs.h.  */
33273 #include <pthread.h>
33274 int
33275 main ()
33276 {
33277
33278                pthread_mutexattr_t attr;
33279                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
33280
33281   ;
33282   return 0;
33283 }
33284 _ACEOF
33285 rm -f conftest.$ac_objext
33286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33287   (eval $ac_compile) 2>conftest.er1
33288   ac_status=$?
33289   grep -v '^ *+' conftest.er1 >conftest.err
33290   rm -f conftest.er1
33291   cat conftest.err >&5
33292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33293   (exit $ac_status); } &&
33294          { ac_try='test -z "$ac_c_werror_flag"
33295                          || test ! -s conftest.err'
33296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33297   (eval $ac_try) 2>&5
33298   ac_status=$?
33299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33300   (exit $ac_status); }; } &&
33301          { ac_try='test -s conftest.$ac_objext'
33302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33303   (eval $ac_try) 2>&5
33304   ac_status=$?
33305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33306   (exit $ac_status); }; }; then
33307
33308                wx_cv_type_pthread_mutexattr_t=yes
33309
33310 else
33311   echo "$as_me: failed program was:" >&5
33312 sed 's/^/| /' conftest.$ac_ext >&5
33313
33314
33315                wx_cv_type_pthread_mutexattr_t=no
33316
33317
33318 fi
33319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33320
33321 fi
33322 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
33323 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
33324
33325       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
33326         cat >>confdefs.h <<\_ACEOF
33327 #define HAVE_PTHREAD_MUTEXATTR_T 1
33328 _ACEOF
33329
33330       else
33331                 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
33332 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
33333 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
33334   echo $ECHO_N "(cached) $ECHO_C" >&6
33335 else
33336
33337             cat >conftest.$ac_ext <<_ACEOF
33338 /* confdefs.h.  */
33339 _ACEOF
33340 cat confdefs.h >>conftest.$ac_ext
33341 cat >>conftest.$ac_ext <<_ACEOF
33342 /* end confdefs.h.  */
33343 #include <pthread.h>
33344 int
33345 main ()
33346 {
33347
33348                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
33349
33350   ;
33351   return 0;
33352 }
33353 _ACEOF
33354 rm -f conftest.$ac_objext
33355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33356   (eval $ac_compile) 2>conftest.er1
33357   ac_status=$?
33358   grep -v '^ *+' conftest.er1 >conftest.err
33359   rm -f conftest.er1
33360   cat conftest.err >&5
33361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33362   (exit $ac_status); } &&
33363          { ac_try='test -z "$ac_c_werror_flag"
33364                          || test ! -s conftest.err'
33365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33366   (eval $ac_try) 2>&5
33367   ac_status=$?
33368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33369   (exit $ac_status); }; } &&
33370          { ac_try='test -s conftest.$ac_objext'
33371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33372   (eval $ac_try) 2>&5
33373   ac_status=$?
33374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33375   (exit $ac_status); }; }; then
33376
33377                     wx_cv_type_pthread_rec_mutex_init=yes
33378
33379 else
33380   echo "$as_me: failed program was:" >&5
33381 sed 's/^/| /' conftest.$ac_ext >&5
33382
33383
33384                     wx_cv_type_pthread_rec_mutex_init=no
33385
33386
33387 fi
33388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33389
33390 fi
33391 echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
33392 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
33393         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
33394           cat >>confdefs.h <<\_ACEOF
33395 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
33396 _ACEOF
33397
33398         else
33399                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
33400 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
33401         fi
33402       fi
33403     fi
33404
33405 else
33406     if test "$wxUSE_THREADS" = "yes" ; then
33407       case "${host}" in
33408         *-*-mingw32* )
33409                         echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
33410 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33411 if test "${wx_cv_cflags_mthread+set}" = set; then
33412   echo $ECHO_N "(cached) $ECHO_C" >&6
33413 else
33414
33415                     CFLAGS_OLD="$CFLAGS"
33416                     CFLAGS="$CFLAGS -mthreads"
33417                     cat >conftest.$ac_ext <<_ACEOF
33418 /* confdefs.h.  */
33419 _ACEOF
33420 cat confdefs.h >>conftest.$ac_ext
33421 cat >>conftest.$ac_ext <<_ACEOF
33422 /* end confdefs.h.  */
33423
33424 int
33425 main ()
33426 {
33427
33428   ;
33429   return 0;
33430 }
33431 _ACEOF
33432 rm -f conftest.$ac_objext
33433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33434   (eval $ac_compile) 2>conftest.er1
33435   ac_status=$?
33436   grep -v '^ *+' conftest.er1 >conftest.err
33437   rm -f conftest.er1
33438   cat conftest.err >&5
33439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33440   (exit $ac_status); } &&
33441          { ac_try='test -z "$ac_c_werror_flag"
33442                          || test ! -s conftest.err'
33443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33444   (eval $ac_try) 2>&5
33445   ac_status=$?
33446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33447   (exit $ac_status); }; } &&
33448          { ac_try='test -s conftest.$ac_objext'
33449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33450   (eval $ac_try) 2>&5
33451   ac_status=$?
33452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33453   (exit $ac_status); }; }; then
33454   wx_cv_cflags_mthread=yes
33455 else
33456   echo "$as_me: failed program was:" >&5
33457 sed 's/^/| /' conftest.$ac_ext >&5
33458
33459 wx_cv_cflags_mthread=no
33460
33461 fi
33462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33463
33464
33465 fi
33466 echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33467 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
33468
33469             if test "$wx_cv_cflags_mthread" = "yes"; then
33470                                 CXXFLAGS="$CXXFLAGS -mthreads"
33471                 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33472                 LDFLAGS="$LDFLAGS -mthreads"
33473             else
33474                                 CFLAGS="$CFLAGS_OLD"
33475             fi
33476         ;;
33477         *-pc-os2*emx )
33478             CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33479             CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33480             LDFLAGS="$LDFLAGS -Zmt"
33481         ;;
33482       esac
33483     fi
33484 fi
33485
33486 if test "$wxUSE_THREADS" = "yes"; then
33487   cat >>confdefs.h <<\_ACEOF
33488 #define wxUSE_THREADS 1
33489 _ACEOF
33490
33491
33492   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
33493 else
33494       if test "$ac_cv_func_strtok_r" = "yes"; then
33495     echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33496 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
33497     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33498         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
33499         echo "$as_me:$LINENO: result: yes" >&5
33500 echo "${ECHO_T}yes" >&6
33501     else
33502         echo "$as_me:$LINENO: result: no" >&5
33503 echo "${ECHO_T}no" >&6
33504     fi
33505   fi
33506 fi
33507
33508 if test "$WXGTK20" = 1 ; then
33509   cat >>confdefs.h <<_ACEOF
33510 #define __WXGTK20__ $WXGTK20
33511 _ACEOF
33512
33513   WXGTK12=1
33514 fi
33515
33516 if test "$WXGTK12" = 1 ; then
33517   cat >>confdefs.h <<_ACEOF
33518 #define __WXGTK12__ $WXGTK12
33519 _ACEOF
33520
33521 fi
33522
33523 if test "$WXGTK127" = 1 ; then
33524   cat >>confdefs.h <<_ACEOF
33525 #define __WXGTK127__ $WXGTK127
33526 _ACEOF
33527
33528 fi
33529
33530 if test "$WXGPE" = 1 ; then
33531   cat >>confdefs.h <<_ACEOF
33532 #define __WXGPE__ $WXGPE
33533 _ACEOF
33534
33535 fi
33536
33537 WXDEBUG=
33538
33539 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
33540     WXDEBUG="-g"
33541     wxUSE_OPTIMISE=no
33542 fi
33543
33544 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
33545     wxUSE_DEBUG_INFO=yes
33546     WXDEBUG="-ggdb"
33547 fi
33548
33549 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
33550     cat >>confdefs.h <<\_ACEOF
33551 #define WXDEBUG 1
33552 _ACEOF
33553
33554     WXDEBUG_DEFINE="-D__WXDEBUG__"
33555 else
33556     if test "$wxUSE_GTK" = 1 ; then
33557         WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
33558     fi
33559 fi
33560
33561 if test "$wxUSE_MEM_TRACING" = "yes" ; then
33562     cat >>confdefs.h <<\_ACEOF
33563 #define wxUSE_MEMORY_TRACING 1
33564 _ACEOF
33565
33566     cat >>confdefs.h <<\_ACEOF
33567 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
33568 _ACEOF
33569
33570     cat >>confdefs.h <<\_ACEOF
33571 #define wxUSE_DEBUG_NEW_ALWAYS 1
33572 _ACEOF
33573
33574     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
33575 fi
33576
33577 if test "$wxUSE_DMALLOC" = "yes" ; then
33578     DMALLOC_LIBS="-ldmalloc"
33579 fi
33580
33581 PROFILE=
33582 if test "$wxUSE_PROFILE" = "yes" ; then
33583     PROFILE=" -pg"
33584 fi
33585
33586 CODE_GEN_FLAGS=
33587 CODE_GEN_FLAGS_CXX=
33588 if test "$GCC" = "yes" ; then
33589     if test "$wxUSE_NO_RTTI" = "yes" ; then
33590         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
33591     fi
33592     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
33593         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
33594     fi
33595     if test "$wxUSE_PERMISSIVE" = "yes" ; then
33596         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
33597     fi
33598
33599                                                 case "${host}" in
33600       powerpc*-*-aix* )
33601         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
33602         ;;
33603       *-hppa* )
33604         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
33605         ;;
33606     esac
33607 fi
33608
33609 OPTIMISE=
33610 if test "$wxUSE_OPTIMISE" = "no" ; then
33611     if test "$GCC" = yes ; then
33612                         OPTIMISE="-O0"
33613     fi
33614 else
33615     if test "$GCC" = yes ; then
33616         OPTIMISE="-O2"
33617
33618                 case "${host}" in
33619             i586-*-*|i686-*-* )
33620             OPTIMISE="${OPTIMISE} "
33621         ;;
33622         esac
33623     else
33624         OPTIMISE="-O"
33625     fi
33626 fi
33627
33628
33629 if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
33630     cat >>confdefs.h <<\_ACEOF
33631 #define WXWIN_COMPATIBILITY_2_2 1
33632 _ACEOF
33633
33634
33635     WXWIN_COMPATIBILITY_2_4="yes"
33636 fi
33637
33638 if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
33639     cat >>confdefs.h <<\_ACEOF
33640 #define WXWIN_COMPATIBILITY_2_4 1
33641 _ACEOF
33642
33643 fi
33644
33645
33646 if test "$wxUSE_GUI" = "yes"; then
33647   cat >>confdefs.h <<\_ACEOF
33648 #define wxUSE_GUI 1
33649 _ACEOF
33650
33651
33652                       else
33653   cat >>confdefs.h <<\_ACEOF
33654 #define wxUSE_NOGUI 1
33655 _ACEOF
33656
33657 fi
33658
33659
33660 if test "$wxUSE_UNIX" = "yes"; then
33661   cat >>confdefs.h <<\_ACEOF
33662 #define wxUSE_UNIX 1
33663 _ACEOF
33664
33665 fi
33666
33667
33668 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33669
33670     HAVE_DL_FUNCS=0
33671     HAVE_SHL_FUNCS=0
33672     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33673         if test "$USE_DARWIN" = 1; then
33674                         HAVE_DL_FUNCS=1
33675         else
33676
33677 for ac_func in dlopen
33678 do
33679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33680 echo "$as_me:$LINENO: checking for $ac_func" >&5
33681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33682 if eval "test \"\${$as_ac_var+set}\" = set"; then
33683   echo $ECHO_N "(cached) $ECHO_C" >&6
33684 else
33685   cat >conftest.$ac_ext <<_ACEOF
33686 /* confdefs.h.  */
33687 _ACEOF
33688 cat confdefs.h >>conftest.$ac_ext
33689 cat >>conftest.$ac_ext <<_ACEOF
33690 /* end confdefs.h.  */
33691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33692    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33693 #define $ac_func innocuous_$ac_func
33694
33695 /* System header to define __stub macros and hopefully few prototypes,
33696     which can conflict with char $ac_func (); below.
33697     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33698     <limits.h> exists even on freestanding compilers.  */
33699
33700 #ifdef __STDC__
33701 # include <limits.h>
33702 #else
33703 # include <assert.h>
33704 #endif
33705
33706 #undef $ac_func
33707
33708 /* Override any gcc2 internal prototype to avoid an error.  */
33709 #ifdef __cplusplus
33710 extern "C"
33711 {
33712 #endif
33713 /* We use char because int might match the return type of a gcc2
33714    builtin and then its argument prototype would still apply.  */
33715 char $ac_func ();
33716 /* The GNU C library defines this for functions which it implements
33717     to always fail with ENOSYS.  Some functions are actually named
33718     something starting with __ and the normal name is an alias.  */
33719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33720 choke me
33721 #else
33722 char (*f) () = $ac_func;
33723 #endif
33724 #ifdef __cplusplus
33725 }
33726 #endif
33727
33728 int
33729 main ()
33730 {
33731 return f != $ac_func;
33732   ;
33733   return 0;
33734 }
33735 _ACEOF
33736 rm -f conftest.$ac_objext conftest$ac_exeext
33737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33738   (eval $ac_link) 2>conftest.er1
33739   ac_status=$?
33740   grep -v '^ *+' conftest.er1 >conftest.err
33741   rm -f conftest.er1
33742   cat conftest.err >&5
33743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33744   (exit $ac_status); } &&
33745          { ac_try='test -z "$ac_c_werror_flag"
33746                          || test ! -s conftest.err'
33747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33748   (eval $ac_try) 2>&5
33749   ac_status=$?
33750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33751   (exit $ac_status); }; } &&
33752          { ac_try='test -s conftest$ac_exeext'
33753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33754   (eval $ac_try) 2>&5
33755   ac_status=$?
33756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33757   (exit $ac_status); }; }; then
33758   eval "$as_ac_var=yes"
33759 else
33760   echo "$as_me: failed program was:" >&5
33761 sed 's/^/| /' conftest.$ac_ext >&5
33762
33763 eval "$as_ac_var=no"
33764 fi
33765 rm -f conftest.err conftest.$ac_objext \
33766       conftest$ac_exeext conftest.$ac_ext
33767 fi
33768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33770 if test `eval echo '${'$as_ac_var'}'` = yes; then
33771   cat >>confdefs.h <<_ACEOF
33772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33773 _ACEOF
33774
33775                 cat >>confdefs.h <<\_ACEOF
33776 #define HAVE_DLOPEN 1
33777 _ACEOF
33778
33779                 HAVE_DL_FUNCS=1
33780
33781 else
33782
33783                 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
33784 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
33785 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
33786   echo $ECHO_N "(cached) $ECHO_C" >&6
33787 else
33788   ac_check_lib_save_LIBS=$LIBS
33789 LIBS="-ldl  $LIBS"
33790 cat >conftest.$ac_ext <<_ACEOF
33791 /* confdefs.h.  */
33792 _ACEOF
33793 cat confdefs.h >>conftest.$ac_ext
33794 cat >>conftest.$ac_ext <<_ACEOF
33795 /* end confdefs.h.  */
33796
33797 /* Override any gcc2 internal prototype to avoid an error.  */
33798 #ifdef __cplusplus
33799 extern "C"
33800 #endif
33801 /* We use char because int might match the return type of a gcc2
33802    builtin and then its argument prototype would still apply.  */
33803 char dlopen ();
33804 int
33805 main ()
33806 {
33807 dlopen ();
33808   ;
33809   return 0;
33810 }
33811 _ACEOF
33812 rm -f conftest.$ac_objext conftest$ac_exeext
33813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33814   (eval $ac_link) 2>conftest.er1
33815   ac_status=$?
33816   grep -v '^ *+' conftest.er1 >conftest.err
33817   rm -f conftest.er1
33818   cat conftest.err >&5
33819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33820   (exit $ac_status); } &&
33821          { ac_try='test -z "$ac_c_werror_flag"
33822                          || test ! -s conftest.err'
33823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33824   (eval $ac_try) 2>&5
33825   ac_status=$?
33826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33827   (exit $ac_status); }; } &&
33828          { ac_try='test -s conftest$ac_exeext'
33829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33830   (eval $ac_try) 2>&5
33831   ac_status=$?
33832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33833   (exit $ac_status); }; }; then
33834   ac_cv_lib_dl_dlopen=yes
33835 else
33836   echo "$as_me: failed program was:" >&5
33837 sed 's/^/| /' conftest.$ac_ext >&5
33838
33839 ac_cv_lib_dl_dlopen=no
33840 fi
33841 rm -f conftest.err conftest.$ac_objext \
33842       conftest$ac_exeext conftest.$ac_ext
33843 LIBS=$ac_check_lib_save_LIBS
33844 fi
33845 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33846 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33847 if test $ac_cv_lib_dl_dlopen = yes; then
33848
33849                                 cat >>confdefs.h <<\_ACEOF
33850 #define HAVE_DLOPEN 1
33851 _ACEOF
33852
33853                                 HAVE_DL_FUNCS=1
33854                                 DL_LINK=" -ldl$DL_LINK"
33855
33856 else
33857
33858
33859 for ac_func in shl_load
33860 do
33861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33862 echo "$as_me:$LINENO: checking for $ac_func" >&5
33863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33864 if eval "test \"\${$as_ac_var+set}\" = set"; then
33865   echo $ECHO_N "(cached) $ECHO_C" >&6
33866 else
33867   cat >conftest.$ac_ext <<_ACEOF
33868 /* confdefs.h.  */
33869 _ACEOF
33870 cat confdefs.h >>conftest.$ac_ext
33871 cat >>conftest.$ac_ext <<_ACEOF
33872 /* end confdefs.h.  */
33873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33874    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33875 #define $ac_func innocuous_$ac_func
33876
33877 /* System header to define __stub macros and hopefully few prototypes,
33878     which can conflict with char $ac_func (); below.
33879     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33880     <limits.h> exists even on freestanding compilers.  */
33881
33882 #ifdef __STDC__
33883 # include <limits.h>
33884 #else
33885 # include <assert.h>
33886 #endif
33887
33888 #undef $ac_func
33889
33890 /* Override any gcc2 internal prototype to avoid an error.  */
33891 #ifdef __cplusplus
33892 extern "C"
33893 {
33894 #endif
33895 /* We use char because int might match the return type of a gcc2
33896    builtin and then its argument prototype would still apply.  */
33897 char $ac_func ();
33898 /* The GNU C library defines this for functions which it implements
33899     to always fail with ENOSYS.  Some functions are actually named
33900     something starting with __ and the normal name is an alias.  */
33901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33902 choke me
33903 #else
33904 char (*f) () = $ac_func;
33905 #endif
33906 #ifdef __cplusplus
33907 }
33908 #endif
33909
33910 int
33911 main ()
33912 {
33913 return f != $ac_func;
33914   ;
33915   return 0;
33916 }
33917 _ACEOF
33918 rm -f conftest.$ac_objext conftest$ac_exeext
33919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33920   (eval $ac_link) 2>conftest.er1
33921   ac_status=$?
33922   grep -v '^ *+' conftest.er1 >conftest.err
33923   rm -f conftest.er1
33924   cat conftest.err >&5
33925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33926   (exit $ac_status); } &&
33927          { ac_try='test -z "$ac_c_werror_flag"
33928                          || test ! -s conftest.err'
33929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33930   (eval $ac_try) 2>&5
33931   ac_status=$?
33932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33933   (exit $ac_status); }; } &&
33934          { ac_try='test -s conftest$ac_exeext'
33935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33936   (eval $ac_try) 2>&5
33937   ac_status=$?
33938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33939   (exit $ac_status); }; }; then
33940   eval "$as_ac_var=yes"
33941 else
33942   echo "$as_me: failed program was:" >&5
33943 sed 's/^/| /' conftest.$ac_ext >&5
33944
33945 eval "$as_ac_var=no"
33946 fi
33947 rm -f conftest.err conftest.$ac_objext \
33948       conftest$ac_exeext conftest.$ac_ext
33949 fi
33950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33951 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33952 if test `eval echo '${'$as_ac_var'}'` = yes; then
33953   cat >>confdefs.h <<_ACEOF
33954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33955 _ACEOF
33956
33957                                                 cat >>confdefs.h <<\_ACEOF
33958 #define HAVE_SHL_LOAD 1
33959 _ACEOF
33960
33961                                                 HAVE_SHL_FUNCS=1
33962
33963 else
33964
33965                                                 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
33966 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
33967 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
33968   echo $ECHO_N "(cached) $ECHO_C" >&6
33969 else
33970   ac_check_lib_save_LIBS=$LIBS
33971 LIBS="-lshl_load  $LIBS"
33972 cat >conftest.$ac_ext <<_ACEOF
33973 /* confdefs.h.  */
33974 _ACEOF
33975 cat confdefs.h >>conftest.$ac_ext
33976 cat >>conftest.$ac_ext <<_ACEOF
33977 /* end confdefs.h.  */
33978
33979 /* Override any gcc2 internal prototype to avoid an error.  */
33980 #ifdef __cplusplus
33981 extern "C"
33982 #endif
33983 /* We use char because int might match the return type of a gcc2
33984    builtin and then its argument prototype would still apply.  */
33985 char dld ();
33986 int
33987 main ()
33988 {
33989 dld ();
33990   ;
33991   return 0;
33992 }
33993 _ACEOF
33994 rm -f conftest.$ac_objext conftest$ac_exeext
33995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33996   (eval $ac_link) 2>conftest.er1
33997   ac_status=$?
33998   grep -v '^ *+' conftest.er1 >conftest.err
33999   rm -f conftest.er1
34000   cat conftest.err >&5
34001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34002   (exit $ac_status); } &&
34003          { ac_try='test -z "$ac_c_werror_flag"
34004                          || test ! -s conftest.err'
34005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34006   (eval $ac_try) 2>&5
34007   ac_status=$?
34008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34009   (exit $ac_status); }; } &&
34010          { ac_try='test -s conftest$ac_exeext'
34011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34012   (eval $ac_try) 2>&5
34013   ac_status=$?
34014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34015   (exit $ac_status); }; }; then
34016   ac_cv_lib_shl_load_dld=yes
34017 else
34018   echo "$as_me: failed program was:" >&5
34019 sed 's/^/| /' conftest.$ac_ext >&5
34020
34021 ac_cv_lib_shl_load_dld=no
34022 fi
34023 rm -f conftest.err conftest.$ac_objext \
34024       conftest$ac_exeext conftest.$ac_ext
34025 LIBS=$ac_check_lib_save_LIBS
34026 fi
34027 echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
34028 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
34029 if test $ac_cv_lib_shl_load_dld = yes; then
34030
34031                                                                 HAVE_SHL_FUNCS=1
34032                                                                 DL_LINK=" -ldld$DL_LINK"
34033
34034 fi
34035
34036
34037 fi
34038 done
34039
34040
34041 fi
34042
34043
34044 fi
34045 done
34046
34047
34048                 if test "$HAVE_DL_FUNCS" = 1; then
34049
34050 for ac_func in dlerror
34051 do
34052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34053 echo "$as_me:$LINENO: checking for $ac_func" >&5
34054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34055 if eval "test \"\${$as_ac_var+set}\" = set"; then
34056   echo $ECHO_N "(cached) $ECHO_C" >&6
34057 else
34058   cat >conftest.$ac_ext <<_ACEOF
34059 /* confdefs.h.  */
34060 _ACEOF
34061 cat confdefs.h >>conftest.$ac_ext
34062 cat >>conftest.$ac_ext <<_ACEOF
34063 /* end confdefs.h.  */
34064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34065    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34066 #define $ac_func innocuous_$ac_func
34067
34068 /* System header to define __stub macros and hopefully few prototypes,
34069     which can conflict with char $ac_func (); below.
34070     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34071     <limits.h> exists even on freestanding compilers.  */
34072
34073 #ifdef __STDC__
34074 # include <limits.h>
34075 #else
34076 # include <assert.h>
34077 #endif
34078
34079 #undef $ac_func
34080
34081 /* Override any gcc2 internal prototype to avoid an error.  */
34082 #ifdef __cplusplus
34083 extern "C"
34084 {
34085 #endif
34086 /* We use char because int might match the return type of a gcc2
34087    builtin and then its argument prototype would still apply.  */
34088 char $ac_func ();
34089 /* The GNU C library defines this for functions which it implements
34090     to always fail with ENOSYS.  Some functions are actually named
34091     something starting with __ and the normal name is an alias.  */
34092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34093 choke me
34094 #else
34095 char (*f) () = $ac_func;
34096 #endif
34097 #ifdef __cplusplus
34098 }
34099 #endif
34100
34101 int
34102 main ()
34103 {
34104 return f != $ac_func;
34105   ;
34106   return 0;
34107 }
34108 _ACEOF
34109 rm -f conftest.$ac_objext conftest$ac_exeext
34110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34111   (eval $ac_link) 2>conftest.er1
34112   ac_status=$?
34113   grep -v '^ *+' conftest.er1 >conftest.err
34114   rm -f conftest.er1
34115   cat conftest.err >&5
34116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34117   (exit $ac_status); } &&
34118          { ac_try='test -z "$ac_c_werror_flag"
34119                          || test ! -s conftest.err'
34120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34121   (eval $ac_try) 2>&5
34122   ac_status=$?
34123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34124   (exit $ac_status); }; } &&
34125          { ac_try='test -s conftest$ac_exeext'
34126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34127   (eval $ac_try) 2>&5
34128   ac_status=$?
34129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34130   (exit $ac_status); }; }; then
34131   eval "$as_ac_var=yes"
34132 else
34133   echo "$as_me: failed program was:" >&5
34134 sed 's/^/| /' conftest.$ac_ext >&5
34135
34136 eval "$as_ac_var=no"
34137 fi
34138 rm -f conftest.err conftest.$ac_objext \
34139       conftest$ac_exeext conftest.$ac_ext
34140 fi
34141 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34142 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34143 if test `eval echo '${'$as_ac_var'}'` = yes; then
34144   cat >>confdefs.h <<_ACEOF
34145 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34146 _ACEOF
34147  cat >>confdefs.h <<\_ACEOF
34148 #define HAVE_DLERROR 1
34149 _ACEOF
34150
34151 else
34152
34153                     echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
34154 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
34155 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
34156   echo $ECHO_N "(cached) $ECHO_C" >&6
34157 else
34158   ac_check_lib_save_LIBS=$LIBS
34159 LIBS="-ldl  $LIBS"
34160 cat >conftest.$ac_ext <<_ACEOF
34161 /* confdefs.h.  */
34162 _ACEOF
34163 cat confdefs.h >>conftest.$ac_ext
34164 cat >>conftest.$ac_ext <<_ACEOF
34165 /* end confdefs.h.  */
34166
34167 /* Override any gcc2 internal prototype to avoid an error.  */
34168 #ifdef __cplusplus
34169 extern "C"
34170 #endif
34171 /* We use char because int might match the return type of a gcc2
34172    builtin and then its argument prototype would still apply.  */
34173 char dlerror ();
34174 int
34175 main ()
34176 {
34177 dlerror ();
34178   ;
34179   return 0;
34180 }
34181 _ACEOF
34182 rm -f conftest.$ac_objext conftest$ac_exeext
34183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34184   (eval $ac_link) 2>conftest.er1
34185   ac_status=$?
34186   grep -v '^ *+' conftest.er1 >conftest.err
34187   rm -f conftest.er1
34188   cat conftest.err >&5
34189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34190   (exit $ac_status); } &&
34191          { ac_try='test -z "$ac_c_werror_flag"
34192                          || test ! -s conftest.err'
34193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34194   (eval $ac_try) 2>&5
34195   ac_status=$?
34196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34197   (exit $ac_status); }; } &&
34198          { ac_try='test -s conftest$ac_exeext'
34199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34200   (eval $ac_try) 2>&5
34201   ac_status=$?
34202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34203   (exit $ac_status); }; }; then
34204   ac_cv_lib_dl_dlerror=yes
34205 else
34206   echo "$as_me: failed program was:" >&5
34207 sed 's/^/| /' conftest.$ac_ext >&5
34208
34209 ac_cv_lib_dl_dlerror=no
34210 fi
34211 rm -f conftest.err conftest.$ac_objext \
34212       conftest$ac_exeext conftest.$ac_ext
34213 LIBS=$ac_check_lib_save_LIBS
34214 fi
34215 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
34216 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
34217 if test $ac_cv_lib_dl_dlerror = yes; then
34218   cat >>confdefs.h <<\_ACEOF
34219 #define HAVE_DLERROR 1
34220 _ACEOF
34221
34222 fi
34223
34224
34225
34226 fi
34227 done
34228
34229         fi
34230         fi
34231
34232         if test "$HAVE_DL_FUNCS" = 0; then
34233             if test "$HAVE_SHL_FUNCS" = 0; then
34234               if test "$USE_UNIX" = 1; then
34235                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
34236 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
34237                   wxUSE_DYNAMIC_LOADER=no
34238                   wxUSE_DYNLIB_CLASS=no
34239               else
34240                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
34241 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
34242               fi
34243             fi
34244         fi
34245     fi
34246 fi
34247
34248 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
34249     cat >>confdefs.h <<\_ACEOF
34250 #define wxUSE_DYNAMIC_LOADER 1
34251 _ACEOF
34252
34253 fi
34254 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34255     cat >>confdefs.h <<\_ACEOF
34256 #define wxUSE_DYNLIB_CLASS 1
34257 _ACEOF
34258
34259 fi
34260
34261
34262
34263 if test "$wxUSE_PLUGINS" = "yes" ; then
34264     if test "$wxUSE_SHARED" = "no" ; then
34265         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
34266 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
34267         wxUSE_PLUGINS=no
34268     fi
34269     if test "$wxUSE_MONOLITHIC" = "yes" ; then
34270         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
34271 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
34272         wxUSE_PLUGINS=no
34273     fi
34274     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
34275         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
34276 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
34277         wxUSE_PLUGINS=no
34278     fi
34279     if test "$wxUSE_PLUGINS" = "yes" ; then
34280         cat >>confdefs.h <<\_ACEOF
34281 #define wxUSE_PLUGINS 1
34282 _ACEOF
34283
34284     fi
34285 fi
34286
34287
34288 if test "$wxUSE_STL" = "yes"; then
34289   cat >>confdefs.h <<\_ACEOF
34290 #define wxUSE_STL 1
34291 _ACEOF
34292
34293 fi
34294
34295 if test "$wxUSE_APPLE_IEEE" = "yes"; then
34296   cat >>confdefs.h <<\_ACEOF
34297 #define wxUSE_APPLE_IEEE 1
34298 _ACEOF
34299
34300 fi
34301
34302 if test "$wxUSE_TIMER" = "yes"; then
34303   cat >>confdefs.h <<\_ACEOF
34304 #define wxUSE_TIMER 1
34305 _ACEOF
34306
34307 fi
34308
34309 WITH_PLUGIN_SDL=0
34310 if test "$wxUSE_SOUND" = "yes"; then
34311       if test "$USE_UNIX" = "1" ; then
34312
34313 for ac_header in sys/soundcard.h
34314 do
34315 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34316 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34317   echo "$as_me:$LINENO: checking for $ac_header" >&5
34318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34320   echo $ECHO_N "(cached) $ECHO_C" >&6
34321 fi
34322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34324 else
34325   # Is the header compilable?
34326 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34327 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34328 cat >conftest.$ac_ext <<_ACEOF
34329 /* confdefs.h.  */
34330 _ACEOF
34331 cat confdefs.h >>conftest.$ac_ext
34332 cat >>conftest.$ac_ext <<_ACEOF
34333 /* end confdefs.h.  */
34334 $ac_includes_default
34335 #include <$ac_header>
34336 _ACEOF
34337 rm -f conftest.$ac_objext
34338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34339   (eval $ac_compile) 2>conftest.er1
34340   ac_status=$?
34341   grep -v '^ *+' conftest.er1 >conftest.err
34342   rm -f conftest.er1
34343   cat conftest.err >&5
34344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34345   (exit $ac_status); } &&
34346          { ac_try='test -z "$ac_c_werror_flag"
34347                          || test ! -s conftest.err'
34348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34349   (eval $ac_try) 2>&5
34350   ac_status=$?
34351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34352   (exit $ac_status); }; } &&
34353          { ac_try='test -s conftest.$ac_objext'
34354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34355   (eval $ac_try) 2>&5
34356   ac_status=$?
34357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34358   (exit $ac_status); }; }; then
34359   ac_header_compiler=yes
34360 else
34361   echo "$as_me: failed program was:" >&5
34362 sed 's/^/| /' conftest.$ac_ext >&5
34363
34364 ac_header_compiler=no
34365 fi
34366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34367 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34368 echo "${ECHO_T}$ac_header_compiler" >&6
34369
34370 # Is the header present?
34371 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34372 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34373 cat >conftest.$ac_ext <<_ACEOF
34374 /* confdefs.h.  */
34375 _ACEOF
34376 cat confdefs.h >>conftest.$ac_ext
34377 cat >>conftest.$ac_ext <<_ACEOF
34378 /* end confdefs.h.  */
34379 #include <$ac_header>
34380 _ACEOF
34381 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34382   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34383   ac_status=$?
34384   grep -v '^ *+' conftest.er1 >conftest.err
34385   rm -f conftest.er1
34386   cat conftest.err >&5
34387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34388   (exit $ac_status); } >/dev/null; then
34389   if test -s conftest.err; then
34390     ac_cpp_err=$ac_c_preproc_warn_flag
34391     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34392   else
34393     ac_cpp_err=
34394   fi
34395 else
34396   ac_cpp_err=yes
34397 fi
34398 if test -z "$ac_cpp_err"; then
34399   ac_header_preproc=yes
34400 else
34401   echo "$as_me: failed program was:" >&5
34402 sed 's/^/| /' conftest.$ac_ext >&5
34403
34404   ac_header_preproc=no
34405 fi
34406 rm -f conftest.err conftest.$ac_ext
34407 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34408 echo "${ECHO_T}$ac_header_preproc" >&6
34409
34410 # So?  What about this header?
34411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34412   yes:no: )
34413     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34414 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34415     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34416 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34417     ac_header_preproc=yes
34418     ;;
34419   no:yes:* )
34420     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34421 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34422     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34423 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34424     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34425 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34426     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34427 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34428     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34430     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34431 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34432     (
34433       cat <<\_ASBOX
34434 ## ----------------------------------------- ##
34435 ## Report this to wx-dev@lists.wxwindows.org ##
34436 ## ----------------------------------------- ##
34437 _ASBOX
34438     ) |
34439       sed "s/^/$as_me: WARNING:     /" >&2
34440     ;;
34441 esac
34442 echo "$as_me:$LINENO: checking for $ac_header" >&5
34443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34445   echo $ECHO_N "(cached) $ECHO_C" >&6
34446 else
34447   eval "$as_ac_Header=\$ac_header_preproc"
34448 fi
34449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34451
34452 fi
34453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
34454   cat >>confdefs.h <<_ACEOF
34455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34456 _ACEOF
34457
34458 fi
34459
34460 done
34461
34462
34463     if test "$wxUSE_LIBSDL" != "no"; then
34464
34465 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34466 if test "${with_sdl_prefix+set}" = set; then
34467   withval="$with_sdl_prefix"
34468   sdl_prefix="$withval"
34469 else
34470   sdl_prefix=""
34471 fi;
34472
34473 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34474 if test "${with_sdl_exec_prefix+set}" = set; then
34475   withval="$with_sdl_exec_prefix"
34476   sdl_exec_prefix="$withval"
34477 else
34478   sdl_exec_prefix=""
34479 fi;
34480 # Check whether --enable-sdltest or --disable-sdltest was given.
34481 if test "${enable_sdltest+set}" = set; then
34482   enableval="$enable_sdltest"
34483
34484 else
34485   enable_sdltest=yes
34486 fi;
34487
34488   if test x$sdl_exec_prefix != x ; then
34489      sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34490      if test x${SDL_CONFIG+set} != xset ; then
34491         SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34492      fi
34493   fi
34494   if test x$sdl_prefix != x ; then
34495      sdl_args="$sdl_args --prefix=$sdl_prefix"
34496      if test x${SDL_CONFIG+set} != xset ; then
34497         SDL_CONFIG=$sdl_prefix/bin/sdl-config
34498      fi
34499   fi
34500
34501
34502   PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34503   # Extract the first word of "sdl-config", so it can be a program name with args.
34504 set dummy sdl-config; ac_word=$2
34505 echo "$as_me:$LINENO: checking for $ac_word" >&5
34506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34507 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34508   echo $ECHO_N "(cached) $ECHO_C" >&6
34509 else
34510   case $SDL_CONFIG in
34511   [\\/]* | ?:[\\/]*)
34512   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
34513   ;;
34514   *)
34515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34516 for as_dir in $PATH
34517 do
34518   IFS=$as_save_IFS
34519   test -z "$as_dir" && as_dir=.
34520   for ac_exec_ext in '' $ac_executable_extensions; do
34521   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34522     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34524     break 2
34525   fi
34526 done
34527 done
34528
34529   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
34530   ;;
34531 esac
34532 fi
34533 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
34534
34535 if test -n "$SDL_CONFIG"; then
34536   echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
34537 echo "${ECHO_T}$SDL_CONFIG" >&6
34538 else
34539   echo "$as_me:$LINENO: result: no" >&5
34540 echo "${ECHO_T}no" >&6
34541 fi
34542
34543   min_sdl_version=1.2.0
34544   echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
34545 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
34546   no_sdl=""
34547   if test "$SDL_CONFIG" = "no" ; then
34548     no_sdl=yes
34549   else
34550     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
34551     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
34552
34553     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
34554            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
34555     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
34556            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
34557     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
34558            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
34559     if test "x$enable_sdltest" = "xyes" ; then
34560       ac_save_CFLAGS="$CFLAGS"
34561       ac_save_LIBS="$LIBS"
34562       CFLAGS="$CFLAGS $SDL_CFLAGS"
34563       LIBS="$LIBS $SDL_LIBS"
34564       rm -f conf.sdltest
34565       if test "$cross_compiling" = yes; then
34566   echo $ac_n "cross compiling; assumed OK... $ac_c"
34567 else
34568   cat >conftest.$ac_ext <<_ACEOF
34569 /* confdefs.h.  */
34570 _ACEOF
34571 cat confdefs.h >>conftest.$ac_ext
34572 cat >>conftest.$ac_ext <<_ACEOF
34573 /* end confdefs.h.  */
34574
34575 #include <stdio.h>
34576 #include <stdlib.h>
34577 #include <string.h>
34578 #include "SDL.h"
34579
34580 char*
34581 my_strdup (char *str)
34582 {
34583   char *new_str;
34584
34585   if (str)
34586     {
34587       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
34588       strcpy (new_str, str);
34589     }
34590   else
34591     new_str = NULL;
34592
34593   return new_str;
34594 }
34595
34596 int main (int argc, char *argv[])
34597 {
34598   int major, minor, micro;
34599   char *tmp_version;
34600
34601   /* This hangs on some systems (?)
34602   system ("touch conf.sdltest");
34603   */
34604   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
34605
34606   /* HP/UX 9 (%@#!) writes to sscanf strings */
34607   tmp_version = my_strdup("$min_sdl_version");
34608   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
34609      printf("%s, bad version string\n", "$min_sdl_version");
34610      exit(1);
34611    }
34612
34613    if (($sdl_major_version > major) ||
34614       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
34615       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
34616     {
34617       return 0;
34618     }
34619   else
34620     {
34621       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
34622       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
34623       printf("*** best to upgrade to the required version.\n");
34624       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34625       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34626       printf("*** config.cache before re-running configure\n");
34627       return 1;
34628     }
34629 }
34630
34631
34632 _ACEOF
34633 rm -f conftest$ac_exeext
34634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34635   (eval $ac_link) 2>&5
34636   ac_status=$?
34637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34638   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34640   (eval $ac_try) 2>&5
34641   ac_status=$?
34642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34643   (exit $ac_status); }; }; then
34644   :
34645 else
34646   echo "$as_me: program exited with status $ac_status" >&5
34647 echo "$as_me: failed program was:" >&5
34648 sed 's/^/| /' conftest.$ac_ext >&5
34649
34650 ( exit $ac_status )
34651 no_sdl=yes
34652 fi
34653 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34654 fi
34655        CFLAGS="$ac_save_CFLAGS"
34656        LIBS="$ac_save_LIBS"
34657      fi
34658   fi
34659   if test "x$no_sdl" = x ; then
34660      echo "$as_me:$LINENO: result: yes" >&5
34661 echo "${ECHO_T}yes" >&6
34662
34663                     EXTRALIBS_SDL="$SDL_LIBS"
34664                     CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34665                     cat >>confdefs.h <<\_ACEOF
34666 #define wxUSE_LIBSDL 1
34667 _ACEOF
34668
34669
34670   else
34671      echo "$as_me:$LINENO: result: no" >&5
34672 echo "${ECHO_T}no" >&6
34673      if test "$SDL_CONFIG" = "no" ; then
34674        echo "*** The sdl-config script installed by SDL could not be found"
34675        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
34676        echo "*** your path, or set the SDL_CONFIG environment variable to the"
34677        echo "*** full path to sdl-config."
34678      else
34679        if test -f conf.sdltest ; then
34680         :
34681        else
34682           echo "*** Could not run SDL test program, checking why..."
34683           CFLAGS="$CFLAGS $SDL_CFLAGS"
34684           LIBS="$LIBS $SDL_LIBS"
34685           cat >conftest.$ac_ext <<_ACEOF
34686 /* confdefs.h.  */
34687 _ACEOF
34688 cat confdefs.h >>conftest.$ac_ext
34689 cat >>conftest.$ac_ext <<_ACEOF
34690 /* end confdefs.h.  */
34691
34692 #include <stdio.h>
34693 #include "SDL.h"
34694
34695 int main(int argc, char *argv[])
34696 { return 0; }
34697 #undef  main
34698 #define main K_and_R_C_main
34699
34700 int
34701 main ()
34702 {
34703  return 0;
34704   ;
34705   return 0;
34706 }
34707 _ACEOF
34708 rm -f conftest.$ac_objext conftest$ac_exeext
34709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34710   (eval $ac_link) 2>conftest.er1
34711   ac_status=$?
34712   grep -v '^ *+' conftest.er1 >conftest.err
34713   rm -f conftest.er1
34714   cat conftest.err >&5
34715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34716   (exit $ac_status); } &&
34717          { ac_try='test -z "$ac_c_werror_flag"
34718                          || test ! -s conftest.err'
34719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34720   (eval $ac_try) 2>&5
34721   ac_status=$?
34722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34723   (exit $ac_status); }; } &&
34724          { ac_try='test -s conftest$ac_exeext'
34725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34726   (eval $ac_try) 2>&5
34727   ac_status=$?
34728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34729   (exit $ac_status); }; }; then
34730    echo "*** The test program compiled, but did not run. This usually means"
34731           echo "*** that the run-time linker is not finding SDL or finding the wrong"
34732           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
34733           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
34734           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
34735           echo "*** is required on your system"
34736           echo "***"
34737           echo "*** If you have an old version installed, it is best to remove it, although"
34738           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
34739 else
34740   echo "$as_me: failed program was:" >&5
34741 sed 's/^/| /' conftest.$ac_ext >&5
34742
34743  echo "*** The test program failed to compile or link. See the file config.log for the"
34744           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
34745           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
34746           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
34747 fi
34748 rm -f conftest.err conftest.$ac_objext \
34749       conftest$ac_exeext conftest.$ac_ext
34750           CFLAGS="$ac_save_CFLAGS"
34751           LIBS="$ac_save_LIBS"
34752        fi
34753      fi
34754      SDL_CFLAGS=""
34755      SDL_LIBS=""
34756      wxUSE_LIBSDL="no"
34757   fi
34758
34759
34760   rm -f conf.sdltest
34761
34762       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
34763         WITH_PLUGIN_SDL=1
34764       fi
34765     fi
34766   fi
34767
34768   cat >>confdefs.h <<\_ACEOF
34769 #define wxUSE_SOUND 1
34770 _ACEOF
34771
34772   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
34773 fi
34774
34775 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
34776   cat >>confdefs.h <<\_ACEOF
34777 #define wxUSE_CMDLINE_PARSER 1
34778 _ACEOF
34779
34780 fi
34781
34782 if test "$wxUSE_STOPWATCH" = "yes"; then
34783   cat >>confdefs.h <<\_ACEOF
34784 #define wxUSE_STOPWATCH 1
34785 _ACEOF
34786
34787 fi
34788
34789 if test "$wxUSE_DATETIME" = "yes"; then
34790   cat >>confdefs.h <<\_ACEOF
34791 #define wxUSE_DATETIME 1
34792 _ACEOF
34793
34794 fi
34795
34796 if test "$wxUSE_FILE" = "yes"; then
34797   cat >>confdefs.h <<\_ACEOF
34798 #define wxUSE_FILE 1
34799 _ACEOF
34800
34801 fi
34802
34803 if test "$wxUSE_FFILE" = "yes"; then
34804   cat >>confdefs.h <<\_ACEOF
34805 #define wxUSE_FFILE 1
34806 _ACEOF
34807
34808 fi
34809
34810 if test "$wxUSE_FILESYSTEM" = "yes"; then
34811   cat >>confdefs.h <<\_ACEOF
34812 #define wxUSE_FILESYSTEM 1
34813 _ACEOF
34814
34815 fi
34816
34817 if test "$wxUSE_FS_ZIP" = "yes"; then
34818   cat >>confdefs.h <<\_ACEOF
34819 #define wxUSE_FS_ZIP 1
34820 _ACEOF
34821
34822 fi
34823
34824 if test "$wxUSE_ZIPSTREAM" = "yes"; then
34825   cat >>confdefs.h <<\_ACEOF
34826 #define wxUSE_ZIPSTREAM 1
34827 _ACEOF
34828
34829 fi
34830
34831 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34832   cat >>confdefs.h <<\_ACEOF
34833 #define wxUSE_ON_FATAL_EXCEPTION 1
34834 _ACEOF
34835
34836 fi
34837
34838 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34839   cat >>confdefs.h <<\_ACEOF
34840 #define wxUSE_SNGLINST_CHECKER 1
34841 _ACEOF
34842
34843 fi
34844
34845 if test "$wxUSE_BUSYINFO" = "yes"; then
34846   cat >>confdefs.h <<\_ACEOF
34847 #define wxUSE_BUSYINFO 1
34848 _ACEOF
34849
34850 fi
34851
34852 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
34853   cat >>confdefs.h <<\_ACEOF
34854 #define wxUSE_STD_IOSTREAM 1
34855 _ACEOF
34856
34857 fi
34858
34859 if test "$wxUSE_TEXTBUFFER" = "yes"; then
34860     cat >>confdefs.h <<\_ACEOF
34861 #define wxUSE_TEXTBUFFER 1
34862 _ACEOF
34863
34864 fi
34865
34866 if test "$wxUSE_TEXTFILE" = "yes"; then
34867   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
34868     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
34869 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
34870   else
34871     cat >>confdefs.h <<\_ACEOF
34872 #define wxUSE_TEXTFILE 1
34873 _ACEOF
34874
34875   fi
34876 fi
34877
34878 if test "$wxUSE_CONFIG" = "yes" ; then
34879   if test "$wxUSE_TEXTFILE" != "yes"; then
34880     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
34881 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
34882   else
34883     cat >>confdefs.h <<\_ACEOF
34884 #define wxUSE_CONFIG 1
34885 _ACEOF
34886
34887     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
34888   fi
34889 fi
34890
34891 if test "$wxUSE_INTL" = "yes" ; then
34892   if test "$wxUSE_FILE" != "yes"; then
34893     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
34894 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
34895   else
34896     cat >>confdefs.h <<\_ACEOF
34897 #define wxUSE_INTL 1
34898 _ACEOF
34899
34900     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
34901     GUIDIST="$GUIDIST INTL_DIST"
34902   fi
34903 fi
34904
34905 if test "$wxUSE_LOG" = "yes"; then
34906   cat >>confdefs.h <<\_ACEOF
34907 #define wxUSE_LOG 1
34908 _ACEOF
34909
34910
34911     if test "$wxUSE_LOGGUI" = "yes"; then
34912       cat >>confdefs.h <<\_ACEOF
34913 #define wxUSE_LOGGUI 1
34914 _ACEOF
34915
34916     fi
34917
34918     if test "$wxUSE_LOGWINDOW" = "yes"; then
34919       cat >>confdefs.h <<\_ACEOF
34920 #define wxUSE_LOGWINDOW 1
34921 _ACEOF
34922
34923     fi
34924
34925     if test "$wxUSE_LOGDIALOG" = "yes"; then
34926       cat >>confdefs.h <<\_ACEOF
34927 #define wxUSE_LOG_DIALOG 1
34928 _ACEOF
34929
34930     fi
34931 fi
34932
34933 if test "$wxUSE_LONGLONG" = "yes"; then
34934   cat >>confdefs.h <<\_ACEOF
34935 #define wxUSE_LONGLONG 1
34936 _ACEOF
34937
34938 fi
34939
34940 if test "$wxUSE_GEOMETRY" = "yes"; then
34941   cat >>confdefs.h <<\_ACEOF
34942 #define wxUSE_GEOMETRY 1
34943 _ACEOF
34944
34945 fi
34946
34947 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
34948   cat >>confdefs.h <<\_ACEOF
34949 #define wxUSE_DIALUP_MANAGER 1
34950 _ACEOF
34951
34952   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
34953 fi
34954
34955 if test "$wxUSE_STREAMS" = "yes" ; then
34956   cat >>confdefs.h <<\_ACEOF
34957 #define wxUSE_STREAMS 1
34958 _ACEOF
34959
34960 fi
34961
34962
34963 if test "$wxUSE_DATETIME" = "yes"; then
34964
34965 for ac_func in strptime
34966 do
34967 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34968 echo "$as_me:$LINENO: checking for $ac_func" >&5
34969 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34970 if eval "test \"\${$as_ac_var+set}\" = set"; then
34971   echo $ECHO_N "(cached) $ECHO_C" >&6
34972 else
34973   cat >conftest.$ac_ext <<_ACEOF
34974 /* confdefs.h.  */
34975 _ACEOF
34976 cat confdefs.h >>conftest.$ac_ext
34977 cat >>conftest.$ac_ext <<_ACEOF
34978 /* end confdefs.h.  */
34979 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34980    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34981 #define $ac_func innocuous_$ac_func
34982
34983 /* System header to define __stub macros and hopefully few prototypes,
34984     which can conflict with char $ac_func (); below.
34985     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34986     <limits.h> exists even on freestanding compilers.  */
34987
34988 #ifdef __STDC__
34989 # include <limits.h>
34990 #else
34991 # include <assert.h>
34992 #endif
34993
34994 #undef $ac_func
34995
34996 /* Override any gcc2 internal prototype to avoid an error.  */
34997 #ifdef __cplusplus
34998 extern "C"
34999 {
35000 #endif
35001 /* We use char because int might match the return type of a gcc2
35002    builtin and then its argument prototype would still apply.  */
35003 char $ac_func ();
35004 /* The GNU C library defines this for functions which it implements
35005     to always fail with ENOSYS.  Some functions are actually named
35006     something starting with __ and the normal name is an alias.  */
35007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35008 choke me
35009 #else
35010 char (*f) () = $ac_func;
35011 #endif
35012 #ifdef __cplusplus
35013 }
35014 #endif
35015
35016 int
35017 main ()
35018 {
35019 return f != $ac_func;
35020   ;
35021   return 0;
35022 }
35023 _ACEOF
35024 rm -f conftest.$ac_objext conftest$ac_exeext
35025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35026   (eval $ac_link) 2>conftest.er1
35027   ac_status=$?
35028   grep -v '^ *+' conftest.er1 >conftest.err
35029   rm -f conftest.er1
35030   cat conftest.err >&5
35031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35032   (exit $ac_status); } &&
35033          { ac_try='test -z "$ac_c_werror_flag"
35034                          || test ! -s conftest.err'
35035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35036   (eval $ac_try) 2>&5
35037   ac_status=$?
35038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35039   (exit $ac_status); }; } &&
35040          { ac_try='test -s conftest$ac_exeext'
35041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35042   (eval $ac_try) 2>&5
35043   ac_status=$?
35044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35045   (exit $ac_status); }; }; then
35046   eval "$as_ac_var=yes"
35047 else
35048   echo "$as_me: failed program was:" >&5
35049 sed 's/^/| /' conftest.$ac_ext >&5
35050
35051 eval "$as_ac_var=no"
35052 fi
35053 rm -f conftest.err conftest.$ac_objext \
35054       conftest$ac_exeext conftest.$ac_ext
35055 fi
35056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35057 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35058 if test `eval echo '${'$as_ac_var'}'` = yes; then
35059   cat >>confdefs.h <<_ACEOF
35060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35061 _ACEOF
35062
35063 fi
35064 done
35065
35066
35067             echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
35068 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
35069 if test "${wx_cv_var_timezone+set}" = set; then
35070   echo $ECHO_N "(cached) $ECHO_C" >&6
35071 else
35072
35073                         cat >conftest.$ac_ext <<_ACEOF
35074 /* confdefs.h.  */
35075 _ACEOF
35076 cat confdefs.h >>conftest.$ac_ext
35077 cat >>conftest.$ac_ext <<_ACEOF
35078 /* end confdefs.h.  */
35079
35080                                 #include <time.h>
35081
35082 int
35083 main ()
35084 {
35085
35086                                 int tz;
35087                                 tz = timezone;
35088
35089   ;
35090   return 0;
35091 }
35092 _ACEOF
35093 rm -f conftest.$ac_objext
35094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35095   (eval $ac_compile) 2>conftest.er1
35096   ac_status=$?
35097   grep -v '^ *+' conftest.er1 >conftest.err
35098   rm -f conftest.er1
35099   cat conftest.err >&5
35100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35101   (exit $ac_status); } &&
35102          { ac_try='test -z "$ac_c_werror_flag"
35103                          || test ! -s conftest.err'
35104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35105   (eval $ac_try) 2>&5
35106   ac_status=$?
35107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35108   (exit $ac_status); }; } &&
35109          { ac_try='test -s conftest.$ac_objext'
35110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35111   (eval $ac_try) 2>&5
35112   ac_status=$?
35113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35114   (exit $ac_status); }; }; then
35115
35116                                 wx_cv_var_timezone=timezone
35117
35118 else
35119   echo "$as_me: failed program was:" >&5
35120 sed 's/^/| /' conftest.$ac_ext >&5
35121
35122
35123                                 cat >conftest.$ac_ext <<_ACEOF
35124 /* confdefs.h.  */
35125 _ACEOF
35126 cat confdefs.h >>conftest.$ac_ext
35127 cat >>conftest.$ac_ext <<_ACEOF
35128 /* end confdefs.h.  */
35129
35130                                         #include <time.h>
35131
35132 int
35133 main ()
35134 {
35135
35136                                         int tz;
35137                                         tz = _timezone;
35138
35139   ;
35140   return 0;
35141 }
35142 _ACEOF
35143 rm -f conftest.$ac_objext
35144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35145   (eval $ac_compile) 2>conftest.er1
35146   ac_status=$?
35147   grep -v '^ *+' conftest.er1 >conftest.err
35148   rm -f conftest.er1
35149   cat conftest.err >&5
35150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35151   (exit $ac_status); } &&
35152          { ac_try='test -z "$ac_c_werror_flag"
35153                          || test ! -s conftest.err'
35154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35155   (eval $ac_try) 2>&5
35156   ac_status=$?
35157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35158   (exit $ac_status); }; } &&
35159          { ac_try='test -s conftest.$ac_objext'
35160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35161   (eval $ac_try) 2>&5
35162   ac_status=$?
35163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35164   (exit $ac_status); }; }; then
35165
35166                                         wx_cv_var_timezone=_timezone
35167
35168 else
35169   echo "$as_me: failed program was:" >&5
35170 sed 's/^/| /' conftest.$ac_ext >&5
35171
35172
35173                                         cat >conftest.$ac_ext <<_ACEOF
35174 /* confdefs.h.  */
35175 _ACEOF
35176 cat confdefs.h >>conftest.$ac_ext
35177 cat >>conftest.$ac_ext <<_ACEOF
35178 /* end confdefs.h.  */
35179
35180                                                 #include <time.h>
35181
35182 int
35183 main ()
35184 {
35185
35186                                                 int tz;
35187                                                 tz = __timezone;
35188
35189   ;
35190   return 0;
35191 }
35192 _ACEOF
35193 rm -f conftest.$ac_objext
35194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35195   (eval $ac_compile) 2>conftest.er1
35196   ac_status=$?
35197   grep -v '^ *+' conftest.er1 >conftest.err
35198   rm -f conftest.er1
35199   cat conftest.err >&5
35200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35201   (exit $ac_status); } &&
35202          { ac_try='test -z "$ac_c_werror_flag"
35203                          || test ! -s conftest.err'
35204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35205   (eval $ac_try) 2>&5
35206   ac_status=$?
35207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35208   (exit $ac_status); }; } &&
35209          { ac_try='test -s conftest.$ac_objext'
35210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35211   (eval $ac_try) 2>&5
35212   ac_status=$?
35213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35214   (exit $ac_status); }; }; then
35215
35216                                                 wx_cv_var_timezone=__timezone
35217
35218 else
35219   echo "$as_me: failed program was:" >&5
35220 sed 's/^/| /' conftest.$ac_ext >&5
35221
35222
35223                                                 if test "$USE_DOS" = 0 ; then
35224                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
35225 echo "$as_me: WARNING: no timezone variable" >&2;}
35226                                                 fi
35227
35228
35229 fi
35230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35231
35232
35233 fi
35234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35235
35236
35237 fi
35238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35239
35240
35241 fi
35242 echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
35243 echo "${ECHO_T}$wx_cv_var_timezone" >&6
35244
35245         if test "x$wx_cv_var_timezone" != x ; then
35246         cat >>confdefs.h <<_ACEOF
35247 #define WX_TIMEZONE $wx_cv_var_timezone
35248 _ACEOF
35249
35250     fi
35251
35252
35253 for ac_func in localtime
35254 do
35255 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35256 echo "$as_me:$LINENO: checking for $ac_func" >&5
35257 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35258 if eval "test \"\${$as_ac_var+set}\" = set"; then
35259   echo $ECHO_N "(cached) $ECHO_C" >&6
35260 else
35261   cat >conftest.$ac_ext <<_ACEOF
35262 /* confdefs.h.  */
35263 _ACEOF
35264 cat confdefs.h >>conftest.$ac_ext
35265 cat >>conftest.$ac_ext <<_ACEOF
35266 /* end confdefs.h.  */
35267 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35268    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35269 #define $ac_func innocuous_$ac_func
35270
35271 /* System header to define __stub macros and hopefully few prototypes,
35272     which can conflict with char $ac_func (); below.
35273     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35274     <limits.h> exists even on freestanding compilers.  */
35275
35276 #ifdef __STDC__
35277 # include <limits.h>
35278 #else
35279 # include <assert.h>
35280 #endif
35281
35282 #undef $ac_func
35283
35284 /* Override any gcc2 internal prototype to avoid an error.  */
35285 #ifdef __cplusplus
35286 extern "C"
35287 {
35288 #endif
35289 /* We use char because int might match the return type of a gcc2
35290    builtin and then its argument prototype would still apply.  */
35291 char $ac_func ();
35292 /* The GNU C library defines this for functions which it implements
35293     to always fail with ENOSYS.  Some functions are actually named
35294     something starting with __ and the normal name is an alias.  */
35295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35296 choke me
35297 #else
35298 char (*f) () = $ac_func;
35299 #endif
35300 #ifdef __cplusplus
35301 }
35302 #endif
35303
35304 int
35305 main ()
35306 {
35307 return f != $ac_func;
35308   ;
35309   return 0;
35310 }
35311 _ACEOF
35312 rm -f conftest.$ac_objext conftest$ac_exeext
35313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35314   (eval $ac_link) 2>conftest.er1
35315   ac_status=$?
35316   grep -v '^ *+' conftest.er1 >conftest.err
35317   rm -f conftest.er1
35318   cat conftest.err >&5
35319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35320   (exit $ac_status); } &&
35321          { ac_try='test -z "$ac_c_werror_flag"
35322                          || test ! -s conftest.err'
35323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35324   (eval $ac_try) 2>&5
35325   ac_status=$?
35326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35327   (exit $ac_status); }; } &&
35328          { ac_try='test -s conftest$ac_exeext'
35329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35330   (eval $ac_try) 2>&5
35331   ac_status=$?
35332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35333   (exit $ac_status); }; }; then
35334   eval "$as_ac_var=yes"
35335 else
35336   echo "$as_me: failed program was:" >&5
35337 sed 's/^/| /' conftest.$ac_ext >&5
35338
35339 eval "$as_ac_var=no"
35340 fi
35341 rm -f conftest.err conftest.$ac_objext \
35342       conftest$ac_exeext conftest.$ac_ext
35343 fi
35344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35345 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35346 if test `eval echo '${'$as_ac_var'}'` = yes; then
35347   cat >>confdefs.h <<_ACEOF
35348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35349 _ACEOF
35350
35351 fi
35352 done
35353
35354
35355     if test "$ac_cv_func_localtime" = "yes"; then
35356         echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
35357 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
35358 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
35359   echo $ECHO_N "(cached) $ECHO_C" >&6
35360 else
35361
35362             cat >conftest.$ac_ext <<_ACEOF
35363 /* confdefs.h.  */
35364 _ACEOF
35365 cat confdefs.h >>conftest.$ac_ext
35366 cat >>conftest.$ac_ext <<_ACEOF
35367 /* end confdefs.h.  */
35368
35369                     #include <time.h>
35370
35371 int
35372 main ()
35373 {
35374
35375                     struct tm tm;
35376                     tm.tm_gmtoff++;
35377
35378   ;
35379   return 0;
35380 }
35381 _ACEOF
35382 rm -f conftest.$ac_objext
35383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35384   (eval $ac_compile) 2>conftest.er1
35385   ac_status=$?
35386   grep -v '^ *+' conftest.er1 >conftest.err
35387   rm -f conftest.er1
35388   cat conftest.err >&5
35389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35390   (exit $ac_status); } &&
35391          { ac_try='test -z "$ac_c_werror_flag"
35392                          || test ! -s conftest.err'
35393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35394   (eval $ac_try) 2>&5
35395   ac_status=$?
35396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35397   (exit $ac_status); }; } &&
35398          { ac_try='test -s conftest.$ac_objext'
35399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35400   (eval $ac_try) 2>&5
35401   ac_status=$?
35402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35403   (exit $ac_status); }; }; then
35404
35405                     wx_cv_struct_tm_has_gmtoff=yes
35406
35407 else
35408   echo "$as_me: failed program was:" >&5
35409 sed 's/^/| /' conftest.$ac_ext >&5
35410
35411 wx_cv_struct_tm_has_gmtoff=no
35412
35413 fi
35414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35415
35416 fi
35417 echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
35418 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
35419     fi
35420
35421     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
35422         cat >>confdefs.h <<\_ACEOF
35423 #define WX_GMTOFF_IN_TM 1
35424 _ACEOF
35425
35426     fi
35427
35428
35429
35430 for ac_func in gettimeofday ftime
35431 do
35432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35433 echo "$as_me:$LINENO: checking for $ac_func" >&5
35434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35435 if eval "test \"\${$as_ac_var+set}\" = set"; then
35436   echo $ECHO_N "(cached) $ECHO_C" >&6
35437 else
35438   cat >conftest.$ac_ext <<_ACEOF
35439 /* confdefs.h.  */
35440 _ACEOF
35441 cat confdefs.h >>conftest.$ac_ext
35442 cat >>conftest.$ac_ext <<_ACEOF
35443 /* end confdefs.h.  */
35444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35445    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35446 #define $ac_func innocuous_$ac_func
35447
35448 /* System header to define __stub macros and hopefully few prototypes,
35449     which can conflict with char $ac_func (); below.
35450     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35451     <limits.h> exists even on freestanding compilers.  */
35452
35453 #ifdef __STDC__
35454 # include <limits.h>
35455 #else
35456 # include <assert.h>
35457 #endif
35458
35459 #undef $ac_func
35460
35461 /* Override any gcc2 internal prototype to avoid an error.  */
35462 #ifdef __cplusplus
35463 extern "C"
35464 {
35465 #endif
35466 /* We use char because int might match the return type of a gcc2
35467    builtin and then its argument prototype would still apply.  */
35468 char $ac_func ();
35469 /* The GNU C library defines this for functions which it implements
35470     to always fail with ENOSYS.  Some functions are actually named
35471     something starting with __ and the normal name is an alias.  */
35472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35473 choke me
35474 #else
35475 char (*f) () = $ac_func;
35476 #endif
35477 #ifdef __cplusplus
35478 }
35479 #endif
35480
35481 int
35482 main ()
35483 {
35484 return f != $ac_func;
35485   ;
35486   return 0;
35487 }
35488 _ACEOF
35489 rm -f conftest.$ac_objext conftest$ac_exeext
35490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35491   (eval $ac_link) 2>conftest.er1
35492   ac_status=$?
35493   grep -v '^ *+' conftest.er1 >conftest.err
35494   rm -f conftest.er1
35495   cat conftest.err >&5
35496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35497   (exit $ac_status); } &&
35498          { ac_try='test -z "$ac_c_werror_flag"
35499                          || test ! -s conftest.err'
35500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35501   (eval $ac_try) 2>&5
35502   ac_status=$?
35503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35504   (exit $ac_status); }; } &&
35505          { ac_try='test -s conftest$ac_exeext'
35506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35507   (eval $ac_try) 2>&5
35508   ac_status=$?
35509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35510   (exit $ac_status); }; }; then
35511   eval "$as_ac_var=yes"
35512 else
35513   echo "$as_me: failed program was:" >&5
35514 sed 's/^/| /' conftest.$ac_ext >&5
35515
35516 eval "$as_ac_var=no"
35517 fi
35518 rm -f conftest.err conftest.$ac_objext \
35519       conftest$ac_exeext conftest.$ac_ext
35520 fi
35521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35522 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35523 if test `eval echo '${'$as_ac_var'}'` = yes; then
35524   cat >>confdefs.h <<_ACEOF
35525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35526 _ACEOF
35527  break
35528 fi
35529 done
35530
35531
35532     if test "$ac_cv_func_gettimeofday" = "yes"; then
35533         echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
35534 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
35535 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
35536   echo $ECHO_N "(cached) $ECHO_C" >&6
35537 else
35538
35539
35540
35541             ac_ext=cc
35542 ac_cpp='$CXXCPP $CPPFLAGS'
35543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35546
35547
35548             cat >conftest.$ac_ext <<_ACEOF
35549 /* confdefs.h.  */
35550 _ACEOF
35551 cat confdefs.h >>conftest.$ac_ext
35552 cat >>conftest.$ac_ext <<_ACEOF
35553 /* end confdefs.h.  */
35554
35555                     #include <sys/time.h>
35556                     #include <unistd.h>
35557
35558 int
35559 main ()
35560 {
35561
35562                     struct timeval tv;
35563                     gettimeofday(&tv, NULL);
35564
35565   ;
35566   return 0;
35567 }
35568 _ACEOF
35569 rm -f conftest.$ac_objext
35570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35571   (eval $ac_compile) 2>conftest.er1
35572   ac_status=$?
35573   grep -v '^ *+' conftest.er1 >conftest.err
35574   rm -f conftest.er1
35575   cat conftest.err >&5
35576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35577   (exit $ac_status); } &&
35578          { ac_try='test -z "$ac_cxx_werror_flag"
35579                          || test ! -s conftest.err'
35580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35581   (eval $ac_try) 2>&5
35582   ac_status=$?
35583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35584   (exit $ac_status); }; } &&
35585          { ac_try='test -s conftest.$ac_objext'
35586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35587   (eval $ac_try) 2>&5
35588   ac_status=$?
35589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35590   (exit $ac_status); }; }; then
35591   wx_cv_func_gettimeofday_has_2_args=yes
35592 else
35593   echo "$as_me: failed program was:" >&5
35594 sed 's/^/| /' conftest.$ac_ext >&5
35595
35596 cat >conftest.$ac_ext <<_ACEOF
35597 /* confdefs.h.  */
35598 _ACEOF
35599 cat confdefs.h >>conftest.$ac_ext
35600 cat >>conftest.$ac_ext <<_ACEOF
35601 /* end confdefs.h.  */
35602
35603                         #include <sys/time.h>
35604                         #include <unistd.h>
35605
35606 int
35607 main ()
35608 {
35609
35610                         struct timeval tv;
35611                         gettimeofday(&tv);
35612
35613   ;
35614   return 0;
35615 }
35616 _ACEOF
35617 rm -f conftest.$ac_objext
35618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35619   (eval $ac_compile) 2>conftest.er1
35620   ac_status=$?
35621   grep -v '^ *+' conftest.er1 >conftest.err
35622   rm -f conftest.er1
35623   cat conftest.err >&5
35624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35625   (exit $ac_status); } &&
35626          { ac_try='test -z "$ac_cxx_werror_flag"
35627                          || test ! -s conftest.err'
35628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35629   (eval $ac_try) 2>&5
35630   ac_status=$?
35631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35632   (exit $ac_status); }; } &&
35633          { ac_try='test -s conftest.$ac_objext'
35634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35635   (eval $ac_try) 2>&5
35636   ac_status=$?
35637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35638   (exit $ac_status); }; }; then
35639   wx_cv_func_gettimeofday_has_2_args=no
35640 else
35641   echo "$as_me: failed program was:" >&5
35642 sed 's/^/| /' conftest.$ac_ext >&5
35643
35644
35645                         { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
35646 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
35647                         wx_cv_func_gettimeofday_has_2_args=unknown
35648
35649
35650 fi
35651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35652
35653 fi
35654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35655             ac_ext=c
35656 ac_cpp='$CPP $CPPFLAGS'
35657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35660
35661
35662 fi
35663 echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
35664 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
35665
35666         if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
35667             cat >>confdefs.h <<\_ACEOF
35668 #define WX_GETTIMEOFDAY_NO_TZ 1
35669 _ACEOF
35670
35671         fi
35672     fi
35673
35674     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
35675 fi
35676
35677
35678 if test "$wxUSE_SOCKETS" = "yes"; then
35679     if test "$wxUSE_MGL" = "1"; then
35680         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
35681 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
35682         wxUSE_SOCKETS="no"
35683     fi
35684 fi
35685
35686 if test "$wxUSE_SOCKETS" = "yes"; then
35687         if test "$TOOLKIT" != "MSW"; then
35688                 echo "$as_me:$LINENO: checking for socket" >&5
35689 echo $ECHO_N "checking for socket... $ECHO_C" >&6
35690 if test "${ac_cv_func_socket+set}" = set; then
35691   echo $ECHO_N "(cached) $ECHO_C" >&6
35692 else
35693   cat >conftest.$ac_ext <<_ACEOF
35694 /* confdefs.h.  */
35695 _ACEOF
35696 cat confdefs.h >>conftest.$ac_ext
35697 cat >>conftest.$ac_ext <<_ACEOF
35698 /* end confdefs.h.  */
35699 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
35700    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35701 #define socket innocuous_socket
35702
35703 /* System header to define __stub macros and hopefully few prototypes,
35704     which can conflict with char socket (); below.
35705     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35706     <limits.h> exists even on freestanding compilers.  */
35707
35708 #ifdef __STDC__
35709 # include <limits.h>
35710 #else
35711 # include <assert.h>
35712 #endif
35713
35714 #undef socket
35715
35716 /* Override any gcc2 internal prototype to avoid an error.  */
35717 #ifdef __cplusplus
35718 extern "C"
35719 {
35720 #endif
35721 /* We use char because int might match the return type of a gcc2
35722    builtin and then its argument prototype would still apply.  */
35723 char socket ();
35724 /* The GNU C library defines this for functions which it implements
35725     to always fail with ENOSYS.  Some functions are actually named
35726     something starting with __ and the normal name is an alias.  */
35727 #if defined (__stub_socket) || defined (__stub___socket)
35728 choke me
35729 #else
35730 char (*f) () = socket;
35731 #endif
35732 #ifdef __cplusplus
35733 }
35734 #endif
35735
35736 int
35737 main ()
35738 {
35739 return f != socket;
35740   ;
35741   return 0;
35742 }
35743 _ACEOF
35744 rm -f conftest.$ac_objext conftest$ac_exeext
35745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35746   (eval $ac_link) 2>conftest.er1
35747   ac_status=$?
35748   grep -v '^ *+' conftest.er1 >conftest.err
35749   rm -f conftest.er1
35750   cat conftest.err >&5
35751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35752   (exit $ac_status); } &&
35753          { ac_try='test -z "$ac_c_werror_flag"
35754                          || test ! -s conftest.err'
35755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35756   (eval $ac_try) 2>&5
35757   ac_status=$?
35758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35759   (exit $ac_status); }; } &&
35760          { ac_try='test -s conftest$ac_exeext'
35761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35762   (eval $ac_try) 2>&5
35763   ac_status=$?
35764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35765   (exit $ac_status); }; }; then
35766   ac_cv_func_socket=yes
35767 else
35768   echo "$as_me: failed program was:" >&5
35769 sed 's/^/| /' conftest.$ac_ext >&5
35770
35771 ac_cv_func_socket=no
35772 fi
35773 rm -f conftest.err conftest.$ac_objext \
35774       conftest$ac_exeext conftest.$ac_ext
35775 fi
35776 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
35777 echo "${ECHO_T}$ac_cv_func_socket" >&6
35778 if test $ac_cv_func_socket = yes; then
35779   :
35780 else
35781
35782                 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
35783 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
35784 if test "${ac_cv_lib_socket_socket+set}" = set; then
35785   echo $ECHO_N "(cached) $ECHO_C" >&6
35786 else
35787   ac_check_lib_save_LIBS=$LIBS
35788 LIBS="-lsocket  $LIBS"
35789 cat >conftest.$ac_ext <<_ACEOF
35790 /* confdefs.h.  */
35791 _ACEOF
35792 cat confdefs.h >>conftest.$ac_ext
35793 cat >>conftest.$ac_ext <<_ACEOF
35794 /* end confdefs.h.  */
35795
35796 /* Override any gcc2 internal prototype to avoid an error.  */
35797 #ifdef __cplusplus
35798 extern "C"
35799 #endif
35800 /* We use char because int might match the return type of a gcc2
35801    builtin and then its argument prototype would still apply.  */
35802 char socket ();
35803 int
35804 main ()
35805 {
35806 socket ();
35807   ;
35808   return 0;
35809 }
35810 _ACEOF
35811 rm -f conftest.$ac_objext conftest$ac_exeext
35812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35813   (eval $ac_link) 2>conftest.er1
35814   ac_status=$?
35815   grep -v '^ *+' conftest.er1 >conftest.err
35816   rm -f conftest.er1
35817   cat conftest.err >&5
35818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35819   (exit $ac_status); } &&
35820          { ac_try='test -z "$ac_c_werror_flag"
35821                          || test ! -s conftest.err'
35822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35823   (eval $ac_try) 2>&5
35824   ac_status=$?
35825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35826   (exit $ac_status); }; } &&
35827          { ac_try='test -s conftest$ac_exeext'
35828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35829   (eval $ac_try) 2>&5
35830   ac_status=$?
35831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35832   (exit $ac_status); }; }; then
35833   ac_cv_lib_socket_socket=yes
35834 else
35835   echo "$as_me: failed program was:" >&5
35836 sed 's/^/| /' conftest.$ac_ext >&5
35837
35838 ac_cv_lib_socket_socket=no
35839 fi
35840 rm -f conftest.err conftest.$ac_objext \
35841       conftest$ac_exeext conftest.$ac_ext
35842 LIBS=$ac_check_lib_save_LIBS
35843 fi
35844 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
35845 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
35846 if test $ac_cv_lib_socket_socket = yes; then
35847   if test "$INET_LINK" != " -lsocket"; then
35848                         INET_LINK="$INET_LINK -lsocket"
35849                     fi
35850 else
35851
35852                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
35853 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
35854                         wxUSE_SOCKETS=no
35855
35856
35857 fi
35858
35859
35860
35861 fi
35862
35863     fi
35864 fi
35865
35866 if test "$wxUSE_SOCKETS" = "yes" ; then
35867                 if test "$TOOLKIT" != "MSW"; then
35868                 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
35869 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
35870 if test "${wx_cv_type_getsockname3+set}" = set; then
35871   echo $ECHO_N "(cached) $ECHO_C" >&6
35872 else
35873
35874                 cat >conftest.$ac_ext <<_ACEOF
35875 /* confdefs.h.  */
35876 _ACEOF
35877 cat confdefs.h >>conftest.$ac_ext
35878 cat >>conftest.$ac_ext <<_ACEOF
35879 /* end confdefs.h.  */
35880
35881                         #include <sys/types.h>
35882                         #include <sys/socket.h>
35883
35884 int
35885 main ()
35886 {
35887
35888                         socklen_t len;
35889                         getsockname(0, 0, &len);
35890
35891   ;
35892   return 0;
35893 }
35894 _ACEOF
35895 rm -f conftest.$ac_objext
35896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35897   (eval $ac_compile) 2>conftest.er1
35898   ac_status=$?
35899   grep -v '^ *+' conftest.er1 >conftest.err
35900   rm -f conftest.er1
35901   cat conftest.err >&5
35902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35903   (exit $ac_status); } &&
35904          { ac_try='test -z "$ac_c_werror_flag"
35905                          || test ! -s conftest.err'
35906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35907   (eval $ac_try) 2>&5
35908   ac_status=$?
35909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35910   (exit $ac_status); }; } &&
35911          { ac_try='test -s conftest.$ac_objext'
35912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35913   (eval $ac_try) 2>&5
35914   ac_status=$?
35915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35916   (exit $ac_status); }; }; then
35917   wx_cv_type_getsockname3=socklen_t
35918 else
35919   echo "$as_me: failed program was:" >&5
35920 sed 's/^/| /' conftest.$ac_ext >&5
35921
35922
35923                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
35924                         if test "$GCC" = yes ; then
35925                             CFLAGS="$CFLAGS -Werror"
35926                         fi
35927
35928                         cat >conftest.$ac_ext <<_ACEOF
35929 /* confdefs.h.  */
35930 _ACEOF
35931 cat confdefs.h >>conftest.$ac_ext
35932 cat >>conftest.$ac_ext <<_ACEOF
35933 /* end confdefs.h.  */
35934
35935                                 #include <sys/types.h>
35936                                 #include <sys/socket.h>
35937
35938 int
35939 main ()
35940 {
35941
35942                                 size_t len;
35943                                 getsockname(0, 0, &len);
35944
35945   ;
35946   return 0;
35947 }
35948 _ACEOF
35949 rm -f conftest.$ac_objext
35950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35951   (eval $ac_compile) 2>conftest.er1
35952   ac_status=$?
35953   grep -v '^ *+' conftest.er1 >conftest.err
35954   rm -f conftest.er1
35955   cat conftest.err >&5
35956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35957   (exit $ac_status); } &&
35958          { ac_try='test -z "$ac_c_werror_flag"
35959                          || test ! -s conftest.err'
35960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35961   (eval $ac_try) 2>&5
35962   ac_status=$?
35963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35964   (exit $ac_status); }; } &&
35965          { ac_try='test -s conftest.$ac_objext'
35966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35967   (eval $ac_try) 2>&5
35968   ac_status=$?
35969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35970   (exit $ac_status); }; }; then
35971   wx_cv_type_getsockname3=size_t
35972 else
35973   echo "$as_me: failed program was:" >&5
35974 sed 's/^/| /' conftest.$ac_ext >&5
35975
35976 cat >conftest.$ac_ext <<_ACEOF
35977 /* confdefs.h.  */
35978 _ACEOF
35979 cat confdefs.h >>conftest.$ac_ext
35980 cat >>conftest.$ac_ext <<_ACEOF
35981 /* end confdefs.h.  */
35982
35983                                     #include <sys/types.h>
35984                                     #include <sys/socket.h>
35985
35986 int
35987 main ()
35988 {
35989
35990                                     int len;
35991                                     getsockname(0, 0, &len);
35992
35993   ;
35994   return 0;
35995 }
35996 _ACEOF
35997 rm -f conftest.$ac_objext
35998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35999   (eval $ac_compile) 2>conftest.er1
36000   ac_status=$?
36001   grep -v '^ *+' conftest.er1 >conftest.err
36002   rm -f conftest.er1
36003   cat conftest.err >&5
36004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36005   (exit $ac_status); } &&
36006          { ac_try='test -z "$ac_c_werror_flag"
36007                          || test ! -s conftest.err'
36008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36009   (eval $ac_try) 2>&5
36010   ac_status=$?
36011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36012   (exit $ac_status); }; } &&
36013          { ac_try='test -s conftest.$ac_objext'
36014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36015   (eval $ac_try) 2>&5
36016   ac_status=$?
36017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36018   (exit $ac_status); }; }; then
36019   wx_cv_type_getsockname3=int
36020 else
36021   echo "$as_me: failed program was:" >&5
36022 sed 's/^/| /' conftest.$ac_ext >&5
36023
36024 wx_cv_type_getsockname3=unknown
36025
36026 fi
36027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36028
36029 fi
36030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36031
36032                         CFLAGS="$CFLAGS_OLD"
36033
36034
36035 fi
36036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36037
36038 fi
36039 echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
36040 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
36041
36042         if test "$wx_cv_type_getsockname3" = "unknown"; then
36043             wxUSE_SOCKETS=no
36044             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
36045 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
36046         else
36047             cat >>confdefs.h <<_ACEOF
36048 #define SOCKLEN_T $wx_cv_type_getsockname3
36049 _ACEOF
36050
36051         fi
36052     fi
36053 fi
36054
36055 if test "$wxUSE_SOCKETS" = "yes" ; then
36056     cat >>confdefs.h <<\_ACEOF
36057 #define wxUSE_SOCKETS 1
36058 _ACEOF
36059
36060     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
36061 fi
36062
36063 if test "$wxUSE_PROTOCOL" = "yes"; then
36064     if test "$wxUSE_SOCKETS" != "yes"; then
36065         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
36066 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
36067         wxUSE_PROTOCOL=no
36068     fi
36069 fi
36070
36071 if test "$wxUSE_PROTOCOL" = "yes"; then
36072     cat >>confdefs.h <<\_ACEOF
36073 #define wxUSE_PROTOCOL 1
36074 _ACEOF
36075
36076
36077     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
36078         cat >>confdefs.h <<\_ACEOF
36079 #define wxUSE_PROTOCOL_HTTP 1
36080 _ACEOF
36081
36082     fi
36083     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
36084         cat >>confdefs.h <<\_ACEOF
36085 #define wxUSE_PROTOCOL_FTP 1
36086 _ACEOF
36087
36088     fi
36089     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
36090         cat >>confdefs.h <<\_ACEOF
36091 #define wxUSE_PROTOCOL_FILE 1
36092 _ACEOF
36093
36094     fi
36095 else
36096     if test "$wxUSE_FS_INET" = "yes"; then
36097         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
36098 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
36099         wxUSE_FS_INET="no"
36100     fi
36101 fi
36102
36103 if test "$wxUSE_URL" = "yes"; then
36104     if test "$wxUSE_PROTOCOL" != "yes"; then
36105         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
36106 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
36107         wxUSE_URL=no
36108     fi
36109     if test "$wxUSE_URL" = "yes"; then
36110         cat >>confdefs.h <<\_ACEOF
36111 #define wxUSE_URL 1
36112 _ACEOF
36113
36114     fi
36115 fi
36116
36117 if test "$wxUSE_FS_INET" = "yes"; then
36118   cat >>confdefs.h <<\_ACEOF
36119 #define wxUSE_FS_INET 1
36120 _ACEOF
36121
36122 fi
36123
36124
36125 if test "$wxUSE_GUI" = "yes"; then
36126
36127     if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
36128         { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
36129 echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
36130         wxUSE_JOYSTICK=no
36131      fi
36132
36133          if test "$TOOLKIT" != "MSW"; then
36134         if test "$wxUSE_JOYSTICK" = "yes"; then
36135
36136 for ac_header in linux/joystick.h
36137 do
36138 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36140   echo "$as_me:$LINENO: checking for $ac_header" >&5
36141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36143   echo $ECHO_N "(cached) $ECHO_C" >&6
36144 fi
36145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36146 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36147 else
36148   # Is the header compilable?
36149 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36150 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36151 cat >conftest.$ac_ext <<_ACEOF
36152 /* confdefs.h.  */
36153 _ACEOF
36154 cat confdefs.h >>conftest.$ac_ext
36155 cat >>conftest.$ac_ext <<_ACEOF
36156 /* end confdefs.h.  */
36157 $ac_includes_default
36158 #include <$ac_header>
36159 _ACEOF
36160 rm -f conftest.$ac_objext
36161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36162   (eval $ac_compile) 2>conftest.er1
36163   ac_status=$?
36164   grep -v '^ *+' conftest.er1 >conftest.err
36165   rm -f conftest.er1
36166   cat conftest.err >&5
36167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36168   (exit $ac_status); } &&
36169          { ac_try='test -z "$ac_c_werror_flag"
36170                          || test ! -s conftest.err'
36171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36172   (eval $ac_try) 2>&5
36173   ac_status=$?
36174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36175   (exit $ac_status); }; } &&
36176          { ac_try='test -s conftest.$ac_objext'
36177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36178   (eval $ac_try) 2>&5
36179   ac_status=$?
36180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36181   (exit $ac_status); }; }; then
36182   ac_header_compiler=yes
36183 else
36184   echo "$as_me: failed program was:" >&5
36185 sed 's/^/| /' conftest.$ac_ext >&5
36186
36187 ac_header_compiler=no
36188 fi
36189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36190 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36191 echo "${ECHO_T}$ac_header_compiler" >&6
36192
36193 # Is the header present?
36194 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36195 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36196 cat >conftest.$ac_ext <<_ACEOF
36197 /* confdefs.h.  */
36198 _ACEOF
36199 cat confdefs.h >>conftest.$ac_ext
36200 cat >>conftest.$ac_ext <<_ACEOF
36201 /* end confdefs.h.  */
36202 #include <$ac_header>
36203 _ACEOF
36204 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36205   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36206   ac_status=$?
36207   grep -v '^ *+' conftest.er1 >conftest.err
36208   rm -f conftest.er1
36209   cat conftest.err >&5
36210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36211   (exit $ac_status); } >/dev/null; then
36212   if test -s conftest.err; then
36213     ac_cpp_err=$ac_c_preproc_warn_flag
36214     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36215   else
36216     ac_cpp_err=
36217   fi
36218 else
36219   ac_cpp_err=yes
36220 fi
36221 if test -z "$ac_cpp_err"; then
36222   ac_header_preproc=yes
36223 else
36224   echo "$as_me: failed program was:" >&5
36225 sed 's/^/| /' conftest.$ac_ext >&5
36226
36227   ac_header_preproc=no
36228 fi
36229 rm -f conftest.err conftest.$ac_ext
36230 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36231 echo "${ECHO_T}$ac_header_preproc" >&6
36232
36233 # So?  What about this header?
36234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36235   yes:no: )
36236     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36238     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36239 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36240     ac_header_preproc=yes
36241     ;;
36242   no:yes:* )
36243     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36244 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36245     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36246 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36247     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36248 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36249     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36250 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36251     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36253     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36254 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36255     (
36256       cat <<\_ASBOX
36257 ## ----------------------------------------- ##
36258 ## Report this to wx-dev@lists.wxwindows.org ##
36259 ## ----------------------------------------- ##
36260 _ASBOX
36261     ) |
36262       sed "s/^/$as_me: WARNING:     /" >&2
36263     ;;
36264 esac
36265 echo "$as_me:$LINENO: checking for $ac_header" >&5
36266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36268   echo $ECHO_N "(cached) $ECHO_C" >&6
36269 else
36270   eval "$as_ac_Header=\$ac_header_preproc"
36271 fi
36272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36273 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36274
36275 fi
36276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36277   cat >>confdefs.h <<_ACEOF
36278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36279 _ACEOF
36280
36281 fi
36282
36283 done
36284
36285             if test "$ac_cv_header_linux_joystick_h" != "yes"; then
36286                 wxUSE_JOYSTICK=no
36287                 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
36288 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
36289             fi
36290         fi
36291     fi
36292
36293     if test "$wxUSE_JOYSTICK" = "yes"; then
36294         cat >>confdefs.h <<\_ACEOF
36295 #define wxUSE_JOYSTICK 1
36296 _ACEOF
36297
36298         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
36299     fi
36300 fi
36301
36302
36303
36304 if test "$wxUSE_FONTMAP" = "yes" ; then
36305   cat >>confdefs.h <<\_ACEOF
36306 #define wxUSE_FONTMAP 1
36307 _ACEOF
36308
36309 fi
36310
36311 if test "$wxUSE_UNICODE" = "yes" ; then
36312   cat >>confdefs.h <<\_ACEOF
36313 #define wxUSE_UNICODE 1
36314 _ACEOF
36315
36316
36317   if test "$USE_WIN32" != 1; then
36318       wxUSE_UNICODE_MSLU=no
36319   fi
36320
36321   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
36322         echo "$as_me:$LINENO: checking for main in -lunicows" >&5
36323 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
36324 if test "${ac_cv_lib_unicows_main+set}" = set; then
36325   echo $ECHO_N "(cached) $ECHO_C" >&6
36326 else
36327   ac_check_lib_save_LIBS=$LIBS
36328 LIBS="-lunicows  $LIBS"
36329 cat >conftest.$ac_ext <<_ACEOF
36330 /* confdefs.h.  */
36331 _ACEOF
36332 cat confdefs.h >>conftest.$ac_ext
36333 cat >>conftest.$ac_ext <<_ACEOF
36334 /* end confdefs.h.  */
36335
36336
36337 int
36338 main ()
36339 {
36340 main ();
36341   ;
36342   return 0;
36343 }
36344 _ACEOF
36345 rm -f conftest.$ac_objext conftest$ac_exeext
36346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36347   (eval $ac_link) 2>conftest.er1
36348   ac_status=$?
36349   grep -v '^ *+' conftest.er1 >conftest.err
36350   rm -f conftest.er1
36351   cat conftest.err >&5
36352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36353   (exit $ac_status); } &&
36354          { ac_try='test -z "$ac_c_werror_flag"
36355                          || test ! -s conftest.err'
36356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36357   (eval $ac_try) 2>&5
36358   ac_status=$?
36359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36360   (exit $ac_status); }; } &&
36361          { ac_try='test -s conftest$ac_exeext'
36362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36363   (eval $ac_try) 2>&5
36364   ac_status=$?
36365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36366   (exit $ac_status); }; }; then
36367   ac_cv_lib_unicows_main=yes
36368 else
36369   echo "$as_me: failed program was:" >&5
36370 sed 's/^/| /' conftest.$ac_ext >&5
36371
36372 ac_cv_lib_unicows_main=no
36373 fi
36374 rm -f conftest.err conftest.$ac_objext \
36375       conftest$ac_exeext conftest.$ac_ext
36376 LIBS=$ac_check_lib_save_LIBS
36377 fi
36378 echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
36379 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
36380 if test $ac_cv_lib_unicows_main = yes; then
36381
36382                 cat >>confdefs.h <<\_ACEOF
36383 #define wxUSE_UNICODE_MSLU 1
36384 _ACEOF
36385
36386
36387 else
36388
36389                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36390                              Applications will only run on Windows NT/2000/XP!" >&5
36391 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36392                              Applications will only run on Windows NT/2000/XP!" >&2;}
36393                 wxUSE_UNICODE_MSLU=no
36394
36395 fi
36396
36397     fi
36398 fi
36399
36400 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
36401   cat >>confdefs.h <<\_ACEOF
36402 #define wxUSE_EXPERIMENTAL_PRINTF 1
36403 _ACEOF
36404
36405 fi
36406
36407
36408 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
36409   cat >>confdefs.h <<\_ACEOF
36410 #define wxUSE_POSTSCRIPT 1
36411 _ACEOF
36412
36413 fi
36414
36415 cat >>confdefs.h <<\_ACEOF
36416 #define wxUSE_AFM_FOR_POSTSCRIPT 1
36417 _ACEOF
36418
36419
36420 cat >>confdefs.h <<\_ACEOF
36421 #define wxUSE_NORMALIZED_PS_FONTS 1
36422 _ACEOF
36423
36424
36425
36426 if test "$wxUSE_CONSTRAINTS" = "yes"; then
36427     cat >>confdefs.h <<\_ACEOF
36428 #define wxUSE_CONSTRAINTS 1
36429 _ACEOF
36430
36431     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
36432 fi
36433
36434 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36435    cat >>confdefs.h <<\_ACEOF
36436 #define wxUSE_MDI_ARCHITECTURE 1
36437 _ACEOF
36438
36439    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
36440 fi
36441
36442 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
36443     cat >>confdefs.h <<\_ACEOF
36444 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
36445 _ACEOF
36446
36447     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
36448     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36449         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
36450     fi
36451 fi
36452
36453 if test "$wxUSE_HELP" = "yes"; then
36454     cat >>confdefs.h <<\_ACEOF
36455 #define wxUSE_HELP 1
36456 _ACEOF
36457
36458     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
36459
36460     if test "$wxUSE_MSW" = 1; then
36461       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
36462         cat >>confdefs.h <<\_ACEOF
36463 #define wxUSE_MS_HTML_HELP 1
36464 _ACEOF
36465
36466       fi
36467     fi
36468
36469     if test "$wxUSE_WXHTML_HELP" = "yes"; then
36470       if test "$wxUSE_HTML" = "yes"; then
36471         cat >>confdefs.h <<\_ACEOF
36472 #define wxUSE_WXHTML_HELP 1
36473 _ACEOF
36474
36475       else
36476         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
36477 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
36478         wxUSE_WXHTML_HELP=no
36479       fi
36480     fi
36481 fi
36482
36483 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36484     if test "$wxUSE_CONSTRAINTS" != "yes"; then
36485         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
36486 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
36487     else
36488         cat >>confdefs.h <<\_ACEOF
36489 #define wxUSE_PRINTING_ARCHITECTURE 1
36490 _ACEOF
36491
36492     fi
36493     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
36494 fi
36495
36496 if test "$wxUSE_PROLOGIO" = "yes" -o  "$wxUSE_RESOURCES" = "yes"; then
36497     { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
36498 echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
36499    { (exit 1); exit 1; }; }
36500 fi
36501
36502
36503 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
36504                           -o "$wxUSE_CLIPBOARD"     = "yes" \
36505                           -o "$wxUSE_OLE"     = "yes" \
36506                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
36507
36508 for ac_header in ole2.h
36509 do
36510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36512   echo "$as_me:$LINENO: checking for $ac_header" >&5
36513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36515   echo $ECHO_N "(cached) $ECHO_C" >&6
36516 fi
36517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36518 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36519 else
36520   # Is the header compilable?
36521 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36522 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36523 cat >conftest.$ac_ext <<_ACEOF
36524 /* confdefs.h.  */
36525 _ACEOF
36526 cat confdefs.h >>conftest.$ac_ext
36527 cat >>conftest.$ac_ext <<_ACEOF
36528 /* end confdefs.h.  */
36529 $ac_includes_default
36530 #include <$ac_header>
36531 _ACEOF
36532 rm -f conftest.$ac_objext
36533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36534   (eval $ac_compile) 2>conftest.er1
36535   ac_status=$?
36536   grep -v '^ *+' conftest.er1 >conftest.err
36537   rm -f conftest.er1
36538   cat conftest.err >&5
36539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36540   (exit $ac_status); } &&
36541          { ac_try='test -z "$ac_c_werror_flag"
36542                          || test ! -s conftest.err'
36543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36544   (eval $ac_try) 2>&5
36545   ac_status=$?
36546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36547   (exit $ac_status); }; } &&
36548          { ac_try='test -s conftest.$ac_objext'
36549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36550   (eval $ac_try) 2>&5
36551   ac_status=$?
36552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36553   (exit $ac_status); }; }; then
36554   ac_header_compiler=yes
36555 else
36556   echo "$as_me: failed program was:" >&5
36557 sed 's/^/| /' conftest.$ac_ext >&5
36558
36559 ac_header_compiler=no
36560 fi
36561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36562 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36563 echo "${ECHO_T}$ac_header_compiler" >&6
36564
36565 # Is the header present?
36566 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36567 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36568 cat >conftest.$ac_ext <<_ACEOF
36569 /* confdefs.h.  */
36570 _ACEOF
36571 cat confdefs.h >>conftest.$ac_ext
36572 cat >>conftest.$ac_ext <<_ACEOF
36573 /* end confdefs.h.  */
36574 #include <$ac_header>
36575 _ACEOF
36576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36577   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36578   ac_status=$?
36579   grep -v '^ *+' conftest.er1 >conftest.err
36580   rm -f conftest.er1
36581   cat conftest.err >&5
36582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36583   (exit $ac_status); } >/dev/null; then
36584   if test -s conftest.err; then
36585     ac_cpp_err=$ac_c_preproc_warn_flag
36586     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36587   else
36588     ac_cpp_err=
36589   fi
36590 else
36591   ac_cpp_err=yes
36592 fi
36593 if test -z "$ac_cpp_err"; then
36594   ac_header_preproc=yes
36595 else
36596   echo "$as_me: failed program was:" >&5
36597 sed 's/^/| /' conftest.$ac_ext >&5
36598
36599   ac_header_preproc=no
36600 fi
36601 rm -f conftest.err conftest.$ac_ext
36602 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36603 echo "${ECHO_T}$ac_header_preproc" >&6
36604
36605 # So?  What about this header?
36606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36607   yes:no: )
36608     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36609 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36610     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36611 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36612     ac_header_preproc=yes
36613     ;;
36614   no:yes:* )
36615     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36616 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36617     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36618 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36619     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36620 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36621     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36622 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36623     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36625     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36626 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36627     (
36628       cat <<\_ASBOX
36629 ## ----------------------------------------- ##
36630 ## Report this to wx-dev@lists.wxwindows.org ##
36631 ## ----------------------------------------- ##
36632 _ASBOX
36633     ) |
36634       sed "s/^/$as_me: WARNING:     /" >&2
36635     ;;
36636 esac
36637 echo "$as_me:$LINENO: checking for $ac_header" >&5
36638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36640   echo $ECHO_N "(cached) $ECHO_C" >&6
36641 else
36642   eval "$as_ac_Header=\$ac_header_preproc"
36643 fi
36644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36646
36647 fi
36648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36649   cat >>confdefs.h <<_ACEOF
36650 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36651 _ACEOF
36652
36653 fi
36654
36655 done
36656
36657
36658     if test "$ac_cv_header_ole2_h" = "yes" ; then
36659         if test "$GCC" = yes ; then
36660
36661
36662             ac_ext=cc
36663 ac_cpp='$CXXCPP $CPPFLAGS'
36664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36667
36668
36669             echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
36670 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
36671             cat >conftest.$ac_ext <<_ACEOF
36672 /* confdefs.h.  */
36673 _ACEOF
36674 cat confdefs.h >>conftest.$ac_ext
36675 cat >>conftest.$ac_ext <<_ACEOF
36676 /* end confdefs.h.  */
36677 #include <windows.h>
36678                             #include <ole2.h>
36679 int
36680 main ()
36681 {
36682
36683   ;
36684   return 0;
36685 }
36686 _ACEOF
36687 rm -f conftest.$ac_objext
36688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36689   (eval $ac_compile) 2>conftest.er1
36690   ac_status=$?
36691   grep -v '^ *+' conftest.er1 >conftest.err
36692   rm -f conftest.er1
36693   cat conftest.err >&5
36694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36695   (exit $ac_status); } &&
36696          { ac_try='test -z "$ac_cxx_werror_flag"
36697                          || test ! -s conftest.err'
36698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36699   (eval $ac_try) 2>&5
36700   ac_status=$?
36701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36702   (exit $ac_status); }; } &&
36703          { ac_try='test -s conftest.$ac_objext'
36704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36705   (eval $ac_try) 2>&5
36706   ac_status=$?
36707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36708   (exit $ac_status); }; }; then
36709   echo "$as_me:$LINENO: result: no" >&5
36710 echo "${ECHO_T}no" >&6
36711 else
36712   echo "$as_me: failed program was:" >&5
36713 sed 's/^/| /' conftest.$ac_ext >&5
36714
36715 echo "$as_me:$LINENO: result: yes" >&5
36716 echo "${ECHO_T}yes" >&6
36717                             CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
36718 fi
36719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36720             ac_ext=c
36721 ac_cpp='$CPP $CPPFLAGS'
36722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36725
36726             ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
36727             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
36728             if test "$wxUSE_OLE" = "yes" ; then
36729                 cat >>confdefs.h <<\_ACEOF
36730 #define wxUSE_OLE 1
36731 _ACEOF
36732
36733             fi
36734         fi
36735
36736                 if test "$wxUSE_DATAOBJ" = "yes" ; then
36737             cat >>confdefs.h <<\_ACEOF
36738 #define wxUSE_DATAOBJ 1
36739 _ACEOF
36740
36741         fi
36742     else
36743         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
36744 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
36745
36746         wxUSE_CLIPBOARD=no
36747         wxUSE_DRAG_AND_DROP=no
36748         wxUSE_DATAOBJ=no
36749         wxUSE_OLE=no
36750     fi
36751
36752     if test "$wxUSE_METAFILE" = "yes"; then
36753         cat >>confdefs.h <<\_ACEOF
36754 #define wxUSE_METAFILE 1
36755 _ACEOF
36756
36757
36758                 cat >>confdefs.h <<\_ACEOF
36759 #define wxUSE_ENH_METAFILE 1
36760 _ACEOF
36761
36762     fi
36763 fi
36764
36765 if test "$wxUSE_IPC" = "yes"; then
36766     if test "$wxUSE_SOCKETS" != "yes"; then
36767         { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
36768 echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
36769     fi
36770
36771     cat >>confdefs.h <<\_ACEOF
36772 #define wxUSE_IPC 1
36773 _ACEOF
36774
36775 fi
36776
36777 if test "$wxUSE_CLIPBOARD" = "yes"; then
36778     if test "$wxUSE_MGL" = 1; then
36779         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
36780 echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
36781         wxUSE_CLIPBOARD=no
36782     fi
36783
36784     if test "$wxUSE_CLIPBOARD" = "yes"; then
36785         cat >>confdefs.h <<\_ACEOF
36786 #define wxUSE_CLIPBOARD 1
36787 _ACEOF
36788
36789
36790                 cat >>confdefs.h <<\_ACEOF
36791 #define wxUSE_DATAOBJ 1
36792 _ACEOF
36793
36794     fi
36795 fi
36796
36797 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
36798     if test "$wxUSE_GTK" = 1; then
36799         if test "$WXGTK12" != 1; then
36800             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
36801 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
36802             wxUSE_DRAG_AND_DROP=no
36803         fi
36804     fi
36805
36806     if test "$wxUSE_MOTIF" = 1; then
36807         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
36808 echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
36809         wxUSE_DRAG_AND_DROP=no
36810     fi
36811
36812     if test "$wxUSE_X11" = 1; then
36813         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
36814 echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
36815         wxUSE_DRAG_AND_DROP=no
36816     fi
36817
36818     if test "$wxUSE_MGL" = 1; then
36819         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
36820 echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
36821         wxUSE_DRAG_AND_DROP=no
36822     fi
36823
36824     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
36825         cat >>confdefs.h <<\_ACEOF
36826 #define wxUSE_DRAG_AND_DROP 1
36827 _ACEOF
36828
36829     fi
36830
36831 fi
36832
36833 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
36834     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
36835 fi
36836
36837 if test "$wxUSE_SPLINES" = "yes" ; then
36838   cat >>confdefs.h <<\_ACEOF
36839 #define wxUSE_SPLINES 1
36840 _ACEOF
36841
36842 fi
36843
36844
36845 USES_CONTROLS=0
36846 if test "$wxUSE_CONTROLS" = "yes"; then
36847   USES_CONTROLS=1
36848 fi
36849
36850 if test "$wxUSE_ACCEL" = "yes"; then
36851   cat >>confdefs.h <<\_ACEOF
36852 #define wxUSE_ACCEL 1
36853 _ACEOF
36854
36855   USES_CONTROLS=1
36856 fi
36857
36858 if test "$wxUSE_BUTTON" = "yes"; then
36859   cat >>confdefs.h <<\_ACEOF
36860 #define wxUSE_BUTTON 1
36861 _ACEOF
36862
36863   USES_CONTROLS=1
36864 fi
36865
36866 if test "$wxUSE_BMPBUTTON" = "yes"; then
36867   cat >>confdefs.h <<\_ACEOF
36868 #define wxUSE_BMPBUTTON 1
36869 _ACEOF
36870
36871   USES_CONTROLS=1
36872 fi
36873
36874 if test "$wxUSE_CALCTRL" = "yes"; then
36875   cat >>confdefs.h <<\_ACEOF
36876 #define wxUSE_CALENDARCTRL 1
36877 _ACEOF
36878
36879   USES_CONTROLS=1
36880   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
36881 fi
36882
36883 if test "$wxUSE_CARET" = "yes"; then
36884   cat >>confdefs.h <<\_ACEOF
36885 #define wxUSE_CARET 1
36886 _ACEOF
36887
36888   USES_CONTROLS=1
36889   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
36890 fi
36891
36892 if test "$wxUSE_COMBOBOX" = "yes"; then
36893   cat >>confdefs.h <<\_ACEOF
36894 #define wxUSE_COMBOBOX 1
36895 _ACEOF
36896
36897   USES_CONTROLS=1
36898 fi
36899
36900 if test "$wxUSE_CHOICE" = "yes"; then
36901   cat >>confdefs.h <<\_ACEOF
36902 #define wxUSE_CHOICE 1
36903 _ACEOF
36904
36905   USES_CONTROLS=1
36906 fi
36907
36908 if test "$wxUSE_CHECKBOX" = "yes"; then
36909   cat >>confdefs.h <<\_ACEOF
36910 #define wxUSE_CHECKBOX 1
36911 _ACEOF
36912
36913   USES_CONTROLS=1
36914 fi
36915
36916 if test "$wxUSE_CHECKLST" = "yes"; then
36917   cat >>confdefs.h <<\_ACEOF
36918 #define wxUSE_CHECKLISTBOX 1
36919 _ACEOF
36920
36921   USES_CONTROLS=1
36922   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
36923 fi
36924
36925 if test "$wxUSE_DISPLAY" = "yes"; then
36926     cat >>confdefs.h <<\_ACEOF
36927 #define wxUSE_DISPLAY 1
36928 _ACEOF
36929
36930     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
36931 fi
36932
36933 if test "$wxUSE_GAUGE" = "yes"; then
36934   cat >>confdefs.h <<\_ACEOF
36935 #define wxUSE_GAUGE 1
36936 _ACEOF
36937
36938   USES_CONTROLS=1
36939 fi
36940
36941 if test "$wxUSE_GRID" = "yes"; then
36942   cat >>confdefs.h <<\_ACEOF
36943 #define wxUSE_GRID 1
36944 _ACEOF
36945
36946   USES_CONTROLS=1
36947   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
36948 fi
36949
36950 if test "$wxUSE_IMAGLIST" = "yes"; then
36951     cat >>confdefs.h <<\_ACEOF
36952 #define wxUSE_IMAGLIST 1
36953 _ACEOF
36954
36955 fi
36956
36957 if test "$wxUSE_LISTBOOK" = "yes"; then
36958     cat >>confdefs.h <<\_ACEOF
36959 #define wxUSE_LISTBOOK 1
36960 _ACEOF
36961
36962     USES_CONTROLS=1
36963 fi
36964
36965 if test "$wxUSE_LISTBOX" = "yes"; then
36966     cat >>confdefs.h <<\_ACEOF
36967 #define wxUSE_LISTBOX 1
36968 _ACEOF
36969
36970     USES_CONTROLS=1
36971 fi
36972
36973 if test "$wxUSE_LISTCTRL" = "yes"; then
36974     if test "$wxUSE_IMAGLIST" = "yes"; then
36975         cat >>confdefs.h <<\_ACEOF
36976 #define wxUSE_LISTCTRL 1
36977 _ACEOF
36978
36979         USES_CONTROLS=1
36980         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
36981     else
36982         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
36983 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
36984     fi
36985 fi
36986
36987 if test "$wxUSE_NOTEBOOK" = "yes"; then
36988     cat >>confdefs.h <<\_ACEOF
36989 #define wxUSE_NOTEBOOK 1
36990 _ACEOF
36991
36992     USES_CONTROLS=1
36993     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
36994 fi
36995
36996
36997 if test "$wxUSE_RADIOBOX" = "yes"; then
36998     cat >>confdefs.h <<\_ACEOF
36999 #define wxUSE_RADIOBOX 1
37000 _ACEOF
37001
37002     USES_CONTROLS=1
37003 fi
37004
37005 if test "$wxUSE_RADIOBTN" = "yes"; then
37006     cat >>confdefs.h <<\_ACEOF
37007 #define wxUSE_RADIOBTN 1
37008 _ACEOF
37009
37010     USES_CONTROLS=1
37011 fi
37012
37013 if test "$wxUSE_SASH" = "yes"; then
37014     cat >>confdefs.h <<\_ACEOF
37015 #define wxUSE_SASH 1
37016 _ACEOF
37017
37018     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
37019 fi
37020
37021 if test "$wxUSE_SCROLLBAR" = "yes"; then
37022     cat >>confdefs.h <<\_ACEOF
37023 #define wxUSE_SCROLLBAR 1
37024 _ACEOF
37025
37026     USES_CONTROLS=1
37027     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
37028 fi
37029
37030 if test "$wxUSE_SLIDER" = "yes"; then
37031     cat >>confdefs.h <<\_ACEOF
37032 #define wxUSE_SLIDER 1
37033 _ACEOF
37034
37035     USES_CONTROLS=1
37036 fi
37037
37038 if test "$wxUSE_SPINBTN" = "yes"; then
37039     cat >>confdefs.h <<\_ACEOF
37040 #define wxUSE_SPINBTN 1
37041 _ACEOF
37042
37043     USES_CONTROLS=1
37044 fi
37045
37046 if test "$wxUSE_SPINCTRL" = "yes"; then
37047     cat >>confdefs.h <<\_ACEOF
37048 #define wxUSE_SPINCTRL 1
37049 _ACEOF
37050
37051     USES_CONTROLS=1
37052 fi
37053
37054 if test "$wxUSE_SPLITTER" = "yes"; then
37055     cat >>confdefs.h <<\_ACEOF
37056 #define wxUSE_SPLITTER 1
37057 _ACEOF
37058
37059     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
37060 fi
37061
37062 if test "$wxUSE_STATBMP" = "yes"; then
37063     cat >>confdefs.h <<\_ACEOF
37064 #define wxUSE_STATBMP 1
37065 _ACEOF
37066
37067     USES_CONTROLS=1
37068 fi
37069
37070 if test "$wxUSE_STATBOX" = "yes"; then
37071     cat >>confdefs.h <<\_ACEOF
37072 #define wxUSE_STATBOX 1
37073 _ACEOF
37074
37075     USES_CONTROLS=1
37076 fi
37077
37078 if test "$wxUSE_STATTEXT" = "yes"; then
37079     cat >>confdefs.h <<\_ACEOF
37080 #define wxUSE_STATTEXT 1
37081 _ACEOF
37082
37083     USES_CONTROLS=1
37084 fi
37085
37086 if test "$wxUSE_STATLINE" = "yes"; then
37087     cat >>confdefs.h <<\_ACEOF
37088 #define wxUSE_STATLINE 1
37089 _ACEOF
37090
37091     USES_CONTROLS=1
37092 fi
37093
37094 if test "$wxUSE_STATUSBAR" = "yes"; then
37095     cat >>confdefs.h <<\_ACEOF
37096 #define wxUSE_STATUSBAR 1
37097 _ACEOF
37098
37099     USES_CONTROLS=1
37100
37101     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
37102 fi
37103
37104 if test "$wxUSE_TABDIALOG" = "yes"; then
37105     cat >>confdefs.h <<\_ACEOF
37106 #define wxUSE_TAB_DIALOG 1
37107 _ACEOF
37108
37109     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
37110 fi
37111
37112 if test "$wxUSE_TEXTCTRL" = "yes"; then
37113     cat >>confdefs.h <<\_ACEOF
37114 #define wxUSE_TEXTCTRL 1
37115 _ACEOF
37116
37117     USES_CONTROLS=1
37118     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
37119 fi
37120
37121 if test "$wxUSE_TOGGLEBTN" = "yes"; then
37122     if test "$wxUSE_COCOA" = 1 ; then
37123         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
37124 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
37125         wxUSE_TOGGLEBTN=no
37126     fi
37127     if test "$wxUSE_UNIVERSAL" = "yes"; then
37128         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
37129 echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
37130         wxUSE_TOGGLEBTN=no
37131     fi
37132
37133     if test "$wxUSE_TOGGLEBTN" = "yes"; then
37134         cat >>confdefs.h <<\_ACEOF
37135 #define wxUSE_TOGGLEBTN 1
37136 _ACEOF
37137
37138         USES_CONTROLS=1
37139     fi
37140 fi
37141
37142 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
37143     cat >>confdefs.h <<\_ACEOF
37144 #define wxUSE_TOOLBAR_SIMPLE 1
37145 _ACEOF
37146
37147     wxUSE_TOOLBAR="yes"
37148     USES_CONTROLS=1
37149 fi
37150
37151 if test "$wxUSE_TOOLBAR" = "yes"; then
37152     cat >>confdefs.h <<\_ACEOF
37153 #define wxUSE_TOOLBAR 1
37154 _ACEOF
37155
37156     USES_CONTROLS=1
37157
37158         if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
37159         wxUSE_TOOLBAR_NATIVE="yes"
37160     fi
37161
37162     if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
37163         cat >>confdefs.h <<\_ACEOF
37164 #define wxUSE_TOOLBAR_NATIVE 1
37165 _ACEOF
37166
37167         USES_CONTROLS=1
37168     fi
37169
37170     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
37171 fi
37172
37173 if test "$wxUSE_TOOLTIPS" = "yes"; then
37174     if test "$wxUSE_MOTIF" = 1; then
37175         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
37176 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
37177     else
37178         if test "$wxUSE_UNIVERSAL" = "yes"; then
37179             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
37180 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
37181         else
37182             cat >>confdefs.h <<\_ACEOF
37183 #define wxUSE_TOOLTIPS 1
37184 _ACEOF
37185
37186         fi
37187     fi
37188 fi
37189
37190 if test "$wxUSE_TREECTRL" = "yes"; then
37191     if test "$wxUSE_IMAGLIST" = "yes"; then
37192         cat >>confdefs.h <<\_ACEOF
37193 #define wxUSE_TREECTRL 1
37194 _ACEOF
37195
37196         USES_CONTROLS=1
37197         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
37198     else
37199         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
37200 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
37201     fi
37202 fi
37203
37204 if test "$wxUSE_POPUPWIN" = "yes"; then
37205     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
37206         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
37207 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
37208     else
37209         if test "$wxUSE_PM" = 1; then
37210             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
37211 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
37212         else
37213             cat >>confdefs.h <<\_ACEOF
37214 #define wxUSE_POPUPWIN 1
37215 _ACEOF
37216
37217
37218             USES_CONTROLS=1
37219         fi
37220     fi
37221 fi
37222
37223 if test "$wxUSE_TIPWINDOW" = "yes"; then
37224     if test "$wxUSE_PM" = 1; then
37225         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
37226 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
37227     else
37228         cat >>confdefs.h <<\_ACEOF
37229 #define wxUSE_TIPWINDOW 1
37230 _ACEOF
37231
37232     fi
37233 fi
37234
37235 if test "$USES_CONTROLS" = 1; then
37236     cat >>confdefs.h <<\_ACEOF
37237 #define wxUSE_CONTROLS 1
37238 _ACEOF
37239
37240 fi
37241
37242
37243 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
37244     cat >>confdefs.h <<\_ACEOF
37245 #define wxUSE_ACCESSIBILITY 1
37246 _ACEOF
37247
37248     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
37249 fi
37250
37251 if test "$wxUSE_DRAGIMAGE" = "yes"; then
37252     cat >>confdefs.h <<\_ACEOF
37253 #define wxUSE_DRAGIMAGE 1
37254 _ACEOF
37255
37256     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
37257 fi
37258
37259 if test "$wxUSE_EXCEPTIONS" = "yes"; then
37260     cat >>confdefs.h <<\_ACEOF
37261 #define wxUSE_EXCEPTIONS 1
37262 _ACEOF
37263
37264 fi
37265
37266 USE_HTML=0
37267 if test "$wxUSE_HTML" = "yes"; then
37268     cat >>confdefs.h <<\_ACEOF
37269 #define wxUSE_HTML 1
37270 _ACEOF
37271
37272     USE_HTML=1
37273     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
37274 fi
37275
37276 if test "$wxUSE_MENUS" = "yes"; then
37277     cat >>confdefs.h <<\_ACEOF
37278 #define wxUSE_MENUS 1
37279 _ACEOF
37280
37281     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
37282 fi
37283
37284 if test "$wxUSE_METAFILE" = "yes"; then
37285     cat >>confdefs.h <<\_ACEOF
37286 #define wxUSE_METAFILE 1
37287 _ACEOF
37288
37289 fi
37290
37291 if test "$wxUSE_MIMETYPE" = "yes"; then
37292     cat >>confdefs.h <<\_ACEOF
37293 #define wxUSE_MIMETYPE 1
37294 _ACEOF
37295
37296 fi
37297
37298 if test "$wxUSE_MINIFRAME" = "yes"; then
37299     cat >>confdefs.h <<\_ACEOF
37300 #define wxUSE_MINIFRAME 1
37301 _ACEOF
37302
37303     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
37304 fi
37305
37306 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
37307     cat >>confdefs.h <<\_ACEOF
37308 #define wxUSE_SYSTEM_OPTIONS 1
37309 _ACEOF
37310
37311     if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
37312         "$TOOLKIT" = "MOTIF"; then
37313         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
37314     fi
37315 fi
37316
37317
37318 if test "$wxUSE_VALIDATORS" = "yes"; then
37319     cat >>confdefs.h <<\_ACEOF
37320 #define wxUSE_VALIDATORS 1
37321 _ACEOF
37322
37323     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
37324 fi
37325
37326 if test "$wxUSE_PALETTE" = "yes" ; then
37327   cat >>confdefs.h <<\_ACEOF
37328 #define wxUSE_PALETTE 1
37329 _ACEOF
37330
37331 fi
37332
37333 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
37334     LIBS=" -lunicows $LIBS"
37335 fi
37336
37337
37338 if test "$wxUSE_IMAGE" = "yes" ; then
37339     cat >>confdefs.h <<\_ACEOF
37340 #define wxUSE_IMAGE 1
37341 _ACEOF
37342
37343
37344     if test "$wxUSE_GIF" = "yes" ; then
37345       cat >>confdefs.h <<\_ACEOF
37346 #define wxUSE_GIF 1
37347 _ACEOF
37348
37349     fi
37350
37351     if test "$wxUSE_PCX" = "yes" ; then
37352       cat >>confdefs.h <<\_ACEOF
37353 #define wxUSE_PCX 1
37354 _ACEOF
37355
37356     fi
37357
37358     if test "$wxUSE_IFF" = "yes" ; then
37359       cat >>confdefs.h <<\_ACEOF
37360 #define wxUSE_IFF 1
37361 _ACEOF
37362
37363     fi
37364
37365     if test "$wxUSE_PNM" = "yes" ; then
37366       cat >>confdefs.h <<\_ACEOF
37367 #define wxUSE_PNM 1
37368 _ACEOF
37369
37370     fi
37371
37372     if test "$wxUSE_XPM" = "yes" ; then
37373       cat >>confdefs.h <<\_ACEOF
37374 #define wxUSE_XPM 1
37375 _ACEOF
37376
37377     fi
37378
37379     if test "$wxUSE_ICO_CUR" = "yes" ; then
37380       cat >>confdefs.h <<\_ACEOF
37381 #define wxUSE_ICO_CUR 1
37382 _ACEOF
37383
37384     fi
37385 fi
37386
37387
37388 if test "$wxUSE_CHOICEDLG" = "yes"; then
37389     cat >>confdefs.h <<\_ACEOF
37390 #define wxUSE_CHOICEDLG 1
37391 _ACEOF
37392
37393 fi
37394
37395 if test "$wxUSE_COLOURDLG" = "yes"; then
37396     cat >>confdefs.h <<\_ACEOF
37397 #define wxUSE_COLOURDLG 1
37398 _ACEOF
37399
37400 fi
37401
37402 if test "$wxUSE_FILEDLG" = "yes"; then
37403     cat >>confdefs.h <<\_ACEOF
37404 #define wxUSE_FILEDLG 1
37405 _ACEOF
37406
37407 fi
37408
37409 if test "$wxUSE_FINDREPLDLG" = "yes"; then
37410     cat >>confdefs.h <<\_ACEOF
37411 #define wxUSE_FINDREPLDLG 1
37412 _ACEOF
37413
37414 fi
37415
37416 if test "$wxUSE_FONTDLG" = "yes"; then
37417     cat >>confdefs.h <<\_ACEOF
37418 #define wxUSE_FONTDLG 1
37419 _ACEOF
37420
37421 fi
37422
37423 if test "$wxUSE_DIRDLG" = "yes"; then
37424     if test "$wxUSE_TREECTRL" != "yes"; then
37425         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
37426 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
37427     else
37428         cat >>confdefs.h <<\_ACEOF
37429 #define wxUSE_DIRDLG 1
37430 _ACEOF
37431
37432     fi
37433 fi
37434
37435 if test "$wxUSE_MSGDLG" = "yes"; then
37436     cat >>confdefs.h <<\_ACEOF
37437 #define wxUSE_MSGDLG 1
37438 _ACEOF
37439
37440 fi
37441
37442 if test "$wxUSE_NUMBERDLG" = "yes"; then
37443     cat >>confdefs.h <<\_ACEOF
37444 #define wxUSE_NUMBERDLG 1
37445 _ACEOF
37446
37447 fi
37448
37449 if test "$wxUSE_PROGRESSDLG" = "yes"; then
37450     if test "$wxUSE_CONSTRAINTS" != "yes"; then
37451        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
37452 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
37453     else
37454         cat >>confdefs.h <<\_ACEOF
37455 #define wxUSE_PROGRESSDLG 1
37456 _ACEOF
37457
37458     fi
37459 fi
37460
37461 if test "$wxUSE_SPLASH" = "yes"; then
37462     cat >>confdefs.h <<\_ACEOF
37463 #define wxUSE_SPLASH 1
37464 _ACEOF
37465
37466 fi
37467
37468 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
37469     if test "$wxUSE_CONSTRAINTS" != "yes"; then
37470        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
37471 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
37472     else
37473         cat >>confdefs.h <<\_ACEOF
37474 #define wxUSE_STARTUP_TIPS 1
37475 _ACEOF
37476
37477     fi
37478 fi
37479
37480 if test "$wxUSE_TEXTDLG" = "yes"; then
37481     cat >>confdefs.h <<\_ACEOF
37482 #define wxUSE_TEXTDLG 1
37483 _ACEOF
37484
37485 fi
37486
37487 if test "$wxUSE_WIZARDDLG" = "yes"; then
37488     cat >>confdefs.h <<\_ACEOF
37489 #define wxUSE_WIZARDDLG 1
37490 _ACEOF
37491
37492     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
37493 fi
37494
37495
37496 if test "$cross_compiling" = "yes"; then
37497         OSINFO="\"$host\""
37498 else
37499         OSINFO=`uname -s -r -m`
37500     OSINFO="\"$OSINFO\""
37501 fi
37502
37503 cat >>confdefs.h <<_ACEOF
37504 #define WXWIN_OS_DESCRIPTION $OSINFO
37505 _ACEOF
37506
37507
37508
37509 if test "x$prefix" != "xNONE"; then
37510     wxPREFIX=$prefix
37511 else
37512     wxPREFIX=$ac_default_prefix
37513 fi
37514
37515 cat >>confdefs.h <<_ACEOF
37516 #define wxINSTALL_PREFIX "$wxPREFIX"
37517 _ACEOF
37518
37519
37520 top_builddir_wxconfig=`pwd`
37521
37522
37523
37524 CORE_BASE_LIBS="net base"
37525 CORE_GUI_LIBS="adv core"
37526
37527 if test "$wxUSE_XML" = "yes" ; then
37528     CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
37529 fi
37530 if test "$wxUSE_ODBC" != "no" ; then
37531     CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
37532     CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
37533 fi
37534 if test "$wxUSE_HTML" = "yes" ; then
37535     CORE_GUI_LIBS="html $CORE_GUI_LIBS"
37536 fi
37537
37538 if test "$wxUSE_GUI" != "yes"; then
37539     CORE_GUI_LIBS=""
37540 fi
37541
37542
37543
37544
37545
37546
37547
37548
37549 if test "$wxUSE_MAC" = 1 ; then
37550     LDFLAGS="$LDFLAGS -framework Carbon -framework System"
37551 fi
37552 if test "$wxUSE_COCOA" = 1 ; then
37553     LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
37554 fi
37555
37556
37557 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
37558
37559 have_cos=0
37560 have_floor=0
37561
37562 for ac_func in cos
37563 do
37564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37565 echo "$as_me:$LINENO: checking for $ac_func" >&5
37566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37567 if eval "test \"\${$as_ac_var+set}\" = set"; then
37568   echo $ECHO_N "(cached) $ECHO_C" >&6
37569 else
37570   cat >conftest.$ac_ext <<_ACEOF
37571 /* confdefs.h.  */
37572 _ACEOF
37573 cat confdefs.h >>conftest.$ac_ext
37574 cat >>conftest.$ac_ext <<_ACEOF
37575 /* end confdefs.h.  */
37576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37577    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37578 #define $ac_func innocuous_$ac_func
37579
37580 /* System header to define __stub macros and hopefully few prototypes,
37581     which can conflict with char $ac_func (); below.
37582     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37583     <limits.h> exists even on freestanding compilers.  */
37584
37585 #ifdef __STDC__
37586 # include <limits.h>
37587 #else
37588 # include <assert.h>
37589 #endif
37590
37591 #undef $ac_func
37592
37593 /* Override any gcc2 internal prototype to avoid an error.  */
37594 #ifdef __cplusplus
37595 extern "C"
37596 {
37597 #endif
37598 /* We use char because int might match the return type of a gcc2
37599    builtin and then its argument prototype would still apply.  */
37600 char $ac_func ();
37601 /* The GNU C library defines this for functions which it implements
37602     to always fail with ENOSYS.  Some functions are actually named
37603     something starting with __ and the normal name is an alias.  */
37604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37605 choke me
37606 #else
37607 char (*f) () = $ac_func;
37608 #endif
37609 #ifdef __cplusplus
37610 }
37611 #endif
37612
37613 int
37614 main ()
37615 {
37616 return f != $ac_func;
37617   ;
37618   return 0;
37619 }
37620 _ACEOF
37621 rm -f conftest.$ac_objext conftest$ac_exeext
37622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37623   (eval $ac_link) 2>conftest.er1
37624   ac_status=$?
37625   grep -v '^ *+' conftest.er1 >conftest.err
37626   rm -f conftest.er1
37627   cat conftest.err >&5
37628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37629   (exit $ac_status); } &&
37630          { ac_try='test -z "$ac_c_werror_flag"
37631                          || test ! -s conftest.err'
37632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37633   (eval $ac_try) 2>&5
37634   ac_status=$?
37635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37636   (exit $ac_status); }; } &&
37637          { ac_try='test -s conftest$ac_exeext'
37638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37639   (eval $ac_try) 2>&5
37640   ac_status=$?
37641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37642   (exit $ac_status); }; }; then
37643   eval "$as_ac_var=yes"
37644 else
37645   echo "$as_me: failed program was:" >&5
37646 sed 's/^/| /' conftest.$ac_ext >&5
37647
37648 eval "$as_ac_var=no"
37649 fi
37650 rm -f conftest.err conftest.$ac_objext \
37651       conftest$ac_exeext conftest.$ac_ext
37652 fi
37653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37654 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37655 if test `eval echo '${'$as_ac_var'}'` = yes; then
37656   cat >>confdefs.h <<_ACEOF
37657 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37658 _ACEOF
37659  have_cos=1
37660 fi
37661 done
37662
37663
37664 for ac_func in floor
37665 do
37666 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37667 echo "$as_me:$LINENO: checking for $ac_func" >&5
37668 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37669 if eval "test \"\${$as_ac_var+set}\" = set"; then
37670   echo $ECHO_N "(cached) $ECHO_C" >&6
37671 else
37672   cat >conftest.$ac_ext <<_ACEOF
37673 /* confdefs.h.  */
37674 _ACEOF
37675 cat confdefs.h >>conftest.$ac_ext
37676 cat >>conftest.$ac_ext <<_ACEOF
37677 /* end confdefs.h.  */
37678 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37679    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37680 #define $ac_func innocuous_$ac_func
37681
37682 /* System header to define __stub macros and hopefully few prototypes,
37683     which can conflict with char $ac_func (); below.
37684     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37685     <limits.h> exists even on freestanding compilers.  */
37686
37687 #ifdef __STDC__
37688 # include <limits.h>
37689 #else
37690 # include <assert.h>
37691 #endif
37692
37693 #undef $ac_func
37694
37695 /* Override any gcc2 internal prototype to avoid an error.  */
37696 #ifdef __cplusplus
37697 extern "C"
37698 {
37699 #endif
37700 /* We use char because int might match the return type of a gcc2
37701    builtin and then its argument prototype would still apply.  */
37702 char $ac_func ();
37703 /* The GNU C library defines this for functions which it implements
37704     to always fail with ENOSYS.  Some functions are actually named
37705     something starting with __ and the normal name is an alias.  */
37706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37707 choke me
37708 #else
37709 char (*f) () = $ac_func;
37710 #endif
37711 #ifdef __cplusplus
37712 }
37713 #endif
37714
37715 int
37716 main ()
37717 {
37718 return f != $ac_func;
37719   ;
37720   return 0;
37721 }
37722 _ACEOF
37723 rm -f conftest.$ac_objext conftest$ac_exeext
37724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37725   (eval $ac_link) 2>conftest.er1
37726   ac_status=$?
37727   grep -v '^ *+' conftest.er1 >conftest.err
37728   rm -f conftest.er1
37729   cat conftest.err >&5
37730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37731   (exit $ac_status); } &&
37732          { ac_try='test -z "$ac_c_werror_flag"
37733                          || test ! -s conftest.err'
37734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37735   (eval $ac_try) 2>&5
37736   ac_status=$?
37737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37738   (exit $ac_status); }; } &&
37739          { ac_try='test -s conftest$ac_exeext'
37740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37741   (eval $ac_try) 2>&5
37742   ac_status=$?
37743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37744   (exit $ac_status); }; }; then
37745   eval "$as_ac_var=yes"
37746 else
37747   echo "$as_me: failed program was:" >&5
37748 sed 's/^/| /' conftest.$ac_ext >&5
37749
37750 eval "$as_ac_var=no"
37751 fi
37752 rm -f conftest.err conftest.$ac_objext \
37753       conftest$ac_exeext conftest.$ac_ext
37754 fi
37755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37756 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37757 if test `eval echo '${'$as_ac_var'}'` = yes; then
37758   cat >>confdefs.h <<_ACEOF
37759 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37760 _ACEOF
37761  have_floor=1
37762 fi
37763 done
37764
37765 echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
37766 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
37767 if test "$have_cos" = 1 -a "$have_floor" = 1; then
37768     echo "$as_me:$LINENO: result: yes" >&5
37769 echo "${ECHO_T}yes" >&6
37770 else
37771     echo "$as_me:$LINENO: result: no" >&5
37772 echo "${ECHO_T}no" >&6
37773     LIBS="$LIBS -lm"
37774     # use different functions to avoid configure caching
37775     have_sin=0
37776     have_ceil=0
37777
37778 for ac_func in sin
37779 do
37780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37781 echo "$as_me:$LINENO: checking for $ac_func" >&5
37782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37783 if eval "test \"\${$as_ac_var+set}\" = set"; then
37784   echo $ECHO_N "(cached) $ECHO_C" >&6
37785 else
37786   cat >conftest.$ac_ext <<_ACEOF
37787 /* confdefs.h.  */
37788 _ACEOF
37789 cat confdefs.h >>conftest.$ac_ext
37790 cat >>conftest.$ac_ext <<_ACEOF
37791 /* end confdefs.h.  */
37792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37793    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37794 #define $ac_func innocuous_$ac_func
37795
37796 /* System header to define __stub macros and hopefully few prototypes,
37797     which can conflict with char $ac_func (); below.
37798     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37799     <limits.h> exists even on freestanding compilers.  */
37800
37801 #ifdef __STDC__
37802 # include <limits.h>
37803 #else
37804 # include <assert.h>
37805 #endif
37806
37807 #undef $ac_func
37808
37809 /* Override any gcc2 internal prototype to avoid an error.  */
37810 #ifdef __cplusplus
37811 extern "C"
37812 {
37813 #endif
37814 /* We use char because int might match the return type of a gcc2
37815    builtin and then its argument prototype would still apply.  */
37816 char $ac_func ();
37817 /* The GNU C library defines this for functions which it implements
37818     to always fail with ENOSYS.  Some functions are actually named
37819     something starting with __ and the normal name is an alias.  */
37820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37821 choke me
37822 #else
37823 char (*f) () = $ac_func;
37824 #endif
37825 #ifdef __cplusplus
37826 }
37827 #endif
37828
37829 int
37830 main ()
37831 {
37832 return f != $ac_func;
37833   ;
37834   return 0;
37835 }
37836 _ACEOF
37837 rm -f conftest.$ac_objext conftest$ac_exeext
37838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37839   (eval $ac_link) 2>conftest.er1
37840   ac_status=$?
37841   grep -v '^ *+' conftest.er1 >conftest.err
37842   rm -f conftest.er1
37843   cat conftest.err >&5
37844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37845   (exit $ac_status); } &&
37846          { ac_try='test -z "$ac_c_werror_flag"
37847                          || test ! -s conftest.err'
37848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37849   (eval $ac_try) 2>&5
37850   ac_status=$?
37851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37852   (exit $ac_status); }; } &&
37853          { ac_try='test -s conftest$ac_exeext'
37854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37855   (eval $ac_try) 2>&5
37856   ac_status=$?
37857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37858   (exit $ac_status); }; }; then
37859   eval "$as_ac_var=yes"
37860 else
37861   echo "$as_me: failed program was:" >&5
37862 sed 's/^/| /' conftest.$ac_ext >&5
37863
37864 eval "$as_ac_var=no"
37865 fi
37866 rm -f conftest.err conftest.$ac_objext \
37867       conftest$ac_exeext conftest.$ac_ext
37868 fi
37869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37870 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37871 if test `eval echo '${'$as_ac_var'}'` = yes; then
37872   cat >>confdefs.h <<_ACEOF
37873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37874 _ACEOF
37875  have_sin=1
37876 fi
37877 done
37878
37879
37880 for ac_func in ceil
37881 do
37882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37883 echo "$as_me:$LINENO: checking for $ac_func" >&5
37884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37885 if eval "test \"\${$as_ac_var+set}\" = set"; then
37886   echo $ECHO_N "(cached) $ECHO_C" >&6
37887 else
37888   cat >conftest.$ac_ext <<_ACEOF
37889 /* confdefs.h.  */
37890 _ACEOF
37891 cat confdefs.h >>conftest.$ac_ext
37892 cat >>conftest.$ac_ext <<_ACEOF
37893 /* end confdefs.h.  */
37894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37895    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37896 #define $ac_func innocuous_$ac_func
37897
37898 /* System header to define __stub macros and hopefully few prototypes,
37899     which can conflict with char $ac_func (); below.
37900     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37901     <limits.h> exists even on freestanding compilers.  */
37902
37903 #ifdef __STDC__
37904 # include <limits.h>
37905 #else
37906 # include <assert.h>
37907 #endif
37908
37909 #undef $ac_func
37910
37911 /* Override any gcc2 internal prototype to avoid an error.  */
37912 #ifdef __cplusplus
37913 extern "C"
37914 {
37915 #endif
37916 /* We use char because int might match the return type of a gcc2
37917    builtin and then its argument prototype would still apply.  */
37918 char $ac_func ();
37919 /* The GNU C library defines this for functions which it implements
37920     to always fail with ENOSYS.  Some functions are actually named
37921     something starting with __ and the normal name is an alias.  */
37922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37923 choke me
37924 #else
37925 char (*f) () = $ac_func;
37926 #endif
37927 #ifdef __cplusplus
37928 }
37929 #endif
37930
37931 int
37932 main ()
37933 {
37934 return f != $ac_func;
37935   ;
37936   return 0;
37937 }
37938 _ACEOF
37939 rm -f conftest.$ac_objext conftest$ac_exeext
37940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37941   (eval $ac_link) 2>conftest.er1
37942   ac_status=$?
37943   grep -v '^ *+' conftest.er1 >conftest.err
37944   rm -f conftest.er1
37945   cat conftest.err >&5
37946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37947   (exit $ac_status); } &&
37948          { ac_try='test -z "$ac_c_werror_flag"
37949                          || test ! -s conftest.err'
37950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37951   (eval $ac_try) 2>&5
37952   ac_status=$?
37953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37954   (exit $ac_status); }; } &&
37955          { ac_try='test -s conftest$ac_exeext'
37956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37957   (eval $ac_try) 2>&5
37958   ac_status=$?
37959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37960   (exit $ac_status); }; }; then
37961   eval "$as_ac_var=yes"
37962 else
37963   echo "$as_me: failed program was:" >&5
37964 sed 's/^/| /' conftest.$ac_ext >&5
37965
37966 eval "$as_ac_var=no"
37967 fi
37968 rm -f conftest.err conftest.$ac_objext \
37969       conftest$ac_exeext conftest.$ac_ext
37970 fi
37971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37972 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37973 if test `eval echo '${'$as_ac_var'}'` = yes; then
37974   cat >>confdefs.h <<_ACEOF
37975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37976 _ACEOF
37977  have_ceil=1
37978 fi
37979 done
37980
37981     echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
37982 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
37983     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
37984         echo "$as_me:$LINENO: result: yes" >&5
37985 echo "${ECHO_T}yes" >&6
37986     else
37987         echo "$as_me:$LINENO: result: no" >&5
37988 echo "${ECHO_T}no" >&6
37989         # not sure we should warn the user, crash, etc.
37990     fi
37991 fi
37992
37993 if test "$wxUSE_GUI" = "yes"; then
37994
37995
37996             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
37997                      drawing dynamic erase event exec font image \
37998                      minimal propsize rotate shaped widgets render"
37999
38000     if test "$wxUSE_MONOLITHIC" != "yes"; then
38001         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
38002     fi
38003 else
38004     SAMPLES_SUBDIRS="console"
38005 fi
38006
38007
38008 INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
38009 -I\${top_srcdir}/include $TOOLKIT_INCLUDE"
38010
38011 if test "$GXX" = yes ; then
38012         CXXWARNINGS="-Wall"
38013         fi
38014
38015 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
38016
38017 CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
38018 CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
38019 CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
38020
38021
38022 LIBS=`echo $LIBS | sed 's/ \+/ /g'`
38023 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
38024 EXTRALIBS_XML="$EXPAT_LINK"
38025 EXTRALIBS_HTML="$MSPACK_LINK"
38026 EXTRALIBS_ODBC="$ODBC_LINK"
38027 if test "$wxUSE_GUI" = "yes"; then
38028     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
38029 fi
38030 if test "$wxUSE_OPENGL" = "yes"; then
38031     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
38032 fi
38033
38034 LDFLAGS="$LDFLAGS $PROFILE"
38035
38036 if test "$wxUSE_GTK" = 1; then
38037     WXCONFIG_INCLUDE=
38038 else
38039     WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
38040 fi
38041
38042 WXCONFIG_EXTRALIBS="$LIBS"
38043
38044 if test "$wxUSE_REGEX" = "builtin" ; then
38045     wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
38046 fi
38047 if test "$wxUSE_EXPAT" = "builtin" ; then
38048     wxconfig_3rdparty="$wxconfig_3rdparty expat"
38049 fi
38050 if test "$wxUSE_ODBC" = "builtin" ; then
38051     wxconfig_3rdparty="$wxconfig_3rdparty odbc"
38052 fi
38053 if test "$wxUSE_LIBTIFF" = "builtin" ; then
38054     wxconfig_3rdparty="$wxconfig_3rdparty tiff"
38055 fi
38056 if test "$wxUSE_LIBJPEG" = "builtin" ; then
38057     wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
38058 fi
38059 if test "$wxUSE_LIBPNG" = "builtin" ; then
38060     wxconfig_3rdparty="$wxconfig_3rdparty png"
38061 fi
38062 if test "$wxUSE_ZLIB" = "builtin" ; then
38063     wxconfig_3rdparty="$wxconfig_3rdparty zlib"
38064 fi
38065 if test "$wxUSE_ODBC" = "builtin" ; then
38066     wxconfig_3rdparty="$wxconfig_3rdparty odbc"
38067 fi
38068
38069 for i in $wxconfig_3rdparty ; do
38070     WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
38071 done
38072
38073
38074 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
38075     WXUNIV=1
38076 else
38077     WXUNIV=0
38078 fi
38079
38080
38081
38082
38083
38084
38085
38086
38087
38088 if test $wxUSE_MONOLITHIC = "yes" ; then
38089     MONOLITHIC=1
38090 else
38091     MONOLITHIC=0
38092 fi
38093
38094 if test $wxUSE_PLUGINS = "yes" ; then
38095     USE_PLUGINS=1
38096 else
38097     USE_PLUGINS=0
38098 fi
38099
38100 if test $wxUSE_ODBC != "no" ; then
38101     USE_ODBC=1
38102 else
38103     USE_ODBC=0
38104 fi
38105
38106 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
38107     OFFICIAL_BUILD=1
38108 else
38109     OFFICIAL_BUILD=0
38110 fi
38111
38112
38113
38114
38115
38116
38117
38118
38119
38120
38121
38122
38123
38124
38125
38126
38127
38128
38129
38130
38131
38132 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
38133
38134
38135
38136
38137
38138
38139
38140
38141
38142     if test "x$BAKEFILE_HOST" = "x"; then
38143         BAKEFILE_HOST="${host}"
38144     fi
38145
38146     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
38147
38148     if test -n "$ac_tool_prefix"; then
38149   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
38150 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
38151 echo "$as_me:$LINENO: checking for $ac_word" >&5
38152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38153 if test "${ac_cv_prog_RANLIB+set}" = set; then
38154   echo $ECHO_N "(cached) $ECHO_C" >&6
38155 else
38156   if test -n "$RANLIB"; then
38157   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
38158 else
38159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38160 for as_dir in $PATH
38161 do
38162   IFS=$as_save_IFS
38163   test -z "$as_dir" && as_dir=.
38164   for ac_exec_ext in '' $ac_executable_extensions; do
38165   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38166     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
38167     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38168     break 2
38169   fi
38170 done
38171 done
38172
38173 fi
38174 fi
38175 RANLIB=$ac_cv_prog_RANLIB
38176 if test -n "$RANLIB"; then
38177   echo "$as_me:$LINENO: result: $RANLIB" >&5
38178 echo "${ECHO_T}$RANLIB" >&6
38179 else
38180   echo "$as_me:$LINENO: result: no" >&5
38181 echo "${ECHO_T}no" >&6
38182 fi
38183
38184 fi
38185 if test -z "$ac_cv_prog_RANLIB"; then
38186   ac_ct_RANLIB=$RANLIB
38187   # Extract the first word of "ranlib", so it can be a program name with args.
38188 set dummy ranlib; ac_word=$2
38189 echo "$as_me:$LINENO: checking for $ac_word" >&5
38190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38191 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
38192   echo $ECHO_N "(cached) $ECHO_C" >&6
38193 else
38194   if test -n "$ac_ct_RANLIB"; then
38195   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
38196 else
38197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38198 for as_dir in $PATH
38199 do
38200   IFS=$as_save_IFS
38201   test -z "$as_dir" && as_dir=.
38202   for ac_exec_ext in '' $ac_executable_extensions; do
38203   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38204     ac_cv_prog_ac_ct_RANLIB="ranlib"
38205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38206     break 2
38207   fi
38208 done
38209 done
38210
38211   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
38212 fi
38213 fi
38214 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
38215 if test -n "$ac_ct_RANLIB"; then
38216   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
38217 echo "${ECHO_T}$ac_ct_RANLIB" >&6
38218 else
38219   echo "$as_me:$LINENO: result: no" >&5
38220 echo "${ECHO_T}no" >&6
38221 fi
38222
38223   RANLIB=$ac_ct_RANLIB
38224 else
38225   RANLIB="$ac_cv_prog_RANLIB"
38226 fi
38227
38228     # Find a good install program.  We prefer a C program (faster),
38229 # so one script is as good as another.  But avoid the broken or
38230 # incompatible versions:
38231 # SysV /etc/install, /usr/sbin/install
38232 # SunOS /usr/etc/install
38233 # IRIX /sbin/install
38234 # AIX /bin/install
38235 # AmigaOS /C/install, which installs bootblocks on floppy discs
38236 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
38237 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
38238 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
38239 # OS/2's system install, which has a completely different semantic
38240 # ./install, which can be erroneously created by make from ./install.sh.
38241 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
38242 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
38243 if test -z "$INSTALL"; then
38244 if test "${ac_cv_path_install+set}" = set; then
38245   echo $ECHO_N "(cached) $ECHO_C" >&6
38246 else
38247   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38248 for as_dir in $PATH
38249 do
38250   IFS=$as_save_IFS
38251   test -z "$as_dir" && as_dir=.
38252   # Account for people who put trailing slashes in PATH elements.
38253 case $as_dir/ in
38254   ./ | .// | /cC/* | \
38255   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
38256   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
38257   /usr/ucb/* ) ;;
38258   *)
38259     # OSF1 and SCO ODT 3.0 have their own names for install.
38260     # Don't use installbsd from OSF since it installs stuff as root
38261     # by default.
38262     for ac_prog in ginstall scoinst install; do
38263       for ac_exec_ext in '' $ac_executable_extensions; do
38264         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
38265           if test $ac_prog = install &&
38266             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
38267             # AIX install.  It has an incompatible calling convention.
38268             :
38269           elif test $ac_prog = install &&
38270             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
38271             # program-specific install script used by HP pwplus--don't use.
38272             :
38273           else
38274             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
38275             break 3
38276           fi
38277         fi
38278       done
38279     done
38280     ;;
38281 esac
38282 done
38283
38284
38285 fi
38286   if test "${ac_cv_path_install+set}" = set; then
38287     INSTALL=$ac_cv_path_install
38288   else
38289     # As a last resort, use the slow shell script.  We don't cache a
38290     # path for INSTALL within a source directory, because that will
38291     # break other packages using the cache if that directory is
38292     # removed, or if the path is relative.
38293     INSTALL=$ac_install_sh
38294   fi
38295 fi
38296 echo "$as_me:$LINENO: result: $INSTALL" >&5
38297 echo "${ECHO_T}$INSTALL" >&6
38298
38299 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
38300 # It thinks the first close brace ends the variable substitution.
38301 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
38302
38303 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
38304
38305 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
38306
38307     echo "$as_me:$LINENO: checking whether ln -s works" >&5
38308 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
38309 LN_S=$as_ln_s
38310 if test "$LN_S" = "ln -s"; then
38311   echo "$as_me:$LINENO: result: yes" >&5
38312 echo "${ECHO_T}yes" >&6
38313 else
38314   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
38315 echo "${ECHO_T}no, using $LN_S" >&6
38316 fi
38317
38318
38319     echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
38320 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
38321 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
38322 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
38323   echo $ECHO_N "(cached) $ECHO_C" >&6
38324 else
38325   cat >conftest.make <<\_ACEOF
38326 all:
38327         @echo 'ac_maketemp="$(MAKE)"'
38328 _ACEOF
38329 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
38330 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
38331 if test -n "$ac_maketemp"; then
38332   eval ac_cv_prog_make_${ac_make}_set=yes
38333 else
38334   eval ac_cv_prog_make_${ac_make}_set=no
38335 fi
38336 rm -f conftest.make
38337 fi
38338 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
38339   echo "$as_me:$LINENO: result: yes" >&5
38340 echo "${ECHO_T}yes" >&6
38341   SET_MAKE=
38342 else
38343   echo "$as_me:$LINENO: result: no" >&5
38344 echo "${ECHO_T}no" >&6
38345   SET_MAKE="MAKE=${MAKE-make}"
38346 fi
38347
38348
38349
38350     if test -n "$ac_tool_prefix"; then
38351   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
38352 set dummy ${ac_tool_prefix}ar; ac_word=$2
38353 echo "$as_me:$LINENO: checking for $ac_word" >&5
38354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38355 if test "${ac_cv_prog_AR+set}" = set; then
38356   echo $ECHO_N "(cached) $ECHO_C" >&6
38357 else
38358   if test -n "$AR"; then
38359   ac_cv_prog_AR="$AR" # Let the user override the test.
38360 else
38361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38362 for as_dir in $PATH
38363 do
38364   IFS=$as_save_IFS
38365   test -z "$as_dir" && as_dir=.
38366   for ac_exec_ext in '' $ac_executable_extensions; do
38367   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38368     ac_cv_prog_AR="${ac_tool_prefix}ar"
38369     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38370     break 2
38371   fi
38372 done
38373 done
38374
38375 fi
38376 fi
38377 AR=$ac_cv_prog_AR
38378 if test -n "$AR"; then
38379   echo "$as_me:$LINENO: result: $AR" >&5
38380 echo "${ECHO_T}$AR" >&6
38381 else
38382   echo "$as_me:$LINENO: result: no" >&5
38383 echo "${ECHO_T}no" >&6
38384 fi
38385
38386 fi
38387 if test -z "$ac_cv_prog_AR"; then
38388   ac_ct_AR=$AR
38389   # Extract the first word of "ar", so it can be a program name with args.
38390 set dummy ar; ac_word=$2
38391 echo "$as_me:$LINENO: checking for $ac_word" >&5
38392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38393 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
38394   echo $ECHO_N "(cached) $ECHO_C" >&6
38395 else
38396   if test -n "$ac_ct_AR"; then
38397   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
38398 else
38399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38400 for as_dir in $PATH
38401 do
38402   IFS=$as_save_IFS
38403   test -z "$as_dir" && as_dir=.
38404   for ac_exec_ext in '' $ac_executable_extensions; do
38405   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38406     ac_cv_prog_ac_ct_AR="ar"
38407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38408     break 2
38409   fi
38410 done
38411 done
38412
38413   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
38414 fi
38415 fi
38416 ac_ct_AR=$ac_cv_prog_ac_ct_AR
38417 if test -n "$ac_ct_AR"; then
38418   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
38419 echo "${ECHO_T}$ac_ct_AR" >&6
38420 else
38421   echo "$as_me:$LINENO: result: no" >&5
38422 echo "${ECHO_T}no" >&6
38423 fi
38424
38425   AR=$ac_ct_AR
38426 else
38427   AR="$ac_cv_prog_AR"
38428 fi
38429
38430     if test -n "$ac_tool_prefix"; then
38431   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
38432 set dummy ${ac_tool_prefix}strip; ac_word=$2
38433 echo "$as_me:$LINENO: checking for $ac_word" >&5
38434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38435 if test "${ac_cv_prog_STRIP+set}" = set; then
38436   echo $ECHO_N "(cached) $ECHO_C" >&6
38437 else
38438   if test -n "$STRIP"; then
38439   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
38440 else
38441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38442 for as_dir in $PATH
38443 do
38444   IFS=$as_save_IFS
38445   test -z "$as_dir" && as_dir=.
38446   for ac_exec_ext in '' $ac_executable_extensions; do
38447   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38448     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
38449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38450     break 2
38451   fi
38452 done
38453 done
38454
38455 fi
38456 fi
38457 STRIP=$ac_cv_prog_STRIP
38458 if test -n "$STRIP"; then
38459   echo "$as_me:$LINENO: result: $STRIP" >&5
38460 echo "${ECHO_T}$STRIP" >&6
38461 else
38462   echo "$as_me:$LINENO: result: no" >&5
38463 echo "${ECHO_T}no" >&6
38464 fi
38465
38466 fi
38467 if test -z "$ac_cv_prog_STRIP"; then
38468   ac_ct_STRIP=$STRIP
38469   # Extract the first word of "strip", so it can be a program name with args.
38470 set dummy strip; ac_word=$2
38471 echo "$as_me:$LINENO: checking for $ac_word" >&5
38472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38473 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
38474   echo $ECHO_N "(cached) $ECHO_C" >&6
38475 else
38476   if test -n "$ac_ct_STRIP"; then
38477   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38478 else
38479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38480 for as_dir in $PATH
38481 do
38482   IFS=$as_save_IFS
38483   test -z "$as_dir" && as_dir=.
38484   for ac_exec_ext in '' $ac_executable_extensions; do
38485   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38486     ac_cv_prog_ac_ct_STRIP="strip"
38487     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38488     break 2
38489   fi
38490 done
38491 done
38492
38493   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
38494 fi
38495 fi
38496 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
38497 if test -n "$ac_ct_STRIP"; then
38498   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
38499 echo "${ECHO_T}$ac_ct_STRIP" >&6
38500 else
38501   echo "$as_me:$LINENO: result: no" >&5
38502 echo "${ECHO_T}no" >&6
38503 fi
38504
38505   STRIP=$ac_ct_STRIP
38506 else
38507   STRIP="$ac_cv_prog_STRIP"
38508 fi
38509
38510     if test -n "$ac_tool_prefix"; then
38511   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
38512 set dummy ${ac_tool_prefix}nm; ac_word=$2
38513 echo "$as_me:$LINENO: checking for $ac_word" >&5
38514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38515 if test "${ac_cv_prog_NM+set}" = set; then
38516   echo $ECHO_N "(cached) $ECHO_C" >&6
38517 else
38518   if test -n "$NM"; then
38519   ac_cv_prog_NM="$NM" # Let the user override the test.
38520 else
38521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38522 for as_dir in $PATH
38523 do
38524   IFS=$as_save_IFS
38525   test -z "$as_dir" && as_dir=.
38526   for ac_exec_ext in '' $ac_executable_extensions; do
38527   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38528     ac_cv_prog_NM="${ac_tool_prefix}nm"
38529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38530     break 2
38531   fi
38532 done
38533 done
38534
38535 fi
38536 fi
38537 NM=$ac_cv_prog_NM
38538 if test -n "$NM"; then
38539   echo "$as_me:$LINENO: result: $NM" >&5
38540 echo "${ECHO_T}$NM" >&6
38541 else
38542   echo "$as_me:$LINENO: result: no" >&5
38543 echo "${ECHO_T}no" >&6
38544 fi
38545
38546 fi
38547 if test -z "$ac_cv_prog_NM"; then
38548   ac_ct_NM=$NM
38549   # Extract the first word of "nm", so it can be a program name with args.
38550 set dummy nm; ac_word=$2
38551 echo "$as_me:$LINENO: checking for $ac_word" >&5
38552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38553 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
38554   echo $ECHO_N "(cached) $ECHO_C" >&6
38555 else
38556   if test -n "$ac_ct_NM"; then
38557   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38558 else
38559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38560 for as_dir in $PATH
38561 do
38562   IFS=$as_save_IFS
38563   test -z "$as_dir" && as_dir=.
38564   for ac_exec_ext in '' $ac_executable_extensions; do
38565   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38566     ac_cv_prog_ac_ct_NM="nm"
38567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38568     break 2
38569   fi
38570 done
38571 done
38572
38573   test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
38574 fi
38575 fi
38576 ac_ct_NM=$ac_cv_prog_ac_ct_NM
38577 if test -n "$ac_ct_NM"; then
38578   echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
38579 echo "${ECHO_T}$ac_ct_NM" >&6
38580 else
38581   echo "$as_me:$LINENO: result: no" >&5
38582 echo "${ECHO_T}no" >&6
38583 fi
38584
38585   NM=$ac_ct_NM
38586 else
38587   NM="$ac_cv_prog_NM"
38588 fi
38589
38590
38591     case ${BAKEFILE_HOST} in
38592         *-hp-hpux* )
38593             INSTALL_DIR="mkdir"
38594             ;;
38595         *)  INSTALL_DIR="$INSTALL -d"
38596             ;;
38597     esac
38598
38599
38600     LDFLAGS_GUI=
38601     case ${BAKEFILE_HOST} in
38602         *-*-cygwin* | *-*-mingw32* )
38603         LDFLAGS_GUI="-mwindows"
38604     esac
38605
38606
38607     fi
38608
38609         echo "$as_me:$LINENO: checking if make is GNU make" >&5
38610 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
38611 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
38612   echo $ECHO_N "(cached) $ECHO_C" >&6
38613 else
38614
38615         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
38616                 egrep -s GNU > /dev/null); then
38617             bakefile_cv_prog_makeisgnu="yes"
38618         else
38619             bakefile_cv_prog_makeisgnu="no"
38620         fi
38621
38622 fi
38623 echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
38624 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
38625
38626     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
38627         IF_GNU_MAKE=""
38628     else
38629         IF_GNU_MAKE="#"
38630     fi
38631
38632
38633
38634     PLATFORM_UNIX=0
38635     PLATFORM_WIN32=0
38636     PLATFORM_MSDOS=0
38637     PLATFORM_MAC=0
38638     PLATFORM_MACOSX=0
38639     PLATFORM_OS2=0
38640
38641     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
38642         case "${BAKEFILE_HOST}" in
38643             *-*-cygwin* | *-*-mingw32* )
38644                 PLATFORM_WIN32=1
38645             ;;
38646             *-pc-msdosdjgpp )
38647                 PLATFORM_MSDOS=1
38648             ;;
38649             *-pc-os2_emx | *-pc-os2-emx )
38650                 PLATFORM_OS2=1
38651             ;;
38652             powerpc-*-darwin* )
38653                 PLATFORM_MAC=1
38654                 PLATFORM_MACOSX=1
38655             ;;
38656             * )
38657                 PLATFORM_UNIX=1
38658             ;;
38659         esac
38660     else
38661         case "$BAKEFILE_FORCE_PLATFORM" in
38662             win32 )
38663                 PLATFORM_WIN32=1
38664             ;;
38665             msdos )
38666                 PLATFORM_MSDOS=1
38667             ;;
38668             os2 )
38669                 PLATFORM_OS2=1
38670             ;;
38671             darwin )
38672                 PLATFORM_MAC=1
38673                 PLATFORM_MACOSX=1
38674             ;;
38675             unix )
38676                 PLATFORM_UNIX=1
38677             ;;
38678             * )
38679                 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
38680 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
38681    { (exit 1); exit 1; }; }
38682             ;;
38683         esac
38684     fi
38685
38686
38687
38688
38689
38690
38691
38692
38693
38694     # Check whether --enable-omf or --disable-omf was given.
38695 if test "${enable_omf+set}" = set; then
38696   enableval="$enable_omf"
38697   bk_os2_use_omf="$enableval"
38698 fi;
38699
38700     case "${BAKEFILE_HOST}" in
38701       *-*-darwin* )
38702                         CFLAGS="$CFLAGS -fno-common"
38703         CXXFLAGS="$CXXFLAGS -fno-common"
38704         ;;
38705
38706       *-pc-os2_emx | *-pc-os2-emx )
38707         if test "x$bk_os2_use_omf" = "xyes" ; then
38708             AR=emxomfar
38709             RANLIB=:
38710             LDFLAGS="-Zomf $LDFLAGS"
38711             CFLAGS="-Zomf $CFLAGS"
38712             CXXFLAGS="-Zomf $CXXFLAGS"
38713             OS2_LIBEXT="lib"
38714         else
38715             OS2_LIBEXT="a"
38716         fi
38717         ;;
38718     esac
38719
38720
38721     SO_SUFFIX="so"
38722     SO_SUFFIX_MODULE="so"
38723     EXEEXT=""
38724     LIBPREFIX="lib"
38725     LIBEXT=".a"
38726     DLLPREFIX="lib"
38727     DLLPREFIX_MODULE=""
38728     DLLIMP_SUFFIX=""
38729
38730     case "${BAKEFILE_HOST}" in
38731         *-hp-hpux* )
38732             SO_SUFFIX="sl"
38733             SO_SUFFIX_MODULE="sl"
38734         ;;
38735         *-*-aix* )
38736                                                                         SO_SUFFIX="a"
38737             SO_SUFFIX_MODULE="a"
38738         ;;
38739         *-*-cygwin* | *-*-mingw32* )
38740             SO_SUFFIX="dll"
38741             SO_SUFFIX_MODULE="dll"
38742             DLLIMP_SUFFIX="dll.a"
38743             EXEEXT=".exe"
38744             DLLPREFIX=""
38745         ;;
38746         *-pc-msdosdjgpp )
38747             EXEEXT=".exe"
38748             DLLPREFIX=""
38749         ;;
38750         *-pc-os2_emx | *-pc-os2-emx )
38751             SO_SUFFIX="dll"
38752             SO_SUFFIX_MODULE="dll"
38753             DLLIMP_SUFFIX=$OS2_LIBEXT
38754             EXEEXT=".exe"
38755             DLLPREFIX=""
38756             LIBPREFIX=""
38757             LIBEXT=".$OS2_LIBEXT"
38758         ;;
38759         powerpc-*-darwin* )
38760             SO_SUFFIX="dylib"
38761             SO_SUFFIX_MODULE="bundle"
38762         ;;
38763     esac
38764
38765     if test "x$DLLIMP_SUFFIX" = "x" ; then
38766         DLLIMP_SUFFIX="$SO_SUFFIX"
38767     fi
38768
38769
38770
38771
38772
38773
38774
38775
38776
38777
38778
38779         SHARED_LD_CC="\$(CC) -shared -o"
38780     SHARED_LD_CXX="\$(CXX) -shared -o"
38781
38782         if test "x$GCC" = "xyes"; then
38783                 PIC_FLAG="-fPIC"
38784     fi
38785
38786     case "${BAKEFILE_HOST}" in
38787       *-hp-hpux* )
38788                 if test "x$GCC" = "xyes"; then
38789                         SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
38790             SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
38791         else
38792                         LDFLAGS="$LDFLAGS -L/usr/lib"
38793
38794             SHARED_LD_CC="${CC} -b -o"
38795             SHARED_LD_CXX="${CXX} -b -o"
38796             PIC_FLAG="+Z"
38797         fi
38798       ;;
38799
38800       *-*-linux* )
38801         if test "x$GCC" != "xyes"; then
38802             echo "$as_me:$LINENO: checking for Intel compiler" >&5
38803 echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
38804 if test "${bakefile_cv_prog_icc+set}" = set; then
38805   echo $ECHO_N "(cached) $ECHO_C" >&6
38806 else
38807
38808                 cat >conftest.$ac_ext <<_ACEOF
38809 /* confdefs.h.  */
38810 _ACEOF
38811 cat confdefs.h >>conftest.$ac_ext
38812 cat >>conftest.$ac_ext <<_ACEOF
38813 /* end confdefs.h.  */
38814
38815 int
38816 main ()
38817 {
38818
38819                         #ifndef __INTEL_COMPILER
38820                         #error Not icc
38821                         #endif
38822
38823   ;
38824   return 0;
38825 }
38826 _ACEOF
38827 rm -f conftest.$ac_objext
38828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38829   (eval $ac_compile) 2>conftest.er1
38830   ac_status=$?
38831   grep -v '^ *+' conftest.er1 >conftest.err
38832   rm -f conftest.er1
38833   cat conftest.err >&5
38834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38835   (exit $ac_status); } &&
38836          { ac_try='test -z "$ac_c_werror_flag"
38837                          || test ! -s conftest.err'
38838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38839   (eval $ac_try) 2>&5
38840   ac_status=$?
38841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38842   (exit $ac_status); }; } &&
38843          { ac_try='test -s conftest.$ac_objext'
38844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38845   (eval $ac_try) 2>&5
38846   ac_status=$?
38847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38848   (exit $ac_status); }; }; then
38849   bakefile_cv_prog_icc=yes
38850 else
38851   echo "$as_me: failed program was:" >&5
38852 sed 's/^/| /' conftest.$ac_ext >&5
38853
38854 bakefile_cv_prog_icc=no
38855
38856 fi
38857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38858
38859 fi
38860 echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
38861 echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
38862             if test "$bakefile_cv_prog_icc" = "yes"; then
38863                 PIC_FLAG="-KPIC"
38864             fi
38865         fi
38866       ;;
38867
38868       *-*-solaris2* )
38869         if test "x$GCC" != xyes ; then
38870             SHARED_LD_CC="${CC} -G -o"
38871             SHARED_LD_CXX="${CXX} -G -o"
38872             PIC_FLAG="-KPIC"
38873         fi
38874       ;;
38875
38876       *-*-darwin* )
38877
38878                                 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
38879 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
38880 if test "${wx_cv_gcc31+set}" = set; then
38881   echo $ECHO_N "(cached) $ECHO_C" >&6
38882 else
38883
38884            cat >conftest.$ac_ext <<_ACEOF
38885 /* confdefs.h.  */
38886 _ACEOF
38887 cat confdefs.h >>conftest.$ac_ext
38888 cat >>conftest.$ac_ext <<_ACEOF
38889 /* end confdefs.h.  */
38890
38891 int
38892 main ()
38893 {
38894
38895                    #if (__GNUC__ < 3) || \
38896                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
38897                        #error old gcc
38898                    #endif
38899
38900   ;
38901   return 0;
38902 }
38903 _ACEOF
38904 rm -f conftest.$ac_objext
38905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38906   (eval $ac_compile) 2>conftest.er1
38907   ac_status=$?
38908   grep -v '^ *+' conftest.er1 >conftest.err
38909   rm -f conftest.er1
38910   cat conftest.err >&5
38911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38912   (exit $ac_status); } &&
38913          { ac_try='test -z "$ac_c_werror_flag"
38914                          || test ! -s conftest.err'
38915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38916   (eval $ac_try) 2>&5
38917   ac_status=$?
38918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38919   (exit $ac_status); }; } &&
38920          { ac_try='test -s conftest.$ac_objext'
38921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38922   (eval $ac_try) 2>&5
38923   ac_status=$?
38924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38925   (exit $ac_status); }; }; then
38926
38927                    wx_cv_gcc31=yes
38928
38929 else
38930   echo "$as_me: failed program was:" >&5
38931 sed 's/^/| /' conftest.$ac_ext >&5
38932
38933
38934                    wx_cv_gcc31=no
38935
38936
38937 fi
38938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38939
38940 fi
38941 echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
38942 echo "${ECHO_T}$wx_cv_gcc31" >&6
38943         if test "$wx_cv_gcc31" = "no"; then
38944
38945 D='$'
38946 cat <<EOF >shared-ld-sh
38947 #!/bin/sh
38948 #-----------------------------------------------------------------------------
38949 #-- Name:        distrib/mac/shared-ld-sh
38950 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
38951 #-- Author:      Gilles Depeyrot
38952 #-- Copyright:   (c) 2002 Gilles Depeyrot
38953 #-- Licence:     any use permitted
38954 #-----------------------------------------------------------------------------
38955
38956 verbose=0
38957 args=""
38958 objects=""
38959 linking_flag="-dynamiclib"
38960
38961 while test ${D}# -gt 0; do
38962     case ${D}1 in
38963
38964        -v)
38965         verbose=1
38966         ;;
38967
38968        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
38969         # collect these options and values
38970         args="${D}{args} ${D}1 ${D}2"
38971         shift
38972         ;;
38973
38974        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
38975         # collect these options
38976         args="${D}{args} ${D}1"
38977         ;;
38978
38979        -dynamiclib|-bundle)
38980         linking_flag="${D}1"
38981         ;;
38982
38983        -*)
38984         echo "shared-ld: unhandled option '${D}1'"
38985         exit 1
38986         ;;
38987
38988         *.o | *.a | *.dylib)
38989         # collect object files
38990         objects="${D}{objects} ${D}1"
38991         ;;
38992
38993         *)
38994         echo "shared-ld: unhandled argument '${D}1'"
38995         exit 1
38996         ;;
38997
38998     esac
38999     shift
39000 done
39001
39002 #
39003 # Link one module containing all the others
39004 #
39005 if test ${D}{verbose} = 1; then
39006     echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
39007 fi
39008 c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
39009 status=${D}?
39010 if test ${D}{status} != 0; then
39011     exit ${D}{status}
39012 fi
39013
39014 #
39015 # Link the shared library from the single module created
39016 #
39017 if test ${D}{verbose} = 1; then
39018     echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
39019 fi
39020 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
39021 status=${D}?
39022 if test ${D}{status} != 0; then
39023     exit ${D}{status}
39024 fi
39025
39026 #
39027 # Remove intermediate module
39028 #
39029 rm -f master.${D}${D}.o
39030
39031 exit 0
39032 EOF
39033
39034             chmod +x shared-ld-sh
39035
39036                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
39037             SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
39038             SHARED_LD_CXX="$SHARED_LD_CC"
39039             SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
39040         else
39041                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
39042             SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
39043             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
39044             SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
39045         fi
39046
39047         PIC_FLAG="-dynamic -fPIC"
39048       ;;
39049
39050       *-*-aix* )
39051                 if test "x$GCC" != "xyes"; then
39052                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
39053 set dummy makeC++SharedLib; ac_word=$2
39054 echo "$as_me:$LINENO: checking for $ac_word" >&5
39055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39056 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
39057   echo $ECHO_N "(cached) $ECHO_C" >&6
39058 else
39059   if test -n "$AIX_CXX_LD"; then
39060   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
39061 else
39062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39063 for as_dir in $PATH
39064 do
39065   IFS=$as_save_IFS
39066   test -z "$as_dir" && as_dir=.
39067   for ac_exec_ext in '' $ac_executable_extensions; do
39068   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39069     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
39070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39071     break 2
39072   fi
39073 done
39074 done
39075
39076   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
39077 fi
39078 fi
39079 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
39080 if test -n "$AIX_CXX_LD"; then
39081   echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
39082 echo "${ECHO_T}$AIX_CXX_LD" >&6
39083 else
39084   echo "$as_me:$LINENO: result: no" >&5
39085 echo "${ECHO_T}no" >&6
39086 fi
39087
39088                         SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
39089             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
39090         fi
39091       ;;
39092
39093       *-*-beos* )
39094                         SHARED_LD_CC="${LD} -shared -o"
39095         SHARED_LD_CXX="${LD} -shared -o"
39096       ;;
39097
39098       *-*-irix* )
39099                 if test "x$GCC" != "xyes"; then
39100             PIC_FLAG="-KPIC"
39101         fi
39102       ;;
39103
39104       *-*-cygwin* | *-*-mingw32* )
39105         PIC_FLAG=""
39106       ;;
39107
39108       *-pc-os2_emx | *-pc-os2-emx )
39109         SHARED_LD_CC="`pwd`/dllar.sh -o"
39110         SHARED_LD_CXX="`pwd`/dllar.sh -o"
39111         PIC_FLAG=""
39112
39113 D='$'
39114 cat <<EOF >dllar.sh
39115 #!/bin/sh
39116 #
39117 # dllar - a tool to build both a .dll and an .a file
39118 # from a set of object (.o) files for EMX/OS2.
39119 #
39120 #  Written by Andrew Zabolotny, bit@freya.etu.ru
39121 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
39122 #
39123 #  This script will accept a set of files on the command line.
39124 #  All the public symbols from the .o files will be exported into
39125 #  a .DEF file, then linker will be run (through gcc) against them to
39126 #  build a shared library consisting of all given .o files. All libraries
39127 #  (.a) will be first decompressed into component .o files then act as
39128 #  described above. You can optionally give a description (-d "description")
39129 #  which will be put into .DLL. To see the list of accepted options (as well
39130 #  as command-line format) simply run this program without options. The .DLL
39131 #  is built to be imported by name (there is no guarantee that new versions
39132 #  of the library you build will have same ordinals for same symbols).
39133 #
39134 #  dllar is free software; you can redistribute it and/or modify
39135 #  it under the terms of the GNU General Public License as published by
39136 #  the Free Software Foundation; either version 2, or (at your option)
39137 #  any later version.
39138 #
39139 #  dllar is distributed in the hope that it will be useful,
39140 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
39141 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
39142 #  GNU General Public License for more details.
39143 #
39144 #  You should have received a copy of the GNU General Public License
39145 #  along with dllar; see the file COPYING.  If not, write to the Free
39146 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
39147 #  02111-1307, USA.
39148
39149 # To successfuly run this program you will need:
39150 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
39151 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
39152 #  - gcc
39153 #    (used to build the .dll)
39154 #  - emxexp
39155 #    (used to create .def file from .o files)
39156 #  - emximp
39157 #    (used to create .a file from .def file)
39158 #  - GNU text utilites (cat, sort, uniq)
39159 #    used to process emxexp output
39160 #  - GNU file utilities (mv, rm)
39161 #  - GNU sed
39162 #  - lxlite (optional, see flag below)
39163 #    (used for general .dll cleanup)
39164 #
39165
39166 flag_USE_LXLITE=1;
39167
39168 #
39169 # helper functions
39170 # basnam, variant of basename, which does _not_ remove the path, _iff_
39171 #                              second argument (suffix to remove) is given
39172 basnam(){
39173     case ${D}# in
39174     1)
39175         echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//'
39176         ;;
39177     2)
39178         echo ${D}1 | sed 's/'${D}2'${D}//'
39179         ;;
39180     *)
39181         echo "error in basnam ${D}*"
39182         exit 8
39183         ;;
39184     esac
39185 }
39186
39187 # Cleanup temporary files and output
39188 CleanUp() {
39189     cd ${D}curDir
39190     for i in ${D}inputFiles ; do
39191         case ${D}i in
39192         *!)
39193             rm -rf \`basnam ${D}i !\`
39194             ;;
39195         *)
39196             ;;
39197         esac
39198     done
39199
39200     # Kill result in case of failure as there is just to many stupid make/nmake
39201     # things out there which doesn't do this.
39202     if  ${D}# -eq 0 ; then
39203         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
39204     fi
39205 }
39206
39207 # Print usage and exit script with rc=1.
39208 PrintHelp() {
39209  echo 'Usage: dllar -o[utput] output_file -i[mport] importlib_name'
39210  echo '       -d[escription] "dll descrption" -cc "CC" -f[lags] "CFLAGS"'
39211  echo '       -ord[inals] -exclude "symbol(s)"'
39212  echo '       -libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}" -nocrt[dll] -nolxl[ite]'
39213  echo '       *.o *.a'
39214  echo '*> "output_file" should have no extension.'
39215  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
39216  echo '   The import library name is derived from this and is set to "name".a,'
39217  echo '   unless overridden by -import'
39218  echo '*> "importlib_name" should have no extension.'
39219  echo '   If it has the .o, or .a extension, it is automatically removed.'
39220  echo '   This name is used as the import library name and may be longer and'
39221  echo '   more descriptive than the DLL name which has to follow the old '
39222  echo '   8.3 convention of FAT.'
39223  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
39224  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
39225  echo '   These flags will be put at the start of GCC command line.'
39226  echo '*> -ordinals tells dllar to export entries by ordinals. Be careful.'
39227  echo '*> -exclude defines symbols which will not be exported. You can define'
39228  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
39229  echo '   If the last character of a symbol is "*", all symbols beginning'
39230  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
39231  echo '*> -libflags can be used to add INITGLOBAL/INITINSTANCE and/or'
39232  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
39233  echo '*> -nocrtdll switch will disable linking the library against emx''s'
39234  echo '   C runtime DLLs.'
39235  echo '*> -nolxlite switch will disable running lxlite on the resulting DLL.'
39236  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
39237  echo '   unchanged to GCC at the end of command line.'
39238  echo '*> If you create a DLL from a library and you do not specify -o,'
39239  echo '   the basename for DLL and import library will be set to library name,'
39240  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
39241  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
39242  echo '   library will be renamed into gcc_s.a.'
39243  echo '--------'
39244  echo 'Example:'
39245  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
39246  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
39247  CleanUp
39248  exit 1
39249 }
39250
39251 # Execute a command.
39252 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
39253 # @Uses    Whatever CleanUp() uses.
39254 doCommand() {
39255     echo "${D}*"
39256     eval ${D}*
39257     rcCmd=${D}?
39258
39259     if  ${D}rcCmd -ne 0 ; then
39260         echo "command failed, exit code="${D}rcCmd
39261         CleanUp
39262         exit ${D}rcCmd
39263     fi
39264 }
39265
39266 # main routine
39267 # setup globals
39268 cmdLine=${D}*
39269 outFile=""
39270 outimpFile=""
39271 inputFiles=""
39272 description=""
39273 CC=gcc.exe
39274 CFLAGS="-s -Zcrtdll"
39275 EXTRA_CFLAGS=""
39276 EXPORT_BY_ORDINALS=0
39277 exclude_symbols=""
39278 library_flags=""
39279 curDir=\`pwd\`
39280 curDirS=curDir
39281 case ${D}curDirS in
39282 */)
39283   ;;
39284 *)
39285   curDirS=${D}{curDirS}"/"
39286   ;;
39287 esac
39288 # Parse commandline
39289 libsToLink=0
39290 while  ${D}1 ; do
39291     case ${D}1 in
39292     -ord*)
39293         EXPORT_BY_ORDINALS=1;
39294         ;;
39295     -o*)
39296         shift
39297         outFile=${D}1
39298         ;;
39299     -i*)
39300         shift
39301         outimpFile=${D}1
39302         ;;
39303     -d*)
39304         shift
39305         description=${D}1
39306         ;;
39307     -f*)
39308         shift
39309         CFLAGS=${D}1
39310         ;;
39311     -c*)
39312         shift
39313         CC=${D}1
39314         ;;
39315     -h*)
39316         PrintHelp
39317         ;;
39318     -ex*)
39319         shift
39320         exclude_symbols=${D}{exclude_symbols}${D}1" "
39321         ;;
39322     -libf*)
39323         shift
39324         library_flags=${D}{library_flags}${D}1" "
39325         ;;
39326     -nocrt*)
39327         CFLAGS="-s"
39328         ;;
39329     -nolxl*)
39330         flag_USE_LXLITE=0
39331         ;;
39332     -* | /*)
39333         case ${D}1 in
39334         -L* | -l*)
39335             libsToLink=1
39336             ;;
39337         *)
39338             ;;
39339         esac
39340         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39341         ;;
39342     *)
39343         found=0;
39344         if  ${D}libsToLink -ne 0 ; then
39345             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39346         else
39347             for file in ${D}1 ; do
39348                 if  -f ${D}file ; then
39349                     inputFiles="${D}{inputFiles} ${D}file"
39350                     found=1
39351                 fi
39352             done
39353             if  ${D}found -eq 0 ; then
39354                 echo "ERROR: No file(s) found: "${D}1
39355                 exit 8
39356             fi
39357         fi
39358       ;;
39359     esac
39360     shift
39361 done # iterate cmdline words
39362
39363 #
39364 if  -z "${D}inputFiles" ; then
39365     echo "dllar: no input files"
39366     PrintHelp
39367 fi
39368
39369 # Now extract all .o files from .a files
39370 newInputFiles=""
39371 for file in ${D}inputFiles ; do
39372     case ${D}file in
39373     *.a | *.lib)
39374         case ${D}file in
39375         *.a)
39376             suffix=".a"
39377             AR="ar"
39378             ;;
39379         *.lib)
39380             suffix=".lib"
39381             AR="emxomfar"
39382             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
39383             ;;
39384         *)
39385             ;;
39386         esac
39387         dirname=\`basnam ${D}file ${D}suffix\`"_%"
39388         mkdir ${D}dirname
39389         if  ${D}? -ne 0 ; then
39390             echo "Failed to create subdirectory ./${D}dirname"
39391             CleanUp
39392             exit 8;
39393         fi
39394         # Append '!' to indicate archive
39395         newInputFiles="${D}newInputFiles ${D}{dirname}!"
39396         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
39397         cd ${D}curDir
39398         found=0;
39399         for subfile in ${D}dirname/*.o* ; do
39400             if  -f ${D}subfile ; then
39401                 found=1
39402                 if  -s ${D}subfile ; then
39403                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
39404                     newInputFiles="${D}newInputFiles ${D}subfile"
39405                 fi
39406             fi
39407         done
39408         if  ${D}found -eq 0 ; then
39409             echo "WARNING: there are no files in archive \'${D}file\'"
39410         fi
39411         ;;
39412     *)
39413         newInputFiles="${D}{newInputFiles} ${D}file"
39414         ;;
39415     esac
39416 done
39417 inputFiles="${D}newInputFiles"
39418
39419 # Output filename(s).
39420 do_backup=0;
39421 if  -z ${D}outFile ; then
39422     do_backup=1;
39423     set outFile ${D}inputFiles; outFile=${D}2
39424 fi
39425
39426 # If it is an archive, remove the '!' and the '_%' suffixes
39427 case ${D}outFile in
39428 *_%!)
39429     outFile=\`basnam ${D}outFile _%!\`
39430     ;;
39431 *)
39432     ;;
39433 esac
39434 case ${D}outFile in
39435 *.dll)
39436     outFile=\`basnam ${D}outFile .dll\`
39437     ;;
39438 *.DLL)
39439     outFile=\`basnam ${D}outFile .DLL\`
39440     ;;
39441 *.o)
39442     outFile=\`basnam ${D}outFile .o\`
39443     ;;
39444 *.obj)
39445     outFile=\`basnam ${D}outFile .obj\`
39446     ;;
39447 *.a)
39448     outFile=\`basnam ${D}outFile .a\`
39449     ;;
39450 *.lib)
39451     outFile=\`basnam ${D}outFile .lib\`
39452     ;;
39453 *)
39454     ;;
39455 esac
39456 case ${D}outimpFile in
39457 *.a)
39458     outimpFile=\`basnam ${D}outimpFile .a\`
39459     ;;
39460 *.lib)
39461     outimpFile=\`basnam ${D}outimpFile .lib\`
39462     ;;
39463 *)
39464     ;;
39465 esac
39466 if  -z ${D}outimpFile ; then
39467     outimpFile=${D}outFile
39468 fi
39469 defFile="${D}{outFile}.def"
39470 arcFile="${D}{outimpFile}.a"
39471 arcFile2="${D}{outimpFile}.lib"
39472 dllFile="${D}outFile"
39473 # Add suffix to dllFile later, first we need a version to use as
39474 # name in .def file.
39475
39476 if  ${D}do_backup -ne 0  ; then
39477     if  -f ${D}arcFile  ; then
39478         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
39479     fi
39480     if  -f ${D}arcFile2  ; then
39481         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
39482     fi
39483 fi
39484
39485 # Extract public symbols from all the object files.
39486 tmpdefFile=${D}{defFile}_%
39487 rm -f ${D}tmpdefFile
39488 for file in ${D}inputFiles ; do
39489     case ${D}file in
39490     *!)
39491         ;;
39492     *)
39493         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
39494         ;;
39495     esac
39496 done
39497
39498 # Create the def file.
39499 rm -f ${D}defFile
39500 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
39501 dllFile="${D}dllFile.dll"
39502 if  -n ${D}description ; then
39503     echo "DESCRIPTION  \"${D}{description}\"" >> ${D}defFile
39504 fi
39505 echo "EXPORTS" >> ${D}defFile
39506
39507 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
39508 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
39509
39510 # Checks if the export is ok or not.
39511 for word in ${D}exclude_symbols; do
39512     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
39513     mv ${D}{tmpdefFile}% ${D}tmpdefFile
39514 done
39515
39516
39517 if  ${D}EXPORT_BY_ORDINALS -ne 0 ; then
39518     sed "=" < ${D}tmpdefFile | \
39519     sed '
39520       N
39521       : loop
39522       s/^\(0-9\+\)\(^;*\)\(;.*\)\?/\2 @\1 NONAME/
39523       t loop
39524     ' > ${D}{tmpdefFile}%
39525     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
39526 else
39527     rm -f ${D}{tmpdefFile}%
39528 fi
39529 cat ${D}tmpdefFile >> ${D}defFile
39530 rm -f ${D}tmpdefFile
39531
39532 # Do linking, create implib, and apply lxlite.
39533 gccCmdl="";
39534 for file in ${D}inputFiles ; do
39535     case ${D}file in
39536     *!)
39537         ;;
39538     *)
39539         gccCmdl="${D}gccCmdl ${D}file"
39540         ;;
39541     esac
39542 done
39543 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
39544 touch "${D}{outFile}.dll"
39545
39546 doCommand "emximp -o ${D}arcFile ${D}defFile"
39547 if  ${D}flag_USE_LXLITE -ne 0 ; then
39548     add_flags="";
39549     if  ${D}EXPORT_BY_ORDINALS -ne 0 ; then
39550         add_flags="-ynd"
39551     fi
39552     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
39553 fi
39554 doCommand "emxomf -s -l ${D}arcFile"
39555
39556 # Successful exit.
39557 CleanUp 1
39558 exit 0
39559 EOF
39560
39561         chmod +x dllar.sh
39562       ;;
39563
39564       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
39565       *-*-sunos4* | \
39566       *-*-osf* | \
39567       *-*-dgux5* | \
39568       *-*-sysv5* )
39569               ;;
39570
39571       *)
39572         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
39573 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
39574    { (exit 1); exit 1; }; }
39575     esac
39576
39577     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
39578         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
39579     fi
39580     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
39581         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
39582     fi
39583
39584
39585
39586
39587
39588
39589
39590
39591     USE_SOVERSION=0
39592     USE_SOVERLINUX=0
39593     USE_SOVERSOLARIS=0
39594     USE_SOSYMLINKS=0
39595     USE_MACVERSION=0
39596     SONAME_FLAG=
39597
39598     case "${BAKEFILE_HOST}" in
39599       *-*-linux* )
39600         SONAME_FLAG="-Wl,-soname,"
39601         USE_SOVERSION=1
39602         USE_SOVERLINUX=1
39603         USE_SOSYMLINKS=1
39604       ;;
39605
39606       *-*-solaris2* )
39607         SONAME_FLAG="-h "
39608         USE_SOVERSION=1
39609         USE_SOVERSOLARIS=1
39610         USE_SOSYMLINKS=1
39611       ;;
39612
39613       *-*-darwin* )
39614         USE_MACVERSION=1
39615         USE_SOVERSION=1
39616         USE_SOSYMLINKS=1
39617       ;;
39618     esac
39619
39620
39621
39622
39623
39624
39625
39626
39627
39628     echo "$as_me:$LINENO: checking for dependency tracking method" >&5
39629 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
39630     DEPS_TRACKING=0
39631
39632     if test "x$GCC" = "xyes"; then
39633         DEPSMODE=gcc
39634         DEPS_TRACKING=1
39635         case "${BAKEFILE_HOST}" in
39636             powerpc-*-darwin* )
39637                                                 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
39638             ;;
39639             * )
39640                 DEPSFLAG_GCC="-MMD"
39641             ;;
39642         esac
39643         echo "$as_me:$LINENO: result: gcc" >&5
39644 echo "${ECHO_T}gcc" >&6
39645     else
39646         echo "$as_me:$LINENO: result: none" >&5
39647 echo "${ECHO_T}none" >&6
39648     fi
39649
39650     if test $DEPS_TRACKING = 1 ; then
39651
39652 D='$'
39653 cat <<EOF >bk-deps
39654 #!/bin/sh
39655
39656 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39657 # script. It is used to track C/C++ files dependencies in portable way.
39658 #
39659 # Permission is given to use this file in any way.
39660
39661 DEPSMODE=${DEPSMODE}
39662 DEPSDIR=.deps
39663 DEPSFLAG_GCC="${DEPSFLAG_GCC}"
39664
39665 mkdir -p ${D}DEPSDIR
39666
39667 if test ${D}DEPSMODE = gcc ; then
39668     ${D}* ${D}{DEPSFLAG_GCC}
39669     status=${D}?
39670     if test ${D}{status} != 0 ; then
39671         exit ${D}{status}
39672     fi
39673     # move created file to the location we want it in:
39674     while test ${D}# -gt 0; do
39675         case "${D}1" in
39676             -o )
39677                 shift
39678                 objfile=${D}1
39679             ;;
39680             -* )
39681             ;;
39682             * )
39683                 srcfile=${D}1
39684             ;;
39685         esac
39686         shift
39687     done
39688     depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\`
39689     depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\`
39690     if test -f ${D}depfile ; then
39691         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39692         rm -f ${D}depfile
39693     else
39694         depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\`
39695         if test -f ${D}depfile ; then
39696             sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39697             rm -f ${D}depfile
39698         fi
39699     fi
39700     exit 0
39701 else
39702     ${D}*
39703     exit ${D}?
39704 fi
39705 EOF
39706
39707         chmod +x bk-deps
39708     fi
39709
39710
39711
39712
39713     RESCOMP=
39714     SETFILE=
39715
39716     case ${BAKEFILE_HOST} in
39717         *-*-cygwin* | *-*-mingw32* )
39718                         if test "$build" != "$host" ; then
39719                 RESCOMP=$host_alias-windres
39720             else
39721                 # Extract the first word of "windres", so it can be a program name with args.
39722 set dummy windres; ac_word=$2
39723 echo "$as_me:$LINENO: checking for $ac_word" >&5
39724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39725 if test "${ac_cv_prog_RESCOMP+set}" = set; then
39726   echo $ECHO_N "(cached) $ECHO_C" >&6
39727 else
39728   if test -n "$RESCOMP"; then
39729   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39730 else
39731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39732 for as_dir in $PATH
39733 do
39734   IFS=$as_save_IFS
39735   test -z "$as_dir" && as_dir=.
39736   for ac_exec_ext in '' $ac_executable_extensions; do
39737   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39738     ac_cv_prog_RESCOMP="windres"
39739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39740     break 2
39741   fi
39742 done
39743 done
39744
39745   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
39746 fi
39747 fi
39748 RESCOMP=$ac_cv_prog_RESCOMP
39749 if test -n "$RESCOMP"; then
39750   echo "$as_me:$LINENO: result: $RESCOMP" >&5
39751 echo "${ECHO_T}$RESCOMP" >&6
39752 else
39753   echo "$as_me:$LINENO: result: no" >&5
39754 echo "${ECHO_T}no" >&6
39755 fi
39756
39757             fi
39758          ;;
39759
39760       *-*-darwin* )
39761             # Extract the first word of "Rez", so it can be a program name with args.
39762 set dummy Rez; ac_word=$2
39763 echo "$as_me:$LINENO: checking for $ac_word" >&5
39764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39765 if test "${ac_cv_prog_RESCOMP+set}" = set; then
39766   echo $ECHO_N "(cached) $ECHO_C" >&6
39767 else
39768   if test -n "$RESCOMP"; then
39769   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39770 else
39771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39772 for as_dir in $PATH
39773 do
39774   IFS=$as_save_IFS
39775   test -z "$as_dir" && as_dir=.
39776   for ac_exec_ext in '' $ac_executable_extensions; do
39777   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39778     ac_cv_prog_RESCOMP="Rez"
39779     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39780     break 2
39781   fi
39782 done
39783 done
39784
39785   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
39786 fi
39787 fi
39788 RESCOMP=$ac_cv_prog_RESCOMP
39789 if test -n "$RESCOMP"; then
39790   echo "$as_me:$LINENO: result: $RESCOMP" >&5
39791 echo "${ECHO_T}$RESCOMP" >&6
39792 else
39793   echo "$as_me:$LINENO: result: no" >&5
39794 echo "${ECHO_T}no" >&6
39795 fi
39796
39797             # Extract the first word of "SetFile", so it can be a program name with args.
39798 set dummy SetFile; ac_word=$2
39799 echo "$as_me:$LINENO: checking for $ac_word" >&5
39800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39801 if test "${ac_cv_prog_SETFILE+set}" = set; then
39802   echo $ECHO_N "(cached) $ECHO_C" >&6
39803 else
39804   if test -n "$SETFILE"; then
39805   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
39806 else
39807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39808 for as_dir in $PATH
39809 do
39810   IFS=$as_save_IFS
39811   test -z "$as_dir" && as_dir=.
39812   for ac_exec_ext in '' $ac_executable_extensions; do
39813   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39814     ac_cv_prog_SETFILE="SetFile"
39815     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39816     break 2
39817   fi
39818 done
39819 done
39820
39821   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
39822 fi
39823 fi
39824 SETFILE=$ac_cv_prog_SETFILE
39825 if test -n "$SETFILE"; then
39826   echo "$as_me:$LINENO: result: $SETFILE" >&5
39827 echo "${ECHO_T}$SETFILE" >&6
39828 else
39829   echo "$as_me:$LINENO: result: no" >&5
39830 echo "${ECHO_T}no" >&6
39831 fi
39832
39833         ;;
39834     esac
39835
39836
39837
39838
39839
39840
39841 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4"
39842
39843
39844
39845     # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39846 if test "${enable_precomp_headers+set}" = set; then
39847   enableval="$enable_precomp_headers"
39848   bk_use_pch="$enableval"
39849 fi;
39850
39851     GCC_PCH=0
39852
39853     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39854         if test "x$GCC" = "xyes"; then
39855                         echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39856 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39857             cat >conftest.$ac_ext <<_ACEOF
39858 /* confdefs.h.  */
39859 _ACEOF
39860 cat confdefs.h >>conftest.$ac_ext
39861 cat >>conftest.$ac_ext <<_ACEOF
39862 /* end confdefs.h.  */
39863
39864 int
39865 main ()
39866 {
39867
39868                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39869                         #error "no pch support"
39870                     #endif
39871                     #if (__GNUC__ < 3)
39872                         #error "no pch support"
39873                     #endif
39874                     #if (__GNUC__ == 3) && \
39875                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39876                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39877                         #error "no pch support"
39878                     #endif
39879
39880   ;
39881   return 0;
39882 }
39883 _ACEOF
39884 rm -f conftest.$ac_objext
39885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39886   (eval $ac_compile) 2>conftest.er1
39887   ac_status=$?
39888   grep -v '^ *+' conftest.er1 >conftest.err
39889   rm -f conftest.er1
39890   cat conftest.err >&5
39891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39892   (exit $ac_status); } &&
39893          { ac_try='test -z "$ac_c_werror_flag"
39894                          || test ! -s conftest.err'
39895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39896   (eval $ac_try) 2>&5
39897   ac_status=$?
39898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39899   (exit $ac_status); }; } &&
39900          { ac_try='test -s conftest.$ac_objext'
39901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39902   (eval $ac_try) 2>&5
39903   ac_status=$?
39904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39905   (exit $ac_status); }; }; then
39906
39907                     echo "$as_me:$LINENO: result: yes" >&5
39908 echo "${ECHO_T}yes" >&6
39909                                                             CPPFLAGS="-fpch-deps $CPPFLAGS"
39910                     GCC_PCH=1
39911
39912 else
39913   echo "$as_me: failed program was:" >&5
39914 sed 's/^/| /' conftest.$ac_ext >&5
39915
39916
39917                     echo "$as_me:$LINENO: result: no" >&5
39918 echo "${ECHO_T}no" >&6
39919
39920 fi
39921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39922             if test $GCC_PCH = 1 ; then
39923                 cat <<EOF >bk-make-pch
39924 #!/bin/sh
39925
39926 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39927 # script. It is used to generated precompiled headers.
39928 #
39929 # Permission is given to use this file in any way.
39930
39931 outfile="\${1}"
39932 header="\${2}"
39933 shift
39934 shift
39935
39936 compiler=
39937 headerfile=
39938 while test \${#} -gt 0; do
39939     case "\${1}" in
39940         -I* )
39941             incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39942             if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39943                 headerfile="\${incdir}/\${header}"
39944             fi
39945         ;;
39946     esac
39947     compiler="\${compiler} \${1}"
39948     shift
39949 done
39950
39951 if test "x\${headerfile}" = "x" ; then
39952     echo "error: can't find header \${header} in include paths" >2
39953 else
39954     if test -f \${outfile} ; then
39955         rm -f \${outfile}
39956     else
39957         mkdir -p \`dirname \${outfile}\`
39958     fi
39959     depsfile=".deps/\`basename \${outfile}\`.d"
39960     mkdir -p .deps
39961     # can do this because gcc is >= 3.4:
39962     \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39963     exit \${?}
39964 fi
39965 EOF
39966                 chmod +x bk-make-pch
39967             fi
39968         fi
39969     fi
39970
39971
39972
39973
39974
39975
39976
39977     # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39978 if test "${enable_precomp_headers+set}" = set; then
39979   enableval="$enable_precomp_headers"
39980   bk_use_pch="$enableval"
39981 fi;
39982
39983     GCC_PCH=0
39984
39985     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39986         if test "x$GCC" = "xyes"; then
39987                         echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39988 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39989             cat >conftest.$ac_ext <<_ACEOF
39990 /* confdefs.h.  */
39991 _ACEOF
39992 cat confdefs.h >>conftest.$ac_ext
39993 cat >>conftest.$ac_ext <<_ACEOF
39994 /* end confdefs.h.  */
39995
39996 int
39997 main ()
39998 {
39999
40000                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
40001                         #error "no pch support"
40002                     #endif
40003                     #if (__GNUC__ < 3)
40004                         #error "no pch support"
40005                     #endif
40006                     #if (__GNUC__ == 3) && \
40007                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
40008                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
40009                         #error "no pch support"
40010                     #endif
40011
40012   ;
40013   return 0;
40014 }
40015 _ACEOF
40016 rm -f conftest.$ac_objext
40017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40018   (eval $ac_compile) 2>conftest.er1
40019   ac_status=$?
40020   grep -v '^ *+' conftest.er1 >conftest.err
40021   rm -f conftest.er1
40022   cat conftest.err >&5
40023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40024   (exit $ac_status); } &&
40025          { ac_try='test -z "$ac_c_werror_flag"
40026                          || test ! -s conftest.err'
40027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40028   (eval $ac_try) 2>&5
40029   ac_status=$?
40030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40031   (exit $ac_status); }; } &&
40032          { ac_try='test -s conftest.$ac_objext'
40033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40034   (eval $ac_try) 2>&5
40035   ac_status=$?
40036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40037   (exit $ac_status); }; }; then
40038
40039                     echo "$as_me:$LINENO: result: yes" >&5
40040 echo "${ECHO_T}yes" >&6
40041                                                             CPPFLAGS="-fpch-deps $CPPFLAGS"
40042                     GCC_PCH=1
40043
40044 else
40045   echo "$as_me: failed program was:" >&5
40046 sed 's/^/| /' conftest.$ac_ext >&5
40047
40048
40049                     echo "$as_me:$LINENO: result: no" >&5
40050 echo "${ECHO_T}no" >&6
40051
40052 fi
40053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40054             if test $GCC_PCH = 1 ; then
40055                 cat <<EOF >bk-make-pch
40056 #!/bin/sh
40057
40058 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
40059 # script. It is used to generated precompiled headers.
40060 #
40061 # Permission is given to use this file in any way.
40062
40063 outfile="\${1}"
40064 header="\${2}"
40065 shift
40066 shift
40067
40068 compiler=
40069 headerfile=
40070 while test \${#} -gt 0; do
40071     case "\${1}" in
40072         -I* )
40073             incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
40074             if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
40075                 headerfile="\${incdir}/\${header}"
40076             fi
40077         ;;
40078     esac
40079     compiler="\${compiler} \${1}"
40080     shift
40081 done
40082
40083 if test "x\${headerfile}" = "x" ; then
40084     echo "error: can't find header \${header} in include paths" >2
40085 else
40086     if test -f \${outfile} ; then
40087         rm -f \${outfile}
40088     else
40089         mkdir -p \`dirname \${outfile}\`
40090     fi
40091     depsfile=".deps/\`basename \${outfile}\`.d"
40092     mkdir -p .deps
40093     # can do this because gcc is >= 3.4:
40094     \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
40095     exit \${?}
40096 fi
40097 EOF
40098                 chmod +x bk-make-pch
40099             fi
40100         fi
40101     fi
40102
40103
40104
40105
40106     COND_BUILD_DEBUG="#"
40107     if test "x$BUILD" = "xdebug" ; then
40108         COND_BUILD_DEBUG=""
40109     fi
40110
40111     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40112     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40113         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40114     fi
40115
40116     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40117     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40118         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40119     fi
40120
40121     COND_BUILD_DEBUG_UNICODE_0="#"
40122     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40123         COND_BUILD_DEBUG_UNICODE_0=""
40124     fi
40125
40126     COND_BUILD_DEBUG_UNICODE_1="#"
40127     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40128         COND_BUILD_DEBUG_UNICODE_1=""
40129     fi
40130
40131     COND_BUILD_RELEASE="#"
40132     if test "x$BUILD" = "xrelease" ; then
40133         COND_BUILD_RELEASE=""
40134     fi
40135
40136     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40137     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40138         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40139     fi
40140
40141     COND_BUILD_RELEASE_UNICODE_0="#"
40142     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40143         COND_BUILD_RELEASE_UNICODE_0=""
40144     fi
40145
40146     COND_BUILD_RELEASE_UNICODE_1="#"
40147     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40148         COND_BUILD_RELEASE_UNICODE_1=""
40149     fi
40150
40151     COND_DEBUG_FLAG_1="#"
40152     if test "x$DEBUG_FLAG" = "x1" ; then
40153         COND_DEBUG_FLAG_1=""
40154     fi
40155
40156     COND_DEBUG_INFO_0="#"
40157     if test "x$DEBUG_INFO" = "x0" ; then
40158         COND_DEBUG_INFO_0=""
40159     fi
40160
40161     COND_DEBUG_INFO_1="#"
40162     if test "x$DEBUG_INFO" = "x1" ; then
40163         COND_DEBUG_INFO_1=""
40164     fi
40165
40166     COND_DEPS_TRACKING_0="#"
40167     if test "x$DEPS_TRACKING" = "x0" ; then
40168         COND_DEPS_TRACKING_0=""
40169     fi
40170
40171     COND_DEPS_TRACKING_1="#"
40172     if test "x$DEPS_TRACKING" = "x1" ; then
40173         COND_DEPS_TRACKING_1=""
40174     fi
40175
40176     COND_GCC_PCH_1="#"
40177     if test "x$GCC_PCH" = "x1" ; then
40178         COND_GCC_PCH_1=""
40179     fi
40180
40181     COND_MONOLITHIC_0="#"
40182     if test "x$MONOLITHIC" = "x0" ; then
40183         COND_MONOLITHIC_0=""
40184     fi
40185
40186     COND_MONOLITHIC_0_SHARED_0="#"
40187     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40188         COND_MONOLITHIC_0_SHARED_0=""
40189     fi
40190
40191     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40192     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40193         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40194     fi
40195
40196     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40197     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40198         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40199     fi
40200
40201     COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
40202     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
40203         COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
40204     fi
40205
40206     COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40207     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40208         COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40209     fi
40210
40211     COND_MONOLITHIC_0_SHARED_1="#"
40212     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40213         COND_MONOLITHIC_0_SHARED_1=""
40214     fi
40215
40216     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40217     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40218         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40219     fi
40220
40221     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40222     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40223         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40224     fi
40225
40226     COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
40227     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
40228         COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
40229     fi
40230
40231     COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40232     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40233         COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40234     fi
40235
40236     COND_MONOLITHIC_0_USE_ODBC_1="#"
40237     if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40238         COND_MONOLITHIC_0_USE_ODBC_1=""
40239     fi
40240
40241     COND_MONOLITHIC_1="#"
40242     if test "x$MONOLITHIC" = "x1" ; then
40243         COND_MONOLITHIC_1=""
40244     fi
40245
40246     COND_MONOLITHIC_1_SHARED_0="#"
40247     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40248         COND_MONOLITHIC_1_SHARED_0=""
40249     fi
40250
40251     COND_MONOLITHIC_1_SHARED_1="#"
40252     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40253         COND_MONOLITHIC_1_SHARED_1=""
40254     fi
40255
40256     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40257     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40258         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40259     fi
40260
40261     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40262     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40263         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40264     fi
40265
40266     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40267     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40268         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40269     fi
40270
40271     COND_PLATFORM_MACOSX_1="#"
40272     if test "x$PLATFORM_MACOSX" = "x1" ; then
40273         COND_PLATFORM_MACOSX_1=""
40274     fi
40275
40276     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40277     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40278         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40279     fi
40280
40281     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40282     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40283         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40284     fi
40285
40286     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40287     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40288         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40289     fi
40290
40291     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40292     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40293         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40294     fi
40295
40296     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40297     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40298         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40299     fi
40300
40301     COND_PLATFORM_MAC_1="#"
40302     if test "x$PLATFORM_MAC" = "x1" ; then
40303         COND_PLATFORM_MAC_1=""
40304     fi
40305
40306     COND_PLATFORM_OS2_1="#"
40307     if test "x$PLATFORM_OS2" = "x1" ; then
40308         COND_PLATFORM_OS2_1=""
40309     fi
40310
40311     COND_PLATFORM_UNIX_0="#"
40312     if test "x$PLATFORM_UNIX" = "x0" ; then
40313         COND_PLATFORM_UNIX_0=""
40314     fi
40315
40316     COND_PLATFORM_UNIX_1="#"
40317     if test "x$PLATFORM_UNIX" = "x1" ; then
40318         COND_PLATFORM_UNIX_1=""
40319     fi
40320
40321     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40322     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40323         COND_PLATFORM_UNIX_1_USE_GUI_1=""
40324     fi
40325
40326     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40327     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40328         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40329     fi
40330
40331     COND_PLATFORM_WIN32_0="#"
40332     if test "x$PLATFORM_WIN32" = "x0" ; then
40333         COND_PLATFORM_WIN32_0=""
40334     fi
40335
40336     COND_PLATFORM_WIN32_1="#"
40337     if test "x$PLATFORM_WIN32" = "x1" ; then
40338         COND_PLATFORM_WIN32_1=""
40339     fi
40340
40341     COND_SHARED_0="#"
40342     if test "x$SHARED" = "x0" ; then
40343         COND_SHARED_0=""
40344     fi
40345
40346     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40347     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40348         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40349     fi
40350
40351     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40352     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40353         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40354     fi
40355
40356     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40357     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40358         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40359     fi
40360
40361     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40362     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40363         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40364     fi
40365
40366     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40367     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40368         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40369     fi
40370
40371     COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40372     if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40373         COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40374     fi
40375
40376     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40377     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40378         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40379     fi
40380
40381     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40382     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40383         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40384     fi
40385
40386     COND_SHARED_1="#"
40387     if test "x$SHARED" = "x1" ; then
40388         COND_SHARED_1=""
40389     fi
40390
40391     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40392     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40393         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40394     fi
40395
40396     COND_TOOLKIT_COCOA="#"
40397     if test "x$TOOLKIT" = "xCOCOA" ; then
40398         COND_TOOLKIT_COCOA=""
40399     fi
40400
40401     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40402     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40403         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40404     fi
40405
40406     COND_TOOLKIT_GTK="#"
40407     if test "x$TOOLKIT" = "xGTK" ; then
40408         COND_TOOLKIT_GTK=""
40409     fi
40410
40411     COND_TOOLKIT_GTK_USE_GUI_1="#"
40412     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40413         COND_TOOLKIT_GTK_USE_GUI_1=""
40414     fi
40415
40416     COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40417     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40418         COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40419     fi
40420
40421     COND_TOOLKIT_MAC="#"
40422     if test "x$TOOLKIT" = "xMAC" ; then
40423         COND_TOOLKIT_MAC=""
40424     fi
40425
40426     COND_TOOLKIT_MAC_USE_GUI_1="#"
40427     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40428         COND_TOOLKIT_MAC_USE_GUI_1=""
40429     fi
40430
40431     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40432     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40433         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40434     fi
40435
40436     COND_TOOLKIT_MGL="#"
40437     if test "x$TOOLKIT" = "xMGL" ; then
40438         COND_TOOLKIT_MGL=""
40439     fi
40440
40441     COND_TOOLKIT_MGL_USE_GUI_1="#"
40442     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40443         COND_TOOLKIT_MGL_USE_GUI_1=""
40444     fi
40445
40446     COND_TOOLKIT_MOTIF="#"
40447     if test "x$TOOLKIT" = "xMOTIF" ; then
40448         COND_TOOLKIT_MOTIF=""
40449     fi
40450
40451     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40452     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40453         COND_TOOLKIT_MOTIF_USE_GUI_1=""
40454     fi
40455
40456     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40457     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40458         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40459     fi
40460
40461     COND_TOOLKIT_MSW="#"
40462     if test "x$TOOLKIT" = "xMSW" ; then
40463         COND_TOOLKIT_MSW=""
40464     fi
40465
40466     COND_TOOLKIT_MSW_USE_GUI_1="#"
40467     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40468         COND_TOOLKIT_MSW_USE_GUI_1=""
40469     fi
40470
40471     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40472     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40473         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40474     fi
40475
40476     COND_TOOLKIT_PM="#"
40477     if test "x$TOOLKIT" = "xPM" ; then
40478         COND_TOOLKIT_PM=""
40479     fi
40480
40481     COND_TOOLKIT_PM_USE_GUI_1="#"
40482     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40483         COND_TOOLKIT_PM_USE_GUI_1=""
40484     fi
40485
40486     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40487     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40488         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40489     fi
40490
40491     COND_TOOLKIT_WINCE="#"
40492     if test "x$TOOLKIT" = "xWINCE" ; then
40493         COND_TOOLKIT_WINCE=""
40494     fi
40495
40496     COND_TOOLKIT_WINCE_USE_GUI_1="#"
40497     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40498         COND_TOOLKIT_WINCE_USE_GUI_1=""
40499     fi
40500
40501     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40502     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40503         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40504     fi
40505
40506     COND_TOOLKIT_X11="#"
40507     if test "x$TOOLKIT" = "xX11" ; then
40508         COND_TOOLKIT_X11=""
40509     fi
40510
40511     COND_TOOLKIT_X11_USE_GUI_1="#"
40512     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40513         COND_TOOLKIT_X11_USE_GUI_1=""
40514     fi
40515
40516     COND_UNICODE_1="#"
40517     if test "x$UNICODE" = "x1" ; then
40518         COND_UNICODE_1=""
40519     fi
40520
40521     COND_USE_EXCEPTIONS_0="#"
40522     if test "x$USE_EXCEPTIONS" = "x0" ; then
40523         COND_USE_EXCEPTIONS_0=""
40524     fi
40525
40526     COND_USE_EXCEPTIONS_1="#"
40527     if test "x$USE_EXCEPTIONS" = "x1" ; then
40528         COND_USE_EXCEPTIONS_1=""
40529     fi
40530
40531     COND_USE_GUI_0="#"
40532     if test "x$USE_GUI" = "x0" ; then
40533         COND_USE_GUI_0=""
40534     fi
40535
40536     COND_USE_GUI_1="#"
40537     if test "x$USE_GUI" = "x1" ; then
40538         COND_USE_GUI_1=""
40539     fi
40540
40541     COND_USE_GUI_1_WXUNIV_0="#"
40542     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40543         COND_USE_GUI_1_WXUNIV_0=""
40544     fi
40545
40546     COND_USE_GUI_1_WXUNIV_1="#"
40547     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40548         COND_USE_GUI_1_WXUNIV_1=""
40549     fi
40550
40551     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40552     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40553         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40554     fi
40555
40556     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40557     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40558         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40559     fi
40560
40561     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40562     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40563         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40564     fi
40565
40566     COND_USE_ODBC_1="#"
40567     if test "x$USE_ODBC" = "x1" ; then
40568         COND_USE_ODBC_1=""
40569     fi
40570
40571     COND_USE_PLUGINS_0="#"
40572     if test "x$USE_PLUGINS" = "x0" ; then
40573         COND_USE_PLUGINS_0=""
40574     fi
40575
40576     COND_USE_SOSYMLINKS_1="#"
40577     if test "x$USE_SOSYMLINKS" = "x1" ; then
40578         COND_USE_SOSYMLINKS_1=""
40579     fi
40580
40581     COND_USE_SOVERLINUX_1="#"
40582     if test "x$USE_SOVERLINUX" = "x1" ; then
40583         COND_USE_SOVERLINUX_1=""
40584     fi
40585
40586     COND_USE_SOVERSION_0="#"
40587     if test "x$USE_SOVERSION" = "x0" ; then
40588         COND_USE_SOVERSION_0=""
40589     fi
40590
40591     COND_USE_SOVERSOLARIS_1="#"
40592     if test "x$USE_SOVERSOLARIS" = "x1" ; then
40593         COND_USE_SOVERSOLARIS_1=""
40594     fi
40595
40596     COND_WITH_PLUGIN_SDL_1="#"
40597     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40598         COND_WITH_PLUGIN_SDL_1=""
40599     fi
40600
40601     COND_WITH_SDL_1="#"
40602     if test "x$WITH_SDL" = "x1" ; then
40603         COND_WITH_SDL_1=""
40604     fi
40605
40606     COND_WXUNIV_1="#"
40607     if test "x$WXUNIV" = "x1" ; then
40608         COND_WXUNIV_1=""
40609     fi
40610
40611     COND_WXUSE_EXPAT_BUILTIN="#"
40612     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40613         COND_WXUSE_EXPAT_BUILTIN=""
40614     fi
40615
40616     COND_WXUSE_LIBJPEG_BUILTIN="#"
40617     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40618         COND_WXUSE_LIBJPEG_BUILTIN=""
40619     fi
40620
40621     COND_WXUSE_LIBPNG_BUILTIN="#"
40622     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40623         COND_WXUSE_LIBPNG_BUILTIN=""
40624     fi
40625
40626     COND_WXUSE_LIBTIFF_BUILTIN="#"
40627     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40628         COND_WXUSE_LIBTIFF_BUILTIN=""
40629     fi
40630
40631     COND_WXUSE_ODBC_BUILTIN="#"
40632     if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40633         COND_WXUSE_ODBC_BUILTIN=""
40634     fi
40635
40636     COND_WXUSE_REGEX_BUILTIN="#"
40637     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40638         COND_WXUSE_REGEX_BUILTIN=""
40639     fi
40640
40641     COND_WXUSE_ZLIB_BUILTIN="#"
40642     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40643         COND_WXUSE_ZLIB_BUILTIN=""
40644     fi
40645
40646     COND_BUILD_DEBUG="#"
40647     if test "x$BUILD" = "xdebug" ; then
40648         COND_BUILD_DEBUG=""
40649     fi
40650
40651     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40652     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40653         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40654     fi
40655
40656     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40657     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40658         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40659     fi
40660
40661     COND_BUILD_DEBUG_UNICODE_0="#"
40662     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40663         COND_BUILD_DEBUG_UNICODE_0=""
40664     fi
40665
40666     COND_BUILD_DEBUG_UNICODE_1="#"
40667     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40668         COND_BUILD_DEBUG_UNICODE_1=""
40669     fi
40670
40671     COND_BUILD_RELEASE="#"
40672     if test "x$BUILD" = "xrelease" ; then
40673         COND_BUILD_RELEASE=""
40674     fi
40675
40676     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40677     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40678         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40679     fi
40680
40681     COND_BUILD_RELEASE_UNICODE_0="#"
40682     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40683         COND_BUILD_RELEASE_UNICODE_0=""
40684     fi
40685
40686     COND_BUILD_RELEASE_UNICODE_1="#"
40687     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40688         COND_BUILD_RELEASE_UNICODE_1=""
40689     fi
40690
40691     COND_DEBUG_FLAG_1="#"
40692     if test "x$DEBUG_FLAG" = "x1" ; then
40693         COND_DEBUG_FLAG_1=""
40694     fi
40695
40696     COND_DEBUG_INFO_0="#"
40697     if test "x$DEBUG_INFO" = "x0" ; then
40698         COND_DEBUG_INFO_0=""
40699     fi
40700
40701     COND_DEBUG_INFO_1="#"
40702     if test "x$DEBUG_INFO" = "x1" ; then
40703         COND_DEBUG_INFO_1=""
40704     fi
40705
40706     COND_DEPS_TRACKING_0="#"
40707     if test "x$DEPS_TRACKING" = "x0" ; then
40708         COND_DEPS_TRACKING_0=""
40709     fi
40710
40711     COND_DEPS_TRACKING_1="#"
40712     if test "x$DEPS_TRACKING" = "x1" ; then
40713         COND_DEPS_TRACKING_1=""
40714     fi
40715
40716     COND_GCC_PCH_1="#"
40717     if test "x$GCC_PCH" = "x1" ; then
40718         COND_GCC_PCH_1=""
40719     fi
40720
40721     COND_MONOLITHIC_0="#"
40722     if test "x$MONOLITHIC" = "x0" ; then
40723         COND_MONOLITHIC_0=""
40724     fi
40725
40726     COND_MONOLITHIC_0_SHARED_0="#"
40727     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40728         COND_MONOLITHIC_0_SHARED_0=""
40729     fi
40730
40731     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40732     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40733         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40734     fi
40735
40736     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40737     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40738         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40739     fi
40740
40741     COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
40742     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
40743         COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
40744     fi
40745
40746     COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40747     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40748         COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40749     fi
40750
40751     COND_MONOLITHIC_0_SHARED_1="#"
40752     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40753         COND_MONOLITHIC_0_SHARED_1=""
40754     fi
40755
40756     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40757     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40758         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40759     fi
40760
40761     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40762     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40763         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40764     fi
40765
40766     COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
40767     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
40768         COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
40769     fi
40770
40771     COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40772     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40773         COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40774     fi
40775
40776     COND_MONOLITHIC_0_USE_ODBC_1="#"
40777     if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40778         COND_MONOLITHIC_0_USE_ODBC_1=""
40779     fi
40780
40781     COND_MONOLITHIC_1="#"
40782     if test "x$MONOLITHIC" = "x1" ; then
40783         COND_MONOLITHIC_1=""
40784     fi
40785
40786     COND_MONOLITHIC_1_SHARED_0="#"
40787     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40788         COND_MONOLITHIC_1_SHARED_0=""
40789     fi
40790
40791     COND_MONOLITHIC_1_SHARED_1="#"
40792     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40793         COND_MONOLITHIC_1_SHARED_1=""
40794     fi
40795
40796     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40797     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40798         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40799     fi
40800
40801     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40802     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40803         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40804     fi
40805
40806     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40807     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40808         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40809     fi
40810
40811     COND_PLATFORM_MACOSX_1="#"
40812     if test "x$PLATFORM_MACOSX" = "x1" ; then
40813         COND_PLATFORM_MACOSX_1=""
40814     fi
40815
40816     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40817     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40818         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40819     fi
40820
40821     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40822     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40823         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40824     fi
40825
40826     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40827     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40828         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40829     fi
40830
40831     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40832     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40833         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40834     fi
40835
40836     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40837     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40838         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40839     fi
40840
40841     COND_PLATFORM_MAC_1="#"
40842     if test "x$PLATFORM_MAC" = "x1" ; then
40843         COND_PLATFORM_MAC_1=""
40844     fi
40845
40846     COND_PLATFORM_OS2_1="#"
40847     if test "x$PLATFORM_OS2" = "x1" ; then
40848         COND_PLATFORM_OS2_1=""
40849     fi
40850
40851     COND_PLATFORM_UNIX_0="#"
40852     if test "x$PLATFORM_UNIX" = "x0" ; then
40853         COND_PLATFORM_UNIX_0=""
40854     fi
40855
40856     COND_PLATFORM_UNIX_1="#"
40857     if test "x$PLATFORM_UNIX" = "x1" ; then
40858         COND_PLATFORM_UNIX_1=""
40859     fi
40860
40861     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40862     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40863         COND_PLATFORM_UNIX_1_USE_GUI_1=""
40864     fi
40865
40866     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40867     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40868         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40869     fi
40870
40871     COND_PLATFORM_WIN32_0="#"
40872     if test "x$PLATFORM_WIN32" = "x0" ; then
40873         COND_PLATFORM_WIN32_0=""
40874     fi
40875
40876     COND_PLATFORM_WIN32_1="#"
40877     if test "x$PLATFORM_WIN32" = "x1" ; then
40878         COND_PLATFORM_WIN32_1=""
40879     fi
40880
40881     COND_SHARED_0="#"
40882     if test "x$SHARED" = "x0" ; then
40883         COND_SHARED_0=""
40884     fi
40885
40886     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40887     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40888         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40889     fi
40890
40891     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40892     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40893         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40894     fi
40895
40896     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40897     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40898         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40899     fi
40900
40901     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40902     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40903         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40904     fi
40905
40906     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40907     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40908         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40909     fi
40910
40911     COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40912     if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40913         COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40914     fi
40915
40916     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40917     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40918         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40919     fi
40920
40921     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40922     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40923         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40924     fi
40925
40926     COND_SHARED_1="#"
40927     if test "x$SHARED" = "x1" ; then
40928         COND_SHARED_1=""
40929     fi
40930
40931     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40932     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40933         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40934     fi
40935
40936     COND_TOOLKIT_COCOA="#"
40937     if test "x$TOOLKIT" = "xCOCOA" ; then
40938         COND_TOOLKIT_COCOA=""
40939     fi
40940
40941     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40942     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40943         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40944     fi
40945
40946     COND_TOOLKIT_GTK="#"
40947     if test "x$TOOLKIT" = "xGTK" ; then
40948         COND_TOOLKIT_GTK=""
40949     fi
40950
40951     COND_TOOLKIT_GTK_USE_GUI_1="#"
40952     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40953         COND_TOOLKIT_GTK_USE_GUI_1=""
40954     fi
40955
40956     COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40957     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40958         COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40959     fi
40960
40961     COND_TOOLKIT_MAC="#"
40962     if test "x$TOOLKIT" = "xMAC" ; then
40963         COND_TOOLKIT_MAC=""
40964     fi
40965
40966     COND_TOOLKIT_MAC_USE_GUI_1="#"
40967     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40968         COND_TOOLKIT_MAC_USE_GUI_1=""
40969     fi
40970
40971     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40972     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40973         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40974     fi
40975
40976     COND_TOOLKIT_MGL="#"
40977     if test "x$TOOLKIT" = "xMGL" ; then
40978         COND_TOOLKIT_MGL=""
40979     fi
40980
40981     COND_TOOLKIT_MGL_USE_GUI_1="#"
40982     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40983         COND_TOOLKIT_MGL_USE_GUI_1=""
40984     fi
40985
40986     COND_TOOLKIT_MOTIF="#"
40987     if test "x$TOOLKIT" = "xMOTIF" ; then
40988         COND_TOOLKIT_MOTIF=""
40989     fi
40990
40991     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40992     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40993         COND_TOOLKIT_MOTIF_USE_GUI_1=""
40994     fi
40995
40996     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40997     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40998         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40999     fi
41000
41001     COND_TOOLKIT_MSW="#"
41002     if test "x$TOOLKIT" = "xMSW" ; then
41003         COND_TOOLKIT_MSW=""
41004     fi
41005
41006     COND_TOOLKIT_MSW_USE_GUI_1="#"
41007     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
41008         COND_TOOLKIT_MSW_USE_GUI_1=""
41009     fi
41010
41011     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
41012     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41013         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
41014     fi
41015
41016     COND_TOOLKIT_PM="#"
41017     if test "x$TOOLKIT" = "xPM" ; then
41018         COND_TOOLKIT_PM=""
41019     fi
41020
41021     COND_TOOLKIT_PM_USE_GUI_1="#"
41022     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
41023         COND_TOOLKIT_PM_USE_GUI_1=""
41024     fi
41025
41026     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
41027     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41028         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
41029     fi
41030
41031     COND_TOOLKIT_WINCE="#"
41032     if test "x$TOOLKIT" = "xWINCE" ; then
41033         COND_TOOLKIT_WINCE=""
41034     fi
41035
41036     COND_TOOLKIT_WINCE_USE_GUI_1="#"
41037     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
41038         COND_TOOLKIT_WINCE_USE_GUI_1=""
41039     fi
41040
41041     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
41042     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41043         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
41044     fi
41045
41046     COND_TOOLKIT_X11="#"
41047     if test "x$TOOLKIT" = "xX11" ; then
41048         COND_TOOLKIT_X11=""
41049     fi
41050
41051     COND_TOOLKIT_X11_USE_GUI_1="#"
41052     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
41053         COND_TOOLKIT_X11_USE_GUI_1=""
41054     fi
41055
41056     COND_UNICODE_1="#"
41057     if test "x$UNICODE" = "x1" ; then
41058         COND_UNICODE_1=""
41059     fi
41060
41061     COND_USE_EXCEPTIONS_0="#"
41062     if test "x$USE_EXCEPTIONS" = "x0" ; then
41063         COND_USE_EXCEPTIONS_0=""
41064     fi
41065
41066     COND_USE_EXCEPTIONS_1="#"
41067     if test "x$USE_EXCEPTIONS" = "x1" ; then
41068         COND_USE_EXCEPTIONS_1=""
41069     fi
41070
41071     COND_USE_GUI_0="#"
41072     if test "x$USE_GUI" = "x0" ; then
41073         COND_USE_GUI_0=""
41074     fi
41075
41076     COND_USE_GUI_1="#"
41077     if test "x$USE_GUI" = "x1" ; then
41078         COND_USE_GUI_1=""
41079     fi
41080
41081     COND_USE_GUI_1_WXUNIV_0="#"
41082     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41083         COND_USE_GUI_1_WXUNIV_0=""
41084     fi
41085
41086     COND_USE_GUI_1_WXUNIV_1="#"
41087     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
41088         COND_USE_GUI_1_WXUNIV_1=""
41089     fi
41090
41091     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41092     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41093         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41094     fi
41095
41096     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41097     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41098         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41099     fi
41100
41101     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41102     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41103         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41104     fi
41105
41106     COND_USE_ODBC_1="#"
41107     if test "x$USE_ODBC" = "x1" ; then
41108         COND_USE_ODBC_1=""
41109     fi
41110
41111     COND_USE_PLUGINS_0="#"
41112     if test "x$USE_PLUGINS" = "x0" ; then
41113         COND_USE_PLUGINS_0=""
41114     fi
41115
41116     COND_USE_SOSYMLINKS_1="#"
41117     if test "x$USE_SOSYMLINKS" = "x1" ; then
41118         COND_USE_SOSYMLINKS_1=""
41119     fi
41120
41121     COND_USE_SOVERLINUX_1="#"
41122     if test "x$USE_SOVERLINUX" = "x1" ; then
41123         COND_USE_SOVERLINUX_1=""
41124     fi
41125
41126     COND_USE_SOVERSION_0="#"
41127     if test "x$USE_SOVERSION" = "x0" ; then
41128         COND_USE_SOVERSION_0=""
41129     fi
41130
41131     COND_USE_SOVERSOLARIS_1="#"
41132     if test "x$USE_SOVERSOLARIS" = "x1" ; then
41133         COND_USE_SOVERSOLARIS_1=""
41134     fi
41135
41136     COND_WITH_PLUGIN_SDL_1="#"
41137     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
41138         COND_WITH_PLUGIN_SDL_1=""
41139     fi
41140
41141     COND_WXUNIV_1="#"
41142     if test "x$WXUNIV" = "x1" ; then
41143         COND_WXUNIV_1=""
41144     fi
41145
41146     COND_WXUSE_EXPAT_BUILTIN="#"
41147     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
41148         COND_WXUSE_EXPAT_BUILTIN=""
41149     fi
41150
41151     COND_WXUSE_LIBJPEG_BUILTIN="#"
41152     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41153         COND_WXUSE_LIBJPEG_BUILTIN=""
41154     fi
41155
41156     COND_WXUSE_LIBPNG_BUILTIN="#"
41157     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41158         COND_WXUSE_LIBPNG_BUILTIN=""
41159     fi
41160
41161     COND_WXUSE_LIBTIFF_BUILTIN="#"
41162     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41163         COND_WXUSE_LIBTIFF_BUILTIN=""
41164     fi
41165
41166     COND_WXUSE_ODBC_BUILTIN="#"
41167     if test "x$wxUSE_ODBC" = "xbuiltin" ; then
41168         COND_WXUSE_ODBC_BUILTIN=""
41169     fi
41170
41171     COND_WXUSE_REGEX_BUILTIN="#"
41172     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
41173         COND_WXUSE_REGEX_BUILTIN=""
41174     fi
41175
41176     COND_WXUSE_ZLIB_BUILTIN="#"
41177     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
41178         COND_WXUSE_ZLIB_BUILTIN=""
41179     fi
41180
41181
41182
41183
41184
41185 if test $GCC_PCH = 1 ; then
41186     CODE_GEN_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
41187     CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
41188 else
41189     case "${host}" in
41190         powerpc-*-darwin* )
41191                                     CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
41192             CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
41193             ;;
41194         *-*-mingw32* )
41195                                                             if test "$wxUSE_STL" = "yes"; then
41196                echo "$as_me:$LINENO: checking If this MinGW version needs -DNO_GCC_PRAGMA" >&5
41197 echo $ECHO_N "checking If this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
41198                cat >conftest.$ac_ext <<_ACEOF
41199 /* confdefs.h.  */
41200 _ACEOF
41201 cat confdefs.h >>conftest.$ac_ext
41202 cat >>conftest.$ac_ext <<_ACEOF
41203 /* end confdefs.h.  */
41204
41205 int
41206 main ()
41207 {
41208 #if !(__GNUC__ == 3 && __GNUC_MINOR__ >= 2)
41209                                #error "Not GCC 3.2 or greater"
41210                                #endif
41211
41212   ;
41213   return 0;
41214 }
41215 _ACEOF
41216 rm -f conftest.$ac_objext
41217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41218   (eval $ac_compile) 2>conftest.er1
41219   ac_status=$?
41220   grep -v '^ *+' conftest.er1 >conftest.err
41221   rm -f conftest.er1
41222   cat conftest.err >&5
41223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41224   (exit $ac_status); } &&
41225          { ac_try='test -z "$ac_c_werror_flag"
41226                          || test ! -s conftest.err'
41227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41228   (eval $ac_try) 2>&5
41229   ac_status=$?
41230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41231   (exit $ac_status); }; } &&
41232          { ac_try='test -s conftest.$ac_objext'
41233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41234   (eval $ac_try) 2>&5
41235   ac_status=$?
41236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41237   (exit $ac_status); }; }; then
41238   CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
41239                                CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
41240                                echo "$as_me:$LINENO: result: yes" >&5
41241 echo "${ECHO_T}yes" >&6
41242 else
41243   echo "$as_me: failed program was:" >&5
41244 sed 's/^/| /' conftest.$ac_ext >&5
41245
41246 echo "$as_me:$LINENO: result: no" >&5
41247 echo "${ECHO_T}no" >&6
41248 fi
41249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41250             fi
41251             ;;
41252     esac
41253 fi
41254
41255
41256 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
41257
41258
41259
41260
41261
41262
41263
41264
41265
41266
41267
41268
41269
41270
41271
41272
41273
41274
41275
41276
41277
41278
41279
41280
41281
41282
41283
41284
41285
41286
41287
41288
41289
41290
41291
41292
41293
41294
41295
41296
41297
41298
41299
41300
41301
41302
41303
41304
41305
41306
41307
41308
41309
41310
41311
41312
41313
41314
41315
41316
41317
41318
41319
41320
41321
41322
41323
41324
41325
41326
41327
41328
41329
41330
41331
41332
41333
41334
41335
41336
41337
41338
41339
41340
41341
41342
41343
41344
41345
41346
41347
41348
41349
41350
41351
41352
41353
41354
41355
41356
41357 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41358 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
41359 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
41360 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41361   echo $ECHO_N "(cached) $ECHO_C" >&6
41362 else
41363   cat >conftest.make <<\_ACEOF
41364 all:
41365         @echo 'ac_maketemp="$(MAKE)"'
41366 _ACEOF
41367 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41368 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41369 if test -n "$ac_maketemp"; then
41370   eval ac_cv_prog_make_${ac_make}_set=yes
41371 else
41372   eval ac_cv_prog_make_${ac_make}_set=no
41373 fi
41374 rm -f conftest.make
41375 fi
41376 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41377   echo "$as_me:$LINENO: result: yes" >&5
41378 echo "${ECHO_T}yes" >&6
41379   SET_MAKE=
41380 else
41381   echo "$as_me:$LINENO: result: no" >&5
41382 echo "${ECHO_T}no" >&6
41383   SET_MAKE="MAKE=${MAKE-make}"
41384 fi
41385
41386
41387 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
41388     mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
41389 fi
41390
41391           ac_config_headers="$ac_config_headers setup.h"
41392
41393
41394                               ac_config_files="$ac_config_files wx-config version-script Makefile"
41395
41396
41397           ac_config_commands="$ac_config_commands default"
41398
41399
41400
41401 if test "$wxUSE_GUI" = "yes"; then
41402     SUBDIRS="samples demos utils contrib"
41403 else         SUBDIRS="samples utils"
41404 fi
41405
41406
41407
41408 # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
41409 if test "${with_cppunit_prefix+set}" = set; then
41410   withval="$with_cppunit_prefix"
41411   cppunit_config_prefix="$withval"
41412 else
41413   cppunit_config_prefix=""
41414 fi;
41415
41416 # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
41417 if test "${with_cppunit_exec_prefix+set}" = set; then
41418   withval="$with_cppunit_exec_prefix"
41419   cppunit_config_exec_prefix="$withval"
41420 else
41421   cppunit_config_exec_prefix=""
41422 fi;
41423
41424   if test x$cppunit_config_exec_prefix != x ; then
41425      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
41426      if test x${CPPUNIT_CONFIG+set} != xset ; then
41427         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
41428      fi
41429   fi
41430   if test x$cppunit_config_prefix != x ; then
41431      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
41432      if test x${CPPUNIT_CONFIG+set} != xset ; then
41433         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
41434      fi
41435   fi
41436
41437   # Extract the first word of "cppunit-config", so it can be a program name with args.
41438 set dummy cppunit-config; ac_word=$2
41439 echo "$as_me:$LINENO: checking for $ac_word" >&5
41440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41441 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
41442   echo $ECHO_N "(cached) $ECHO_C" >&6
41443 else
41444   case $CPPUNIT_CONFIG in
41445   [\\/]* | ?:[\\/]*)
41446   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
41447   ;;
41448   *)
41449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41450 for as_dir in $PATH
41451 do
41452   IFS=$as_save_IFS
41453   test -z "$as_dir" && as_dir=.
41454   for ac_exec_ext in '' $ac_executable_extensions; do
41455   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41456     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41457     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41458     break 2
41459   fi
41460 done
41461 done
41462
41463   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
41464   ;;
41465 esac
41466 fi
41467 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
41468
41469 if test -n "$CPPUNIT_CONFIG"; then
41470   echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
41471 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
41472 else
41473   echo "$as_me:$LINENO: result: no" >&5
41474 echo "${ECHO_T}no" >&6
41475 fi
41476
41477   cppunit_version_min=1.8.0
41478
41479   echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
41480 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
41481   no_cppunit=""
41482   if test "$CPPUNIT_CONFIG" = "no" ; then
41483     no_cppunit=yes
41484   else
41485     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
41486     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
41487     cppunit_version=`$CPPUNIT_CONFIG --version`
41488
41489     cppunit_major_version=`echo $cppunit_version | \
41490            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41491     cppunit_minor_version=`echo $cppunit_version | \
41492            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41493     cppunit_micro_version=`echo $cppunit_version | \
41494            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41495
41496     cppunit_major_min=`echo $cppunit_version_min | \
41497            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41498     cppunit_minor_min=`echo $cppunit_version_min | \
41499            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41500     cppunit_micro_min=`echo $cppunit_version_min | \
41501            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41502
41503     cppunit_version_proper=`expr \
41504         $cppunit_major_version \> $cppunit_major_min \| \
41505         $cppunit_major_version \= $cppunit_major_min \& \
41506         $cppunit_minor_version \> $cppunit_minor_min \| \
41507         $cppunit_major_version \= $cppunit_major_min \& \
41508         $cppunit_minor_version \= $cppunit_minor_min \& \
41509         $cppunit_micro_version \>= $cppunit_micro_min `
41510
41511     if test "$cppunit_version_proper" = "1" ; then
41512       echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
41513 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
41514     else
41515       echo "$as_me:$LINENO: result: no" >&5
41516 echo "${ECHO_T}no" >&6
41517       no_cppunit=yes
41518     fi
41519   fi
41520
41521   if test "x$no_cppunit" = x ; then
41522      echo "$as_me:$LINENO: result: yes" >&5
41523 echo "${ECHO_T}yes" >&6
41524                         SUBDIRS="$SUBDIRS tests"
41525   else
41526      CPPUNIT_CFLAGS=""
41527      CPPUNIT_LIBS=""
41528      echo "$as_me:$LINENO: result: no" >&5
41529 echo "${ECHO_T}no" >&6
41530   fi
41531
41532
41533
41534
41535
41536 for subdir in `echo $SUBDIRS`; do
41537     if test -d ${srcdir}/${subdir} ; then
41538         if test "$wxUSE_GUI" = "yes"; then
41539             if test ${subdir} = "samples"; then
41540                                                 makefiles="samples/Makefile.in $makefiles"
41541                 for sample in `echo $SAMPLES_SUBDIRS`; do
41542                     if test -d $srcdir/samples/$sample; then
41543                         makefiles="samples/$sample/Makefile.in $makefiles"
41544                     fi
41545                 done
41546             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41547             fi
41548         else                                     if test ${subdir} = "samples"; then
41549                 makefiles="samples/Makefile.in samples/console/Makefile.in"
41550             elif test ${subdir} = "utils"; then
41551                 makefiles="utils/HelpGen/Makefile.in \
41552                            utils/HelpGen/src/Makefile.in \
41553                            utils/tex2rtf/Makefile.in \
41554                            utils/tex2rtf/src/Makefile.in"
41555             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41556             fi
41557         fi
41558
41559         for mkin in $makefiles ; do
41560             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
41561                       ac_config_files="$ac_config_files $mk"
41562
41563         done
41564     fi
41565 done
41566
41567
41568 cat >confcache <<\_ACEOF
41569 # This file is a shell script that caches the results of configure
41570 # tests run on this system so they can be shared between configure
41571 # scripts and configure runs, see configure's option --config-cache.
41572 # It is not useful on other systems.  If it contains results you don't
41573 # want to keep, you may remove or edit it.
41574 #
41575 # config.status only pays attention to the cache file if you give it
41576 # the --recheck option to rerun configure.
41577 #
41578 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41579 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41580 # following values.
41581
41582 _ACEOF
41583
41584 # The following way of writing the cache mishandles newlines in values,
41585 # but we know of no workaround that is simple, portable, and efficient.
41586 # So, don't put newlines in cache variables' values.
41587 # Ultrix sh set writes to stderr and can't be redirected directly,
41588 # and sets the high bit in the cache file unless we assign to the vars.
41589 {
41590   (set) 2>&1 |
41591     case `(ac_space=' '; set | grep ac_space) 2>&1` in
41592     *ac_space=\ *)
41593       # `set' does not quote correctly, so add quotes (double-quote
41594       # substitution turns \\\\ into \\, and sed turns \\ into \).
41595       sed -n \
41596         "s/'/'\\\\''/g;
41597           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41598       ;;
41599     *)
41600       # `set' quotes correctly as required by POSIX, so do not add quotes.
41601       sed -n \
41602         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
41603       ;;
41604     esac;
41605 } |
41606   sed '
41607      t clear
41608      : clear
41609      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41610      t end
41611      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41612      : end' >>confcache
41613 if diff $cache_file confcache >/dev/null 2>&1; then :; else
41614   if test -w $cache_file; then
41615     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
41616     cat confcache >$cache_file
41617   else
41618     echo "not updating unwritable cache $cache_file"
41619   fi
41620 fi
41621 rm -f confcache
41622
41623 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41624 # Let make expand exec_prefix.
41625 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41626
41627 # VPATH may cause trouble with some makes, so we remove $(srcdir),
41628 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
41629 # trailing colons and then remove the whole line if VPATH becomes empty
41630 # (actually we leave an empty line to preserve line numbers).
41631 if test "x$srcdir" = x.; then
41632   ac_vpsub='/^[  ]*VPATH[        ]*=/{
41633 s/:*\$(srcdir):*/:/;
41634 s/:*\${srcdir}:*/:/;
41635 s/:*@srcdir@:*/:/;
41636 s/^\([^=]*=[     ]*\):*/\1/;
41637 s/:*$//;
41638 s/^[^=]*=[       ]*$//;
41639 }'
41640 fi
41641
41642 DEFS=-DHAVE_CONFIG_H
41643
41644 ac_libobjs=
41645 ac_ltlibobjs=
41646 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41647   # 1. Remove the extension, and $U if already installed.
41648   ac_i=`echo "$ac_i" |
41649          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
41650   # 2. Add them.
41651   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
41652   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
41653 done
41654 LIBOBJS=$ac_libobjs
41655
41656 LTLIBOBJS=$ac_ltlibobjs
41657
41658
41659
41660 : ${CONFIG_STATUS=./config.status}
41661 ac_clean_files_save=$ac_clean_files
41662 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41663 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41664 echo "$as_me: creating $CONFIG_STATUS" >&6;}
41665 cat >$CONFIG_STATUS <<_ACEOF
41666 #! $SHELL
41667 # Generated by $as_me.
41668 # Run this file to recreate the current configuration.
41669 # Compiler output produced by configure, useful for debugging
41670 # configure, is in config.log if it exists.
41671
41672 debug=false
41673 ac_cs_recheck=false
41674 ac_cs_silent=false
41675 SHELL=\${CONFIG_SHELL-$SHELL}
41676 _ACEOF
41677
41678 cat >>$CONFIG_STATUS <<\_ACEOF
41679 ## --------------------- ##
41680 ## M4sh Initialization.  ##
41681 ## --------------------- ##
41682
41683 # Be Bourne compatible
41684 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41685   emulate sh
41686   NULLCMD=:
41687   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41688   # is contrary to our usage.  Disable this feature.
41689   alias -g '${1+"$@"}'='"$@"'
41690 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
41691   set -o posix
41692 fi
41693 DUALCASE=1; export DUALCASE # for MKS sh
41694
41695 # Support unset when possible.
41696 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
41697   as_unset=unset
41698 else
41699   as_unset=false
41700 fi
41701
41702
41703 # Work around bugs in pre-3.0 UWIN ksh.
41704 $as_unset ENV MAIL MAILPATH
41705 PS1='$ '
41706 PS2='> '
41707 PS4='+ '
41708
41709 # NLS nuisances.
41710 for as_var in \
41711   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41712   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41713   LC_TELEPHONE LC_TIME
41714 do
41715   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
41716     eval $as_var=C; export $as_var
41717   else
41718     $as_unset $as_var
41719   fi
41720 done
41721
41722 # Required to use basename.
41723 if expr a : '\(a\)' >/dev/null 2>&1; then
41724   as_expr=expr
41725 else
41726   as_expr=false
41727 fi
41728
41729 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
41730   as_basename=basename
41731 else
41732   as_basename=false
41733 fi
41734
41735
41736 # Name of the executable.
41737 as_me=`$as_basename "$0" ||
41738 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41739          X"$0" : 'X\(//\)$' \| \
41740          X"$0" : 'X\(/\)$' \| \
41741          .     : '\(.\)' 2>/dev/null ||
41742 echo X/"$0" |
41743     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41744           /^X\/\(\/\/\)$/{ s//\1/; q; }
41745           /^X\/\(\/\).*/{ s//\1/; q; }
41746           s/.*/./; q'`
41747
41748
41749 # PATH needs CR, and LINENO needs CR and PATH.
41750 # Avoid depending upon Character Ranges.
41751 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41752 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41753 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41754 as_cr_digits='0123456789'
41755 as_cr_alnum=$as_cr_Letters$as_cr_digits
41756
41757 # The user is always right.
41758 if test "${PATH_SEPARATOR+set}" != set; then
41759   echo "#! /bin/sh" >conf$$.sh
41760   echo  "exit 0"   >>conf$$.sh
41761   chmod +x conf$$.sh
41762   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41763     PATH_SEPARATOR=';'
41764   else
41765     PATH_SEPARATOR=:
41766   fi
41767   rm -f conf$$.sh
41768 fi
41769
41770
41771   as_lineno_1=$LINENO
41772   as_lineno_2=$LINENO
41773   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41774   test "x$as_lineno_1" != "x$as_lineno_2" &&
41775   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
41776   # Find who we are.  Look in the path if we contain no path at all
41777   # relative or not.
41778   case $0 in
41779     *[\\/]* ) as_myself=$0 ;;
41780     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41781 for as_dir in $PATH
41782 do
41783   IFS=$as_save_IFS
41784   test -z "$as_dir" && as_dir=.
41785   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41786 done
41787
41788        ;;
41789   esac
41790   # We did not find ourselves, most probably we were run as `sh COMMAND'
41791   # in which case we are not to be found in the path.
41792   if test "x$as_myself" = x; then
41793     as_myself=$0
41794   fi
41795   if test ! -f "$as_myself"; then
41796     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41797 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41798    { (exit 1); exit 1; }; }
41799   fi
41800   case $CONFIG_SHELL in
41801   '')
41802     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41803 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41804 do
41805   IFS=$as_save_IFS
41806   test -z "$as_dir" && as_dir=.
41807   for as_base in sh bash ksh sh5; do
41808          case $as_dir in
41809          /*)
41810            if ("$as_dir/$as_base" -c '
41811   as_lineno_1=$LINENO
41812   as_lineno_2=$LINENO
41813   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41814   test "x$as_lineno_1" != "x$as_lineno_2" &&
41815   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
41816              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41817              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41818              CONFIG_SHELL=$as_dir/$as_base
41819              export CONFIG_SHELL
41820              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41821            fi;;
41822          esac
41823        done
41824 done
41825 ;;
41826   esac
41827
41828   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41829   # uniformly replaced by the line number.  The first 'sed' inserts a
41830   # line-number line before each line; the second 'sed' does the real
41831   # work.  The second script uses 'N' to pair each line-number line
41832   # with the numbered line, and appends trailing '-' during
41833   # substitution so that $LINENO is not a special case at line end.
41834   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41835   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
41836   sed '=' <$as_myself |
41837     sed '
41838       N
41839       s,$,-,
41840       : loop
41841       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41842       t loop
41843       s,-$,,
41844       s,^['$as_cr_digits']*\n,,
41845     ' >$as_me.lineno &&
41846   chmod +x $as_me.lineno ||
41847     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41848 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41849    { (exit 1); exit 1; }; }
41850
41851   # Don't try to exec as it changes $[0], causing all sort of problems
41852   # (the dirname of $[0] is not the place where we might find the
41853   # original and so on.  Autoconf is especially sensible to this).
41854   . ./$as_me.lineno
41855   # Exit status is that of the last command.
41856   exit
41857 }
41858
41859
41860 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41861   *c*,-n*) ECHO_N= ECHO_C='
41862 ' ECHO_T='      ' ;;
41863   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41864   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
41865 esac
41866
41867 if expr a : '\(a\)' >/dev/null 2>&1; then
41868   as_expr=expr
41869 else
41870   as_expr=false
41871 fi
41872
41873 rm -f conf$$ conf$$.exe conf$$.file
41874 echo >conf$$.file
41875 if ln -s conf$$.file conf$$ 2>/dev/null; then
41876   # We could just check for DJGPP; but this test a) works b) is more generic
41877   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41878   if test -f conf$$.exe; then
41879     # Don't use ln at all; we don't have any links
41880     as_ln_s='cp -p'
41881   else
41882     as_ln_s='ln -s'
41883   fi
41884 elif ln conf$$.file conf$$ 2>/dev/null; then
41885   as_ln_s=ln
41886 else
41887   as_ln_s='cp -p'
41888 fi
41889 rm -f conf$$ conf$$.exe conf$$.file
41890
41891 if mkdir -p . 2>/dev/null; then
41892   as_mkdir_p=:
41893 else
41894   test -d ./-p && rmdir ./-p
41895   as_mkdir_p=false
41896 fi
41897
41898 as_executable_p="test -f"
41899
41900 # Sed expression to map a string onto a valid CPP name.
41901 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41902
41903 # Sed expression to map a string onto a valid variable name.
41904 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41905
41906
41907 # IFS
41908 # We need space, tab and new line, in precisely that order.
41909 as_nl='
41910 '
41911 IFS="   $as_nl"
41912
41913 # CDPATH.
41914 $as_unset CDPATH
41915
41916 exec 6>&1
41917
41918 # Open the log real soon, to keep \$[0] and so on meaningful, and to
41919 # report actual input values of CONFIG_FILES etc. instead of their
41920 # values after options handling.  Logging --version etc. is OK.
41921 exec 5>>config.log
41922 {
41923   echo
41924   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41925 ## Running $as_me. ##
41926 _ASBOX
41927 } >&5
41928 cat >&5 <<_CSEOF
41929
41930 This file was extended by wxWindows $as_me 2.5.1, which was
41931 generated by GNU Autoconf 2.59.  Invocation command line was
41932
41933   CONFIG_FILES    = $CONFIG_FILES
41934   CONFIG_HEADERS  = $CONFIG_HEADERS
41935   CONFIG_LINKS    = $CONFIG_LINKS
41936   CONFIG_COMMANDS = $CONFIG_COMMANDS
41937   $ $0 $@
41938
41939 _CSEOF
41940 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41941 echo >&5
41942 _ACEOF
41943
41944 # Files that config.status was made for.
41945 if test -n "$ac_config_files"; then
41946   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41947 fi
41948
41949 if test -n "$ac_config_headers"; then
41950   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41951 fi
41952
41953 if test -n "$ac_config_links"; then
41954   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41955 fi
41956
41957 if test -n "$ac_config_commands"; then
41958   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41959 fi
41960
41961 cat >>$CONFIG_STATUS <<\_ACEOF
41962
41963 ac_cs_usage="\
41964 \`$as_me' instantiates files from templates according to the
41965 current configuration.
41966
41967 Usage: $0 [OPTIONS] [FILE]...
41968
41969   -h, --help       print this help, then exit
41970   -V, --version    print version number, then exit
41971   -q, --quiet      do not print progress messages
41972   -d, --debug      don't remove temporary files
41973       --recheck    update $as_me by reconfiguring in the same conditions
41974   --file=FILE[:TEMPLATE]
41975                    instantiate the configuration file FILE
41976   --header=FILE[:TEMPLATE]
41977                    instantiate the configuration header FILE
41978
41979 Configuration files:
41980 $config_files
41981
41982 Configuration headers:
41983 $config_headers
41984
41985 Configuration commands:
41986 $config_commands
41987
41988 Report bugs to <bug-autoconf@gnu.org>."
41989 _ACEOF
41990
41991 cat >>$CONFIG_STATUS <<_ACEOF
41992 ac_cs_version="\\
41993 wxWindows config.status 2.5.1
41994 configured by $0, generated by GNU Autoconf 2.59,
41995   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41996
41997 Copyright (C) 2003 Free Software Foundation, Inc.
41998 This config.status script is free software; the Free Software Foundation
41999 gives unlimited permission to copy, distribute and modify it."
42000 srcdir=$srcdir
42001 INSTALL="$INSTALL"
42002 _ACEOF
42003
42004 cat >>$CONFIG_STATUS <<\_ACEOF
42005 # If no file are specified by the user, then we need to provide default
42006 # value.  By we need to know if files were specified by the user.
42007 ac_need_defaults=:
42008 while test $# != 0
42009 do
42010   case $1 in
42011   --*=*)
42012     ac_option=`expr "x$1" : 'x\([^=]*\)='`
42013     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
42014     ac_shift=:
42015     ;;
42016   -*)
42017     ac_option=$1
42018     ac_optarg=$2
42019     ac_shift=shift
42020     ;;
42021   *) # This is not an option, so the user has probably given explicit
42022      # arguments.
42023      ac_option=$1
42024      ac_need_defaults=false;;
42025   esac
42026
42027   case $ac_option in
42028   # Handling of the options.
42029 _ACEOF
42030 cat >>$CONFIG_STATUS <<\_ACEOF
42031   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42032     ac_cs_recheck=: ;;
42033   --version | --vers* | -V )
42034     echo "$ac_cs_version"; exit 0 ;;
42035   --he | --h)
42036     # Conflict between --help and --header
42037     { { echo "$as_me:$LINENO: error: ambiguous option: $1
42038 Try \`$0 --help' for more information." >&5
42039 echo "$as_me: error: ambiguous option: $1
42040 Try \`$0 --help' for more information." >&2;}
42041    { (exit 1); exit 1; }; };;
42042   --help | --hel | -h )
42043     echo "$ac_cs_usage"; exit 0 ;;
42044   --debug | --d* | -d )
42045     debug=: ;;
42046   --file | --fil | --fi | --f )
42047     $ac_shift
42048     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
42049     ac_need_defaults=false;;
42050   --header | --heade | --head | --hea )
42051     $ac_shift
42052     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
42053     ac_need_defaults=false;;
42054   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42055   | -silent | --silent | --silen | --sile | --sil | --si | --s)
42056     ac_cs_silent=: ;;
42057
42058   # This is an error.
42059   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
42060 Try \`$0 --help' for more information." >&5
42061 echo "$as_me: error: unrecognized option: $1
42062 Try \`$0 --help' for more information." >&2;}
42063    { (exit 1); exit 1; }; } ;;
42064
42065   *) ac_config_targets="$ac_config_targets $1" ;;
42066
42067   esac
42068   shift
42069 done
42070
42071 ac_configure_extra_args=
42072
42073 if $ac_cs_silent; then
42074   exec 6>/dev/null
42075   ac_configure_extra_args="$ac_configure_extra_args --silent"
42076 fi
42077
42078 _ACEOF
42079 cat >>$CONFIG_STATUS <<_ACEOF
42080 if \$ac_cs_recheck; then
42081   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
42082   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42083 fi
42084
42085 _ACEOF
42086
42087 cat >>$CONFIG_STATUS <<_ACEOF
42088 #
42089 # INIT-COMMANDS section.
42090 #
42091
42092
42093             TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
42094             LN_S="${LN_S}"
42095
42096
42097
42098 _ACEOF
42099
42100
42101
42102 cat >>$CONFIG_STATUS <<\_ACEOF
42103 for ac_config_target in $ac_config_targets
42104 do
42105   case "$ac_config_target" in
42106   # Handling of arguments.
42107   "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
42108   "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
42109   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42110   "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
42111   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
42112   "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
42113   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42114 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42115    { (exit 1); exit 1; }; };;
42116   esac
42117 done
42118
42119 # If the user did not use the arguments to specify the items to instantiate,
42120 # then the envvar interface is used.  Set only those that are not.
42121 # We use the long form for the default assignment because of an extremely
42122 # bizarre bug on SunOS 4.1.3.
42123 if $ac_need_defaults; then
42124   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42125   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42126   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42127 fi
42128
42129 # Have a temporary directory for convenience.  Make it in the build tree
42130 # simply because there is no reason to put it here, and in addition,
42131 # creating and moving files from /tmp can sometimes cause problems.
42132 # Create a temporary directory, and hook for its removal unless debugging.
42133 $debug ||
42134 {
42135   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
42136   trap '{ (exit 1); exit 1; }' 1 2 13 15
42137 }
42138
42139 # Create a (secure) tmp directory for tmp files.
42140
42141 {
42142   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
42143   test -n "$tmp" && test -d "$tmp"
42144 }  ||
42145 {
42146   tmp=./confstat$$-$RANDOM
42147   (umask 077 && mkdir $tmp)
42148 } ||
42149 {
42150    echo "$me: cannot create a temporary directory in ." >&2
42151    { (exit 1); exit 1; }
42152 }
42153
42154 _ACEOF
42155
42156 cat >>$CONFIG_STATUS <<_ACEOF
42157
42158 #
42159 # CONFIG_FILES section.
42160 #
42161
42162 # No need to generate the scripts if there are no CONFIG_FILES.
42163 # This happens for instance when ./config.status config.h
42164 if test -n "\$CONFIG_FILES"; then
42165   # Protect against being on the right side of a sed subst in config.status.
42166   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
42167    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
42168 s,@SHELL@,$SHELL,;t t
42169 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
42170 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
42171 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
42172 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
42173 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
42174 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
42175 s,@exec_prefix@,$exec_prefix,;t t
42176 s,@prefix@,$prefix,;t t
42177 s,@program_transform_name@,$program_transform_name,;t t
42178 s,@bindir@,$bindir,;t t
42179 s,@sbindir@,$sbindir,;t t
42180 s,@libexecdir@,$libexecdir,;t t
42181 s,@datadir@,$datadir,;t t
42182 s,@sysconfdir@,$sysconfdir,;t t
42183 s,@sharedstatedir@,$sharedstatedir,;t t
42184 s,@localstatedir@,$localstatedir,;t t
42185 s,@libdir@,$libdir,;t t
42186 s,@includedir@,$includedir,;t t
42187 s,@oldincludedir@,$oldincludedir,;t t
42188 s,@infodir@,$infodir,;t t
42189 s,@mandir@,$mandir,;t t
42190 s,@build_alias@,$build_alias,;t t
42191 s,@host_alias@,$host_alias,;t t
42192 s,@target_alias@,$target_alias,;t t
42193 s,@DEFS@,$DEFS,;t t
42194 s,@ECHO_C@,$ECHO_C,;t t
42195 s,@ECHO_N@,$ECHO_N,;t t
42196 s,@ECHO_T@,$ECHO_T,;t t
42197 s,@LIBS@,$LIBS,;t t
42198 s,@build@,$build,;t t
42199 s,@build_cpu@,$build_cpu,;t t
42200 s,@build_vendor@,$build_vendor,;t t
42201 s,@build_os@,$build_os,;t t
42202 s,@host@,$host,;t t
42203 s,@host_cpu@,$host_cpu,;t t
42204 s,@host_vendor@,$host_vendor,;t t
42205 s,@host_os@,$host_os,;t t
42206 s,@target@,$target,;t t
42207 s,@target_cpu@,$target_cpu,;t t
42208 s,@target_vendor@,$target_vendor,;t t
42209 s,@target_os@,$target_os,;t t
42210 s,@CC@,$CC,;t t
42211 s,@CFLAGS@,$CFLAGS,;t t
42212 s,@LDFLAGS@,$LDFLAGS,;t t
42213 s,@CPPFLAGS@,$CPPFLAGS,;t t
42214 s,@ac_ct_CC@,$ac_ct_CC,;t t
42215 s,@EXEEXT@,$EXEEXT,;t t
42216 s,@OBJEXT@,$OBJEXT,;t t
42217 s,@CPP@,$CPP,;t t
42218 s,@EGREP@,$EGREP,;t t
42219 s,@CXX@,$CXX,;t t
42220 s,@CXXFLAGS@,$CXXFLAGS,;t t
42221 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
42222 s,@RANLIB@,$RANLIB,;t t
42223 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
42224 s,@AR@,$AR,;t t
42225 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
42226 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
42227 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
42228 s,@STRIP@,$STRIP,;t t
42229 s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
42230 s,@LN_S@,$LN_S,;t t
42231 s,@CXXCPP@,$CXXCPP,;t t
42232 s,@subdirs@,$subdirs,;t t
42233 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
42234 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
42235 s,@GTK_LIBS@,$GTK_LIBS,;t t
42236 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
42237 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
42238 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
42239 s,@X_CFLAGS@,$X_CFLAGS,;t t
42240 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
42241 s,@X_LIBS@,$X_LIBS,;t t
42242 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
42243 s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
42244 s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
42245 s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
42246 s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
42247 s,@RESCOMP@,$RESCOMP,;t t
42248 s,@DEREZ@,$DEREZ,;t t
42249 s,@SETFILE@,$SETFILE,;t t
42250 s,@LIBICONV@,$LIBICONV,;t t
42251 s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
42252 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
42253 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
42254 s,@SDL_LIBS@,$SDL_LIBS,;t t
42255 s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
42256 s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
42257 s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
42258 s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
42259 s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
42260 s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
42261 s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
42262 s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
42263 s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
42264 s,@VENDOR@,$VENDOR,;t t
42265 s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
42266 s,@WXUNIV@,$WXUNIV,;t t
42267 s,@MONOLITHIC@,$MONOLITHIC,;t t
42268 s,@USE_PLUGINS@,$USE_PLUGINS,;t t
42269 s,@EXTRALIBS@,$EXTRALIBS,;t t
42270 s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
42271 s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
42272 s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
42273 s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
42274 s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
42275 s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
42276 s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
42277 s,@UNICODE@,$UNICODE,;t t
42278 s,@BUILD@,$BUILD,;t t
42279 s,@DEBUG_INFO@,$DEBUG_INFO,;t t
42280 s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
42281 s,@SHARED@,$SHARED,;t t
42282 s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
42283 s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
42284 s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
42285 s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
42286 s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
42287 s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
42288 s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
42289 s,@SET_MAKE@,$SET_MAKE,;t t
42290 s,@MAKE_SET@,$MAKE_SET,;t t
42291 s,@ac_ct_AR@,$ac_ct_AR,;t t
42292 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
42293 s,@NM@,$NM,;t t
42294 s,@ac_ct_NM@,$ac_ct_NM,;t t
42295 s,@INSTALL_DIR@,$INSTALL_DIR,;t t
42296 s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
42297 s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
42298 s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
42299 s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
42300 s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
42301 s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
42302 s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
42303 s,@SO_SUFFIX@,$SO_SUFFIX,;t t
42304 s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
42305 s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
42306 s,@LIBPREFIX@,$LIBPREFIX,;t t
42307 s,@LIBEXT@,$LIBEXT,;t t
42308 s,@DLLPREFIX@,$DLLPREFIX,;t t
42309 s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
42310 s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
42311 s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
42312 s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
42313 s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
42314 s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
42315 s,@PIC_FLAG@,$PIC_FLAG,;t t
42316 s,@USE_SOVERSION@,$USE_SOVERSION,;t t
42317 s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
42318 s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
42319 s,@USE_MACVERSION@,$USE_MACVERSION,;t t
42320 s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
42321 s,@SONAME_FLAG@,$SONAME_FLAG,;t t
42322 s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
42323 s,@GCC_PCH@,$GCC_PCH,;t t
42324 s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
42325 s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
42326 s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
42327 s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
42328 s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
42329 s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
42330 s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
42331 s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
42332 s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
42333 s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
42334 s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
42335 s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
42336 s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
42337 s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
42338 s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
42339 s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
42340 s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
42341 s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
42342 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
42343 s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
42344 s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
42345 s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
42346 s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
42347 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
42348 s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
42349 s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
42350 s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
42351 s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
42352 s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
42353 s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
42354 s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
42355 s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
42356 s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
42357 s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
42358 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
42359 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
42360 s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
42361 s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
42362 s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
42363 s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
42364 s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
42365 s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
42366 s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
42367 s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
42368 s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
42369 s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
42370 s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
42371 s,@COND_SHARED_0@,$COND_SHARED_0,;t t
42372 s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
42373 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42374 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42375 s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
42376 s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
42377 s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
42378 s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
42379 s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
42380 s,@COND_SHARED_1@,$COND_SHARED_1,;t t
42381 s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
42382 s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
42383 s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
42384 s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
42385 s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
42386 s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
42387 s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
42388 s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
42389 s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
42390 s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
42391 s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
42392 s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
42393 s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
42394 s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
42395 s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
42396 s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
42397 s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
42398 s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
42399 s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
42400 s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
42401 s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
42402 s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
42403 s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
42404 s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
42405 s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
42406 s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
42407 s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
42408 s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
42409 s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
42410 s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
42411 s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
42412 s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
42413 s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42414 s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42415 s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
42416 s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
42417 s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
42418 s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
42419 s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
42420 s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
42421 s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
42422 s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
42423 s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t
42424 s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
42425 s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
42426 s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
42427 s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
42428 s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
42429 s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
42430 s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
42431 s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
42432 s,@PATH_IFS@,$PATH_IFS,;t t
42433 s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
42434 s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
42435 s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
42436 s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
42437 s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
42438 s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
42439 s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
42440 s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
42441 s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
42442 s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
42443 s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
42444 s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
42445 s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
42446 s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
42447 s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
42448 s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
42449 s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
42450 s,@WX_ALL@,$WX_ALL,;t t
42451 s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
42452 s,@SHARED_LD@,$SHARED_LD,;t t
42453 s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
42454 s,@STATIC_FLAG@,$STATIC_FLAG,;t t
42455 s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
42456 s,@USE_GUI@,$USE_GUI,;t t
42457 s,@AFMINSTALL@,$AFMINSTALL,;t t
42458 s,@WIN32INSTALL@,$WIN32INSTALL,;t t
42459 s,@TOOLKIT@,$TOOLKIT,;t t
42460 s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
42461 s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
42462 s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
42463 s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
42464 s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
42465 s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
42466 s,@cross_compiling@,$cross_compiling,;t t
42467 s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
42468 s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
42469 s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
42470 s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
42471 s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
42472 s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
42473 s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
42474 s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
42475 s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
42476 s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
42477 s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
42478 s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
42479 s,@ALL_HEADERS@,$ALL_HEADERS,;t t
42480 s,@ALL_SOURCES@,$ALL_SOURCES,;t t
42481 s,@GUIDIST@,$GUIDIST,;t t
42482 s,@PORT_FILES@,$PORT_FILES,;t t
42483 s,@DISTDIR@,$DISTDIR,;t t
42484 s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
42485 s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
42486 s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
42487 s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
42488 s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
42489 s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
42490 s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
42491 s,@RESFLAGS@,$RESFLAGS,;t t
42492 s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
42493 s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
42494 s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
42495 s,@LIBWXMACRES@,$LIBWXMACRES,;t t
42496 s,@MACRESCOMP@,$MACRESCOMP,;t t
42497 s,@MACSETFILE@,$MACSETFILE,;t t
42498 s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
42499 s,@GCC@,$GCC,;t t
42500 s,@GCC_SEARCHES_USR_LOCAL_INCLUDE@,$GCC_SEARCHES_USR_LOCAL_INCLUDE,;t t
42501 s,@DLLTOOL@,$DLLTOOL,;t t
42502 s,@AS@,$AS,;t t
42503 s,@LD@,$LD,;t t
42504 s,@MAKEINFO@,$MAKEINFO,;t t
42505 s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
42506 s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
42507 s,@LIBOBJS@,$LIBOBJS,;t t
42508 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
42509 CEOF
42510
42511 _ACEOF
42512
42513   cat >>$CONFIG_STATUS <<\_ACEOF
42514   # Split the substitutions into bite-sized pieces for seds with
42515   # small command number limits, like on Digital OSF/1 and HP-UX.
42516   ac_max_sed_lines=48
42517   ac_sed_frag=1 # Number of current file.
42518   ac_beg=1 # First line for current file.
42519   ac_end=$ac_max_sed_lines # Line after last line for current file.
42520   ac_more_lines=:
42521   ac_sed_cmds=
42522   while $ac_more_lines; do
42523     if test $ac_beg -gt 1; then
42524       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42525     else
42526       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42527     fi
42528     if test ! -s $tmp/subs.frag; then
42529       ac_more_lines=false
42530     else
42531       # The purpose of the label and of the branching condition is to
42532       # speed up the sed processing (if there are no `@' at all, there
42533       # is no need to browse any of the substitutions).
42534       # These are the two extra sed commands mentioned above.
42535       (echo ':t
42536   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
42537       if test -z "$ac_sed_cmds"; then
42538         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
42539       else
42540         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
42541       fi
42542       ac_sed_frag=`expr $ac_sed_frag + 1`
42543       ac_beg=$ac_end
42544       ac_end=`expr $ac_end + $ac_max_sed_lines`
42545     fi
42546   done
42547   if test -z "$ac_sed_cmds"; then
42548     ac_sed_cmds=cat
42549   fi
42550 fi # test -n "$CONFIG_FILES"
42551
42552 _ACEOF
42553 cat >>$CONFIG_STATUS <<\_ACEOF
42554 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
42555   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42556   case $ac_file in
42557   - | *:- | *:-:* ) # input from stdin
42558         cat >$tmp/stdin
42559         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42560         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
42561   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42562         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
42563   * )   ac_file_in=$ac_file.in ;;
42564   esac
42565
42566   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
42567   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42568 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42569          X"$ac_file" : 'X\(//\)[^/]' \| \
42570          X"$ac_file" : 'X\(//\)$' \| \
42571          X"$ac_file" : 'X\(/\)' \| \
42572          .     : '\(.\)' 2>/dev/null ||
42573 echo X"$ac_file" |
42574     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42575           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42576           /^X\(\/\/\)$/{ s//\1/; q; }
42577           /^X\(\/\).*/{ s//\1/; q; }
42578           s/.*/./; q'`
42579   { if $as_mkdir_p; then
42580     mkdir -p "$ac_dir"
42581   else
42582     as_dir="$ac_dir"
42583     as_dirs=
42584     while test ! -d "$as_dir"; do
42585       as_dirs="$as_dir $as_dirs"
42586       as_dir=`(dirname "$as_dir") 2>/dev/null ||
42587 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42588          X"$as_dir" : 'X\(//\)[^/]' \| \
42589          X"$as_dir" : 'X\(//\)$' \| \
42590          X"$as_dir" : 'X\(/\)' \| \
42591          .     : '\(.\)' 2>/dev/null ||
42592 echo X"$as_dir" |
42593     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42594           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42595           /^X\(\/\/\)$/{ s//\1/; q; }
42596           /^X\(\/\).*/{ s//\1/; q; }
42597           s/.*/./; q'`
42598     done
42599     test ! -n "$as_dirs" || mkdir $as_dirs
42600   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42601 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42602    { (exit 1); exit 1; }; }; }
42603
42604   ac_builddir=.
42605
42606 if test "$ac_dir" != .; then
42607   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42608   # A "../" for each directory in $ac_dir_suffix.
42609   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42610 else
42611   ac_dir_suffix= ac_top_builddir=
42612 fi
42613
42614 case $srcdir in
42615   .)  # No --srcdir option.  We are building in place.
42616     ac_srcdir=.
42617     if test -z "$ac_top_builddir"; then
42618        ac_top_srcdir=.
42619     else
42620        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42621     fi ;;
42622   [\\/]* | ?:[\\/]* )  # Absolute path.
42623     ac_srcdir=$srcdir$ac_dir_suffix;
42624     ac_top_srcdir=$srcdir ;;
42625   *) # Relative path.
42626     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42627     ac_top_srcdir=$ac_top_builddir$srcdir ;;
42628 esac
42629
42630 # Do not use `cd foo && pwd` to compute absolute paths, because
42631 # the directories may not exist.
42632 case `pwd` in
42633 .) ac_abs_builddir="$ac_dir";;
42634 *)
42635   case "$ac_dir" in
42636   .) ac_abs_builddir=`pwd`;;
42637   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42638   *) ac_abs_builddir=`pwd`/"$ac_dir";;
42639   esac;;
42640 esac
42641 case $ac_abs_builddir in
42642 .) ac_abs_top_builddir=${ac_top_builddir}.;;
42643 *)
42644   case ${ac_top_builddir}. in
42645   .) ac_abs_top_builddir=$ac_abs_builddir;;
42646   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42647   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42648   esac;;
42649 esac
42650 case $ac_abs_builddir in
42651 .) ac_abs_srcdir=$ac_srcdir;;
42652 *)
42653   case $ac_srcdir in
42654   .) ac_abs_srcdir=$ac_abs_builddir;;
42655   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42656   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42657   esac;;
42658 esac
42659 case $ac_abs_builddir in
42660 .) ac_abs_top_srcdir=$ac_top_srcdir;;
42661 *)
42662   case $ac_top_srcdir in
42663   .) ac_abs_top_srcdir=$ac_abs_builddir;;
42664   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42665   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42666   esac;;
42667 esac
42668
42669
42670   case $INSTALL in
42671   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42672   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
42673   esac
42674
42675   if test x"$ac_file" != x-; then
42676     { echo "$as_me:$LINENO: creating $ac_file" >&5
42677 echo "$as_me: creating $ac_file" >&6;}
42678     rm -f "$ac_file"
42679   fi
42680   # Let's still pretend it is `configure' which instantiates (i.e., don't
42681   # use $as_me), people would be surprised to read:
42682   #    /* config.h.  Generated by config.status.  */
42683   if test x"$ac_file" = x-; then
42684     configure_input=
42685   else
42686     configure_input="$ac_file.  "
42687   fi
42688   configure_input=$configure_input"Generated from `echo $ac_file_in |
42689                                      sed 's,.*/,,'` by configure."
42690
42691   # First look for the input files in the build tree, otherwise in the
42692   # src tree.
42693   ac_file_inputs=`IFS=:
42694     for f in $ac_file_in; do
42695       case $f in
42696       -) echo $tmp/stdin ;;
42697       [\\/$]*)
42698          # Absolute (can't be DOS-style, as IFS=:)
42699          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42700 echo "$as_me: error: cannot find input file: $f" >&2;}
42701    { (exit 1); exit 1; }; }
42702          echo "$f";;
42703       *) # Relative
42704          if test -f "$f"; then
42705            # Build tree
42706            echo "$f"
42707          elif test -f "$srcdir/$f"; then
42708            # Source tree
42709            echo "$srcdir/$f"
42710          else
42711            # /dev/null tree
42712            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42713 echo "$as_me: error: cannot find input file: $f" >&2;}
42714    { (exit 1); exit 1; }; }
42715          fi;;
42716       esac
42717     done` || { (exit 1); exit 1; }
42718 _ACEOF
42719 cat >>$CONFIG_STATUS <<_ACEOF
42720   sed "$ac_vpsub
42721 $extrasub
42722 _ACEOF
42723 cat >>$CONFIG_STATUS <<\_ACEOF
42724 :t
42725 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42726 s,@configure_input@,$configure_input,;t t
42727 s,@srcdir@,$ac_srcdir,;t t
42728 s,@abs_srcdir@,$ac_abs_srcdir,;t t
42729 s,@top_srcdir@,$ac_top_srcdir,;t t
42730 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
42731 s,@builddir@,$ac_builddir,;t t
42732 s,@abs_builddir@,$ac_abs_builddir,;t t
42733 s,@top_builddir@,$ac_top_builddir,;t t
42734 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
42735 s,@INSTALL@,$ac_INSTALL,;t t
42736 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
42737   rm -f $tmp/stdin
42738   if test x"$ac_file" != x-; then
42739     mv $tmp/out $ac_file
42740   else
42741     cat $tmp/out
42742     rm -f $tmp/out
42743   fi
42744
42745 done
42746 _ACEOF
42747 cat >>$CONFIG_STATUS <<\_ACEOF
42748
42749 #
42750 # CONFIG_HEADER section.
42751 #
42752
42753 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
42754 # NAME is the cpp macro being defined and VALUE is the value it is being given.
42755 #
42756 # ac_d sets the value in "#define NAME VALUE" lines.
42757 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
42758 ac_dB='[         ].*$,\1#\2'
42759 ac_dC=' '
42760 ac_dD=',;t'
42761 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
42762 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
42763 ac_uB='$,\1#\2define\3'
42764 ac_uC=' '
42765 ac_uD=',;t'
42766
42767 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
42768   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42769   case $ac_file in
42770   - | *:- | *:-:* ) # input from stdin
42771         cat >$tmp/stdin
42772         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42773         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
42774   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42775         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
42776   * )   ac_file_in=$ac_file.in ;;
42777   esac
42778
42779   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
42780 echo "$as_me: creating $ac_file" >&6;}
42781
42782   # First look for the input files in the build tree, otherwise in the
42783   # src tree.
42784   ac_file_inputs=`IFS=:
42785     for f in $ac_file_in; do
42786       case $f in
42787       -) echo $tmp/stdin ;;
42788       [\\/$]*)
42789          # Absolute (can't be DOS-style, as IFS=:)
42790          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42791 echo "$as_me: error: cannot find input file: $f" >&2;}
42792    { (exit 1); exit 1; }; }
42793          # Do quote $f, to prevent DOS paths from being IFS'd.
42794          echo "$f";;
42795       *) # Relative
42796          if test -f "$f"; then
42797            # Build tree
42798            echo "$f"
42799          elif test -f "$srcdir/$f"; then
42800            # Source tree
42801            echo "$srcdir/$f"
42802          else
42803            # /dev/null tree
42804            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
42805 echo "$as_me: error: cannot find input file: $f" >&2;}
42806    { (exit 1); exit 1; }; }
42807          fi;;
42808       esac
42809     done` || { (exit 1); exit 1; }
42810   # Remove the trailing spaces.
42811   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
42812
42813 _ACEOF
42814
42815 # Transform confdefs.h into two sed scripts, `conftest.defines' and
42816 # `conftest.undefs', that substitutes the proper values into
42817 # config.h.in to produce config.h.  The first handles `#define'
42818 # templates, and the second `#undef' templates.
42819 # And first: Protect against being on the right side of a sed subst in
42820 # config.status.  Protect against being in an unquoted here document
42821 # in config.status.
42822 rm -f conftest.defines conftest.undefs
42823 # Using a here document instead of a string reduces the quoting nightmare.
42824 # Putting comments in sed scripts is not portable.
42825 #
42826 # `end' is used to avoid that the second main sed command (meant for
42827 # 0-ary CPP macros) applies to n-ary macro definitions.
42828 # See the Autoconf documentation for `clear'.
42829 cat >confdef2sed.sed <<\_ACEOF
42830 s/[\\&,]/\\&/g
42831 s,[\\$`],\\&,g
42832 t clear
42833 : clear
42834 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
42835 t end
42836 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
42837 : end
42838 _ACEOF
42839 # If some macros were called several times there might be several times
42840 # the same #defines, which is useless.  Nevertheless, we may not want to
42841 # sort them, since we want the *last* AC-DEFINE to be honored.
42842 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
42843 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
42844 rm -f confdef2sed.sed
42845
42846 # This sed command replaces #undef with comments.  This is necessary, for
42847 # example, in the case of _POSIX_SOURCE, which is predefined and required
42848 # on some systems where configure will not decide to define it.
42849 cat >>conftest.undefs <<\_ACEOF
42850 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
42851 _ACEOF
42852
42853 # Break up conftest.defines because some shells have a limit on the size
42854 # of here documents, and old seds have small limits too (100 cmds).
42855 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
42856 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
42857 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
42858 echo '  :' >>$CONFIG_STATUS
42859 rm -f conftest.tail
42860 while grep . conftest.defines >/dev/null
42861 do
42862   # Write a limited-size here document to $tmp/defines.sed.
42863   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
42864   # Speed up: don't consider the non `#define' lines.
42865   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
42866   # Work around the forget-to-reset-the-flag bug.
42867   echo 't clr' >>$CONFIG_STATUS
42868   echo ': clr' >>$CONFIG_STATUS
42869   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
42870   echo 'CEOF
42871   sed -f $tmp/defines.sed $tmp/in >$tmp/out
42872   rm -f $tmp/in
42873   mv $tmp/out $tmp/in
42874 ' >>$CONFIG_STATUS
42875   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
42876   rm -f conftest.defines
42877   mv conftest.tail conftest.defines
42878 done
42879 rm -f conftest.defines
42880 echo '  fi # grep' >>$CONFIG_STATUS
42881 echo >>$CONFIG_STATUS
42882
42883 # Break up conftest.undefs because some shells have a limit on the size
42884 # of here documents, and old seds have small limits too (100 cmds).
42885 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
42886 rm -f conftest.tail
42887 while grep . conftest.undefs >/dev/null
42888 do
42889   # Write a limited-size here document to $tmp/undefs.sed.
42890   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
42891   # Speed up: don't consider the non `#undef'
42892   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
42893   # Work around the forget-to-reset-the-flag bug.
42894   echo 't clr' >>$CONFIG_STATUS
42895   echo ': clr' >>$CONFIG_STATUS
42896   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
42897   echo 'CEOF
42898   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
42899   rm -f $tmp/in
42900   mv $tmp/out $tmp/in
42901 ' >>$CONFIG_STATUS
42902   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
42903   rm -f conftest.undefs
42904   mv conftest.tail conftest.undefs
42905 done
42906 rm -f conftest.undefs
42907
42908 cat >>$CONFIG_STATUS <<\_ACEOF
42909   # Let's still pretend it is `configure' which instantiates (i.e., don't
42910   # use $as_me), people would be surprised to read:
42911   #    /* config.h.  Generated by config.status.  */
42912   if test x"$ac_file" = x-; then
42913     echo "/* Generated by configure.  */" >$tmp/config.h
42914   else
42915     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
42916   fi
42917   cat $tmp/in >>$tmp/config.h
42918   rm -f $tmp/in
42919   if test x"$ac_file" != x-; then
42920     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
42921       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42922 echo "$as_me: $ac_file is unchanged" >&6;}
42923     else
42924       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42925 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42926          X"$ac_file" : 'X\(//\)[^/]' \| \
42927          X"$ac_file" : 'X\(//\)$' \| \
42928          X"$ac_file" : 'X\(/\)' \| \
42929          .     : '\(.\)' 2>/dev/null ||
42930 echo X"$ac_file" |
42931     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42932           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42933           /^X\(\/\/\)$/{ s//\1/; q; }
42934           /^X\(\/\).*/{ s//\1/; q; }
42935           s/.*/./; q'`
42936       { if $as_mkdir_p; then
42937     mkdir -p "$ac_dir"
42938   else
42939     as_dir="$ac_dir"
42940     as_dirs=
42941     while test ! -d "$as_dir"; do
42942       as_dirs="$as_dir $as_dirs"
42943       as_dir=`(dirname "$as_dir") 2>/dev/null ||
42944 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42945          X"$as_dir" : 'X\(//\)[^/]' \| \
42946          X"$as_dir" : 'X\(//\)$' \| \
42947          X"$as_dir" : 'X\(/\)' \| \
42948          .     : '\(.\)' 2>/dev/null ||
42949 echo X"$as_dir" |
42950     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42951           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42952           /^X\(\/\/\)$/{ s//\1/; q; }
42953           /^X\(\/\).*/{ s//\1/; q; }
42954           s/.*/./; q'`
42955     done
42956     test ! -n "$as_dirs" || mkdir $as_dirs
42957   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42958 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42959    { (exit 1); exit 1; }; }; }
42960
42961       rm -f $ac_file
42962       mv $tmp/config.h $ac_file
42963     fi
42964   else
42965     cat $tmp/config.h
42966     rm -f $tmp/config.h
42967   fi
42968 done
42969 _ACEOF
42970 cat >>$CONFIG_STATUS <<\_ACEOF
42971
42972 #
42973 # CONFIG_COMMANDS section.
42974 #
42975 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42976   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42977   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42978   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42979 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42980          X"$ac_dest" : 'X\(//\)[^/]' \| \
42981          X"$ac_dest" : 'X\(//\)$' \| \
42982          X"$ac_dest" : 'X\(/\)' \| \
42983          .     : '\(.\)' 2>/dev/null ||
42984 echo X"$ac_dest" |
42985     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42986           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42987           /^X\(\/\/\)$/{ s//\1/; q; }
42988           /^X\(\/\).*/{ s//\1/; q; }
42989           s/.*/./; q'`
42990   { if $as_mkdir_p; then
42991     mkdir -p "$ac_dir"
42992   else
42993     as_dir="$ac_dir"
42994     as_dirs=
42995     while test ! -d "$as_dir"; do
42996       as_dirs="$as_dir $as_dirs"
42997       as_dir=`(dirname "$as_dir") 2>/dev/null ||
42998 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42999          X"$as_dir" : 'X\(//\)[^/]' \| \
43000          X"$as_dir" : 'X\(//\)$' \| \
43001          X"$as_dir" : 'X\(/\)' \| \
43002          .     : '\(.\)' 2>/dev/null ||
43003 echo X"$as_dir" |
43004     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43005           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43006           /^X\(\/\/\)$/{ s//\1/; q; }
43007           /^X\(\/\).*/{ s//\1/; q; }
43008           s/.*/./; q'`
43009     done
43010     test ! -n "$as_dirs" || mkdir $as_dirs
43011   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43012 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43013    { (exit 1); exit 1; }; }; }
43014
43015   ac_builddir=.
43016
43017 if test "$ac_dir" != .; then
43018   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43019   # A "../" for each directory in $ac_dir_suffix.
43020   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43021 else
43022   ac_dir_suffix= ac_top_builddir=
43023 fi
43024
43025 case $srcdir in
43026   .)  # No --srcdir option.  We are building in place.
43027     ac_srcdir=.
43028     if test -z "$ac_top_builddir"; then
43029        ac_top_srcdir=.
43030     else
43031        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43032     fi ;;
43033   [\\/]* | ?:[\\/]* )  # Absolute path.
43034     ac_srcdir=$srcdir$ac_dir_suffix;
43035     ac_top_srcdir=$srcdir ;;
43036   *) # Relative path.
43037     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43038     ac_top_srcdir=$ac_top_builddir$srcdir ;;
43039 esac
43040
43041 # Do not use `cd foo && pwd` to compute absolute paths, because
43042 # the directories may not exist.
43043 case `pwd` in
43044 .) ac_abs_builddir="$ac_dir";;
43045 *)
43046   case "$ac_dir" in
43047   .) ac_abs_builddir=`pwd`;;
43048   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43049   *) ac_abs_builddir=`pwd`/"$ac_dir";;
43050   esac;;
43051 esac
43052 case $ac_abs_builddir in
43053 .) ac_abs_top_builddir=${ac_top_builddir}.;;
43054 *)
43055   case ${ac_top_builddir}. in
43056   .) ac_abs_top_builddir=$ac_abs_builddir;;
43057   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43058   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43059   esac;;
43060 esac
43061 case $ac_abs_builddir in
43062 .) ac_abs_srcdir=$ac_srcdir;;
43063 *)
43064   case $ac_srcdir in
43065   .) ac_abs_srcdir=$ac_abs_builddir;;
43066   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43067   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43068   esac;;
43069 esac
43070 case $ac_abs_builddir in
43071 .) ac_abs_top_srcdir=$ac_top_srcdir;;
43072 *)
43073   case $ac_top_srcdir in
43074   .) ac_abs_top_srcdir=$ac_abs_builddir;;
43075   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43076   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43077   esac;;
43078 esac
43079
43080
43081   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
43082 echo "$as_me: executing $ac_dest commands" >&6;}
43083   case $ac_dest in
43084     default )
43085                                                                                                 if test ! -h wx-config; then
43086                 chmod +x wx-config
43087                 mv wx-config wx${TOOLCHAIN_NAME}-config
43088                 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
43089             fi
43090
43091             if test ! -d lib; then
43092               mkdir lib
43093             fi
43094             if test ! -d lib/wx; then
43095               mkdir lib/wx
43096             fi
43097             if test ! -d lib/wx/include; then
43098               mkdir lib/wx/include
43099             fi
43100             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
43101               mkdir lib/wx/include/${TOOLCHAIN_NAME}
43102             fi
43103             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
43104               mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
43105             fi
43106             if test -f setup.h; then
43107               mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
43108             fi
43109            ;;
43110   esac
43111 done
43112 _ACEOF
43113
43114 cat >>$CONFIG_STATUS <<\_ACEOF
43115
43116 { (exit 0); exit 0; }
43117 _ACEOF
43118 chmod +x $CONFIG_STATUS
43119 ac_clean_files=$ac_clean_files_save
43120
43121
43122 # configure is writing to config.log, and then calls config.status.
43123 # config.status does its own redirection, appending to config.log.
43124 # Unfortunately, on DOS this fails, as config.log is still kept open
43125 # by configure, so config.status won't be able to write to it; its
43126 # output is simply discarded.  So we exec the FD to /dev/null,
43127 # effectively closing config.log, so it can be properly (re)opened and
43128 # appended to by config.status.  When coming back to configure, we
43129 # need to make the FD available again.
43130 if test "$no_create" != yes; then
43131   ac_cs_success=:
43132   ac_config_status_args=
43133   test "$silent" = yes &&
43134     ac_config_status_args="$ac_config_status_args --quiet"
43135   exec 5>/dev/null
43136   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43137   exec 5>>config.log
43138   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43139   # would make configure fail if this is the last instruction.
43140   $ac_cs_success || { (exit 1); exit 1; }
43141 fi
43142
43143 #
43144 # CONFIG_SUBDIRS section.
43145 #
43146 if test "$no_recursion" != yes; then
43147
43148   # Remove --cache-file and --srcdir arguments so they do not pile up.
43149   ac_sub_configure_args=
43150   ac_prev=
43151   for ac_arg in $ac_configure_args; do
43152     if test -n "$ac_prev"; then
43153       ac_prev=
43154       continue
43155     fi
43156     case $ac_arg in
43157     -cache-file | --cache-file | --cache-fil | --cache-fi \
43158     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43159       ac_prev=cache_file ;;
43160     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43161     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43162     | --c=*)
43163       ;;
43164     --config-cache | -C)
43165       ;;
43166     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43167       ac_prev=srcdir ;;
43168     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43169       ;;
43170     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43171       ac_prev=prefix ;;
43172     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43173       ;;
43174     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
43175     esac
43176   done
43177
43178   # Always prepend --prefix to ensure using the same prefix
43179   # in subdir configurations.
43180   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
43181
43182   ac_popdir=`pwd`
43183   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
43184
43185     # Do not complain, so a configure script can configure whichever
43186     # parts of a large source tree are present.
43187     test -d $srcdir/$ac_dir || continue
43188
43189     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
43190 echo "$as_me: configuring in $ac_dir" >&6;}
43191     { if $as_mkdir_p; then
43192     mkdir -p "$ac_dir"
43193   else
43194     as_dir="$ac_dir"
43195     as_dirs=
43196     while test ! -d "$as_dir"; do
43197       as_dirs="$as_dir $as_dirs"
43198       as_dir=`(dirname "$as_dir") 2>/dev/null ||
43199 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43200          X"$as_dir" : 'X\(//\)[^/]' \| \
43201          X"$as_dir" : 'X\(//\)$' \| \
43202          X"$as_dir" : 'X\(/\)' \| \
43203          .     : '\(.\)' 2>/dev/null ||
43204 echo X"$as_dir" |
43205     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43206           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43207           /^X\(\/\/\)$/{ s//\1/; q; }
43208           /^X\(\/\).*/{ s//\1/; q; }
43209           s/.*/./; q'`
43210     done
43211     test ! -n "$as_dirs" || mkdir $as_dirs
43212   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43213 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43214    { (exit 1); exit 1; }; }; }
43215
43216     ac_builddir=.
43217
43218 if test "$ac_dir" != .; then
43219   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43220   # A "../" for each directory in $ac_dir_suffix.
43221   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43222 else
43223   ac_dir_suffix= ac_top_builddir=
43224 fi
43225
43226 case $srcdir in
43227   .)  # No --srcdir option.  We are building in place.
43228     ac_srcdir=.
43229     if test -z "$ac_top_builddir"; then
43230        ac_top_srcdir=.
43231     else
43232        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43233     fi ;;
43234   [\\/]* | ?:[\\/]* )  # Absolute path.
43235     ac_srcdir=$srcdir$ac_dir_suffix;
43236     ac_top_srcdir=$srcdir ;;
43237   *) # Relative path.
43238     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43239     ac_top_srcdir=$ac_top_builddir$srcdir ;;
43240 esac
43241
43242 # Do not use `cd foo && pwd` to compute absolute paths, because
43243 # the directories may not exist.
43244 case `pwd` in
43245 .) ac_abs_builddir="$ac_dir";;
43246 *)
43247   case "$ac_dir" in
43248   .) ac_abs_builddir=`pwd`;;
43249   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43250   *) ac_abs_builddir=`pwd`/"$ac_dir";;
43251   esac;;
43252 esac
43253 case $ac_abs_builddir in
43254 .) ac_abs_top_builddir=${ac_top_builddir}.;;
43255 *)
43256   case ${ac_top_builddir}. in
43257   .) ac_abs_top_builddir=$ac_abs_builddir;;
43258   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43259   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43260   esac;;
43261 esac
43262 case $ac_abs_builddir in
43263 .) ac_abs_srcdir=$ac_srcdir;;
43264 *)
43265   case $ac_srcdir in
43266   .) ac_abs_srcdir=$ac_abs_builddir;;
43267   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43268   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43269   esac;;
43270 esac
43271 case $ac_abs_builddir in
43272 .) ac_abs_top_srcdir=$ac_top_srcdir;;
43273 *)
43274   case $ac_top_srcdir in
43275   .) ac_abs_top_srcdir=$ac_abs_builddir;;
43276   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43277   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43278   esac;;
43279 esac
43280
43281
43282     cd $ac_dir
43283
43284     # Check for guested configure; otherwise get Cygnus style configure.
43285     if test -f $ac_srcdir/configure.gnu; then
43286       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
43287     elif test -f $ac_srcdir/configure; then
43288       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
43289     elif test -f $ac_srcdir/configure.in; then
43290       ac_sub_configure=$ac_configure
43291     else
43292       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
43293 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43294       ac_sub_configure=
43295     fi
43296
43297     # The recursion is here.
43298     if test -n "$ac_sub_configure"; then
43299       # Make the cache file name correct relative to the subdirectory.
43300       case $cache_file in
43301       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43302       *) # Relative path.
43303         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
43304       esac
43305
43306       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
43307 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43308       # The eval makes quoting arguments work.
43309       eval $ac_sub_configure $ac_sub_configure_args \
43310            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
43311         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
43312 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
43313    { (exit 1); exit 1; }; }
43314     fi
43315
43316     cd $ac_popdir
43317   done
43318 fi
43319
43320
43321 echo
43322 echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
43323 echo ""
43324 echo "  Which GUI toolkit should wxWindows use?                 ${TOOLKIT_LOWERCASE:-base only}"
43325 echo "  Should wxWindows be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
43326
43327 echo "  Should wxWindows be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
43328 echo "  Should wxWindows be linked as a shared library?         ${wxUSE_SHARED:-no}"
43329 echo "  Should wxWindows be compiled in Unicode mode?           ${wxUSE_UNICODE:-no}"
43330
43331 echo "  What level of wxWindows compatibility should be enabled?"
43332 echo "                                       wxWindows 2.2      ${WXWIN_COMPATIBILITY_2_2:-no}"
43333 echo "                                       wxWindows 2.4      ${WXWIN_COMPATIBILITY_2_4:-yes}"
43334
43335 echo "  Which libraries should wxWindows use?"
43336 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
43337 echo "                                       png                ${wxUSE_LIBPNG-none}"
43338 echo "                                       regex              ${wxUSE_REGEX}"
43339 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
43340 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
43341 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
43342 fi
43343 echo "                                       zlib               ${wxUSE_ZLIB}"
43344 echo "                                       odbc               ${wxUSE_ODBC}"
43345 echo "                                       expat              ${wxUSE_EXPAT}"
43346 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
43347 echo "                                       sdl                ${wxUSE_LIBSDL}"
43348
43349 echo ""
43350