]> git.saurik.com Git - wxWidgets.git/blame - configure
EOVERFLOW is not available on classic Mac OS.
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
63c4f6da 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.5.5.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
ac1cb8d3 8# Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
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
16if 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+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
ac1cb8d3 25DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
26
27# Support unset when possible.
ac1cb8d3 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for 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
46do
ac1cb8d3 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo 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.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if 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
100fi
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
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
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
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
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
155done
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
190case `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= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if 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
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
ac1cb8d3 224 test -d ./-p && rmdir ./-p
a848cd7e
SC
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
232
233# Sed expression to map a string onto a valid variable name.
ac1cb8d3 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $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.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${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.
77ffb593
JS
271PACKAGE_NAME='wxWidgets'
272PACKAGE_TARNAME='wxwidgets'
63c4f6da
MW
273PACKAGE_VERSION='2.5.5'
274PACKAGE_STRING='wxWidgets 2.5.5'
77ffb593 275PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_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
315ac_subdirs_all="$ac_subdirs_all src/expat"
6671c68b 316ac_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 X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GSTREAMER_CFLAGS GSTREAMER_LIBS GST_INSPECT CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT UNICODE BUILD DEBUG_INFO DEBUG_FLAG 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_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS 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_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_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_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_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_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_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_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 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_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 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 SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_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.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
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
631Try \`$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
654done
655
656if 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; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
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
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
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
683done
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.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if 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
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if 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\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo 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
729else
730 ac_srcdir_defaulted=no
731fi
732if 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
740fi
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; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if 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
63c4f6da 797\`configure' configures wxWidgets 2.5.5 to adapt to many kinds of systems.
a848cd7e
SC
798
799Usage: $0 [OPTION]... [VAR=VALUE]...
800
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
803
804Defaults for the options are specified in brackets.
805
806Configuration:
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
820Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 822 [$ac_default_prefix]
a848cd7e 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 824 [PREFIX]
a848cd7e
SC
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine 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
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System 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
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
63c4f6da 863 short | recursive ) echo "Configuration of wxWidgets 2.5.5:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional 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
77ffb593
JS
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 874 --enable-nanox use NanoX
9f45f08e 875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
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
77ffb593
JS
892 --enable-compat22 enable wxWidgets 2.2 compatibility
893 --disable-compat24 disable wxWidgets 2.4 compatibility
ffa0583f 894 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
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
81f90336 906 --enable-arcstream use wxArchive streams
eaff0f0d 907 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 908 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
909 --enable-cmdline use wxCmdLineParser class
910 --enable-datetime use wxDateTime class
36b6448c 911 --enable-debugreport use wxDebugReport class
a848cd7e
SC
912 --enable-dialupman use dialup network classes
913 --enable-dynlib use wxLibrary class for DLL loading
914 --enable-dynamicloader use (new) wxDynamicLibrary class
915 --enable-exceptions build exception-safe library
916 --enable-ffile use wxFFile class
917 --enable-file use wxFile class
918 --enable-filesystem use virtual file systems classes
919 --enable-fontmap use font encodings conversion classes
920 --enable-fs_inet use virtual HTTP/FTP filesystems
921 --enable-fs_zip use virtual ZIP filesystems
922 --enable-geometry use geometry class
923 --enable-log use logging system
924 --enable-longlong use wxLongLong class
925 --enable-mimetype use wxMimeTypesManager
926 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
927 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 928 --enable-std_iostreams use standard C++ stream classes
07158944 929 --enable-stdpaths use wxStandardPaths class
a848cd7e 930 --enable-stopwatch use wxStopWatch class
07158944 931 --enable-streams use wxStream etc classes
a848cd7e
SC
932 --enable-sysoptions use wxSystemOptions
933 --enable-textbuf use wxTextBuffer class
934 --enable-textfile use wxTextFile class
935 --enable-timer use wxTimer class
936 --enable-unicode compile wxString with Unicode support
937 --enable-sound use wxSound class
3b57de8b 938 --enable-mediactrl use wxMediaCtrl class
77ffb593 939 --enable-wxprintfv use wxWidgets implementation of vprintf()
81f90336 940 --enable-zipstream use wxZip streams
a848cd7e
SC
941 --enable-url use wxURL class
942 --enable-protocol use wxProtocol class
943 --enable-protocol-http HTTP support in wxProtocol
944 --enable-protocol-ftp FTP support in wxProtocol
945 --enable-protocol-file FILE support in wxProtocol
946 --enable-threads use threads
947 --enable-docview use document view architecture
948 --enable-help use help subsystem
949 --enable-mshtmlhelp use MS HTML Help (win32)
950 --enable-html use wxHTML sub-library
951 --enable-htmlhelp use wxHTML-based help
9a8f0513 952 --enable-xrc use XRC resources sub-library
a848cd7e
SC
953 --enable-constraints use layout-constraints system
954 --enable-printarch use printing architecture
955 --enable-mdi use multiple document interface architecture
8a7b1113 956 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
957 --enable-loggui use standard GUI logger
958 --enable-logwin use wxLogWindow
959 --enable-logdialog use wxLogDialog
646b6ec1 960 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
961 --enable-postscript use wxPostscriptDC device context (default for gtk+)
962 --enable-prologio not available; see contrib
963 --enable-resources not available; see contrib
964 --enable-clipboard use wxClipboard class
965 --enable-dnd use Drag'n'Drop classes
966 --enable-metafile use win32 metafiles
967 --enable-controls use all usual controls
968 --enable-accel use accelerators
969 --enable-button use wxButton class
970 --enable-bmpbutton use wxBitmapButton class
971 --enable-calendar use wxCalendarCtrl class
972 --enable-caret use wxCaret class
973 --enable-checkbox use wxCheckBox class
974 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
975 --enable-choice use wxChoice class
92bbdbcd 976 --enable-choicebook use wxChoicebook class
a848cd7e 977 --enable-combobox use wxComboBox class
da98e9be 978 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
979 --enable-display use wxDisplay class
980 --enable-gauge use wxGauge class
981 --enable-grid use wxGrid class
982 --enable-imaglist use wxImageList class
983 --enable-listbook use wxListbook class
984 --enable-listbox use wxListBox class
985 --enable-listctrl use wxListCtrl class
986 --enable-notebook use wxNotebook class
987 --enable-radiobox use wxRadioBox class
988 --enable-radiobtn use wxRadioButton class
989 --enable-sash use wxSashWindow class
990 --enable-scrollbar use wxScrollBar class and scrollable windows
991 --enable-slider use wxSlider class
992 --enable-spinbtn use wxSpinButton class
993 --enable-spinctrl use wxSpinCtrl class
994 --enable-splitter use wxSplitterWindow class
995 --enable-statbmp use wxStaticBitmap class
996 --enable-statbox use wxStaticBox class
997 --enable-statline use wxStaticLine class
998 --enable-stattext use wxStaticText class
999 --enable-statusbar use wxStatusBar class
1000 --enable-tabdialog use wxTabControl class
1001 --enable-textctrl use wxTextCtrl class
1002 --enable-togglebtn use wxToggleButton class
1003 --enable-toolbar use wxToolBar class
1004 --enable-tbarnative use native wxToolBar class
1005 --enable-tbarsmpl use wxToolBarSimple class
1006 --enable-treectrl use wxTreeCtrl class
1007 --enable-tipwindow use wxTipWindow class
1008 --enable-popupwin use wxPopUpWindow class
1009 --enable-commondlg use all common dialogs
1010 --enable-choicedlg use wxChoiceDialog
1011 --enable-coldlg use wxColourDialog
1012 --enable-filedlg use wxFileDialog
1013 --enable-finddlg use wxFindReplaceDialog
1014 --enable-fontdlg use wxFontDialog
1015 --enable-dirdlg use wxDirDialog
1016 --enable-msgdlg use wxMessageDialog
1017 --enable-numberdlg use wxNumberEntryDialog
1018 --enable-splash use wxSplashScreen
1019 --enable-textdlg use wxTextDialog
1020 --enable-tipdlg use startup tips
1021 --enable-progressdlg use wxProgressDialog
1022 --enable-wizarddlg use wxWizard
1023 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1024 --enable-miniframe use wxMiniFrame class
1025 --enable-tooltips use wxToolTip class
1026 --enable-splines use spline drawing code
1027 --enable-validators use wxValidator and derived classes
1028 --enable-busyinfo use wxBusyInfo
4cb1d3da 1029 --enable-joystick use wxJoystick
a848cd7e
SC
1030 --enable-metafiles use wxMetaFile (Windows only)
1031 --enable-dragimage use wxDragImage
1032 --enable-accessibility enable accessibility support
1033 --enable-palette use wxPalette class
1034 --enable-image use wxImage class
1035 --enable-gif use gif images (GIF file format)
1036 --enable-pcx use pcx images (PCX file format)
1037 --enable-iff use iff images (IFF file format)
1038 --enable-pnm use pnm images (PNM file format)
1039 --enable-xpm use xpm images (XPM file format)
1040 --enable-icocur use Windows ICO and CUR formats
77ffb593 1041 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1042 --enable-vendor=VENDOR vendor name (win32 DLL only)
1043 --disable-largefile omit support for large files
1044 --disable-gtktest do not try to compile and run a test GTK+ program
1045 --disable-gtktest Do not try to compile and run a test GTK program
1046 --disable-sdltest Do not try to compile and run a test SDL program
1047 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1048 --disable-precomp-headers
1049 don't use precompiled headers even if compiler can
a848cd7e
SC
1050
1051Optional Packages:
1052 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1053 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1054 --with-gtk use GTK+
1055 --with-motif use Motif/Lesstif
1056 --with-mac use Mac OS X
1057 --with-cocoa use Cocoa
1058 --with-wine use Wine
1059 --with-msw use MS-Windows
1060 --with-pm use OS/2 Presentation Manager
1061 --with-mgl use SciTech MGL
1062 --with-microwin use MicroWindows
1063 --with-x11 use X11
1064 --with-libpng use libpng (PNG image format)
1065 --with-libjpeg use libjpeg (JPEG file format)
1066 --with-libtiff use libtiff (TIFF file format)
1067 --with-libxpm use libxpm (XPM file format)
1068 --with-libmspack use libmspack (CHM help files loading)
1069 --with-sdl use SDL for audio on Unix
d51253e8 1070 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1071 --with-opengl use OpenGL (or Mesa)
1072 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1073 --with-regex enable support for wxRegEx class
1074 --with-zlib use zlib for LZW compression
1075 --with-odbc use the IODBC and wxODBC classes
1076 --with-expat enable XML support using expat parser
ceec2216 1077 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1078 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1079 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1080 --with-x use the X Window System
1081 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1082 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1083 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1084 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1085 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1086
1087Some influential environment variables:
dcc1b6ad
VS
1088 CC C compiler command
1089 CFLAGS C compiler flags
1090 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1091 nonstandard directory <lib dir>
1092 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1093 headers in a nonstandard directory <include dir>
1094 CPP C preprocessor
1095 CXX C++ compiler command
1096 CXXFLAGS C++ compiler flags
1097 CXXCPP C++ preprocessor
a848cd7e
SC
1098
1099Use these variables to override the choices made by `configure' or to help
1100it to find libraries and programs with nonstandard names/locations.
1101
77ffb593 1102Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1103_ACEOF
1104fi
1105
1106if test "$ac_init_help" = "recursive"; then
1107 # If there are subdirs, report their specific --help.
1108 ac_popdir=`pwd`
1109 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1110 test -d $ac_dir || continue
1111 ac_builddir=.
1112
1113if test "$ac_dir" != .; then
1114 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1115 # A "../" for each directory in $ac_dir_suffix.
1116 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1117else
1118 ac_dir_suffix= ac_top_builddir=
1119fi
1120
1121case $srcdir in
1122 .) # No --srcdir option. We are building in place.
1123 ac_srcdir=.
1124 if test -z "$ac_top_builddir"; then
1125 ac_top_srcdir=.
1126 else
1127 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1128 fi ;;
1129 [\\/]* | ?:[\\/]* ) # Absolute path.
1130 ac_srcdir=$srcdir$ac_dir_suffix;
1131 ac_top_srcdir=$srcdir ;;
1132 *) # Relative path.
1133 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1134 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1135esac
ac1cb8d3
VS
1136
1137# Do not use `cd foo && pwd` to compute absolute paths, because
1138# the directories may not exist.
1139case `pwd` in
1140.) ac_abs_builddir="$ac_dir";;
1141*)
1142 case "$ac_dir" in
1143 .) ac_abs_builddir=`pwd`;;
1144 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1145 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1146 esac;;
1147esac
1148case $ac_abs_builddir in
1149.) ac_abs_top_builddir=${ac_top_builddir}.;;
1150*)
1151 case ${ac_top_builddir}. in
1152 .) ac_abs_top_builddir=$ac_abs_builddir;;
1153 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1154 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1155 esac;;
1156esac
1157case $ac_abs_builddir in
1158.) ac_abs_srcdir=$ac_srcdir;;
1159*)
1160 case $ac_srcdir in
1161 .) ac_abs_srcdir=$ac_abs_builddir;;
1162 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1163 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1164 esac;;
1165esac
1166case $ac_abs_builddir in
1167.) ac_abs_top_srcdir=$ac_top_srcdir;;
1168*)
1169 case $ac_top_srcdir in
1170 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1171 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1172 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1173 esac;;
1174esac
a848cd7e
SC
1175
1176 cd $ac_dir
1177 # Check for guested configure; otherwise get Cygnus style configure.
1178 if test -f $ac_srcdir/configure.gnu; then
1179 echo
1180 $SHELL $ac_srcdir/configure.gnu --help=recursive
1181 elif test -f $ac_srcdir/configure; then
1182 echo
1183 $SHELL $ac_srcdir/configure --help=recursive
1184 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1185 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1186 echo
1187 $ac_configure --help
1188 else
1189 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1190 fi
07158944 1191 cd "$ac_popdir"
a848cd7e
SC
1192 done
1193fi
1194
1195test -n "$ac_init_help" && exit 0
1196if $ac_init_version; then
1197 cat <<\_ACEOF
63c4f6da 1198wxWidgets configure 2.5.5
ac1cb8d3 1199generated by GNU Autoconf 2.59
a848cd7e 1200
ac1cb8d3 1201Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1202This configure script is free software; the Free Software Foundation
1203gives unlimited permission to copy, distribute and modify it.
1204_ACEOF
1205 exit 0
1206fi
1207exec 5>config.log
1208cat >&5 <<_ACEOF
1209This file contains any messages produced by compilers while
1210running configure, to aid debugging if configure makes a mistake.
1211
63c4f6da 1212It was created by wxWidgets $as_me 2.5.5, which was
ac1cb8d3 1213generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1214
1215 $ $0 $@
1216
1217_ACEOF
1218{
1219cat <<_ASUNAME
1220## --------- ##
1221## Platform. ##
1222## --------- ##
1223
1224hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1225uname -m = `(uname -m) 2>/dev/null || echo unknown`
1226uname -r = `(uname -r) 2>/dev/null || echo unknown`
1227uname -s = `(uname -s) 2>/dev/null || echo unknown`
1228uname -v = `(uname -v) 2>/dev/null || echo unknown`
1229
1230/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1231/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1232
1233/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1234/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1235/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1236hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1237/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1238/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1239/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1240
1241_ASUNAME
1242
1243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1244for as_dir in $PATH
1245do
1246 IFS=$as_save_IFS
1247 test -z "$as_dir" && as_dir=.
1248 echo "PATH: $as_dir"
1249done
1250
1251} >&5
1252
1253cat >&5 <<_ACEOF
1254
1255
1256## ----------- ##
1257## Core tests. ##
1258## ----------- ##
1259
1260_ACEOF
1261
1262
1263# Keep a trace of the command line.
1264# Strip out --no-create and --no-recursion so they do not pile up.
1265# Strip out --silent because we don't want to record it for future runs.
1266# Also quote any args containing shell meta-characters.
1267# Make two passes to allow for proper duplicate-argument suppression.
1268ac_configure_args=
1269ac_configure_args0=
1270ac_configure_args1=
1271ac_sep=
1272ac_must_keep_next=false
1273for ac_pass in 1 2
1274do
1275 for ac_arg
1276 do
1277 case $ac_arg in
1278 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1279 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1280 | -silent | --silent | --silen | --sile | --sil)
1281 continue ;;
1282 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1284 esac
1285 case $ac_pass in
1286 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1287 2)
1288 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1289 if test $ac_must_keep_next = true; then
ac1cb8d3 1290 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1291 else
ac1cb8d3
VS
1292 case $ac_arg in
1293 *=* | --config-cache | -C | -disable-* | --disable-* \
1294 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1295 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1296 | -with-* | --with-* | -without-* | --without-* | --x)
1297 case "$ac_configure_args0 " in
1298 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1299 esac
1300 ;;
1301 -* ) ac_must_keep_next=true ;;
1302 esac
a848cd7e
SC
1303 fi
1304 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1305 # Get rid of the leading space.
1306 ac_sep=" "
1307 ;;
1308 esac
1309 done
1310done
1311$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1312$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1313
1314# When interrupted or exit'd, cleanup temporary files, and complete
1315# config.log. We remove comments because anyway the quotes in there
1316# would cause problems or look ugly.
1317# WARNING: Be sure not to use single quotes in there, as some shells,
1318# such as our DU 5.0 friend, will then `close' the trap.
1319trap 'exit_status=$?
1320 # Save into config.log some information that might help in debugging.
1321 {
1322 echo
1323
1324 cat <<\_ASBOX
1325## ---------------- ##
1326## Cache variables. ##
1327## ---------------- ##
1328_ASBOX
1329 echo
1330 # The following way of writing the cache mishandles newlines in values,
1331{
1332 (set) 2>&1 |
1333 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1334 *ac_space=\ *)
1335 sed -n \
ac1cb8d3
VS
1336 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1337 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1338 ;;
1339 *)
1340 sed -n \
ac1cb8d3 1341 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1342 ;;
1343 esac;
1344}
1345 echo
1346
1347 cat <<\_ASBOX
1348## ----------------- ##
1349## Output variables. ##
1350## ----------------- ##
1351_ASBOX
1352 echo
1353 for ac_var in $ac_subst_vars
1354 do
1355 eval ac_val=$`echo $ac_var`
1356 echo "$ac_var='"'"'$ac_val'"'"'"
1357 done | sort
1358 echo
1359
1360 if test -n "$ac_subst_files"; then
1361 cat <<\_ASBOX
1362## ------------- ##
1363## Output files. ##
1364## ------------- ##
1365_ASBOX
1366 echo
1367 for ac_var in $ac_subst_files
1368 do
1369 eval ac_val=$`echo $ac_var`
ac1cb8d3 1370 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1371 done | sort
1372 echo
1373 fi
1374
1375 if test -s confdefs.h; then
1376 cat <<\_ASBOX
1377## ----------- ##
1378## confdefs.h. ##
1379## ----------- ##
1380_ASBOX
1381 echo
1382 sed "/^$/d" confdefs.h | sort
1383 echo
1384 fi
1385 test "$ac_signal" != 0 &&
1386 echo "$as_me: caught signal $ac_signal"
1387 echo "$as_me: exit $exit_status"
1388 } >&5
ac1cb8d3 1389 rm -f core *.core &&
a848cd7e
SC
1390 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1391 exit $exit_status
1392 ' 0
1393for ac_signal in 1 2 13 15; do
1394 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1395done
1396ac_signal=0
1397
1398# confdefs.h avoids OS command line length limits that DEFS can exceed.
1399rm -rf conftest* confdefs.h
1400# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1401echo >confdefs.h
1402
1403# Predefined preprocessor variables.
1404
1405cat >>confdefs.h <<_ACEOF
1406#define PACKAGE_NAME "$PACKAGE_NAME"
1407_ACEOF
1408
1409
1410cat >>confdefs.h <<_ACEOF
1411#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1412_ACEOF
1413
1414
1415cat >>confdefs.h <<_ACEOF
1416#define PACKAGE_VERSION "$PACKAGE_VERSION"
1417_ACEOF
1418
1419
1420cat >>confdefs.h <<_ACEOF
1421#define PACKAGE_STRING "$PACKAGE_STRING"
1422_ACEOF
1423
1424
1425cat >>confdefs.h <<_ACEOF
1426#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1427_ACEOF
1428
1429
1430# Let the site file select an alternate cache file if it wants to.
1431# Prefer explicitly selected file to automatically selected ones.
1432if test -z "$CONFIG_SITE"; then
1433 if test "x$prefix" != xNONE; then
1434 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1435 else
1436 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1437 fi
1438fi
1439for ac_site_file in $CONFIG_SITE; do
1440 if test -r "$ac_site_file"; then
1441 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1442echo "$as_me: loading site script $ac_site_file" >&6;}
1443 sed 's/^/| /' "$ac_site_file" >&5
1444 . "$ac_site_file"
1445 fi
1446done
1447
1448if test -r "$cache_file"; then
1449 # Some versions of bash will fail to source /dev/null (special
1450 # files actually), so we avoid doing that.
1451 if test -f "$cache_file"; then
1452 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1453echo "$as_me: loading cache $cache_file" >&6;}
1454 case $cache_file in
1455 [\\/]* | ?:[\\/]* ) . $cache_file;;
1456 *) . ./$cache_file;;
1457 esac
1458 fi
1459else
1460 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1461echo "$as_me: creating cache $cache_file" >&6;}
1462 >$cache_file
1463fi
1464
1465# Check that the precious variables saved in the cache have kept the same
1466# value.
1467ac_cache_corrupted=false
1468for ac_var in `(set) 2>&1 |
ac1cb8d3 1469 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1470 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1471 eval ac_new_set=\$ac_env_${ac_var}_set
1472 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1473 eval ac_new_val="\$ac_env_${ac_var}_value"
1474 case $ac_old_set,$ac_new_set in
1475 set,)
1476 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1477echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1478 ac_cache_corrupted=: ;;
1479 ,set)
1480 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1481echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1482 ac_cache_corrupted=: ;;
1483 ,);;
1484 *)
1485 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1486 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1487echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1488 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1489echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1490 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1491echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1492 ac_cache_corrupted=:
a848cd7e
SC
1493 fi;;
1494 esac
1495 # Pass precious variables to config.status.
1496 if test "$ac_new_set" = set; then
1497 case $ac_new_val in
1498 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1499 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1500 *) ac_arg=$ac_var=$ac_new_val ;;
1501 esac
1502 case " $ac_configure_args " in
1503 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1504 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1505 esac
1506 fi
1507done
1508if $ac_cache_corrupted; then
1509 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1510echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1511 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1512echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1513 { (exit 1); exit 1; }; }
1514fi
1515
1516ac_ext=c
1517ac_cpp='$CPP $CPPFLAGS'
1518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1520ac_compiler_gnu=$ac_cv_c_compiler_gnu
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551ac_aux_dir=
1552for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1553 if test -f $ac_dir/install-sh; then
1554 ac_aux_dir=$ac_dir
1555 ac_install_sh="$ac_aux_dir/install-sh -c"
1556 break
1557 elif test -f $ac_dir/install.sh; then
1558 ac_aux_dir=$ac_dir
1559 ac_install_sh="$ac_aux_dir/install.sh -c"
1560 break
1561 elif test -f $ac_dir/shtool; then
1562 ac_aux_dir=$ac_dir
1563 ac_install_sh="$ac_aux_dir/shtool install -c"
1564 break
1565 fi
1566done
1567if test -z "$ac_aux_dir"; then
1568 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1569echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1570 { (exit 1); exit 1; }; }
1571fi
1572ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1573ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1574ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1575
1576# Make sure we can run config.sub.
1577$ac_config_sub sun4 >/dev/null 2>&1 ||
1578 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1579echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1580 { (exit 1); exit 1; }; }
1581
1582echo "$as_me:$LINENO: checking build system type" >&5
1583echo $ECHO_N "checking build system type... $ECHO_C" >&6
1584if test "${ac_cv_build+set}" = set; then
1585 echo $ECHO_N "(cached) $ECHO_C" >&6
1586else
1587 ac_cv_build_alias=$build_alias
1588test -z "$ac_cv_build_alias" &&
1589 ac_cv_build_alias=`$ac_config_guess`
1590test -z "$ac_cv_build_alias" &&
1591 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1592echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1593 { (exit 1); exit 1; }; }
1594ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1595 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1596echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1597 { (exit 1); exit 1; }; }
1598
1599fi
1600echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1601echo "${ECHO_T}$ac_cv_build" >&6
1602build=$ac_cv_build
1603build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1604build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1605build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1606
1607
1608echo "$as_me:$LINENO: checking host system type" >&5
1609echo $ECHO_N "checking host system type... $ECHO_C" >&6
1610if test "${ac_cv_host+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1612else
1613 ac_cv_host_alias=$host_alias
1614test -z "$ac_cv_host_alias" &&
1615 ac_cv_host_alias=$ac_cv_build_alias
1616ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1617 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1618echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1619 { (exit 1); exit 1; }; }
1620
1621fi
1622echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1623echo "${ECHO_T}$ac_cv_host" >&6
1624host=$ac_cv_host
1625host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1626host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1627host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1628
1629
1630echo "$as_me:$LINENO: checking target system type" >&5
1631echo $ECHO_N "checking target system type... $ECHO_C" >&6
1632if test "${ac_cv_target+set}" = set; then
1633 echo $ECHO_N "(cached) $ECHO_C" >&6
1634else
1635 ac_cv_target_alias=$target_alias
1636test "x$ac_cv_target_alias" = "x" &&
1637 ac_cv_target_alias=$ac_cv_host_alias
1638ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1639 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1640echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1641 { (exit 1); exit 1; }; }
1642
1643fi
1644echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1645echo "${ECHO_T}$ac_cv_target" >&6
1646target=$ac_cv_target
1647target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1648target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1649target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1650
1651
1652# The aliases save the names the user supplied, while $host etc.
1653# will get canonicalized.
1654test -n "$target_alias" &&
1655 test "$program_prefix$program_suffix$program_transform_name" = \
1656 NONENONEs,x,x, &&
1657 program_prefix=${target_alias}-
1658
1659
1660
ceec2216
RL
1661wx_major_version_number=2
1662wx_minor_version_number=5
63c4f6da
MW
1663wx_release_number=5
1664wx_subrelease_number=0
a848cd7e 1665
ceec2216
RL
1666WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1667WX_VERSION=$WX_RELEASE.$wx_release_number
1668WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1669
ceec2216 1670WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1671
63c4f6da 1672WX_CURRENT=5
a848cd7e 1673WX_REVISION=0
63c4f6da 1674WX_AGE=5
a848cd7e
SC
1675
1676
1677
1678USE_UNIX=1
1679USE_OS2=0
1680USE_WIN32=0
1681USE_DOS=0
1682USE_BEOS=0
1683USE_MAC=0
1684
1685USE_AIX=
1686USE_BSD= USE_DARWIN= USE_FREEBSD=
1687USE_GNU= USE_HPUX=
1688USE_LINUX=
1689USE_NETBSD=
1690USE_OPENBSD=
1691USE_OSF= USE_SGI=
1692USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1693USE_ULTRIX=
1694USE_UNIXWARE=
1695
1696USE_ALPHA=
1697
1698NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1699
1700ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1701
1702DEFAULT_wxUSE_COCOA=0
1703DEFAULT_wxUSE_GTK=0
1704DEFAULT_wxUSE_MAC=0
1705DEFAULT_wxUSE_MGL=0
1706DEFAULT_wxUSE_MICROWIN=0
1707DEFAULT_wxUSE_MOTIF=0
1708DEFAULT_wxUSE_MSW=0
1709DEFAULT_wxUSE_PM=0
1710DEFAULT_wxUSE_X11=0
1711
1712DEFAULT_DEFAULT_wxUSE_COCOA=0
1713DEFAULT_DEFAULT_wxUSE_GTK=0
1714DEFAULT_DEFAULT_wxUSE_MAC=0
1715DEFAULT_DEFAULT_wxUSE_MGL=0
1716DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1717DEFAULT_DEFAULT_wxUSE_MOTIF=0
1718DEFAULT_DEFAULT_wxUSE_MSW=0
1719DEFAULT_DEFAULT_wxUSE_PM=0
1720DEFAULT_DEFAULT_wxUSE_X11=0
1721
1722PROGRAM_EXT=
1723SO_SUFFIX=so
1724SAMPLES_RPATH_FLAG=
1725SAMPLES_RPATH_POSTLINK=
1726
1727case "${host}" in
1728 *-hp-hpux* )
1729 USE_HPUX=1
1730 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1731 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1732 SO_SUFFIX=sl
1733 cat >>confdefs.h <<\_ACEOF
1734#define __HPUX__ 1
1735_ACEOF
1736
1737 ;;
1738 *-*-linux* )
1739 USE_LINUX=1
1740 cat >>confdefs.h <<\_ACEOF
1741#define __LINUX__ 1
1742_ACEOF
1743
1744 TMP=`uname -m`
1745 if test "x$TMP" = "xalpha"; then
1746 USE_ALPHA=1
1747 cat >>confdefs.h <<\_ACEOF
1748#define __ALPHA__ 1
1749_ACEOF
1750
1751 fi
1752 DEFAULT_DEFAULT_wxUSE_GTK=1
1753 ;;
1754 *-*-gnu* | *-*-k*bsd*-gnu )
1755 USE_GNU=1
1756 TMP=`uname -m`
1757 if test "x$TMP" = "xalpha"; then
1758 USE_ALPHA=1
1759 cat >>confdefs.h <<\_ACEOF
1760#define __ALPHA__ 1
1761_ACEOF
1762
1763 fi
1764 DEFAULT_DEFAULT_wxUSE_GTK=1
1765 ;;
1766 *-*-irix5* | *-*-irix6* )
1767 USE_SGI=1
1768 USE_SVR4=1
1769 cat >>confdefs.h <<\_ACEOF
1770#define __SGI__ 1
1771_ACEOF
1772
1773 cat >>confdefs.h <<\_ACEOF
1774#define __SVR4__ 1
1775_ACEOF
1776
1777 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1778 ;;
1779 *-*-solaris2* )
1780 USE_SUN=1
1781 USE_SOLARIS=1
1782 USE_SVR4=1
1783 cat >>confdefs.h <<\_ACEOF
1784#define __SUN__ 1
1785_ACEOF
1786
1787 cat >>confdefs.h <<\_ACEOF
1788#define __SOLARIS__ 1
1789_ACEOF
1790
1791 cat >>confdefs.h <<\_ACEOF
1792#define __SVR4__ 1
1793_ACEOF
1794
1795 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1796 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1797 ;;
1798 *-*-sunos4* )
1799 USE_SUN=1
1800 USE_SUNOS=1
1801 USE_BSD=1
1802 cat >>confdefs.h <<\_ACEOF
1803#define __SUN__ 1
1804_ACEOF
1805
1806 cat >>confdefs.h <<\_ACEOF
1807#define __SUNOS__ 1
1808_ACEOF
1809
1810 cat >>confdefs.h <<\_ACEOF
1811#define __BSD__ 1
1812_ACEOF
1813
1814 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1815 ;;
1816 *-*-freebsd*)
1817 USE_BSD=1
1818 USE_FREEBSD=1
1819 cat >>confdefs.h <<\_ACEOF
1820#define __FREEBSD__ 1
1821_ACEOF
1822
1823 cat >>confdefs.h <<\_ACEOF
1824#define __BSD__ 1
1825_ACEOF
1826
1827 DEFAULT_DEFAULT_wxUSE_GTK=1
1828 ;;
1829 *-*-openbsd*)
1830 USE_BSD=1
1831 USE_OPENBSD=1
1832 cat >>confdefs.h <<\_ACEOF
1833#define __OPENBSD__ 1
1834_ACEOF
1835
1836 cat >>confdefs.h <<\_ACEOF
1837#define __BSD__ 1
1838_ACEOF
1839
1840 DEFAULT_DEFAULT_wxUSE_GTK=1
1841 ;;
1842 *-*-netbsd*)
1843 USE_BSD=1
1844 USE_NETBSD=1
1845 cat >>confdefs.h <<\_ACEOF
1846#define __NETBSD__ 1
1847_ACEOF
1848
1849 cat >>confdefs.h <<\_ACEOF
1850#define __BSD__ 1
1851_ACEOF
1852
1853 DEFAULT_DEFAULT_wxUSE_GTK=1
1854 ;;
1855 *-*-osf* )
1856 USE_ALPHA=1
1857 USE_OSF=1
1858 cat >>confdefs.h <<\_ACEOF
1859#define __ALPHA__ 1
1860_ACEOF
1861
1862 cat >>confdefs.h <<\_ACEOF
1863#define __OSF__ 1
1864_ACEOF
1865
1866 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1867 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1868 ;;
1869 *-*-dgux5* )
1870 USE_ALPHA=1
1871 USE_SVR4=1
1872 cat >>confdefs.h <<\_ACEOF
1873#define __ALPHA__ 1
1874_ACEOF
1875
1876 cat >>confdefs.h <<\_ACEOF
1877#define __SVR4__ 1
1878_ACEOF
1879
1880 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1881 ;;
1882 *-*-sysv5* )
1883 USE_SYSV=1
1884 USE_SVR4=1
1885 cat >>confdefs.h <<\_ACEOF
1886#define __SYSV__ 1
1887_ACEOF
1888
1889 cat >>confdefs.h <<\_ACEOF
1890#define __SVR4__ 1
1891_ACEOF
1892
1893 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1894 ;;
1895 *-*-aix* )
1896 USE_AIX=1
1897 USE_SYSV=1
1898 USE_SVR4=1
1899 SO_SUFFIX=a
1900 cat >>confdefs.h <<\_ACEOF
1901#define __AIX__ 1
1902_ACEOF
1903
1904 cat >>confdefs.h <<\_ACEOF
1905#define __SYSV__ 1
1906_ACEOF
1907
1908 cat >>confdefs.h <<\_ACEOF
1909#define __SVR4__ 1
1910_ACEOF
1911
1912 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1913 ;;
1914
1915 *-*-*UnixWare*)
1916 USE_SYSV=1
1917 USE_SVR4=1
1918 USE_UNIXWARE=1
1919 cat >>confdefs.h <<\_ACEOF
1920#define __UNIXWARE__ 1
1921_ACEOF
1922
1923 ;;
1924
1925 *-*-cygwin* | *-*-mingw32* )
1926 SO_SUFFIX=dll
1927 PROGRAM_EXT=".exe"
1928 RESCOMP=windres
1929 DEFAULT_DEFAULT_wxUSE_MSW=1
1930 ;;
1931
1932 *-pc-msdosdjgpp )
1933 USE_UNIX=0
1934 USE_DOS=1
1935 cat >>confdefs.h <<\_ACEOF
1936#define __DOS__ 1
1937_ACEOF
1938
1939 PROGRAM_EXT=".exe"
1940 DEFAULT_DEFAULT_wxUSE_MGL=1
1941 LIBS="$LIBS -lstdc++"
1942 ;;
1943
1944 *-pc-os2_emx | *-pc-os2-emx )
1945 cat >>confdefs.h <<\_ACEOF
1946#define __EMX__ 1
1947_ACEOF
1948
1949 USE_OS2=1
1950 cat >>confdefs.h <<\_ACEOF
1951#define __OS2__ 1
1952_ACEOF
1953
1954 PROGRAM_EXT=".exe"
1955 DEFAULT_DEFAULT_wxUSE_PM=1
1956 CXX=gcc
1957 LDFLAGS="$LDFLAGS -Zcrtdll"
1958 ac_executable_extensions=".exe"
1959 export ac_executable_extensions
1960 ac_save_IFS="$IFS"
1961 IFS='\\'
1962 ac_TEMP_PATH=
1963 for ac_dir in $PATH; do
1964 IFS=$ac_save_IFS
1965 if test -z "$ac_TEMP_PATH"; then
1966 ac_TEMP_PATH="$ac_dir"
1967 else
1968 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1969 fi
1970 done
1971 export PATH="$ac_TEMP_PATH"
1972 unset ac_TEMP_PATH
1973 ;;
1974
1975 powerpc-*-darwin* )
1976 USE_BSD=1
1977 USE_DARWIN=1
1978 SO_SUFFIX=dylib
1979 cat >>confdefs.h <<\_ACEOF
1980#define __BSD__ 1
1981_ACEOF
1982
1983 cat >>confdefs.h <<\_ACEOF
1984#define __DARWIN__ 1
a848cd7e
SC
1985_ACEOF
1986
1987 cat >>confdefs.h <<\_ACEOF
1988#define TARGET_CARBON 1
1989_ACEOF
1990
1991 DEFAULT_DEFAULT_wxUSE_MAC=1
1992 ;;
1e9e8aba
DE
1993 powerpc-apple-macos* )
1994 USE_UNIX=0
1995 ac_cv_c_bigendian=yes
1996 SO_SUFFIX=shlib
1997 DEFAULT_DEFAULT_wxUSE_MAC=1
1998 ;;
a848cd7e
SC
1999
2000 *-*-beos* )
2001 USE_BEOS=1
2002 cat >>confdefs.h <<\_ACEOF
2003#define __BEOS__ 1
2004_ACEOF
2005
2006 ;;
2007
2008 *)
2009 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2010echo "$as_me: error: unknown system type ${host}." >&2;}
2011 { (exit 1); exit 1; }; }
2012esac
2013
2014
2015
2016
2017 wx_arg_cache_file="configarg.cache"
2018 echo "loading argument cache $wx_arg_cache_file"
2019 rm -f ${wx_arg_cache_file}.tmp
2020 touch ${wx_arg_cache_file}.tmp
2021 touch ${wx_arg_cache_file}
2022
2023
2024DEBUG_CONFIGURE=0
2025if test $DEBUG_CONFIGURE = 1; then
2026 DEFAULT_wxUSE_UNIVERSAL=no
2027 DEFAULT_wxUSE_STL=no
2028
2029 DEFAULT_wxUSE_NANOX=no
2030
2031 DEFAULT_wxUSE_THREADS=yes
2032
2033 DEFAULT_wxUSE_SHARED=yes
2034 DEFAULT_wxUSE_OPTIMISE=no
2035 DEFAULT_wxUSE_PROFILE=no
2036 DEFAULT_wxUSE_NO_DEPS=no
2037 DEFAULT_wxUSE_NO_RTTI=no
2038 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2039 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2040 DEFAULT_wxUSE_PERMISSIVE=no
2041 DEFAULT_wxUSE_DEBUG_FLAG=yes
2042 DEFAULT_wxUSE_DEBUG_INFO=yes
2043 DEFAULT_wxUSE_DEBUG_GDB=yes
2044 DEFAULT_wxUSE_MEM_TRACING=no
2045 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2046 DEFAULT_wxUSE_DMALLOC=no
2047 DEFAULT_wxUSE_APPLE_IEEE=no
2048
2049 DEFAULT_wxUSE_EXCEPTIONS=no
2050 DEFAULT_wxUSE_LOG=yes
2051 DEFAULT_wxUSE_LOGWINDOW=no
2052 DEFAULT_wxUSE_LOGGUI=no
2053 DEFAULT_wxUSE_LOGDIALOG=no
2054
2055 DEFAULT_wxUSE_GUI=yes
2056 DEFAULT_wxUSE_CONTROLS=no
2057
2058 DEFAULT_wxUSE_REGEX=no
2059 DEFAULT_wxUSE_XML=no
2060 DEFAULT_wxUSE_EXPAT=no
2061 DEFAULT_wxUSE_ZLIB=no
2062 DEFAULT_wxUSE_LIBPNG=no
2063 DEFAULT_wxUSE_LIBJPEG=no
2064 DEFAULT_wxUSE_LIBTIFF=no
2065 DEFAULT_wxUSE_LIBXPM=no
2066 DEFAULT_wxUSE_LIBMSPACK=no
2067 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2068 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2069 DEFAULT_wxUSE_ODBC=no
2070 DEFAULT_wxUSE_OPENGL=no
2071
2072 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2073 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2074 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2075 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2076 DEFAULT_wxUSE_STD_IOSTREAM=no
2077 DEFAULT_wxUSE_CMDLINE_PARSER=no
2078 DEFAULT_wxUSE_DATETIME=no
2079 DEFAULT_wxUSE_TIMER=no
2080 DEFAULT_wxUSE_STOPWATCH=no
2081 DEFAULT_wxUSE_FILE=no
2082 DEFAULT_wxUSE_FFILE=no
07158944 2083 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2084 DEFAULT_wxUSE_TEXTBUFFER=no
2085 DEFAULT_wxUSE_TEXTFILE=no
2086 DEFAULT_wxUSE_SOUND=no
3b57de8b
RL
2087 DEFAULT_wxUSE_MEDIACTRL=no
2088 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2089 DEFAULT_wxUSE_INTL=no
2090 DEFAULT_wxUSE_CONFIG=no
2091 DEFAULT_wxUSE_FONTMAP=no
2092 DEFAULT_wxUSE_STREAMS=no
2093 DEFAULT_wxUSE_SOCKETS=no
2094 DEFAULT_wxUSE_OLE=no
2095 DEFAULT_wxUSE_DATAOBJ=no
2096 DEFAULT_wxUSE_DIALUP_MANAGER=no
2097 DEFAULT_wxUSE_JOYSTICK=no
2098 DEFAULT_wxUSE_DYNLIB_CLASS=no
2099 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2100 DEFAULT_wxUSE_LONGLONG=no
2101 DEFAULT_wxUSE_GEOMETRY=no
2102
2103 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2104 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2105 DEFAULT_wxUSE_POSTSCRIPT=no
2106
2107 DEFAULT_wxUSE_CLIPBOARD=no
2108 DEFAULT_wxUSE_TOOLTIPS=no
2109 DEFAULT_wxUSE_DRAG_AND_DROP=no
2110 DEFAULT_wxUSE_DRAGIMAGE=no
2111 DEFAULT_wxUSE_SPLINES=no
2112
8a7b1113 2113 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2114 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2115 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2116 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2117
2118 DEFAULT_wxUSE_RESOURCES=no
2119 DEFAULT_wxUSE_CONSTRAINTS=no
2120 DEFAULT_wxUSE_IPC=no
2121 DEFAULT_wxUSE_HELP=no
2122 DEFAULT_wxUSE_MS_HTML_HELP=no
2123 DEFAULT_wxUSE_WXHTML_HELP=no
2124 DEFAULT_wxUSE_TREELAYOUT=no
2125 DEFAULT_wxUSE_METAFILE=no
2126 DEFAULT_wxUSE_MIMETYPE=no
2127 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2128 DEFAULT_wxUSE_PROTOCOL=no
2129 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2130 DEFAULT_wxUSE_PROTOCOL_FTP=no
2131 DEFAULT_wxUSE_PROTOCOL_FILE=no
2132 DEFAULT_wxUSE_URL=no
2133
2134 DEFAULT_wxUSE_COMMONDLGS=no
2135 DEFAULT_wxUSE_CHOICEDLG=no
2136 DEFAULT_wxUSE_COLOURDLG=no
2137 DEFAULT_wxUSE_DIRDLG=no
2138 DEFAULT_wxUSE_FILEDLG=no
2139 DEFAULT_wxUSE_FINDREPLDLG=no
2140 DEFAULT_wxUSE_FONTDLG=no
2141 DEFAULT_wxUSE_MSGDLG=no
2142 DEFAULT_wxUSE_NUMBERDLG=no
2143 DEFAULT_wxUSE_TEXTDLG=no
2144 DEFAULT_wxUSE_SPLASH=no
2145 DEFAULT_wxUSE_STARTUP_TIPS=no
2146 DEFAULT_wxUSE_PROGRESSDLG=no
2147 DEFAULT_wxUSE_WIZARDDLG=no
2148
2149 DEFAULT_wxUSE_MENUS=no
2150 DEFAULT_wxUSE_MINIFRAME=no
2151 DEFAULT_wxUSE_HTML=no
9a8f0513 2152 DEFAULT_wxUSE_XRC=no
646b6ec1 2153 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2154 DEFAULT_wxUSE_FILESYSTEM=no
2155 DEFAULT_wxUSE_FS_INET=no
2156 DEFAULT_wxUSE_FS_ZIP=no
2157 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2158 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2159 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2160 DEFAULT_wxUSE_VALIDATORS=no
2161
2162 DEFAULT_wxUSE_ACCEL=no
2163 DEFAULT_wxUSE_BUTTON=no
2164 DEFAULT_wxUSE_BMPBUTTON=no
2165 DEFAULT_wxUSE_CALCTRL=no
2166 DEFAULT_wxUSE_CARET=no
2167 DEFAULT_wxUSE_CHECKBOX=no
2168 DEFAULT_wxUSE_CHECKLST=no
2169 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2170 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2171 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2172 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2173 DEFAULT_wxUSE_DISPLAY=no
2174 DEFAULT_wxUSE_GAUGE=no
2175 DEFAULT_wxUSE_GRID=no
2176 DEFAULT_wxUSE_IMAGLIST=no
2177 DEFAULT_wxUSE_LISTBOOK=no
2178 DEFAULT_wxUSE_LISTBOX=no
2179 DEFAULT_wxUSE_LISTCTRL=no
2180 DEFAULT_wxUSE_NOTEBOOK=no
2181 DEFAULT_wxUSE_RADIOBOX=no
2182 DEFAULT_wxUSE_RADIOBTN=no
2183 DEFAULT_wxUSE_SASH=no
2184 DEFAULT_wxUSE_SCROLLBAR=no
2185 DEFAULT_wxUSE_SLIDER=no
2186 DEFAULT_wxUSE_SPINBTN=no
2187 DEFAULT_wxUSE_SPINCTRL=no
2188 DEFAULT_wxUSE_SPLITTER=no
2189 DEFAULT_wxUSE_STATBMP=no
2190 DEFAULT_wxUSE_STATBOX=no
2191 DEFAULT_wxUSE_STATLINE=no
2192 DEFAULT_wxUSE_STATTEXT=no
2193 DEFAULT_wxUSE_STATUSBAR=yes
2194 DEFAULT_wxUSE_TABDIALOG=no
2195 DEFAULT_wxUSE_TEXTCTRL=no
2196 DEFAULT_wxUSE_TOGGLEBTN=no
2197 DEFAULT_wxUSE_TOOLBAR=no
2198 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2199 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2200 DEFAULT_wxUSE_TREECTRL=no
2201 DEFAULT_wxUSE_POPUPWIN=no
2202 DEFAULT_wxUSE_TIPWINDOW=no
2203
2204 DEFAULT_wxUSE_UNICODE=no
2205 DEFAULT_wxUSE_UNICODE_MSLU=no
2206 DEFAULT_wxUSE_WCSRTOMBS=no
2207
2208 DEFAULT_wxUSE_PALETTE=no
2209 DEFAULT_wxUSE_IMAGE=no
2210 DEFAULT_wxUSE_GIF=no
2211 DEFAULT_wxUSE_PCX=no
2212 DEFAULT_wxUSE_PNM=no
2213 DEFAULT_wxUSE_IFF=no
2214 DEFAULT_wxUSE_XPM=no
2215 DEFAULT_wxUSE_ICO_CUR=no
2216 DEFAULT_wxUSE_ACCESSIBILITY=no
2217
2218 DEFAULT_wxUSE_MONOLITHIC=no
2219 DEFAULT_wxUSE_PLUGINS=no
2220 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2221else
2222 DEFAULT_wxUSE_UNIVERSAL=no
2223 DEFAULT_wxUSE_STL=no
2224
2225 DEFAULT_wxUSE_NANOX=no
2226
2227 DEFAULT_wxUSE_THREADS=yes
2228
2229 DEFAULT_wxUSE_SHARED=yes
2230 DEFAULT_wxUSE_OPTIMISE=yes
2231 DEFAULT_wxUSE_PROFILE=no
2232 DEFAULT_wxUSE_NO_DEPS=no
2233 DEFAULT_wxUSE_NO_RTTI=no
2234 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2235 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2236 DEFAULT_wxUSE_PERMISSIVE=no
2237 DEFAULT_wxUSE_DEBUG_FLAG=no
2238 DEFAULT_wxUSE_DEBUG_INFO=no
2239 DEFAULT_wxUSE_DEBUG_GDB=no
2240 DEFAULT_wxUSE_MEM_TRACING=no
2241 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2242 DEFAULT_wxUSE_DMALLOC=no
2243 DEFAULT_wxUSE_APPLE_IEEE=yes
2244
2245 DEFAULT_wxUSE_EXCEPTIONS=yes
2246 DEFAULT_wxUSE_LOG=yes
2247 DEFAULT_wxUSE_LOGWINDOW=yes
2248 DEFAULT_wxUSE_LOGGUI=yes
2249 DEFAULT_wxUSE_LOGDIALOG=yes
2250
2251 DEFAULT_wxUSE_GUI=yes
2252
2253 DEFAULT_wxUSE_REGEX=yes
2254 DEFAULT_wxUSE_XML=yes
2255 DEFAULT_wxUSE_EXPAT=yes
2256 DEFAULT_wxUSE_ZLIB=yes
2257 DEFAULT_wxUSE_LIBPNG=yes
2258 DEFAULT_wxUSE_LIBJPEG=yes
2259 DEFAULT_wxUSE_LIBTIFF=yes
2260 DEFAULT_wxUSE_LIBXPM=yes
2261 DEFAULT_wxUSE_LIBMSPACK=yes
2262 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2263 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2264 DEFAULT_wxUSE_ODBC=no
2265 DEFAULT_wxUSE_OPENGL=no
2266
2267 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2268 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2269 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e
SC
2270 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2271 DEFAULT_wxUSE_STD_IOSTREAM=no
2272 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2273 DEFAULT_wxUSE_DATETIME=yes
2274 DEFAULT_wxUSE_TIMER=yes
2275 DEFAULT_wxUSE_STOPWATCH=yes
2276 DEFAULT_wxUSE_FILE=yes
2277 DEFAULT_wxUSE_FFILE=yes
07158944 2278 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2279 DEFAULT_wxUSE_TEXTBUFFER=yes
2280 DEFAULT_wxUSE_TEXTFILE=yes
2281 DEFAULT_wxUSE_SOUND=yes
3b57de8b
RL
2282 DEFAULT_wxUSE_MEDIACTRL=no
2283 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2284 DEFAULT_wxUSE_INTL=yes
2285 DEFAULT_wxUSE_CONFIG=yes
2286 DEFAULT_wxUSE_FONTMAP=yes
2287 DEFAULT_wxUSE_STREAMS=yes
2288 DEFAULT_wxUSE_SOCKETS=yes
2289 DEFAULT_wxUSE_OLE=yes
2290 DEFAULT_wxUSE_DATAOBJ=yes
2291 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2292 DEFAULT_wxUSE_JOYSTICK=yes
2293 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2294 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2295 DEFAULT_wxUSE_LONGLONG=yes
2296 DEFAULT_wxUSE_GEOMETRY=yes
2297
2298 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2299 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2300 DEFAULT_wxUSE_POSTSCRIPT=yes
2301
2302 DEFAULT_wxUSE_CLIPBOARD=yes
2303 DEFAULT_wxUSE_TOOLTIPS=yes
2304 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2305 DEFAULT_wxUSE_DRAGIMAGE=yes
2306 DEFAULT_wxUSE_SPLINES=yes
2307
8a7b1113 2308 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2309 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2310 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2311 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2312
2313 DEFAULT_wxUSE_RESOURCES=no
2314 DEFAULT_wxUSE_CONSTRAINTS=yes
2315 DEFAULT_wxUSE_IPC=yes
2316 DEFAULT_wxUSE_HELP=yes
2317 DEFAULT_wxUSE_MS_HTML_HELP=yes
2318 DEFAULT_wxUSE_WXHTML_HELP=yes
2319 DEFAULT_wxUSE_TREELAYOUT=yes
2320 DEFAULT_wxUSE_METAFILE=yes
2321 DEFAULT_wxUSE_MIMETYPE=yes
2322 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2323 DEFAULT_wxUSE_PROTOCOL=yes
2324 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2325 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2326 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2327 DEFAULT_wxUSE_URL=yes
2328
2329 DEFAULT_wxUSE_COMMONDLGS=yes
2330 DEFAULT_wxUSE_CHOICEDLG=yes
2331 DEFAULT_wxUSE_COLOURDLG=yes
2332 DEFAULT_wxUSE_DIRDLG=yes
2333 DEFAULT_wxUSE_FILEDLG=yes
2334 DEFAULT_wxUSE_FINDREPLDLG=yes
2335 DEFAULT_wxUSE_FONTDLG=yes
2336 DEFAULT_wxUSE_MSGDLG=yes
2337 DEFAULT_wxUSE_NUMBERDLG=yes
2338 DEFAULT_wxUSE_TEXTDLG=yes
2339 DEFAULT_wxUSE_SPLASH=yes
2340 DEFAULT_wxUSE_STARTUP_TIPS=yes
2341 DEFAULT_wxUSE_PROGRESSDLG=yes
2342 DEFAULT_wxUSE_WIZARDDLG=yes
2343
2344 DEFAULT_wxUSE_MENUS=yes
2345 DEFAULT_wxUSE_MINIFRAME=yes
2346 DEFAULT_wxUSE_HTML=yes
9a8f0513 2347 DEFAULT_wxUSE_XRC=yes
646b6ec1 2348 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2349 DEFAULT_wxUSE_FILESYSTEM=yes
2350 DEFAULT_wxUSE_FS_INET=yes
2351 DEFAULT_wxUSE_FS_ZIP=yes
2352 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2353 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2354 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2355 DEFAULT_wxUSE_VALIDATORS=yes
2356
2357 DEFAULT_wxUSE_ACCEL=yes
2358 DEFAULT_wxUSE_BUTTON=yes
2359 DEFAULT_wxUSE_BMPBUTTON=yes
2360 DEFAULT_wxUSE_CALCTRL=yes
2361 DEFAULT_wxUSE_CARET=yes
2362 DEFAULT_wxUSE_CHECKBOX=yes
2363 DEFAULT_wxUSE_CHECKLST=yes
2364 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2365 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2366 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2367 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2368 DEFAULT_wxUSE_DISPLAY=yes
2369 DEFAULT_wxUSE_GAUGE=yes
2370 DEFAULT_wxUSE_GRID=yes
2371 DEFAULT_wxUSE_IMAGLIST=yes
2372 DEFAULT_wxUSE_LISTBOOK=yes
2373 DEFAULT_wxUSE_LISTBOX=yes
2374 DEFAULT_wxUSE_LISTCTRL=yes
2375 DEFAULT_wxUSE_NOTEBOOK=yes
2376 DEFAULT_wxUSE_RADIOBOX=yes
2377 DEFAULT_wxUSE_RADIOBTN=yes
2378 DEFAULT_wxUSE_SASH=yes
2379 DEFAULT_wxUSE_SCROLLBAR=yes
2380 DEFAULT_wxUSE_SLIDER=yes
2381 DEFAULT_wxUSE_SPINBTN=yes
2382 DEFAULT_wxUSE_SPINCTRL=yes
2383 DEFAULT_wxUSE_SPLITTER=yes
2384 DEFAULT_wxUSE_STATBMP=yes
2385 DEFAULT_wxUSE_STATBOX=yes
2386 DEFAULT_wxUSE_STATLINE=yes
2387 DEFAULT_wxUSE_STATTEXT=yes
2388 DEFAULT_wxUSE_STATUSBAR=yes
2389 DEFAULT_wxUSE_TABDIALOG=no
2390 DEFAULT_wxUSE_TEXTCTRL=yes
2391 DEFAULT_wxUSE_TOGGLEBTN=yes
2392 DEFAULT_wxUSE_TOOLBAR=yes
2393 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2394 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2395 DEFAULT_wxUSE_TREECTRL=yes
2396 DEFAULT_wxUSE_POPUPWIN=yes
2397 DEFAULT_wxUSE_TIPWINDOW=yes
2398
2399 DEFAULT_wxUSE_UNICODE=no
2400 DEFAULT_wxUSE_UNICODE_MSLU=yes
2401 DEFAULT_wxUSE_WCSRTOMBS=no
2402
2403 DEFAULT_wxUSE_PALETTE=yes
2404 DEFAULT_wxUSE_IMAGE=yes
2405 DEFAULT_wxUSE_GIF=yes
2406 DEFAULT_wxUSE_PCX=yes
2407 DEFAULT_wxUSE_IFF=no
2408 DEFAULT_wxUSE_PNM=yes
2409 DEFAULT_wxUSE_XPM=yes
2410 DEFAULT_wxUSE_ICO_CUR=yes
2411 DEFAULT_wxUSE_ACCESSIBILITY=no
2412
2413 DEFAULT_wxUSE_MONOLITHIC=no
2414 DEFAULT_wxUSE_PLUGINS=no
2415 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2416
2417 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2418fi
2419
2420
2421
2422for toolkit in `echo $ALL_TOOLKITS`; do
2423 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2424 if test "x$LINE" != "x" ; then
2425 has_toolkit_in_cache=1
2426 eval "DEFAULT_$LINE"
2427 eval "CACHE_$toolkit=1"
2428 fi
2429done
2430
2431
2432
2433 enablestring=
2434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2435echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2436 no_cache=0
2437 # Check whether --enable-gui or --disable-gui was given.
2438if test "${enable_gui+set}" = set; then
2439 enableval="$enable_gui"
2440
2441 if test "$enableval" = yes; then
2442 ac_cv_use_gui='wxUSE_GUI=yes'
2443 else
2444 ac_cv_use_gui='wxUSE_GUI=no'
2445 fi
2446
2447else
2448
2449 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2450 if test "x$LINE" != x ; then
2451 eval "DEFAULT_$LINE"
2452 else
2453 no_cache=1
2454 fi
2455
2456 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2457
2458fi;
2459
2460 eval "$ac_cv_use_gui"
2461 if test "$no_cache" != 1; then
2462 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2463 fi
2464
2465 if test "$wxUSE_GUI" = yes; then
2466 echo "$as_me:$LINENO: result: yes" >&5
2467echo "${ECHO_T}yes" >&6
2468 else
2469 echo "$as_me:$LINENO: result: no" >&5
2470echo "${ECHO_T}no" >&6
2471 fi
2472
2473
2474 enablestring=
2475 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2476echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2477 no_cache=0
2478 # Check whether --enable-monolithic or --disable-monolithic was given.
2479if test "${enable_monolithic+set}" = set; then
2480 enableval="$enable_monolithic"
2481
2482 if test "$enableval" = yes; then
2483 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2484 else
2485 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2486 fi
2487
2488else
2489
2490 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2491 if test "x$LINE" != x ; then
2492 eval "DEFAULT_$LINE"
2493 else
2494 no_cache=1
2495 fi
2496
2497 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2498
2499fi;
2500
2501 eval "$ac_cv_use_monolithic"
2502 if test "$no_cache" != 1; then
2503 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2504 fi
2505
2506 if test "$wxUSE_MONOLITHIC" = yes; then
2507 echo "$as_me:$LINENO: result: yes" >&5
2508echo "${ECHO_T}yes" >&6
2509 else
2510 echo "$as_me:$LINENO: result: no" >&5
2511echo "${ECHO_T}no" >&6
2512 fi
2513
2514
2515 enablestring=
2516 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2517echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2518 no_cache=0
2519 # Check whether --enable-plugins or --disable-plugins was given.
2520if test "${enable_plugins+set}" = set; then
2521 enableval="$enable_plugins"
2522
2523 if test "$enableval" = yes; then
2524 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2525 else
2526 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2527 fi
2528
2529else
2530
2531 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2532 if test "x$LINE" != x ; then
2533 eval "DEFAULT_$LINE"
2534 else
2535 no_cache=1
2536 fi
2537
2538 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2539
2540fi;
2541
2542 eval "$ac_cv_use_plugins"
2543 if test "$no_cache" != 1; then
2544 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2545 fi
2546
2547 if test "$wxUSE_PLUGINS" = yes; then
2548 echo "$as_me:$LINENO: result: yes" >&5
2549echo "${ECHO_T}yes" >&6
2550 else
2551 echo "$as_me:$LINENO: result: no" >&5
2552echo "${ECHO_T}no" >&6
2553 fi
2554
2555
2556if test "$wxUSE_GUI" = "yes"; then
2557
2558
2559 enablestring=
2560 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2561echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2562 no_cache=0
2563 # Check whether --enable-universal or --disable-universal was given.
2564if test "${enable_universal+set}" = set; then
2565 enableval="$enable_universal"
2566
2567 if test "$enableval" = yes; then
2568 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2569 else
2570 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2571 fi
2572
2573else
2574
2575 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2576 if test "x$LINE" != x ; then
2577 eval "DEFAULT_$LINE"
2578 else
2579 no_cache=1
2580 fi
2581
2582 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2583
2584fi;
2585
2586 eval "$ac_cv_use_universal"
2587 if test "$no_cache" != 1; then
2588 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2589 fi
2590
2591 if test "$wxUSE_UNIVERSAL" = yes; then
2592 echo "$as_me:$LINENO: result: yes" >&5
2593echo "${ECHO_T}yes" >&6
2594 else
2595 echo "$as_me:$LINENO: result: no" >&5
2596echo "${ECHO_T}no" >&6
2597 fi
2598
2599
2600# Check whether --with-gtk or --without-gtk was given.
2601if test "${with_gtk+set}" = set; then
2602 withval="$with_gtk"
2603 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2604fi;
2605
2606# Check whether --with-motif or --without-motif was given.
2607if test "${with_motif+set}" = set; then
2608 withval="$with_motif"
2609 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2610fi;
2611
2612# Check whether --with-mac or --without-mac was given.
2613if test "${with_mac+set}" = set; then
2614 withval="$with_mac"
c228d3a4 2615 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2616fi;
2617
2618# Check whether --with-cocoa or --without-cocoa was given.
2619if test "${with_cocoa+set}" = set; then
2620 withval="$with_cocoa"
c228d3a4 2621 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2622fi;
2623
2624# Check whether --with-wine or --without-wine was given.
2625if test "${with_wine+set}" = set; then
2626 withval="$with_wine"
2627 wxUSE_WINE="$withval" CACHE_WINE=1
2628fi;
2629
2630# Check whether --with-msw or --without-msw was given.
2631if test "${with_msw+set}" = set; then
2632 withval="$with_msw"
2633 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2634fi;
2635
2636# Check whether --with-pm or --without-pm was given.
2637if test "${with_pm+set}" = set; then
2638 withval="$with_pm"
2639 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2640fi;
2641
2642# Check whether --with-mgl or --without-mgl was given.
2643if test "${with_mgl+set}" = set; then
2644 withval="$with_mgl"
2645 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2646fi;
2647
2648# Check whether --with-microwin or --without-microwin was given.
2649if test "${with_microwin+set}" = set; then
2650 withval="$with_microwin"
2651 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2652fi;
2653
2654# Check whether --with-x11 or --without-x11 was given.
2655if test "${with_x11+set}" = set; then
2656 withval="$with_x11"
2657 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2658fi;
2659
2660 enablestring=
2661 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2662echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2663 no_cache=0
2664 # Check whether --enable-nanox or --disable-nanox was given.
2665if test "${enable_nanox+set}" = set; then
2666 enableval="$enable_nanox"
2667
2668 if test "$enableval" = yes; then
2669 ac_cv_use_nanox='wxUSE_NANOX=yes'
2670 else
2671 ac_cv_use_nanox='wxUSE_NANOX=no'
2672 fi
2673
2674else
2675
2676 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2677 if test "x$LINE" != x ; then
2678 eval "DEFAULT_$LINE"
2679 else
2680 no_cache=1
2681 fi
2682
2683 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2684
2685fi;
2686
2687 eval "$ac_cv_use_nanox"
2688 if test "$no_cache" != 1; then
2689 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2690 fi
2691
2692 if test "$wxUSE_NANOX" = yes; then
2693 echo "$as_me:$LINENO: result: yes" >&5
2694echo "${ECHO_T}yes" >&6
2695 else
2696 echo "$as_me:$LINENO: result: no" >&5
2697echo "${ECHO_T}no" >&6
2698 fi
2699
2700
2701
2702 enablestring=
2703 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2704echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2705 no_cache=0
2706 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2707if test "${enable_gtk2+set}" = set; then
2708 enableval="$enable_gtk2"
2709
2710 if test "$enableval" = yes; then
2711 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2712 else
2713 ac_cv_use_gtk2='wxUSE_GTK2=no'
2714 fi
2715
2716else
2717
2718 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2719 if test "x$LINE" != x ; then
2720 eval "DEFAULT_$LINE"
2721 else
2722 no_cache=1
2723 fi
2724
2725 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2726
2727fi;
2728
2729 eval "$ac_cv_use_gtk2"
2730 if test "$no_cache" != 1; then
2731 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2732 fi
2733
2734 if test "$wxUSE_GTK2" = yes; then
2735 echo "$as_me:$LINENO: result: yes" >&5
2736echo "${ECHO_T}yes" >&6
2737 else
2738 echo "$as_me:$LINENO: result: no" >&5
2739echo "${ECHO_T}no" >&6
2740 fi
2741
2742
2743 enablestring=
2744 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2745echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2746 no_cache=0
2747 # Check whether --enable-gpe or --disable-gpe was given.
2748if test "${enable_gpe+set}" = set; then
2749 enableval="$enable_gpe"
2750
2751 if test "$enableval" = yes; then
2752 ac_cv_use_gpe='wxUSE_GPE=yes'
2753 else
2754 ac_cv_use_gpe='wxUSE_GPE=no'
2755 fi
2756
2757else
2758
2759 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2760 if test "x$LINE" != x ; then
2761 eval "DEFAULT_$LINE"
2762 else
2763 no_cache=1
2764 fi
2765
2766 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2767
2768fi;
2769
2770 eval "$ac_cv_use_gpe"
2771 if test "$no_cache" != 1; then
2772 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2773 fi
2774
2775 if test "$wxUSE_GPE" = yes; then
2776 echo "$as_me:$LINENO: result: yes" >&5
2777echo "${ECHO_T}yes" >&6
2778 else
2779 echo "$as_me:$LINENO: result: no" >&5
2780echo "${ECHO_T}no" >&6
2781 fi
2782
2783
2784
2785 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2786echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2787 no_cache=0
2788
2789# Check whether --with-libpng or --without-libpng was given.
2790if test "${with_libpng+set}" = set; then
2791 withval="$with_libpng"
2792
2793 if test "$withval" = yes; then
2794 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2795 elif test "$withval" = no; then
2796 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2797 elif test "$withval" = sys; then
2798 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2799 elif test "$withval" = builtin; then
2800 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2801 else
2802 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2803echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2804 { (exit 1); exit 1; }; }
2805 fi
2806
2807else
2808
2809 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2810 if test "x$LINE" != x ; then
2811 eval "DEFAULT_$LINE"
2812 else
2813 no_cache=1
2814 fi
2815
2816 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2817
2818fi;
2819
2820 eval "$ac_cv_use_libpng"
2821 if test "$no_cache" != 1; then
2822 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2823 fi
2824
2825 if test "$wxUSE_LIBPNG" = yes; then
2826 echo "$as_me:$LINENO: result: yes" >&5
2827echo "${ECHO_T}yes" >&6
2828 elif test "$wxUSE_LIBPNG" = no; then
2829 echo "$as_me:$LINENO: result: no" >&5
2830echo "${ECHO_T}no" >&6
2831 elif test "$wxUSE_LIBPNG" = sys; then
2832 echo "$as_me:$LINENO: result: system version" >&5
2833echo "${ECHO_T}system version" >&6
2834 elif test "$wxUSE_LIBPNG" = builtin; then
2835 echo "$as_me:$LINENO: result: builtin version" >&5
2836echo "${ECHO_T}builtin version" >&6
2837 else
2838 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2839echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2840 { (exit 1); exit 1; }; }
2841 fi
2842
2843
2844 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2845echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2846 no_cache=0
2847
2848# Check whether --with-libjpeg or --without-libjpeg was given.
2849if test "${with_libjpeg+set}" = set; then
2850 withval="$with_libjpeg"
2851
2852 if test "$withval" = yes; then
2853 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2854 elif test "$withval" = no; then
2855 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2856 elif test "$withval" = sys; then
2857 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2858 elif test "$withval" = builtin; then
2859 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2860 else
2861 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2862echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2863 { (exit 1); exit 1; }; }
2864 fi
2865
2866else
2867
2868 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2869 if test "x$LINE" != x ; then
2870 eval "DEFAULT_$LINE"
2871 else
2872 no_cache=1
2873 fi
2874
2875 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2876
2877fi;
2878
2879 eval "$ac_cv_use_libjpeg"
2880 if test "$no_cache" != 1; then
2881 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2882 fi
2883
2884 if test "$wxUSE_LIBJPEG" = yes; then
2885 echo "$as_me:$LINENO: result: yes" >&5
2886echo "${ECHO_T}yes" >&6
2887 elif test "$wxUSE_LIBJPEG" = no; then
2888 echo "$as_me:$LINENO: result: no" >&5
2889echo "${ECHO_T}no" >&6
2890 elif test "$wxUSE_LIBJPEG" = sys; then
2891 echo "$as_me:$LINENO: result: system version" >&5
2892echo "${ECHO_T}system version" >&6
2893 elif test "$wxUSE_LIBJPEG" = builtin; then
2894 echo "$as_me:$LINENO: result: builtin version" >&5
2895echo "${ECHO_T}builtin version" >&6
2896 else
2897 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2898echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2899 { (exit 1); exit 1; }; }
2900 fi
2901
2902
2903 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2904echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2905 no_cache=0
2906
2907# Check whether --with-libtiff or --without-libtiff was given.
2908if test "${with_libtiff+set}" = set; then
2909 withval="$with_libtiff"
2910
2911 if test "$withval" = yes; then
2912 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2913 elif test "$withval" = no; then
2914 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2915 elif test "$withval" = sys; then
2916 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2917 elif test "$withval" = builtin; then
2918 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2919 else
2920 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2921echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2922 { (exit 1); exit 1; }; }
2923 fi
2924
2925else
2926
2927 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2928 if test "x$LINE" != x ; then
2929 eval "DEFAULT_$LINE"
2930 else
2931 no_cache=1
2932 fi
2933
2934 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2935
2936fi;
2937
2938 eval "$ac_cv_use_libtiff"
2939 if test "$no_cache" != 1; then
2940 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2941 fi
2942
2943 if test "$wxUSE_LIBTIFF" = yes; then
2944 echo "$as_me:$LINENO: result: yes" >&5
2945echo "${ECHO_T}yes" >&6
2946 elif test "$wxUSE_LIBTIFF" = no; then
2947 echo "$as_me:$LINENO: result: no" >&5
2948echo "${ECHO_T}no" >&6
2949 elif test "$wxUSE_LIBTIFF" = sys; then
2950 echo "$as_me:$LINENO: result: system version" >&5
2951echo "${ECHO_T}system version" >&6
2952 elif test "$wxUSE_LIBTIFF" = builtin; then
2953 echo "$as_me:$LINENO: result: builtin version" >&5
2954echo "${ECHO_T}builtin version" >&6
2955 else
2956 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2957echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2958 { (exit 1); exit 1; }; }
2959 fi
2960
2961
2962 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2963echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2964 no_cache=0
2965
2966# Check whether --with-libxpm or --without-libxpm was given.
2967if test "${with_libxpm+set}" = set; then
2968 withval="$with_libxpm"
2969
2970 if test "$withval" = yes; then
2971 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2972 elif test "$withval" = no; then
2973 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2974 elif test "$withval" = sys; then
2975 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2976 elif test "$withval" = builtin; then
2977 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2978 else
2979 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2980echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2981 { (exit 1); exit 1; }; }
2982 fi
2983
2984else
2985
2986 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2987 if test "x$LINE" != x ; then
2988 eval "DEFAULT_$LINE"
2989 else
2990 no_cache=1
2991 fi
2992
2993 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2994
2995fi;
2996
2997 eval "$ac_cv_use_libxpm"
2998 if test "$no_cache" != 1; then
2999 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3000 fi
3001
3002 if test "$wxUSE_LIBXPM" = yes; then
3003 echo "$as_me:$LINENO: result: yes" >&5
3004echo "${ECHO_T}yes" >&6
3005 elif test "$wxUSE_LIBXPM" = no; then
3006 echo "$as_me:$LINENO: result: no" >&5
3007echo "${ECHO_T}no" >&6
3008 elif test "$wxUSE_LIBXPM" = sys; then
3009 echo "$as_me:$LINENO: result: system version" >&5
3010echo "${ECHO_T}system version" >&6
3011 elif test "$wxUSE_LIBXPM" = builtin; then
3012 echo "$as_me:$LINENO: result: builtin version" >&5
3013echo "${ECHO_T}builtin version" >&6
3014 else
3015 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3016echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3017 { (exit 1); exit 1; }; }
3018 fi
3019
3020
3021 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
3022echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3023 no_cache=0
3024
3025# Check whether --with-libmspack or --without-libmspack was given.
3026if test "${with_libmspack+set}" = set; then
3027 withval="$with_libmspack"
3028
3029 if test "$withval" = yes; then
3030 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3031 else
3032 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3033 fi
3034
3035else
3036
3037 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3038 if test "x$LINE" != x ; then
3039 eval "DEFAULT_$LINE"
3040 else
3041 no_cache=1
3042 fi
3043
3044 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3045
3046fi;
3047
3048 eval "$ac_cv_use_libmspack"
3049 if test "$no_cache" != 1; then
3050 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3051 fi
3052
3053 if test "$wxUSE_LIBMSPACK" = yes; then
3054 echo "$as_me:$LINENO: result: yes" >&5
3055echo "${ECHO_T}yes" >&6
3056 else
3057 echo "$as_me:$LINENO: result: no" >&5
3058echo "${ECHO_T}no" >&6
3059 fi
3060
3061
3062 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3063echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3064 no_cache=0
3065
3066# Check whether --with-sdl or --without-sdl was given.
3067if test "${with_sdl+set}" = set; then
3068 withval="$with_sdl"
3069
3070 if test "$withval" = yes; then
3071 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3072 else
3073 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3074 fi
3075
3076else
3077
3078 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3079 if test "x$LINE" != x ; then
3080 eval "DEFAULT_$LINE"
3081 else
3082 no_cache=1
3083 fi
3084
3085 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3086
3087fi;
3088
3089 eval "$ac_cv_use_sdl"
3090 if test "$no_cache" != 1; then
3091 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3092 fi
3093
3094 if test "$wxUSE_LIBSDL" = yes; then
3095 echo "$as_me:$LINENO: result: yes" >&5
3096echo "${ECHO_T}yes" >&6
3097 else
3098 echo "$as_me:$LINENO: result: no" >&5
3099echo "${ECHO_T}no" >&6
3100 fi
3101
3102
d1c38808
VZ
3103 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3104echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3105 no_cache=0
3106
3107# Check whether --with-gnomeprint or --without-gnomeprint was given.
3108if test "${with_gnomeprint+set}" = set; then
3109 withval="$with_gnomeprint"
3110
3111 if test "$withval" = yes; then
3112 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3113 else
3114 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3115 fi
3116
3117else
3118
3119 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3120 if test "x$LINE" != x ; then
3121 eval "DEFAULT_$LINE"
3122 else
3123 no_cache=1
3124 fi
3125
3126 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3127
3128fi;
3129
3130 eval "$ac_cv_use_gnomeprint"
3131 if test "$no_cache" != 1; then
3132 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3133 fi
3134
3135 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3136 echo "$as_me:$LINENO: result: yes" >&5
3137echo "${ECHO_T}yes" >&6
3138 else
3139 echo "$as_me:$LINENO: result: no" >&5
3140echo "${ECHO_T}no" >&6
3141 fi
3142
3143
a848cd7e
SC
3144 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3145echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3146 no_cache=0
3147
3148# Check whether --with-opengl or --without-opengl was given.
3149if test "${with_opengl+set}" = set; then
3150 withval="$with_opengl"
3151
3152 if test "$withval" = yes; then
3153 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3154 else
3155 ac_cv_use_opengl='wxUSE_OPENGL=no'
3156 fi
3157
3158else
3159
3160 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3161 if test "x$LINE" != x ; then
3162 eval "DEFAULT_$LINE"
3163 else
3164 no_cache=1
3165 fi
3166
3167 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3168
3169fi;
3170
3171 eval "$ac_cv_use_opengl"
3172 if test "$no_cache" != 1; then
3173 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3174 fi
3175
3176 if test "$wxUSE_OPENGL" = yes; then
3177 echo "$as_me:$LINENO: result: yes" >&5
3178echo "${ECHO_T}yes" >&6
3179 else
3180 echo "$as_me:$LINENO: result: no" >&5
3181echo "${ECHO_T}no" >&6
3182 fi
3183
3184
3185fi
3186
3187
3188 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3189echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3190 no_cache=0
3191
3192# Check whether --with-dmalloc or --without-dmalloc was given.
3193if test "${with_dmalloc+set}" = set; then
3194 withval="$with_dmalloc"
3195
3196 if test "$withval" = yes; then
3197 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3198 else
3199 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3200 fi
3201
3202else
3203
3204 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3205 if test "x$LINE" != x ; then
3206 eval "DEFAULT_$LINE"
3207 else
3208 no_cache=1
3209 fi
3210
3211 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3212
3213fi;
3214
3215 eval "$ac_cv_use_dmalloc"
3216 if test "$no_cache" != 1; then
3217 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3218 fi
3219
3220 if test "$wxUSE_DMALLOC" = yes; then
3221 echo "$as_me:$LINENO: result: yes" >&5
3222echo "${ECHO_T}yes" >&6
3223 else
3224 echo "$as_me:$LINENO: result: no" >&5
3225echo "${ECHO_T}no" >&6
3226 fi
3227
3228
3229 echo "$as_me:$LINENO: checking for --with-regex" >&5
3230echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3231 no_cache=0
3232
3233# Check whether --with-regex or --without-regex was given.
3234if test "${with_regex+set}" = set; then
3235 withval="$with_regex"
3236
3237 if test "$withval" = yes; then
3238 ac_cv_use_regex='wxUSE_REGEX=yes'
3239 elif test "$withval" = no; then
3240 ac_cv_use_regex='wxUSE_REGEX=no'
3241 elif test "$withval" = sys; then
3242 ac_cv_use_regex='wxUSE_REGEX=sys'
3243 elif test "$withval" = builtin; then
3244 ac_cv_use_regex='wxUSE_REGEX=builtin'
3245 else
3246 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3247echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3248 { (exit 1); exit 1; }; }
3249 fi
3250
3251else
3252
3253 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3254 if test "x$LINE" != x ; then
3255 eval "DEFAULT_$LINE"
3256 else
3257 no_cache=1
3258 fi
3259
3260 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3261
3262fi;
3263
3264 eval "$ac_cv_use_regex"
3265 if test "$no_cache" != 1; then
3266 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3267 fi
3268
3269 if test "$wxUSE_REGEX" = yes; then
3270 echo "$as_me:$LINENO: result: yes" >&5
3271echo "${ECHO_T}yes" >&6
3272 elif test "$wxUSE_REGEX" = no; then
3273 echo "$as_me:$LINENO: result: no" >&5
3274echo "${ECHO_T}no" >&6
3275 elif test "$wxUSE_REGEX" = sys; then
3276 echo "$as_me:$LINENO: result: system version" >&5
3277echo "${ECHO_T}system version" >&6
3278 elif test "$wxUSE_REGEX" = builtin; then
3279 echo "$as_me:$LINENO: result: builtin version" >&5
3280echo "${ECHO_T}builtin version" >&6
3281 else
3282 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3283echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3284 { (exit 1); exit 1; }; }
3285 fi
3286
3287
3288 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3289echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3290 no_cache=0
3291
3292# Check whether --with-zlib or --without-zlib was given.
3293if test "${with_zlib+set}" = set; then
3294 withval="$with_zlib"
3295
3296 if test "$withval" = yes; then
3297 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3298 elif test "$withval" = no; then
3299 ac_cv_use_zlib='wxUSE_ZLIB=no'
3300 elif test "$withval" = sys; then
3301 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3302 elif test "$withval" = builtin; then
3303 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3304 else
3305 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3306echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3307 { (exit 1); exit 1; }; }
3308 fi
3309
3310else
3311
3312 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3313 if test "x$LINE" != x ; then
3314 eval "DEFAULT_$LINE"
3315 else
3316 no_cache=1
3317 fi
3318
3319 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3320
3321fi;
3322
3323 eval "$ac_cv_use_zlib"
3324 if test "$no_cache" != 1; then
3325 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3326 fi
3327
3328 if test "$wxUSE_ZLIB" = yes; then
3329 echo "$as_me:$LINENO: result: yes" >&5
3330echo "${ECHO_T}yes" >&6
3331 elif test "$wxUSE_ZLIB" = no; then
3332 echo "$as_me:$LINENO: result: no" >&5
3333echo "${ECHO_T}no" >&6
3334 elif test "$wxUSE_ZLIB" = sys; then
3335 echo "$as_me:$LINENO: result: system version" >&5
3336echo "${ECHO_T}system version" >&6
3337 elif test "$wxUSE_ZLIB" = builtin; then
3338 echo "$as_me:$LINENO: result: builtin version" >&5
3339echo "${ECHO_T}builtin version" >&6
3340 else
3341 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3342echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3343 { (exit 1); exit 1; }; }
3344 fi
3345
3346
3347 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3348echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3349 no_cache=0
3350
3351# Check whether --with-odbc or --without-odbc was given.
3352if test "${with_odbc+set}" = set; then
3353 withval="$with_odbc"
3354
3355 if test "$withval" = yes; then
3356 ac_cv_use_odbc='wxUSE_ODBC=yes'
3357 elif test "$withval" = no; then
3358 ac_cv_use_odbc='wxUSE_ODBC=no'
3359 elif test "$withval" = sys; then
3360 ac_cv_use_odbc='wxUSE_ODBC=sys'
3361 elif test "$withval" = builtin; then
3362 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3363 else
3364 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3365echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3366 { (exit 1); exit 1; }; }
3367 fi
3368
3369else
3370
3371 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3372 if test "x$LINE" != x ; then
3373 eval "DEFAULT_$LINE"
3374 else
3375 no_cache=1
3376 fi
3377
3378 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3379
3380fi;
3381
3382 eval "$ac_cv_use_odbc"
3383 if test "$no_cache" != 1; then
3384 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3385 fi
3386
3387 if test "$wxUSE_ODBC" = yes; then
3388 echo "$as_me:$LINENO: result: yes" >&5
3389echo "${ECHO_T}yes" >&6
3390 elif test "$wxUSE_ODBC" = no; then
3391 echo "$as_me:$LINENO: result: no" >&5
3392echo "${ECHO_T}no" >&6
3393 elif test "$wxUSE_ODBC" = sys; then
3394 echo "$as_me:$LINENO: result: system version" >&5
3395echo "${ECHO_T}system version" >&6
3396 elif test "$wxUSE_ODBC" = builtin; then
3397 echo "$as_me:$LINENO: result: builtin version" >&5
3398echo "${ECHO_T}builtin version" >&6
3399 else
3400 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3401echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3402 { (exit 1); exit 1; }; }
3403 fi
3404
3405
3406 echo "$as_me:$LINENO: checking for --with-expat" >&5
3407echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3408 no_cache=0
3409
3410# Check whether --with-expat or --without-expat was given.
3411if test "${with_expat+set}" = set; then
3412 withval="$with_expat"
3413
3414 if test "$withval" = yes; then
3415 ac_cv_use_expat='wxUSE_EXPAT=yes'
3416 elif test "$withval" = no; then
3417 ac_cv_use_expat='wxUSE_EXPAT=no'
3418 elif test "$withval" = sys; then
3419 ac_cv_use_expat='wxUSE_EXPAT=sys'
3420 elif test "$withval" = builtin; then
3421 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3422 else
3423 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3424echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3425 { (exit 1); exit 1; }; }
3426 fi
3427
3428else
3429
3430 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3431 if test "x$LINE" != x ; then
3432 eval "DEFAULT_$LINE"
3433 else
3434 no_cache=1
3435 fi
3436
3437 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3438
3439fi;
3440
3441 eval "$ac_cv_use_expat"
3442 if test "$no_cache" != 1; then
3443 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3444 fi
3445
3446 if test "$wxUSE_EXPAT" = yes; then
3447 echo "$as_me:$LINENO: result: yes" >&5
3448echo "${ECHO_T}yes" >&6
3449 elif test "$wxUSE_EXPAT" = no; then
3450 echo "$as_me:$LINENO: result: no" >&5
3451echo "${ECHO_T}no" >&6
3452 elif test "$wxUSE_EXPAT" = sys; then
3453 echo "$as_me:$LINENO: result: system version" >&5
3454echo "${ECHO_T}system version" >&6
3455 elif test "$wxUSE_EXPAT" = builtin; then
3456 echo "$as_me:$LINENO: result: builtin version" >&5
3457echo "${ECHO_T}builtin version" >&6
3458 else
3459 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3460echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3461 { (exit 1); exit 1; }; }
3462 fi
3463
3464
3465
3466
3467 enablestring=
3468 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3469echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3470 no_cache=0
3471 # Check whether --enable-shared or --disable-shared was given.
3472if test "${enable_shared+set}" = set; then
3473 enableval="$enable_shared"
3474
3475 if test "$enableval" = yes; then
3476 ac_cv_use_shared='wxUSE_SHARED=yes'
3477 else
3478 ac_cv_use_shared='wxUSE_SHARED=no'
3479 fi
3480
3481else
3482
3483 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3484 if test "x$LINE" != x ; then
3485 eval "DEFAULT_$LINE"
3486 else
3487 no_cache=1
3488 fi
3489
3490 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3491
3492fi;
3493
3494 eval "$ac_cv_use_shared"
3495 if test "$no_cache" != 1; then
3496 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3497 fi
3498
3499 if test "$wxUSE_SHARED" = yes; then
3500 echo "$as_me:$LINENO: result: yes" >&5
3501echo "${ECHO_T}yes" >&6
3502 else
3503 echo "$as_me:$LINENO: result: no" >&5
3504echo "${ECHO_T}no" >&6
3505 fi
3506
3507
3508 enablestring=
3509 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3510echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3511 no_cache=0
3512 # Check whether --enable-optimise or --disable-optimise was given.
3513if test "${enable_optimise+set}" = set; then
3514 enableval="$enable_optimise"
3515
3516 if test "$enableval" = yes; then
3517 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3518 else
3519 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3520 fi
3521
3522else
3523
3524 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3525 if test "x$LINE" != x ; then
3526 eval "DEFAULT_$LINE"
3527 else
3528 no_cache=1
3529 fi
3530
3531 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3532
3533fi;
3534
3535 eval "$ac_cv_use_optimise"
3536 if test "$no_cache" != 1; then
3537 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3538 fi
3539
3540 if test "$wxUSE_OPTIMISE" = yes; then
3541 echo "$as_me:$LINENO: result: yes" >&5
3542echo "${ECHO_T}yes" >&6
3543 else
3544 echo "$as_me:$LINENO: result: no" >&5
3545echo "${ECHO_T}no" >&6
3546 fi
3547
3548
3549 enablestring=
3550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3551echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3552 no_cache=0
3553 # Check whether --enable-debug or --disable-debug was given.
3554if test "${enable_debug+set}" = set; then
3555 enableval="$enable_debug"
3556
3557 if test "$enableval" = yes; then
3558 ac_cv_use_debug='wxUSE_DEBUG=yes'
3559 else
3560 ac_cv_use_debug='wxUSE_DEBUG=no'
3561 fi
3562
3563else
3564
3565 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3566 if test "x$LINE" != x ; then
3567 eval "DEFAULT_$LINE"
3568 else
3569 no_cache=1
3570 fi
3571
3572 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3573
3574fi;
3575
3576 eval "$ac_cv_use_debug"
3577 if test "$no_cache" != 1; then
3578 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3579 fi
3580
3581 if test "$wxUSE_DEBUG" = yes; then
3582 echo "$as_me:$LINENO: result: yes" >&5
3583echo "${ECHO_T}yes" >&6
3584 else
3585 echo "$as_me:$LINENO: result: no" >&5
3586echo "${ECHO_T}no" >&6
3587 fi
3588
3589
3590 enablestring=
3591 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3592echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3593 no_cache=0
3594 # Check whether --enable-stl or --disable-stl was given.
3595if test "${enable_stl+set}" = set; then
3596 enableval="$enable_stl"
3597
3598 if test "$enableval" = yes; then
3599 ac_cv_use_stl='wxUSE_STL=yes'
3600 else
3601 ac_cv_use_stl='wxUSE_STL=no'
3602 fi
3603
3604else
3605
3606 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3607 if test "x$LINE" != x ; then
3608 eval "DEFAULT_$LINE"
3609 else
3610 no_cache=1
3611 fi
3612
3613 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3614
3615fi;
3616
3617 eval "$ac_cv_use_stl"
3618 if test "$no_cache" != 1; then
3619 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3620 fi
3621
3622 if test "$wxUSE_STL" = yes; then
3623 echo "$as_me:$LINENO: result: yes" >&5
3624echo "${ECHO_T}yes" >&6
3625 else
3626 echo "$as_me:$LINENO: result: no" >&5
3627echo "${ECHO_T}no" >&6
3628 fi
3629
3630if test "$USE_OS2" = "1"; then
3631
3632 enablestring=
3633 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3634echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3635 no_cache=0
3636 # Check whether --enable-omf or --disable-omf was given.
3637if test "${enable_omf+set}" = set; then
3638 enableval="$enable_omf"
3639
3640 if test "$enableval" = yes; then
3641 ac_cv_use_omf='wxUSE_OMF=yes'
3642 else
3643 ac_cv_use_omf='wxUSE_OMF=no'
3644 fi
3645
3646else
3647
3648 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3649 if test "x$LINE" != x ; then
3650 eval "DEFAULT_$LINE"
3651 else
3652 no_cache=1
3653 fi
3654
3655 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3656
3657fi;
3658
3659 eval "$ac_cv_use_omf"
3660 if test "$no_cache" != 1; then
3661 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3662 fi
3663
3664 if test "$wxUSE_OMF" = yes; then
3665 echo "$as_me:$LINENO: result: yes" >&5
3666echo "${ECHO_T}yes" >&6
3667 else
3668 echo "$as_me:$LINENO: result: no" >&5
3669echo "${ECHO_T}no" >&6
3670 fi
3671
3672fi
3673
3674if test "$wxUSE_DEBUG" = "yes"; then
3675 DEFAULT_wxUSE_DEBUG_FLAG=yes
3676 DEFAULT_wxUSE_DEBUG_INFO=yes
3677 BUILD=debug
3678elif test "$wxUSE_DEBUG" = "no"; then
3679 DEFAULT_wxUSE_DEBUG_FLAG=no
3680 DEFAULT_wxUSE_DEBUG_INFO=no
3681 BUILD=release
3682fi
3683
3684
3685 enablestring=
3686 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3687echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3688 no_cache=0
3689 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3690if test "${enable_debug_flag+set}" = set; then
3691 enableval="$enable_debug_flag"
3692
3693 if test "$enableval" = yes; then
3694 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3695 else
3696 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3697 fi
3698
3699else
3700
3701 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3702 if test "x$LINE" != x ; then
3703 eval "DEFAULT_$LINE"
3704 else
3705 no_cache=1
3706 fi
3707
3708 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3709
3710fi;
3711
3712 eval "$ac_cv_use_debug_flag"
3713 if test "$no_cache" != 1; then
3714 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3715 fi
3716
3717 if test "$wxUSE_DEBUG_FLAG" = yes; then
3718 echo "$as_me:$LINENO: result: yes" >&5
3719echo "${ECHO_T}yes" >&6
3720 else
3721 echo "$as_me:$LINENO: result: no" >&5
3722echo "${ECHO_T}no" >&6
3723 fi
3724
3725
3726 enablestring=
3727 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3728echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3729 no_cache=0
3730 # Check whether --enable-debug_info or --disable-debug_info was given.
3731if test "${enable_debug_info+set}" = set; then
3732 enableval="$enable_debug_info"
3733
3734 if test "$enableval" = yes; then
3735 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3736 else
3737 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3738 fi
3739
3740else
3741
3742 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3743 if test "x$LINE" != x ; then
3744 eval "DEFAULT_$LINE"
3745 else
3746 no_cache=1
3747 fi
3748
3749 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3750
3751fi;
3752
3753 eval "$ac_cv_use_debug_info"
3754 if test "$no_cache" != 1; then
3755 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3756 fi
3757
3758 if test "$wxUSE_DEBUG_INFO" = yes; then
3759 echo "$as_me:$LINENO: result: yes" >&5
3760echo "${ECHO_T}yes" >&6
3761 else
3762 echo "$as_me:$LINENO: result: no" >&5
3763echo "${ECHO_T}no" >&6
3764 fi
3765
3766
3767 enablestring=
3768 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3769echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3770 no_cache=0
3771 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3772if test "${enable_debug_gdb+set}" = set; then
3773 enableval="$enable_debug_gdb"
3774
3775 if test "$enableval" = yes; then
3776 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3777 else
3778 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3779 fi
3780
3781else
3782
3783 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3784 if test "x$LINE" != x ; then
3785 eval "DEFAULT_$LINE"
3786 else
3787 no_cache=1
3788 fi
3789
3790 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3791
3792fi;
3793
3794 eval "$ac_cv_use_debug_gdb"
3795 if test "$no_cache" != 1; then
3796 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3797 fi
3798
3799 if test "$wxUSE_DEBUG_GDB" = yes; then
3800 echo "$as_me:$LINENO: result: yes" >&5
3801echo "${ECHO_T}yes" >&6
3802 else
3803 echo "$as_me:$LINENO: result: no" >&5
3804echo "${ECHO_T}no" >&6
3805 fi
3806
3807
3808 enablestring=
3809 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3810echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3811 no_cache=0
3812 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3813if test "${enable_debug_cntxt+set}" = set; then
3814 enableval="$enable_debug_cntxt"
3815
3816 if test "$enableval" = yes; then
3817 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3818 else
3819 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3820 fi
3821
3822else
3823
3824 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3825 if test "x$LINE" != x ; then
3826 eval "DEFAULT_$LINE"
3827 else
3828 no_cache=1
3829 fi
3830
3831 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3832
3833fi;
3834
3835 eval "$ac_cv_use_debug_cntxt"
3836 if test "$no_cache" != 1; then
3837 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3838 fi
3839
3840 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3841 echo "$as_me:$LINENO: result: yes" >&5
3842echo "${ECHO_T}yes" >&6
3843 else
3844 echo "$as_me:$LINENO: result: no" >&5
3845echo "${ECHO_T}no" >&6
3846 fi
3847
3848
3849 enablestring=
3850 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3851echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3852 no_cache=0
3853 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3854if test "${enable_mem_tracing+set}" = set; then
3855 enableval="$enable_mem_tracing"
3856
3857 if test "$enableval" = yes; then
3858 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3859 else
3860 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3861 fi
3862
3863else
3864
3865 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3866 if test "x$LINE" != x ; then
3867 eval "DEFAULT_$LINE"
3868 else
3869 no_cache=1
3870 fi
3871
3872 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3873
3874fi;
3875
3876 eval "$ac_cv_use_mem_tracing"
3877 if test "$no_cache" != 1; then
3878 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3879 fi
3880
3881 if test "$wxUSE_MEM_TRACING" = yes; then
3882 echo "$as_me:$LINENO: result: yes" >&5
3883echo "${ECHO_T}yes" >&6
3884 else
3885 echo "$as_me:$LINENO: result: no" >&5
3886echo "${ECHO_T}no" >&6
3887 fi
3888
3889
3890 enablestring=
3891 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3892echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3893 no_cache=0
3894 # Check whether --enable-profile or --disable-profile was given.
3895if test "${enable_profile+set}" = set; then
3896 enableval="$enable_profile"
3897
3898 if test "$enableval" = yes; then
3899 ac_cv_use_profile='wxUSE_PROFILE=yes'
3900 else
3901 ac_cv_use_profile='wxUSE_PROFILE=no'
3902 fi
3903
3904else
3905
3906 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3907 if test "x$LINE" != x ; then
3908 eval "DEFAULT_$LINE"
3909 else
3910 no_cache=1
3911 fi
3912
3913 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3914
3915fi;
3916
3917 eval "$ac_cv_use_profile"
3918 if test "$no_cache" != 1; then
3919 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3920 fi
3921
3922 if test "$wxUSE_PROFILE" = yes; then
3923 echo "$as_me:$LINENO: result: yes" >&5
3924echo "${ECHO_T}yes" >&6
3925 else
3926 echo "$as_me:$LINENO: result: no" >&5
3927echo "${ECHO_T}no" >&6
3928 fi
3929
3930
3931 enablestring=
3932 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3933echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3934 no_cache=0
3935 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3936if test "${enable_no_rtti+set}" = set; then
3937 enableval="$enable_no_rtti"
3938
3939 if test "$enableval" = yes; then
3940 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3941 else
3942 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3943 fi
3944
3945else
3946
3947 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3948 if test "x$LINE" != x ; then
3949 eval "DEFAULT_$LINE"
3950 else
3951 no_cache=1
3952 fi
3953
3954 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3955
3956fi;
3957
3958 eval "$ac_cv_use_no_rtti"
3959 if test "$no_cache" != 1; then
3960 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3961 fi
3962
3963 if test "$wxUSE_NO_RTTI" = yes; then
3964 echo "$as_me:$LINENO: result: yes" >&5
3965echo "${ECHO_T}yes" >&6
3966 else
3967 echo "$as_me:$LINENO: result: no" >&5
3968echo "${ECHO_T}no" >&6
3969 fi
3970
3971
3972 enablestring=
3973 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3974echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3975 no_cache=0
3976 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3977if test "${enable_no_exceptions+set}" = set; then
3978 enableval="$enable_no_exceptions"
3979
3980 if test "$enableval" = yes; then
3981 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3982 else
3983 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3984 fi
3985
3986else
3987
3988 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3989 if test "x$LINE" != x ; then
3990 eval "DEFAULT_$LINE"
3991 else
3992 no_cache=1
3993 fi
3994
3995 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3996
3997fi;
3998
3999 eval "$ac_cv_use_no_exceptions"
4000 if test "$no_cache" != 1; then
4001 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4002 fi
4003
4004 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4005 echo "$as_me:$LINENO: result: yes" >&5
4006echo "${ECHO_T}yes" >&6
4007 else
4008 echo "$as_me:$LINENO: result: no" >&5
4009echo "${ECHO_T}no" >&6
4010 fi
4011
4012
4013 enablestring=
4014 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4015echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4016 no_cache=0
4017 # Check whether --enable-permissive or --disable-permissive was given.
4018if test "${enable_permissive+set}" = set; then
4019 enableval="$enable_permissive"
4020
4021 if test "$enableval" = yes; then
4022 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4023 else
4024 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4025 fi
4026
4027else
4028
4029 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4030 if test "x$LINE" != x ; then
4031 eval "DEFAULT_$LINE"
4032 else
4033 no_cache=1
4034 fi
4035
4036 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4037
4038fi;
4039
4040 eval "$ac_cv_use_permissive"
4041 if test "$no_cache" != 1; then
4042 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4043 fi
4044
4045 if test "$wxUSE_PERMISSIVE" = yes; then
4046 echo "$as_me:$LINENO: result: yes" >&5
4047echo "${ECHO_T}yes" >&6
4048 else
4049 echo "$as_me:$LINENO: result: no" >&5
4050echo "${ECHO_T}no" >&6
4051 fi
4052
4053
4054 enablestring=
4055 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4056echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4057 no_cache=0
4058 # Check whether --enable-no_deps or --disable-no_deps was given.
4059if test "${enable_no_deps+set}" = set; then
4060 enableval="$enable_no_deps"
4061
4062 if test "$enableval" = yes; then
4063 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4064 else
4065 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4066 fi
4067
4068else
4069
4070 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4071 if test "x$LINE" != x ; then
4072 eval "DEFAULT_$LINE"
4073 else
4074 no_cache=1
4075 fi
4076
4077 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4078
4079fi;
4080
4081 eval "$ac_cv_use_no_deps"
4082 if test "$no_cache" != 1; then
4083 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4084 fi
4085
4086 if test "$wxUSE_NO_DEPS" = yes; then
4087 echo "$as_me:$LINENO: result: yes" >&5
4088echo "${ECHO_T}yes" >&6
4089 else
4090 echo "$as_me:$LINENO: result: no" >&5
4091echo "${ECHO_T}no" >&6
4092 fi
4093
4094
4095
4096 enablestring=
4097 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4098echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4099 no_cache=0
4100 # Check whether --enable-compat22 or --disable-compat22 was given.
4101if test "${enable_compat22+set}" = set; then
4102 enableval="$enable_compat22"
4103
4104 if test "$enableval" = yes; then
4105 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4106 else
4107 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4108 fi
4109
4110else
4111
4112 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4113 if test "x$LINE" != x ; then
4114 eval "DEFAULT_$LINE"
4115 else
4116 no_cache=1
4117 fi
4118
4119 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4120
4121fi;
4122
4123 eval "$ac_cv_use_compat22"
4124 if test "$no_cache" != 1; then
4125 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4126 fi
4127
4128 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4129 echo "$as_me:$LINENO: result: yes" >&5
4130echo "${ECHO_T}yes" >&6
4131 else
4132 echo "$as_me:$LINENO: result: no" >&5
4133echo "${ECHO_T}no" >&6
4134 fi
4135
4136
4137 enablestring=disable
4138 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4139echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4140 no_cache=0
4141 # Check whether --enable-compat24 or --disable-compat24 was given.
4142if test "${enable_compat24+set}" = set; then
4143 enableval="$enable_compat24"
4144
4145 if test "$enableval" = yes; then
4146 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4147 else
4148 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4149 fi
4150
4151else
4152
4153 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4154 if test "x$LINE" != x ; then
4155 eval "DEFAULT_$LINE"
4156 else
4157 no_cache=1
4158 fi
4159
4160 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4161
4162fi;
4163
4164 eval "$ac_cv_use_compat24"
4165 if test "$no_cache" != 1; then
4166 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4167 fi
4168
4169 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4170 echo "$as_me:$LINENO: result: yes" >&5
4171echo "${ECHO_T}yes" >&6
4172 else
4173 echo "$as_me:$LINENO: result: no" >&5
4174echo "${ECHO_T}no" >&6
4175 fi
4176
4177
ffa0583f
RL
4178
4179 enablestring=
4180 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4181echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4182 no_cache=0
4183 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4184if test "${enable_rpath+set}" = set; then
4185 enableval="$enable_rpath"
ffa0583f
RL
4186
4187 if test "$enableval" = yes; then
4188 ac_cv_use_rpath='wxUSE_RPATH=yes'
4189 else
4190 ac_cv_use_rpath='wxUSE_RPATH=no'
4191 fi
4192
4193else
4194
4195 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4196 if test "x$LINE" != x ; then
4197 eval "DEFAULT_$LINE"
4198 else
4199 no_cache=1
4200 fi
4201
4202 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4203
a848cd7e
SC
4204fi;
4205
ffa0583f
RL
4206 eval "$ac_cv_use_rpath"
4207 if test "$no_cache" != 1; then
4208 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4209 fi
4210
4211 if test "$wxUSE_RPATH" = yes; then
4212 echo "$as_me:$LINENO: result: yes" >&5
4213echo "${ECHO_T}yes" >&6
4214 else
4215 echo "$as_me:$LINENO: result: no" >&5
4216echo "${ECHO_T}no" >&6
4217 fi
4218
a848cd7e
SC
4219
4220
4221
4222
4223 enablestring=
4224 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4225echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4226 no_cache=0
4227 # Check whether --enable-intl or --disable-intl was given.
4228if test "${enable_intl+set}" = set; then
4229 enableval="$enable_intl"
4230
4231 if test "$enableval" = yes; then
4232 ac_cv_use_intl='wxUSE_INTL=yes'
4233 else
4234 ac_cv_use_intl='wxUSE_INTL=no'
4235 fi
4236
4237else
4238
4239 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4240 if test "x$LINE" != x ; then
4241 eval "DEFAULT_$LINE"
4242 else
4243 no_cache=1
4244 fi
4245
4246 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4247
4248fi;
4249
4250 eval "$ac_cv_use_intl"
4251 if test "$no_cache" != 1; then
4252 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4253 fi
4254
4255 if test "$wxUSE_INTL" = yes; then
4256 echo "$as_me:$LINENO: result: yes" >&5
4257echo "${ECHO_T}yes" >&6
4258 else
4259 echo "$as_me:$LINENO: result: no" >&5
4260echo "${ECHO_T}no" >&6
4261 fi
4262
4263
4264 enablestring=
4265 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4266echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4267 no_cache=0
4268 # Check whether --enable-config or --disable-config was given.
4269if test "${enable_config+set}" = set; then
4270 enableval="$enable_config"
4271
4272 if test "$enableval" = yes; then
4273 ac_cv_use_config='wxUSE_CONFIG=yes'
4274 else
4275 ac_cv_use_config='wxUSE_CONFIG=no'
4276 fi
4277
4278else
4279
4280 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4281 if test "x$LINE" != x ; then
4282 eval "DEFAULT_$LINE"
4283 else
4284 no_cache=1
4285 fi
4286
4287 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4288
4289fi;
4290
4291 eval "$ac_cv_use_config"
4292 if test "$no_cache" != 1; then
4293 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4294 fi
4295
4296 if test "$wxUSE_CONFIG" = yes; then
4297 echo "$as_me:$LINENO: result: yes" >&5
4298echo "${ECHO_T}yes" >&6
4299 else
4300 echo "$as_me:$LINENO: result: no" >&5
4301echo "${ECHO_T}no" >&6
4302 fi
4303
4304
4305
4306 enablestring=
4307 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4308echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4309 no_cache=0
4310 # Check whether --enable-protocols or --disable-protocols was given.
4311if test "${enable_protocols+set}" = set; then
4312 enableval="$enable_protocols"
4313
4314 if test "$enableval" = yes; then
4315 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4316 else
4317 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4318 fi
4319
4320else
4321
4322 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4323 if test "x$LINE" != x ; then
4324 eval "DEFAULT_$LINE"
4325 else
4326 no_cache=1
4327 fi
4328
4329 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4330
4331fi;
4332
4333 eval "$ac_cv_use_protocols"
4334 if test "$no_cache" != 1; then
4335 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4336 fi
4337
4338 if test "$wxUSE_PROTOCOL" = yes; then
4339 echo "$as_me:$LINENO: result: yes" >&5
4340echo "${ECHO_T}yes" >&6
4341 else
4342 echo "$as_me:$LINENO: result: no" >&5
4343echo "${ECHO_T}no" >&6
4344 fi
4345
4346
4347 enablestring=
4348 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4349echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4350 no_cache=0
4351 # Check whether --enable-ftp or --disable-ftp was given.
4352if test "${enable_ftp+set}" = set; then
4353 enableval="$enable_ftp"
4354
4355 if test "$enableval" = yes; then
4356 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4357 else
4358 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4359 fi
4360
4361else
4362
4363 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4364 if test "x$LINE" != x ; then
4365 eval "DEFAULT_$LINE"
4366 else
4367 no_cache=1
4368 fi
4369
4370 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4371
4372fi;
4373
4374 eval "$ac_cv_use_ftp"
4375 if test "$no_cache" != 1; then
4376 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4377 fi
4378
4379 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4380 echo "$as_me:$LINENO: result: yes" >&5
4381echo "${ECHO_T}yes" >&6
4382 else
4383 echo "$as_me:$LINENO: result: no" >&5
4384echo "${ECHO_T}no" >&6
4385 fi
4386
4387
4388 enablestring=
4389 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4390echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4391 no_cache=0
4392 # Check whether --enable-http or --disable-http was given.
4393if test "${enable_http+set}" = set; then
4394 enableval="$enable_http"
4395
4396 if test "$enableval" = yes; then
4397 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4398 else
4399 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4400 fi
4401
4402else
4403
4404 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4405 if test "x$LINE" != x ; then
4406 eval "DEFAULT_$LINE"
4407 else
4408 no_cache=1
4409 fi
4410
4411 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4412
4413fi;
4414
4415 eval "$ac_cv_use_http"
4416 if test "$no_cache" != 1; then
4417 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4418 fi
4419
4420 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4421 echo "$as_me:$LINENO: result: yes" >&5
4422echo "${ECHO_T}yes" >&6
4423 else
4424 echo "$as_me:$LINENO: result: no" >&5
4425echo "${ECHO_T}no" >&6
4426 fi
4427
4428
4429 enablestring=
4430 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4431echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4432 no_cache=0
4433 # Check whether --enable-fileproto or --disable-fileproto was given.
4434if test "${enable_fileproto+set}" = set; then
4435 enableval="$enable_fileproto"
4436
4437 if test "$enableval" = yes; then
4438 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4439 else
4440 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4441 fi
4442
4443else
4444
4445 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4446 if test "x$LINE" != x ; then
4447 eval "DEFAULT_$LINE"
4448 else
4449 no_cache=1
4450 fi
4451
4452 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4453
4454fi;
4455
4456 eval "$ac_cv_use_fileproto"
4457 if test "$no_cache" != 1; then
4458 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4459 fi
4460
4461 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4462 echo "$as_me:$LINENO: result: yes" >&5
4463echo "${ECHO_T}yes" >&6
4464 else
4465 echo "$as_me:$LINENO: result: no" >&5
4466echo "${ECHO_T}no" >&6
4467 fi
4468
4469
4470 enablestring=
4471 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4472echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4473 no_cache=0
4474 # Check whether --enable-sockets or --disable-sockets was given.
4475if test "${enable_sockets+set}" = set; then
4476 enableval="$enable_sockets"
4477
4478 if test "$enableval" = yes; then
4479 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4480 else
4481 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4482 fi
4483
4484else
4485
4486 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4487 if test "x$LINE" != x ; then
4488 eval "DEFAULT_$LINE"
4489 else
4490 no_cache=1
4491 fi
4492
4493 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4494
4495fi;
4496
4497 eval "$ac_cv_use_sockets"
4498 if test "$no_cache" != 1; then
4499 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4500 fi
4501
4502 if test "$wxUSE_SOCKETS" = yes; then
4503 echo "$as_me:$LINENO: result: yes" >&5
4504echo "${ECHO_T}yes" >&6
4505 else
4506 echo "$as_me:$LINENO: result: no" >&5
4507echo "${ECHO_T}no" >&6
4508 fi
4509
4510
4511 enablestring=
4512 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4513echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4514 no_cache=0
4515 # Check whether --enable-ole or --disable-ole was given.
4516if test "${enable_ole+set}" = set; then
4517 enableval="$enable_ole"
4518
4519 if test "$enableval" = yes; then
4520 ac_cv_use_ole='wxUSE_OLE=yes'
4521 else
4522 ac_cv_use_ole='wxUSE_OLE=no'
4523 fi
4524
4525else
4526
4527 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4528 if test "x$LINE" != x ; then
4529 eval "DEFAULT_$LINE"
4530 else
4531 no_cache=1
4532 fi
4533
4534 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4535
4536fi;
4537
4538 eval "$ac_cv_use_ole"
4539 if test "$no_cache" != 1; then
4540 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4541 fi
4542
4543 if test "$wxUSE_OLE" = yes; then
4544 echo "$as_me:$LINENO: result: yes" >&5
4545echo "${ECHO_T}yes" >&6
4546 else
4547 echo "$as_me:$LINENO: result: no" >&5
4548echo "${ECHO_T}no" >&6
4549 fi
4550
4551
4552 enablestring=
4553 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4554echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4555 no_cache=0
4556 # Check whether --enable-dataobj or --disable-dataobj was given.
4557if test "${enable_dataobj+set}" = set; then
4558 enableval="$enable_dataobj"
4559
4560 if test "$enableval" = yes; then
4561 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4562 else
4563 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4564 fi
4565
4566else
4567
4568 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4569 if test "x$LINE" != x ; then
4570 eval "DEFAULT_$LINE"
4571 else
4572 no_cache=1
4573 fi
4574
4575 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4576
4577fi;
4578
4579 eval "$ac_cv_use_dataobj"
4580 if test "$no_cache" != 1; then
4581 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4582 fi
4583
4584 if test "$wxUSE_DATAOBJ" = yes; then
4585 echo "$as_me:$LINENO: result: yes" >&5
4586echo "${ECHO_T}yes" >&6
4587 else
4588 echo "$as_me:$LINENO: result: no" >&5
4589echo "${ECHO_T}no" >&6
4590 fi
4591
4592
4593
4594 enablestring=
4595 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4596echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4597 no_cache=0
4598 # Check whether --enable-ipc or --disable-ipc was given.
4599if test "${enable_ipc+set}" = set; then
4600 enableval="$enable_ipc"
4601
4602 if test "$enableval" = yes; then
4603 ac_cv_use_ipc='wxUSE_IPC=yes'
4604 else
4605 ac_cv_use_ipc='wxUSE_IPC=no'
4606 fi
4607
4608else
4609
4610 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4611 if test "x$LINE" != x ; then
4612 eval "DEFAULT_$LINE"
4613 else
4614 no_cache=1
4615 fi
4616
4617 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4618
4619fi;
4620
4621 eval "$ac_cv_use_ipc"
4622 if test "$no_cache" != 1; then
4623 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4624 fi
4625
4626 if test "$wxUSE_IPC" = yes; then
4627 echo "$as_me:$LINENO: result: yes" >&5
4628echo "${ECHO_T}yes" >&6
4629 else
4630 echo "$as_me:$LINENO: result: no" >&5
4631echo "${ECHO_T}no" >&6
4632 fi
4633
4634
4635
4636 enablestring=
4637 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4638echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4639 no_cache=0
4640 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4641if test "${enable_apple_ieee+set}" = set; then
4642 enableval="$enable_apple_ieee"
4643
4644 if test "$enableval" = yes; then
4645 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4646 else
4647 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4648 fi
4649
4650else
4651
4652 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4653 if test "x$LINE" != x ; then
4654 eval "DEFAULT_$LINE"
4655 else
4656 no_cache=1
4657 fi
4658
4659 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4660
4661fi;
4662
4663 eval "$ac_cv_use_apple_ieee"
4664 if test "$no_cache" != 1; then
4665 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4666 fi
4667
4668 if test "$wxUSE_APPLE_IEEE" = yes; then
4669 echo "$as_me:$LINENO: result: yes" >&5
4670echo "${ECHO_T}yes" >&6
4671 else
4672 echo "$as_me:$LINENO: result: no" >&5
4673echo "${ECHO_T}no" >&6
4674 fi
4675
4676
81f90336
MW
4677 enablestring=
4678 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4679echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4680 no_cache=0
4681 # Check whether --enable-arcstream or --disable-arcstream was given.
4682if test "${enable_arcstream+set}" = set; then
4683 enableval="$enable_arcstream"
4684
4685 if test "$enableval" = yes; then
9e8e867f 4686 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4687 else
9e8e867f 4688 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4689 fi
4690
4691else
4692
9e8e867f 4693 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4694 if test "x$LINE" != x ; then
4695 eval "DEFAULT_$LINE"
4696 else
4697 no_cache=1
4698 fi
4699
9e8e867f 4700 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4701
4702fi;
4703
4704 eval "$ac_cv_use_arcstream"
4705 if test "$no_cache" != 1; then
4706 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4707 fi
4708
9e8e867f 4709 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4710 echo "$as_me:$LINENO: result: yes" >&5
4711echo "${ECHO_T}yes" >&6
4712 else
4713 echo "$as_me:$LINENO: result: no" >&5
4714echo "${ECHO_T}no" >&6
4715 fi
4716
4717
a848cd7e 4718 enablestring=
36b6448c
VZ
4719 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4720echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4721 no_cache=0
36b6448c
VZ
4722 # Check whether --enable-backtrace or --disable-backtrace was given.
4723if test "${enable_backtrace+set}" = set; then
4724 enableval="$enable_backtrace"
a848cd7e
SC
4725
4726 if test "$enableval" = yes; then
36b6448c 4727 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4728 else
36b6448c 4729 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4730 fi
4731
4732else
4733
36b6448c 4734 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4735 if test "x$LINE" != x ; then
4736 eval "DEFAULT_$LINE"
4737 else
4738 no_cache=1
4739 fi
4740
36b6448c 4741 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4742
4743fi;
4744
36b6448c 4745 eval "$ac_cv_use_backtrace"
a848cd7e 4746 if test "$no_cache" != 1; then
36b6448c 4747 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4748 fi
4749
36b6448c 4750 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4751 echo "$as_me:$LINENO: result: yes" >&5
4752echo "${ECHO_T}yes" >&6
4753 else
4754 echo "$as_me:$LINENO: result: no" >&5
4755echo "${ECHO_T}no" >&6
4756 fi
4757
4758
eaff0f0d 4759 enablestring=
36b6448c
VZ
4760 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4761echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4762 no_cache=0
36b6448c
VZ
4763 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4764if test "${enable_catch_segvs+set}" = set; then
4765 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4766
4767 if test "$enableval" = yes; then
36b6448c 4768 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4769 else
36b6448c 4770 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4771 fi
4772
4773else
4774
36b6448c 4775 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4776 if test "x$LINE" != x ; then
4777 eval "DEFAULT_$LINE"
4778 else
4779 no_cache=1
4780 fi
4781
36b6448c 4782 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4783
4784fi;
4785
36b6448c 4786 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4787 if test "$no_cache" != 1; then
36b6448c 4788 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4789 fi
4790
36b6448c 4791 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4792 echo "$as_me:$LINENO: result: yes" >&5
4793echo "${ECHO_T}yes" >&6
4794 else
4795 echo "$as_me:$LINENO: result: no" >&5
4796echo "${ECHO_T}no" >&6
4797 fi
4798
4799
a848cd7e
SC
4800 enablestring=
4801 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4802echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4803 no_cache=0
4804 # Check whether --enable-cmdline or --disable-cmdline was given.
4805if test "${enable_cmdline+set}" = set; then
4806 enableval="$enable_cmdline"
4807
4808 if test "$enableval" = yes; then
4809 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4810 else
4811 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4812 fi
4813
4814else
4815
4816 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4817 if test "x$LINE" != x ; then
4818 eval "DEFAULT_$LINE"
4819 else
4820 no_cache=1
4821 fi
4822
4823 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4824
4825fi;
4826
4827 eval "$ac_cv_use_cmdline"
4828 if test "$no_cache" != 1; then
4829 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4830 fi
4831
4832 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4833 echo "$as_me:$LINENO: result: yes" >&5
4834echo "${ECHO_T}yes" >&6
4835 else
4836 echo "$as_me:$LINENO: result: no" >&5
4837echo "${ECHO_T}no" >&6
4838 fi
4839
4840
4841 enablestring=
4842 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4843echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4844 no_cache=0
4845 # Check whether --enable-datetime or --disable-datetime was given.
4846if test "${enable_datetime+set}" = set; then
4847 enableval="$enable_datetime"
4848
4849 if test "$enableval" = yes; then
4850 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4851 else
4852 ac_cv_use_datetime='wxUSE_DATETIME=no'
4853 fi
4854
4855else
4856
4857 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4858 if test "x$LINE" != x ; then
4859 eval "DEFAULT_$LINE"
4860 else
4861 no_cache=1
4862 fi
4863
4864 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4865
4866fi;
4867
4868 eval "$ac_cv_use_datetime"
4869 if test "$no_cache" != 1; then
4870 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4871 fi
4872
4873 if test "$wxUSE_DATETIME" = yes; then
4874 echo "$as_me:$LINENO: result: yes" >&5
4875echo "${ECHO_T}yes" >&6
4876 else
4877 echo "$as_me:$LINENO: result: no" >&5
4878echo "${ECHO_T}no" >&6
4879 fi
4880
4881
36b6448c
VZ
4882 enablestring=
4883 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4884echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4885 no_cache=0
4886 # Check whether --enable-debugreport or --disable-debugreport was given.
4887if test "${enable_debugreport+set}" = set; then
4888 enableval="$enable_debugreport"
4889
4890 if test "$enableval" = yes; then
4891 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4892 else
4893 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4894 fi
4895
4896else
4897
4898 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4899 if test "x$LINE" != x ; then
4900 eval "DEFAULT_$LINE"
4901 else
4902 no_cache=1
4903 fi
4904
4905 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4906
4907fi;
4908
4909 eval "$ac_cv_use_debugreport"
4910 if test "$no_cache" != 1; then
4911 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4912 fi
4913
4914 if test "$wxUSE_DEBUGREPORT" = yes; then
4915 echo "$as_me:$LINENO: result: yes" >&5
4916echo "${ECHO_T}yes" >&6
4917 else
4918 echo "$as_me:$LINENO: result: no" >&5
4919echo "${ECHO_T}no" >&6
4920 fi
4921
4922
a848cd7e
SC
4923 enablestring=
4924 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4925echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4926 no_cache=0
4927 # Check whether --enable-dialupman or --disable-dialupman was given.
4928if test "${enable_dialupman+set}" = set; then
4929 enableval="$enable_dialupman"
4930
4931 if test "$enableval" = yes; then
4932 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4933 else
4934 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4935 fi
4936
4937else
4938
4939 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4940 if test "x$LINE" != x ; then
4941 eval "DEFAULT_$LINE"
4942 else
4943 no_cache=1
4944 fi
4945
4946 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4947
4948fi;
4949
4950 eval "$ac_cv_use_dialupman"
4951 if test "$no_cache" != 1; then
4952 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4953 fi
4954
4955 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4956 echo "$as_me:$LINENO: result: yes" >&5
4957echo "${ECHO_T}yes" >&6
4958 else
4959 echo "$as_me:$LINENO: result: no" >&5
4960echo "${ECHO_T}no" >&6
4961 fi
4962
4963
4964 enablestring=
4965 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4966echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4967 no_cache=0
4968 # Check whether --enable-dynlib or --disable-dynlib was given.
4969if test "${enable_dynlib+set}" = set; then
4970 enableval="$enable_dynlib"
4971
4972 if test "$enableval" = yes; then
4973 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4974 else
4975 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4976 fi
4977
4978else
4979
4980 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4981 if test "x$LINE" != x ; then
4982 eval "DEFAULT_$LINE"
4983 else
4984 no_cache=1
4985 fi
4986
4987 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4988
4989fi;
4990
4991 eval "$ac_cv_use_dynlib"
4992 if test "$no_cache" != 1; then
4993 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4994 fi
4995
4996 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4997 echo "$as_me:$LINENO: result: yes" >&5
4998echo "${ECHO_T}yes" >&6
4999 else
5000 echo "$as_me:$LINENO: result: no" >&5
5001echo "${ECHO_T}no" >&6
5002 fi
5003
5004
5005 enablestring=
5006 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5007echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5008 no_cache=0
5009 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5010if test "${enable_dynamicloader+set}" = set; then
5011 enableval="$enable_dynamicloader"
5012
5013 if test "$enableval" = yes; then
5014 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5015 else
5016 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5017 fi
5018
5019else
5020
5021 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5022 if test "x$LINE" != x ; then
5023 eval "DEFAULT_$LINE"
5024 else
5025 no_cache=1
5026 fi
5027
5028 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5029
5030fi;
5031
5032 eval "$ac_cv_use_dynamicloader"
5033 if test "$no_cache" != 1; then
5034 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5035 fi
5036
5037 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5038 echo "$as_me:$LINENO: result: yes" >&5
5039echo "${ECHO_T}yes" >&6
5040 else
5041 echo "$as_me:$LINENO: result: no" >&5
5042echo "${ECHO_T}no" >&6
5043 fi
5044
5045
5046 enablestring=
5047 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5048echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5049 no_cache=0
5050 # Check whether --enable-exceptions or --disable-exceptions was given.
5051if test "${enable_exceptions+set}" = set; then
5052 enableval="$enable_exceptions"
5053
5054 if test "$enableval" = yes; then
5055 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5056 else
5057 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5058 fi
5059
5060else
5061
5062 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5063 if test "x$LINE" != x ; then
5064 eval "DEFAULT_$LINE"
5065 else
5066 no_cache=1
5067 fi
5068
5069 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5070
5071fi;
5072
5073 eval "$ac_cv_use_exceptions"
5074 if test "$no_cache" != 1; then
5075 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5076 fi
5077
5078 if test "$wxUSE_EXCEPTIONS" = yes; then
5079 echo "$as_me:$LINENO: result: yes" >&5
5080echo "${ECHO_T}yes" >&6
5081 else
5082 echo "$as_me:$LINENO: result: no" >&5
5083echo "${ECHO_T}no" >&6
5084 fi
5085
5086
5087 enablestring=
5088 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5089echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5090 no_cache=0
5091 # Check whether --enable-ffile or --disable-ffile was given.
5092if test "${enable_ffile+set}" = set; then
5093 enableval="$enable_ffile"
5094
5095 if test "$enableval" = yes; then
5096 ac_cv_use_ffile='wxUSE_FFILE=yes'
5097 else
5098 ac_cv_use_ffile='wxUSE_FFILE=no'
5099 fi
5100
5101else
5102
5103 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5104 if test "x$LINE" != x ; then
5105 eval "DEFAULT_$LINE"
5106 else
5107 no_cache=1
5108 fi
5109
5110 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5111
5112fi;
5113
5114 eval "$ac_cv_use_ffile"
5115 if test "$no_cache" != 1; then
5116 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5117 fi
5118
5119 if test "$wxUSE_FFILE" = yes; then
5120 echo "$as_me:$LINENO: result: yes" >&5
5121echo "${ECHO_T}yes" >&6
5122 else
5123 echo "$as_me:$LINENO: result: no" >&5
5124echo "${ECHO_T}no" >&6
5125 fi
5126
5127
5128 enablestring=
5129 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5130echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5131 no_cache=0
5132 # Check whether --enable-file or --disable-file was given.
5133if test "${enable_file+set}" = set; then
5134 enableval="$enable_file"
5135
5136 if test "$enableval" = yes; then
5137 ac_cv_use_file='wxUSE_FILE=yes'
5138 else
5139 ac_cv_use_file='wxUSE_FILE=no'
5140 fi
5141
5142else
5143
5144 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5145 if test "x$LINE" != x ; then
5146 eval "DEFAULT_$LINE"
5147 else
5148 no_cache=1
5149 fi
5150
5151 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5152
5153fi;
5154
5155 eval "$ac_cv_use_file"
5156 if test "$no_cache" != 1; then
5157 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5158 fi
5159
5160 if test "$wxUSE_FILE" = yes; then
5161 echo "$as_me:$LINENO: result: yes" >&5
5162echo "${ECHO_T}yes" >&6
5163 else
5164 echo "$as_me:$LINENO: result: no" >&5
5165echo "${ECHO_T}no" >&6
5166 fi
5167
5168
5169 enablestring=
5170 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5171echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5172 no_cache=0
5173 # Check whether --enable-filesystem or --disable-filesystem was given.
5174if test "${enable_filesystem+set}" = set; then
5175 enableval="$enable_filesystem"
5176
5177 if test "$enableval" = yes; then
5178 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5179 else
5180 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5181 fi
5182
5183else
5184
5185 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5186 if test "x$LINE" != x ; then
5187 eval "DEFAULT_$LINE"
5188 else
5189 no_cache=1
5190 fi
5191
5192 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5193
5194fi;
5195
5196 eval "$ac_cv_use_filesystem"
5197 if test "$no_cache" != 1; then
5198 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5199 fi
5200
5201 if test "$wxUSE_FILESYSTEM" = yes; then
5202 echo "$as_me:$LINENO: result: yes" >&5
5203echo "${ECHO_T}yes" >&6
5204 else
5205 echo "$as_me:$LINENO: result: no" >&5
5206echo "${ECHO_T}no" >&6
5207 fi
5208
5209
5210 enablestring=
5211 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5212echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5213 no_cache=0
5214 # Check whether --enable-fontmap or --disable-fontmap was given.
5215if test "${enable_fontmap+set}" = set; then
5216 enableval="$enable_fontmap"
5217
5218 if test "$enableval" = yes; then
5219 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5220 else
5221 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5222 fi
5223
5224else
5225
5226 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5227 if test "x$LINE" != x ; then
5228 eval "DEFAULT_$LINE"
5229 else
5230 no_cache=1
5231 fi
5232
5233 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5234
5235fi;
5236
5237 eval "$ac_cv_use_fontmap"
5238 if test "$no_cache" != 1; then
5239 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5240 fi
5241
5242 if test "$wxUSE_FONTMAP" = yes; then
5243 echo "$as_me:$LINENO: result: yes" >&5
5244echo "${ECHO_T}yes" >&6
5245 else
5246 echo "$as_me:$LINENO: result: no" >&5
5247echo "${ECHO_T}no" >&6
5248 fi
5249
5250
5251 enablestring=
5252 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5253echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5254 no_cache=0
5255 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5256if test "${enable_fs_inet+set}" = set; then
5257 enableval="$enable_fs_inet"
5258
5259 if test "$enableval" = yes; then
5260 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5261 else
5262 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5263 fi
5264
5265else
5266
5267 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5268 if test "x$LINE" != x ; then
5269 eval "DEFAULT_$LINE"
5270 else
5271 no_cache=1
5272 fi
5273
5274 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5275
5276fi;
5277
5278 eval "$ac_cv_use_fs_inet"
5279 if test "$no_cache" != 1; then
5280 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5281 fi
5282
5283 if test "$wxUSE_FS_INET" = yes; then
5284 echo "$as_me:$LINENO: result: yes" >&5
5285echo "${ECHO_T}yes" >&6
5286 else
5287 echo "$as_me:$LINENO: result: no" >&5
5288echo "${ECHO_T}no" >&6
5289 fi
5290
5291
5292 enablestring=
5293 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5294echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5295 no_cache=0
5296 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5297if test "${enable_fs_zip+set}" = set; then
5298 enableval="$enable_fs_zip"
5299
5300 if test "$enableval" = yes; then
5301 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5302 else
5303 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5304 fi
5305
5306else
5307
5308 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5309 if test "x$LINE" != x ; then
5310 eval "DEFAULT_$LINE"
5311 else
5312 no_cache=1
5313 fi
5314
5315 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5316
5317fi;
5318
5319 eval "$ac_cv_use_fs_zip"
5320 if test "$no_cache" != 1; then
5321 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5322 fi
5323
5324 if test "$wxUSE_FS_ZIP" = yes; then
5325 echo "$as_me:$LINENO: result: yes" >&5
5326echo "${ECHO_T}yes" >&6
5327 else
5328 echo "$as_me:$LINENO: result: no" >&5
5329echo "${ECHO_T}no" >&6
5330 fi
5331
5332
5333 enablestring=
5334 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5335echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5336 no_cache=0
5337 # Check whether --enable-geometry or --disable-geometry was given.
5338if test "${enable_geometry+set}" = set; then
5339 enableval="$enable_geometry"
5340
5341 if test "$enableval" = yes; then
5342 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5343 else
5344 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5345 fi
5346
5347else
5348
5349 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5350 if test "x$LINE" != x ; then
5351 eval "DEFAULT_$LINE"
5352 else
5353 no_cache=1
5354 fi
5355
5356 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5357
5358fi;
5359
5360 eval "$ac_cv_use_geometry"
5361 if test "$no_cache" != 1; then
5362 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5363 fi
5364
5365 if test "$wxUSE_GEOMETRY" = yes; then
5366 echo "$as_me:$LINENO: result: yes" >&5
5367echo "${ECHO_T}yes" >&6
5368 else
5369 echo "$as_me:$LINENO: result: no" >&5
5370echo "${ECHO_T}no" >&6
5371 fi
5372
5373
5374 enablestring=
5375 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5376echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5377 no_cache=0
5378 # Check whether --enable-log or --disable-log was given.
5379if test "${enable_log+set}" = set; then
5380 enableval="$enable_log"
5381
5382 if test "$enableval" = yes; then
5383 ac_cv_use_log='wxUSE_LOG=yes'
5384 else
5385 ac_cv_use_log='wxUSE_LOG=no'
5386 fi
5387
5388else
5389
5390 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5391 if test "x$LINE" != x ; then
5392 eval "DEFAULT_$LINE"
5393 else
5394 no_cache=1
5395 fi
5396
5397 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5398
5399fi;
5400
5401 eval "$ac_cv_use_log"
5402 if test "$no_cache" != 1; then
5403 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5404 fi
5405
5406 if test "$wxUSE_LOG" = yes; then
5407 echo "$as_me:$LINENO: result: yes" >&5
5408echo "${ECHO_T}yes" >&6
5409 else
5410 echo "$as_me:$LINENO: result: no" >&5
5411echo "${ECHO_T}no" >&6
5412 fi
5413
5414
5415 enablestring=
5416 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5417echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5418 no_cache=0
5419 # Check whether --enable-longlong or --disable-longlong was given.
5420if test "${enable_longlong+set}" = set; then
5421 enableval="$enable_longlong"
5422
5423 if test "$enableval" = yes; then
5424 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5425 else
5426 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5427 fi
5428
5429else
5430
5431 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5432 if test "x$LINE" != x ; then
5433 eval "DEFAULT_$LINE"
5434 else
5435 no_cache=1
5436 fi
5437
5438 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5439
5440fi;
5441
5442 eval "$ac_cv_use_longlong"
5443 if test "$no_cache" != 1; then
5444 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5445 fi
5446
5447 if test "$wxUSE_LONGLONG" = yes; then
5448 echo "$as_me:$LINENO: result: yes" >&5
5449echo "${ECHO_T}yes" >&6
5450 else
5451 echo "$as_me:$LINENO: result: no" >&5
5452echo "${ECHO_T}no" >&6
5453 fi
5454
5455
5456 enablestring=
5457 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5458echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5459 no_cache=0
5460 # Check whether --enable-mimetype or --disable-mimetype was given.
5461if test "${enable_mimetype+set}" = set; then
5462 enableval="$enable_mimetype"
5463
5464 if test "$enableval" = yes; then
5465 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5466 else
5467 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5468 fi
5469
5470else
5471
5472 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5473 if test "x$LINE" != x ; then
5474 eval "DEFAULT_$LINE"
5475 else
5476 no_cache=1
5477 fi
5478
5479 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5480
5481fi;
5482
5483 eval "$ac_cv_use_mimetype"
5484 if test "$no_cache" != 1; then
5485 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5486 fi
5487
5488 if test "$wxUSE_MIMETYPE" = yes; then
5489 echo "$as_me:$LINENO: result: yes" >&5
5490echo "${ECHO_T}yes" >&6
5491 else
5492 echo "$as_me:$LINENO: result: no" >&5
5493echo "${ECHO_T}no" >&6
5494 fi
5495
5496
5497 enablestring=
5498 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5499echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5500 no_cache=0
5501 # Check whether --enable-mslu or --disable-mslu was given.
5502if test "${enable_mslu+set}" = set; then
5503 enableval="$enable_mslu"
5504
5505 if test "$enableval" = yes; then
5506 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5507 else
5508 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5509 fi
5510
5511else
5512
5513 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5514 if test "x$LINE" != x ; then
5515 eval "DEFAULT_$LINE"
5516 else
5517 no_cache=1
5518 fi
5519
5520 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5521
5522fi;
5523
5524 eval "$ac_cv_use_mslu"
5525 if test "$no_cache" != 1; then
5526 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5527 fi
5528
5529 if test "$wxUSE_UNICODE_MSLU" = yes; then
5530 echo "$as_me:$LINENO: result: yes" >&5
5531echo "${ECHO_T}yes" >&6
5532 else
5533 echo "$as_me:$LINENO: result: no" >&5
5534echo "${ECHO_T}no" >&6
5535 fi
5536
5537
5538 enablestring=
5539 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5540echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5541 no_cache=0
5542 # Check whether --enable-snglinst or --disable-snglinst was given.
5543if test "${enable_snglinst+set}" = set; then
5544 enableval="$enable_snglinst"
5545
5546 if test "$enableval" = yes; then
5547 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5548 else
5549 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5550 fi
5551
5552else
5553
5554 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5555 if test "x$LINE" != x ; then
5556 eval "DEFAULT_$LINE"
5557 else
5558 no_cache=1
5559 fi
5560
5561 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5562
5563fi;
5564
5565 eval "$ac_cv_use_snglinst"
5566 if test "$no_cache" != 1; then
5567 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5568 fi
5569
5570 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5571 echo "$as_me:$LINENO: result: yes" >&5
5572echo "${ECHO_T}yes" >&6
5573 else
5574 echo "$as_me:$LINENO: result: no" >&5
5575echo "${ECHO_T}no" >&6
5576 fi
5577
5578
5579 enablestring=
07158944
VZ
5580 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5581echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5582 no_cache=0
07158944
VZ
5583 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5584if test "${enable_std_iostreams+set}" = set; then
5585 enableval="$enable_std_iostreams"
a848cd7e
SC
5586
5587 if test "$enableval" = yes; then
07158944 5588 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5589 else
07158944 5590 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5591 fi
5592
5593else
5594
07158944 5595 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5596 if test "x$LINE" != x ; then
5597 eval "DEFAULT_$LINE"
5598 else
5599 no_cache=1
5600 fi
5601
07158944 5602 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5603
5604fi;
5605
07158944 5606 eval "$ac_cv_use_std_iostreams"
a848cd7e 5607 if test "$no_cache" != 1; then
07158944 5608 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5609 fi
5610
07158944 5611 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5612 echo "$as_me:$LINENO: result: yes" >&5
5613echo "${ECHO_T}yes" >&6
5614 else
5615 echo "$as_me:$LINENO: result: no" >&5
5616echo "${ECHO_T}no" >&6
5617 fi
5618
5619
5620 enablestring=
07158944
VZ
5621 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5622echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5623 no_cache=0
07158944
VZ
5624 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5625if test "${enable_stdpaths+set}" = set; then
5626 enableval="$enable_stdpaths"
a848cd7e
SC
5627
5628 if test "$enableval" = yes; then
07158944 5629 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5630 else
07158944 5631 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5632 fi
5633
5634else
5635
07158944 5636 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5637 if test "x$LINE" != x ; then
5638 eval "DEFAULT_$LINE"
5639 else
5640 no_cache=1
5641 fi
5642
07158944 5643 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5644
5645fi;
5646
07158944 5647 eval "$ac_cv_use_stdpaths"
a848cd7e 5648 if test "$no_cache" != 1; then
07158944 5649 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5650 fi
5651
07158944 5652 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5653 echo "$as_me:$LINENO: result: yes" >&5
5654echo "${ECHO_T}yes" >&6
5655 else
5656 echo "$as_me:$LINENO: result: no" >&5
5657echo "${ECHO_T}no" >&6
5658 fi
5659
5660
5661 enablestring=
5662 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5663echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5664 no_cache=0
5665 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5666if test "${enable_stopwatch+set}" = set; then
5667 enableval="$enable_stopwatch"
5668
5669 if test "$enableval" = yes; then
5670 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5671 else
5672 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5673 fi
5674
5675else
5676
5677 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5678 if test "x$LINE" != x ; then
5679 eval "DEFAULT_$LINE"
5680 else
5681 no_cache=1
5682 fi
5683
5684 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5685
5686fi;
5687
5688 eval "$ac_cv_use_stopwatch"
5689 if test "$no_cache" != 1; then
5690 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5691 fi
5692
5693 if test "$wxUSE_STOPWATCH" = yes; then
5694 echo "$as_me:$LINENO: result: yes" >&5
5695echo "${ECHO_T}yes" >&6
5696 else
5697 echo "$as_me:$LINENO: result: no" >&5
5698echo "${ECHO_T}no" >&6
5699 fi
5700
5701
07158944
VZ
5702 enablestring=
5703 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5704echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5705 no_cache=0
5706 # Check whether --enable-streams or --disable-streams was given.
5707if test "${enable_streams+set}" = set; then
5708 enableval="$enable_streams"
5709
5710 if test "$enableval" = yes; then
5711 ac_cv_use_streams='wxUSE_STREAMS=yes'
5712 else
5713 ac_cv_use_streams='wxUSE_STREAMS=no'
5714 fi
5715
5716else
5717
5718 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5719 if test "x$LINE" != x ; then
5720 eval "DEFAULT_$LINE"
5721 else
5722 no_cache=1
5723 fi
5724
5725 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5726
5727fi;
5728
5729 eval "$ac_cv_use_streams"
5730 if test "$no_cache" != 1; then
5731 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5732 fi
5733
5734 if test "$wxUSE_STREAMS" = yes; then
5735 echo "$as_me:$LINENO: result: yes" >&5
5736echo "${ECHO_T}yes" >&6
5737 else
5738 echo "$as_me:$LINENO: result: no" >&5
5739echo "${ECHO_T}no" >&6
5740 fi
5741
5742
a848cd7e
SC
5743 enablestring=
5744 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5745echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5746 no_cache=0
5747 # Check whether --enable-system_options or --disable-system_options was given.
5748if test "${enable_system_options+set}" = set; then
5749 enableval="$enable_system_options"
5750
5751 if test "$enableval" = yes; then
5752 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5753 else
5754 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5755 fi
5756
5757else
5758
5759 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5760 if test "x$LINE" != x ; then
5761 eval "DEFAULT_$LINE"
5762 else
5763 no_cache=1
5764 fi
5765
5766 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5767
5768fi;
5769
5770 eval "$ac_cv_use_system_options"
5771 if test "$no_cache" != 1; then
5772 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5773 fi
5774
5775 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5776 echo "$as_me:$LINENO: result: yes" >&5
5777echo "${ECHO_T}yes" >&6
5778 else
5779 echo "$as_me:$LINENO: result: no" >&5
5780echo "${ECHO_T}no" >&6
5781 fi
5782
5783
5784 enablestring=
5785 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5786echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5787 no_cache=0
5788 # Check whether --enable-textbuf or --disable-textbuf was given.
5789if test "${enable_textbuf+set}" = set; then
5790 enableval="$enable_textbuf"
5791
5792 if test "$enableval" = yes; then
5793 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5794 else
5795 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5796 fi
5797
5798else
5799
5800 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5801 if test "x$LINE" != x ; then
5802 eval "DEFAULT_$LINE"
5803 else
5804 no_cache=1
5805 fi
5806
5807 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5808
5809fi;
5810
5811 eval "$ac_cv_use_textbuf"
5812 if test "$no_cache" != 1; then
5813 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5814 fi
5815
5816 if test "$wxUSE_TEXTBUFFER" = yes; then
5817 echo "$as_me:$LINENO: result: yes" >&5
5818echo "${ECHO_T}yes" >&6
5819 else
5820 echo "$as_me:$LINENO: result: no" >&5
5821echo "${ECHO_T}no" >&6
5822 fi
5823
5824
5825 enablestring=
5826 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5827echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5828 no_cache=0
5829 # Check whether --enable-textfile or --disable-textfile was given.
5830if test "${enable_textfile+set}" = set; then
5831 enableval="$enable_textfile"
5832
5833 if test "$enableval" = yes; then
5834 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5835 else
5836 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5837 fi
5838
5839else
5840
5841 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5842 if test "x$LINE" != x ; then
5843 eval "DEFAULT_$LINE"
5844 else
5845 no_cache=1
5846 fi
5847
5848 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5849
5850fi;
5851
5852 eval "$ac_cv_use_textfile"
5853 if test "$no_cache" != 1; then
5854 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5855 fi
5856
5857 if test "$wxUSE_TEXTFILE" = yes; then
5858 echo "$as_me:$LINENO: result: yes" >&5
5859echo "${ECHO_T}yes" >&6
5860 else
5861 echo "$as_me:$LINENO: result: no" >&5
5862echo "${ECHO_T}no" >&6
5863 fi
5864
5865
5866 enablestring=
5867 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5868echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5869 no_cache=0
5870 # Check whether --enable-timer or --disable-timer was given.
5871if test "${enable_timer+set}" = set; then
5872 enableval="$enable_timer"
5873
5874 if test "$enableval" = yes; then
5875 ac_cv_use_timer='wxUSE_TIMER=yes'
5876 else
5877 ac_cv_use_timer='wxUSE_TIMER=no'
5878 fi
5879
5880else
5881
5882 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5883 if test "x$LINE" != x ; then
5884 eval "DEFAULT_$LINE"
5885 else
5886 no_cache=1
5887 fi
5888
5889 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5890
5891fi;
5892
5893 eval "$ac_cv_use_timer"
5894 if test "$no_cache" != 1; then
5895 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5896 fi
5897
5898 if test "$wxUSE_TIMER" = yes; then
5899 echo "$as_me:$LINENO: result: yes" >&5
5900echo "${ECHO_T}yes" >&6
5901 else
5902 echo "$as_me:$LINENO: result: no" >&5
5903echo "${ECHO_T}no" >&6
5904 fi
5905
5906
5907 enablestring=
5908 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5909echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5910 no_cache=0
5911 # Check whether --enable-unicode or --disable-unicode was given.
5912if test "${enable_unicode+set}" = set; then
5913 enableval="$enable_unicode"
5914
5915 if test "$enableval" = yes; then
5916 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5917 else
5918 ac_cv_use_unicode='wxUSE_UNICODE=no'
5919 fi
5920
5921else
5922
5923 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5924 if test "x$LINE" != x ; then
5925 eval "DEFAULT_$LINE"
5926 else
5927 no_cache=1
5928 fi
5929
5930 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5931
5932fi;
5933
5934 eval "$ac_cv_use_unicode"
5935 if test "$no_cache" != 1; then
5936 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5937 fi
5938
5939 if test "$wxUSE_UNICODE" = yes; then
5940 echo "$as_me:$LINENO: result: yes" >&5
5941echo "${ECHO_T}yes" >&6
5942 else
5943 echo "$as_me:$LINENO: result: no" >&5
5944echo "${ECHO_T}no" >&6
5945 fi
5946
5947
5948 enablestring=
5949 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5950echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5951 no_cache=0
5952 # Check whether --enable-sound or --disable-sound was given.
5953if test "${enable_sound+set}" = set; then
5954 enableval="$enable_sound"
5955
5956 if test "$enableval" = yes; then
5957 ac_cv_use_sound='wxUSE_SOUND=yes'
5958 else
5959 ac_cv_use_sound='wxUSE_SOUND=no'
5960 fi
5961
5962else
5963
5964 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5965 if test "x$LINE" != x ; then
5966 eval "DEFAULT_$LINE"
5967 else
5968 no_cache=1
5969 fi
5970
5971 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5972
5973fi;
5974
5975 eval "$ac_cv_use_sound"
5976 if test "$no_cache" != 1; then
5977 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5978 fi
5979
5980 if test "$wxUSE_SOUND" = yes; then
5981 echo "$as_me:$LINENO: result: yes" >&5
5982echo "${ECHO_T}yes" >&6
5983 else
5984 echo "$as_me:$LINENO: result: no" >&5
5985echo "${ECHO_T}no" >&6
5986 fi
5987
5988
3b57de8b
RL
5989 enablestring=
5990 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
5991echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
5992 no_cache=0
5993 # Check whether --enable-mediactrl or --disable-mediactrl was given.
5994if test "${enable_mediactrl+set}" = set; then
5995 enableval="$enable_mediactrl"
5996
5997 if test "$enableval" = yes; then
5998 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
5999 else
6000 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6001 fi
6002
6003else
6004
6005 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6006 if test "x$LINE" != x ; then
6007 eval "DEFAULT_$LINE"
6008 else
6009 no_cache=1
6010 fi
6011
6012 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6013
6014fi;
6015
6016 eval "$ac_cv_use_mediactrl"
6017 if test "$no_cache" != 1; then
6018 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6019 fi
6020
6021 if test "$wxUSE_MEDIACTRL" = yes; then
6022 echo "$as_me:$LINENO: result: yes" >&5
6023echo "${ECHO_T}yes" >&6
6024 else
6025 echo "$as_me:$LINENO: result: no" >&5
6026echo "${ECHO_T}no" >&6
6027 fi
6028
6029
a848cd7e
SC
6030 enablestring=
6031 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6032echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6033 no_cache=0
6034 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6035if test "${enable_wxprintfv+set}" = set; then
6036 enableval="$enable_wxprintfv"
6037
6038 if test "$enableval" = yes; then
6039 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6040 else
6041 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6042 fi
6043
6044else
6045
6046 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6047 if test "x$LINE" != x ; then
6048 eval "DEFAULT_$LINE"
6049 else
6050 no_cache=1
6051 fi
6052
6053 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6054
6055fi;
6056
6057 eval "$ac_cv_use_wxprintfv"
6058 if test "$no_cache" != 1; then
6059 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6060 fi
6061
6062 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6063 echo "$as_me:$LINENO: result: yes" >&5
6064echo "${ECHO_T}yes" >&6
6065 else
6066 echo "$as_me:$LINENO: result: no" >&5
6067echo "${ECHO_T}no" >&6
6068 fi
6069
6070
6071 enablestring=
6072 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6073echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6074 no_cache=0
6075 # Check whether --enable-zipstream or --disable-zipstream was given.
6076if test "${enable_zipstream+set}" = set; then
6077 enableval="$enable_zipstream"
6078
6079 if test "$enableval" = yes; then
6080 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6081 else
6082 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6083 fi
6084
6085else
6086
6087 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6088 if test "x$LINE" != x ; then
6089 eval "DEFAULT_$LINE"
6090 else
6091 no_cache=1
6092 fi
6093
6094 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6095
6096fi;
6097
6098 eval "$ac_cv_use_zipstream"
6099 if test "$no_cache" != 1; then
6100 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6101 fi
6102
6103 if test "$wxUSE_ZIPSTREAM" = yes; then
6104 echo "$as_me:$LINENO: result: yes" >&5
6105echo "${ECHO_T}yes" >&6
6106 else
6107 echo "$as_me:$LINENO: result: no" >&5
6108echo "${ECHO_T}no" >&6
6109 fi
6110
6111
a848cd7e
SC
6112
6113 enablestring=
6114 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6115echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6116 no_cache=0
6117 # Check whether --enable-url or --disable-url was given.
6118if test "${enable_url+set}" = set; then
6119 enableval="$enable_url"
6120
6121 if test "$enableval" = yes; then
6122 ac_cv_use_url='wxUSE_URL=yes'
6123 else
6124 ac_cv_use_url='wxUSE_URL=no'
6125 fi
6126
6127else
6128
6129 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6130 if test "x$LINE" != x ; then
6131 eval "DEFAULT_$LINE"
6132 else
6133 no_cache=1
6134 fi
6135
6136 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6137
6138fi;
6139
6140 eval "$ac_cv_use_url"
6141 if test "$no_cache" != 1; then
6142 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6143 fi
6144
6145 if test "$wxUSE_URL" = yes; then
6146 echo "$as_me:$LINENO: result: yes" >&5
6147echo "${ECHO_T}yes" >&6
6148 else
6149 echo "$as_me:$LINENO: result: no" >&5
6150echo "${ECHO_T}no" >&6
6151 fi
6152
6153
6154 enablestring=
6155 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6156echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6157 no_cache=0
6158 # Check whether --enable-protocol or --disable-protocol was given.
6159if test "${enable_protocol+set}" = set; then
6160 enableval="$enable_protocol"
6161
6162 if test "$enableval" = yes; then
6163 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6164 else
6165 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6166 fi
6167
6168else
6169
6170 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6171 if test "x$LINE" != x ; then
6172 eval "DEFAULT_$LINE"
6173 else
6174 no_cache=1
6175 fi
6176
6177 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6178
6179fi;
6180
6181 eval "$ac_cv_use_protocol"
6182 if test "$no_cache" != 1; then
6183 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6184 fi
6185
6186 if test "$wxUSE_PROTOCOL" = yes; then
6187 echo "$as_me:$LINENO: result: yes" >&5
6188echo "${ECHO_T}yes" >&6
6189 else
6190 echo "$as_me:$LINENO: result: no" >&5
6191echo "${ECHO_T}no" >&6
6192 fi
6193
6194
6195 enablestring=
6196 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6197echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6198 no_cache=0
6199 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6200if test "${enable_protocol_http+set}" = set; then
6201 enableval="$enable_protocol_http"
6202
6203 if test "$enableval" = yes; then
6204 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6205 else
6206 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6207 fi
6208
6209else
6210
6211 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6212 if test "x$LINE" != x ; then
6213 eval "DEFAULT_$LINE"
6214 else
6215 no_cache=1
6216 fi
6217
6218 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6219
6220fi;
6221
6222 eval "$ac_cv_use_protocol_http"
6223 if test "$no_cache" != 1; then
6224 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6225 fi
6226
6227 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6228 echo "$as_me:$LINENO: result: yes" >&5
6229echo "${ECHO_T}yes" >&6
6230 else
6231 echo "$as_me:$LINENO: result: no" >&5
6232echo "${ECHO_T}no" >&6
6233 fi
6234
6235
6236 enablestring=
6237 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6238echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6239 no_cache=0
6240 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6241if test "${enable_protocol_ftp+set}" = set; then
6242 enableval="$enable_protocol_ftp"
6243
6244 if test "$enableval" = yes; then
6245 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6246 else
6247 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6248 fi
6249
6250else
6251
6252 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6253 if test "x$LINE" != x ; then
6254 eval "DEFAULT_$LINE"
6255 else
6256 no_cache=1
6257 fi
6258
6259 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6260
6261fi;
6262
6263 eval "$ac_cv_use_protocol_ftp"
6264 if test "$no_cache" != 1; then
6265 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6266 fi
6267
6268 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6269 echo "$as_me:$LINENO: result: yes" >&5
6270echo "${ECHO_T}yes" >&6
6271 else
6272 echo "$as_me:$LINENO: result: no" >&5
6273echo "${ECHO_T}no" >&6
6274 fi
6275
6276
6277 enablestring=
6278 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6279echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6280 no_cache=0
6281 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6282if test "${enable_protocol_file+set}" = set; then
6283 enableval="$enable_protocol_file"
6284
6285 if test "$enableval" = yes; then
6286 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6287 else
6288 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6289 fi
6290
6291else
6292
6293 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6294 if test "x$LINE" != x ; then
6295 eval "DEFAULT_$LINE"
6296 else
6297 no_cache=1
6298 fi
6299
6300 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6301
6302fi;
6303
6304 eval "$ac_cv_use_protocol_file"
6305 if test "$no_cache" != 1; then
6306 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6307 fi
6308
6309 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6310 echo "$as_me:$LINENO: result: yes" >&5
6311echo "${ECHO_T}yes" >&6
6312 else
6313 echo "$as_me:$LINENO: result: no" >&5
6314echo "${ECHO_T}no" >&6
6315 fi
6316
6317
6318
6319
6320
6321 enablestring=
6322 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6323echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6324 no_cache=0
6325 # Check whether --enable-threads or --disable-threads was given.
6326if test "${enable_threads+set}" = set; then
6327 enableval="$enable_threads"
6328
6329 if test "$enableval" = yes; then
6330 ac_cv_use_threads='wxUSE_THREADS=yes'
6331 else
6332 ac_cv_use_threads='wxUSE_THREADS=no'
6333 fi
6334
6335else
6336
6337 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6338 if test "x$LINE" != x ; then
6339 eval "DEFAULT_$LINE"
6340 else
6341 no_cache=1
6342 fi
6343
6344 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6345
6346fi;
6347
6348 eval "$ac_cv_use_threads"
6349 if test "$no_cache" != 1; then
6350 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6351 fi
6352
6353 if test "$wxUSE_THREADS" = yes; then
6354 echo "$as_me:$LINENO: result: yes" >&5
6355echo "${ECHO_T}yes" >&6
6356 else
6357 echo "$as_me:$LINENO: result: no" >&5
6358echo "${ECHO_T}no" >&6
6359 fi
6360
6361
6362if test "$wxUSE_GUI" = "yes"; then
6363
6364
6365
6366 enablestring=
6367 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6368echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6369 no_cache=0
6370 # Check whether --enable-docview or --disable-docview was given.
6371if test "${enable_docview+set}" = set; then
6372 enableval="$enable_docview"
6373
6374 if test "$enableval" = yes; then
6375 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6376 else
6377 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6378 fi
6379
6380else
6381
6382 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6383 if test "x$LINE" != x ; then
6384 eval "DEFAULT_$LINE"
6385 else
6386 no_cache=1
6387 fi
6388
6389 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6390
6391fi;
6392
6393 eval "$ac_cv_use_docview"
6394 if test "$no_cache" != 1; then
6395 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6396 fi
6397
6398 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6399 echo "$as_me:$LINENO: result: yes" >&5
6400echo "${ECHO_T}yes" >&6
6401 else
6402 echo "$as_me:$LINENO: result: no" >&5
6403echo "${ECHO_T}no" >&6
6404 fi
6405
6406
6407 enablestring=
6408 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6409echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6410 no_cache=0
6411 # Check whether --enable-help or --disable-help was given.
6412if test "${enable_help+set}" = set; then
6413 enableval="$enable_help"
6414
6415 if test "$enableval" = yes; then
6416 ac_cv_use_help='wxUSE_HELP=yes'
6417 else
6418 ac_cv_use_help='wxUSE_HELP=no'
6419 fi
6420
6421else
6422
6423 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6424 if test "x$LINE" != x ; then
6425 eval "DEFAULT_$LINE"
6426 else
6427 no_cache=1
6428 fi
6429
6430 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6431
6432fi;
6433
6434 eval "$ac_cv_use_help"
6435 if test "$no_cache" != 1; then
6436 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6437 fi
6438
6439 if test "$wxUSE_HELP" = yes; then
6440 echo "$as_me:$LINENO: result: yes" >&5
6441echo "${ECHO_T}yes" >&6
6442 else
6443 echo "$as_me:$LINENO: result: no" >&5
6444echo "${ECHO_T}no" >&6
6445 fi
6446
6447
6448 enablestring=
6449 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6450echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6451 no_cache=0
6452 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6453if test "${enable_mshtmlhelp+set}" = set; then
6454 enableval="$enable_mshtmlhelp"
6455
6456 if test "$enableval" = yes; then
6457 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6458 else
6459 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6460 fi
6461
6462else
6463
6464 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6465 if test "x$LINE" != x ; then
6466 eval "DEFAULT_$LINE"
6467 else
6468 no_cache=1
6469 fi
6470
6471 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6472
6473fi;
6474
6475 eval "$ac_cv_use_mshtmlhelp"
6476 if test "$no_cache" != 1; then
6477 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6478 fi
6479
6480 if test "$wxUSE_MS_HTML_HELP" = yes; then
6481 echo "$as_me:$LINENO: result: yes" >&5
6482echo "${ECHO_T}yes" >&6
6483 else
6484 echo "$as_me:$LINENO: result: no" >&5
6485echo "${ECHO_T}no" >&6
6486 fi
6487
6488
6489 enablestring=
6490 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6491echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6492 no_cache=0
6493 # Check whether --enable-html or --disable-html was given.
6494if test "${enable_html+set}" = set; then
6495 enableval="$enable_html"
6496
6497 if test "$enableval" = yes; then
6498 ac_cv_use_html='wxUSE_HTML=yes'
6499 else
6500 ac_cv_use_html='wxUSE_HTML=no'
6501 fi
6502
6503else
6504
6505 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6506 if test "x$LINE" != x ; then
6507 eval "DEFAULT_$LINE"
6508 else
6509 no_cache=1
6510 fi
6511
6512 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6513
6514fi;
6515
6516 eval "$ac_cv_use_html"
6517 if test "$no_cache" != 1; then
6518 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6519 fi
6520
6521 if test "$wxUSE_HTML" = yes; then
6522 echo "$as_me:$LINENO: result: yes" >&5
6523echo "${ECHO_T}yes" >&6
6524 else
6525 echo "$as_me:$LINENO: result: no" >&5
6526echo "${ECHO_T}no" >&6
6527 fi
6528
6529
6530 enablestring=
6531 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6532echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6533 no_cache=0
6534 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6535if test "${enable_htmlhelp+set}" = set; then
6536 enableval="$enable_htmlhelp"
6537
6538 if test "$enableval" = yes; then
6539 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6540 else
6541 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6542 fi
6543
6544else
6545
6546 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6547 if test "x$LINE" != x ; then
6548 eval "DEFAULT_$LINE"
6549 else
6550 no_cache=1
6551 fi
6552
6553 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6554
6555fi;
6556
6557 eval "$ac_cv_use_htmlhelp"
6558 if test "$no_cache" != 1; then
6559 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6560 fi
6561
6562 if test "$wxUSE_WXHTML_HELP" = yes; then
6563 echo "$as_me:$LINENO: result: yes" >&5
6564echo "${ECHO_T}yes" >&6
6565 else
6566 echo "$as_me:$LINENO: result: no" >&5
6567echo "${ECHO_T}no" >&6
6568 fi
6569
6570
9a8f0513
VS
6571 enablestring=
6572 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6573echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6574 no_cache=0
6575 # Check whether --enable-xrc or --disable-xrc was given.
6576if test "${enable_xrc+set}" = set; then
6577 enableval="$enable_xrc"
6578
6579 if test "$enableval" = yes; then
6580 ac_cv_use_xrc='wxUSE_XRC=yes'
6581 else
6582 ac_cv_use_xrc='wxUSE_XRC=no'
6583 fi
6584
6585else
6586
6587 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6588 if test "x$LINE" != x ; then
6589 eval "DEFAULT_$LINE"
6590 else
6591 no_cache=1
6592 fi
6593
6594 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6595
6596fi;
6597
6598 eval "$ac_cv_use_xrc"
6599 if test "$no_cache" != 1; then
6600 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6601 fi
6602
6603 if test "$wxUSE_XRC" = yes; then
6604 echo "$as_me:$LINENO: result: yes" >&5
6605echo "${ECHO_T}yes" >&6
6606 else
6607 echo "$as_me:$LINENO: result: no" >&5
6608echo "${ECHO_T}no" >&6
6609 fi
6610
6611
a848cd7e
SC
6612 enablestring=
6613 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6614echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6615 no_cache=0
6616 # Check whether --enable-constraints or --disable-constraints was given.
6617if test "${enable_constraints+set}" = set; then
6618 enableval="$enable_constraints"
6619
6620 if test "$enableval" = yes; then
6621 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6622 else
6623 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6624 fi
6625
6626else
6627
6628 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6629 if test "x$LINE" != x ; then
6630 eval "DEFAULT_$LINE"
6631 else
6632 no_cache=1
6633 fi
6634
6635 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6636
6637fi;
6638
6639 eval "$ac_cv_use_constraints"
6640 if test "$no_cache" != 1; then
6641 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6642 fi
6643
6644 if test "$wxUSE_CONSTRAINTS" = yes; then
6645 echo "$as_me:$LINENO: result: yes" >&5
6646echo "${ECHO_T}yes" >&6
6647 else
6648 echo "$as_me:$LINENO: result: no" >&5
6649echo "${ECHO_T}no" >&6
6650 fi
6651
6652
6653 enablestring=
6654 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6655echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6656 no_cache=0
6657 # Check whether --enable-printarch or --disable-printarch was given.
6658if test "${enable_printarch+set}" = set; then
6659 enableval="$enable_printarch"
6660
6661 if test "$enableval" = yes; then
6662 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6663 else
6664 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6665 fi
6666
6667else
6668
6669 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6670 if test "x$LINE" != x ; then
6671 eval "DEFAULT_$LINE"
6672 else
6673 no_cache=1
6674 fi
6675
6676 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6677
6678fi;
6679
6680 eval "$ac_cv_use_printarch"
6681 if test "$no_cache" != 1; then
6682 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6683 fi
6684
6685 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6686 echo "$as_me:$LINENO: result: yes" >&5
6687echo "${ECHO_T}yes" >&6
6688 else
6689 echo "$as_me:$LINENO: result: no" >&5
6690echo "${ECHO_T}no" >&6
6691 fi
6692
6693
6694 enablestring=
6695 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6696echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6697 no_cache=0
6698 # Check whether --enable-mdi or --disable-mdi was given.
6699if test "${enable_mdi+set}" = set; then
6700 enableval="$enable_mdi"
6701
6702 if test "$enableval" = yes; then
8a7b1113 6703 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6704 else
8a7b1113 6705 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6706 fi
6707
6708else
6709
8a7b1113 6710 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6711 if test "x$LINE" != x ; then
6712 eval "DEFAULT_$LINE"
6713 else
6714 no_cache=1
6715 fi
6716
8a7b1113 6717 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6718
6719fi;
6720
6721 eval "$ac_cv_use_mdi"
6722 if test "$no_cache" != 1; then
6723 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6724 fi
6725
8a7b1113
VZ
6726 if test "$wxUSE_MDI" = yes; then
6727 echo "$as_me:$LINENO: result: yes" >&5
6728echo "${ECHO_T}yes" >&6
6729 else
6730 echo "$as_me:$LINENO: result: no" >&5
6731echo "${ECHO_T}no" >&6
6732 fi
6733
6734
6735 enablestring=
6736 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6737echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6738 no_cache=0
6739 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6740if test "${enable_mdidoc+set}" = set; then
6741 enableval="$enable_mdidoc"
6742
6743 if test "$enableval" = yes; then
6744 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6745 else
6746 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6747 fi
6748
6749else
6750
6751 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6752 if test "x$LINE" != x ; then
6753 eval "DEFAULT_$LINE"
6754 else
6755 no_cache=1
6756 fi
6757
6758 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6759
6760fi;
6761
6762 eval "$ac_cv_use_mdidoc"
6763 if test "$no_cache" != 1; then
6764 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6765 fi
6766
a848cd7e
SC
6767 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6768 echo "$as_me:$LINENO: result: yes" >&5
6769echo "${ECHO_T}yes" >&6
6770 else
6771 echo "$as_me:$LINENO: result: no" >&5
6772echo "${ECHO_T}no" >&6
6773 fi
6774
6775
6776 enablestring=
6777 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6778echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6779 no_cache=0
6780 # Check whether --enable-loggui or --disable-loggui was given.
6781if test "${enable_loggui+set}" = set; then
6782 enableval="$enable_loggui"
6783
6784 if test "$enableval" = yes; then
6785 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6786 else
6787 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6788 fi
6789
6790else
6791
6792 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6793 if test "x$LINE" != x ; then
6794 eval "DEFAULT_$LINE"
6795 else
6796 no_cache=1
6797 fi
6798
6799 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6800
6801fi;
6802
6803 eval "$ac_cv_use_loggui"
6804 if test "$no_cache" != 1; then
6805 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6806 fi
6807
6808 if test "$wxUSE_LOGGUI" = yes; then
6809 echo "$as_me:$LINENO: result: yes" >&5
6810echo "${ECHO_T}yes" >&6
6811 else
6812 echo "$as_me:$LINENO: result: no" >&5
6813echo "${ECHO_T}no" >&6
6814 fi
6815
6816
6817 enablestring=
6818 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6819echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6820 no_cache=0
6821 # Check whether --enable-logwin or --disable-logwin was given.
6822if test "${enable_logwin+set}" = set; then
6823 enableval="$enable_logwin"
6824
6825 if test "$enableval" = yes; then
6826 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6827 else
6828 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6829 fi
6830
6831else
6832
6833 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6834 if test "x$LINE" != x ; then
6835 eval "DEFAULT_$LINE"
6836 else
6837 no_cache=1
6838 fi
6839
6840 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6841
6842fi;
6843
6844 eval "$ac_cv_use_logwin"
6845 if test "$no_cache" != 1; then
6846 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6847 fi
6848
6849 if test "$wxUSE_LOGWINDOW" = yes; then
6850 echo "$as_me:$LINENO: result: yes" >&5
6851echo "${ECHO_T}yes" >&6
6852 else
6853 echo "$as_me:$LINENO: result: no" >&5
6854echo "${ECHO_T}no" >&6
6855 fi
6856
6857
6858 enablestring=
6859 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6860echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6861 no_cache=0
6862 # Check whether --enable-logdialog or --disable-logdialog was given.
6863if test "${enable_logdialog+set}" = set; then
6864 enableval="$enable_logdialog"
6865
6866 if test "$enableval" = yes; then
6867 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6868 else
6869 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6870 fi
6871
6872else
6873
6874 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6875 if test "x$LINE" != x ; then
6876 eval "DEFAULT_$LINE"
6877 else
6878 no_cache=1
6879 fi
6880
6881 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6882
6883fi;
6884
6885 eval "$ac_cv_use_logdialog"
6886 if test "$no_cache" != 1; then
6887 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6888 fi
6889
6890 if test "$wxUSE_LOGDIALOG" = yes; then
6891 echo "$as_me:$LINENO: result: yes" >&5
6892echo "${ECHO_T}yes" >&6
6893 else
6894 echo "$as_me:$LINENO: result: no" >&5
6895echo "${ECHO_T}no" >&6
6896 fi
6897
6898
646b6ec1
VS
6899 enablestring=
6900 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6901echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6902 no_cache=0
6903 # Check whether --enable-webkit or --disable-webkit was given.
6904if test "${enable_webkit+set}" = set; then
6905 enableval="$enable_webkit"
6906
6907 if test "$enableval" = yes; then
6908 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6909 else
6910 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6911 fi
6912
6913else
6914
6915 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6916 if test "x$LINE" != x ; then
6917 eval "DEFAULT_$LINE"
6918 else
6919 no_cache=1
6920 fi
6921
6922 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6923
6924fi;
6925
6926 eval "$ac_cv_use_webkit"
6927 if test "$no_cache" != 1; then
6928 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6929 fi
6930
6931 if test "$wxUSE_WEBKIT" = yes; then
6932 echo "$as_me:$LINENO: result: yes" >&5
6933echo "${ECHO_T}yes" >&6
6934 else
6935 echo "$as_me:$LINENO: result: no" >&5
6936echo "${ECHO_T}no" >&6
6937 fi
6938
6939
a848cd7e
SC
6940
6941 enablestring=
6942 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6943echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6944 no_cache=0
6945 # Check whether --enable-postscript or --disable-postscript was given.
6946if test "${enable_postscript+set}" = set; then
6947 enableval="$enable_postscript"
6948
6949 if test "$enableval" = yes; then
6950 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6951 else
6952 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6953 fi
6954
6955else
6956
6957 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6958 if test "x$LINE" != x ; then
6959 eval "DEFAULT_$LINE"
6960 else
6961 no_cache=1
6962 fi
6963
6964 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6965
6966fi;
6967
6968 eval "$ac_cv_use_postscript"
6969 if test "$no_cache" != 1; then
6970 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6971 fi
6972
6973 if test "$wxUSE_POSTSCRIPT" = yes; then
6974 echo "$as_me:$LINENO: result: yes" >&5
6975echo "${ECHO_T}yes" >&6
6976 else
6977 echo "$as_me:$LINENO: result: no" >&5
6978echo "${ECHO_T}no" >&6
6979 fi
6980
6981
6982
6983
6984
6985 enablestring=
6986 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6987echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6988 no_cache=0
6989 # Check whether --enable-prologio or --disable-prologio was given.
6990if test "${enable_prologio+set}" = set; then
6991 enableval="$enable_prologio"
6992
6993 if test "$enableval" = yes; then
6994 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6995 else
6996 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6997 fi
6998
6999else
7000
7001 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7002 if test "x$LINE" != x ; then
7003 eval "DEFAULT_$LINE"
7004 else
7005 no_cache=1
7006 fi
7007
7008 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7009
7010fi;
7011
7012 eval "$ac_cv_use_prologio"
7013 if test "$no_cache" != 1; then
7014 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7015 fi
7016
7017 if test "$wxUSE_PROLOGIO" = yes; then
7018 echo "$as_me:$LINENO: result: yes" >&5
7019echo "${ECHO_T}yes" >&6
7020 else
7021 echo "$as_me:$LINENO: result: no" >&5
7022echo "${ECHO_T}no" >&6
7023 fi
7024
7025
7026 enablestring=
7027 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7028echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7029 no_cache=0
7030 # Check whether --enable-resources or --disable-resources was given.
7031if test "${enable_resources+set}" = set; then
7032 enableval="$enable_resources"
7033
7034 if test "$enableval" = yes; then
7035 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7036 else
7037 ac_cv_use_resources='wxUSE_RESOURCES=no'
7038 fi
7039
7040else
7041
7042 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7043 if test "x$LINE" != x ; then
7044 eval "DEFAULT_$LINE"
7045 else
7046 no_cache=1
7047 fi
7048
7049 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7050
7051fi;
7052
7053 eval "$ac_cv_use_resources"
7054 if test "$no_cache" != 1; then
7055 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7056 fi
7057
7058 if test "$wxUSE_RESOURCES" = yes; then
7059 echo "$as_me:$LINENO: result: yes" >&5
7060echo "${ECHO_T}yes" >&6
7061 else
7062 echo "$as_me:$LINENO: result: no" >&5
7063echo "${ECHO_T}no" >&6
7064 fi
7065
7066
7067
7068
7069 enablestring=
7070 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7071echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7072 no_cache=0
7073 # Check whether --enable-clipboard or --disable-clipboard was given.
7074if test "${enable_clipboard+set}" = set; then
7075 enableval="$enable_clipboard"
7076
7077 if test "$enableval" = yes; then
7078 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7079 else
7080 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7081 fi
7082
7083else
7084
7085 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7086 if test "x$LINE" != x ; then
7087 eval "DEFAULT_$LINE"
7088 else
7089 no_cache=1
7090 fi
7091
7092 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7093
7094fi;
7095
7096 eval "$ac_cv_use_clipboard"
7097 if test "$no_cache" != 1; then
7098 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7099 fi
7100
7101 if test "$wxUSE_CLIPBOARD" = yes; then
7102 echo "$as_me:$LINENO: result: yes" >&5
7103echo "${ECHO_T}yes" >&6
7104 else
7105 echo "$as_me:$LINENO: result: no" >&5
7106echo "${ECHO_T}no" >&6
7107 fi
7108
7109
7110 enablestring=
7111 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7112echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7113 no_cache=0
7114 # Check whether --enable-dnd or --disable-dnd was given.
7115if test "${enable_dnd+set}" = set; then
7116 enableval="$enable_dnd"
7117
7118 if test "$enableval" = yes; then
7119 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7120 else
7121 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7122 fi
7123
7124else
7125
7126 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7127 if test "x$LINE" != x ; then
7128 eval "DEFAULT_$LINE"
7129 else
7130 no_cache=1
7131 fi
7132
7133 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7134
7135fi;
7136
7137 eval "$ac_cv_use_dnd"
7138 if test "$no_cache" != 1; then
7139 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7140 fi
7141
7142 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7143 echo "$as_me:$LINENO: result: yes" >&5
7144echo "${ECHO_T}yes" >&6
7145 else
7146 echo "$as_me:$LINENO: result: no" >&5
7147echo "${ECHO_T}no" >&6
7148 fi
7149
7150
7151 enablestring=
7152 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7153echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7154 no_cache=0
7155 # Check whether --enable-metafile or --disable-metafile was given.
7156if test "${enable_metafile+set}" = set; then
7157 enableval="$enable_metafile"
7158
7159 if test "$enableval" = yes; then
7160 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7161 else
7162 ac_cv_use_metafile='wxUSE_METAFILE=no'
7163 fi
7164
7165else
7166
7167 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7168 if test "x$LINE" != x ; then
7169 eval "DEFAULT_$LINE"
7170 else
7171 no_cache=1
7172 fi
7173
7174 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7175
7176fi;
7177
7178 eval "$ac_cv_use_metafile"
7179 if test "$no_cache" != 1; then
7180 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7181 fi
7182
7183 if test "$wxUSE_METAFILE" = yes; then
7184 echo "$as_me:$LINENO: result: yes" >&5
7185echo "${ECHO_T}yes" >&6
7186 else
7187 echo "$as_me:$LINENO: result: no" >&5
7188echo "${ECHO_T}no" >&6
7189 fi
7190
7191
7192
7193
7194
7195 enablestring=
7196 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7197echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7198 no_cache=0
7199 # Check whether --enable-controls or --disable-controls was given.
7200if test "${enable_controls+set}" = set; then
7201 enableval="$enable_controls"
7202
7203 if test "$enableval" = yes; then
7204 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7205 else
7206 ac_cv_use_controls='wxUSE_CONTROLS=no'
7207 fi
7208
7209else
7210
7211 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7212 if test "x$LINE" != x ; then
7213 eval "DEFAULT_$LINE"
7214 else
7215 no_cache=1
7216 fi
7217
7218 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7219
7220fi;
7221
7222 eval "$ac_cv_use_controls"
7223 if test "$no_cache" != 1; then
7224 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7225 fi
7226
7227 if test "$wxUSE_CONTROLS" = yes; then
7228 echo "$as_me:$LINENO: result: yes" >&5
7229echo "${ECHO_T}yes" >&6
7230 else
7231 echo "$as_me:$LINENO: result: no" >&5
7232echo "${ECHO_T}no" >&6
7233 fi
7234
7235
7236if test "$wxUSE_CONTROLS" = "yes"; then
7237 DEFAULT_wxUSE_ACCEL=yes
7238 DEFAULT_wxUSE_BMPBUTTON=yes
7239 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7240 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7241 DEFAULT_wxUSE_CARET=yes
7242 DEFAULT_wxUSE_COMBOBOX=yes
7243 DEFAULT_wxUSE_CHECKBOX=yes
7244 DEFAULT_wxUSE_CHECKLISTBOX=yes
7245 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7246 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7247 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7248 DEFAULT_wxUSE_GAUGE=yes
7249 DEFAULT_wxUSE_GRID=yes
7250 DEFAULT_wxUSE_IMAGLIST=yes
7251 DEFAULT_wxUSE_LISTBOOK=yes
7252 DEFAULT_wxUSE_LISTBOX=yes
7253 DEFAULT_wxUSE_LISTCTRL=yes
7254 DEFAULT_wxUSE_NOTEBOOK=yes
7255 DEFAULT_wxUSE_RADIOBOX=yes
7256 DEFAULT_wxUSE_RADIOBTN=yes
7257 DEFAULT_wxUSE_SASH=yes
7258 DEFAULT_wxUSE_SCROLLBAR=yes
7259 DEFAULT_wxUSE_SLIDER=yes
7260 DEFAULT_wxUSE_SPINBTN=yes
7261 DEFAULT_wxUSE_SPINCTRL=yes
7262 DEFAULT_wxUSE_SPLITTER=yes
7263 DEFAULT_wxUSE_STATBMP=yes
7264 DEFAULT_wxUSE_STATBOX=yes
7265 DEFAULT_wxUSE_STATLINE=yes
7266 DEFAULT_wxUSE_STATUSBAR=yes
7267 DEFAULT_wxUSE_TAB_DIALOG=yes
7268 DEFAULT_wxUSE_TOGGLEBTN=yes
7269 DEFAULT_wxUSE_TOOLBAR=yes
7270 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7271 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7272 DEFAULT_wxUSE_TOOLTIPS=yes
7273 DEFAULT_wxUSE_TREECTRL=yes
7274 DEFAULT_wxUSE_POPUPWIN=yes
7275 DEFAULT_wxUSE_TIPWINDOW=yes
7276elif test "$wxUSE_CONTROLS" = "no"; then
7277 DEFAULT_wxUSE_ACCEL=no
7278 DEFAULT_wxUSE_BMPBUTTON=no
7279 DEFAULT_wxUSE_BUTTON=no
7280 DEFAULT_wxUSE_CALCTRL=no
7281 DEFAULT_wxUSE_CARET=no
7282 DEFAULT_wxUSE_COMBOBOX=no
7283 DEFAULT_wxUSE_CHECKBOX=no
7284 DEFAULT_wxUSE_CHECKLISTBOX=no
7285 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7286 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7287 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7288 DEFAULT_wxUSE_GAUGE=no
7289 DEFAULT_wxUSE_GRID=no
7290 DEFAULT_wxUSE_IMAGLIST=no
7291 DEFAULT_wxUSE_LISTBOOK=no
7292 DEFAULT_wxUSE_LISTBOX=no
7293 DEFAULT_wxUSE_LISTCTRL=no
7294 DEFAULT_wxUSE_NOTEBOOK=no
7295 DEFAULT_wxUSE_RADIOBOX=no
7296 DEFAULT_wxUSE_RADIOBTN=no
7297 DEFAULT_wxUSE_SASH=no
7298 DEFAULT_wxUSE_SCROLLBAR=no
7299 DEFAULT_wxUSE_SLIDER=no
7300 DEFAULT_wxUSE_SPINBTN=no
7301 DEFAULT_wxUSE_SPINCTRL=no
7302 DEFAULT_wxUSE_SPLITTER=no
7303 DEFAULT_wxUSE_STATBMP=no
7304 DEFAULT_wxUSE_STATBOX=no
7305 DEFAULT_wxUSE_STATLINE=no
7306 DEFAULT_wxUSE_STATUSBAR=no
7307 DEFAULT_wxUSE_TAB_DIALOG=no
7308 DEFAULT_wxUSE_TOGGLEBTN=no
7309 DEFAULT_wxUSE_TOOLBAR=no
7310 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7311 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7312 DEFAULT_wxUSE_TOOLTIPS=no
7313 DEFAULT_wxUSE_TREECTRL=no
7314 DEFAULT_wxUSE_POPUPWIN=no
7315 DEFAULT_wxUSE_TIPWINDOW=no
7316fi
7317
a848cd7e
SC
7318
7319 enablestring=
7320 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7321echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7322 no_cache=0
7323 # Check whether --enable-accel or --disable-accel was given.
7324if test "${enable_accel+set}" = set; then
7325 enableval="$enable_accel"
7326
7327 if test "$enableval" = yes; then
7328 ac_cv_use_accel='wxUSE_ACCEL=yes'
7329 else
7330 ac_cv_use_accel='wxUSE_ACCEL=no'
7331 fi
7332
7333else
7334
7335 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7336 if test "x$LINE" != x ; then
7337 eval "DEFAULT_$LINE"
7338 else
7339 no_cache=1
7340 fi
7341
7342 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7343
7344fi;
7345
7346 eval "$ac_cv_use_accel"
7347 if test "$no_cache" != 1; then
7348 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7349 fi
7350
7351 if test "$wxUSE_ACCEL" = yes; then
7352 echo "$as_me:$LINENO: result: yes" >&5
7353echo "${ECHO_T}yes" >&6
7354 else
7355 echo "$as_me:$LINENO: result: no" >&5
7356echo "${ECHO_T}no" >&6
7357 fi
7358
7359
7360 enablestring=
7361 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7362echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7363 no_cache=0
7364 # Check whether --enable-button or --disable-button was given.
7365if test "${enable_button+set}" = set; then
7366 enableval="$enable_button"
7367
7368 if test "$enableval" = yes; then
7369 ac_cv_use_button='wxUSE_BUTTON=yes'
7370 else
7371 ac_cv_use_button='wxUSE_BUTTON=no'
7372 fi
7373
7374else
7375
7376 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7377 if test "x$LINE" != x ; then
7378 eval "DEFAULT_$LINE"
7379 else
7380 no_cache=1
7381 fi
7382
7383 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7384
7385fi;
7386
7387 eval "$ac_cv_use_button"
7388 if test "$no_cache" != 1; then
7389 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7390 fi
7391
7392 if test "$wxUSE_BUTTON" = yes; then
7393 echo "$as_me:$LINENO: result: yes" >&5
7394echo "${ECHO_T}yes" >&6
7395 else
7396 echo "$as_me:$LINENO: result: no" >&5
7397echo "${ECHO_T}no" >&6
7398 fi
7399
7400
7401 enablestring=
7402 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7403echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7404 no_cache=0
7405 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7406if test "${enable_bmpbutton+set}" = set; then
7407 enableval="$enable_bmpbutton"
7408
7409 if test "$enableval" = yes; then
7410 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7411 else
7412 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7413 fi
7414
7415else
7416
7417 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7418 if test "x$LINE" != x ; then
7419 eval "DEFAULT_$LINE"
7420 else
7421 no_cache=1
7422 fi
7423
7424 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7425
7426fi;
7427
7428 eval "$ac_cv_use_bmpbutton"
7429 if test "$no_cache" != 1; then
7430 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7431 fi
7432
7433 if test "$wxUSE_BMPBUTTON" = yes; then
7434 echo "$as_me:$LINENO: result: yes" >&5
7435echo "${ECHO_T}yes" >&6
7436 else
7437 echo "$as_me:$LINENO: result: no" >&5
7438echo "${ECHO_T}no" >&6
7439 fi
7440
7441
7442 enablestring=
7443 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7444echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7445 no_cache=0
7446 # Check whether --enable-calendar or --disable-calendar was given.
7447if test "${enable_calendar+set}" = set; then
7448 enableval="$enable_calendar"
7449
7450 if test "$enableval" = yes; then
7451 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7452 else
7453 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7454 fi
7455
7456else
7457
7458 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7459 if test "x$LINE" != x ; then
7460 eval "DEFAULT_$LINE"
7461 else
7462 no_cache=1
7463 fi
7464
7465 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7466
7467fi;
7468
7469 eval "$ac_cv_use_calendar"
7470 if test "$no_cache" != 1; then
7471 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7472 fi
7473
7474 if test "$wxUSE_CALCTRL" = yes; then
7475 echo "$as_me:$LINENO: result: yes" >&5
7476echo "${ECHO_T}yes" >&6
7477 else
7478 echo "$as_me:$LINENO: result: no" >&5
7479echo "${ECHO_T}no" >&6
7480 fi
7481
7482
7483 enablestring=
7484 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7485echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7486 no_cache=0
7487 # Check whether --enable-caret or --disable-caret was given.
7488if test "${enable_caret+set}" = set; then
7489 enableval="$enable_caret"
7490
7491 if test "$enableval" = yes; then
7492 ac_cv_use_caret='wxUSE_CARET=yes'
7493 else
7494 ac_cv_use_caret='wxUSE_CARET=no'
7495 fi
7496
7497else
7498
7499 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7500 if test "x$LINE" != x ; then
7501 eval "DEFAULT_$LINE"
7502 else
7503 no_cache=1
7504 fi
7505
7506 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7507
7508fi;
7509
7510 eval "$ac_cv_use_caret"
7511 if test "$no_cache" != 1; then
7512 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7513 fi
7514
7515 if test "$wxUSE_CARET" = yes; then
7516 echo "$as_me:$LINENO: result: yes" >&5
7517echo "${ECHO_T}yes" >&6
7518 else
7519 echo "$as_me:$LINENO: result: no" >&5
7520echo "${ECHO_T}no" >&6
7521 fi
7522
7523
7524 enablestring=
7525 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7526echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7527 no_cache=0
7528 # Check whether --enable-checkbox or --disable-checkbox was given.
7529if test "${enable_checkbox+set}" = set; then
7530 enableval="$enable_checkbox"
7531
7532 if test "$enableval" = yes; then
7533 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7534 else
7535 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7536 fi
7537
7538else
7539
7540 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7541 if test "x$LINE" != x ; then
7542 eval "DEFAULT_$LINE"
7543 else
7544 no_cache=1
7545 fi
7546
7547 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7548
7549fi;
7550
7551 eval "$ac_cv_use_checkbox"
7552 if test "$no_cache" != 1; then
7553 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7554 fi
7555
7556 if test "$wxUSE_CHECKBOX" = yes; then
7557 echo "$as_me:$LINENO: result: yes" >&5
7558echo "${ECHO_T}yes" >&6
7559 else
7560 echo "$as_me:$LINENO: result: no" >&5
7561echo "${ECHO_T}no" >&6
7562 fi
7563
7564
7565 enablestring=
7566 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7567echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7568 no_cache=0
7569 # Check whether --enable-checklst or --disable-checklst was given.
7570if test "${enable_checklst+set}" = set; then
7571 enableval="$enable_checklst"
7572
7573 if test "$enableval" = yes; then
7574 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7575 else
7576 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7577 fi
7578
7579else
7580
7581 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7582 if test "x$LINE" != x ; then
7583 eval "DEFAULT_$LINE"
7584 else
7585 no_cache=1
7586 fi
7587
7588 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7589
7590fi;
7591
7592 eval "$ac_cv_use_checklst"
7593 if test "$no_cache" != 1; then
7594 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7595 fi
7596
7597 if test "$wxUSE_CHECKLST" = yes; then
7598 echo "$as_me:$LINENO: result: yes" >&5
7599echo "${ECHO_T}yes" >&6
7600 else
7601 echo "$as_me:$LINENO: result: no" >&5
7602echo "${ECHO_T}no" >&6
7603 fi
7604
7605
7606 enablestring=
7607 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7608echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7609 no_cache=0
7610 # Check whether --enable-choice or --disable-choice was given.
7611if test "${enable_choice+set}" = set; then
7612 enableval="$enable_choice"
7613
7614 if test "$enableval" = yes; then
7615 ac_cv_use_choice='wxUSE_CHOICE=yes'
7616 else
7617 ac_cv_use_choice='wxUSE_CHOICE=no'
7618 fi
7619
7620else
7621
7622 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7623 if test "x$LINE" != x ; then
7624 eval "DEFAULT_$LINE"
7625 else
7626 no_cache=1
7627 fi
7628
7629 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7630
7631fi;
7632
7633 eval "$ac_cv_use_choice"
7634 if test "$no_cache" != 1; then
7635 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7636 fi
7637
7638 if test "$wxUSE_CHOICE" = yes; then
7639 echo "$as_me:$LINENO: result: yes" >&5
7640echo "${ECHO_T}yes" >&6
7641 else
7642 echo "$as_me:$LINENO: result: no" >&5
7643echo "${ECHO_T}no" >&6
7644 fi
7645
7646
92bbdbcd
WS
7647 enablestring=
7648 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7649echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7650 no_cache=0
7651 # Check whether --enable-choicebook or --disable-choicebook was given.
7652if test "${enable_choicebook+set}" = set; then
7653 enableval="$enable_choicebook"
7654
7655 if test "$enableval" = yes; then
7656 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7657 else
7658 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7659 fi
7660
7661else
7662
7663 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7664 if test "x$LINE" != x ; then
7665 eval "DEFAULT_$LINE"
7666 else
7667 no_cache=1
7668 fi
7669
7670 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7671
7672fi;
7673
7674 eval "$ac_cv_use_choicebook"
7675 if test "$no_cache" != 1; then
7676 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7677 fi
7678
7679 if test "$wxUSE_CHOICEBOOK" = yes; then
7680 echo "$as_me:$LINENO: result: yes" >&5
7681echo "${ECHO_T}yes" >&6
7682 else
7683 echo "$as_me:$LINENO: result: no" >&5
7684echo "${ECHO_T}no" >&6
7685 fi
7686
7687
a848cd7e
SC
7688 enablestring=
7689 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7690echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7691 no_cache=0
7692 # Check whether --enable-combobox or --disable-combobox was given.
7693if test "${enable_combobox+set}" = set; then
7694 enableval="$enable_combobox"
7695
7696 if test "$enableval" = yes; then
7697 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7698 else
7699 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7700 fi
7701
7702else
7703
7704 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7705 if test "x$LINE" != x ; then
7706 eval "DEFAULT_$LINE"
7707 else
7708 no_cache=1
7709 fi
7710
7711 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7712
7713fi;
7714
7715 eval "$ac_cv_use_combobox"
7716 if test "$no_cache" != 1; then
7717 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7718 fi
7719
7720 if test "$wxUSE_COMBOBOX" = yes; then
7721 echo "$as_me:$LINENO: result: yes" >&5
7722echo "${ECHO_T}yes" >&6
7723 else
7724 echo "$as_me:$LINENO: result: no" >&5
7725echo "${ECHO_T}no" >&6
7726 fi
7727
7728
da98e9be
VZ
7729 enablestring=
7730 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7731echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7732 no_cache=0
7733 # Check whether --enable-datepick or --disable-datepick was given.
7734if test "${enable_datepick+set}" = set; then
7735 enableval="$enable_datepick"
7736
7737 if test "$enableval" = yes; then
7738 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7739 else
7740 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7741 fi
7742
7743else
7744
7745 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7746 if test "x$LINE" != x ; then
7747 eval "DEFAULT_$LINE"
7748 else
7749 no_cache=1
7750 fi
7751
7752 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7753
7754fi;
7755
7756 eval "$ac_cv_use_datepick"
7757 if test "$no_cache" != 1; then
7758 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7759 fi
7760
7761 if test "$wxUSE_DATEPICKCTRL" = yes; then
7762 echo "$as_me:$LINENO: result: yes" >&5
7763echo "${ECHO_T}yes" >&6
7764 else
7765 echo "$as_me:$LINENO: result: no" >&5
7766echo "${ECHO_T}no" >&6
7767 fi
7768
7769
a848cd7e
SC
7770 enablestring=
7771 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7772echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7773 no_cache=0
7774 # Check whether --enable-display or --disable-display was given.
7775if test "${enable_display+set}" = set; then
7776 enableval="$enable_display"
7777
7778 if test "$enableval" = yes; then
7779 ac_cv_use_display='wxUSE_DISPLAY=yes'
7780 else
7781 ac_cv_use_display='wxUSE_DISPLAY=no'
7782 fi
7783
7784else
7785
7786 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7787 if test "x$LINE" != x ; then
7788 eval "DEFAULT_$LINE"
7789 else
7790 no_cache=1
7791 fi
7792
7793 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7794
7795fi;
7796
7797 eval "$ac_cv_use_display"
7798 if test "$no_cache" != 1; then
7799 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7800 fi
7801
7802 if test "$wxUSE_DISPLAY" = yes; then
7803 echo "$as_me:$LINENO: result: yes" >&5
7804echo "${ECHO_T}yes" >&6
7805 else
7806 echo "$as_me:$LINENO: result: no" >&5
7807echo "${ECHO_T}no" >&6
7808 fi
7809
7810
7811 enablestring=
7812 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7813echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7814 no_cache=0
7815 # Check whether --enable-gauge or --disable-gauge was given.
7816if test "${enable_gauge+set}" = set; then
7817 enableval="$enable_gauge"
7818
7819 if test "$enableval" = yes; then
7820 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7821 else
7822 ac_cv_use_gauge='wxUSE_GAUGE=no'
7823 fi
7824
7825else
7826
7827 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7828 if test "x$LINE" != x ; then
7829 eval "DEFAULT_$LINE"
7830 else
7831 no_cache=1
7832 fi
7833
7834 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7835
7836fi;
7837
7838 eval "$ac_cv_use_gauge"
7839 if test "$no_cache" != 1; then
7840 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7841 fi
7842
7843 if test "$wxUSE_GAUGE" = yes; then
7844 echo "$as_me:$LINENO: result: yes" >&5
7845echo "${ECHO_T}yes" >&6
7846 else
7847 echo "$as_me:$LINENO: result: no" >&5
7848echo "${ECHO_T}no" >&6
7849 fi
7850
7851
7852 enablestring=
7853 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7854echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7855 no_cache=0
7856 # Check whether --enable-grid or --disable-grid was given.
7857if test "${enable_grid+set}" = set; then
7858 enableval="$enable_grid"
7859
7860 if test "$enableval" = yes; then
7861 ac_cv_use_grid='wxUSE_GRID=yes'
7862 else
7863 ac_cv_use_grid='wxUSE_GRID=no'
7864 fi
7865
7866else
7867
7868 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7869 if test "x$LINE" != x ; then
7870 eval "DEFAULT_$LINE"
7871 else
7872 no_cache=1
7873 fi
7874
7875 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7876
7877fi;
7878
7879 eval "$ac_cv_use_grid"
7880 if test "$no_cache" != 1; then
7881 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7882 fi
7883
7884 if test "$wxUSE_GRID" = yes; then
7885 echo "$as_me:$LINENO: result: yes" >&5
7886echo "${ECHO_T}yes" >&6
7887 else
7888 echo "$as_me:$LINENO: result: no" >&5
7889echo "${ECHO_T}no" >&6
7890 fi
7891
7892
7893 enablestring=
7894 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7895echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7896 no_cache=0
7897 # Check whether --enable-imaglist or --disable-imaglist was given.
7898if test "${enable_imaglist+set}" = set; then
7899 enableval="$enable_imaglist"
7900
7901 if test "$enableval" = yes; then
7902 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7903 else
7904 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7905 fi
7906
7907else
7908
7909 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7910 if test "x$LINE" != x ; then
7911 eval "DEFAULT_$LINE"
7912 else
7913 no_cache=1
7914 fi
7915
7916 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7917
7918fi;
7919
7920 eval "$ac_cv_use_imaglist"
7921 if test "$no_cache" != 1; then
7922 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7923 fi
7924
7925 if test "$wxUSE_IMAGLIST" = yes; then
7926 echo "$as_me:$LINENO: result: yes" >&5
7927echo "${ECHO_T}yes" >&6
7928 else
7929 echo "$as_me:$LINENO: result: no" >&5
7930echo "${ECHO_T}no" >&6
7931 fi
7932
7933
7934 enablestring=
7935 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7936echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7937 no_cache=0
7938 # Check whether --enable-listbook or --disable-listbook was given.
7939if test "${enable_listbook+set}" = set; then
7940 enableval="$enable_listbook"
7941
7942 if test "$enableval" = yes; then
7943 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7944 else
7945 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7946 fi
7947
7948else
7949
7950 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7951 if test "x$LINE" != x ; then
7952 eval "DEFAULT_$LINE"
7953 else
7954 no_cache=1
7955 fi
7956
7957 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7958
7959fi;
7960
7961 eval "$ac_cv_use_listbook"
7962 if test "$no_cache" != 1; then
7963 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7964 fi
7965
7966 if test "$wxUSE_LISTBOOK" = yes; then
7967 echo "$as_me:$LINENO: result: yes" >&5
7968echo "${ECHO_T}yes" >&6
7969 else
7970 echo "$as_me:$LINENO: result: no" >&5
7971echo "${ECHO_T}no" >&6
7972 fi
7973
7974
7975 enablestring=
7976 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7977echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7978 no_cache=0
7979 # Check whether --enable-listbox or --disable-listbox was given.
7980if test "${enable_listbox+set}" = set; then
7981 enableval="$enable_listbox"
7982
7983 if test "$enableval" = yes; then
7984 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7985 else
7986 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7987 fi
7988
7989else
7990
7991 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7992 if test "x$LINE" != x ; then
7993 eval "DEFAULT_$LINE"
7994 else
7995 no_cache=1
7996 fi
7997
7998 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7999
8000fi;
8001
8002 eval "$ac_cv_use_listbox"
8003 if test "$no_cache" != 1; then
8004 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8005 fi
8006
8007 if test "$wxUSE_LISTBOX" = yes; then
8008 echo "$as_me:$LINENO: result: yes" >&5
8009echo "${ECHO_T}yes" >&6
8010 else
8011 echo "$as_me:$LINENO: result: no" >&5
8012echo "${ECHO_T}no" >&6
8013 fi
8014
8015
8016 enablestring=
8017 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8018echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8019 no_cache=0
8020 # Check whether --enable-listctrl or --disable-listctrl was given.
8021if test "${enable_listctrl+set}" = set; then
8022 enableval="$enable_listctrl"
8023
8024 if test "$enableval" = yes; then
8025 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8026 else
8027 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8028 fi
8029
8030else
8031
8032 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8033 if test "x$LINE" != x ; then
8034 eval "DEFAULT_$LINE"
8035 else
8036 no_cache=1
8037 fi
8038
8039 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8040
8041fi;
8042
8043 eval "$ac_cv_use_listctrl"
8044 if test "$no_cache" != 1; then
8045 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8046 fi
8047
8048 if test "$wxUSE_LISTCTRL" = yes; then
8049 echo "$as_me:$LINENO: result: yes" >&5
8050echo "${ECHO_T}yes" >&6
8051 else
8052 echo "$as_me:$LINENO: result: no" >&5
8053echo "${ECHO_T}no" >&6
8054 fi
8055
8056
8057 enablestring=
8058 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8059echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8060 no_cache=0
8061 # Check whether --enable-notebook or --disable-notebook was given.
8062if test "${enable_notebook+set}" = set; then
8063 enableval="$enable_notebook"
8064
8065 if test "$enableval" = yes; then
8066 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8067 else
8068 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8069 fi
8070
8071else
8072
8073 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8074 if test "x$LINE" != x ; then
8075 eval "DEFAULT_$LINE"
8076 else
8077 no_cache=1
8078 fi
8079
8080 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8081
8082fi;
8083
8084 eval "$ac_cv_use_notebook"
8085 if test "$no_cache" != 1; then
8086 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8087 fi
8088
8089 if test "$wxUSE_NOTEBOOK" = yes; then
8090 echo "$as_me:$LINENO: result: yes" >&5
8091echo "${ECHO_T}yes" >&6
8092 else
8093 echo "$as_me:$LINENO: result: no" >&5
8094echo "${ECHO_T}no" >&6
8095 fi
8096
8097
8098 enablestring=
8099 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8100echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8101 no_cache=0
8102 # Check whether --enable-radiobox or --disable-radiobox was given.
8103if test "${enable_radiobox+set}" = set; then
8104 enableval="$enable_radiobox"
8105
8106 if test "$enableval" = yes; then
8107 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8108 else
8109 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8110 fi
8111
8112else
8113
8114 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8115 if test "x$LINE" != x ; then
8116 eval "DEFAULT_$LINE"
8117 else
8118 no_cache=1
8119 fi
8120
8121 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8122
8123fi;
8124
8125 eval "$ac_cv_use_radiobox"
8126 if test "$no_cache" != 1; then
8127 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8128 fi
8129
8130 if test "$wxUSE_RADIOBOX" = yes; then
8131 echo "$as_me:$LINENO: result: yes" >&5
8132echo "${ECHO_T}yes" >&6
8133 else
8134 echo "$as_me:$LINENO: result: no" >&5
8135echo "${ECHO_T}no" >&6
8136 fi
8137
8138
8139 enablestring=
8140 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8141echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8142 no_cache=0
8143 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8144if test "${enable_radiobtn+set}" = set; then
8145 enableval="$enable_radiobtn"
8146
8147 if test "$enableval" = yes; then
8148 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8149 else
8150 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8151 fi
8152
8153else
8154
8155 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8156 if test "x$LINE" != x ; then
8157 eval "DEFAULT_$LINE"
8158 else
8159 no_cache=1
8160 fi
8161
8162 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8163
8164fi;
8165
8166 eval "$ac_cv_use_radiobtn"
8167 if test "$no_cache" != 1; then
8168 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8169 fi
8170
8171 if test "$wxUSE_RADIOBTN" = yes; then
8172 echo "$as_me:$LINENO: result: yes" >&5
8173echo "${ECHO_T}yes" >&6
8174 else
8175 echo "$as_me:$LINENO: result: no" >&5
8176echo "${ECHO_T}no" >&6
8177 fi
8178
8179
8180 enablestring=
8181 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8182echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8183 no_cache=0
8184 # Check whether --enable-sash or --disable-sash was given.
8185if test "${enable_sash+set}" = set; then
8186 enableval="$enable_sash"
8187
8188 if test "$enableval" = yes; then
8189 ac_cv_use_sash='wxUSE_SASH=yes'
8190 else
8191 ac_cv_use_sash='wxUSE_SASH=no'
8192 fi
8193
8194else
8195
8196 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8197 if test "x$LINE" != x ; then
8198 eval "DEFAULT_$LINE"
8199 else
8200 no_cache=1
8201 fi
8202
8203 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8204
8205fi;
8206
8207 eval "$ac_cv_use_sash"
8208 if test "$no_cache" != 1; then
8209 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8210 fi
8211
8212 if test "$wxUSE_SASH" = yes; then
8213 echo "$as_me:$LINENO: result: yes" >&5
8214echo "${ECHO_T}yes" >&6
8215 else
8216 echo "$as_me:$LINENO: result: no" >&5
8217echo "${ECHO_T}no" >&6
8218 fi
8219
8220
8221 enablestring=
8222 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8223echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8224 no_cache=0
8225 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8226if test "${enable_scrollbar+set}" = set; then
8227 enableval="$enable_scrollbar"
8228
8229 if test "$enableval" = yes; then
8230 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8231 else
8232 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8233 fi
8234
8235else
8236
8237 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8238 if test "x$LINE" != x ; then
8239 eval "DEFAULT_$LINE"
8240 else
8241 no_cache=1
8242 fi
8243
8244 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8245
8246fi;
8247
8248 eval "$ac_cv_use_scrollbar"
8249 if test "$no_cache" != 1; then
8250 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8251 fi
8252
8253 if test "$wxUSE_SCROLLBAR" = yes; then
8254 echo "$as_me:$LINENO: result: yes" >&5
8255echo "${ECHO_T}yes" >&6
8256 else
8257 echo "$as_me:$LINENO: result: no" >&5
8258echo "${ECHO_T}no" >&6
8259 fi
8260
8261
8262 enablestring=
8263 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8264echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8265 no_cache=0
8266 # Check whether --enable-slider or --disable-slider was given.
8267if test "${enable_slider+set}" = set; then
8268 enableval="$enable_slider"
8269
8270 if test "$enableval" = yes; then
8271 ac_cv_use_slider='wxUSE_SLIDER=yes'
8272 else
8273 ac_cv_use_slider='wxUSE_SLIDER=no'
8274 fi
8275
8276else
8277
8278 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8279 if test "x$LINE" != x ; then
8280 eval "DEFAULT_$LINE"
8281 else
8282 no_cache=1
8283 fi
8284
8285 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8286
8287fi;
8288
8289 eval "$ac_cv_use_slider"
8290 if test "$no_cache" != 1; then
8291 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8292 fi
8293
8294 if test "$wxUSE_SLIDER" = yes; then
8295 echo "$as_me:$LINENO: result: yes" >&5
8296echo "${ECHO_T}yes" >&6
8297 else
8298 echo "$as_me:$LINENO: result: no" >&5
8299echo "${ECHO_T}no" >&6
8300 fi
8301
8302
8303 enablestring=
8304 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8305echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8306 no_cache=0
8307 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8308if test "${enable_spinbtn+set}" = set; then
8309 enableval="$enable_spinbtn"
8310
8311 if test "$enableval" = yes; then
8312 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8313 else
8314 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8315 fi
8316
8317else
8318
8319 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8320 if test "x$LINE" != x ; then
8321 eval "DEFAULT_$LINE"
8322 else
8323 no_cache=1
8324 fi
8325
8326 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8327
8328fi;
8329
8330 eval "$ac_cv_use_spinbtn"
8331 if test "$no_cache" != 1; then
8332 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8333 fi
8334
8335 if test "$wxUSE_SPINBTN" = yes; then
8336 echo "$as_me:$LINENO: result: yes" >&5
8337echo "${ECHO_T}yes" >&6
8338 else
8339 echo "$as_me:$LINENO: result: no" >&5
8340echo "${ECHO_T}no" >&6
8341 fi
8342
8343
8344 enablestring=
8345 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8346echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8347 no_cache=0
8348 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8349if test "${enable_spinctrl+set}" = set; then
8350 enableval="$enable_spinctrl"
8351
8352 if test "$enableval" = yes; then
8353 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8354 else
8355 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8356 fi
8357
8358else
8359
8360 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8361 if test "x$LINE" != x ; then
8362 eval "DEFAULT_$LINE"
8363 else
8364 no_cache=1
8365 fi
8366
8367 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8368
8369fi;
8370
8371 eval "$ac_cv_use_spinctrl"
8372 if test "$no_cache" != 1; then
8373 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8374 fi
8375
8376 if test "$wxUSE_SPINCTRL" = yes; then
8377 echo "$as_me:$LINENO: result: yes" >&5
8378echo "${ECHO_T}yes" >&6
8379 else
8380 echo "$as_me:$LINENO: result: no" >&5
8381echo "${ECHO_T}no" >&6
8382 fi
8383
8384
8385 enablestring=
8386 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8387echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8388 no_cache=0
8389 # Check whether --enable-splitter or --disable-splitter was given.
8390if test "${enable_splitter+set}" = set; then
8391 enableval="$enable_splitter"
8392
8393 if test "$enableval" = yes; then
8394 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8395 else
8396 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8397 fi
8398
8399else
8400
8401 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8402 if test "x$LINE" != x ; then
8403 eval "DEFAULT_$LINE"
8404 else
8405 no_cache=1
8406 fi
8407
8408 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8409
8410fi;
8411
8412 eval "$ac_cv_use_splitter"
8413 if test "$no_cache" != 1; then
8414 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8415 fi
8416
8417 if test "$wxUSE_SPLITTER" = yes; then
8418 echo "$as_me:$LINENO: result: yes" >&5
8419echo "${ECHO_T}yes" >&6
8420 else
8421 echo "$as_me:$LINENO: result: no" >&5
8422echo "${ECHO_T}no" >&6
8423 fi
8424
8425
8426 enablestring=
8427 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8428echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8429 no_cache=0
8430 # Check whether --enable-statbmp or --disable-statbmp was given.
8431if test "${enable_statbmp+set}" = set; then
8432 enableval="$enable_statbmp"
8433
8434 if test "$enableval" = yes; then
8435 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8436 else
8437 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8438 fi
8439
8440else
8441
8442 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8443 if test "x$LINE" != x ; then
8444 eval "DEFAULT_$LINE"
8445 else
8446 no_cache=1
8447 fi
8448
8449 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8450
8451fi;
8452
8453 eval "$ac_cv_use_statbmp"
8454 if test "$no_cache" != 1; then
8455 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8456 fi
8457
8458 if test "$wxUSE_STATBMP" = yes; then
8459 echo "$as_me:$LINENO: result: yes" >&5
8460echo "${ECHO_T}yes" >&6
8461 else
8462 echo "$as_me:$LINENO: result: no" >&5
8463echo "${ECHO_T}no" >&6
8464 fi
8465
8466
8467 enablestring=
8468 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8469echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8470 no_cache=0
8471 # Check whether --enable-statbox or --disable-statbox was given.
8472if test "${enable_statbox+set}" = set; then
8473 enableval="$enable_statbox"
8474
8475 if test "$enableval" = yes; then
8476 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8477 else
8478 ac_cv_use_statbox='wxUSE_STATBOX=no'
8479 fi
8480
8481else
8482
8483 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8484 if test "x$LINE" != x ; then
8485 eval "DEFAULT_$LINE"
8486 else
8487 no_cache=1
8488 fi
8489
8490 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8491
8492fi;
8493
8494 eval "$ac_cv_use_statbox"
8495 if test "$no_cache" != 1; then
8496 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8497 fi
8498
8499 if test "$wxUSE_STATBOX" = yes; then
8500 echo "$as_me:$LINENO: result: yes" >&5
8501echo "${ECHO_T}yes" >&6
8502 else
8503 echo "$as_me:$LINENO: result: no" >&5
8504echo "${ECHO_T}no" >&6
8505 fi
8506
8507
8508 enablestring=
8509 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8510echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8511 no_cache=0
8512 # Check whether --enable-statline or --disable-statline was given.
8513if test "${enable_statline+set}" = set; then
8514 enableval="$enable_statline"
8515
8516 if test "$enableval" = yes; then
8517 ac_cv_use_statline='wxUSE_STATLINE=yes'
8518 else
8519 ac_cv_use_statline='wxUSE_STATLINE=no'
8520 fi
8521
8522else
8523
8524 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8525 if test "x$LINE" != x ; then
8526 eval "DEFAULT_$LINE"
8527 else
8528 no_cache=1
8529 fi
8530
8531 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8532
8533fi;
8534
8535 eval "$ac_cv_use_statline"
8536 if test "$no_cache" != 1; then
8537 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8538 fi
8539
8540 if test "$wxUSE_STATLINE" = yes; then
8541 echo "$as_me:$LINENO: result: yes" >&5
8542echo "${ECHO_T}yes" >&6
8543 else
8544 echo "$as_me:$LINENO: result: no" >&5
8545echo "${ECHO_T}no" >&6
8546 fi
8547
8548
8549 enablestring=
8550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8551echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8552 no_cache=0
8553 # Check whether --enable-stattext or --disable-stattext was given.
8554if test "${enable_stattext+set}" = set; then
8555 enableval="$enable_stattext"
8556
8557 if test "$enableval" = yes; then
8558 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8559 else
8560 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8561 fi
8562
8563else
8564
8565 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8566 if test "x$LINE" != x ; then
8567 eval "DEFAULT_$LINE"
8568 else
8569 no_cache=1
8570 fi
8571
8572 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8573
8574fi;
8575
8576 eval "$ac_cv_use_stattext"
8577 if test "$no_cache" != 1; then
8578 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8579 fi
8580
8581 if test "$wxUSE_STATTEXT" = yes; then
8582 echo "$as_me:$LINENO: result: yes" >&5
8583echo "${ECHO_T}yes" >&6
8584 else
8585 echo "$as_me:$LINENO: result: no" >&5
8586echo "${ECHO_T}no" >&6
8587 fi
8588
8589
8590 enablestring=
8591 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8592echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8593 no_cache=0
8594 # Check whether --enable-statusbar or --disable-statusbar was given.
8595if test "${enable_statusbar+set}" = set; then
8596 enableval="$enable_statusbar"
8597
8598 if test "$enableval" = yes; then
8599 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8600 else
8601 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8602 fi
8603
8604else
8605
8606 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8607 if test "x$LINE" != x ; then
8608 eval "DEFAULT_$LINE"
8609 else
8610 no_cache=1
8611 fi
8612
8613 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8614
8615fi;
8616
8617 eval "$ac_cv_use_statusbar"
8618 if test "$no_cache" != 1; then
8619 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8620 fi
8621
8622 if test "$wxUSE_STATUSBAR" = yes; then
8623 echo "$as_me:$LINENO: result: yes" >&5
8624echo "${ECHO_T}yes" >&6
8625 else
8626 echo "$as_me:$LINENO: result: no" >&5
8627echo "${ECHO_T}no" >&6
8628 fi
8629
8630
8631 enablestring=
8632 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8633echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8634 no_cache=0
8635 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8636if test "${enable_tabdialog+set}" = set; then
8637 enableval="$enable_tabdialog"
8638
8639 if test "$enableval" = yes; then
8640 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8641 else
8642 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8643 fi
8644
8645else
8646
8647 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8648 if test "x$LINE" != x ; then
8649 eval "DEFAULT_$LINE"
8650 else
8651 no_cache=1
8652 fi
8653
8654 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8655
8656fi;
8657
8658 eval "$ac_cv_use_tabdialog"
8659 if test "$no_cache" != 1; then
8660 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8661 fi
8662
8663 if test "$wxUSE_TABDIALOG" = yes; then
8664 echo "$as_me:$LINENO: result: yes" >&5
8665echo "${ECHO_T}yes" >&6
8666 else
8667 echo "$as_me:$LINENO: result: no" >&5
8668echo "${ECHO_T}no" >&6
8669 fi
8670
8671
8672 enablestring=
8673 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8674echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8675 no_cache=0
8676 # Check whether --enable-textctrl or --disable-textctrl was given.
8677if test "${enable_textctrl+set}" = set; then
8678 enableval="$enable_textctrl"
8679
8680 if test "$enableval" = yes; then
8681 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8682 else
8683 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8684 fi
8685
8686else
8687
8688 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8689 if test "x$LINE" != x ; then
8690 eval "DEFAULT_$LINE"
8691 else
8692 no_cache=1
8693 fi
8694
8695 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8696
8697fi;
8698
8699 eval "$ac_cv_use_textctrl"
8700 if test "$no_cache" != 1; then
8701 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8702 fi
8703
8704 if test "$wxUSE_TEXTCTRL" = yes; then
8705 echo "$as_me:$LINENO: result: yes" >&5
8706echo "${ECHO_T}yes" >&6
8707 else
8708 echo "$as_me:$LINENO: result: no" >&5
8709echo "${ECHO_T}no" >&6
8710 fi
8711
8712
8713 enablestring=
8714 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8715echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8716 no_cache=0
8717 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8718if test "${enable_togglebtn+set}" = set; then
8719 enableval="$enable_togglebtn"
8720
8721 if test "$enableval" = yes; then
8722 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8723 else
8724 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8725 fi
8726
8727else
8728
8729 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8730 if test "x$LINE" != x ; then
8731 eval "DEFAULT_$LINE"
8732 else
8733 no_cache=1
8734 fi
8735
8736 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8737
8738fi;
8739
8740 eval "$ac_cv_use_togglebtn"
8741 if test "$no_cache" != 1; then
8742 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8743 fi
8744
8745 if test "$wxUSE_TOGGLEBTN" = yes; then
8746 echo "$as_me:$LINENO: result: yes" >&5
8747echo "${ECHO_T}yes" >&6
8748 else
8749 echo "$as_me:$LINENO: result: no" >&5
8750echo "${ECHO_T}no" >&6
8751 fi
8752
8753
8754 enablestring=
8755 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8756echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8757 no_cache=0
8758 # Check whether --enable-toolbar or --disable-toolbar was given.
8759if test "${enable_toolbar+set}" = set; then
8760 enableval="$enable_toolbar"
8761
8762 if test "$enableval" = yes; then
8763 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8764 else
8765 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8766 fi
8767
8768else
8769
8770 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8771 if test "x$LINE" != x ; then
8772 eval "DEFAULT_$LINE"
8773 else
8774 no_cache=1
8775 fi
8776
8777 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8778
8779fi;
8780
8781 eval "$ac_cv_use_toolbar"
8782 if test "$no_cache" != 1; then
8783 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8784 fi
8785
8786 if test "$wxUSE_TOOLBAR" = yes; then
8787 echo "$as_me:$LINENO: result: yes" >&5
8788echo "${ECHO_T}yes" >&6
8789 else
8790 echo "$as_me:$LINENO: result: no" >&5
8791echo "${ECHO_T}no" >&6
8792 fi
8793
8794
8795 enablestring=
8796 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8797echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8798 no_cache=0
8799 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8800if test "${enable_tbarnative+set}" = set; then
8801 enableval="$enable_tbarnative"
8802
8803 if test "$enableval" = yes; then
8804 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8805 else
8806 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8807 fi
8808
8809else
8810
8811 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8812 if test "x$LINE" != x ; then
8813 eval "DEFAULT_$LINE"
8814 else
8815 no_cache=1
8816 fi
8817
8818 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8819
8820fi;
8821
8822 eval "$ac_cv_use_tbarnative"
8823 if test "$no_cache" != 1; then
8824 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8825 fi
8826
8827 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8828 echo "$as_me:$LINENO: result: yes" >&5
8829echo "${ECHO_T}yes" >&6
8830 else
8831 echo "$as_me:$LINENO: result: no" >&5
8832echo "${ECHO_T}no" >&6
8833 fi
8834
8835
8836 enablestring=
8837 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8838echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8839 no_cache=0
8840 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8841if test "${enable_tbarsmpl+set}" = set; then
8842 enableval="$enable_tbarsmpl"
8843
8844 if test "$enableval" = yes; then
8845 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8846 else
8847 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8848 fi
8849
8850else
8851
8852 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8853 if test "x$LINE" != x ; then
8854 eval "DEFAULT_$LINE"
8855 else
8856 no_cache=1
8857 fi
8858
8859 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8860
8861fi;
8862
8863 eval "$ac_cv_use_tbarsmpl"
8864 if test "$no_cache" != 1; then
8865 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8866 fi
8867
8868 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8869 echo "$as_me:$LINENO: result: yes" >&5
8870echo "${ECHO_T}yes" >&6
8871 else
8872 echo "$as_me:$LINENO: result: no" >&5
8873echo "${ECHO_T}no" >&6
8874 fi
8875
8876
8877 enablestring=
8878 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8879echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8880 no_cache=0
8881 # Check whether --enable-treectrl or --disable-treectrl was given.
8882if test "${enable_treectrl+set}" = set; then
8883 enableval="$enable_treectrl"
8884
8885 if test "$enableval" = yes; then
8886 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8887 else
8888 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8889 fi
8890
8891else
8892
8893 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8894 if test "x$LINE" != x ; then
8895 eval "DEFAULT_$LINE"
8896 else
8897 no_cache=1
8898 fi
8899
8900 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8901
8902fi;
8903
8904 eval "$ac_cv_use_treectrl"
8905 if test "$no_cache" != 1; then
8906 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8907 fi
8908
8909 if test "$wxUSE_TREECTRL" = yes; then
8910 echo "$as_me:$LINENO: result: yes" >&5
8911echo "${ECHO_T}yes" >&6
8912 else
8913 echo "$as_me:$LINENO: result: no" >&5
8914echo "${ECHO_T}no" >&6
8915 fi
8916
8917
8918 enablestring=
8919 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8920echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8921 no_cache=0
8922 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8923if test "${enable_tipwindow+set}" = set; then
8924 enableval="$enable_tipwindow"
8925
8926 if test "$enableval" = yes; then
8927 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8928 else
8929 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8930 fi
8931
8932else
8933
8934 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8935 if test "x$LINE" != x ; then
8936 eval "DEFAULT_$LINE"
8937 else
8938 no_cache=1
8939 fi
8940
8941 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8942
8943fi;
8944
8945 eval "$ac_cv_use_tipwindow"
8946 if test "$no_cache" != 1; then
8947 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8948 fi
8949
8950 if test "$wxUSE_TIPWINDOW" = yes; then
8951 echo "$as_me:$LINENO: result: yes" >&5
8952echo "${ECHO_T}yes" >&6
8953 else
8954 echo "$as_me:$LINENO: result: no" >&5
8955echo "${ECHO_T}no" >&6
8956 fi
8957
8958
8959 enablestring=
8960 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8961echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8962 no_cache=0
8963 # Check whether --enable-popupwin or --disable-popupwin was given.
8964if test "${enable_popupwin+set}" = set; then
8965 enableval="$enable_popupwin"
8966
8967 if test "$enableval" = yes; then
8968 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8969 else
8970 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8971 fi
8972
8973else
8974
8975 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8976 if test "x$LINE" != x ; then
8977 eval "DEFAULT_$LINE"
8978 else
8979 no_cache=1
8980 fi
8981
8982 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8983
8984fi;
8985
8986 eval "$ac_cv_use_popupwin"
8987 if test "$no_cache" != 1; then
8988 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8989 fi
8990
8991 if test "$wxUSE_POPUPWIN" = yes; then
8992 echo "$as_me:$LINENO: result: yes" >&5
8993echo "${ECHO_T}yes" >&6
8994 else
8995 echo "$as_me:$LINENO: result: no" >&5
8996echo "${ECHO_T}no" >&6
8997 fi
8998
8999
9000
9001
9002 enablestring=
9003 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9004echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9005 no_cache=0
9006 # Check whether --enable-commondlg or --disable-commondlg was given.
9007if test "${enable_commondlg+set}" = set; then
9008 enableval="$enable_commondlg"
9009
9010 if test "$enableval" = yes; then
9011 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9012 else
9013 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9014 fi
9015
9016else
9017
9018 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9019 if test "x$LINE" != x ; then
9020 eval "DEFAULT_$LINE"
9021 else
9022 no_cache=1
9023 fi
9024
9025 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9026
9027fi;
9028
9029 eval "$ac_cv_use_commondlg"
9030 if test "$no_cache" != 1; then
9031 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9032 fi
9033
9034 if test "$wxUSE_COMMONDLGS" = yes; then
9035 echo "$as_me:$LINENO: result: yes" >&5
9036echo "${ECHO_T}yes" >&6
9037 else
9038 echo "$as_me:$LINENO: result: no" >&5
9039echo "${ECHO_T}no" >&6
9040 fi
9041
9042
9043 enablestring=
9044 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9045echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9046 no_cache=0
9047 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9048if test "${enable_choicedlg+set}" = set; then
9049 enableval="$enable_choicedlg"
9050
9051 if test "$enableval" = yes; then
9052 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9053 else
9054 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9055 fi
9056
9057else
9058
9059 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9060 if test "x$LINE" != x ; then
9061 eval "DEFAULT_$LINE"
9062 else
9063 no_cache=1
9064 fi
9065
9066 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9067
9068fi;
9069
9070 eval "$ac_cv_use_choicedlg"
9071 if test "$no_cache" != 1; then
9072 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9073 fi
9074
9075 if test "$wxUSE_CHOICEDLG" = yes; then
9076 echo "$as_me:$LINENO: result: yes" >&5
9077echo "${ECHO_T}yes" >&6
9078 else
9079 echo "$as_me:$LINENO: result: no" >&5
9080echo "${ECHO_T}no" >&6
9081 fi
9082
9083
9084 enablestring=
9085 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9086echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9087 no_cache=0
9088 # Check whether --enable-coldlg or --disable-coldlg was given.
9089if test "${enable_coldlg+set}" = set; then
9090 enableval="$enable_coldlg"
9091
9092 if test "$enableval" = yes; then
9093 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9094 else
9095 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9096 fi
9097
9098else
9099
9100 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9101 if test "x$LINE" != x ; then
9102 eval "DEFAULT_$LINE"
9103 else
9104 no_cache=1
9105 fi
9106
9107 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9108
9109fi;
9110
9111 eval "$ac_cv_use_coldlg"
9112 if test "$no_cache" != 1; then
9113 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9114 fi
9115
9116 if test "$wxUSE_COLOURDLG" = yes; then
9117 echo "$as_me:$LINENO: result: yes" >&5
9118echo "${ECHO_T}yes" >&6
9119 else
9120 echo "$as_me:$LINENO: result: no" >&5
9121echo "${ECHO_T}no" >&6
9122 fi
9123
9124
9125 enablestring=
9126 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9127echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9128 no_cache=0
9129 # Check whether --enable-filedlg or --disable-filedlg was given.
9130if test "${enable_filedlg+set}" = set; then
9131 enableval="$enable_filedlg"
9132
9133 if test "$enableval" = yes; then
9134 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9135 else
9136 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9137 fi
9138
9139else
9140
9141 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9142 if test "x$LINE" != x ; then
9143 eval "DEFAULT_$LINE"
9144 else
9145 no_cache=1
9146 fi
9147
9148 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9149
9150fi;
9151
9152 eval "$ac_cv_use_filedlg"
9153 if test "$no_cache" != 1; then
9154 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9155 fi
9156
9157 if test "$wxUSE_FILEDLG" = yes; then
9158 echo "$as_me:$LINENO: result: yes" >&5
9159echo "${ECHO_T}yes" >&6
9160 else
9161 echo "$as_me:$LINENO: result: no" >&5
9162echo "${ECHO_T}no" >&6
9163 fi
9164
9165
9166 enablestring=
9167 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9168echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9169 no_cache=0
9170 # Check whether --enable-finddlg or --disable-finddlg was given.
9171if test "${enable_finddlg+set}" = set; then
9172 enableval="$enable_finddlg"
9173
9174 if test "$enableval" = yes; then
9175 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9176 else
9177 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9178 fi
9179
9180else
9181
9182 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9183 if test "x$LINE" != x ; then
9184 eval "DEFAULT_$LINE"
9185 else
9186 no_cache=1
9187 fi
9188
9189 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9190
9191fi;
9192
9193 eval "$ac_cv_use_finddlg"
9194 if test "$no_cache" != 1; then
9195 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9196 fi
9197
9198 if test "$wxUSE_FINDREPLDLG" = yes; then
9199 echo "$as_me:$LINENO: result: yes" >&5
9200echo "${ECHO_T}yes" >&6
9201 else
9202 echo "$as_me:$LINENO: result: no" >&5
9203echo "${ECHO_T}no" >&6
9204 fi
9205
9206
9207 enablestring=
9208 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9209echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9210 no_cache=0
9211 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9212if test "${enable_fontdlg+set}" = set; then
9213 enableval="$enable_fontdlg"
9214
9215 if test "$enableval" = yes; then
9216 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9217 else
9218 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9219 fi
9220
9221else
9222
9223 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9224 if test "x$LINE" != x ; then
9225 eval "DEFAULT_$LINE"
9226 else
9227 no_cache=1
9228 fi
9229
9230 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9231
9232fi;
9233
9234 eval "$ac_cv_use_fontdlg"
9235 if test "$no_cache" != 1; then
9236 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9237 fi
9238
9239 if test "$wxUSE_FONTDLG" = yes; then
9240 echo "$as_me:$LINENO: result: yes" >&5
9241echo "${ECHO_T}yes" >&6
9242 else
9243 echo "$as_me:$LINENO: result: no" >&5
9244echo "${ECHO_T}no" >&6
9245 fi
9246
9247
9248 enablestring=
9249 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9250echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9251 no_cache=0
9252 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9253if test "${enable_dirdlg+set}" = set; then
9254 enableval="$enable_dirdlg"
9255
9256 if test "$enableval" = yes; then
9257 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9258 else
9259 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9260 fi
9261
9262else
9263
9264 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9265 if test "x$LINE" != x ; then
9266 eval "DEFAULT_$LINE"
9267 else
9268 no_cache=1
9269 fi
9270
9271 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9272
9273fi;
9274
9275 eval "$ac_cv_use_dirdlg"
9276 if test "$no_cache" != 1; then
9277 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9278 fi
9279
9280 if test "$wxUSE_DIRDLG" = yes; then
9281 echo "$as_me:$LINENO: result: yes" >&5
9282echo "${ECHO_T}yes" >&6
9283 else
9284 echo "$as_me:$LINENO: result: no" >&5
9285echo "${ECHO_T}no" >&6
9286 fi
9287
9288
9289 enablestring=
9290 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9291echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9292 no_cache=0
9293 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9294if test "${enable_msgdlg+set}" = set; then
9295 enableval="$enable_msgdlg"
9296
9297 if test "$enableval" = yes; then
9298 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9299 else
9300 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9301 fi
9302
9303else
9304
9305 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9306 if test "x$LINE" != x ; then
9307 eval "DEFAULT_$LINE"
9308 else
9309 no_cache=1
9310 fi
9311
9312 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9313
9314fi;
9315
9316 eval "$ac_cv_use_msgdlg"
9317 if test "$no_cache" != 1; then
9318 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9319 fi
9320
9321 if test "$wxUSE_MSGDLG" = yes; then
9322 echo "$as_me:$LINENO: result: yes" >&5
9323echo "${ECHO_T}yes" >&6
9324 else
9325 echo "$as_me:$LINENO: result: no" >&5
9326echo "${ECHO_T}no" >&6
9327 fi
9328
9329
9330 enablestring=
9331 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9332echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9333 no_cache=0
9334 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9335if test "${enable_numberdlg+set}" = set; then
9336 enableval="$enable_numberdlg"
9337
9338 if test "$enableval" = yes; then
9339 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9340 else
9341 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9342 fi
9343
9344else
9345
9346 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9347 if test "x$LINE" != x ; then
9348 eval "DEFAULT_$LINE"
9349 else
9350 no_cache=1
9351 fi
9352
9353 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9354
9355fi;
9356
9357 eval "$ac_cv_use_numberdlg"
9358 if test "$no_cache" != 1; then
9359 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9360 fi
9361
9362 if test "$wxUSE_NUMBERDLG" = yes; then
9363 echo "$as_me:$LINENO: result: yes" >&5
9364echo "${ECHO_T}yes" >&6
9365 else
9366 echo "$as_me:$LINENO: result: no" >&5
9367echo "${ECHO_T}no" >&6
9368 fi
9369
9370
9371 enablestring=
9372 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9373echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9374 no_cache=0
9375 # Check whether --enable-splash or --disable-splash was given.
9376if test "${enable_splash+set}" = set; then
9377 enableval="$enable_splash"
9378
9379 if test "$enableval" = yes; then
9380 ac_cv_use_splash='wxUSE_SPLASH=yes'
9381 else
9382 ac_cv_use_splash='wxUSE_SPLASH=no'
9383 fi
9384
9385else
9386
9387 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9388 if test "x$LINE" != x ; then
9389 eval "DEFAULT_$LINE"
9390 else
9391 no_cache=1
9392 fi
9393
9394 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9395
9396fi;
9397
9398 eval "$ac_cv_use_splash"
9399 if test "$no_cache" != 1; then
9400 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9401 fi
9402
9403 if test "$wxUSE_SPLASH" = yes; then
9404 echo "$as_me:$LINENO: result: yes" >&5
9405echo "${ECHO_T}yes" >&6
9406 else
9407 echo "$as_me:$LINENO: result: no" >&5
9408echo "${ECHO_T}no" >&6
9409 fi
9410
9411
9412 enablestring=
9413 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9414echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9415 no_cache=0
9416 # Check whether --enable-textdlg or --disable-textdlg was given.
9417if test "${enable_textdlg+set}" = set; then
9418 enableval="$enable_textdlg"
9419
9420 if test "$enableval" = yes; then
9421 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9422 else
9423 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9424 fi
9425
9426else
9427
9428 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9429 if test "x$LINE" != x ; then
9430 eval "DEFAULT_$LINE"
9431 else
9432 no_cache=1
9433 fi
9434
9435 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9436
9437fi;
9438
9439 eval "$ac_cv_use_textdlg"
9440 if test "$no_cache" != 1; then
9441 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9442 fi
9443
9444 if test "$wxUSE_TEXTDLG" = yes; then
9445 echo "$as_me:$LINENO: result: yes" >&5
9446echo "${ECHO_T}yes" >&6
9447 else
9448 echo "$as_me:$LINENO: result: no" >&5
9449echo "${ECHO_T}no" >&6
9450 fi
9451
9452
9453 enablestring=
9454 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9455echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9456 no_cache=0
9457 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9458if test "${enable_tipdlg+set}" = set; then
9459 enableval="$enable_tipdlg"
9460
9461 if test "$enableval" = yes; then
9462 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9463 else
9464 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9465 fi
9466
9467else
9468
9469 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9470 if test "x$LINE" != x ; then
9471 eval "DEFAULT_$LINE"
9472 else
9473 no_cache=1
9474 fi
9475
9476 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9477
9478fi;
9479
9480 eval "$ac_cv_use_tipdlg"
9481 if test "$no_cache" != 1; then
9482 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9483 fi
9484
9485 if test "$wxUSE_STARTUP_TIPS" = yes; then
9486 echo "$as_me:$LINENO: result: yes" >&5
9487echo "${ECHO_T}yes" >&6
9488 else
9489 echo "$as_me:$LINENO: result: no" >&5
9490echo "${ECHO_T}no" >&6
9491 fi
9492
9493
9494 enablestring=
9495 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9496echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9497 no_cache=0
9498 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9499if test "${enable_progressdlg+set}" = set; then
9500 enableval="$enable_progressdlg"
9501
9502 if test "$enableval" = yes; then
9503 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9504 else
9505 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9506 fi
9507
9508else
9509
9510 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9511 if test "x$LINE" != x ; then
9512 eval "DEFAULT_$LINE"
9513 else
9514 no_cache=1
9515 fi
9516
9517 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9518
9519fi;
9520
9521 eval "$ac_cv_use_progressdlg"
9522 if test "$no_cache" != 1; then
9523 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9524 fi
9525
9526 if test "$wxUSE_PROGRESSDLG" = yes; then
9527 echo "$as_me:$LINENO: result: yes" >&5
9528echo "${ECHO_T}yes" >&6
9529 else
9530 echo "$as_me:$LINENO: result: no" >&5
9531echo "${ECHO_T}no" >&6
9532 fi
9533
9534
9535 enablestring=
9536 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9537echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9538 no_cache=0
9539 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9540if test "${enable_wizarddlg+set}" = set; then
9541 enableval="$enable_wizarddlg"
9542
9543 if test "$enableval" = yes; then
9544 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9545 else
9546 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9547 fi
9548
9549else
9550
9551 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9552 if test "x$LINE" != x ; then
9553 eval "DEFAULT_$LINE"
9554 else
9555 no_cache=1
9556 fi
9557
9558 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9559
9560fi;
9561
9562 eval "$ac_cv_use_wizarddlg"
9563 if test "$no_cache" != 1; then
9564 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9565 fi
9566
9567 if test "$wxUSE_WIZARDDLG" = yes; then
9568 echo "$as_me:$LINENO: result: yes" >&5
9569echo "${ECHO_T}yes" >&6
9570 else
9571 echo "$as_me:$LINENO: result: no" >&5
9572echo "${ECHO_T}no" >&6
9573 fi
9574
9575
9576
9577
9578 enablestring=
9579 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9580echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9581 no_cache=0
9582 # Check whether --enable-menus or --disable-menus was given.
9583if test "${enable_menus+set}" = set; then
9584 enableval="$enable_menus"
9585
9586 if test "$enableval" = yes; then
9587 ac_cv_use_menus='wxUSE_MENUS=yes'
9588 else
9589 ac_cv_use_menus='wxUSE_MENUS=no'
9590 fi
9591
9592else
9593
9594 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9595 if test "x$LINE" != x ; then
9596 eval "DEFAULT_$LINE"
9597 else
9598 no_cache=1
9599 fi
9600
9601 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9602
9603fi;
9604
9605 eval "$ac_cv_use_menus"
9606 if test "$no_cache" != 1; then
9607 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9608 fi
9609
9610 if test "$wxUSE_MENUS" = yes; then
9611 echo "$as_me:$LINENO: result: yes" >&5
9612echo "${ECHO_T}yes" >&6
9613 else
9614 echo "$as_me:$LINENO: result: no" >&5
9615echo "${ECHO_T}no" >&6
9616 fi
9617
9618
9619 enablestring=
9620 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9621echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9622 no_cache=0
9623 # Check whether --enable-miniframe or --disable-miniframe was given.
9624if test "${enable_miniframe+set}" = set; then
9625 enableval="$enable_miniframe"
9626
9627 if test "$enableval" = yes; then
9628 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9629 else
9630 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9631 fi
9632
9633else
9634
9635 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9636 if test "x$LINE" != x ; then
9637 eval "DEFAULT_$LINE"
9638 else
9639 no_cache=1
9640 fi
9641
9642 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9643
9644fi;
9645
9646 eval "$ac_cv_use_miniframe"
9647 if test "$no_cache" != 1; then
9648 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9649 fi
9650
9651 if test "$wxUSE_MINIFRAME" = yes; then
9652 echo "$as_me:$LINENO: result: yes" >&5
9653echo "${ECHO_T}yes" >&6
9654 else
9655 echo "$as_me:$LINENO: result: no" >&5
9656echo "${ECHO_T}no" >&6
9657 fi
9658
9659
9660 enablestring=
9661 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9662echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9663 no_cache=0
9664 # Check whether --enable-tooltips or --disable-tooltips was given.
9665if test "${enable_tooltips+set}" = set; then
9666 enableval="$enable_tooltips"
9667
9668 if test "$enableval" = yes; then
9669 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9670 else
9671 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9672 fi
9673
9674else
9675
9676 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9677 if test "x$LINE" != x ; then
9678 eval "DEFAULT_$LINE"
9679 else
9680 no_cache=1
9681 fi
9682
9683 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9684
9685fi;
9686
9687 eval "$ac_cv_use_tooltips"
9688 if test "$no_cache" != 1; then
9689 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9690 fi
9691
9692 if test "$wxUSE_TOOLTIPS" = yes; then
9693 echo "$as_me:$LINENO: result: yes" >&5
9694echo "${ECHO_T}yes" >&6
9695 else
9696 echo "$as_me:$LINENO: result: no" >&5
9697echo "${ECHO_T}no" >&6
9698 fi
9699
9700
9701 enablestring=
9702 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9703echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9704 no_cache=0
9705 # Check whether --enable-splines or --disable-splines was given.
9706if test "${enable_splines+set}" = set; then
9707 enableval="$enable_splines"
9708
9709 if test "$enableval" = yes; then
9710 ac_cv_use_splines='wxUSE_SPLINES=yes'
9711 else
9712 ac_cv_use_splines='wxUSE_SPLINES=no'
9713 fi
9714
9715else
9716
9717 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9718 if test "x$LINE" != x ; then
9719 eval "DEFAULT_$LINE"
9720 else
9721 no_cache=1
9722 fi
9723
9724 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9725
9726fi;
9727
9728 eval "$ac_cv_use_splines"
9729 if test "$no_cache" != 1; then
9730 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9731 fi
9732
9733 if test "$wxUSE_SPLINES" = yes; then
9734 echo "$as_me:$LINENO: result: yes" >&5
9735echo "${ECHO_T}yes" >&6
9736 else
9737 echo "$as_me:$LINENO: result: no" >&5
9738echo "${ECHO_T}no" >&6
9739 fi
9740
9741
9742 enablestring=
9743 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9744echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9745 no_cache=0
9746 # Check whether --enable-validators or --disable-validators was given.
9747if test "${enable_validators+set}" = set; then
9748 enableval="$enable_validators"
9749
9750 if test "$enableval" = yes; then
9751 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9752 else
9753 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9754 fi
9755
9756else
9757
9758 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9759 if test "x$LINE" != x ; then
9760 eval "DEFAULT_$LINE"
9761 else
9762 no_cache=1
9763 fi
9764
9765 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9766
9767fi;
9768
9769 eval "$ac_cv_use_validators"
9770 if test "$no_cache" != 1; then
9771 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9772 fi
9773
9774 if test "$wxUSE_VALIDATORS" = yes; then
9775 echo "$as_me:$LINENO: result: yes" >&5
9776echo "${ECHO_T}yes" >&6
9777 else
9778 echo "$as_me:$LINENO: result: no" >&5
9779echo "${ECHO_T}no" >&6
9780 fi
9781
9782
9783 enablestring=
9784 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9785echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9786 no_cache=0
9787 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9788if test "${enable_busyinfo+set}" = set; then
9789 enableval="$enable_busyinfo"
9790
9791 if test "$enableval" = yes; then
9792 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9793 else
9794 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9795 fi
9796
9797else
9798
9799 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9800 if test "x$LINE" != x ; then
9801 eval "DEFAULT_$LINE"
9802 else
9803 no_cache=1
9804 fi
9805
9806 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9807
9808fi;
9809
9810 eval "$ac_cv_use_busyinfo"
9811 if test "$no_cache" != 1; then
9812 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9813 fi
9814
9815 if test "$wxUSE_BUSYINFO" = yes; then
9816 echo "$as_me:$LINENO: result: yes" >&5
9817echo "${ECHO_T}yes" >&6
9818 else
9819 echo "$as_me:$LINENO: result: no" >&5
9820echo "${ECHO_T}no" >&6
9821 fi
9822
9823
9824 enablestring=
9825 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9826echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9827 no_cache=0
9828 # Check whether --enable-joystick or --disable-joystick was given.
9829if test "${enable_joystick+set}" = set; then
9830 enableval="$enable_joystick"
9831
9832 if test "$enableval" = yes; then
9833 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9834 else
9835 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9836 fi
9837
9838else
9839
9840 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9841 if test "x$LINE" != x ; then
9842 eval "DEFAULT_$LINE"
9843 else
9844 no_cache=1
9845 fi
9846
9847 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9848
9849fi;
9850
9851 eval "$ac_cv_use_joystick"
9852 if test "$no_cache" != 1; then
9853 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9854 fi
9855
9856 if test "$wxUSE_JOYSTICK" = yes; then
9857 echo "$as_me:$LINENO: result: yes" >&5
9858echo "${ECHO_T}yes" >&6
9859 else
9860 echo "$as_me:$LINENO: result: no" >&5
9861echo "${ECHO_T}no" >&6
9862 fi
9863
9864
9865 enablestring=
9866 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9867echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9868 no_cache=0
9869 # Check whether --enable-metafile or --disable-metafile was given.
9870if test "${enable_metafile+set}" = set; then
9871 enableval="$enable_metafile"
9872
9873 if test "$enableval" = yes; then
9874 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9875 else
9876 ac_cv_use_metafile='wxUSE_METAFILE=no'
9877 fi
9878
9879else
9880
9881 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9882 if test "x$LINE" != x ; then
9883 eval "DEFAULT_$LINE"
9884 else
9885 no_cache=1
9886 fi
9887
9888 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9889
9890fi;
9891
9892 eval "$ac_cv_use_metafile"
9893 if test "$no_cache" != 1; then
9894 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9895 fi
9896
9897 if test "$wxUSE_METAFILE" = yes; then
9898 echo "$as_me:$LINENO: result: yes" >&5
9899echo "${ECHO_T}yes" >&6
9900 else
9901 echo "$as_me:$LINENO: result: no" >&5
9902echo "${ECHO_T}no" >&6
9903 fi
9904
9905
9906 enablestring=
9907 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9908echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9909 no_cache=0
9910 # Check whether --enable-dragimage or --disable-dragimage was given.
9911if test "${enable_dragimage+set}" = set; then
9912 enableval="$enable_dragimage"
9913
9914 if test "$enableval" = yes; then
9915 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9916 else
9917 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9918 fi
9919
9920else
9921
9922 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9923 if test "x$LINE" != x ; then
9924 eval "DEFAULT_$LINE"
9925 else
9926 no_cache=1
9927 fi
9928
9929 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9930
9931fi;
9932
9933 eval "$ac_cv_use_dragimage"
9934 if test "$no_cache" != 1; then
9935 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9936 fi
9937
9938 if test "$wxUSE_DRAGIMAGE" = yes; then
9939 echo "$as_me:$LINENO: result: yes" >&5
9940echo "${ECHO_T}yes" >&6
9941 else
9942 echo "$as_me:$LINENO: result: no" >&5
9943echo "${ECHO_T}no" >&6
9944 fi
9945
9946
9947 enablestring=
9948 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9949echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9950 no_cache=0
9951 # Check whether --enable-accessibility or --disable-accessibility was given.
9952if test "${enable_accessibility+set}" = set; then
9953 enableval="$enable_accessibility"
9954
9955 if test "$enableval" = yes; then
9956 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9957 else
9958 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9959 fi
9960
9961else
9962
9963 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9964 if test "x$LINE" != x ; then
9965 eval "DEFAULT_$LINE"
9966 else
9967 no_cache=1
9968 fi
9969
9970 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9971
9972fi;
9973
9974 eval "$ac_cv_use_accessibility"
9975 if test "$no_cache" != 1; then
9976 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9977 fi
9978
9979 if test "$wxUSE_ACCESSIBILITY" = yes; then
9980 echo "$as_me:$LINENO: result: yes" >&5
9981echo "${ECHO_T}yes" >&6
9982 else
9983 echo "$as_me:$LINENO: result: no" >&5
9984echo "${ECHO_T}no" >&6
9985 fi
9986
9987
9988
9989
9990 enablestring=
9991 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9992echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9993 no_cache=0
9994 # Check whether --enable-palette or --disable-palette was given.
9995if test "${enable_palette+set}" = set; then
9996 enableval="$enable_palette"
9997
9998 if test "$enableval" = yes; then
9999 ac_cv_use_palette='wxUSE_PALETTE=yes'
10000 else
10001 ac_cv_use_palette='wxUSE_PALETTE=no'
10002 fi
10003
10004else
10005
10006 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10007 if test "x$LINE" != x ; then
10008 eval "DEFAULT_$LINE"
10009 else
10010 no_cache=1
10011 fi
10012
10013 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10014
10015fi;
10016
10017 eval "$ac_cv_use_palette"
10018 if test "$no_cache" != 1; then
10019 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10020 fi
10021
10022 if test "$wxUSE_PALETTE" = yes; then
10023 echo "$as_me:$LINENO: result: yes" >&5
10024echo "${ECHO_T}yes" >&6
10025 else
10026 echo "$as_me:$LINENO: result: no" >&5
10027echo "${ECHO_T}no" >&6
10028 fi
10029
10030
10031 enablestring=
10032 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10033echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10034 no_cache=0
10035 # Check whether --enable-image or --disable-image was given.
10036if test "${enable_image+set}" = set; then
10037 enableval="$enable_image"
10038
10039 if test "$enableval" = yes; then
10040 ac_cv_use_image='wxUSE_IMAGE=yes'
10041 else
10042 ac_cv_use_image='wxUSE_IMAGE=no'
10043 fi
10044
10045else
10046
10047 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10048 if test "x$LINE" != x ; then
10049 eval "DEFAULT_$LINE"
10050 else
10051 no_cache=1
10052 fi
10053
10054 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10055
10056fi;
10057
10058 eval "$ac_cv_use_image"
10059 if test "$no_cache" != 1; then
10060 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10061 fi
10062
10063 if test "$wxUSE_IMAGE" = yes; then
10064 echo "$as_me:$LINENO: result: yes" >&5
10065echo "${ECHO_T}yes" >&6
10066 else
10067 echo "$as_me:$LINENO: result: no" >&5
10068echo "${ECHO_T}no" >&6
10069 fi
10070
10071
10072 enablestring=
10073 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10074echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10075 no_cache=0
10076 # Check whether --enable-gif or --disable-gif was given.
10077if test "${enable_gif+set}" = set; then
10078 enableval="$enable_gif"
10079
10080 if test "$enableval" = yes; then
10081 ac_cv_use_gif='wxUSE_GIF=yes'
10082 else
10083 ac_cv_use_gif='wxUSE_GIF=no'
10084 fi
10085
10086else
10087
10088 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10089 if test "x$LINE" != x ; then
10090 eval "DEFAULT_$LINE"
10091 else
10092 no_cache=1
10093 fi
10094
10095 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10096
10097fi;
10098
10099 eval "$ac_cv_use_gif"
10100 if test "$no_cache" != 1; then
10101 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10102 fi
10103
10104 if test "$wxUSE_GIF" = yes; then
10105 echo "$as_me:$LINENO: result: yes" >&5
10106echo "${ECHO_T}yes" >&6
10107 else
10108 echo "$as_me:$LINENO: result: no" >&5
10109echo "${ECHO_T}no" >&6
10110 fi
10111
10112
10113 enablestring=
10114 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10115echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10116 no_cache=0
10117 # Check whether --enable-pcx or --disable-pcx was given.
10118if test "${enable_pcx+set}" = set; then
10119 enableval="$enable_pcx"
10120
10121 if test "$enableval" = yes; then
10122 ac_cv_use_pcx='wxUSE_PCX=yes'
10123 else
10124 ac_cv_use_pcx='wxUSE_PCX=no'
10125 fi
10126
10127else
10128
10129 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10130 if test "x$LINE" != x ; then
10131 eval "DEFAULT_$LINE"
10132 else
10133 no_cache=1
10134 fi
10135
10136 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10137
10138fi;
10139
10140 eval "$ac_cv_use_pcx"
10141 if test "$no_cache" != 1; then
10142 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10143 fi
10144
10145 if test "$wxUSE_PCX" = yes; then
10146 echo "$as_me:$LINENO: result: yes" >&5
10147echo "${ECHO_T}yes" >&6
10148 else
10149 echo "$as_me:$LINENO: result: no" >&5
10150echo "${ECHO_T}no" >&6
10151 fi
10152
10153
10154 enablestring=
10155 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10156echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10157 no_cache=0
10158 # Check whether --enable-iff or --disable-iff was given.
10159if test "${enable_iff+set}" = set; then
10160 enableval="$enable_iff"
10161
10162 if test "$enableval" = yes; then
10163 ac_cv_use_iff='wxUSE_IFF=yes'
10164 else
10165 ac_cv_use_iff='wxUSE_IFF=no'
10166 fi
10167
10168else
10169
10170 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10171 if test "x$LINE" != x ; then
10172 eval "DEFAULT_$LINE"
10173 else
10174 no_cache=1
10175 fi
10176
10177 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10178
10179fi;
10180
10181 eval "$ac_cv_use_iff"
10182 if test "$no_cache" != 1; then
10183 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10184 fi
10185
10186 if test "$wxUSE_IFF" = yes; then
10187 echo "$as_me:$LINENO: result: yes" >&5
10188echo "${ECHO_T}yes" >&6
10189 else
10190 echo "$as_me:$LINENO: result: no" >&5
10191echo "${ECHO_T}no" >&6
10192 fi
10193
10194
10195 enablestring=
10196 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10197echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10198 no_cache=0
10199 # Check whether --enable-pnm or --disable-pnm was given.
10200if test "${enable_pnm+set}" = set; then
10201 enableval="$enable_pnm"
10202
10203 if test "$enableval" = yes; then
10204 ac_cv_use_pnm='wxUSE_PNM=yes'
10205 else
10206 ac_cv_use_pnm='wxUSE_PNM=no'
10207 fi
10208
10209else
10210
10211 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10212 if test "x$LINE" != x ; then
10213 eval "DEFAULT_$LINE"
10214 else
10215 no_cache=1
10216 fi
10217
10218 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10219
10220fi;
10221
10222 eval "$ac_cv_use_pnm"
10223 if test "$no_cache" != 1; then
10224 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10225 fi
10226
10227 if test "$wxUSE_PNM" = yes; then
10228 echo "$as_me:$LINENO: result: yes" >&5
10229echo "${ECHO_T}yes" >&6
10230 else
10231 echo "$as_me:$LINENO: result: no" >&5
10232echo "${ECHO_T}no" >&6
10233 fi
10234
10235
10236 enablestring=
10237 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10238echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10239 no_cache=0
10240 # Check whether --enable-xpm or --disable-xpm was given.
10241if test "${enable_xpm+set}" = set; then
10242 enableval="$enable_xpm"
10243
10244 if test "$enableval" = yes; then
10245 ac_cv_use_xpm='wxUSE_XPM=yes'
10246 else
10247 ac_cv_use_xpm='wxUSE_XPM=no'
10248 fi
10249
10250else
10251
10252 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10253 if test "x$LINE" != x ; then
10254 eval "DEFAULT_$LINE"
10255 else
10256 no_cache=1
10257 fi
10258
10259 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10260
10261fi;
10262
10263 eval "$ac_cv_use_xpm"
10264 if test "$no_cache" != 1; then
10265 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10266 fi
10267
10268 if test "$wxUSE_XPM" = yes; then
10269 echo "$as_me:$LINENO: result: yes" >&5
10270echo "${ECHO_T}yes" >&6
10271 else
10272 echo "$as_me:$LINENO: result: no" >&5
10273echo "${ECHO_T}no" >&6
10274 fi
10275
10276
10277 enablestring=
10278 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10279echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10280 no_cache=0
10281 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10282if test "${enable_ico_cur+set}" = set; then
10283 enableval="$enable_ico_cur"
10284
10285 if test "$enableval" = yes; then
10286 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10287 else
10288 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10289 fi
10290
10291else
10292
10293 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10294 if test "x$LINE" != x ; then
10295 eval "DEFAULT_$LINE"
10296 else
10297 no_cache=1
10298 fi
10299
10300 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10301
10302fi;
10303
10304 eval "$ac_cv_use_ico_cur"
10305 if test "$no_cache" != 1; then
10306 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10307 fi
10308
10309 if test "$wxUSE_ICO_CUR" = yes; then
10310 echo "$as_me:$LINENO: result: yes" >&5
10311echo "${ECHO_T}yes" >&6
10312 else
10313 echo "$as_me:$LINENO: result: no" >&5
10314echo "${ECHO_T}no" >&6
10315 fi
10316
10317
10318fi
10319
10320
10321
ceec2216
RL
10322# Check whether --with-flavour or --without-flavour was given.
10323if test "${with_flavour+set}" = set; then
10324 withval="$with_flavour"
10325 WX_FLAVOUR="$withval"
10326fi;
10327
10328
10329
a848cd7e
SC
10330 enablestring=
10331 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10332echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10333 no_cache=0
10334 # Check whether --enable-official_build or --disable-official_build was given.
10335if test "${enable_official_build+set}" = set; then
10336 enableval="$enable_official_build"
10337
10338 if test "$enableval" = yes; then
10339 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10340 else
10341 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10342 fi
10343
10344else
10345
10346 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10347 if test "x$LINE" != x ; then
10348 eval "DEFAULT_$LINE"
10349 else
10350 no_cache=1
10351 fi
10352
10353 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10354
10355fi;
10356
10357 eval "$ac_cv_use_official_build"
10358 if test "$no_cache" != 1; then
10359 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10360 fi
10361
10362 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10363 echo "$as_me:$LINENO: result: yes" >&5
10364echo "${ECHO_T}yes" >&6
10365 else
10366 echo "$as_me:$LINENO: result: no" >&5
10367echo "${ECHO_T}no" >&6
10368 fi
10369
10370# Check whether --enable-vendor or --disable-vendor was given.
10371if test "${enable_vendor+set}" = set; then
10372 enableval="$enable_vendor"
10373 VENDOR="$enableval"
10374fi;
10375if test "x$VENDOR" = "x"; then
10376 VENDOR="custom"
10377fi
10378
a848cd7e
SC
10379
10380
10381
10382 echo "saving argument cache $wx_arg_cache_file"
10383 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10384
10385
10386
10387echo "$as_me:$LINENO: checking for toolkit" >&5
10388echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10389
10390# In Wine, we need to default to MSW, not GTK or MOTIF
10391if test "$wxUSE_WINE" = "yes"; then
10392 DEFAULT_DEFAULT_wxUSE_GTK=0
10393 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10394 DEFAULT_DEFAULT_wxUSE_MSW=1
10395 wxUSE_SHARED=no
10396fi
10397
10398if test "$wxUSE_GUI" = "yes"; then
10399
10400 if test "$USE_BEOS" = 1; then
10401 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10402echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10403 { (exit 1); exit 1; }; }
10404 fi
10405
10406 if test "$TOOLKIT_GIVEN" = 1; then
10407 for toolkit in `echo $ALL_TOOLKITS`; do
10408 var=wxUSE_$toolkit
10409 eval "value=\$${var}"
10410 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
10411 done
10412 else
10413 for toolkit in `echo $ALL_TOOLKITS`; do
10414 if test "$has_toolkit_in_cache" != 1; then
10415 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10416 else
10417 var=DEFAULT_wxUSE_$toolkit
10418 fi
10419 eval "wxUSE_$toolkit=\$${var}"
10420 done
10421 fi
10422
10423 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10424 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10425 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10426
10427 case "${host}" in
10428 *-pc-os2_emx | *-pc-os2-emx )
10429 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10430 esac
10431
10432 case "$NUM_TOOLKITS" in
10433 1)
10434 ;;
10435 0)
10436 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10437echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10438 { (exit 1); exit 1; }; }
10439 ;;
10440 *)
10441 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10442echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10443 { (exit 1); exit 1; }; }
10444 esac
10445
10446 for toolkit in `echo $ALL_TOOLKITS`; do
10447 var=wxUSE_$toolkit
10448 eval "value=\$${var}"
10449 if test "x$value" != x; then
10450 cache_var=CACHE_$toolkit
10451 eval "cache=\$${cache_var}"
10452 if test "$cache" = 1; then
10453 echo "$var=$value" >> ${wx_arg_cache_file}
10454 fi
10455 if test "$value" = 1; then
10456 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10457 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10458echo "${ECHO_T}$toolkit_echo" >&6
10459 fi
10460 fi
10461 done
10462else
10463 if test "x$host_alias" != "x"; then
10464 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10465echo "${ECHO_T}base ($host_alias hosted) only" >&6
10466 else
10467 echo "$as_me:$LINENO: result: base only" >&5
10468echo "${ECHO_T}base only" >&6
10469 fi
10470fi
10471
10472wants_win32=0
10473doesnt_want_win32=0
10474case "${host}" in
10475 *-*-cygwin*)
10476 if test "$wxUSE_MSW" = 1 ; then
10477 wants_win32=1
10478 else
10479 doesnt_want_win32=1
10480 fi
10481 ;;
10482 *-*-mingw*)
10483 wants_win32=1
10484 ;;
10485esac
10486
10487if test "$wxUSE_WINE" = "yes"; then
10488 wants_win32=1
10489 CC=winegcc
10490 CXX=wineg++
10491 RESCOMP=wrc
10492 LDFLAGS_GUI="-mwindows"
10493fi
10494
10495if test "$wants_win32" = 1 ; then
10496 USE_UNIX=0
10497 USE_WIN32=1
10498 cat >>confdefs.h <<\_ACEOF
10499#define __WIN32__ 1
10500_ACEOF
10501
10502 cat >>confdefs.h <<\_ACEOF
10503#define __WIN95__ 1
10504_ACEOF
10505
10506 cat >>confdefs.h <<\_ACEOF
10507#define __WINDOWS__ 1
10508_ACEOF
10509
10510 cat >>confdefs.h <<\_ACEOF
10511#define __GNUWIN32__ 1
10512_ACEOF
10513
10514 cat >>confdefs.h <<\_ACEOF
10515#define STRICT 1
10516_ACEOF
10517
10518 cat >>confdefs.h <<\_ACEOF
10519#define WINVER 0x0400
10520_ACEOF
10521
10522fi
10523if test "$doesnt_want_win32" = 1 ; then
10524 USE_UNIX=1
10525 USE_WIN32=0
10526fi
10527
10528if test "$USE_UNIX" = 1 ; then
10529 wxUSE_UNIX=yes
10530 cat >>confdefs.h <<\_ACEOF
10531#define __UNIX__ 1
10532_ACEOF
10533
10534fi
10535
10536
10537cat >confcache <<\_ACEOF
10538# This file is a shell script that caches the results of configure
10539# tests run on this system so they can be shared between configure
10540# scripts and configure runs, see configure's option --config-cache.
10541# It is not useful on other systems. If it contains results you don't
10542# want to keep, you may remove or edit it.
10543#
10544# config.status only pays attention to the cache file if you give it
10545# the --recheck option to rerun configure.
10546#
10547# `ac_cv_env_foo' variables (set or unset) will be overridden when
10548# loading this file, other *unset* `ac_cv_foo' will be assigned the
10549# following values.
10550
10551_ACEOF
10552
10553# The following way of writing the cache mishandles newlines in values,
10554# but we know of no workaround that is simple, portable, and efficient.
10555# So, don't put newlines in cache variables' values.
10556# Ultrix sh set writes to stderr and can't be redirected directly,
10557# and sets the high bit in the cache file unless we assign to the vars.
10558{
10559 (set) 2>&1 |
10560 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10561 *ac_space=\ *)
10562 # `set' does not quote correctly, so add quotes (double-quote
10563 # substitution turns \\\\ into \\, and sed turns \\ into \).
10564 sed -n \
ac1cb8d3
VS
10565 "s/'/'\\\\''/g;
10566 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10567 ;;
10568 *)
10569 # `set' quotes correctly as required by POSIX, so do not add quotes.
10570 sed -n \
ac1cb8d3 10571 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10572 ;;
10573 esac;
10574} |
10575 sed '
10576 t clear
10577 : clear
10578 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10579 t end
10580 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10581 : end' >>confcache
10582if diff $cache_file confcache >/dev/null 2>&1; then :; else
10583 if test -w $cache_file; then
10584 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10585 cat confcache >$cache_file
10586 else
10587 echo "not updating unwritable cache $cache_file"
10588 fi
10589fi
10590rm -f confcache
10591
10592if test "$build" != "$host" ; then
1e9e8aba 10593 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10594 CC=$host_alias-gcc
10595 CXX=$host_alias-c++
10596 AR=$host_alias-ar
10597 RANLIB=$host_alias-ranlib
10598 DLLTOOL=$host_alias-dlltool
10599 RESCOMP=$host_alias-windres
a848cd7e 10600 STRIP=$host_alias-strip
1e9e8aba
DE
10601 elif test "x$CC" '!=' "x"; then
10602 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10603 else
10604 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10605echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10606 { (exit 1); exit 1; }; }
10607 fi
10608fi
10609
10610CFLAGS=${CFLAGS:=}
6dcfc289
DE
10611
10612
10613 ac_ext=c
a848cd7e
SC
10614ac_cpp='$CPP $CPPFLAGS'
10615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10617ac_compiler_gnu=$ac_cv_c_compiler_gnu
10618if test -n "$ac_tool_prefix"; then
10619 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10620set dummy ${ac_tool_prefix}gcc; ac_word=$2
10621echo "$as_me:$LINENO: checking for $ac_word" >&5
10622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10623if test "${ac_cv_prog_CC+set}" = set; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6
10625else
10626 if test -n "$CC"; then
10627 ac_cv_prog_CC="$CC" # Let the user override the test.
10628else
10629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10630for as_dir in $PATH
10631do
10632 IFS=$as_save_IFS
10633 test -z "$as_dir" && as_dir=.
10634 for ac_exec_ext in '' $ac_executable_extensions; do
10635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10636 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10638 break 2
10639 fi
10640done
10641done
10642
10643fi
10644fi
10645CC=$ac_cv_prog_CC
10646if test -n "$CC"; then
10647 echo "$as_me:$LINENO: result: $CC" >&5
10648echo "${ECHO_T}$CC" >&6
10649else
10650 echo "$as_me:$LINENO: result: no" >&5
10651echo "${ECHO_T}no" >&6
10652fi
10653
10654fi
10655if test -z "$ac_cv_prog_CC"; then
10656 ac_ct_CC=$CC
10657 # Extract the first word of "gcc", so it can be a program name with args.
10658set dummy gcc; ac_word=$2
10659echo "$as_me:$LINENO: checking for $ac_word" >&5
10660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10661if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10662 echo $ECHO_N "(cached) $ECHO_C" >&6
10663else
10664 if test -n "$ac_ct_CC"; then
10665 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10666else
10667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10668for as_dir in $PATH
10669do
10670 IFS=$as_save_IFS
10671 test -z "$as_dir" && as_dir=.
10672 for ac_exec_ext in '' $ac_executable_extensions; do
10673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10674 ac_cv_prog_ac_ct_CC="gcc"
10675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10676 break 2
10677 fi
10678done
10679done
10680
10681fi
10682fi
10683ac_ct_CC=$ac_cv_prog_ac_ct_CC
10684if test -n "$ac_ct_CC"; then
10685 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10686echo "${ECHO_T}$ac_ct_CC" >&6
10687else
10688 echo "$as_me:$LINENO: result: no" >&5
10689echo "${ECHO_T}no" >&6
10690fi
10691
10692 CC=$ac_ct_CC
10693else
10694 CC="$ac_cv_prog_CC"
10695fi
10696
10697if test -z "$CC"; then
10698 if test -n "$ac_tool_prefix"; then
10699 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10700set dummy ${ac_tool_prefix}cc; ac_word=$2
10701echo "$as_me:$LINENO: checking for $ac_word" >&5
10702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10703if test "${ac_cv_prog_CC+set}" = set; then
10704 echo $ECHO_N "(cached) $ECHO_C" >&6
10705else
10706 if test -n "$CC"; then
10707 ac_cv_prog_CC="$CC" # Let the user override the test.
10708else
10709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10710for as_dir in $PATH
10711do
10712 IFS=$as_save_IFS
10713 test -z "$as_dir" && as_dir=.
10714 for ac_exec_ext in '' $ac_executable_extensions; do
10715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10716 ac_cv_prog_CC="${ac_tool_prefix}cc"
10717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10718 break 2
10719 fi
10720done
10721done
10722
10723fi
10724fi
10725CC=$ac_cv_prog_CC
10726if test -n "$CC"; then
10727 echo "$as_me:$LINENO: result: $CC" >&5
10728echo "${ECHO_T}$CC" >&6
10729else
10730 echo "$as_me:$LINENO: result: no" >&5
10731echo "${ECHO_T}no" >&6
10732fi
10733
10734fi
10735if test -z "$ac_cv_prog_CC"; then
10736 ac_ct_CC=$CC
10737 # Extract the first word of "cc", so it can be a program name with args.
10738set dummy cc; ac_word=$2
10739echo "$as_me:$LINENO: checking for $ac_word" >&5
10740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10741if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10742 echo $ECHO_N "(cached) $ECHO_C" >&6
10743else
10744 if test -n "$ac_ct_CC"; then
10745 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10746else
10747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10748for as_dir in $PATH
10749do
10750 IFS=$as_save_IFS
10751 test -z "$as_dir" && as_dir=.
10752 for ac_exec_ext in '' $ac_executable_extensions; do
10753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10754 ac_cv_prog_ac_ct_CC="cc"
10755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10756 break 2
10757 fi
10758done
10759done
10760
10761fi
10762fi
10763ac_ct_CC=$ac_cv_prog_ac_ct_CC
10764if test -n "$ac_ct_CC"; then
10765 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10766echo "${ECHO_T}$ac_ct_CC" >&6
10767else
10768 echo "$as_me:$LINENO: result: no" >&5
10769echo "${ECHO_T}no" >&6
10770fi
10771
10772 CC=$ac_ct_CC
10773else
10774 CC="$ac_cv_prog_CC"
10775fi
10776
10777fi
10778if test -z "$CC"; then
10779 # Extract the first word of "cc", so it can be a program name with args.
10780set dummy cc; ac_word=$2
10781echo "$as_me:$LINENO: checking for $ac_word" >&5
10782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10783if test "${ac_cv_prog_CC+set}" = set; then
10784 echo $ECHO_N "(cached) $ECHO_C" >&6
10785else
10786 if test -n "$CC"; then
10787 ac_cv_prog_CC="$CC" # Let the user override the test.
10788else
10789 ac_prog_rejected=no
10790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10791for as_dir in $PATH
10792do
10793 IFS=$as_save_IFS
10794 test -z "$as_dir" && as_dir=.
10795 for ac_exec_ext in '' $ac_executable_extensions; do
10796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10797 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10798 ac_prog_rejected=yes
10799 continue
10800 fi
10801 ac_cv_prog_CC="cc"
10802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10803 break 2
10804 fi
10805done
10806done
10807
10808if test $ac_prog_rejected = yes; then
10809 # We found a bogon in the path, so make sure we never use it.
10810 set dummy $ac_cv_prog_CC
10811 shift
10812 if test $# != 0; then
10813 # We chose a different compiler from the bogus one.
10814 # However, it has the same basename, so the bogon will be chosen
10815 # first if we set CC to just the basename; use the full file name.
10816 shift
10817 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10818 fi
10819fi
10820fi
10821fi
10822CC=$ac_cv_prog_CC
10823if test -n "$CC"; then
10824 echo "$as_me:$LINENO: result: $CC" >&5
10825echo "${ECHO_T}$CC" >&6
10826else
10827 echo "$as_me:$LINENO: result: no" >&5
10828echo "${ECHO_T}no" >&6
10829fi
10830
10831fi
10832if test -z "$CC"; then
10833 if test -n "$ac_tool_prefix"; then
10834 for ac_prog in cl
10835 do
10836 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10837set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10838echo "$as_me:$LINENO: checking for $ac_word" >&5
10839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10840if test "${ac_cv_prog_CC+set}" = set; then
10841 echo $ECHO_N "(cached) $ECHO_C" >&6
10842else
10843 if test -n "$CC"; then
10844 ac_cv_prog_CC="$CC" # Let the user override the test.
10845else
10846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10847for as_dir in $PATH
10848do
10849 IFS=$as_save_IFS
10850 test -z "$as_dir" && as_dir=.
10851 for ac_exec_ext in '' $ac_executable_extensions; do
10852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10853 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10855 break 2
10856 fi
10857done
10858done
10859
10860fi
10861fi
10862CC=$ac_cv_prog_CC
10863if test -n "$CC"; then
10864 echo "$as_me:$LINENO: result: $CC" >&5
10865echo "${ECHO_T}$CC" >&6
10866else
10867 echo "$as_me:$LINENO: result: no" >&5
10868echo "${ECHO_T}no" >&6
10869fi
10870
10871 test -n "$CC" && break
10872 done
10873fi
10874if test -z "$CC"; then
10875 ac_ct_CC=$CC
10876 for ac_prog in cl
10877do
10878 # Extract the first word of "$ac_prog", so it can be a program name with args.
10879set dummy $ac_prog; ac_word=$2
10880echo "$as_me:$LINENO: checking for $ac_word" >&5
10881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10882if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10883 echo $ECHO_N "(cached) $ECHO_C" >&6
10884else
10885 if test -n "$ac_ct_CC"; then
10886 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10887else
10888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10889for as_dir in $PATH
10890do
10891 IFS=$as_save_IFS
10892 test -z "$as_dir" && as_dir=.
10893 for ac_exec_ext in '' $ac_executable_extensions; do
10894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10895 ac_cv_prog_ac_ct_CC="$ac_prog"
10896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10897 break 2
10898 fi
10899done
10900done
10901
10902fi
10903fi
10904ac_ct_CC=$ac_cv_prog_ac_ct_CC
10905if test -n "$ac_ct_CC"; then
10906 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10907echo "${ECHO_T}$ac_ct_CC" >&6
10908else
10909 echo "$as_me:$LINENO: result: no" >&5
10910echo "${ECHO_T}no" >&6
10911fi
10912
10913 test -n "$ac_ct_CC" && break
10914done
10915
10916 CC=$ac_ct_CC
10917fi
10918
10919fi
10920
10921
10922test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10923See \`config.log' for more details." >&5
10924echo "$as_me: error: no acceptable C compiler found in \$PATH
10925See \`config.log' for more details." >&2;}
10926 { (exit 1); exit 1; }; }
10927
10928# Provide some information about the compiler.
10929echo "$as_me:$LINENO:" \
10930 "checking for C compiler version" >&5
10931ac_compiler=`set X $ac_compile; echo $2`
10932{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10933 (eval $ac_compiler --version </dev/null >&5) 2>&5
10934 ac_status=$?
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); }
10937{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10938 (eval $ac_compiler -v </dev/null >&5) 2>&5
10939 ac_status=$?
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }
10942{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10943 (eval $ac_compiler -V </dev/null >&5) 2>&5
10944 ac_status=$?
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); }
10947
10948cat >conftest.$ac_ext <<_ACEOF
10949/* confdefs.h. */
10950_ACEOF
10951cat confdefs.h >>conftest.$ac_ext
10952cat >>conftest.$ac_ext <<_ACEOF
10953/* end confdefs.h. */
10954
10955int
10956main ()
10957{
10958
10959 ;
10960 return 0;
10961}
10962_ACEOF
10963ac_clean_files_save=$ac_clean_files
10964ac_clean_files="$ac_clean_files a.out a.exe b.out"
10965# Try to create an executable without -o first, disregard a.out.
10966# It will help us diagnose broken compilers, and finding out an intuition
10967# of exeext.
ac1cb8d3
VS
10968echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10969echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10970ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10971if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10972 (eval $ac_link_default) 2>&5
10973 ac_status=$?
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); }; then
10976 # Find the output, starting from the most likely. This scheme is
10977# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10978# resort.
10979
10980# Be careful to initialize this variable, since it used to be cached.
10981# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10982ac_cv_exeext=
10983# b.out is created by i960 compilers.
10984for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10985do
10986 test -f "$ac_file" || continue
10987 case $ac_file in
10988 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10989 ;;
a848cd7e 10990 conftest.$ac_ext )
ac1cb8d3
VS
10991 # This is the source file.
10992 ;;
a848cd7e 10993 [ab].out )
ac1cb8d3
VS
10994 # We found the default executable, but exeext='' is most
10995 # certainly right.
10996 break;;
a848cd7e 10997 *.* )
ac1cb8d3
VS
10998 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10999 # FIXME: I believe we export ac_cv_exeext for Libtool,
11000 # but it would be cool to find out if it's true. Does anybody
11001 # maintain Libtool? --akim.
11002 export ac_cv_exeext
11003 break;;
a848cd7e 11004 * )
ac1cb8d3 11005 break;;
a848cd7e
SC
11006 esac
11007done
11008else
11009 echo "$as_me: failed program was:" >&5
11010sed 's/^/| /' conftest.$ac_ext >&5
11011
11012{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11013See \`config.log' for more details." >&5
11014echo "$as_me: error: C compiler cannot create executables
11015See \`config.log' for more details." >&2;}
11016 { (exit 77); exit 77; }; }
11017fi
11018
11019ac_exeext=$ac_cv_exeext
11020echo "$as_me:$LINENO: result: $ac_file" >&5
11021echo "${ECHO_T}$ac_file" >&6
11022
11023# Check the compiler produces executables we can run. If not, either
11024# the compiler is broken, or we cross compile.
11025echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11026echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11027# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11028# If not cross compiling, check that we can run a simple program.
11029if test "$cross_compiling" != yes; then
11030 if { ac_try='./$ac_file'
11031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11032 (eval $ac_try) 2>&5
11033 ac_status=$?
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); }; }; then
11036 cross_compiling=no
11037 else
11038 if test "$cross_compiling" = maybe; then
11039 cross_compiling=yes
11040 else
11041 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11042If you meant to cross compile, use \`--host'.
11043See \`config.log' for more details." >&5
11044echo "$as_me: error: cannot run C compiled programs.
11045If you meant to cross compile, use \`--host'.
11046See \`config.log' for more details." >&2;}
11047 { (exit 1); exit 1; }; }
11048 fi
11049 fi
11050fi
11051echo "$as_me:$LINENO: result: yes" >&5
11052echo "${ECHO_T}yes" >&6
11053
11054rm -f a.out a.exe conftest$ac_cv_exeext b.out
11055ac_clean_files=$ac_clean_files_save
11056# Check the compiler produces executables we can run. If not, either
11057# the compiler is broken, or we cross compile.
11058echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11059echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11060echo "$as_me:$LINENO: result: $cross_compiling" >&5
11061echo "${ECHO_T}$cross_compiling" >&6
11062
11063echo "$as_me:$LINENO: checking for suffix of executables" >&5
11064echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11066 (eval $ac_link) 2>&5
11067 ac_status=$?
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); }; then
11070 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11071# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11072# work properly (i.e., refer to `conftest.exe'), while it won't with
11073# `rm'.
11074for ac_file in conftest.exe conftest conftest.*; do
11075 test -f "$ac_file" || continue
11076 case $ac_file in
11077 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11078 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11079 export ac_cv_exeext
11080 break;;
a848cd7e
SC
11081 * ) break;;
11082 esac
11083done
11084else
11085 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11086See \`config.log' for more details." >&5
11087echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11088See \`config.log' for more details." >&2;}
11089 { (exit 1); exit 1; }; }
11090fi
11091
11092rm -f conftest$ac_cv_exeext
11093echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11094echo "${ECHO_T}$ac_cv_exeext" >&6
11095
11096rm -f conftest.$ac_ext
11097EXEEXT=$ac_cv_exeext
11098ac_exeext=$EXEEXT
11099echo "$as_me:$LINENO: checking for suffix of object files" >&5
11100echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11101if test "${ac_cv_objext+set}" = set; then
11102 echo $ECHO_N "(cached) $ECHO_C" >&6
11103else
11104 cat >conftest.$ac_ext <<_ACEOF
11105/* confdefs.h. */
11106_ACEOF
11107cat confdefs.h >>conftest.$ac_ext
11108cat >>conftest.$ac_ext <<_ACEOF
11109/* end confdefs.h. */
11110
11111int
11112main ()
11113{
11114
11115 ;
11116 return 0;
11117}
11118_ACEOF
11119rm -f conftest.o conftest.obj
11120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11121 (eval $ac_compile) 2>&5
11122 ac_status=$?
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); }; then
11125 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11126 case $ac_file in
11127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11128 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11129 break;;
11130 esac
11131done
11132else
11133 echo "$as_me: failed program was:" >&5
11134sed 's/^/| /' conftest.$ac_ext >&5
11135
11136{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11137See \`config.log' for more details." >&5
11138echo "$as_me: error: cannot compute suffix of object files: cannot compile
11139See \`config.log' for more details." >&2;}
11140 { (exit 1); exit 1; }; }
11141fi
11142
11143rm -f conftest.$ac_cv_objext conftest.$ac_ext
11144fi
11145echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11146echo "${ECHO_T}$ac_cv_objext" >&6
11147OBJEXT=$ac_cv_objext
11148ac_objext=$OBJEXT
11149echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11150echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11151if test "${ac_cv_c_compiler_gnu+set}" = set; then
11152 echo $ECHO_N "(cached) $ECHO_C" >&6
11153else
11154 cat >conftest.$ac_ext <<_ACEOF
11155/* confdefs.h. */
11156_ACEOF
11157cat confdefs.h >>conftest.$ac_ext
11158cat >>conftest.$ac_ext <<_ACEOF
11159/* end confdefs.h. */
11160
11161int
11162main ()
11163{
11164#ifndef __GNUC__
11165 choke me
11166#endif
11167
11168 ;
11169 return 0;
11170}
11171_ACEOF
11172rm -f conftest.$ac_objext
11173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11174 (eval $ac_compile) 2>conftest.er1
a848cd7e 11175 ac_status=$?
ac1cb8d3
VS
11176 grep -v '^ *+' conftest.er1 >conftest.err
11177 rm -f conftest.er1
11178 cat conftest.err >&5
a848cd7e
SC
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); } &&
07158944 11181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11183 (eval $ac_try) 2>&5
11184 ac_status=$?
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); }; } &&
11187 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11189 (eval $ac_try) 2>&5
11190 ac_status=$?
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); }; }; then
11193 ac_compiler_gnu=yes
11194else
11195 echo "$as_me: failed program was:" >&5
11196sed 's/^/| /' conftest.$ac_ext >&5
11197
11198ac_compiler_gnu=no
11199fi
ac1cb8d3 11200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11201ac_cv_c_compiler_gnu=$ac_compiler_gnu
11202
11203fi
11204echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11205echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11206GCC=`test $ac_compiler_gnu = yes && echo yes`
11207ac_test_CFLAGS=${CFLAGS+set}
11208ac_save_CFLAGS=$CFLAGS
11209CFLAGS="-g"
11210echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11211echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11212if test "${ac_cv_prog_cc_g+set}" = set; then
11213 echo $ECHO_N "(cached) $ECHO_C" >&6
11214else
11215 cat >conftest.$ac_ext <<_ACEOF
11216/* confdefs.h. */
11217_ACEOF
11218cat confdefs.h >>conftest.$ac_ext
11219cat >>conftest.$ac_ext <<_ACEOF
11220/* end confdefs.h. */
11221
11222int
11223main ()
11224{
11225
11226 ;
11227 return 0;
11228}
11229_ACEOF
11230rm -f conftest.$ac_objext
11231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11232 (eval $ac_compile) 2>conftest.er1
a848cd7e 11233 ac_status=$?
ac1cb8d3
VS
11234 grep -v '^ *+' conftest.er1 >conftest.err
11235 rm -f conftest.er1
11236 cat conftest.err >&5
a848cd7e
SC
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); } &&
07158944 11239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11241 (eval $ac_try) 2>&5
11242 ac_status=$?
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); }; } &&
11245 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11247 (eval $ac_try) 2>&5
11248 ac_status=$?
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); }; }; then
11251 ac_cv_prog_cc_g=yes
11252else
11253 echo "$as_me: failed program was:" >&5
11254sed 's/^/| /' conftest.$ac_ext >&5
11255
11256ac_cv_prog_cc_g=no
11257fi
ac1cb8d3 11258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11259fi
11260echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11261echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11262if test "$ac_test_CFLAGS" = set; then
11263 CFLAGS=$ac_save_CFLAGS
11264elif test $ac_cv_prog_cc_g = yes; then
11265 if test "$GCC" = yes; then
11266 CFLAGS="-g -O2"
11267 else
11268 CFLAGS="-g"
11269 fi
11270else
11271 if test "$GCC" = yes; then
11272 CFLAGS="-O2"
11273 else
11274 CFLAGS=
11275 fi
11276fi
11277echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11278echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11279if test "${ac_cv_prog_cc_stdc+set}" = set; then
11280 echo $ECHO_N "(cached) $ECHO_C" >&6
11281else
11282 ac_cv_prog_cc_stdc=no
11283ac_save_CC=$CC
11284cat >conftest.$ac_ext <<_ACEOF
11285/* confdefs.h. */
11286_ACEOF
11287cat confdefs.h >>conftest.$ac_ext
11288cat >>conftest.$ac_ext <<_ACEOF
11289/* end confdefs.h. */
11290#include <stdarg.h>
11291#include <stdio.h>
11292#include <sys/types.h>
11293#include <sys/stat.h>
11294/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11295struct buf { int x; };
11296FILE * (*rcsopen) (struct buf *, struct stat *, int);
11297static char *e (p, i)
11298 char **p;
11299 int i;
11300{
11301 return p[i];
11302}
11303static char *f (char * (*g) (char **, int), char **p, ...)
11304{
11305 char *s;
11306 va_list v;
11307 va_start (v,p);
11308 s = g (p, va_arg (v,int));
11309 va_end (v);
11310 return s;
11311}
ac1cb8d3
VS
11312
11313/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11314 function prototypes and stuff, but not '\xHH' hex character constants.
11315 These don't provoke an error unfortunately, instead are silently treated
11316 as 'x'. The following induces an error, until -std1 is added to get
11317 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11318 array size at least. It's necessary to write '\x00'==0 to get something
11319 that's true only with -std1. */
11320int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11321
a848cd7e
SC
11322int test (int i, double x);
11323struct s1 {int (*f) (int a);};
11324struct s2 {int (*f) (double a);};
11325int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11326int argc;
11327char **argv;
11328int
11329main ()
11330{
11331return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11332 ;
11333 return 0;
11334}
11335_ACEOF
11336# Don't try gcc -ansi; that turns off useful extensions and
11337# breaks some systems' header files.
11338# AIX -qlanglvl=ansi
11339# Ultrix and OSF/1 -std1
11340# HP-UX 10.20 and later -Ae
11341# HP-UX older versions -Aa -D_HPUX_SOURCE
11342# SVR4 -Xc -D__EXTENSIONS__
11343for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11344do
11345 CC="$ac_save_CC $ac_arg"
11346 rm -f conftest.$ac_objext
11347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11348 (eval $ac_compile) 2>conftest.er1
a848cd7e 11349 ac_status=$?
ac1cb8d3
VS
11350 grep -v '^ *+' conftest.er1 >conftest.err
11351 rm -f conftest.er1
11352 cat conftest.err >&5
a848cd7e
SC
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); } &&
07158944 11355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11357 (eval $ac_try) 2>&5
11358 ac_status=$?
11359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360 (exit $ac_status); }; } &&
11361 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11363 (eval $ac_try) 2>&5
11364 ac_status=$?
11365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11366 (exit $ac_status); }; }; then
11367 ac_cv_prog_cc_stdc=$ac_arg
11368break
11369else
11370 echo "$as_me: failed program was:" >&5
11371sed 's/^/| /' conftest.$ac_ext >&5
11372
11373fi
ac1cb8d3 11374rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11375done
11376rm -f conftest.$ac_ext conftest.$ac_objext
11377CC=$ac_save_CC
11378
11379fi
11380
11381case "x$ac_cv_prog_cc_stdc" in
11382 x|xno)
11383 echo "$as_me:$LINENO: result: none needed" >&5
11384echo "${ECHO_T}none needed" >&6 ;;
11385 *)
11386 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11387echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11388 CC="$CC $ac_cv_prog_cc_stdc" ;;
11389esac
11390
11391# Some people use a C++ compiler to compile C. Since we use `exit',
11392# in C++ we need to declare it. In case someone uses the same compiler
11393# for both compiling C and C++ we need to have the C++ compiler decide
11394# the declaration of exit, since it's the most demanding environment.
11395cat >conftest.$ac_ext <<_ACEOF
11396#ifndef __cplusplus
11397 choke me
11398#endif
11399_ACEOF
11400rm -f conftest.$ac_objext
11401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11402 (eval $ac_compile) 2>conftest.er1
a848cd7e 11403 ac_status=$?
ac1cb8d3
VS
11404 grep -v '^ *+' conftest.er1 >conftest.err
11405 rm -f conftest.er1
11406 cat conftest.err >&5
a848cd7e
SC
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); } &&
07158944 11409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11411 (eval $ac_try) 2>&5
11412 ac_status=$?
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); }; } &&
11415 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11417 (eval $ac_try) 2>&5
11418 ac_status=$?
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); }; }; then
11421 for ac_declaration in \
ac1cb8d3 11422 '' \
a848cd7e
SC
11423 'extern "C" void std::exit (int) throw (); using std::exit;' \
11424 'extern "C" void std::exit (int); using std::exit;' \
11425 'extern "C" void exit (int) throw ();' \
11426 'extern "C" void exit (int);' \
11427 'void exit (int);'
11428do
11429 cat >conftest.$ac_ext <<_ACEOF
11430/* confdefs.h. */
11431_ACEOF
11432cat confdefs.h >>conftest.$ac_ext
11433cat >>conftest.$ac_ext <<_ACEOF
11434/* end confdefs.h. */
de59c161 11435$ac_declaration
ac1cb8d3 11436#include <stdlib.h>
a848cd7e
SC
11437int
11438main ()
11439{
11440exit (42);
11441 ;
11442 return 0;
11443}
11444_ACEOF
11445rm -f conftest.$ac_objext
11446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11447 (eval $ac_compile) 2>conftest.er1
a848cd7e 11448 ac_status=$?
ac1cb8d3
VS
11449 grep -v '^ *+' conftest.er1 >conftest.err
11450 rm -f conftest.er1
11451 cat conftest.err >&5
a848cd7e
SC
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); } &&
07158944 11454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11456 (eval $ac_try) 2>&5
11457 ac_status=$?
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); }; } &&
11460 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11462 (eval $ac_try) 2>&5
11463 ac_status=$?
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); }; }; then
11466 :
11467else
11468 echo "$as_me: failed program was:" >&5
11469sed 's/^/| /' conftest.$ac_ext >&5
11470
11471continue
11472fi
ac1cb8d3 11473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11474 cat >conftest.$ac_ext <<_ACEOF
11475/* confdefs.h. */
11476_ACEOF
11477cat confdefs.h >>conftest.$ac_ext
11478cat >>conftest.$ac_ext <<_ACEOF
11479/* end confdefs.h. */
11480$ac_declaration
11481int
11482main ()
11483{
11484exit (42);
11485 ;
11486 return 0;
11487}
11488_ACEOF
11489rm -f conftest.$ac_objext
11490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11491 (eval $ac_compile) 2>conftest.er1
a848cd7e 11492 ac_status=$?
ac1cb8d3
VS
11493 grep -v '^ *+' conftest.er1 >conftest.err
11494 rm -f conftest.er1
11495 cat conftest.err >&5
a848cd7e
SC
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } &&
07158944 11498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11501 ac_status=$?
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; } &&
11504 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11507 ac_status=$?
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
11510 break
11511else
11512 echo "$as_me: failed program was:" >&5
11513sed 's/^/| /' conftest.$ac_ext >&5
11514
11515fi
ac1cb8d3 11516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11517done
11518rm -f conftest*
11519if test -n "$ac_declaration"; then
11520 echo '#ifdef __cplusplus' >>confdefs.h
11521 echo $ac_declaration >>confdefs.h
11522 echo '#endif' >>confdefs.h
11523fi
11524
11525else
11526 echo "$as_me: failed program was:" >&5
11527sed 's/^/| /' conftest.$ac_ext >&5
11528
11529fi
ac1cb8d3 11530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11531ac_ext=c
11532ac_cpp='$CPP $CPPFLAGS'
11533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11535ac_compiler_gnu=$ac_cv_c_compiler_gnu
11536
6dcfc289 11537 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21
DE
11538echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11539if test "${wx_cv_c_exto+set}" = set; then
11540 echo $ECHO_N "(cached) $ECHO_C" >&6
11541else
11542 cat >conftest.$ac_ext <<_ACEOF
11543/* confdefs.h. */
11544_ACEOF
11545cat confdefs.h >>conftest.$ac_ext
11546cat >>conftest.$ac_ext <<_ACEOF
11547/* end confdefs.h. */
11548
11549int
11550main ()
11551{
11552
11553 ;
11554 return 0;
11555}
11556_ACEOF
11557rm -f conftest.$ac_objext conftest.$ac_ext.o
11558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11559 (eval $ac_compile) 2>&5
11560 ac_status=$?
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); }; then
11563 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11564 case $ac_file in
11565 conftest.$ac_ext.o)
11566 wx_cv_c_exto="-ext o"
11567 ;;
11568 *)
11569 ;;
11570 esac
11571done
11572else
11573 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11574See \`config.log' for more details." >&5
11575echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11576See \`config.log' for more details." >&2;}
11577 { (exit 1); exit 1; }; }
11578
11579fi
11580
11581rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11582
11583fi
11584echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
11585echo "${ECHO_T}$wx_cv_c_exto" >&6
11586if test "x$wx_cv_c_exto" '!=' "x"; then
11587 if test "c" = "c"; then
11588 CFLAGS="$wx_cv_c_exto $CFLAGS"
11589 fi
11590 if test "c" = "cxx"; then
11591 CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
11592 fi
11593fi
11594
6dcfc289
DE
11595 if test "x$wx_cv_c_exto" '!=' "x"; then
11596 unset ac_cv_prog_cc_g
11597 ac_test_CFLAGS=${CFLAGS+set}
480ccd21
DE
11598ac_save_CFLAGS=$CFLAGS
11599CFLAGS="-g"
11600echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11601echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11602if test "${ac_cv_prog_cc_g+set}" = set; then
11603 echo $ECHO_N "(cached) $ECHO_C" >&6
11604else
11605 cat >conftest.$ac_ext <<_ACEOF
11606/* confdefs.h. */
11607_ACEOF
11608cat confdefs.h >>conftest.$ac_ext
11609cat >>conftest.$ac_ext <<_ACEOF
11610/* end confdefs.h. */
11611
11612int
11613main ()
11614{
11615
11616 ;
11617 return 0;
11618}
11619_ACEOF
11620rm -f conftest.$ac_objext
11621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11622 (eval $ac_compile) 2>conftest.er1
11623 ac_status=$?
11624 grep -v '^ *+' conftest.er1 >conftest.err
11625 rm -f conftest.er1
11626 cat conftest.err >&5
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); } &&
07158944 11629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
11630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11631 (eval $ac_try) 2>&5
11632 ac_status=$?
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); }; } &&
11635 { ac_try='test -s conftest.$ac_objext'
11636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11637 (eval $ac_try) 2>&5
11638 ac_status=$?
11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); }; }; then
11641 ac_cv_prog_cc_g=yes
11642else
11643 echo "$as_me: failed program was:" >&5
11644sed 's/^/| /' conftest.$ac_ext >&5
11645
11646ac_cv_prog_cc_g=no
11647fi
11648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11649fi
11650echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11651echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11652if test "$ac_test_CFLAGS" = set; then
11653 CFLAGS=$ac_save_CFLAGS
11654elif test $ac_cv_prog_cc_g = yes; then
11655 if test "$GCC" = yes; then
11656 CFLAGS="-g -O2"
11657 else
11658 CFLAGS="-g"
11659 fi
11660else
11661 if test "$GCC" = yes; then
11662 CFLAGS="-O2"
11663 else
11664 CFLAGS=
11665 fi
11666fi
6dcfc289
DE
11667 fi
11668 ac_ext=c
95986553
DE
11669ac_cpp='$CPP $CPPFLAGS'
11670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11672ac_compiler_gnu=$ac_cv_c_compiler_gnu
11673
11674echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11675echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11676if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11677 echo $ECHO_N "(cached) $ECHO_C" >&6
11678else
11679 cat >conftest.$ac_ext <<_ACEOF
11680/* confdefs.h. */
11681_ACEOF
11682cat confdefs.h >>conftest.$ac_ext
11683cat >>conftest.$ac_ext <<_ACEOF
11684/* end confdefs.h. */
11685
11686int
11687main ()
11688{
11689#ifndef __MWERKS__
11690 choke me
11691#endif
11692
11693 ;
11694 return 0;
11695}
11696_ACEOF
11697rm -f conftest.$ac_objext
11698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11699 (eval $ac_compile) 2>conftest.er1
11700 ac_status=$?
11701 grep -v '^ *+' conftest.er1 >conftest.err
11702 rm -f conftest.er1
11703 cat conftest.err >&5
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); } &&
07158944 11706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
11707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11708 (eval $ac_try) 2>&5
11709 ac_status=$?
11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711 (exit $ac_status); }; } &&
11712 { ac_try='test -s conftest.$ac_objext'
11713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11714 (eval $ac_try) 2>&5
11715 ac_status=$?
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); }; }; then
11718 bakefile_compiler_mwerks=yes
11719else
11720 echo "$as_me: failed program was:" >&5
11721sed 's/^/| /' conftest.$ac_ext >&5
11722
11723bakefile_compiler_mwerks=no
11724fi
11725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11726 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11727
11728fi
11729echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11730echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11731
0e6fa1d9 11732MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
11733ac_ext=c
11734ac_cpp='$CPP $CPPFLAGS'
11735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11737ac_compiler_gnu=$ac_cv_c_compiler_gnu
11738
11739
6dcfc289 11740 ac_ext=c
9273ffba
DE
11741ac_cpp='$CPP $CPPFLAGS'
11742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11744ac_compiler_gnu=$ac_cv_c_compiler_gnu
11745
11746echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11747echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
11748if test "${wx_cv_c_compiler_xlc+set}" = set; then
11749 echo $ECHO_N "(cached) $ECHO_C" >&6
11750else
11751 cat >conftest.$ac_ext <<_ACEOF
11752/* confdefs.h. */
11753_ACEOF
11754cat confdefs.h >>conftest.$ac_ext
11755cat >>conftest.$ac_ext <<_ACEOF
11756/* end confdefs.h. */
11757
11758int
11759main ()
11760{
11761#ifndef __xlC__
11762 choke me
11763#endif
11764
11765 ;
11766 return 0;
11767}
11768_ACEOF
11769rm -f conftest.$ac_objext
11770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11771 (eval $ac_compile) 2>conftest.er1
11772 ac_status=$?
11773 grep -v '^ *+' conftest.er1 >conftest.err
11774 rm -f conftest.er1
11775 cat conftest.err >&5
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); } &&
07158944 11778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
11779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11780 (eval $ac_try) 2>&5
11781 ac_status=$?
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); }; } &&
11784 { ac_try='test -s conftest.$ac_objext'
11785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11786 (eval $ac_try) 2>&5
11787 ac_status=$?
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); }; }; then
11790 wx_compiler_xlc=yes
11791else
11792 echo "$as_me: failed program was:" >&5
11793sed 's/^/| /' conftest.$ac_ext >&5
11794
11795wx_compiler_xlc=no
11796fi
11797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11798 wx_cv_c_compiler_xlc=$wx_compiler_xlc
11799
11800fi
11801echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
11802echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
11803
0e6fa1d9 11804XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
11805ac_ext=c
11806ac_cpp='$CPP $CPPFLAGS'
11807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11809ac_compiler_gnu=$ac_cv_c_compiler_gnu
11810
11811
a848cd7e 11812
6dcfc289 11813
a848cd7e
SC
11814ac_ext=c
11815ac_cpp='$CPP $CPPFLAGS'
11816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11818ac_compiler_gnu=$ac_cv_c_compiler_gnu
11819echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11820echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11821# On Suns, sometimes $CPP names a directory.
11822if test -n "$CPP" && test -d "$CPP"; then
11823 CPP=
11824fi
11825if test -z "$CPP"; then
11826 if test "${ac_cv_prog_CPP+set}" = set; then
11827 echo $ECHO_N "(cached) $ECHO_C" >&6
11828else
11829 # Double quotes because CPP needs to be expanded
11830 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11831 do
11832 ac_preproc_ok=false
11833for ac_c_preproc_warn_flag in '' yes
11834do
11835 # Use a header file that comes with gcc, so configuring glibc
11836 # with a fresh cross-compiler works.
11837 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11838 # <limits.h> exists even on freestanding compilers.
11839 # On the NeXT, cc -E runs the code through the compiler's parser,
11840 # not just through cpp. "Syntax error" is here to catch this case.
11841 cat >conftest.$ac_ext <<_ACEOF
11842/* confdefs.h. */
11843_ACEOF
11844cat confdefs.h >>conftest.$ac_ext
11845cat >>conftest.$ac_ext <<_ACEOF
11846/* end confdefs.h. */
11847#ifdef __STDC__
11848# include <limits.h>
11849#else
11850# include <assert.h>
11851#endif
ac1cb8d3 11852 Syntax error
a848cd7e
SC
11853_ACEOF
11854if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11855 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11856 ac_status=$?
11857 grep -v '^ *+' conftest.er1 >conftest.err
11858 rm -f conftest.er1
11859 cat conftest.err >&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } >/dev/null; then
11862 if test -s conftest.err; then
11863 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11864 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11865 else
11866 ac_cpp_err=
11867 fi
11868else
11869 ac_cpp_err=yes
11870fi
11871if test -z "$ac_cpp_err"; then
11872 :
11873else
11874 echo "$as_me: failed program was:" >&5
11875sed 's/^/| /' conftest.$ac_ext >&5
11876
11877 # Broken: fails on valid input.
11878continue
11879fi
11880rm -f conftest.err conftest.$ac_ext
11881
11882 # OK, works on sane cases. Now check whether non-existent headers
11883 # can be detected and how.
11884 cat >conftest.$ac_ext <<_ACEOF
11885/* confdefs.h. */
11886_ACEOF
11887cat confdefs.h >>conftest.$ac_ext
11888cat >>conftest.$ac_ext <<_ACEOF
11889/* end confdefs.h. */
11890#include <ac_nonexistent.h>
11891_ACEOF
11892if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11893 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11894 ac_status=$?
11895 grep -v '^ *+' conftest.er1 >conftest.err
11896 rm -f conftest.er1
11897 cat conftest.err >&5
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); } >/dev/null; then
11900 if test -s conftest.err; then
11901 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11902 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11903 else
11904 ac_cpp_err=
11905 fi
11906else
11907 ac_cpp_err=yes
11908fi
11909if test -z "$ac_cpp_err"; then
11910 # Broken: success on invalid input.
11911continue
11912else
11913 echo "$as_me: failed program was:" >&5
11914sed 's/^/| /' conftest.$ac_ext >&5
11915
11916 # Passes both tests.
11917ac_preproc_ok=:
11918break
11919fi
11920rm -f conftest.err conftest.$ac_ext
11921
11922done
11923# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11924rm -f conftest.err conftest.$ac_ext
11925if $ac_preproc_ok; then
11926 break
11927fi
11928
11929 done
11930 ac_cv_prog_CPP=$CPP
11931
11932fi
11933 CPP=$ac_cv_prog_CPP
11934else
11935 ac_cv_prog_CPP=$CPP
11936fi
11937echo "$as_me:$LINENO: result: $CPP" >&5
11938echo "${ECHO_T}$CPP" >&6
11939ac_preproc_ok=false
11940for ac_c_preproc_warn_flag in '' yes
11941do
11942 # Use a header file that comes with gcc, so configuring glibc
11943 # with a fresh cross-compiler works.
11944 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11945 # <limits.h> exists even on freestanding compilers.
11946 # On the NeXT, cc -E runs the code through the compiler's parser,
11947 # not just through cpp. "Syntax error" is here to catch this case.
11948 cat >conftest.$ac_ext <<_ACEOF
11949/* confdefs.h. */
11950_ACEOF
11951cat confdefs.h >>conftest.$ac_ext
11952cat >>conftest.$ac_ext <<_ACEOF
11953/* end confdefs.h. */
11954#ifdef __STDC__
11955# include <limits.h>
11956#else
11957# include <assert.h>
11958#endif
ac1cb8d3 11959 Syntax error
a848cd7e
SC
11960_ACEOF
11961if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11963 ac_status=$?
11964 grep -v '^ *+' conftest.er1 >conftest.err
11965 rm -f conftest.er1
11966 cat conftest.err >&5
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); } >/dev/null; then
11969 if test -s conftest.err; then
11970 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11971 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11972 else
11973 ac_cpp_err=
11974 fi
11975else
11976 ac_cpp_err=yes
11977fi
11978if test -z "$ac_cpp_err"; then
11979 :
11980else
11981 echo "$as_me: failed program was:" >&5
11982sed 's/^/| /' conftest.$ac_ext >&5
11983
11984 # Broken: fails on valid input.
11985continue
11986fi
11987rm -f conftest.err conftest.$ac_ext
11988
11989 # OK, works on sane cases. Now check whether non-existent headers
11990 # can be detected and how.
11991 cat >conftest.$ac_ext <<_ACEOF
11992/* confdefs.h. */
11993_ACEOF
11994cat confdefs.h >>conftest.$ac_ext
11995cat >>conftest.$ac_ext <<_ACEOF
11996/* end confdefs.h. */
11997#include <ac_nonexistent.h>
11998_ACEOF
11999if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12000 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12001 ac_status=$?
12002 grep -v '^ *+' conftest.er1 >conftest.err
12003 rm -f conftest.er1
12004 cat conftest.err >&5
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); } >/dev/null; then
12007 if test -s conftest.err; then
12008 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12009 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12010 else
12011 ac_cpp_err=
12012 fi
12013else
12014 ac_cpp_err=yes
12015fi
12016if test -z "$ac_cpp_err"; then
12017 # Broken: success on invalid input.
12018continue
12019else
12020 echo "$as_me: failed program was:" >&5
12021sed 's/^/| /' conftest.$ac_ext >&5
12022
12023 # Passes both tests.
12024ac_preproc_ok=:
12025break
12026fi
12027rm -f conftest.err conftest.$ac_ext
12028
12029done
12030# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12031rm -f conftest.err conftest.$ac_ext
12032if $ac_preproc_ok; then
12033 :
12034else
12035 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12036See \`config.log' for more details." >&5
12037echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12038See \`config.log' for more details." >&2;}
12039 { (exit 1); exit 1; }; }
12040fi
12041
12042ac_ext=c
12043ac_cpp='$CPP $CPPFLAGS'
12044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12046ac_compiler_gnu=$ac_cv_c_compiler_gnu
12047
12048
12049echo "$as_me:$LINENO: checking for egrep" >&5
12050echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12051if test "${ac_cv_prog_egrep+set}" = set; then
12052 echo $ECHO_N "(cached) $ECHO_C" >&6
12053else
12054 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12055 then ac_cv_prog_egrep='grep -E'
12056 else ac_cv_prog_egrep='egrep'
12057 fi
12058fi
12059echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12060echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12061 EGREP=$ac_cv_prog_egrep
12062
12063
12064if test $ac_cv_c_compiler_gnu = yes; then
12065 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12066echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12067if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12068 echo $ECHO_N "(cached) $ECHO_C" >&6
12069else
12070 ac_pattern="Autoconf.*'x'"
12071 cat >conftest.$ac_ext <<_ACEOF
12072/* confdefs.h. */
12073_ACEOF
12074cat confdefs.h >>conftest.$ac_ext
12075cat >>conftest.$ac_ext <<_ACEOF
12076/* end confdefs.h. */
12077#include <sgtty.h>
12078Autoconf TIOCGETP
12079_ACEOF
12080if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12081 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12082 ac_cv_prog_gcc_traditional=yes
12083else
12084 ac_cv_prog_gcc_traditional=no
12085fi
12086rm -f conftest*
12087
12088
12089 if test $ac_cv_prog_gcc_traditional = no; then
12090 cat >conftest.$ac_ext <<_ACEOF
12091/* confdefs.h. */
12092_ACEOF
12093cat confdefs.h >>conftest.$ac_ext
12094cat >>conftest.$ac_ext <<_ACEOF
12095/* end confdefs.h. */
12096#include <termio.h>
12097Autoconf TCGETA
12098_ACEOF
12099if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12100 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12101 ac_cv_prog_gcc_traditional=yes
12102fi
12103rm -f conftest*
12104
12105 fi
12106fi
12107echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12108echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12109 if test $ac_cv_prog_gcc_traditional = yes; then
12110 CC="$CC -traditional"
12111 fi
12112fi
12113
12114
12115
12116
12117ac_ext=cc
12118ac_cpp='$CXXCPP $CPPFLAGS'
12119ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12120ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12121ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12122
12123
12124CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
12125
12126
12127 ac_ext=cc
a848cd7e
SC
12128ac_cpp='$CXXCPP $CPPFLAGS'
12129ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12130ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12131ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12132if test -n "$ac_tool_prefix"; then
12133 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12134 do
12135 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12136set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12137echo "$as_me:$LINENO: checking for $ac_word" >&5
12138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12139if test "${ac_cv_prog_CXX+set}" = set; then
12140 echo $ECHO_N "(cached) $ECHO_C" >&6
12141else
12142 if test -n "$CXX"; then
12143 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12144else
12145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12146for as_dir in $PATH
12147do
12148 IFS=$as_save_IFS
12149 test -z "$as_dir" && as_dir=.
12150 for ac_exec_ext in '' $ac_executable_extensions; do
12151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12152 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12154 break 2
12155 fi
12156done
12157done
12158
12159fi
12160fi
12161CXX=$ac_cv_prog_CXX
12162if test -n "$CXX"; then
12163 echo "$as_me:$LINENO: result: $CXX" >&5
12164echo "${ECHO_T}$CXX" >&6
12165else
12166 echo "$as_me:$LINENO: result: no" >&5
12167echo "${ECHO_T}no" >&6
12168fi
12169
12170 test -n "$CXX" && break
12171 done
12172fi
12173if test -z "$CXX"; then
12174 ac_ct_CXX=$CXX
12175 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12176do
12177 # Extract the first word of "$ac_prog", so it can be a program name with args.
12178set dummy $ac_prog; ac_word=$2
12179echo "$as_me:$LINENO: checking for $ac_word" >&5
12180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12181if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12182 echo $ECHO_N "(cached) $ECHO_C" >&6
12183else
12184 if test -n "$ac_ct_CXX"; then
12185 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12186else
12187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12188for as_dir in $PATH
12189do
12190 IFS=$as_save_IFS
12191 test -z "$as_dir" && as_dir=.
12192 for ac_exec_ext in '' $ac_executable_extensions; do
12193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12194 ac_cv_prog_ac_ct_CXX="$ac_prog"
12195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12196 break 2
12197 fi
12198done
12199done
12200
12201fi
12202fi
12203ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12204if test -n "$ac_ct_CXX"; then
12205 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12206echo "${ECHO_T}$ac_ct_CXX" >&6
12207else
12208 echo "$as_me:$LINENO: result: no" >&5
12209echo "${ECHO_T}no" >&6
12210fi
12211
12212 test -n "$ac_ct_CXX" && break
12213done
12214test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12215
12216 CXX=$ac_ct_CXX
12217fi
12218
12219
12220# Provide some information about the compiler.
12221echo "$as_me:$LINENO:" \
12222 "checking for C++ compiler version" >&5
12223ac_compiler=`set X $ac_compile; echo $2`
12224{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12225 (eval $ac_compiler --version </dev/null >&5) 2>&5
12226 ac_status=$?
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }
12229{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12230 (eval $ac_compiler -v </dev/null >&5) 2>&5
12231 ac_status=$?
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); }
12234{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12235 (eval $ac_compiler -V </dev/null >&5) 2>&5
12236 ac_status=$?
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); }
12239
12240echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12241echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12242if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12243 echo $ECHO_N "(cached) $ECHO_C" >&6
12244else
12245 cat >conftest.$ac_ext <<_ACEOF
12246/* confdefs.h. */
12247_ACEOF
12248cat confdefs.h >>conftest.$ac_ext
12249cat >>conftest.$ac_ext <<_ACEOF
12250/* end confdefs.h. */
12251
12252int
12253main ()
12254{
12255#ifndef __GNUC__
12256 choke me
12257#endif
12258
12259 ;
12260 return 0;
12261}
12262_ACEOF
12263rm -f conftest.$ac_objext
12264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12265 (eval $ac_compile) 2>conftest.er1
a848cd7e 12266 ac_status=$?
ac1cb8d3
VS
12267 grep -v '^ *+' conftest.er1 >conftest.err
12268 rm -f conftest.er1
12269 cat conftest.err >&5
a848cd7e
SC
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); } &&
07158944 12272 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12274 (eval $ac_try) 2>&5
12275 ac_status=$?
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; } &&
12278 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12280 (eval $ac_try) 2>&5
12281 ac_status=$?
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); }; }; then
12284 ac_compiler_gnu=yes
12285else
12286 echo "$as_me: failed program was:" >&5
12287sed 's/^/| /' conftest.$ac_ext >&5
12288
12289ac_compiler_gnu=no
12290fi
ac1cb8d3 12291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12292ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12293
12294fi
12295echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12296echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12297GXX=`test $ac_compiler_gnu = yes && echo yes`
12298ac_test_CXXFLAGS=${CXXFLAGS+set}
12299ac_save_CXXFLAGS=$CXXFLAGS
12300CXXFLAGS="-g"
12301echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12302echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12303if test "${ac_cv_prog_cxx_g+set}" = set; then
12304 echo $ECHO_N "(cached) $ECHO_C" >&6
12305else
12306 cat >conftest.$ac_ext <<_ACEOF
12307/* confdefs.h. */
12308_ACEOF
12309cat confdefs.h >>conftest.$ac_ext
12310cat >>conftest.$ac_ext <<_ACEOF
12311/* end confdefs.h. */
12312
12313int
12314main ()
12315{
12316
12317 ;
12318 return 0;
12319}
12320_ACEOF
12321rm -f conftest.$ac_objext
12322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12323 (eval $ac_compile) 2>conftest.er1
a848cd7e 12324 ac_status=$?
ac1cb8d3
VS
12325 grep -v '^ *+' conftest.er1 >conftest.err
12326 rm -f conftest.er1
12327 cat conftest.err >&5
a848cd7e
SC
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); } &&
07158944 12330 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12332 (eval $ac_try) 2>&5
12333 ac_status=$?
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); }; } &&
12336 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12338 (eval $ac_try) 2>&5
12339 ac_status=$?
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); }; }; then
12342 ac_cv_prog_cxx_g=yes
12343else
12344 echo "$as_me: failed program was:" >&5
12345sed 's/^/| /' conftest.$ac_ext >&5
12346
12347ac_cv_prog_cxx_g=no
12348fi
ac1cb8d3 12349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12350fi
12351echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12352echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12353if test "$ac_test_CXXFLAGS" = set; then
12354 CXXFLAGS=$ac_save_CXXFLAGS
12355elif test $ac_cv_prog_cxx_g = yes; then
12356 if test "$GXX" = yes; then
12357 CXXFLAGS="-g -O2"
12358 else
12359 CXXFLAGS="-g"
12360 fi
12361else
12362 if test "$GXX" = yes; then
12363 CXXFLAGS="-O2"
12364 else
12365 CXXFLAGS=
12366 fi
12367fi
12368for ac_declaration in \
ac1cb8d3 12369 '' \
a848cd7e
SC
12370 'extern "C" void std::exit (int) throw (); using std::exit;' \
12371 'extern "C" void std::exit (int); using std::exit;' \
12372 'extern "C" void exit (int) throw ();' \
12373 'extern "C" void exit (int);' \
12374 'void exit (int);'
12375do
12376 cat >conftest.$ac_ext <<_ACEOF
12377/* confdefs.h. */
12378_ACEOF
12379cat confdefs.h >>conftest.$ac_ext
12380cat >>conftest.$ac_ext <<_ACEOF
12381/* end confdefs.h. */
de59c161 12382$ac_declaration
ac1cb8d3 12383#include <stdlib.h>
a848cd7e
SC
12384int
12385main ()
12386{
12387exit (42);
12388 ;
12389 return 0;
12390}
12391_ACEOF
12392rm -f conftest.$ac_objext
12393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12394 (eval $ac_compile) 2>conftest.er1
a848cd7e 12395 ac_status=$?
ac1cb8d3
VS
12396 grep -v '^ *+' conftest.er1 >conftest.err
12397 rm -f conftest.er1
12398 cat conftest.err >&5
a848cd7e
SC
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); } &&
07158944 12401 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12403 (eval $ac_try) 2>&5
12404 ac_status=$?
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); }; } &&
12407 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12409 (eval $ac_try) 2>&5
12410 ac_status=$?
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); }; }; then
12413 :
12414else
12415 echo "$as_me: failed program was:" >&5
12416sed 's/^/| /' conftest.$ac_ext >&5
12417
12418continue
12419fi
ac1cb8d3 12420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12421 cat >conftest.$ac_ext <<_ACEOF
12422/* confdefs.h. */
12423_ACEOF
12424cat confdefs.h >>conftest.$ac_ext
12425cat >>conftest.$ac_ext <<_ACEOF
12426/* end confdefs.h. */
12427$ac_declaration
12428int
12429main ()
12430{
12431exit (42);
12432 ;
12433 return 0;
12434}
12435_ACEOF
12436rm -f conftest.$ac_objext
12437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12438 (eval $ac_compile) 2>conftest.er1
a848cd7e 12439 ac_status=$?
ac1cb8d3
VS
12440 grep -v '^ *+' conftest.er1 >conftest.err
12441 rm -f conftest.er1
12442 cat conftest.err >&5
a848cd7e
SC
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); } &&
07158944 12445 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12447 (eval $ac_try) 2>&5
12448 ac_status=$?
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); }; } &&
12451 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12453 (eval $ac_try) 2>&5
12454 ac_status=$?
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); }; }; then
12457 break
12458else
12459 echo "$as_me: failed program was:" >&5
12460sed 's/^/| /' conftest.$ac_ext >&5
12461
12462fi
ac1cb8d3 12463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12464done
12465rm -f conftest*
12466if test -n "$ac_declaration"; then
12467 echo '#ifdef __cplusplus' >>confdefs.h
12468 echo $ac_declaration >>confdefs.h
12469 echo '#endif' >>confdefs.h
12470fi
12471
12472ac_ext=cc
12473ac_cpp='$CXXCPP $CPPFLAGS'
12474ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12475ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12476ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12477
6dcfc289 12478 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21
DE
12479echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
12480if test "${wx_cv_cxx_exto+set}" = set; then
12481 echo $ECHO_N "(cached) $ECHO_C" >&6
12482else
12483 cat >conftest.$ac_ext <<_ACEOF
12484/* confdefs.h. */
12485_ACEOF
12486cat confdefs.h >>conftest.$ac_ext
12487cat >>conftest.$ac_ext <<_ACEOF
12488/* end confdefs.h. */
12489
12490int
12491main ()
12492{
12493
12494 ;
12495 return 0;
12496}
12497_ACEOF
12498rm -f conftest.$ac_objext conftest.$ac_ext.o
12499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12500 (eval $ac_compile) 2>&5
12501 ac_status=$?
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }; then
12504 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12505 case $ac_file in
12506 conftest.$ac_ext.o)
12507 wx_cv_cxx_exto="-ext o"
12508 ;;
12509 *)
12510 ;;
12511 esac
12512done
12513else
12514 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12515See \`config.log' for more details." >&5
12516echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12517See \`config.log' for more details." >&2;}
12518 { (exit 1); exit 1; }; }
12519
12520fi
12521
12522rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12523
12524fi
12525echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5
12526echo "${ECHO_T}$wx_cv_cxx_exto" >&6
12527if test "x$wx_cv_cxx_exto" '!=' "x"; then
12528 if test "cxx" = "c"; then
12529 CFLAGS="$wx_cv_cxx_exto $CFLAGS"
12530 fi
12531 if test "cxx" = "cxx"; then
12532 CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS"
12533 fi
12534fi
12535
6dcfc289
DE
12536 if test "x$wx_cv_cxx_exto" '!=' "x"; then
12537 unset ac_cv_prog_cxx_g
12538 ac_test_CXXFLAGS=${CXXFLAGS+set}
480ccd21
DE
12539ac_save_CXXFLAGS=$CXXFLAGS
12540CXXFLAGS="-g"
12541echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12542echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12543if test "${ac_cv_prog_cxx_g+set}" = set; then
12544 echo $ECHO_N "(cached) $ECHO_C" >&6
12545else
12546 cat >conftest.$ac_ext <<_ACEOF
12547/* confdefs.h. */
12548_ACEOF
12549cat confdefs.h >>conftest.$ac_ext
12550cat >>conftest.$ac_ext <<_ACEOF
12551/* end confdefs.h. */
12552
12553int
12554main ()
12555{
12556
12557 ;
12558 return 0;
12559}
12560_ACEOF
12561rm -f conftest.$ac_objext
12562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12563 (eval $ac_compile) 2>conftest.er1
12564 ac_status=$?
12565 grep -v '^ *+' conftest.er1 >conftest.err
12566 rm -f conftest.er1
12567 cat conftest.err >&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); } &&
07158944 12570 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12572 (eval $ac_try) 2>&5
12573 ac_status=$?
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); }; } &&
12576 { ac_try='test -s conftest.$ac_objext'
12577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12578 (eval $ac_try) 2>&5
12579 ac_status=$?
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); }; }; then
12582 ac_cv_prog_cxx_g=yes
12583else
12584 echo "$as_me: failed program was:" >&5
12585sed 's/^/| /' conftest.$ac_ext >&5
12586
12587ac_cv_prog_cxx_g=no
12588fi
12589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12590fi
12591echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12592echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12593if test "$ac_test_CXXFLAGS" = set; then
12594 CXXFLAGS=$ac_save_CXXFLAGS
12595elif test $ac_cv_prog_cxx_g = yes; then
12596 if test "$GXX" = yes; then
12597 CXXFLAGS="-g -O2"
12598 else
12599 CXXFLAGS="-g"
12600 fi
12601else
12602 if test "$GXX" = yes; then
12603 CXXFLAGS="-O2"
12604 else
12605 CXXFLAGS=
12606 fi
12607fi
6dcfc289
DE
12608 fi
12609 ac_ext=cc
95986553
DE
12610ac_cpp='$CXXCPP $CPPFLAGS'
12611ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12612ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12613ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12614
12615echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12616echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12617if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12618 echo $ECHO_N "(cached) $ECHO_C" >&6
12619else
12620 cat >conftest.$ac_ext <<_ACEOF
12621/* confdefs.h. */
12622_ACEOF
12623cat confdefs.h >>conftest.$ac_ext
12624cat >>conftest.$ac_ext <<_ACEOF
12625/* end confdefs.h. */
12626
12627int
12628main ()
12629{
12630#ifndef __MWERKS__
12631 choke me
12632#endif
12633
12634 ;
12635 return 0;
12636}
12637_ACEOF
12638rm -f conftest.$ac_objext
12639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12640 (eval $ac_compile) 2>conftest.er1
12641 ac_status=$?
12642 grep -v '^ *+' conftest.er1 >conftest.err
12643 rm -f conftest.er1
12644 cat conftest.err >&5
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); } &&
07158944 12647 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
12648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12649 (eval $ac_try) 2>&5
12650 ac_status=$?
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); }; } &&
12653 { ac_try='test -s conftest.$ac_objext'
12654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12655 (eval $ac_try) 2>&5
12656 ac_status=$?
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); }; }; then
12659 bakefile_compiler_mwerks=yes
12660else
12661 echo "$as_me: failed program was:" >&5
12662sed 's/^/| /' conftest.$ac_ext >&5
12663
12664bakefile_compiler_mwerks=no
12665fi
12666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12667 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12668
12669fi
12670echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12671echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12672
0e6fa1d9 12673MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
12674ac_ext=cc
12675ac_cpp='$CXXCPP $CPPFLAGS'
12676ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12677ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12678ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12679
12680
6dcfc289 12681 ac_ext=cc
9273ffba
DE
12682ac_cpp='$CXXCPP $CPPFLAGS'
12683ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12684ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12685ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12686
12687echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
12688echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
12689if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
12690 echo $ECHO_N "(cached) $ECHO_C" >&6
12691else
12692 cat >conftest.$ac_ext <<_ACEOF
12693/* confdefs.h. */
12694_ACEOF
12695cat confdefs.h >>conftest.$ac_ext
12696cat >>conftest.$ac_ext <<_ACEOF
12697/* end confdefs.h. */
12698
12699int
12700main ()
12701{
12702#ifndef __xlC__
12703 choke me
12704#endif
12705
12706 ;
12707 return 0;
12708}
12709_ACEOF
12710rm -f conftest.$ac_objext
12711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12712 (eval $ac_compile) 2>conftest.er1
12713 ac_status=$?
12714 grep -v '^ *+' conftest.er1 >conftest.err
12715 rm -f conftest.er1
12716 cat conftest.err >&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); } &&
07158944 12719 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
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); }; } &&
12725 { ac_try='test -s conftest.$ac_objext'
12726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12727 (eval $ac_try) 2>&5
12728 ac_status=$?
12729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730 (exit $ac_status); }; }; then
12731 wx_compiler_xlc=yes
12732else
12733 echo "$as_me: failed program was:" >&5
12734sed 's/^/| /' conftest.$ac_ext >&5
12735
12736wx_compiler_xlc=no
12737fi
12738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12739 wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
12740
12741fi
12742echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
12743echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
12744
0e6fa1d9 12745XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
12746ac_ext=cc
12747ac_cpp='$CXXCPP $CPPFLAGS'
12748ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12749ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12750ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12751
12752
95986553 12753
6dcfc289 12754
a848cd7e
SC
12755ac_ext=c
12756ac_cpp='$CPP $CPPFLAGS'
12757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12759ac_compiler_gnu=$ac_cv_c_compiler_gnu
12760
12761
a848cd7e
SC
12762if test -n "$ac_tool_prefix"; then
12763 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12764set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12765echo "$as_me:$LINENO: checking for $ac_word" >&5
12766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12767if test "${ac_cv_prog_RANLIB+set}" = set; then
12768 echo $ECHO_N "(cached) $ECHO_C" >&6
12769else
12770 if test -n "$RANLIB"; then
12771 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12772else
12773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12774for as_dir in $PATH
12775do
12776 IFS=$as_save_IFS
12777 test -z "$as_dir" && as_dir=.
12778 for ac_exec_ext in '' $ac_executable_extensions; do
12779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12780 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12782 break 2
12783 fi
12784done
12785done
12786
12787fi
12788fi
12789RANLIB=$ac_cv_prog_RANLIB
12790if test -n "$RANLIB"; then
12791 echo "$as_me:$LINENO: result: $RANLIB" >&5
12792echo "${ECHO_T}$RANLIB" >&6
12793else
12794 echo "$as_me:$LINENO: result: no" >&5
12795echo "${ECHO_T}no" >&6
12796fi
12797
12798fi
12799if test -z "$ac_cv_prog_RANLIB"; then
12800 ac_ct_RANLIB=$RANLIB
12801 # Extract the first word of "ranlib", so it can be a program name with args.
12802set dummy ranlib; ac_word=$2
12803echo "$as_me:$LINENO: checking for $ac_word" >&5
12804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12805if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12806 echo $ECHO_N "(cached) $ECHO_C" >&6
12807else
12808 if test -n "$ac_ct_RANLIB"; then
12809 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12810else
12811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12812for as_dir in $PATH
12813do
12814 IFS=$as_save_IFS
12815 test -z "$as_dir" && as_dir=.
12816 for ac_exec_ext in '' $ac_executable_extensions; do
12817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12818 ac_cv_prog_ac_ct_RANLIB="ranlib"
12819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12820 break 2
12821 fi
12822done
12823done
12824
12825 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12826fi
12827fi
12828ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12829if test -n "$ac_ct_RANLIB"; then
12830 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12831echo "${ECHO_T}$ac_ct_RANLIB" >&6
12832else
12833 echo "$as_me:$LINENO: result: no" >&5
12834echo "${ECHO_T}no" >&6
12835fi
12836
12837 RANLIB=$ac_ct_RANLIB
12838else
12839 RANLIB="$ac_cv_prog_RANLIB"
12840fi
12841
12842
12843# Extract the first word of "ar", so it can be a program name with args.
12844set dummy ar; ac_word=$2
12845echo "$as_me:$LINENO: checking for $ac_word" >&5
12846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12847if test "${ac_cv_prog_AR+set}" = set; then
12848 echo $ECHO_N "(cached) $ECHO_C" >&6
12849else
12850 if test -n "$AR"; then
12851 ac_cv_prog_AR="$AR" # Let the user override the test.
12852else
12853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12854for as_dir in $PATH
12855do
12856 IFS=$as_save_IFS
12857 test -z "$as_dir" && as_dir=.
12858 for ac_exec_ext in '' $ac_executable_extensions; do
12859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12860 ac_cv_prog_AR="ar"
12861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12862 break 2
12863 fi
12864done
12865done
12866
12867fi
12868fi
12869AR=$ac_cv_prog_AR
12870if test -n "$AR"; then
12871 echo "$as_me:$LINENO: result: $AR" >&5
12872echo "${ECHO_T}$AR" >&6
12873else
12874 echo "$as_me:$LINENO: result: no" >&5
12875echo "${ECHO_T}no" >&6
12876fi
12877
12878if test "x$AR" = "x" ; then
77ffb593
JS
12879 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
12880echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
12881 { (exit 1); exit 1; }; }
12882fi
12883
12884# Find a good install program. We prefer a C program (faster),
12885# so one script is as good as another. But avoid the broken or
12886# incompatible versions:
12887# SysV /etc/install, /usr/sbin/install
12888# SunOS /usr/etc/install
12889# IRIX /sbin/install
12890# AIX /bin/install
12891# AmigaOS /C/install, which installs bootblocks on floppy discs
12892# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12893# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12894# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 12895# OS/2's system install, which has a completely different semantic
a848cd7e
SC
12896# ./install, which can be erroneously created by make from ./install.sh.
12897echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12898echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12899if test -z "$INSTALL"; then
12900if test "${ac_cv_path_install+set}" = set; then
12901 echo $ECHO_N "(cached) $ECHO_C" >&6
12902else
12903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12904for as_dir in $PATH
12905do
12906 IFS=$as_save_IFS
12907 test -z "$as_dir" && as_dir=.
12908 # Account for people who put trailing slashes in PATH elements.
12909case $as_dir/ in
12910 ./ | .// | /cC/* | \
12911 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 12912 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
12913 /usr/ucb/* ) ;;
12914 *)
12915 # OSF1 and SCO ODT 3.0 have their own names for install.
12916 # Don't use installbsd from OSF since it installs stuff as root
12917 # by default.
12918 for ac_prog in ginstall scoinst install; do
12919 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
12920 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12921 if test $ac_prog = install &&
12922 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12923 # AIX install. It has an incompatible calling convention.
12924 :
12925 elif test $ac_prog = install &&
12926 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12927 # program-specific install script used by HP pwplus--don't use.
12928 :
12929 else
12930 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12931 break 3
12932 fi
12933 fi
a848cd7e
SC
12934 done
12935 done
12936 ;;
12937esac
12938done
12939
12940
12941fi
12942 if test "${ac_cv_path_install+set}" = set; then
12943 INSTALL=$ac_cv_path_install
12944 else
12945 # As a last resort, use the slow shell script. We don't cache a
12946 # path for INSTALL within a source directory, because that will
12947 # break other packages using the cache if that directory is
12948 # removed, or if the path is relative.
12949 INSTALL=$ac_install_sh
12950 fi
12951fi
12952echo "$as_me:$LINENO: result: $INSTALL" >&5
12953echo "${ECHO_T}$INSTALL" >&6
12954
12955# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12956# It thinks the first close brace ends the variable substitution.
12957test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12958
12959test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12960
12961test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12962
12963
12964case ${INSTALL} in
12965 /* ) # Absolute
12966 ;;
12967 ?:* ) # Drive letter, considered as absolute.
12968 ;;
12969 *)
12970 INSTALL=`pwd`/${INSTALL} ;;
12971esac
12972
a848cd7e
SC
12973
12974case "${host}" in
12975
12976 powerpc-*-darwin* )
12977 INSTALL_PROGRAM="cp -fp"
12978 INSTALL_DATA="cp -fp"
12979 ;;
12980 *)
12981 ;;
12982esac
12983
12984# Extract the first word of "strip", so it can be a program name with args.
12985set dummy strip; ac_word=$2
12986echo "$as_me:$LINENO: checking for $ac_word" >&5
12987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12988if test "${ac_cv_prog_STRIP+set}" = set; then
12989 echo $ECHO_N "(cached) $ECHO_C" >&6
12990else
12991 if test -n "$STRIP"; then
12992 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12993else
12994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12995for as_dir in $PATH
12996do
12997 IFS=$as_save_IFS
12998 test -z "$as_dir" && as_dir=.
12999 for ac_exec_ext in '' $ac_executable_extensions; do
13000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13001 ac_cv_prog_STRIP="strip"
13002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13003 break 2
13004 fi
13005done
13006done
13007
13008 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
13009fi
13010fi
13011STRIP=$ac_cv_prog_STRIP
13012if test -n "$STRIP"; then
13013 echo "$as_me:$LINENO: result: $STRIP" >&5
13014echo "${ECHO_T}$STRIP" >&6
13015else
13016 echo "$as_me:$LINENO: result: no" >&5
13017echo "${ECHO_T}no" >&6
13018fi
13019
13020
13021echo "$as_me:$LINENO: checking if make is GNU make" >&5
13022echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
13023if test "${wx_cv_prog_makeisgnu+set}" = set; then
13024 echo $ECHO_N "(cached) $ECHO_C" >&6
13025else
13026
13027 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
13028 egrep -s GNU > /dev/null); then
13029 wx_cv_prog_makeisgnu="yes"
13030 else
13031 wx_cv_prog_makeisgnu="no"
13032 fi
13033
13034fi
13035echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
13036echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
13037
13038if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
13039 IF_GNU_MAKE=""
13040else
13041 IF_GNU_MAKE="#"
13042fi
13043
13044
13045
13046if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
13047echo "$as_me:$LINENO: checking if make supports VPATH" >&5
13048echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
13049if test "${wx_cv_prog_makevpath+set}" = set; then
13050 echo $ECHO_N "(cached) $ECHO_C" >&6
13051else
13052
13053cat - << EOF > confMake
13054check : file
13055 cp \$? \$@
13056 cp \$? final_file
13057EOF
13058
13059if test ! -d sub ; then
13060 mkdir sub
13061fi
13062echo dummy > sub/file
13063${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
13064RESULT=$?
13065rm -f sub/file check final_file confMake
13066rmdir sub
13067if test "$RESULT" = 0; then
13068 wx_cv_prog_makevpath="yes"
13069else
13070 wx_cv_prog_makevpath="no"
13071fi
13072
13073fi
13074echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
13075echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
13076
13077if test "x$wx_cv_prog_makevpath" != "xyes"; then
13078{ { echo "$as_me:$LINENO: error:
13079You need a make-utility that is able to use the variable
13080VPATH correctly.
13081If your version of make does not support VPATH correctly,
13082please install GNU-make (possibly as gmake), and start
13083configure with the following command:
13084export MAKE=gmake; ./configure for sh-type shells
13085setenv MAKE gmake; ./configure for csh-type shells
13086Also please do remember to use gmake in this case every time
13087you are trying to compile.
13088" >&5
13089echo "$as_me: error:
13090You need a make-utility that is able to use the variable
13091VPATH correctly.
13092If your version of make does not support VPATH correctly,
13093please install GNU-make (possibly as gmake), and start
13094configure with the following command:
13095export MAKE=gmake; ./configure for sh-type shells
13096setenv MAKE gmake; ./configure for csh-type shells
13097Also please do remember to use gmake in this case every time
13098you are trying to compile.
13099" >&2;}
13100 { (exit 1); exit 1; }; }
13101fi fi
13102echo "$as_me:$LINENO: checking whether ln -s works" >&5
13103echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13104LN_S=$as_ln_s
13105if test "$LN_S" = "ln -s"; then
13106 echo "$as_me:$LINENO: result: yes" >&5
13107echo "${ECHO_T}yes" >&6
13108else
13109 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13110echo "${ECHO_T}no, using $LN_S" >&6
13111fi
13112
13113
13114
9273ffba
DE
13115if test "x$XLCXX" = "xyes"; then
13116 CXXFLAGS="$CXXFLAGS -qunique"
13117fi
13118
13119
4d7ec9f1
DE
13120case "${host}" in
13121 powerpc-*-darwin* )
13122 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
13123echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
13124 cat >conftest.$ac_ext <<_ACEOF
13125/* confdefs.h. */
13126_ACEOF
13127cat confdefs.h >>conftest.$ac_ext
13128cat >>conftest.$ac_ext <<_ACEOF
13129/* end confdefs.h. */
13130
13131int
13132main ()
13133{
13134#ifndef __POWERPC__
13135 choke me for lack of PowerPC
13136#endif
13137
13138 ;
13139 return 0;
13140}
13141_ACEOF
13142rm -f conftest.$ac_objext
13143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13144 (eval $ac_compile) 2>conftest.er1
13145 ac_status=$?
13146 grep -v '^ *+' conftest.er1 >conftest.err
13147 rm -f conftest.er1
13148 cat conftest.err >&5
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); } &&
07158944 13151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13153 (eval $ac_try) 2>&5
13154 ac_status=$?
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; } &&
13157 { ac_try='test -s conftest.$ac_objext'
13158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13159 (eval $ac_try) 2>&5
13160 ac_status=$?
13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); }; }; then
13163 echo "$as_me:$LINENO: result: yes" >&5
13164echo "${ECHO_T}yes" >&6
13165else
13166 echo "$as_me: failed program was:" >&5
13167sed 's/^/| /' conftest.$ac_ext >&5
13168
13169echo "$as_me:$LINENO: result: no" >&5
13170echo "${ECHO_T}no" >&6
13171 cat >>confdefs.h <<\_ACEOF
13172#define __POWERPC__ 1
13173_ACEOF
13174
13175
13176fi
13177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13178 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
13179echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
13180 cat >conftest.$ac_ext <<_ACEOF
13181/* confdefs.h. */
13182_ACEOF
13183cat confdefs.h >>conftest.$ac_ext
13184cat >>conftest.$ac_ext <<_ACEOF
13185/* end confdefs.h. */
13186#include <CoreFoundation/CFBase.h>
13187
13188int
13189main ()
13190{
13191
13192 ;
13193 return 0;
13194}
13195_ACEOF
13196rm -f conftest.$ac_objext
13197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13198 (eval $ac_compile) 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); } &&
07158944 13205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13207 (eval $ac_try) 2>&5
13208 ac_status=$?
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); }; } &&
13211 { ac_try='test -s conftest.$ac_objext'
13212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13213 (eval $ac_try) 2>&5
13214 ac_status=$?
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; }; then
13217 echo "$as_me:$LINENO: result: yes" >&5
13218echo "${ECHO_T}yes" >&6
13219else
13220 echo "$as_me: failed program was:" >&5
13221sed 's/^/| /' conftest.$ac_ext >&5
13222
13223echo "$as_me:$LINENO: result: no" >&5
13224echo "${ECHO_T}no" >&6
13225 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
13226echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
13227 cat >conftest.$ac_ext <<_ACEOF
13228/* confdefs.h. */
13229_ACEOF
13230cat confdefs.h >>conftest.$ac_ext
13231cat >>conftest.$ac_ext <<_ACEOF
13232/* end confdefs.h. */
13233#define __CF_USE_FRAMEWORK_INCLUDES__
13234#include <CoreFoundation/CFBase.h>
13235
13236int
13237main ()
13238{
13239
13240 ;
13241 return 0;
13242}
13243_ACEOF
13244rm -f conftest.$ac_objext
13245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13246 (eval $ac_compile) 2>conftest.er1
13247 ac_status=$?
13248 grep -v '^ *+' conftest.er1 >conftest.err
13249 rm -f conftest.er1
13250 cat conftest.err >&5
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); } &&
07158944 13253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13255 (eval $ac_try) 2>&5
13256 ac_status=$?
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); }; } &&
13259 { ac_try='test -s conftest.$ac_objext'
13260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13261 (eval $ac_try) 2>&5
13262 ac_status=$?
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); }; }; then
13265 echo "$as_me:$LINENO: result: yes" >&5
13266echo "${ECHO_T}yes" >&6
13267 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
13268else
13269 echo "$as_me: failed program was:" >&5
13270sed 's/^/| /' conftest.$ac_ext >&5
13271
13272{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
13273See \`config.log' for more details." >&5
13274echo "$as_me: error: no. CoreFoundation not available.
13275See \`config.log' for more details." >&2;}
13276 { (exit 1); exit 1; }; }
13277
13278fi
13279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13280
13281
13282fi
13283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13284 ;;
13285esac
13286
a848cd7e
SC
13287case "${host}" in
13288 *-pc-os2_emx | *-pc-os2-emx )
13289 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
13290 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
13291echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
13292if test "${ac_cv_lib_cExt_drand48+set}" = set; then
13293 echo $ECHO_N "(cached) $ECHO_C" >&6
13294else
13295 ac_check_lib_save_LIBS=$LIBS
13296LIBS="-lcExt $LIBS"
13297cat >conftest.$ac_ext <<_ACEOF
13298/* confdefs.h. */
13299_ACEOF
13300cat confdefs.h >>conftest.$ac_ext
13301cat >>conftest.$ac_ext <<_ACEOF
13302/* end confdefs.h. */
13303
13304/* Override any gcc2 internal prototype to avoid an error. */
13305#ifdef __cplusplus
13306extern "C"
13307#endif
13308/* We use char because int might match the return type of a gcc2
13309 builtin and then its argument prototype would still apply. */
13310char drand48 ();
13311int
13312main ()
13313{
13314drand48 ();
13315 ;
13316 return 0;
13317}
13318_ACEOF
13319rm -f conftest.$ac_objext conftest$ac_exeext
13320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13321 (eval $ac_link) 2>conftest.er1
a848cd7e 13322 ac_status=$?
ac1cb8d3
VS
13323 grep -v '^ *+' conftest.er1 >conftest.err
13324 rm -f conftest.er1
13325 cat conftest.err >&5
a848cd7e
SC
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); } &&
07158944 13328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13330 (eval $ac_try) 2>&5
13331 ac_status=$?
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); }; } &&
13334 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13336 (eval $ac_try) 2>&5
13337 ac_status=$?
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); }; }; then
13340 ac_cv_lib_cExt_drand48=yes
13341else
13342 echo "$as_me: failed program was:" >&5
13343sed 's/^/| /' conftest.$ac_ext >&5
13344
13345ac_cv_lib_cExt_drand48=no
13346fi
ac1cb8d3
VS
13347rm -f conftest.err conftest.$ac_objext \
13348 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13349LIBS=$ac_check_lib_save_LIBS
13350fi
13351echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
13352echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
13353if test $ac_cv_lib_cExt_drand48 = yes; then
13354 LIBS="$LIBS -lcExt"
13355fi
13356
13357 else
13358 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
13359 fi
391a765e 13360 echo "$as_me:$LINENO: checking for gcc version" >&5
a848cd7e
SC
13361echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
13362if test "${wx_cv_gccversion+set}" = set; then
13363 echo $ECHO_N "(cached) $ECHO_C" >&6
13364else
13365
391a765e
VS
13366 if test "$cross_compiling" = yes; then
13367 wx_cv_gccversion="EMX2"
13368
13369else
13370 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
13371/* confdefs.h. */
13372_ACEOF
13373cat confdefs.h >>conftest.$ac_ext
13374cat >>conftest.$ac_ext <<_ACEOF
13375/* end confdefs.h. */
13376
391a765e 13377 #include <stdio.h>
a848cd7e 13378
391a765e
VS
13379 int main()
13380 {
13381 FILE *f=fopen("conftestval", "w");
13382 if (!f) exit(1);
13383 fprintf(f,
a848cd7e 13384 #if (__GNUC__ < 3)
391a765e
VS
13385 "EMX2"
13386 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
13387 "EMX3"
13388 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
13389 "Innotek5"
13390 #else
13391 "Innotek6"
a848cd7e 13392 #endif
391a765e
VS
13393 );
13394 exit(0);
13395 }
a848cd7e 13396
a848cd7e 13397_ACEOF
391a765e
VS
13398rm -f conftest$ac_exeext
13399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13400 (eval $ac_link) 2>&5
ac1cb8d3
VS
13401 ac_status=$?
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 13403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
13404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13405 (eval $ac_try) 2>&5
13406 ac_status=$?
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); }; }; then
391a765e 13409 wx_cv_gccversion=`cat conftestval`
a848cd7e 13410else
391a765e
VS
13411 echo "$as_me: program exited with status $ac_status" >&5
13412echo "$as_me: failed program was:" >&5
a848cd7e
SC
13413sed 's/^/| /' conftest.$ac_ext >&5
13414
391a765e
VS
13415( exit $ac_status )
13416wx_cv_gccversion="EMX2"
a848cd7e 13417fi
391a765e 13418rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 13419fi
a848cd7e
SC
13420
13421fi
13422echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
13423echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 13424 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
13425 LIBS="$LIBS -lstdcpp"
13426 LDFLAGS="$LDFLAGS -Zsysv-signals"
13427 else
391a765e 13428 if test "$wx_cv_gccversion" = "EMX3"; then
a848cd7e
SC
13429 LIBS="$LIBS -lstdcxx"
13430 LDFLAGS="$LDFLAGS -Zsysv-signals"
13431 else
13432 LIBS="$LIBS -lstdc++"
13433 fi
13434 fi
94acd38e
DE
13435 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
13436 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
13437echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
13438 wxUSE_OMF=yes
2da0c077 13439 enable_omf=yes
94acd38e 13440 fi
a848cd7e 13441 if test "$wxUSE_OMF" = "yes"; then
63c4f6da 13442 LDFLAGS="$LDFLAGS -Zomf -Zlinker /EXEPACK -Zlinker /PMTYPE:PM"
a848cd7e
SC
13443 fi
13444 ;;
13445 *)
13446
13447
13448
13449 ac_ext=cc
13450ac_cpp='$CXXCPP $CPPFLAGS'
13451ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13452ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13453ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13454
13455
95986553 13456 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
13457echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
13458if test "${ac_cv_string_strcasecmp+set}" = set; then
13459 echo $ECHO_N "(cached) $ECHO_C" >&6
13460else
13461
13462 cat >conftest.$ac_ext <<_ACEOF
13463/* confdefs.h. */
13464_ACEOF
13465cat confdefs.h >>conftest.$ac_ext
13466cat >>conftest.$ac_ext <<_ACEOF
13467/* end confdefs.h. */
13468
13469 #include <string.h>
13470
13471int
13472main ()
13473{
13474
13475 strcasecmp("foo", "bar");
13476
13477 ;
13478 return 0;
13479}
13480_ACEOF
13481rm -f conftest.$ac_objext conftest$ac_exeext
13482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13483 (eval $ac_link) 2>conftest.er1
a848cd7e 13484 ac_status=$?
ac1cb8d3
VS
13485 grep -v '^ *+' conftest.er1 >conftest.err
13486 rm -f conftest.er1
13487 cat conftest.err >&5
a848cd7e
SC
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); } &&
07158944 13490 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13492 (eval $ac_try) 2>&5
13493 ac_status=$?
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); }; } &&
13496 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13498 (eval $ac_try) 2>&5
13499 ac_status=$?
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); }; }; then
13502 ac_cv_string_strcasecmp=yes
13503else
13504 echo "$as_me: failed program was:" >&5
13505sed 's/^/| /' conftest.$ac_ext >&5
13506
13507ac_cv_string_strcasecmp=no
13508
13509fi
ac1cb8d3
VS
13510rm -f conftest.err conftest.$ac_objext \
13511 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13512
13513fi
13514echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
13515echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
13516
13517 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
13518 cat >>confdefs.h <<\_ACEOF
13519#define HAVE_STRCASECMP_IN_STRING_H 1
13520_ACEOF
13521
13522 else
13523 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
13524echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
13525if test "${ac_cv_strings_strcasecmp+set}" = set; then
13526 echo $ECHO_N "(cached) $ECHO_C" >&6
13527else
13528
13529 cat >conftest.$ac_ext <<_ACEOF
13530/* confdefs.h. */
13531_ACEOF
13532cat confdefs.h >>conftest.$ac_ext
13533cat >>conftest.$ac_ext <<_ACEOF
13534/* end confdefs.h. */
13535
13536 #include <strings.h>
13537
13538int
13539main ()
13540{
13541
13542 strcasecmp("foo", "bar");
13543
13544 ;
13545 return 0;
13546}
13547_ACEOF
13548rm -f conftest.$ac_objext conftest$ac_exeext
13549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13550 (eval $ac_link) 2>conftest.er1
a848cd7e 13551 ac_status=$?
ac1cb8d3
VS
13552 grep -v '^ *+' conftest.er1 >conftest.err
13553 rm -f conftest.er1
13554 cat conftest.err >&5
a848cd7e
SC
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); } &&
07158944 13557 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559 (eval $ac_try) 2>&5
13560 ac_status=$?
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); }; } &&
13563 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13565 (eval $ac_try) 2>&5
13566 ac_status=$?
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); }; }; then
13569 ac_cv_strings_strcasecmp=yes
13570else
13571 echo "$as_me: failed program was:" >&5
13572sed 's/^/| /' conftest.$ac_ext >&5
13573
13574ac_cv_strings_strcasecmp=no
13575
13576fi
ac1cb8d3
VS
13577rm -f conftest.err conftest.$ac_objext \
13578 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13579
13580fi
13581echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
13582echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
13583
0c3c69fc 13584 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
13585 cat >>confdefs.h <<\_ACEOF
13586#define HAVE_STRCASECMP_IN_STRINGS_H 1
13587_ACEOF
13588
13589 else
13590 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
13591echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
13592 { (exit 1); exit 1; }; }
13593 fi
13594 fi
13595
13596 ac_ext=c
13597ac_cpp='$CPP $CPPFLAGS'
13598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13600ac_compiler_gnu=$ac_cv_c_compiler_gnu
13601
13602 ;;
13603esac
13604
13605
13606echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13607echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13608if test "${ac_cv_header_stdc+set}" = set; then
13609 echo $ECHO_N "(cached) $ECHO_C" >&6
13610else
13611 cat >conftest.$ac_ext <<_ACEOF
13612/* confdefs.h. */
13613_ACEOF
13614cat confdefs.h >>conftest.$ac_ext
13615cat >>conftest.$ac_ext <<_ACEOF
13616/* end confdefs.h. */
13617#include <stdlib.h>
13618#include <stdarg.h>
13619#include <string.h>
13620#include <float.h>
13621
13622int
13623main ()
13624{
13625
13626 ;
13627 return 0;
13628}
13629_ACEOF
13630rm -f conftest.$ac_objext
13631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13632 (eval $ac_compile) 2>conftest.er1
a848cd7e 13633 ac_status=$?
ac1cb8d3
VS
13634 grep -v '^ *+' conftest.er1 >conftest.err
13635 rm -f conftest.er1
13636 cat conftest.err >&5
a848cd7e
SC
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); } &&
07158944 13639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13641 (eval $ac_try) 2>&5
13642 ac_status=$?
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); }; } &&
13645 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13647 (eval $ac_try) 2>&5
13648 ac_status=$?
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); }; }; then
13651 ac_cv_header_stdc=yes
13652else
13653 echo "$as_me: failed program was:" >&5
13654sed 's/^/| /' conftest.$ac_ext >&5
13655
13656ac_cv_header_stdc=no
13657fi
ac1cb8d3 13658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13659
13660if test $ac_cv_header_stdc = yes; then
13661 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13662 cat >conftest.$ac_ext <<_ACEOF
13663/* confdefs.h. */
13664_ACEOF
13665cat confdefs.h >>conftest.$ac_ext
13666cat >>conftest.$ac_ext <<_ACEOF
13667/* end confdefs.h. */
13668#include <string.h>
13669
13670_ACEOF
13671if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13672 $EGREP "memchr" >/dev/null 2>&1; then
13673 :
13674else
13675 ac_cv_header_stdc=no
13676fi
13677rm -f conftest*
13678
13679fi
13680
13681if test $ac_cv_header_stdc = yes; then
13682 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13683 cat >conftest.$ac_ext <<_ACEOF
13684/* confdefs.h. */
13685_ACEOF
13686cat confdefs.h >>conftest.$ac_ext
13687cat >>conftest.$ac_ext <<_ACEOF
13688/* end confdefs.h. */
13689#include <stdlib.h>
13690
13691_ACEOF
13692if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13693 $EGREP "free" >/dev/null 2>&1; then
13694 :
13695else
13696 ac_cv_header_stdc=no
13697fi
13698rm -f conftest*
13699
13700fi
13701
13702if test $ac_cv_header_stdc = yes; then
13703 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13704 if test "$cross_compiling" = yes; then
13705 :
13706else
13707 cat >conftest.$ac_ext <<_ACEOF
13708/* confdefs.h. */
13709_ACEOF
13710cat confdefs.h >>conftest.$ac_ext
13711cat >>conftest.$ac_ext <<_ACEOF
13712/* end confdefs.h. */
13713#include <ctype.h>
13714#if ((' ' & 0x0FF) == 0x020)
13715# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13716# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13717#else
13718# define ISLOWER(c) \
ac1cb8d3
VS
13719 (('a' <= (c) && (c) <= 'i') \
13720 || ('j' <= (c) && (c) <= 'r') \
13721 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
13722# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13723#endif
13724
13725#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13726int
13727main ()
13728{
13729 int i;
13730 for (i = 0; i < 256; i++)
13731 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 13732 || toupper (i) != TOUPPER (i))
a848cd7e
SC
13733 exit(2);
13734 exit (0);
13735}
13736_ACEOF
13737rm -f conftest$ac_exeext
13738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13739 (eval $ac_link) 2>&5
13740 ac_status=$?
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13744 (eval $ac_try) 2>&5
13745 ac_status=$?
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); }; }; then
13748 :
13749else
13750 echo "$as_me: program exited with status $ac_status" >&5
13751echo "$as_me: failed program was:" >&5
13752sed 's/^/| /' conftest.$ac_ext >&5
13753
13754( exit $ac_status )
13755ac_cv_header_stdc=no
13756fi
ac1cb8d3 13757rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13758fi
13759fi
13760fi
13761echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13762echo "${ECHO_T}$ac_cv_header_stdc" >&6
13763if test $ac_cv_header_stdc = yes; then
13764
13765cat >>confdefs.h <<\_ACEOF
13766#define STDC_HEADERS 1
13767_ACEOF
13768
13769fi
13770
13771# On IRIX 5.3, sys/types and inttypes.h are conflicting.
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 13782 inttypes.h stdint.h unistd.h
a848cd7e
SC
13783do
13784as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13785echo "$as_me:$LINENO: checking for $ac_header" >&5
13786echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13787if eval "test \"\${$as_ac_Header+set}\" = set"; then
13788 echo $ECHO_N "(cached) $ECHO_C" >&6
13789else
13790 cat >conftest.$ac_ext <<_ACEOF
13791/* confdefs.h. */
13792_ACEOF
13793cat confdefs.h >>conftest.$ac_ext
13794cat >>conftest.$ac_ext <<_ACEOF
13795/* end confdefs.h. */
13796$ac_includes_default
13797
13798#include <$ac_header>
13799_ACEOF
13800rm -f conftest.$ac_objext
13801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13802 (eval $ac_compile) 2>conftest.er1
a848cd7e 13803 ac_status=$?
ac1cb8d3
VS
13804 grep -v '^ *+' conftest.er1 >conftest.err
13805 rm -f conftest.er1
13806 cat conftest.err >&5
a848cd7e
SC
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); } &&
07158944 13809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13811 (eval $ac_try) 2>&5
13812 ac_status=$?
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); }; } &&
13815 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817 (eval $ac_try) 2>&5
13818 ac_status=$?
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); }; }; then
13821 eval "$as_ac_Header=yes"
13822else
13823 echo "$as_me: failed program was:" >&5
13824sed 's/^/| /' conftest.$ac_ext >&5
13825
13826eval "$as_ac_Header=no"
13827fi
ac1cb8d3 13828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13829fi
13830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13831echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13832if test `eval echo '${'$as_ac_Header'}'` = yes; then
13833 cat >>confdefs.h <<_ACEOF
13834#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13835_ACEOF
13836
13837fi
13838
13839done
13840
13841
13842
13843for ac_header in stdlib.h
13844do
13845as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13846if eval "test \"\${$as_ac_Header+set}\" = set"; then
13847 echo "$as_me:$LINENO: checking for $ac_header" >&5
13848echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13849if eval "test \"\${$as_ac_Header+set}\" = set"; then
13850 echo $ECHO_N "(cached) $ECHO_C" >&6
13851fi
13852echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13853echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13854else
13855 # Is the header compilable?
13856echo "$as_me:$LINENO: checking $ac_header usability" >&5
13857echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13858cat >conftest.$ac_ext <<_ACEOF
13859/* confdefs.h. */
13860_ACEOF
13861cat confdefs.h >>conftest.$ac_ext
13862cat >>conftest.$ac_ext <<_ACEOF
13863/* end confdefs.h. */
13864$ac_includes_default
13865#include <$ac_header>
13866_ACEOF
13867rm -f conftest.$ac_objext
13868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13869 (eval $ac_compile) 2>conftest.er1
a848cd7e 13870 ac_status=$?
ac1cb8d3
VS
13871 grep -v '^ *+' conftest.er1 >conftest.err
13872 rm -f conftest.er1
13873 cat conftest.err >&5
a848cd7e
SC
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); } &&
07158944 13876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13878 (eval $ac_try) 2>&5
13879 ac_status=$?
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); }; } &&
13882 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13884 (eval $ac_try) 2>&5
13885 ac_status=$?
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); }; }; then
13888 ac_header_compiler=yes
13889else
13890 echo "$as_me: failed program was:" >&5
13891sed 's/^/| /' conftest.$ac_ext >&5
13892
13893ac_header_compiler=no
13894fi
ac1cb8d3 13895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13896echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13897echo "${ECHO_T}$ac_header_compiler" >&6
13898
13899# Is the header present?
13900echo "$as_me:$LINENO: checking $ac_header presence" >&5
13901echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13902cat >conftest.$ac_ext <<_ACEOF
13903/* confdefs.h. */
13904_ACEOF
13905cat confdefs.h >>conftest.$ac_ext
13906cat >>conftest.$ac_ext <<_ACEOF
13907/* end confdefs.h. */
13908#include <$ac_header>
13909_ACEOF
13910if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13911 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13912 ac_status=$?
13913 grep -v '^ *+' conftest.er1 >conftest.err
13914 rm -f conftest.er1
13915 cat conftest.err >&5
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); } >/dev/null; then
13918 if test -s conftest.err; then
13919 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13920 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13921 else
13922 ac_cpp_err=
13923 fi
13924else
13925 ac_cpp_err=yes
13926fi
13927if test -z "$ac_cpp_err"; then
13928 ac_header_preproc=yes
13929else
13930 echo "$as_me: failed program was:" >&5
13931sed 's/^/| /' conftest.$ac_ext >&5
13932
13933 ac_header_preproc=no
13934fi
13935rm -f conftest.err conftest.$ac_ext
13936echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13937echo "${ECHO_T}$ac_header_preproc" >&6
13938
13939# So? What about this header?
ac1cb8d3
VS
13940case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13941 yes:no: )
a848cd7e
SC
13942 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13943echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13945echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13946 ac_header_preproc=yes
a848cd7e 13947 ;;
ac1cb8d3 13948 no:yes:* )
a848cd7e
SC
13949 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13950echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13951 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13952echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13953 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13954echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13955 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13956echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13958echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13959 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13960echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13961 (
13962 cat <<\_ASBOX
ac1cb8d3
VS
13963## ----------------------------------------- ##
13964## Report this to wx-dev@lists.wxwidgets.org ##
13965## ----------------------------------------- ##
a848cd7e
SC
13966_ASBOX
13967 ) |
13968 sed "s/^/$as_me: WARNING: /" >&2
13969 ;;
13970esac
13971echo "$as_me:$LINENO: checking for $ac_header" >&5
13972echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13973if eval "test \"\${$as_ac_Header+set}\" = set"; then
13974 echo $ECHO_N "(cached) $ECHO_C" >&6
13975else
ac1cb8d3 13976 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13977fi
13978echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13979echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13980
13981fi
13982if test `eval echo '${'$as_ac_Header'}'` = yes; then
13983 cat >>confdefs.h <<_ACEOF
13984#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13985_ACEOF
13986
13987fi
13988
13989done
13990
13991
13992for ac_header in malloc.h
13993do
13994as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13995if eval "test \"\${$as_ac_Header+set}\" = set"; then
13996 echo "$as_me:$LINENO: checking for $ac_header" >&5
13997echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13998if eval "test \"\${$as_ac_Header+set}\" = set"; then
13999 echo $ECHO_N "(cached) $ECHO_C" >&6
14000fi
14001echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14002echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14003else
14004 # Is the header compilable?
14005echo "$as_me:$LINENO: checking $ac_header usability" >&5
14006echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14007cat >conftest.$ac_ext <<_ACEOF
14008/* confdefs.h. */
14009_ACEOF
14010cat confdefs.h >>conftest.$ac_ext
14011cat >>conftest.$ac_ext <<_ACEOF
14012/* end confdefs.h. */
14013$ac_includes_default
14014#include <$ac_header>
14015_ACEOF
14016rm -f conftest.$ac_objext
14017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14018 (eval $ac_compile) 2>conftest.er1
a848cd7e 14019 ac_status=$?
ac1cb8d3
VS
14020 grep -v '^ *+' conftest.er1 >conftest.err
14021 rm -f conftest.er1
14022 cat conftest.err >&5
a848cd7e
SC
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); } &&
07158944 14025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14027 (eval $ac_try) 2>&5
14028 ac_status=$?
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); }; } &&
14031 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033 (eval $ac_try) 2>&5
14034 ac_status=$?
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; }; then
14037 ac_header_compiler=yes
14038else
14039 echo "$as_me: failed program was:" >&5
14040sed 's/^/| /' conftest.$ac_ext >&5
14041
14042ac_header_compiler=no
14043fi
ac1cb8d3 14044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14045echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14046echo "${ECHO_T}$ac_header_compiler" >&6
14047
14048# Is the header present?
14049echo "$as_me:$LINENO: checking $ac_header presence" >&5
14050echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14051cat >conftest.$ac_ext <<_ACEOF
14052/* confdefs.h. */
14053_ACEOF
14054cat confdefs.h >>conftest.$ac_ext
14055cat >>conftest.$ac_ext <<_ACEOF
14056/* end confdefs.h. */
14057#include <$ac_header>
14058_ACEOF
14059if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14061 ac_status=$?
14062 grep -v '^ *+' conftest.er1 >conftest.err
14063 rm -f conftest.er1
14064 cat conftest.err >&5
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); } >/dev/null; then
14067 if test -s conftest.err; then
14068 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14070 else
14071 ac_cpp_err=
14072 fi
14073else
14074 ac_cpp_err=yes
14075fi
14076if test -z "$ac_cpp_err"; then
14077 ac_header_preproc=yes
14078else
14079 echo "$as_me: failed program was:" >&5
14080sed 's/^/| /' conftest.$ac_ext >&5
14081
14082 ac_header_preproc=no
14083fi
14084rm -f conftest.err conftest.$ac_ext
14085echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14086echo "${ECHO_T}$ac_header_preproc" >&6
14087
14088# So? What about this header?
ac1cb8d3
VS
14089case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14090 yes:no: )
a848cd7e
SC
14091 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14092echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14094echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14095 ac_header_preproc=yes
a848cd7e 14096 ;;
ac1cb8d3 14097 no:yes:* )
a848cd7e
SC
14098 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14099echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14100 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14101echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14102 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14103echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14104 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14105echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14106 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14107echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14108 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14109echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14110 (
14111 cat <<\_ASBOX
ac1cb8d3
VS
14112## ----------------------------------------- ##
14113## Report this to wx-dev@lists.wxwidgets.org ##
14114## ----------------------------------------- ##
a848cd7e
SC
14115_ASBOX
14116 ) |
14117 sed "s/^/$as_me: WARNING: /" >&2
14118 ;;
14119esac
14120echo "$as_me:$LINENO: checking for $ac_header" >&5
14121echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14122if eval "test \"\${$as_ac_Header+set}\" = set"; then
14123 echo $ECHO_N "(cached) $ECHO_C" >&6
14124else
ac1cb8d3 14125 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14126fi
14127echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14128echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14129
14130fi
14131if test `eval echo '${'$as_ac_Header'}'` = yes; then
14132 cat >>confdefs.h <<_ACEOF
14133#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14134_ACEOF
14135
14136fi
14137
14138done
14139
14140
14141for ac_header in unistd.h
14142do
14143as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14144if eval "test \"\${$as_ac_Header+set}\" = set"; then
14145 echo "$as_me:$LINENO: checking for $ac_header" >&5
14146echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14147if eval "test \"\${$as_ac_Header+set}\" = set"; then
14148 echo $ECHO_N "(cached) $ECHO_C" >&6
14149fi
14150echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14151echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14152else
14153 # Is the header compilable?
14154echo "$as_me:$LINENO: checking $ac_header usability" >&5
14155echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14156cat >conftest.$ac_ext <<_ACEOF
14157/* confdefs.h. */
14158_ACEOF
14159cat confdefs.h >>conftest.$ac_ext
14160cat >>conftest.$ac_ext <<_ACEOF
14161/* end confdefs.h. */
14162$ac_includes_default
14163#include <$ac_header>
14164_ACEOF
14165rm -f conftest.$ac_objext
14166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14167 (eval $ac_compile) 2>conftest.er1
a848cd7e 14168 ac_status=$?
ac1cb8d3
VS
14169 grep -v '^ *+' conftest.er1 >conftest.err
14170 rm -f conftest.er1
14171 cat conftest.err >&5
a848cd7e
SC
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); } &&
07158944 14174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14176 (eval $ac_try) 2>&5
14177 ac_status=$?
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; } &&
14180 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14182 (eval $ac_try) 2>&5
14183 ac_status=$?
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); }; }; then
14186 ac_header_compiler=yes
14187else
14188 echo "$as_me: failed program was:" >&5
14189sed 's/^/| /' conftest.$ac_ext >&5
14190
14191ac_header_compiler=no
14192fi
ac1cb8d3 14193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14194echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14195echo "${ECHO_T}$ac_header_compiler" >&6
14196
14197# Is the header present?
14198echo "$as_me:$LINENO: checking $ac_header presence" >&5
14199echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14200cat >conftest.$ac_ext <<_ACEOF
14201/* confdefs.h. */
14202_ACEOF
14203cat confdefs.h >>conftest.$ac_ext
14204cat >>conftest.$ac_ext <<_ACEOF
14205/* end confdefs.h. */
14206#include <$ac_header>
14207_ACEOF
14208if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14209 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14210 ac_status=$?
14211 grep -v '^ *+' conftest.er1 >conftest.err
14212 rm -f conftest.er1
14213 cat conftest.err >&5
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); } >/dev/null; then
14216 if test -s conftest.err; then
14217 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14218 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14219 else
14220 ac_cpp_err=
14221 fi
14222else
14223 ac_cpp_err=yes
14224fi
14225if test -z "$ac_cpp_err"; then
14226 ac_header_preproc=yes
14227else
14228 echo "$as_me: failed program was:" >&5
14229sed 's/^/| /' conftest.$ac_ext >&5
14230
14231 ac_header_preproc=no
14232fi
14233rm -f conftest.err conftest.$ac_ext
14234echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14235echo "${ECHO_T}$ac_header_preproc" >&6
14236
14237# So? What about this header?
ac1cb8d3
VS
14238case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14239 yes:no: )
a848cd7e
SC
14240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14241echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14243echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14244 ac_header_preproc=yes
a848cd7e 14245 ;;
ac1cb8d3 14246 no:yes:* )
a848cd7e
SC
14247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14248echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14250echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14252echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14253 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14254echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14256echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14257 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14258echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14259 (
14260 cat <<\_ASBOX
ac1cb8d3
VS
14261## ----------------------------------------- ##
14262## Report this to wx-dev@lists.wxwidgets.org ##
14263## ----------------------------------------- ##
a848cd7e
SC
14264_ASBOX
14265 ) |
14266 sed "s/^/$as_me: WARNING: /" >&2
14267 ;;
14268esac
14269echo "$as_me:$LINENO: checking for $ac_header" >&5
14270echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14271if eval "test \"\${$as_ac_Header+set}\" = set"; then
14272 echo $ECHO_N "(cached) $ECHO_C" >&6
14273else
ac1cb8d3 14274 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14275fi
14276echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14277echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14278
14279fi
14280if test `eval echo '${'$as_ac_Header'}'` = yes; then
14281 cat >>confdefs.h <<_ACEOF
14282#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14283_ACEOF
14284
14285fi
14286
14287done
14288
14289
14290for ac_header in wchar.h
14291do
14292as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14293if eval "test \"\${$as_ac_Header+set}\" = set"; then
14294 echo "$as_me:$LINENO: checking for $ac_header" >&5
14295echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14296if eval "test \"\${$as_ac_Header+set}\" = set"; then
14297 echo $ECHO_N "(cached) $ECHO_C" >&6
14298fi
14299echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14300echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14301else
14302 # Is the header compilable?
14303echo "$as_me:$LINENO: checking $ac_header usability" >&5
14304echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14305cat >conftest.$ac_ext <<_ACEOF
14306/* confdefs.h. */
14307_ACEOF
14308cat confdefs.h >>conftest.$ac_ext
14309cat >>conftest.$ac_ext <<_ACEOF
14310/* end confdefs.h. */
14311$ac_includes_default
14312#include <$ac_header>
14313_ACEOF
14314rm -f conftest.$ac_objext
14315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14316 (eval $ac_compile) 2>conftest.er1
a848cd7e 14317 ac_status=$?
ac1cb8d3
VS
14318 grep -v '^ *+' conftest.er1 >conftest.err
14319 rm -f conftest.er1
14320 cat conftest.err >&5
a848cd7e
SC
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); } &&
07158944 14323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14325 (eval $ac_try) 2>&5
14326 ac_status=$?
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); }; } &&
14329 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331 (eval $ac_try) 2>&5
14332 ac_status=$?
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; }; then
14335 ac_header_compiler=yes
14336else
14337 echo "$as_me: failed program was:" >&5
14338sed 's/^/| /' conftest.$ac_ext >&5
14339
14340ac_header_compiler=no
14341fi
ac1cb8d3 14342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14343echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14344echo "${ECHO_T}$ac_header_compiler" >&6
14345
14346# Is the header present?
14347echo "$as_me:$LINENO: checking $ac_header presence" >&5
14348echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14349cat >conftest.$ac_ext <<_ACEOF
14350/* confdefs.h. */
14351_ACEOF
14352cat confdefs.h >>conftest.$ac_ext
14353cat >>conftest.$ac_ext <<_ACEOF
14354/* end confdefs.h. */
14355#include <$ac_header>
14356_ACEOF
14357if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14359 ac_status=$?
14360 grep -v '^ *+' conftest.er1 >conftest.err
14361 rm -f conftest.er1
14362 cat conftest.err >&5
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); } >/dev/null; then
14365 if test -s conftest.err; then
14366 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14368 else
14369 ac_cpp_err=
14370 fi
14371else
14372 ac_cpp_err=yes
14373fi
14374if test -z "$ac_cpp_err"; then
14375 ac_header_preproc=yes
14376else
14377 echo "$as_me: failed program was:" >&5
14378sed 's/^/| /' conftest.$ac_ext >&5
14379
14380 ac_header_preproc=no
14381fi
14382rm -f conftest.err conftest.$ac_ext
14383echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14384echo "${ECHO_T}$ac_header_preproc" >&6
14385
14386# So? What about this header?
ac1cb8d3
VS
14387case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14388 yes:no: )
a848cd7e
SC
14389 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14390echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14392echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14393 ac_header_preproc=yes
a848cd7e 14394 ;;
ac1cb8d3 14395 no:yes:* )
a848cd7e
SC
14396 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14397echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14398 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14399echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14400 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14401echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14402 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14403echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14405echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14406 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14407echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14408 (
14409 cat <<\_ASBOX
ac1cb8d3
VS
14410## ----------------------------------------- ##
14411## Report this to wx-dev@lists.wxwidgets.org ##
14412## ----------------------------------------- ##
a848cd7e
SC
14413_ASBOX
14414 ) |
14415 sed "s/^/$as_me: WARNING: /" >&2
14416 ;;
14417esac
14418echo "$as_me:$LINENO: checking for $ac_header" >&5
14419echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14420if eval "test \"\${$as_ac_Header+set}\" = set"; then
14421 echo $ECHO_N "(cached) $ECHO_C" >&6
14422else
ac1cb8d3 14423 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14424fi
14425echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14426echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14427
14428fi
14429if test `eval echo '${'$as_ac_Header'}'` = yes; then
14430 cat >>confdefs.h <<_ACEOF
14431#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14432_ACEOF
14433
14434fi
14435
14436done
14437
14438
14439if test "$ac_cv_header_wchar_h" != "yes"; then
14440
14441for ac_header in wcstr.h
14442do
14443as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14444if eval "test \"\${$as_ac_Header+set}\" = set"; then
14445 echo "$as_me:$LINENO: checking for $ac_header" >&5
14446echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14447if eval "test \"\${$as_ac_Header+set}\" = set"; then
14448 echo $ECHO_N "(cached) $ECHO_C" >&6
14449fi
14450echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14451echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14452else
14453 # Is the header compilable?
14454echo "$as_me:$LINENO: checking $ac_header usability" >&5
14455echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14456cat >conftest.$ac_ext <<_ACEOF
14457/* confdefs.h. */
14458_ACEOF
14459cat confdefs.h >>conftest.$ac_ext
14460cat >>conftest.$ac_ext <<_ACEOF
14461/* end confdefs.h. */
14462$ac_includes_default
14463#include <$ac_header>
14464_ACEOF
14465rm -f conftest.$ac_objext
14466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14467 (eval $ac_compile) 2>conftest.er1
a848cd7e 14468 ac_status=$?
ac1cb8d3
VS
14469 grep -v '^ *+' conftest.er1 >conftest.err
14470 rm -f conftest.er1
14471 cat conftest.err >&5
a848cd7e
SC
14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473 (exit $ac_status); } &&
07158944 14474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14476 (eval $ac_try) 2>&5
14477 ac_status=$?
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); }; } &&
14480 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14482 (eval $ac_try) 2>&5
14483 ac_status=$?
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); }; }; then
14486 ac_header_compiler=yes
14487else
14488 echo "$as_me: failed program was:" >&5
14489sed 's/^/| /' conftest.$ac_ext >&5
14490
14491ac_header_compiler=no
14492fi
ac1cb8d3 14493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14494echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14495echo "${ECHO_T}$ac_header_compiler" >&6
14496
14497# Is the header present?
14498echo "$as_me:$LINENO: checking $ac_header presence" >&5
14499echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14500cat >conftest.$ac_ext <<_ACEOF
14501/* confdefs.h. */
14502_ACEOF
14503cat confdefs.h >>conftest.$ac_ext
14504cat >>conftest.$ac_ext <<_ACEOF
14505/* end confdefs.h. */
14506#include <$ac_header>
14507_ACEOF
14508if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14509 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14510 ac_status=$?
14511 grep -v '^ *+' conftest.er1 >conftest.err
14512 rm -f conftest.er1
14513 cat conftest.err >&5
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); } >/dev/null; then
14516 if test -s conftest.err; then
14517 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14518 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14519 else
14520 ac_cpp_err=
14521 fi
14522else
14523 ac_cpp_err=yes
14524fi
14525if test -z "$ac_cpp_err"; then
14526 ac_header_preproc=yes
14527else
14528 echo "$as_me: failed program was:" >&5
14529sed 's/^/| /' conftest.$ac_ext >&5
14530
14531 ac_header_preproc=no
14532fi
14533rm -f conftest.err conftest.$ac_ext
14534echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14535echo "${ECHO_T}$ac_header_preproc" >&6
14536
14537# So? What about this header?
ac1cb8d3
VS
14538case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14539 yes:no: )
a848cd7e
SC
14540 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14541echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14543echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14544 ac_header_preproc=yes
a848cd7e 14545 ;;
ac1cb8d3 14546 no:yes:* )
a848cd7e
SC
14547 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14548echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14549 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14550echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14551 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14552echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14553 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14554echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14556echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14557 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14558echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14559 (
14560 cat <<\_ASBOX
ac1cb8d3
VS
14561## ----------------------------------------- ##
14562## Report this to wx-dev@lists.wxwidgets.org ##
14563## ----------------------------------------- ##
a848cd7e
SC
14564_ASBOX
14565 ) |
14566 sed "s/^/$as_me: WARNING: /" >&2
14567 ;;
14568esac
14569echo "$as_me:$LINENO: checking for $ac_header" >&5
14570echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14571if eval "test \"\${$as_ac_Header+set}\" = set"; then
14572 echo $ECHO_N "(cached) $ECHO_C" >&6
14573else
ac1cb8d3 14574 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14575fi
14576echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14577echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14578
14579fi
14580if test `eval echo '${'$as_ac_Header'}'` = yes; then
14581 cat >>confdefs.h <<_ACEOF
14582#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14583_ACEOF
14584
14585fi
14586
14587done
14588
14589fi
14590
14591
14592for ac_header in fnmatch.h
14593do
14594as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14595if eval "test \"\${$as_ac_Header+set}\" = set"; then
14596 echo "$as_me:$LINENO: checking for $ac_header" >&5
14597echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14598if eval "test \"\${$as_ac_Header+set}\" = set"; then
14599 echo $ECHO_N "(cached) $ECHO_C" >&6
14600fi
14601echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14602echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14603else
14604 # Is the header compilable?
14605echo "$as_me:$LINENO: checking $ac_header usability" >&5
14606echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14607cat >conftest.$ac_ext <<_ACEOF
14608/* confdefs.h. */
14609_ACEOF
14610cat confdefs.h >>conftest.$ac_ext
14611cat >>conftest.$ac_ext <<_ACEOF
14612/* end confdefs.h. */
14613$ac_includes_default
14614#include <$ac_header>
14615_ACEOF
14616rm -f conftest.$ac_objext
14617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14618 (eval $ac_compile) 2>conftest.er1
a848cd7e 14619 ac_status=$?
ac1cb8d3
VS
14620 grep -v '^ *+' conftest.er1 >conftest.err
14621 rm -f conftest.er1
14622 cat conftest.err >&5
a848cd7e
SC
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); } &&
07158944 14625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14627 (eval $ac_try) 2>&5
14628 ac_status=$?
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); }; } &&
14631 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14633 (eval $ac_try) 2>&5
14634 ac_status=$?
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); }; }; then
14637 ac_header_compiler=yes
14638else
14639 echo "$as_me: failed program was:" >&5
14640sed 's/^/| /' conftest.$ac_ext >&5
14641
14642ac_header_compiler=no
14643fi
ac1cb8d3 14644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14645echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14646echo "${ECHO_T}$ac_header_compiler" >&6
14647
14648# Is the header present?
14649echo "$as_me:$LINENO: checking $ac_header presence" >&5
14650echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14651cat >conftest.$ac_ext <<_ACEOF
14652/* confdefs.h. */
14653_ACEOF
14654cat confdefs.h >>conftest.$ac_ext
14655cat >>conftest.$ac_ext <<_ACEOF
14656/* end confdefs.h. */
14657#include <$ac_header>
14658_ACEOF
14659if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14660 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14661 ac_status=$?
14662 grep -v '^ *+' conftest.er1 >conftest.err
14663 rm -f conftest.er1
14664 cat conftest.err >&5
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); } >/dev/null; then
14667 if test -s conftest.err; then
14668 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14669 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14670 else
14671 ac_cpp_err=
14672 fi
14673else
14674 ac_cpp_err=yes
14675fi
14676if test -z "$ac_cpp_err"; then
14677 ac_header_preproc=yes
14678else
14679 echo "$as_me: failed program was:" >&5
14680sed 's/^/| /' conftest.$ac_ext >&5
14681
14682 ac_header_preproc=no
14683fi
14684rm -f conftest.err conftest.$ac_ext
14685echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14686echo "${ECHO_T}$ac_header_preproc" >&6
14687
14688# So? What about this header?
ac1cb8d3
VS
14689case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14690 yes:no: )
a848cd7e
SC
14691 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14692echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14694echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14695 ac_header_preproc=yes
a848cd7e 14696 ;;
ac1cb8d3 14697 no:yes:* )
a848cd7e
SC
14698 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14699echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14700 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14701echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14702 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14703echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14704 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14705echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14707echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14708 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14709echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14710 (
14711 cat <<\_ASBOX
ac1cb8d3
VS
14712## ----------------------------------------- ##
14713## Report this to wx-dev@lists.wxwidgets.org ##
14714## ----------------------------------------- ##
a848cd7e
SC
14715_ASBOX
14716 ) |
14717 sed "s/^/$as_me: WARNING: /" >&2
14718 ;;
14719esac
14720echo "$as_me:$LINENO: checking for $ac_header" >&5
14721echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14722if eval "test \"\${$as_ac_Header+set}\" = set"; then
14723 echo $ECHO_N "(cached) $ECHO_C" >&6
14724else
ac1cb8d3 14725 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14726fi
14727echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14728echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14729
14730fi
14731if test `eval echo '${'$as_ac_Header'}'` = yes; then
14732 cat >>confdefs.h <<_ACEOF
14733#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14734_ACEOF
14735
14736fi
14737
14738done
14739
14740
14741if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
14742
14743for ac_func in fnmatch
14744do
14745as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14746echo "$as_me:$LINENO: checking for $ac_func" >&5
14747echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14748if eval "test \"\${$as_ac_var+set}\" = set"; then
14749 echo $ECHO_N "(cached) $ECHO_C" >&6
14750else
14751 cat >conftest.$ac_ext <<_ACEOF
14752/* confdefs.h. */
14753_ACEOF
14754cat confdefs.h >>conftest.$ac_ext
14755cat >>conftest.$ac_ext <<_ACEOF
14756/* end confdefs.h. */
ac1cb8d3
VS
14757/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14759#define $ac_func innocuous_$ac_func
14760
a848cd7e
SC
14761/* System header to define __stub macros and hopefully few prototypes,
14762 which can conflict with char $ac_func (); below.
14763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14764 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 14765
a848cd7e
SC
14766#ifdef __STDC__
14767# include <limits.h>
14768#else
14769# include <assert.h>
14770#endif
ac1cb8d3
VS
14771
14772#undef $ac_func
14773
a848cd7e
SC
14774/* Override any gcc2 internal prototype to avoid an error. */
14775#ifdef __cplusplus
14776extern "C"
14777{
14778#endif
14779/* We use char because int might match the return type of a gcc2
14780 builtin and then its argument prototype would still apply. */
14781char $ac_func ();
14782/* The GNU C library defines this for functions which it implements
14783 to always fail with ENOSYS. Some functions are actually named
14784 something starting with __ and the normal name is an alias. */
14785#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14786choke me
14787#else
14788char (*f) () = $ac_func;
14789#endif
14790#ifdef __cplusplus
14791}
14792#endif
14793
14794int
14795main ()
14796{
14797return f != $ac_func;
14798 ;
14799 return 0;
14800}
14801_ACEOF
14802rm -f conftest.$ac_objext conftest$ac_exeext
14803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14804 (eval $ac_link) 2>conftest.er1
a848cd7e 14805 ac_status=$?
ac1cb8d3
VS
14806 grep -v '^ *+' conftest.er1 >conftest.err
14807 rm -f conftest.er1
14808 cat conftest.err >&5
a848cd7e
SC
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); } &&
07158944 14811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14813 (eval $ac_try) 2>&5
14814 ac_status=$?
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); }; } &&
14817 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14819 (eval $ac_try) 2>&5
14820 ac_status=$?
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); }; }; then
14823 eval "$as_ac_var=yes"
14824else
14825 echo "$as_me: failed program was:" >&5
14826sed 's/^/| /' conftest.$ac_ext >&5
14827
14828eval "$as_ac_var=no"
14829fi
ac1cb8d3
VS
14830rm -f conftest.err conftest.$ac_objext \
14831 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14832fi
14833echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14834echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14835if test `eval echo '${'$as_ac_var'}'` = yes; then
14836 cat >>confdefs.h <<_ACEOF
14837#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14838_ACEOF
14839
14840fi
14841done
14842
14843fi
14844
14845
14846for ac_header in langinfo.h
14847do
14848as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14849if eval "test \"\${$as_ac_Header+set}\" = set"; then
14850 echo "$as_me:$LINENO: checking for $ac_header" >&5
14851echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14852if eval "test \"\${$as_ac_Header+set}\" = set"; then
14853 echo $ECHO_N "(cached) $ECHO_C" >&6
14854fi
14855echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14856echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14857else
14858 # Is the header compilable?
14859echo "$as_me:$LINENO: checking $ac_header usability" >&5
14860echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14861cat >conftest.$ac_ext <<_ACEOF
14862/* confdefs.h. */
14863_ACEOF
14864cat confdefs.h >>conftest.$ac_ext
14865cat >>conftest.$ac_ext <<_ACEOF
14866/* end confdefs.h. */
14867$ac_includes_default
14868#include <$ac_header>
14869_ACEOF
14870rm -f conftest.$ac_objext
14871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14872 (eval $ac_compile) 2>conftest.er1
a848cd7e 14873 ac_status=$?
ac1cb8d3
VS
14874 grep -v '^ *+' conftest.er1 >conftest.err
14875 rm -f conftest.er1
14876 cat conftest.err >&5
a848cd7e
SC
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); } &&
07158944 14879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14881 (eval $ac_try) 2>&5
14882 ac_status=$?
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); }; } &&
14885 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14887 (eval $ac_try) 2>&5
14888 ac_status=$?
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); }; }; then
14891 ac_header_compiler=yes
14892else
14893 echo "$as_me: failed program was:" >&5
14894sed 's/^/| /' conftest.$ac_ext >&5
14895
14896ac_header_compiler=no
14897fi
ac1cb8d3 14898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14899echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14900echo "${ECHO_T}$ac_header_compiler" >&6
14901
14902# Is the header present?
14903echo "$as_me:$LINENO: checking $ac_header presence" >&5
14904echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14905cat >conftest.$ac_ext <<_ACEOF
14906/* confdefs.h. */
14907_ACEOF
14908cat confdefs.h >>conftest.$ac_ext
14909cat >>conftest.$ac_ext <<_ACEOF
14910/* end confdefs.h. */
14911#include <$ac_header>
14912_ACEOF
14913if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14915 ac_status=$?
14916 grep -v '^ *+' conftest.er1 >conftest.err
14917 rm -f conftest.er1
14918 cat conftest.err >&5
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); } >/dev/null; then
14921 if test -s conftest.err; then
14922 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14923 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14924 else
14925 ac_cpp_err=
14926 fi
14927else
14928 ac_cpp_err=yes
14929fi
14930if test -z "$ac_cpp_err"; then
14931 ac_header_preproc=yes
14932else
14933 echo "$as_me: failed program was:" >&5
14934sed 's/^/| /' conftest.$ac_ext >&5
14935
14936 ac_header_preproc=no
14937fi
14938rm -f conftest.err conftest.$ac_ext
14939echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14940echo "${ECHO_T}$ac_header_preproc" >&6
14941
14942# So? What about this header?
ac1cb8d3
VS
14943case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14944 yes:no: )
a848cd7e
SC
14945 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14946echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14948echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14949 ac_header_preproc=yes
a848cd7e 14950 ;;
ac1cb8d3 14951 no:yes:* )
a848cd7e
SC
14952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14953echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14955echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14956 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14957echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14958 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14959echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14961echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14962 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14963echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14964 (
14965 cat <<\_ASBOX
ac1cb8d3
VS
14966## ----------------------------------------- ##
14967## Report this to wx-dev@lists.wxwidgets.org ##
14968## ----------------------------------------- ##
a848cd7e
SC
14969_ASBOX
14970 ) |
14971 sed "s/^/$as_me: WARNING: /" >&2
14972 ;;
14973esac
14974echo "$as_me:$LINENO: checking for $ac_header" >&5
14975echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14976if eval "test \"\${$as_ac_Header+set}\" = set"; then
14977 echo $ECHO_N "(cached) $ECHO_C" >&6
14978else
ac1cb8d3 14979 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14980fi
14981echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14982echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14983
14984fi
14985if test `eval echo '${'$as_ac_Header'}'` = yes; then
14986 cat >>confdefs.h <<_ACEOF
14987#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14988_ACEOF
14989
14990fi
14991
14992done
14993
14994
14995case "${host}" in
14996 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
14997 if test $ac_cv_header_langinfo_h = "yes" \
14998 -a \( "$wx_cv_gccversion" = "EMX2" \
14999 -o "$wx_cv_gccversion" = "EMX3" \
15000 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
15001 LIBS="$LIBS -lintl"
15002 fi
15003 ;;
15004esac
15005
15006if test "$wxUSE_GUI" = "yes"; then
15007 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
15008
15009for ac_header in X11/Xlib.h
15010do
15011as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15012if eval "test \"\${$as_ac_Header+set}\" = set"; then
15013 echo "$as_me:$LINENO: checking for $ac_header" >&5
15014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15015if eval "test \"\${$as_ac_Header+set}\" = set"; then
15016 echo $ECHO_N "(cached) $ECHO_C" >&6
15017fi
15018echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15019echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15020else
15021 # Is the header compilable?
15022echo "$as_me:$LINENO: checking $ac_header usability" >&5
15023echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15024cat >conftest.$ac_ext <<_ACEOF
15025/* confdefs.h. */
15026_ACEOF
15027cat confdefs.h >>conftest.$ac_ext
15028cat >>conftest.$ac_ext <<_ACEOF
15029/* end confdefs.h. */
15030$ac_includes_default
15031#include <$ac_header>
15032_ACEOF
15033rm -f conftest.$ac_objext
15034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15035 (eval $ac_compile) 2>conftest.er1
a848cd7e 15036 ac_status=$?
ac1cb8d3
VS
15037 grep -v '^ *+' conftest.er1 >conftest.err
15038 rm -f conftest.er1
15039 cat conftest.err >&5
a848cd7e
SC
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); } &&
07158944 15042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15044 (eval $ac_try) 2>&5
15045 ac_status=$?
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); }; } &&
15048 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15050 (eval $ac_try) 2>&5
15051 ac_status=$?
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); }; }; then
15054 ac_header_compiler=yes
15055else
15056 echo "$as_me: failed program was:" >&5
15057sed 's/^/| /' conftest.$ac_ext >&5
15058
15059ac_header_compiler=no
15060fi
ac1cb8d3 15061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15062echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15063echo "${ECHO_T}$ac_header_compiler" >&6
15064
15065# Is the header present?
15066echo "$as_me:$LINENO: checking $ac_header presence" >&5
15067echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15068cat >conftest.$ac_ext <<_ACEOF
15069/* confdefs.h. */
15070_ACEOF
15071cat confdefs.h >>conftest.$ac_ext
15072cat >>conftest.$ac_ext <<_ACEOF
15073/* end confdefs.h. */
15074#include <$ac_header>
15075_ACEOF
15076if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15078 ac_status=$?
15079 grep -v '^ *+' conftest.er1 >conftest.err
15080 rm -f conftest.er1
15081 cat conftest.err >&5
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); } >/dev/null; then
15084 if test -s conftest.err; then
15085 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15087 else
15088 ac_cpp_err=
15089 fi
15090else
15091 ac_cpp_err=yes
15092fi
15093if test -z "$ac_cpp_err"; then
15094 ac_header_preproc=yes
15095else
15096 echo "$as_me: failed program was:" >&5
15097sed 's/^/| /' conftest.$ac_ext >&5
15098
15099 ac_header_preproc=no
15100fi
15101rm -f conftest.err conftest.$ac_ext
15102echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15103echo "${ECHO_T}$ac_header_preproc" >&6
15104
15105# So? What about this header?
ac1cb8d3
VS
15106case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15107 yes:no: )
a848cd7e
SC
15108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15109echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15111echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15112 ac_header_preproc=yes
a848cd7e 15113 ;;
ac1cb8d3 15114 no:yes:* )
a848cd7e
SC
15115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15116echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15118echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15120echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15122echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15124echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15126echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15127 (
15128 cat <<\_ASBOX
ac1cb8d3
VS
15129## ----------------------------------------- ##
15130## Report this to wx-dev@lists.wxwidgets.org ##
15131## ----------------------------------------- ##
a848cd7e
SC
15132_ASBOX
15133 ) |
15134 sed "s/^/$as_me: WARNING: /" >&2
15135 ;;
15136esac
15137echo "$as_me:$LINENO: checking for $ac_header" >&5
15138echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15139if eval "test \"\${$as_ac_Header+set}\" = set"; then
15140 echo $ECHO_N "(cached) $ECHO_C" >&6
15141else
ac1cb8d3 15142 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15143fi
15144echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15145echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15146
15147fi
15148if test `eval echo '${'$as_ac_Header'}'` = yes; then
15149 cat >>confdefs.h <<_ACEOF
15150#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15151_ACEOF
15152
15153fi
15154
15155done
15156
15157
15158for ac_header in X11/XKBlib.h
15159do
15160as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15161echo "$as_me:$LINENO: checking for $ac_header" >&5
15162echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15163if eval "test \"\${$as_ac_Header+set}\" = set"; then
15164 echo $ECHO_N "(cached) $ECHO_C" >&6
15165else
15166 cat >conftest.$ac_ext <<_ACEOF
15167/* confdefs.h. */
15168_ACEOF
15169cat confdefs.h >>conftest.$ac_ext
15170cat >>conftest.$ac_ext <<_ACEOF
15171/* end confdefs.h. */
15172
15173 #if HAVE_X11_XLIB_H
15174 #include <X11/Xlib.h>
15175 #endif
15176
15177
15178#include <$ac_header>
15179_ACEOF
15180rm -f conftest.$ac_objext
15181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15182 (eval $ac_compile) 2>conftest.er1
a848cd7e 15183 ac_status=$?
ac1cb8d3
VS
15184 grep -v '^ *+' conftest.er1 >conftest.err
15185 rm -f conftest.er1
15186 cat conftest.err >&5
a848cd7e
SC
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); } &&
07158944 15189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15191 (eval $ac_try) 2>&5
15192 ac_status=$?
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); }; } &&
15195 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15197 (eval $ac_try) 2>&5
15198 ac_status=$?
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); }; }; then
15201 eval "$as_ac_Header=yes"
15202else
15203 echo "$as_me: failed program was:" >&5
15204sed 's/^/| /' conftest.$ac_ext >&5
15205
15206eval "$as_ac_Header=no"
15207fi
ac1cb8d3 15208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15209fi
15210echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15211echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15212if test `eval echo '${'$as_ac_Header'}'` = yes; then
15213 cat >>confdefs.h <<_ACEOF
15214#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15215_ACEOF
15216
15217fi
15218
15219done
15220
15221 fi
15222fi
15223
15224
15225echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15226echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15227if test "${ac_cv_c_const+set}" = set; then
15228 echo $ECHO_N "(cached) $ECHO_C" >&6
15229else
15230 cat >conftest.$ac_ext <<_ACEOF
15231/* confdefs.h. */
15232_ACEOF
15233cat confdefs.h >>conftest.$ac_ext
15234cat >>conftest.$ac_ext <<_ACEOF
15235/* end confdefs.h. */
15236
15237int
15238main ()
15239{
15240/* FIXME: Include the comments suggested by Paul. */
15241#ifndef __cplusplus
15242 /* Ultrix mips cc rejects this. */
15243 typedef int charset[2];
15244 const charset x;
15245 /* SunOS 4.1.1 cc rejects this. */
15246 char const *const *ccp;
15247 char **p;
15248 /* NEC SVR4.0.2 mips cc rejects this. */
15249 struct point {int x, y;};
15250 static struct point const zero = {0,0};
15251 /* AIX XL C 1.02.0.0 rejects this.
15252 It does not let you subtract one const X* pointer from another in
15253 an arm of an if-expression whose if-part is not a constant
15254 expression */
15255 const char *g = "string";
15256 ccp = &g + (g ? g-g : 0);
15257 /* HPUX 7.0 cc rejects these. */
15258 ++ccp;
15259 p = (char**) ccp;
15260 ccp = (char const *const *) p;
15261 { /* SCO 3.2v4 cc rejects this. */
15262 char *t;
15263 char const *s = 0 ? (char *) 0 : (char const *) 0;
15264
15265 *t++ = 0;
15266 }
15267 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15268 int x[] = {25, 17};
15269 const int *foo = &x[0];
15270 ++foo;
15271 }
15272 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15273 typedef const int *iptr;
15274 iptr p = 0;
15275 ++p;
15276 }
15277 { /* AIX XL C 1.02.0.0 rejects this saying
15278 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15279 struct s { int j; const int *ap[3]; };
15280 struct s *b; b->j = 5;
15281 }
15282 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15283 const int foo = 10;
15284 }
15285#endif
15286
15287 ;
15288 return 0;
15289}
15290_ACEOF
15291rm -f conftest.$ac_objext
15292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15293 (eval $ac_compile) 2>conftest.er1
a848cd7e 15294 ac_status=$?
ac1cb8d3
VS
15295 grep -v '^ *+' conftest.er1 >conftest.err
15296 rm -f conftest.er1
15297 cat conftest.err >&5
a848cd7e
SC
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); } &&
07158944 15300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15302 (eval $ac_try) 2>&5
15303 ac_status=$?
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); }; } &&
15306 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15308 (eval $ac_try) 2>&5
15309 ac_status=$?
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); }; }; then
15312 ac_cv_c_const=yes
15313else
15314 echo "$as_me: failed program was:" >&5
15315sed 's/^/| /' conftest.$ac_ext >&5
15316
15317ac_cv_c_const=no
15318fi
ac1cb8d3 15319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15320fi
15321echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15322echo "${ECHO_T}$ac_cv_c_const" >&6
15323if test $ac_cv_c_const = no; then
15324
15325cat >>confdefs.h <<\_ACEOF
15326#define const
15327_ACEOF
15328
15329fi
15330
15331echo "$as_me:$LINENO: checking for inline" >&5
15332echo $ECHO_N "checking for inline... $ECHO_C" >&6
15333if test "${ac_cv_c_inline+set}" = set; then
15334 echo $ECHO_N "(cached) $ECHO_C" >&6
15335else
15336 ac_cv_c_inline=no
15337for ac_kw in inline __inline__ __inline; do
15338 cat >conftest.$ac_ext <<_ACEOF
15339/* confdefs.h. */
15340_ACEOF
15341cat confdefs.h >>conftest.$ac_ext
15342cat >>conftest.$ac_ext <<_ACEOF
15343/* end confdefs.h. */
15344#ifndef __cplusplus
15345typedef int foo_t;
15346static $ac_kw foo_t static_foo () {return 0; }
15347$ac_kw foo_t foo () {return 0; }
15348#endif
15349
15350_ACEOF
15351rm -f conftest.$ac_objext
15352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15353 (eval $ac_compile) 2>conftest.er1
a848cd7e 15354 ac_status=$?
ac1cb8d3
VS
15355 grep -v '^ *+' conftest.er1 >conftest.err
15356 rm -f conftest.er1
15357 cat conftest.err >&5
a848cd7e
SC
15358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 (exit $ac_status); } &&
07158944 15360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15362 (eval $ac_try) 2>&5
15363 ac_status=$?
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); }; } &&
15366 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15368 (eval $ac_try) 2>&5
15369 ac_status=$?
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); }; }; then
15372 ac_cv_c_inline=$ac_kw; break
15373else
15374 echo "$as_me: failed program was:" >&5
15375sed 's/^/| /' conftest.$ac_ext >&5
15376
15377fi
ac1cb8d3 15378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15379done
15380
15381fi
15382echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15383echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
15384
15385
a848cd7e
SC
15386case $ac_cv_c_inline in
15387 inline | yes) ;;
ac1cb8d3
VS
15388 *)
15389 case $ac_cv_c_inline in
15390 no) ac_val=;;
15391 *) ac_val=$ac_cv_c_inline;;
15392 esac
15393 cat >>confdefs.h <<_ACEOF
15394#ifndef __cplusplus
15395#define inline $ac_val
15396#endif
de59c161 15397_ACEOF
ac1cb8d3 15398 ;;
a848cd7e
SC
15399esac
15400
15401
15402echo "$as_me:$LINENO: checking for char" >&5
15403echo $ECHO_N "checking for char... $ECHO_C" >&6
15404if test "${ac_cv_type_char+set}" = set; then
15405 echo $ECHO_N "(cached) $ECHO_C" >&6
15406else
15407 cat >conftest.$ac_ext <<_ACEOF
15408/* confdefs.h. */
15409_ACEOF
15410cat confdefs.h >>conftest.$ac_ext
15411cat >>conftest.$ac_ext <<_ACEOF
15412/* end confdefs.h. */
15413$ac_includes_default
15414int
15415main ()
15416{
15417if ((char *) 0)
15418 return 0;
15419if (sizeof (char))
15420 return 0;
15421 ;
15422 return 0;
15423}
15424_ACEOF
15425rm -f conftest.$ac_objext
15426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15427 (eval $ac_compile) 2>conftest.er1
a848cd7e 15428 ac_status=$?
ac1cb8d3
VS
15429 grep -v '^ *+' conftest.er1 >conftest.err
15430 rm -f conftest.er1
15431 cat conftest.err >&5
a848cd7e
SC
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); } &&
07158944 15434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15436 (eval $ac_try) 2>&5
15437 ac_status=$?
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); }; } &&
15440 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15442 (eval $ac_try) 2>&5
15443 ac_status=$?
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); }; }; then
15446 ac_cv_type_char=yes
15447else
15448 echo "$as_me: failed program was:" >&5
15449sed 's/^/| /' conftest.$ac_ext >&5
15450
15451ac_cv_type_char=no
15452fi
ac1cb8d3 15453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15454fi
15455echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15456echo "${ECHO_T}$ac_cv_type_char" >&6
15457
15458echo "$as_me:$LINENO: checking size of char" >&5
15459echo $ECHO_N "checking size of char... $ECHO_C" >&6
15460if test "${ac_cv_sizeof_char+set}" = set; then
15461 echo $ECHO_N "(cached) $ECHO_C" >&6
15462else
15463 if test "$ac_cv_type_char" = yes; then
15464 # The cast to unsigned long works around a bug in the HP C Compiler
15465 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15466 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15467 # This bug is HP SR number 8606223364.
15468 if test "$cross_compiling" = yes; then
15469 # Depending upon the size, compute the lo and hi bounds.
15470cat >conftest.$ac_ext <<_ACEOF
15471/* confdefs.h. */
15472_ACEOF
15473cat confdefs.h >>conftest.$ac_ext
15474cat >>conftest.$ac_ext <<_ACEOF
15475/* end confdefs.h. */
15476$ac_includes_default
15477int
15478main ()
15479{
15480static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15481test_array [0] = 0
15482
15483 ;
15484 return 0;
15485}
15486_ACEOF
15487rm -f conftest.$ac_objext
15488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15489 (eval $ac_compile) 2>conftest.er1
a848cd7e 15490 ac_status=$?
ac1cb8d3
VS
15491 grep -v '^ *+' conftest.er1 >conftest.err
15492 rm -f conftest.er1
15493 cat conftest.err >&5
a848cd7e
SC
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); } &&
07158944 15496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15498 (eval $ac_try) 2>&5
15499 ac_status=$?
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); }; } &&
15502 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15504 (eval $ac_try) 2>&5
15505 ac_status=$?
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); }; }; then
15508 ac_lo=0 ac_mid=0
15509 while :; do
15510 cat >conftest.$ac_ext <<_ACEOF
15511/* confdefs.h. */
15512_ACEOF
15513cat confdefs.h >>conftest.$ac_ext
15514cat >>conftest.$ac_ext <<_ACEOF
15515/* end confdefs.h. */
15516$ac_includes_default
15517int
15518main ()
15519{
15520static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15521test_array [0] = 0
15522
15523 ;
15524 return 0;
15525}
15526_ACEOF
15527rm -f conftest.$ac_objext
15528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15529 (eval $ac_compile) 2>conftest.er1
a848cd7e 15530 ac_status=$?
ac1cb8d3
VS
15531 grep -v '^ *+' conftest.er1 >conftest.err
15532 rm -f conftest.er1
15533 cat conftest.err >&5
a848cd7e
SC
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); } &&
07158944 15536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15538 (eval $ac_try) 2>&5
15539 ac_status=$?
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); }; } &&
15542 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15544 (eval $ac_try) 2>&5
15545 ac_status=$?
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); }; }; then
15548 ac_hi=$ac_mid; break
15549else
15550 echo "$as_me: failed program was:" >&5
15551sed 's/^/| /' conftest.$ac_ext >&5
15552
15553ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15554 if test $ac_lo -le $ac_mid; then
15555 ac_lo= ac_hi=
15556 break
15557 fi
15558 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15559fi
ac1cb8d3 15560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15561 done
15562else
15563 echo "$as_me: failed program was:" >&5
15564sed 's/^/| /' conftest.$ac_ext >&5
15565
15566cat >conftest.$ac_ext <<_ACEOF
15567/* confdefs.h. */
15568_ACEOF
15569cat confdefs.h >>conftest.$ac_ext
15570cat >>conftest.$ac_ext <<_ACEOF
15571/* end confdefs.h. */
15572$ac_includes_default
15573int
15574main ()
15575{
15576static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15577test_array [0] = 0
15578
15579 ;
15580 return 0;
15581}
15582_ACEOF
15583rm -f conftest.$ac_objext
15584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15585 (eval $ac_compile) 2>conftest.er1
a848cd7e 15586 ac_status=$?
ac1cb8d3
VS
15587 grep -v '^ *+' conftest.er1 >conftest.err
15588 rm -f conftest.er1
15589 cat conftest.err >&5
a848cd7e
SC
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); } &&
07158944 15592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594 (eval $ac_try) 2>&5
15595 ac_status=$?
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; } &&
15598 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15600 (eval $ac_try) 2>&5
15601 ac_status=$?
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); }; }; then
15604 ac_hi=-1 ac_mid=-1
15605 while :; do
15606 cat >conftest.$ac_ext <<_ACEOF
15607/* confdefs.h. */
15608_ACEOF
15609cat confdefs.h >>conftest.$ac_ext
15610cat >>conftest.$ac_ext <<_ACEOF
15611/* end confdefs.h. */
15612$ac_includes_default
15613int
15614main ()
15615{
15616static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15617test_array [0] = 0
15618
15619 ;
15620 return 0;
15621}
15622_ACEOF
15623rm -f conftest.$ac_objext
15624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15625 (eval $ac_compile) 2>conftest.er1
a848cd7e 15626 ac_status=$?
ac1cb8d3
VS
15627 grep -v '^ *+' conftest.er1 >conftest.err
15628 rm -f conftest.er1
15629 cat conftest.err >&5
a848cd7e
SC
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); } &&
07158944 15632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
15638 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15640 (eval $ac_try) 2>&5
15641 ac_status=$?
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); }; }; then
15644 ac_lo=$ac_mid; break
15645else
15646 echo "$as_me: failed program was:" >&5
15647sed 's/^/| /' conftest.$ac_ext >&5
15648
15649ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15650 if test $ac_mid -le $ac_hi; then
15651 ac_lo= ac_hi=
15652 break
15653 fi
15654 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15655fi
ac1cb8d3 15656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15657 done
15658else
15659 echo "$as_me: failed program was:" >&5
15660sed 's/^/| /' conftest.$ac_ext >&5
15661
15662ac_lo= ac_hi=
15663fi
ac1cb8d3 15664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15665fi
ac1cb8d3 15666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15667# Binary search between lo and hi bounds.
15668while test "x$ac_lo" != "x$ac_hi"; do
15669 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15670 cat >conftest.$ac_ext <<_ACEOF
15671/* confdefs.h. */
15672_ACEOF
15673cat confdefs.h >>conftest.$ac_ext
15674cat >>conftest.$ac_ext <<_ACEOF
15675/* end confdefs.h. */
15676$ac_includes_default
15677int
15678main ()
15679{
15680static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15681test_array [0] = 0
15682
15683 ;
15684 return 0;
15685}
15686_ACEOF
15687rm -f conftest.$ac_objext
15688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15689 (eval $ac_compile) 2>conftest.er1
a848cd7e 15690 ac_status=$?
ac1cb8d3
VS
15691 grep -v '^ *+' conftest.er1 >conftest.err
15692 rm -f conftest.er1
15693 cat conftest.err >&5
a848cd7e
SC
15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); } &&
07158944 15696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15698 (eval $ac_try) 2>&5
15699 ac_status=$?
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); }; } &&
15702 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15704 (eval $ac_try) 2>&5
15705 ac_status=$?
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); }; }; then
15708 ac_hi=$ac_mid
15709else
15710 echo "$as_me: failed program was:" >&5
15711sed 's/^/| /' conftest.$ac_ext >&5
15712
15713ac_lo=`expr '(' $ac_mid ')' + 1`
15714fi
ac1cb8d3 15715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15716done
15717case $ac_lo in
15718?*) ac_cv_sizeof_char=$ac_lo;;
15719'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15720See \`config.log' for more details." >&5
15721echo "$as_me: error: cannot compute sizeof (char), 77
15722See \`config.log' for more details." >&2;}
15723 { (exit 1); exit 1; }; } ;;
15724esac
15725else
15726 if test "$cross_compiling" = yes; then
07158944
VZ
15727 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15728echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15729 { (exit 1); exit 1; }; }
15730else
15731 cat >conftest.$ac_ext <<_ACEOF
15732/* confdefs.h. */
15733_ACEOF
15734cat confdefs.h >>conftest.$ac_ext
15735cat >>conftest.$ac_ext <<_ACEOF
15736/* end confdefs.h. */
15737$ac_includes_default
15738long longval () { return (long) (sizeof (char)); }
15739unsigned long ulongval () { return (long) (sizeof (char)); }
15740#include <stdio.h>
15741#include <stdlib.h>
15742int
15743main ()
15744{
15745
15746 FILE *f = fopen ("conftest.val", "w");
15747 if (! f)
15748 exit (1);
15749 if (((long) (sizeof (char))) < 0)
15750 {
15751 long i = longval ();
15752 if (i != ((long) (sizeof (char))))
15753 exit (1);
15754 fprintf (f, "%ld\n", i);
15755 }
15756 else
15757 {
15758 unsigned long i = ulongval ();
15759 if (i != ((long) (sizeof (char))))
15760 exit (1);
15761 fprintf (f, "%lu\n", i);
15762 }
15763 exit (ferror (f) || fclose (f) != 0);
15764
15765 ;
15766 return 0;
15767}
15768_ACEOF
15769rm -f conftest$ac_exeext
15770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15771 (eval $ac_link) 2>&5
15772 ac_status=$?
15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15776 (eval $ac_try) 2>&5
15777 ac_status=$?
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); }; }; then
15780 ac_cv_sizeof_char=`cat conftest.val`
15781else
15782 echo "$as_me: program exited with status $ac_status" >&5
15783echo "$as_me: failed program was:" >&5
15784sed 's/^/| /' conftest.$ac_ext >&5
15785
15786( exit $ac_status )
15787{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15788See \`config.log' for more details." >&5
15789echo "$as_me: error: cannot compute sizeof (char), 77
15790See \`config.log' for more details." >&2;}
15791 { (exit 1); exit 1; }; }
15792fi
ac1cb8d3 15793rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15794fi
15795fi
15796rm -f conftest.val
15797else
15798 ac_cv_sizeof_char=0
15799fi
15800fi
15801echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15802echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15803cat >>confdefs.h <<_ACEOF
15804#define SIZEOF_CHAR $ac_cv_sizeof_char
15805_ACEOF
15806
15807
15808echo "$as_me:$LINENO: checking for short" >&5
15809echo $ECHO_N "checking for short... $ECHO_C" >&6
15810if test "${ac_cv_type_short+set}" = set; then
15811 echo $ECHO_N "(cached) $ECHO_C" >&6
15812else
15813 cat >conftest.$ac_ext <<_ACEOF
15814/* confdefs.h. */
15815_ACEOF
15816cat confdefs.h >>conftest.$ac_ext
15817cat >>conftest.$ac_ext <<_ACEOF
15818/* end confdefs.h. */
15819$ac_includes_default
15820int
15821main ()
15822{
15823if ((short *) 0)
15824 return 0;
15825if (sizeof (short))
15826 return 0;
15827 ;
15828 return 0;
15829}
15830_ACEOF
15831rm -f conftest.$ac_objext
15832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15833 (eval $ac_compile) 2>conftest.er1
a848cd7e 15834 ac_status=$?
ac1cb8d3
VS
15835 grep -v '^ *+' conftest.er1 >conftest.err
15836 rm -f conftest.er1
15837 cat conftest.err >&5
a848cd7e
SC
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); } &&
07158944 15840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15842 (eval $ac_try) 2>&5
15843 ac_status=$?
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); }; } &&
15846 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15848 (eval $ac_try) 2>&5
15849 ac_status=$?
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); }; }; then
15852 ac_cv_type_short=yes
15853else
15854 echo "$as_me: failed program was:" >&5
15855sed 's/^/| /' conftest.$ac_ext >&5
15856
15857ac_cv_type_short=no
15858fi
ac1cb8d3 15859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15860fi
15861echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15862echo "${ECHO_T}$ac_cv_type_short" >&6
15863
15864echo "$as_me:$LINENO: checking size of short" >&5
15865echo $ECHO_N "checking size of short... $ECHO_C" >&6
15866if test "${ac_cv_sizeof_short+set}" = set; then
15867 echo $ECHO_N "(cached) $ECHO_C" >&6
15868else
15869 if test "$ac_cv_type_short" = yes; then
15870 # The cast to unsigned long works around a bug in the HP C Compiler
15871 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15872 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15873 # This bug is HP SR number 8606223364.
15874 if test "$cross_compiling" = yes; then
15875 # Depending upon the size, compute the lo and hi bounds.
15876cat >conftest.$ac_ext <<_ACEOF
15877/* confdefs.h. */
15878_ACEOF
15879cat confdefs.h >>conftest.$ac_ext
15880cat >>conftest.$ac_ext <<_ACEOF
15881/* end confdefs.h. */
15882$ac_includes_default
15883int
15884main ()
15885{
15886static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15887test_array [0] = 0
15888
15889 ;
15890 return 0;
15891}
15892_ACEOF
15893rm -f conftest.$ac_objext
15894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15895 (eval $ac_compile) 2>conftest.er1
a848cd7e 15896 ac_status=$?
ac1cb8d3
VS
15897 grep -v '^ *+' conftest.er1 >conftest.err
15898 rm -f conftest.er1
15899 cat conftest.err >&5
a848cd7e
SC
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); } &&
07158944 15902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15904 (eval $ac_try) 2>&5
15905 ac_status=$?
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); }; } &&
15908 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15910 (eval $ac_try) 2>&5
15911 ac_status=$?
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); }; }; then
15914 ac_lo=0 ac_mid=0
15915 while :; do
15916 cat >conftest.$ac_ext <<_ACEOF
15917/* confdefs.h. */
15918_ACEOF
15919cat confdefs.h >>conftest.$ac_ext
15920cat >>conftest.$ac_ext <<_ACEOF
15921/* end confdefs.h. */
15922$ac_includes_default
15923int
15924main ()
15925{
15926static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15927test_array [0] = 0
15928
15929 ;
15930 return 0;
15931}
15932_ACEOF
15933rm -f conftest.$ac_objext
15934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15935 (eval $ac_compile) 2>conftest.er1
a848cd7e 15936 ac_status=$?
ac1cb8d3
VS
15937 grep -v '^ *+' conftest.er1 >conftest.err
15938 rm -f conftest.er1
15939 cat conftest.err >&5
a848cd7e
SC
15940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); } &&
07158944 15942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
15948 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950 (eval $ac_try) 2>&5
15951 ac_status=$?
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; }; then
15954 ac_hi=$ac_mid; break
15955else
15956 echo "$as_me: failed program was:" >&5
15957sed 's/^/| /' conftest.$ac_ext >&5
15958
15959ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15960 if test $ac_lo -le $ac_mid; then
15961 ac_lo= ac_hi=
15962 break
15963 fi
15964 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15965fi
ac1cb8d3 15966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15967 done
15968else
15969 echo "$as_me: failed program was:" >&5
15970sed 's/^/| /' conftest.$ac_ext >&5
15971
15972cat >conftest.$ac_ext <<_ACEOF
15973/* confdefs.h. */
15974_ACEOF
15975cat confdefs.h >>conftest.$ac_ext
15976cat >>conftest.$ac_ext <<_ACEOF
15977/* end confdefs.h. */
15978$ac_includes_default
15979int
15980main ()
15981{
15982static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15983test_array [0] = 0
15984
15985 ;
15986 return 0;
15987}
15988_ACEOF
15989rm -f conftest.$ac_objext
15990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15991 (eval $ac_compile) 2>conftest.er1
a848cd7e 15992 ac_status=$?
ac1cb8d3
VS
15993 grep -v '^ *+' conftest.er1 >conftest.err
15994 rm -f conftest.er1
15995 cat conftest.err >&5
a848cd7e
SC
15996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 (exit $ac_status); } &&
07158944 15998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16000 (eval $ac_try) 2>&5
16001 ac_status=$?
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); }; } &&
16004 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16006 (eval $ac_try) 2>&5
16007 ac_status=$?
16008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009 (exit $ac_status); }; }; then
16010 ac_hi=-1 ac_mid=-1
16011 while :; do
16012 cat >conftest.$ac_ext <<_ACEOF
16013/* confdefs.h. */
16014_ACEOF
16015cat confdefs.h >>conftest.$ac_ext
16016cat >>conftest.$ac_ext <<_ACEOF
16017/* end confdefs.h. */
16018$ac_includes_default
16019int
16020main ()
16021{
16022static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16023test_array [0] = 0
16024
16025 ;
16026 return 0;
16027}
16028_ACEOF
16029rm -f conftest.$ac_objext
16030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16031 (eval $ac_compile) 2>conftest.er1
a848cd7e 16032 ac_status=$?
ac1cb8d3
VS
16033 grep -v '^ *+' conftest.er1 >conftest.err
16034 rm -f conftest.er1
16035 cat conftest.err >&5
a848cd7e
SC
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); } &&
07158944 16038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16040 (eval $ac_try) 2>&5
16041 ac_status=$?
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); }; } &&
16044 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16046 (eval $ac_try) 2>&5
16047 ac_status=$?
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); }; }; then
16050 ac_lo=$ac_mid; break
16051else
16052 echo "$as_me: failed program was:" >&5
16053sed 's/^/| /' conftest.$ac_ext >&5
16054
16055ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16056 if test $ac_mid -le $ac_hi; then
16057 ac_lo= ac_hi=
16058 break
16059 fi
16060 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16061fi
ac1cb8d3 16062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16063 done
16064else
16065 echo "$as_me: failed program was:" >&5
16066sed 's/^/| /' conftest.$ac_ext >&5
16067
16068ac_lo= ac_hi=
16069fi
ac1cb8d3 16070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16071fi
ac1cb8d3 16072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16073# Binary search between lo and hi bounds.
16074while test "x$ac_lo" != "x$ac_hi"; do
16075 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16076 cat >conftest.$ac_ext <<_ACEOF
16077/* confdefs.h. */
16078_ACEOF
16079cat confdefs.h >>conftest.$ac_ext
16080cat >>conftest.$ac_ext <<_ACEOF
16081/* end confdefs.h. */
16082$ac_includes_default
16083int
16084main ()
16085{
16086static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16087test_array [0] = 0
16088
16089 ;
16090 return 0;
16091}
16092_ACEOF
16093rm -f conftest.$ac_objext
16094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16095 (eval $ac_compile) 2>conftest.er1
a848cd7e 16096 ac_status=$?
ac1cb8d3
VS
16097 grep -v '^ *+' conftest.er1 >conftest.err
16098 rm -f conftest.er1
16099 cat conftest.err >&5
a848cd7e
SC
16100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101 (exit $ac_status); } &&
07158944 16102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16104 (eval $ac_try) 2>&5
16105 ac_status=$?
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); }; } &&
16108 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16110 (eval $ac_try) 2>&5
16111 ac_status=$?
16112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113 (exit $ac_status); }; }; then
16114 ac_hi=$ac_mid
16115else
16116 echo "$as_me: failed program was:" >&5
16117sed 's/^/| /' conftest.$ac_ext >&5
16118
16119ac_lo=`expr '(' $ac_mid ')' + 1`
16120fi
ac1cb8d3 16121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16122done
16123case $ac_lo in
16124?*) ac_cv_sizeof_short=$ac_lo;;
16125'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16126See \`config.log' for more details." >&5
16127echo "$as_me: error: cannot compute sizeof (short), 77
16128See \`config.log' for more details." >&2;}
16129 { (exit 1); exit 1; }; } ;;
16130esac
16131else
16132 if test "$cross_compiling" = yes; then
07158944
VZ
16133 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16134echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16135 { (exit 1); exit 1; }; }
16136else
16137 cat >conftest.$ac_ext <<_ACEOF
16138/* confdefs.h. */
16139_ACEOF
16140cat confdefs.h >>conftest.$ac_ext
16141cat >>conftest.$ac_ext <<_ACEOF
16142/* end confdefs.h. */
16143$ac_includes_default
16144long longval () { return (long) (sizeof (short)); }
16145unsigned long ulongval () { return (long) (sizeof (short)); }
16146#include <stdio.h>
16147#include <stdlib.h>
16148int
16149main ()
16150{
16151
16152 FILE *f = fopen ("conftest.val", "w");
16153 if (! f)
16154 exit (1);
16155 if (((long) (sizeof (short))) < 0)
16156 {
16157 long i = longval ();
16158 if (i != ((long) (sizeof (short))))
16159 exit (1);
16160 fprintf (f, "%ld\n", i);
16161 }
16162 else
16163 {
16164 unsigned long i = ulongval ();
16165 if (i != ((long) (sizeof (short))))
16166 exit (1);
16167 fprintf (f, "%lu\n", i);
16168 }
16169 exit (ferror (f) || fclose (f) != 0);
16170
16171 ;
16172 return 0;
16173}
16174_ACEOF
16175rm -f conftest$ac_exeext
16176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16177 (eval $ac_link) 2>&5
16178 ac_status=$?
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16182 (eval $ac_try) 2>&5
16183 ac_status=$?
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); }; }; then
16186 ac_cv_sizeof_short=`cat conftest.val`
16187else
16188 echo "$as_me: program exited with status $ac_status" >&5
16189echo "$as_me: failed program was:" >&5
16190sed 's/^/| /' conftest.$ac_ext >&5
16191
16192( exit $ac_status )
16193{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16194See \`config.log' for more details." >&5
16195echo "$as_me: error: cannot compute sizeof (short), 77
16196See \`config.log' for more details." >&2;}
16197 { (exit 1); exit 1; }; }
16198fi
ac1cb8d3 16199rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16200fi
16201fi
16202rm -f conftest.val
16203else
16204 ac_cv_sizeof_short=0
16205fi
16206fi
16207echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16208echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16209cat >>confdefs.h <<_ACEOF
16210#define SIZEOF_SHORT $ac_cv_sizeof_short
16211_ACEOF
16212
16213
16214echo "$as_me:$LINENO: checking for void *" >&5
16215echo $ECHO_N "checking for void *... $ECHO_C" >&6
16216if test "${ac_cv_type_void_p+set}" = set; then
16217 echo $ECHO_N "(cached) $ECHO_C" >&6
16218else
16219 cat >conftest.$ac_ext <<_ACEOF
16220/* confdefs.h. */
16221_ACEOF
16222cat confdefs.h >>conftest.$ac_ext
16223cat >>conftest.$ac_ext <<_ACEOF
16224/* end confdefs.h. */
16225$ac_includes_default
16226int
16227main ()
16228{
16229if ((void * *) 0)
16230 return 0;
16231if (sizeof (void *))
16232 return 0;
16233 ;
16234 return 0;
16235}
16236_ACEOF
16237rm -f conftest.$ac_objext
16238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16239 (eval $ac_compile) 2>conftest.er1
a848cd7e 16240 ac_status=$?
ac1cb8d3
VS
16241 grep -v '^ *+' conftest.er1 >conftest.err
16242 rm -f conftest.er1
16243 cat conftest.err >&5
a848cd7e
SC
16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); } &&
07158944 16246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16248 (eval $ac_try) 2>&5
16249 ac_status=$?
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); }; } &&
16252 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16254 (eval $ac_try) 2>&5
16255 ac_status=$?
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); }; }; then
16258 ac_cv_type_void_p=yes
16259else
16260 echo "$as_me: failed program was:" >&5
16261sed 's/^/| /' conftest.$ac_ext >&5
16262
16263ac_cv_type_void_p=no
16264fi
ac1cb8d3 16265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16266fi
16267echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16268echo "${ECHO_T}$ac_cv_type_void_p" >&6
16269
16270echo "$as_me:$LINENO: checking size of void *" >&5
16271echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16272if test "${ac_cv_sizeof_void_p+set}" = set; then
16273 echo $ECHO_N "(cached) $ECHO_C" >&6
16274else
16275 if test "$ac_cv_type_void_p" = yes; then
16276 # The cast to unsigned long works around a bug in the HP C Compiler
16277 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16278 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16279 # This bug is HP SR number 8606223364.
16280 if test "$cross_compiling" = yes; then
16281 # Depending upon the size, compute the lo and hi bounds.
16282cat >conftest.$ac_ext <<_ACEOF
16283/* confdefs.h. */
16284_ACEOF
16285cat confdefs.h >>conftest.$ac_ext
16286cat >>conftest.$ac_ext <<_ACEOF
16287/* end confdefs.h. */
16288$ac_includes_default
16289int
16290main ()
16291{
16292static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
16293test_array [0] = 0
16294
16295 ;
16296 return 0;
16297}
16298_ACEOF
16299rm -f conftest.$ac_objext
16300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16301 (eval $ac_compile) 2>conftest.er1
a848cd7e 16302 ac_status=$?
ac1cb8d3
VS
16303 grep -v '^ *+' conftest.er1 >conftest.err
16304 rm -f conftest.er1
16305 cat conftest.err >&5
a848cd7e
SC
16306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); } &&
07158944 16308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16310 (eval $ac_try) 2>&5
16311 ac_status=$?
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); }; } &&
16314 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16316 (eval $ac_try) 2>&5
16317 ac_status=$?
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); }; }; then
16320 ac_lo=0 ac_mid=0
16321 while :; do
16322 cat >conftest.$ac_ext <<_ACEOF
16323/* confdefs.h. */
16324_ACEOF
16325cat confdefs.h >>conftest.$ac_ext
16326cat >>conftest.$ac_ext <<_ACEOF
16327/* end confdefs.h. */
16328$ac_includes_default
16329int
16330main ()
16331{
16332static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16333test_array [0] = 0
16334
16335 ;
16336 return 0;
16337}
16338_ACEOF
16339rm -f conftest.$ac_objext
16340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16341 (eval $ac_compile) 2>conftest.er1
a848cd7e 16342 ac_status=$?
ac1cb8d3
VS
16343 grep -v '^ *+' conftest.er1 >conftest.err
16344 rm -f conftest.er1
16345 cat conftest.err >&5
a848cd7e
SC
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); } &&
07158944 16348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16350 (eval $ac_try) 2>&5
16351 ac_status=$?
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); }; } &&
16354 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16356 (eval $ac_try) 2>&5
16357 ac_status=$?
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }; }; then
16360 ac_hi=$ac_mid; break
16361else
16362 echo "$as_me: failed program was:" >&5
16363sed 's/^/| /' conftest.$ac_ext >&5
16364
16365ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16366 if test $ac_lo -le $ac_mid; then
16367 ac_lo= ac_hi=
16368 break
16369 fi
16370 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16371fi
ac1cb8d3 16372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16373 done
16374else
16375 echo "$as_me: failed program was:" >&5
16376sed 's/^/| /' conftest.$ac_ext >&5
16377
16378cat >conftest.$ac_ext <<_ACEOF
16379/* confdefs.h. */
16380_ACEOF
16381cat confdefs.h >>conftest.$ac_ext
16382cat >>conftest.$ac_ext <<_ACEOF
16383/* end confdefs.h. */
16384$ac_includes_default
16385int
16386main ()
16387{
16388static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
16389test_array [0] = 0
16390
16391 ;
16392 return 0;
16393}
16394_ACEOF
16395rm -f conftest.$ac_objext
16396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16397 (eval $ac_compile) 2>conftest.er1
a848cd7e 16398 ac_status=$?
ac1cb8d3
VS
16399 grep -v '^ *+' conftest.er1 >conftest.err
16400 rm -f conftest.er1
16401 cat conftest.err >&5
a848cd7e
SC
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); } &&
07158944 16404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16406 (eval $ac_try) 2>&5
16407 ac_status=$?
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); }; } &&
16410 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16412 (eval $ac_try) 2>&5
16413 ac_status=$?
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); }; }; then
16416 ac_hi=-1 ac_mid=-1
16417 while :; do
16418 cat >conftest.$ac_ext <<_ACEOF
16419/* confdefs.h. */
16420_ACEOF
16421cat confdefs.h >>conftest.$ac_ext
16422cat >>conftest.$ac_ext <<_ACEOF
16423/* end confdefs.h. */
16424$ac_includes_default
16425int
16426main ()
16427{
16428static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
16429test_array [0] = 0
16430
16431 ;
16432 return 0;
16433}
16434_ACEOF
16435rm -f conftest.$ac_objext
16436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16437 (eval $ac_compile) 2>conftest.er1
a848cd7e 16438 ac_status=$?
ac1cb8d3
VS
16439 grep -v '^ *+' conftest.er1 >conftest.err
16440 rm -f conftest.er1
16441 cat conftest.err >&5
a848cd7e
SC
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); } &&
07158944 16444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16446 (eval $ac_try) 2>&5
16447 ac_status=$?
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); }; } &&
16450 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16452 (eval $ac_try) 2>&5
16453 ac_status=$?
16454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455 (exit $ac_status); }; }; then
16456 ac_lo=$ac_mid; break
16457else
16458 echo "$as_me: failed program was:" >&5
16459sed 's/^/| /' conftest.$ac_ext >&5
16460
16461ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16462 if test $ac_mid -le $ac_hi; then
16463 ac_lo= ac_hi=
16464 break
16465 fi
16466 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16467fi
ac1cb8d3 16468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16469 done
16470else
16471 echo "$as_me: failed program was:" >&5
16472sed 's/^/| /' conftest.$ac_ext >&5
16473
16474ac_lo= ac_hi=
16475fi
ac1cb8d3 16476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16477fi
ac1cb8d3 16478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16479# Binary search between lo and hi bounds.
16480while test "x$ac_lo" != "x$ac_hi"; do
16481 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16482 cat >conftest.$ac_ext <<_ACEOF
16483/* confdefs.h. */
16484_ACEOF
16485cat confdefs.h >>conftest.$ac_ext
16486cat >>conftest.$ac_ext <<_ACEOF
16487/* end confdefs.h. */
16488$ac_includes_default
16489int
16490main ()
16491{
16492static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16493test_array [0] = 0
16494
16495 ;
16496 return 0;
16497}
16498_ACEOF
16499rm -f conftest.$ac_objext
16500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16501 (eval $ac_compile) 2>conftest.er1
a848cd7e 16502 ac_status=$?
ac1cb8d3
VS
16503 grep -v '^ *+' conftest.er1 >conftest.err
16504 rm -f conftest.er1
16505 cat conftest.err >&5
a848cd7e
SC
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); } &&
07158944 16508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16510 (eval $ac_try) 2>&5
16511 ac_status=$?
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); }; } &&
16514 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16516 (eval $ac_try) 2>&5
16517 ac_status=$?
16518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); }; }; then
16520 ac_hi=$ac_mid
16521else
16522 echo "$as_me: failed program was:" >&5
16523sed 's/^/| /' conftest.$ac_ext >&5
16524
16525ac_lo=`expr '(' $ac_mid ')' + 1`
16526fi
ac1cb8d3 16527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16528done
16529case $ac_lo in
16530?*) ac_cv_sizeof_void_p=$ac_lo;;
16531'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16532See \`config.log' for more details." >&5
16533echo "$as_me: error: cannot compute sizeof (void *), 77
16534See \`config.log' for more details." >&2;}
16535 { (exit 1); exit 1; }; } ;;
16536esac
16537else
16538 if test "$cross_compiling" = yes; then
07158944
VZ
16539 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16540echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16541 { (exit 1); exit 1; }; }
16542else
16543 cat >conftest.$ac_ext <<_ACEOF
16544/* confdefs.h. */
16545_ACEOF
16546cat confdefs.h >>conftest.$ac_ext
16547cat >>conftest.$ac_ext <<_ACEOF
16548/* end confdefs.h. */
16549$ac_includes_default
16550long longval () { return (long) (sizeof (void *)); }
16551unsigned long ulongval () { return (long) (sizeof (void *)); }
16552#include <stdio.h>
16553#include <stdlib.h>
16554int
16555main ()
16556{
16557
16558 FILE *f = fopen ("conftest.val", "w");
16559 if (! f)
16560 exit (1);
16561 if (((long) (sizeof (void *))) < 0)
16562 {
16563 long i = longval ();
16564 if (i != ((long) (sizeof (void *))))
16565 exit (1);
16566 fprintf (f, "%ld\n", i);
16567 }
16568 else
16569 {
16570 unsigned long i = ulongval ();
16571 if (i != ((long) (sizeof (void *))))
16572 exit (1);
16573 fprintf (f, "%lu\n", i);
16574 }
16575 exit (ferror (f) || fclose (f) != 0);
16576
16577 ;
16578 return 0;
16579}
16580_ACEOF
16581rm -f conftest$ac_exeext
16582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16583 (eval $ac_link) 2>&5
16584 ac_status=$?
16585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16588 (eval $ac_try) 2>&5
16589 ac_status=$?
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); }; }; then
16592 ac_cv_sizeof_void_p=`cat conftest.val`
16593else
16594 echo "$as_me: program exited with status $ac_status" >&5
16595echo "$as_me: failed program was:" >&5
16596sed 's/^/| /' conftest.$ac_ext >&5
16597
16598( exit $ac_status )
16599{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16600See \`config.log' for more details." >&5
16601echo "$as_me: error: cannot compute sizeof (void *), 77
16602See \`config.log' for more details." >&2;}
16603 { (exit 1); exit 1; }; }
16604fi
ac1cb8d3 16605rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16606fi
16607fi
16608rm -f conftest.val
16609else
16610 ac_cv_sizeof_void_p=0
16611fi
16612fi
16613echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16614echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16615cat >>confdefs.h <<_ACEOF
16616#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16617_ACEOF
16618
16619
16620echo "$as_me:$LINENO: checking for int" >&5
16621echo $ECHO_N "checking for int... $ECHO_C" >&6
16622if test "${ac_cv_type_int+set}" = set; then
16623 echo $ECHO_N "(cached) $ECHO_C" >&6
16624else
16625 cat >conftest.$ac_ext <<_ACEOF
16626/* confdefs.h. */
16627_ACEOF
16628cat confdefs.h >>conftest.$ac_ext
16629cat >>conftest.$ac_ext <<_ACEOF
16630/* end confdefs.h. */
16631$ac_includes_default
16632int
16633main ()
16634{
16635if ((int *) 0)
16636 return 0;
16637if (sizeof (int))
16638 return 0;
16639 ;
16640 return 0;
16641}
16642_ACEOF
16643rm -f conftest.$ac_objext
16644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16645 (eval $ac_compile) 2>conftest.er1
a848cd7e 16646 ac_status=$?
ac1cb8d3
VS
16647 grep -v '^ *+' conftest.er1 >conftest.err
16648 rm -f conftest.er1
16649 cat conftest.err >&5
a848cd7e
SC
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); } &&
07158944 16652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16654 (eval $ac_try) 2>&5
16655 ac_status=$?
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); }; } &&
16658 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16660 (eval $ac_try) 2>&5
16661 ac_status=$?
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); }; }; then
16664 ac_cv_type_int=yes
16665else
16666 echo "$as_me: failed program was:" >&5
16667sed 's/^/| /' conftest.$ac_ext >&5
16668
16669ac_cv_type_int=no
16670fi
ac1cb8d3 16671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16672fi
16673echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16674echo "${ECHO_T}$ac_cv_type_int" >&6
16675
16676echo "$as_me:$LINENO: checking size of int" >&5
16677echo $ECHO_N "checking size of int... $ECHO_C" >&6
16678if test "${ac_cv_sizeof_int+set}" = set; then
16679 echo $ECHO_N "(cached) $ECHO_C" >&6
16680else
16681 if test "$ac_cv_type_int" = yes; then
16682 # The cast to unsigned long works around a bug in the HP C Compiler
16683 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16684 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16685 # This bug is HP SR number 8606223364.
16686 if test "$cross_compiling" = yes; then
16687 # Depending upon the size, compute the lo and hi bounds.
16688cat >conftest.$ac_ext <<_ACEOF
16689/* confdefs.h. */
16690_ACEOF
16691cat confdefs.h >>conftest.$ac_ext
16692cat >>conftest.$ac_ext <<_ACEOF
16693/* end confdefs.h. */
16694$ac_includes_default
16695int
16696main ()
16697{
16698static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16699test_array [0] = 0
16700
16701 ;
16702 return 0;
16703}
16704_ACEOF
16705rm -f conftest.$ac_objext
16706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16707 (eval $ac_compile) 2>conftest.er1
a848cd7e 16708 ac_status=$?
ac1cb8d3
VS
16709 grep -v '^ *+' conftest.er1 >conftest.err
16710 rm -f conftest.er1
16711 cat conftest.err >&5
a848cd7e
SC
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); } &&
07158944 16714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16716 (eval $ac_try) 2>&5
16717 ac_status=$?
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); }; } &&
16720 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16722 (eval $ac_try) 2>&5
16723 ac_status=$?
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; }; then
16726 ac_lo=0 ac_mid=0
16727 while :; do
16728 cat >conftest.$ac_ext <<_ACEOF
16729/* confdefs.h. */
16730_ACEOF
16731cat confdefs.h >>conftest.$ac_ext
16732cat >>conftest.$ac_ext <<_ACEOF
16733/* end confdefs.h. */
16734$ac_includes_default
16735int
16736main ()
16737{
16738static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16739test_array [0] = 0
16740
16741 ;
16742 return 0;
16743}
16744_ACEOF
16745rm -f conftest.$ac_objext
16746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16747 (eval $ac_compile) 2>conftest.er1
a848cd7e 16748 ac_status=$?
ac1cb8d3
VS
16749 grep -v '^ *+' conftest.er1 >conftest.err
16750 rm -f conftest.er1
16751 cat conftest.err >&5
a848cd7e
SC
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); } &&
07158944 16754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16756 (eval $ac_try) 2>&5
16757 ac_status=$?
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); }; } &&
16760 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16762 (eval $ac_try) 2>&5
16763 ac_status=$?
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); }; }; then
16766 ac_hi=$ac_mid; break
16767else
16768 echo "$as_me: failed program was:" >&5
16769sed 's/^/| /' conftest.$ac_ext >&5
16770
16771ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16772 if test $ac_lo -le $ac_mid; then
16773 ac_lo= ac_hi=
16774 break
16775 fi
16776 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16777fi
ac1cb8d3 16778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16779 done
16780else
16781 echo "$as_me: failed program was:" >&5
16782sed 's/^/| /' conftest.$ac_ext >&5
16783
16784cat >conftest.$ac_ext <<_ACEOF
16785/* confdefs.h. */
16786_ACEOF
16787cat confdefs.h >>conftest.$ac_ext
16788cat >>conftest.$ac_ext <<_ACEOF
16789/* end confdefs.h. */
16790$ac_includes_default
16791int
16792main ()
16793{
16794static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16795test_array [0] = 0
16796
16797 ;
16798 return 0;
16799}
16800_ACEOF
16801rm -f conftest.$ac_objext
16802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16803 (eval $ac_compile) 2>conftest.er1
a848cd7e 16804 ac_status=$?
ac1cb8d3
VS
16805 grep -v '^ *+' conftest.er1 >conftest.err
16806 rm -f conftest.er1
16807 cat conftest.err >&5
a848cd7e
SC
16808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); } &&
07158944 16810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16812 (eval $ac_try) 2>&5
16813 ac_status=$?
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); }; } &&
16816 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16818 (eval $ac_try) 2>&5
16819 ac_status=$?
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); }; }; then
16822 ac_hi=-1 ac_mid=-1
16823 while :; do
16824 cat >conftest.$ac_ext <<_ACEOF
16825/* confdefs.h. */
16826_ACEOF
16827cat confdefs.h >>conftest.$ac_ext
16828cat >>conftest.$ac_ext <<_ACEOF
16829/* end confdefs.h. */
16830$ac_includes_default
16831int
16832main ()
16833{
16834static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16835test_array [0] = 0
16836
16837 ;
16838 return 0;
16839}
16840_ACEOF
16841rm -f conftest.$ac_objext
16842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16843 (eval $ac_compile) 2>conftest.er1
a848cd7e 16844 ac_status=$?
ac1cb8d3
VS
16845 grep -v '^ *+' conftest.er1 >conftest.err
16846 rm -f conftest.er1
16847 cat conftest.err >&5
a848cd7e
SC
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); } &&
07158944 16850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16852 (eval $ac_try) 2>&5
16853 ac_status=$?
16854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855 (exit $ac_status); }; } &&
16856 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16858 (eval $ac_try) 2>&5
16859 ac_status=$?
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); }; }; then
16862 ac_lo=$ac_mid; break
16863else
16864 echo "$as_me: failed program was:" >&5
16865sed 's/^/| /' conftest.$ac_ext >&5
16866
16867ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16868 if test $ac_mid -le $ac_hi; then
16869 ac_lo= ac_hi=
16870 break
16871 fi
16872 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16873fi
ac1cb8d3 16874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16875 done
16876else
16877 echo "$as_me: failed program was:" >&5
16878sed 's/^/| /' conftest.$ac_ext >&5
16879
16880ac_lo= ac_hi=
16881fi
ac1cb8d3 16882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16883fi
ac1cb8d3 16884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16885# Binary search between lo and hi bounds.
16886while test "x$ac_lo" != "x$ac_hi"; do
16887 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16888 cat >conftest.$ac_ext <<_ACEOF
16889/* confdefs.h. */
16890_ACEOF
16891cat confdefs.h >>conftest.$ac_ext
16892cat >>conftest.$ac_ext <<_ACEOF
16893/* end confdefs.h. */
16894$ac_includes_default
16895int
16896main ()
16897{
16898static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16899test_array [0] = 0
16900
16901 ;
16902 return 0;
16903}
16904_ACEOF
16905rm -f conftest.$ac_objext
16906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16907 (eval $ac_compile) 2>conftest.er1
a848cd7e 16908 ac_status=$?
ac1cb8d3
VS
16909 grep -v '^ *+' conftest.er1 >conftest.err
16910 rm -f conftest.er1
16911 cat conftest.err >&5
a848cd7e
SC
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); } &&
07158944 16914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16916 (eval $ac_try) 2>&5
16917 ac_status=$?
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); }; } &&
16920 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16922 (eval $ac_try) 2>&5
16923 ac_status=$?
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); }; }; then
16926 ac_hi=$ac_mid
16927else
16928 echo "$as_me: failed program was:" >&5
16929sed 's/^/| /' conftest.$ac_ext >&5
16930
16931ac_lo=`expr '(' $ac_mid ')' + 1`
16932fi
ac1cb8d3 16933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16934done
16935case $ac_lo in
16936?*) ac_cv_sizeof_int=$ac_lo;;
16937'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16938See \`config.log' for more details." >&5
16939echo "$as_me: error: cannot compute sizeof (int), 77
16940See \`config.log' for more details." >&2;}
16941 { (exit 1); exit 1; }; } ;;
16942esac
16943else
16944 if test "$cross_compiling" = yes; then
07158944
VZ
16945 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16946echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16947 { (exit 1); exit 1; }; }
16948else
16949 cat >conftest.$ac_ext <<_ACEOF
16950/* confdefs.h. */
16951_ACEOF
16952cat confdefs.h >>conftest.$ac_ext
16953cat >>conftest.$ac_ext <<_ACEOF
16954/* end confdefs.h. */
16955$ac_includes_default
16956long longval () { return (long) (sizeof (int)); }
16957unsigned long ulongval () { return (long) (sizeof (int)); }
16958#include <stdio.h>
16959#include <stdlib.h>
16960int
16961main ()
16962{
16963
16964 FILE *f = fopen ("conftest.val", "w");
16965 if (! f)
16966 exit (1);
16967 if (((long) (sizeof (int))) < 0)
16968 {
16969 long i = longval ();
16970 if (i != ((long) (sizeof (int))))
16971 exit (1);
16972 fprintf (f, "%ld\n", i);
16973 }
16974 else
16975 {
16976 unsigned long i = ulongval ();
16977 if (i != ((long) (sizeof (int))))
16978 exit (1);
16979 fprintf (f, "%lu\n", i);
16980 }
16981 exit (ferror (f) || fclose (f) != 0);
16982
16983 ;
16984 return 0;
16985}
16986_ACEOF
16987rm -f conftest$ac_exeext
16988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16989 (eval $ac_link) 2>&5
16990 ac_status=$?
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16994 (eval $ac_try) 2>&5
16995 ac_status=$?
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); }; }; then
16998 ac_cv_sizeof_int=`cat conftest.val`
16999else
17000 echo "$as_me: program exited with status $ac_status" >&5
17001echo "$as_me: failed program was:" >&5
17002sed 's/^/| /' conftest.$ac_ext >&5
17003
17004( exit $ac_status )
17005{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17006See \`config.log' for more details." >&5
17007echo "$as_me: error: cannot compute sizeof (int), 77
17008See \`config.log' for more details." >&2;}
17009 { (exit 1); exit 1; }; }
17010fi
ac1cb8d3 17011rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17012fi
17013fi
17014rm -f conftest.val
17015else
17016 ac_cv_sizeof_int=0
17017fi
17018fi
17019echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17020echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17021cat >>confdefs.h <<_ACEOF
17022#define SIZEOF_INT $ac_cv_sizeof_int
17023_ACEOF
17024
17025
17026echo "$as_me:$LINENO: checking for long" >&5
17027echo $ECHO_N "checking for long... $ECHO_C" >&6
17028if test "${ac_cv_type_long+set}" = set; then
17029 echo $ECHO_N "(cached) $ECHO_C" >&6
17030else
17031 cat >conftest.$ac_ext <<_ACEOF
17032/* confdefs.h. */
17033_ACEOF
17034cat confdefs.h >>conftest.$ac_ext
17035cat >>conftest.$ac_ext <<_ACEOF
17036/* end confdefs.h. */
17037$ac_includes_default
17038int
17039main ()
17040{
17041if ((long *) 0)
17042 return 0;
17043if (sizeof (long))
17044 return 0;
17045 ;
17046 return 0;
17047}
17048_ACEOF
17049rm -f conftest.$ac_objext
17050if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17051 (eval $ac_compile) 2>conftest.er1
a848cd7e 17052 ac_status=$?
ac1cb8d3
VS
17053 grep -v '^ *+' conftest.er1 >conftest.err
17054 rm -f conftest.er1
17055 cat conftest.err >&5
a848cd7e
SC
17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057 (exit $ac_status); } &&
07158944 17058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17060 (eval $ac_try) 2>&5
17061 ac_status=$?
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); }; } &&
17064 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17066 (eval $ac_try) 2>&5
17067 ac_status=$?
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); }; }; then
17070 ac_cv_type_long=yes
17071else
17072 echo "$as_me: failed program was:" >&5
17073sed 's/^/| /' conftest.$ac_ext >&5
17074
17075ac_cv_type_long=no
17076fi
ac1cb8d3 17077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17078fi
17079echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17080echo "${ECHO_T}$ac_cv_type_long" >&6
17081
17082echo "$as_me:$LINENO: checking size of long" >&5
17083echo $ECHO_N "checking size of long... $ECHO_C" >&6
17084if test "${ac_cv_sizeof_long+set}" = set; then
17085 echo $ECHO_N "(cached) $ECHO_C" >&6
17086else
17087 if test "$ac_cv_type_long" = yes; then
17088 # The cast to unsigned long works around a bug in the HP C Compiler
17089 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17090 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17091 # This bug is HP SR number 8606223364.
17092 if test "$cross_compiling" = yes; then
17093 # Depending upon the size, compute the lo and hi bounds.
17094cat >conftest.$ac_ext <<_ACEOF
17095/* confdefs.h. */
17096_ACEOF
17097cat confdefs.h >>conftest.$ac_ext
17098cat >>conftest.$ac_ext <<_ACEOF
17099/* end confdefs.h. */
17100$ac_includes_default
17101int
17102main ()
17103{
17104static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17105test_array [0] = 0
17106
17107 ;
17108 return 0;
17109}
17110_ACEOF
17111rm -f conftest.$ac_objext
17112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17113 (eval $ac_compile) 2>conftest.er1
a848cd7e 17114 ac_status=$?
ac1cb8d3
VS
17115 grep -v '^ *+' conftest.er1 >conftest.err
17116 rm -f conftest.er1
17117 cat conftest.err >&5
a848cd7e
SC
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); } &&
07158944 17120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17122 (eval $ac_try) 2>&5
17123 ac_status=$?
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); }; } &&
17126 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17128 (eval $ac_try) 2>&5
17129 ac_status=$?
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); }; }; then
17132 ac_lo=0 ac_mid=0
17133 while :; do
17134 cat >conftest.$ac_ext <<_ACEOF
17135/* confdefs.h. */
17136_ACEOF
17137cat confdefs.h >>conftest.$ac_ext
17138cat >>conftest.$ac_ext <<_ACEOF
17139/* end confdefs.h. */
17140$ac_includes_default
17141int
17142main ()
17143{
17144static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17145test_array [0] = 0
17146
17147 ;
17148 return 0;
17149}
17150_ACEOF
17151rm -f conftest.$ac_objext
17152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17153 (eval $ac_compile) 2>conftest.er1
a848cd7e 17154 ac_status=$?
ac1cb8d3
VS
17155 grep -v '^ *+' conftest.er1 >conftest.err
17156 rm -f conftest.er1
17157 cat conftest.err >&5
a848cd7e
SC
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); } &&
07158944 17160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17162 (eval $ac_try) 2>&5
17163 ac_status=$?
17164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 (exit $ac_status); }; } &&
17166 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17168 (eval $ac_try) 2>&5
17169 ac_status=$?
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); }; }; then
17172 ac_hi=$ac_mid; break
17173else
17174 echo "$as_me: failed program was:" >&5
17175sed 's/^/| /' conftest.$ac_ext >&5
17176
17177ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17178 if test $ac_lo -le $ac_mid; then
17179 ac_lo= ac_hi=
17180 break
17181 fi
17182 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17183fi
ac1cb8d3 17184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17185 done
17186else
17187 echo "$as_me: failed program was:" >&5
17188sed 's/^/| /' conftest.$ac_ext >&5
17189
17190cat >conftest.$ac_ext <<_ACEOF
17191/* confdefs.h. */
17192_ACEOF
17193cat confdefs.h >>conftest.$ac_ext
17194cat >>conftest.$ac_ext <<_ACEOF
17195/* end confdefs.h. */
17196$ac_includes_default
17197int
17198main ()
17199{
17200static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17201test_array [0] = 0
17202
17203 ;
17204 return 0;
17205}
17206_ACEOF
17207rm -f conftest.$ac_objext
17208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17209 (eval $ac_compile) 2>conftest.er1
a848cd7e 17210 ac_status=$?
ac1cb8d3
VS
17211 grep -v '^ *+' conftest.er1 >conftest.err
17212 rm -f conftest.er1
17213 cat conftest.err >&5
a848cd7e
SC
17214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17215 (exit $ac_status); } &&
07158944 17216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17218 (eval $ac_try) 2>&5
17219 ac_status=$?
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); }; } &&
17222 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17224 (eval $ac_try) 2>&5
17225 ac_status=$?
17226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227 (exit $ac_status); }; }; then
17228 ac_hi=-1 ac_mid=-1
17229 while :; do
17230 cat >conftest.$ac_ext <<_ACEOF
17231/* confdefs.h. */
17232_ACEOF
17233cat confdefs.h >>conftest.$ac_ext
17234cat >>conftest.$ac_ext <<_ACEOF
17235/* end confdefs.h. */
17236$ac_includes_default
17237int
17238main ()
17239{
17240static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17241test_array [0] = 0
17242
17243 ;
17244 return 0;
17245}
17246_ACEOF
17247rm -f conftest.$ac_objext
17248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17249 (eval $ac_compile) 2>conftest.er1
a848cd7e 17250 ac_status=$?
ac1cb8d3
VS
17251 grep -v '^ *+' conftest.er1 >conftest.err
17252 rm -f conftest.er1
17253 cat conftest.err >&5
a848cd7e
SC
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); } &&
07158944 17256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17258 (eval $ac_try) 2>&5
17259 ac_status=$?
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); }; } &&
17262 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17264 (eval $ac_try) 2>&5
17265 ac_status=$?
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); }; }; then
17268 ac_lo=$ac_mid; break
17269else
17270 echo "$as_me: failed program was:" >&5
17271sed 's/^/| /' conftest.$ac_ext >&5
17272
17273ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17274 if test $ac_mid -le $ac_hi; then
17275 ac_lo= ac_hi=
17276 break
17277 fi
17278 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17279fi
ac1cb8d3 17280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17281 done
17282else
17283 echo "$as_me: failed program was:" >&5
17284sed 's/^/| /' conftest.$ac_ext >&5
17285
17286ac_lo= ac_hi=
17287fi
ac1cb8d3 17288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17289fi
ac1cb8d3 17290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17291# Binary search between lo and hi bounds.
17292while test "x$ac_lo" != "x$ac_hi"; do
17293 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17294 cat >conftest.$ac_ext <<_ACEOF
17295/* confdefs.h. */
17296_ACEOF
17297cat confdefs.h >>conftest.$ac_ext
17298cat >>conftest.$ac_ext <<_ACEOF
17299/* end confdefs.h. */
17300$ac_includes_default
17301int
17302main ()
17303{
17304static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17305test_array [0] = 0
17306
17307 ;
17308 return 0;
17309}
17310_ACEOF
17311rm -f conftest.$ac_objext
17312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17313 (eval $ac_compile) 2>conftest.er1
a848cd7e 17314 ac_status=$?
ac1cb8d3
VS
17315 grep -v '^ *+' conftest.er1 >conftest.err
17316 rm -f conftest.er1
17317 cat conftest.err >&5
a848cd7e
SC
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); } &&
07158944 17320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17322 (eval $ac_try) 2>&5
17323 ac_status=$?
17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17325 (exit $ac_status); }; } &&
17326 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17328 (eval $ac_try) 2>&5
17329 ac_status=$?
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); }; }; then
17332 ac_hi=$ac_mid
17333else
17334 echo "$as_me: failed program was:" >&5
17335sed 's/^/| /' conftest.$ac_ext >&5
17336
17337ac_lo=`expr '(' $ac_mid ')' + 1`
17338fi
ac1cb8d3 17339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17340done
17341case $ac_lo in
17342?*) ac_cv_sizeof_long=$ac_lo;;
17343'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17344See \`config.log' for more details." >&5
17345echo "$as_me: error: cannot compute sizeof (long), 77
17346See \`config.log' for more details." >&2;}
17347 { (exit 1); exit 1; }; } ;;
17348esac
17349else
17350 if test "$cross_compiling" = yes; then
07158944
VZ
17351 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17352echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17353 { (exit 1); exit 1; }; }
17354else
17355 cat >conftest.$ac_ext <<_ACEOF
17356/* confdefs.h. */
17357_ACEOF
17358cat confdefs.h >>conftest.$ac_ext
17359cat >>conftest.$ac_ext <<_ACEOF
17360/* end confdefs.h. */
17361$ac_includes_default
17362long longval () { return (long) (sizeof (long)); }
17363unsigned long ulongval () { return (long) (sizeof (long)); }
17364#include <stdio.h>
17365#include <stdlib.h>
17366int
17367main ()
17368{
17369
17370 FILE *f = fopen ("conftest.val", "w");
17371 if (! f)
17372 exit (1);
17373 if (((long) (sizeof (long))) < 0)
17374 {
17375 long i = longval ();
17376 if (i != ((long) (sizeof (long))))
17377 exit (1);
17378 fprintf (f, "%ld\n", i);
17379 }
17380 else
17381 {
17382 unsigned long i = ulongval ();
17383 if (i != ((long) (sizeof (long))))
17384 exit (1);
17385 fprintf (f, "%lu\n", i);
17386 }
17387 exit (ferror (f) || fclose (f) != 0);
17388
17389 ;
17390 return 0;
17391}
17392_ACEOF
17393rm -f conftest$ac_exeext
17394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17395 (eval $ac_link) 2>&5
17396 ac_status=$?
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17400 (eval $ac_try) 2>&5
17401 ac_status=$?
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); }; }; then
17404 ac_cv_sizeof_long=`cat conftest.val`
17405else
17406 echo "$as_me: program exited with status $ac_status" >&5
17407echo "$as_me: failed program was:" >&5
17408sed 's/^/| /' conftest.$ac_ext >&5
17409
17410( exit $ac_status )
17411{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17412See \`config.log' for more details." >&5
17413echo "$as_me: error: cannot compute sizeof (long), 77
17414See \`config.log' for more details." >&2;}
17415 { (exit 1); exit 1; }; }
17416fi
ac1cb8d3 17417rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17418fi
17419fi
17420rm -f conftest.val
17421else
17422 ac_cv_sizeof_long=0
17423fi
17424fi
17425echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17426echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17427cat >>confdefs.h <<_ACEOF
17428#define SIZEOF_LONG $ac_cv_sizeof_long
17429_ACEOF
17430
17431
17432echo "$as_me:$LINENO: checking for size_t" >&5
17433echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17434if test "${ac_cv_type_size_t+set}" = set; then
17435 echo $ECHO_N "(cached) $ECHO_C" >&6
17436else
17437 cat >conftest.$ac_ext <<_ACEOF
17438/* confdefs.h. */
17439_ACEOF
17440cat confdefs.h >>conftest.$ac_ext
17441cat >>conftest.$ac_ext <<_ACEOF
17442/* end confdefs.h. */
17443$ac_includes_default
17444int
17445main ()
17446{
17447if ((size_t *) 0)
17448 return 0;
17449if (sizeof (size_t))
17450 return 0;
17451 ;
17452 return 0;
17453}
17454_ACEOF
17455rm -f conftest.$ac_objext
17456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17457 (eval $ac_compile) 2>conftest.er1
a848cd7e 17458 ac_status=$?
ac1cb8d3
VS
17459 grep -v '^ *+' conftest.er1 >conftest.err
17460 rm -f conftest.er1
17461 cat conftest.err >&5
a848cd7e
SC
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); } &&
07158944 17464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17466 (eval $ac_try) 2>&5
17467 ac_status=$?
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); }; } &&
17470 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17472 (eval $ac_try) 2>&5
17473 ac_status=$?
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); }; }; then
17476 ac_cv_type_size_t=yes
17477else
17478 echo "$as_me: failed program was:" >&5
17479sed 's/^/| /' conftest.$ac_ext >&5
17480
17481ac_cv_type_size_t=no
17482fi
ac1cb8d3 17483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17484fi
17485echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17486echo "${ECHO_T}$ac_cv_type_size_t" >&6
17487
17488echo "$as_me:$LINENO: checking size of size_t" >&5
17489echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17490if test "${ac_cv_sizeof_size_t+set}" = set; then
17491 echo $ECHO_N "(cached) $ECHO_C" >&6
17492else
17493 if test "$ac_cv_type_size_t" = yes; then
17494 # The cast to unsigned long works around a bug in the HP C Compiler
17495 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17496 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17497 # This bug is HP SR number 8606223364.
17498 if test "$cross_compiling" = yes; then
17499 # Depending upon the size, compute the lo and hi bounds.
17500cat >conftest.$ac_ext <<_ACEOF
17501/* confdefs.h. */
17502_ACEOF
17503cat confdefs.h >>conftest.$ac_ext
17504cat >>conftest.$ac_ext <<_ACEOF
17505/* end confdefs.h. */
17506$ac_includes_default
17507int
17508main ()
17509{
17510static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17511test_array [0] = 0
17512
17513 ;
17514 return 0;
17515}
17516_ACEOF
17517rm -f conftest.$ac_objext
17518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17519 (eval $ac_compile) 2>conftest.er1
a848cd7e 17520 ac_status=$?
ac1cb8d3
VS
17521 grep -v '^ *+' conftest.er1 >conftest.err
17522 rm -f conftest.er1
17523 cat conftest.err >&5
a848cd7e
SC
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); } &&
07158944 17526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17528 (eval $ac_try) 2>&5
17529 ac_status=$?
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; } &&
17532 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17534 (eval $ac_try) 2>&5
17535 ac_status=$?
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); }; }; then
17538 ac_lo=0 ac_mid=0
17539 while :; do
17540 cat >conftest.$ac_ext <<_ACEOF
17541/* confdefs.h. */
17542_ACEOF
17543cat confdefs.h >>conftest.$ac_ext
17544cat >>conftest.$ac_ext <<_ACEOF
17545/* end confdefs.h. */
17546$ac_includes_default
17547int
17548main ()
17549{
17550static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17551test_array [0] = 0
17552
17553 ;
17554 return 0;
17555}
17556_ACEOF
17557rm -f conftest.$ac_objext
17558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17559 (eval $ac_compile) 2>conftest.er1
a848cd7e 17560 ac_status=$?
ac1cb8d3
VS
17561 grep -v '^ *+' conftest.er1 >conftest.err
17562 rm -f conftest.er1
17563 cat conftest.err >&5
a848cd7e
SC
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); } &&
07158944 17566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17568 (eval $ac_try) 2>&5
17569 ac_status=$?
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); }; } &&
17572 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17574 (eval $ac_try) 2>&5
17575 ac_status=$?
17576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577 (exit $ac_status); }; }; then
17578 ac_hi=$ac_mid; break
17579else
17580 echo "$as_me: failed program was:" >&5
17581sed 's/^/| /' conftest.$ac_ext >&5
17582
17583ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17584 if test $ac_lo -le $ac_mid; then
17585 ac_lo= ac_hi=
17586 break
17587 fi
17588 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17589fi
ac1cb8d3 17590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17591 done
17592else
17593 echo "$as_me: failed program was:" >&5
17594sed 's/^/| /' conftest.$ac_ext >&5
17595
17596cat >conftest.$ac_ext <<_ACEOF
17597/* confdefs.h. */
17598_ACEOF
17599cat confdefs.h >>conftest.$ac_ext
17600cat >>conftest.$ac_ext <<_ACEOF
17601/* end confdefs.h. */
17602$ac_includes_default
17603int
17604main ()
17605{
17606static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17607test_array [0] = 0
17608
17609 ;
17610 return 0;
17611}
17612_ACEOF
17613rm -f conftest.$ac_objext
17614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17615 (eval $ac_compile) 2>conftest.er1
a848cd7e 17616 ac_status=$?
ac1cb8d3
VS
17617 grep -v '^ *+' conftest.er1 >conftest.err
17618 rm -f conftest.er1
17619 cat conftest.err >&5
a848cd7e
SC
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); } &&
07158944 17622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17624 (eval $ac_try) 2>&5
17625 ac_status=$?
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); }; } &&
17628 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17630 (eval $ac_try) 2>&5
17631 ac_status=$?
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); }; }; then
17634 ac_hi=-1 ac_mid=-1
17635 while :; do
17636 cat >conftest.$ac_ext <<_ACEOF
17637/* confdefs.h. */
17638_ACEOF
17639cat confdefs.h >>conftest.$ac_ext
17640cat >>conftest.$ac_ext <<_ACEOF
17641/* end confdefs.h. */
17642$ac_includes_default
17643int
17644main ()
17645{
17646static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17647test_array [0] = 0
17648
17649 ;
17650 return 0;
17651}
17652_ACEOF
17653rm -f conftest.$ac_objext
17654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17655 (eval $ac_compile) 2>conftest.er1
a848cd7e 17656 ac_status=$?
ac1cb8d3
VS
17657 grep -v '^ *+' conftest.er1 >conftest.err
17658 rm -f conftest.er1
17659 cat conftest.err >&5
a848cd7e
SC
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); } &&
07158944 17662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17664 (eval $ac_try) 2>&5
17665 ac_status=$?
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); }; } &&
17668 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17670 (eval $ac_try) 2>&5
17671 ac_status=$?
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); }; }; then
17674 ac_lo=$ac_mid; break
17675else
17676 echo "$as_me: failed program was:" >&5
17677sed 's/^/| /' conftest.$ac_ext >&5
17678
17679ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17680 if test $ac_mid -le $ac_hi; then
17681 ac_lo= ac_hi=
17682 break
17683 fi
17684 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17685fi
ac1cb8d3 17686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17687 done
17688else
17689 echo "$as_me: failed program was:" >&5
17690sed 's/^/| /' conftest.$ac_ext >&5
17691
17692ac_lo= ac_hi=
17693fi
ac1cb8d3 17694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17695fi
ac1cb8d3 17696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17697# Binary search between lo and hi bounds.
17698while test "x$ac_lo" != "x$ac_hi"; do
17699 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17700 cat >conftest.$ac_ext <<_ACEOF
17701/* confdefs.h. */
17702_ACEOF
17703cat confdefs.h >>conftest.$ac_ext
17704cat >>conftest.$ac_ext <<_ACEOF
17705/* end confdefs.h. */
17706$ac_includes_default
17707int
17708main ()
17709{
17710static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17711test_array [0] = 0
17712
17713 ;
17714 return 0;
17715}
17716_ACEOF
17717rm -f conftest.$ac_objext
17718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17719 (eval $ac_compile) 2>conftest.er1
a848cd7e 17720 ac_status=$?
ac1cb8d3
VS
17721 grep -v '^ *+' conftest.er1 >conftest.err
17722 rm -f conftest.er1
17723 cat conftest.err >&5
a848cd7e
SC
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); } &&
07158944 17726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17728 (eval $ac_try) 2>&5
17729 ac_status=$?
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); }; } &&
17732 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17734 (eval $ac_try) 2>&5
17735 ac_status=$?
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); }; }; then
17738 ac_hi=$ac_mid
17739else
17740 echo "$as_me: failed program was:" >&5
17741sed 's/^/| /' conftest.$ac_ext >&5
17742
17743ac_lo=`expr '(' $ac_mid ')' + 1`
17744fi
ac1cb8d3 17745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17746done
17747case $ac_lo in
17748?*) ac_cv_sizeof_size_t=$ac_lo;;
17749'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17750See \`config.log' for more details." >&5
17751echo "$as_me: error: cannot compute sizeof (size_t), 77
17752See \`config.log' for more details." >&2;}
17753 { (exit 1); exit 1; }; } ;;
17754esac
17755else
17756 if test "$cross_compiling" = yes; then
07158944
VZ
17757 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17758echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17759 { (exit 1); exit 1; }; }
17760else
17761 cat >conftest.$ac_ext <<_ACEOF
17762/* confdefs.h. */
17763_ACEOF
17764cat confdefs.h >>conftest.$ac_ext
17765cat >>conftest.$ac_ext <<_ACEOF
17766/* end confdefs.h. */
17767$ac_includes_default
17768long longval () { return (long) (sizeof (size_t)); }
17769unsigned long ulongval () { return (long) (sizeof (size_t)); }
17770#include <stdio.h>
17771#include <stdlib.h>
17772int
17773main ()
17774{
17775
17776 FILE *f = fopen ("conftest.val", "w");
17777 if (! f)
17778 exit (1);
17779 if (((long) (sizeof (size_t))) < 0)
17780 {
17781 long i = longval ();
17782 if (i != ((long) (sizeof (size_t))))
17783 exit (1);
17784 fprintf (f, "%ld\n", i);
17785 }
17786 else
17787 {
17788 unsigned long i = ulongval ();
17789 if (i != ((long) (sizeof (size_t))))
17790 exit (1);
17791 fprintf (f, "%lu\n", i);
17792 }
17793 exit (ferror (f) || fclose (f) != 0);
17794
17795 ;
17796 return 0;
17797}
17798_ACEOF
17799rm -f conftest$ac_exeext
17800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17801 (eval $ac_link) 2>&5
17802 ac_status=$?
17803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
17810 ac_cv_sizeof_size_t=`cat conftest.val`
17811else
17812 echo "$as_me: program exited with status $ac_status" >&5
17813echo "$as_me: failed program was:" >&5
17814sed 's/^/| /' conftest.$ac_ext >&5
17815
17816( exit $ac_status )
17817{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17818See \`config.log' for more details." >&5
17819echo "$as_me: error: cannot compute sizeof (size_t), 77
17820See \`config.log' for more details." >&2;}
17821 { (exit 1); exit 1; }; }
17822fi
ac1cb8d3 17823rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17824fi
17825fi
17826rm -f conftest.val
17827else
17828 ac_cv_sizeof_size_t=0
17829fi
17830fi
17831echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
17832echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
17833cat >>confdefs.h <<_ACEOF
17834#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17835_ACEOF
17836
17837
17838
17839case "${host}" in
17840 arm-*-linux* )
17841 echo "$as_me:$LINENO: checking for long long" >&5
17842echo $ECHO_N "checking for long long... $ECHO_C" >&6
17843if test "${ac_cv_type_long_long+set}" = set; then
17844 echo $ECHO_N "(cached) $ECHO_C" >&6
17845else
17846 cat >conftest.$ac_ext <<_ACEOF
17847/* confdefs.h. */
17848_ACEOF
17849cat confdefs.h >>conftest.$ac_ext
17850cat >>conftest.$ac_ext <<_ACEOF
17851/* end confdefs.h. */
17852$ac_includes_default
17853int
17854main ()
17855{
17856if ((long long *) 0)
17857 return 0;
17858if (sizeof (long long))
17859 return 0;
17860 ;
17861 return 0;
17862}
17863_ACEOF
17864rm -f conftest.$ac_objext
17865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17866 (eval $ac_compile) 2>conftest.er1
a848cd7e 17867 ac_status=$?
ac1cb8d3
VS
17868 grep -v '^ *+' conftest.er1 >conftest.err
17869 rm -f conftest.er1
17870 cat conftest.err >&5
a848cd7e
SC
17871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); } &&
07158944 17873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17875 (eval $ac_try) 2>&5
17876 ac_status=$?
17877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878 (exit $ac_status); }; } &&
17879 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17881 (eval $ac_try) 2>&5
17882 ac_status=$?
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); }; }; then
17885 ac_cv_type_long_long=yes
17886else
17887 echo "$as_me: failed program was:" >&5
17888sed 's/^/| /' conftest.$ac_ext >&5
17889
17890ac_cv_type_long_long=no
17891fi
ac1cb8d3 17892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17893fi
17894echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17895echo "${ECHO_T}$ac_cv_type_long_long" >&6
17896
17897echo "$as_me:$LINENO: checking size of long long" >&5
17898echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17899if test "${ac_cv_sizeof_long_long+set}" = set; then
17900 echo $ECHO_N "(cached) $ECHO_C" >&6
17901else
17902 if test "$ac_cv_type_long_long" = yes; then
17903 # The cast to unsigned long works around a bug in the HP C Compiler
17904 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17905 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17906 # This bug is HP SR number 8606223364.
17907 if test "$cross_compiling" = yes; then
17908 # Depending upon the size, compute the lo and hi bounds.
17909cat >conftest.$ac_ext <<_ACEOF
17910/* confdefs.h. */
17911_ACEOF
17912cat confdefs.h >>conftest.$ac_ext
17913cat >>conftest.$ac_ext <<_ACEOF
17914/* end confdefs.h. */
17915$ac_includes_default
17916int
17917main ()
17918{
17919static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17920test_array [0] = 0
17921
17922 ;
17923 return 0;
17924}
17925_ACEOF
17926rm -f conftest.$ac_objext
17927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17928 (eval $ac_compile) 2>conftest.er1
a848cd7e 17929 ac_status=$?
ac1cb8d3
VS
17930 grep -v '^ *+' conftest.er1 >conftest.err
17931 rm -f conftest.er1
17932 cat conftest.err >&5
a848cd7e
SC
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); } &&
07158944 17935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17937 (eval $ac_try) 2>&5
17938 ac_status=$?
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); }; } &&
17941 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17943 (eval $ac_try) 2>&5
17944 ac_status=$?
17945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946 (exit $ac_status); }; }; then
17947 ac_lo=0 ac_mid=0
17948 while :; do
17949 cat >conftest.$ac_ext <<_ACEOF
17950/* confdefs.h. */
17951_ACEOF
17952cat confdefs.h >>conftest.$ac_ext
17953cat >>conftest.$ac_ext <<_ACEOF
17954/* end confdefs.h. */
17955$ac_includes_default
17956int
17957main ()
17958{
17959static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17960test_array [0] = 0
17961
17962 ;
17963 return 0;
17964}
17965_ACEOF
17966rm -f conftest.$ac_objext
17967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17968 (eval $ac_compile) 2>conftest.er1
a848cd7e 17969 ac_status=$?
ac1cb8d3
VS
17970 grep -v '^ *+' conftest.er1 >conftest.err
17971 rm -f conftest.er1
17972 cat conftest.err >&5
a848cd7e
SC
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); } &&
07158944 17975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17977 (eval $ac_try) 2>&5
17978 ac_status=$?
17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); }; } &&
17981 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17983 (eval $ac_try) 2>&5
17984 ac_status=$?
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); }; }; then
17987 ac_hi=$ac_mid; break
17988else
17989 echo "$as_me: failed program was:" >&5
17990sed 's/^/| /' conftest.$ac_ext >&5
17991
17992ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17993 if test $ac_lo -le $ac_mid; then
17994 ac_lo= ac_hi=
17995 break
17996 fi
17997 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17998fi
ac1cb8d3 17999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18000 done
18001else
18002 echo "$as_me: failed program was:" >&5
18003sed 's/^/| /' conftest.$ac_ext >&5
18004
18005cat >conftest.$ac_ext <<_ACEOF
18006/* confdefs.h. */
18007_ACEOF
18008cat confdefs.h >>conftest.$ac_ext
18009cat >>conftest.$ac_ext <<_ACEOF
18010/* end confdefs.h. */
18011$ac_includes_default
18012int
18013main ()
18014{
18015static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18016test_array [0] = 0
18017
18018 ;
18019 return 0;
18020}
18021_ACEOF
18022rm -f conftest.$ac_objext
18023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18024 (eval $ac_compile) 2>conftest.er1
a848cd7e 18025 ac_status=$?
ac1cb8d3
VS
18026 grep -v '^ *+' conftest.er1 >conftest.err
18027 rm -f conftest.er1
18028 cat conftest.err >&5
a848cd7e
SC
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); } &&
07158944 18031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18033 (eval $ac_try) 2>&5
18034 ac_status=$?
18035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036 (exit $ac_status); }; } &&
18037 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18039 (eval $ac_try) 2>&5
18040 ac_status=$?
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); }; }; then
18043 ac_hi=-1 ac_mid=-1
18044 while :; do
18045 cat >conftest.$ac_ext <<_ACEOF
18046/* confdefs.h. */
18047_ACEOF
18048cat confdefs.h >>conftest.$ac_ext
18049cat >>conftest.$ac_ext <<_ACEOF
18050/* end confdefs.h. */
18051$ac_includes_default
18052int
18053main ()
18054{
18055static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18056test_array [0] = 0
18057
18058 ;
18059 return 0;
18060}
18061_ACEOF
18062rm -f conftest.$ac_objext
18063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18064 (eval $ac_compile) 2>conftest.er1
a848cd7e 18065 ac_status=$?
ac1cb8d3
VS
18066 grep -v '^ *+' conftest.er1 >conftest.err
18067 rm -f conftest.er1
18068 cat conftest.err >&5
a848cd7e
SC
18069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); } &&
07158944 18071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18073 (eval $ac_try) 2>&5
18074 ac_status=$?
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); }; } &&
18077 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18079 (eval $ac_try) 2>&5
18080 ac_status=$?
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); }; }; then
18083 ac_lo=$ac_mid; break
18084else
18085 echo "$as_me: failed program was:" >&5
18086sed 's/^/| /' conftest.$ac_ext >&5
18087
18088ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18089 if test $ac_mid -le $ac_hi; then
18090 ac_lo= ac_hi=
18091 break
18092 fi
18093 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18094fi
ac1cb8d3 18095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18096 done
18097else
18098 echo "$as_me: failed program was:" >&5
18099sed 's/^/| /' conftest.$ac_ext >&5
18100
18101ac_lo= ac_hi=
18102fi
ac1cb8d3 18103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18104fi
ac1cb8d3 18105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18106# Binary search between lo and hi bounds.
18107while test "x$ac_lo" != "x$ac_hi"; do
18108 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18109 cat >conftest.$ac_ext <<_ACEOF
18110/* confdefs.h. */
18111_ACEOF
18112cat confdefs.h >>conftest.$ac_ext
18113cat >>conftest.$ac_ext <<_ACEOF
18114/* end confdefs.h. */
18115$ac_includes_default
18116int
18117main ()
18118{
18119static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18120test_array [0] = 0
18121
18122 ;
18123 return 0;
18124}
18125_ACEOF
18126rm -f conftest.$ac_objext
18127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18128 (eval $ac_compile) 2>conftest.er1
a848cd7e 18129 ac_status=$?
ac1cb8d3
VS
18130 grep -v '^ *+' conftest.er1 >conftest.err
18131 rm -f conftest.er1
18132 cat conftest.err >&5
a848cd7e
SC
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); } &&
07158944 18135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18137 (eval $ac_try) 2>&5
18138 ac_status=$?
18139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140 (exit $ac_status); }; } &&
18141 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18143 (eval $ac_try) 2>&5
18144 ac_status=$?
18145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146 (exit $ac_status); }; }; then
18147 ac_hi=$ac_mid
18148else
18149 echo "$as_me: failed program was:" >&5
18150sed 's/^/| /' conftest.$ac_ext >&5
18151
18152ac_lo=`expr '(' $ac_mid ')' + 1`
18153fi
ac1cb8d3 18154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18155done
18156case $ac_lo in
18157?*) ac_cv_sizeof_long_long=$ac_lo;;
18158'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18159See \`config.log' for more details." >&5
18160echo "$as_me: error: cannot compute sizeof (long long), 77
18161See \`config.log' for more details." >&2;}
18162 { (exit 1); exit 1; }; } ;;
18163esac
18164else
18165 if test "$cross_compiling" = yes; then
07158944
VZ
18166 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18167echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18168 { (exit 1); exit 1; }; }
18169else
18170 cat >conftest.$ac_ext <<_ACEOF
18171/* confdefs.h. */
18172_ACEOF
18173cat confdefs.h >>conftest.$ac_ext
18174cat >>conftest.$ac_ext <<_ACEOF
18175/* end confdefs.h. */
18176$ac_includes_default
18177long longval () { return (long) (sizeof (long long)); }
18178unsigned long ulongval () { return (long) (sizeof (long long)); }
18179#include <stdio.h>
18180#include <stdlib.h>
18181int
18182main ()
18183{
18184
18185 FILE *f = fopen ("conftest.val", "w");
18186 if (! f)
18187 exit (1);
18188 if (((long) (sizeof (long long))) < 0)
18189 {
18190 long i = longval ();
18191 if (i != ((long) (sizeof (long long))))
18192 exit (1);
18193 fprintf (f, "%ld\n", i);
18194 }
18195 else
18196 {
18197 unsigned long i = ulongval ();
18198 if (i != ((long) (sizeof (long long))))
18199 exit (1);
18200 fprintf (f, "%lu\n", i);
18201 }
18202 exit (ferror (f) || fclose (f) != 0);
18203
18204 ;
18205 return 0;
18206}
18207_ACEOF
18208rm -f conftest$ac_exeext
18209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18210 (eval $ac_link) 2>&5
18211 ac_status=$?
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18215 (eval $ac_try) 2>&5
18216 ac_status=$?
18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218 (exit $ac_status); }; }; then
18219 ac_cv_sizeof_long_long=`cat conftest.val`
18220else
18221 echo "$as_me: program exited with status $ac_status" >&5
18222echo "$as_me: failed program was:" >&5
18223sed 's/^/| /' conftest.$ac_ext >&5
18224
18225( exit $ac_status )
18226{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18227See \`config.log' for more details." >&5
18228echo "$as_me: error: cannot compute sizeof (long long), 77
18229See \`config.log' for more details." >&2;}
18230 { (exit 1); exit 1; }; }
18231fi
ac1cb8d3 18232rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18233fi
18234fi
18235rm -f conftest.val
18236else
18237 ac_cv_sizeof_long_long=0
18238fi
18239fi
18240echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18241echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18242cat >>confdefs.h <<_ACEOF
18243#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18244_ACEOF
18245
18246
18247 ;;
18248 *-hp-hpux* )
18249 echo "$as_me:$LINENO: checking for long long" >&5
18250echo $ECHO_N "checking for long long... $ECHO_C" >&6
18251if test "${ac_cv_type_long_long+set}" = set; then
18252 echo $ECHO_N "(cached) $ECHO_C" >&6
18253else
18254 cat >conftest.$ac_ext <<_ACEOF
18255/* confdefs.h. */
18256_ACEOF
18257cat confdefs.h >>conftest.$ac_ext
18258cat >>conftest.$ac_ext <<_ACEOF
18259/* end confdefs.h. */
18260$ac_includes_default
18261int
18262main ()
18263{
18264if ((long long *) 0)
18265 return 0;
18266if (sizeof (long long))
18267 return 0;
18268 ;
18269 return 0;
18270}
18271_ACEOF
18272rm -f conftest.$ac_objext
18273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18274 (eval $ac_compile) 2>conftest.er1
a848cd7e 18275 ac_status=$?
ac1cb8d3
VS
18276 grep -v '^ *+' conftest.er1 >conftest.err
18277 rm -f conftest.er1
18278 cat conftest.err >&5
a848cd7e
SC
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); } &&
07158944 18281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18283 (eval $ac_try) 2>&5
18284 ac_status=$?
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); }; } &&
18287 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18289 (eval $ac_try) 2>&5
18290 ac_status=$?
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); }; }; then
18293 ac_cv_type_long_long=yes
18294else
18295 echo "$as_me: failed program was:" >&5
18296sed 's/^/| /' conftest.$ac_ext >&5
18297
18298ac_cv_type_long_long=no
18299fi
ac1cb8d3 18300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18301fi
18302echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18303echo "${ECHO_T}$ac_cv_type_long_long" >&6
18304
18305echo "$as_me:$LINENO: checking size of long long" >&5
18306echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18307if test "${ac_cv_sizeof_long_long+set}" = set; then
18308 echo $ECHO_N "(cached) $ECHO_C" >&6
18309else
18310 if test "$ac_cv_type_long_long" = yes; then
18311 # The cast to unsigned long works around a bug in the HP C Compiler
18312 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18313 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18314 # This bug is HP SR number 8606223364.
18315 if test "$cross_compiling" = yes; then
18316 # Depending upon the size, compute the lo and hi bounds.
18317cat >conftest.$ac_ext <<_ACEOF
18318/* confdefs.h. */
18319_ACEOF
18320cat confdefs.h >>conftest.$ac_ext
18321cat >>conftest.$ac_ext <<_ACEOF
18322/* end confdefs.h. */
18323$ac_includes_default
18324int
18325main ()
18326{
18327static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18328test_array [0] = 0
18329
18330 ;
18331 return 0;
18332}
18333_ACEOF
18334rm -f conftest.$ac_objext
18335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18336 (eval $ac_compile) 2>conftest.er1
a848cd7e 18337 ac_status=$?
ac1cb8d3
VS
18338 grep -v '^ *+' conftest.er1 >conftest.err
18339 rm -f conftest.er1
18340 cat conftest.err >&5
a848cd7e
SC
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); } &&
07158944 18343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18345 (eval $ac_try) 2>&5
18346 ac_status=$?
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); }; } &&
18349 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18351 (eval $ac_try) 2>&5
18352 ac_status=$?
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); }; }; then
18355 ac_lo=0 ac_mid=0
18356 while :; do
18357 cat >conftest.$ac_ext <<_ACEOF
18358/* confdefs.h. */
18359_ACEOF
18360cat confdefs.h >>conftest.$ac_ext
18361cat >>conftest.$ac_ext <<_ACEOF
18362/* end confdefs.h. */
18363$ac_includes_default
18364int
18365main ()
18366{
18367static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18368test_array [0] = 0
18369
18370 ;
18371 return 0;
18372}
18373_ACEOF
18374rm -f conftest.$ac_objext
18375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18376 (eval $ac_compile) 2>conftest.er1
a848cd7e 18377 ac_status=$?
ac1cb8d3
VS
18378 grep -v '^ *+' conftest.er1 >conftest.err
18379 rm -f conftest.er1
18380 cat conftest.err >&5
a848cd7e
SC
18381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382 (exit $ac_status); } &&
07158944 18383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18385 (eval $ac_try) 2>&5
18386 ac_status=$?
18387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388 (exit $ac_status); }; } &&
18389 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18391 (eval $ac_try) 2>&5
18392 ac_status=$?
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); }; }; then
18395 ac_hi=$ac_mid; break
18396else
18397 echo "$as_me: failed program was:" >&5
18398sed 's/^/| /' conftest.$ac_ext >&5
18399
18400ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18401 if test $ac_lo -le $ac_mid; then
18402 ac_lo= ac_hi=
18403 break
18404 fi
18405 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18406fi
ac1cb8d3 18407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18408 done
18409else
18410 echo "$as_me: failed program was:" >&5
18411sed 's/^/| /' conftest.$ac_ext >&5
18412
18413cat >conftest.$ac_ext <<_ACEOF
18414/* confdefs.h. */
18415_ACEOF
18416cat confdefs.h >>conftest.$ac_ext
18417cat >>conftest.$ac_ext <<_ACEOF
18418/* end confdefs.h. */
18419$ac_includes_default
18420int
18421main ()
18422{
18423static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18424test_array [0] = 0
18425
18426 ;
18427 return 0;
18428}
18429_ACEOF
18430rm -f conftest.$ac_objext
18431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18432 (eval $ac_compile) 2>conftest.er1
a848cd7e 18433 ac_status=$?
ac1cb8d3
VS
18434 grep -v '^ *+' conftest.er1 >conftest.err
18435 rm -f conftest.er1
18436 cat conftest.err >&5
a848cd7e
SC
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); } &&
07158944 18439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18441 (eval $ac_try) 2>&5
18442 ac_status=$?
18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444 (exit $ac_status); }; } &&
18445 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18447 (eval $ac_try) 2>&5
18448 ac_status=$?
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); }; }; then
18451 ac_hi=-1 ac_mid=-1
18452 while :; do
18453 cat >conftest.$ac_ext <<_ACEOF
18454/* confdefs.h. */
18455_ACEOF
18456cat confdefs.h >>conftest.$ac_ext
18457cat >>conftest.$ac_ext <<_ACEOF
18458/* end confdefs.h. */
18459$ac_includes_default
18460int
18461main ()
18462{
18463static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18464test_array [0] = 0
18465
18466 ;
18467 return 0;
18468}
18469_ACEOF
18470rm -f conftest.$ac_objext
18471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18472 (eval $ac_compile) 2>conftest.er1
a848cd7e 18473 ac_status=$?
ac1cb8d3
VS
18474 grep -v '^ *+' conftest.er1 >conftest.err
18475 rm -f conftest.er1
18476 cat conftest.err >&5
a848cd7e
SC
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); } &&
07158944 18479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18481 (eval $ac_try) 2>&5
18482 ac_status=$?
18483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484 (exit $ac_status); }; } &&
18485 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18487 (eval $ac_try) 2>&5
18488 ac_status=$?
18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); }; }; then
18491 ac_lo=$ac_mid; break
18492else
18493 echo "$as_me: failed program was:" >&5
18494sed 's/^/| /' conftest.$ac_ext >&5
18495
18496ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18497 if test $ac_mid -le $ac_hi; then
18498 ac_lo= ac_hi=
18499 break
18500 fi
18501 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18502fi
ac1cb8d3 18503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18504 done
18505else
18506 echo "$as_me: failed program was:" >&5
18507sed 's/^/| /' conftest.$ac_ext >&5
18508
18509ac_lo= ac_hi=
18510fi
ac1cb8d3 18511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18512fi
ac1cb8d3 18513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18514# Binary search between lo and hi bounds.
18515while test "x$ac_lo" != "x$ac_hi"; do
18516 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18517 cat >conftest.$ac_ext <<_ACEOF
18518/* confdefs.h. */
18519_ACEOF
18520cat confdefs.h >>conftest.$ac_ext
18521cat >>conftest.$ac_ext <<_ACEOF
18522/* end confdefs.h. */
18523$ac_includes_default
18524int
18525main ()
18526{
18527static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18528test_array [0] = 0
18529
18530 ;
18531 return 0;
18532}
18533_ACEOF
18534rm -f conftest.$ac_objext
18535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18536 (eval $ac_compile) 2>conftest.er1
a848cd7e 18537 ac_status=$?
ac1cb8d3
VS
18538 grep -v '^ *+' conftest.er1 >conftest.err
18539 rm -f conftest.er1
18540 cat conftest.err >&5
a848cd7e
SC
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); } &&
07158944 18543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18545 (eval $ac_try) 2>&5
18546 ac_status=$?
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); }; } &&
18549 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18551 (eval $ac_try) 2>&5
18552 ac_status=$?
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; }; then
18555 ac_hi=$ac_mid
18556else
18557 echo "$as_me: failed program was:" >&5
18558sed 's/^/| /' conftest.$ac_ext >&5
18559
18560ac_lo=`expr '(' $ac_mid ')' + 1`
18561fi
ac1cb8d3 18562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18563done
18564case $ac_lo in
18565?*) ac_cv_sizeof_long_long=$ac_lo;;
18566'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18567See \`config.log' for more details." >&5
18568echo "$as_me: error: cannot compute sizeof (long long), 77
18569See \`config.log' for more details." >&2;}
18570 { (exit 1); exit 1; }; } ;;
18571esac
18572else
18573 if test "$cross_compiling" = yes; then
07158944
VZ
18574 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18575echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18576 { (exit 1); exit 1; }; }
18577else
18578 cat >conftest.$ac_ext <<_ACEOF
18579/* confdefs.h. */
18580_ACEOF
18581cat confdefs.h >>conftest.$ac_ext
18582cat >>conftest.$ac_ext <<_ACEOF
18583/* end confdefs.h. */
18584$ac_includes_default
18585long longval () { return (long) (sizeof (long long)); }
18586unsigned long ulongval () { return (long) (sizeof (long long)); }
18587#include <stdio.h>
18588#include <stdlib.h>
18589int
18590main ()
18591{
18592
18593 FILE *f = fopen ("conftest.val", "w");
18594 if (! f)
18595 exit (1);
18596 if (((long) (sizeof (long long))) < 0)
18597 {
18598 long i = longval ();
18599 if (i != ((long) (sizeof (long long))))
18600 exit (1);
18601 fprintf (f, "%ld\n", i);
18602 }
18603 else
18604 {
18605 unsigned long i = ulongval ();
18606 if (i != ((long) (sizeof (long long))))
18607 exit (1);
18608 fprintf (f, "%lu\n", i);
18609 }
18610 exit (ferror (f) || fclose (f) != 0);
18611
18612 ;
18613 return 0;
18614}
18615_ACEOF
18616rm -f conftest$ac_exeext
18617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18618 (eval $ac_link) 2>&5
18619 ac_status=$?
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18623 (eval $ac_try) 2>&5
18624 ac_status=$?
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); }; }; then
18627 ac_cv_sizeof_long_long=`cat conftest.val`
18628else
18629 echo "$as_me: program exited with status $ac_status" >&5
18630echo "$as_me: failed program was:" >&5
18631sed 's/^/| /' conftest.$ac_ext >&5
18632
18633( exit $ac_status )
18634{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18635See \`config.log' for more details." >&5
18636echo "$as_me: error: cannot compute sizeof (long long), 77
18637See \`config.log' for more details." >&2;}
18638 { (exit 1); exit 1; }; }
18639fi
ac1cb8d3 18640rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18641fi
18642fi
18643rm -f conftest.val
18644else
18645 ac_cv_sizeof_long_long=0
18646fi
18647fi
18648echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18649echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18650cat >>confdefs.h <<_ACEOF
18651#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18652_ACEOF
18653
18654
18655 if test "$ac_cv_sizeof_long_long" != "0"; then
18656 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
18657 fi
18658 ;;
18659 * )
18660 echo "$as_me:$LINENO: checking for long long" >&5
18661echo $ECHO_N "checking for long long... $ECHO_C" >&6
18662if test "${ac_cv_type_long_long+set}" = set; then
18663 echo $ECHO_N "(cached) $ECHO_C" >&6
18664else
18665 cat >conftest.$ac_ext <<_ACEOF
18666/* confdefs.h. */
18667_ACEOF
18668cat confdefs.h >>conftest.$ac_ext
18669cat >>conftest.$ac_ext <<_ACEOF
18670/* end confdefs.h. */
18671$ac_includes_default
18672int
18673main ()
18674{
18675if ((long long *) 0)
18676 return 0;
18677if (sizeof (long long))
18678 return 0;
18679 ;
18680 return 0;
18681}
18682_ACEOF
18683rm -f conftest.$ac_objext
18684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18685 (eval $ac_compile) 2>conftest.er1
a848cd7e 18686 ac_status=$?
ac1cb8d3
VS
18687 grep -v '^ *+' conftest.er1 >conftest.err
18688 rm -f conftest.er1
18689 cat conftest.err >&5
a848cd7e
SC
18690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691 (exit $ac_status); } &&
07158944 18692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18694 (eval $ac_try) 2>&5
18695 ac_status=$?
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); }; } &&
18698 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18700 (eval $ac_try) 2>&5
18701 ac_status=$?
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); }; }; then
18704 ac_cv_type_long_long=yes
18705else
18706 echo "$as_me: failed program was:" >&5
18707sed 's/^/| /' conftest.$ac_ext >&5
18708
18709ac_cv_type_long_long=no
18710fi
ac1cb8d3 18711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18712fi
18713echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18714echo "${ECHO_T}$ac_cv_type_long_long" >&6
18715
18716echo "$as_me:$LINENO: checking size of long long" >&5
18717echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18718if test "${ac_cv_sizeof_long_long+set}" = set; then
18719 echo $ECHO_N "(cached) $ECHO_C" >&6
18720else
18721 if test "$ac_cv_type_long_long" = yes; then
18722 # The cast to unsigned long works around a bug in the HP C Compiler
18723 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18724 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18725 # This bug is HP SR number 8606223364.
18726 if test "$cross_compiling" = yes; then
18727 # Depending upon the size, compute the lo and hi bounds.
18728cat >conftest.$ac_ext <<_ACEOF
18729/* confdefs.h. */
18730_ACEOF
18731cat confdefs.h >>conftest.$ac_ext
18732cat >>conftest.$ac_ext <<_ACEOF
18733/* end confdefs.h. */
18734$ac_includes_default
18735int
18736main ()
18737{
18738static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18739test_array [0] = 0
18740
18741 ;
18742 return 0;
18743}
18744_ACEOF
18745rm -f conftest.$ac_objext
18746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18747 (eval $ac_compile) 2>conftest.er1
a848cd7e 18748 ac_status=$?
ac1cb8d3
VS
18749 grep -v '^ *+' conftest.er1 >conftest.err
18750 rm -f conftest.er1
18751 cat conftest.err >&5
a848cd7e
SC
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); } &&
07158944 18754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18756 (eval $ac_try) 2>&5
18757 ac_status=$?
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); }; } &&
18760 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18762 (eval $ac_try) 2>&5
18763 ac_status=$?
18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765 (exit $ac_status); }; }; then
18766 ac_lo=0 ac_mid=0
18767 while :; do
18768 cat >conftest.$ac_ext <<_ACEOF
18769/* confdefs.h. */
18770_ACEOF
18771cat confdefs.h >>conftest.$ac_ext
18772cat >>conftest.$ac_ext <<_ACEOF
18773/* end confdefs.h. */
18774$ac_includes_default
18775int
18776main ()
18777{
18778static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18779test_array [0] = 0
18780
18781 ;
18782 return 0;
18783}
18784_ACEOF
18785rm -f conftest.$ac_objext
18786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18787 (eval $ac_compile) 2>conftest.er1
a848cd7e 18788 ac_status=$?
ac1cb8d3
VS
18789 grep -v '^ *+' conftest.er1 >conftest.err
18790 rm -f conftest.er1
18791 cat conftest.err >&5
a848cd7e
SC
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); } &&
07158944 18794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18796 (eval $ac_try) 2>&5
18797 ac_status=$?
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); }; } &&
18800 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18802 (eval $ac_try) 2>&5
18803 ac_status=$?
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); }; }; then
18806 ac_hi=$ac_mid; break
18807else
18808 echo "$as_me: failed program was:" >&5
18809sed 's/^/| /' conftest.$ac_ext >&5
18810
18811ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18812 if test $ac_lo -le $ac_mid; then
18813 ac_lo= ac_hi=
18814 break
18815 fi
18816 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18817fi
ac1cb8d3 18818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18819 done
18820else
18821 echo "$as_me: failed program was:" >&5
18822sed 's/^/| /' conftest.$ac_ext >&5
18823
18824cat >conftest.$ac_ext <<_ACEOF
18825/* confdefs.h. */
18826_ACEOF
18827cat confdefs.h >>conftest.$ac_ext
18828cat >>conftest.$ac_ext <<_ACEOF
18829/* end confdefs.h. */
18830$ac_includes_default
18831int
18832main ()
18833{
18834static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18835test_array [0] = 0
18836
18837 ;
18838 return 0;
18839}
18840_ACEOF
18841rm -f conftest.$ac_objext
18842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18843 (eval $ac_compile) 2>conftest.er1
a848cd7e 18844 ac_status=$?
ac1cb8d3
VS
18845 grep -v '^ *+' conftest.er1 >conftest.err
18846 rm -f conftest.er1
18847 cat conftest.err >&5
a848cd7e
SC
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); } &&
07158944 18850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852 (eval $ac_try) 2>&5
18853 ac_status=$?
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; } &&
18856 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18858 (eval $ac_try) 2>&5
18859 ac_status=$?
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); }; }; then
18862 ac_hi=-1 ac_mid=-1
18863 while :; do
18864 cat >conftest.$ac_ext <<_ACEOF
18865/* confdefs.h. */
18866_ACEOF
18867cat confdefs.h >>conftest.$ac_ext
18868cat >>conftest.$ac_ext <<_ACEOF
18869/* end confdefs.h. */
18870$ac_includes_default
18871int
18872main ()
18873{
18874static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18875test_array [0] = 0
18876
18877 ;
18878 return 0;
18879}
18880_ACEOF
18881rm -f conftest.$ac_objext
18882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18883 (eval $ac_compile) 2>conftest.er1
a848cd7e 18884 ac_status=$?
ac1cb8d3
VS
18885 grep -v '^ *+' conftest.er1 >conftest.err
18886 rm -f conftest.er1
18887 cat conftest.err >&5
a848cd7e
SC
18888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889 (exit $ac_status); } &&
07158944 18890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18892 (eval $ac_try) 2>&5
18893 ac_status=$?
18894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895 (exit $ac_status); }; } &&
18896 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18898 (eval $ac_try) 2>&5
18899 ac_status=$?
18900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901 (exit $ac_status); }; }; then
18902 ac_lo=$ac_mid; break
18903else
18904 echo "$as_me: failed program was:" >&5
18905sed 's/^/| /' conftest.$ac_ext >&5
18906
18907ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18908 if test $ac_mid -le $ac_hi; then
18909 ac_lo= ac_hi=
18910 break
18911 fi
18912 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18913fi
ac1cb8d3 18914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18915 done
18916else
18917 echo "$as_me: failed program was:" >&5
18918sed 's/^/| /' conftest.$ac_ext >&5
18919
18920ac_lo= ac_hi=
18921fi
ac1cb8d3 18922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18923fi
ac1cb8d3 18924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18925# Binary search between lo and hi bounds.
18926while test "x$ac_lo" != "x$ac_hi"; do
18927 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18928 cat >conftest.$ac_ext <<_ACEOF
18929/* confdefs.h. */
18930_ACEOF
18931cat confdefs.h >>conftest.$ac_ext
18932cat >>conftest.$ac_ext <<_ACEOF
18933/* end confdefs.h. */
18934$ac_includes_default
18935int
18936main ()
18937{
18938static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18939test_array [0] = 0
18940
18941 ;
18942 return 0;
18943}
18944_ACEOF
18945rm -f conftest.$ac_objext
18946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18947 (eval $ac_compile) 2>conftest.er1
a848cd7e 18948 ac_status=$?
ac1cb8d3
VS
18949 grep -v '^ *+' conftest.er1 >conftest.err
18950 rm -f conftest.er1
18951 cat conftest.err >&5
a848cd7e
SC
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); } &&
07158944 18954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18956 (eval $ac_try) 2>&5
18957 ac_status=$?
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); }; } &&
18960 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18962 (eval $ac_try) 2>&5
18963 ac_status=$?
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); }; }; then
18966 ac_hi=$ac_mid
18967else
18968 echo "$as_me: failed program was:" >&5
18969sed 's/^/| /' conftest.$ac_ext >&5
18970
18971ac_lo=`expr '(' $ac_mid ')' + 1`
18972fi
ac1cb8d3 18973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18974done
18975case $ac_lo in
18976?*) ac_cv_sizeof_long_long=$ac_lo;;
18977'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18978See \`config.log' for more details." >&5
18979echo "$as_me: error: cannot compute sizeof (long long), 77
18980See \`config.log' for more details." >&2;}
18981 { (exit 1); exit 1; }; } ;;
18982esac
18983else
18984 if test "$cross_compiling" = yes; then
07158944
VZ
18985 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18986echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18987 { (exit 1); exit 1; }; }
18988else
18989 cat >conftest.$ac_ext <<_ACEOF
18990/* confdefs.h. */
18991_ACEOF
18992cat confdefs.h >>conftest.$ac_ext
18993cat >>conftest.$ac_ext <<_ACEOF
18994/* end confdefs.h. */
18995$ac_includes_default
18996long longval () { return (long) (sizeof (long long)); }
18997unsigned long ulongval () { return (long) (sizeof (long long)); }
18998#include <stdio.h>
18999#include <stdlib.h>
19000int
19001main ()
19002{
19003
19004 FILE *f = fopen ("conftest.val", "w");
19005 if (! f)
19006 exit (1);
19007 if (((long) (sizeof (long long))) < 0)
19008 {
19009 long i = longval ();
19010 if (i != ((long) (sizeof (long long))))
19011 exit (1);
19012 fprintf (f, "%ld\n", i);
19013 }
19014 else
19015 {
19016 unsigned long i = ulongval ();
19017 if (i != ((long) (sizeof (long long))))
19018 exit (1);
19019 fprintf (f, "%lu\n", i);
19020 }
19021 exit (ferror (f) || fclose (f) != 0);
19022
19023 ;
19024 return 0;
19025}
19026_ACEOF
19027rm -f conftest$ac_exeext
19028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19029 (eval $ac_link) 2>&5
19030 ac_status=$?
19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19034 (eval $ac_try) 2>&5
19035 ac_status=$?
19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 (exit $ac_status); }; }; then
19038 ac_cv_sizeof_long_long=`cat conftest.val`
19039else
19040 echo "$as_me: program exited with status $ac_status" >&5
19041echo "$as_me: failed program was:" >&5
19042sed 's/^/| /' conftest.$ac_ext >&5
19043
19044( exit $ac_status )
19045{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19046See \`config.log' for more details." >&5
19047echo "$as_me: error: cannot compute sizeof (long long), 77
19048See \`config.log' for more details." >&2;}
19049 { (exit 1); exit 1; }; }
19050fi
ac1cb8d3 19051rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19052fi
19053fi
19054rm -f conftest.val
19055else
19056 ac_cv_sizeof_long_long=0
19057fi
19058fi
19059echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19060echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19061cat >>confdefs.h <<_ACEOF
19062#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19063_ACEOF
19064
19065
19066esac
19067
238ecede
MW
19068echo "$as_me:$LINENO: checking for wchar_t" >&5
19069echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19070if test "${ac_cv_type_wchar_t+set}" = set; then
19071 echo $ECHO_N "(cached) $ECHO_C" >&6
19072else
19073 cat >conftest.$ac_ext <<_ACEOF
19074/* confdefs.h. */
19075_ACEOF
19076cat confdefs.h >>conftest.$ac_ext
19077cat >>conftest.$ac_ext <<_ACEOF
19078/* end confdefs.h. */
19079
19080 /* DJGPP only has fake wchar_t: */
19081 #ifdef __DJGPP__
19082 # error "fake wchar_t"
19083 #endif
19084 #ifdef HAVE_WCHAR_H
19085 # ifdef __CYGWIN__
19086 # include <stddef.h>
19087 # endif
19088 # include <wchar.h>
19089 #endif
19090 #ifdef HAVE_STDLIB_H
19091 # include <stdlib.h>
19092 #endif
19093 #include <stdio.h>
19094
19095
19096
19097int
19098main ()
19099{
19100if ((wchar_t *) 0)
19101 return 0;
19102if (sizeof (wchar_t))
19103 return 0;
19104 ;
19105 return 0;
19106}
19107_ACEOF
19108rm -f conftest.$ac_objext
19109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19110 (eval $ac_compile) 2>conftest.er1
19111 ac_status=$?
19112 grep -v '^ *+' conftest.er1 >conftest.err
19113 rm -f conftest.er1
19114 cat conftest.err >&5
19115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116 (exit $ac_status); } &&
07158944 19117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19119 (eval $ac_try) 2>&5
19120 ac_status=$?
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); }; } &&
19123 { ac_try='test -s conftest.$ac_objext'
19124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19125 (eval $ac_try) 2>&5
19126 ac_status=$?
19127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19128 (exit $ac_status); }; }; then
19129 ac_cv_type_wchar_t=yes
19130else
19131 echo "$as_me: failed program was:" >&5
19132sed 's/^/| /' conftest.$ac_ext >&5
19133
19134ac_cv_type_wchar_t=no
19135fi
19136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19137fi
19138echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19139echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19140
a848cd7e
SC
19141echo "$as_me:$LINENO: checking size of wchar_t" >&5
19142echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 19143if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
19144 echo $ECHO_N "(cached) $ECHO_C" >&6
19145else
238ecede
MW
19146 if test "$ac_cv_type_wchar_t" = yes; then
19147 # The cast to unsigned long works around a bug in the HP C Compiler
19148 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19149 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19150 # This bug is HP SR number 8606223364.
19151 if test "$cross_compiling" = yes; then
19152 # Depending upon the size, compute the lo and hi bounds.
19153cat >conftest.$ac_ext <<_ACEOF
19154/* confdefs.h. */
19155_ACEOF
19156cat confdefs.h >>conftest.$ac_ext
19157cat >>conftest.$ac_ext <<_ACEOF
19158/* end confdefs.h. */
19159
19160 /* DJGPP only has fake wchar_t: */
19161 #ifdef __DJGPP__
19162 # error "fake wchar_t"
19163 #endif
19164 #ifdef HAVE_WCHAR_H
19165 # ifdef __CYGWIN__
19166 # include <stddef.h>
19167 # endif
19168 # include <wchar.h>
19169 #endif
19170 #ifdef HAVE_STDLIB_H
19171 # include <stdlib.h>
19172 #endif
19173 #include <stdio.h>
19174
19175
19176
19177int
19178main ()
19179{
19180static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19181test_array [0] = 0
19182
19183 ;
19184 return 0;
19185}
19186_ACEOF
19187rm -f conftest.$ac_objext
19188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19189 (eval $ac_compile) 2>conftest.er1
19190 ac_status=$?
19191 grep -v '^ *+' conftest.er1 >conftest.err
19192 rm -f conftest.er1
19193 cat conftest.err >&5
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); } &&
07158944 19196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19198 (eval $ac_try) 2>&5
19199 ac_status=$?
19200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201 (exit $ac_status); }; } &&
19202 { ac_try='test -s conftest.$ac_objext'
19203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19204 (eval $ac_try) 2>&5
19205 ac_status=$?
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); }; }; then
19208 ac_lo=0 ac_mid=0
19209 while :; do
19210 cat >conftest.$ac_ext <<_ACEOF
19211/* confdefs.h. */
19212_ACEOF
19213cat confdefs.h >>conftest.$ac_ext
19214cat >>conftest.$ac_ext <<_ACEOF
19215/* end confdefs.h. */
19216
19217 /* DJGPP only has fake wchar_t: */
19218 #ifdef __DJGPP__
19219 # error "fake wchar_t"
19220 #endif
19221 #ifdef HAVE_WCHAR_H
19222 # ifdef __CYGWIN__
19223 # include <stddef.h>
19224 # endif
19225 # include <wchar.h>
19226 #endif
19227 #ifdef HAVE_STDLIB_H
19228 # include <stdlib.h>
19229 #endif
19230 #include <stdio.h>
19231
19232
19233
19234int
19235main ()
19236{
19237static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19238test_array [0] = 0
19239
19240 ;
19241 return 0;
19242}
19243_ACEOF
19244rm -f conftest.$ac_objext
19245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19246 (eval $ac_compile) 2>conftest.er1
19247 ac_status=$?
19248 grep -v '^ *+' conftest.er1 >conftest.err
19249 rm -f conftest.er1
19250 cat conftest.err >&5
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); } &&
07158944 19253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
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); }; } &&
19259 { ac_try='test -s conftest.$ac_objext'
19260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19261 (eval $ac_try) 2>&5
19262 ac_status=$?
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); }; }; then
19265 ac_hi=$ac_mid; break
19266else
19267 echo "$as_me: failed program was:" >&5
19268sed 's/^/| /' conftest.$ac_ext >&5
19269
19270ac_lo=`expr $ac_mid + 1`
19271 if test $ac_lo -le $ac_mid; then
19272 ac_lo= ac_hi=
19273 break
19274 fi
19275 ac_mid=`expr 2 '*' $ac_mid + 1`
19276fi
19277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19278 done
19279else
19280 echo "$as_me: failed program was:" >&5
19281sed 's/^/| /' conftest.$ac_ext >&5
19282
19283cat >conftest.$ac_ext <<_ACEOF
19284/* confdefs.h. */
19285_ACEOF
19286cat confdefs.h >>conftest.$ac_ext
19287cat >>conftest.$ac_ext <<_ACEOF
19288/* end confdefs.h. */
19289
19290 /* DJGPP only has fake wchar_t: */
19291 #ifdef __DJGPP__
19292 # error "fake wchar_t"
19293 #endif
19294 #ifdef HAVE_WCHAR_H
19295 # ifdef __CYGWIN__
19296 # include <stddef.h>
19297 # endif
19298 # include <wchar.h>
19299 #endif
19300 #ifdef HAVE_STDLIB_H
19301 # include <stdlib.h>
19302 #endif
19303 #include <stdio.h>
19304
19305
19306
19307int
19308main ()
19309{
19310static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19311test_array [0] = 0
19312
19313 ;
19314 return 0;
19315}
19316_ACEOF
19317rm -f conftest.$ac_objext
19318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19319 (eval $ac_compile) 2>conftest.er1
19320 ac_status=$?
19321 grep -v '^ *+' conftest.er1 >conftest.err
19322 rm -f conftest.er1
19323 cat conftest.err >&5
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); } &&
07158944 19326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328 (eval $ac_try) 2>&5
19329 ac_status=$?
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); }; } &&
19332 { ac_try='test -s conftest.$ac_objext'
19333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19334 (eval $ac_try) 2>&5
19335 ac_status=$?
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); }; }; then
19338 ac_hi=-1 ac_mid=-1
19339 while :; do
19340 cat >conftest.$ac_ext <<_ACEOF
19341/* confdefs.h. */
19342_ACEOF
19343cat confdefs.h >>conftest.$ac_ext
19344cat >>conftest.$ac_ext <<_ACEOF
19345/* end confdefs.h. */
19346
19347 /* DJGPP only has fake wchar_t: */
19348 #ifdef __DJGPP__
19349 # error "fake wchar_t"
19350 #endif
19351 #ifdef HAVE_WCHAR_H
19352 # ifdef __CYGWIN__
19353 # include <stddef.h>
19354 # endif
19355 # include <wchar.h>
19356 #endif
19357 #ifdef HAVE_STDLIB_H
19358 # include <stdlib.h>
19359 #endif
19360 #include <stdio.h>
19361
19362
19363
19364int
19365main ()
19366{
19367static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19368test_array [0] = 0
19369
19370 ;
19371 return 0;
19372}
19373_ACEOF
19374rm -f conftest.$ac_objext
19375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19376 (eval $ac_compile) 2>conftest.er1
19377 ac_status=$?
19378 grep -v '^ *+' conftest.er1 >conftest.err
19379 rm -f conftest.er1
19380 cat conftest.err >&5
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); } &&
07158944 19383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19385 (eval $ac_try) 2>&5
19386 ac_status=$?
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); }; } &&
19389 { ac_try='test -s conftest.$ac_objext'
19390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391 (eval $ac_try) 2>&5
19392 ac_status=$?
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; }; then
19395 ac_lo=$ac_mid; break
19396else
19397 echo "$as_me: failed program was:" >&5
19398sed 's/^/| /' conftest.$ac_ext >&5
19399
19400ac_hi=`expr '(' $ac_mid ')' - 1`
19401 if test $ac_mid -le $ac_hi; then
19402 ac_lo= ac_hi=
19403 break
19404 fi
19405 ac_mid=`expr 2 '*' $ac_mid`
19406fi
19407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19408 done
19409else
19410 echo "$as_me: failed program was:" >&5
19411sed 's/^/| /' conftest.$ac_ext >&5
19412
19413ac_lo= ac_hi=
19414fi
19415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19416fi
19417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19418# Binary search between lo and hi bounds.
19419while test "x$ac_lo" != "x$ac_hi"; do
19420 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19421 cat >conftest.$ac_ext <<_ACEOF
19422/* confdefs.h. */
19423_ACEOF
19424cat confdefs.h >>conftest.$ac_ext
19425cat >>conftest.$ac_ext <<_ACEOF
19426/* end confdefs.h. */
19427
19428 /* DJGPP only has fake wchar_t: */
19429 #ifdef __DJGPP__
19430 # error "fake wchar_t"
19431 #endif
19432 #ifdef HAVE_WCHAR_H
19433 # ifdef __CYGWIN__
19434 # include <stddef.h>
19435 # endif
19436 # include <wchar.h>
19437 #endif
19438 #ifdef HAVE_STDLIB_H
19439 # include <stdlib.h>
19440 #endif
19441 #include <stdio.h>
a848cd7e 19442
a848cd7e 19443
a848cd7e 19444
238ecede
MW
19445int
19446main ()
19447{
19448static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19449test_array [0] = 0
a848cd7e 19450
238ecede
MW
19451 ;
19452 return 0;
19453}
19454_ACEOF
19455rm -f conftest.$ac_objext
19456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19457 (eval $ac_compile) 2>conftest.er1
19458 ac_status=$?
19459 grep -v '^ *+' conftest.er1 >conftest.err
19460 rm -f conftest.er1
19461 cat conftest.err >&5
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); } &&
07158944 19464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19466 (eval $ac_try) 2>&5
19467 ac_status=$?
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); }; } &&
19470 { ac_try='test -s conftest.$ac_objext'
19471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19473 ac_status=$?
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; }; then
19476 ac_hi=$ac_mid
19477else
19478 echo "$as_me: failed program was:" >&5
19479sed 's/^/| /' conftest.$ac_ext >&5
19480
19481ac_lo=`expr '(' $ac_mid ')' + 1`
19482fi
19483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19484done
19485case $ac_lo in
19486?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19487'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19488See \`config.log' for more details." >&5
19489echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19490See \`config.log' for more details." >&2;}
19491 { (exit 1); exit 1; }; } ;;
19492esac
19493else
19494 if test "$cross_compiling" = yes; then
07158944
VZ
19495 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19496echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 19497 { (exit 1); exit 1; }; }
a848cd7e
SC
19498else
19499 cat >conftest.$ac_ext <<_ACEOF
19500/* confdefs.h. */
19501_ACEOF
19502cat confdefs.h >>conftest.$ac_ext
19503cat >>conftest.$ac_ext <<_ACEOF
19504/* end confdefs.h. */
19505
238ecede
MW
19506 /* DJGPP only has fake wchar_t: */
19507 #ifdef __DJGPP__
19508 # error "fake wchar_t"
19509 #endif
19510 #ifdef HAVE_WCHAR_H
19511 # ifdef __CYGWIN__
19512 # include <stddef.h>
19513 # endif
19514 # include <wchar.h>
19515 #endif
19516 #ifdef HAVE_STDLIB_H
19517 # include <stdlib.h>
19518 #endif
19519 #include <stdio.h>
19520
19521
19522
19523long longval () { return (long) (sizeof (wchar_t)); }
19524unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19525#include <stdio.h>
19526#include <stdlib.h>
19527int
19528main ()
19529{
a848cd7e 19530
238ecede
MW
19531 FILE *f = fopen ("conftest.val", "w");
19532 if (! f)
19533 exit (1);
19534 if (((long) (sizeof (wchar_t))) < 0)
19535 {
19536 long i = longval ();
19537 if (i != ((long) (sizeof (wchar_t))))
19538 exit (1);
19539 fprintf (f, "%ld\n", i);
19540 }
19541 else
19542 {
19543 unsigned long i = ulongval ();
19544 if (i != ((long) (sizeof (wchar_t))))
19545 exit (1);
19546 fprintf (f, "%lu\n", i);
19547 }
19548 exit (ferror (f) || fclose (f) != 0);
19549
19550 ;
19551 return 0;
19552}
a848cd7e
SC
19553_ACEOF
19554rm -f conftest$ac_exeext
19555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19556 (eval $ac_link) 2>&5
19557 ac_status=$?
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19561 (eval $ac_try) 2>&5
19562 ac_status=$?
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); }; }; then
238ecede 19565 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
19566else
19567 echo "$as_me: program exited with status $ac_status" >&5
19568echo "$as_me: failed program was:" >&5
19569sed 's/^/| /' conftest.$ac_ext >&5
19570
19571( exit $ac_status )
238ecede
MW
19572{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19573See \`config.log' for more details." >&5
19574echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19575See \`config.log' for more details." >&2;}
19576 { (exit 1); exit 1; }; }
a848cd7e 19577fi
ac1cb8d3 19578rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 19579fi
a848cd7e 19580fi
238ecede
MW
19581rm -f conftest.val
19582else
19583 ac_cv_sizeof_wchar_t=0
19584fi
19585fi
19586echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19587echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 19588cat >>confdefs.h <<_ACEOF
238ecede 19589#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
19590_ACEOF
19591
19592
238ecede 19593
ba3d13e1
VZ
19594echo "$as_me:$LINENO: checking for va_copy" >&5
19595echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
19596if test "${wx_cv_func_va_copy+set}" = set; then
19597 echo $ECHO_N "(cached) $ECHO_C" >&6
19598else
19599
19600 cat >conftest.$ac_ext <<_ACEOF
19601
19602 #include <stdarg.h>
19603 void foo(char *f, ...)
19604 {
19605 va_list ap1, ap2;
19606 va_start(ap1, f);
19607 va_copy(ap2, ap1);
19608 va_end(ap2);
19609 va_end(ap1);
19610 }
5886b072
VZ
19611 int main()
19612 {
b902e639
VZ
19613 foo("hi", 17);
19614 return 0;
5886b072 19615 }
ba3d13e1
VZ
19616_ACEOF
19617rm -f conftest.$ac_objext conftest$ac_exeext
19618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19619 (eval $ac_link) 2>conftest.er1
19620 ac_status=$?
19621 grep -v '^ *+' conftest.er1 >conftest.err
19622 rm -f conftest.er1
19623 cat conftest.err >&5
19624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625 (exit $ac_status); } &&
07158944 19626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
19627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19628 (eval $ac_try) 2>&5
19629 ac_status=$?
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); }; } &&
19632 { ac_try='test -s conftest$ac_exeext'
19633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19634 (eval $ac_try) 2>&5
19635 ac_status=$?
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); }; }; then
19638 wx_cv_func_va_copy=yes
19639else
19640 echo "$as_me: failed program was:" >&5
19641sed 's/^/| /' conftest.$ac_ext >&5
19642
19643wx_cv_func_va_copy=no
19644
19645fi
19646rm -f conftest.err conftest.$ac_objext \
19647 conftest$ac_exeext conftest.$ac_ext
19648
19649
19650fi
19651echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
19652echo "${ECHO_T}$wx_cv_func_va_copy" >&6
19653
19654if test $wx_cv_func_va_copy = "yes"; then
19655 cat >>confdefs.h <<\_ACEOF
19656#define HAVE_VA_COPY 1
19657_ACEOF
19658
19659else
19660 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
19661echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
19662if test "${wx_cv_type_va_list_lvalue+set}" = set; then
19663 echo $ECHO_N "(cached) $ECHO_C" >&6
19664else
19665
19666 if test "$cross_compiling" = yes; then
19667 wx_cv_type_va_list_lvalue=yes
19668
19669else
19670 cat >conftest.$ac_ext <<_ACEOF
19671
19672 #include <stdarg.h>
19673 int foo(char *f, ...)
19674 {
19675 va_list ap1, ap2;
19676 va_start(ap1, f);
19677 ap2 = ap1;
19678 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
19679 return 1;
19680 va_end(ap2);
19681 va_end(ap1);
19682 return 0;
19683 }
19684 int main()
19685 {
19686 return foo("hi", 17);
19687 }
19688_ACEOF
19689rm -f conftest$ac_exeext
19690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19691 (eval $ac_link) 2>&5
19692 ac_status=$?
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19696 (eval $ac_try) 2>&5
19697 ac_status=$?
19698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699 (exit $ac_status); }; }; then
19700 wx_cv_type_va_list_lvalue=yes
19701else
19702 echo "$as_me: program exited with status $ac_status" >&5
19703echo "$as_me: failed program was:" >&5
19704sed 's/^/| /' conftest.$ac_ext >&5
19705
19706( exit $ac_status )
19707wx_cv_type_va_list_lvalue=no
19708fi
19709rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19710fi
19711
19712
19713fi
19714echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
19715echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
19716
19717 if test $wx_cv_type_va_list_lvalue != "yes"; then
19718 cat >>confdefs.h <<\_ACEOF
19719#define VA_LIST_IS_ARRAY 1
19720_ACEOF
19721
19722 fi
19723fi
19724
a848cd7e
SC
19725# Check whether --enable-largefile or --disable-largefile was given.
19726if test "${enable_largefile+set}" = set; then
19727 enableval="$enable_largefile"
19728
19729fi;
19730if test "$enable_largefile" != no; then
19731 wx_largefile=no
19732
19733 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19734echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
19735if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19736 echo $ECHO_N "(cached) $ECHO_C" >&6
19737else
19738
19739 cat >conftest.$ac_ext <<_ACEOF
19740/* confdefs.h. */
19741_ACEOF
19742cat confdefs.h >>conftest.$ac_ext
19743cat >>conftest.$ac_ext <<_ACEOF
19744/* end confdefs.h. */
19745#define _FILE_OFFSET_BITS 64
19746 #include <sys/types.h>
19747int
19748main ()
19749{
19750typedef struct {
19751 unsigned int field: sizeof(off_t) == 8;
19752} wxlf;
19753
19754 ;
19755 return 0;
19756}
19757_ACEOF
19758rm -f conftest.$ac_objext
19759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19760 (eval $ac_compile) 2>conftest.er1
a848cd7e 19761 ac_status=$?
ac1cb8d3
VS
19762 grep -v '^ *+' conftest.er1 >conftest.err
19763 rm -f conftest.er1
19764 cat conftest.err >&5
a848cd7e
SC
19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); } &&
07158944 19767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19769 (eval $ac_try) 2>&5
19770 ac_status=$?
19771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772 (exit $ac_status); }; } &&
19773 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19775 (eval $ac_try) 2>&5
19776 ac_status=$?
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); }; }; then
19779 ac_cv_sys_file_offset_bits=64
19780else
19781 echo "$as_me: failed program was:" >&5
19782sed 's/^/| /' conftest.$ac_ext >&5
19783
19784ac_cv_sys_file_offset_bits=no
19785fi
ac1cb8d3 19786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19787
19788
19789fi
19790echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19791echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
19792
19793 if test "$ac_cv_sys_file_offset_bits" != no; then
19794 wx_largefile=yes
19795 cat >>confdefs.h <<_ACEOF
19796#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19797_ACEOF
19798
19799 fi
19800
19801 if test "x$wx_largefile" != "xyes"; then
19802
19803 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19804echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
19805if test "${ac_cv_sys_large_files+set}" = set; then
19806 echo $ECHO_N "(cached) $ECHO_C" >&6
19807else
19808
19809 cat >conftest.$ac_ext <<_ACEOF
19810/* confdefs.h. */
19811_ACEOF
19812cat confdefs.h >>conftest.$ac_ext
19813cat >>conftest.$ac_ext <<_ACEOF
19814/* end confdefs.h. */
19815#define _LARGE_FILES 1
19816 #include <sys/types.h>
19817int
19818main ()
19819{
19820typedef struct {
19821 unsigned int field: sizeof(off_t) == 8;
19822} wxlf;
19823
19824 ;
19825 return 0;
19826}
19827_ACEOF
19828rm -f conftest.$ac_objext
19829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19830 (eval $ac_compile) 2>conftest.er1
a848cd7e 19831 ac_status=$?
ac1cb8d3
VS
19832 grep -v '^ *+' conftest.er1 >conftest.err
19833 rm -f conftest.er1
19834 cat conftest.err >&5
a848cd7e
SC
19835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836 (exit $ac_status); } &&
07158944 19837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19839 (eval $ac_try) 2>&5
19840 ac_status=$?
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); }; } &&
19843 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19845 (eval $ac_try) 2>&5
19846 ac_status=$?
19847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); }; }; then
19849 ac_cv_sys_large_files=1
19850else
19851 echo "$as_me: failed program was:" >&5
19852sed 's/^/| /' conftest.$ac_ext >&5
19853
19854ac_cv_sys_large_files=no
19855fi
ac1cb8d3 19856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19857
19858
19859fi
19860echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19861echo "${ECHO_T}$ac_cv_sys_large_files" >&6
19862
19863 if test "$ac_cv_sys_large_files" != no; then
19864 wx_largefile=yes
19865 cat >>confdefs.h <<_ACEOF
19866#define _LARGE_FILES $ac_cv_sys_large_files
19867_ACEOF
19868
19869 fi
19870
19871 fi
19872
19873 echo "$as_me:$LINENO: checking if large file support is available" >&5
19874echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
19875 if test "x$wx_largefile" = "xyes"; then
19876 cat >>confdefs.h <<\_ACEOF
19877#define HAVE_LARGEFILE_SUPPORT 1
19878_ACEOF
19879
19880 fi
19881 echo "$as_me:$LINENO: result: $wx_largefile" >&5
19882echo "${ECHO_T}$wx_largefile" >&6
19883fi
19884
5b674b9d
DE
19885
19886if test "x$wx_largefile" = "xyes"; then
19887 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
19888 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
19889 else
19890 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
19891 fi
19892 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
19893echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
19894if test "${ac_cv_sys_largefile_source+set}" = set; then
19895 echo $ECHO_N "(cached) $ECHO_C" >&6
19896else
19897 while :; do
19898 ac_cv_sys_largefile_source=no
19899 cat >conftest.$ac_ext <<_ACEOF
19900/* confdefs.h. */
19901_ACEOF
19902cat confdefs.h >>conftest.$ac_ext
19903cat >>conftest.$ac_ext <<_ACEOF
19904/* end confdefs.h. */
19905#include <stdio.h>
19906int
19907main ()
19908{
19909return !fseeko;
19910 ;
19911 return 0;
19912}
19913_ACEOF
19914rm -f conftest.$ac_objext
19915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19916 (eval $ac_compile) 2>conftest.er1
19917 ac_status=$?
19918 grep -v '^ *+' conftest.er1 >conftest.err
19919 rm -f conftest.er1
19920 cat conftest.err >&5
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); } &&
07158944 19923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
19924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19925 (eval $ac_try) 2>&5
19926 ac_status=$?
19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928 (exit $ac_status); }; } &&
19929 { ac_try='test -s conftest.$ac_objext'
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 break
19936else
19937 echo "$as_me: failed program was:" >&5
19938sed 's/^/| /' conftest.$ac_ext >&5
19939
19940fi
19941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19942 cat >conftest.$ac_ext <<_ACEOF
19943/* confdefs.h. */
19944_ACEOF
19945cat confdefs.h >>conftest.$ac_ext
19946cat >>conftest.$ac_ext <<_ACEOF
19947/* end confdefs.h. */
19948#define _LARGEFILE_SOURCE 1
19949#include <stdio.h>
19950int
19951main ()
19952{
19953return !fseeko;
19954 ;
19955 return 0;
19956}
19957_ACEOF
19958rm -f conftest.$ac_objext
19959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19960 (eval $ac_compile) 2>conftest.er1
19961 ac_status=$?
19962 grep -v '^ *+' conftest.er1 >conftest.err
19963 rm -f conftest.er1
19964 cat conftest.err >&5
19965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19966 (exit $ac_status); } &&
07158944 19967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
19968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19969 (eval $ac_try) 2>&5
19970 ac_status=$?
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); }; } &&
19973 { ac_try='test -s conftest.$ac_objext'
19974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19975 (eval $ac_try) 2>&5
19976 ac_status=$?
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); }; }; then
19979 ac_cv_sys_largefile_source=1; break
19980else
19981 echo "$as_me: failed program was:" >&5
19982sed 's/^/| /' conftest.$ac_ext >&5
19983
19984fi
19985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19986 break
19987done
19988fi
19989echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19990echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
19991if test "$ac_cv_sys_largefile_source" != no; then
19992
19993cat >>confdefs.h <<_ACEOF
19994#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19995_ACEOF
19996
19997fi
19998rm -f conftest*
19999
20000# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20001# in glibc 2.1.3, but that breaks too many other things.
20002# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20003echo "$as_me:$LINENO: checking for fseeko" >&5
20004echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
20005if test "${ac_cv_func_fseeko+set}" = set; then
20006 echo $ECHO_N "(cached) $ECHO_C" >&6
20007else
20008 cat >conftest.$ac_ext <<_ACEOF
20009/* confdefs.h. */
20010_ACEOF
20011cat confdefs.h >>conftest.$ac_ext
20012cat >>conftest.$ac_ext <<_ACEOF
20013/* end confdefs.h. */
20014#include <stdio.h>
20015int
20016main ()
20017{
20018return fseeko && fseeko (stdin, 0, 0);
20019 ;
20020 return 0;
20021}
20022_ACEOF
20023rm -f conftest.$ac_objext conftest$ac_exeext
20024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20025 (eval $ac_link) 2>conftest.er1
20026 ac_status=$?
20027 grep -v '^ *+' conftest.er1 >conftest.err
20028 rm -f conftest.er1
20029 cat conftest.err >&5
20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); } &&
07158944 20032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20034 (eval $ac_try) 2>&5
20035 ac_status=$?
20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); }; } &&
20038 { ac_try='test -s conftest$ac_exeext'
20039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20040 (eval $ac_try) 2>&5
20041 ac_status=$?
20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); }; }; then
20044 ac_cv_func_fseeko=yes
20045else
20046 echo "$as_me: failed program was:" >&5
20047sed 's/^/| /' conftest.$ac_ext >&5
20048
20049ac_cv_func_fseeko=no
20050fi
20051rm -f conftest.err conftest.$ac_objext \
20052 conftest$ac_exeext conftest.$ac_ext
20053fi
20054echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20055echo "${ECHO_T}$ac_cv_func_fseeko" >&6
20056if test $ac_cv_func_fseeko = yes; then
20057
20058cat >>confdefs.h <<\_ACEOF
20059#define HAVE_FSEEKO 1
20060_ACEOF
20061
20062fi
20063
5b674b9d
DE
20064 if test "$ac_cv_sys_largefile_source" != no; then
20065 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
20066 fi
20067 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
20068fi
20069
20070echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20071echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20072if test "${ac_cv_c_bigendian+set}" = set; then
20073 echo $ECHO_N "(cached) $ECHO_C" >&6
20074else
20075 ac_cv_c_bigendian=unknown
20076# See if sys/param.h defines the BYTE_ORDER macro.
20077cat >conftest.$ac_ext <<_ACEOF
20078/* confdefs.h. */
20079_ACEOF
20080cat confdefs.h >>conftest.$ac_ext
20081cat >>conftest.$ac_ext <<_ACEOF
20082/* end confdefs.h. */
20083#include <sys/types.h>
20084#include <sys/param.h>
20085int
20086main ()
20087{
20088
20089#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20090 bogus endian macros
20091#endif
20092 ;
20093 return 0;
20094}
20095_ACEOF
20096rm -f conftest.$ac_objext
20097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20098 (eval $ac_compile) 2>conftest.er1
a848cd7e 20099 ac_status=$?
ac1cb8d3
VS
20100 grep -v '^ *+' conftest.er1 >conftest.err
20101 rm -f conftest.er1
20102 cat conftest.err >&5
a848cd7e
SC
20103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104 (exit $ac_status); } &&
07158944 20105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20107 (eval $ac_try) 2>&5
20108 ac_status=$?
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); }; } &&
20111 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20113 (eval $ac_try) 2>&5
20114 ac_status=$?
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); }; }; then
20117 # It does; now see whether it defined to BIG_ENDIAN or not.
20118cat >conftest.$ac_ext <<_ACEOF
20119/* confdefs.h. */
20120_ACEOF
20121cat confdefs.h >>conftest.$ac_ext
20122cat >>conftest.$ac_ext <<_ACEOF
20123/* end confdefs.h. */
20124#include <sys/types.h>
20125#include <sys/param.h>
20126int
20127main ()
20128{
20129
20130#if BYTE_ORDER != BIG_ENDIAN
20131 not big endian
20132#endif
20133 ;
20134 return 0;
20135}
20136_ACEOF
20137rm -f conftest.$ac_objext
20138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20139 (eval $ac_compile) 2>conftest.er1
a848cd7e 20140 ac_status=$?
ac1cb8d3
VS
20141 grep -v '^ *+' conftest.er1 >conftest.err
20142 rm -f conftest.er1
20143 cat conftest.err >&5
a848cd7e
SC
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); } &&
07158944 20146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20148 (eval $ac_try) 2>&5
20149 ac_status=$?
20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); }; } &&
20152 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20154 (eval $ac_try) 2>&5
20155 ac_status=$?
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); }; }; then
20158 ac_cv_c_bigendian=yes
20159else
20160 echo "$as_me: failed program was:" >&5
20161sed 's/^/| /' conftest.$ac_ext >&5
20162
20163ac_cv_c_bigendian=no
20164fi
ac1cb8d3 20165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20166else
20167 echo "$as_me: failed program was:" >&5
20168sed 's/^/| /' conftest.$ac_ext >&5
20169
20170fi
ac1cb8d3 20171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20172if test $ac_cv_c_bigendian = unknown; then
20173if test "$cross_compiling" = yes; then
20174 ac_cv_c_bigendian=unknown
20175else
20176 cat >conftest.$ac_ext <<_ACEOF
20177/* confdefs.h. */
20178_ACEOF
20179cat confdefs.h >>conftest.$ac_ext
20180cat >>conftest.$ac_ext <<_ACEOF
20181/* end confdefs.h. */
20182main () {
20183 /* Are we little or big endian? From Harbison&Steele. */
20184 union
20185 {
20186 long l;
20187 char c[sizeof (long)];
20188 } u;
20189 u.l = 1;
20190 exit (u.c[sizeof (long) - 1] == 1);
20191}
20192_ACEOF
20193rm -f conftest$ac_exeext
20194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20195 (eval $ac_link) 2>&5
20196 ac_status=$?
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20200 (eval $ac_try) 2>&5
20201 ac_status=$?
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); }; }; then
20204 ac_cv_c_bigendian=no
20205else
20206 echo "$as_me: program exited with status $ac_status" >&5
20207echo "$as_me: failed program was:" >&5
20208sed 's/^/| /' conftest.$ac_ext >&5
20209
20210( exit $ac_status )
20211ac_cv_c_bigendian=yes
20212fi
ac1cb8d3 20213rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20214fi
20215fi
20216fi
20217echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20218echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20219if test $ac_cv_c_bigendian = unknown; then
20220 { 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
20221echo "$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;}
20222fi
20223if test $ac_cv_c_bigendian = yes; then
20224 cat >>confdefs.h <<\_ACEOF
20225#define WORDS_BIGENDIAN 1
20226_ACEOF
20227
20228fi
20229
20230
20231ac_ext=cc
20232ac_cpp='$CXXCPP $CPPFLAGS'
20233ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20234ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20235ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20236echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
20237echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20238if test -z "$CXXCPP"; then
20239 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20240 echo $ECHO_N "(cached) $ECHO_C" >&6
20241else
20242 # Double quotes because CXXCPP needs to be expanded
20243 for CXXCPP in "$CXX -E" "/lib/cpp"
20244 do
20245 ac_preproc_ok=false
20246for ac_cxx_preproc_warn_flag in '' yes
20247do
20248 # Use a header file that comes with gcc, so configuring glibc
20249 # with a fresh cross-compiler works.
20250 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20251 # <limits.h> exists even on freestanding compilers.
20252 # On the NeXT, cc -E runs the code through the compiler's parser,
20253 # not just through cpp. "Syntax error" is here to catch this case.
20254 cat >conftest.$ac_ext <<_ACEOF
20255/* confdefs.h. */
20256_ACEOF
20257cat confdefs.h >>conftest.$ac_ext
20258cat >>conftest.$ac_ext <<_ACEOF
20259/* end confdefs.h. */
20260#ifdef __STDC__
20261# include <limits.h>
20262#else
20263# include <assert.h>
20264#endif
ac1cb8d3 20265 Syntax error
a848cd7e
SC
20266_ACEOF
20267if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20269 ac_status=$?
20270 grep -v '^ *+' conftest.er1 >conftest.err
20271 rm -f conftest.er1
20272 cat conftest.err >&5
20273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274 (exit $ac_status); } >/dev/null; then
20275 if test -s conftest.err; then
20276 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20277 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20278 else
20279 ac_cpp_err=
20280 fi
20281else
20282 ac_cpp_err=yes
20283fi
20284if test -z "$ac_cpp_err"; then
20285 :
20286else
20287 echo "$as_me: failed program was:" >&5
20288sed 's/^/| /' conftest.$ac_ext >&5
20289
20290 # Broken: fails on valid input.
20291continue
20292fi
20293rm -f conftest.err conftest.$ac_ext
20294
20295 # OK, works on sane cases. Now check whether non-existent headers
20296 # can be detected and how.
20297 cat >conftest.$ac_ext <<_ACEOF
20298/* confdefs.h. */
20299_ACEOF
20300cat confdefs.h >>conftest.$ac_ext
20301cat >>conftest.$ac_ext <<_ACEOF
20302/* end confdefs.h. */
20303#include <ac_nonexistent.h>
20304_ACEOF
20305if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20306 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20307 ac_status=$?
20308 grep -v '^ *+' conftest.er1 >conftest.err
20309 rm -f conftest.er1
20310 cat conftest.err >&5
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); } >/dev/null; then
20313 if test -s conftest.err; then
20314 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20315 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20316 else
20317 ac_cpp_err=
20318 fi
20319else
20320 ac_cpp_err=yes
20321fi
20322if test -z "$ac_cpp_err"; then
20323 # Broken: success on invalid input.
20324continue
20325else
20326 echo "$as_me: failed program was:" >&5
20327sed 's/^/| /' conftest.$ac_ext >&5
20328
20329 # Passes both tests.
20330ac_preproc_ok=:
20331break
20332fi
20333rm -f conftest.err conftest.$ac_ext
20334
20335done
20336# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20337rm -f conftest.err conftest.$ac_ext
20338if $ac_preproc_ok; then
20339 break
20340fi
20341
20342 done
20343 ac_cv_prog_CXXCPP=$CXXCPP
20344
20345fi
20346 CXXCPP=$ac_cv_prog_CXXCPP
20347else
20348 ac_cv_prog_CXXCPP=$CXXCPP
20349fi
20350echo "$as_me:$LINENO: result: $CXXCPP" >&5
20351echo "${ECHO_T}$CXXCPP" >&6
20352ac_preproc_ok=false
20353for ac_cxx_preproc_warn_flag in '' yes
20354do
20355 # Use a header file that comes with gcc, so configuring glibc
20356 # with a fresh cross-compiler works.
20357 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20358 # <limits.h> exists even on freestanding compilers.
20359 # On the NeXT, cc -E runs the code through the compiler's parser,
20360 # not just through cpp. "Syntax error" is here to catch this case.
20361 cat >conftest.$ac_ext <<_ACEOF
20362/* confdefs.h. */
20363_ACEOF
20364cat confdefs.h >>conftest.$ac_ext
20365cat >>conftest.$ac_ext <<_ACEOF
20366/* end confdefs.h. */
20367#ifdef __STDC__
20368# include <limits.h>
20369#else
20370# include <assert.h>
20371#endif
ac1cb8d3 20372 Syntax error
a848cd7e
SC
20373_ACEOF
20374if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20376 ac_status=$?
20377 grep -v '^ *+' conftest.er1 >conftest.err
20378 rm -f conftest.er1
20379 cat conftest.err >&5
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); } >/dev/null; then
20382 if test -s conftest.err; then
20383 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20384 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20385 else
20386 ac_cpp_err=
20387 fi
20388else
20389 ac_cpp_err=yes
20390fi
20391if test -z "$ac_cpp_err"; then
20392 :
20393else
20394 echo "$as_me: failed program was:" >&5
20395sed 's/^/| /' conftest.$ac_ext >&5
20396
20397 # Broken: fails on valid input.
20398continue
20399fi
20400rm -f conftest.err conftest.$ac_ext
20401
20402 # OK, works on sane cases. Now check whether non-existent headers
20403 # can be detected and how.
20404 cat >conftest.$ac_ext <<_ACEOF
20405/* confdefs.h. */
20406_ACEOF
20407cat confdefs.h >>conftest.$ac_ext
20408cat >>conftest.$ac_ext <<_ACEOF
20409/* end confdefs.h. */
20410#include <ac_nonexistent.h>
20411_ACEOF
20412if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20414 ac_status=$?
20415 grep -v '^ *+' conftest.er1 >conftest.err
20416 rm -f conftest.er1
20417 cat conftest.err >&5
20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); } >/dev/null; then
20420 if test -s conftest.err; then
20421 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20422 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20423 else
20424 ac_cpp_err=
20425 fi
20426else
20427 ac_cpp_err=yes
20428fi
20429if test -z "$ac_cpp_err"; then
20430 # Broken: success on invalid input.
20431continue
20432else
20433 echo "$as_me: failed program was:" >&5
20434sed 's/^/| /' conftest.$ac_ext >&5
20435
20436 # Passes both tests.
20437ac_preproc_ok=:
20438break
20439fi
20440rm -f conftest.err conftest.$ac_ext
20441
20442done
20443# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20444rm -f conftest.err conftest.$ac_ext
20445if $ac_preproc_ok; then
20446 :
20447else
20448 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20449See \`config.log' for more details." >&5
20450echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20451See \`config.log' for more details." >&2;}
20452 { (exit 1); exit 1; }; }
20453fi
20454
20455ac_ext=cc
20456ac_cpp='$CXXCPP $CPPFLAGS'
20457ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20458ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20459ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20460
20461
20462
20463
20464
20465 ac_ext=cc
20466ac_cpp='$CXXCPP $CPPFLAGS'
20467ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20468ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20469ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20470
20471
20472
20473for ac_header in iostream
20474do
20475as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20476if eval "test \"\${$as_ac_Header+set}\" = set"; then
20477 echo "$as_me:$LINENO: checking for $ac_header" >&5
20478echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20479if eval "test \"\${$as_ac_Header+set}\" = set"; then
20480 echo $ECHO_N "(cached) $ECHO_C" >&6
20481fi
20482echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20483echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20484else
20485 # Is the header compilable?
20486echo "$as_me:$LINENO: checking $ac_header usability" >&5
20487echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20488cat >conftest.$ac_ext <<_ACEOF
20489/* confdefs.h. */
20490_ACEOF
20491cat confdefs.h >>conftest.$ac_ext
20492cat >>conftest.$ac_ext <<_ACEOF
20493/* end confdefs.h. */
20494$ac_includes_default
20495#include <$ac_header>
20496_ACEOF
20497rm -f conftest.$ac_objext
20498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20499 (eval $ac_compile) 2>conftest.er1
a848cd7e 20500 ac_status=$?
ac1cb8d3
VS
20501 grep -v '^ *+' conftest.er1 >conftest.err
20502 rm -f conftest.er1
20503 cat conftest.err >&5
a848cd7e
SC
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); } &&
07158944 20506 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20508 (eval $ac_try) 2>&5
20509 ac_status=$?
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); }; } &&
20512 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20514 (eval $ac_try) 2>&5
20515 ac_status=$?
20516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517 (exit $ac_status); }; }; then
20518 ac_header_compiler=yes
20519else
20520 echo "$as_me: failed program was:" >&5
20521sed 's/^/| /' conftest.$ac_ext >&5
20522
20523ac_header_compiler=no
20524fi
ac1cb8d3 20525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20526echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20527echo "${ECHO_T}$ac_header_compiler" >&6
20528
20529# Is the header present?
20530echo "$as_me:$LINENO: checking $ac_header presence" >&5
20531echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20532cat >conftest.$ac_ext <<_ACEOF
20533/* confdefs.h. */
20534_ACEOF
20535cat confdefs.h >>conftest.$ac_ext
20536cat >>conftest.$ac_ext <<_ACEOF
20537/* end confdefs.h. */
20538#include <$ac_header>
20539_ACEOF
20540if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20541 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20542 ac_status=$?
20543 grep -v '^ *+' conftest.er1 >conftest.err
20544 rm -f conftest.er1
20545 cat conftest.err >&5
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); } >/dev/null; then
20548 if test -s conftest.err; then
20549 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20550 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20551 else
20552 ac_cpp_err=
20553 fi
20554else
20555 ac_cpp_err=yes
20556fi
20557if test -z "$ac_cpp_err"; then
20558 ac_header_preproc=yes
20559else
20560 echo "$as_me: failed program was:" >&5
20561sed 's/^/| /' conftest.$ac_ext >&5
20562
20563 ac_header_preproc=no
20564fi
20565rm -f conftest.err conftest.$ac_ext
20566echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20567echo "${ECHO_T}$ac_header_preproc" >&6
20568
20569# So? What about this header?
ac1cb8d3
VS
20570case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20571 yes:no: )
a848cd7e
SC
20572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20573echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20575echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20576 ac_header_preproc=yes
a848cd7e 20577 ;;
ac1cb8d3 20578 no:yes:* )
a848cd7e
SC
20579 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20580echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20581 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20582echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20583 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20584echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20585 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20586echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20588echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20589 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20590echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20591 (
20592 cat <<\_ASBOX
ac1cb8d3
VS
20593## ----------------------------------------- ##
20594## Report this to wx-dev@lists.wxwidgets.org ##
20595## ----------------------------------------- ##
a848cd7e
SC
20596_ASBOX
20597 ) |
20598 sed "s/^/$as_me: WARNING: /" >&2
20599 ;;
20600esac
20601echo "$as_me:$LINENO: checking for $ac_header" >&5
20602echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20603if eval "test \"\${$as_ac_Header+set}\" = set"; then
20604 echo $ECHO_N "(cached) $ECHO_C" >&6
20605else
ac1cb8d3 20606 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
20607fi
20608echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20609echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20610
20611fi
20612if test `eval echo '${'$as_ac_Header'}'` = yes; then
20613 cat >>confdefs.h <<_ACEOF
20614#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20615_ACEOF
20616
20617fi
20618
20619done
20620
20621
20622 if test "$ac_cv_header_iostream" = "yes" ; then
20623 :
20624 else
20625 cat >>confdefs.h <<\_ACEOF
20626#define wxUSE_IOSTREAMH 1
20627_ACEOF
20628
20629 fi
20630
20631 ac_ext=c
20632ac_cpp='$CPP $CPPFLAGS'
20633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20635ac_compiler_gnu=$ac_cv_c_compiler_gnu
20636
20637
20638
20639
20640 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
20641echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
20642if test "${wx_cv_cpp_bool+set}" = set; then
20643 echo $ECHO_N "(cached) $ECHO_C" >&6
20644else
20645
20646
20647
20648 ac_ext=cc
20649ac_cpp='$CXXCPP $CPPFLAGS'
20650ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20651ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20652ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20653
20654
20655 cat >conftest.$ac_ext <<_ACEOF
20656/* confdefs.h. */
20657_ACEOF
20658cat confdefs.h >>conftest.$ac_ext
20659cat >>conftest.$ac_ext <<_ACEOF
20660/* end confdefs.h. */
20661
20662
20663int
20664main ()
20665{
20666
20667 bool b = true;
20668
20669 return 0;
20670
20671 ;
20672 return 0;
20673}
20674_ACEOF
20675rm -f conftest.$ac_objext
20676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20677 (eval $ac_compile) 2>conftest.er1
a848cd7e 20678 ac_status=$?
ac1cb8d3
VS
20679 grep -v '^ *+' conftest.er1 >conftest.err
20680 rm -f conftest.er1
20681 cat conftest.err >&5
a848cd7e
SC
20682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683 (exit $ac_status); } &&
07158944 20684 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686 (eval $ac_try) 2>&5
20687 ac_status=$?
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); }; } &&
20690 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20692 (eval $ac_try) 2>&5
20693 ac_status=$?
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); }; }; then
20696
20697 wx_cv_cpp_bool=yes
20698
20699else
20700 echo "$as_me: failed program was:" >&5
20701sed 's/^/| /' conftest.$ac_ext >&5
20702
20703
20704 wx_cv_cpp_bool=no
20705
20706
20707fi
ac1cb8d3 20708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20709
20710 ac_ext=c
20711ac_cpp='$CPP $CPPFLAGS'
20712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20714ac_compiler_gnu=$ac_cv_c_compiler_gnu
20715
20716
20717fi
20718echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
20719echo "${ECHO_T}$wx_cv_cpp_bool" >&6
20720
20721 if test "$wx_cv_cpp_bool" = "yes"; then
20722 cat >>confdefs.h <<\_ACEOF
20723#define HAVE_BOOL 1
20724_ACEOF
20725
20726 fi
20727
20728
20729
20730 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
20731echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
20732if test "${wx_cv_explicit+set}" = set; then
20733 echo $ECHO_N "(cached) $ECHO_C" >&6
20734else
20735
20736
20737
20738 ac_ext=cc
20739ac_cpp='$CXXCPP $CPPFLAGS'
20740ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20741ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20742ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20743
20744
20745 cat >conftest.$ac_ext <<_ACEOF
20746/* confdefs.h. */
20747_ACEOF
20748cat confdefs.h >>conftest.$ac_ext
20749cat >>conftest.$ac_ext <<_ACEOF
20750/* end confdefs.h. */
20751
20752 class Foo { public: explicit Foo(int) {} };
20753
20754int
20755main ()
20756{
20757
20758 return 0;
20759
20760 ;
20761 return 0;
20762}
20763_ACEOF
20764rm -f conftest.$ac_objext
20765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20766 (eval $ac_compile) 2>conftest.er1
a848cd7e 20767 ac_status=$?
ac1cb8d3
VS
20768 grep -v '^ *+' conftest.er1 >conftest.err
20769 rm -f conftest.er1
20770 cat conftest.err >&5
a848cd7e
SC
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); } &&
07158944 20773 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20775 (eval $ac_try) 2>&5
20776 ac_status=$?
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); }; } &&
20779 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20781 (eval $ac_try) 2>&5
20782 ac_status=$?
20783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784 (exit $ac_status); }; }; then
20785
20786 cat >conftest.$ac_ext <<_ACEOF
20787/* confdefs.h. */
20788_ACEOF
20789cat confdefs.h >>conftest.$ac_ext
20790cat >>conftest.$ac_ext <<_ACEOF
20791/* end confdefs.h. */
20792
20793 class Foo { public: explicit Foo(int) {} };
20794 static void TakeFoo(const Foo& foo) { }
20795
20796int
20797main ()
20798{
20799
20800 TakeFoo(17);
20801 return 0;
20802
20803 ;
20804 return 0;
20805}
20806_ACEOF
20807rm -f conftest.$ac_objext
20808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20809 (eval $ac_compile) 2>conftest.er1
a848cd7e 20810 ac_status=$?
ac1cb8d3
VS
20811 grep -v '^ *+' conftest.er1 >conftest.err
20812 rm -f conftest.er1
20813 cat conftest.err >&5
a848cd7e
SC
20814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); } &&
07158944 20816 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20818 (eval $ac_try) 2>&5
20819 ac_status=$?
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); }; } &&
20822 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20824 (eval $ac_try) 2>&5
20825 ac_status=$?
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); }; }; then
20828 wx_cv_explicit=no
20829else
20830 echo "$as_me: failed program was:" >&5
20831sed 's/^/| /' conftest.$ac_ext >&5
20832
20833wx_cv_explicit=yes
20834
20835fi
ac1cb8d3 20836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20837
20838else
20839 echo "$as_me: failed program was:" >&5
20840sed 's/^/| /' conftest.$ac_ext >&5
20841
20842wx_cv_explicit=no
20843
20844fi
ac1cb8d3 20845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20846
20847 ac_ext=c
20848ac_cpp='$CPP $CPPFLAGS'
20849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20851ac_compiler_gnu=$ac_cv_c_compiler_gnu
20852
20853
20854fi
20855echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
20856echo "${ECHO_T}$wx_cv_explicit" >&6
20857
20858 if test "$wx_cv_explicit" = "yes"; then
20859 cat >>confdefs.h <<\_ACEOF
20860#define HAVE_EXPLICIT 1
20861_ACEOF
20862
20863 fi
20864
20865
20866echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
20867echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
20868if test "${ac_cv_cxx_const_cast+set}" = set; then
20869 echo $ECHO_N "(cached) $ECHO_C" >&6
20870else
20871
20872
20873 ac_ext=cc
20874ac_cpp='$CXXCPP $CPPFLAGS'
20875ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20876ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20877ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20878
20879 cat >conftest.$ac_ext <<_ACEOF
20880/* confdefs.h. */
20881_ACEOF
20882cat confdefs.h >>conftest.$ac_ext
20883cat >>conftest.$ac_ext <<_ACEOF
20884/* end confdefs.h. */
20885
20886int
20887main ()
20888{
20889int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
20890 ;
20891 return 0;
20892}
20893_ACEOF
20894rm -f conftest.$ac_objext
20895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20896 (eval $ac_compile) 2>conftest.er1
a848cd7e 20897 ac_status=$?
ac1cb8d3
VS
20898 grep -v '^ *+' conftest.er1 >conftest.err
20899 rm -f conftest.er1
20900 cat conftest.err >&5
a848cd7e
SC
20901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); } &&
07158944 20903 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20905 (eval $ac_try) 2>&5
20906 ac_status=$?
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); }; } &&
20909 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20911 (eval $ac_try) 2>&5
20912 ac_status=$?
20913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); }; }; then
20915 ac_cv_cxx_const_cast=yes
20916else
20917 echo "$as_me: failed program was:" >&5
20918sed 's/^/| /' conftest.$ac_ext >&5
20919
20920ac_cv_cxx_const_cast=no
20921fi
ac1cb8d3 20922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20923 ac_ext=c
20924ac_cpp='$CPP $CPPFLAGS'
20925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20927ac_compiler_gnu=$ac_cv_c_compiler_gnu
20928
20929
20930fi
20931echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
20932echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
20933if test "$ac_cv_cxx_const_cast" = yes; then
20934
20935cat >>confdefs.h <<\_ACEOF
20936#define HAVE_CONST_CAST
20937_ACEOF
20938
20939fi
20940
7714864e
RL
20941echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
20942echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
20943if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
20944 echo $ECHO_N "(cached) $ECHO_C" >&6
20945else
20946
20947
20948 ac_ext=cc
20949ac_cpp='$CXXCPP $CPPFLAGS'
20950ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20951ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20952ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20953
20954 cat >conftest.$ac_ext <<_ACEOF
20955/* confdefs.h. */
20956_ACEOF
20957cat confdefs.h >>conftest.$ac_ext
20958cat >>conftest.$ac_ext <<_ACEOF
20959/* end confdefs.h. */
20960#include <typeinfo>
20961class Base { public : Base () {} virtual void f () = 0;};
20962class Derived : public Base { public : Derived () {} virtual void f () {} };
20963class Unrelated { public : Unrelated () {} };
20964int g (Unrelated&) { return 0; }
20965int
20966main ()
20967{
20968
20969Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
20970 ;
20971 return 0;
20972}
20973_ACEOF
20974rm -f conftest.$ac_objext
20975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20976 (eval $ac_compile) 2>conftest.er1
20977 ac_status=$?
20978 grep -v '^ *+' conftest.er1 >conftest.err
20979 rm -f conftest.er1
20980 cat conftest.err >&5
20981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982 (exit $ac_status); } &&
07158944 20983 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
20984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20985 (eval $ac_try) 2>&5
20986 ac_status=$?
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); }; } &&
20989 { ac_try='test -s conftest.$ac_objext'
20990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20991 (eval $ac_try) 2>&5
20992 ac_status=$?
20993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); }; }; then
20995 ac_cv_cxx_reinterpret_cast=yes
20996else
20997 echo "$as_me: failed program was:" >&5
20998sed 's/^/| /' conftest.$ac_ext >&5
20999
21000ac_cv_cxx_reinterpret_cast=no
21001fi
21002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21003 ac_ext=c
21004ac_cpp='$CPP $CPPFLAGS'
21005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21007ac_compiler_gnu=$ac_cv_c_compiler_gnu
21008
21009
21010fi
21011echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
21012echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
21013if test "$ac_cv_cxx_reinterpret_cast" = yes; then
21014
21015cat >>confdefs.h <<\_ACEOF
21016#define HAVE_REINTERPRET_CAST
21017_ACEOF
21018
21019fi
21020
a848cd7e
SC
21021echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
21022echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
21023if test "${ac_cv_cxx_static_cast+set}" = set; then
21024 echo $ECHO_N "(cached) $ECHO_C" >&6
21025else
21026
21027
21028 ac_ext=cc
21029ac_cpp='$CXXCPP $CPPFLAGS'
21030ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21031ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21032ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21033
21034 cat >conftest.$ac_ext <<_ACEOF
21035/* confdefs.h. */
21036_ACEOF
21037cat confdefs.h >>conftest.$ac_ext
21038cat >>conftest.$ac_ext <<_ACEOF
21039/* end confdefs.h. */
21040#include <typeinfo>
21041class Base { public : Base () {} virtual void f () = 0; };
21042class Derived : public Base { public : Derived () {} virtual void f () {} };
21043int g (Derived&) { return 0; }
21044int
21045main ()
21046{
21047
21048Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
21049 ;
21050 return 0;
21051}
21052_ACEOF
21053rm -f conftest.$ac_objext
21054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21055 (eval $ac_compile) 2>conftest.er1
a848cd7e 21056 ac_status=$?
ac1cb8d3
VS
21057 grep -v '^ *+' conftest.er1 >conftest.err
21058 rm -f conftest.er1
21059 cat conftest.err >&5
a848cd7e
SC
21060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061 (exit $ac_status); } &&
07158944 21062 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21064 (eval $ac_try) 2>&5
21065 ac_status=$?
21066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067 (exit $ac_status); }; } &&
21068 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21070 (eval $ac_try) 2>&5
21071 ac_status=$?
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); }; }; then
21074 ac_cv_cxx_static_cast=yes
21075else
21076 echo "$as_me: failed program was:" >&5
21077sed 's/^/| /' conftest.$ac_ext >&5
21078
21079ac_cv_cxx_static_cast=no
21080fi
ac1cb8d3 21081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21082 ac_ext=c
21083ac_cpp='$CPP $CPPFLAGS'
21084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21086ac_compiler_gnu=$ac_cv_c_compiler_gnu
21087
21088
21089fi
21090echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
21091echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
21092if test "$ac_cv_cxx_static_cast" = yes; then
21093
21094cat >>confdefs.h <<\_ACEOF
21095#define HAVE_STATIC_CAST
21096_ACEOF
21097
21098fi
21099
21100
21101if test "$wxUSE_STL" = "yes"; then
21102 ac_ext=cc
21103ac_cpp='$CXXCPP $CPPFLAGS'
21104ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21105ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21106ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21107
21108
21109 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
21110echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
21111 cat >conftest.$ac_ext <<_ACEOF
21112/* confdefs.h. */
21113_ACEOF
21114cat confdefs.h >>conftest.$ac_ext
21115cat >>conftest.$ac_ext <<_ACEOF
21116/* end confdefs.h. */
21117#include <string>
21118 #include <functional>
21119 #include <algorithm>
21120 #include <vector>
21121 #include <list>
21122int
21123main ()
21124{
21125std::vector<int> moo;
21126 std::list<int> foo;
21127 std::vector<int>::iterator it =
21128 std::find_if(moo.begin(), moo.end(),
21129 std::bind2nd(std::less<int>(), 3));
21130 ;
21131 return 0;
21132}
21133_ACEOF
21134rm -f conftest.$ac_objext
21135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21136 (eval $ac_compile) 2>conftest.er1
a848cd7e 21137 ac_status=$?
ac1cb8d3
VS
21138 grep -v '^ *+' conftest.er1 >conftest.err
21139 rm -f conftest.er1
21140 cat conftest.err >&5
a848cd7e
SC
21141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142 (exit $ac_status); } &&
07158944 21143 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21145 (eval $ac_try) 2>&5
21146 ac_status=$?
21147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148 (exit $ac_status); }; } &&
21149 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21151 (eval $ac_try) 2>&5
21152 ac_status=$?
21153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); }; }; then
21155 echo "$as_me:$LINENO: result: yes" >&5
21156echo "${ECHO_T}yes" >&6
21157else
21158 echo "$as_me: failed program was:" >&5
21159sed 's/^/| /' conftest.$ac_ext >&5
21160
21161echo "$as_me:$LINENO: result: no" >&5
21162echo "${ECHO_T}no" >&6
21163 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
21164echo "$as_me: error: Basic STL functionality missing" >&2;}
21165 { (exit 1); exit 1; }; }
21166fi
ac1cb8d3 21167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21168
21169 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
21170echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
21171 cat >conftest.$ac_ext <<_ACEOF
21172/* confdefs.h. */
21173_ACEOF
21174cat confdefs.h >>conftest.$ac_ext
21175cat >>conftest.$ac_ext <<_ACEOF
21176/* end confdefs.h. */
21177#include <string>
21178int
21179main ()
21180{
21181std::wstring foo;
21182 ;
21183 return 0;
21184}
21185_ACEOF
21186rm -f conftest.$ac_objext
21187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21188 (eval $ac_compile) 2>conftest.er1
a848cd7e 21189 ac_status=$?
ac1cb8d3
VS
21190 grep -v '^ *+' conftest.er1 >conftest.err
21191 rm -f conftest.er1
21192 cat conftest.err >&5
a848cd7e
SC
21193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194 (exit $ac_status); } &&
07158944 21195 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21197 (eval $ac_try) 2>&5
21198 ac_status=$?
21199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200 (exit $ac_status); }; } &&
21201 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21203 (eval $ac_try) 2>&5
21204 ac_status=$?
21205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); }; }; then
21207 echo "$as_me:$LINENO: result: yes" >&5
21208echo "${ECHO_T}yes" >&6
21209 cat >>confdefs.h <<\_ACEOF
21210#define HAVE_STD_WSTRING 1
21211_ACEOF
21212
21213else
21214 echo "$as_me: failed program was:" >&5
21215sed 's/^/| /' conftest.$ac_ext >&5
21216
21217echo "$as_me:$LINENO: result: no" >&5
21218echo "${ECHO_T}no" >&6
21219fi
ac1cb8d3 21220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21221
21222 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
21223echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
21224 cat >conftest.$ac_ext <<_ACEOF
21225/* confdefs.h. */
21226_ACEOF
21227cat confdefs.h >>conftest.$ac_ext
21228cat >>conftest.$ac_ext <<_ACEOF
21229/* end confdefs.h. */
21230#include <string>
21231int
21232main ()
21233{
21234std::string foo, bar;
21235 foo.compare(bar);
21236 foo.compare(1, 1, bar);
21237 foo.compare(1, 1, bar, 1, 1);
21238 foo.compare("");
21239 foo.compare(1, 1, "");
21240 foo.compare(1, 1, "", 2);
21241 ;
21242 return 0;
21243}
21244_ACEOF
21245rm -f conftest.$ac_objext
21246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21247 (eval $ac_compile) 2>conftest.er1
a848cd7e 21248 ac_status=$?
ac1cb8d3
VS
21249 grep -v '^ *+' conftest.er1 >conftest.err
21250 rm -f conftest.er1
21251 cat conftest.err >&5
a848cd7e
SC
21252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253 (exit $ac_status); } &&
07158944 21254 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21256 (eval $ac_try) 2>&5
21257 ac_status=$?
21258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259 (exit $ac_status); }; } &&
21260 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21262 (eval $ac_try) 2>&5
21263 ac_status=$?
21264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265 (exit $ac_status); }; }; then
21266 echo "$as_me:$LINENO: result: yes" >&5
21267echo "${ECHO_T}yes" >&6
21268 cat >>confdefs.h <<\_ACEOF
21269#define HAVE_STD_STRING_COMPARE 1
21270_ACEOF
21271
21272else
21273 echo "$as_me: failed program was:" >&5
21274sed 's/^/| /' conftest.$ac_ext >&5
21275
21276echo "$as_me:$LINENO: result: no" >&5
21277echo "${ECHO_T}no" >&6
21278fi
ac1cb8d3 21279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21280
21281 if test "${ac_cv_header_hash_map+set}" = set; then
21282 echo "$as_me:$LINENO: checking for hash_map" >&5
21283echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21284if test "${ac_cv_header_hash_map+set}" = set; then
21285 echo $ECHO_N "(cached) $ECHO_C" >&6
21286fi
21287echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21288echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21289else
21290 # Is the header compilable?
21291echo "$as_me:$LINENO: checking hash_map usability" >&5
21292echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
21293cat >conftest.$ac_ext <<_ACEOF
21294/* confdefs.h. */
21295_ACEOF
21296cat confdefs.h >>conftest.$ac_ext
21297cat >>conftest.$ac_ext <<_ACEOF
21298/* end confdefs.h. */
21299$ac_includes_default
21300#include <hash_map>
21301_ACEOF
21302rm -f conftest.$ac_objext
21303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21304 (eval $ac_compile) 2>conftest.er1
bdcade0a 21305 ac_status=$?
ac1cb8d3
VS
21306 grep -v '^ *+' conftest.er1 >conftest.err
21307 rm -f conftest.er1
21308 cat conftest.err >&5
bdcade0a
MB
21309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310 (exit $ac_status); } &&
07158944 21311 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21313 (eval $ac_try) 2>&5
21314 ac_status=$?
21315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316 (exit $ac_status); }; } &&
21317 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21319 (eval $ac_try) 2>&5
21320 ac_status=$?
21321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322 (exit $ac_status); }; }; then
21323 ac_header_compiler=yes
21324else
21325 echo "$as_me: failed program was:" >&5
21326sed 's/^/| /' conftest.$ac_ext >&5
21327
21328ac_header_compiler=no
21329fi
ac1cb8d3 21330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21331echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21332echo "${ECHO_T}$ac_header_compiler" >&6
21333
21334# Is the header present?
21335echo "$as_me:$LINENO: checking hash_map presence" >&5
21336echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
21337cat >conftest.$ac_ext <<_ACEOF
21338/* confdefs.h. */
21339_ACEOF
21340cat confdefs.h >>conftest.$ac_ext
21341cat >>conftest.$ac_ext <<_ACEOF
21342/* end confdefs.h. */
21343#include <hash_map>
21344_ACEOF
21345if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21347 ac_status=$?
21348 grep -v '^ *+' conftest.er1 >conftest.err
21349 rm -f conftest.er1
21350 cat conftest.err >&5
21351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352 (exit $ac_status); } >/dev/null; then
21353 if test -s conftest.err; then
21354 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21355 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21356 else
21357 ac_cpp_err=
21358 fi
21359else
21360 ac_cpp_err=yes
21361fi
21362if test -z "$ac_cpp_err"; then
21363 ac_header_preproc=yes
21364else
21365 echo "$as_me: failed program was:" >&5
21366sed 's/^/| /' conftest.$ac_ext >&5
21367
21368 ac_header_preproc=no
21369fi
21370rm -f conftest.err conftest.$ac_ext
21371echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21372echo "${ECHO_T}$ac_header_preproc" >&6
21373
21374# So? What about this header?
ac1cb8d3
VS
21375case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21376 yes:no: )
bdcade0a
MB
21377 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21378echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21379 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
21380echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
21381 ac_header_preproc=yes
bdcade0a 21382 ;;
ac1cb8d3 21383 no:yes:* )
bdcade0a
MB
21384 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
21385echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21386 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
21387echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
21388 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
21389echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
21390 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
21391echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21392 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
21393echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21394 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
21395echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21396 (
21397 cat <<\_ASBOX
ac1cb8d3
VS
21398## ----------------------------------------- ##
21399## Report this to wx-dev@lists.wxwidgets.org ##
21400## ----------------------------------------- ##
bdcade0a
MB
21401_ASBOX
21402 ) |
21403 sed "s/^/$as_me: WARNING: /" >&2
21404 ;;
21405esac
21406echo "$as_me:$LINENO: checking for hash_map" >&5
21407echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21408if test "${ac_cv_header_hash_map+set}" = set; then
21409 echo $ECHO_N "(cached) $ECHO_C" >&6
21410else
21411 ac_cv_header_hash_map=$ac_header_preproc
21412fi
21413echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21414echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21415
21416fi
21417if test $ac_cv_header_hash_map = yes; then
21418 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21419echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21420 cat >conftest.$ac_ext <<_ACEOF
21421/* confdefs.h. */
21422_ACEOF
21423cat confdefs.h >>conftest.$ac_ext
21424cat >>conftest.$ac_ext <<_ACEOF
21425/* end confdefs.h. */
21426#include <hash_map>
21427 #include <hash_set>
21428int
21429main ()
21430{
21431std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
21432 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
21433 ;
21434 return 0;
21435}
21436_ACEOF
21437rm -f conftest.$ac_objext
21438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21439 (eval $ac_compile) 2>conftest.er1
bdcade0a 21440 ac_status=$?
ac1cb8d3
VS
21441 grep -v '^ *+' conftest.er1 >conftest.err
21442 rm -f conftest.er1
21443 cat conftest.err >&5
bdcade0a
MB
21444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445 (exit $ac_status); } &&
07158944 21446 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21448 (eval $ac_try) 2>&5
21449 ac_status=$?
21450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451 (exit $ac_status); }; } &&
21452 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21454 (eval $ac_try) 2>&5
21455 ac_status=$?
21456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457 (exit $ac_status); }; }; then
21458 echo "$as_me:$LINENO: result: yes" >&5
21459echo "${ECHO_T}yes" >&6
21460 cat >>confdefs.h <<\_ACEOF
21461#define HAVE_HASH_MAP 1
21462_ACEOF
21463
21464 cat >>confdefs.h <<\_ACEOF
21465#define HAVE_STD_HASH_MAP 1
21466_ACEOF
21467
21468else
21469 echo "$as_me: failed program was:" >&5
21470sed 's/^/| /' conftest.$ac_ext >&5
21471
21472echo "$as_me:$LINENO: result: no" >&5
21473echo "${ECHO_T}no" >&6
21474fi
ac1cb8d3 21475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21476
21477fi
21478
21479
21480
21481 if test "${ac_cv_header_ext_hash_map+set}" = set; then
21482 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21483echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21484if test "${ac_cv_header_ext_hash_map+set}" = set; then
21485 echo $ECHO_N "(cached) $ECHO_C" >&6
21486fi
21487echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21488echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21489else
21490 # Is the header compilable?
21491echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
21492echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
21493cat >conftest.$ac_ext <<_ACEOF
21494/* confdefs.h. */
21495_ACEOF
21496cat confdefs.h >>conftest.$ac_ext
21497cat >>conftest.$ac_ext <<_ACEOF
21498/* end confdefs.h. */
21499$ac_includes_default
21500#include <ext/hash_map>
21501_ACEOF
21502rm -f conftest.$ac_objext
21503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21504 (eval $ac_compile) 2>conftest.er1
bdcade0a 21505 ac_status=$?
ac1cb8d3
VS
21506 grep -v '^ *+' conftest.er1 >conftest.err
21507 rm -f conftest.er1
21508 cat conftest.err >&5
bdcade0a
MB
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); } &&
07158944 21511 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21513 (eval $ac_try) 2>&5
21514 ac_status=$?
21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); }; } &&
21517 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21519 (eval $ac_try) 2>&5
21520 ac_status=$?
21521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522 (exit $ac_status); }; }; then
21523 ac_header_compiler=yes
21524else
21525 echo "$as_me: failed program was:" >&5
21526sed 's/^/| /' conftest.$ac_ext >&5
21527
21528ac_header_compiler=no
21529fi
ac1cb8d3 21530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21531echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21532echo "${ECHO_T}$ac_header_compiler" >&6
21533
21534# Is the header present?
21535echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
21536echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
21537cat >conftest.$ac_ext <<_ACEOF
21538/* confdefs.h. */
21539_ACEOF
21540cat confdefs.h >>conftest.$ac_ext
21541cat >>conftest.$ac_ext <<_ACEOF
21542/* end confdefs.h. */
21543#include <ext/hash_map>
21544_ACEOF
21545if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21546 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21547 ac_status=$?
21548 grep -v '^ *+' conftest.er1 >conftest.err
21549 rm -f conftest.er1
21550 cat conftest.err >&5
21551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552 (exit $ac_status); } >/dev/null; then
21553 if test -s conftest.err; then
21554 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21555 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21556 else
21557 ac_cpp_err=
21558 fi
21559else
21560 ac_cpp_err=yes
21561fi
21562if test -z "$ac_cpp_err"; then
21563 ac_header_preproc=yes
21564else
21565 echo "$as_me: failed program was:" >&5
21566sed 's/^/| /' conftest.$ac_ext >&5
21567
21568 ac_header_preproc=no
21569fi
21570rm -f conftest.err conftest.$ac_ext
21571echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21572echo "${ECHO_T}$ac_header_preproc" >&6
21573
21574# So? What about this header?
ac1cb8d3
VS
21575case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21576 yes:no: )
bdcade0a
MB
21577 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21578echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21579 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
21580echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
21581 ac_header_preproc=yes
bdcade0a 21582 ;;
ac1cb8d3 21583 no:yes:* )
bdcade0a
MB
21584 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
21585echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21586 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
21587echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
21588 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
21589echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
21590 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
21591echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21592 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
21593echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21594 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
21595echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21596 (
21597 cat <<\_ASBOX
ac1cb8d3
VS
21598## ----------------------------------------- ##
21599## Report this to wx-dev@lists.wxwidgets.org ##
21600## ----------------------------------------- ##
bdcade0a
MB
21601_ASBOX
21602 ) |
21603 sed "s/^/$as_me: WARNING: /" >&2
21604 ;;
21605esac
21606echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21607echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21608if test "${ac_cv_header_ext_hash_map+set}" = set; then
21609 echo $ECHO_N "(cached) $ECHO_C" >&6
21610else
21611 ac_cv_header_ext_hash_map=$ac_header_preproc
21612fi
21613echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21614echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21615
21616fi
21617if test $ac_cv_header_ext_hash_map = yes; then
21618 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21619echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21620 cat >conftest.$ac_ext <<_ACEOF
21621/* confdefs.h. */
21622_ACEOF
21623cat confdefs.h >>conftest.$ac_ext
21624cat >>conftest.$ac_ext <<_ACEOF
21625/* end confdefs.h. */
21626#include <ext/hash_map>
21627 #include <ext/hash_set>
21628int
21629main ()
21630{
21631__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
21632 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
21633 ;
21634 return 0;
21635}
21636_ACEOF
21637rm -f conftest.$ac_objext
21638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21639 (eval $ac_compile) 2>conftest.er1
bdcade0a 21640 ac_status=$?
ac1cb8d3
VS
21641 grep -v '^ *+' conftest.er1 >conftest.err
21642 rm -f conftest.er1
21643 cat conftest.err >&5
bdcade0a
MB
21644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645 (exit $ac_status); } &&
07158944 21646 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21648 (eval $ac_try) 2>&5
21649 ac_status=$?
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); }; } &&
21652 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21654 (eval $ac_try) 2>&5
21655 ac_status=$?
21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); }; }; then
21658 echo "$as_me:$LINENO: result: yes" >&5
21659echo "${ECHO_T}yes" >&6
21660 cat >>confdefs.h <<\_ACEOF
21661#define HAVE_EXT_HASH_MAP 1
21662_ACEOF
21663
21664 cat >>confdefs.h <<\_ACEOF
21665#define HAVE_GNU_CXX_HASH_MAP 1
21666_ACEOF
21667
21668else
21669 echo "$as_me: failed program was:" >&5
21670sed 's/^/| /' conftest.$ac_ext >&5
21671
21672echo "$as_me:$LINENO: result: no" >&5
21673echo "${ECHO_T}no" >&6
21674fi
ac1cb8d3 21675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21676
21677fi
21678
21679
a848cd7e
SC
21680
21681 ac_ext=c
21682ac_cpp='$CPP $CPPFLAGS'
21683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21685ac_compiler_gnu=$ac_cv_c_compiler_gnu
21686
21687fi
21688
21689
21690SEARCH_INCLUDE="\
21691 /usr/local/include \
21692 \
21693 /usr/Motif-2.1/include \
21694 /usr/Motif-1.2/include \
21695 /usr/include/Motif1.2 \
21696 /opt/xpm/include/X11 \
21697 /opt/GBxpm/include/ \
21698 /opt/GBxpm/X11/include/ \
21699 \
21700 /usr/dt/include \
21701 /usr/openwin/include \
21702 \
21703 /usr/include/Xm \
21704 \
21705 /usr/X11R6/include \
21706 /usr/X11R6.4/include \
21707 /usr/X11R5/include \
21708 /usr/X11R4/include \
21709 \
21710 /usr/include/X11R6 \
21711 /usr/include/X11R5 \
21712 /usr/include/X11R4 \
21713 \
21714 /usr/local/X11R6/include \
21715 /usr/local/X11R5/include \
21716 /usr/local/X11R4/include \
21717 \
21718 /usr/local/include/X11R6 \
21719 /usr/local/include/X11R5 \
21720 /usr/local/include/X11R4 \
21721 \
21722 /usr/X11/include \
21723 /usr/include/X11 \
21724 /usr/local/X11/include \
21725 /usr/local/include/X11 \
21726 \
21727 /usr/X386/include \
21728 /usr/x386/include \
21729 /usr/XFree86/include/X11 \
21730 \
21731 X:/XFree86/include \
21732 X:/XFree86/include/X11 \
21733 \
21734 /usr/include/gtk \
21735 /usr/local/include/gtk \
21736 /usr/include/glib \
21737 /usr/local/include/glib \
21738 \
21739 /usr/include/qt \
21740 /usr/local/include/qt \
21741 \
21742 /usr/local/arm/3.3.2/include \
21743 \
21744 /usr/include/windows \
21745 /usr/include/wine \
21746 /usr/local/include/wine \
21747 \
21748 /usr/unsupported/include \
21749 /usr/athena/include \
21750 /usr/local/x11r5/include \
21751 /usr/lpp/Xamples/include \
21752 \
21753 /usr/openwin/share/include"
21754
07158944 21755SEARCH_LIB="/usr/lib /usr/lib32 /usr/lib64 /usr/X11R6/lib64 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g`"
a848cd7e
SC
21756
21757
21758cat >confcache <<\_ACEOF
21759# This file is a shell script that caches the results of configure
21760# tests run on this system so they can be shared between configure
21761# scripts and configure runs, see configure's option --config-cache.
21762# It is not useful on other systems. If it contains results you don't
21763# want to keep, you may remove or edit it.
21764#
21765# config.status only pays attention to the cache file if you give it
21766# the --recheck option to rerun configure.
21767#
21768# `ac_cv_env_foo' variables (set or unset) will be overridden when
21769# loading this file, other *unset* `ac_cv_foo' will be assigned the
21770# following values.
21771
21772_ACEOF
21773
21774# The following way of writing the cache mishandles newlines in values,
21775# but we know of no workaround that is simple, portable, and efficient.
21776# So, don't put newlines in cache variables' values.
21777# Ultrix sh set writes to stderr and can't be redirected directly,
21778# and sets the high bit in the cache file unless we assign to the vars.
21779{
21780 (set) 2>&1 |
21781 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21782 *ac_space=\ *)
21783 # `set' does not quote correctly, so add quotes (double-quote
21784 # substitution turns \\\\ into \\, and sed turns \\ into \).
21785 sed -n \
ac1cb8d3
VS
21786 "s/'/'\\\\''/g;
21787 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
21788 ;;
21789 *)
21790 # `set' quotes correctly as required by POSIX, so do not add quotes.
21791 sed -n \
ac1cb8d3 21792 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
21793 ;;
21794 esac;
21795} |
21796 sed '
21797 t clear
21798 : clear
21799 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21800 t end
21801 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21802 : end' >>confcache
21803if diff $cache_file confcache >/dev/null 2>&1; then :; else
21804 if test -w $cache_file; then
21805 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21806 cat confcache >$cache_file
21807 else
21808 echo "not updating unwritable cache $cache_file"
21809 fi
21810fi
21811rm -f confcache
21812
21813if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
21814 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
21815echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
21816if test "${wx_cv_lib_glibc21+set}" = set; then
21817 echo $ECHO_N "(cached) $ECHO_C" >&6
21818else
21819
21820 cat >conftest.$ac_ext <<_ACEOF
21821/* confdefs.h. */
21822_ACEOF
21823cat confdefs.h >>conftest.$ac_ext
21824cat >>conftest.$ac_ext <<_ACEOF
21825/* end confdefs.h. */
21826#include <features.h>
21827int
21828main ()
21829{
21830
21831 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
21832 #error not glibc2.1
21833 #endif
21834
21835 ;
21836 return 0;
21837}
21838_ACEOF
21839rm -f conftest.$ac_objext
21840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21841 (eval $ac_compile) 2>conftest.er1
a848cd7e 21842 ac_status=$?
ac1cb8d3
VS
21843 grep -v '^ *+' conftest.er1 >conftest.err
21844 rm -f conftest.er1
21845 cat conftest.err >&5
a848cd7e
SC
21846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847 (exit $ac_status); } &&
07158944 21848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21850 (eval $ac_try) 2>&5
21851 ac_status=$?
21852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853 (exit $ac_status); }; } &&
21854 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21856 (eval $ac_try) 2>&5
21857 ac_status=$?
21858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859 (exit $ac_status); }; }; then
21860
21861 wx_cv_lib_glibc21=yes
21862
21863else
21864 echo "$as_me: failed program was:" >&5
21865sed 's/^/| /' conftest.$ac_ext >&5
21866
21867
21868 wx_cv_lib_glibc21=no
21869
21870
21871fi
ac1cb8d3 21872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21873
21874fi
21875echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
21876echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21877 if test "$wx_cv_lib_glibc21" = "yes"; then
21878 cat >>confdefs.h <<\_ACEOF
21879#define wxHAVE_GLIBC2 1
21880_ACEOF
21881
21882 fi
21883fi
21884
21885if test "x$wx_cv_lib_glibc21" = "xyes"; then
21886 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
21887 cat >>confdefs.h <<\_ACEOF
21888#define _GNU_SOURCE 1
21889_ACEOF
21890
21891 fi
21892fi
21893
21894
21895
21896if test "$wxUSE_REGEX" != "no"; then
21897 cat >>confdefs.h <<\_ACEOF
21898#define wxUSE_REGEX 1
21899_ACEOF
21900
21901
21902 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
21903 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
21904echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
21905 wxUSE_REGEX=builtin
21906 fi
21907
21908 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
21909 if test "${ac_cv_header_regex_h+set}" = set; then
21910 echo "$as_me:$LINENO: checking for regex.h" >&5
21911echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21912if test "${ac_cv_header_regex_h+set}" = set; then
21913 echo $ECHO_N "(cached) $ECHO_C" >&6
21914fi
21915echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21916echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21917else
21918 # Is the header compilable?
21919echo "$as_me:$LINENO: checking regex.h usability" >&5
21920echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
21921cat >conftest.$ac_ext <<_ACEOF
21922/* confdefs.h. */
21923_ACEOF
21924cat confdefs.h >>conftest.$ac_ext
21925cat >>conftest.$ac_ext <<_ACEOF
21926/* end confdefs.h. */
21927$ac_includes_default
21928#include <regex.h>
21929_ACEOF
21930rm -f conftest.$ac_objext
21931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21932 (eval $ac_compile) 2>conftest.er1
a848cd7e 21933 ac_status=$?
ac1cb8d3
VS
21934 grep -v '^ *+' conftest.er1 >conftest.err
21935 rm -f conftest.er1
21936 cat conftest.err >&5
a848cd7e
SC
21937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938 (exit $ac_status); } &&
07158944 21939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21941 (eval $ac_try) 2>&5
21942 ac_status=$?
21943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944 (exit $ac_status); }; } &&
21945 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21947 (eval $ac_try) 2>&5
21948 ac_status=$?
21949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950 (exit $ac_status); }; }; then
21951 ac_header_compiler=yes
21952else
21953 echo "$as_me: failed program was:" >&5
21954sed 's/^/| /' conftest.$ac_ext >&5
21955
21956ac_header_compiler=no
21957fi
ac1cb8d3 21958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21959echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21960echo "${ECHO_T}$ac_header_compiler" >&6
21961
21962# Is the header present?
21963echo "$as_me:$LINENO: checking regex.h presence" >&5
21964echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
21965cat >conftest.$ac_ext <<_ACEOF
21966/* confdefs.h. */
21967_ACEOF
21968cat confdefs.h >>conftest.$ac_ext
21969cat >>conftest.$ac_ext <<_ACEOF
21970/* end confdefs.h. */
21971#include <regex.h>
21972_ACEOF
21973if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21975 ac_status=$?
21976 grep -v '^ *+' conftest.er1 >conftest.err
21977 rm -f conftest.er1
21978 cat conftest.err >&5
21979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21980 (exit $ac_status); } >/dev/null; then
21981 if test -s conftest.err; then
21982 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21984 else
21985 ac_cpp_err=
21986 fi
21987else
21988 ac_cpp_err=yes
21989fi
21990if test -z "$ac_cpp_err"; then
21991 ac_header_preproc=yes
21992else
21993 echo "$as_me: failed program was:" >&5
21994sed 's/^/| /' conftest.$ac_ext >&5
21995
21996 ac_header_preproc=no
21997fi
21998rm -f conftest.err conftest.$ac_ext
21999echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22000echo "${ECHO_T}$ac_header_preproc" >&6
22001
22002# So? What about this header?
ac1cb8d3
VS
22003case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22004 yes:no: )
a848cd7e
SC
22005 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22006echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22007 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22008echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22009 ac_header_preproc=yes
a848cd7e 22010 ;;
ac1cb8d3 22011 no:yes:* )
a848cd7e
SC
22012 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22013echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22014 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
22015echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
22016 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22017echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22018 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
22019echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22020 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22021echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22022 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22023echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22024 (
22025 cat <<\_ASBOX
ac1cb8d3
VS
22026## ----------------------------------------- ##
22027## Report this to wx-dev@lists.wxwidgets.org ##
22028## ----------------------------------------- ##
a848cd7e
SC
22029_ASBOX
22030 ) |
22031 sed "s/^/$as_me: WARNING: /" >&2
22032 ;;
22033esac
22034echo "$as_me:$LINENO: checking for regex.h" >&5
22035echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22036if test "${ac_cv_header_regex_h+set}" = set; then
22037 echo $ECHO_N "(cached) $ECHO_C" >&6
22038else
22039 ac_cv_header_regex_h=$ac_header_preproc
22040fi
22041echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22042echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22043
22044fi
22045if test $ac_cv_header_regex_h = yes; then
22046
22047for ac_func in regcomp
22048do
22049as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22050echo "$as_me:$LINENO: checking for $ac_func" >&5
22051echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22052if eval "test \"\${$as_ac_var+set}\" = set"; then
22053 echo $ECHO_N "(cached) $ECHO_C" >&6
22054else
22055 cat >conftest.$ac_ext <<_ACEOF
22056/* confdefs.h. */
22057_ACEOF
22058cat confdefs.h >>conftest.$ac_ext
22059cat >>conftest.$ac_ext <<_ACEOF
22060/* end confdefs.h. */
ac1cb8d3
VS
22061/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22063#define $ac_func innocuous_$ac_func
22064
a848cd7e
SC
22065/* System header to define __stub macros and hopefully few prototypes,
22066 which can conflict with char $ac_func (); below.
22067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22068 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 22069
a848cd7e
SC
22070#ifdef __STDC__
22071# include <limits.h>
22072#else
22073# include <assert.h>
22074#endif
ac1cb8d3
VS
22075
22076#undef $ac_func
22077
a848cd7e
SC
22078/* Override any gcc2 internal prototype to avoid an error. */
22079#ifdef __cplusplus
22080extern "C"
22081{
22082#endif
22083/* We use char because int might match the return type of a gcc2
22084 builtin and then its argument prototype would still apply. */
22085char $ac_func ();
22086/* The GNU C library defines this for functions which it implements
22087 to always fail with ENOSYS. Some functions are actually named
22088 something starting with __ and the normal name is an alias. */
22089#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22090choke me
22091#else
22092char (*f) () = $ac_func;
22093#endif
22094#ifdef __cplusplus
22095}
22096#endif
22097
22098int
22099main ()
22100{
22101return f != $ac_func;
22102 ;
22103 return 0;
22104}
22105_ACEOF
22106rm -f conftest.$ac_objext conftest$ac_exeext
22107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22108 (eval $ac_link) 2>conftest.er1
a848cd7e 22109 ac_status=$?
ac1cb8d3
VS
22110 grep -v '^ *+' conftest.er1 >conftest.err
22111 rm -f conftest.er1
22112 cat conftest.err >&5
a848cd7e
SC
22113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114 (exit $ac_status); } &&
07158944 22115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22117 (eval $ac_try) 2>&5
22118 ac_status=$?
22119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120 (exit $ac_status); }; } &&
22121 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22123 (eval $ac_try) 2>&5
22124 ac_status=$?
22125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126 (exit $ac_status); }; }; then
22127 eval "$as_ac_var=yes"
22128else
22129 echo "$as_me: failed program was:" >&5
22130sed 's/^/| /' conftest.$ac_ext >&5
22131
22132eval "$as_ac_var=no"
22133fi
ac1cb8d3
VS
22134rm -f conftest.err conftest.$ac_objext \
22135 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22136fi
22137echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22138echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22139if test `eval echo '${'$as_ac_var'}'` = yes; then
22140 cat >>confdefs.h <<_ACEOF
22141#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22142_ACEOF
22143
22144fi
22145done
22146
22147fi
22148
22149
22150
22151 if test "x$ac_cv_func_regcomp" != "xyes"; then
22152 if test "$wxUSE_REGEX" = "sys" ; then
22153 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
22154echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
22155 { (exit 1); exit 1; }; }
22156 else
22157 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
22158echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
22159 wxUSE_REGEX=builtin
22160 fi
22161 else
22162 wxUSE_REGEX=sys
22163 cat >>confdefs.h <<\_ACEOF
22164#define WX_NO_REGEX_ADVANCED 1
22165_ACEOF
22166
22167 fi
22168 fi
22169fi
22170
22171
22172ZLIB_LINK=
22173if test "$wxUSE_ZLIB" != "no" ; then
22174 cat >>confdefs.h <<\_ACEOF
22175#define wxUSE_ZLIB 1
22176_ACEOF
22177
22178
22179 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
22180 if test "$USE_DARWIN" = 1; then
22181 system_zlib_h_ok="yes"
22182 else
22183 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
22184echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
22185if test "${ac_cv_header_zlib_h+set}" = set; then
22186 echo $ECHO_N "(cached) $ECHO_C" >&6
22187else
22188 if test "$cross_compiling" = yes; then
22189 unset ac_cv_header_zlib_h
22190
22191else
22192 cat >conftest.$ac_ext <<_ACEOF
22193/* confdefs.h. */
22194_ACEOF
22195cat confdefs.h >>conftest.$ac_ext
22196cat >>conftest.$ac_ext <<_ACEOF
22197/* end confdefs.h. */
22198
22199 #include <zlib.h>
22200 #include <stdio.h>
22201
22202 int main()
22203 {
22204 FILE *f=fopen("conftestval", "w");
22205 if (!f) exit(1);
22206 fprintf(f, "%s",
22207 ZLIB_VERSION[0] == '1' &&
22208 (ZLIB_VERSION[2] > '1' ||
22209 (ZLIB_VERSION[2] == '1' &&
22210 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
22211 exit(0);
22212 }
22213
22214_ACEOF
22215rm -f conftest$ac_exeext
22216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22217 (eval $ac_link) 2>&5
22218 ac_status=$?
22219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22222 (eval $ac_try) 2>&5
22223 ac_status=$?
22224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 (exit $ac_status); }; }; then
22226 ac_cv_header_zlib_h=`cat conftestval`
22227else
22228 echo "$as_me: program exited with status $ac_status" >&5
22229echo "$as_me: failed program was:" >&5
22230sed 's/^/| /' conftest.$ac_ext >&5
22231
22232( exit $ac_status )
22233ac_cv_header_zlib_h=no
22234fi
ac1cb8d3 22235rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22236fi
22237
22238fi
22239echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22240echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22241 if test "${ac_cv_header_zlib_h+set}" = set; then
22242 echo "$as_me:$LINENO: checking for zlib.h" >&5
22243echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22244if test "${ac_cv_header_zlib_h+set}" = set; then
22245 echo $ECHO_N "(cached) $ECHO_C" >&6
22246fi
22247echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22248echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22249else
22250 # Is the header compilable?
22251echo "$as_me:$LINENO: checking zlib.h usability" >&5
22252echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
22253cat >conftest.$ac_ext <<_ACEOF
22254/* confdefs.h. */
22255_ACEOF
22256cat confdefs.h >>conftest.$ac_ext
22257cat >>conftest.$ac_ext <<_ACEOF
22258/* end confdefs.h. */
22259$ac_includes_default
22260#include <zlib.h>
22261_ACEOF
22262rm -f conftest.$ac_objext
22263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22264 (eval $ac_compile) 2>conftest.er1
a848cd7e 22265 ac_status=$?
ac1cb8d3
VS
22266 grep -v '^ *+' conftest.er1 >conftest.err
22267 rm -f conftest.er1
22268 cat conftest.err >&5
a848cd7e
SC
22269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270 (exit $ac_status); } &&
07158944 22271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22273 (eval $ac_try) 2>&5
22274 ac_status=$?
22275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22276 (exit $ac_status); }; } &&
22277 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22279 (eval $ac_try) 2>&5
22280 ac_status=$?
22281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282 (exit $ac_status); }; }; then
22283 ac_header_compiler=yes
22284else
22285 echo "$as_me: failed program was:" >&5
22286sed 's/^/| /' conftest.$ac_ext >&5
22287
22288ac_header_compiler=no
22289fi
ac1cb8d3 22290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22291echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22292echo "${ECHO_T}$ac_header_compiler" >&6
22293
22294# Is the header present?
22295echo "$as_me:$LINENO: checking zlib.h presence" >&5
22296echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
22297cat >conftest.$ac_ext <<_ACEOF
22298/* confdefs.h. */
22299_ACEOF
22300cat confdefs.h >>conftest.$ac_ext
22301cat >>conftest.$ac_ext <<_ACEOF
22302/* end confdefs.h. */
22303#include <zlib.h>
22304_ACEOF
22305if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22306 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22307 ac_status=$?
22308 grep -v '^ *+' conftest.er1 >conftest.err
22309 rm -f conftest.er1
22310 cat conftest.err >&5
22311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312 (exit $ac_status); } >/dev/null; then
22313 if test -s conftest.err; then
22314 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22315 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22316 else
22317 ac_cpp_err=
22318 fi
22319else
22320 ac_cpp_err=yes
22321fi
22322if test -z "$ac_cpp_err"; then
22323 ac_header_preproc=yes
22324else
22325 echo "$as_me: failed program was:" >&5
22326sed 's/^/| /' conftest.$ac_ext >&5
22327
22328 ac_header_preproc=no
22329fi
22330rm -f conftest.err conftest.$ac_ext
22331echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22332echo "${ECHO_T}$ac_header_preproc" >&6
22333
22334# So? What about this header?
ac1cb8d3
VS
22335case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22336 yes:no: )
a848cd7e
SC
22337 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22338echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22339 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22340echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22341 ac_header_preproc=yes
a848cd7e 22342 ;;
ac1cb8d3 22343 no:yes:* )
a848cd7e
SC
22344 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22345echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22346 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
22347echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
22348 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22349echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22350 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
22351echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22352 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22353echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22354 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22355echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22356 (
22357 cat <<\_ASBOX
ac1cb8d3
VS
22358## ----------------------------------------- ##
22359## Report this to wx-dev@lists.wxwidgets.org ##
22360## ----------------------------------------- ##
a848cd7e
SC
22361_ASBOX
22362 ) |
22363 sed "s/^/$as_me: WARNING: /" >&2
22364 ;;
22365esac
22366echo "$as_me:$LINENO: checking for zlib.h" >&5
22367echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22368if test "${ac_cv_header_zlib_h+set}" = set; then
22369 echo $ECHO_N "(cached) $ECHO_C" >&6
22370else
22371 ac_cv_header_zlib_h=$ac_header_preproc
22372fi
22373echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22374echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22375
22376fi
22377
22378
22379
22380 system_zlib_h_ok=$ac_cv_header_zlib_h
22381 fi
22382
22383 if test "$system_zlib_h_ok" = "yes"; then
22384 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
22385echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
22386if test "${ac_cv_lib_z_deflate+set}" = set; then
22387 echo $ECHO_N "(cached) $ECHO_C" >&6
22388else
22389 ac_check_lib_save_LIBS=$LIBS
22390LIBS="-lz $LIBS"
22391cat >conftest.$ac_ext <<_ACEOF
22392/* confdefs.h. */
22393_ACEOF
22394cat confdefs.h >>conftest.$ac_ext
22395cat >>conftest.$ac_ext <<_ACEOF
22396/* end confdefs.h. */
22397
22398/* Override any gcc2 internal prototype to avoid an error. */
22399#ifdef __cplusplus
22400extern "C"
22401#endif
22402/* We use char because int might match the return type of a gcc2
22403 builtin and then its argument prototype would still apply. */
22404char deflate ();
22405int
22406main ()
22407{
22408deflate ();
22409 ;
22410 return 0;
22411}
22412_ACEOF
22413rm -f conftest.$ac_objext conftest$ac_exeext
22414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22415 (eval $ac_link) 2>conftest.er1
a848cd7e 22416 ac_status=$?
ac1cb8d3
VS
22417 grep -v '^ *+' conftest.er1 >conftest.err
22418 rm -f conftest.er1
22419 cat conftest.err >&5
a848cd7e
SC
22420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22421 (exit $ac_status); } &&
07158944 22422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22424 (eval $ac_try) 2>&5
22425 ac_status=$?
22426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22427 (exit $ac_status); }; } &&
22428 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22430 (eval $ac_try) 2>&5
22431 ac_status=$?
22432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433 (exit $ac_status); }; }; then
22434 ac_cv_lib_z_deflate=yes
22435else
22436 echo "$as_me: failed program was:" >&5
22437sed 's/^/| /' conftest.$ac_ext >&5
22438
22439ac_cv_lib_z_deflate=no
22440fi
ac1cb8d3
VS
22441rm -f conftest.err conftest.$ac_objext \
22442 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22443LIBS=$ac_check_lib_save_LIBS
22444fi
22445echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
22446echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
22447if test $ac_cv_lib_z_deflate = yes; then
22448 ZLIB_LINK=" -lz"
22449fi
22450
22451 fi
22452
22453 if test "x$ZLIB_LINK" = "x" ; then
22454 if test "$wxUSE_ZLIB" = "sys" ; then
22455 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
22456echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
22457 { (exit 1); exit 1; }; }
22458 else
22459 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
22460echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
22461 wxUSE_ZLIB=builtin
22462 fi
22463 else
22464 wxUSE_ZLIB=sys
22465 fi
22466 fi
22467fi
22468
22469
22470PNG_LINK=
22471if test "$wxUSE_LIBPNG" != "no" ; then
22472 cat >>confdefs.h <<\_ACEOF
22473#define wxUSE_LIBPNG 1
22474_ACEOF
22475
22476
22477 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
22478 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
22479echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
22480 wxUSE_LIBPNG=sys
22481 fi
22482
22483 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
22484 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
22485echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
22486 wxUSE_LIBPNG=builtin
22487 fi
22488
22489 if test "$wxUSE_MGL" != 1 ; then
22490 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
22491 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
22492echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
22493if test "${ac_cv_header_png_h+set}" = set; then
22494 echo $ECHO_N "(cached) $ECHO_C" >&6
22495else
22496 if test "$cross_compiling" = yes; then
22497 unset ac_cv_header_png_h
22498
22499else
22500 cat >conftest.$ac_ext <<_ACEOF
22501/* confdefs.h. */
22502_ACEOF
22503cat confdefs.h >>conftest.$ac_ext
22504cat >>conftest.$ac_ext <<_ACEOF
22505/* end confdefs.h. */
22506
22507 #include <png.h>
22508 #include <stdio.h>
22509
22510 int main()
22511 {
22512 FILE *f=fopen("conftestval", "w");
22513 if (!f) exit(1);
22514 fprintf(f, "%s",
22515 PNG_LIBPNG_VER > 90 ? "yes" : "no");
22516 exit(0);
22517 }
22518
22519_ACEOF
22520rm -f conftest$ac_exeext
22521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22522 (eval $ac_link) 2>&5
22523 ac_status=$?
22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22527 (eval $ac_try) 2>&5
22528 ac_status=$?
22529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530 (exit $ac_status); }; }; then
22531 ac_cv_header_png_h=`cat conftestval`
22532else
22533 echo "$as_me: program exited with status $ac_status" >&5
22534echo "$as_me: failed program was:" >&5
22535sed 's/^/| /' conftest.$ac_ext >&5
22536
22537( exit $ac_status )
22538ac_cv_header_png_h=no
22539fi
ac1cb8d3 22540rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22541fi
22542
22543fi
22544echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22545echo "${ECHO_T}$ac_cv_header_png_h" >&6
22546 if test "${ac_cv_header_png_h+set}" = set; then
22547 echo "$as_me:$LINENO: checking for png.h" >&5
22548echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22549if test "${ac_cv_header_png_h+set}" = set; then
22550 echo $ECHO_N "(cached) $ECHO_C" >&6
22551fi
22552echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22553echo "${ECHO_T}$ac_cv_header_png_h" >&6
22554else
22555 # Is the header compilable?
22556echo "$as_me:$LINENO: checking png.h usability" >&5
22557echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
22558cat >conftest.$ac_ext <<_ACEOF
22559/* confdefs.h. */
22560_ACEOF
22561cat confdefs.h >>conftest.$ac_ext
22562cat >>conftest.$ac_ext <<_ACEOF
22563/* end confdefs.h. */
22564$ac_includes_default
22565#include <png.h>
22566_ACEOF
22567rm -f conftest.$ac_objext
22568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22569 (eval $ac_compile) 2>conftest.er1
a848cd7e 22570 ac_status=$?
ac1cb8d3
VS
22571 grep -v '^ *+' conftest.er1 >conftest.err
22572 rm -f conftest.er1
22573 cat conftest.err >&5
a848cd7e
SC
22574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575 (exit $ac_status); } &&
07158944 22576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22578 (eval $ac_try) 2>&5
22579 ac_status=$?
22580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22581 (exit $ac_status); }; } &&
22582 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22584 (eval $ac_try) 2>&5
22585 ac_status=$?
22586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587 (exit $ac_status); }; }; then
22588 ac_header_compiler=yes
22589else
22590 echo "$as_me: failed program was:" >&5
22591sed 's/^/| /' conftest.$ac_ext >&5
22592
22593ac_header_compiler=no
22594fi
ac1cb8d3 22595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22596echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22597echo "${ECHO_T}$ac_header_compiler" >&6
22598
22599# Is the header present?
22600echo "$as_me:$LINENO: checking png.h presence" >&5
22601echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
22602cat >conftest.$ac_ext <<_ACEOF
22603/* confdefs.h. */
22604_ACEOF
22605cat confdefs.h >>conftest.$ac_ext
22606cat >>conftest.$ac_ext <<_ACEOF
22607/* end confdefs.h. */
22608#include <png.h>
22609_ACEOF
22610if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22611 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22612 ac_status=$?
22613 grep -v '^ *+' conftest.er1 >conftest.err
22614 rm -f conftest.er1
22615 cat conftest.err >&5
22616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617 (exit $ac_status); } >/dev/null; then
22618 if test -s conftest.err; then
22619 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22620 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22621 else
22622 ac_cpp_err=
22623 fi
22624else
22625 ac_cpp_err=yes
22626fi
22627if test -z "$ac_cpp_err"; then
22628 ac_header_preproc=yes
22629else
22630 echo "$as_me: failed program was:" >&5
22631sed 's/^/| /' conftest.$ac_ext >&5
22632
22633 ac_header_preproc=no
22634fi
22635rm -f conftest.err conftest.$ac_ext
22636echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22637echo "${ECHO_T}$ac_header_preproc" >&6
22638
22639# So? What about this header?
ac1cb8d3
VS
22640case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22641 yes:no: )
a848cd7e
SC
22642 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
22643echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22644 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
22645echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
22646 ac_header_preproc=yes
a848cd7e 22647 ;;
ac1cb8d3 22648 no:yes:* )
a848cd7e
SC
22649 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
22650echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22651 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
22652echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
22653 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
22654echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
22655 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
22656echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22657 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
22658echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22659 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
22660echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22661 (
22662 cat <<\_ASBOX
ac1cb8d3
VS
22663## ----------------------------------------- ##
22664## Report this to wx-dev@lists.wxwidgets.org ##
22665## ----------------------------------------- ##
a848cd7e
SC
22666_ASBOX
22667 ) |
22668 sed "s/^/$as_me: WARNING: /" >&2
22669 ;;
22670esac
22671echo "$as_me:$LINENO: checking for png.h" >&5
22672echo $ECHO_N "checking for png.h... $ECHO_C" >&6
22673if test "${ac_cv_header_png_h+set}" = set; then
22674 echo $ECHO_N "(cached) $ECHO_C" >&6
22675else
22676 ac_cv_header_png_h=$ac_header_preproc
22677fi
22678echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
22679echo "${ECHO_T}$ac_cv_header_png_h" >&6
22680
22681fi
22682
22683
22684
22685 if test "$ac_cv_header_png_h" = "yes"; then
22686 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
22687echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
22688if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
22689 echo $ECHO_N "(cached) $ECHO_C" >&6
22690else
22691 ac_check_lib_save_LIBS=$LIBS
22692LIBS="-lpng -lz -lm $LIBS"
22693cat >conftest.$ac_ext <<_ACEOF
22694/* confdefs.h. */
22695_ACEOF
22696cat confdefs.h >>conftest.$ac_ext
22697cat >>conftest.$ac_ext <<_ACEOF
22698/* end confdefs.h. */
22699
22700/* Override any gcc2 internal prototype to avoid an error. */
22701#ifdef __cplusplus
22702extern "C"
22703#endif
22704/* We use char because int might match the return type of a gcc2
22705 builtin and then its argument prototype would still apply. */
22706char png_check_sig ();
22707int
22708main ()
22709{
22710png_check_sig ();
22711 ;
22712 return 0;
22713}
22714_ACEOF
22715rm -f conftest.$ac_objext conftest$ac_exeext
22716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22717 (eval $ac_link) 2>conftest.er1
a848cd7e 22718 ac_status=$?
ac1cb8d3
VS
22719 grep -v '^ *+' conftest.er1 >conftest.err
22720 rm -f conftest.er1
22721 cat conftest.err >&5
a848cd7e
SC
22722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723 (exit $ac_status); } &&
07158944 22724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22726 (eval $ac_try) 2>&5
22727 ac_status=$?
22728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729 (exit $ac_status); }; } &&
22730 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22732 (eval $ac_try) 2>&5
22733 ac_status=$?
22734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22735 (exit $ac_status); }; }; then
22736 ac_cv_lib_png_png_check_sig=yes
22737else
22738 echo "$as_me: failed program was:" >&5
22739sed 's/^/| /' conftest.$ac_ext >&5
22740
22741ac_cv_lib_png_png_check_sig=no
22742fi
ac1cb8d3
VS
22743rm -f conftest.err conftest.$ac_objext \
22744 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22745LIBS=$ac_check_lib_save_LIBS
22746fi
22747echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
22748echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
22749if test $ac_cv_lib_png_png_check_sig = yes; then
22750 PNG_LINK=" -lpng -lz"
22751fi
22752
22753 fi
22754
22755 if test "x$PNG_LINK" = "x" ; then
22756 if test "$wxUSE_LIBPNG" = "sys" ; then
22757 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
22758echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
22759 { (exit 1); exit 1; }; }
22760 else
22761 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
22762echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
22763 wxUSE_LIBPNG=builtin
22764 fi
22765 else
22766 wxUSE_LIBPNG=sys
22767 fi
22768 fi
22769 fi
22770
22771 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
22772fi
22773
22774
22775JPEG_LINK=
22776if test "$wxUSE_LIBJPEG" != "no" ; then
22777 cat >>confdefs.h <<\_ACEOF
22778#define wxUSE_LIBJPEG 1
22779_ACEOF
22780
22781
22782 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
22783 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
22784echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
22785 wxUSE_LIBJPEG=sys
22786 fi
22787
22788 if test "$wxUSE_MGL" != 1 ; then
22789 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
22790 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
22791echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
22792 if test "${ac_cv_header_jpeglib_h+set}" = set; then
22793 echo $ECHO_N "(cached) $ECHO_C" >&6
22794else
22795 cat >conftest.$ac_ext <<_ACEOF
22796/* confdefs.h. */
22797_ACEOF
22798cat confdefs.h >>conftest.$ac_ext
22799cat >>conftest.$ac_ext <<_ACEOF
22800/* end confdefs.h. */
22801
22802 #undef HAVE_STDLIB_H
22803 #include <stdio.h>
22804 #include <jpeglib.h>
22805
22806int
22807main ()
22808{
22809
22810
22811 ;
22812 return 0;
22813}
22814_ACEOF
22815rm -f conftest.$ac_objext
22816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22817 (eval $ac_compile) 2>conftest.er1
a848cd7e 22818 ac_status=$?
ac1cb8d3
VS
22819 grep -v '^ *+' conftest.er1 >conftest.err
22820 rm -f conftest.er1
22821 cat conftest.err >&5
a848cd7e
SC
22822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22823 (exit $ac_status); } &&
07158944 22824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22826 (eval $ac_try) 2>&5
22827 ac_status=$?
22828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22829 (exit $ac_status); }; } &&
22830 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22832 (eval $ac_try) 2>&5
22833 ac_status=$?
22834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22835 (exit $ac_status); }; }; then
22836 ac_cv_header_jpeglib_h=yes
22837else
22838 echo "$as_me: failed program was:" >&5
22839sed 's/^/| /' conftest.$ac_ext >&5
22840
22841ac_cv_header_jpeglib_h=no
22842
22843fi
ac1cb8d3 22844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22845
22846fi
22847
22848 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
22849echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
22850
22851 if test "$ac_cv_header_jpeglib_h" = "yes"; then
22852 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
22853echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
22854if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
22855 echo $ECHO_N "(cached) $ECHO_C" >&6
22856else
22857 ac_check_lib_save_LIBS=$LIBS
22858LIBS="-ljpeg $LIBS"
22859cat >conftest.$ac_ext <<_ACEOF
22860/* confdefs.h. */
22861_ACEOF
22862cat confdefs.h >>conftest.$ac_ext
22863cat >>conftest.$ac_ext <<_ACEOF
22864/* end confdefs.h. */
22865
22866/* Override any gcc2 internal prototype to avoid an error. */
22867#ifdef __cplusplus
22868extern "C"
22869#endif
22870/* We use char because int might match the return type of a gcc2
22871 builtin and then its argument prototype would still apply. */
22872char jpeg_read_header ();
22873int
22874main ()
22875{
22876jpeg_read_header ();
22877 ;
22878 return 0;
22879}
22880_ACEOF
22881rm -f conftest.$ac_objext conftest$ac_exeext
22882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22883 (eval $ac_link) 2>conftest.er1
a848cd7e 22884 ac_status=$?
ac1cb8d3
VS
22885 grep -v '^ *+' conftest.er1 >conftest.err
22886 rm -f conftest.er1
22887 cat conftest.err >&5
a848cd7e
SC
22888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889 (exit $ac_status); } &&
07158944 22890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22892 (eval $ac_try) 2>&5
22893 ac_status=$?
22894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22895 (exit $ac_status); }; } &&
22896 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22898 (eval $ac_try) 2>&5
22899 ac_status=$?
22900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22901 (exit $ac_status); }; }; then
22902 ac_cv_lib_jpeg_jpeg_read_header=yes
22903else
22904 echo "$as_me: failed program was:" >&5
22905sed 's/^/| /' conftest.$ac_ext >&5
22906
22907ac_cv_lib_jpeg_jpeg_read_header=no
22908fi
ac1cb8d3
VS
22909rm -f conftest.err conftest.$ac_objext \
22910 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22911LIBS=$ac_check_lib_save_LIBS
22912fi
22913echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
22914echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
22915if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
22916 JPEG_LINK=" -ljpeg"
22917fi
22918
22919 fi
22920
22921 if test "x$JPEG_LINK" = "x" ; then
22922 if test "$wxUSE_LIBJPEG" = "sys" ; then
22923 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
22924echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
22925 { (exit 1); exit 1; }; }
22926 else
22927 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
22928echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
22929 wxUSE_LIBJPEG=builtin
22930 fi
22931 else
22932 wxUSE_LIBJPEG=sys
22933 fi
22934 fi
22935 fi
22936fi
22937
22938
22939TIFF_LINK=
22940TIFF_PREREQ_LINKS=-lm
22941if test "$wxUSE_LIBTIFF" != "no" ; then
22942 cat >>confdefs.h <<\_ACEOF
22943#define wxUSE_LIBTIFF 1
22944_ACEOF
22945
22946
22947 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
22948 if test "$wxUSE_LIBJPEG" = "sys"; then
22949 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
22950 fi
22951 if test "$wxUSE_ZLIB" = "sys"; then
22952 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
22953 fi
22954 if test "${ac_cv_header_tiffio_h+set}" = set; then
22955 echo "$as_me:$LINENO: checking for tiffio.h" >&5
22956echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
22957if test "${ac_cv_header_tiffio_h+set}" = set; then
22958 echo $ECHO_N "(cached) $ECHO_C" >&6
22959fi
22960echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
22961echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
22962else
22963 # Is the header compilable?
22964echo "$as_me:$LINENO: checking tiffio.h usability" >&5
22965echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
22966cat >conftest.$ac_ext <<_ACEOF
22967/* confdefs.h. */
22968_ACEOF
22969cat confdefs.h >>conftest.$ac_ext
22970cat >>conftest.$ac_ext <<_ACEOF
22971/* end confdefs.h. */
22972$ac_includes_default
22973#include <tiffio.h>
22974_ACEOF
22975rm -f conftest.$ac_objext
22976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22977 (eval $ac_compile) 2>conftest.er1
a848cd7e 22978 ac_status=$?
ac1cb8d3
VS
22979 grep -v '^ *+' conftest.er1 >conftest.err
22980 rm -f conftest.er1
22981 cat conftest.err >&5
a848cd7e
SC
22982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983 (exit $ac_status); } &&
07158944 22984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22986 (eval $ac_try) 2>&5
22987 ac_status=$?
22988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989 (exit $ac_status); }; } &&
22990 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22992 (eval $ac_try) 2>&5
22993 ac_status=$?
22994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22995 (exit $ac_status); }; }; then
22996 ac_header_compiler=yes
22997else
22998 echo "$as_me: failed program was:" >&5
22999sed 's/^/| /' conftest.$ac_ext >&5
23000
23001ac_header_compiler=no
23002fi
ac1cb8d3 23003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23004echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23005echo "${ECHO_T}$ac_header_compiler" >&6
23006
23007# Is the header present?
23008echo "$as_me:$LINENO: checking tiffio.h presence" >&5
23009echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
23010cat >conftest.$ac_ext <<_ACEOF
23011/* confdefs.h. */
23012_ACEOF
23013cat confdefs.h >>conftest.$ac_ext
23014cat >>conftest.$ac_ext <<_ACEOF
23015/* end confdefs.h. */
23016#include <tiffio.h>
23017_ACEOF
23018if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23020 ac_status=$?
23021 grep -v '^ *+' conftest.er1 >conftest.err
23022 rm -f conftest.er1
23023 cat conftest.err >&5
23024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23025 (exit $ac_status); } >/dev/null; then
23026 if test -s conftest.err; then
23027 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23028 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23029 else
23030 ac_cpp_err=
23031 fi
23032else
23033 ac_cpp_err=yes
23034fi
23035if test -z "$ac_cpp_err"; then
23036 ac_header_preproc=yes
23037else
23038 echo "$as_me: failed program was:" >&5
23039sed 's/^/| /' conftest.$ac_ext >&5
23040
23041 ac_header_preproc=no
23042fi
23043rm -f conftest.err conftest.$ac_ext
23044echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23045echo "${ECHO_T}$ac_header_preproc" >&6
23046
23047# So? What about this header?
ac1cb8d3
VS
23048case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23049 yes:no: )
a848cd7e
SC
23050 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
23051echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23052 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
23053echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
23054 ac_header_preproc=yes
a848cd7e 23055 ;;
ac1cb8d3 23056 no:yes:* )
a848cd7e
SC
23057 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
23058echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23059 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
23060echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
23061 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
23062echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
23063 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
23064echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23065 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
23066echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23067 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
23068echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23069 (
23070 cat <<\_ASBOX
ac1cb8d3
VS
23071## ----------------------------------------- ##
23072## Report this to wx-dev@lists.wxwidgets.org ##
23073## ----------------------------------------- ##
a848cd7e
SC
23074_ASBOX
23075 ) |
23076 sed "s/^/$as_me: WARNING: /" >&2
23077 ;;
23078esac
23079echo "$as_me:$LINENO: checking for tiffio.h" >&5
23080echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23081if test "${ac_cv_header_tiffio_h+set}" = set; then
23082 echo $ECHO_N "(cached) $ECHO_C" >&6
23083else
23084 ac_cv_header_tiffio_h=$ac_header_preproc
23085fi
23086echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23087echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23088
23089fi
23090if test $ac_cv_header_tiffio_h = yes; then
23091
23092 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
23093echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
23094if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
23095 echo $ECHO_N "(cached) $ECHO_C" >&6
23096else
23097 ac_check_lib_save_LIBS=$LIBS
23098LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
23099cat >conftest.$ac_ext <<_ACEOF
23100/* confdefs.h. */
23101_ACEOF
23102cat confdefs.h >>conftest.$ac_ext
23103cat >>conftest.$ac_ext <<_ACEOF
23104/* end confdefs.h. */
23105
23106/* Override any gcc2 internal prototype to avoid an error. */
23107#ifdef __cplusplus
23108extern "C"
23109#endif
23110/* We use char because int might match the return type of a gcc2
23111 builtin and then its argument prototype would still apply. */
23112char TIFFError ();
23113int
23114main ()
23115{
23116TIFFError ();
23117 ;
23118 return 0;
23119}
23120_ACEOF
23121rm -f conftest.$ac_objext conftest$ac_exeext
23122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23123 (eval $ac_link) 2>conftest.er1
a848cd7e 23124 ac_status=$?
ac1cb8d3
VS
23125 grep -v '^ *+' conftest.er1 >conftest.err
23126 rm -f conftest.er1
23127 cat conftest.err >&5
a848cd7e
SC
23128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129 (exit $ac_status); } &&
07158944 23130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23132 (eval $ac_try) 2>&5
23133 ac_status=$?
23134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135 (exit $ac_status); }; } &&
23136 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23138 (eval $ac_try) 2>&5
23139 ac_status=$?
23140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23141 (exit $ac_status); }; }; then
23142 ac_cv_lib_tiff_TIFFError=yes
23143else
23144 echo "$as_me: failed program was:" >&5
23145sed 's/^/| /' conftest.$ac_ext >&5
23146
23147ac_cv_lib_tiff_TIFFError=no
23148fi
ac1cb8d3
VS
23149rm -f conftest.err conftest.$ac_objext \
23150 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23151LIBS=$ac_check_lib_save_LIBS
23152fi
23153echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
23154echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
23155if test $ac_cv_lib_tiff_TIFFError = yes; then
23156 TIFF_LINK=" -ltiff"
23157fi
23158
23159
23160
23161fi
23162
23163
23164
23165 if test "x$TIFF_LINK" = "x" ; then
23166 if test "$wxUSE_LIBTIFF" = "sys" ; then
23167 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
23168echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
23169 { (exit 1); exit 1; }; }
23170 else
23171 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
23172echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
23173 wxUSE_LIBTIFF=builtin
23174 fi
23175 else
23176 wxUSE_LIBTIFF=sys
23177 fi
23178 fi
23179fi
23180
23181
23182if test "$wxUSE_EXPAT" != "no"; then
23183 wxUSE_XML=yes
23184 cat >>confdefs.h <<\_ACEOF
23185#define wxUSE_EXPAT 1
23186_ACEOF
23187
23188 cat >>confdefs.h <<\_ACEOF
23189#define wxUSE_XML 1
23190_ACEOF
23191
23192
23193 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
23194 if test "${ac_cv_header_expat_h+set}" = set; then
23195 echo "$as_me:$LINENO: checking for expat.h" >&5
23196echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23197if test "${ac_cv_header_expat_h+set}" = set; then
23198 echo $ECHO_N "(cached) $ECHO_C" >&6
23199fi
23200echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23201echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23202else
23203 # Is the header compilable?
23204echo "$as_me:$LINENO: checking expat.h usability" >&5
23205echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
23206cat >conftest.$ac_ext <<_ACEOF
23207/* confdefs.h. */
23208_ACEOF
23209cat confdefs.h >>conftest.$ac_ext
23210cat >>conftest.$ac_ext <<_ACEOF
23211/* end confdefs.h. */
23212$ac_includes_default
23213#include <expat.h>
23214_ACEOF
23215rm -f conftest.$ac_objext
23216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23217 (eval $ac_compile) 2>conftest.er1
a848cd7e 23218 ac_status=$?
ac1cb8d3
VS
23219 grep -v '^ *+' conftest.er1 >conftest.err
23220 rm -f conftest.er1
23221 cat conftest.err >&5
a848cd7e
SC
23222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223 (exit $ac_status); } &&
07158944 23224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23226 (eval $ac_try) 2>&5
23227 ac_status=$?
23228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23229 (exit $ac_status); }; } &&
23230 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23232 (eval $ac_try) 2>&5
23233 ac_status=$?
23234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235 (exit $ac_status); }; }; then
23236 ac_header_compiler=yes
23237else
23238 echo "$as_me: failed program was:" >&5
23239sed 's/^/| /' conftest.$ac_ext >&5
23240
23241ac_header_compiler=no
23242fi
ac1cb8d3 23243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23244echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23245echo "${ECHO_T}$ac_header_compiler" >&6
23246
23247# Is the header present?
23248echo "$as_me:$LINENO: checking expat.h presence" >&5
23249echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
23250cat >conftest.$ac_ext <<_ACEOF
23251/* confdefs.h. */
23252_ACEOF
23253cat confdefs.h >>conftest.$ac_ext
23254cat >>conftest.$ac_ext <<_ACEOF
23255/* end confdefs.h. */
23256#include <expat.h>
23257_ACEOF
23258if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23260 ac_status=$?
23261 grep -v '^ *+' conftest.er1 >conftest.err
23262 rm -f conftest.er1
23263 cat conftest.err >&5
23264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23265 (exit $ac_status); } >/dev/null; then
23266 if test -s conftest.err; then
23267 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23268 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23269 else
23270 ac_cpp_err=
23271 fi
23272else
23273 ac_cpp_err=yes
23274fi
23275if test -z "$ac_cpp_err"; then
23276 ac_header_preproc=yes
23277else
23278 echo "$as_me: failed program was:" >&5
23279sed 's/^/| /' conftest.$ac_ext >&5
23280
23281 ac_header_preproc=no
23282fi
23283rm -f conftest.err conftest.$ac_ext
23284echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23285echo "${ECHO_T}$ac_header_preproc" >&6
23286
23287# So? What about this header?
ac1cb8d3
VS
23288case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23289 yes:no: )
a848cd7e
SC
23290 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
23291echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23292 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
23293echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
23294 ac_header_preproc=yes
a848cd7e 23295 ;;
ac1cb8d3 23296 no:yes:* )
a848cd7e
SC
23297 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
23298echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23299 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
23300echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
23301 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
23302echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
23303 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
23304echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23305 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
23306echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23307 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
23308echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23309 (
23310 cat <<\_ASBOX
ac1cb8d3
VS
23311## ----------------------------------------- ##
23312## Report this to wx-dev@lists.wxwidgets.org ##
23313## ----------------------------------------- ##
a848cd7e
SC
23314_ASBOX
23315 ) |
23316 sed "s/^/$as_me: WARNING: /" >&2
23317 ;;
23318esac
23319echo "$as_me:$LINENO: checking for expat.h" >&5
23320echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23321if test "${ac_cv_header_expat_h+set}" = set; then
23322 echo $ECHO_N "(cached) $ECHO_C" >&6
23323else
23324 ac_cv_header_expat_h=$ac_header_preproc
23325fi
23326echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23327echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23328
23329fi
23330if test $ac_cv_header_expat_h = yes; then
23331 found_expat_h=1
23332fi
23333
23334
23335 if test "x$found_expat_h" = "x1"; then
23336 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
23337echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
23338if test "${wx_cv_expat_is_not_broken+set}" = set; then
23339 echo $ECHO_N "(cached) $ECHO_C" >&6
23340else
23341
23342
23343
23344 ac_ext=cc
23345ac_cpp='$CXXCPP $CPPFLAGS'
23346ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23347ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23348ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23349
23350 cat >conftest.$ac_ext <<_ACEOF
23351/* confdefs.h. */
23352_ACEOF
23353cat confdefs.h >>conftest.$ac_ext
23354cat >>conftest.$ac_ext <<_ACEOF
23355/* end confdefs.h. */
23356#include <expat.h>
23357int
23358main ()
23359{
23360
23361 ;
23362 return 0;
23363}
23364_ACEOF
23365rm -f conftest.$ac_objext
23366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23367 (eval $ac_compile) 2>conftest.er1
a848cd7e 23368 ac_status=$?
ac1cb8d3
VS
23369 grep -v '^ *+' conftest.er1 >conftest.err
23370 rm -f conftest.er1
23371 cat conftest.err >&5
a848cd7e
SC
23372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23373 (exit $ac_status); } &&
07158944 23374 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23376 (eval $ac_try) 2>&5
23377 ac_status=$?
23378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23379 (exit $ac_status); }; } &&
23380 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23382 (eval $ac_try) 2>&5
23383 ac_status=$?
23384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23385 (exit $ac_status); }; }; then
23386 wx_cv_expat_is_not_broken=yes
23387else
23388 echo "$as_me: failed program was:" >&5
23389sed 's/^/| /' conftest.$ac_ext >&5
23390
23391wx_cv_expat_is_not_broken=no
23392
23393fi
ac1cb8d3 23394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23395 ac_ext=c
23396ac_cpp='$CPP $CPPFLAGS'
23397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23399ac_compiler_gnu=$ac_cv_c_compiler_gnu
23400
23401
23402
23403fi
23404echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
23405echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
23406 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
23407 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
23408echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
23409if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
23410 echo $ECHO_N "(cached) $ECHO_C" >&6
23411else
23412 ac_check_lib_save_LIBS=$LIBS
23413LIBS="-lexpat $LIBS"
23414cat >conftest.$ac_ext <<_ACEOF
23415/* confdefs.h. */
23416_ACEOF
23417cat confdefs.h >>conftest.$ac_ext
23418cat >>conftest.$ac_ext <<_ACEOF
23419/* end confdefs.h. */
23420
23421/* Override any gcc2 internal prototype to avoid an error. */
23422#ifdef __cplusplus
23423extern "C"
23424#endif
23425/* We use char because int might match the return type of a gcc2
23426 builtin and then its argument prototype would still apply. */
23427char XML_ParserCreate ();
23428int
23429main ()
23430{
23431XML_ParserCreate ();
23432 ;
23433 return 0;
23434}
23435_ACEOF
23436rm -f conftest.$ac_objext conftest$ac_exeext
23437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23438 (eval $ac_link) 2>conftest.er1
a848cd7e 23439 ac_status=$?
ac1cb8d3
VS
23440 grep -v '^ *+' conftest.er1 >conftest.err
23441 rm -f conftest.er1
23442 cat conftest.err >&5
a848cd7e
SC
23443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23444 (exit $ac_status); } &&
07158944 23445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23447 (eval $ac_try) 2>&5
23448 ac_status=$?
23449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450 (exit $ac_status); }; } &&
23451 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23453 (eval $ac_try) 2>&5
23454 ac_status=$?
23455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456 (exit $ac_status); }; }; then
23457 ac_cv_lib_expat_XML_ParserCreate=yes
23458else
23459 echo "$as_me: failed program was:" >&5
23460sed 's/^/| /' conftest.$ac_ext >&5
23461
23462ac_cv_lib_expat_XML_ParserCreate=no
23463fi
ac1cb8d3
VS
23464rm -f conftest.err conftest.$ac_objext \
23465 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23466LIBS=$ac_check_lib_save_LIBS
23467fi
23468echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
23469echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
23470if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
23471 EXPAT_LINK=" -lexpat"
23472fi
23473
23474 fi
23475 fi
23476 if test "x$EXPAT_LINK" = "x" ; then
23477 if test "$wxUSE_EXPAT" = "sys" ; then
23478 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
23479echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
23480 { (exit 1); exit 1; }; }
23481 else
23482 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
23483echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
23484 wxUSE_EXPAT=builtin
23485 fi
23486 else
23487 wxUSE_EXPAT=sys
23488 fi
23489 fi
23490 if test "$wxUSE_EXPAT" = "builtin" ; then
23491
23492
23493subdirs="$subdirs src/expat"
23494
23495 fi
23496fi
23497
23498
23499
23500if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
23501 if test "${ac_cv_header_mspack_h+set}" = set; then
23502 echo "$as_me:$LINENO: checking for mspack.h" >&5
23503echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23504if test "${ac_cv_header_mspack_h+set}" = set; then
23505 echo $ECHO_N "(cached) $ECHO_C" >&6
23506fi
23507echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23508echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23509else
23510 # Is the header compilable?
23511echo "$as_me:$LINENO: checking mspack.h usability" >&5
23512echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
23513cat >conftest.$ac_ext <<_ACEOF
23514/* confdefs.h. */
23515_ACEOF
23516cat confdefs.h >>conftest.$ac_ext
23517cat >>conftest.$ac_ext <<_ACEOF
23518/* end confdefs.h. */
23519$ac_includes_default
23520#include <mspack.h>
23521_ACEOF
23522rm -f conftest.$ac_objext
23523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23524 (eval $ac_compile) 2>conftest.er1
a848cd7e 23525 ac_status=$?
ac1cb8d3
VS
23526 grep -v '^ *+' conftest.er1 >conftest.err
23527 rm -f conftest.er1
23528 cat conftest.err >&5
a848cd7e
SC
23529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23530 (exit $ac_status); } &&
07158944 23531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23533 (eval $ac_try) 2>&5
23534 ac_status=$?
23535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23536 (exit $ac_status); }; } &&
23537 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23539 (eval $ac_try) 2>&5
23540 ac_status=$?
23541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23542 (exit $ac_status); }; }; then
23543 ac_header_compiler=yes
23544else
23545 echo "$as_me: failed program was:" >&5
23546sed 's/^/| /' conftest.$ac_ext >&5
23547
23548ac_header_compiler=no
23549fi
ac1cb8d3 23550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23551echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23552echo "${ECHO_T}$ac_header_compiler" >&6
23553
23554# Is the header present?
23555echo "$as_me:$LINENO: checking mspack.h presence" >&5
23556echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
23557cat >conftest.$ac_ext <<_ACEOF
23558/* confdefs.h. */
23559_ACEOF
23560cat confdefs.h >>conftest.$ac_ext
23561cat >>conftest.$ac_ext <<_ACEOF
23562/* end confdefs.h. */
23563#include <mspack.h>
23564_ACEOF
23565if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23567 ac_status=$?
23568 grep -v '^ *+' conftest.er1 >conftest.err
23569 rm -f conftest.er1
23570 cat conftest.err >&5
23571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572 (exit $ac_status); } >/dev/null; then
23573 if test -s conftest.err; then
23574 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23576 else
23577 ac_cpp_err=
23578 fi
23579else
23580 ac_cpp_err=yes
23581fi
23582if test -z "$ac_cpp_err"; then
23583 ac_header_preproc=yes
23584else
23585 echo "$as_me: failed program was:" >&5
23586sed 's/^/| /' conftest.$ac_ext >&5
23587
23588 ac_header_preproc=no
23589fi
23590rm -f conftest.err conftest.$ac_ext
23591echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23592echo "${ECHO_T}$ac_header_preproc" >&6
23593
23594# So? What about this header?
ac1cb8d3
VS
23595case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23596 yes:no: )
a848cd7e
SC
23597 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
23598echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23599 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
23600echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
23601 ac_header_preproc=yes
a848cd7e 23602 ;;
ac1cb8d3 23603 no:yes:* )
a848cd7e
SC
23604 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
23605echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23606 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
23607echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
23608 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
23609echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
23610 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
23611echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23612 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
23613echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23614 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
23615echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23616 (
23617 cat <<\_ASBOX
ac1cb8d3
VS
23618## ----------------------------------------- ##
23619## Report this to wx-dev@lists.wxwidgets.org ##
23620## ----------------------------------------- ##
a848cd7e
SC
23621_ASBOX
23622 ) |
23623 sed "s/^/$as_me: WARNING: /" >&2
23624 ;;
23625esac
23626echo "$as_me:$LINENO: checking for mspack.h" >&5
23627echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
23628if test "${ac_cv_header_mspack_h+set}" = set; then
23629 echo $ECHO_N "(cached) $ECHO_C" >&6
23630else
23631 ac_cv_header_mspack_h=$ac_header_preproc
23632fi
23633echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
23634echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
23635
23636fi
23637if test $ac_cv_header_mspack_h = yes; then
23638 found_mspack_h=1
23639fi
23640
23641
23642 if test "x$found_mspack_h" = "x1"; then
23643 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
23644echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
23645if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
23646 echo $ECHO_N "(cached) $ECHO_C" >&6
23647else
23648 ac_check_lib_save_LIBS=$LIBS
23649LIBS="-lmspack $LIBS"
23650cat >conftest.$ac_ext <<_ACEOF
23651/* confdefs.h. */
23652_ACEOF
23653cat confdefs.h >>conftest.$ac_ext
23654cat >>conftest.$ac_ext <<_ACEOF
23655/* end confdefs.h. */
23656
23657/* Override any gcc2 internal prototype to avoid an error. */
23658#ifdef __cplusplus
23659extern "C"
23660#endif
23661/* We use char because int might match the return type of a gcc2
23662 builtin and then its argument prototype would still apply. */
23663char mspack_create_chm_decompressor ();
23664int
23665main ()
23666{
23667mspack_create_chm_decompressor ();
23668 ;
23669 return 0;
23670}
23671_ACEOF
23672rm -f conftest.$ac_objext conftest$ac_exeext
23673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23674 (eval $ac_link) 2>conftest.er1
a848cd7e 23675 ac_status=$?
ac1cb8d3
VS
23676 grep -v '^ *+' conftest.er1 >conftest.err
23677 rm -f conftest.er1
23678 cat conftest.err >&5
a848cd7e
SC
23679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680 (exit $ac_status); } &&
07158944 23681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23683 (eval $ac_try) 2>&5
23684 ac_status=$?
23685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23686 (exit $ac_status); }; } &&
23687 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23689 (eval $ac_try) 2>&5
23690 ac_status=$?
23691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23692 (exit $ac_status); }; }; then
23693 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
23694else
23695 echo "$as_me: failed program was:" >&5
23696sed 's/^/| /' conftest.$ac_ext >&5
23697
23698ac_cv_lib_mspack_mspack_create_chm_decompressor=no
23699fi
ac1cb8d3
VS
23700rm -f conftest.err conftest.$ac_objext \
23701 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23702LIBS=$ac_check_lib_save_LIBS
23703fi
23704echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
23705echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
23706if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
23707 MSPACK_LINK=" -lmspack"
23708fi
23709
23710 fi
23711 if test "x$MSPACK_LINK" = "x" ; then
23712 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
23713 fi
23714fi
23715
23716if test "$wxUSE_LIBMSPACK" != "no"; then
23717 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
23718#define wxUSE_LIBMSPACK 1
23719_ACEOF
23720
a848cd7e
SC
23721fi
23722
23723
23724
23725AFMINSTALL=
23726WIN32INSTALL=
23727
23728TOOLKIT=
23729TOOLKIT_INCLUDE=
23730WIDGET_SET=
23731
23732if test "$USE_WIN32" = 1 ; then
23733
23734for ac_header in w32api.h
23735do
23736as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23737if eval "test \"\${$as_ac_Header+set}\" = set"; then
23738 echo "$as_me:$LINENO: checking for $ac_header" >&5
23739echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23740if eval "test \"\${$as_ac_Header+set}\" = set"; then
23741 echo $ECHO_N "(cached) $ECHO_C" >&6
23742fi
23743echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23744echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23745else
23746 # Is the header compilable?
23747echo "$as_me:$LINENO: checking $ac_header usability" >&5
23748echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23749cat >conftest.$ac_ext <<_ACEOF
23750/* confdefs.h. */
23751_ACEOF
23752cat confdefs.h >>conftest.$ac_ext
23753cat >>conftest.$ac_ext <<_ACEOF
23754/* end confdefs.h. */
23755$ac_includes_default
23756#include <$ac_header>
23757_ACEOF
23758rm -f conftest.$ac_objext
23759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23760 (eval $ac_compile) 2>conftest.er1
a848cd7e 23761 ac_status=$?
ac1cb8d3
VS
23762 grep -v '^ *+' conftest.er1 >conftest.err
23763 rm -f conftest.er1
23764 cat conftest.err >&5
a848cd7e
SC
23765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23766 (exit $ac_status); } &&
07158944 23767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23769 (eval $ac_try) 2>&5
23770 ac_status=$?
23771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23772 (exit $ac_status); }; } &&
23773 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23775 (eval $ac_try) 2>&5
23776 ac_status=$?
23777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23778 (exit $ac_status); }; }; then
23779 ac_header_compiler=yes
23780else
23781 echo "$as_me: failed program was:" >&5
23782sed 's/^/| /' conftest.$ac_ext >&5
23783
23784ac_header_compiler=no
23785fi
ac1cb8d3 23786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23787echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23788echo "${ECHO_T}$ac_header_compiler" >&6
23789
23790# Is the header present?
23791echo "$as_me:$LINENO: checking $ac_header presence" >&5
23792echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23793cat >conftest.$ac_ext <<_ACEOF
23794/* confdefs.h. */
23795_ACEOF
23796cat confdefs.h >>conftest.$ac_ext
23797cat >>conftest.$ac_ext <<_ACEOF
23798/* end confdefs.h. */
23799#include <$ac_header>
23800_ACEOF
23801if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23803 ac_status=$?
23804 grep -v '^ *+' conftest.er1 >conftest.err
23805 rm -f conftest.er1
23806 cat conftest.err >&5
23807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23808 (exit $ac_status); } >/dev/null; then
23809 if test -s conftest.err; then
23810 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23812 else
23813 ac_cpp_err=
23814 fi
23815else
23816 ac_cpp_err=yes
23817fi
23818if test -z "$ac_cpp_err"; then
23819 ac_header_preproc=yes
23820else
23821 echo "$as_me: failed program was:" >&5
23822sed 's/^/| /' conftest.$ac_ext >&5
23823
23824 ac_header_preproc=no
23825fi
23826rm -f conftest.err conftest.$ac_ext
23827echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23828echo "${ECHO_T}$ac_header_preproc" >&6
23829
23830# So? What about this header?
ac1cb8d3
VS
23831case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23832 yes:no: )
a848cd7e
SC
23833 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23834echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23836echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23837 ac_header_preproc=yes
a848cd7e 23838 ;;
ac1cb8d3 23839 no:yes:* )
a848cd7e
SC
23840 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23841echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23842 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23843echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23844 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23845echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23846 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23847echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23849echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23850 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23851echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23852 (
23853 cat <<\_ASBOX
ac1cb8d3
VS
23854## ----------------------------------------- ##
23855## Report this to wx-dev@lists.wxwidgets.org ##
23856## ----------------------------------------- ##
a848cd7e
SC
23857_ASBOX
23858 ) |
23859 sed "s/^/$as_me: WARNING: /" >&2
23860 ;;
23861esac
23862echo "$as_me:$LINENO: checking for $ac_header" >&5
23863echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23864if eval "test \"\${$as_ac_Header+set}\" = set"; then
23865 echo $ECHO_N "(cached) $ECHO_C" >&6
23866else
ac1cb8d3 23867 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
23868fi
23869echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23870echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23871
23872fi
23873if test `eval echo '${'$as_ac_Header'}'` = yes; then
23874 cat >>confdefs.h <<_ACEOF
23875#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23876_ACEOF
23877
23878fi
23879
23880done
23881
23882 if test "${ac_cv_header_windows_h+set}" = set; then
23883 echo "$as_me:$LINENO: checking for windows.h" >&5
23884echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
23885if test "${ac_cv_header_windows_h+set}" = set; then
23886 echo $ECHO_N "(cached) $ECHO_C" >&6
23887fi
23888echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
23889echo "${ECHO_T}$ac_cv_header_windows_h" >&6
23890else
23891 # Is the header compilable?
23892echo "$as_me:$LINENO: checking windows.h usability" >&5
23893echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
23894cat >conftest.$ac_ext <<_ACEOF
23895/* confdefs.h. */
23896_ACEOF
23897cat confdefs.h >>conftest.$ac_ext
23898cat >>conftest.$ac_ext <<_ACEOF
23899/* end confdefs.h. */
23900$ac_includes_default
23901#include <windows.h>
23902_ACEOF
23903rm -f conftest.$ac_objext
23904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23905 (eval $ac_compile) 2>conftest.er1
a848cd7e 23906 ac_status=$?
ac1cb8d3
VS
23907 grep -v '^ *+' conftest.er1 >conftest.err
23908 rm -f conftest.er1
23909 cat conftest.err >&5
a848cd7e
SC
23910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23911 (exit $ac_status); } &&
07158944 23912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23914 (eval $ac_try) 2>&5
23915 ac_status=$?
23916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23917 (exit $ac_status); }; } &&
23918 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23920 (eval $ac_try) 2>&5
23921 ac_status=$?
23922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23923 (exit $ac_status); }; }; then
23924 ac_header_compiler=yes
23925else
23926 echo "$as_me: failed program was:" >&5
23927sed 's/^/| /' conftest.$ac_ext >&5
23928
23929ac_header_compiler=no
23930fi
ac1cb8d3 23931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23932echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23933echo "${ECHO_T}$ac_header_compiler" >&6
23934
23935# Is the header present?
23936echo "$as_me:$LINENO: checking windows.h presence" >&5
23937echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
23938cat >conftest.$ac_ext <<_ACEOF
23939/* confdefs.h. */
23940_ACEOF
23941cat confdefs.h >>conftest.$ac_ext
23942cat >>conftest.$ac_ext <<_ACEOF
23943/* end confdefs.h. */
23944#include <windows.h>
23945_ACEOF
23946if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23948 ac_status=$?
23949 grep -v '^ *+' conftest.er1 >conftest.err
23950 rm -f conftest.er1
23951 cat conftest.err >&5
23952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23953 (exit $ac_status); } >/dev/null; then
23954 if test -s conftest.err; then
23955 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23956 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23957 else
23958 ac_cpp_err=
23959 fi
23960else
23961 ac_cpp_err=yes
23962fi
23963if test -z "$ac_cpp_err"; then
23964 ac_header_preproc=yes
23965else
23966 echo "$as_me: failed program was:" >&5
23967sed 's/^/| /' conftest.$ac_ext >&5
23968
23969 ac_header_preproc=no
23970fi
23971rm -f conftest.err conftest.$ac_ext
23972echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23973echo "${ECHO_T}$ac_header_preproc" >&6
23974
23975# So? What about this header?
ac1cb8d3
VS
23976case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23977 yes:no: )
a848cd7e
SC
23978 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
23979echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23980 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
23981echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
23982 ac_header_preproc=yes
a848cd7e 23983 ;;
ac1cb8d3 23984 no:yes:* )
a848cd7e
SC
23985 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
23986echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23987 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
23988echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
23989 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
23990echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
23991 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
23992echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23993 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
23994echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23995 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
23996echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23997 (
23998 cat <<\_ASBOX
ac1cb8d3
VS
23999## ----------------------------------------- ##
24000## Report this to wx-dev@lists.wxwidgets.org ##
24001## ----------------------------------------- ##
a848cd7e
SC
24002_ASBOX
24003 ) |
24004 sed "s/^/$as_me: WARNING: /" >&2
24005 ;;
24006esac
24007echo "$as_me:$LINENO: checking for windows.h" >&5
24008echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24009if test "${ac_cv_header_windows_h+set}" = set; then
24010 echo $ECHO_N "(cached) $ECHO_C" >&6
24011else
24012 ac_cv_header_windows_h=$ac_header_preproc
24013fi
24014echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24015echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24016
24017fi
24018if test $ac_cv_header_windows_h = yes; then
24019 :
24020else
24021
24022 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
24023echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
24024 { (exit 1); exit 1; }; }
24025
24026fi
24027
24028
24029
24030 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
24031
24032 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
24033 LIBS="$LIBS -loleacc"
24034 fi
24035
24036 case "${host}" in
24037 *-*-cygwin* )
24038 LIBS="$LIBS -lkernel32 -luser32"
24039 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
24040 esac
24041
24042 if test "$wxUSE_ODBC" = "sys" ; then
24043 wxUSE_ODBC = "yes"
24044 fi
24045 if test "$wxUSE_ODBC" = "yes" ; then
24046 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
24047 cat >>confdefs.h <<\_ACEOF
24048#define wxUSE_ODBC 1
24049_ACEOF
24050
24051 fi
24052
24053 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
24054 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
24055
24056 WIN32INSTALL=win32install
24057fi
24058
24059if test "$wxUSE_GUI" = "yes"; then
24060 USE_GUI=1
24061
24062 GUI_TK_LIBRARY=
24063
24064 WXGTK12=
24065 WXGTK127=
24066 WXGTK20=
24067 WXGPE=
24068
207bc66c
RN
24069 if test "$wxUSE_COCOA" = 1 ; then
24070 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
24071 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
24072echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
24073 wxUSE_PRINTING_ARCHITECTURE=no
24074 fi
24075 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
24076 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
24077echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
24078 wxUSE_DRAG_AND_DROP=no
24079 fi
24080 if test "$wxUSE_DRAGIMAGE" = "yes"; then
24081 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
24082echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
24083 wxUSE_DRAGIMAGE=no
24084 fi
24085 fi
24086
a848cd7e
SC
24087 if test "$wxUSE_MSW" = 1 ; then
24088 TOOLKIT=MSW
24089 GUIDIST=MSW_DIST
24090
ceec2216 24091 case "${host}" in
a848cd7e
SC
24092 *-*-mingw32* )
24093 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
24094 esac
24095 fi
24096
24097 if test "$wxUSE_GTK" = 1; then
24098 echo "$as_me:$LINENO: checking for GTK+ version" >&5
24099echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
24100
24101 gtk_version_cached=1
24102 if test "${wx_cv_lib_gtk+set}" = set; then
24103 echo $ECHO_N "(cached) $ECHO_C" >&6
24104else
24105
24106 gtk_version_cached=0
24107 echo "$as_me:$LINENO: result: " >&5
24108echo "${ECHO_T}" >&6
24109
24110 GTK_MODULES=
24111 if test "$wxUSE_THREADS" = "yes"; then
24112 GTK_MODULES=gthread
24113 fi
24114
24115 wx_cv_lib_gtk=
24116 if test "x$wxUSE_GTK2" = "xyes"; then
24117 # Check whether --enable-gtktest or --disable-gtktest was given.
24118if test "${enable_gtktest+set}" = set; then
24119 enableval="$enable_gtktest"
24120
24121else
24122 enable_gtktest=yes
24123fi;
24124
24125 pkg_config_args=gtk+-2.0
24126 for module in . $GTK_MODULES
24127 do
24128 case "$module" in
24129 gthread)
24130 pkg_config_args="$pkg_config_args gthread-2.0"
24131 ;;
24132 esac
24133 done
24134
24135 no_gtk=""
24136
24137 # Extract the first word of "pkg-config", so it can be a program name with args.
24138set dummy pkg-config; ac_word=$2
24139echo "$as_me:$LINENO: checking for $ac_word" >&5
24140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24141if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24142 echo $ECHO_N "(cached) $ECHO_C" >&6
24143else
24144 case $PKG_CONFIG in
24145 [\\/]* | ?:[\\/]*)
24146 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24147 ;;
24148 *)
24149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24150for as_dir in $PATH
24151do
24152 IFS=$as_save_IFS
24153 test -z "$as_dir" && as_dir=.
24154 for ac_exec_ext in '' $ac_executable_extensions; do
24155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24156 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24158 break 2
24159 fi
24160done
24161done
24162
24163 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24164 ;;
24165esac
24166fi
24167PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24168
24169if test -n "$PKG_CONFIG"; then
24170 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24171echo "${ECHO_T}$PKG_CONFIG" >&6
24172else
24173 echo "$as_me:$LINENO: result: no" >&5
24174echo "${ECHO_T}no" >&6
24175fi
24176
24177
24178 if test x$PKG_CONFIG != xno ; then
24179 if pkg-config --atleast-pkgconfig-version 0.7 ; then
24180 :
24181 else
c2218763 24182 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
24183 no_gtk=yes
24184 PKG_CONFIG=no
24185 fi
24186 else
24187 no_gtk=yes
24188 fi
24189
24190 min_gtk_version=2.0.0
24191 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
24192echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
24193
24194 if test x$PKG_CONFIG != xno ; then
24195 ## don't try to run the test against uninstalled libtool libs
24196 if $PKG_CONFIG --uninstalled $pkg_config_args; then
24197 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
24198 enable_gtktest=no
24199 fi
24200
24201 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
24202 :
24203 else
24204 no_gtk=yes
24205 fi
24206 fi
24207
24208 if test x"$no_gtk" = x ; then
24209 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
24210 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
24211 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24212 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24213 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24214 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24215 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24216 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24217 if test "x$enable_gtktest" = "xyes" ; then
24218 ac_save_CFLAGS="$CFLAGS"
24219 ac_save_LIBS="$LIBS"
24220 CFLAGS="$CFLAGS $GTK_CFLAGS"
24221 LIBS="$GTK_LIBS $LIBS"
24222 rm -f conf.gtktest
24223 if test "$cross_compiling" = yes; then
24224 echo $ac_n "cross compiling; assumed OK... $ac_c"
24225else
24226 cat >conftest.$ac_ext <<_ACEOF
24227/* confdefs.h. */
24228_ACEOF
24229cat confdefs.h >>conftest.$ac_ext
24230cat >>conftest.$ac_ext <<_ACEOF
24231/* end confdefs.h. */
24232
24233#include <gtk/gtk.h>
24234#include <stdio.h>
24235#include <stdlib.h>
24236
24237int
24238main ()
24239{
24240 int major, minor, micro;
24241 char *tmp_version;
24242
24243 system ("touch conf.gtktest");
24244
24245 /* HP/UX 9 (%@#!) writes to sscanf strings */
24246 tmp_version = g_strdup("$min_gtk_version");
24247 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24248 printf("%s, bad version string\n", "$min_gtk_version");
24249 exit(1);
24250 }
24251
24252 if ((gtk_major_version != $gtk_config_major_version) ||
24253 (gtk_minor_version != $gtk_config_minor_version) ||
24254 (gtk_micro_version != $gtk_config_micro_version))
24255 {
24256 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24257 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24258 gtk_major_version, gtk_minor_version, gtk_micro_version);
24259 printf ("*** was found! If pkg-config was correct, then it is best\n");
24260 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24261 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24262 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24263 printf("*** required on your system.\n");
24264 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
24265 printf("*** to point to the correct configuration files\n");
24266 }
24267 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24268 (gtk_minor_version != GTK_MINOR_VERSION) ||
24269 (gtk_micro_version != GTK_MICRO_VERSION))
24270 {
24271 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24272 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24273 printf("*** library (version %d.%d.%d)\n",
24274 gtk_major_version, gtk_minor_version, gtk_micro_version);
24275 }
24276 else
24277 {
24278 if ((gtk_major_version > major) ||
24279 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24280 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24281 {
24282 return 0;
24283 }
24284 else
24285 {
24286 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24287 gtk_major_version, gtk_minor_version, gtk_micro_version);
24288 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24289 major, minor, micro);
24290 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24291 printf("***\n");
24292 printf("*** If you have already installed a sufficiently new version, this error\n");
24293 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
24294 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24295 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
24296 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
24297 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24298 printf("*** so that the correct libraries are found at run-time))\n");
24299 }
24300 }
24301 return 1;
24302}
24303
24304_ACEOF
24305rm -f conftest$ac_exeext
24306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24307 (eval $ac_link) 2>&5
24308 ac_status=$?
24309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24310 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24312 (eval $ac_try) 2>&5
24313 ac_status=$?
24314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24315 (exit $ac_status); }; }; then
24316 :
24317else
24318 echo "$as_me: program exited with status $ac_status" >&5
24319echo "$as_me: failed program was:" >&5
24320sed 's/^/| /' conftest.$ac_ext >&5
24321
24322( exit $ac_status )
24323no_gtk=yes
24324fi
ac1cb8d3 24325rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24326fi
24327 CFLAGS="$ac_save_CFLAGS"
24328 LIBS="$ac_save_LIBS"
24329 fi
24330 fi
24331 if test "x$no_gtk" = x ; then
24332 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
24333echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
24334 wx_cv_lib_gtk=2.0
24335 else
24336 echo "$as_me:$LINENO: result: no" >&5
24337echo "${ECHO_T}no" >&6
24338 if test "$PKG_CONFIG" = "no" ; then
24339 echo "*** A new enough version of pkg-config was not found."
24340 echo "*** See http://pkgconfig.sourceforge.net"
24341 else
24342 if test -f conf.gtktest ; then
24343 :
24344 else
24345 echo "*** Could not run GTK+ test program, checking why..."
24346 ac_save_CFLAGS="$CFLAGS"
24347 ac_save_LIBS="$LIBS"
24348 CFLAGS="$CFLAGS $GTK_CFLAGS"
24349 LIBS="$LIBS $GTK_LIBS"
24350 cat >conftest.$ac_ext <<_ACEOF
24351/* confdefs.h. */
24352_ACEOF
24353cat confdefs.h >>conftest.$ac_ext
24354cat >>conftest.$ac_ext <<_ACEOF
24355/* end confdefs.h. */
24356
24357#include <gtk/gtk.h>
24358#include <stdio.h>
24359
24360int
24361main ()
24362{
24363 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24364 ;
24365 return 0;
24366}
24367_ACEOF
24368rm -f conftest.$ac_objext conftest$ac_exeext
24369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24370 (eval $ac_link) 2>conftest.er1
a848cd7e 24371 ac_status=$?
ac1cb8d3
VS
24372 grep -v '^ *+' conftest.er1 >conftest.err
24373 rm -f conftest.er1
24374 cat conftest.err >&5
a848cd7e
SC
24375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24376 (exit $ac_status); } &&
07158944 24377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24379 (eval $ac_try) 2>&5
24380 ac_status=$?
24381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24382 (exit $ac_status); }; } &&
24383 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24385 (eval $ac_try) 2>&5
24386 ac_status=$?
24387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24388 (exit $ac_status); }; }; then
24389 echo "*** The test program compiled, but did not run. This usually means"
24390 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
24391 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
24392 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24393 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24394 echo "*** is required on your system"
24395 echo "***"
24396 echo "*** If you have an old version installed, it is best to remove it, although"
24397 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24398else
24399 echo "$as_me: failed program was:" >&5
24400sed 's/^/| /' conftest.$ac_ext >&5
24401
24402 echo "*** The test program failed to compile or link. See the file config.log for the"
24403 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
24404fi
ac1cb8d3
VS
24405rm -f conftest.err conftest.$ac_objext \
24406 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24407 CFLAGS="$ac_save_CFLAGS"
24408 LIBS="$ac_save_LIBS"
24409 fi
24410 fi
24411 GTK_CFLAGS=""
24412 GTK_LIBS=""
24413 :
24414 fi
24415
24416
24417 rm -f conf.gtktest
24418
24419 else
24420
24421# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24422if test "${with_gtk_prefix+set}" = set; then
24423 withval="$with_gtk_prefix"
24424 gtk_config_prefix="$withval"
24425else
24426 gtk_config_prefix=""
24427fi;
24428
24429# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24430if test "${with_gtk_exec_prefix+set}" = set; then
24431 withval="$with_gtk_exec_prefix"
24432 gtk_config_exec_prefix="$withval"
24433else
24434 gtk_config_exec_prefix=""
24435fi;
24436# Check whether --enable-gtktest or --disable-gtktest was given.
24437if test "${enable_gtktest+set}" = set; then
24438 enableval="$enable_gtktest"
24439
24440else
24441 enable_gtktest=yes
24442fi;
24443
24444 for module in . $GTK_MODULES
24445 do
24446 case "$module" in
24447 gthread)
24448 gtk_config_args="$gtk_config_args gthread"
24449 ;;
24450 esac
24451 done
24452
24453 if test x$gtk_config_exec_prefix != x ; then
24454 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24455 if test x${GTK_CONFIG+set} != xset ; then
24456 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24457 fi
24458 fi
24459 if test x$gtk_config_prefix != x ; then
24460 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24461 if test x${GTK_CONFIG+set} != xset ; then
24462 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24463 fi
24464 fi
24465
24466 # Extract the first word of "gtk-config", so it can be a program name with args.
24467set dummy gtk-config; ac_word=$2
24468echo "$as_me:$LINENO: checking for $ac_word" >&5
24469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24470if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24471 echo $ECHO_N "(cached) $ECHO_C" >&6
24472else
24473 case $GTK_CONFIG in
24474 [\\/]* | ?:[\\/]*)
24475 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24476 ;;
24477 *)
24478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24479for as_dir in $PATH
24480do
24481 IFS=$as_save_IFS
24482 test -z "$as_dir" && as_dir=.
24483 for ac_exec_ext in '' $ac_executable_extensions; do
24484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24485 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24487 break 2
24488 fi
24489done
24490done
24491
24492 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24493 ;;
24494esac
24495fi
24496GTK_CONFIG=$ac_cv_path_GTK_CONFIG
24497
24498if test -n "$GTK_CONFIG"; then
24499 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
24500echo "${ECHO_T}$GTK_CONFIG" >&6
24501else
24502 echo "$as_me:$LINENO: result: no" >&5
24503echo "${ECHO_T}no" >&6
24504fi
24505
24506 min_gtk_version=1.2.7
24507 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
24508echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
24509 no_gtk=""
24510 if test "$GTK_CONFIG" = "no" ; then
24511 no_gtk=yes
24512 else
24513 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
24514 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
24515 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
24516 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24517 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
24518 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24519 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
24520 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24521 if test "x$enable_gtktest" = "xyes" ; then
24522 ac_save_CFLAGS="$CFLAGS"
24523 ac_save_LIBS="$LIBS"
24524 CFLAGS="$CFLAGS $GTK_CFLAGS"
24525 LIBS="$GTK_LIBS $LIBS"
24526 rm -f conf.gtktest
24527 if test "$cross_compiling" = yes; then
24528 echo $ac_n "cross compiling; assumed OK... $ac_c"
24529else
24530 cat >conftest.$ac_ext <<_ACEOF
24531/* confdefs.h. */
24532_ACEOF
24533cat confdefs.h >>conftest.$ac_ext
24534cat >>conftest.$ac_ext <<_ACEOF
24535/* end confdefs.h. */
24536
24537#include <gtk/gtk.h>
24538#include <stdio.h>
24539#include <stdlib.h>
24540
24541int
24542main ()
24543{
24544 int major, minor, micro;
24545 char *tmp_version;
24546
24547 system ("touch conf.gtktest");
24548
24549 /* HP/UX 9 (%@#!) writes to sscanf strings */
24550 tmp_version = g_strdup("$min_gtk_version");
24551 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24552 printf("%s, bad version string\n", "$min_gtk_version");
24553 exit(1);
24554 }
24555
24556 if ((gtk_major_version != $gtk_config_major_version) ||
24557 (gtk_minor_version != $gtk_config_minor_version) ||
24558 (gtk_micro_version != $gtk_config_micro_version))
24559 {
24560 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24561 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24562 gtk_major_version, gtk_minor_version, gtk_micro_version);
24563 printf ("*** was found! If gtk-config was correct, then it is best\n");
24564 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24565 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24566 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24567 printf("*** required on your system.\n");
24568 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
24569 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
24570 printf("*** before re-running configure\n");
24571 }
24572#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
24573 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24574 (gtk_minor_version != GTK_MINOR_VERSION) ||
24575 (gtk_micro_version != GTK_MICRO_VERSION))
24576 {
24577 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24578 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24579 printf("*** library (version %d.%d.%d)\n",
24580 gtk_major_version, gtk_minor_version, gtk_micro_version);
24581 }
24582#endif /* defined (GTK_MAJOR_VERSION) ... */
24583 else
24584 {
24585 if ((gtk_major_version > major) ||
24586 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24587 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24588 {
24589 return 0;
24590 }
24591 else
24592 {
24593 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24594 gtk_major_version, gtk_minor_version, gtk_micro_version);
24595 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24596 major, minor, micro);
24597 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24598 printf("***\n");
24599 printf("*** If you have already installed a sufficiently new version, this error\n");
24600 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
24601 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24602 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
24603 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
24604 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24605 printf("*** so that the correct libraries are found at run-time))\n");
24606 }
24607 }
24608 return 1;
24609}
24610
24611_ACEOF
24612rm -f conftest$ac_exeext
24613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24614 (eval $ac_link) 2>&5
24615 ac_status=$?
24616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24619 (eval $ac_try) 2>&5
24620 ac_status=$?
24621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24622 (exit $ac_status); }; }; then
24623 :
24624else
24625 echo "$as_me: program exited with status $ac_status" >&5
24626echo "$as_me: failed program was:" >&5
24627sed 's/^/| /' conftest.$ac_ext >&5
24628
24629( exit $ac_status )
24630no_gtk=yes
24631fi
ac1cb8d3 24632rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24633fi
24634 CFLAGS="$ac_save_CFLAGS"
24635 LIBS="$ac_save_LIBS"
24636 fi
24637 fi
24638 if test "x$no_gtk" = x ; then
24639 echo "$as_me:$LINENO: result: yes" >&5
24640echo "${ECHO_T}yes" >&6
24641 wx_cv_lib_gtk=1.2.7
24642 else
24643 echo "$as_me:$LINENO: result: no" >&5
24644echo "${ECHO_T}no" >&6
24645 if test "$GTK_CONFIG" = "no" ; then
24646 echo "*** The gtk-config script installed by GTK could not be found"
24647 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
24648 echo "*** your path, or set the GTK_CONFIG environment variable to the"
24649 echo "*** full path to gtk-config."
24650 else
24651 if test -f conf.gtktest ; then
24652 :
24653 else
24654 echo "*** Could not run GTK test program, checking why..."
24655 CFLAGS="$CFLAGS $GTK_CFLAGS"
24656 LIBS="$LIBS $GTK_LIBS"
24657 cat >conftest.$ac_ext <<_ACEOF
24658/* confdefs.h. */
24659_ACEOF
24660cat confdefs.h >>conftest.$ac_ext
24661cat >>conftest.$ac_ext <<_ACEOF
24662/* end confdefs.h. */
24663
24664#include <gtk/gtk.h>
24665#include <stdio.h>
24666
24667int
24668main ()
24669{
24670 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24671 ;
24672 return 0;
24673}
24674_ACEOF
24675rm -f conftest.$ac_objext conftest$ac_exeext
24676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24677 (eval $ac_link) 2>conftest.er1
a848cd7e 24678 ac_status=$?
ac1cb8d3
VS
24679 grep -v '^ *+' conftest.er1 >conftest.err
24680 rm -f conftest.er1
24681 cat conftest.err >&5
a848cd7e
SC
24682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683 (exit $ac_status); } &&
07158944 24684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24686 (eval $ac_try) 2>&5
24687 ac_status=$?
24688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24689 (exit $ac_status); }; } &&
24690 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24692 (eval $ac_try) 2>&5
24693 ac_status=$?
24694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24695 (exit $ac_status); }; }; then
24696 echo "*** The test program compiled, but did not run. This usually means"
24697 echo "*** that the run-time linker is not finding GTK or finding the wrong"
24698 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
24699 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24700 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24701 echo "*** is required on your system"
24702 echo "***"
24703 echo "*** If you have an old version installed, it is best to remove it, although"
24704 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24705 echo "***"
24706 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
24707 echo "*** came with the system with the command"
24708 echo "***"
24709 echo "*** rpm --erase --nodeps gtk gtk-devel"
24710else
24711 echo "$as_me: failed program was:" >&5
24712sed 's/^/| /' conftest.$ac_ext >&5
24713
24714 echo "*** The test program failed to compile or link. See the file config.log for the"
24715 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
24716 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
24717 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
24718fi
ac1cb8d3
VS
24719rm -f conftest.err conftest.$ac_objext \
24720 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24721 CFLAGS="$ac_save_CFLAGS"
24722 LIBS="$ac_save_LIBS"
24723 fi
24724 fi
24725 GTK_CFLAGS=""
24726 GTK_LIBS=""
24727 :
24728 fi
24729
24730
24731 rm -f conf.gtktest
24732
24733
24734 if test -z "$wx_cv_lib_gtk"; then
24735
24736# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24737if test "${with_gtk_prefix+set}" = set; then
24738 withval="$with_gtk_prefix"
24739 gtk_config_prefix="$withval"
24740else
24741 gtk_config_prefix=""
24742fi;
24743
24744# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24745if test "${with_gtk_exec_prefix+set}" = set; then
24746 withval="$with_gtk_exec_prefix"
24747 gtk_config_exec_prefix="$withval"
24748else
24749 gtk_config_exec_prefix=""
24750fi;
24751# Check whether --enable-gtktest or --disable-gtktest was given.
24752if test "${enable_gtktest+set}" = set; then
24753 enableval="$enable_gtktest"
24754
24755else
24756 enable_gtktest=yes
24757fi;
24758
24759 for module in . $GTK_MODULES
24760 do
24761 case "$module" in
24762 gthread)
24763 gtk_config_args="$gtk_config_args gthread"
24764 ;;
24765 esac
24766 done
24767
24768 if test x$gtk_config_exec_prefix != x ; then
24769 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24770 if test x${GTK_CONFIG+set} != xset ; then
24771 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24772 fi
24773 fi
24774 if test x$gtk_config_prefix != x ; then
24775 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24776 if test x${GTK_CONFIG+set} != xset ; then
24777 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24778 fi
24779 fi
24780
24781 # Extract the first word of "gtk-config", so it can be a program name with args.
24782set dummy gtk-config; ac_word=$2
24783echo "$as_me:$LINENO: checking for $ac_word" >&5
24784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24785if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24786 echo $ECHO_N "(cached) $ECHO_C" >&6
24787else
24788 case $GTK_CONFIG in
24789 [\\/]* | ?:[\\/]*)
24790 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24791 ;;
24792 *)
24793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24794for as_dir in $PATH
24795do
24796 IFS=$as_save_IFS
24797 test -z "$as_dir" && as_dir=.
24798 for ac_exec_ext in '' $ac_executable_extensions; do
24799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24800 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24802 break 2
24803 fi
24804done
24805done
24806
24807 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
24808 ;;
24809esac
24810fi
24811GTK_CONFIG=$ac_cv_path_GTK_CONFIG
24812
24813if test -n "$GTK_CONFIG"; then
24814 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
24815echo "${ECHO_T}$GTK_CONFIG" >&6
24816else
24817 echo "$as_me:$LINENO: result: no" >&5
24818echo "${ECHO_T}no" >&6
24819fi
24820
24821 min_gtk_version=1.2.3
24822 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
24823echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
24824 no_gtk=""
24825 if test "$GTK_CONFIG" = "no" ; then
24826 no_gtk=yes
24827 else
24828 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
24829 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
24830 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
24831 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24832 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
24833 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24834 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
24835 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24836 if test "x$enable_gtktest" = "xyes" ; then
24837 ac_save_CFLAGS="$CFLAGS"
24838 ac_save_LIBS="$LIBS"
24839 CFLAGS="$CFLAGS $GTK_CFLAGS"
24840 LIBS="$GTK_LIBS $LIBS"
24841 rm -f conf.gtktest
24842 if test "$cross_compiling" = yes; then
24843 echo $ac_n "cross compiling; assumed OK... $ac_c"
24844else
24845 cat >conftest.$ac_ext <<_ACEOF
24846/* confdefs.h. */
24847_ACEOF
24848cat confdefs.h >>conftest.$ac_ext
24849cat >>conftest.$ac_ext <<_ACEOF
24850/* end confdefs.h. */
24851
24852#include <gtk/gtk.h>
24853#include <stdio.h>
24854#include <stdlib.h>
24855
24856int
24857main ()
24858{
24859 int major, minor, micro;
24860 char *tmp_version;
24861
24862 system ("touch conf.gtktest");
24863
24864 /* HP/UX 9 (%@#!) writes to sscanf strings */
24865 tmp_version = g_strdup("$min_gtk_version");
24866 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24867 printf("%s, bad version string\n", "$min_gtk_version");
24868 exit(1);
24869 }
24870
24871 if ((gtk_major_version != $gtk_config_major_version) ||
24872 (gtk_minor_version != $gtk_config_minor_version) ||
24873 (gtk_micro_version != $gtk_config_micro_version))
24874 {
24875 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24876 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24877 gtk_major_version, gtk_minor_version, gtk_micro_version);
24878 printf ("*** was found! If gtk-config was correct, then it is best\n");
24879 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24880 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24881 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24882 printf("*** required on your system.\n");
24883 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
24884 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
24885 printf("*** before re-running configure\n");
24886 }
24887#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
24888 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24889 (gtk_minor_version != GTK_MINOR_VERSION) ||
24890 (gtk_micro_version != GTK_MICRO_VERSION))
24891 {
24892 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24893 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24894 printf("*** library (version %d.%d.%d)\n",
24895 gtk_major_version, gtk_minor_version, gtk_micro_version);
24896 }
24897#endif /* defined (GTK_MAJOR_VERSION) ... */
24898 else
24899 {
24900 if ((gtk_major_version > major) ||
24901 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24902 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24903 {
24904 return 0;
24905 }
24906 else
24907 {
24908 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24909 gtk_major_version, gtk_minor_version, gtk_micro_version);
24910 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24911 major, minor, micro);
24912 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24913 printf("***\n");
24914 printf("*** If you have already installed a sufficiently new version, this error\n");
24915 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
24916 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24917 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
24918 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
24919 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24920 printf("*** so that the correct libraries are found at run-time))\n");
24921 }
24922 }
24923 return 1;
24924}
24925
24926_ACEOF
24927rm -f conftest$ac_exeext
24928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24929 (eval $ac_link) 2>&5
24930 ac_status=$?
24931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24934 (eval $ac_try) 2>&5
24935 ac_status=$?
24936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937 (exit $ac_status); }; }; then
24938 :
24939else
24940 echo "$as_me: program exited with status $ac_status" >&5
24941echo "$as_me: failed program was:" >&5
24942sed 's/^/| /' conftest.$ac_ext >&5
24943
24944( exit $ac_status )
24945no_gtk=yes
24946fi
ac1cb8d3 24947rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24948fi
24949 CFLAGS="$ac_save_CFLAGS"
24950 LIBS="$ac_save_LIBS"
24951 fi
24952 fi
24953 if test "x$no_gtk" = x ; then
24954 echo "$as_me:$LINENO: result: yes" >&5
24955echo "${ECHO_T}yes" >&6
24956 wx_cv_lib_gtk=1.2.3
24957 else
24958 echo "$as_me:$LINENO: result: no" >&5
24959echo "${ECHO_T}no" >&6
24960 if test "$GTK_CONFIG" = "no" ; then
24961 echo "*** The gtk-config script installed by GTK could not be found"
24962 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
24963 echo "*** your path, or set the GTK_CONFIG environment variable to the"
24964 echo "*** full path to gtk-config."
24965 else
24966 if test -f conf.gtktest ; then
24967 :
24968 else
24969 echo "*** Could not run GTK test program, checking why..."
24970 CFLAGS="$CFLAGS $GTK_CFLAGS"
24971 LIBS="$LIBS $GTK_LIBS"
24972 cat >conftest.$ac_ext <<_ACEOF
24973/* confdefs.h. */
24974_ACEOF
24975cat confdefs.h >>conftest.$ac_ext
24976cat >>conftest.$ac_ext <<_ACEOF
24977/* end confdefs.h. */
24978
24979#include <gtk/gtk.h>
24980#include <stdio.h>
24981
24982int
24983main ()
24984{
24985 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24986 ;
24987 return 0;
24988}
24989_ACEOF
24990rm -f conftest.$ac_objext conftest$ac_exeext
24991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24992 (eval $ac_link) 2>conftest.er1
a848cd7e 24993 ac_status=$?
ac1cb8d3
VS
24994 grep -v '^ *+' conftest.er1 >conftest.err
24995 rm -f conftest.er1
24996 cat conftest.err >&5
a848cd7e
SC
24997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24998 (exit $ac_status); } &&
07158944 24999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25001 (eval $ac_try) 2>&5
25002 ac_status=$?
25003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25004 (exit $ac_status); }; } &&
25005 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25007 (eval $ac_try) 2>&5
25008 ac_status=$?
25009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010 (exit $ac_status); }; }; then
25011 echo "*** The test program compiled, but did not run. This usually means"
25012 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25013 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25014 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25015 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25016 echo "*** is required on your system"
25017 echo "***"
25018 echo "*** If you have an old version installed, it is best to remove it, although"
25019 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25020 echo "***"
25021 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25022 echo "*** came with the system with the command"
25023 echo "***"
25024 echo "*** rpm --erase --nodeps gtk gtk-devel"
25025else
25026 echo "$as_me: failed program was:" >&5
25027sed 's/^/| /' conftest.$ac_ext >&5
25028
25029 echo "*** The test program failed to compile or link. See the file config.log for the"
25030 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25031 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25032 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25033fi
ac1cb8d3
VS
25034rm -f conftest.err conftest.$ac_objext \
25035 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25036 CFLAGS="$ac_save_CFLAGS"
25037 LIBS="$ac_save_LIBS"
25038 fi
25039 fi
25040 GTK_CFLAGS=""
25041 GTK_LIBS=""
25042 :
25043 fi
25044
25045
25046 rm -f conf.gtktest
25047
25048 fi
25049 fi
25050
25051 if test -z "$wx_cv_lib_gtk"; then
25052 wx_cv_lib_gtk=none
25053 else
25054 wx_cv_cflags_gtk=$GTK_CFLAGS
25055 wx_cv_libs_gtk=$GTK_LIBS
25056 fi
25057
25058
25059fi
25060
25061
25062 if test "$gtk_version_cached" = 1; then
25063 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
25064echo "${ECHO_T}$wx_cv_lib_gtk" >&6
25065 fi
25066
25067 case "$wx_cv_lib_gtk" in
25068 2.0) WXGTK20=1
25069 TOOLKIT_VERSION=2
25070 ;;
25071 1.2.7) WXGTK127=1
25072 WXGTK12=1
25073 ;;
25074 1.2.3) WXGTK12=1
25075 ;;
25076 *) { { echo "$as_me:$LINENO: error:
25077Please check that gtk-config is in path, the directory
25078where GTK+ libraries are installed (returned by
25079'gtk-config --libs' command) is in LD_LIBRARY_PATH or
25080equivalent variable and GTK+ is version 1.2.3 or above.
25081 " >&5
25082echo "$as_me: error:
25083Please check that gtk-config is in path, the directory
25084where GTK+ libraries are installed (returned by
25085'gtk-config --libs' command) is in LD_LIBRARY_PATH or
25086equivalent variable and GTK+ is version 1.2.3 or above.
25087 " >&2;}
25088 { (exit 1); exit 1; }; }
25089 ;;
25090 esac
25091
25092 if test "$WXGTK20" = 1; then
304205f1
VS
25093 save_CFLAGS="$CFLAGS"
25094 save_LIBS="$LIBS"
25095 CFLAGS="$CFLAGS $GTK_CFLAGS"
25096 LIBS="$LIBS $GTK_LIBS"
25097
9755e73b 25098
304205f1
VS
25099for ac_func in pango_font_family_is_monospace
25100do
25101as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25102echo "$as_me:$LINENO: checking for $ac_func" >&5
25103echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25104if eval "test \"\${$as_ac_var+set}\" = set"; then
25105 echo $ECHO_N "(cached) $ECHO_C" >&6
25106else
25107 cat >conftest.$ac_ext <<_ACEOF
25108/* confdefs.h. */
25109_ACEOF
25110cat confdefs.h >>conftest.$ac_ext
25111cat >>conftest.$ac_ext <<_ACEOF
25112/* end confdefs.h. */
25113/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25115#define $ac_func innocuous_$ac_func
25116
25117/* System header to define __stub macros and hopefully few prototypes,
25118 which can conflict with char $ac_func (); below.
25119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25120 <limits.h> exists even on freestanding compilers. */
25121
25122#ifdef __STDC__
25123# include <limits.h>
25124#else
25125# include <assert.h>
25126#endif
25127
25128#undef $ac_func
25129
25130/* Override any gcc2 internal prototype to avoid an error. */
25131#ifdef __cplusplus
25132extern "C"
25133{
25134#endif
25135/* We use char because int might match the return type of a gcc2
25136 builtin and then its argument prototype would still apply. */
25137char $ac_func ();
25138/* The GNU C library defines this for functions which it implements
25139 to always fail with ENOSYS. Some functions are actually named
25140 something starting with __ and the normal name is an alias. */
25141#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25142choke me
25143#else
25144char (*f) () = $ac_func;
25145#endif
25146#ifdef __cplusplus
25147}
25148#endif
25149
25150int
25151main ()
25152{
25153return f != $ac_func;
25154 ;
25155 return 0;
25156}
25157_ACEOF
25158rm -f conftest.$ac_objext conftest$ac_exeext
25159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25160 (eval $ac_link) 2>conftest.er1
25161 ac_status=$?
25162 grep -v '^ *+' conftest.er1 >conftest.err
25163 rm -f conftest.er1
25164 cat conftest.err >&5
25165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25166 (exit $ac_status); } &&
07158944 25167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
25168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25169 (eval $ac_try) 2>&5
25170 ac_status=$?
25171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25172 (exit $ac_status); }; } &&
25173 { ac_try='test -s conftest$ac_exeext'
25174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25175 (eval $ac_try) 2>&5
25176 ac_status=$?
25177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25178 (exit $ac_status); }; }; then
25179 eval "$as_ac_var=yes"
25180else
25181 echo "$as_me: failed program was:" >&5
25182sed 's/^/| /' conftest.$ac_ext >&5
25183
25184eval "$as_ac_var=no"
25185fi
25186rm -f conftest.err conftest.$ac_objext \
25187 conftest$ac_exeext conftest.$ac_ext
25188fi
25189echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25190echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25191if test `eval echo '${'$as_ac_var'}'` = yes; then
25192 cat >>confdefs.h <<_ACEOF
25193#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25194_ACEOF
25195
25196fi
25197done
25198
9755e73b
VS
25199
25200 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
25201echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
25202 cat >conftest.$ac_ext <<_ACEOF
25203/* confdefs.h. */
25204_ACEOF
25205cat confdefs.h >>conftest.$ac_ext
25206cat >>conftest.$ac_ext <<_ACEOF
25207/* end confdefs.h. */
25208
25209 #include <gtk/gtk.h>
25210
25211int
25212main ()
25213{
25214
25215 #if !GTK_CHECK_VERSION(2,4,0)
25216 #error "Not GTK+ 2.4"
25217 #endif
25218
25219 ;
25220 return 0;
25221}
25222_ACEOF
25223rm -f conftest.$ac_objext
25224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25225 (eval $ac_compile) 2>conftest.er1
25226 ac_status=$?
25227 grep -v '^ *+' conftest.er1 >conftest.err
25228 rm -f conftest.er1
25229 cat conftest.err >&5
25230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25231 (exit $ac_status); } &&
07158944 25232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
25233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25234 (eval $ac_try) 2>&5
25235 ac_status=$?
25236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25237 (exit $ac_status); }; } &&
25238 { ac_try='test -s conftest.$ac_objext'
25239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25240 (eval $ac_try) 2>&5
25241 ac_status=$?
25242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25243 (exit $ac_status); }; }; then
25244
25245 cat >>confdefs.h <<\_ACEOF
25246#define __WXGTK24__ 1
25247_ACEOF
25248
25249 echo "$as_me:$LINENO: result: yes" >&5
25250echo "${ECHO_T}yes" >&6
25251
25252else
25253 echo "$as_me: failed program was:" >&5
25254sed 's/^/| /' conftest.$ac_ext >&5
25255
25256
25257 echo "$as_me:$LINENO: result: no" >&5
25258echo "${ECHO_T}no" >&6
25259
25260fi
25261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25262
304205f1
VS
25263 CFLAGS="$save_CFLAGS"
25264 LIBS="$save_LIBS"
a848cd7e
SC
25265 else
25266 if test "$wxUSE_UNICODE" = "yes"; then
25267 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
25268echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
25269 wxUSE_UNICODE=no
25270 fi
25271 fi
25272
25273 if test "$USE_DARWIN" != 1; then
25274
25275for ac_func in poll
25276do
25277as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25278echo "$as_me:$LINENO: checking for $ac_func" >&5
25279echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25280if eval "test \"\${$as_ac_var+set}\" = set"; then
25281 echo $ECHO_N "(cached) $ECHO_C" >&6
25282else
25283 cat >conftest.$ac_ext <<_ACEOF
25284/* confdefs.h. */
25285_ACEOF
25286cat confdefs.h >>conftest.$ac_ext
25287cat >>conftest.$ac_ext <<_ACEOF
25288/* end confdefs.h. */
ac1cb8d3
VS
25289/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25291#define $ac_func innocuous_$ac_func
25292
a848cd7e
SC
25293/* System header to define __stub macros and hopefully few prototypes,
25294 which can conflict with char $ac_func (); below.
25295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25296 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25297
a848cd7e
SC
25298#ifdef __STDC__
25299# include <limits.h>
25300#else
25301# include <assert.h>
25302#endif
ac1cb8d3
VS
25303
25304#undef $ac_func
25305
a848cd7e
SC
25306/* Override any gcc2 internal prototype to avoid an error. */
25307#ifdef __cplusplus
25308extern "C"
25309{
25310#endif
25311/* We use char because int might match the return type of a gcc2
25312 builtin and then its argument prototype would still apply. */
25313char $ac_func ();
25314/* The GNU C library defines this for functions which it implements
25315 to always fail with ENOSYS. Some functions are actually named
25316 something starting with __ and the normal name is an alias. */
25317#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25318choke me
25319#else
25320char (*f) () = $ac_func;
25321#endif
25322#ifdef __cplusplus
25323}
25324#endif
25325
25326int
25327main ()
25328{
25329return f != $ac_func;
25330 ;
25331 return 0;
25332}
25333_ACEOF
25334rm -f conftest.$ac_objext conftest$ac_exeext
25335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25336 (eval $ac_link) 2>conftest.er1
a848cd7e 25337 ac_status=$?
ac1cb8d3
VS
25338 grep -v '^ *+' conftest.er1 >conftest.err
25339 rm -f conftest.er1
25340 cat conftest.err >&5
a848cd7e
SC
25341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25342 (exit $ac_status); } &&
07158944 25343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25345 (eval $ac_try) 2>&5
25346 ac_status=$?
25347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25348 (exit $ac_status); }; } &&
25349 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25351 (eval $ac_try) 2>&5
25352 ac_status=$?
25353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25354 (exit $ac_status); }; }; then
25355 eval "$as_ac_var=yes"
25356else
25357 echo "$as_me: failed program was:" >&5
25358sed 's/^/| /' conftest.$ac_ext >&5
25359
25360eval "$as_ac_var=no"
25361fi
ac1cb8d3
VS
25362rm -f conftest.err conftest.$ac_objext \
25363 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25364fi
25365echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25366echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25367if test `eval echo '${'$as_ac_var'}'` = yes; then
25368 cat >>confdefs.h <<_ACEOF
25369#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25370_ACEOF
25371
25372fi
25373done
25374
25375 fi
25376
25377 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
25378 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
25379
25380 AFMINSTALL=afminstall
25381 TOOLKIT=GTK
25382 GUIDIST=GTK_DIST
25383
25384 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
25385echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
25386if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
25387 echo $ECHO_N "(cached) $ECHO_C" >&6
25388else
25389 ac_check_lib_save_LIBS=$LIBS
25390LIBS="-lgdk $LIBS"
25391cat >conftest.$ac_ext <<_ACEOF
25392/* confdefs.h. */
25393_ACEOF
25394cat confdefs.h >>conftest.$ac_ext
25395cat >>conftest.$ac_ext <<_ACEOF
25396/* end confdefs.h. */
25397
25398/* Override any gcc2 internal prototype to avoid an error. */
25399#ifdef __cplusplus
25400extern "C"
25401#endif
25402/* We use char because int might match the return type of a gcc2
25403 builtin and then its argument prototype would still apply. */
25404char gdk_im_open ();
25405int
25406main ()
25407{
25408gdk_im_open ();
25409 ;
25410 return 0;
25411}
25412_ACEOF
25413rm -f conftest.$ac_objext conftest$ac_exeext
25414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25415 (eval $ac_link) 2>conftest.er1
a848cd7e 25416 ac_status=$?
ac1cb8d3
VS
25417 grep -v '^ *+' conftest.er1 >conftest.err
25418 rm -f conftest.er1
25419 cat conftest.err >&5
a848cd7e
SC
25420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25421 (exit $ac_status); } &&
07158944 25422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25424 (eval $ac_try) 2>&5
25425 ac_status=$?
25426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25427 (exit $ac_status); }; } &&
25428 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25430 (eval $ac_try) 2>&5
25431 ac_status=$?
25432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25433 (exit $ac_status); }; }; then
25434 ac_cv_lib_gdk_gdk_im_open=yes
25435else
25436 echo "$as_me: failed program was:" >&5
25437sed 's/^/| /' conftest.$ac_ext >&5
25438
25439ac_cv_lib_gdk_gdk_im_open=no
25440fi
ac1cb8d3
VS
25441rm -f conftest.err conftest.$ac_objext \
25442 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25443LIBS=$ac_check_lib_save_LIBS
25444fi
25445echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
25446echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
25447if test $ac_cv_lib_gdk_gdk_im_open = yes; then
25448 cat >>confdefs.h <<\_ACEOF
25449#define HAVE_XIM 1
25450_ACEOF
25451
25452fi
25453
25454
25455
25456 if test "$wxUSE_GPE" = "yes"; then
25457 echo "$as_me:$LINENO: checking for gpewidget library" >&5
25458echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
25459
25460ac_find_libraries=
25461for ac_dir in $SEARCH_LIB /usr/lib;
25462 do
25463 for ac_extension in a so sl dylib; do
25464 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
25465 ac_find_libraries=$ac_dir
25466 break 2
25467 fi
25468 done
25469 done
25470
25471 if test "$ac_find_libraries" != "" ; then
25472
25473 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25474 result=$?
25475 if test $result = 0; then
25476 ac_path_to_link=""
25477 else
25478 ac_path_to_link=" -L$ac_find_libraries"
25479 fi
25480
25481 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
25482 WXGPE=1
25483 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25484echo "${ECHO_T}found at $ac_find_libraries" >&6
25485 else
25486 echo "$as_me:$LINENO: result: not found" >&5
25487echo "${ECHO_T}not found" >&6
25488 fi
25489
25490 fi
25491 fi
25492
25493 if test "$wxUSE_MGL" = 1; then
25494 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
25495echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
25496 if test "x$MGL_ROOT" = x ; then
25497 echo "$as_me:$LINENO: result: not found" >&5
25498echo "${ECHO_T}not found" >&6
25499 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
25500echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
25501 { (exit 1); exit 1; }; }
25502 else
25503 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
25504echo "${ECHO_T}$MGL_ROOT" >&6
25505 fi
25506
25507 echo "$as_me:$LINENO: checking for libmgl location" >&5
25508echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
25509 case "${host}" in
25510 *-*-linux* )
25511 if test "x$wxUSE_SHARED" = xyes ; then
25512 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
25513 else
25514 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
25515 fi
25516 ;;
25517 *-pc-msdosdjgpp )
25518 mgl_os_candidates="dos32/dj2"
25519 ;;
25520 *)
25521 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
25522echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
25523 { (exit 1); exit 1; }; }
25524 esac
25525
25526 mgl_lib_type=""
25527 mgl_os=""
25528
25529 for mgl_os_i in $mgl_os_candidates ; do
25530 if test "x$mgl_os" = x ; then
25531 if test "$wxUSE_DEBUG_FLAG" = yes ; then
25532 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
25533 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
25534 mgl_lib_type=debug
25535 mgl_os=$mgl_os_i
25536 fi
25537 fi
25538 if test "x$mgl_lib_type" = x ; then
25539 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
25540 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
25541 mgl_lib_type=release
25542 mgl_os=$mgl_os_i
25543 fi
25544 fi
25545 fi
25546 done
25547
25548 if test "x$mgl_os" = x ; then
25549 echo "$as_me:$LINENO: result: not found" >&5
25550echo "${ECHO_T}not found" >&6
25551 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
25552echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
25553 { (exit 1); exit 1; }; }
25554 fi
25555 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
25556echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
25557
25558 wxUSE_UNIVERSAL="yes"
25559
25560 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
25561 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
25562
25563 AFMINSTALL=afminstall
25564 TOOLKIT=MGL
25565 GUIDIST=MGL_DIST
25566 fi
25567
25568 if test "$wxUSE_MICROWIN" = 1; then
25569 echo "$as_me:$LINENO: checking for MicroWindows" >&5
25570echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
25571 if test "x$MICROWINDOWS" = x ; then
25572 echo "$as_me:$LINENO: result: not found" >&5
25573echo "${ECHO_T}not found" >&6
25574 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
25575echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
25576 { (exit 1); exit 1; }; }
25577 else
25578 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
25579echo "${ECHO_T}$MICROWINDOWS" >&6
25580 fi
25581
25582 if test -f $MICROWINDOWS/lib/libmwin.a; then
25583 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
25584echo "${ECHO_T}MicroWindows' libraries found." >&6
25585 else
25586 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
25587echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
25588 { (exit 1); exit 1; }; }
25589 fi
25590
25591 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
25592 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
25593
25594 wxUSE_UNIVERSAL="yes"
25595
25596 AFMINSTALL=afminstall
25597 TOOLKIT=MICROWIN
25598 GUIDIST=MICROWIN_DIST
25599
25600 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
25601 fi
25602
74b84332 25603 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
07158944
VZ
25604
25605if test "x$ac_path_x_has_been_run" != xyes; then
25606 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
25607echo $ECHO_N "checking for X... $ECHO_C" >&6
25608
07158944 25609ac_path_x_has_been_run=yes
a848cd7e
SC
25610
25611# Check whether --with-x or --without-x was given.
25612if test "${with_x+set}" = set; then
25613 withval="$with_x"
25614
25615fi;
25616# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25617if test "x$with_x" = xno; then
25618 # The user explicitly disabled X.
25619 have_x=disabled
25620else
25621 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
25622 # Both variables are already set.
25623 have_x=yes
25624 else
25625 if test "${ac_cv_have_x+set}" = set; then
25626 echo $ECHO_N "(cached) $ECHO_C" >&6
25627else
25628 # One or both of the vars are not set, and there is no cached value.
25629ac_x_includes=no ac_x_libraries=no
25630rm -fr conftest.dir
25631if mkdir conftest.dir; then
25632 cd conftest.dir
25633 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
25634 cat >Imakefile <<'_ACEOF'
25635acfindx:
25636 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
25637_ACEOF
25638 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
25639 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25640 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
25641 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25642 for ac_extension in a so sl; do
25643 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
25644 test -f $ac_im_libdir/libX11.$ac_extension; then
25645 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
25646 fi
25647 done
25648 # Screen out bogus values from the imake configuration. They are
25649 # bogus both because they are the default anyway, and because
25650 # using them would break gcc on systems where it needs fixed includes.
25651 case $ac_im_incroot in
25652 /usr/include) ;;
25653 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25654 esac
25655 case $ac_im_usrlibdir in
25656 /usr/lib | /lib) ;;
25657 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25658 esac
25659 fi
25660 cd ..
25661 rm -fr conftest.dir
25662fi
25663
25664# Standard set of common directories for X headers.
25665# Check X11 before X11Rn because it is often a symlink to the current release.
25666ac_x_header_dirs='
25667/usr/X11/include
25668/usr/X11R6/include
25669/usr/X11R5/include
25670/usr/X11R4/include
25671
25672/usr/include/X11
25673/usr/include/X11R6
25674/usr/include/X11R5
25675/usr/include/X11R4
25676
25677/usr/local/X11/include
25678/usr/local/X11R6/include
25679/usr/local/X11R5/include
25680/usr/local/X11R4/include
25681
25682/usr/local/include/X11
25683/usr/local/include/X11R6
25684/usr/local/include/X11R5
25685/usr/local/include/X11R4
25686
25687/usr/X386/include
25688/usr/x386/include
25689/usr/XFree86/include/X11
25690
25691/usr/include
25692/usr/local/include
25693/usr/unsupported/include
25694/usr/athena/include
25695/usr/local/x11r5/include
25696/usr/lpp/Xamples/include
25697
25698/usr/openwin/include
25699/usr/openwin/share/include'
25700
25701if test "$ac_x_includes" = no; then
07158944 25702 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
25703 # First, try using that file with no special directory specified.
25704 cat >conftest.$ac_ext <<_ACEOF
25705/* confdefs.h. */
25706_ACEOF
25707cat confdefs.h >>conftest.$ac_ext
25708cat >>conftest.$ac_ext <<_ACEOF
25709/* end confdefs.h. */
25710#include <X11/Intrinsic.h>
25711_ACEOF
25712if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25713 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25714 ac_status=$?
25715 grep -v '^ *+' conftest.er1 >conftest.err
25716 rm -f conftest.er1
25717 cat conftest.err >&5
25718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25719 (exit $ac_status); } >/dev/null; then
25720 if test -s conftest.err; then
25721 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25722 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25723 else
25724 ac_cpp_err=
25725 fi
25726else
25727 ac_cpp_err=yes
25728fi
25729if test -z "$ac_cpp_err"; then
25730 # We can compile using X headers with no special include directory.
25731ac_x_includes=
25732else
25733 echo "$as_me: failed program was:" >&5
25734sed 's/^/| /' conftest.$ac_ext >&5
25735
25736 for ac_dir in $ac_x_header_dirs; do
25737 if test -r "$ac_dir/X11/Intrinsic.h"; then
25738 ac_x_includes=$ac_dir
25739 break
25740 fi
25741done
25742fi
25743rm -f conftest.err conftest.$ac_ext
25744fi # $ac_x_includes = no
25745
25746if test "$ac_x_libraries" = no; then
25747 # Check for the libraries.
25748 # See if we find them without any special options.
25749 # Don't add to $LIBS permanently.
25750 ac_save_LIBS=$LIBS
25751 LIBS="-lXt $LIBS"
25752 cat >conftest.$ac_ext <<_ACEOF
25753/* confdefs.h. */
25754_ACEOF
25755cat confdefs.h >>conftest.$ac_ext
25756cat >>conftest.$ac_ext <<_ACEOF
25757/* end confdefs.h. */
25758#include <X11/Intrinsic.h>
25759int
25760main ()
25761{
25762XtMalloc (0)
25763 ;
25764 return 0;
25765}
25766_ACEOF
25767rm -f conftest.$ac_objext conftest$ac_exeext
25768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25769 (eval $ac_link) 2>conftest.er1
a848cd7e 25770 ac_status=$?
ac1cb8d3
VS
25771 grep -v '^ *+' conftest.er1 >conftest.err
25772 rm -f conftest.er1
25773 cat conftest.err >&5
a848cd7e
SC
25774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25775 (exit $ac_status); } &&
07158944 25776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25778 (eval $ac_try) 2>&5
25779 ac_status=$?
25780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25781 (exit $ac_status); }; } &&
25782 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25784 (eval $ac_try) 2>&5
25785 ac_status=$?
25786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25787 (exit $ac_status); }; }; then
25788 LIBS=$ac_save_LIBS
25789# We can link X programs with no special library path.
25790ac_x_libraries=
25791else
25792 echo "$as_me: failed program was:" >&5
25793sed 's/^/| /' conftest.$ac_ext >&5
25794
25795LIBS=$ac_save_LIBS
25796for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25797do
25798 # Don't even attempt the hair of trying to link an X program!
25799 for ac_extension in a so sl; do
25800 if test -r $ac_dir/libXt.$ac_extension; then
25801 ac_x_libraries=$ac_dir
25802 break 2
25803 fi
25804 done
25805done
25806fi
ac1cb8d3
VS
25807rm -f conftest.err conftest.$ac_objext \
25808 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25809fi # $ac_x_libraries = no
25810
25811if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
25812 # Didn't find X anywhere. Cache the known absence of X.
25813 ac_cv_have_x="have_x=no"
25814else
25815 # Record where we found X for the cache.
25816 ac_cv_have_x="have_x=yes \
ac1cb8d3 25817 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
25818fi
25819fi
25820
25821 fi
25822 eval "$ac_cv_have_x"
25823fi # $with_x != no
25824
25825if test "$have_x" != yes; then
25826 echo "$as_me:$LINENO: result: $have_x" >&5
25827echo "${ECHO_T}$have_x" >&6
25828 no_x=yes
25829else
25830 # If each of the values was on the command line, it overrides each guess.
25831 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25832 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25833 # Update the cache value to reflect the command line values.
25834 ac_cv_have_x="have_x=yes \
25835 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
07158944
VZ
25836 # It might be that x_includes is empty (headers are found in the
25837 # standard search path. Then output the corresponding message
25838 ac_out_x_includes=$x_includes
25839 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
25840 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
25841echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
25842fi
25843
07158944 25844fi
a848cd7e
SC
25845if test "$no_x" = yes; then
25846 # Not all programs may use this symbol, but it does not hurt to define it.
25847
25848cat >>confdefs.h <<\_ACEOF
25849#define X_DISPLAY_MISSING 1
25850_ACEOF
25851
25852 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25853else
25854 if test -n "$x_includes"; then
25855 X_CFLAGS="$X_CFLAGS -I$x_includes"
25856 fi
25857
25858 # It would also be nice to do this for all -L options, not just this one.
25859 if test -n "$x_libraries"; then
25860 X_LIBS="$X_LIBS -L$x_libraries"
25861 # For Solaris; some versions of Sun CC require a space after -R and
25862 # others require no space. Words are not sufficient . . . .
25863 case `(uname -sr) 2>/dev/null` in
25864 "SunOS 5"*)
25865 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
25866echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
25867 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25868 cat >conftest.$ac_ext <<_ACEOF
25869/* confdefs.h. */
25870_ACEOF
25871cat confdefs.h >>conftest.$ac_ext
25872cat >>conftest.$ac_ext <<_ACEOF
25873/* end confdefs.h. */
25874
25875int
25876main ()
25877{
25878
25879 ;
25880 return 0;
25881}
25882_ACEOF
25883rm -f conftest.$ac_objext conftest$ac_exeext
25884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25885 (eval $ac_link) 2>conftest.er1
a848cd7e 25886 ac_status=$?
ac1cb8d3
VS
25887 grep -v '^ *+' conftest.er1 >conftest.err
25888 rm -f conftest.er1
25889 cat conftest.err >&5
a848cd7e
SC
25890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25891 (exit $ac_status); } &&
07158944 25892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25894 (eval $ac_try) 2>&5
25895 ac_status=$?
25896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25897 (exit $ac_status); }; } &&
25898 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25900 (eval $ac_try) 2>&5
25901 ac_status=$?
25902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25903 (exit $ac_status); }; }; then
25904 ac_R_nospace=yes
25905else
25906 echo "$as_me: failed program was:" >&5
25907sed 's/^/| /' conftest.$ac_ext >&5
25908
25909ac_R_nospace=no
25910fi
ac1cb8d3
VS
25911rm -f conftest.err conftest.$ac_objext \
25912 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25913 if test $ac_R_nospace = yes; then
25914 echo "$as_me:$LINENO: result: no" >&5
25915echo "${ECHO_T}no" >&6
25916 X_LIBS="$X_LIBS -R$x_libraries"
25917 else
25918 LIBS="$ac_xsave_LIBS -R $x_libraries"
25919 cat >conftest.$ac_ext <<_ACEOF
25920/* confdefs.h. */
25921_ACEOF
25922cat confdefs.h >>conftest.$ac_ext
25923cat >>conftest.$ac_ext <<_ACEOF
25924/* end confdefs.h. */
25925
25926int
25927main ()
25928{
25929
25930 ;
25931 return 0;
25932}
25933_ACEOF
25934rm -f conftest.$ac_objext conftest$ac_exeext
25935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25936 (eval $ac_link) 2>conftest.er1
a848cd7e 25937 ac_status=$?
ac1cb8d3
VS
25938 grep -v '^ *+' conftest.er1 >conftest.err
25939 rm -f conftest.er1
25940 cat conftest.err >&5
a848cd7e
SC
25941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25942 (exit $ac_status); } &&
07158944 25943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25945 (eval $ac_try) 2>&5
25946 ac_status=$?
25947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25948 (exit $ac_status); }; } &&
25949 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25951 (eval $ac_try) 2>&5
25952 ac_status=$?
25953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25954 (exit $ac_status); }; }; then
25955 ac_R_space=yes
25956else
25957 echo "$as_me: failed program was:" >&5
25958sed 's/^/| /' conftest.$ac_ext >&5
25959
25960ac_R_space=no
25961fi
ac1cb8d3
VS
25962rm -f conftest.err conftest.$ac_objext \
25963 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25964 if test $ac_R_space = yes; then
25965 echo "$as_me:$LINENO: result: yes" >&5
25966echo "${ECHO_T}yes" >&6
25967 X_LIBS="$X_LIBS -R $x_libraries"
25968 else
25969 echo "$as_me:$LINENO: result: neither works" >&5
25970echo "${ECHO_T}neither works" >&6
25971 fi
25972 fi
25973 LIBS=$ac_xsave_LIBS
25974 esac
25975 fi
25976
25977 # Check for system-dependent libraries X programs must link with.
25978 # Do this before checking for the system-independent R6 libraries
25979 # (-lICE), since we may need -lsocket or whatever for X linking.
25980
25981 if test "$ISC" = yes; then
25982 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25983 else
25984 # Martyn Johnson says this is needed for Ultrix, if the X
25985 # libraries were built with DECnet support. And Karl Berry says
25986 # the Alpha needs dnet_stub (dnet does not exist).
25987 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25988 cat >conftest.$ac_ext <<_ACEOF
25989/* confdefs.h. */
25990_ACEOF
25991cat confdefs.h >>conftest.$ac_ext
25992cat >>conftest.$ac_ext <<_ACEOF
25993/* end confdefs.h. */
25994
25995/* Override any gcc2 internal prototype to avoid an error. */
25996#ifdef __cplusplus
25997extern "C"
25998#endif
25999/* We use char because int might match the return type of a gcc2
26000 builtin and then its argument prototype would still apply. */
26001char XOpenDisplay ();
26002int
26003main ()
26004{
26005XOpenDisplay ();
26006 ;
26007 return 0;
26008}
26009_ACEOF
26010rm -f conftest.$ac_objext conftest$ac_exeext
26011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26012 (eval $ac_link) 2>conftest.er1
a848cd7e 26013 ac_status=$?
ac1cb8d3
VS
26014 grep -v '^ *+' conftest.er1 >conftest.err
26015 rm -f conftest.er1
26016 cat conftest.err >&5
a848cd7e
SC
26017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26018 (exit $ac_status); } &&
07158944 26019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26021 (eval $ac_try) 2>&5
26022 ac_status=$?
26023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26024 (exit $ac_status); }; } &&
26025 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26027 (eval $ac_try) 2>&5
26028 ac_status=$?
26029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030 (exit $ac_status); }; }; then
26031 :
26032else
26033 echo "$as_me: failed program was:" >&5
26034sed 's/^/| /' conftest.$ac_ext >&5
26035
26036echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
26037echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
26038if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
26039 echo $ECHO_N "(cached) $ECHO_C" >&6
26040else
26041 ac_check_lib_save_LIBS=$LIBS
26042LIBS="-ldnet $LIBS"
26043cat >conftest.$ac_ext <<_ACEOF
26044/* confdefs.h. */
26045_ACEOF
26046cat confdefs.h >>conftest.$ac_ext
26047cat >>conftest.$ac_ext <<_ACEOF
26048/* end confdefs.h. */
26049
26050/* Override any gcc2 internal prototype to avoid an error. */
26051#ifdef __cplusplus
26052extern "C"
26053#endif
26054/* We use char because int might match the return type of a gcc2
26055 builtin and then its argument prototype would still apply. */
26056char dnet_ntoa ();
26057int
26058main ()
26059{
26060dnet_ntoa ();
26061 ;
26062 return 0;
26063}
26064_ACEOF
26065rm -f conftest.$ac_objext conftest$ac_exeext
26066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26067 (eval $ac_link) 2>conftest.er1
a848cd7e 26068 ac_status=$?
ac1cb8d3
VS
26069 grep -v '^ *+' conftest.er1 >conftest.err
26070 rm -f conftest.er1
26071 cat conftest.err >&5
a848cd7e
SC
26072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26073 (exit $ac_status); } &&
07158944 26074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26076 (eval $ac_try) 2>&5
26077 ac_status=$?
26078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079 (exit $ac_status); }; } &&
26080 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26082 (eval $ac_try) 2>&5
26083 ac_status=$?
26084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26085 (exit $ac_status); }; }; then
26086 ac_cv_lib_dnet_dnet_ntoa=yes
26087else
26088 echo "$as_me: failed program was:" >&5
26089sed 's/^/| /' conftest.$ac_ext >&5
26090
26091ac_cv_lib_dnet_dnet_ntoa=no
26092fi
ac1cb8d3
VS
26093rm -f conftest.err conftest.$ac_objext \
26094 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26095LIBS=$ac_check_lib_save_LIBS
26096fi
26097echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26098echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
26099if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
26100 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26101fi
26102
26103 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26104 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
26105echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
26106if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
26107 echo $ECHO_N "(cached) $ECHO_C" >&6
26108else
26109 ac_check_lib_save_LIBS=$LIBS
26110LIBS="-ldnet_stub $LIBS"
26111cat >conftest.$ac_ext <<_ACEOF
26112/* confdefs.h. */
26113_ACEOF
26114cat confdefs.h >>conftest.$ac_ext
26115cat >>conftest.$ac_ext <<_ACEOF
26116/* end confdefs.h. */
26117
26118/* Override any gcc2 internal prototype to avoid an error. */
26119#ifdef __cplusplus
26120extern "C"
26121#endif
26122/* We use char because int might match the return type of a gcc2
26123 builtin and then its argument prototype would still apply. */
26124char dnet_ntoa ();
26125int
26126main ()
26127{
26128dnet_ntoa ();
26129 ;
26130 return 0;
26131}
26132_ACEOF
26133rm -f conftest.$ac_objext conftest$ac_exeext
26134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26135 (eval $ac_link) 2>conftest.er1
a848cd7e 26136 ac_status=$?
ac1cb8d3
VS
26137 grep -v '^ *+' conftest.er1 >conftest.err
26138 rm -f conftest.er1
26139 cat conftest.err >&5
a848cd7e
SC
26140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26141 (exit $ac_status); } &&
07158944 26142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26144 (eval $ac_try) 2>&5
26145 ac_status=$?
26146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26147 (exit $ac_status); }; } &&
26148 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26150 (eval $ac_try) 2>&5
26151 ac_status=$?
26152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26153 (exit $ac_status); }; }; then
26154 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26155else
26156 echo "$as_me: failed program was:" >&5
26157sed 's/^/| /' conftest.$ac_ext >&5
26158
26159ac_cv_lib_dnet_stub_dnet_ntoa=no
26160fi
ac1cb8d3
VS
26161rm -f conftest.err conftest.$ac_objext \
26162 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26163LIBS=$ac_check_lib_save_LIBS
26164fi
26165echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26166echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
26167if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
26168 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26169fi
26170
26171 fi
26172fi
ac1cb8d3
VS
26173rm -f conftest.err conftest.$ac_objext \
26174 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26175 LIBS="$ac_xsave_LIBS"
26176
26177 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26178 # to get the SysV transport functions.
26179 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26180 # needs -lnsl.
26181 # The nsl library prevents programs from opening the X display
26182 # on Irix 5.2, according to T.E. Dickey.
26183 # The functions gethostbyname, getservbyname, and inet_addr are
26184 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26185 echo "$as_me:$LINENO: checking for gethostbyname" >&5
26186echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
26187if test "${ac_cv_func_gethostbyname+set}" = set; then
26188 echo $ECHO_N "(cached) $ECHO_C" >&6
26189else
26190 cat >conftest.$ac_ext <<_ACEOF
26191/* confdefs.h. */
26192_ACEOF
26193cat confdefs.h >>conftest.$ac_ext
26194cat >>conftest.$ac_ext <<_ACEOF
26195/* end confdefs.h. */
ac1cb8d3
VS
26196/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
26197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26198#define gethostbyname innocuous_gethostbyname
26199
a848cd7e
SC
26200/* System header to define __stub macros and hopefully few prototypes,
26201 which can conflict with char gethostbyname (); below.
26202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26203 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26204
a848cd7e
SC
26205#ifdef __STDC__
26206# include <limits.h>
26207#else
26208# include <assert.h>
26209#endif
ac1cb8d3
VS
26210
26211#undef gethostbyname
26212
a848cd7e
SC
26213/* Override any gcc2 internal prototype to avoid an error. */
26214#ifdef __cplusplus
26215extern "C"
26216{
26217#endif
26218/* We use char because int might match the return type of a gcc2
26219 builtin and then its argument prototype would still apply. */
26220char gethostbyname ();
26221/* The GNU C library defines this for functions which it implements
26222 to always fail with ENOSYS. Some functions are actually named
26223 something starting with __ and the normal name is an alias. */
26224#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
26225choke me
26226#else
26227char (*f) () = gethostbyname;
26228#endif
26229#ifdef __cplusplus
26230}
26231#endif
26232
26233int
26234main ()
26235{
26236return f != gethostbyname;
26237 ;
26238 return 0;
26239}
26240_ACEOF
26241rm -f conftest.$ac_objext conftest$ac_exeext
26242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26243 (eval $ac_link) 2>conftest.er1
a848cd7e 26244 ac_status=$?
ac1cb8d3
VS
26245 grep -v '^ *+' conftest.er1 >conftest.err
26246 rm -f conftest.er1
26247 cat conftest.err >&5
a848cd7e
SC
26248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26249 (exit $ac_status); } &&
07158944 26250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26252 (eval $ac_try) 2>&5
26253 ac_status=$?
26254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26255 (exit $ac_status); }; } &&
26256 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26258 (eval $ac_try) 2>&5
26259 ac_status=$?
26260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26261 (exit $ac_status); }; }; then
26262 ac_cv_func_gethostbyname=yes
26263else
26264 echo "$as_me: failed program was:" >&5
26265sed 's/^/| /' conftest.$ac_ext >&5
26266
26267ac_cv_func_gethostbyname=no
26268fi
ac1cb8d3
VS
26269rm -f conftest.err conftest.$ac_objext \
26270 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26271fi
26272echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
26273echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
26274
26275 if test $ac_cv_func_gethostbyname = no; then
26276 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
26277echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
26278if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
26279 echo $ECHO_N "(cached) $ECHO_C" >&6
26280else
26281 ac_check_lib_save_LIBS=$LIBS
26282LIBS="-lnsl $LIBS"
26283cat >conftest.$ac_ext <<_ACEOF
26284/* confdefs.h. */
26285_ACEOF
26286cat confdefs.h >>conftest.$ac_ext
26287cat >>conftest.$ac_ext <<_ACEOF
26288/* end confdefs.h. */
26289
26290/* Override any gcc2 internal prototype to avoid an error. */
26291#ifdef __cplusplus
26292extern "C"
26293#endif
26294/* We use char because int might match the return type of a gcc2
26295 builtin and then its argument prototype would still apply. */
26296char gethostbyname ();
26297int
26298main ()
26299{
26300gethostbyname ();
26301 ;
26302 return 0;
26303}
26304_ACEOF
26305rm -f conftest.$ac_objext conftest$ac_exeext
26306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
26307 (eval $ac_link) 2>conftest.er1
26308 ac_status=$?
26309 grep -v '^ *+' conftest.er1 >conftest.err
26310 rm -f conftest.er1
26311 cat conftest.err >&5
26312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26313 (exit $ac_status); } &&
07158944 26314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26316 (eval $ac_try) 2>&5
26317 ac_status=$?
26318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26319 (exit $ac_status); }; } &&
26320 { ac_try='test -s conftest$ac_exeext'
26321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26322 (eval $ac_try) 2>&5
26323 ac_status=$?
26324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26325 (exit $ac_status); }; }; then
26326 ac_cv_lib_nsl_gethostbyname=yes
26327else
26328 echo "$as_me: failed program was:" >&5
26329sed 's/^/| /' conftest.$ac_ext >&5
26330
26331ac_cv_lib_nsl_gethostbyname=no
26332fi
26333rm -f conftest.err conftest.$ac_objext \
26334 conftest$ac_exeext conftest.$ac_ext
26335LIBS=$ac_check_lib_save_LIBS
26336fi
26337echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
26338echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
26339if test $ac_cv_lib_nsl_gethostbyname = yes; then
26340 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26341fi
26342
26343 if test $ac_cv_lib_nsl_gethostbyname = no; then
26344 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
26345echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
26346if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
26347 echo $ECHO_N "(cached) $ECHO_C" >&6
26348else
26349 ac_check_lib_save_LIBS=$LIBS
26350LIBS="-lbsd $LIBS"
26351cat >conftest.$ac_ext <<_ACEOF
26352/* confdefs.h. */
26353_ACEOF
26354cat confdefs.h >>conftest.$ac_ext
26355cat >>conftest.$ac_ext <<_ACEOF
26356/* end confdefs.h. */
26357
26358/* Override any gcc2 internal prototype to avoid an error. */
26359#ifdef __cplusplus
26360extern "C"
26361#endif
26362/* We use char because int might match the return type of a gcc2
26363 builtin and then its argument prototype would still apply. */
26364char gethostbyname ();
26365int
26366main ()
26367{
26368gethostbyname ();
26369 ;
26370 return 0;
26371}
26372_ACEOF
26373rm -f conftest.$ac_objext conftest$ac_exeext
26374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26375 (eval $ac_link) 2>conftest.er1
a848cd7e 26376 ac_status=$?
ac1cb8d3
VS
26377 grep -v '^ *+' conftest.er1 >conftest.err
26378 rm -f conftest.er1
26379 cat conftest.err >&5
a848cd7e
SC
26380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26381 (exit $ac_status); } &&
07158944 26382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
26383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26384 (eval $ac_try) 2>&5
26385 ac_status=$?
26386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
26387 (exit $ac_status); }; } &&
26388 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26390 (eval $ac_try) 2>&5
26391 ac_status=$?
26392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26393 (exit $ac_status); }; }; then
26394 ac_cv_lib_bsd_gethostbyname=yes
26395else
26396 echo "$as_me: failed program was:" >&5
26397sed 's/^/| /' conftest.$ac_ext >&5
26398
26399ac_cv_lib_bsd_gethostbyname=no
26400fi
ac1cb8d3
VS
26401rm -f conftest.err conftest.$ac_objext \
26402 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26403LIBS=$ac_check_lib_save_LIBS
26404fi
26405echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
26406echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
26407if test $ac_cv_lib_bsd_gethostbyname = yes; then
26408 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26409fi
26410
26411 fi
26412 fi
26413
26414 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26415 # socket/setsockopt and other routines are undefined under SCO ODT
26416 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26417 # on later versions), says Simon Leinen: it contains gethostby*
26418 # variants that don't use the name server (or something). -lsocket
26419 # must be given before -lnsl if both are needed. We assume that
26420 # if connect needs -lnsl, so does gethostbyname.
26421 echo "$as_me:$LINENO: checking for connect" >&5
26422echo $ECHO_N "checking for connect... $ECHO_C" >&6
26423if test "${ac_cv_func_connect+set}" = set; then
26424 echo $ECHO_N "(cached) $ECHO_C" >&6
26425else
26426 cat >conftest.$ac_ext <<_ACEOF
26427/* confdefs.h. */
26428_ACEOF
26429cat confdefs.h >>conftest.$ac_ext
26430cat >>conftest.$ac_ext <<_ACEOF
26431/* end confdefs.h. */
ac1cb8d3
VS
26432/* Define connect to an innocuous variant, in case <limits.h> declares connect.
26433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26434#define connect innocuous_connect
26435
a848cd7e
SC
26436/* System header to define __stub macros and hopefully few prototypes,
26437 which can conflict with char connect (); below.
26438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26439 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26440
a848cd7e
SC
26441#ifdef __STDC__
26442# include <limits.h>
26443#else
26444# include <assert.h>
26445#endif
ac1cb8d3
VS
26446
26447#undef connect
26448
a848cd7e
SC
26449/* Override any gcc2 internal prototype to avoid an error. */
26450#ifdef __cplusplus
26451extern "C"
26452{
26453#endif
26454/* We use char because int might match the return type of a gcc2
26455 builtin and then its argument prototype would still apply. */
26456char connect ();
26457/* The GNU C library defines this for functions which it implements
26458 to always fail with ENOSYS. Some functions are actually named
26459 something starting with __ and the normal name is an alias. */
26460#if defined (__stub_connect) || defined (__stub___connect)
26461choke me
26462#else
26463char (*f) () = connect;
26464#endif
26465#ifdef __cplusplus
26466}
26467#endif
26468
26469int
26470main ()
26471{
26472return f != connect;
26473 ;
26474 return 0;
26475}
26476_ACEOF
26477rm -f conftest.$ac_objext conftest$ac_exeext
26478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26479 (eval $ac_link) 2>conftest.er1
a848cd7e 26480 ac_status=$?
ac1cb8d3
VS
26481 grep -v '^ *+' conftest.er1 >conftest.err
26482 rm -f conftest.er1
26483 cat conftest.err >&5
a848cd7e
SC
26484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26485 (exit $ac_status); } &&
07158944 26486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26488 (eval $ac_try) 2>&5
26489 ac_status=$?
26490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26491 (exit $ac_status); }; } &&
26492 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26494 (eval $ac_try) 2>&5
26495 ac_status=$?
26496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26497 (exit $ac_status); }; }; then
26498 ac_cv_func_connect=yes
26499else
26500 echo "$as_me: failed program was:" >&5
26501sed 's/^/| /' conftest.$ac_ext >&5
26502
26503ac_cv_func_connect=no
26504fi
ac1cb8d3
VS
26505rm -f conftest.err conftest.$ac_objext \
26506 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26507fi
26508echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
26509echo "${ECHO_T}$ac_cv_func_connect" >&6
26510
26511 if test $ac_cv_func_connect = no; then
26512 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
26513echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
26514if test "${ac_cv_lib_socket_connect+set}" = set; then
26515 echo $ECHO_N "(cached) $ECHO_C" >&6
26516else
26517 ac_check_lib_save_LIBS=$LIBS
26518LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
26519cat >conftest.$ac_ext <<_ACEOF
26520/* confdefs.h. */
26521_ACEOF
26522cat confdefs.h >>conftest.$ac_ext
26523cat >>conftest.$ac_ext <<_ACEOF
26524/* end confdefs.h. */
26525
26526/* Override any gcc2 internal prototype to avoid an error. */
26527#ifdef __cplusplus
26528extern "C"
26529#endif
26530/* We use char because int might match the return type of a gcc2
26531 builtin and then its argument prototype would still apply. */
26532char connect ();
26533int
26534main ()
26535{
26536connect ();
26537 ;
26538 return 0;
26539}
26540_ACEOF
26541rm -f conftest.$ac_objext conftest$ac_exeext
26542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26543 (eval $ac_link) 2>conftest.er1
a848cd7e 26544 ac_status=$?
ac1cb8d3
VS
26545 grep -v '^ *+' conftest.er1 >conftest.err
26546 rm -f conftest.er1
26547 cat conftest.err >&5
a848cd7e
SC
26548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26549 (exit $ac_status); } &&
07158944 26550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26552 (eval $ac_try) 2>&5
26553 ac_status=$?
26554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26555 (exit $ac_status); }; } &&
26556 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26558 (eval $ac_try) 2>&5
26559 ac_status=$?
26560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26561 (exit $ac_status); }; }; then
26562 ac_cv_lib_socket_connect=yes
26563else
26564 echo "$as_me: failed program was:" >&5
26565sed 's/^/| /' conftest.$ac_ext >&5
26566
26567ac_cv_lib_socket_connect=no
26568fi
ac1cb8d3
VS
26569rm -f conftest.err conftest.$ac_objext \
26570 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26571LIBS=$ac_check_lib_save_LIBS
26572fi
26573echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
26574echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
26575if test $ac_cv_lib_socket_connect = yes; then
26576 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26577fi
26578
26579 fi
26580
26581 # Guillermo Gomez says -lposix is necessary on A/UX.
26582 echo "$as_me:$LINENO: checking for remove" >&5
26583echo $ECHO_N "checking for remove... $ECHO_C" >&6
26584if test "${ac_cv_func_remove+set}" = set; then
26585 echo $ECHO_N "(cached) $ECHO_C" >&6
26586else
26587 cat >conftest.$ac_ext <<_ACEOF
26588/* confdefs.h. */
26589_ACEOF
26590cat confdefs.h >>conftest.$ac_ext
26591cat >>conftest.$ac_ext <<_ACEOF
26592/* end confdefs.h. */
ac1cb8d3
VS
26593/* Define remove to an innocuous variant, in case <limits.h> declares remove.
26594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26595#define remove innocuous_remove
26596
a848cd7e
SC
26597/* System header to define __stub macros and hopefully few prototypes,
26598 which can conflict with char remove (); below.
26599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26600 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26601
a848cd7e
SC
26602#ifdef __STDC__
26603# include <limits.h>
26604#else
26605# include <assert.h>
26606#endif
ac1cb8d3
VS
26607
26608#undef remove
26609
a848cd7e
SC
26610/* Override any gcc2 internal prototype to avoid an error. */
26611#ifdef __cplusplus
26612extern "C"
26613{
26614#endif
26615/* We use char because int might match the return type of a gcc2
26616 builtin and then its argument prototype would still apply. */
26617char remove ();
26618/* The GNU C library defines this for functions which it implements
26619 to always fail with ENOSYS. Some functions are actually named
26620 something starting with __ and the normal name is an alias. */
26621#if defined (__stub_remove) || defined (__stub___remove)
26622choke me
26623#else
26624char (*f) () = remove;
26625#endif
26626#ifdef __cplusplus
26627}
26628#endif
26629
26630int
26631main ()
26632{
26633return f != remove;
26634 ;
26635 return 0;
26636}
26637_ACEOF
26638rm -f conftest.$ac_objext conftest$ac_exeext
26639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26640 (eval $ac_link) 2>conftest.er1
a848cd7e 26641 ac_status=$?
ac1cb8d3
VS
26642 grep -v '^ *+' conftest.er1 >conftest.err
26643 rm -f conftest.er1
26644 cat conftest.err >&5
a848cd7e
SC
26645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26646 (exit $ac_status); } &&
07158944 26647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26649 (eval $ac_try) 2>&5
26650 ac_status=$?
26651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26652 (exit $ac_status); }; } &&
26653 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26655 (eval $ac_try) 2>&5
26656 ac_status=$?
26657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26658 (exit $ac_status); }; }; then
26659 ac_cv_func_remove=yes
26660else
26661 echo "$as_me: failed program was:" >&5
26662sed 's/^/| /' conftest.$ac_ext >&5
26663
26664ac_cv_func_remove=no
26665fi
ac1cb8d3
VS
26666rm -f conftest.err conftest.$ac_objext \
26667 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26668fi
26669echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
26670echo "${ECHO_T}$ac_cv_func_remove" >&6
26671
26672 if test $ac_cv_func_remove = no; then
26673 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
26674echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
26675if test "${ac_cv_lib_posix_remove+set}" = set; then
26676 echo $ECHO_N "(cached) $ECHO_C" >&6
26677else
26678 ac_check_lib_save_LIBS=$LIBS
26679LIBS="-lposix $LIBS"
26680cat >conftest.$ac_ext <<_ACEOF
26681/* confdefs.h. */
26682_ACEOF
26683cat confdefs.h >>conftest.$ac_ext
26684cat >>conftest.$ac_ext <<_ACEOF
26685/* end confdefs.h. */
26686
26687/* Override any gcc2 internal prototype to avoid an error. */
26688#ifdef __cplusplus
26689extern "C"
26690#endif
26691/* We use char because int might match the return type of a gcc2
26692 builtin and then its argument prototype would still apply. */
26693char remove ();
26694int
26695main ()
26696{
26697remove ();
26698 ;
26699 return 0;
26700}
26701_ACEOF
26702rm -f conftest.$ac_objext conftest$ac_exeext
26703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26704 (eval $ac_link) 2>conftest.er1
a848cd7e 26705 ac_status=$?
ac1cb8d3
VS
26706 grep -v '^ *+' conftest.er1 >conftest.err
26707 rm -f conftest.er1
26708 cat conftest.err >&5
a848cd7e
SC
26709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26710 (exit $ac_status); } &&
07158944 26711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26713 (eval $ac_try) 2>&5
26714 ac_status=$?
26715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26716 (exit $ac_status); }; } &&
26717 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26719 (eval $ac_try) 2>&5
26720 ac_status=$?
26721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26722 (exit $ac_status); }; }; then
26723 ac_cv_lib_posix_remove=yes
26724else
26725 echo "$as_me: failed program was:" >&5
26726sed 's/^/| /' conftest.$ac_ext >&5
26727
26728ac_cv_lib_posix_remove=no
26729fi
ac1cb8d3
VS
26730rm -f conftest.err conftest.$ac_objext \
26731 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26732LIBS=$ac_check_lib_save_LIBS
26733fi
26734echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
26735echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
26736if test $ac_cv_lib_posix_remove = yes; then
26737 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
26738fi
26739
26740 fi
26741
26742 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
26743 echo "$as_me:$LINENO: checking for shmat" >&5
26744echo $ECHO_N "checking for shmat... $ECHO_C" >&6
26745if test "${ac_cv_func_shmat+set}" = set; then
26746 echo $ECHO_N "(cached) $ECHO_C" >&6
26747else
26748 cat >conftest.$ac_ext <<_ACEOF
26749/* confdefs.h. */
26750_ACEOF
26751cat confdefs.h >>conftest.$ac_ext
26752cat >>conftest.$ac_ext <<_ACEOF
26753/* end confdefs.h. */
ac1cb8d3
VS
26754/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
26755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26756#define shmat innocuous_shmat
26757
a848cd7e
SC
26758/* System header to define __stub macros and hopefully few prototypes,
26759 which can conflict with char shmat (); below.
26760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26761 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26762
a848cd7e
SC
26763#ifdef __STDC__
26764# include <limits.h>
26765#else
26766# include <assert.h>
26767#endif
ac1cb8d3
VS
26768
26769#undef shmat
26770
a848cd7e
SC
26771/* Override any gcc2 internal prototype to avoid an error. */
26772#ifdef __cplusplus
26773extern "C"
26774{
26775#endif
26776/* We use char because int might match the return type of a gcc2
26777 builtin and then its argument prototype would still apply. */
26778char shmat ();
26779/* The GNU C library defines this for functions which it implements
26780 to always fail with ENOSYS. Some functions are actually named
26781 something starting with __ and the normal name is an alias. */
26782#if defined (__stub_shmat) || defined (__stub___shmat)
26783choke me
26784#else
26785char (*f) () = shmat;
26786#endif
26787#ifdef __cplusplus
26788}
26789#endif
26790
26791int
26792main ()
26793{
26794return f != shmat;
26795 ;
26796 return 0;
26797}
26798_ACEOF
26799rm -f conftest.$ac_objext conftest$ac_exeext
26800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26801 (eval $ac_link) 2>conftest.er1
a848cd7e 26802 ac_status=$?
ac1cb8d3
VS
26803 grep -v '^ *+' conftest.er1 >conftest.err
26804 rm -f conftest.er1
26805 cat conftest.err >&5
a848cd7e
SC
26806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26807 (exit $ac_status); } &&
07158944 26808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26810 (eval $ac_try) 2>&5
26811 ac_status=$?
26812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26813 (exit $ac_status); }; } &&
26814 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26816 (eval $ac_try) 2>&5
26817 ac_status=$?
26818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26819 (exit $ac_status); }; }; then
26820 ac_cv_func_shmat=yes
26821else
26822 echo "$as_me: failed program was:" >&5
26823sed 's/^/| /' conftest.$ac_ext >&5
26824
26825ac_cv_func_shmat=no
26826fi
ac1cb8d3
VS
26827rm -f conftest.err conftest.$ac_objext \
26828 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26829fi
26830echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
26831echo "${ECHO_T}$ac_cv_func_shmat" >&6
26832
26833 if test $ac_cv_func_shmat = no; then
26834 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
26835echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
26836if test "${ac_cv_lib_ipc_shmat+set}" = set; then
26837 echo $ECHO_N "(cached) $ECHO_C" >&6
26838else
26839 ac_check_lib_save_LIBS=$LIBS
26840LIBS="-lipc $LIBS"
26841cat >conftest.$ac_ext <<_ACEOF
26842/* confdefs.h. */
26843_ACEOF
26844cat confdefs.h >>conftest.$ac_ext
26845cat >>conftest.$ac_ext <<_ACEOF
26846/* end confdefs.h. */
26847
26848/* Override any gcc2 internal prototype to avoid an error. */
26849#ifdef __cplusplus
26850extern "C"
26851#endif
26852/* We use char because int might match the return type of a gcc2
26853 builtin and then its argument prototype would still apply. */
26854char shmat ();
26855int
26856main ()
26857{
26858shmat ();
26859 ;
26860 return 0;
26861}
26862_ACEOF
26863rm -f conftest.$ac_objext conftest$ac_exeext
26864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26865 (eval $ac_link) 2>conftest.er1
a848cd7e 26866 ac_status=$?
ac1cb8d3
VS
26867 grep -v '^ *+' conftest.er1 >conftest.err
26868 rm -f conftest.er1
26869 cat conftest.err >&5
a848cd7e
SC
26870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26871 (exit $ac_status); } &&
07158944 26872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26874 (eval $ac_try) 2>&5
26875 ac_status=$?
26876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26877 (exit $ac_status); }; } &&
26878 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26880 (eval $ac_try) 2>&5
26881 ac_status=$?
26882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26883 (exit $ac_status); }; }; then
26884 ac_cv_lib_ipc_shmat=yes
26885else
26886 echo "$as_me: failed program was:" >&5
26887sed 's/^/| /' conftest.$ac_ext >&5
26888
26889ac_cv_lib_ipc_shmat=no
26890fi
ac1cb8d3
VS
26891rm -f conftest.err conftest.$ac_objext \
26892 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26893LIBS=$ac_check_lib_save_LIBS
26894fi
26895echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
26896echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
26897if test $ac_cv_lib_ipc_shmat = yes; then
26898 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
26899fi
26900
26901 fi
26902 fi
26903
26904 # Check for libraries that X11R6 Xt/Xaw programs need.
26905 ac_save_LDFLAGS=$LDFLAGS
26906 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
26907 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
26908 # check for ICE first), but we must link in the order -lSM -lICE or
26909 # we get undefined symbols. So assume we have SM if we have ICE.
26910 # These have to be linked with before -lX11, unlike the other
26911 # libraries we check for below, so use a different variable.
26912 # John Interrante, Karl Berry
26913 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
26914echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
26915if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
26916 echo $ECHO_N "(cached) $ECHO_C" >&6
26917else
26918 ac_check_lib_save_LIBS=$LIBS
26919LIBS="-lICE $X_EXTRA_LIBS $LIBS"
26920cat >conftest.$ac_ext <<_ACEOF
26921/* confdefs.h. */
26922_ACEOF
26923cat confdefs.h >>conftest.$ac_ext
26924cat >>conftest.$ac_ext <<_ACEOF
26925/* end confdefs.h. */
26926
26927/* Override any gcc2 internal prototype to avoid an error. */
26928#ifdef __cplusplus
26929extern "C"
26930#endif
26931/* We use char because int might match the return type of a gcc2
26932 builtin and then its argument prototype would still apply. */
26933char IceConnectionNumber ();
26934int
26935main ()
26936{
26937IceConnectionNumber ();
26938 ;
26939 return 0;
26940}
26941_ACEOF
26942rm -f conftest.$ac_objext conftest$ac_exeext
26943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26944 (eval $ac_link) 2>conftest.er1
a848cd7e 26945 ac_status=$?
ac1cb8d3
VS
26946 grep -v '^ *+' conftest.er1 >conftest.err
26947 rm -f conftest.er1
26948 cat conftest.err >&5
a848cd7e
SC
26949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26950 (exit $ac_status); } &&
07158944 26951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26953 (eval $ac_try) 2>&5
26954 ac_status=$?
26955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26956 (exit $ac_status); }; } &&
26957 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26959 (eval $ac_try) 2>&5
26960 ac_status=$?
26961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26962 (exit $ac_status); }; }; then
26963 ac_cv_lib_ICE_IceConnectionNumber=yes
26964else
26965 echo "$as_me: failed program was:" >&5
26966sed 's/^/| /' conftest.$ac_ext >&5
26967
26968ac_cv_lib_ICE_IceConnectionNumber=no
26969fi
ac1cb8d3
VS
26970rm -f conftest.err conftest.$ac_objext \
26971 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26972LIBS=$ac_check_lib_save_LIBS
26973fi
26974echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
26975echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
26976if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
26977 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
26978fi
26979
26980 LDFLAGS=$ac_save_LDFLAGS
26981
26982fi
26983
26984
26985 if test "$no_x" = "yes"; then
26986 { { echo "$as_me:$LINENO: error: X11 not found" >&5
26987echo "$as_me: error: X11 not found" >&2;}
26988 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
26989 fi
26990
74b84332
VS
26991 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
26992 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
26993 AFMINSTALL=afminstall
26994 COMPILED_X_PROGRAM=0
26995
74b84332
VS
26996 fi
26997
26998 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
26999 if test "$wxUSE_NANOX" = "yes"; then
27000 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
27001echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
27002 if test "x$MICROWIN" = x ; then
27003 echo "$as_me:$LINENO: result: not found" >&5
27004echo "${ECHO_T}not found" >&6
27005 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
27006echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
27007 { (exit 1); exit 1; }; }
27008 else
27009 echo "$as_me:$LINENO: result: $MICROWIN" >&5
27010echo "${ECHO_T}$MICROWIN" >&6
27011 cat >>confdefs.h <<\_ACEOF
27012#define wxUSE_NANOX 1
27013_ACEOF
27014
27015 fi
27016 fi
27017
27018 if test "$wxUSE_UNICODE" = "yes"; then
27019
27020 succeeded=no
27021
27022 if test -z "$PKG_CONFIG"; then
27023 # Extract the first word of "pkg-config", so it can be a program name with args.
27024set dummy pkg-config; ac_word=$2
27025echo "$as_me:$LINENO: checking for $ac_word" >&5
27026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27027if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27028 echo $ECHO_N "(cached) $ECHO_C" >&6
27029else
27030 case $PKG_CONFIG in
27031 [\\/]* | ?:[\\/]*)
27032 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27033 ;;
27034 *)
27035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27036for as_dir in $PATH
27037do
27038 IFS=$as_save_IFS
27039 test -z "$as_dir" && as_dir=.
27040 for ac_exec_ext in '' $ac_executable_extensions; do
27041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27042 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27044 break 2
27045 fi
27046done
27047done
27048
27049 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27050 ;;
27051esac
27052fi
27053PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27054
27055if test -n "$PKG_CONFIG"; then
27056 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27057echo "${ECHO_T}$PKG_CONFIG" >&6
27058else
27059 echo "$as_me:$LINENO: result: no" >&5
27060echo "${ECHO_T}no" >&6
27061fi
27062
27063 fi
27064
27065 if test "$PKG_CONFIG" = "no" ; then
27066 echo "*** The pkg-config script could not be found. Make sure it is"
27067 echo "*** in your path, or set the PKG_CONFIG environment variable"
27068 echo "*** to the full path to pkg-config."
27069 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27070 else
27071 PKG_CONFIG_MIN_VERSION=0.9.0
27072 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27073 echo "$as_me:$LINENO: checking for pangox" >&5
27074echo $ECHO_N "checking for pangox... $ECHO_C" >&6
27075
27076 if $PKG_CONFIG --exists "pangox" ; then
27077 echo "$as_me:$LINENO: result: yes" >&5
27078echo "${ECHO_T}yes" >&6
27079 succeeded=yes
27080
27081 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
27082echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
27083 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
27084 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
27085echo "${ECHO_T}$PANGOX_CFLAGS" >&6
27086
27087 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
27088echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
27089 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
27090 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
27091echo "${ECHO_T}$PANGOX_LIBS" >&6
27092 else
27093 PANGOX_CFLAGS=""
27094 PANGOX_LIBS=""
27095 ## If we have a custom action on failure, don't print errors, but
27096 ## do set a variable so people can do so.
27097 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
27098
27099 fi
27100
27101
27102
27103 else
27104 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27105 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27106 fi
27107 fi
27108
27109 if test $succeeded = yes; then
27110
27111 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
27112 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
27113
27114 else
27115
27116 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
27117echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
27118 { (exit 1); exit 1; }; }
27119
27120
27121 fi
27122
27123
27124 succeeded=no
27125
27126 if test -z "$PKG_CONFIG"; then
27127 # Extract the first word of "pkg-config", so it can be a program name with args.
27128set dummy pkg-config; ac_word=$2
27129echo "$as_me:$LINENO: checking for $ac_word" >&5
27130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27131if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27132 echo $ECHO_N "(cached) $ECHO_C" >&6
27133else
27134 case $PKG_CONFIG in
27135 [\\/]* | ?:[\\/]*)
27136 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27137 ;;
27138 *)
27139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27140for as_dir in $PATH
27141do
27142 IFS=$as_save_IFS
27143 test -z "$as_dir" && as_dir=.
27144 for ac_exec_ext in '' $ac_executable_extensions; do
27145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27146 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27148 break 2
27149 fi
27150done
27151done
27152
27153 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27154 ;;
27155esac
27156fi
27157PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27158
27159if test -n "$PKG_CONFIG"; then
27160 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27161echo "${ECHO_T}$PKG_CONFIG" >&6
27162else
27163 echo "$as_me:$LINENO: result: no" >&5
27164echo "${ECHO_T}no" >&6
27165fi
27166
27167 fi
27168
27169 if test "$PKG_CONFIG" = "no" ; then
27170 echo "*** The pkg-config script could not be found. Make sure it is"
27171 echo "*** in your path, or set the PKG_CONFIG environment variable"
27172 echo "*** to the full path to pkg-config."
27173 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27174 else
27175 PKG_CONFIG_MIN_VERSION=0.9.0
27176 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27177 echo "$as_me:$LINENO: checking for pangoft2" >&5
27178echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
27179
27180 if $PKG_CONFIG --exists "pangoft2" ; then
27181 echo "$as_me:$LINENO: result: yes" >&5
27182echo "${ECHO_T}yes" >&6
27183 succeeded=yes
27184
27185 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
27186echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
27187 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
27188 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
27189echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
27190
27191 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
27192echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
27193 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
27194 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
27195echo "${ECHO_T}$PANGOFT2_LIBS" >&6
27196 else
27197 PANGOFT2_CFLAGS=""
27198 PANGOFT2_LIBS=""
27199 ## If we have a custom action on failure, don't print errors, but
27200 ## do set a variable so people can do so.
27201 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
27202
27203 fi
27204
27205
27206
27207 else
27208 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27209 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27210 fi
27211 fi
27212
27213 if test $succeeded = yes; then
27214
27215 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
27216 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
27217
27218 else
27219
27220 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
27221echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
27222 wxUSE_PRINTING_ARCHITECTURE="no"
27223
27224
27225 fi
27226
27227
27228 succeeded=no
27229
27230 if test -z "$PKG_CONFIG"; then
27231 # Extract the first word of "pkg-config", so it can be a program name with args.
27232set dummy pkg-config; ac_word=$2
27233echo "$as_me:$LINENO: checking for $ac_word" >&5
27234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27235if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27236 echo $ECHO_N "(cached) $ECHO_C" >&6
27237else
27238 case $PKG_CONFIG in
27239 [\\/]* | ?:[\\/]*)
27240 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27241 ;;
27242 *)
27243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27244for as_dir in $PATH
27245do
27246 IFS=$as_save_IFS
27247 test -z "$as_dir" && as_dir=.
27248 for ac_exec_ext in '' $ac_executable_extensions; do
27249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27250 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27252 break 2
27253 fi
27254done
27255done
27256
27257 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27258 ;;
27259esac
27260fi
27261PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27262
27263if test -n "$PKG_CONFIG"; then
27264 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27265echo "${ECHO_T}$PKG_CONFIG" >&6
27266else
27267 echo "$as_me:$LINENO: result: no" >&5
27268echo "${ECHO_T}no" >&6
27269fi
27270
27271 fi
27272
27273 if test "$PKG_CONFIG" = "no" ; then
27274 echo "*** The pkg-config script could not be found. Make sure it is"
27275 echo "*** in your path, or set the PKG_CONFIG environment variable"
27276 echo "*** to the full path to pkg-config."
27277 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27278 else
27279 PKG_CONFIG_MIN_VERSION=0.9.0
27280 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27281 echo "$as_me:$LINENO: checking for pangoxft" >&5
27282echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
27283
27284 if $PKG_CONFIG --exists "pangoxft" ; then
27285 echo "$as_me:$LINENO: result: yes" >&5
27286echo "${ECHO_T}yes" >&6
27287 succeeded=yes
27288
27289 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
27290echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
27291 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
27292 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
27293echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
27294
27295 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
27296echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
27297 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
27298 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
27299echo "${ECHO_T}$PANGOXFT_LIBS" >&6
27300 else
27301 PANGOXFT_CFLAGS=""
27302 PANGOXFT_LIBS=""
27303 ## If we have a custom action on failure, don't print errors, but
27304 ## do set a variable so people can do so.
27305 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
27306
27307 fi
27308
27309
27310
27311 else
27312 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27313 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27314 fi
27315 fi
27316
27317 if test $succeeded = yes; then
27318
4ae1af05
MB
27319 cat >>confdefs.h <<\_ACEOF
27320#define HAVE_PANGO_XFT 1
27321_ACEOF
27322
a848cd7e
SC
27323 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
27324 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
27325
27326 else
27327
27328 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
27329echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
27330
27331
27332 fi
27333
304205f1
VS
27334 save_CFLAGS="$CFLAGS"
27335 save_LIBS="$LIBS"
27336 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
27337 LIBS="$LIBS $PANGOX_LIBS"
27338
27339for ac_func in pango_font_family_is_monospace
27340do
27341as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27342echo "$as_me:$LINENO: checking for $ac_func" >&5
27343echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27344if eval "test \"\${$as_ac_var+set}\" = set"; then
27345 echo $ECHO_N "(cached) $ECHO_C" >&6
27346else
27347 cat >conftest.$ac_ext <<_ACEOF
27348/* confdefs.h. */
27349_ACEOF
27350cat confdefs.h >>conftest.$ac_ext
27351cat >>conftest.$ac_ext <<_ACEOF
27352/* end confdefs.h. */
27353/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27355#define $ac_func innocuous_$ac_func
27356
27357/* System header to define __stub macros and hopefully few prototypes,
27358 which can conflict with char $ac_func (); below.
27359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27360 <limits.h> exists even on freestanding compilers. */
27361
27362#ifdef __STDC__
27363# include <limits.h>
27364#else
27365# include <assert.h>
27366#endif
27367
27368#undef $ac_func
27369
27370/* Override any gcc2 internal prototype to avoid an error. */
27371#ifdef __cplusplus
27372extern "C"
27373{
27374#endif
27375/* We use char because int might match the return type of a gcc2
27376 builtin and then its argument prototype would still apply. */
27377char $ac_func ();
27378/* The GNU C library defines this for functions which it implements
27379 to always fail with ENOSYS. Some functions are actually named
27380 something starting with __ and the normal name is an alias. */
27381#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27382choke me
27383#else
27384char (*f) () = $ac_func;
27385#endif
27386#ifdef __cplusplus
27387}
27388#endif
27389
27390int
27391main ()
27392{
27393return f != $ac_func;
27394 ;
27395 return 0;
27396}
27397_ACEOF
27398rm -f conftest.$ac_objext conftest$ac_exeext
27399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27400 (eval $ac_link) 2>conftest.er1
27401 ac_status=$?
27402 grep -v '^ *+' conftest.er1 >conftest.err
27403 rm -f conftest.er1
27404 cat conftest.err >&5
27405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27406 (exit $ac_status); } &&
07158944 27407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
27408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27409 (eval $ac_try) 2>&5
27410 ac_status=$?
27411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27412 (exit $ac_status); }; } &&
27413 { ac_try='test -s conftest$ac_exeext'
27414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27415 (eval $ac_try) 2>&5
27416 ac_status=$?
27417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27418 (exit $ac_status); }; }; then
27419 eval "$as_ac_var=yes"
27420else
27421 echo "$as_me: failed program was:" >&5
27422sed 's/^/| /' conftest.$ac_ext >&5
27423
27424eval "$as_ac_var=no"
27425fi
27426rm -f conftest.err conftest.$ac_objext \
27427 conftest$ac_exeext conftest.$ac_ext
27428fi
27429echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27430echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27431if test `eval echo '${'$as_ac_var'}'` = yes; then
27432 cat >>confdefs.h <<_ACEOF
27433#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27434_ACEOF
27435
27436fi
27437done
27438
27439 CFLAGS="$save_CFLAGS"
27440 LIBS="$save_LIBS"
a848cd7e
SC
27441 fi
27442
27443 wxUSE_UNIVERSAL="yes"
27444
27445 if test "$wxUSE_NANOX" = "yes"; then
27446 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
27447 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"
27448 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
27449 else
27450 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
27451 fi
27452
a848cd7e
SC
27453 TOOLKIT=X11
27454 GUIDIST=X11_DIST
27455 fi
27456
27457 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
27458 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
27459echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 27460
74b84332
VS
27461ac_find_includes=
27462for ac_dir in $SEARCH_INCLUDE /usr/include;
27463 do
27464 if test -f "$ac_dir/Xm/Xm.h"; then
27465 ac_find_includes=$ac_dir
27466 break
27467 fi
27468 done
a848cd7e 27469
74b84332
VS
27470 if test "$ac_find_includes" != "" ; then
27471 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27472echo "${ECHO_T}found in $ac_find_includes" >&6
27473
27474 if test "x$ac_find_includes" = "x/usr/include"; then
27475 ac_path_to_include=""
27476 else
27477 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
27478 result=$?
27479 if test $result = 0; then
27480 ac_path_to_include=""
27481 else
27482 ac_path_to_include=" -I$ac_find_includes"
27483 fi
a848cd7e
SC
27484 fi
27485
74b84332
VS
27486 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
27487 else
27488 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27489/* confdefs.h. */
27490_ACEOF
27491cat confdefs.h >>conftest.$ac_ext
27492cat >>conftest.$ac_ext <<_ACEOF
27493/* end confdefs.h. */
27494
74b84332
VS
27495 #include <Xm/Xm.h>
27496
a848cd7e
SC
27497int
27498main ()
27499{
27500
74b84332
VS
27501 int version;
27502 version = xmUseVersion;
27503
a848cd7e
SC
27504 ;
27505 return 0;
27506}
27507_ACEOF
74b84332
VS
27508rm -f conftest.$ac_objext
27509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27510 (eval $ac_compile) 2>conftest.er1
a848cd7e 27511 ac_status=$?
ac1cb8d3
VS
27512 grep -v '^ *+' conftest.er1 >conftest.err
27513 rm -f conftest.er1
27514 cat conftest.err >&5
a848cd7e
SC
27515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27516 (exit $ac_status); } &&
07158944 27517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27519 (eval $ac_try) 2>&5
27520 ac_status=$?
27521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27522 (exit $ac_status); }; } &&
74b84332 27523 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27525 (eval $ac_try) 2>&5
27526 ac_status=$?
27527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27528 (exit $ac_status); }; }; then
74b84332
VS
27529
27530 echo "$as_me:$LINENO: result: found in default search path" >&5
27531echo "${ECHO_T}found in default search path" >&6
27532 COMPILED_X_PROGRAM=1
27533
a848cd7e
SC
27534else
27535 echo "$as_me: failed program was:" >&5
27536sed 's/^/| /' conftest.$ac_ext >&5
27537
a848cd7e 27538
74b84332
VS
27539 echo "$as_me:$LINENO: result: no" >&5
27540echo "${ECHO_T}no" >&6
27541 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
27542echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
27543 { (exit 1); exit 1; }; }
a848cd7e 27544
a848cd7e 27545
a848cd7e 27546fi
74b84332
VS
27547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27548 fi
27549
27550 if test "$COMPILED_X_PROGRAM" = 0; then
27551 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
27552echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
27553
27554ac_find_libraries=
27555for ac_dir in $SEARCH_LIB /usr/lib;
27556 do
27557 for ac_extension in a so sl dylib; do
27558 if test -f "$ac_dir/libXm.$ac_extension"; then
27559 ac_find_libraries=$ac_dir
27560 break 2
a848cd7e 27561 fi
74b84332
VS
27562 done
27563 done
a848cd7e 27564
74b84332
VS
27565 if test "$ac_find_libraries" != "" ; then
27566 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
27567echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 27568
74b84332
VS
27569
27570 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27571 result=$?
27572 if test $result = 0; then
27573 ac_path_to_link=""
a848cd7e 27574 else
74b84332
VS
27575 ac_path_to_link=" -L$ac_find_libraries"
27576 fi
27577
27578 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
27579 else
27580 save_CFLAGS=$CFLAGS
27581 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27582
27583 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27584/* confdefs.h. */
27585_ACEOF
27586cat confdefs.h >>conftest.$ac_ext
27587cat >>conftest.$ac_ext <<_ACEOF
27588/* end confdefs.h. */
27589
74b84332
VS
27590 #include <Xm/Xm.h>
27591
a848cd7e
SC
27592int
27593main ()
27594{
74b84332
VS
27595
27596 int version;
27597 version = xmUseVersion;
27598
a848cd7e
SC
27599 ;
27600 return 0;
27601}
27602_ACEOF
74b84332
VS
27603rm -f conftest.$ac_objext
27604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27605 (eval $ac_compile) 2>conftest.er1
a848cd7e 27606 ac_status=$?
ac1cb8d3
VS
27607 grep -v '^ *+' conftest.er1 >conftest.err
27608 rm -f conftest.er1
27609 cat conftest.err >&5
a848cd7e
SC
27610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27611 (exit $ac_status); } &&
07158944 27612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27614 (eval $ac_try) 2>&5
27615 ac_status=$?
27616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27617 (exit $ac_status); }; } &&
74b84332 27618 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27620 (eval $ac_try) 2>&5
27621 ac_status=$?
27622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27623 (exit $ac_status); }; }; then
74b84332
VS
27624
27625 echo "$as_me:$LINENO: result: found in default search path" >&5
27626echo "${ECHO_T}found in default search path" >&6
27627 COMPILED_X_PROGRAM=1
27628
a848cd7e
SC
27629else
27630 echo "$as_me: failed program was:" >&5
27631sed 's/^/| /' conftest.$ac_ext >&5
27632
74b84332
VS
27633
27634 echo "$as_me:$LINENO: result: no" >&5
27635echo "${ECHO_T}no" >&6
27636 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
27637echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
27638 { (exit 1); exit 1; }; }
27639
27640
27641fi
27642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27643
27644 CFLAGS=$save_CFLAGS
27645 fi
27646 fi
27647
27648 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
27649echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
27650 libp_link=""
27651 libsm_ice_link=""
27652 libs_found=0
27653 for libp in "" " -lXp"; do
27654 if test "$libs_found" = "0"; then
27655 for libsm_ice in "" " -lSM -lICE"; do
27656 if test "$libs_found" = "0"; then
27657 save_LIBS="$LIBS"
27658 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
27659 save_CFLAGS=$CFLAGS
27660 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27661
27662 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
27663/* confdefs.h. */
27664_ACEOF
27665cat confdefs.h >>conftest.$ac_ext
27666cat >>conftest.$ac_ext <<_ACEOF
27667/* end confdefs.h. */
27668
74b84332
VS
27669 #include <Xm/Xm.h>
27670 #include <Xm/List.h>
27671
a848cd7e
SC
27672int
27673main ()
27674{
74b84332
VS
27675
27676 XmString string = NULL;
27677 Widget w = NULL;
27678 int position = 0;
27679 XmListAddItem(w, string, position);
27680
a848cd7e
SC
27681 ;
27682 return 0;
27683}
27684_ACEOF
27685rm -f conftest.$ac_objext conftest$ac_exeext
27686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27687 (eval $ac_link) 2>conftest.er1
a848cd7e 27688 ac_status=$?
ac1cb8d3
VS
27689 grep -v '^ *+' conftest.er1 >conftest.err
27690 rm -f conftest.er1
27691 cat conftest.err >&5
a848cd7e
SC
27692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27693 (exit $ac_status); } &&
07158944 27694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27696 (eval $ac_try) 2>&5
27697 ac_status=$?
27698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27699 (exit $ac_status); }; } &&
27700 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27702 (eval $ac_try) 2>&5
27703 ac_status=$?
27704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27705 (exit $ac_status); }; }; then
27706
27707 libp_link="$libp"
27708 libsm_ice_link="$libsm_ice"
27709 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
27710echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
27711 libs_found=1
27712
27713else
27714 echo "$as_me: failed program was:" >&5
27715sed 's/^/| /' conftest.$ac_ext >&5
27716
27717
27718
27719fi
ac1cb8d3
VS
27720rm -f conftest.err conftest.$ac_objext \
27721 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27722
27723 LIBS="$save_LIBS"
27724 CFLAGS=$save_CFLAGS
27725 fi
27726 done
27727 fi
27728 done
27729
27730 if test "$libs_found" = "0"; then
27731 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
27732echo "${ECHO_T}can't find the right libraries" >&6
27733 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
27734echo "$as_me: error: can't link a simple motif program" >&2;}
27735 { (exit 1); exit 1; }; }
27736 fi
27737
27738 save_CFLAGS=$CFLAGS
27739 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27740 echo "$as_me:$LINENO: checking for Motif 2" >&5
27741echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
27742 cat >conftest.$ac_ext <<_ACEOF
27743/* confdefs.h. */
27744_ACEOF
27745cat confdefs.h >>conftest.$ac_ext
27746cat >>conftest.$ac_ext <<_ACEOF
27747/* end confdefs.h. */
27748
27749 #include <Xm/Xm.h>
27750
27751int
27752main ()
27753{
27754
27755 #if XmVersion < 2000
27756 #error "Not Motif 2"
27757 #endif
27758
27759 ;
27760 return 0;
27761}
27762_ACEOF
27763rm -f conftest.$ac_objext
27764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27765 (eval $ac_compile) 2>conftest.er1
a848cd7e 27766 ac_status=$?
ac1cb8d3
VS
27767 grep -v '^ *+' conftest.er1 >conftest.err
27768 rm -f conftest.er1
27769 cat conftest.err >&5
a848cd7e
SC
27770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27771 (exit $ac_status); } &&
07158944 27772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27774 (eval $ac_try) 2>&5
27775 ac_status=$?
27776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27777 (exit $ac_status); }; } &&
27778 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27780 (eval $ac_try) 2>&5
27781 ac_status=$?
27782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27783 (exit $ac_status); }; }; then
27784
27785 cat >>confdefs.h <<\_ACEOF
27786#define __WXMOTIF20__ 1
27787_ACEOF
27788
27789 echo "$as_me:$LINENO: result: found" >&5
27790echo "${ECHO_T}found" >&6
27791
27792else
27793 echo "$as_me: failed program was:" >&5
27794sed 's/^/| /' conftest.$ac_ext >&5
27795
27796
27797 cat >>confdefs.h <<\_ACEOF
27798#define __WXMOTIF20__ 0
27799_ACEOF
27800
27801 echo "$as_me:$LINENO: result: not found" >&5
27802echo "${ECHO_T}not found" >&6
27803
27804fi
ac1cb8d3 27805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27806 CFLAGS=$save_CFLAGS
27807
27808 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
27809 TOOLKIT=MOTIF
27810 GUIDIST=MOTIF_DIST
27811 fi
27812
74b84332 27813 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
27814 if test "$wxUSE_LIBXPM" = "sys"; then
27815 echo "$as_me:$LINENO: checking for Xpm library" >&5
27816echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
27817
27818ac_find_libraries=
27819for ac_dir in $SEARCH_LIB /usr/lib;
27820 do
27821 for ac_extension in a so sl dylib; do
27822 if test -f "$ac_dir/libXpm.$ac_extension"; then
27823 ac_find_libraries=$ac_dir
27824 break 2
27825 fi
27826 done
27827 done
27828
27829 if test "$ac_find_libraries" != "" ; then
27830
27831 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27832 result=$?
27833 if test $result = 0; then
27834 ac_path_to_link=""
27835 else
27836 ac_path_to_link=" -L$ac_find_libraries"
27837 fi
27838
27839 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
27840 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
27841echo "${ECHO_T}found at $ac_find_libraries" >&6
27842
27843 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
27844echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
27845if test "${wx_cv_x11_xpm_h+set}" = set; then
27846 echo $ECHO_N "(cached) $ECHO_C" >&6
27847else
27848
27849 save_CFLAGS=$CFLAGS
27850 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27851
27852 cat >conftest.$ac_ext <<_ACEOF
27853/* confdefs.h. */
27854_ACEOF
27855cat confdefs.h >>conftest.$ac_ext
27856cat >>conftest.$ac_ext <<_ACEOF
27857/* end confdefs.h. */
27858
27859 #include <X11/xpm.h>
27860
27861int
27862main ()
27863{
27864
27865 int version;
27866 version = XpmLibraryVersion();
27867
27868 ;
27869 return 0;
27870}
27871_ACEOF
27872rm -f conftest.$ac_objext
27873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27874 (eval $ac_compile) 2>conftest.er1
a848cd7e 27875 ac_status=$?
ac1cb8d3
VS
27876 grep -v '^ *+' conftest.er1 >conftest.err
27877 rm -f conftest.er1
27878 cat conftest.err >&5
a848cd7e
SC
27879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27880 (exit $ac_status); } &&
07158944 27881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27883 (eval $ac_try) 2>&5
27884 ac_status=$?
27885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27886 (exit $ac_status); }; } &&
27887 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27889 (eval $ac_try) 2>&5
27890 ac_status=$?
27891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27892 (exit $ac_status); }; }; then
27893 wx_cv_x11_xpm_h=yes
27894else
27895 echo "$as_me: failed program was:" >&5
27896sed 's/^/| /' conftest.$ac_ext >&5
27897
27898wx_cv_x11_xpm_h=no
27899
27900fi
ac1cb8d3 27901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27902
27903 CFLAGS=$save_CFLAGS
27904
27905
27906fi
27907echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
27908echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
27909
27910 if test $wx_cv_x11_xpm_h = "yes"; then
27911 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
27912 cat >>confdefs.h <<\_ACEOF
27913#define wxHAVE_LIB_XPM 1
27914_ACEOF
27915
27916 else
27917 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
27918echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
27919 fi
27920 fi
27921
27922 fi
27923
27924 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
27925echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
27926if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
27927 echo $ECHO_N "(cached) $ECHO_C" >&6
27928else
27929 ac_check_lib_save_LIBS=$LIBS
27930LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
27931cat >conftest.$ac_ext <<_ACEOF
27932/* confdefs.h. */
27933_ACEOF
27934cat confdefs.h >>conftest.$ac_ext
27935cat >>conftest.$ac_ext <<_ACEOF
27936/* end confdefs.h. */
27937
27938/* Override any gcc2 internal prototype to avoid an error. */
27939#ifdef __cplusplus
27940extern "C"
27941#endif
27942/* We use char because int might match the return type of a gcc2
27943 builtin and then its argument prototype would still apply. */
27944char XShapeQueryExtension ();
27945int
27946main ()
27947{
27948XShapeQueryExtension ();
27949 ;
27950 return 0;
27951}
27952_ACEOF
27953rm -f conftest.$ac_objext conftest$ac_exeext
27954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27955 (eval $ac_link) 2>conftest.er1
a848cd7e 27956 ac_status=$?
ac1cb8d3
VS
27957 grep -v '^ *+' conftest.er1 >conftest.err
27958 rm -f conftest.er1
27959 cat conftest.err >&5
a848cd7e
SC
27960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27961 (exit $ac_status); } &&
07158944 27962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27964 (eval $ac_try) 2>&5
27965 ac_status=$?
27966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27967 (exit $ac_status); }; } &&
27968 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27970 (eval $ac_try) 2>&5
27971 ac_status=$?
27972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973 (exit $ac_status); }; }; then
27974 ac_cv_lib_Xext_XShapeQueryExtension=yes
27975else
27976 echo "$as_me: failed program was:" >&5
27977sed 's/^/| /' conftest.$ac_ext >&5
27978
27979ac_cv_lib_Xext_XShapeQueryExtension=no
27980fi
ac1cb8d3
VS
27981rm -f conftest.err conftest.$ac_objext \
27982 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27983LIBS=$ac_check_lib_save_LIBS
27984fi
27985echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
27986echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
27987if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
27988
27989 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
27990 wxHAVE_XEXT_LIB=1
27991
27992fi
27993
27994
27995 if test "$wxHAVE_XEXT_LIB" = 1; then
27996 save_CFLAGS="$CFLAGS"
27997 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
27998
27999 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
28000echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
28001 cat >conftest.$ac_ext <<_ACEOF
28002/* confdefs.h. */
28003_ACEOF
28004cat confdefs.h >>conftest.$ac_ext
28005cat >>conftest.$ac_ext <<_ACEOF
28006/* end confdefs.h. */
28007
28008 #include <X11/Xlib.h>
28009 #include <X11/extensions/shape.h>
28010
28011int
28012main ()
28013{
28014
28015 int dummy1, dummy2;
28016 XShapeQueryExtension((Display*)NULL,
28017 (int*)NULL, (int*)NULL);
28018
28019 ;
28020 return 0;
28021}
28022_ACEOF
28023rm -f conftest.$ac_objext
28024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28025 (eval $ac_compile) 2>conftest.er1
a848cd7e 28026 ac_status=$?
ac1cb8d3
VS
28027 grep -v '^ *+' conftest.er1 >conftest.err
28028 rm -f conftest.er1
28029 cat conftest.err >&5
a848cd7e
SC
28030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28031 (exit $ac_status); } &&
07158944 28032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28034 (eval $ac_try) 2>&5
28035 ac_status=$?
28036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28037 (exit $ac_status); }; } &&
28038 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28040 (eval $ac_try) 2>&5
28041 ac_status=$?
28042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28043 (exit $ac_status); }; }; then
28044
28045 cat >>confdefs.h <<\_ACEOF
28046#define HAVE_XSHAPE 1
28047_ACEOF
28048
28049 echo "$as_me:$LINENO: result: found" >&5
28050echo "${ECHO_T}found" >&6
28051
28052else
28053 echo "$as_me: failed program was:" >&5
28054sed 's/^/| /' conftest.$ac_ext >&5
28055
28056
28057 echo "$as_me:$LINENO: result: not found" >&5
28058echo "${ECHO_T}not found" >&6
28059
28060fi
ac1cb8d3 28061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28062 CFLAGS="$save_CFLAGS"
28063
28064 fi
28065 fi
28066
28067 if test "$wxUSE_MAC" = 1; then
28068 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
28069echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
28070 if test "$GCC" = yes; then
28071 echo "$as_me:$LINENO: result: gcc" >&5
28072echo "${ECHO_T}gcc" >&6
28073 CPPFLAGS_PASCAL="-fpascal-strings"
28074 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
28075 echo "$as_me:$LINENO: result: xlc" >&5
28076echo "${ECHO_T}xlc" >&6
28077 CPPFLAGS_PASCAL="-qmacpstr"
28078 else
28079 echo "$as_me:$LINENO: result: none" >&5
28080echo "${ECHO_T}none" >&6
28081 fi
28082
1e9e8aba
DE
28083 if test "x$wxUSE_UNIX" = "xyes"; then
28084 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
28085 else
28086 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
28087 fi
a848cd7e 28088
a848cd7e
SC
28089 TOOLKIT=MAC
28090 GUIDIST=MACX_DIST
dd21ced8 28091 WXBASEPORT="_carbon"
a848cd7e
SC
28092 fi
28093
28094 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
28095 TOOLKIT=COCOA
28096 GUIDIST=COCOA_DIST
28097 fi
28098
28099 if test "$wxUSE_PM" = 1; then
28100 TOOLKIT=PM
de59c161
RD
28101 GUIDIST=PM_DIST
28102 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
28103echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
28104if test "${wx_cv_spbcdata+set}" = set; then
28105 echo $ECHO_N "(cached) $ECHO_C" >&6
28106else
28107
28108 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
28109/* confdefs.h. */
28110_ACEOF
28111cat confdefs.h >>conftest.$ac_ext
28112cat >>conftest.$ac_ext <<_ACEOF
28113/* end confdefs.h. */
28114
28115 #define INCL_PM
28116 #include <os2.h>
28117
28118int
28119main ()
28120{
28121
28122 SPBCDATA test;
28123
28124 ;
28125 return 0;
28126}
28127_ACEOF
28128rm -f conftest.$ac_objext
28129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28130 (eval $ac_compile) 2>conftest.er1
de59c161 28131 ac_status=$?
ac1cb8d3
VS
28132 grep -v '^ *+' conftest.er1 >conftest.err
28133 rm -f conftest.er1
28134 cat conftest.err >&5
de59c161
RD
28135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28136 (exit $ac_status); } &&
07158944 28137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28139 (eval $ac_try) 2>&5
28140 ac_status=$?
28141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142 (exit $ac_status); }; } &&
28143 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
28144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28145 (eval $ac_try) 2>&5
28146 ac_status=$?
28147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148 (exit $ac_status); }; }; then
28149 wx_cv_spbcdata=yes
28150else
28151 echo "$as_me: failed program was:" >&5
28152sed 's/^/| /' conftest.$ac_ext >&5
28153
28154wx_cv_spbcdata=no
28155
28156fi
ac1cb8d3 28157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
28158
28159
28160fi
28161echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
28162echo "${ECHO_T}$wx_cv_spbcdata" >&6
28163
28164 if test $wx_cv_spbcdata = "yes"; then
28165 cat >>confdefs.h <<\_ACEOF
28166#define HAVE_SPBCDATA 1
28167_ACEOF
28168
28169 fi
a848cd7e
SC
28170 fi
28171
28172 if test "$TOOLKIT" = "PM" ; then
28173 TOOLKIT_DIR="os2"
28174 else
28175 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
28176 fi
28177
a848cd7e 28178 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
28179 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
28180 WIDGET_SET=univ
a848cd7e
SC
28181 fi
28182
28183 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
28184 DISTDIR="wx\$(TOOLKIT)"
28185else
28186 USE_GUI=0
28187
28188 TOOLKIT_DIR="base"
28189
28190 if test "$USE_WIN32" = 1 ; then
a848cd7e 28191 TOOLKIT="MSW"
a848cd7e
SC
28192 fi
28193
a848cd7e
SC
28194 GUIDIST="BASE_DIST"
28195 DISTDIR="wxBase"
28196fi
28197
28198
28199
28200
28201IODBC_C_SRC=""
28202
28203
28204if test "$TOOLKIT" != "MSW" ; then
28205
28206 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
28207
28208 if test "${ac_cv_header_sql_h+set}" = set; then
28209 echo "$as_me:$LINENO: checking for sql.h" >&5
28210echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28211if test "${ac_cv_header_sql_h+set}" = set; then
28212 echo $ECHO_N "(cached) $ECHO_C" >&6
28213fi
28214echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28215echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28216else
28217 # Is the header compilable?
28218echo "$as_me:$LINENO: checking sql.h usability" >&5
28219echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
28220cat >conftest.$ac_ext <<_ACEOF
28221/* confdefs.h. */
28222_ACEOF
28223cat confdefs.h >>conftest.$ac_ext
28224cat >>conftest.$ac_ext <<_ACEOF
28225/* end confdefs.h. */
28226$ac_includes_default
28227#include <sql.h>
28228_ACEOF
28229rm -f conftest.$ac_objext
28230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28231 (eval $ac_compile) 2>conftest.er1
a848cd7e 28232 ac_status=$?
ac1cb8d3
VS
28233 grep -v '^ *+' conftest.er1 >conftest.err
28234 rm -f conftest.er1
28235 cat conftest.err >&5
a848cd7e
SC
28236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28237 (exit $ac_status); } &&
07158944 28238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28240 (eval $ac_try) 2>&5
28241 ac_status=$?
28242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28243 (exit $ac_status); }; } &&
28244 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28246 (eval $ac_try) 2>&5
28247 ac_status=$?
28248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28249 (exit $ac_status); }; }; then
28250 ac_header_compiler=yes
28251else
28252 echo "$as_me: failed program was:" >&5
28253sed 's/^/| /' conftest.$ac_ext >&5
28254
28255ac_header_compiler=no
28256fi
ac1cb8d3 28257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28258echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28259echo "${ECHO_T}$ac_header_compiler" >&6
28260
28261# Is the header present?
28262echo "$as_me:$LINENO: checking sql.h presence" >&5
28263echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
28264cat >conftest.$ac_ext <<_ACEOF
28265/* confdefs.h. */
28266_ACEOF
28267cat confdefs.h >>conftest.$ac_ext
28268cat >>conftest.$ac_ext <<_ACEOF
28269/* end confdefs.h. */
28270#include <sql.h>
28271_ACEOF
28272if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28274 ac_status=$?
28275 grep -v '^ *+' conftest.er1 >conftest.err
28276 rm -f conftest.er1
28277 cat conftest.err >&5
28278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28279 (exit $ac_status); } >/dev/null; then
28280 if test -s conftest.err; then
28281 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28282 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28283 else
28284 ac_cpp_err=
28285 fi
28286else
28287 ac_cpp_err=yes
28288fi
28289if test -z "$ac_cpp_err"; then
28290 ac_header_preproc=yes
28291else
28292 echo "$as_me: failed program was:" >&5
28293sed 's/^/| /' conftest.$ac_ext >&5
28294
28295 ac_header_preproc=no
28296fi
28297rm -f conftest.err conftest.$ac_ext
28298echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28299echo "${ECHO_T}$ac_header_preproc" >&6
28300
28301# So? What about this header?
ac1cb8d3
VS
28302case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28303 yes:no: )
a848cd7e
SC
28304 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
28305echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28306 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
28307echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
28308 ac_header_preproc=yes
a848cd7e 28309 ;;
ac1cb8d3 28310 no:yes:* )
a848cd7e
SC
28311 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
28312echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28313 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
28314echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
28315 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
28316echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
28317 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
28318echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
28319 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
28320echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28321 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
28322echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
28323 (
28324 cat <<\_ASBOX
ac1cb8d3
VS
28325## ----------------------------------------- ##
28326## Report this to wx-dev@lists.wxwidgets.org ##
28327## ----------------------------------------- ##
a848cd7e
SC
28328_ASBOX
28329 ) |
28330 sed "s/^/$as_me: WARNING: /" >&2
28331 ;;
28332esac
28333echo "$as_me:$LINENO: checking for sql.h" >&5
28334echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28335if test "${ac_cv_header_sql_h+set}" = set; then
28336 echo $ECHO_N "(cached) $ECHO_C" >&6
28337else
28338 ac_cv_header_sql_h=$ac_header_preproc
28339fi
28340echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28341echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28342
28343fi
28344if test $ac_cv_header_sql_h = yes; then
28345 found_sql_h=1
28346fi
28347
28348
28349 if test "x$found_sql_h" = "x1" ; then
28350 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
28351echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
28352if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
28353 echo $ECHO_N "(cached) $ECHO_C" >&6
28354else
28355 ac_check_lib_save_LIBS=$LIBS
28356LIBS="-liodbc $LIBS"
28357cat >conftest.$ac_ext <<_ACEOF
28358/* confdefs.h. */
28359_ACEOF
28360cat confdefs.h >>conftest.$ac_ext
28361cat >>conftest.$ac_ext <<_ACEOF
28362/* end confdefs.h. */
28363
28364/* Override any gcc2 internal prototype to avoid an error. */
28365#ifdef __cplusplus
28366extern "C"
28367#endif
28368/* We use char because int might match the return type of a gcc2
28369 builtin and then its argument prototype would still apply. */
28370char SQLAllocEnv ();
28371int
28372main ()
28373{
28374SQLAllocEnv ();
28375 ;
28376 return 0;
28377}
28378_ACEOF
28379rm -f conftest.$ac_objext conftest$ac_exeext
28380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28381 (eval $ac_link) 2>conftest.er1
a848cd7e 28382 ac_status=$?
ac1cb8d3
VS
28383 grep -v '^ *+' conftest.er1 >conftest.err
28384 rm -f conftest.er1
28385 cat conftest.err >&5
a848cd7e
SC
28386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28387 (exit $ac_status); } &&
07158944 28388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28390 (eval $ac_try) 2>&5
28391 ac_status=$?
28392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28393 (exit $ac_status); }; } &&
28394 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28396 (eval $ac_try) 2>&5
28397 ac_status=$?
28398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28399 (exit $ac_status); }; }; then
28400 ac_cv_lib_iodbc_SQLAllocEnv=yes
28401else
28402 echo "$as_me: failed program was:" >&5
28403sed 's/^/| /' conftest.$ac_ext >&5
28404
28405ac_cv_lib_iodbc_SQLAllocEnv=no
28406fi
ac1cb8d3
VS
28407rm -f conftest.err conftest.$ac_objext \
28408 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28409LIBS=$ac_check_lib_save_LIBS
28410fi
28411echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
28412echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
28413if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
28414 ODBC_LINK=" -liodbc"
28415else
28416
28417 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
28418echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
28419if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
28420 echo $ECHO_N "(cached) $ECHO_C" >&6
28421else
28422 ac_check_lib_save_LIBS=$LIBS
28423LIBS="-lunixodbc $LIBS"
28424cat >conftest.$ac_ext <<_ACEOF
28425/* confdefs.h. */
28426_ACEOF
28427cat confdefs.h >>conftest.$ac_ext
28428cat >>conftest.$ac_ext <<_ACEOF
28429/* end confdefs.h. */
28430
28431/* Override any gcc2 internal prototype to avoid an error. */
28432#ifdef __cplusplus
28433extern "C"
28434#endif
28435/* We use char because int might match the return type of a gcc2
28436 builtin and then its argument prototype would still apply. */
28437char SQLAllocEnv ();
28438int
28439main ()
28440{
28441SQLAllocEnv ();
28442 ;
28443 return 0;
28444}
28445_ACEOF
28446rm -f conftest.$ac_objext conftest$ac_exeext
28447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28448 (eval $ac_link) 2>conftest.er1
a848cd7e 28449 ac_status=$?
ac1cb8d3
VS
28450 grep -v '^ *+' conftest.er1 >conftest.err
28451 rm -f conftest.er1
28452 cat conftest.err >&5
a848cd7e
SC
28453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28454 (exit $ac_status); } &&
07158944 28455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
28461 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28463 (eval $ac_try) 2>&5
28464 ac_status=$?
28465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28466 (exit $ac_status); }; }; then
28467 ac_cv_lib_unixodbc_SQLAllocEnv=yes
28468else
28469 echo "$as_me: failed program was:" >&5
28470sed 's/^/| /' conftest.$ac_ext >&5
28471
28472ac_cv_lib_unixodbc_SQLAllocEnv=no
28473fi
ac1cb8d3
VS
28474rm -f conftest.err conftest.$ac_objext \
28475 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28476LIBS=$ac_check_lib_save_LIBS
28477fi
28478echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
28479echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
28480if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
28481 ODBC_LINK=" -lunixodbc"
28482else
28483
28484 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
28485echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
28486if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
28487 echo $ECHO_N "(cached) $ECHO_C" >&6
28488else
28489 ac_check_lib_save_LIBS=$LIBS
28490LIBS="-lodbc $LIBS"
28491cat >conftest.$ac_ext <<_ACEOF
28492/* confdefs.h. */
28493_ACEOF
28494cat confdefs.h >>conftest.$ac_ext
28495cat >>conftest.$ac_ext <<_ACEOF
28496/* end confdefs.h. */
28497
28498/* Override any gcc2 internal prototype to avoid an error. */
28499#ifdef __cplusplus
28500extern "C"
28501#endif
28502/* We use char because int might match the return type of a gcc2
28503 builtin and then its argument prototype would still apply. */
28504char SQLAllocEnv ();
28505int
28506main ()
28507{
28508SQLAllocEnv ();
28509 ;
28510 return 0;
28511}
28512_ACEOF
28513rm -f conftest.$ac_objext conftest$ac_exeext
28514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28515 (eval $ac_link) 2>conftest.er1
a848cd7e 28516 ac_status=$?
ac1cb8d3
VS
28517 grep -v '^ *+' conftest.er1 >conftest.err
28518 rm -f conftest.er1
28519 cat conftest.err >&5
a848cd7e
SC
28520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28521 (exit $ac_status); } &&
07158944 28522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28524 (eval $ac_try) 2>&5
28525 ac_status=$?
28526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28527 (exit $ac_status); }; } &&
28528 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28530 (eval $ac_try) 2>&5
28531 ac_status=$?
28532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28533 (exit $ac_status); }; }; then
28534 ac_cv_lib_odbc_SQLAllocEnv=yes
28535else
28536 echo "$as_me: failed program was:" >&5
28537sed 's/^/| /' conftest.$ac_ext >&5
28538
28539ac_cv_lib_odbc_SQLAllocEnv=no
28540fi
ac1cb8d3
VS
28541rm -f conftest.err conftest.$ac_objext \
28542 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28543LIBS=$ac_check_lib_save_LIBS
28544fi
28545echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
28546echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
28547if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
28548 ODBC_LINK=" -lodbc"
28549fi
28550
28551
28552fi
28553
28554
28555fi
28556
28557 fi
28558 if test "x$ODBC_LINK" = "x" ; then
28559 if test "$wxUSE_ODBC" = "sys" ; then
28560 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
28561echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
28562 { (exit 1); exit 1; }; }
28563 else
28564 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
28565echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
28566 wxUSE_ODBC=builtin
28567 fi
28568 else
28569 wxUSE_ODBC=sys
28570 fi
28571 fi
a848cd7e 28572
2da0c077
RD
28573 if test "$wxUSE_ODBC" = "builtin" ; then
28574 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
28575#define wxUSE_BUILTIN_IODBC 1
28576_ACEOF
28577
a848cd7e
SC
28578 fi
28579fi
28580
2da0c077
RD
28581if test "$wxUSE_ODBC" != "no" ; then
28582 cat >>confdefs.h <<\_ACEOF
28583#define wxUSE_ODBC 1
28584_ACEOF
28585
28586 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
28587
28588 WXODBCFLAG="-D_IODBC_"
28589fi
a848cd7e 28590
01cb68df 28591
a848cd7e 28592if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 28593 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
28594 echo "$as_me:$LINENO: checking for Xinerama" >&5
28595echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
28596
28597ac_find_libraries=
28598for ac_dir in $SEARCH_LIB /usr/lib;
28599 do
28600 for ac_extension in a so sl dylib; do
28601 if test -f "$ac_dir/libXinerama.$ac_extension"; then
28602 ac_find_libraries=$ac_dir
28603 break 2
28604 fi
28605 done
28606 done
28607
28608 if test "$ac_find_libraries" != "" ; then
28609
28610 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28611 result=$?
28612 if test $result = 0; then
28613 ac_path_to_link=""
28614 else
28615 ac_path_to_link=" -L$ac_find_libraries"
28616 fi
28617
28618 if test "$ac_path_to_link" != " -L/usr/lib" ; then
28619 LDFLAGS="$LDFLAGS $ac_path_to_link"
28620 fi
28621 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
28622 echo "$as_me:$LINENO: result: yes" >&5
28623echo "${ECHO_T}yes" >&6
28624
28625 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
28626echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
28627
28628ac_find_libraries=
28629for ac_dir in $SEARCH_LIB /usr/lib;
28630 do
28631 for ac_extension in a so sl dylib; do
28632 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
28633 ac_find_libraries=$ac_dir
28634 break 2
28635 fi
28636 done
28637 done
28638
28639 if test "$ac_find_libraries" != "" ; then
28640 echo "$as_me:$LINENO: result: yes" >&5
28641echo "${ECHO_T}yes" >&6
28642
28643for ac_header in X11/extensions/xf86vmode.h
28644do
28645as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28646echo "$as_me:$LINENO: checking for $ac_header" >&5
28647echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28648if eval "test \"\${$as_ac_Header+set}\" = set"; then
28649 echo $ECHO_N "(cached) $ECHO_C" >&6
28650else
28651 cat >conftest.$ac_ext <<_ACEOF
28652/* confdefs.h. */
28653_ACEOF
28654cat confdefs.h >>conftest.$ac_ext
28655cat >>conftest.$ac_ext <<_ACEOF
28656/* end confdefs.h. */
28657
28658 #if HAVE_X11_XLIB_H
28659 #include <X11/Xlib.h>
28660 #endif
28661
28662
28663#include <$ac_header>
28664_ACEOF
28665rm -f conftest.$ac_objext
28666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28667 (eval $ac_compile) 2>conftest.er1
a848cd7e 28668 ac_status=$?
ac1cb8d3
VS
28669 grep -v '^ *+' conftest.er1 >conftest.err
28670 rm -f conftest.er1
28671 cat conftest.err >&5
a848cd7e
SC
28672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28673 (exit $ac_status); } &&
07158944 28674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28676 (eval $ac_try) 2>&5
28677 ac_status=$?
28678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28679 (exit $ac_status); }; } &&
28680 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28682 (eval $ac_try) 2>&5
28683 ac_status=$?
28684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28685 (exit $ac_status); }; }; then
28686 eval "$as_ac_Header=yes"
28687else
28688 echo "$as_me: failed program was:" >&5
28689sed 's/^/| /' conftest.$ac_ext >&5
28690
28691eval "$as_ac_Header=no"
28692fi
ac1cb8d3 28693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28694fi
28695echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28696echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28697if test `eval echo '${'$as_ac_Header'}'` = yes; then
28698 cat >>confdefs.h <<_ACEOF
28699#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28700_ACEOF
28701
28702 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
28703
28704fi
28705
28706done
28707
28708 else
28709 echo "$as_me:$LINENO: result: no" >&5
28710echo "${ECHO_T}no" >&6
28711 fi
28712
28713 else
28714 echo "$as_me:$LINENO: result: no" >&5
28715echo "${ECHO_T}no" >&6
dcc1b6ad
VS
28716 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
28717echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
28718 wxUSE_DISPLAY="no"
28719 fi
01cb68df
RG
28720 elif test "$wxUSE_MSW" = 1; then
28721
28722
28723for ac_header in multimon.h ddraw.h
28724do
28725as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 28726echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
28727echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28728if eval "test \"\${$as_ac_Header+set}\" = set"; then
28729 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 28730else
5294a27e 28731 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
28732/* confdefs.h. */
28733_ACEOF
28734cat confdefs.h >>conftest.$ac_ext
28735cat >>conftest.$ac_ext <<_ACEOF
28736/* end confdefs.h. */
5294a27e
VZ
28737#include <windows.h>
28738
01cb68df
RG
28739#include <$ac_header>
28740_ACEOF
28741rm -f conftest.$ac_objext
28742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28743 (eval $ac_compile) 2>conftest.er1
01cb68df 28744 ac_status=$?
ac1cb8d3
VS
28745 grep -v '^ *+' conftest.er1 >conftest.err
28746 rm -f conftest.er1
28747 cat conftest.err >&5
01cb68df
RG
28748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28749 (exit $ac_status); } &&
07158944 28750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28752 (eval $ac_try) 2>&5
28753 ac_status=$?
28754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28755 (exit $ac_status); }; } &&
28756 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
28757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28758 (eval $ac_try) 2>&5
28759 ac_status=$?
28760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28761 (exit $ac_status); }; }; then
5294a27e 28762 eval "$as_ac_Header=yes"
01cb68df
RG
28763else
28764 echo "$as_me: failed program was:" >&5
28765sed 's/^/| /' conftest.$ac_ext >&5
28766
5294a27e 28767eval "$as_ac_Header=no"
01cb68df 28768fi
ac1cb8d3 28769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
28770fi
28771echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28772echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
28773if test `eval echo '${'$as_ac_Header'}'` = yes; then
28774 cat >>confdefs.h <<_ACEOF
28775#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28776_ACEOF
28777
28778else
28779
5294a27e
VZ
28780 wxUSE_DISPLAY="no"
28781 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 28782echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
28783
28784fi
28785
28786done
28787
a848cd7e
SC
28788 fi
28789fi
28790
28791
28792USE_OPENGL=0
28793if test "$wxUSE_OPENGL" = "yes"; then
28794 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
28795 OPENGL_LIBS="-framework OpenGL -framework AGL"
28796 elif test "$wxUSE_MSW" = 1; then
28797 OPENGL_LIBS="-lopengl32 -lglu32"
28798 else
28799
28800
28801ac_find_includes=
28802for ac_dir in $SEARCH_INCLUDE /usr/include;
28803 do
28804 if test -f "$ac_dir/GL/gl.h"; then
28805 ac_find_includes=$ac_dir
28806 break
28807 fi
28808 done
28809
28810 if test "$ac_find_includes" != "" ; then
28811 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
28812echo "${ECHO_T}found in $ac_find_includes" >&6
28813
28814 if test "x$ac_find_includes" = "x/usr/include"; then
28815 ac_path_to_include=""
28816 else
28817 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
28818 result=$?
28819 if test $result = 0; then
28820 ac_path_to_include=""
28821 else
28822 ac_path_to_include=" -I$ac_find_includes"
28823 fi
28824 fi
28825
28826 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
28827 fi
28828
28829 if test "${ac_cv_header_GL_gl_h+set}" = set; then
28830 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
28831echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
28832if test "${ac_cv_header_GL_gl_h+set}" = set; then
28833 echo $ECHO_N "(cached) $ECHO_C" >&6
28834fi
28835echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
28836echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
28837else
28838 # Is the header compilable?
28839echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
28840echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
28841cat >conftest.$ac_ext <<_ACEOF
28842/* confdefs.h. */
28843_ACEOF
28844cat confdefs.h >>conftest.$ac_ext
28845cat >>conftest.$ac_ext <<_ACEOF
28846/* end confdefs.h. */
28847$ac_includes_default
28848#include <GL/gl.h>
28849_ACEOF
28850rm -f conftest.$ac_objext
28851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28852 (eval $ac_compile) 2>conftest.er1
a848cd7e 28853 ac_status=$?
ac1cb8d3
VS
28854 grep -v '^ *+' conftest.er1 >conftest.err
28855 rm -f conftest.er1
28856 cat conftest.err >&5
a848cd7e
SC
28857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28858 (exit $ac_status); } &&
07158944 28859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28861 (eval $ac_try) 2>&5
28862 ac_status=$?
28863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28864 (exit $ac_status); }; } &&
28865 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28867 (eval $ac_try) 2>&5
28868 ac_status=$?
28869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28870 (exit $ac_status); }; }; then
28871 ac_header_compiler=yes
28872else
28873 echo "$as_me: failed program was:" >&5
28874sed 's/^/| /' conftest.$ac_ext >&5
28875
28876ac_header_compiler=no
28877fi
ac1cb8d3 28878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28879echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28880echo "${ECHO_T}$ac_header_compiler" >&6
28881
28882# Is the header present?
28883echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
28884echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
28885cat >conftest.$ac_ext <<_ACEOF
28886/* confdefs.h. */
28887_ACEOF
28888cat confdefs.h >>conftest.$ac_ext
28889cat >>conftest.$ac_ext <<_ACEOF
28890/* end confdefs.h. */
28891#include <GL/gl.h>
28892_ACEOF
28893if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28894 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28895 ac_status=$?
28896 grep -v '^ *+' conftest.er1 >conftest.err
28897 rm -f conftest.er1
28898 cat conftest.err >&5
28899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28900 (exit $ac_status); } >/dev/null; then
28901 if test -s conftest.err; then
28902 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28903 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28904 else
28905 ac_cpp_err=
28906 fi
28907else
28908 ac_cpp_err=yes
28909fi
28910if test -z "$ac_cpp_err"; then
28911 ac_header_preproc=yes
28912else
28913 echo "$as_me: failed program was:" >&5
28914sed 's/^/| /' conftest.$ac_ext >&5
28915
28916 ac_header_preproc=no
28917fi
28918rm -f conftest.err conftest.$ac_ext
28919echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28920echo "${ECHO_T}$ac_header_preproc" >&6
28921
28922# So? What about this header?
ac1cb8d3
VS
28923case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28924 yes:no: )
a848cd7e
SC
28925 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28926echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28927 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
28928echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
28929 ac_header_preproc=yes
a848cd7e 28930 ;;
ac1cb8d3 28931 no:yes:* )
a848cd7e
SC
28932 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
28933echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28934 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
28935echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
28936 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
28937echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
28938 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
28939echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
28940 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
28941echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28942 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
28943echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
28944 (
28945 cat <<\_ASBOX
ac1cb8d3
VS
28946## ----------------------------------------- ##
28947## Report this to wx-dev@lists.wxwidgets.org ##
28948## ----------------------------------------- ##
a848cd7e
SC
28949_ASBOX
28950 ) |
28951 sed "s/^/$as_me: WARNING: /" >&2
28952 ;;
28953esac
28954echo "$as_me:$LINENO: checking for GL/gl.h" >&5
28955echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
28956if test "${ac_cv_header_GL_gl_h+set}" = set; then
28957 echo $ECHO_N "(cached) $ECHO_C" >&6
28958else
28959 ac_cv_header_GL_gl_h=$ac_header_preproc
28960fi
28961echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
28962echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
28963
28964fi
28965if test $ac_cv_header_GL_gl_h = yes; then
28966
28967 found_gl=0
28968
28969 echo "$as_me:$LINENO: checking for -lGL" >&5
28970echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
28971
28972ac_find_libraries=
28973for ac_dir in $SEARCH_LIB /usr/lib;
28974 do
28975 for ac_extension in a so sl dylib; do
28976 if test -f "$ac_dir/libGL.$ac_extension"; then
28977 ac_find_libraries=$ac_dir
28978 break 2
28979 fi
28980 done
28981 done
28982
28983 if test "$ac_find_libraries" != "" ; then
28984
28985 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28986 result=$?
28987 if test $result = 0; then
28988 ac_path_to_link=""
28989 else
28990 ac_path_to_link=" -L$ac_find_libraries"
28991 fi
28992
28993 if test "$ac_path_to_link" != " -L/usr/lib" ; then
28994 LDFLAGS_GL="$ac_path_to_link"
28995 fi
28996
28997
28998ac_find_libraries=
28999for ac_dir in $SEARCH_LIB /usr/lib;
29000 do
29001 for ac_extension in a so sl dylib; do
29002 if test -f "$ac_dir/libGLU.$ac_extension"; then
29003 ac_find_libraries=$ac_dir
29004 break 2
29005 fi
29006 done
29007 done
29008
29009 if test "$ac_find_libraries" != "" ; then
29010
29011 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29012 result=$?
29013 if test $result = 0; then
29014 ac_path_to_link=""
29015 else
29016 ac_path_to_link=" -L$ac_find_libraries"
29017 fi
29018
29019 if test "$ac_path_to_link" != " -L/usr/lib" -a \
29020 "$ac_path_to_link" != "$LDFLAGS_GL"; then
29021 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
29022 fi
29023
29024 found_gl=1
29025 OPENGL_LIBS="-lGL -lGLU"
29026 echo "$as_me:$LINENO: result: yes" >&5
29027echo "${ECHO_T}yes" >&6
29028 fi
29029 fi
29030
29031 if test "$found_gl" != 1; then
29032 echo "$as_me:$LINENO: result: no" >&5
29033echo "${ECHO_T}no" >&6
29034 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
29035echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
29036
29037ac_find_libraries=
29038for ac_dir in $SEARCH_LIB /usr/lib;
29039 do
29040 for ac_extension in a so sl dylib; do
29041 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
29042 ac_find_libraries=$ac_dir
29043 break 2
29044 fi
29045 done
29046 done
29047
29048 if test "$ac_find_libraries" != "" ; then
29049
29050 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29051 result=$?
29052 if test $result = 0; then
29053 ac_path_to_link=""
29054 else
29055 ac_path_to_link=" -L$ac_find_libraries"
29056 fi
29057
29058 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
29059 OPENGL_LIBS="-lMesaGL -lMesaGLU"
29060 echo "$as_me:$LINENO: result: yes" >&5
29061echo "${ECHO_T}yes" >&6
29062 else
29063 echo "$as_me:$LINENO: result: no" >&5
29064echo "${ECHO_T}no" >&6
29065 fi
29066 fi
29067
29068fi
29069
29070
29071
29072 if test "x$OPENGL_LIBS" = "x"; then
29073 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
29074echo "$as_me: error: OpenGL libraries not available" >&2;}
29075 { (exit 1); exit 1; }; }
29076 fi
29077 fi
29078
29079 if test "$wxUSE_OPENGL" = "yes"; then
29080 USE_OPENGL=1
29081 cat >>confdefs.h <<\_ACEOF
29082#define wxUSE_OPENGL 1
29083_ACEOF
29084
29085 cat >>confdefs.h <<\_ACEOF
29086#define wxUSE_GLCANVAS 1
29087_ACEOF
29088
29089 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
29090 fi
29091fi
29092
a848cd7e
SC
29093
29094if test -n "$TOOLKIT" ; then
29095 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
29096fi
29097
a848cd7e
SC
29098
29099
29100if test "$wxUSE_SHARED" = "yes"; then
29101 case "${host}" in
29102 *-pc-msdosdjgpp )
29103 wxUSE_SHARED=no
29104 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
29105echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
29106 ;;
29107 esac
29108fi
29109
a848cd7e 29110if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
29111
29112
29113 found_versioning=no
29114
29115
29116 if test $found_versioning = no ; then
29117 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
29118echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
29119if test "${wx_cv_version_script+set}" = set; then
29120 echo $ECHO_N "(cached) $ECHO_C" >&6
29121else
29122
29123 echo "VER_1 { *; };" >conftest.sym
29124 echo "int main() { return 0; }" >conftest.cpp
29125
29126 if { ac_try='
29127 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29128 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
29129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29130 (eval $ac_try) 2>&5
29131 ac_status=$?
29132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29133 (exit $ac_status); }; } ; then
29134 if test -s conftest.stderr ; then
29135 wx_cv_version_script=no
29136 else
29137 wx_cv_version_script=yes
29138 fi
29139 else
29140 wx_cv_version_script=no
29141 fi
29142 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
29143
29144fi
29145echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
29146echo "${ECHO_T}$wx_cv_version_script" >&6
29147 if test $wx_cv_version_script = yes ; then
29148 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
29149 fi
29150 fi
29151
29152
29153 case "${host}" in
29154 *-*-linux* | *-*-gnu* )
29155 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29156 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29157 ;;
29158
29159 *-*-solaris2* )
29160 if test "$GCC" = yes ; then
29161 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
29162
29163 saveLdflags="$LDFLAGS"
29164 LDFLAGS="$saveLdflags -Wl,-rpath,/"
29165 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
29166echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
29167 cat >conftest.$ac_ext <<_ACEOF
29168/* confdefs.h. */
29169_ACEOF
29170cat confdefs.h >>conftest.$ac_ext
29171cat >>conftest.$ac_ext <<_ACEOF
29172/* end confdefs.h. */
29173
29174int
29175main ()
29176{
29177
29178 ;
29179 return 0;
29180}
29181_ACEOF
29182rm -f conftest.$ac_objext conftest$ac_exeext
29183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29184 (eval $ac_link) 2>conftest.er1
a848cd7e 29185 ac_status=$?
ac1cb8d3
VS
29186 grep -v '^ *+' conftest.er1 >conftest.err
29187 rm -f conftest.er1
29188 cat conftest.err >&5
a848cd7e
SC
29189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29190 (exit $ac_status); } &&
07158944 29191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29193 (eval $ac_try) 2>&5
29194 ac_status=$?
29195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29196 (exit $ac_status); }; } &&
29197 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29199 (eval $ac_try) 2>&5
29200 ac_status=$?
29201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29202 (exit $ac_status); }; }; then
29203
29204 echo "$as_me:$LINENO: result: yes" >&5
29205echo "${ECHO_T}yes" >&6
29206 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29207 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29208
29209else
29210 echo "$as_me: failed program was:" >&5
29211sed 's/^/| /' conftest.$ac_ext >&5
29212
29213
29214 echo "$as_me:$LINENO: result: no" >&5
29215echo "${ECHO_T}no" >&6
29216 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
29217echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
29218 LDFLAGS="$saveLdflags -Wl,-R,/"
29219 cat >conftest.$ac_ext <<_ACEOF
29220/* confdefs.h. */
29221_ACEOF
29222cat confdefs.h >>conftest.$ac_ext
29223cat >>conftest.$ac_ext <<_ACEOF
29224/* end confdefs.h. */
29225
29226int
29227main ()
29228{
29229
29230 ;
29231 return 0;
29232}
29233_ACEOF
29234rm -f conftest.$ac_objext conftest$ac_exeext
29235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29236 (eval $ac_link) 2>conftest.er1
a848cd7e 29237 ac_status=$?
ac1cb8d3
VS
29238 grep -v '^ *+' conftest.er1 >conftest.err
29239 rm -f conftest.er1
29240 cat conftest.err >&5
a848cd7e
SC
29241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29242 (exit $ac_status); } &&
07158944 29243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29245 (eval $ac_try) 2>&5
29246 ac_status=$?
29247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29248 (exit $ac_status); }; } &&
29249 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29251 (eval $ac_try) 2>&5
29252 ac_status=$?
29253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29254 (exit $ac_status); }; }; then
29255
ffa0583f 29256 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 29257echo "${ECHO_T}yes" >&6
ffa0583f
RL
29258 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
29259 WXCONFIG_RPATH="-Wl,-R,\$libdir"
29260
a848cd7e
SC
29261else
29262 echo "$as_me: failed program was:" >&5
29263sed 's/^/| /' conftest.$ac_ext >&5
29264
29265
29266 echo "$as_me:$LINENO: result: no" >&5
29267echo "${ECHO_T}no" >&6
29268
29269fi
ac1cb8d3
VS
29270rm -f conftest.err conftest.$ac_objext \
29271 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29272
29273fi
ac1cb8d3
VS
29274rm -f conftest.err conftest.$ac_objext \
29275 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29276 LDFLAGS="$saveLdflags"
29277 else
a848cd7e 29278 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 29279 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
29280 fi
29281 ;;
29282
29283 powerpc-*-darwin* )
29284 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
29285 cat <<EOF >change-install-names
29286#!/bin/sh
29287libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
29288inst_cmd="install_name_tool "
29289for i in \${libnames} ; do
29290 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
29291done
29292\${inst_cmd} \${3}
29293EOF
29294 chmod +x change-install-names
29295 ;;
29296
29297 *-*-cygwin* | *-*-mingw32* )
29298 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
29299 ;;
29300
81f90336
MW
29301 *-*-hpux* )
29302 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
29303 WXCONFIG_RPATH="-Wl,+b,\$libdir"
29304 ;;
29305
a848cd7e 29306 esac
ceec2216 29307
ffa0583f
RL
29308 if test $wxUSE_RPATH = "no"; then
29309 SAMPLES_RPATH_FLAG=''
29310 SAMPLES_RPATH_POSTLINK=''
29311 WXCONFIG_RPATH=''
29312 fi
29313
29314 SHARED=1
29315
29316else
29317
ceec2216
RL
29318 config_linkage_component="-static"
29319 SHARED=0
ffa0583f 29320
ceec2216 29321fi
a848cd7e 29322
a848cd7e 29323
ceec2216
RL
29324UNICODE=0
29325lib_unicode_suffix=
29326WX_CHARTYPE="ansi"
29327if test "$wxUSE_UNICODE" = "yes"; then
29328 lib_unicode_suffix=u
29329 WX_CHARTYPE="unicode"
29330 UNICODE=1
a848cd7e
SC
29331fi
29332
ceec2216
RL
29333lib_debug_suffix=
29334WX_DEBUGTYPE="release"
29335DEBUG_FLAG=0
29336if test "$wxUSE_DEBUG_FLAG" = "yes"; then
29337 lib_debug_suffix=d
29338 WX_DEBUGTYPE="debug"
29339 DEBUG_FLAG=1
29340fi
a848cd7e 29341
ceec2216
RL
29342WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
29343WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 29344
ceec2216
RL
29345DEBUG_INFO=0
29346if test "$wxUSE_DEBUG_INFO" = "yes"; then
29347 DEBUG_INFO=1
29348fi
a848cd7e 29349
ceec2216 29350WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 29351
ceec2216 29352TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 29353
ceec2216 29354TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 29355
ceec2216
RL
29356if test "$cross_compiling" = "yes"; then
29357 HOST_SUFFIX="-$host_alias"
29358 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
29359 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
29360fi
29361
dd21ced8 29362WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
29363WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
29364
29365
29366
1d1af5ea
DE
29367if test "$wxUSE_COCOA" = 1; then
29368
29369
29370 ac_ext=c
29371ac_cpp='$CPP $CPPFLAGS'
29372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29374ac_compiler_gnu=$ac_cv_c_compiler_gnu
29375
29376ac_ext=m
29377
29378 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
29379echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
29380 cat >conftest.$ac_ext <<_ACEOF
29381/* confdefs.h. */
29382_ACEOF
29383cat confdefs.h >>conftest.$ac_ext
29384cat >>conftest.$ac_ext <<_ACEOF
29385/* end confdefs.h. */
29386#include <AppKit/NSEvent.h>
29387#include <CoreFoundation/CoreFoundation.h>
29388
29389int
29390main ()
29391{
29392
29393 ;
29394 return 0;
29395}
29396_ACEOF
29397rm -f conftest.$ac_objext
29398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29399 (eval $ac_compile) 2>conftest.er1
29400 ac_status=$?
29401 grep -v '^ *+' conftest.er1 >conftest.err
29402 rm -f conftest.er1
29403 cat conftest.err >&5
29404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29405 (exit $ac_status); } &&
29406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29408 (eval $ac_try) 2>&5
29409 ac_status=$?
29410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29411 (exit $ac_status); }; } &&
29412 { ac_try='test -s conftest.$ac_objext'
29413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29414 (eval $ac_try) 2>&5
29415 ac_status=$?
29416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29417 (exit $ac_status); }; }; then
29418 echo "$as_me:$LINENO: result: no" >&5
29419echo "${ECHO_T}no" >&6
29420else
29421 echo "$as_me: failed program was:" >&5
29422sed 's/^/| /' conftest.$ac_ext >&5
29423
29424echo "$as_me:$LINENO: result: yes" >&5
29425echo "${ECHO_T}yes" >&6
29426 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
29427echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
29428 cat >conftest.$ac_ext <<_ACEOF
29429/* confdefs.h. */
29430_ACEOF
29431cat confdefs.h >>conftest.$ac_ext
29432cat >>conftest.$ac_ext <<_ACEOF
29433/* end confdefs.h. */
29434#define __Point__ 1
29435#include <AppKit/NSEvent.h>
29436#include <CoreFoundation/CoreFoundation.h>
29437
29438int
29439main ()
29440{
29441
29442 ;
29443 return 0;
29444}
29445_ACEOF
29446rm -f conftest.$ac_objext
29447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29448 (eval $ac_compile) 2>conftest.er1
29449 ac_status=$?
29450 grep -v '^ *+' conftest.er1 >conftest.err
29451 rm -f conftest.er1
29452 cat conftest.err >&5
29453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29454 (exit $ac_status); } &&
29455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29457 (eval $ac_try) 2>&5
29458 ac_status=$?
29459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29460 (exit $ac_status); }; } &&
29461 { ac_try='test -s conftest.$ac_objext'
29462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29463 (eval $ac_try) 2>&5
29464 ac_status=$?
29465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29466 (exit $ac_status); }; }; then
29467 echo "$as_me:$LINENO: result: yes" >&5
29468echo "${ECHO_T}yes" >&6
29469 cat >>confdefs.h <<\_ACEOF
29470#define __Point__ 1
29471_ACEOF
29472
29473
29474else
29475 echo "$as_me: failed program was:" >&5
29476sed 's/^/| /' conftest.$ac_ext >&5
29477
29478{ { echo "$as_me:$LINENO: error: no
29479See \`config.log' for more details." >&5
29480echo "$as_me: error: no
29481See \`config.log' for more details." >&2;}
29482 { (exit 1); exit 1; }; }
29483
29484fi
29485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29486
29487fi
29488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29489 ac_ext=c
29490ac_cpp='$CPP $CPPFLAGS'
29491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29493ac_compiler_gnu=$ac_cv_c_compiler_gnu
29494
29495fi
29496
a848cd7e 29497if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
29498 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
29499 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 29500
a848cd7e 29501 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
29502
29503 # Extract the first word of "Rez", so it can be a program name with args.
29504set dummy Rez; ac_word=$2
29505echo "$as_me:$LINENO: checking for $ac_word" >&5
29506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29507if test "${ac_cv_prog_RESCOMP+set}" = set; then
29508 echo $ECHO_N "(cached) $ECHO_C" >&6
29509else
29510 if test -n "$RESCOMP"; then
29511 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
29512else
29513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29514for as_dir in $PATH
29515do
29516 IFS=$as_save_IFS
29517 test -z "$as_dir" && as_dir=.
29518 for ac_exec_ext in '' $ac_executable_extensions; do
29519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29520 ac_cv_prog_RESCOMP="Rez"
29521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29522 break 2
29523 fi
29524done
29525done
29526
29527 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
29528fi
29529fi
29530RESCOMP=$ac_cv_prog_RESCOMP
29531if test -n "$RESCOMP"; then
29532 echo "$as_me:$LINENO: result: $RESCOMP" >&5
29533echo "${ECHO_T}$RESCOMP" >&6
29534else
29535 echo "$as_me:$LINENO: result: no" >&5
29536echo "${ECHO_T}no" >&6
29537fi
29538
29539 # Extract the first word of "DeRez", so it can be a program name with args.
29540set dummy DeRez; ac_word=$2
29541echo "$as_me:$LINENO: checking for $ac_word" >&5
29542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29543if test "${ac_cv_prog_DEREZ+set}" = set; then
29544 echo $ECHO_N "(cached) $ECHO_C" >&6
29545else
29546 if test -n "$DEREZ"; then
29547 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
29548else
29549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29550for as_dir in $PATH
29551do
29552 IFS=$as_save_IFS
29553 test -z "$as_dir" && as_dir=.
29554 for ac_exec_ext in '' $ac_executable_extensions; do
29555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29556 ac_cv_prog_DEREZ="DeRez"
29557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29558 break 2
29559 fi
29560done
29561done
29562
29563 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
29564fi
29565fi
29566DEREZ=$ac_cv_prog_DEREZ
29567if test -n "$DEREZ"; then
29568 echo "$as_me:$LINENO: result: $DEREZ" >&5
29569echo "${ECHO_T}$DEREZ" >&6
29570else
29571 echo "$as_me:$LINENO: result: no" >&5
29572echo "${ECHO_T}no" >&6
29573fi
29574
29575 # Extract the first word of "SetFile", so it can be a program name with args.
29576set dummy SetFile; ac_word=$2
29577echo "$as_me:$LINENO: checking for $ac_word" >&5
29578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29579if test "${ac_cv_prog_SETFILE+set}" = set; then
29580 echo $ECHO_N "(cached) $ECHO_C" >&6
29581else
29582 if test -n "$SETFILE"; then
29583 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
29584else
29585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29586for as_dir in $PATH
29587do
29588 IFS=$as_save_IFS
29589 test -z "$as_dir" && as_dir=.
29590 for ac_exec_ext in '' $ac_executable_extensions; do
29591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29592 ac_cv_prog_SETFILE="SetFile"
29593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29594 break 2
29595 fi
29596done
29597done
29598
29599 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
29600fi
29601fi
29602SETFILE=$ac_cv_prog_SETFILE
29603if test -n "$SETFILE"; then
29604 echo "$as_me:$LINENO: result: $SETFILE" >&5
29605echo "${ECHO_T}$SETFILE" >&6
29606else
29607 echo "$as_me:$LINENO: result: no" >&5
29608echo "${ECHO_T}no" >&6
29609fi
29610
29611
29612 MACSETFILE="\$(SETFILE)"
29613
29614 if test "$wxUSE_MAC" = 1; then
29615 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
29616
29617 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
29618 else
29619 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
29620 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
29621 fi
29622else
ffa0583f
RL
29623 MACSETFILE="@true"
29624 MACRESWXCONFIG="@true"
a848cd7e
SC
29625
29626 if test "$wxUSE_PM" = 1; then
29627 MACRESCOMP="emxbind -ep"
29628 else
ffa0583f 29629 MACRESCOMP="@true"
a848cd7e
SC
29630 fi
29631fi
29632
29633
29634
29635echo "$as_me:$LINENO: checking for mode_t" >&5
29636echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
29637if test "${ac_cv_type_mode_t+set}" = set; then
29638 echo $ECHO_N "(cached) $ECHO_C" >&6
29639else
29640 cat >conftest.$ac_ext <<_ACEOF
29641/* confdefs.h. */
29642_ACEOF
29643cat confdefs.h >>conftest.$ac_ext
29644cat >>conftest.$ac_ext <<_ACEOF
29645/* end confdefs.h. */
29646$ac_includes_default
29647int
29648main ()
29649{
29650if ((mode_t *) 0)
29651 return 0;
29652if (sizeof (mode_t))
29653 return 0;
29654 ;
29655 return 0;
29656}
29657_ACEOF
29658rm -f conftest.$ac_objext
29659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29660 (eval $ac_compile) 2>conftest.er1
a848cd7e 29661 ac_status=$?
ac1cb8d3
VS
29662 grep -v '^ *+' conftest.er1 >conftest.err
29663 rm -f conftest.er1
29664 cat conftest.err >&5
a848cd7e
SC
29665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29666 (exit $ac_status); } &&
07158944 29667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29669 (eval $ac_try) 2>&5
29670 ac_status=$?
29671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29672 (exit $ac_status); }; } &&
29673 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29675 (eval $ac_try) 2>&5
29676 ac_status=$?
29677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29678 (exit $ac_status); }; }; then
29679 ac_cv_type_mode_t=yes
29680else
29681 echo "$as_me: failed program was:" >&5
29682sed 's/^/| /' conftest.$ac_ext >&5
29683
29684ac_cv_type_mode_t=no
29685fi
ac1cb8d3 29686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29687fi
29688echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
29689echo "${ECHO_T}$ac_cv_type_mode_t" >&6
29690if test $ac_cv_type_mode_t = yes; then
29691 :
29692else
29693
29694cat >>confdefs.h <<_ACEOF
29695#define mode_t int
29696_ACEOF
29697
29698fi
29699
29700echo "$as_me:$LINENO: checking for off_t" >&5
29701echo $ECHO_N "checking for off_t... $ECHO_C" >&6
29702if test "${ac_cv_type_off_t+set}" = set; then
29703 echo $ECHO_N "(cached) $ECHO_C" >&6
29704else
29705 cat >conftest.$ac_ext <<_ACEOF
29706/* confdefs.h. */
29707_ACEOF
29708cat confdefs.h >>conftest.$ac_ext
29709cat >>conftest.$ac_ext <<_ACEOF
29710/* end confdefs.h. */
29711$ac_includes_default
29712int
29713main ()
29714{
29715if ((off_t *) 0)
29716 return 0;
29717if (sizeof (off_t))
29718 return 0;
29719 ;
29720 return 0;
29721}
29722_ACEOF
29723rm -f conftest.$ac_objext
29724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29725 (eval $ac_compile) 2>conftest.er1
a848cd7e 29726 ac_status=$?
ac1cb8d3
VS
29727 grep -v '^ *+' conftest.er1 >conftest.err
29728 rm -f conftest.er1
29729 cat conftest.err >&5
a848cd7e
SC
29730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29731 (exit $ac_status); } &&
07158944 29732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29734 (eval $ac_try) 2>&5
29735 ac_status=$?
29736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29737 (exit $ac_status); }; } &&
29738 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29740 (eval $ac_try) 2>&5
29741 ac_status=$?
29742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29743 (exit $ac_status); }; }; then
29744 ac_cv_type_off_t=yes
29745else
29746 echo "$as_me: failed program was:" >&5
29747sed 's/^/| /' conftest.$ac_ext >&5
29748
29749ac_cv_type_off_t=no
29750fi
ac1cb8d3 29751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29752fi
29753echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
29754echo "${ECHO_T}$ac_cv_type_off_t" >&6
29755if test $ac_cv_type_off_t = yes; then
29756 :
29757else
29758
29759cat >>confdefs.h <<_ACEOF
29760#define off_t long
29761_ACEOF
29762
29763fi
29764
29765echo "$as_me:$LINENO: checking for pid_t" >&5
29766echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
29767if test "${ac_cv_type_pid_t+set}" = set; then
29768 echo $ECHO_N "(cached) $ECHO_C" >&6
29769else
29770 cat >conftest.$ac_ext <<_ACEOF
29771/* confdefs.h. */
29772_ACEOF
29773cat confdefs.h >>conftest.$ac_ext
29774cat >>conftest.$ac_ext <<_ACEOF
29775/* end confdefs.h. */
29776$ac_includes_default
29777int
29778main ()
29779{
29780if ((pid_t *) 0)
29781 return 0;
29782if (sizeof (pid_t))
29783 return 0;
29784 ;
29785 return 0;
29786}
29787_ACEOF
29788rm -f conftest.$ac_objext
29789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29790 (eval $ac_compile) 2>conftest.er1
a848cd7e 29791 ac_status=$?
ac1cb8d3
VS
29792 grep -v '^ *+' conftest.er1 >conftest.err
29793 rm -f conftest.er1
29794 cat conftest.err >&5
a848cd7e
SC
29795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29796 (exit $ac_status); } &&
07158944 29797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29799 (eval $ac_try) 2>&5
29800 ac_status=$?
29801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29802 (exit $ac_status); }; } &&
29803 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29805 (eval $ac_try) 2>&5
29806 ac_status=$?
29807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29808 (exit $ac_status); }; }; then
29809 ac_cv_type_pid_t=yes
29810else
29811 echo "$as_me: failed program was:" >&5
29812sed 's/^/| /' conftest.$ac_ext >&5
29813
29814ac_cv_type_pid_t=no
29815fi
ac1cb8d3 29816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29817fi
29818echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29819echo "${ECHO_T}$ac_cv_type_pid_t" >&6
29820if test $ac_cv_type_pid_t = yes; then
29821 :
29822else
29823
29824cat >>confdefs.h <<_ACEOF
29825#define pid_t int
29826_ACEOF
29827
29828fi
29829
29830echo "$as_me:$LINENO: checking for size_t" >&5
29831echo $ECHO_N "checking for size_t... $ECHO_C" >&6
29832if test "${ac_cv_type_size_t+set}" = set; then
29833 echo $ECHO_N "(cached) $ECHO_C" >&6
29834else
29835 cat >conftest.$ac_ext <<_ACEOF
29836/* confdefs.h. */
29837_ACEOF
29838cat confdefs.h >>conftest.$ac_ext
29839cat >>conftest.$ac_ext <<_ACEOF
29840/* end confdefs.h. */
29841$ac_includes_default
29842int
29843main ()
29844{
29845if ((size_t *) 0)
29846 return 0;
29847if (sizeof (size_t))
29848 return 0;
29849 ;
29850 return 0;
29851}
29852_ACEOF
29853rm -f conftest.$ac_objext
29854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29855 (eval $ac_compile) 2>conftest.er1
a848cd7e 29856 ac_status=$?
ac1cb8d3
VS
29857 grep -v '^ *+' conftest.er1 >conftest.err
29858 rm -f conftest.er1
29859 cat conftest.err >&5
a848cd7e
SC
29860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29861 (exit $ac_status); } &&
07158944 29862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29864 (eval $ac_try) 2>&5
29865 ac_status=$?
29866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29867 (exit $ac_status); }; } &&
29868 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29870 (eval $ac_try) 2>&5
29871 ac_status=$?
29872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29873 (exit $ac_status); }; }; then
29874 ac_cv_type_size_t=yes
29875else
29876 echo "$as_me: failed program was:" >&5
29877sed 's/^/| /' conftest.$ac_ext >&5
29878
29879ac_cv_type_size_t=no
29880fi
ac1cb8d3 29881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29882fi
29883echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29884echo "${ECHO_T}$ac_cv_type_size_t" >&6
29885if test $ac_cv_type_size_t = yes; then
29886 :
29887else
29888
29889cat >>confdefs.h <<_ACEOF
29890#define size_t unsigned
29891_ACEOF
29892
29893fi
29894
29895echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
29896echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
29897if test "${ac_cv_type_uid_t+set}" = set; then
29898 echo $ECHO_N "(cached) $ECHO_C" >&6
29899else
29900 cat >conftest.$ac_ext <<_ACEOF
29901/* confdefs.h. */
29902_ACEOF
29903cat confdefs.h >>conftest.$ac_ext
29904cat >>conftest.$ac_ext <<_ACEOF
29905/* end confdefs.h. */
29906#include <sys/types.h>
29907
29908_ACEOF
29909if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29910 $EGREP "uid_t" >/dev/null 2>&1; then
29911 ac_cv_type_uid_t=yes
29912else
29913 ac_cv_type_uid_t=no
29914fi
29915rm -f conftest*
29916
29917fi
29918echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
29919echo "${ECHO_T}$ac_cv_type_uid_t" >&6
29920if test $ac_cv_type_uid_t = no; then
29921
29922cat >>confdefs.h <<\_ACEOF
29923#define uid_t int
29924_ACEOF
29925
29926
29927cat >>confdefs.h <<\_ACEOF
29928#define gid_t int
29929_ACEOF
29930
29931fi
29932
29933
d51253e8
RL
29934echo "$as_me:$LINENO: checking for ssize_t" >&5
29935echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
29936if test "${ac_cv_type_ssize_t+set}" = set; then
29937 echo $ECHO_N "(cached) $ECHO_C" >&6
29938else
29939 cat >conftest.$ac_ext <<_ACEOF
29940/* confdefs.h. */
29941_ACEOF
29942cat confdefs.h >>conftest.$ac_ext
29943cat >>conftest.$ac_ext <<_ACEOF
29944/* end confdefs.h. */
29945$ac_includes_default
29946int
29947main ()
29948{
29949if ((ssize_t *) 0)
29950 return 0;
29951if (sizeof (ssize_t))
29952 return 0;
29953 ;
29954 return 0;
29955}
29956_ACEOF
29957rm -f conftest.$ac_objext
29958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29959 (eval $ac_compile) 2>conftest.er1
29960 ac_status=$?
29961 grep -v '^ *+' conftest.er1 >conftest.err
29962 rm -f conftest.er1
29963 cat conftest.err >&5
29964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29965 (exit $ac_status); } &&
07158944 29966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
29967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29968 (eval $ac_try) 2>&5
29969 ac_status=$?
29970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29971 (exit $ac_status); }; } &&
29972 { ac_try='test -s conftest.$ac_objext'
29973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29974 (eval $ac_try) 2>&5
29975 ac_status=$?
29976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29977 (exit $ac_status); }; }; then
29978 ac_cv_type_ssize_t=yes
29979else
29980 echo "$as_me: failed program was:" >&5
29981sed 's/^/| /' conftest.$ac_ext >&5
29982
29983ac_cv_type_ssize_t=no
29984fi
29985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29986fi
29987echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
29988echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
29989if test $ac_cv_type_ssize_t = yes; then
29990
29991cat >>confdefs.h <<_ACEOF
29992#define HAVE_SSIZE_T 1
29993_ACEOF
29994
29995
29996fi
29997
29998
a848cd7e
SC
29999
30000
30001ac_ext=cc
30002ac_cpp='$CXXCPP $CPPFLAGS'
30003ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30004ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30005ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30006
30007echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
30008echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
30009if test "${wx_cv_size_t_is_uint+set}" = set; then
30010 echo $ECHO_N "(cached) $ECHO_C" >&6
30011else
30012
30013 cat >conftest.$ac_ext <<_ACEOF
30014/* confdefs.h. */
30015_ACEOF
30016cat confdefs.h >>conftest.$ac_ext
30017cat >>conftest.$ac_ext <<_ACEOF
30018/* end confdefs.h. */
30019#include <stddef.h>
30020int
30021main ()
30022{
30023
30024 return 0; }
30025
30026 struct Foo { void foo(size_t); void foo(unsigned int); };
30027
30028 int bar() {
30029
30030 ;
30031 return 0;
30032}
30033_ACEOF
30034rm -f conftest.$ac_objext
30035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30036 (eval $ac_compile) 2>conftest.er1
a848cd7e 30037 ac_status=$?
ac1cb8d3
VS
30038 grep -v '^ *+' conftest.er1 >conftest.err
30039 rm -f conftest.er1
30040 cat conftest.err >&5
a848cd7e
SC
30041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30042 (exit $ac_status); } &&
07158944 30043 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30045 (eval $ac_try) 2>&5
30046 ac_status=$?
30047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30048 (exit $ac_status); }; } &&
30049 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30051 (eval $ac_try) 2>&5
30052 ac_status=$?
30053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30054 (exit $ac_status); }; }; then
30055 wx_cv_size_t_is_uint=no
30056else
30057 echo "$as_me: failed program was:" >&5
30058sed 's/^/| /' conftest.$ac_ext >&5
30059
30060wx_cv_size_t_is_uint=yes
30061
30062fi
ac1cb8d3 30063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30064
30065
30066fi
30067echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
30068echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
30069
30070if test "$wx_cv_size_t_is_uint" = "yes"; then
30071 cat >>confdefs.h <<\_ACEOF
30072#define wxSIZE_T_IS_UINT 1
30073_ACEOF
30074
30075else
30076 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
30077echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
30078if test "${wx_cv_size_t_is_ulong+set}" = set; then
30079 echo $ECHO_N "(cached) $ECHO_C" >&6
30080else
30081 cat >conftest.$ac_ext <<_ACEOF
30082/* confdefs.h. */
30083_ACEOF
30084cat confdefs.h >>conftest.$ac_ext
30085cat >>conftest.$ac_ext <<_ACEOF
30086/* end confdefs.h. */
30087#include <stddef.h>
30088int
30089main ()
30090{
30091
30092 return 0; }
30093
30094 struct Foo { void foo(size_t); void foo(unsigned long); };
30095
30096 int bar() {
30097
30098 ;
30099 return 0;
30100}
30101_ACEOF
30102rm -f conftest.$ac_objext
30103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30104 (eval $ac_compile) 2>conftest.er1
a848cd7e 30105 ac_status=$?
ac1cb8d3
VS
30106 grep -v '^ *+' conftest.er1 >conftest.err
30107 rm -f conftest.er1
30108 cat conftest.err >&5
a848cd7e
SC
30109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30110 (exit $ac_status); } &&
07158944 30111 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30113 (eval $ac_try) 2>&5
30114 ac_status=$?
30115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30116 (exit $ac_status); }; } &&
30117 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30119 (eval $ac_try) 2>&5
30120 ac_status=$?
30121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30122 (exit $ac_status); }; }; then
30123 wx_cv_size_t_is_ulong=no
30124else
30125 echo "$as_me: failed program was:" >&5
30126sed 's/^/| /' conftest.$ac_ext >&5
30127
30128wx_cv_size_t_is_ulong=yes
30129
30130fi
ac1cb8d3 30131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30132
30133fi
30134echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
30135echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
30136
30137 if test "$wx_cv_size_t_is_ulong" = "yes"; then
30138 cat >>confdefs.h <<\_ACEOF
30139#define wxSIZE_T_IS_ULONG 1
30140_ACEOF
30141
30142 fi
30143fi
30144
30145ac_ext=c
30146ac_cpp='$CPP $CPPFLAGS'
30147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30149ac_compiler_gnu=$ac_cv_c_compiler_gnu
30150
30151
30152
30153echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
30154echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
30155if test "${wx_cv_struct_pw_gecos+set}" = set; then
30156 echo $ECHO_N "(cached) $ECHO_C" >&6
30157else
30158
30159 cat >conftest.$ac_ext <<_ACEOF
30160/* confdefs.h. */
30161_ACEOF
30162cat confdefs.h >>conftest.$ac_ext
30163cat >>conftest.$ac_ext <<_ACEOF
30164/* end confdefs.h. */
30165#include <pwd.h>
30166int
30167main ()
30168{
30169
30170 char *p;
30171 struct passwd *pw;
30172 p = pw->pw_gecos;
30173
30174 ;
30175 return 0;
30176}
30177_ACEOF
30178rm -f conftest.$ac_objext
30179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30180 (eval $ac_compile) 2>conftest.er1
a848cd7e 30181 ac_status=$?
ac1cb8d3
VS
30182 grep -v '^ *+' conftest.er1 >conftest.err
30183 rm -f conftest.er1
30184 cat conftest.err >&5
a848cd7e
SC
30185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30186 (exit $ac_status); } &&
07158944 30187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30189 (eval $ac_try) 2>&5
30190 ac_status=$?
30191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30192 (exit $ac_status); }; } &&
30193 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30195 (eval $ac_try) 2>&5
30196 ac_status=$?
30197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30198 (exit $ac_status); }; }; then
30199
30200 wx_cv_struct_pw_gecos=yes
30201
30202else
30203 echo "$as_me: failed program was:" >&5
30204sed 's/^/| /' conftest.$ac_ext >&5
30205
30206
30207 wx_cv_struct_pw_gecos=no
30208
30209
30210fi
ac1cb8d3 30211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30212
30213
30214fi
30215echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
30216echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
30217
30218if test "$wx_cv_struct_pw_gecos" = "yes"; then
30219 cat >>confdefs.h <<\_ACEOF
30220#define HAVE_PW_GECOS 1
30221_ACEOF
30222
30223fi
30224
30225
238ecede 30226if test "$ac_cv_sizeof_wchar_t" != "0"; then
a848cd7e
SC
30227 cat >>confdefs.h <<\_ACEOF
30228#define wxUSE_WCHAR_T 1
30229_ACEOF
30230
30231
30232 WCSLEN_FOUND=0
30233 WCHAR_LINK=
30234
30235for ac_func in wcslen
30236do
30237as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30238echo "$as_me:$LINENO: checking for $ac_func" >&5
30239echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30240if eval "test \"\${$as_ac_var+set}\" = set"; then
30241 echo $ECHO_N "(cached) $ECHO_C" >&6
30242else
30243 cat >conftest.$ac_ext <<_ACEOF
30244/* confdefs.h. */
30245_ACEOF
30246cat confdefs.h >>conftest.$ac_ext
30247cat >>conftest.$ac_ext <<_ACEOF
30248/* end confdefs.h. */
ac1cb8d3
VS
30249/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30251#define $ac_func innocuous_$ac_func
30252
a848cd7e
SC
30253/* System header to define __stub macros and hopefully few prototypes,
30254 which can conflict with char $ac_func (); below.
30255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30256 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30257
a848cd7e
SC
30258#ifdef __STDC__
30259# include <limits.h>
30260#else
30261# include <assert.h>
30262#endif
ac1cb8d3
VS
30263
30264#undef $ac_func
30265
a848cd7e
SC
30266/* Override any gcc2 internal prototype to avoid an error. */
30267#ifdef __cplusplus
30268extern "C"
30269{
30270#endif
30271/* We use char because int might match the return type of a gcc2
30272 builtin and then its argument prototype would still apply. */
30273char $ac_func ();
30274/* The GNU C library defines this for functions which it implements
30275 to always fail with ENOSYS. Some functions are actually named
30276 something starting with __ and the normal name is an alias. */
30277#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30278choke me
30279#else
30280char (*f) () = $ac_func;
30281#endif
30282#ifdef __cplusplus
30283}
30284#endif
30285
30286int
30287main ()
30288{
30289return f != $ac_func;
30290 ;
30291 return 0;
30292}
30293_ACEOF
30294rm -f conftest.$ac_objext conftest$ac_exeext
30295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30296 (eval $ac_link) 2>conftest.er1
a848cd7e 30297 ac_status=$?
ac1cb8d3
VS
30298 grep -v '^ *+' conftest.er1 >conftest.err
30299 rm -f conftest.er1
30300 cat conftest.err >&5
a848cd7e
SC
30301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30302 (exit $ac_status); } &&
07158944 30303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30305 (eval $ac_try) 2>&5
30306 ac_status=$?
30307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30308 (exit $ac_status); }; } &&
30309 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30311 (eval $ac_try) 2>&5
30312 ac_status=$?
30313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30314 (exit $ac_status); }; }; then
30315 eval "$as_ac_var=yes"
30316else
30317 echo "$as_me: failed program was:" >&5
30318sed 's/^/| /' conftest.$ac_ext >&5
30319
30320eval "$as_ac_var=no"
30321fi
ac1cb8d3
VS
30322rm -f conftest.err conftest.$ac_objext \
30323 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30324fi
30325echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30326echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30327if test `eval echo '${'$as_ac_var'}'` = yes; then
30328 cat >>confdefs.h <<_ACEOF
30329#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30330_ACEOF
30331 WCSLEN_FOUND=1
30332fi
30333done
30334
30335
30336 if test "$WCSLEN_FOUND" = 0; then
30337 if test "$TOOLKIT" = "MSW"; then
30338 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
30339echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
30340if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
30341 echo $ECHO_N "(cached) $ECHO_C" >&6
30342else
30343 ac_check_lib_save_LIBS=$LIBS
30344LIBS="-lmsvcrt $LIBS"
30345cat >conftest.$ac_ext <<_ACEOF
30346/* confdefs.h. */
30347_ACEOF
30348cat confdefs.h >>conftest.$ac_ext
30349cat >>conftest.$ac_ext <<_ACEOF
30350/* end confdefs.h. */
30351
30352/* Override any gcc2 internal prototype to avoid an error. */
30353#ifdef __cplusplus
30354extern "C"
30355#endif
30356/* We use char because int might match the return type of a gcc2
30357 builtin and then its argument prototype would still apply. */
30358char wcslen ();
30359int
30360main ()
30361{
30362wcslen ();
30363 ;
30364 return 0;
30365}
30366_ACEOF
30367rm -f conftest.$ac_objext conftest$ac_exeext
30368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30369 (eval $ac_link) 2>conftest.er1
a848cd7e 30370 ac_status=$?
ac1cb8d3
VS
30371 grep -v '^ *+' conftest.er1 >conftest.err
30372 rm -f conftest.er1
30373 cat conftest.err >&5
a848cd7e
SC
30374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30375 (exit $ac_status); } &&
07158944 30376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30378 (eval $ac_try) 2>&5
30379 ac_status=$?
30380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30381 (exit $ac_status); }; } &&
30382 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30384 (eval $ac_try) 2>&5
30385 ac_status=$?
30386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30387 (exit $ac_status); }; }; then
30388 ac_cv_lib_msvcrt_wcslen=yes
30389else
30390 echo "$as_me: failed program was:" >&5
30391sed 's/^/| /' conftest.$ac_ext >&5
30392
30393ac_cv_lib_msvcrt_wcslen=no
30394fi
ac1cb8d3
VS
30395rm -f conftest.err conftest.$ac_objext \
30396 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30397LIBS=$ac_check_lib_save_LIBS
30398fi
30399echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
30400echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
30401if test $ac_cv_lib_msvcrt_wcslen = yes; then
30402 WCHAR_OK=1
30403fi
30404
30405 else
30406 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
30407echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
30408if test "${ac_cv_lib_w_wcslen+set}" = set; then
30409 echo $ECHO_N "(cached) $ECHO_C" >&6
30410else
30411 ac_check_lib_save_LIBS=$LIBS
30412LIBS="-lw $LIBS"
30413cat >conftest.$ac_ext <<_ACEOF
30414/* confdefs.h. */
30415_ACEOF
30416cat confdefs.h >>conftest.$ac_ext
30417cat >>conftest.$ac_ext <<_ACEOF
30418/* end confdefs.h. */
30419
30420/* Override any gcc2 internal prototype to avoid an error. */
30421#ifdef __cplusplus
30422extern "C"
30423#endif
30424/* We use char because int might match the return type of a gcc2
30425 builtin and then its argument prototype would still apply. */
30426char wcslen ();
30427int
30428main ()
30429{
30430wcslen ();
30431 ;
30432 return 0;
30433}
30434_ACEOF
30435rm -f conftest.$ac_objext conftest$ac_exeext
30436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30437 (eval $ac_link) 2>conftest.er1
a848cd7e 30438 ac_status=$?
ac1cb8d3
VS
30439 grep -v '^ *+' conftest.er1 >conftest.err
30440 rm -f conftest.er1
30441 cat conftest.err >&5
a848cd7e
SC
30442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30443 (exit $ac_status); } &&
07158944 30444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30446 (eval $ac_try) 2>&5
30447 ac_status=$?
30448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30449 (exit $ac_status); }; } &&
30450 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30452 (eval $ac_try) 2>&5
30453 ac_status=$?
30454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30455 (exit $ac_status); }; }; then
30456 ac_cv_lib_w_wcslen=yes
30457else
30458 echo "$as_me: failed program was:" >&5
30459sed 's/^/| /' conftest.$ac_ext >&5
30460
30461ac_cv_lib_w_wcslen=no
30462fi
ac1cb8d3
VS
30463rm -f conftest.err conftest.$ac_objext \
30464 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30465LIBS=$ac_check_lib_save_LIBS
30466fi
30467echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
30468echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
30469if test $ac_cv_lib_w_wcslen = yes; then
30470
30471 WCHAR_LINK=" -lw"
30472 WCSLEN_FOUND=1
30473
30474fi
30475
30476 fi
30477 fi
30478
30479 if test "$WCSLEN_FOUND" = 1; then
30480 cat >>confdefs.h <<\_ACEOF
30481#define HAVE_WCSLEN 1
30482_ACEOF
30483
30484 fi
30485
81f90336 30486 if test "$USE_HPUX" = 1; then
473276a9
VS
30487 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
30488 fi
30489
a848cd7e
SC
30490
30491for ac_func in wcsrtombs
30492do
30493as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30494echo "$as_me:$LINENO: checking for $ac_func" >&5
30495echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30496if eval "test \"\${$as_ac_var+set}\" = set"; then
30497 echo $ECHO_N "(cached) $ECHO_C" >&6
30498else
30499 cat >conftest.$ac_ext <<_ACEOF
30500/* confdefs.h. */
30501_ACEOF
30502cat confdefs.h >>conftest.$ac_ext
30503cat >>conftest.$ac_ext <<_ACEOF
30504/* end confdefs.h. */
ac1cb8d3
VS
30505/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30507#define $ac_func innocuous_$ac_func
30508
a848cd7e
SC
30509/* System header to define __stub macros and hopefully few prototypes,
30510 which can conflict with char $ac_func (); below.
30511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30512 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30513
a848cd7e
SC
30514#ifdef __STDC__
30515# include <limits.h>
30516#else
30517# include <assert.h>
30518#endif
ac1cb8d3
VS
30519
30520#undef $ac_func
30521
a848cd7e
SC
30522/* Override any gcc2 internal prototype to avoid an error. */
30523#ifdef __cplusplus
30524extern "C"
30525{
30526#endif
30527/* We use char because int might match the return type of a gcc2
30528 builtin and then its argument prototype would still apply. */
30529char $ac_func ();
30530/* The GNU C library defines this for functions which it implements
30531 to always fail with ENOSYS. Some functions are actually named
30532 something starting with __ and the normal name is an alias. */
30533#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30534choke me
30535#else
30536char (*f) () = $ac_func;
30537#endif
30538#ifdef __cplusplus
30539}
30540#endif
30541
30542int
30543main ()
30544{
30545return f != $ac_func;
30546 ;
30547 return 0;
30548}
30549_ACEOF
30550rm -f conftest.$ac_objext conftest$ac_exeext
30551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30552 (eval $ac_link) 2>conftest.er1
a848cd7e 30553 ac_status=$?
ac1cb8d3
VS
30554 grep -v '^ *+' conftest.er1 >conftest.err
30555 rm -f conftest.er1
30556 cat conftest.err >&5
a848cd7e
SC
30557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30558 (exit $ac_status); } &&
07158944 30559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30561 (eval $ac_try) 2>&5
30562 ac_status=$?
30563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30564 (exit $ac_status); }; } &&
30565 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30567 (eval $ac_try) 2>&5
30568 ac_status=$?
30569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30570 (exit $ac_status); }; }; then
30571 eval "$as_ac_var=yes"
30572else
30573 echo "$as_me: failed program was:" >&5
30574sed 's/^/| /' conftest.$ac_ext >&5
30575
30576eval "$as_ac_var=no"
30577fi
ac1cb8d3
VS
30578rm -f conftest.err conftest.$ac_objext \
30579 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30580fi
30581echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30582echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30583if test `eval echo '${'$as_ac_var'}'` = yes; then
30584 cat >>confdefs.h <<_ACEOF
30585#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30586_ACEOF
30587
30588fi
30589done
30590
30591else
30592 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
30593echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
30594fi
30595
30596
30597
30598ac_ext=cc
30599ac_cpp='$CXXCPP $CPPFLAGS'
30600ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30601ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30602ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30603
30604
30605
30606for ac_func in vsnprintf
30607do
30608as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30609echo "$as_me:$LINENO: checking for $ac_func" >&5
30610echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30611if eval "test \"\${$as_ac_var+set}\" = set"; then
30612 echo $ECHO_N "(cached) $ECHO_C" >&6
30613else
30614 cat >conftest.$ac_ext <<_ACEOF
30615/* confdefs.h. */
30616_ACEOF
30617cat confdefs.h >>conftest.$ac_ext
30618cat >>conftest.$ac_ext <<_ACEOF
30619/* end confdefs.h. */
ac1cb8d3
VS
30620/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30621 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30622#define $ac_func innocuous_$ac_func
30623
a848cd7e
SC
30624/* System header to define __stub macros and hopefully few prototypes,
30625 which can conflict with char $ac_func (); below.
30626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30627 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30628
a848cd7e
SC
30629#ifdef __STDC__
30630# include <limits.h>
30631#else
30632# include <assert.h>
30633#endif
ac1cb8d3
VS
30634
30635#undef $ac_func
30636
a848cd7e
SC
30637/* Override any gcc2 internal prototype to avoid an error. */
30638#ifdef __cplusplus
30639extern "C"
30640{
30641#endif
30642/* We use char because int might match the return type of a gcc2
30643 builtin and then its argument prototype would still apply. */
30644char $ac_func ();
30645/* The GNU C library defines this for functions which it implements
30646 to always fail with ENOSYS. Some functions are actually named
30647 something starting with __ and the normal name is an alias. */
30648#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30649choke me
30650#else
30651char (*f) () = $ac_func;
30652#endif
30653#ifdef __cplusplus
30654}
30655#endif
30656
30657int
30658main ()
30659{
30660return f != $ac_func;
30661 ;
30662 return 0;
30663}
30664_ACEOF
30665rm -f conftest.$ac_objext conftest$ac_exeext
30666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30667 (eval $ac_link) 2>conftest.er1
a848cd7e 30668 ac_status=$?
ac1cb8d3
VS
30669 grep -v '^ *+' conftest.er1 >conftest.err
30670 rm -f conftest.er1
30671 cat conftest.err >&5
a848cd7e
SC
30672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30673 (exit $ac_status); } &&
07158944 30674 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30676 (eval $ac_try) 2>&5
30677 ac_status=$?
30678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30679 (exit $ac_status); }; } &&
30680 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30682 (eval $ac_try) 2>&5
30683 ac_status=$?
30684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30685 (exit $ac_status); }; }; then
30686 eval "$as_ac_var=yes"
30687else
30688 echo "$as_me: failed program was:" >&5
30689sed 's/^/| /' conftest.$ac_ext >&5
30690
30691eval "$as_ac_var=no"
30692fi
ac1cb8d3
VS
30693rm -f conftest.err conftest.$ac_objext \
30694 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30695fi
30696echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30697echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30698if test `eval echo '${'$as_ac_var'}'` = yes; then
30699 cat >>confdefs.h <<_ACEOF
30700#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30701_ACEOF
30702
30703fi
30704done
30705
30706
30707if test "$ac_cv_func_vsnprintf" = "yes"; then
30708 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
30709echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
30710if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
30711 echo $ECHO_N "(cached) $ECHO_C" >&6
30712else
30713
30714 cat >conftest.$ac_ext <<_ACEOF
30715/* confdefs.h. */
30716_ACEOF
30717cat confdefs.h >>conftest.$ac_ext
30718cat >>conftest.$ac_ext <<_ACEOF
30719/* end confdefs.h. */
30720
30721 #include <stdio.h>
30722 #include <stdarg.h>
30723
30724int
30725main ()
30726{
30727
30728 char *buf;
30729 va_list ap;
30730 vsnprintf(buf, 10u, "%s", ap);
30731
30732 ;
30733 return 0;
30734}
30735_ACEOF
30736rm -f conftest.$ac_objext
30737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30738 (eval $ac_compile) 2>conftest.er1
a848cd7e 30739 ac_status=$?
ac1cb8d3
VS
30740 grep -v '^ *+' conftest.er1 >conftest.err
30741 rm -f conftest.er1
30742 cat conftest.err >&5
a848cd7e
SC
30743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30744 (exit $ac_status); } &&
07158944 30745 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30747 (eval $ac_try) 2>&5
30748 ac_status=$?
30749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30750 (exit $ac_status); }; } &&
30751 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30753 (eval $ac_try) 2>&5
30754 ac_status=$?
30755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30756 (exit $ac_status); }; }; then
30757 wx_cv_func_vsnprintf_decl=yes
30758else
30759 echo "$as_me: failed program was:" >&5
30760sed 's/^/| /' conftest.$ac_ext >&5
30761
c122b164
DE
30762
30763 cat >conftest.$ac_ext <<_ACEOF
30764/* confdefs.h. */
30765_ACEOF
30766cat confdefs.h >>conftest.$ac_ext
30767cat >>conftest.$ac_ext <<_ACEOF
30768/* end confdefs.h. */
30769
30770 #include <stdio.h>
30771 #include <stdarg.h>
30772 using namespace std;
30773
30774int
30775main ()
30776{
30777
30778 char *buf;
30779 va_list ap;
30780 vsnprintf(buf, 10u, "%s", ap);
30781
30782 ;
30783 return 0;
30784}
30785_ACEOF
30786rm -f conftest.$ac_objext
30787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30788 (eval $ac_compile) 2>conftest.er1
30789 ac_status=$?
30790 grep -v '^ *+' conftest.er1 >conftest.err
30791 rm -f conftest.er1
30792 cat conftest.err >&5
30793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30794 (exit $ac_status); } &&
07158944 30795 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
30796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30797 (eval $ac_try) 2>&5
30798 ac_status=$?
30799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30800 (exit $ac_status); }; } &&
30801 { ac_try='test -s conftest.$ac_objext'
30802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30803 (eval $ac_try) 2>&5
30804 ac_status=$?
30805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30806 (exit $ac_status); }; }; then
30807 wx_cv_func_vsnprintf_decl=yes
30808else
30809 echo "$as_me: failed program was:" >&5
30810sed 's/^/| /' conftest.$ac_ext >&5
30811
a848cd7e
SC
30812wx_cv_func_vsnprintf_decl=no
30813
30814fi
ac1cb8d3 30815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30816
30817
c122b164
DE
30818fi
30819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30820
30821
a848cd7e
SC
30822fi
30823echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
30824echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
30825
30826 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
30827 cat >>confdefs.h <<\_ACEOF
30828#define HAVE_VSNPRINTF_DECL 1
30829_ACEOF
30830
30831 fi
30832fi
30833
30834if test "$wxUSE_UNICODE" = yes; then
30835
30836
30837
fbe47c7b
VS
30838
30839
30840
30841for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
30842do
30843as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30844echo "$as_me:$LINENO: checking for $ac_func" >&5
30845echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30846if eval "test \"\${$as_ac_var+set}\" = set"; then
30847 echo $ECHO_N "(cached) $ECHO_C" >&6
30848else
30849 cat >conftest.$ac_ext <<_ACEOF
30850/* confdefs.h. */
30851_ACEOF
30852cat confdefs.h >>conftest.$ac_ext
30853cat >>conftest.$ac_ext <<_ACEOF
30854/* end confdefs.h. */
ac1cb8d3
VS
30855/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30857#define $ac_func innocuous_$ac_func
30858
a848cd7e
SC
30859/* System header to define __stub macros and hopefully few prototypes,
30860 which can conflict with char $ac_func (); below.
30861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30862 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30863
a848cd7e
SC
30864#ifdef __STDC__
30865# include <limits.h>
30866#else
30867# include <assert.h>
30868#endif
ac1cb8d3
VS
30869
30870#undef $ac_func
30871
a848cd7e
SC
30872/* Override any gcc2 internal prototype to avoid an error. */
30873#ifdef __cplusplus
30874extern "C"
30875{
30876#endif
30877/* We use char because int might match the return type of a gcc2
30878 builtin and then its argument prototype would still apply. */
30879char $ac_func ();
30880/* The GNU C library defines this for functions which it implements
30881 to always fail with ENOSYS. Some functions are actually named
30882 something starting with __ and the normal name is an alias. */
30883#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30884choke me
30885#else
30886char (*f) () = $ac_func;
30887#endif
30888#ifdef __cplusplus
30889}
30890#endif
30891
30892int
30893main ()
30894{
30895return f != $ac_func;
30896 ;
30897 return 0;
30898}
30899_ACEOF
30900rm -f conftest.$ac_objext conftest$ac_exeext
30901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30902 (eval $ac_link) 2>conftest.er1
a848cd7e 30903 ac_status=$?
ac1cb8d3
VS
30904 grep -v '^ *+' conftest.er1 >conftest.err
30905 rm -f conftest.er1
30906 cat conftest.err >&5
a848cd7e
SC
30907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30908 (exit $ac_status); } &&
07158944 30909 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30911 (eval $ac_try) 2>&5
30912 ac_status=$?
30913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30914 (exit $ac_status); }; } &&
30915 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30917 (eval $ac_try) 2>&5
30918 ac_status=$?
30919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30920 (exit $ac_status); }; }; then
30921 eval "$as_ac_var=yes"
30922else
30923 echo "$as_me: failed program was:" >&5
30924sed 's/^/| /' conftest.$ac_ext >&5
30925
30926eval "$as_ac_var=no"
30927fi
ac1cb8d3
VS
30928rm -f conftest.err conftest.$ac_objext \
30929 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30930fi
30931echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30932echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30933if test `eval echo '${'$as_ac_var'}'` = yes; then
30934 cat >>confdefs.h <<_ACEOF
30935#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30936_ACEOF
30937
30938fi
30939done
30940
30941
30942 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
30943echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
30944 cat >conftest.$ac_ext <<_ACEOF
30945/* confdefs.h. */
30946_ACEOF
30947cat confdefs.h >>conftest.$ac_ext
30948cat >>conftest.$ac_ext <<_ACEOF
30949/* end confdefs.h. */
30950#include <wchar.h>
30951int
30952main ()
30953{
30954&_vsnwprintf;
30955 ;
30956 return 0;
30957}
30958_ACEOF
30959rm -f conftest.$ac_objext
30960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30961 (eval $ac_compile) 2>conftest.er1
a848cd7e 30962 ac_status=$?
ac1cb8d3
VS
30963 grep -v '^ *+' conftest.er1 >conftest.err
30964 rm -f conftest.er1
30965 cat conftest.err >&5
a848cd7e
SC
30966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30967 (exit $ac_status); } &&
07158944 30968 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30970 (eval $ac_try) 2>&5
30971 ac_status=$?
30972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30973 (exit $ac_status); }; } &&
30974 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30976 (eval $ac_try) 2>&5
30977 ac_status=$?
30978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30979 (exit $ac_status); }; }; then
30980 echo "$as_me:$LINENO: result: yes" >&5
30981echo "${ECHO_T}yes" >&6
30982 cat >>confdefs.h <<\_ACEOF
30983#define HAVE__VSNWPRINTF 1
30984_ACEOF
30985
30986else
30987 echo "$as_me: failed program was:" >&5
30988sed 's/^/| /' conftest.$ac_ext >&5
30989
30990echo "$as_me:$LINENO: result: no" >&5
30991echo "${ECHO_T}no" >&6
30992fi
ac1cb8d3 30993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
30994fi
30995
30996ac_ext=c
30997ac_cpp='$CPP $CPPFLAGS'
30998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31000ac_compiler_gnu=$ac_cv_c_compiler_gnu
31001
31002
31003
31004
31005if test "$TOOLKIT" != "MSW"; then
31006
31007
31008
31009
31010ac_ext=cc
31011ac_cpp='$CXXCPP $CPPFLAGS'
31012ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31013ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31014ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31015
31016
31017
31018
31019# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
31020if test "${with_libiconv_prefix+set}" = set; then
31021 withval="$with_libiconv_prefix"
31022
31023 for dir in `echo "$withval" | tr : ' '`; do
31024 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
31025 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
31026 done
31027
31028fi;
31029
31030 echo "$as_me:$LINENO: checking for iconv" >&5
31031echo $ECHO_N "checking for iconv... $ECHO_C" >&6
31032if test "${am_cv_func_iconv+set}" = set; then
31033 echo $ECHO_N "(cached) $ECHO_C" >&6
31034else
31035
31036 am_cv_func_iconv="no, consider installing GNU libiconv"
31037 am_cv_lib_iconv=no
31038 cat >conftest.$ac_ext <<_ACEOF
31039/* confdefs.h. */
31040_ACEOF
31041cat confdefs.h >>conftest.$ac_ext
31042cat >>conftest.$ac_ext <<_ACEOF
31043/* end confdefs.h. */
31044#include <stdlib.h>
31045#include <iconv.h>
31046int
31047main ()
31048{
31049iconv_t cd = iconv_open("","");
31050 iconv(cd,NULL,NULL,NULL,NULL);
31051 iconv_close(cd);
31052 ;
31053 return 0;
31054}
31055_ACEOF
31056rm -f conftest.$ac_objext conftest$ac_exeext
31057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31058 (eval $ac_link) 2>conftest.er1
a848cd7e 31059 ac_status=$?
ac1cb8d3
VS
31060 grep -v '^ *+' conftest.er1 >conftest.err
31061 rm -f conftest.er1
31062 cat conftest.err >&5
a848cd7e
SC
31063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31064 (exit $ac_status); } &&
07158944 31065 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31067 (eval $ac_try) 2>&5
31068 ac_status=$?
31069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31070 (exit $ac_status); }; } &&
31071 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31073 (eval $ac_try) 2>&5
31074 ac_status=$?
31075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31076 (exit $ac_status); }; }; then
31077 am_cv_func_iconv=yes
31078else
31079 echo "$as_me: failed program was:" >&5
31080sed 's/^/| /' conftest.$ac_ext >&5
31081
31082fi
ac1cb8d3
VS
31083rm -f conftest.err conftest.$ac_objext \
31084 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31085 if test "$am_cv_func_iconv" != yes; then
31086 am_save_LIBS="$LIBS"
31087 LIBS="$LIBS -liconv"
31088 cat >conftest.$ac_ext <<_ACEOF
31089/* confdefs.h. */
31090_ACEOF
31091cat confdefs.h >>conftest.$ac_ext
31092cat >>conftest.$ac_ext <<_ACEOF
31093/* end confdefs.h. */
31094#include <stdlib.h>
31095#include <iconv.h>
31096int
31097main ()
31098{
31099iconv_t cd = iconv_open("","");
31100 iconv(cd,NULL,NULL,NULL,NULL);
31101 iconv_close(cd);
31102 ;
31103 return 0;
31104}
31105_ACEOF
31106rm -f conftest.$ac_objext conftest$ac_exeext
31107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31108 (eval $ac_link) 2>conftest.er1
a848cd7e 31109 ac_status=$?
ac1cb8d3
VS
31110 grep -v '^ *+' conftest.er1 >conftest.err
31111 rm -f conftest.er1
31112 cat conftest.err >&5
a848cd7e
SC
31113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31114 (exit $ac_status); } &&
07158944 31115 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31117 (eval $ac_try) 2>&5
31118 ac_status=$?
31119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31120 (exit $ac_status); }; } &&
31121 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31123 (eval $ac_try) 2>&5
31124 ac_status=$?
31125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31126 (exit $ac_status); }; }; then
31127 am_cv_lib_iconv=yes
31128 am_cv_func_iconv=yes
31129else
31130 echo "$as_me: failed program was:" >&5
31131sed 's/^/| /' conftest.$ac_ext >&5
31132
31133fi
ac1cb8d3
VS
31134rm -f conftest.err conftest.$ac_objext \
31135 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31136 LIBS="$am_save_LIBS"
31137 fi
31138
31139fi
31140echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
31141echo "${ECHO_T}$am_cv_func_iconv" >&6
31142 if test "$am_cv_func_iconv" = yes; then
31143
31144cat >>confdefs.h <<\_ACEOF
31145#define HAVE_ICONV 1
31146_ACEOF
31147
31148 echo "$as_me:$LINENO: checking if iconv needs const" >&5
31149echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
31150if test "${wx_cv_func_iconv_const+set}" = set; then
31151 echo $ECHO_N "(cached) $ECHO_C" >&6
31152else
31153 cat >conftest.$ac_ext <<_ACEOF
31154/* confdefs.h. */
31155_ACEOF
31156cat confdefs.h >>conftest.$ac_ext
31157cat >>conftest.$ac_ext <<_ACEOF
31158/* end confdefs.h. */
31159
31160#include <stdlib.h>
31161#include <iconv.h>
31162extern
31163#ifdef __cplusplus
31164"C"
31165#endif
31166#if defined(__STDC__) || defined(__cplusplus)
31167size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
31168#else
31169size_t iconv();
31170#endif
31171
31172int
31173main ()
31174{
31175
31176 ;
31177 return 0;
31178}
31179_ACEOF
31180rm -f conftest.$ac_objext
31181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31182 (eval $ac_compile) 2>conftest.er1
a848cd7e 31183 ac_status=$?
ac1cb8d3
VS
31184 grep -v '^ *+' conftest.er1 >conftest.err
31185 rm -f conftest.er1
31186 cat conftest.err >&5
a848cd7e
SC
31187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31188 (exit $ac_status); } &&
07158944 31189 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31191 (eval $ac_try) 2>&5
31192 ac_status=$?
31193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31194 (exit $ac_status); }; } &&
31195 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31197 (eval $ac_try) 2>&5
31198 ac_status=$?
31199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31200 (exit $ac_status); }; }; then
31201 wx_cv_func_iconv_const="no"
31202else
31203 echo "$as_me: failed program was:" >&5
31204sed 's/^/| /' conftest.$ac_ext >&5
31205
31206wx_cv_func_iconv_const="yes"
31207
31208fi
ac1cb8d3 31209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31210
31211fi
31212echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
31213echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
31214
31215 iconv_const=
31216 if test "x$wx_cv_func_iconv_const" = "xyes"; then
31217 iconv_const="const"
31218 fi
31219
31220
31221cat >>confdefs.h <<_ACEOF
31222#define ICONV_CONST $iconv_const
31223_ACEOF
31224
31225 fi
31226 LIBICONV=
31227 if test "$am_cv_lib_iconv" = yes; then
31228 LIBICONV="-liconv"
31229 fi
31230
31231
31232LIBS="$LIBICONV $LIBS"
31233ac_ext=c
31234ac_cpp='$CPP $CPPFLAGS'
31235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31237ac_compiler_gnu=$ac_cv_c_compiler_gnu
31238
31239
31240if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31241
31242for ac_func in sigaction
31243do
31244as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31245echo "$as_me:$LINENO: checking for $ac_func" >&5
31246echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31247if eval "test \"\${$as_ac_var+set}\" = set"; then
31248 echo $ECHO_N "(cached) $ECHO_C" >&6
31249else
31250 cat >conftest.$ac_ext <<_ACEOF
31251/* confdefs.h. */
31252_ACEOF
31253cat confdefs.h >>conftest.$ac_ext
31254cat >>conftest.$ac_ext <<_ACEOF
31255/* end confdefs.h. */
ac1cb8d3
VS
31256/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31258#define $ac_func innocuous_$ac_func
31259
a848cd7e
SC
31260/* System header to define __stub macros and hopefully few prototypes,
31261 which can conflict with char $ac_func (); below.
31262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31263 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31264
a848cd7e
SC
31265#ifdef __STDC__
31266# include <limits.h>
31267#else
31268# include <assert.h>
31269#endif
ac1cb8d3
VS
31270
31271#undef $ac_func
31272
a848cd7e
SC
31273/* Override any gcc2 internal prototype to avoid an error. */
31274#ifdef __cplusplus
31275extern "C"
31276{
31277#endif
31278/* We use char because int might match the return type of a gcc2
31279 builtin and then its argument prototype would still apply. */
31280char $ac_func ();
31281/* The GNU C library defines this for functions which it implements
31282 to always fail with ENOSYS. Some functions are actually named
31283 something starting with __ and the normal name is an alias. */
31284#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31285choke me
31286#else
31287char (*f) () = $ac_func;
31288#endif
31289#ifdef __cplusplus
31290}
31291#endif
31292
31293int
31294main ()
31295{
31296return f != $ac_func;
31297 ;
31298 return 0;
31299}
31300_ACEOF
31301rm -f conftest.$ac_objext conftest$ac_exeext
31302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31303 (eval $ac_link) 2>conftest.er1
a848cd7e 31304 ac_status=$?
ac1cb8d3
VS
31305 grep -v '^ *+' conftest.er1 >conftest.err
31306 rm -f conftest.er1
31307 cat conftest.err >&5
a848cd7e
SC
31308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31309 (exit $ac_status); } &&
07158944 31310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31312 (eval $ac_try) 2>&5
31313 ac_status=$?
31314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31315 (exit $ac_status); }; } &&
31316 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31318 (eval $ac_try) 2>&5
31319 ac_status=$?
31320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31321 (exit $ac_status); }; }; then
31322 eval "$as_ac_var=yes"
31323else
31324 echo "$as_me: failed program was:" >&5
31325sed 's/^/| /' conftest.$ac_ext >&5
31326
31327eval "$as_ac_var=no"
31328fi
ac1cb8d3
VS
31329rm -f conftest.err conftest.$ac_objext \
31330 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31331fi
31332echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31333echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31334if test `eval echo '${'$as_ac_var'}'` = yes; then
31335 cat >>confdefs.h <<_ACEOF
31336#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31337_ACEOF
31338
31339fi
31340done
31341
31342
31343 if test "$ac_cv_func_sigaction" = "no"; then
31344 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
31345echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
31346 wxUSE_ON_FATAL_EXCEPTION=no
31347 fi
31348
31349 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
31350
31351
31352 ac_ext=cc
31353ac_cpp='$CXXCPP $CPPFLAGS'
31354ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31355ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31356ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31357
31358
31359 echo "$as_me:$LINENO: checking for sa_handler type" >&5
31360echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
31361if test "${wx_cv_type_sa_handler+set}" = set; then
31362 echo $ECHO_N "(cached) $ECHO_C" >&6
31363else
31364
31365 cat >conftest.$ac_ext <<_ACEOF
31366/* confdefs.h. */
31367_ACEOF
31368cat confdefs.h >>conftest.$ac_ext
31369cat >>conftest.$ac_ext <<_ACEOF
31370/* end confdefs.h. */
31371#include <signal.h>
31372int
31373main ()
31374{
31375
31376 extern void testSigHandler(int);
31377
31378 struct sigaction sa;
31379 sa.sa_handler = testSigHandler;
31380
31381 ;
31382 return 0;
31383}
31384_ACEOF
31385rm -f conftest.$ac_objext
31386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31387 (eval $ac_compile) 2>conftest.er1
a848cd7e 31388 ac_status=$?
ac1cb8d3
VS
31389 grep -v '^ *+' conftest.er1 >conftest.err
31390 rm -f conftest.er1
31391 cat conftest.err >&5
a848cd7e
SC
31392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31393 (exit $ac_status); } &&
07158944 31394 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31396 (eval $ac_try) 2>&5
31397 ac_status=$?
31398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31399 (exit $ac_status); }; } &&
31400 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31402 (eval $ac_try) 2>&5
31403 ac_status=$?
31404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31405 (exit $ac_status); }; }; then
31406
31407 wx_cv_type_sa_handler=int
31408
31409else
31410 echo "$as_me: failed program was:" >&5
31411sed 's/^/| /' conftest.$ac_ext >&5
31412
31413
31414 wx_cv_type_sa_handler=void
31415
31416fi
ac1cb8d3 31417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31418
31419fi
31420echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
31421echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
31422
31423 ac_ext=c
31424ac_cpp='$CPP $CPPFLAGS'
31425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31427ac_compiler_gnu=$ac_cv_c_compiler_gnu
31428
31429
31430 cat >>confdefs.h <<_ACEOF
31431#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
31432_ACEOF
31433
31434 fi
31435fi
31436
eaff0f0d
VZ
31437if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
31438
31439
31440 ac_ext=cc
31441ac_cpp='$CXXCPP $CPPFLAGS'
31442ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31443ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31444ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31445
31446
31447 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
31448echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
31449if test "${wx_cv_func_backtrace+set}" = set; then
31450 echo $ECHO_N "(cached) $ECHO_C" >&6
31451else
31452
31453 cat >conftest.$ac_ext <<_ACEOF
31454/* confdefs.h. */
31455_ACEOF
31456cat confdefs.h >>conftest.$ac_ext
31457cat >>conftest.$ac_ext <<_ACEOF
31458/* end confdefs.h. */
31459#include <execinfo.h>
31460int
31461main ()
31462{
31463
31464 void *trace[1];
31465 char **messages;
31466
31467 backtrace(trace, 1);
31468 messages = backtrace_symbols(trace, 1);
31469
31470 ;
31471 return 0;
31472}
31473_ACEOF
31474rm -f conftest.$ac_objext
31475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31476 (eval $ac_compile) 2>conftest.er1
31477 ac_status=$?
31478 grep -v '^ *+' conftest.er1 >conftest.err
31479 rm -f conftest.er1
31480 cat conftest.err >&5
31481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31482 (exit $ac_status); } &&
07158944 31483 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
31484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31485 (eval $ac_try) 2>&5
31486 ac_status=$?
31487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31488 (exit $ac_status); }; } &&
31489 { ac_try='test -s conftest.$ac_objext'
31490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31491 (eval $ac_try) 2>&5
31492 ac_status=$?
31493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31494 (exit $ac_status); }; }; then
31495 wx_cv_func_backtrace=yes
31496else
31497 echo "$as_me: failed program was:" >&5
31498sed 's/^/| /' conftest.$ac_ext >&5
31499
31500wx_cv_func_backtrace=no
31501
31502fi
31503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31504
31505
31506fi
31507echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
31508echo "${ECHO_T}$wx_cv_func_backtrace" >&6
31509
31510
31511 if test "$wx_cv_func_backtrace" = "no"; then
31512 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
31513echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
31514 wxUSE_STACKWALKER=no
31515 else
31516 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
31517echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
31518if test "${wx_cv_func_cxa_demangle+set}" = set; then
31519 echo $ECHO_N "(cached) $ECHO_C" >&6
31520else
31521
31522 cat >conftest.$ac_ext <<_ACEOF
31523/* confdefs.h. */
31524_ACEOF
31525cat confdefs.h >>conftest.$ac_ext
31526cat >>conftest.$ac_ext <<_ACEOF
31527/* end confdefs.h. */
31528#include <cxxabi.h>
31529int
31530main ()
31531{
31532
31533 int rc;
31534 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
31535
31536 ;
31537 return 0;
31538}
31539_ACEOF
31540rm -f conftest.$ac_objext
31541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31542 (eval $ac_compile) 2>conftest.er1
31543 ac_status=$?
31544 grep -v '^ *+' conftest.er1 >conftest.err
31545 rm -f conftest.er1
31546 cat conftest.err >&5
31547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31548 (exit $ac_status); } &&
07158944 31549 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
31550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31551 (eval $ac_try) 2>&5
31552 ac_status=$?
31553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31554 (exit $ac_status); }; } &&
31555 { ac_try='test -s conftest.$ac_objext'
31556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31557 (eval $ac_try) 2>&5
31558 ac_status=$?
31559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31560 (exit $ac_status); }; }; then
31561 wx_cv_func_cxa_demangle=yes
31562else
31563 echo "$as_me: failed program was:" >&5
31564sed 's/^/| /' conftest.$ac_ext >&5
31565
31566wx_cv_func_cxa_demangle=no
31567
31568fi
31569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31570
31571
31572fi
31573echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
31574echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
31575
31576 if test "$wx_cv_func_cxa_demangle" = "yes"; then
31577 cat >>confdefs.h <<\_ACEOF
31578#define HAVE_CXA_DEMANGLE 1
31579_ACEOF
31580
31581 fi
31582 fi
31583
31584 ac_ext=c
31585ac_cpp='$CPP $CPPFLAGS'
31586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31588ac_compiler_gnu=$ac_cv_c_compiler_gnu
31589
31590fi
31591
898beab1
DE
31592if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
31593 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
31594echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
31595 wxUSE_STACKWALKER=no
31596fi
31597
31598
a848cd7e
SC
31599
31600
31601for ac_func in mkstemp mktemp
31602do
31603as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31604echo "$as_me:$LINENO: checking for $ac_func" >&5
31605echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31606if eval "test \"\${$as_ac_var+set}\" = set"; then
31607 echo $ECHO_N "(cached) $ECHO_C" >&6
31608else
31609 cat >conftest.$ac_ext <<_ACEOF
31610/* confdefs.h. */
31611_ACEOF
31612cat confdefs.h >>conftest.$ac_ext
31613cat >>conftest.$ac_ext <<_ACEOF
31614/* end confdefs.h. */
ac1cb8d3
VS
31615/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31617#define $ac_func innocuous_$ac_func
31618
a848cd7e
SC
31619/* System header to define __stub macros and hopefully few prototypes,
31620 which can conflict with char $ac_func (); below.
31621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31622 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31623
a848cd7e
SC
31624#ifdef __STDC__
31625# include <limits.h>
31626#else
31627# include <assert.h>
31628#endif
ac1cb8d3
VS
31629
31630#undef $ac_func
31631
a848cd7e
SC
31632/* Override any gcc2 internal prototype to avoid an error. */
31633#ifdef __cplusplus
31634extern "C"
31635{
31636#endif
31637/* We use char because int might match the return type of a gcc2
31638 builtin and then its argument prototype would still apply. */
31639char $ac_func ();
31640/* The GNU C library defines this for functions which it implements
31641 to always fail with ENOSYS. Some functions are actually named
31642 something starting with __ and the normal name is an alias. */
31643#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31644choke me
31645#else
31646char (*f) () = $ac_func;
31647#endif
31648#ifdef __cplusplus
31649}
31650#endif
31651
31652int
31653main ()
31654{
31655return f != $ac_func;
31656 ;
31657 return 0;
31658}
31659_ACEOF
31660rm -f conftest.$ac_objext conftest$ac_exeext
31661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31662 (eval $ac_link) 2>conftest.er1
a848cd7e 31663 ac_status=$?
ac1cb8d3
VS
31664 grep -v '^ *+' conftest.er1 >conftest.err
31665 rm -f conftest.er1
31666 cat conftest.err >&5
a848cd7e
SC
31667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31668 (exit $ac_status); } &&
07158944 31669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31671 (eval $ac_try) 2>&5
31672 ac_status=$?
31673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31674 (exit $ac_status); }; } &&
31675 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31677 (eval $ac_try) 2>&5
31678 ac_status=$?
31679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31680 (exit $ac_status); }; }; then
31681 eval "$as_ac_var=yes"
31682else
31683 echo "$as_me: failed program was:" >&5
31684sed 's/^/| /' conftest.$ac_ext >&5
31685
31686eval "$as_ac_var=no"
31687fi
ac1cb8d3
VS
31688rm -f conftest.err conftest.$ac_objext \
31689 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31690fi
31691echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31692echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31693if test `eval echo '${'$as_ac_var'}'` = yes; then
31694 cat >>confdefs.h <<_ACEOF
31695#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31696_ACEOF
31697 break
31698fi
31699done
31700
31701
31702echo "$as_me:$LINENO: checking for statfs" >&5
31703echo $ECHO_N "checking for statfs... $ECHO_C" >&6
31704if test "${wx_cv_func_statfs+set}" = set; then
31705 echo $ECHO_N "(cached) $ECHO_C" >&6
31706else
31707 cat >conftest.$ac_ext <<_ACEOF
31708/* confdefs.h. */
31709_ACEOF
31710cat confdefs.h >>conftest.$ac_ext
31711cat >>conftest.$ac_ext <<_ACEOF
31712/* end confdefs.h. */
31713
31714 #if defined(__BSD__)
31715 #include <sys/param.h>
31716 #include <sys/mount.h>
31717 #else
31718 #include <sys/vfs.h>
31719 #endif
31720
31721int
31722main ()
31723{
31724
31725 long l;
31726 struct statfs fs;
31727 statfs("/", &fs);
31728 l = fs.f_bsize;
31729 l += fs.f_blocks;
31730 l += fs.f_bavail;
31731
31732 ;
31733 return 0;
31734}
31735_ACEOF
31736rm -f conftest.$ac_objext
31737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31738 (eval $ac_compile) 2>conftest.er1
a848cd7e 31739 ac_status=$?
ac1cb8d3
VS
31740 grep -v '^ *+' conftest.er1 >conftest.err
31741 rm -f conftest.er1
31742 cat conftest.err >&5
a848cd7e
SC
31743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31744 (exit $ac_status); } &&
07158944 31745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31747 (eval $ac_try) 2>&5
31748 ac_status=$?
31749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31750 (exit $ac_status); }; } &&
31751 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31753 (eval $ac_try) 2>&5
31754 ac_status=$?
31755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31756 (exit $ac_status); }; }; then
31757
31758 wx_cv_func_statfs=yes
31759
31760else
31761 echo "$as_me: failed program was:" >&5
31762sed 's/^/| /' conftest.$ac_ext >&5
31763
31764
31765 wx_cv_func_statfs=no
31766
31767
31768fi
ac1cb8d3 31769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31770
31771fi
31772echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
31773echo "${ECHO_T}$wx_cv_func_statfs" >&6
31774
31775if test "$wx_cv_func_statfs" = "yes"; then
31776 wx_cv_type_statvfs_t="struct statfs"
31777 cat >>confdefs.h <<\_ACEOF
31778#define HAVE_STATFS 1
31779_ACEOF
31780
31781else
31782 echo "$as_me:$LINENO: checking for statvfs" >&5
31783echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
31784if test "${wx_cv_func_statvfs+set}" = set; then
31785 echo $ECHO_N "(cached) $ECHO_C" >&6
31786else
31787 cat >conftest.$ac_ext <<_ACEOF
31788/* confdefs.h. */
31789_ACEOF
31790cat confdefs.h >>conftest.$ac_ext
31791cat >>conftest.$ac_ext <<_ACEOF
31792/* end confdefs.h. */
31793
31794 #include <stddef.h>
31795 #include <sys/statvfs.h>
31796
31797int
31798main ()
31799{
31800
31801 statvfs("/", NULL);
31802
31803 ;
31804 return 0;
31805}
31806_ACEOF
31807rm -f conftest.$ac_objext
31808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31809 (eval $ac_compile) 2>conftest.er1
a848cd7e 31810 ac_status=$?
ac1cb8d3
VS
31811 grep -v '^ *+' conftest.er1 >conftest.err
31812 rm -f conftest.er1
31813 cat conftest.err >&5
a848cd7e
SC
31814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31815 (exit $ac_status); } &&
07158944 31816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31818 (eval $ac_try) 2>&5
31819 ac_status=$?
31820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31821 (exit $ac_status); }; } &&
31822 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31824 (eval $ac_try) 2>&5
31825 ac_status=$?
31826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31827 (exit $ac_status); }; }; then
31828 wx_cv_func_statvfs=yes
31829else
31830 echo "$as_me: failed program was:" >&5
31831sed 's/^/| /' conftest.$ac_ext >&5
31832
31833wx_cv_func_statvfs=no
31834
31835fi
ac1cb8d3 31836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31837
31838fi
31839echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
31840echo "${ECHO_T}$wx_cv_func_statvfs" >&6
31841
31842 if test "$wx_cv_func_statvfs" = "yes"; then
31843
31844
31845 ac_ext=cc
31846ac_cpp='$CXXCPP $CPPFLAGS'
31847ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31848ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31849ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31850
31851
31852 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
31853echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
31854if test "${wx_cv_type_statvfs_t+set}" = set; then
31855 echo $ECHO_N "(cached) $ECHO_C" >&6
31856else
31857 cat >conftest.$ac_ext <<_ACEOF
31858/* confdefs.h. */
31859_ACEOF
31860cat confdefs.h >>conftest.$ac_ext
31861cat >>conftest.$ac_ext <<_ACEOF
31862/* end confdefs.h. */
31863
31864 #include <sys/statvfs.h>
31865
31866int
31867main ()
31868{
31869
31870 long l;
31871 statvfs_t fs;
31872 statvfs("/", &fs);
31873 l = fs.f_bsize;
31874 l += fs.f_blocks;
31875 l += fs.f_bavail;
31876
31877 ;
31878 return 0;
31879}
31880_ACEOF
31881rm -f conftest.$ac_objext
31882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31883 (eval $ac_compile) 2>conftest.er1
a848cd7e 31884 ac_status=$?
ac1cb8d3
VS
31885 grep -v '^ *+' conftest.er1 >conftest.err
31886 rm -f conftest.er1
31887 cat conftest.err >&5
a848cd7e
SC
31888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31889 (exit $ac_status); } &&
07158944 31890 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31892 (eval $ac_try) 2>&5
31893 ac_status=$?
31894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31895 (exit $ac_status); }; } &&
31896 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31898 (eval $ac_try) 2>&5
31899 ac_status=$?
31900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31901 (exit $ac_status); }; }; then
31902 wx_cv_type_statvfs_t=statvfs_t
31903else
31904 echo "$as_me: failed program was:" >&5
31905sed 's/^/| /' conftest.$ac_ext >&5
31906
31907
31908 cat >conftest.$ac_ext <<_ACEOF
31909/* confdefs.h. */
31910_ACEOF
31911cat confdefs.h >>conftest.$ac_ext
31912cat >>conftest.$ac_ext <<_ACEOF
31913/* end confdefs.h. */
31914
31915 #include <sys/statvfs.h>
31916
31917int
31918main ()
31919{
31920
31921 long l;
31922 struct statvfs fs;
31923 statvfs("/", &fs);
31924 l = fs.f_bsize;
31925 l += fs.f_blocks;
31926 l += fs.f_bavail;
31927
31928 ;
31929 return 0;
31930}
31931_ACEOF
31932rm -f conftest.$ac_objext
31933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31934 (eval $ac_compile) 2>conftest.er1
a848cd7e 31935 ac_status=$?
ac1cb8d3
VS
31936 grep -v '^ *+' conftest.er1 >conftest.err
31937 rm -f conftest.er1
31938 cat conftest.err >&5
a848cd7e
SC
31939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31940 (exit $ac_status); } &&
07158944 31941 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31943 (eval $ac_try) 2>&5
31944 ac_status=$?
31945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31946 (exit $ac_status); }; } &&
31947 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31949 (eval $ac_try) 2>&5
31950 ac_status=$?
31951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31952 (exit $ac_status); }; }; then
31953 wx_cv_type_statvfs_t="struct statvfs"
31954else
31955 echo "$as_me: failed program was:" >&5
31956sed 's/^/| /' conftest.$ac_ext >&5
31957
31958wx_cv_type_statvfs_t="unknown"
31959
31960fi
ac1cb8d3 31961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31962
31963
31964fi
ac1cb8d3 31965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31966
31967fi
31968echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
31969echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
31970
31971 ac_ext=c
31972ac_cpp='$CPP $CPPFLAGS'
31973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31975ac_compiler_gnu=$ac_cv_c_compiler_gnu
31976
31977
31978 if test "$wx_cv_type_statvfs_t" != "unknown"; then
31979 cat >>confdefs.h <<\_ACEOF
31980#define HAVE_STATVFS 1
31981_ACEOF
31982
31983 fi
31984 else
31985 wx_cv_type_statvfs_t="unknown"
31986 fi
31987fi
31988
31989if test "$wx_cv_type_statvfs_t" != "unknown"; then
31990 cat >>confdefs.h <<_ACEOF
31991#define WX_STATFS_T $wx_cv_type_statvfs_t
31992_ACEOF
31993
31994else
31995 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
31996echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
31997fi
31998
31999if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
32000
32001
32002for ac_func in fcntl flock
32003do
32004as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32005echo "$as_me:$LINENO: checking for $ac_func" >&5
32006echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32007if eval "test \"\${$as_ac_var+set}\" = set"; then
32008 echo $ECHO_N "(cached) $ECHO_C" >&6
32009else
32010 cat >conftest.$ac_ext <<_ACEOF
32011/* confdefs.h. */
32012_ACEOF
32013cat confdefs.h >>conftest.$ac_ext
32014cat >>conftest.$ac_ext <<_ACEOF
32015/* end confdefs.h. */
ac1cb8d3
VS
32016/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32018#define $ac_func innocuous_$ac_func
32019
a848cd7e
SC
32020/* System header to define __stub macros and hopefully few prototypes,
32021 which can conflict with char $ac_func (); below.
32022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32023 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32024
a848cd7e
SC
32025#ifdef __STDC__
32026# include <limits.h>
32027#else
32028# include <assert.h>
32029#endif
ac1cb8d3
VS
32030
32031#undef $ac_func
32032
a848cd7e
SC
32033/* Override any gcc2 internal prototype to avoid an error. */
32034#ifdef __cplusplus
32035extern "C"
32036{
32037#endif
32038/* We use char because int might match the return type of a gcc2
32039 builtin and then its argument prototype would still apply. */
32040char $ac_func ();
32041/* The GNU C library defines this for functions which it implements
32042 to always fail with ENOSYS. Some functions are actually named
32043 something starting with __ and the normal name is an alias. */
32044#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32045choke me
32046#else
32047char (*f) () = $ac_func;
32048#endif
32049#ifdef __cplusplus
32050}
32051#endif
32052
32053int
32054main ()
32055{
32056return f != $ac_func;
32057 ;
32058 return 0;
32059}
32060_ACEOF
32061rm -f conftest.$ac_objext conftest$ac_exeext
32062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32063 (eval $ac_link) 2>conftest.er1
a848cd7e 32064 ac_status=$?
ac1cb8d3
VS
32065 grep -v '^ *+' conftest.er1 >conftest.err
32066 rm -f conftest.er1
32067 cat conftest.err >&5
a848cd7e
SC
32068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32069 (exit $ac_status); } &&
07158944 32070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32072 (eval $ac_try) 2>&5
32073 ac_status=$?
32074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32075 (exit $ac_status); }; } &&
32076 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32078 (eval $ac_try) 2>&5
32079 ac_status=$?
32080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32081 (exit $ac_status); }; }; then
32082 eval "$as_ac_var=yes"
32083else
32084 echo "$as_me: failed program was:" >&5
32085sed 's/^/| /' conftest.$ac_ext >&5
32086
32087eval "$as_ac_var=no"
32088fi
ac1cb8d3
VS
32089rm -f conftest.err conftest.$ac_objext \
32090 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32091fi
32092echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32093echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32094if test `eval echo '${'$as_ac_var'}'` = yes; then
32095 cat >>confdefs.h <<_ACEOF
32096#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32097_ACEOF
32098 break
32099fi
32100done
32101
32102
32103 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
32104 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
32105echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
32106 wxUSE_SNGLINST_CHECKER=no
32107 fi
32108fi
32109
32110
32111for ac_func in timegm
32112do
32113as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32114echo "$as_me:$LINENO: checking for $ac_func" >&5
32115echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32116if eval "test \"\${$as_ac_var+set}\" = set"; then
32117 echo $ECHO_N "(cached) $ECHO_C" >&6
32118else
32119 cat >conftest.$ac_ext <<_ACEOF
32120/* confdefs.h. */
32121_ACEOF
32122cat confdefs.h >>conftest.$ac_ext
32123cat >>conftest.$ac_ext <<_ACEOF
32124/* end confdefs.h. */
ac1cb8d3
VS
32125/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32127#define $ac_func innocuous_$ac_func
32128
a848cd7e
SC
32129/* System header to define __stub macros and hopefully few prototypes,
32130 which can conflict with char $ac_func (); below.
32131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32132 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32133
a848cd7e
SC
32134#ifdef __STDC__
32135# include <limits.h>
32136#else
32137# include <assert.h>
32138#endif
ac1cb8d3
VS
32139
32140#undef $ac_func
32141
a848cd7e
SC
32142/* Override any gcc2 internal prototype to avoid an error. */
32143#ifdef __cplusplus
32144extern "C"
32145{
32146#endif
32147/* We use char because int might match the return type of a gcc2
32148 builtin and then its argument prototype would still apply. */
32149char $ac_func ();
32150/* The GNU C library defines this for functions which it implements
32151 to always fail with ENOSYS. Some functions are actually named
32152 something starting with __ and the normal name is an alias. */
32153#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32154choke me
32155#else
32156char (*f) () = $ac_func;
32157#endif
32158#ifdef __cplusplus
32159}
32160#endif
32161
32162int
32163main ()
32164{
32165return f != $ac_func;
32166 ;
32167 return 0;
32168}
32169_ACEOF
32170rm -f conftest.$ac_objext conftest$ac_exeext
32171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32172 (eval $ac_link) 2>conftest.er1
a848cd7e 32173 ac_status=$?
ac1cb8d3
VS
32174 grep -v '^ *+' conftest.er1 >conftest.err
32175 rm -f conftest.er1
32176 cat conftest.err >&5
a848cd7e
SC
32177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32178 (exit $ac_status); } &&
07158944 32179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32181 (eval $ac_try) 2>&5
32182 ac_status=$?
32183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32184 (exit $ac_status); }; } &&
32185 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32187 (eval $ac_try) 2>&5
32188 ac_status=$?
32189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32190 (exit $ac_status); }; }; then
32191 eval "$as_ac_var=yes"
32192else
32193 echo "$as_me: failed program was:" >&5
32194sed 's/^/| /' conftest.$ac_ext >&5
32195
32196eval "$as_ac_var=no"
32197fi
ac1cb8d3
VS
32198rm -f conftest.err conftest.$ac_objext \
32199 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32200fi
32201echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32202echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32203if test `eval echo '${'$as_ac_var'}'` = yes; then
32204 cat >>confdefs.h <<_ACEOF
32205#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32206_ACEOF
32207
32208fi
32209done
32210
32211
32212
32213
32214for ac_func in putenv setenv
32215do
32216as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32217echo "$as_me:$LINENO: checking for $ac_func" >&5
32218echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32219if eval "test \"\${$as_ac_var+set}\" = set"; then
32220 echo $ECHO_N "(cached) $ECHO_C" >&6
32221else
32222 cat >conftest.$ac_ext <<_ACEOF
32223/* confdefs.h. */
32224_ACEOF
32225cat confdefs.h >>conftest.$ac_ext
32226cat >>conftest.$ac_ext <<_ACEOF
32227/* end confdefs.h. */
ac1cb8d3
VS
32228/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32230#define $ac_func innocuous_$ac_func
32231
a848cd7e
SC
32232/* System header to define __stub macros and hopefully few prototypes,
32233 which can conflict with char $ac_func (); below.
32234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32235 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32236
a848cd7e
SC
32237#ifdef __STDC__
32238# include <limits.h>
32239#else
32240# include <assert.h>
32241#endif
ac1cb8d3
VS
32242
32243#undef $ac_func
32244
a848cd7e
SC
32245/* Override any gcc2 internal prototype to avoid an error. */
32246#ifdef __cplusplus
32247extern "C"
32248{
32249#endif
32250/* We use char because int might match the return type of a gcc2
32251 builtin and then its argument prototype would still apply. */
32252char $ac_func ();
32253/* The GNU C library defines this for functions which it implements
32254 to always fail with ENOSYS. Some functions are actually named
32255 something starting with __ and the normal name is an alias. */
32256#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32257choke me
32258#else
32259char (*f) () = $ac_func;
32260#endif
32261#ifdef __cplusplus
32262}
32263#endif
32264
32265int
32266main ()
32267{
32268return f != $ac_func;
32269 ;
32270 return 0;
32271}
32272_ACEOF
32273rm -f conftest.$ac_objext conftest$ac_exeext
32274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32275 (eval $ac_link) 2>conftest.er1
a848cd7e 32276 ac_status=$?
ac1cb8d3
VS
32277 grep -v '^ *+' conftest.er1 >conftest.err
32278 rm -f conftest.er1
32279 cat conftest.err >&5
a848cd7e
SC
32280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32281 (exit $ac_status); } &&
07158944 32282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32284 (eval $ac_try) 2>&5
32285 ac_status=$?
32286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32287 (exit $ac_status); }; } &&
32288 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32290 (eval $ac_try) 2>&5
32291 ac_status=$?
32292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32293 (exit $ac_status); }; }; then
32294 eval "$as_ac_var=yes"
32295else
32296 echo "$as_me: failed program was:" >&5
32297sed 's/^/| /' conftest.$ac_ext >&5
32298
32299eval "$as_ac_var=no"
32300fi
ac1cb8d3
VS
32301rm -f conftest.err conftest.$ac_objext \
32302 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32303fi
32304echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32305echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32306if test `eval echo '${'$as_ac_var'}'` = yes; then
32307 cat >>confdefs.h <<_ACEOF
32308#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32309_ACEOF
32310 break
32311fi
32312done
32313
32314
32315HAVE_SOME_SLEEP_FUNC=0
32316if test "$USE_BEOS" = 1; then
32317 cat >>confdefs.h <<\_ACEOF
32318#define HAVE_SLEEP 1
32319_ACEOF
32320
32321 HAVE_SOME_SLEEP_FUNC=1
32322fi
32323
32324if test "$USE_DARWIN" = 1; then
32325 cat >>confdefs.h <<\_ACEOF
32326#define HAVE_USLEEP 1
32327_ACEOF
32328
32329 HAVE_SOME_SLEEP_FUNC=1
32330fi
32331
32332if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
32333 POSIX4_LINK=
32334
32335for ac_func in nanosleep
32336do
32337as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32338echo "$as_me:$LINENO: checking for $ac_func" >&5
32339echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32340if eval "test \"\${$as_ac_var+set}\" = set"; then
32341 echo $ECHO_N "(cached) $ECHO_C" >&6
32342else
32343 cat >conftest.$ac_ext <<_ACEOF
32344/* confdefs.h. */
32345_ACEOF
32346cat confdefs.h >>conftest.$ac_ext
32347cat >>conftest.$ac_ext <<_ACEOF
32348/* end confdefs.h. */
ac1cb8d3
VS
32349/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32351#define $ac_func innocuous_$ac_func
32352
a848cd7e
SC
32353/* System header to define __stub macros and hopefully few prototypes,
32354 which can conflict with char $ac_func (); below.
32355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32356 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32357
a848cd7e
SC
32358#ifdef __STDC__
32359# include <limits.h>
32360#else
32361# include <assert.h>
32362#endif
ac1cb8d3
VS
32363
32364#undef $ac_func
32365
a848cd7e
SC
32366/* Override any gcc2 internal prototype to avoid an error. */
32367#ifdef __cplusplus
32368extern "C"
32369{
32370#endif
32371/* We use char because int might match the return type of a gcc2
32372 builtin and then its argument prototype would still apply. */
32373char $ac_func ();
32374/* The GNU C library defines this for functions which it implements
32375 to always fail with ENOSYS. Some functions are actually named
32376 something starting with __ and the normal name is an alias. */
32377#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32378choke me
32379#else
32380char (*f) () = $ac_func;
32381#endif
32382#ifdef __cplusplus
32383}
32384#endif
32385
32386int
32387main ()
32388{
32389return f != $ac_func;
32390 ;
32391 return 0;
32392}
32393_ACEOF
32394rm -f conftest.$ac_objext conftest$ac_exeext
32395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32396 (eval $ac_link) 2>conftest.er1
a848cd7e 32397 ac_status=$?
ac1cb8d3
VS
32398 grep -v '^ *+' conftest.er1 >conftest.err
32399 rm -f conftest.er1
32400 cat conftest.err >&5
a848cd7e
SC
32401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32402 (exit $ac_status); } &&
07158944 32403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32405 (eval $ac_try) 2>&5
32406 ac_status=$?
32407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32408 (exit $ac_status); }; } &&
32409 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32411 (eval $ac_try) 2>&5
32412 ac_status=$?
32413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32414 (exit $ac_status); }; }; then
32415 eval "$as_ac_var=yes"
32416else
32417 echo "$as_me: failed program was:" >&5
32418sed 's/^/| /' conftest.$ac_ext >&5
32419
32420eval "$as_ac_var=no"
32421fi
ac1cb8d3
VS
32422rm -f conftest.err conftest.$ac_objext \
32423 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32424fi
32425echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32426echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32427if test `eval echo '${'$as_ac_var'}'` = yes; then
32428 cat >>confdefs.h <<_ACEOF
32429#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32430_ACEOF
32431 cat >>confdefs.h <<\_ACEOF
32432#define HAVE_NANOSLEEP 1
32433_ACEOF
32434
32435else
32436
32437 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
32438echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
32439if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
32440 echo $ECHO_N "(cached) $ECHO_C" >&6
32441else
32442 ac_check_lib_save_LIBS=$LIBS
32443LIBS="-lposix4 $LIBS"
32444cat >conftest.$ac_ext <<_ACEOF
32445/* confdefs.h. */
32446_ACEOF
32447cat confdefs.h >>conftest.$ac_ext
32448cat >>conftest.$ac_ext <<_ACEOF
32449/* end confdefs.h. */
32450
32451/* Override any gcc2 internal prototype to avoid an error. */
32452#ifdef __cplusplus
32453extern "C"
32454#endif
32455/* We use char because int might match the return type of a gcc2
32456 builtin and then its argument prototype would still apply. */
32457char nanosleep ();
32458int
32459main ()
32460{
32461nanosleep ();
32462 ;
32463 return 0;
32464}
32465_ACEOF
32466rm -f conftest.$ac_objext conftest$ac_exeext
32467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32468 (eval $ac_link) 2>conftest.er1
a848cd7e 32469 ac_status=$?
ac1cb8d3
VS
32470 grep -v '^ *+' conftest.er1 >conftest.err
32471 rm -f conftest.er1
32472 cat conftest.err >&5
a848cd7e
SC
32473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32474 (exit $ac_status); } &&
07158944 32475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32477 (eval $ac_try) 2>&5
32478 ac_status=$?
32479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32480 (exit $ac_status); }; } &&
32481 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32483 (eval $ac_try) 2>&5
32484 ac_status=$?
32485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32486 (exit $ac_status); }; }; then
32487 ac_cv_lib_posix4_nanosleep=yes
32488else
32489 echo "$as_me: failed program was:" >&5
32490sed 's/^/| /' conftest.$ac_ext >&5
32491
32492ac_cv_lib_posix4_nanosleep=no
32493fi
ac1cb8d3
VS
32494rm -f conftest.err conftest.$ac_objext \
32495 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32496LIBS=$ac_check_lib_save_LIBS
32497fi
32498echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
32499echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
32500if test $ac_cv_lib_posix4_nanosleep = yes; then
32501
32502 cat >>confdefs.h <<\_ACEOF
32503#define HAVE_NANOSLEEP 1
32504_ACEOF
32505
32506 POSIX4_LINK=" -lposix4"
32507
32508else
32509
32510
32511for ac_func in usleep
32512do
32513as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32514echo "$as_me:$LINENO: checking for $ac_func" >&5
32515echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32516if eval "test \"\${$as_ac_var+set}\" = set"; then
32517 echo $ECHO_N "(cached) $ECHO_C" >&6
32518else
32519 cat >conftest.$ac_ext <<_ACEOF
32520/* confdefs.h. */
32521_ACEOF
32522cat confdefs.h >>conftest.$ac_ext
32523cat >>conftest.$ac_ext <<_ACEOF
32524/* end confdefs.h. */
ac1cb8d3
VS
32525/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32527#define $ac_func innocuous_$ac_func
32528
a848cd7e
SC
32529/* System header to define __stub macros and hopefully few prototypes,
32530 which can conflict with char $ac_func (); below.
32531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32532 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32533
a848cd7e
SC
32534#ifdef __STDC__
32535# include <limits.h>
32536#else
32537# include <assert.h>
32538#endif
ac1cb8d3
VS
32539
32540#undef $ac_func
32541
a848cd7e
SC
32542/* Override any gcc2 internal prototype to avoid an error. */
32543#ifdef __cplusplus
32544extern "C"
32545{
32546#endif
32547/* We use char because int might match the return type of a gcc2
32548 builtin and then its argument prototype would still apply. */
32549char $ac_func ();
32550/* The GNU C library defines this for functions which it implements
32551 to always fail with ENOSYS. Some functions are actually named
32552 something starting with __ and the normal name is an alias. */
32553#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32554choke me
32555#else
32556char (*f) () = $ac_func;
32557#endif
32558#ifdef __cplusplus
32559}
32560#endif
32561
32562int
32563main ()
32564{
32565return f != $ac_func;
32566 ;
32567 return 0;
32568}
32569_ACEOF
32570rm -f conftest.$ac_objext conftest$ac_exeext
32571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32572 (eval $ac_link) 2>conftest.er1
a848cd7e 32573 ac_status=$?
ac1cb8d3
VS
32574 grep -v '^ *+' conftest.er1 >conftest.err
32575 rm -f conftest.er1
32576 cat conftest.err >&5
a848cd7e
SC
32577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32578 (exit $ac_status); } &&
07158944 32579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32581 (eval $ac_try) 2>&5
32582 ac_status=$?
32583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32584 (exit $ac_status); }; } &&
32585 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32587 (eval $ac_try) 2>&5
32588 ac_status=$?
32589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32590 (exit $ac_status); }; }; then
32591 eval "$as_ac_var=yes"
32592else
32593 echo "$as_me: failed program was:" >&5
32594sed 's/^/| /' conftest.$ac_ext >&5
32595
32596eval "$as_ac_var=no"
32597fi
ac1cb8d3
VS
32598rm -f conftest.err conftest.$ac_objext \
32599 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32600fi
32601echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32602echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32603if test `eval echo '${'$as_ac_var'}'` = yes; then
32604 cat >>confdefs.h <<_ACEOF
32605#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32606_ACEOF
32607 cat >>confdefs.h <<\_ACEOF
32608#define HAVE_USLEEP 1
32609_ACEOF
32610
32611else
32612 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
32613echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
32614
32615fi
32616done
32617
32618
32619
32620fi
32621
32622
32623
32624fi
32625done
32626
32627fi
32628
32629
32630
32631for ac_func in uname gethostname
32632do
32633as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32634echo "$as_me:$LINENO: checking for $ac_func" >&5
32635echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32636if eval "test \"\${$as_ac_var+set}\" = set"; then
32637 echo $ECHO_N "(cached) $ECHO_C" >&6
32638else
32639 cat >conftest.$ac_ext <<_ACEOF
32640/* confdefs.h. */
32641_ACEOF
32642cat confdefs.h >>conftest.$ac_ext
32643cat >>conftest.$ac_ext <<_ACEOF
32644/* end confdefs.h. */
ac1cb8d3
VS
32645/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32647#define $ac_func innocuous_$ac_func
32648
a848cd7e
SC
32649/* System header to define __stub macros and hopefully few prototypes,
32650 which can conflict with char $ac_func (); below.
32651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32652 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32653
a848cd7e
SC
32654#ifdef __STDC__
32655# include <limits.h>
32656#else
32657# include <assert.h>
32658#endif
ac1cb8d3
VS
32659
32660#undef $ac_func
32661
a848cd7e
SC
32662/* Override any gcc2 internal prototype to avoid an error. */
32663#ifdef __cplusplus
32664extern "C"
32665{
32666#endif
32667/* We use char because int might match the return type of a gcc2
32668 builtin and then its argument prototype would still apply. */
32669char $ac_func ();
32670/* The GNU C library defines this for functions which it implements
32671 to always fail with ENOSYS. Some functions are actually named
32672 something starting with __ and the normal name is an alias. */
32673#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32674choke me
32675#else
32676char (*f) () = $ac_func;
32677#endif
32678#ifdef __cplusplus
32679}
32680#endif
32681
32682int
32683main ()
32684{
32685return f != $ac_func;
32686 ;
32687 return 0;
32688}
32689_ACEOF
32690rm -f conftest.$ac_objext conftest$ac_exeext
32691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32692 (eval $ac_link) 2>conftest.er1
a848cd7e 32693 ac_status=$?
ac1cb8d3
VS
32694 grep -v '^ *+' conftest.er1 >conftest.err
32695 rm -f conftest.er1
32696 cat conftest.err >&5
a848cd7e
SC
32697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32698 (exit $ac_status); } &&
07158944 32699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32701 (eval $ac_try) 2>&5
32702 ac_status=$?
32703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32704 (exit $ac_status); }; } &&
32705 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32707 (eval $ac_try) 2>&5
32708 ac_status=$?
32709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32710 (exit $ac_status); }; }; then
32711 eval "$as_ac_var=yes"
32712else
32713 echo "$as_me: failed program was:" >&5
32714sed 's/^/| /' conftest.$ac_ext >&5
32715
32716eval "$as_ac_var=no"
32717fi
ac1cb8d3
VS
32718rm -f conftest.err conftest.$ac_objext \
32719 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32720fi
32721echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32722echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32723if test `eval echo '${'$as_ac_var'}'` = yes; then
32724 cat >>confdefs.h <<_ACEOF
32725#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32726_ACEOF
32727 break
32728fi
32729done
32730
32731
32732
32733
32734ac_ext=cc
32735ac_cpp='$CXXCPP $CPPFLAGS'
32736ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32737ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32738ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32739
32740
32741
32742for ac_func in strtok_r
32743do
32744as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32745echo "$as_me:$LINENO: checking for $ac_func" >&5
32746echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32747if eval "test \"\${$as_ac_var+set}\" = set"; then
32748 echo $ECHO_N "(cached) $ECHO_C" >&6
32749else
32750 cat >conftest.$ac_ext <<_ACEOF
32751/* confdefs.h. */
32752_ACEOF
32753cat confdefs.h >>conftest.$ac_ext
32754cat >>conftest.$ac_ext <<_ACEOF
32755/* end confdefs.h. */
ac1cb8d3
VS
32756/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32758#define $ac_func innocuous_$ac_func
32759
a848cd7e
SC
32760/* System header to define __stub macros and hopefully few prototypes,
32761 which can conflict with char $ac_func (); below.
32762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32763 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32764
a848cd7e
SC
32765#ifdef __STDC__
32766# include <limits.h>
32767#else
32768# include <assert.h>
32769#endif
ac1cb8d3
VS
32770
32771#undef $ac_func
32772
a848cd7e
SC
32773/* Override any gcc2 internal prototype to avoid an error. */
32774#ifdef __cplusplus
32775extern "C"
32776{
32777#endif
32778/* We use char because int might match the return type of a gcc2
32779 builtin and then its argument prototype would still apply. */
32780char $ac_func ();
32781/* The GNU C library defines this for functions which it implements
32782 to always fail with ENOSYS. Some functions are actually named
32783 something starting with __ and the normal name is an alias. */
32784#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32785choke me
32786#else
32787char (*f) () = $ac_func;
32788#endif
32789#ifdef __cplusplus
32790}
32791#endif
32792
32793int
32794main ()
32795{
32796return f != $ac_func;
32797 ;
32798 return 0;
32799}
32800_ACEOF
32801rm -f conftest.$ac_objext conftest$ac_exeext
32802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32803 (eval $ac_link) 2>conftest.er1
a848cd7e 32804 ac_status=$?
ac1cb8d3
VS
32805 grep -v '^ *+' conftest.er1 >conftest.err
32806 rm -f conftest.er1
32807 cat conftest.err >&5
a848cd7e
SC
32808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32809 (exit $ac_status); } &&
07158944 32810 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32812 (eval $ac_try) 2>&5
32813 ac_status=$?
32814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32815 (exit $ac_status); }; } &&
32816 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32818 (eval $ac_try) 2>&5
32819 ac_status=$?
32820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32821 (exit $ac_status); }; }; then
32822 eval "$as_ac_var=yes"
32823else
32824 echo "$as_me: failed program was:" >&5
32825sed 's/^/| /' conftest.$ac_ext >&5
32826
32827eval "$as_ac_var=no"
32828fi
ac1cb8d3
VS
32829rm -f conftest.err conftest.$ac_objext \
32830 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32831fi
32832echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32833echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32834if test `eval echo '${'$as_ac_var'}'` = yes; then
32835 cat >>confdefs.h <<_ACEOF
32836#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32837_ACEOF
32838
32839fi
32840done
32841
32842
32843ac_ext=c
32844ac_cpp='$CPP $CPPFLAGS'
32845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32847ac_compiler_gnu=$ac_cv_c_compiler_gnu
32848
32849
32850INET_LINK=
32851
32852for ac_func in inet_addr
32853do
32854as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32855echo "$as_me:$LINENO: checking for $ac_func" >&5
32856echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32857if eval "test \"\${$as_ac_var+set}\" = set"; then
32858 echo $ECHO_N "(cached) $ECHO_C" >&6
32859else
32860 cat >conftest.$ac_ext <<_ACEOF
32861/* confdefs.h. */
32862_ACEOF
32863cat confdefs.h >>conftest.$ac_ext
32864cat >>conftest.$ac_ext <<_ACEOF
32865/* end confdefs.h. */
ac1cb8d3
VS
32866/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32868#define $ac_func innocuous_$ac_func
32869
a848cd7e
SC
32870/* System header to define __stub macros and hopefully few prototypes,
32871 which can conflict with char $ac_func (); below.
32872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32873 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32874
a848cd7e
SC
32875#ifdef __STDC__
32876# include <limits.h>
32877#else
32878# include <assert.h>
32879#endif
ac1cb8d3
VS
32880
32881#undef $ac_func
32882
a848cd7e
SC
32883/* Override any gcc2 internal prototype to avoid an error. */
32884#ifdef __cplusplus
32885extern "C"
32886{
32887#endif
32888/* We use char because int might match the return type of a gcc2
32889 builtin and then its argument prototype would still apply. */
32890char $ac_func ();
32891/* The GNU C library defines this for functions which it implements
32892 to always fail with ENOSYS. Some functions are actually named
32893 something starting with __ and the normal name is an alias. */
32894#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32895choke me
32896#else
32897char (*f) () = $ac_func;
32898#endif
32899#ifdef __cplusplus
32900}
32901#endif
32902
32903int
32904main ()
32905{
32906return f != $ac_func;
32907 ;
32908 return 0;
32909}
32910_ACEOF
32911rm -f conftest.$ac_objext conftest$ac_exeext
32912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32913 (eval $ac_link) 2>conftest.er1
a848cd7e 32914 ac_status=$?
ac1cb8d3
VS
32915 grep -v '^ *+' conftest.er1 >conftest.err
32916 rm -f conftest.er1
32917 cat conftest.err >&5
a848cd7e
SC
32918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32919 (exit $ac_status); } &&
07158944 32920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32922 (eval $ac_try) 2>&5
32923 ac_status=$?
32924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32925 (exit $ac_status); }; } &&
32926 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32928 (eval $ac_try) 2>&5
32929 ac_status=$?
32930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32931 (exit $ac_status); }; }; then
32932 eval "$as_ac_var=yes"
32933else
32934 echo "$as_me: failed program was:" >&5
32935sed 's/^/| /' conftest.$ac_ext >&5
32936
32937eval "$as_ac_var=no"
32938fi
ac1cb8d3
VS
32939rm -f conftest.err conftest.$ac_objext \
32940 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32941fi
32942echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32943echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32944if test `eval echo '${'$as_ac_var'}'` = yes; then
32945 cat >>confdefs.h <<_ACEOF
32946#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32947_ACEOF
32948 cat >>confdefs.h <<\_ACEOF
32949#define HAVE_INET_ADDR 1
32950_ACEOF
32951
32952else
32953
32954 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
32955echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
32956if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
32957 echo $ECHO_N "(cached) $ECHO_C" >&6
32958else
32959 ac_check_lib_save_LIBS=$LIBS
32960LIBS="-lnsl $LIBS"
32961cat >conftest.$ac_ext <<_ACEOF
32962/* confdefs.h. */
32963_ACEOF
32964cat confdefs.h >>conftest.$ac_ext
32965cat >>conftest.$ac_ext <<_ACEOF
32966/* end confdefs.h. */
32967
32968/* Override any gcc2 internal prototype to avoid an error. */
32969#ifdef __cplusplus
32970extern "C"
32971#endif
32972/* We use char because int might match the return type of a gcc2
32973 builtin and then its argument prototype would still apply. */
32974char inet_addr ();
32975int
32976main ()
32977{
32978inet_addr ();
32979 ;
32980 return 0;
32981}
32982_ACEOF
32983rm -f conftest.$ac_objext conftest$ac_exeext
32984if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32985 (eval $ac_link) 2>conftest.er1
a848cd7e 32986 ac_status=$?
ac1cb8d3
VS
32987 grep -v '^ *+' conftest.er1 >conftest.err
32988 rm -f conftest.er1
32989 cat conftest.err >&5
a848cd7e
SC
32990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32991 (exit $ac_status); } &&
07158944 32992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32994 (eval $ac_try) 2>&5
32995 ac_status=$?
32996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32997 (exit $ac_status); }; } &&
32998 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33000 (eval $ac_try) 2>&5
33001 ac_status=$?
33002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33003 (exit $ac_status); }; }; then
33004 ac_cv_lib_nsl_inet_addr=yes
33005else
33006 echo "$as_me: failed program was:" >&5
33007sed 's/^/| /' conftest.$ac_ext >&5
33008
33009ac_cv_lib_nsl_inet_addr=no
33010fi
ac1cb8d3
VS
33011rm -f conftest.err conftest.$ac_objext \
33012 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33013LIBS=$ac_check_lib_save_LIBS
33014fi
33015echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
33016echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
33017if test $ac_cv_lib_nsl_inet_addr = yes; then
33018 INET_LINK="nsl"
33019else
33020
33021 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
33022echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
33023if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
33024 echo $ECHO_N "(cached) $ECHO_C" >&6
33025else
33026 ac_check_lib_save_LIBS=$LIBS
33027LIBS="-lresolv $LIBS"
33028cat >conftest.$ac_ext <<_ACEOF
33029/* confdefs.h. */
33030_ACEOF
33031cat confdefs.h >>conftest.$ac_ext
33032cat >>conftest.$ac_ext <<_ACEOF
33033/* end confdefs.h. */
33034
33035/* Override any gcc2 internal prototype to avoid an error. */
33036#ifdef __cplusplus
33037extern "C"
33038#endif
33039/* We use char because int might match the return type of a gcc2
33040 builtin and then its argument prototype would still apply. */
33041char inet_addr ();
33042int
33043main ()
33044{
33045inet_addr ();
33046 ;
33047 return 0;
33048}
33049_ACEOF
33050rm -f conftest.$ac_objext conftest$ac_exeext
33051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33052 (eval $ac_link) 2>conftest.er1
a848cd7e 33053 ac_status=$?
ac1cb8d3
VS
33054 grep -v '^ *+' conftest.er1 >conftest.err
33055 rm -f conftest.er1
33056 cat conftest.err >&5
a848cd7e
SC
33057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33058 (exit $ac_status); } &&
07158944 33059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33061 (eval $ac_try) 2>&5
33062 ac_status=$?
33063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33064 (exit $ac_status); }; } &&
33065 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33067 (eval $ac_try) 2>&5
33068 ac_status=$?
33069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33070 (exit $ac_status); }; }; then
33071 ac_cv_lib_resolv_inet_addr=yes
33072else
33073 echo "$as_me: failed program was:" >&5
33074sed 's/^/| /' conftest.$ac_ext >&5
33075
33076ac_cv_lib_resolv_inet_addr=no
33077fi
ac1cb8d3
VS
33078rm -f conftest.err conftest.$ac_objext \
33079 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33080LIBS=$ac_check_lib_save_LIBS
33081fi
33082echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
33083echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
33084if test $ac_cv_lib_resolv_inet_addr = yes; then
33085 INET_LINK="resolv"
33086else
33087
33088 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
33089echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
33090if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
33091 echo $ECHO_N "(cached) $ECHO_C" >&6
33092else
33093 ac_check_lib_save_LIBS=$LIBS
33094LIBS="-lsocket $LIBS"
33095cat >conftest.$ac_ext <<_ACEOF
33096/* confdefs.h. */
33097_ACEOF
33098cat confdefs.h >>conftest.$ac_ext
33099cat >>conftest.$ac_ext <<_ACEOF
33100/* end confdefs.h. */
33101
33102/* Override any gcc2 internal prototype to avoid an error. */
33103#ifdef __cplusplus
33104extern "C"
33105#endif
33106/* We use char because int might match the return type of a gcc2
33107 builtin and then its argument prototype would still apply. */
33108char inet_addr ();
33109int
33110main ()
33111{
33112inet_addr ();
33113 ;
33114 return 0;
33115}
33116_ACEOF
33117rm -f conftest.$ac_objext conftest$ac_exeext
33118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33119 (eval $ac_link) 2>conftest.er1
a848cd7e 33120 ac_status=$?
ac1cb8d3
VS
33121 grep -v '^ *+' conftest.er1 >conftest.err
33122 rm -f conftest.er1
33123 cat conftest.err >&5
a848cd7e
SC
33124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33125 (exit $ac_status); } &&
07158944 33126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33128 (eval $ac_try) 2>&5
33129 ac_status=$?
33130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33131 (exit $ac_status); }; } &&
33132 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33134 (eval $ac_try) 2>&5
33135 ac_status=$?
33136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33137 (exit $ac_status); }; }; then
33138 ac_cv_lib_socket_inet_addr=yes
33139else
33140 echo "$as_me: failed program was:" >&5
33141sed 's/^/| /' conftest.$ac_ext >&5
33142
33143ac_cv_lib_socket_inet_addr=no
33144fi
ac1cb8d3
VS
33145rm -f conftest.err conftest.$ac_objext \
33146 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33147LIBS=$ac_check_lib_save_LIBS
33148fi
33149echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
33150echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
33151if test $ac_cv_lib_socket_inet_addr = yes; then
33152 INET_LINK="socket"
33153
33154fi
33155
33156
33157
33158fi
33159
33160
33161
33162fi
33163
33164
33165
33166fi
33167done
33168
33169
33170
33171for ac_func in inet_aton
33172do
33173as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33174echo "$as_me:$LINENO: checking for $ac_func" >&5
33175echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33176if eval "test \"\${$as_ac_var+set}\" = set"; then
33177 echo $ECHO_N "(cached) $ECHO_C" >&6
33178else
33179 cat >conftest.$ac_ext <<_ACEOF
33180/* confdefs.h. */
33181_ACEOF
33182cat confdefs.h >>conftest.$ac_ext
33183cat >>conftest.$ac_ext <<_ACEOF
33184/* end confdefs.h. */
ac1cb8d3
VS
33185/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33187#define $ac_func innocuous_$ac_func
33188
a848cd7e
SC
33189/* System header to define __stub macros and hopefully few prototypes,
33190 which can conflict with char $ac_func (); below.
33191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33192 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33193
a848cd7e
SC
33194#ifdef __STDC__
33195# include <limits.h>
33196#else
33197# include <assert.h>
33198#endif
ac1cb8d3
VS
33199
33200#undef $ac_func
33201
a848cd7e
SC
33202/* Override any gcc2 internal prototype to avoid an error. */
33203#ifdef __cplusplus
33204extern "C"
33205{
33206#endif
33207/* We use char because int might match the return type of a gcc2
33208 builtin and then its argument prototype would still apply. */
33209char $ac_func ();
33210/* The GNU C library defines this for functions which it implements
33211 to always fail with ENOSYS. Some functions are actually named
33212 something starting with __ and the normal name is an alias. */
33213#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33214choke me
33215#else
33216char (*f) () = $ac_func;
33217#endif
33218#ifdef __cplusplus
33219}
33220#endif
33221
33222int
33223main ()
33224{
33225return f != $ac_func;
33226 ;
33227 return 0;
33228}
33229_ACEOF
33230rm -f conftest.$ac_objext conftest$ac_exeext
33231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33232 (eval $ac_link) 2>conftest.er1
a848cd7e 33233 ac_status=$?
ac1cb8d3
VS
33234 grep -v '^ *+' conftest.er1 >conftest.err
33235 rm -f conftest.er1
33236 cat conftest.err >&5
a848cd7e
SC
33237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33238 (exit $ac_status); } &&
07158944 33239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33241 (eval $ac_try) 2>&5
33242 ac_status=$?
33243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33244 (exit $ac_status); }; } &&
33245 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33247 (eval $ac_try) 2>&5
33248 ac_status=$?
33249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33250 (exit $ac_status); }; }; then
33251 eval "$as_ac_var=yes"
33252else
33253 echo "$as_me: failed program was:" >&5
33254sed 's/^/| /' conftest.$ac_ext >&5
33255
33256eval "$as_ac_var=no"
33257fi
ac1cb8d3
VS
33258rm -f conftest.err conftest.$ac_objext \
33259 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33260fi
33261echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33262echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33263if test `eval echo '${'$as_ac_var'}'` = yes; then
33264 cat >>confdefs.h <<_ACEOF
33265#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33266_ACEOF
33267 cat >>confdefs.h <<\_ACEOF
33268#define HAVE_INET_ATON 1
33269_ACEOF
33270
33271else
33272
33273 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
33274echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
33275echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
33276if eval "test \"\${$as_ac_Lib+set}\" = set"; then
33277 echo $ECHO_N "(cached) $ECHO_C" >&6
33278else
33279 ac_check_lib_save_LIBS=$LIBS
33280LIBS="-l$INET_LINK $LIBS"
33281cat >conftest.$ac_ext <<_ACEOF
33282/* confdefs.h. */
33283_ACEOF
33284cat confdefs.h >>conftest.$ac_ext
33285cat >>conftest.$ac_ext <<_ACEOF
33286/* end confdefs.h. */
33287
33288/* Override any gcc2 internal prototype to avoid an error. */
33289#ifdef __cplusplus
33290extern "C"
33291#endif
33292/* We use char because int might match the return type of a gcc2
33293 builtin and then its argument prototype would still apply. */
33294char inet_aton ();
33295int
33296main ()
33297{
33298inet_aton ();
33299 ;
33300 return 0;
33301}
33302_ACEOF
33303rm -f conftest.$ac_objext conftest$ac_exeext
33304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33305 (eval $ac_link) 2>conftest.er1
a848cd7e 33306 ac_status=$?
ac1cb8d3
VS
33307 grep -v '^ *+' conftest.er1 >conftest.err
33308 rm -f conftest.er1
33309 cat conftest.err >&5
a848cd7e
SC
33310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33311 (exit $ac_status); } &&
07158944 33312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33314 (eval $ac_try) 2>&5
33315 ac_status=$?
33316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33317 (exit $ac_status); }; } &&
33318 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33320 (eval $ac_try) 2>&5
33321 ac_status=$?
33322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33323 (exit $ac_status); }; }; then
33324 eval "$as_ac_Lib=yes"
33325else
33326 echo "$as_me: failed program was:" >&5
33327sed 's/^/| /' conftest.$ac_ext >&5
33328
33329eval "$as_ac_Lib=no"
33330fi
ac1cb8d3
VS
33331rm -f conftest.err conftest.$ac_objext \
33332 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33333LIBS=$ac_check_lib_save_LIBS
33334fi
33335echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
33336echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
33337if test `eval echo '${'$as_ac_Lib'}'` = yes; then
33338 cat >>confdefs.h <<\_ACEOF
33339#define HAVE_INET_ATON 1
33340_ACEOF
33341
33342fi
33343
33344
33345fi
33346done
33347
33348
33349if test "x$INET_LINK" != "x"; then
33350 cat >>confdefs.h <<\_ACEOF
33351#define HAVE_INET_ADDR 1
33352_ACEOF
33353
33354 INET_LINK=" -l$INET_LINK"
33355fi
33356
33357fi
33358
33359
33360
33361EXTRALIBS_ESD=
33362echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
33363echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
33364if test "${ac_cv_lib_esd_esd_close+set}" = set; then
33365 echo $ECHO_N "(cached) $ECHO_C" >&6
33366else
33367 ac_check_lib_save_LIBS=$LIBS
33368LIBS="-lesd $LIBS"
33369cat >conftest.$ac_ext <<_ACEOF
33370/* confdefs.h. */
33371_ACEOF
33372cat confdefs.h >>conftest.$ac_ext
33373cat >>conftest.$ac_ext <<_ACEOF
33374/* end confdefs.h. */
33375
33376/* Override any gcc2 internal prototype to avoid an error. */
33377#ifdef __cplusplus
33378extern "C"
33379#endif
33380/* We use char because int might match the return type of a gcc2
33381 builtin and then its argument prototype would still apply. */
33382char esd_close ();
33383int
33384main ()
33385{
33386esd_close ();
33387 ;
33388 return 0;
33389}
33390_ACEOF
33391rm -f conftest.$ac_objext conftest$ac_exeext
33392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33393 (eval $ac_link) 2>conftest.er1
a848cd7e 33394 ac_status=$?
ac1cb8d3
VS
33395 grep -v '^ *+' conftest.er1 >conftest.err
33396 rm -f conftest.er1
33397 cat conftest.err >&5
a848cd7e
SC
33398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33399 (exit $ac_status); } &&
07158944 33400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33402 (eval $ac_try) 2>&5
33403 ac_status=$?
33404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33405 (exit $ac_status); }; } &&
33406 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33408 (eval $ac_try) 2>&5
33409 ac_status=$?
33410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33411 (exit $ac_status); }; }; then
33412 ac_cv_lib_esd_esd_close=yes
33413else
33414 echo "$as_me: failed program was:" >&5
33415sed 's/^/| /' conftest.$ac_ext >&5
33416
33417ac_cv_lib_esd_esd_close=no
33418fi
ac1cb8d3
VS
33419rm -f conftest.err conftest.$ac_objext \
33420 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33421LIBS=$ac_check_lib_save_LIBS
33422fi
33423echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
33424echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
33425if test $ac_cv_lib_esd_esd_close = yes; then
33426
33427
33428for ac_header in esd.h
33429do
33430as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33431if eval "test \"\${$as_ac_Header+set}\" = set"; then
33432 echo "$as_me:$LINENO: checking for $ac_header" >&5
33433echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33434if eval "test \"\${$as_ac_Header+set}\" = set"; then
33435 echo $ECHO_N "(cached) $ECHO_C" >&6
33436fi
33437echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33438echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33439else
33440 # Is the header compilable?
33441echo "$as_me:$LINENO: checking $ac_header usability" >&5
33442echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33443cat >conftest.$ac_ext <<_ACEOF
33444/* confdefs.h. */
33445_ACEOF
33446cat confdefs.h >>conftest.$ac_ext
33447cat >>conftest.$ac_ext <<_ACEOF
33448/* end confdefs.h. */
33449$ac_includes_default
33450#include <$ac_header>
33451_ACEOF
33452rm -f conftest.$ac_objext
33453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33454 (eval $ac_compile) 2>conftest.er1
a848cd7e 33455 ac_status=$?
ac1cb8d3
VS
33456 grep -v '^ *+' conftest.er1 >conftest.err
33457 rm -f conftest.er1
33458 cat conftest.err >&5
a848cd7e
SC
33459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33460 (exit $ac_status); } &&
07158944 33461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33463 (eval $ac_try) 2>&5
33464 ac_status=$?
33465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33466 (exit $ac_status); }; } &&
33467 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33469 (eval $ac_try) 2>&5
33470 ac_status=$?
33471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33472 (exit $ac_status); }; }; then
33473 ac_header_compiler=yes
33474else
33475 echo "$as_me: failed program was:" >&5
33476sed 's/^/| /' conftest.$ac_ext >&5
33477
33478ac_header_compiler=no
33479fi
ac1cb8d3 33480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33481echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33482echo "${ECHO_T}$ac_header_compiler" >&6
33483
33484# Is the header present?
33485echo "$as_me:$LINENO: checking $ac_header presence" >&5
33486echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33487cat >conftest.$ac_ext <<_ACEOF
33488/* confdefs.h. */
33489_ACEOF
33490cat confdefs.h >>conftest.$ac_ext
33491cat >>conftest.$ac_ext <<_ACEOF
33492/* end confdefs.h. */
33493#include <$ac_header>
33494_ACEOF
33495if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33497 ac_status=$?
33498 grep -v '^ *+' conftest.er1 >conftest.err
33499 rm -f conftest.er1
33500 cat conftest.err >&5
33501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33502 (exit $ac_status); } >/dev/null; then
33503 if test -s conftest.err; then
33504 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 33505 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
33506 else
33507 ac_cpp_err=
33508 fi
33509else
33510 ac_cpp_err=yes
33511fi
33512if test -z "$ac_cpp_err"; then
33513 ac_header_preproc=yes
33514else
33515 echo "$as_me: failed program was:" >&5
33516sed 's/^/| /' conftest.$ac_ext >&5
33517
33518 ac_header_preproc=no
33519fi
33520rm -f conftest.err conftest.$ac_ext
33521echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33522echo "${ECHO_T}$ac_header_preproc" >&6
33523
33524# So? What about this header?
ac1cb8d3
VS
33525case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33526 yes:no: )
a848cd7e
SC
33527 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33528echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33530echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33531 ac_header_preproc=yes
a848cd7e 33532 ;;
ac1cb8d3 33533 no:yes:* )
a848cd7e
SC
33534 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33535echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33536 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33537echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33538 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33539echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33540 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33541echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33543echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33544 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33545echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33546 (
33547 cat <<\_ASBOX
ac1cb8d3
VS
33548## ----------------------------------------- ##
33549## Report this to wx-dev@lists.wxwidgets.org ##
33550## ----------------------------------------- ##
a848cd7e
SC
33551_ASBOX
33552 ) |
33553 sed "s/^/$as_me: WARNING: /" >&2
33554 ;;
33555esac
33556echo "$as_me:$LINENO: checking for $ac_header" >&5
33557echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33558if eval "test \"\${$as_ac_Header+set}\" = set"; then
33559 echo $ECHO_N "(cached) $ECHO_C" >&6
33560else
ac1cb8d3 33561 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
33562fi
33563echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33564echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33565
33566fi
33567if test `eval echo '${'$as_ac_Header'}'` = yes; then
33568 cat >>confdefs.h <<_ACEOF
33569#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33570_ACEOF
33571
33572 EXTRALIBS_ESD="-lesd"
33573
33574fi
33575
33576done
33577
33578
33579fi
33580
33581
33582
33583echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
33584echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
33585cat >conftest.$ac_ext <<_ACEOF
33586/* confdefs.h. */
33587_ACEOF
33588cat confdefs.h >>conftest.$ac_ext
33589cat >>conftest.$ac_ext <<_ACEOF
33590/* end confdefs.h. */
33591#ifdef __linux__
33592 #include <linux/cdrom.h>
33593 #else
33594 /* For Solaris */
33595 #include <sys/cdio.h>
33596 #endif
33597
33598int
33599main ()
33600{
33601struct cdrom_tocentry entry, old_entry;
33602 ;
33603 return 0;
33604}
33605_ACEOF
33606rm -f conftest.$ac_objext
33607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33608 (eval $ac_compile) 2>conftest.er1
a848cd7e 33609 ac_status=$?
ac1cb8d3
VS
33610 grep -v '^ *+' conftest.er1 >conftest.err
33611 rm -f conftest.er1
33612 cat conftest.err >&5
a848cd7e
SC
33613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33614 (exit $ac_status); } &&
07158944 33615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33617 (eval $ac_try) 2>&5
33618 ac_status=$?
33619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33620 (exit $ac_status); }; } &&
33621 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33623 (eval $ac_try) 2>&5
33624 ac_status=$?
33625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33626 (exit $ac_status); }; }; then
33627 echo "$as_me:$LINENO: result: yes" >&5
33628echo "${ECHO_T}yes" >&6
33629 cat >>confdefs.h <<\_ACEOF
33630#define HAVE_KNOWN_CDROM_INTERFACE 1
33631_ACEOF
33632
33633else
33634 echo "$as_me: failed program was:" >&5
33635sed 's/^/| /' conftest.$ac_ext >&5
33636
33637echo "$as_me:$LINENO: result: no" >&5
33638echo "${ECHO_T}no" >&6
33639fi
ac1cb8d3 33640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33641
33642
33643cat >confcache <<\_ACEOF
33644# This file is a shell script that caches the results of configure
33645# tests run on this system so they can be shared between configure
33646# scripts and configure runs, see configure's option --config-cache.
33647# It is not useful on other systems. If it contains results you don't
33648# want to keep, you may remove or edit it.
33649#
33650# config.status only pays attention to the cache file if you give it
33651# the --recheck option to rerun configure.
33652#
33653# `ac_cv_env_foo' variables (set or unset) will be overridden when
33654# loading this file, other *unset* `ac_cv_foo' will be assigned the
33655# following values.
33656
33657_ACEOF
33658
33659# The following way of writing the cache mishandles newlines in values,
33660# but we know of no workaround that is simple, portable, and efficient.
33661# So, don't put newlines in cache variables' values.
33662# Ultrix sh set writes to stderr and can't be redirected directly,
33663# and sets the high bit in the cache file unless we assign to the vars.
33664{
33665 (set) 2>&1 |
33666 case `(ac_space=' '; set | grep ac_space) 2>&1` in
33667 *ac_space=\ *)
33668 # `set' does not quote correctly, so add quotes (double-quote
33669 # substitution turns \\\\ into \\, and sed turns \\ into \).
33670 sed -n \
ac1cb8d3
VS
33671 "s/'/'\\\\''/g;
33672 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
33673 ;;
33674 *)
33675 # `set' quotes correctly as required by POSIX, so do not add quotes.
33676 sed -n \
ac1cb8d3 33677 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
33678 ;;
33679 esac;
33680} |
33681 sed '
33682 t clear
33683 : clear
33684 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33685 t end
33686 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33687 : end' >>confcache
33688if diff $cache_file confcache >/dev/null 2>&1; then :; else
33689 if test -w $cache_file; then
33690 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
33691 cat confcache >$cache_file
33692 else
33693 echo "not updating unwritable cache $cache_file"
33694 fi
33695fi
33696rm -f confcache
33697
33698
33699CPP_MT_FLAG=
33700if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33701
33702
33703 THREADS_LINK=
33704 THREADS_CFLAGS=
33705
33706 if test "$wxUSE_THREADS" = "yes" ; then
33707 if test "$USE_BEOS" = 1; then
33708 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
33709echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
33710 wxUSE_THREADS="no"
33711 fi
33712 fi
33713
33714 if test "$wxUSE_THREADS" = "yes" ; then
33715
33716
33717 THREAD_OPTS="-pthread"
33718 case "${host}" in
33719 *-*-solaris2* | *-*-sunos4* )
33720 if test "x$GCC" = "xyes"; then
33721 THREAD_OPTS="-pthreads $THREAD_OPTS"
33722 else
33723 THREAD_OPTS="-mt $THREAD_OPTS"
33724 fi
33725 ;;
33726 *-*-freebsd*)
33727 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
33728 ;;
33729 *-*-darwin* | *-*-cygwin* )
33730 THREAD_OPTS=""
33731 ;;
33732 *-*-aix*)
33733 THREAD_OPTS="pthreads"
33734 ;;
33735 *-hp-hpux* )
33736 if test "x$GCC" != "xyes"; then
33737 THREAD_OPTS=""
33738 fi
33739 ;;
33740
33741 *-*-irix* )
33742 if test "x$GCC" = "xyes"; then
33743 THREAD_OPTS=""
33744 fi
33745 ;;
33746
33747 *-*-*UnixWare*)
33748 if test "x$GCC" != "xyes"; then
33749 THREAD_OPTS="-Ethread"
33750 fi
33751 ;;
33752 esac
33753
33754 THREAD_OPTS="$THREAD_OPTS pthread none"
33755
33756 THREADS_OK=no
33757 for flag in $THREAD_OPTS; do
33758 case $flag in
33759 none)
33760 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
33761echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
33762 ;;
33763
33764 -*)
33765 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
33766echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
33767 THREADS_CFLAGS="$flag"
33768 ;;
33769
33770 *)
33771 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
33772echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
33773 THREADS_LINK="-l$flag"
33774 ;;
33775 esac
33776
33777 save_LIBS="$LIBS"
33778 save_CFLAGS="$CFLAGS"
33779 LIBS="$THREADS_LINK $LIBS"
33780 CFLAGS="$THREADS_CFLAGS $CFLAGS"
33781
33782 cat >conftest.$ac_ext <<_ACEOF
33783/* confdefs.h. */
33784_ACEOF
33785cat confdefs.h >>conftest.$ac_ext
33786cat >>conftest.$ac_ext <<_ACEOF
33787/* end confdefs.h. */
33788#include <pthread.h>
33789int
33790main ()
33791{
33792pthread_create(0,0,0,0);
33793 ;
33794 return 0;
33795}
33796_ACEOF
33797rm -f conftest.$ac_objext conftest$ac_exeext
33798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33799 (eval $ac_link) 2>conftest.er1
a848cd7e 33800 ac_status=$?
ac1cb8d3
VS
33801 grep -v '^ *+' conftest.er1 >conftest.err
33802 rm -f conftest.er1
33803 cat conftest.err >&5
a848cd7e
SC
33804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33805 (exit $ac_status); } &&
07158944 33806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33808 (eval $ac_try) 2>&5
33809 ac_status=$?
33810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33811 (exit $ac_status); }; } &&
33812 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33814 (eval $ac_try) 2>&5
33815 ac_status=$?
33816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33817 (exit $ac_status); }; }; then
33818 THREADS_OK=yes
33819else
33820 echo "$as_me: failed program was:" >&5
33821sed 's/^/| /' conftest.$ac_ext >&5
33822
33823fi
ac1cb8d3
VS
33824rm -f conftest.err conftest.$ac_objext \
33825 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33826
33827 LIBS="$save_LIBS"
33828 CFLAGS="$save_CFLAGS"
33829
33830 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
33831echo "${ECHO_T}$THREADS_OK" >&6
33832 if test "x$THREADS_OK" = "xyes"; then
33833 break;
33834 fi
33835
33836 THREADS_LINK=""
33837 THREADS_CFLAGS=""
33838 done
33839
33840 if test "x$THREADS_OK" != "xyes"; then
33841 wxUSE_THREADS=no
33842 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
33843echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
33844 else
33845 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
33846 LIBS="$THREADS_LINK $LIBS"
33847
33848 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
33849echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
33850 flag=no
33851 case "${host}" in
33852 *-aix*)
33853 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
33854 flag="-D_THREAD_SAFE"
33855 ;;
33856 *-freebsd*)
33857 flag="-D_THREAD_SAFE"
33858 ;;
33859 *-hp-hpux* )
33860 flag="-D_REENTRANT"
33861 if test "x$GCC" != "xyes"; then
33862 flag="$flag -D_RWSTD_MULTI_THREAD"
33863 fi
33864 ;;
33865 *solaris* | alpha*-osf*)
33866 flag="-D_REENTRANT"
33867 ;;
33868 esac
33869 echo "$as_me:$LINENO: result: ${flag}" >&5
33870echo "${ECHO_T}${flag}" >&6
33871 if test "x$flag" != xno; then
33872 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
33873 fi
33874
33875 if test "x$THREADS_CFLAGS" != "x"; then
33876 CFLAGS="$CFLAGS $THREADS_CFLAGS"
33877 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
33878 fi
33879 fi
33880 fi
33881
33882 if test "$wxUSE_THREADS" = "yes" ; then
33883
33884for ac_func in thr_setconcurrency
33885do
33886as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33887echo "$as_me:$LINENO: checking for $ac_func" >&5
33888echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33889if eval "test \"\${$as_ac_var+set}\" = set"; then
33890 echo $ECHO_N "(cached) $ECHO_C" >&6
33891else
33892 cat >conftest.$ac_ext <<_ACEOF
33893/* confdefs.h. */
33894_ACEOF
33895cat confdefs.h >>conftest.$ac_ext
33896cat >>conftest.$ac_ext <<_ACEOF
33897/* end confdefs.h. */
ac1cb8d3
VS
33898/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33900#define $ac_func innocuous_$ac_func
33901
a848cd7e
SC
33902/* System header to define __stub macros and hopefully few prototypes,
33903 which can conflict with char $ac_func (); below.
33904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33905 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33906
a848cd7e
SC
33907#ifdef __STDC__
33908# include <limits.h>
33909#else
33910# include <assert.h>
33911#endif
ac1cb8d3
VS
33912
33913#undef $ac_func
33914
a848cd7e
SC
33915/* Override any gcc2 internal prototype to avoid an error. */
33916#ifdef __cplusplus
33917extern "C"
33918{
33919#endif
33920/* We use char because int might match the return type of a gcc2
33921 builtin and then its argument prototype would still apply. */
33922char $ac_func ();
33923/* The GNU C library defines this for functions which it implements
33924 to always fail with ENOSYS. Some functions are actually named
33925 something starting with __ and the normal name is an alias. */
33926#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33927choke me
33928#else
33929char (*f) () = $ac_func;
33930#endif
33931#ifdef __cplusplus
33932}
33933#endif
33934
33935int
33936main ()
33937{
33938return f != $ac_func;
33939 ;
33940 return 0;
33941}
33942_ACEOF
33943rm -f conftest.$ac_objext conftest$ac_exeext
33944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33945 (eval $ac_link) 2>conftest.er1
a848cd7e 33946 ac_status=$?
ac1cb8d3
VS
33947 grep -v '^ *+' conftest.er1 >conftest.err
33948 rm -f conftest.er1
33949 cat conftest.err >&5
a848cd7e
SC
33950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33951 (exit $ac_status); } &&
07158944 33952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33954 (eval $ac_try) 2>&5
33955 ac_status=$?
33956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33957 (exit $ac_status); }; } &&
33958 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33960 (eval $ac_try) 2>&5
33961 ac_status=$?
33962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33963 (exit $ac_status); }; }; then
33964 eval "$as_ac_var=yes"
33965else
33966 echo "$as_me: failed program was:" >&5
33967sed 's/^/| /' conftest.$ac_ext >&5
33968
33969eval "$as_ac_var=no"
33970fi
ac1cb8d3
VS
33971rm -f conftest.err conftest.$ac_objext \
33972 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33973fi
33974echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33975echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33976if test `eval echo '${'$as_ac_var'}'` = yes; then
33977 cat >>confdefs.h <<_ACEOF
33978#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33979_ACEOF
33980
33981fi
33982done
33983
33984
33985
33986for ac_header in sched.h
33987do
33988as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33989if eval "test \"\${$as_ac_Header+set}\" = set"; then
33990 echo "$as_me:$LINENO: checking for $ac_header" >&5
33991echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33992if eval "test \"\${$as_ac_Header+set}\" = set"; then
33993 echo $ECHO_N "(cached) $ECHO_C" >&6
33994fi
33995echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33996echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33997else
33998 # Is the header compilable?
33999echo "$as_me:$LINENO: checking $ac_header usability" >&5
34000echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34001cat >conftest.$ac_ext <<_ACEOF
34002/* confdefs.h. */
34003_ACEOF
34004cat confdefs.h >>conftest.$ac_ext
34005cat >>conftest.$ac_ext <<_ACEOF
34006/* end confdefs.h. */
34007$ac_includes_default
34008#include <$ac_header>
34009_ACEOF
34010rm -f conftest.$ac_objext
34011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34012 (eval $ac_compile) 2>conftest.er1
a848cd7e 34013 ac_status=$?
ac1cb8d3
VS
34014 grep -v '^ *+' conftest.er1 >conftest.err
34015 rm -f conftest.er1
34016 cat conftest.err >&5
a848cd7e
SC
34017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34018 (exit $ac_status); } &&
07158944 34019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34021 (eval $ac_try) 2>&5
34022 ac_status=$?
34023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34024 (exit $ac_status); }; } &&
34025 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34027 (eval $ac_try) 2>&5
34028 ac_status=$?
34029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34030 (exit $ac_status); }; }; then
34031 ac_header_compiler=yes
34032else
34033 echo "$as_me: failed program was:" >&5
34034sed 's/^/| /' conftest.$ac_ext >&5
34035
34036ac_header_compiler=no
34037fi
ac1cb8d3 34038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34039echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34040echo "${ECHO_T}$ac_header_compiler" >&6
34041
34042# Is the header present?
34043echo "$as_me:$LINENO: checking $ac_header presence" >&5
34044echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34045cat >conftest.$ac_ext <<_ACEOF
34046/* confdefs.h. */
34047_ACEOF
34048cat confdefs.h >>conftest.$ac_ext
34049cat >>conftest.$ac_ext <<_ACEOF
34050/* end confdefs.h. */
34051#include <$ac_header>
34052_ACEOF
34053if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34055 ac_status=$?
34056 grep -v '^ *+' conftest.er1 >conftest.err
34057 rm -f conftest.er1
34058 cat conftest.err >&5
34059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34060 (exit $ac_status); } >/dev/null; then
34061 if test -s conftest.err; then
34062 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34064 else
34065 ac_cpp_err=
34066 fi
34067else
34068 ac_cpp_err=yes
34069fi
34070if test -z "$ac_cpp_err"; then
34071 ac_header_preproc=yes
34072else
34073 echo "$as_me: failed program was:" >&5
34074sed 's/^/| /' conftest.$ac_ext >&5
34075
34076 ac_header_preproc=no
34077fi
34078rm -f conftest.err conftest.$ac_ext
34079echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34080echo "${ECHO_T}$ac_header_preproc" >&6
34081
34082# So? What about this header?
ac1cb8d3
VS
34083case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34084 yes:no: )
a848cd7e
SC
34085 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34086echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34088echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34089 ac_header_preproc=yes
a848cd7e 34090 ;;
ac1cb8d3 34091 no:yes:* )
a848cd7e
SC
34092 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34093echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34094 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34095echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34096 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34097echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34098 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34099echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34101echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34102 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34103echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34104 (
34105 cat <<\_ASBOX
ac1cb8d3
VS
34106## ----------------------------------------- ##
34107## Report this to wx-dev@lists.wxwidgets.org ##
34108## ----------------------------------------- ##
a848cd7e
SC
34109_ASBOX
34110 ) |
34111 sed "s/^/$as_me: WARNING: /" >&2
34112 ;;
34113esac
34114echo "$as_me:$LINENO: checking for $ac_header" >&5
34115echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34116if eval "test \"\${$as_ac_Header+set}\" = set"; then
34117 echo $ECHO_N "(cached) $ECHO_C" >&6
34118else
ac1cb8d3 34119 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34120fi
34121echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34122echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34123
34124fi
34125if test `eval echo '${'$as_ac_Header'}'` = yes; then
34126 cat >>confdefs.h <<_ACEOF
34127#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34128_ACEOF
34129
34130fi
34131
34132done
34133
34134 if test "$ac_cv_header_sched_h" = "yes"; then
34135 echo "$as_me:$LINENO: checking for sched_yield" >&5
34136echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
34137if test "${ac_cv_func_sched_yield+set}" = set; then
34138 echo $ECHO_N "(cached) $ECHO_C" >&6
34139else
34140 cat >conftest.$ac_ext <<_ACEOF
34141/* confdefs.h. */
34142_ACEOF
34143cat confdefs.h >>conftest.$ac_ext
34144cat >>conftest.$ac_ext <<_ACEOF
34145/* end confdefs.h. */
ac1cb8d3
VS
34146/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
34147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34148#define sched_yield innocuous_sched_yield
34149
a848cd7e
SC
34150/* System header to define __stub macros and hopefully few prototypes,
34151 which can conflict with char sched_yield (); below.
34152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34153 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34154
a848cd7e
SC
34155#ifdef __STDC__
34156# include <limits.h>
34157#else
34158# include <assert.h>
34159#endif
ac1cb8d3
VS
34160
34161#undef sched_yield
34162
a848cd7e
SC
34163/* Override any gcc2 internal prototype to avoid an error. */
34164#ifdef __cplusplus
34165extern "C"
34166{
34167#endif
34168/* We use char because int might match the return type of a gcc2
34169 builtin and then its argument prototype would still apply. */
34170char sched_yield ();
34171/* The GNU C library defines this for functions which it implements
34172 to always fail with ENOSYS. Some functions are actually named
34173 something starting with __ and the normal name is an alias. */
34174#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
34175choke me
34176#else
34177char (*f) () = sched_yield;
34178#endif
34179#ifdef __cplusplus
34180}
34181#endif
34182
34183int
34184main ()
34185{
34186return f != sched_yield;
34187 ;
34188 return 0;
34189}
34190_ACEOF
34191rm -f conftest.$ac_objext conftest$ac_exeext
34192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34193 (eval $ac_link) 2>conftest.er1
a848cd7e 34194 ac_status=$?
ac1cb8d3
VS
34195 grep -v '^ *+' conftest.er1 >conftest.err
34196 rm -f conftest.er1
34197 cat conftest.err >&5
a848cd7e
SC
34198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34199 (exit $ac_status); } &&
07158944 34200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34202 (eval $ac_try) 2>&5
34203 ac_status=$?
34204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34205 (exit $ac_status); }; } &&
34206 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34208 (eval $ac_try) 2>&5
34209 ac_status=$?
34210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34211 (exit $ac_status); }; }; then
34212 ac_cv_func_sched_yield=yes
34213else
34214 echo "$as_me: failed program was:" >&5
34215sed 's/^/| /' conftest.$ac_ext >&5
34216
34217ac_cv_func_sched_yield=no
34218fi
ac1cb8d3
VS
34219rm -f conftest.err conftest.$ac_objext \
34220 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34221fi
34222echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
34223echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
34224if test $ac_cv_func_sched_yield = yes; then
34225 cat >>confdefs.h <<\_ACEOF
34226#define HAVE_SCHED_YIELD 1
34227_ACEOF
34228
34229else
34230
34231 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
34232echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
34233if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
34234 echo $ECHO_N "(cached) $ECHO_C" >&6
34235else
34236 ac_check_lib_save_LIBS=$LIBS
34237LIBS="-lposix4 $LIBS"
34238cat >conftest.$ac_ext <<_ACEOF
34239/* confdefs.h. */
34240_ACEOF
34241cat confdefs.h >>conftest.$ac_ext
34242cat >>conftest.$ac_ext <<_ACEOF
34243/* end confdefs.h. */
34244
34245/* Override any gcc2 internal prototype to avoid an error. */
34246#ifdef __cplusplus
34247extern "C"
34248#endif
34249/* We use char because int might match the return type of a gcc2
34250 builtin and then its argument prototype would still apply. */
34251char sched_yield ();
34252int
34253main ()
34254{
34255sched_yield ();
34256 ;
34257 return 0;
34258}
34259_ACEOF
34260rm -f conftest.$ac_objext conftest$ac_exeext
34261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34262 (eval $ac_link) 2>conftest.er1
a848cd7e 34263 ac_status=$?
ac1cb8d3
VS
34264 grep -v '^ *+' conftest.er1 >conftest.err
34265 rm -f conftest.er1
34266 cat conftest.err >&5
a848cd7e
SC
34267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34268 (exit $ac_status); } &&
07158944 34269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34271 (eval $ac_try) 2>&5
34272 ac_status=$?
34273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34274 (exit $ac_status); }; } &&
34275 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34277 (eval $ac_try) 2>&5
34278 ac_status=$?
34279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34280 (exit $ac_status); }; }; then
34281 ac_cv_lib_posix4_sched_yield=yes
34282else
34283 echo "$as_me: failed program was:" >&5
34284sed 's/^/| /' conftest.$ac_ext >&5
34285
34286ac_cv_lib_posix4_sched_yield=no
34287fi
ac1cb8d3
VS
34288rm -f conftest.err conftest.$ac_objext \
34289 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34290LIBS=$ac_check_lib_save_LIBS
34291fi
34292echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
34293echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
34294if test $ac_cv_lib_posix4_sched_yield = yes; then
34295 cat >>confdefs.h <<\_ACEOF
34296#define HAVE_SCHED_YIELD 1
34297_ACEOF
34298 POSIX4_LINK=" -lposix4"
34299else
34300 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
34301echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
34302
34303fi
34304
34305
34306
34307fi
34308
34309 fi
34310
34311 HAVE_PRIOR_FUNCS=0
34312 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
34313echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
34314if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
34315 echo $ECHO_N "(cached) $ECHO_C" >&6
34316else
34317 cat >conftest.$ac_ext <<_ACEOF
34318/* confdefs.h. */
34319_ACEOF
34320cat confdefs.h >>conftest.$ac_ext
34321cat >>conftest.$ac_ext <<_ACEOF
34322/* end confdefs.h. */
ac1cb8d3
VS
34323/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
34324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34325#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
34326
a848cd7e
SC
34327/* System header to define __stub macros and hopefully few prototypes,
34328 which can conflict with char pthread_attr_getschedpolicy (); below.
34329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34330 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34331
a848cd7e
SC
34332#ifdef __STDC__
34333# include <limits.h>
34334#else
34335# include <assert.h>
34336#endif
ac1cb8d3
VS
34337
34338#undef pthread_attr_getschedpolicy
34339
a848cd7e
SC
34340/* Override any gcc2 internal prototype to avoid an error. */
34341#ifdef __cplusplus
34342extern "C"
34343{
34344#endif
34345/* We use char because int might match the return type of a gcc2
34346 builtin and then its argument prototype would still apply. */
34347char pthread_attr_getschedpolicy ();
34348/* The GNU C library defines this for functions which it implements
34349 to always fail with ENOSYS. Some functions are actually named
34350 something starting with __ and the normal name is an alias. */
34351#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
34352choke me
34353#else
34354char (*f) () = pthread_attr_getschedpolicy;
34355#endif
34356#ifdef __cplusplus
34357}
34358#endif
34359
34360int
34361main ()
34362{
34363return f != pthread_attr_getschedpolicy;
34364 ;
34365 return 0;
34366}
34367_ACEOF
34368rm -f conftest.$ac_objext conftest$ac_exeext
34369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34370 (eval $ac_link) 2>conftest.er1
a848cd7e 34371 ac_status=$?
ac1cb8d3
VS
34372 grep -v '^ *+' conftest.er1 >conftest.err
34373 rm -f conftest.er1
34374 cat conftest.err >&5
a848cd7e
SC
34375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34376 (exit $ac_status); } &&
07158944 34377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34379 (eval $ac_try) 2>&5
34380 ac_status=$?
34381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34382 (exit $ac_status); }; } &&
34383 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34385 (eval $ac_try) 2>&5
34386 ac_status=$?
34387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34388 (exit $ac_status); }; }; then
34389 ac_cv_func_pthread_attr_getschedpolicy=yes
34390else
34391 echo "$as_me: failed program was:" >&5
34392sed 's/^/| /' conftest.$ac_ext >&5
34393
34394ac_cv_func_pthread_attr_getschedpolicy=no
34395fi
ac1cb8d3
VS
34396rm -f conftest.err conftest.$ac_objext \
34397 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34398fi
34399echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
34400echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
34401if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
34402 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
34403echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
34404if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
34405 echo $ECHO_N "(cached) $ECHO_C" >&6
34406else
34407 cat >conftest.$ac_ext <<_ACEOF
34408/* confdefs.h. */
34409_ACEOF
34410cat confdefs.h >>conftest.$ac_ext
34411cat >>conftest.$ac_ext <<_ACEOF
34412/* end confdefs.h. */
ac1cb8d3
VS
34413/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
34414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34415#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
34416
a848cd7e
SC
34417/* System header to define __stub macros and hopefully few prototypes,
34418 which can conflict with char pthread_attr_setschedparam (); below.
34419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34420 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34421
a848cd7e
SC
34422#ifdef __STDC__
34423# include <limits.h>
34424#else
34425# include <assert.h>
34426#endif
ac1cb8d3
VS
34427
34428#undef pthread_attr_setschedparam
34429
a848cd7e
SC
34430/* Override any gcc2 internal prototype to avoid an error. */
34431#ifdef __cplusplus
34432extern "C"
34433{
34434#endif
34435/* We use char because int might match the return type of a gcc2
34436 builtin and then its argument prototype would still apply. */
34437char pthread_attr_setschedparam ();
34438/* The GNU C library defines this for functions which it implements
34439 to always fail with ENOSYS. Some functions are actually named
34440 something starting with __ and the normal name is an alias. */
34441#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
34442choke me
34443#else
34444char (*f) () = pthread_attr_setschedparam;
34445#endif
34446#ifdef __cplusplus
34447}
34448#endif
34449
34450int
34451main ()
34452{
34453return f != pthread_attr_setschedparam;
34454 ;
34455 return 0;
34456}
34457_ACEOF
34458rm -f conftest.$ac_objext conftest$ac_exeext
34459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34460 (eval $ac_link) 2>conftest.er1
a848cd7e 34461 ac_status=$?
ac1cb8d3
VS
34462 grep -v '^ *+' conftest.er1 >conftest.err
34463 rm -f conftest.er1
34464 cat conftest.err >&5
a848cd7e
SC
34465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34466 (exit $ac_status); } &&
07158944 34467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34469 (eval $ac_try) 2>&5
34470 ac_status=$?
34471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34472 (exit $ac_status); }; } &&
34473 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34475 (eval $ac_try) 2>&5
34476 ac_status=$?
34477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34478 (exit $ac_status); }; }; then
34479 ac_cv_func_pthread_attr_setschedparam=yes
34480else
34481 echo "$as_me: failed program was:" >&5
34482sed 's/^/| /' conftest.$ac_ext >&5
34483
34484ac_cv_func_pthread_attr_setschedparam=no
34485fi
ac1cb8d3
VS
34486rm -f conftest.err conftest.$ac_objext \
34487 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34488fi
34489echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
34490echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
34491if test $ac_cv_func_pthread_attr_setschedparam = yes; then
34492 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
34493echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
34494if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
34495 echo $ECHO_N "(cached) $ECHO_C" >&6
34496else
34497 cat >conftest.$ac_ext <<_ACEOF
34498/* confdefs.h. */
34499_ACEOF
34500cat confdefs.h >>conftest.$ac_ext
34501cat >>conftest.$ac_ext <<_ACEOF
34502/* end confdefs.h. */
ac1cb8d3
VS
34503/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
34504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34505#define sched_get_priority_max innocuous_sched_get_priority_max
34506
a848cd7e
SC
34507/* System header to define __stub macros and hopefully few prototypes,
34508 which can conflict with char sched_get_priority_max (); below.
34509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34510 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34511
a848cd7e
SC
34512#ifdef __STDC__
34513# include <limits.h>
34514#else
34515# include <assert.h>
34516#endif
ac1cb8d3
VS
34517
34518#undef sched_get_priority_max
34519
a848cd7e
SC
34520/* Override any gcc2 internal prototype to avoid an error. */
34521#ifdef __cplusplus
34522extern "C"
34523{
34524#endif
34525/* We use char because int might match the return type of a gcc2
34526 builtin and then its argument prototype would still apply. */
34527char sched_get_priority_max ();
34528/* The GNU C library defines this for functions which it implements
34529 to always fail with ENOSYS. Some functions are actually named
34530 something starting with __ and the normal name is an alias. */
34531#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
34532choke me
34533#else
34534char (*f) () = sched_get_priority_max;
34535#endif
34536#ifdef __cplusplus
34537}
34538#endif
34539
34540int
34541main ()
34542{
34543return f != sched_get_priority_max;
34544 ;
34545 return 0;
34546}
34547_ACEOF
34548rm -f conftest.$ac_objext conftest$ac_exeext
34549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34550 (eval $ac_link) 2>conftest.er1
a848cd7e 34551 ac_status=$?
ac1cb8d3
VS
34552 grep -v '^ *+' conftest.er1 >conftest.err
34553 rm -f conftest.er1
34554 cat conftest.err >&5
a848cd7e
SC
34555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34556 (exit $ac_status); } &&
07158944 34557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34559 (eval $ac_try) 2>&5
34560 ac_status=$?
34561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34562 (exit $ac_status); }; } &&
34563 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34565 (eval $ac_try) 2>&5
34566 ac_status=$?
34567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34568 (exit $ac_status); }; }; then
34569 ac_cv_func_sched_get_priority_max=yes
34570else
34571 echo "$as_me: failed program was:" >&5
34572sed 's/^/| /' conftest.$ac_ext >&5
34573
34574ac_cv_func_sched_get_priority_max=no
34575fi
ac1cb8d3
VS
34576rm -f conftest.err conftest.$ac_objext \
34577 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34578fi
34579echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
34580echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
34581if test $ac_cv_func_sched_get_priority_max = yes; then
34582 HAVE_PRIOR_FUNCS=1
34583else
34584 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
34585echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
34586if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
34587 echo $ECHO_N "(cached) $ECHO_C" >&6
34588else
34589 ac_check_lib_save_LIBS=$LIBS
34590LIBS="-lposix4 $LIBS"
34591cat >conftest.$ac_ext <<_ACEOF
34592/* confdefs.h. */
34593_ACEOF
34594cat confdefs.h >>conftest.$ac_ext
34595cat >>conftest.$ac_ext <<_ACEOF
34596/* end confdefs.h. */
34597
34598/* Override any gcc2 internal prototype to avoid an error. */
34599#ifdef __cplusplus
34600extern "C"
34601#endif
34602/* We use char because int might match the return type of a gcc2
34603 builtin and then its argument prototype would still apply. */
34604char sched_get_priority_max ();
34605int
34606main ()
34607{
34608sched_get_priority_max ();
34609 ;
34610 return 0;
34611}
34612_ACEOF
34613rm -f conftest.$ac_objext conftest$ac_exeext
34614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34615 (eval $ac_link) 2>conftest.er1
a848cd7e 34616 ac_status=$?
ac1cb8d3
VS
34617 grep -v '^ *+' conftest.er1 >conftest.err
34618 rm -f conftest.er1
34619 cat conftest.err >&5
a848cd7e
SC
34620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34621 (exit $ac_status); } &&
07158944 34622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34624 (eval $ac_try) 2>&5
34625 ac_status=$?
34626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34627 (exit $ac_status); }; } &&
34628 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34630 (eval $ac_try) 2>&5
34631 ac_status=$?
34632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34633 (exit $ac_status); }; }; then
34634 ac_cv_lib_posix4_sched_get_priority_max=yes
34635else
34636 echo "$as_me: failed program was:" >&5
34637sed 's/^/| /' conftest.$ac_ext >&5
34638
34639ac_cv_lib_posix4_sched_get_priority_max=no
34640fi
ac1cb8d3
VS
34641rm -f conftest.err conftest.$ac_objext \
34642 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34643LIBS=$ac_check_lib_save_LIBS
34644fi
34645echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
34646echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
34647if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
34648
34649 HAVE_PRIOR_FUNCS=1
34650 POSIX4_LINK=" -lposix4"
34651
34652fi
34653
34654
34655fi
34656
34657
34658fi
34659
34660
34661fi
34662
34663
34664 if test "$HAVE_PRIOR_FUNCS" = 1; then
34665 cat >>confdefs.h <<\_ACEOF
34666#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
34667_ACEOF
34668
34669 else
34670 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
34671echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
34672 fi
34673
34674 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
34675echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
34676if test "${ac_cv_func_pthread_cancel+set}" = set; then
34677 echo $ECHO_N "(cached) $ECHO_C" >&6
34678else
34679 cat >conftest.$ac_ext <<_ACEOF
34680/* confdefs.h. */
34681_ACEOF
34682cat confdefs.h >>conftest.$ac_ext
34683cat >>conftest.$ac_ext <<_ACEOF
34684/* end confdefs.h. */
ac1cb8d3
VS
34685/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
34686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34687#define pthread_cancel innocuous_pthread_cancel
34688
a848cd7e
SC
34689/* System header to define __stub macros and hopefully few prototypes,
34690 which can conflict with char pthread_cancel (); below.
34691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34692 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34693
a848cd7e
SC
34694#ifdef __STDC__
34695# include <limits.h>
34696#else
34697# include <assert.h>
34698#endif
ac1cb8d3
VS
34699
34700#undef pthread_cancel
34701
a848cd7e
SC
34702/* Override any gcc2 internal prototype to avoid an error. */
34703#ifdef __cplusplus
34704extern "C"
34705{
34706#endif
34707/* We use char because int might match the return type of a gcc2
34708 builtin and then its argument prototype would still apply. */
34709char pthread_cancel ();
34710/* The GNU C library defines this for functions which it implements
34711 to always fail with ENOSYS. Some functions are actually named
34712 something starting with __ and the normal name is an alias. */
34713#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
34714choke me
34715#else
34716char (*f) () = pthread_cancel;
34717#endif
34718#ifdef __cplusplus
34719}
34720#endif
34721
34722int
34723main ()
34724{
34725return f != pthread_cancel;
34726 ;
34727 return 0;
34728}
34729_ACEOF
34730rm -f conftest.$ac_objext conftest$ac_exeext
34731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34732 (eval $ac_link) 2>conftest.er1
a848cd7e 34733 ac_status=$?
ac1cb8d3
VS
34734 grep -v '^ *+' conftest.er1 >conftest.err
34735 rm -f conftest.er1
34736 cat conftest.err >&5
a848cd7e
SC
34737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34738 (exit $ac_status); } &&
07158944 34739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34741 (eval $ac_try) 2>&5
34742 ac_status=$?
34743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34744 (exit $ac_status); }; } &&
34745 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34747 (eval $ac_try) 2>&5
34748 ac_status=$?
34749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34750 (exit $ac_status); }; }; then
34751 ac_cv_func_pthread_cancel=yes
34752else
34753 echo "$as_me: failed program was:" >&5
34754sed 's/^/| /' conftest.$ac_ext >&5
34755
34756ac_cv_func_pthread_cancel=no
34757fi
ac1cb8d3
VS
34758rm -f conftest.err conftest.$ac_objext \
34759 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34760fi
34761echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
34762echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
34763if test $ac_cv_func_pthread_cancel = yes; then
34764 cat >>confdefs.h <<\_ACEOF
34765#define HAVE_PTHREAD_CANCEL 1
34766_ACEOF
34767
34768else
34769 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
34770echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
34771fi
34772
34773
34774
34775
34776 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
34777echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
34778if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
34779 echo $ECHO_N "(cached) $ECHO_C" >&6
34780else
34781
34782 cat >conftest.$ac_ext <<_ACEOF
34783/* confdefs.h. */
34784_ACEOF
34785cat confdefs.h >>conftest.$ac_ext
34786cat >>conftest.$ac_ext <<_ACEOF
34787/* end confdefs.h. */
34788#include <pthread.h>
34789int
34790main ()
34791{
34792
34793 pthread_mutexattr_t attr;
34794 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
34795
34796 ;
34797 return 0;
34798}
34799_ACEOF
34800rm -f conftest.$ac_objext
34801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34802 (eval $ac_compile) 2>conftest.er1
a848cd7e 34803 ac_status=$?
ac1cb8d3
VS
34804 grep -v '^ *+' conftest.er1 >conftest.err
34805 rm -f conftest.er1
34806 cat conftest.err >&5
a848cd7e
SC
34807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34808 (exit $ac_status); } &&
07158944 34809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34811 (eval $ac_try) 2>&5
34812 ac_status=$?
34813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34814 (exit $ac_status); }; } &&
34815 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34817 (eval $ac_try) 2>&5
34818 ac_status=$?
34819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34820 (exit $ac_status); }; }; then
34821
34822 wx_cv_type_pthread_mutexattr_t=yes
34823
34824else
34825 echo "$as_me: failed program was:" >&5
34826sed 's/^/| /' conftest.$ac_ext >&5
34827
34828
34829 wx_cv_type_pthread_mutexattr_t=no
34830
34831
34832fi
ac1cb8d3 34833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34834
34835fi
34836echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
34837echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
34838
34839 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
34840 cat >>confdefs.h <<\_ACEOF
34841#define HAVE_PTHREAD_MUTEXATTR_T 1
34842_ACEOF
34843
34844 else
34845 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
34846echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
34847if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
34848 echo $ECHO_N "(cached) $ECHO_C" >&6
34849else
34850
34851 cat >conftest.$ac_ext <<_ACEOF
34852/* confdefs.h. */
34853_ACEOF
34854cat confdefs.h >>conftest.$ac_ext
34855cat >>conftest.$ac_ext <<_ACEOF
34856/* end confdefs.h. */
34857#include <pthread.h>
34858int
34859main ()
34860{
34861
34862 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
34863
34864 ;
34865 return 0;
34866}
34867_ACEOF
34868rm -f conftest.$ac_objext
34869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34870 (eval $ac_compile) 2>conftest.er1
a848cd7e 34871 ac_status=$?
ac1cb8d3
VS
34872 grep -v '^ *+' conftest.er1 >conftest.err
34873 rm -f conftest.er1
34874 cat conftest.err >&5
a848cd7e
SC
34875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34876 (exit $ac_status); } &&
07158944 34877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34879 (eval $ac_try) 2>&5
34880 ac_status=$?
34881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34882 (exit $ac_status); }; } &&
34883 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34885 (eval $ac_try) 2>&5
34886 ac_status=$?
34887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34888 (exit $ac_status); }; }; then
34889
34890 wx_cv_type_pthread_rec_mutex_init=yes
34891
34892else
34893 echo "$as_me: failed program was:" >&5
34894sed 's/^/| /' conftest.$ac_ext >&5
34895
34896
34897 wx_cv_type_pthread_rec_mutex_init=no
34898
34899
34900fi
ac1cb8d3 34901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34902
34903fi
34904echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
34905echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
34906 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
34907 cat >>confdefs.h <<\_ACEOF
34908#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
34909_ACEOF
34910
34911 else
34912 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
34913echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
34914 fi
34915 fi
34916 fi
34917
34918else
34919 if test "$wxUSE_THREADS" = "yes" ; then
34920 case "${host}" in
34921 *-*-mingw32* )
34922 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
34923echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
34924if test "${wx_cv_cflags_mthread+set}" = set; then
34925 echo $ECHO_N "(cached) $ECHO_C" >&6
34926else
34927
34928 CFLAGS_OLD="$CFLAGS"
34929 CFLAGS="$CFLAGS -mthreads"
34930 cat >conftest.$ac_ext <<_ACEOF
34931/* confdefs.h. */
34932_ACEOF
34933cat confdefs.h >>conftest.$ac_ext
34934cat >>conftest.$ac_ext <<_ACEOF
34935/* end confdefs.h. */
34936
34937int
34938main ()
34939{
34940
34941 ;
34942 return 0;
34943}
34944_ACEOF
34945rm -f conftest.$ac_objext
34946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34947 (eval $ac_compile) 2>conftest.er1
a848cd7e 34948 ac_status=$?
ac1cb8d3
VS
34949 grep -v '^ *+' conftest.er1 >conftest.err
34950 rm -f conftest.er1
34951 cat conftest.err >&5
a848cd7e
SC
34952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34953 (exit $ac_status); } &&
07158944 34954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34956 (eval $ac_try) 2>&5
34957 ac_status=$?
34958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34959 (exit $ac_status); }; } &&
34960 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34962 (eval $ac_try) 2>&5
34963 ac_status=$?
34964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34965 (exit $ac_status); }; }; then
34966 wx_cv_cflags_mthread=yes
34967else
34968 echo "$as_me: failed program was:" >&5
34969sed 's/^/| /' conftest.$ac_ext >&5
34970
34971wx_cv_cflags_mthread=no
34972
34973fi
ac1cb8d3 34974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34975
34976
34977fi
34978echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
34979echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
34980
34981 if test "$wx_cv_cflags_mthread" = "yes"; then
34982 CXXFLAGS="$CXXFLAGS -mthreads"
34983 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
34984 LDFLAGS="$LDFLAGS -mthreads"
34985 else
34986 CFLAGS="$CFLAGS_OLD"
34987 fi
34988 ;;
34989 *-pc-os2*emx )
34990 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
34991 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
34992 LDFLAGS="$LDFLAGS -Zmt"
34993 ;;
34994 esac
34995 fi
34996fi
34997
34998if test "$wxUSE_THREADS" = "yes"; then
34999 cat >>confdefs.h <<\_ACEOF
35000#define wxUSE_THREADS 1
35001_ACEOF
35002
35003
35004 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
35005else
35006 if test "$ac_cv_func_strtok_r" = "yes"; then
35007 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
35008echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
35009 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
35010 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
35011 echo "$as_me:$LINENO: result: yes" >&5
35012echo "${ECHO_T}yes" >&6
35013 else
35014 echo "$as_me:$LINENO: result: no" >&5
35015echo "${ECHO_T}no" >&6
35016 fi
35017 fi
35018fi
35019
35020if test "$WXGTK20" = 1 ; then
35021 cat >>confdefs.h <<_ACEOF
35022#define __WXGTK20__ $WXGTK20
35023_ACEOF
35024
35025 WXGTK12=1
35026fi
35027
35028if test "$WXGTK12" = 1 ; then
35029 cat >>confdefs.h <<_ACEOF
35030#define __WXGTK12__ $WXGTK12
35031_ACEOF
35032
35033fi
35034
35035if test "$WXGTK127" = 1 ; then
35036 cat >>confdefs.h <<_ACEOF
35037#define __WXGTK127__ $WXGTK127
35038_ACEOF
35039
35040fi
35041
35042if test "$WXGPE" = 1 ; then
35043 cat >>confdefs.h <<_ACEOF
35044#define __WXGPE__ $WXGPE
35045_ACEOF
35046
35047fi
35048
35049WXDEBUG=
35050
35051if test "$wxUSE_DEBUG_INFO" = "yes" ; then
35052 WXDEBUG="-g"
35053 wxUSE_OPTIMISE=no
35054fi
35055
35056if test "$wxUSE_DEBUG_GDB" = "yes" ; then
35057 wxUSE_DEBUG_INFO=yes
35058 WXDEBUG="-ggdb"
35059fi
35060
35061if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
35062 cat >>confdefs.h <<\_ACEOF
35063#define WXDEBUG 1
35064_ACEOF
35065
35066 WXDEBUG_DEFINE="-D__WXDEBUG__"
35067else
35068 if test "$wxUSE_GTK" = 1 ; then
35069 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
35070 fi
35071fi
35072
35073if test "$wxUSE_MEM_TRACING" = "yes" ; then
35074 cat >>confdefs.h <<\_ACEOF
35075#define wxUSE_MEMORY_TRACING 1
35076_ACEOF
35077
35078 cat >>confdefs.h <<\_ACEOF
35079#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
35080_ACEOF
35081
35082 cat >>confdefs.h <<\_ACEOF
35083#define wxUSE_DEBUG_NEW_ALWAYS 1
35084_ACEOF
35085
35086 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
35087fi
35088
35089if test "$wxUSE_DMALLOC" = "yes" ; then
35090 DMALLOC_LIBS="-ldmalloc"
35091fi
35092
35093PROFILE=
35094if test "$wxUSE_PROFILE" = "yes" ; then
35095 PROFILE=" -pg"
35096fi
35097
35098CODE_GEN_FLAGS=
35099CODE_GEN_FLAGS_CXX=
35100if test "$GCC" = "yes" ; then
35101 if test "$wxUSE_NO_RTTI" = "yes" ; then
35102 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
35103 fi
35104 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
35105 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
35106 fi
35107 if test "$wxUSE_PERMISSIVE" = "yes" ; then
35108 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
35109 fi
35110
35111 case "${host}" in
35112 powerpc*-*-aix* )
35113 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
35114 ;;
35115 *-hppa* )
35116 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
35117 ;;
35118 esac
35119fi
35120
35121OPTIMISE=
35122if test "$wxUSE_OPTIMISE" = "no" ; then
35123 if test "$GCC" = yes ; then
35124 OPTIMISE="-O0"
35125 fi
35126else
35127 if test "$GCC" = yes ; then
35128 OPTIMISE="-O2"
35129
35130 case "${host}" in
35131 i586-*-*|i686-*-* )
35132 OPTIMISE="${OPTIMISE} "
35133 ;;
35134 esac
35135 else
35136 OPTIMISE="-O"
35137 fi
35138fi
35139
35140
35141if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
35142 cat >>confdefs.h <<\_ACEOF
35143#define WXWIN_COMPATIBILITY_2_2 1
35144_ACEOF
35145
35146
35147 WXWIN_COMPATIBILITY_2_4="yes"
35148fi
35149
35150if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
35151 cat >>confdefs.h <<\_ACEOF
35152#define WXWIN_COMPATIBILITY_2_4 1
35153_ACEOF
35154
35155fi
35156
35157
35158if test "$wxUSE_GUI" = "yes"; then
881bfcd6 35159 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
35160#define wxUSE_GUI 1
35161_ACEOF
35162
35163
370fd4c2 35164 fi
a848cd7e
SC
35165
35166
35167if test "$wxUSE_UNIX" = "yes"; then
35168 cat >>confdefs.h <<\_ACEOF
35169#define wxUSE_UNIX 1
35170_ACEOF
35171
35172fi
35173
35174
35175if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
35176
35177 HAVE_DL_FUNCS=0
35178 HAVE_SHL_FUNCS=0
35179 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
35180 if test "$USE_DARWIN" = 1; then
35181 HAVE_DL_FUNCS=1
35182 else
35183
35184for ac_func in dlopen
35185do
35186as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35187echo "$as_me:$LINENO: checking for $ac_func" >&5
35188echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35189if eval "test \"\${$as_ac_var+set}\" = set"; then
35190 echo $ECHO_N "(cached) $ECHO_C" >&6
35191else
35192 cat >conftest.$ac_ext <<_ACEOF
35193/* confdefs.h. */
35194_ACEOF
35195cat confdefs.h >>conftest.$ac_ext
35196cat >>conftest.$ac_ext <<_ACEOF
35197/* end confdefs.h. */
ac1cb8d3
VS
35198/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35200#define $ac_func innocuous_$ac_func
35201
a848cd7e
SC
35202/* System header to define __stub macros and hopefully few prototypes,
35203 which can conflict with char $ac_func (); below.
35204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35205 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35206
a848cd7e
SC
35207#ifdef __STDC__
35208# include <limits.h>
35209#else
35210# include <assert.h>
35211#endif
ac1cb8d3
VS
35212
35213#undef $ac_func
35214
a848cd7e
SC
35215/* Override any gcc2 internal prototype to avoid an error. */
35216#ifdef __cplusplus
35217extern "C"
35218{
35219#endif
35220/* We use char because int might match the return type of a gcc2
35221 builtin and then its argument prototype would still apply. */
35222char $ac_func ();
35223/* The GNU C library defines this for functions which it implements
35224 to always fail with ENOSYS. Some functions are actually named
35225 something starting with __ and the normal name is an alias. */
35226#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35227choke me
35228#else
35229char (*f) () = $ac_func;
35230#endif
35231#ifdef __cplusplus
35232}
35233#endif
35234
35235int
35236main ()
35237{
35238return f != $ac_func;
35239 ;
35240 return 0;
35241}
35242_ACEOF
35243rm -f conftest.$ac_objext conftest$ac_exeext
35244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35245 (eval $ac_link) 2>conftest.er1
a848cd7e 35246 ac_status=$?
ac1cb8d3
VS
35247 grep -v '^ *+' conftest.er1 >conftest.err
35248 rm -f conftest.er1
35249 cat conftest.err >&5
a848cd7e
SC
35250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35251 (exit $ac_status); } &&
07158944 35252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35254 (eval $ac_try) 2>&5
35255 ac_status=$?
35256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35257 (exit $ac_status); }; } &&
35258 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35260 (eval $ac_try) 2>&5
35261 ac_status=$?
35262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35263 (exit $ac_status); }; }; then
35264 eval "$as_ac_var=yes"
35265else
35266 echo "$as_me: failed program was:" >&5
35267sed 's/^/| /' conftest.$ac_ext >&5
35268
35269eval "$as_ac_var=no"
35270fi
ac1cb8d3
VS
35271rm -f conftest.err conftest.$ac_objext \
35272 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35273fi
35274echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35275echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35276if test `eval echo '${'$as_ac_var'}'` = yes; then
35277 cat >>confdefs.h <<_ACEOF
35278#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35279_ACEOF
35280
35281 cat >>confdefs.h <<\_ACEOF
35282#define HAVE_DLOPEN 1
35283_ACEOF
35284
35285 HAVE_DL_FUNCS=1
35286
35287else
35288
35289 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
35290echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
35291if test "${ac_cv_lib_dl_dlopen+set}" = set; then
35292 echo $ECHO_N "(cached) $ECHO_C" >&6
35293else
35294 ac_check_lib_save_LIBS=$LIBS
35295LIBS="-ldl $LIBS"
35296cat >conftest.$ac_ext <<_ACEOF
35297/* confdefs.h. */
35298_ACEOF
35299cat confdefs.h >>conftest.$ac_ext
35300cat >>conftest.$ac_ext <<_ACEOF
35301/* end confdefs.h. */
35302
35303/* Override any gcc2 internal prototype to avoid an error. */
35304#ifdef __cplusplus
35305extern "C"
35306#endif
35307/* We use char because int might match the return type of a gcc2
35308 builtin and then its argument prototype would still apply. */
35309char dlopen ();
35310int
35311main ()
35312{
35313dlopen ();
35314 ;
35315 return 0;
35316}
35317_ACEOF
35318rm -f conftest.$ac_objext conftest$ac_exeext
35319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35320 (eval $ac_link) 2>conftest.er1
a848cd7e 35321 ac_status=$?
ac1cb8d3
VS
35322 grep -v '^ *+' conftest.er1 >conftest.err
35323 rm -f conftest.er1
35324 cat conftest.err >&5
a848cd7e
SC
35325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35326 (exit $ac_status); } &&
07158944 35327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35329 (eval $ac_try) 2>&5
35330 ac_status=$?
35331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35332 (exit $ac_status); }; } &&
35333 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35335 (eval $ac_try) 2>&5
35336 ac_status=$?
35337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35338 (exit $ac_status); }; }; then
35339 ac_cv_lib_dl_dlopen=yes
35340else
35341 echo "$as_me: failed program was:" >&5
35342sed 's/^/| /' conftest.$ac_ext >&5
35343
35344ac_cv_lib_dl_dlopen=no
35345fi
ac1cb8d3
VS
35346rm -f conftest.err conftest.$ac_objext \
35347 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35348LIBS=$ac_check_lib_save_LIBS
35349fi
35350echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
35351echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
35352if test $ac_cv_lib_dl_dlopen = yes; then
35353
35354 cat >>confdefs.h <<\_ACEOF
35355#define HAVE_DLOPEN 1
35356_ACEOF
35357
35358 HAVE_DL_FUNCS=1
35359 DL_LINK=" -ldl$DL_LINK"
35360
35361else
35362
35363
35364for ac_func in shl_load
35365do
35366as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35367echo "$as_me:$LINENO: checking for $ac_func" >&5
35368echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35369if eval "test \"\${$as_ac_var+set}\" = set"; then
35370 echo $ECHO_N "(cached) $ECHO_C" >&6
35371else
35372 cat >conftest.$ac_ext <<_ACEOF
35373/* confdefs.h. */
35374_ACEOF
35375cat confdefs.h >>conftest.$ac_ext
35376cat >>conftest.$ac_ext <<_ACEOF
35377/* end confdefs.h. */
ac1cb8d3
VS
35378/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35380#define $ac_func innocuous_$ac_func
35381
a848cd7e
SC
35382/* System header to define __stub macros and hopefully few prototypes,
35383 which can conflict with char $ac_func (); below.
35384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35385 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35386
a848cd7e
SC
35387#ifdef __STDC__
35388# include <limits.h>
35389#else
35390# include <assert.h>
35391#endif
ac1cb8d3
VS
35392
35393#undef $ac_func
35394
a848cd7e
SC
35395/* Override any gcc2 internal prototype to avoid an error. */
35396#ifdef __cplusplus
35397extern "C"
35398{
35399#endif
35400/* We use char because int might match the return type of a gcc2
35401 builtin and then its argument prototype would still apply. */
35402char $ac_func ();
35403/* The GNU C library defines this for functions which it implements
35404 to always fail with ENOSYS. Some functions are actually named
35405 something starting with __ and the normal name is an alias. */
35406#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35407choke me
35408#else
35409char (*f) () = $ac_func;
35410#endif
35411#ifdef __cplusplus
35412}
35413#endif
35414
35415int
35416main ()
35417{
35418return f != $ac_func;
35419 ;
35420 return 0;
35421}
35422_ACEOF
35423rm -f conftest.$ac_objext conftest$ac_exeext
35424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35425 (eval $ac_link) 2>conftest.er1
a848cd7e 35426 ac_status=$?
ac1cb8d3
VS
35427 grep -v '^ *+' conftest.er1 >conftest.err
35428 rm -f conftest.er1
35429 cat conftest.err >&5
a848cd7e
SC
35430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35431 (exit $ac_status); } &&
07158944 35432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35434 (eval $ac_try) 2>&5
35435 ac_status=$?
35436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35437 (exit $ac_status); }; } &&
35438 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35440 (eval $ac_try) 2>&5
35441 ac_status=$?
35442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35443 (exit $ac_status); }; }; then
35444 eval "$as_ac_var=yes"
35445else
35446 echo "$as_me: failed program was:" >&5
35447sed 's/^/| /' conftest.$ac_ext >&5
35448
35449eval "$as_ac_var=no"
35450fi
ac1cb8d3
VS
35451rm -f conftest.err conftest.$ac_objext \
35452 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35453fi
35454echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35455echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35456if test `eval echo '${'$as_ac_var'}'` = yes; then
35457 cat >>confdefs.h <<_ACEOF
35458#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35459_ACEOF
35460
35461 cat >>confdefs.h <<\_ACEOF
35462#define HAVE_SHL_LOAD 1
35463_ACEOF
35464
35465 HAVE_SHL_FUNCS=1
35466
35467else
35468
35469 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
35470echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
35471if test "${ac_cv_lib_shl_load_dld+set}" = set; then
35472 echo $ECHO_N "(cached) $ECHO_C" >&6
35473else
35474 ac_check_lib_save_LIBS=$LIBS
35475LIBS="-lshl_load $LIBS"
35476cat >conftest.$ac_ext <<_ACEOF
35477/* confdefs.h. */
35478_ACEOF
35479cat confdefs.h >>conftest.$ac_ext
35480cat >>conftest.$ac_ext <<_ACEOF
35481/* end confdefs.h. */
35482
35483/* Override any gcc2 internal prototype to avoid an error. */
35484#ifdef __cplusplus
35485extern "C"
35486#endif
35487/* We use char because int might match the return type of a gcc2
35488 builtin and then its argument prototype would still apply. */
35489char dld ();
35490int
35491main ()
35492{
35493dld ();
35494 ;
35495 return 0;
35496}
35497_ACEOF
35498rm -f conftest.$ac_objext conftest$ac_exeext
35499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35500 (eval $ac_link) 2>conftest.er1
a848cd7e 35501 ac_status=$?
ac1cb8d3
VS
35502 grep -v '^ *+' conftest.er1 >conftest.err
35503 rm -f conftest.er1
35504 cat conftest.err >&5
a848cd7e
SC
35505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35506 (exit $ac_status); } &&
07158944 35507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35509 (eval $ac_try) 2>&5
35510 ac_status=$?
35511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35512 (exit $ac_status); }; } &&
35513 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35515 (eval $ac_try) 2>&5
35516 ac_status=$?
35517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35518 (exit $ac_status); }; }; then
35519 ac_cv_lib_shl_load_dld=yes
35520else
35521 echo "$as_me: failed program was:" >&5
35522sed 's/^/| /' conftest.$ac_ext >&5
35523
35524ac_cv_lib_shl_load_dld=no
35525fi
ac1cb8d3
VS
35526rm -f conftest.err conftest.$ac_objext \
35527 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35528LIBS=$ac_check_lib_save_LIBS
35529fi
35530echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
35531echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
35532if test $ac_cv_lib_shl_load_dld = yes; then
35533
35534 HAVE_SHL_FUNCS=1
35535 DL_LINK=" -ldld$DL_LINK"
35536
35537fi
35538
35539
35540fi
35541done
35542
35543
35544fi
35545
35546
35547fi
35548done
35549
35550
35551 if test "$HAVE_DL_FUNCS" = 1; then
35552
35553for ac_func in dlerror
35554do
35555as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35556echo "$as_me:$LINENO: checking for $ac_func" >&5
35557echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35558if eval "test \"\${$as_ac_var+set}\" = set"; then
35559 echo $ECHO_N "(cached) $ECHO_C" >&6
35560else
35561 cat >conftest.$ac_ext <<_ACEOF
35562/* confdefs.h. */
35563_ACEOF
35564cat confdefs.h >>conftest.$ac_ext
35565cat >>conftest.$ac_ext <<_ACEOF
35566/* end confdefs.h. */
ac1cb8d3
VS
35567/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35569#define $ac_func innocuous_$ac_func
35570
a848cd7e
SC
35571/* System header to define __stub macros and hopefully few prototypes,
35572 which can conflict with char $ac_func (); below.
35573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35574 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35575
a848cd7e
SC
35576#ifdef __STDC__
35577# include <limits.h>
35578#else
35579# include <assert.h>
35580#endif
ac1cb8d3
VS
35581
35582#undef $ac_func
35583
a848cd7e
SC
35584/* Override any gcc2 internal prototype to avoid an error. */
35585#ifdef __cplusplus
35586extern "C"
35587{
35588#endif
35589/* We use char because int might match the return type of a gcc2
35590 builtin and then its argument prototype would still apply. */
35591char $ac_func ();
35592/* The GNU C library defines this for functions which it implements
35593 to always fail with ENOSYS. Some functions are actually named
35594 something starting with __ and the normal name is an alias. */
35595#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35596choke me
35597#else
35598char (*f) () = $ac_func;
35599#endif
35600#ifdef __cplusplus
35601}
35602#endif
35603
35604int
35605main ()
35606{
35607return f != $ac_func;
35608 ;
35609 return 0;
35610}
35611_ACEOF
35612rm -f conftest.$ac_objext conftest$ac_exeext
35613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35614 (eval $ac_link) 2>conftest.er1
a848cd7e 35615 ac_status=$?
ac1cb8d3
VS
35616 grep -v '^ *+' conftest.er1 >conftest.err
35617 rm -f conftest.er1
35618 cat conftest.err >&5
a848cd7e
SC
35619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35620 (exit $ac_status); } &&
07158944 35621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35623 (eval $ac_try) 2>&5
35624 ac_status=$?
35625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35626 (exit $ac_status); }; } &&
35627 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
35633 eval "$as_ac_var=yes"
35634else
35635 echo "$as_me: failed program was:" >&5
35636sed 's/^/| /' conftest.$ac_ext >&5
35637
35638eval "$as_ac_var=no"
35639fi
ac1cb8d3
VS
35640rm -f conftest.err conftest.$ac_objext \
35641 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35642fi
35643echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35644echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35645if test `eval echo '${'$as_ac_var'}'` = yes; then
35646 cat >>confdefs.h <<_ACEOF
35647#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35648_ACEOF
35649 cat >>confdefs.h <<\_ACEOF
35650#define HAVE_DLERROR 1
35651_ACEOF
35652
35653else
35654
35655 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
35656echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
35657if test "${ac_cv_lib_dl_dlerror+set}" = set; then
35658 echo $ECHO_N "(cached) $ECHO_C" >&6
35659else
35660 ac_check_lib_save_LIBS=$LIBS
35661LIBS="-ldl $LIBS"
35662cat >conftest.$ac_ext <<_ACEOF
35663/* confdefs.h. */
35664_ACEOF
35665cat confdefs.h >>conftest.$ac_ext
35666cat >>conftest.$ac_ext <<_ACEOF
35667/* end confdefs.h. */
35668
35669/* Override any gcc2 internal prototype to avoid an error. */
35670#ifdef __cplusplus
35671extern "C"
35672#endif
35673/* We use char because int might match the return type of a gcc2
35674 builtin and then its argument prototype would still apply. */
35675char dlerror ();
35676int
35677main ()
35678{
35679dlerror ();
35680 ;
35681 return 0;
35682}
35683_ACEOF
35684rm -f conftest.$ac_objext conftest$ac_exeext
35685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35686 (eval $ac_link) 2>conftest.er1
a848cd7e 35687 ac_status=$?
ac1cb8d3
VS
35688 grep -v '^ *+' conftest.er1 >conftest.err
35689 rm -f conftest.er1
35690 cat conftest.err >&5
a848cd7e
SC
35691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35692 (exit $ac_status); } &&
07158944 35693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35695 (eval $ac_try) 2>&5
35696 ac_status=$?
35697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35698 (exit $ac_status); }; } &&
35699 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35701 (eval $ac_try) 2>&5
35702 ac_status=$?
35703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35704 (exit $ac_status); }; }; then
35705 ac_cv_lib_dl_dlerror=yes
35706else
35707 echo "$as_me: failed program was:" >&5
35708sed 's/^/| /' conftest.$ac_ext >&5
35709
35710ac_cv_lib_dl_dlerror=no
35711fi
ac1cb8d3
VS
35712rm -f conftest.err conftest.$ac_objext \
35713 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35714LIBS=$ac_check_lib_save_LIBS
35715fi
35716echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
35717echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
35718if test $ac_cv_lib_dl_dlerror = yes; then
35719 cat >>confdefs.h <<\_ACEOF
35720#define HAVE_DLERROR 1
35721_ACEOF
35722
35723fi
35724
35725
35726
35727fi
35728done
35729
35730 fi
35731 fi
35732
35733 if test "$HAVE_DL_FUNCS" = 0; then
35734 if test "$HAVE_SHL_FUNCS" = 0; then
35735 if test "$USE_UNIX" = 1; then
35736 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
35737echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
35738 wxUSE_DYNAMIC_LOADER=no
35739 wxUSE_DYNLIB_CLASS=no
35740 else
35741 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
35742echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
35743 fi
35744 fi
35745 fi
35746 fi
35747fi
35748
35749if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
35750 cat >>confdefs.h <<\_ACEOF
35751#define wxUSE_DYNAMIC_LOADER 1
35752_ACEOF
35753
35754fi
35755if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
35756 cat >>confdefs.h <<\_ACEOF
35757#define wxUSE_DYNLIB_CLASS 1
35758_ACEOF
35759
35760fi
35761
35762
35763
35764if test "$wxUSE_PLUGINS" = "yes" ; then
35765 if test "$wxUSE_SHARED" = "no" ; then
35766 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
35767echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
35768 wxUSE_PLUGINS=no
35769 fi
35770 if test "$wxUSE_MONOLITHIC" = "yes" ; then
35771 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
35772echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
35773 wxUSE_PLUGINS=no
35774 fi
35775 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
35776 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
35777echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
35778 wxUSE_PLUGINS=no
35779 fi
35780 if test "$wxUSE_PLUGINS" = "yes" ; then
35781 cat >>confdefs.h <<\_ACEOF
35782#define wxUSE_PLUGINS 1
35783_ACEOF
35784
35785 fi
35786fi
35787
35788
35789if test "$wxUSE_STL" = "yes"; then
35790 cat >>confdefs.h <<\_ACEOF
35791#define wxUSE_STL 1
35792_ACEOF
35793
35794fi
35795
35796if test "$wxUSE_APPLE_IEEE" = "yes"; then
35797 cat >>confdefs.h <<\_ACEOF
35798#define wxUSE_APPLE_IEEE 1
35799_ACEOF
35800
35801fi
35802
35803if test "$wxUSE_TIMER" = "yes"; then
35804 cat >>confdefs.h <<\_ACEOF
35805#define wxUSE_TIMER 1
35806_ACEOF
35807
35808fi
35809
35810WITH_PLUGIN_SDL=0
35811if test "$wxUSE_SOUND" = "yes"; then
35812 if test "$USE_UNIX" = "1" ; then
35813
35814for ac_header in sys/soundcard.h
35815do
35816as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35817if eval "test \"\${$as_ac_Header+set}\" = set"; then
35818 echo "$as_me:$LINENO: checking for $ac_header" >&5
35819echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35820if eval "test \"\${$as_ac_Header+set}\" = set"; then
35821 echo $ECHO_N "(cached) $ECHO_C" >&6
35822fi
35823echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35824echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35825else
35826 # Is the header compilable?
35827echo "$as_me:$LINENO: checking $ac_header usability" >&5
35828echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35829cat >conftest.$ac_ext <<_ACEOF
35830/* confdefs.h. */
35831_ACEOF
35832cat confdefs.h >>conftest.$ac_ext
35833cat >>conftest.$ac_ext <<_ACEOF
35834/* end confdefs.h. */
35835$ac_includes_default
35836#include <$ac_header>
35837_ACEOF
35838rm -f conftest.$ac_objext
35839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35840 (eval $ac_compile) 2>conftest.er1
a848cd7e 35841 ac_status=$?
ac1cb8d3
VS
35842 grep -v '^ *+' conftest.er1 >conftest.err
35843 rm -f conftest.er1
35844 cat conftest.err >&5
a848cd7e
SC
35845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35846 (exit $ac_status); } &&
07158944 35847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35849 (eval $ac_try) 2>&5
35850 ac_status=$?
35851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35852 (exit $ac_status); }; } &&
35853 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35855 (eval $ac_try) 2>&5
35856 ac_status=$?
35857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35858 (exit $ac_status); }; }; then
35859 ac_header_compiler=yes
35860else
35861 echo "$as_me: failed program was:" >&5
35862sed 's/^/| /' conftest.$ac_ext >&5
35863
35864ac_header_compiler=no
35865fi
ac1cb8d3 35866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35867echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35868echo "${ECHO_T}$ac_header_compiler" >&6
35869
35870# Is the header present?
35871echo "$as_me:$LINENO: checking $ac_header presence" >&5
35872echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35873cat >conftest.$ac_ext <<_ACEOF
35874/* confdefs.h. */
35875_ACEOF
35876cat confdefs.h >>conftest.$ac_ext
35877cat >>conftest.$ac_ext <<_ACEOF
35878/* end confdefs.h. */
35879#include <$ac_header>
35880_ACEOF
35881if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35882 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35883 ac_status=$?
35884 grep -v '^ *+' conftest.er1 >conftest.err
35885 rm -f conftest.er1
35886 cat conftest.err >&5
35887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35888 (exit $ac_status); } >/dev/null; then
35889 if test -s conftest.err; then
35890 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35891 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35892 else
35893 ac_cpp_err=
35894 fi
35895else
35896 ac_cpp_err=yes
35897fi
35898if test -z "$ac_cpp_err"; then
35899 ac_header_preproc=yes
35900else
35901 echo "$as_me: failed program was:" >&5
35902sed 's/^/| /' conftest.$ac_ext >&5
35903
35904 ac_header_preproc=no
35905fi
35906rm -f conftest.err conftest.$ac_ext
35907echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35908echo "${ECHO_T}$ac_header_preproc" >&6
35909
35910# So? What about this header?
ac1cb8d3
VS
35911case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35912 yes:no: )
a848cd7e
SC
35913 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35914echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35916echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35917 ac_header_preproc=yes
a848cd7e 35918 ;;
ac1cb8d3 35919 no:yes:* )
a848cd7e
SC
35920 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35921echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35922 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35923echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35924 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35925echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35926 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35927echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35929echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35930 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35931echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35932 (
35933 cat <<\_ASBOX
ac1cb8d3
VS
35934## ----------------------------------------- ##
35935## Report this to wx-dev@lists.wxwidgets.org ##
35936## ----------------------------------------- ##
a848cd7e
SC
35937_ASBOX
35938 ) |
35939 sed "s/^/$as_me: WARNING: /" >&2
35940 ;;
35941esac
35942echo "$as_me:$LINENO: checking for $ac_header" >&5
35943echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35944if eval "test \"\${$as_ac_Header+set}\" = set"; then
35945 echo $ECHO_N "(cached) $ECHO_C" >&6
35946else
ac1cb8d3 35947 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35948fi
35949echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35950echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35951
35952fi
35953if test `eval echo '${'$as_ac_Header'}'` = yes; then
35954 cat >>confdefs.h <<_ACEOF
35955#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35956_ACEOF
35957
35958fi
35959
35960done
35961
35962
35963 if test "$wxUSE_LIBSDL" != "no"; then
35964
35965# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
35966if test "${with_sdl_prefix+set}" = set; then
35967 withval="$with_sdl_prefix"
35968 sdl_prefix="$withval"
35969else
35970 sdl_prefix=""
35971fi;
35972
35973# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
35974if test "${with_sdl_exec_prefix+set}" = set; then
35975 withval="$with_sdl_exec_prefix"
35976 sdl_exec_prefix="$withval"
35977else
35978 sdl_exec_prefix=""
35979fi;
35980# Check whether --enable-sdltest or --disable-sdltest was given.
35981if test "${enable_sdltest+set}" = set; then
35982 enableval="$enable_sdltest"
35983
35984else
35985 enable_sdltest=yes
35986fi;
35987
35988 if test x$sdl_exec_prefix != x ; then
35989 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
35990 if test x${SDL_CONFIG+set} != xset ; then
35991 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
35992 fi
35993 fi
35994 if test x$sdl_prefix != x ; then
35995 sdl_args="$sdl_args --prefix=$sdl_prefix"
35996 if test x${SDL_CONFIG+set} != xset ; then
35997 SDL_CONFIG=$sdl_prefix/bin/sdl-config
35998 fi
35999 fi
36000
36001
36002 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
36003 # Extract the first word of "sdl-config", so it can be a program name with args.
36004set dummy sdl-config; ac_word=$2
36005echo "$as_me:$LINENO: checking for $ac_word" >&5
36006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36007if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
36008 echo $ECHO_N "(cached) $ECHO_C" >&6
36009else
36010 case $SDL_CONFIG in
36011 [\\/]* | ?:[\\/]*)
36012 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
36013 ;;
36014 *)
36015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36016for as_dir in $PATH
36017do
36018 IFS=$as_save_IFS
36019 test -z "$as_dir" && as_dir=.
36020 for ac_exec_ext in '' $ac_executable_extensions; do
36021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36022 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36024 break 2
36025 fi
36026done
36027done
36028
36029 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
36030 ;;
36031esac
36032fi
36033SDL_CONFIG=$ac_cv_path_SDL_CONFIG
36034
36035if test -n "$SDL_CONFIG"; then
36036 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
36037echo "${ECHO_T}$SDL_CONFIG" >&6
36038else
36039 echo "$as_me:$LINENO: result: no" >&5
36040echo "${ECHO_T}no" >&6
36041fi
36042
36043 min_sdl_version=1.2.0
36044 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
36045echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
36046 no_sdl=""
36047 if test "$SDL_CONFIG" = "no" ; then
36048 no_sdl=yes
36049 else
36050 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
36051 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
36052
36053 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
36054 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
36055 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
36056 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
36057 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
36058 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
36059 if test "x$enable_sdltest" = "xyes" ; then
36060 ac_save_CFLAGS="$CFLAGS"
94acd38e 36061 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
36062 ac_save_LIBS="$LIBS"
36063 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 36064 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
36065 LIBS="$LIBS $SDL_LIBS"
36066 rm -f conf.sdltest
36067 if test "$cross_compiling" = yes; then
36068 echo $ac_n "cross compiling; assumed OK... $ac_c"
36069else
36070 cat >conftest.$ac_ext <<_ACEOF
36071/* confdefs.h. */
36072_ACEOF
36073cat confdefs.h >>conftest.$ac_ext
36074cat >>conftest.$ac_ext <<_ACEOF
36075/* end confdefs.h. */
36076
36077#include <stdio.h>
36078#include <stdlib.h>
36079#include <string.h>
36080#include "SDL.h"
36081
36082char*
36083my_strdup (char *str)
36084{
36085 char *new_str;
36086
36087 if (str)
36088 {
36089 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
36090 strcpy (new_str, str);
36091 }
36092 else
36093 new_str = NULL;
36094
36095 return new_str;
36096}
36097
36098int main (int argc, char *argv[])
36099{
36100 int major, minor, micro;
36101 char *tmp_version;
36102
36103 /* This hangs on some systems (?)
36104 system ("touch conf.sdltest");
36105 */
36106 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
36107
36108 /* HP/UX 9 (%@#!) writes to sscanf strings */
36109 tmp_version = my_strdup("$min_sdl_version");
36110 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
36111 printf("%s, bad version string\n", "$min_sdl_version");
36112 exit(1);
36113 }
36114
36115 if (($sdl_major_version > major) ||
36116 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
36117 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
36118 {
36119 return 0;
36120 }
36121 else
36122 {
36123 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
36124 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
36125 printf("*** best to upgrade to the required version.\n");
36126 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
36127 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
36128 printf("*** config.cache before re-running configure\n");
36129 return 1;
36130 }
36131}
36132
36133
36134_ACEOF
36135rm -f conftest$ac_exeext
36136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36137 (eval $ac_link) 2>&5
36138 ac_status=$?
36139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36142 (eval $ac_try) 2>&5
36143 ac_status=$?
36144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36145 (exit $ac_status); }; }; then
36146 :
36147else
36148 echo "$as_me: program exited with status $ac_status" >&5
36149echo "$as_me: failed program was:" >&5
36150sed 's/^/| /' conftest.$ac_ext >&5
36151
36152( exit $ac_status )
36153no_sdl=yes
36154fi
ac1cb8d3 36155rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36156fi
36157 CFLAGS="$ac_save_CFLAGS"
94acd38e 36158 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
36159 LIBS="$ac_save_LIBS"
36160 fi
36161 fi
36162 if test "x$no_sdl" = x ; then
36163 echo "$as_me:$LINENO: result: yes" >&5
36164echo "${ECHO_T}yes" >&6
36165
36166 EXTRALIBS_SDL="$SDL_LIBS"
36167 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
36168 cat >>confdefs.h <<\_ACEOF
36169#define wxUSE_LIBSDL 1
36170_ACEOF
36171
36172
36173 else
36174 echo "$as_me:$LINENO: result: no" >&5
36175echo "${ECHO_T}no" >&6
36176 if test "$SDL_CONFIG" = "no" ; then
36177 echo "*** The sdl-config script installed by SDL could not be found"
36178 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
36179 echo "*** your path, or set the SDL_CONFIG environment variable to the"
36180 echo "*** full path to sdl-config."
36181 else
36182 if test -f conf.sdltest ; then
36183 :
36184 else
36185 echo "*** Could not run SDL test program, checking why..."
36186 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 36187 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
36188 LIBS="$LIBS $SDL_LIBS"
36189 cat >conftest.$ac_ext <<_ACEOF
36190/* confdefs.h. */
36191_ACEOF
36192cat confdefs.h >>conftest.$ac_ext
36193cat >>conftest.$ac_ext <<_ACEOF
36194/* end confdefs.h. */
36195
36196#include <stdio.h>
36197#include "SDL.h"
36198
36199int main(int argc, char *argv[])
36200{ return 0; }
36201#undef main
36202#define main K_and_R_C_main
36203
36204int
36205main ()
36206{
36207 return 0;
36208 ;
36209 return 0;
36210}
36211_ACEOF
36212rm -f conftest.$ac_objext conftest$ac_exeext
36213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36214 (eval $ac_link) 2>conftest.er1
a848cd7e 36215 ac_status=$?
ac1cb8d3
VS
36216 grep -v '^ *+' conftest.er1 >conftest.err
36217 rm -f conftest.er1
36218 cat conftest.err >&5
a848cd7e
SC
36219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36220 (exit $ac_status); } &&
07158944 36221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36223 (eval $ac_try) 2>&5
36224 ac_status=$?
36225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36226 (exit $ac_status); }; } &&
36227 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36229 (eval $ac_try) 2>&5
36230 ac_status=$?
36231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36232 (exit $ac_status); }; }; then
36233 echo "*** The test program compiled, but did not run. This usually means"
36234 echo "*** that the run-time linker is not finding SDL or finding the wrong"
36235 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
36236 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
36237 echo "*** to the installed location Also, make sure you have run ldconfig if that"
36238 echo "*** is required on your system"
36239 echo "***"
36240 echo "*** If you have an old version installed, it is best to remove it, although"
36241 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
36242else
36243 echo "$as_me: failed program was:" >&5
36244sed 's/^/| /' conftest.$ac_ext >&5
36245
36246 echo "*** The test program failed to compile or link. See the file config.log for the"
36247 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
36248 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
36249 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
36250fi
ac1cb8d3
VS
36251rm -f conftest.err conftest.$ac_objext \
36252 conftest$ac_exeext conftest.$ac_ext
a848cd7e 36253 CFLAGS="$ac_save_CFLAGS"
94acd38e 36254 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
36255 LIBS="$ac_save_LIBS"
36256 fi
36257 fi
36258 SDL_CFLAGS=""
36259 SDL_LIBS=""
36260 wxUSE_LIBSDL="no"
36261 fi
36262
36263
36264 rm -f conf.sdltest
36265
36266 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
36267 WITH_PLUGIN_SDL=1
36268 fi
36269 fi
36270 fi
36271
36272 cat >>confdefs.h <<\_ACEOF
36273#define wxUSE_SOUND 1
36274_ACEOF
36275
36276 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
36277fi
36278
d1c38808
VZ
36279if test "$WXGTK20" = 1; then
36280 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36281 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
36282
36283
36284 succeeded=no
36285
36286 if test -z "$PKG_CONFIG"; then
36287 # Extract the first word of "pkg-config", so it can be a program name with args.
36288set dummy pkg-config; ac_word=$2
36289echo "$as_me:$LINENO: checking for $ac_word" >&5
36290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36291if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
36292 echo $ECHO_N "(cached) $ECHO_C" >&6
36293else
36294 case $PKG_CONFIG in
36295 [\\/]* | ?:[\\/]*)
36296 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
36297 ;;
36298 *)
36299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36300for as_dir in $PATH
36301do
36302 IFS=$as_save_IFS
36303 test -z "$as_dir" && as_dir=.
36304 for ac_exec_ext in '' $ac_executable_extensions; do
36305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36306 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
36307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36308 break 2
36309 fi
36310done
36311done
36312
36313 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
36314 ;;
36315esac
36316fi
36317PKG_CONFIG=$ac_cv_path_PKG_CONFIG
36318
36319if test -n "$PKG_CONFIG"; then
36320 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
36321echo "${ECHO_T}$PKG_CONFIG" >&6
36322else
36323 echo "$as_me:$LINENO: result: no" >&5
36324echo "${ECHO_T}no" >&6
36325fi
36326
36327 fi
36328
36329 if test "$PKG_CONFIG" = "no" ; then
36330 echo "*** The pkg-config script could not be found. Make sure it is"
36331 echo "*** in your path, or set the PKG_CONFIG environment variable"
36332 echo "*** to the full path to pkg-config."
36333 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
36334 else
36335 PKG_CONFIG_MIN_VERSION=0.9.0
36336 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
36337 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
36338echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 36339
ffa762ff 36340 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
36341 echo "$as_me:$LINENO: result: yes" >&5
36342echo "${ECHO_T}yes" >&6
36343 succeeded=yes
36344
36345 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
36346echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 36347 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36348 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
36349echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
36350
36351 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
36352echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 36353 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36354 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
36355echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
36356 else
36357 LIBGNOMEPRINTUI_CFLAGS=""
36358 LIBGNOMEPRINTUI_LIBS=""
36359 ## If we have a custom action on failure, don't print errors, but
36360 ## do set a variable so people can do so.
ffa762ff 36361 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
36362
36363 fi
36364
36365
36366
36367 else
36368 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
36369 echo "*** See http://www.freedesktop.org/software/pkgconfig"
36370 fi
36371 fi
36372
36373 if test $succeeded = yes; then
36374
d1c38808
VZ
36375 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
36376 cat >>confdefs.h <<\_ACEOF
36377#define wxUSE_LIBGNOMEPRINT 1
36378_ACEOF
36379
36380
36381 else
36382
36383 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
36384echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
36385 wxUSE_LIBGNOMEPRINT="no"
36386
36387
36388 fi
36389
36390 fi
36391 fi
36392fi
36393
36394
a848cd7e
SC
36395if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
36396 cat >>confdefs.h <<\_ACEOF
36397#define wxUSE_CMDLINE_PARSER 1
36398_ACEOF
36399
36400fi
36401
36402if test "$wxUSE_STOPWATCH" = "yes"; then
36403 cat >>confdefs.h <<\_ACEOF
36404#define wxUSE_STOPWATCH 1
36405_ACEOF
36406
36407fi
36408
36409if test "$wxUSE_DATETIME" = "yes"; then
36410 cat >>confdefs.h <<\_ACEOF
36411#define wxUSE_DATETIME 1
36412_ACEOF
36413
36414fi
36415
36416if test "$wxUSE_FILE" = "yes"; then
36417 cat >>confdefs.h <<\_ACEOF
36418#define wxUSE_FILE 1
36419_ACEOF
36420
36421fi
36422
36423if test "$wxUSE_FFILE" = "yes"; then
36424 cat >>confdefs.h <<\_ACEOF
36425#define wxUSE_FFILE 1
36426_ACEOF
36427
36428fi
36429
36430if test "$wxUSE_FILESYSTEM" = "yes"; then
36431 cat >>confdefs.h <<\_ACEOF
36432#define wxUSE_FILESYSTEM 1
36433_ACEOF
36434
36435fi
36436
36437if test "$wxUSE_FS_ZIP" = "yes"; then
36438 cat >>confdefs.h <<\_ACEOF
36439#define wxUSE_FS_ZIP 1
36440_ACEOF
36441
36442fi
36443
9e8e867f 36444if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 36445 cat >>confdefs.h <<\_ACEOF
9e8e867f 36446#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
36447_ACEOF
36448
36449fi
36450
36451if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 36452 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
36453 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
36454echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
36455 elif test "$wxUSE_ZLIB" = "no"; then
36456 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
36457echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
36458 else
36459 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36460#define wxUSE_ZIPSTREAM 1
36461_ACEOF
36462
81f90336 36463 fi
a848cd7e
SC
36464fi
36465
a848cd7e
SC
36466if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
36467 cat >>confdefs.h <<\_ACEOF
36468#define wxUSE_ON_FATAL_EXCEPTION 1
36469_ACEOF
36470
36471fi
36472
eaff0f0d
VZ
36473if test "$wxUSE_STACKWALKER" = "yes"; then
36474 cat >>confdefs.h <<\_ACEOF
36475#define wxUSE_STACKWALKER 1
36476_ACEOF
36477
36478fi
36479
36b6448c
VZ
36480if test "$wxUSE_DEBUGREPORT" = "yes"; then
36481 cat >>confdefs.h <<\_ACEOF
36482#define wxUSE_DEBUGREPORT 1
36483_ACEOF
36484
a603d77e 36485 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
36b6448c
VZ
36486fi
36487
a848cd7e
SC
36488if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
36489 cat >>confdefs.h <<\_ACEOF
36490#define wxUSE_SNGLINST_CHECKER 1
36491_ACEOF
36492
36493fi
36494
36495if test "$wxUSE_BUSYINFO" = "yes"; then
36496 cat >>confdefs.h <<\_ACEOF
36497#define wxUSE_BUSYINFO 1
36498_ACEOF
36499
36500fi
36501
36502if test "$wxUSE_STD_IOSTREAM" = "yes"; then
36503 cat >>confdefs.h <<\_ACEOF
36504#define wxUSE_STD_IOSTREAM 1
36505_ACEOF
36506
36507fi
36508
07158944
VZ
36509if test "$wxUSE_STDPATHS" = "yes"; then
36510 cat >>confdefs.h <<\_ACEOF
36511#define wxUSE_STDPATHS 1
36512_ACEOF
36513
36514fi
36515
a848cd7e
SC
36516if test "$wxUSE_TEXTBUFFER" = "yes"; then
36517 cat >>confdefs.h <<\_ACEOF
36518#define wxUSE_TEXTBUFFER 1
36519_ACEOF
36520
36521fi
36522
36523if test "$wxUSE_TEXTFILE" = "yes"; then
36524 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
36525 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
36526echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
36527 else
36528 cat >>confdefs.h <<\_ACEOF
36529#define wxUSE_TEXTFILE 1
36530_ACEOF
36531
36532 fi
36533fi
36534
36535if test "$wxUSE_CONFIG" = "yes" ; then
36536 if test "$wxUSE_TEXTFILE" != "yes"; then
36537 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
36538echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
36539 else
36540 cat >>confdefs.h <<\_ACEOF
36541#define wxUSE_CONFIG 1
89be85c2
VS
36542_ACEOF
36543
36544 cat >>confdefs.h <<\_ACEOF
36545#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
36546_ACEOF
36547
36548 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
36549 fi
36550fi
36551
36552if test "$wxUSE_INTL" = "yes" ; then
36553 if test "$wxUSE_FILE" != "yes"; then
36554 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
36555echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
36556 else
36557 cat >>confdefs.h <<\_ACEOF
36558#define wxUSE_INTL 1
36559_ACEOF
36560
36561 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
36562 GUIDIST="$GUIDIST INTL_DIST"
36563 fi
36564fi
36565
36566if test "$wxUSE_LOG" = "yes"; then
36567 cat >>confdefs.h <<\_ACEOF
36568#define wxUSE_LOG 1
36569_ACEOF
36570
36571
36572 if test "$wxUSE_LOGGUI" = "yes"; then
36573 cat >>confdefs.h <<\_ACEOF
36574#define wxUSE_LOGGUI 1
36575_ACEOF
36576
36577 fi
36578
36579 if test "$wxUSE_LOGWINDOW" = "yes"; then
36580 cat >>confdefs.h <<\_ACEOF
36581#define wxUSE_LOGWINDOW 1
36582_ACEOF
36583
36584 fi
36585
36586 if test "$wxUSE_LOGDIALOG" = "yes"; then
36587 cat >>confdefs.h <<\_ACEOF
36588#define wxUSE_LOG_DIALOG 1
36589_ACEOF
36590
36591 fi
0b78747f
MW
36592
36593 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
36594fi
36595
36596if test "$wxUSE_LONGLONG" = "yes"; then
36597 cat >>confdefs.h <<\_ACEOF
36598#define wxUSE_LONGLONG 1
36599_ACEOF
36600
36601fi
36602
36603if test "$wxUSE_GEOMETRY" = "yes"; then
36604 cat >>confdefs.h <<\_ACEOF
36605#define wxUSE_GEOMETRY 1
36606_ACEOF
36607
36608fi
36609
a848cd7e
SC
36610if test "$wxUSE_STREAMS" = "yes" ; then
36611 cat >>confdefs.h <<\_ACEOF
36612#define wxUSE_STREAMS 1
36613_ACEOF
36614
36615fi
36616
36617
36618if test "$wxUSE_DATETIME" = "yes"; then
36619
36620for ac_func in strptime
36621do
36622as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36623echo "$as_me:$LINENO: checking for $ac_func" >&5
36624echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36625if eval "test \"\${$as_ac_var+set}\" = set"; then
36626 echo $ECHO_N "(cached) $ECHO_C" >&6
36627else
36628 cat >conftest.$ac_ext <<_ACEOF
36629/* confdefs.h. */
36630_ACEOF
36631cat confdefs.h >>conftest.$ac_ext
36632cat >>conftest.$ac_ext <<_ACEOF
36633/* end confdefs.h. */
ac1cb8d3
VS
36634/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36636#define $ac_func innocuous_$ac_func
36637
a848cd7e
SC
36638/* System header to define __stub macros and hopefully few prototypes,
36639 which can conflict with char $ac_func (); below.
36640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36641 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36642
a848cd7e
SC
36643#ifdef __STDC__
36644# include <limits.h>
36645#else
36646# include <assert.h>
36647#endif
ac1cb8d3
VS
36648
36649#undef $ac_func
36650
a848cd7e
SC
36651/* Override any gcc2 internal prototype to avoid an error. */
36652#ifdef __cplusplus
36653extern "C"
36654{
36655#endif
36656/* We use char because int might match the return type of a gcc2
36657 builtin and then its argument prototype would still apply. */
36658char $ac_func ();
36659/* The GNU C library defines this for functions which it implements
36660 to always fail with ENOSYS. Some functions are actually named
36661 something starting with __ and the normal name is an alias. */
36662#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36663choke me
36664#else
36665char (*f) () = $ac_func;
36666#endif
36667#ifdef __cplusplus
36668}
36669#endif
36670
36671int
36672main ()
36673{
36674return f != $ac_func;
36675 ;
36676 return 0;
36677}
36678_ACEOF
36679rm -f conftest.$ac_objext conftest$ac_exeext
36680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36681 (eval $ac_link) 2>conftest.er1
a848cd7e 36682 ac_status=$?
ac1cb8d3
VS
36683 grep -v '^ *+' conftest.er1 >conftest.err
36684 rm -f conftest.er1
36685 cat conftest.err >&5
a848cd7e
SC
36686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36687 (exit $ac_status); } &&
07158944 36688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36690 (eval $ac_try) 2>&5
36691 ac_status=$?
36692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36693 (exit $ac_status); }; } &&
36694 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36696 (eval $ac_try) 2>&5
36697 ac_status=$?
36698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36699 (exit $ac_status); }; }; then
36700 eval "$as_ac_var=yes"
36701else
36702 echo "$as_me: failed program was:" >&5
36703sed 's/^/| /' conftest.$ac_ext >&5
36704
36705eval "$as_ac_var=no"
36706fi
ac1cb8d3
VS
36707rm -f conftest.err conftest.$ac_objext \
36708 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36709fi
36710echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36711echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36712if test `eval echo '${'$as_ac_var'}'` = yes; then
36713 cat >>confdefs.h <<_ACEOF
36714#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36715_ACEOF
36716
36717fi
36718done
36719
36720
36721 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
36722echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
36723if test "${wx_cv_var_timezone+set}" = set; then
36724 echo $ECHO_N "(cached) $ECHO_C" >&6
36725else
36726
36727 cat >conftest.$ac_ext <<_ACEOF
36728/* confdefs.h. */
36729_ACEOF
36730cat confdefs.h >>conftest.$ac_ext
36731cat >>conftest.$ac_ext <<_ACEOF
36732/* end confdefs.h. */
36733
36734 #include <time.h>
36735
36736int
36737main ()
36738{
36739
36740 int tz;
36741 tz = timezone;
36742
36743 ;
36744 return 0;
36745}
36746_ACEOF
36747rm -f conftest.$ac_objext
36748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36749 (eval $ac_compile) 2>conftest.er1
a848cd7e 36750 ac_status=$?
ac1cb8d3
VS
36751 grep -v '^ *+' conftest.er1 >conftest.err
36752 rm -f conftest.er1
36753 cat conftest.err >&5
a848cd7e
SC
36754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36755 (exit $ac_status); } &&
07158944 36756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36758 (eval $ac_try) 2>&5
36759 ac_status=$?
36760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36761 (exit $ac_status); }; } &&
36762 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36764 (eval $ac_try) 2>&5
36765 ac_status=$?
36766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36767 (exit $ac_status); }; }; then
36768
36769 wx_cv_var_timezone=timezone
36770
36771else
36772 echo "$as_me: failed program was:" >&5
36773sed 's/^/| /' conftest.$ac_ext >&5
36774
36775
36776 cat >conftest.$ac_ext <<_ACEOF
36777/* confdefs.h. */
36778_ACEOF
36779cat confdefs.h >>conftest.$ac_ext
36780cat >>conftest.$ac_ext <<_ACEOF
36781/* end confdefs.h. */
36782
36783 #include <time.h>
36784
36785int
36786main ()
36787{
36788
36789 int tz;
36790 tz = _timezone;
36791
36792 ;
36793 return 0;
36794}
36795_ACEOF
36796rm -f conftest.$ac_objext
36797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36798 (eval $ac_compile) 2>conftest.er1
a848cd7e 36799 ac_status=$?
ac1cb8d3
VS
36800 grep -v '^ *+' conftest.er1 >conftest.err
36801 rm -f conftest.er1
36802 cat conftest.err >&5
a848cd7e
SC
36803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36804 (exit $ac_status); } &&
07158944 36805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36807 (eval $ac_try) 2>&5
36808 ac_status=$?
36809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36810 (exit $ac_status); }; } &&
36811 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36813 (eval $ac_try) 2>&5
36814 ac_status=$?
36815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36816 (exit $ac_status); }; }; then
36817
36818 wx_cv_var_timezone=_timezone
36819
36820else
36821 echo "$as_me: failed program was:" >&5
36822sed 's/^/| /' conftest.$ac_ext >&5
36823
36824
36825 cat >conftest.$ac_ext <<_ACEOF
36826/* confdefs.h. */
36827_ACEOF
36828cat confdefs.h >>conftest.$ac_ext
36829cat >>conftest.$ac_ext <<_ACEOF
36830/* end confdefs.h. */
36831
36832 #include <time.h>
36833
36834int
36835main ()
36836{
36837
36838 int tz;
36839 tz = __timezone;
36840
36841 ;
36842 return 0;
36843}
36844_ACEOF
36845rm -f conftest.$ac_objext
36846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36847 (eval $ac_compile) 2>conftest.er1
a848cd7e 36848 ac_status=$?
ac1cb8d3
VS
36849 grep -v '^ *+' conftest.er1 >conftest.err
36850 rm -f conftest.er1
36851 cat conftest.err >&5
a848cd7e
SC
36852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36853 (exit $ac_status); } &&
07158944 36854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36856 (eval $ac_try) 2>&5
36857 ac_status=$?
36858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36859 (exit $ac_status); }; } &&
36860 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36862 (eval $ac_try) 2>&5
36863 ac_status=$?
36864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36865 (exit $ac_status); }; }; then
36866
36867 wx_cv_var_timezone=__timezone
36868
36869else
36870 echo "$as_me: failed program was:" >&5
36871sed 's/^/| /' conftest.$ac_ext >&5
36872
36873
36874 if test "$USE_DOS" = 0 ; then
36875 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
36876echo "$as_me: WARNING: no timezone variable" >&2;}
36877 fi
36878
36879
36880fi
ac1cb8d3 36881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36882
36883
36884fi
ac1cb8d3 36885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36886
36887
36888fi
ac1cb8d3 36889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36890
36891
36892fi
36893echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
36894echo "${ECHO_T}$wx_cv_var_timezone" >&6
36895
36896 if test "x$wx_cv_var_timezone" != x ; then
36897 cat >>confdefs.h <<_ACEOF
36898#define WX_TIMEZONE $wx_cv_var_timezone
36899_ACEOF
36900
36901 fi
36902
36903
36904for ac_func in localtime
36905do
36906as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36907echo "$as_me:$LINENO: checking for $ac_func" >&5
36908echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36909if eval "test \"\${$as_ac_var+set}\" = set"; then
36910 echo $ECHO_N "(cached) $ECHO_C" >&6
36911else
36912 cat >conftest.$ac_ext <<_ACEOF
36913/* confdefs.h. */
36914_ACEOF
36915cat confdefs.h >>conftest.$ac_ext
36916cat >>conftest.$ac_ext <<_ACEOF
36917/* end confdefs.h. */
ac1cb8d3
VS
36918/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36920#define $ac_func innocuous_$ac_func
36921
a848cd7e
SC
36922/* System header to define __stub macros and hopefully few prototypes,
36923 which can conflict with char $ac_func (); below.
36924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36925 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36926
a848cd7e
SC
36927#ifdef __STDC__
36928# include <limits.h>
36929#else
36930# include <assert.h>
36931#endif
ac1cb8d3
VS
36932
36933#undef $ac_func
36934
a848cd7e
SC
36935/* Override any gcc2 internal prototype to avoid an error. */
36936#ifdef __cplusplus
36937extern "C"
36938{
36939#endif
36940/* We use char because int might match the return type of a gcc2
36941 builtin and then its argument prototype would still apply. */
36942char $ac_func ();
36943/* The GNU C library defines this for functions which it implements
36944 to always fail with ENOSYS. Some functions are actually named
36945 something starting with __ and the normal name is an alias. */
36946#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36947choke me
36948#else
36949char (*f) () = $ac_func;
36950#endif
36951#ifdef __cplusplus
36952}
36953#endif
36954
36955int
36956main ()
36957{
36958return f != $ac_func;
36959 ;
36960 return 0;
36961}
36962_ACEOF
36963rm -f conftest.$ac_objext conftest$ac_exeext
36964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36965 (eval $ac_link) 2>conftest.er1
a848cd7e 36966 ac_status=$?
ac1cb8d3
VS
36967 grep -v '^ *+' conftest.er1 >conftest.err
36968 rm -f conftest.er1
36969 cat conftest.err >&5
a848cd7e
SC
36970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36971 (exit $ac_status); } &&
07158944 36972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36974 (eval $ac_try) 2>&5
36975 ac_status=$?
36976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36977 (exit $ac_status); }; } &&
36978 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36980 (eval $ac_try) 2>&5
36981 ac_status=$?
36982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36983 (exit $ac_status); }; }; then
36984 eval "$as_ac_var=yes"
36985else
36986 echo "$as_me: failed program was:" >&5
36987sed 's/^/| /' conftest.$ac_ext >&5
36988
36989eval "$as_ac_var=no"
36990fi
ac1cb8d3
VS
36991rm -f conftest.err conftest.$ac_objext \
36992 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36993fi
36994echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36995echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36996if test `eval echo '${'$as_ac_var'}'` = yes; then
36997 cat >>confdefs.h <<_ACEOF
36998#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36999_ACEOF
37000
37001fi
37002done
37003
37004
37005 if test "$ac_cv_func_localtime" = "yes"; then
37006 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
37007echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
37008if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
37009 echo $ECHO_N "(cached) $ECHO_C" >&6
37010else
37011
37012 cat >conftest.$ac_ext <<_ACEOF
37013/* confdefs.h. */
37014_ACEOF
37015cat confdefs.h >>conftest.$ac_ext
37016cat >>conftest.$ac_ext <<_ACEOF
37017/* end confdefs.h. */
37018
37019 #include <time.h>
37020
37021int
37022main ()
37023{
37024
37025 struct tm tm;
37026 tm.tm_gmtoff++;
37027
37028 ;
37029 return 0;
37030}
37031_ACEOF
37032rm -f conftest.$ac_objext
37033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37034 (eval $ac_compile) 2>conftest.er1
a848cd7e 37035 ac_status=$?
ac1cb8d3
VS
37036 grep -v '^ *+' conftest.er1 >conftest.err
37037 rm -f conftest.er1
37038 cat conftest.err >&5
a848cd7e
SC
37039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37040 (exit $ac_status); } &&
07158944 37041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37043 (eval $ac_try) 2>&5
37044 ac_status=$?
37045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37046 (exit $ac_status); }; } &&
37047 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37049 (eval $ac_try) 2>&5
37050 ac_status=$?
37051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37052 (exit $ac_status); }; }; then
37053
37054 wx_cv_struct_tm_has_gmtoff=yes
37055
37056else
37057 echo "$as_me: failed program was:" >&5
37058sed 's/^/| /' conftest.$ac_ext >&5
37059
37060wx_cv_struct_tm_has_gmtoff=no
37061
37062fi
ac1cb8d3 37063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37064
37065fi
37066echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
37067echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
37068 fi
37069
37070 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
37071 cat >>confdefs.h <<\_ACEOF
37072#define WX_GMTOFF_IN_TM 1
37073_ACEOF
37074
37075 fi
37076
37077
37078
37079for ac_func in gettimeofday ftime
37080do
37081as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37082echo "$as_me:$LINENO: checking for $ac_func" >&5
37083echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37084if eval "test \"\${$as_ac_var+set}\" = set"; then
37085 echo $ECHO_N "(cached) $ECHO_C" >&6
37086else
37087 cat >conftest.$ac_ext <<_ACEOF
37088/* confdefs.h. */
37089_ACEOF
37090cat confdefs.h >>conftest.$ac_ext
37091cat >>conftest.$ac_ext <<_ACEOF
37092/* end confdefs.h. */
ac1cb8d3
VS
37093/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37095#define $ac_func innocuous_$ac_func
37096
a848cd7e
SC
37097/* System header to define __stub macros and hopefully few prototypes,
37098 which can conflict with char $ac_func (); below.
37099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37100 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37101
a848cd7e
SC
37102#ifdef __STDC__
37103# include <limits.h>
37104#else
37105# include <assert.h>
37106#endif
ac1cb8d3
VS
37107
37108#undef $ac_func
37109
a848cd7e
SC
37110/* Override any gcc2 internal prototype to avoid an error. */
37111#ifdef __cplusplus
37112extern "C"
37113{
37114#endif
37115/* We use char because int might match the return type of a gcc2
37116 builtin and then its argument prototype would still apply. */
37117char $ac_func ();
37118/* The GNU C library defines this for functions which it implements
37119 to always fail with ENOSYS. Some functions are actually named
37120 something starting with __ and the normal name is an alias. */
37121#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37122choke me
37123#else
37124char (*f) () = $ac_func;
37125#endif
37126#ifdef __cplusplus
37127}
37128#endif
37129
37130int
37131main ()
37132{
37133return f != $ac_func;
37134 ;
37135 return 0;
37136}
37137_ACEOF
37138rm -f conftest.$ac_objext conftest$ac_exeext
37139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37140 (eval $ac_link) 2>conftest.er1
a848cd7e 37141 ac_status=$?
ac1cb8d3
VS
37142 grep -v '^ *+' conftest.er1 >conftest.err
37143 rm -f conftest.er1
37144 cat conftest.err >&5
a848cd7e
SC
37145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37146 (exit $ac_status); } &&
07158944 37147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37149 (eval $ac_try) 2>&5
37150 ac_status=$?
37151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37152 (exit $ac_status); }; } &&
37153 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37155 (eval $ac_try) 2>&5
37156 ac_status=$?
37157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37158 (exit $ac_status); }; }; then
37159 eval "$as_ac_var=yes"
37160else
37161 echo "$as_me: failed program was:" >&5
37162sed 's/^/| /' conftest.$ac_ext >&5
37163
37164eval "$as_ac_var=no"
37165fi
ac1cb8d3
VS
37166rm -f conftest.err conftest.$ac_objext \
37167 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37168fi
37169echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37170echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37171if test `eval echo '${'$as_ac_var'}'` = yes; then
37172 cat >>confdefs.h <<_ACEOF
37173#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37174_ACEOF
37175 break
37176fi
37177done
37178
37179
37180 if test "$ac_cv_func_gettimeofday" = "yes"; then
37181 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
37182echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
37183if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
37184 echo $ECHO_N "(cached) $ECHO_C" >&6
37185else
37186
37187
37188
37189 ac_ext=cc
37190ac_cpp='$CXXCPP $CPPFLAGS'
37191ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37192ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37193ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37194
37195
37196 cat >conftest.$ac_ext <<_ACEOF
37197/* confdefs.h. */
37198_ACEOF
37199cat confdefs.h >>conftest.$ac_ext
37200cat >>conftest.$ac_ext <<_ACEOF
37201/* end confdefs.h. */
37202
37203 #include <sys/time.h>
37204 #include <unistd.h>
37205
37206int
37207main ()
37208{
37209
37210 struct timeval tv;
37211 gettimeofday(&tv, NULL);
37212
37213 ;
37214 return 0;
37215}
37216_ACEOF
37217rm -f conftest.$ac_objext
37218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37219 (eval $ac_compile) 2>conftest.er1
a848cd7e 37220 ac_status=$?
ac1cb8d3
VS
37221 grep -v '^ *+' conftest.er1 >conftest.err
37222 rm -f conftest.er1
37223 cat conftest.err >&5
a848cd7e
SC
37224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37225 (exit $ac_status); } &&
07158944 37226 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37228 (eval $ac_try) 2>&5
37229 ac_status=$?
37230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37231 (exit $ac_status); }; } &&
37232 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37234 (eval $ac_try) 2>&5
37235 ac_status=$?
37236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37237 (exit $ac_status); }; }; then
37238 wx_cv_func_gettimeofday_has_2_args=yes
37239else
37240 echo "$as_me: failed program was:" >&5
37241sed 's/^/| /' conftest.$ac_ext >&5
37242
37243cat >conftest.$ac_ext <<_ACEOF
37244/* confdefs.h. */
37245_ACEOF
37246cat confdefs.h >>conftest.$ac_ext
37247cat >>conftest.$ac_ext <<_ACEOF
37248/* end confdefs.h. */
37249
37250 #include <sys/time.h>
37251 #include <unistd.h>
37252
37253int
37254main ()
37255{
37256
37257 struct timeval tv;
37258 gettimeofday(&tv);
37259
37260 ;
37261 return 0;
37262}
37263_ACEOF
37264rm -f conftest.$ac_objext
37265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37266 (eval $ac_compile) 2>conftest.er1
a848cd7e 37267 ac_status=$?
ac1cb8d3
VS
37268 grep -v '^ *+' conftest.er1 >conftest.err
37269 rm -f conftest.er1
37270 cat conftest.err >&5
a848cd7e
SC
37271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37272 (exit $ac_status); } &&
07158944 37273 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37275 (eval $ac_try) 2>&5
37276 ac_status=$?
37277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37278 (exit $ac_status); }; } &&
37279 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37281 (eval $ac_try) 2>&5
37282 ac_status=$?
37283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37284 (exit $ac_status); }; }; then
37285 wx_cv_func_gettimeofday_has_2_args=no
37286else
37287 echo "$as_me: failed program was:" >&5
37288sed 's/^/| /' conftest.$ac_ext >&5
37289
37290
37291 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
37292echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
37293 wx_cv_func_gettimeofday_has_2_args=unknown
37294
37295
37296fi
ac1cb8d3 37297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37298
37299fi
ac1cb8d3 37300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37301 ac_ext=c
37302ac_cpp='$CPP $CPPFLAGS'
37303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37305ac_compiler_gnu=$ac_cv_c_compiler_gnu
37306
37307
37308fi
37309echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
37310echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
37311
37312 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
37313 cat >>confdefs.h <<\_ACEOF
37314#define WX_GETTIMEOFDAY_NO_TZ 1
37315_ACEOF
37316
37317 fi
37318 fi
37319
37320 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
37321fi
37322
37323
37324if test "$wxUSE_SOCKETS" = "yes"; then
37325 if test "$wxUSE_MGL" = "1"; then
37326 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
37327echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
37328 wxUSE_SOCKETS="no"
37329 fi
37330fi
37331
37332if test "$wxUSE_SOCKETS" = "yes"; then
37333 if test "$TOOLKIT" != "MSW"; then
37334 echo "$as_me:$LINENO: checking for socket" >&5
37335echo $ECHO_N "checking for socket... $ECHO_C" >&6
37336if test "${ac_cv_func_socket+set}" = set; then
37337 echo $ECHO_N "(cached) $ECHO_C" >&6
37338else
37339 cat >conftest.$ac_ext <<_ACEOF
37340/* confdefs.h. */
37341_ACEOF
37342cat confdefs.h >>conftest.$ac_ext
37343cat >>conftest.$ac_ext <<_ACEOF
37344/* end confdefs.h. */
ac1cb8d3
VS
37345/* Define socket to an innocuous variant, in case <limits.h> declares socket.
37346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37347#define socket innocuous_socket
37348
a848cd7e
SC
37349/* System header to define __stub macros and hopefully few prototypes,
37350 which can conflict with char socket (); below.
37351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37352 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37353
a848cd7e
SC
37354#ifdef __STDC__
37355# include <limits.h>
37356#else
37357# include <assert.h>
37358#endif
ac1cb8d3
VS
37359
37360#undef socket
37361
a848cd7e
SC
37362/* Override any gcc2 internal prototype to avoid an error. */
37363#ifdef __cplusplus
37364extern "C"
37365{
37366#endif
37367/* We use char because int might match the return type of a gcc2
37368 builtin and then its argument prototype would still apply. */
37369char socket ();
37370/* The GNU C library defines this for functions which it implements
37371 to always fail with ENOSYS. Some functions are actually named
37372 something starting with __ and the normal name is an alias. */
37373#if defined (__stub_socket) || defined (__stub___socket)
37374choke me
37375#else
37376char (*f) () = socket;
37377#endif
37378#ifdef __cplusplus
37379}
37380#endif
37381
37382int
37383main ()
37384{
37385return f != socket;
37386 ;
37387 return 0;
37388}
37389_ACEOF
37390rm -f conftest.$ac_objext conftest$ac_exeext
37391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37392 (eval $ac_link) 2>conftest.er1
a848cd7e 37393 ac_status=$?
ac1cb8d3
VS
37394 grep -v '^ *+' conftest.er1 >conftest.err
37395 rm -f conftest.er1
37396 cat conftest.err >&5
a848cd7e
SC
37397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37398 (exit $ac_status); } &&
07158944 37399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37401 (eval $ac_try) 2>&5
37402 ac_status=$?
37403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37404 (exit $ac_status); }; } &&
37405 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37407 (eval $ac_try) 2>&5
37408 ac_status=$?
37409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37410 (exit $ac_status); }; }; then
37411 ac_cv_func_socket=yes
37412else
37413 echo "$as_me: failed program was:" >&5
37414sed 's/^/| /' conftest.$ac_ext >&5
37415
37416ac_cv_func_socket=no
37417fi
ac1cb8d3
VS
37418rm -f conftest.err conftest.$ac_objext \
37419 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37420fi
37421echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
37422echo "${ECHO_T}$ac_cv_func_socket" >&6
37423if test $ac_cv_func_socket = yes; then
37424 :
37425else
37426
37427 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
37428echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
37429if test "${ac_cv_lib_socket_socket+set}" = set; then
37430 echo $ECHO_N "(cached) $ECHO_C" >&6
37431else
37432 ac_check_lib_save_LIBS=$LIBS
37433LIBS="-lsocket $LIBS"
37434cat >conftest.$ac_ext <<_ACEOF
37435/* confdefs.h. */
37436_ACEOF
37437cat confdefs.h >>conftest.$ac_ext
37438cat >>conftest.$ac_ext <<_ACEOF
37439/* end confdefs.h. */
37440
37441/* Override any gcc2 internal prototype to avoid an error. */
37442#ifdef __cplusplus
37443extern "C"
37444#endif
37445/* We use char because int might match the return type of a gcc2
37446 builtin and then its argument prototype would still apply. */
37447char socket ();
37448int
37449main ()
37450{
37451socket ();
37452 ;
37453 return 0;
37454}
37455_ACEOF
37456rm -f conftest.$ac_objext conftest$ac_exeext
37457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37458 (eval $ac_link) 2>conftest.er1
a848cd7e 37459 ac_status=$?
ac1cb8d3
VS
37460 grep -v '^ *+' conftest.er1 >conftest.err
37461 rm -f conftest.er1
37462 cat conftest.err >&5
a848cd7e
SC
37463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37464 (exit $ac_status); } &&
07158944 37465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37467 (eval $ac_try) 2>&5
37468 ac_status=$?
37469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37470 (exit $ac_status); }; } &&
37471 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37473 (eval $ac_try) 2>&5
37474 ac_status=$?
37475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37476 (exit $ac_status); }; }; then
37477 ac_cv_lib_socket_socket=yes
37478else
37479 echo "$as_me: failed program was:" >&5
37480sed 's/^/| /' conftest.$ac_ext >&5
37481
37482ac_cv_lib_socket_socket=no
37483fi
ac1cb8d3
VS
37484rm -f conftest.err conftest.$ac_objext \
37485 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37486LIBS=$ac_check_lib_save_LIBS
37487fi
37488echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
37489echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
37490if test $ac_cv_lib_socket_socket = yes; then
37491 if test "$INET_LINK" != " -lsocket"; then
37492 INET_LINK="$INET_LINK -lsocket"
37493 fi
37494else
37495
37496 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
37497echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
37498 wxUSE_SOCKETS=no
37499
37500
37501fi
37502
37503
37504
37505fi
37506
37507 fi
37508fi
37509
37510if test "$wxUSE_SOCKETS" = "yes" ; then
37511 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
37512 ac_ext=cc
37513ac_cpp='$CXXCPP $CPPFLAGS'
37514ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37515ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37516ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37517
37518 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
37519echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
37520if test "${wx_cv_type_getsockname3+set}" = set; then
37521 echo $ECHO_N "(cached) $ECHO_C" >&6
37522else
37523
37524 cat >conftest.$ac_ext <<_ACEOF
37525/* confdefs.h. */
37526_ACEOF
37527cat confdefs.h >>conftest.$ac_ext
37528cat >>conftest.$ac_ext <<_ACEOF
37529/* end confdefs.h. */
37530
37531 #include <sys/types.h>
37532 #include <sys/socket.h>
37533
37534int
37535main ()
37536{
37537
37538 socklen_t len;
37539 getsockname(0, 0, &len);
37540
37541 ;
37542 return 0;
37543}
37544_ACEOF
37545rm -f conftest.$ac_objext
37546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37547 (eval $ac_compile) 2>conftest.er1
a848cd7e 37548 ac_status=$?
ac1cb8d3
VS
37549 grep -v '^ *+' conftest.er1 >conftest.err
37550 rm -f conftest.er1
37551 cat conftest.err >&5
a848cd7e
SC
37552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37553 (exit $ac_status); } &&
07158944 37554 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37556 (eval $ac_try) 2>&5
37557 ac_status=$?
37558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37559 (exit $ac_status); }; } &&
37560 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37562 (eval $ac_try) 2>&5
37563 ac_status=$?
37564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37565 (exit $ac_status); }; }; then
37566 wx_cv_type_getsockname3=socklen_t
37567else
37568 echo "$as_me: failed program was:" >&5
37569sed 's/^/| /' conftest.$ac_ext >&5
37570
37571
37572 CFLAGS_OLD="$CFLAGS"
37573 if test "$GCC" = yes ; then
37574 CFLAGS="$CFLAGS -Werror"
37575 fi
37576
37577 cat >conftest.$ac_ext <<_ACEOF
37578/* confdefs.h. */
37579_ACEOF
37580cat confdefs.h >>conftest.$ac_ext
37581cat >>conftest.$ac_ext <<_ACEOF
37582/* end confdefs.h. */
37583
37584 #include <sys/types.h>
37585 #include <sys/socket.h>
37586
37587int
37588main ()
37589{
37590
37591 size_t len;
37592 getsockname(0, 0, &len);
37593
37594 ;
37595 return 0;
37596}
37597_ACEOF
37598rm -f conftest.$ac_objext
37599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37600 (eval $ac_compile) 2>conftest.er1
a848cd7e 37601 ac_status=$?
ac1cb8d3
VS
37602 grep -v '^ *+' conftest.er1 >conftest.err
37603 rm -f conftest.er1
37604 cat conftest.err >&5
a848cd7e
SC
37605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37606 (exit $ac_status); } &&
07158944 37607 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37609 (eval $ac_try) 2>&5
37610 ac_status=$?
37611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37612 (exit $ac_status); }; } &&
37613 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37615 (eval $ac_try) 2>&5
37616 ac_status=$?
37617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37618 (exit $ac_status); }; }; then
37619 wx_cv_type_getsockname3=size_t
37620else
37621 echo "$as_me: failed program was:" >&5
37622sed 's/^/| /' conftest.$ac_ext >&5
37623
37624cat >conftest.$ac_ext <<_ACEOF
37625/* confdefs.h. */
37626_ACEOF
37627cat confdefs.h >>conftest.$ac_ext
37628cat >>conftest.$ac_ext <<_ACEOF
37629/* end confdefs.h. */
37630
37631 #include <sys/types.h>
37632 #include <sys/socket.h>
37633
37634int
37635main ()
37636{
37637
37638 int len;
37639 getsockname(0, 0, &len);
37640
37641 ;
37642 return 0;
37643}
37644_ACEOF
37645rm -f conftest.$ac_objext
37646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37647 (eval $ac_compile) 2>conftest.er1
a848cd7e 37648 ac_status=$?
ac1cb8d3
VS
37649 grep -v '^ *+' conftest.er1 >conftest.err
37650 rm -f conftest.er1
37651 cat conftest.err >&5
a848cd7e
SC
37652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37653 (exit $ac_status); } &&
07158944 37654 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37656 (eval $ac_try) 2>&5
37657 ac_status=$?
37658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37659 (exit $ac_status); }; } &&
37660 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37662 (eval $ac_try) 2>&5
37663 ac_status=$?
37664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37665 (exit $ac_status); }; }; then
37666 wx_cv_type_getsockname3=int
37667else
37668 echo "$as_me: failed program was:" >&5
37669sed 's/^/| /' conftest.$ac_ext >&5
37670
37671wx_cv_type_getsockname3=unknown
37672
37673fi
ac1cb8d3 37674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37675
37676fi
ac1cb8d3 37677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37678
37679 CFLAGS="$CFLAGS_OLD"
37680
37681
37682fi
ac1cb8d3 37683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37684
37685fi
37686echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
37687echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
37688
37689 if test "$wx_cv_type_getsockname3" = "unknown"; then
37690 wxUSE_SOCKETS=no
37691 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
37692echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
37693 else
37694 cat >>confdefs.h <<_ACEOF
37695#define SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
37696_ACEOF
37697
37698 fi
37699 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
37700echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
37701if test "${wx_cv_type_getsockopt5+set}" = set; then
37702 echo $ECHO_N "(cached) $ECHO_C" >&6
37703else
37704
37705 cat >conftest.$ac_ext <<_ACEOF
37706/* confdefs.h. */
37707_ACEOF
37708cat confdefs.h >>conftest.$ac_ext
37709cat >>conftest.$ac_ext <<_ACEOF
37710/* end confdefs.h. */
37711
37712 #include <sys/types.h>
37713 #include <sys/socket.h>
37714
37715int
37716main ()
37717{
37718
37719 socklen_t len;
37720 getsockopt(0, 0, 0, 0, &len);
37721
37722 ;
37723 return 0;
37724}
37725_ACEOF
37726rm -f conftest.$ac_objext
37727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37728 (eval $ac_compile) 2>conftest.er1
37729 ac_status=$?
37730 grep -v '^ *+' conftest.er1 >conftest.err
37731 rm -f conftest.er1
37732 cat conftest.err >&5
37733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37734 (exit $ac_status); } &&
07158944 37735 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
37736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37737 (eval $ac_try) 2>&5
37738 ac_status=$?
37739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37740 (exit $ac_status); }; } &&
37741 { ac_try='test -s conftest.$ac_objext'
37742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37743 (eval $ac_try) 2>&5
37744 ac_status=$?
37745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37746 (exit $ac_status); }; }; then
37747 wx_cv_type_getsockopt5=socklen_t
37748else
37749 echo "$as_me: failed program was:" >&5
37750sed 's/^/| /' conftest.$ac_ext >&5
37751
37752
37753 CFLAGS_OLD="$CFLAGS"
37754 if test "$GCC" = yes ; then
37755 CFLAGS="$CFLAGS -Werror"
37756 fi
37757
37758 cat >conftest.$ac_ext <<_ACEOF
37759/* confdefs.h. */
37760_ACEOF
37761cat confdefs.h >>conftest.$ac_ext
37762cat >>conftest.$ac_ext <<_ACEOF
37763/* end confdefs.h. */
37764
37765 #include <sys/types.h>
37766 #include <sys/socket.h>
37767
37768int
37769main ()
37770{
37771
37772 size_t len;
37773 getsockopt(0, 0, 0, 0, &len);
37774
37775 ;
37776 return 0;
37777}
37778_ACEOF
37779rm -f conftest.$ac_objext
37780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37781 (eval $ac_compile) 2>conftest.er1
37782 ac_status=$?
37783 grep -v '^ *+' conftest.er1 >conftest.err
37784 rm -f conftest.er1
37785 cat conftest.err >&5
37786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37787 (exit $ac_status); } &&
07158944 37788 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
37789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37790 (eval $ac_try) 2>&5
37791 ac_status=$?
37792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37793 (exit $ac_status); }; } &&
37794 { ac_try='test -s conftest.$ac_objext'
37795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37796 (eval $ac_try) 2>&5
37797 ac_status=$?
37798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37799 (exit $ac_status); }; }; then
37800 wx_cv_type_getsockopt5=size_t
37801else
37802 echo "$as_me: failed program was:" >&5
37803sed 's/^/| /' conftest.$ac_ext >&5
37804
37805cat >conftest.$ac_ext <<_ACEOF
37806/* confdefs.h. */
37807_ACEOF
37808cat confdefs.h >>conftest.$ac_ext
37809cat >>conftest.$ac_ext <<_ACEOF
37810/* end confdefs.h. */
37811
37812 #include <sys/types.h>
37813 #include <sys/socket.h>
37814
37815int
37816main ()
37817{
37818
37819 int len;
37820 getsockopt(0, 0, 0, 0, &len);
37821
37822 ;
37823 return 0;
37824}
37825_ACEOF
37826rm -f conftest.$ac_objext
37827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37828 (eval $ac_compile) 2>conftest.er1
37829 ac_status=$?
37830 grep -v '^ *+' conftest.er1 >conftest.err
37831 rm -f conftest.er1
37832 cat conftest.err >&5
37833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37834 (exit $ac_status); } &&
07158944 37835 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
37836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37837 (eval $ac_try) 2>&5
37838 ac_status=$?
37839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37840 (exit $ac_status); }; } &&
37841 { ac_try='test -s conftest.$ac_objext'
37842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37843 (eval $ac_try) 2>&5
37844 ac_status=$?
37845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37846 (exit $ac_status); }; }; then
37847 wx_cv_type_getsockopt5=int
37848else
37849 echo "$as_me: failed program was:" >&5
37850sed 's/^/| /' conftest.$ac_ext >&5
37851
37852wx_cv_type_getsockopt5=unknown
37853
37854fi
37855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37856
37857fi
37858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37859
37860 CFLAGS="$CFLAGS_OLD"
37861
37862
37863fi
37864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37865
37866fi
37867echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
37868echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
37869
37870 if test "$wx_cv_type_getsockopt5" = "unknown"; then
37871 wxUSE_SOCKETS=no
37872 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
37873echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
37874 else
37875 cat >>confdefs.h <<_ACEOF
37876#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
37877_ACEOF
37878
37879 fi
4d4ff94c
VZ
37880 ac_ext=c
37881ac_cpp='$CPP $CPPFLAGS'
37882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37884ac_compiler_gnu=$ac_cv_c_compiler_gnu
37885
a848cd7e
SC
37886 fi
37887fi
37888
37889if test "$wxUSE_SOCKETS" = "yes" ; then
37890 cat >>confdefs.h <<\_ACEOF
37891#define wxUSE_SOCKETS 1
37892_ACEOF
37893
37894 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
37895fi
37896
37897if test "$wxUSE_PROTOCOL" = "yes"; then
37898 if test "$wxUSE_SOCKETS" != "yes"; then
37899 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
37900echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
37901 wxUSE_PROTOCOL=no
37902 fi
37903fi
37904
37905if test "$wxUSE_PROTOCOL" = "yes"; then
37906 cat >>confdefs.h <<\_ACEOF
37907#define wxUSE_PROTOCOL 1
37908_ACEOF
37909
37910
37911 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
37912 cat >>confdefs.h <<\_ACEOF
37913#define wxUSE_PROTOCOL_HTTP 1
37914_ACEOF
37915
37916 fi
37917 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
37918 cat >>confdefs.h <<\_ACEOF
37919#define wxUSE_PROTOCOL_FTP 1
37920_ACEOF
37921
37922 fi
37923 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
37924 cat >>confdefs.h <<\_ACEOF
37925#define wxUSE_PROTOCOL_FILE 1
37926_ACEOF
37927
37928 fi
37929else
37930 if test "$wxUSE_FS_INET" = "yes"; then
37931 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
37932echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
37933 wxUSE_FS_INET="no"
37934 fi
37935fi
37936
37937if test "$wxUSE_URL" = "yes"; then
37938 if test "$wxUSE_PROTOCOL" != "yes"; then
37939 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
37940echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
37941 wxUSE_URL=no
37942 fi
37943 if test "$wxUSE_URL" = "yes"; then
37944 cat >>confdefs.h <<\_ACEOF
37945#define wxUSE_URL 1
37946_ACEOF
37947
37948 fi
37949fi
37950
37951if test "$wxUSE_FS_INET" = "yes"; then
37952 cat >>confdefs.h <<\_ACEOF
37953#define wxUSE_FS_INET 1
37954_ACEOF
37955
37956fi
37957
37958
37959if test "$wxUSE_GUI" = "yes"; then
4cb1d3da 37960 if test "$wxUSE_JOYSTICK" = "yes"; then
a848cd7e 37961
4cb1d3da 37962 if test "$TOOLKIT" != "MAC" -a "$TOOLKIT" != "COCOA" -a "$TOOLKIT" != "MSW"; then
a848cd7e
SC
37963
37964for ac_header in linux/joystick.h
37965do
37966as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37967if eval "test \"\${$as_ac_Header+set}\" = set"; then
37968 echo "$as_me:$LINENO: checking for $ac_header" >&5
37969echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37970if eval "test \"\${$as_ac_Header+set}\" = set"; then
37971 echo $ECHO_N "(cached) $ECHO_C" >&6
37972fi
37973echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37974echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37975else
37976 # Is the header compilable?
37977echo "$as_me:$LINENO: checking $ac_header usability" >&5
37978echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37979cat >conftest.$ac_ext <<_ACEOF
37980/* confdefs.h. */
37981_ACEOF
37982cat confdefs.h >>conftest.$ac_ext
37983cat >>conftest.$ac_ext <<_ACEOF
37984/* end confdefs.h. */
37985$ac_includes_default
37986#include <$ac_header>
37987_ACEOF
37988rm -f conftest.$ac_objext
37989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37990 (eval $ac_compile) 2>conftest.er1
a848cd7e 37991 ac_status=$?
ac1cb8d3
VS
37992 grep -v '^ *+' conftest.er1 >conftest.err
37993 rm -f conftest.er1
37994 cat conftest.err >&5
a848cd7e
SC
37995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37996 (exit $ac_status); } &&
07158944 37997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37999 (eval $ac_try) 2>&5
38000 ac_status=$?
38001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38002 (exit $ac_status); }; } &&
38003 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38005 (eval $ac_try) 2>&5
38006 ac_status=$?
38007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38008 (exit $ac_status); }; }; then
38009 ac_header_compiler=yes
38010else
38011 echo "$as_me: failed program was:" >&5
38012sed 's/^/| /' conftest.$ac_ext >&5
38013
38014ac_header_compiler=no
38015fi
ac1cb8d3 38016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38017echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38018echo "${ECHO_T}$ac_header_compiler" >&6
38019
38020# Is the header present?
38021echo "$as_me:$LINENO: checking $ac_header presence" >&5
38022echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38023cat >conftest.$ac_ext <<_ACEOF
38024/* confdefs.h. */
38025_ACEOF
38026cat confdefs.h >>conftest.$ac_ext
38027cat >>conftest.$ac_ext <<_ACEOF
38028/* end confdefs.h. */
38029#include <$ac_header>
38030_ACEOF
38031if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38033 ac_status=$?
38034 grep -v '^ *+' conftest.er1 >conftest.err
38035 rm -f conftest.er1
38036 cat conftest.err >&5
38037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38038 (exit $ac_status); } >/dev/null; then
38039 if test -s conftest.err; then
38040 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 38041 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
38042 else
38043 ac_cpp_err=
38044 fi
38045else
38046 ac_cpp_err=yes
38047fi
38048if test -z "$ac_cpp_err"; then
38049 ac_header_preproc=yes
38050else
38051 echo "$as_me: failed program was:" >&5
38052sed 's/^/| /' conftest.$ac_ext >&5
38053
38054 ac_header_preproc=no
38055fi
38056rm -f conftest.err conftest.$ac_ext
38057echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38058echo "${ECHO_T}$ac_header_preproc" >&6
38059
38060# So? What about this header?
ac1cb8d3
VS
38061case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38062 yes:no: )
a848cd7e
SC
38063 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38064echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38066echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38067 ac_header_preproc=yes
a848cd7e 38068 ;;
ac1cb8d3 38069 no:yes:* )
a848cd7e
SC
38070 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38071echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38072 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38073echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38074 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38075echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38076 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38077echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38079echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38080 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38081echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38082 (
38083 cat <<\_ASBOX
ac1cb8d3
VS
38084## ----------------------------------------- ##
38085## Report this to wx-dev@lists.wxwidgets.org ##
38086## ----------------------------------------- ##
a848cd7e
SC
38087_ASBOX
38088 ) |
38089 sed "s/^/$as_me: WARNING: /" >&2
38090 ;;
38091esac
38092echo "$as_me:$LINENO: checking for $ac_header" >&5
38093echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38094if eval "test \"\${$as_ac_Header+set}\" = set"; then
38095 echo $ECHO_N "(cached) $ECHO_C" >&6
38096else
ac1cb8d3 38097 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38098fi
38099echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38100echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38101
38102fi
38103if test `eval echo '${'$as_ac_Header'}'` = yes; then
38104 cat >>confdefs.h <<_ACEOF
38105#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38106_ACEOF
38107
38108fi
38109
38110done
38111
38112 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
38113 wxUSE_JOYSTICK=no
38114 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
38115echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
38116 fi
4cb1d3da
RN
38117 else
38118 if test "$USE_DARWIN" != 1 -a "$TOOLKIT" != "MSW"; then
38119 wxUSE_JOYSTICK=no
38120 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
38121echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
38122 fi
a848cd7e 38123 fi
a848cd7e 38124
4cb1d3da
RN
38125
38126 if test "$wxUSE_JOYSTICK" = "yes"; then
38127 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38128#define wxUSE_JOYSTICK 1
38129_ACEOF
38130
4cb1d3da
RN
38131 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
38132 fi
a848cd7e
SC
38133 fi
38134fi
38135
38136
38137
38138if test "$wxUSE_FONTMAP" = "yes" ; then
38139 cat >>confdefs.h <<\_ACEOF
38140#define wxUSE_FONTMAP 1
38141_ACEOF
38142
38143fi
38144
38145if test "$wxUSE_UNICODE" = "yes" ; then
38146 cat >>confdefs.h <<\_ACEOF
38147#define wxUSE_UNICODE 1
38148_ACEOF
38149
38150
38151 if test "$USE_WIN32" != 1; then
38152 wxUSE_UNICODE_MSLU=no
38153 fi
38154
38155 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
38156 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
38157echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
38158if test "${ac_cv_lib_unicows_main+set}" = set; then
38159 echo $ECHO_N "(cached) $ECHO_C" >&6
38160else
38161 ac_check_lib_save_LIBS=$LIBS
38162LIBS="-lunicows $LIBS"
38163cat >conftest.$ac_ext <<_ACEOF
38164/* confdefs.h. */
38165_ACEOF
38166cat confdefs.h >>conftest.$ac_ext
38167cat >>conftest.$ac_ext <<_ACEOF
38168/* end confdefs.h. */
38169
38170
38171int
38172main ()
38173{
38174main ();
38175 ;
38176 return 0;
38177}
38178_ACEOF
38179rm -f conftest.$ac_objext conftest$ac_exeext
38180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38181 (eval $ac_link) 2>conftest.er1
a848cd7e 38182 ac_status=$?
ac1cb8d3
VS
38183 grep -v '^ *+' conftest.er1 >conftest.err
38184 rm -f conftest.er1
38185 cat conftest.err >&5
a848cd7e
SC
38186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38187 (exit $ac_status); } &&
07158944 38188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38190 (eval $ac_try) 2>&5
38191 ac_status=$?
38192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38193 (exit $ac_status); }; } &&
38194 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38196 (eval $ac_try) 2>&5
38197 ac_status=$?
38198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38199 (exit $ac_status); }; }; then
38200 ac_cv_lib_unicows_main=yes
38201else
38202 echo "$as_me: failed program was:" >&5
38203sed 's/^/| /' conftest.$ac_ext >&5
38204
38205ac_cv_lib_unicows_main=no
38206fi
ac1cb8d3
VS
38207rm -f conftest.err conftest.$ac_objext \
38208 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38209LIBS=$ac_check_lib_save_LIBS
38210fi
38211echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
38212echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
38213if test $ac_cv_lib_unicows_main = yes; then
38214
38215 cat >>confdefs.h <<\_ACEOF
38216#define wxUSE_UNICODE_MSLU 1
38217_ACEOF
38218
38219
38220else
38221
38222 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38223 Applications will only run on Windows NT/2000/XP!" >&5
38224echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
38225 Applications will only run on Windows NT/2000/XP!" >&2;}
38226 wxUSE_UNICODE_MSLU=no
38227
38228fi
38229
38230 fi
38231fi
38232
38233if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
38234 cat >>confdefs.h <<\_ACEOF
38235#define wxUSE_EXPERIMENTAL_PRINTF 1
38236_ACEOF
38237
38238fi
38239
38240
38241if test "$wxUSE_POSTSCRIPT" = "yes" ; then
38242 cat >>confdefs.h <<\_ACEOF
38243#define wxUSE_POSTSCRIPT 1
38244_ACEOF
38245
38246fi
38247
38248cat >>confdefs.h <<\_ACEOF
38249#define wxUSE_AFM_FOR_POSTSCRIPT 1
38250_ACEOF
38251
38252
38253cat >>confdefs.h <<\_ACEOF
38254#define wxUSE_NORMALIZED_PS_FONTS 1
38255_ACEOF
38256
38257
38258
38259if test "$wxUSE_CONSTRAINTS" = "yes"; then
38260 cat >>confdefs.h <<\_ACEOF
38261#define wxUSE_CONSTRAINTS 1
38262_ACEOF
38263
38264 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
38265fi
38266
8a7b1113
VZ
38267if test "$wxUSE_MDI" = "yes"; then
38268 cat >>confdefs.h <<\_ACEOF
38269#define wxUSE_MDI 1
38270_ACEOF
38271
38272
38273 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
38274 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38275#define wxUSE_MDI_ARCHITECTURE 1
38276_ACEOF
38277
8a7b1113
VZ
38278 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
38279 fi
a848cd7e
SC
38280fi
38281
38282if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
38283 cat >>confdefs.h <<\_ACEOF
38284#define wxUSE_DOC_VIEW_ARCHITECTURE 1
38285_ACEOF
38286
38287 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
38288 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
38289 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
38290 fi
38291fi
38292
38293if test "$wxUSE_HELP" = "yes"; then
38294 cat >>confdefs.h <<\_ACEOF
38295#define wxUSE_HELP 1
38296_ACEOF
38297
38298 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
38299
38300 if test "$wxUSE_MSW" = 1; then
38301 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
38302 cat >>confdefs.h <<\_ACEOF
38303#define wxUSE_MS_HTML_HELP 1
38304_ACEOF
38305
38306 fi
38307 fi
38308
38309 if test "$wxUSE_WXHTML_HELP" = "yes"; then
38310 if test "$wxUSE_HTML" = "yes"; then
38311 cat >>confdefs.h <<\_ACEOF
38312#define wxUSE_WXHTML_HELP 1
38313_ACEOF
38314
38315 else
38316 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
38317echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
38318 wxUSE_WXHTML_HELP=no
38319 fi
38320 fi
38321fi
38322
38323if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
38324 if test "$wxUSE_CONSTRAINTS" != "yes"; then
38325 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
38326echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
38327 else
38328 cat >>confdefs.h <<\_ACEOF
38329#define wxUSE_PRINTING_ARCHITECTURE 1
38330_ACEOF
38331
38332 fi
38333 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
38334fi
38335
38336if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
38337 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
38338echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
38339 { (exit 1); exit 1; }; }
38340fi
38341
38342
38343if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
38344 -o "$wxUSE_CLIPBOARD" = "yes" \
38345 -o "$wxUSE_OLE" = "yes" \
38346 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
38347
38348for ac_header in ole2.h
38349do
38350as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38351if eval "test \"\${$as_ac_Header+set}\" = set"; then
38352 echo "$as_me:$LINENO: checking for $ac_header" >&5
38353echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38354if eval "test \"\${$as_ac_Header+set}\" = set"; then
38355 echo $ECHO_N "(cached) $ECHO_C" >&6
38356fi
38357echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38358echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38359else
38360 # Is the header compilable?
38361echo "$as_me:$LINENO: checking $ac_header usability" >&5
38362echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38363cat >conftest.$ac_ext <<_ACEOF
38364/* confdefs.h. */
38365_ACEOF
38366cat confdefs.h >>conftest.$ac_ext
38367cat >>conftest.$ac_ext <<_ACEOF
38368/* end confdefs.h. */
38369$ac_includes_default
38370#include <$ac_header>
38371_ACEOF
38372rm -f conftest.$ac_objext
38373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38374 (eval $ac_compile) 2>conftest.er1
a848cd7e 38375 ac_status=$?
ac1cb8d3
VS
38376 grep -v '^ *+' conftest.er1 >conftest.err
38377 rm -f conftest.er1
38378 cat conftest.err >&5
a848cd7e
SC
38379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38380 (exit $ac_status); } &&
07158944 38381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38383 (eval $ac_try) 2>&5
38384 ac_status=$?
38385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38386 (exit $ac_status); }; } &&
38387 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38389 (eval $ac_try) 2>&5
38390 ac_status=$?
38391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38392 (exit $ac_status); }; }; then
38393 ac_header_compiler=yes
38394else
38395 echo "$as_me: failed program was:" >&5
38396sed 's/^/| /' conftest.$ac_ext >&5
38397
38398ac_header_compiler=no
38399fi
ac1cb8d3 38400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38401echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38402echo "${ECHO_T}$ac_header_compiler" >&6
38403
38404# Is the header present?
38405echo "$as_me:$LINENO: checking $ac_header presence" >&5
38406echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38407cat >conftest.$ac_ext <<_ACEOF
38408/* confdefs.h. */
38409_ACEOF
38410cat confdefs.h >>conftest.$ac_ext
38411cat >>conftest.$ac_ext <<_ACEOF
38412/* end confdefs.h. */
38413#include <$ac_header>
38414_ACEOF
38415if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38416 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38417 ac_status=$?
38418 grep -v '^ *+' conftest.er1 >conftest.err
38419 rm -f conftest.er1
38420 cat conftest.err >&5
38421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38422 (exit $ac_status); } >/dev/null; then
38423 if test -s conftest.err; then
38424 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 38425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
38426 else
38427 ac_cpp_err=
38428 fi
38429else
38430 ac_cpp_err=yes
38431fi
38432if test -z "$ac_cpp_err"; then
38433 ac_header_preproc=yes
38434else
38435 echo "$as_me: failed program was:" >&5
38436sed 's/^/| /' conftest.$ac_ext >&5
38437
38438 ac_header_preproc=no
38439fi
38440rm -f conftest.err conftest.$ac_ext
38441echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38442echo "${ECHO_T}$ac_header_preproc" >&6
38443
38444# So? What about this header?
ac1cb8d3
VS
38445case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38446 yes:no: )
a848cd7e
SC
38447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38448echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38450echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38451 ac_header_preproc=yes
a848cd7e 38452 ;;
ac1cb8d3 38453 no:yes:* )
a848cd7e
SC
38454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38455echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38457echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38459echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38461echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38463echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38465echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38466 (
38467 cat <<\_ASBOX
ac1cb8d3
VS
38468## ----------------------------------------- ##
38469## Report this to wx-dev@lists.wxwidgets.org ##
38470## ----------------------------------------- ##
a848cd7e
SC
38471_ASBOX
38472 ) |
38473 sed "s/^/$as_me: WARNING: /" >&2
38474 ;;
38475esac
38476echo "$as_me:$LINENO: checking for $ac_header" >&5
38477echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38478if eval "test \"\${$as_ac_Header+set}\" = set"; then
38479 echo $ECHO_N "(cached) $ECHO_C" >&6
38480else
ac1cb8d3 38481 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38482fi
38483echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38484echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38485
38486fi
38487if test `eval echo '${'$as_ac_Header'}'` = yes; then
38488 cat >>confdefs.h <<_ACEOF
38489#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38490_ACEOF
38491
38492fi
38493
38494done
38495
38496
38497 if test "$ac_cv_header_ole2_h" = "yes" ; then
38498 if test "$GCC" = yes ; then
38499
38500
38501 ac_ext=cc
38502ac_cpp='$CXXCPP $CPPFLAGS'
38503ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38504ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38505ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38506
38507
38508 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
38509echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
38510 cat >conftest.$ac_ext <<_ACEOF
38511/* confdefs.h. */
38512_ACEOF
38513cat confdefs.h >>conftest.$ac_ext
38514cat >>conftest.$ac_ext <<_ACEOF
38515/* end confdefs.h. */
38516#include <windows.h>
38517 #include <ole2.h>
38518int
38519main ()
38520{
38521
38522 ;
38523 return 0;
38524}
38525_ACEOF
38526rm -f conftest.$ac_objext
38527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38528 (eval $ac_compile) 2>conftest.er1
a848cd7e 38529 ac_status=$?
ac1cb8d3
VS
38530 grep -v '^ *+' conftest.er1 >conftest.err
38531 rm -f conftest.er1
38532 cat conftest.err >&5
a848cd7e
SC
38533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38534 (exit $ac_status); } &&
07158944 38535 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38537 (eval $ac_try) 2>&5
38538 ac_status=$?
38539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38540 (exit $ac_status); }; } &&
38541 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38543 (eval $ac_try) 2>&5
38544 ac_status=$?
38545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38546 (exit $ac_status); }; }; then
38547 echo "$as_me:$LINENO: result: no" >&5
38548echo "${ECHO_T}no" >&6
38549else
38550 echo "$as_me: failed program was:" >&5
38551sed 's/^/| /' conftest.$ac_ext >&5
38552
38553echo "$as_me:$LINENO: result: yes" >&5
38554echo "${ECHO_T}yes" >&6
38555 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
38556fi
ac1cb8d3 38557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38558 ac_ext=c
38559ac_cpp='$CPP $CPPFLAGS'
38560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38562ac_compiler_gnu=$ac_cv_c_compiler_gnu
38563
a848cd7e
SC
38564 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
38565 if test "$wxUSE_OLE" = "yes" ; then
38566 cat >>confdefs.h <<\_ACEOF
38567#define wxUSE_OLE 1
38568_ACEOF
38569
0b78747f 38570 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
38571 fi
38572 fi
38573
38574 if test "$wxUSE_DATAOBJ" = "yes" ; then
38575 cat >>confdefs.h <<\_ACEOF
38576#define wxUSE_DATAOBJ 1
38577_ACEOF
38578
38579 fi
38580 else
38581 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
38582echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
38583
38584 wxUSE_CLIPBOARD=no
38585 wxUSE_DRAG_AND_DROP=no
38586 wxUSE_DATAOBJ=no
38587 wxUSE_OLE=no
38588 fi
38589
38590 if test "$wxUSE_METAFILE" = "yes"; then
38591 cat >>confdefs.h <<\_ACEOF
38592#define wxUSE_METAFILE 1
38593_ACEOF
38594
38595
38596 cat >>confdefs.h <<\_ACEOF
38597#define wxUSE_ENH_METAFILE 1
38598_ACEOF
38599
38600 fi
38601fi
38602
38603if test "$wxUSE_IPC" = "yes"; then
0b78747f 38604 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
38605 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
38606echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 38607 wxUSE_IPC=no
a848cd7e
SC
38608 fi
38609
0b78747f
MW
38610 if test "$wxUSE_IPC" = "yes"; then
38611 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38612#define wxUSE_IPC 1
38613_ACEOF
38614
0b78747f
MW
38615 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
38616 fi
a848cd7e
SC
38617fi
38618
38619if test "$wxUSE_CLIPBOARD" = "yes"; then
38620 if test "$wxUSE_MGL" = 1; then
38621 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
38622echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
38623 wxUSE_CLIPBOARD=no
38624 fi
38625
38626 if test "$wxUSE_CLIPBOARD" = "yes"; then
38627 cat >>confdefs.h <<\_ACEOF
38628#define wxUSE_CLIPBOARD 1
38629_ACEOF
38630
38631
38632 cat >>confdefs.h <<\_ACEOF
38633#define wxUSE_DATAOBJ 1
38634_ACEOF
38635
38636 fi
38637fi
38638
38639if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
38640 if test "$wxUSE_GTK" = 1; then
38641 if test "$WXGTK12" != 1; then
38642 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
38643echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
38644 wxUSE_DRAG_AND_DROP=no
38645 fi
38646 fi
38647
38648 if test "$wxUSE_MOTIF" = 1; then
38649 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
38650echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
38651 wxUSE_DRAG_AND_DROP=no
38652 fi
38653
38654 if test "$wxUSE_X11" = 1; then
38655 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
38656echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
38657 wxUSE_DRAG_AND_DROP=no
38658 fi
38659
38660 if test "$wxUSE_MGL" = 1; then
38661 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
38662echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
38663 wxUSE_DRAG_AND_DROP=no
38664 fi
38665
38666 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
38667 cat >>confdefs.h <<\_ACEOF
38668#define wxUSE_DRAG_AND_DROP 1
38669_ACEOF
38670
38671 fi
38672
38673fi
38674
38675if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
38676 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
38677fi
38678
38679if test "$wxUSE_SPLINES" = "yes" ; then
38680 cat >>confdefs.h <<\_ACEOF
38681#define wxUSE_SPLINES 1
38682_ACEOF
38683
38684fi
38685
38686
38687USES_CONTROLS=0
38688if test "$wxUSE_CONTROLS" = "yes"; then
38689 USES_CONTROLS=1
38690fi
38691
38692if test "$wxUSE_ACCEL" = "yes"; then
38693 cat >>confdefs.h <<\_ACEOF
38694#define wxUSE_ACCEL 1
38695_ACEOF
38696
38697 USES_CONTROLS=1
38698fi
38699
38700if test "$wxUSE_BUTTON" = "yes"; then
38701 cat >>confdefs.h <<\_ACEOF
38702#define wxUSE_BUTTON 1
38703_ACEOF
38704
38705 USES_CONTROLS=1
38706fi
38707
38708if test "$wxUSE_BMPBUTTON" = "yes"; then
38709 cat >>confdefs.h <<\_ACEOF
38710#define wxUSE_BMPBUTTON 1
38711_ACEOF
38712
38713 USES_CONTROLS=1
38714fi
38715
38716if test "$wxUSE_CALCTRL" = "yes"; then
38717 cat >>confdefs.h <<\_ACEOF
38718#define wxUSE_CALENDARCTRL 1
38719_ACEOF
38720
38721 USES_CONTROLS=1
38722 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
38723fi
38724
38725if test "$wxUSE_CARET" = "yes"; then
38726 cat >>confdefs.h <<\_ACEOF
38727#define wxUSE_CARET 1
38728_ACEOF
38729
38730 USES_CONTROLS=1
38731 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
38732fi
38733
38734if test "$wxUSE_COMBOBOX" = "yes"; then
38735 cat >>confdefs.h <<\_ACEOF
38736#define wxUSE_COMBOBOX 1
38737_ACEOF
38738
38739 USES_CONTROLS=1
38740fi
38741
38742if test "$wxUSE_CHOICE" = "yes"; then
38743 cat >>confdefs.h <<\_ACEOF
38744#define wxUSE_CHOICE 1
38745_ACEOF
38746
38747 USES_CONTROLS=1
38748fi
38749
92bbdbcd
WS
38750if test "$wxUSE_CHOICEBOOK" = "yes"; then
38751 cat >>confdefs.h <<\_ACEOF
38752#define wxUSE_CHOICEBOOK 1
38753_ACEOF
38754
38755 USES_CONTROLS=1
38756fi
38757
a848cd7e
SC
38758if test "$wxUSE_CHECKBOX" = "yes"; then
38759 cat >>confdefs.h <<\_ACEOF
38760#define wxUSE_CHECKBOX 1
38761_ACEOF
38762
38763 USES_CONTROLS=1
38764fi
38765
38766if test "$wxUSE_CHECKLST" = "yes"; then
38767 cat >>confdefs.h <<\_ACEOF
38768#define wxUSE_CHECKLISTBOX 1
38769_ACEOF
38770
38771 USES_CONTROLS=1
38772 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
38773fi
38774
da98e9be
VZ
38775if test "$wxUSE_DATEPICKCTRL" = "yes"; then
38776 cat >>confdefs.h <<\_ACEOF
38777#define wxUSE_DATEPICKCTRL 1
38778_ACEOF
38779
38780 USES_CONTROLS=1
38781fi
38782
a848cd7e
SC
38783if test "$wxUSE_DISPLAY" = "yes"; then
38784 cat >>confdefs.h <<\_ACEOF
38785#define wxUSE_DISPLAY 1
38786_ACEOF
38787
0b78747f 38788 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
38789fi
38790
38791if test "$wxUSE_GAUGE" = "yes"; then
38792 cat >>confdefs.h <<\_ACEOF
38793#define wxUSE_GAUGE 1
38794_ACEOF
38795
38796 USES_CONTROLS=1
38797fi
38798
38799if test "$wxUSE_GRID" = "yes"; then
38800 cat >>confdefs.h <<\_ACEOF
38801#define wxUSE_GRID 1
38802_ACEOF
38803
38804 USES_CONTROLS=1
38805 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
38806fi
38807
38808if test "$wxUSE_IMAGLIST" = "yes"; then
38809 cat >>confdefs.h <<\_ACEOF
38810#define wxUSE_IMAGLIST 1
38811_ACEOF
38812
38813fi
38814
38815if test "$wxUSE_LISTBOOK" = "yes"; then
38816 cat >>confdefs.h <<\_ACEOF
38817#define wxUSE_LISTBOOK 1
38818_ACEOF
38819
38820 USES_CONTROLS=1
38821fi
38822
38823if test "$wxUSE_LISTBOX" = "yes"; then
38824 cat >>confdefs.h <<\_ACEOF
38825#define wxUSE_LISTBOX 1
38826_ACEOF
38827
38828 USES_CONTROLS=1
0b78747f 38829 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
38830fi
38831
38832if test "$wxUSE_LISTCTRL" = "yes"; then
38833 if test "$wxUSE_IMAGLIST" = "yes"; then
38834 cat >>confdefs.h <<\_ACEOF
38835#define wxUSE_LISTCTRL 1
38836_ACEOF
38837
38838 USES_CONTROLS=1
38839 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
38840 else
38841 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
38842echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
38843 fi
38844fi
38845
38846if test "$wxUSE_NOTEBOOK" = "yes"; then
38847 cat >>confdefs.h <<\_ACEOF
38848#define wxUSE_NOTEBOOK 1
38849_ACEOF
38850
38851 USES_CONTROLS=1
38852 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
38853fi
38854
38855
38856if test "$wxUSE_RADIOBOX" = "yes"; then
38857 cat >>confdefs.h <<\_ACEOF
38858#define wxUSE_RADIOBOX 1
38859_ACEOF
38860
38861 USES_CONTROLS=1
38862fi
38863
38864if test "$wxUSE_RADIOBTN" = "yes"; then
38865 cat >>confdefs.h <<\_ACEOF
38866#define wxUSE_RADIOBTN 1
38867_ACEOF
38868
38869 USES_CONTROLS=1
38870fi
38871
38872if test "$wxUSE_SASH" = "yes"; then
38873 cat >>confdefs.h <<\_ACEOF
38874#define wxUSE_SASH 1
38875_ACEOF
38876
38877 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
38878fi
38879
38880if test "$wxUSE_SCROLLBAR" = "yes"; then
38881 cat >>confdefs.h <<\_ACEOF
38882#define wxUSE_SCROLLBAR 1
38883_ACEOF
38884
38885 USES_CONTROLS=1
38886 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
38887fi
38888
38889if test "$wxUSE_SLIDER" = "yes"; then
38890 cat >>confdefs.h <<\_ACEOF
38891#define wxUSE_SLIDER 1
38892_ACEOF
38893
38894 USES_CONTROLS=1
38895fi
38896
38897if test "$wxUSE_SPINBTN" = "yes"; then
38898 cat >>confdefs.h <<\_ACEOF
38899#define wxUSE_SPINBTN 1
38900_ACEOF
38901
38902 USES_CONTROLS=1
38903fi
38904
38905if test "$wxUSE_SPINCTRL" = "yes"; then
38906 cat >>confdefs.h <<\_ACEOF
38907#define wxUSE_SPINCTRL 1
38908_ACEOF
38909
38910 USES_CONTROLS=1
38911fi
38912
38913if test "$wxUSE_SPLITTER" = "yes"; then
38914 cat >>confdefs.h <<\_ACEOF
38915#define wxUSE_SPLITTER 1
38916_ACEOF
38917
38918 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
38919fi
38920
38921if test "$wxUSE_STATBMP" = "yes"; then
38922 cat >>confdefs.h <<\_ACEOF
38923#define wxUSE_STATBMP 1
38924_ACEOF
38925
38926 USES_CONTROLS=1
38927fi
38928
38929if test "$wxUSE_STATBOX" = "yes"; then
38930 cat >>confdefs.h <<\_ACEOF
38931#define wxUSE_STATBOX 1
38932_ACEOF
38933
38934 USES_CONTROLS=1
38935fi
38936
38937if test "$wxUSE_STATTEXT" = "yes"; then
38938 cat >>confdefs.h <<\_ACEOF
38939#define wxUSE_STATTEXT 1
38940_ACEOF
38941
38942 USES_CONTROLS=1
38943fi
38944
38945if test "$wxUSE_STATLINE" = "yes"; then
38946 cat >>confdefs.h <<\_ACEOF
38947#define wxUSE_STATLINE 1
38948_ACEOF
38949
38950 USES_CONTROLS=1
38951fi
38952
38953if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
38954 cat >>confdefs.h <<\_ACEOF
38955#define wxUSE_NATIVE_STATUSBAR 1
38956_ACEOF
38957
a848cd7e
SC
38958 cat >>confdefs.h <<\_ACEOF
38959#define wxUSE_STATUSBAR 1
38960_ACEOF
38961
38962 USES_CONTROLS=1
38963
38964 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
38965fi
38966
38967if test "$wxUSE_TABDIALOG" = "yes"; then
38968 cat >>confdefs.h <<\_ACEOF
38969#define wxUSE_TAB_DIALOG 1
38970_ACEOF
38971
a848cd7e
SC
38972fi
38973
38974if test "$wxUSE_TEXTCTRL" = "yes"; then
38975 cat >>confdefs.h <<\_ACEOF
38976#define wxUSE_TEXTCTRL 1
38977_ACEOF
38978
38979 USES_CONTROLS=1
38980 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
38981fi
38982
38983if test "$wxUSE_TOGGLEBTN" = "yes"; then
38984 if test "$wxUSE_COCOA" = 1 ; then
38985 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
38986echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
38987 wxUSE_TOGGLEBTN=no
bdcade0a
MB
38988 else
38989 if test "$wxUSE_PM" = 1; then
38990 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
38991echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
38992 wxUSE_TOGGLEBTN=no
38993 fi
a848cd7e
SC
38994 fi
38995 if test "$wxUSE_UNIVERSAL" = "yes"; then
38996 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
38997echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
38998 wxUSE_TOGGLEBTN=no
38999 fi
39000
39001 if test "$wxUSE_TOGGLEBTN" = "yes"; then
39002 cat >>confdefs.h <<\_ACEOF
39003#define wxUSE_TOGGLEBTN 1
39004_ACEOF
39005
39006 USES_CONTROLS=1
39007 fi
39008fi
39009
39010if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
39011 cat >>confdefs.h <<\_ACEOF
39012#define wxUSE_TOOLBAR_SIMPLE 1
39013_ACEOF
39014
39015 wxUSE_TOOLBAR="yes"
39016 USES_CONTROLS=1
39017fi
39018
39019if test "$wxUSE_TOOLBAR" = "yes"; then
39020 cat >>confdefs.h <<\_ACEOF
39021#define wxUSE_TOOLBAR 1
39022_ACEOF
39023
39024 USES_CONTROLS=1
39025
39026 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
39027 wxUSE_TOOLBAR_NATIVE="yes"
39028 fi
39029
39030 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
39031 cat >>confdefs.h <<\_ACEOF
39032#define wxUSE_TOOLBAR_NATIVE 1
39033_ACEOF
39034
39035 USES_CONTROLS=1
39036 fi
39037
39038 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
39039fi
39040
39041if test "$wxUSE_TOOLTIPS" = "yes"; then
39042 if test "$wxUSE_MOTIF" = 1; then
39043 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
39044echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
39045 else
39046 if test "$wxUSE_UNIVERSAL" = "yes"; then
39047 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
39048echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
39049 else
39050 cat >>confdefs.h <<\_ACEOF
39051#define wxUSE_TOOLTIPS 1
39052_ACEOF
39053
39054 fi
39055 fi
39056fi
39057
39058if test "$wxUSE_TREECTRL" = "yes"; then
39059 if test "$wxUSE_IMAGLIST" = "yes"; then
39060 cat >>confdefs.h <<\_ACEOF
39061#define wxUSE_TREECTRL 1
39062_ACEOF
39063
39064 USES_CONTROLS=1
39065 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
39066 else
39067 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
39068echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
39069 fi
39070fi
39071
39072if test "$wxUSE_POPUPWIN" = "yes"; then
39073 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39074 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
39075echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
39076 else
39077 if test "$wxUSE_PM" = 1; then
39078 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
39079echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
39080 else
39081 cat >>confdefs.h <<\_ACEOF
39082#define wxUSE_POPUPWIN 1
39083_ACEOF
39084
0b78747f 39085 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
39086
39087 USES_CONTROLS=1
39088 fi
39089 fi
39090fi
39091
0dcd06dd 39092if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
39093 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
39094 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
39095echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
39096 else
39097 cat >>confdefs.h <<\_ACEOF
39098#define wxUSE_DIALUP_MANAGER 1
39099_ACEOF
39100
39101 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
39102 fi
39103fi
39104
a848cd7e
SC
39105if test "$wxUSE_TIPWINDOW" = "yes"; then
39106 if test "$wxUSE_PM" = 1; then
39107 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
39108echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
39109 else
39110 cat >>confdefs.h <<\_ACEOF
39111#define wxUSE_TIPWINDOW 1
39112_ACEOF
39113
39114 fi
39115fi
39116
39117if test "$USES_CONTROLS" = 1; then
39118 cat >>confdefs.h <<\_ACEOF
39119#define wxUSE_CONTROLS 1
39120_ACEOF
39121
39122fi
39123
39124
39125if test "$wxUSE_ACCESSIBILITY" = "yes"; then
39126 cat >>confdefs.h <<\_ACEOF
39127#define wxUSE_ACCESSIBILITY 1
39128_ACEOF
39129
39130 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
39131fi
39132
39133if test "$wxUSE_DRAGIMAGE" = "yes"; then
39134 cat >>confdefs.h <<\_ACEOF
39135#define wxUSE_DRAGIMAGE 1
39136_ACEOF
39137
39138 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
39139fi
39140
39141if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
39142 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
39143 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
39144echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
39145 else
39146 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39147#define wxUSE_EXCEPTIONS 1
39148_ACEOF
39149
07bea8f0
VS
39150 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
39151 fi
a848cd7e
SC
39152fi
39153
39154USE_HTML=0
39155if test "$wxUSE_HTML" = "yes"; then
39156 cat >>confdefs.h <<\_ACEOF
39157#define wxUSE_HTML 1
39158_ACEOF
39159
39160 USE_HTML=1
39161 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
39162 if test "$wxUSE_MAC" = 1; then
39163 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
39164 fi
a848cd7e 39165fi
646b6ec1 39166if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 39167 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
39168 old_CPPFLAGS="$CPPFLAGS"
39169 CPPFLAGS="$CPPFLAGS -x objective-c++"
39170 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
39171echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
39172if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
39173 echo $ECHO_N "(cached) $ECHO_C" >&6
39174else
39175 cat >conftest.$ac_ext <<_ACEOF
39176/* confdefs.h. */
39177_ACEOF
39178cat confdefs.h >>conftest.$ac_ext
39179cat >>conftest.$ac_ext <<_ACEOF
39180/* end confdefs.h. */
39181#include <Carbon/Carbon.h>
39182
39183#include <WebKit/HIWebView.h>
39184_ACEOF
39185rm -f conftest.$ac_objext
39186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39187 (eval $ac_compile) 2>conftest.er1
39188 ac_status=$?
39189 grep -v '^ *+' conftest.er1 >conftest.err
39190 rm -f conftest.er1
39191 cat conftest.err >&5
39192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39193 (exit $ac_status); } &&
07158944 39194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
39195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39196 (eval $ac_try) 2>&5
39197 ac_status=$?
39198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39199 (exit $ac_status); }; } &&
39200 { ac_try='test -s conftest.$ac_objext'
39201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39202 (eval $ac_try) 2>&5
39203 ac_status=$?
39204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39205 (exit $ac_status); }; }; then
39206 ac_cv_header_WebKit_HIWebView_h=yes
39207else
39208 echo "$as_me: failed program was:" >&5
39209sed 's/^/| /' conftest.$ac_ext >&5
39210
39211ac_cv_header_WebKit_HIWebView_h=no
39212fi
39213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39214fi
39215echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
39216echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
39217if test $ac_cv_header_WebKit_HIWebView_h = yes; then
39218
39219 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
39220#define wxUSE_WEBKIT 1
39221_ACEOF
39222
07bea8f0
VS
39223 WEBKIT_LINK="-framework WebKit"
39224
39225else
39226
39227 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
39228echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
39229 wxUSE_WEBKIT=no
39230
646b6ec1
VS
39231fi
39232
07bea8f0
VS
39233
39234 CPPFLAGS="$old_CPPFLAGS"
39235 elif test "$wxUSE_COCOA" = 1; then
39236 cat >>confdefs.h <<\_ACEOF
39237#define wxUSE_WEBKIT 1
39238_ACEOF
39239
39240 else
39241 wxUSE_WEBKIT=no
39242 fi
39243fi
39244
9a8f0513
VS
39245USE_XRC=0
39246if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
39247 if test "$wxUSE_XML" != "yes"; then
39248 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
39249echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
39250 wxUSE_XRC=no
39251 else
39252 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
39253#define wxUSE_XRC 1
39254_ACEOF
39255
d2ebf0b7
VS
39256 USE_XRC=1
39257 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
39258 fi
9a8f0513 39259fi
07bea8f0 39260
a848cd7e
SC
39261if test "$wxUSE_MENUS" = "yes"; then
39262 cat >>confdefs.h <<\_ACEOF
39263#define wxUSE_MENUS 1
39264_ACEOF
39265
39266 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
39267fi
39268
39269if test "$wxUSE_METAFILE" = "yes"; then
39270 cat >>confdefs.h <<\_ACEOF
39271#define wxUSE_METAFILE 1
39272_ACEOF
39273
39274fi
39275
39276if test "$wxUSE_MIMETYPE" = "yes"; then
39277 cat >>confdefs.h <<\_ACEOF
39278#define wxUSE_MIMETYPE 1
39279_ACEOF
39280
39281fi
39282
39283if test "$wxUSE_MINIFRAME" = "yes"; then
39284 cat >>confdefs.h <<\_ACEOF
39285#define wxUSE_MINIFRAME 1
39286_ACEOF
39287
39288 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
39289fi
39290
39291if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
39292 cat >>confdefs.h <<\_ACEOF
39293#define wxUSE_SYSTEM_OPTIONS 1
39294_ACEOF
39295
39296 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 39297 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
39298 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
39299 fi
39300fi
39301
39302
39303if test "$wxUSE_VALIDATORS" = "yes"; then
39304 cat >>confdefs.h <<\_ACEOF
39305#define wxUSE_VALIDATORS 1
39306_ACEOF
39307
39308 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
39309fi
39310
39311if test "$wxUSE_PALETTE" = "yes" ; then
39312 cat >>confdefs.h <<\_ACEOF
39313#define wxUSE_PALETTE 1
39314_ACEOF
39315
39316fi
39317
39318if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
39319 LIBS=" -lunicows $LIBS"
39320fi
39321
39322
39323if test "$wxUSE_IMAGE" = "yes" ; then
39324 cat >>confdefs.h <<\_ACEOF
39325#define wxUSE_IMAGE 1
39326_ACEOF
39327
39328
39329 if test "$wxUSE_GIF" = "yes" ; then
39330 cat >>confdefs.h <<\_ACEOF
39331#define wxUSE_GIF 1
39332_ACEOF
39333
39334 fi
39335
39336 if test "$wxUSE_PCX" = "yes" ; then
39337 cat >>confdefs.h <<\_ACEOF
39338#define wxUSE_PCX 1
39339_ACEOF
39340
39341 fi
39342
39343 if test "$wxUSE_IFF" = "yes" ; then
39344 cat >>confdefs.h <<\_ACEOF
39345#define wxUSE_IFF 1
39346_ACEOF
39347
39348 fi
39349
39350 if test "$wxUSE_PNM" = "yes" ; then
39351 cat >>confdefs.h <<\_ACEOF
39352#define wxUSE_PNM 1
39353_ACEOF
39354
39355 fi
39356
39357 if test "$wxUSE_XPM" = "yes" ; then
39358 cat >>confdefs.h <<\_ACEOF
39359#define wxUSE_XPM 1
39360_ACEOF
39361
39362 fi
39363
39364 if test "$wxUSE_ICO_CUR" = "yes" ; then
39365 cat >>confdefs.h <<\_ACEOF
39366#define wxUSE_ICO_CUR 1
39367_ACEOF
39368
39369 fi
39370fi
39371
39372
39373if test "$wxUSE_CHOICEDLG" = "yes"; then
39374 cat >>confdefs.h <<\_ACEOF
39375#define wxUSE_CHOICEDLG 1
39376_ACEOF
39377
39378fi
39379
39380if test "$wxUSE_COLOURDLG" = "yes"; then
39381 cat >>confdefs.h <<\_ACEOF
39382#define wxUSE_COLOURDLG 1
39383_ACEOF
39384
39385fi
39386
39387if test "$wxUSE_FILEDLG" = "yes"; then
39388 cat >>confdefs.h <<\_ACEOF
39389#define wxUSE_FILEDLG 1
39390_ACEOF
39391
39392fi
39393
39394if test "$wxUSE_FINDREPLDLG" = "yes"; then
39395 cat >>confdefs.h <<\_ACEOF
39396#define wxUSE_FINDREPLDLG 1
39397_ACEOF
39398
39399fi
39400
39401if test "$wxUSE_FONTDLG" = "yes"; then
39402 cat >>confdefs.h <<\_ACEOF
39403#define wxUSE_FONTDLG 1
39404_ACEOF
39405
39406fi
39407
39408if test "$wxUSE_DIRDLG" = "yes"; then
39409 if test "$wxUSE_TREECTRL" != "yes"; then
39410 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
39411echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
39412 else
39413 cat >>confdefs.h <<\_ACEOF
39414#define wxUSE_DIRDLG 1
39415_ACEOF
39416
39417 fi
39418fi
39419
39420if test "$wxUSE_MSGDLG" = "yes"; then
39421 cat >>confdefs.h <<\_ACEOF
39422#define wxUSE_MSGDLG 1
39423_ACEOF
39424
39425fi
39426
39427if test "$wxUSE_NUMBERDLG" = "yes"; then
39428 cat >>confdefs.h <<\_ACEOF
39429#define wxUSE_NUMBERDLG 1
39430_ACEOF
39431
39432fi
39433
39434if test "$wxUSE_PROGRESSDLG" = "yes"; then
39435 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39436 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
39437echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
39438 else
39439 cat >>confdefs.h <<\_ACEOF
39440#define wxUSE_PROGRESSDLG 1
39441_ACEOF
39442
39443 fi
39444fi
39445
39446if test "$wxUSE_SPLASH" = "yes"; then
39447 cat >>confdefs.h <<\_ACEOF
39448#define wxUSE_SPLASH 1
39449_ACEOF
39450
2057db16 39451 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
39452fi
39453
39454if test "$wxUSE_STARTUP_TIPS" = "yes"; then
39455 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39456 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
39457echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
39458 else
39459 cat >>confdefs.h <<\_ACEOF
39460#define wxUSE_STARTUP_TIPS 1
39461_ACEOF
39462
39463 fi
39464fi
39465
39466if test "$wxUSE_TEXTDLG" = "yes"; then
39467 cat >>confdefs.h <<\_ACEOF
39468#define wxUSE_TEXTDLG 1
39469_ACEOF
39470
39471fi
39472
39473if test "$wxUSE_WIZARDDLG" = "yes"; then
39474 cat >>confdefs.h <<\_ACEOF
39475#define wxUSE_WIZARDDLG 1
39476_ACEOF
39477
39478 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
39479fi
39480
39481
ce756cb0
RN
39482if test "$wxUSE_MEDIACTRL" = "yes"; then
39483 if test "$wxUSE_MSW" = 1; then
39484 wxUSE_DIRECTSHOW="yes"
39485
39486for ac_header in dshow.h
39487do
39488as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39489echo "$as_me:$LINENO: checking for $ac_header" >&5
39490echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39491if eval "test \"\${$as_ac_Header+set}\" = set"; then
39492 echo $ECHO_N "(cached) $ECHO_C" >&6
39493else
39494 cat >conftest.$ac_ext <<_ACEOF
39495/* confdefs.h. */
39496_ACEOF
39497cat confdefs.h >>conftest.$ac_ext
39498cat >>conftest.$ac_ext <<_ACEOF
39499/* end confdefs.h. */
39500#include <windows.h>
39501
39502#include <$ac_header>
39503_ACEOF
39504rm -f conftest.$ac_objext
39505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39506 (eval $ac_compile) 2>conftest.er1
39507 ac_status=$?
39508 grep -v '^ *+' conftest.er1 >conftest.err
39509 rm -f conftest.er1
39510 cat conftest.err >&5
39511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39512 (exit $ac_status); } &&
07158944 39513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
39514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39515 (eval $ac_try) 2>&5
39516 ac_status=$?
39517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39518 (exit $ac_status); }; } &&
39519 { ac_try='test -s conftest.$ac_objext'
39520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39521 (eval $ac_try) 2>&5
39522 ac_status=$?
39523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39524 (exit $ac_status); }; }; then
39525 eval "$as_ac_Header=yes"
39526else
39527 echo "$as_me: failed program was:" >&5
39528sed 's/^/| /' conftest.$ac_ext >&5
39529
39530eval "$as_ac_Header=no"
39531fi
39532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39533fi
39534echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39535echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39536if test `eval echo '${'$as_ac_Header'}'` = yes; then
39537 cat >>confdefs.h <<_ACEOF
39538#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39539_ACEOF
39540
39541else
39542
39543 wxUSE_DIRECTSHOW="no"
39544 { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5
39545echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;}
39546
39547fi
39548
39549done
39550
39551
39552 if test "$wxUSE_DIRECTSHOW" = "yes"; then
39553 cat >>confdefs.h <<\_ACEOF
39554#define wxUSE_DIRECTSHOW 1
39555_ACEOF
39556
39557 LIBS="$LIBS -lstrmiids"
39558 fi
39559 fi
39560
39561 if test "$wxUSE_GTK" = 1; then
39562 wxUSE_GSTREAMER="yes"
39563
ce756cb0 39564
dae87f93 39565 succeeded=no
ce756cb0 39566
dae87f93
RN
39567 if test -z "$PKG_CONFIG"; then
39568 # Extract the first word of "pkg-config", so it can be a program name with args.
39569set dummy pkg-config; ac_word=$2
39570echo "$as_me:$LINENO: checking for $ac_word" >&5
39571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39572if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
39573 echo $ECHO_N "(cached) $ECHO_C" >&6
39574else
39575 case $PKG_CONFIG in
39576 [\\/]* | ?:[\\/]*)
39577 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
39578 ;;
39579 *)
39580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39581for as_dir in $PATH
39582do
39583 IFS=$as_save_IFS
39584 test -z "$as_dir" && as_dir=.
39585 for ac_exec_ext in '' $ac_executable_extensions; do
39586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39587 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39589 break 2
39590 fi
39591done
39592done
39593
39594 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
39595 ;;
39596esac
39597fi
39598PKG_CONFIG=$ac_cv_path_PKG_CONFIG
39599
39600if test -n "$PKG_CONFIG"; then
39601 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
39602echo "${ECHO_T}$PKG_CONFIG" >&6
39603else
39604 echo "$as_me:$LINENO: result: no" >&5
39605echo "${ECHO_T}no" >&6
39606fi
39607
39608 fi
39609
39610 if test "$PKG_CONFIG" = "no" ; then
39611 echo "*** The pkg-config script could not be found. Make sure it is"
39612 echo "*** in your path, or set the PKG_CONFIG environment variable"
39613 echo "*** to the full path to pkg-config."
39614 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
39615 else
39616 PKG_CONFIG_MIN_VERSION=0.9.0
39617 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
39618 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
39619echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
39620
39621 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
39622 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 39623echo "${ECHO_T}yes" >&6
dae87f93 39624 succeeded=yes
ce756cb0 39625
dae87f93
RN
39626 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
39627echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
39628 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
39629 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
39630echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
39631
39632 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
39633echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
39634 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
39635 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
39636echo "${ECHO_T}$GSTREAMER_LIBS" >&6
39637 else
39638 GSTREAMER_CFLAGS=""
39639 GSTREAMER_LIBS=""
39640 ## If we have a custom action on failure, don't print errors, but
39641 ## do set a variable so people can do so.
39642 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 39643
dae87f93
RN
39644 fi
39645
39646
39647
39648 else
39649 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
39650 echo "*** See http://www.freedesktop.org/software/pkgconfig"
39651 fi
39652 fi
39653
39654 if test $succeeded = yes; then
39655
39656 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
39657 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 39658
ce756cb0 39659 else
dae87f93
RN
39660
39661 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
39662echo "$as_me: WARNING: GStreamer installation not found" >&2;}
39663 wxUSE_GSTREAMER="no"
39664
39665 fi
39666
39667
39668
39669
39670
39671 if test "x$GST_INSPECT" == "x"; then
39672 # Extract the first word of "gst-inspect", so it can be a program name with args.
39673set dummy gst-inspect; ac_word=$2
39674echo "$as_me:$LINENO: checking for $ac_word" >&5
39675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39676if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
39677 echo $ECHO_N "(cached) $ECHO_C" >&6
39678else
39679 if test -n "$GST_INSPECT"; then
39680 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
39681else
39682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39683for as_dir in $PATH
39684do
39685 IFS=$as_save_IFS
39686 test -z "$as_dir" && as_dir=.
39687 for ac_exec_ext in '' $ac_executable_extensions; do
39688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39689 ac_cv_prog_GST_INSPECT="gst-inspect"
39690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39691 break 2
ce756cb0 39692 fi
dae87f93
RN
39693done
39694done
39695
39696fi
39697fi
39698GST_INSPECT=$ac_cv_prog_GST_INSPECT
39699if test -n "$GST_INSPECT"; then
39700 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
39701echo "${ECHO_T}$GST_INSPECT" >&6
39702else
39703 echo "$as_me:$LINENO: result: no" >&5
39704echo "${ECHO_T}no" >&6
39705fi
39706
39707 fi
39708
39709 if test "x$GST_INSPECT" != "x"; then
39710 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
39711echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
39712 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
39713 echo "$as_me:$LINENO: result: found." >&5
39714echo "${ECHO_T}found." >&6
ce756cb0 39715
ce756cb0 39716 else
dae87f93
RN
39717 echo "$as_me:$LINENO: result: not found." >&5
39718echo "${ECHO_T}not found." >&6
39719
39720 wxUSE_GSTREAMER="no"
39721 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
39722echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
39723
39724 fi
39725 fi
39726
39727
39728 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
39729echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
39730if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
39731 echo $ECHO_N "(cached) $ECHO_C" >&6
39732else
39733 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
39734/* confdefs.h. */
39735_ACEOF
39736cat confdefs.h >>conftest.$ac_ext
39737cat >>conftest.$ac_ext <<_ACEOF
39738/* end confdefs.h. */
dae87f93 39739#include <gst/gst.h>
ce756cb0 39740
dae87f93 39741#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
39742_ACEOF
39743rm -f conftest.$ac_objext
39744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39745 (eval $ac_compile) 2>conftest.er1
39746 ac_status=$?
39747 grep -v '^ *+' conftest.er1 >conftest.err
39748 rm -f conftest.er1
39749 cat conftest.err >&5
39750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39751 (exit $ac_status); } &&
07158944 39752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
39753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39754 (eval $ac_try) 2>&5
39755 ac_status=$?
39756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39757 (exit $ac_status); }; } &&
39758 { ac_try='test -s conftest.$ac_objext'
39759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39760 (eval $ac_try) 2>&5
39761 ac_status=$?
39762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39763 (exit $ac_status); }; }; then
dae87f93 39764 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
39765else
39766 echo "$as_me: failed program was:" >&5
39767sed 's/^/| /' conftest.$ac_ext >&5
39768
dae87f93 39769ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
39770fi
39771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
39772fi
39773echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
39774echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
39775if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
39776 :
39777else
ce756cb0 39778
dae87f93
RN
39779 wxUSE_GSTREAMER="no"
39780 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
39781echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 39782
dae87f93 39783fi
ce756cb0 39784
dae87f93
RN
39785
39786
39787 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
39788echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
39789
39790ac_find_libraries=
39791for ac_dir in $SEARCH_LIB /usr/lib;
39792 do
39793 for ac_extension in a so sl dylib; do
39794 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
39795 ac_find_libraries=$ac_dir
39796 break 2
39797 fi
39798 done
39799 done
39800
ce756cb0 39801
dae87f93
RN
39802 if test "$ac_find_libraries" = "" ; then
39803 echo "$as_me:$LINENO: result: no" >&5
39804echo "${ECHO_T}no" >&6
39805 wxUSE_GSTREAMER="no"
39806 else
39807 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 39808echo "${ECHO_T}yes" >&6
dae87f93 39809 fi
ce756cb0 39810
dae87f93
RN
39811 if test "$wxUSE_GSTREAMER" = "yes"; then
39812 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
39813#define wxUSE_GSTREAMER 1
39814_ACEOF
39815
dae87f93
RN
39816 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
39817echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
39818 fi
39819 fi
39820 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
39821 cat >>confdefs.h <<\_ACEOF
39822#define wxUSE_MEDIACTRL 1
39823_ACEOF
39824
39825fi
39826
39827
a848cd7e
SC
39828if test "$cross_compiling" = "yes"; then
39829 OSINFO="\"$host\""
39830else
39831 OSINFO=`uname -s -r -m`
39832 OSINFO="\"$OSINFO\""
39833fi
39834
39835cat >>confdefs.h <<_ACEOF
39836#define WXWIN_OS_DESCRIPTION $OSINFO
39837_ACEOF
39838
39839
39840
39841if test "x$prefix" != "xNONE"; then
39842 wxPREFIX=$prefix
39843else
39844 wxPREFIX=$ac_default_prefix
39845fi
39846
39847cat >>confdefs.h <<_ACEOF
39848#define wxINSTALL_PREFIX "$wxPREFIX"
39849_ACEOF
39850
39851
a848cd7e
SC
39852
39853
39854CORE_BASE_LIBS="net base"
39855CORE_GUI_LIBS="adv core"
39856
39857if test "$wxUSE_XML" = "yes" ; then
39858 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
39859fi
39860if test "$wxUSE_ODBC" != "no" ; then
39861 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
39862 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
39863fi
39864if test "$wxUSE_HTML" = "yes" ; then
39865 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
39866fi
61639efb
VZ
39867if test "$wxUSE_DEBUGREPORT" = "yes" ; then
39868 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
39869fi
9a8f0513
VS
39870if test "$wxUSE_XRC" = "yes" ; then
39871 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
39872fi
a848cd7e
SC
39873
39874if test "$wxUSE_GUI" != "yes"; then
39875 CORE_GUI_LIBS=""
39876fi
39877
39878
39879
39880
39881
39882
39883
39884
39885if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 39886 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
39887 if test "$USE_DARWIN" = 1; then
39888 LDFLAGS="$LDFLAGS -framework QuickTime"
39889 else
39890 LDFLAGS="$LDFLAGS -lQuickTimeLib"
39891 fi
07bea8f0 39892 fi
5dcf30a0 39893 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
39894 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
39895 else
39896 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 39897 fi
a848cd7e
SC
39898fi
39899if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 39900 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
39901 if test "$wxUSE_MEDIACTRL" = "yes"; then
39902 LDFLAGS="$LDFLAGS -framework QuickTime"
39903 fi
a848cd7e
SC
39904fi
39905
39906
39907LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
39908
39909have_cos=0
39910have_floor=0
39911
39912for ac_func in cos
39913do
39914as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39915echo "$as_me:$LINENO: checking for $ac_func" >&5
39916echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39917if eval "test \"\${$as_ac_var+set}\" = set"; then
39918 echo $ECHO_N "(cached) $ECHO_C" >&6
39919else
39920 cat >conftest.$ac_ext <<_ACEOF
39921/* confdefs.h. */
39922_ACEOF
39923cat confdefs.h >>conftest.$ac_ext
39924cat >>conftest.$ac_ext <<_ACEOF
39925/* end confdefs.h. */
ac1cb8d3
VS
39926/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39928#define $ac_func innocuous_$ac_func
39929
a848cd7e
SC
39930/* System header to define __stub macros and hopefully few prototypes,
39931 which can conflict with char $ac_func (); below.
39932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39933 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39934
a848cd7e
SC
39935#ifdef __STDC__
39936# include <limits.h>
39937#else
39938# include <assert.h>
39939#endif
ac1cb8d3
VS
39940
39941#undef $ac_func
39942
a848cd7e
SC
39943/* Override any gcc2 internal prototype to avoid an error. */
39944#ifdef __cplusplus
39945extern "C"
39946{
39947#endif
39948/* We use char because int might match the return type of a gcc2
39949 builtin and then its argument prototype would still apply. */
39950char $ac_func ();
39951/* The GNU C library defines this for functions which it implements
39952 to always fail with ENOSYS. Some functions are actually named
39953 something starting with __ and the normal name is an alias. */
39954#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39955choke me
39956#else
39957char (*f) () = $ac_func;
39958#endif
39959#ifdef __cplusplus
39960}
39961#endif
39962
39963int
39964main ()
39965{
39966return f != $ac_func;
39967 ;
39968 return 0;
39969}
39970_ACEOF
39971rm -f conftest.$ac_objext conftest$ac_exeext
39972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39973 (eval $ac_link) 2>conftest.er1
a848cd7e 39974 ac_status=$?
ac1cb8d3
VS
39975 grep -v '^ *+' conftest.er1 >conftest.err
39976 rm -f conftest.er1
39977 cat conftest.err >&5
a848cd7e
SC
39978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39979 (exit $ac_status); } &&
07158944 39980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39982 (eval $ac_try) 2>&5
39983 ac_status=$?
39984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39985 (exit $ac_status); }; } &&
39986 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39988 (eval $ac_try) 2>&5
39989 ac_status=$?
39990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39991 (exit $ac_status); }; }; then
39992 eval "$as_ac_var=yes"
39993else
39994 echo "$as_me: failed program was:" >&5
39995sed 's/^/| /' conftest.$ac_ext >&5
39996
39997eval "$as_ac_var=no"
39998fi
ac1cb8d3
VS
39999rm -f conftest.err conftest.$ac_objext \
40000 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40001fi
40002echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40003echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40004if test `eval echo '${'$as_ac_var'}'` = yes; then
40005 cat >>confdefs.h <<_ACEOF
40006#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40007_ACEOF
40008 have_cos=1
40009fi
40010done
40011
40012
40013for ac_func in floor
40014do
40015as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40016echo "$as_me:$LINENO: checking for $ac_func" >&5
40017echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40018if eval "test \"\${$as_ac_var+set}\" = set"; then
40019 echo $ECHO_N "(cached) $ECHO_C" >&6
40020else
40021 cat >conftest.$ac_ext <<_ACEOF
40022/* confdefs.h. */
40023_ACEOF
40024cat confdefs.h >>conftest.$ac_ext
40025cat >>conftest.$ac_ext <<_ACEOF
40026/* end confdefs.h. */
ac1cb8d3
VS
40027/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40029#define $ac_func innocuous_$ac_func
40030
a848cd7e
SC
40031/* System header to define __stub macros and hopefully few prototypes,
40032 which can conflict with char $ac_func (); below.
40033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40034 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40035
a848cd7e
SC
40036#ifdef __STDC__
40037# include <limits.h>
40038#else
40039# include <assert.h>
40040#endif
ac1cb8d3
VS
40041
40042#undef $ac_func
40043
a848cd7e
SC
40044/* Override any gcc2 internal prototype to avoid an error. */
40045#ifdef __cplusplus
40046extern "C"
40047{
40048#endif
40049/* We use char because int might match the return type of a gcc2
40050 builtin and then its argument prototype would still apply. */
40051char $ac_func ();
40052/* The GNU C library defines this for functions which it implements
40053 to always fail with ENOSYS. Some functions are actually named
40054 something starting with __ and the normal name is an alias. */
40055#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40056choke me
40057#else
40058char (*f) () = $ac_func;
40059#endif
40060#ifdef __cplusplus
40061}
40062#endif
40063
40064int
40065main ()
40066{
40067return f != $ac_func;
40068 ;
40069 return 0;
40070}
40071_ACEOF
40072rm -f conftest.$ac_objext conftest$ac_exeext
40073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40074 (eval $ac_link) 2>conftest.er1
a848cd7e 40075 ac_status=$?
ac1cb8d3
VS
40076 grep -v '^ *+' conftest.er1 >conftest.err
40077 rm -f conftest.er1
40078 cat conftest.err >&5
a848cd7e
SC
40079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40080 (exit $ac_status); } &&
07158944 40081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40083 (eval $ac_try) 2>&5
40084 ac_status=$?
40085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40086 (exit $ac_status); }; } &&
40087 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40089 (eval $ac_try) 2>&5
40090 ac_status=$?
40091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40092 (exit $ac_status); }; }; then
40093 eval "$as_ac_var=yes"
40094else
40095 echo "$as_me: failed program was:" >&5
40096sed 's/^/| /' conftest.$ac_ext >&5
40097
40098eval "$as_ac_var=no"
40099fi
ac1cb8d3
VS
40100rm -f conftest.err conftest.$ac_objext \
40101 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40102fi
40103echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40104echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40105if test `eval echo '${'$as_ac_var'}'` = yes; then
40106 cat >>confdefs.h <<_ACEOF
40107#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40108_ACEOF
40109 have_floor=1
40110fi
40111done
40112
40113echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
40114echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
40115if test "$have_cos" = 1 -a "$have_floor" = 1; then
40116 echo "$as_me:$LINENO: result: yes" >&5
40117echo "${ECHO_T}yes" >&6
40118else
40119 echo "$as_me:$LINENO: result: no" >&5
40120echo "${ECHO_T}no" >&6
40121 LIBS="$LIBS -lm"
40122 # use different functions to avoid configure caching
40123 have_sin=0
40124 have_ceil=0
40125
40126for ac_func in sin
40127do
40128as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40129echo "$as_me:$LINENO: checking for $ac_func" >&5
40130echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40131if eval "test \"\${$as_ac_var+set}\" = set"; then
40132 echo $ECHO_N "(cached) $ECHO_C" >&6
40133else
40134 cat >conftest.$ac_ext <<_ACEOF
40135/* confdefs.h. */
40136_ACEOF
40137cat confdefs.h >>conftest.$ac_ext
40138cat >>conftest.$ac_ext <<_ACEOF
40139/* end confdefs.h. */
ac1cb8d3
VS
40140/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40142#define $ac_func innocuous_$ac_func
40143
a848cd7e
SC
40144/* System header to define __stub macros and hopefully few prototypes,
40145 which can conflict with char $ac_func (); below.
40146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40147 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40148
a848cd7e
SC
40149#ifdef __STDC__
40150# include <limits.h>
40151#else
40152# include <assert.h>
40153#endif
ac1cb8d3
VS
40154
40155#undef $ac_func
40156
a848cd7e
SC
40157/* Override any gcc2 internal prototype to avoid an error. */
40158#ifdef __cplusplus
40159extern "C"
40160{
40161#endif
40162/* We use char because int might match the return type of a gcc2
40163 builtin and then its argument prototype would still apply. */
40164char $ac_func ();
40165/* The GNU C library defines this for functions which it implements
40166 to always fail with ENOSYS. Some functions are actually named
40167 something starting with __ and the normal name is an alias. */
40168#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40169choke me
40170#else
40171char (*f) () = $ac_func;
40172#endif
40173#ifdef __cplusplus
40174}
40175#endif
40176
40177int
40178main ()
40179{
40180return f != $ac_func;
40181 ;
40182 return 0;
40183}
40184_ACEOF
40185rm -f conftest.$ac_objext conftest$ac_exeext
40186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40187 (eval $ac_link) 2>conftest.er1
a848cd7e 40188 ac_status=$?
ac1cb8d3
VS
40189 grep -v '^ *+' conftest.er1 >conftest.err
40190 rm -f conftest.er1
40191 cat conftest.err >&5
a848cd7e
SC
40192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40193 (exit $ac_status); } &&
07158944 40194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40196 (eval $ac_try) 2>&5
40197 ac_status=$?
40198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40199 (exit $ac_status); }; } &&
40200 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40202 (eval $ac_try) 2>&5
40203 ac_status=$?
40204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40205 (exit $ac_status); }; }; then
40206 eval "$as_ac_var=yes"
40207else
40208 echo "$as_me: failed program was:" >&5
40209sed 's/^/| /' conftest.$ac_ext >&5
40210
40211eval "$as_ac_var=no"
40212fi
ac1cb8d3
VS
40213rm -f conftest.err conftest.$ac_objext \
40214 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40215fi
40216echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40217echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40218if test `eval echo '${'$as_ac_var'}'` = yes; then
40219 cat >>confdefs.h <<_ACEOF
40220#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40221_ACEOF
40222 have_sin=1
40223fi
40224done
40225
40226
40227for ac_func in ceil
40228do
40229as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40230echo "$as_me:$LINENO: checking for $ac_func" >&5
40231echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40232if eval "test \"\${$as_ac_var+set}\" = set"; then
40233 echo $ECHO_N "(cached) $ECHO_C" >&6
40234else
40235 cat >conftest.$ac_ext <<_ACEOF
40236/* confdefs.h. */
40237_ACEOF
40238cat confdefs.h >>conftest.$ac_ext
40239cat >>conftest.$ac_ext <<_ACEOF
40240/* end confdefs.h. */
ac1cb8d3
VS
40241/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40243#define $ac_func innocuous_$ac_func
40244
a848cd7e
SC
40245/* System header to define __stub macros and hopefully few prototypes,
40246 which can conflict with char $ac_func (); below.
40247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40248 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40249
a848cd7e
SC
40250#ifdef __STDC__
40251# include <limits.h>
40252#else
40253# include <assert.h>
40254#endif
ac1cb8d3
VS
40255
40256#undef $ac_func
40257
a848cd7e
SC
40258/* Override any gcc2 internal prototype to avoid an error. */
40259#ifdef __cplusplus
40260extern "C"
40261{
40262#endif
40263/* We use char because int might match the return type of a gcc2
40264 builtin and then its argument prototype would still apply. */
40265char $ac_func ();
40266/* The GNU C library defines this for functions which it implements
40267 to always fail with ENOSYS. Some functions are actually named
40268 something starting with __ and the normal name is an alias. */
40269#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40270choke me
40271#else
40272char (*f) () = $ac_func;
40273#endif
40274#ifdef __cplusplus
40275}
40276#endif
40277
40278int
40279main ()
40280{
40281return f != $ac_func;
40282 ;
40283 return 0;
40284}
40285_ACEOF
40286rm -f conftest.$ac_objext conftest$ac_exeext
40287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40288 (eval $ac_link) 2>conftest.er1
a848cd7e 40289 ac_status=$?
ac1cb8d3
VS
40290 grep -v '^ *+' conftest.er1 >conftest.err
40291 rm -f conftest.er1
40292 cat conftest.err >&5
a848cd7e
SC
40293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40294 (exit $ac_status); } &&
07158944 40295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40297 (eval $ac_try) 2>&5
40298 ac_status=$?
40299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40300 (exit $ac_status); }; } &&
40301 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40303 (eval $ac_try) 2>&5
40304 ac_status=$?
40305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40306 (exit $ac_status); }; }; then
40307 eval "$as_ac_var=yes"
40308else
40309 echo "$as_me: failed program was:" >&5
40310sed 's/^/| /' conftest.$ac_ext >&5
40311
40312eval "$as_ac_var=no"
40313fi
ac1cb8d3
VS
40314rm -f conftest.err conftest.$ac_objext \
40315 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40316fi
40317echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40318echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40319if test `eval echo '${'$as_ac_var'}'` = yes; then
40320 cat >>confdefs.h <<_ACEOF
40321#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40322_ACEOF
40323 have_ceil=1
40324fi
40325done
40326
40327 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
40328echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
40329 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
40330 echo "$as_me:$LINENO: result: yes" >&5
40331echo "${ECHO_T}yes" >&6
40332 else
40333 echo "$as_me:$LINENO: result: no" >&5
40334echo "${ECHO_T}no" >&6
40335 # not sure we should warn the user, crash, etc.
40336 fi
40337fi
40338
40339if test "$wxUSE_GUI" = "yes"; then
40340
40341
8bce5cda
MW
40342 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
40343 dynamic erase event exec font image minimal mobile \
40344 mobile/wxedit mobile/styles propsize render \
40345 richedit rotate shaped vscroll widgets"
a848cd7e
SC
40346
40347 if test "$wxUSE_MONOLITHIC" != "yes"; then
40348 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
40349 fi
0b78747f 40350 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
40351 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
40352 if test "$wxUSE_UNIVERSAL" != "yes"; then
40353 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
40354 fi
40355 fi
40356 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
40357 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 40358 fi
a848cd7e
SC
40359else
40360 SAMPLES_SUBDIRS="console"
40361fi
40362
40363
ceec2216 40364INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
40365-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
40366
40367if test "$GXX" = yes ; then
5294a27e
VZ
40368 CWARNINGS="-Wall"
40369 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
a848cd7e
SC
40370 fi
40371
40372EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
40373
0c3c69fc 40374CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 40375CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 40376CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 40377
95986553
DE
40378if test "x$MWCC" = "xyes"; then
40379
40380 CC="$CC -cwd source -I-"
40381 CXX="$CXX -cwd source -I-"
40382fi
40383
a848cd7e 40384
0c3c69fc 40385LIBS=`echo $LIBS`
a848cd7e
SC
40386EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
40387EXTRALIBS_XML="$EXPAT_LINK"
40388EXTRALIBS_HTML="$MSPACK_LINK"
40389EXTRALIBS_ODBC="$ODBC_LINK"
40390if test "$wxUSE_GUI" = "yes"; then
2e350179 40391 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
40392fi
40393if test "$wxUSE_OPENGL" = "yes"; then
40394 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
40395fi
40396
40397LDFLAGS="$LDFLAGS $PROFILE"
40398
40399if test "$wxUSE_GTK" = 1; then
40400 WXCONFIG_INCLUDE=
40401else
40402 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
40403fi
40404
40405WXCONFIG_EXTRALIBS="$LIBS"
40406
40407if test "$wxUSE_REGEX" = "builtin" ; then
40408 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
40409fi
40410if test "$wxUSE_EXPAT" = "builtin" ; then
40411 wxconfig_3rdparty="$wxconfig_3rdparty expat"
40412fi
40413if test "$wxUSE_ODBC" = "builtin" ; then
40414 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
40415fi
40416if test "$wxUSE_LIBTIFF" = "builtin" ; then
40417 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
40418fi
40419if test "$wxUSE_LIBJPEG" = "builtin" ; then
40420 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
40421fi
40422if test "$wxUSE_LIBPNG" = "builtin" ; then
40423 wxconfig_3rdparty="$wxconfig_3rdparty png"
40424fi
40425if test "$wxUSE_ZLIB" = "builtin" ; then
40426 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
40427fi
40428if test "$wxUSE_ODBC" = "builtin" ; then
40429 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
40430fi
40431
40432for i in $wxconfig_3rdparty ; do
ceec2216 40433 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
a848cd7e
SC
40434done
40435
40436
40437if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
40438 WXUNIV=1
40439else
40440 WXUNIV=0
40441fi
40442
40443
40444
40445
40446
40447
40448
40449
40450
40451if test $wxUSE_MONOLITHIC = "yes" ; then
40452 MONOLITHIC=1
40453else
40454 MONOLITHIC=0
40455fi
40456
40457if test $wxUSE_PLUGINS = "yes" ; then
40458 USE_PLUGINS=1
40459else
40460 USE_PLUGINS=0
40461fi
40462
40463if test $wxUSE_ODBC != "no" ; then
40464 USE_ODBC=1
40465else
40466 USE_ODBC=0
40467fi
40468
16358932
VZ
40469if test "$wxUSE_DEBUGREPORT" = "yes" ; then
40470 USE_QA=1
40471else
40472 USE_QA=0
40473fi
40474
a848cd7e
SC
40475if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
40476 OFFICIAL_BUILD=1
40477else
40478 OFFICIAL_BUILD=0
40479fi
40480
40481
40482
40483
40484
40485
40486
40487
40488
40489
40490
40491
40492
40493
40494
40495
40496
40497
40498
ceec2216 40499
d1c38808 40500
a848cd7e
SC
40501
40502
40503TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
40504
40505
40506
40507
40508
40509
40510
40511
4d4ff94c
VZ
40512case "$TOOLKIT" in
40513 GTK)
40514 TOOLKIT_USER="GTK+"
40515 if test "$WXGTK20" = 1; then
40516 TOOLKIT_USER="$TOOLKIT_USER 2"
40517 fi
9a8f0513 40518 ;;
4d4ff94c
VZ
40519
40520 *)
40521 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 40522 ;;
4d4ff94c 40523esac
a848cd7e 40524
9a8f0513 40525
1e9e8aba
DE
40526
40527
a848cd7e
SC
40528 if test "x$BAKEFILE_HOST" = "x"; then
40529 BAKEFILE_HOST="${host}"
40530 fi
40531
40532 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
40533
40534 if test -n "$ac_tool_prefix"; then
40535 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
40536set dummy ${ac_tool_prefix}ranlib; ac_word=$2
40537echo "$as_me:$LINENO: checking for $ac_word" >&5
40538echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40539if test "${ac_cv_prog_RANLIB+set}" = set; then
40540 echo $ECHO_N "(cached) $ECHO_C" >&6
40541else
40542 if test -n "$RANLIB"; then
40543 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
40544else
40545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40546for as_dir in $PATH
40547do
40548 IFS=$as_save_IFS
40549 test -z "$as_dir" && as_dir=.
40550 for ac_exec_ext in '' $ac_executable_extensions; do
40551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40552 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
40553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40554 break 2
40555 fi
40556done
40557done
40558
40559fi
40560fi
40561RANLIB=$ac_cv_prog_RANLIB
40562if test -n "$RANLIB"; then
40563 echo "$as_me:$LINENO: result: $RANLIB" >&5
40564echo "${ECHO_T}$RANLIB" >&6
40565else
40566 echo "$as_me:$LINENO: result: no" >&5
40567echo "${ECHO_T}no" >&6
40568fi
40569
40570fi
40571if test -z "$ac_cv_prog_RANLIB"; then
40572 ac_ct_RANLIB=$RANLIB
40573 # Extract the first word of "ranlib", so it can be a program name with args.
40574set dummy ranlib; ac_word=$2
40575echo "$as_me:$LINENO: checking for $ac_word" >&5
40576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40577if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
40578 echo $ECHO_N "(cached) $ECHO_C" >&6
40579else
40580 if test -n "$ac_ct_RANLIB"; then
40581 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
40582else
40583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40584for as_dir in $PATH
40585do
40586 IFS=$as_save_IFS
40587 test -z "$as_dir" && as_dir=.
40588 for ac_exec_ext in '' $ac_executable_extensions; do
40589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40590 ac_cv_prog_ac_ct_RANLIB="ranlib"
40591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40592 break 2
40593 fi
40594done
40595done
40596
40597 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
40598fi
40599fi
40600ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
40601if test -n "$ac_ct_RANLIB"; then
40602 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
40603echo "${ECHO_T}$ac_ct_RANLIB" >&6
40604else
40605 echo "$as_me:$LINENO: result: no" >&5
40606echo "${ECHO_T}no" >&6
40607fi
40608
40609 RANLIB=$ac_ct_RANLIB
40610else
40611 RANLIB="$ac_cv_prog_RANLIB"
40612fi
40613
40614 # Find a good install program. We prefer a C program (faster),
40615# so one script is as good as another. But avoid the broken or
40616# incompatible versions:
40617# SysV /etc/install, /usr/sbin/install
40618# SunOS /usr/etc/install
40619# IRIX /sbin/install
40620# AIX /bin/install
40621# AmigaOS /C/install, which installs bootblocks on floppy discs
40622# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
40623# AFS /usr/afsws/bin/install, which mishandles nonexistent args
40624# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 40625# OS/2's system install, which has a completely different semantic
a848cd7e
SC
40626# ./install, which can be erroneously created by make from ./install.sh.
40627echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
40628echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
40629if test -z "$INSTALL"; then
40630if test "${ac_cv_path_install+set}" = set; then
40631 echo $ECHO_N "(cached) $ECHO_C" >&6
40632else
40633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40634for as_dir in $PATH
40635do
40636 IFS=$as_save_IFS
40637 test -z "$as_dir" && as_dir=.
40638 # Account for people who put trailing slashes in PATH elements.
40639case $as_dir/ in
40640 ./ | .// | /cC/* | \
40641 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 40642 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
40643 /usr/ucb/* ) ;;
40644 *)
40645 # OSF1 and SCO ODT 3.0 have their own names for install.
40646 # Don't use installbsd from OSF since it installs stuff as root
40647 # by default.
40648 for ac_prog in ginstall scoinst install; do
40649 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
40650 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
40651 if test $ac_prog = install &&
40652 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
40653 # AIX install. It has an incompatible calling convention.
40654 :
40655 elif test $ac_prog = install &&
40656 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
40657 # program-specific install script used by HP pwplus--don't use.
40658 :
40659 else
40660 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
40661 break 3
40662 fi
40663 fi
a848cd7e
SC
40664 done
40665 done
40666 ;;
40667esac
40668done
40669
40670
40671fi
40672 if test "${ac_cv_path_install+set}" = set; then
40673 INSTALL=$ac_cv_path_install
40674 else
40675 # As a last resort, use the slow shell script. We don't cache a
40676 # path for INSTALL within a source directory, because that will
40677 # break other packages using the cache if that directory is
40678 # removed, or if the path is relative.
40679 INSTALL=$ac_install_sh
40680 fi
40681fi
40682echo "$as_me:$LINENO: result: $INSTALL" >&5
40683echo "${ECHO_T}$INSTALL" >&6
40684
40685# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
40686# It thinks the first close brace ends the variable substitution.
40687test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
40688
40689test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
40690
40691test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
40692
40693 echo "$as_me:$LINENO: checking whether ln -s works" >&5
40694echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
40695LN_S=$as_ln_s
40696if test "$LN_S" = "ln -s"; then
40697 echo "$as_me:$LINENO: result: yes" >&5
40698echo "${ECHO_T}yes" >&6
40699else
40700 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
40701echo "${ECHO_T}no, using $LN_S" >&6
40702fi
40703
40704
40705 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
40706echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 40707set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
40708if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
40709 echo $ECHO_N "(cached) $ECHO_C" >&6
40710else
40711 cat >conftest.make <<\_ACEOF
40712all:
40713 @echo 'ac_maketemp="$(MAKE)"'
40714_ACEOF
40715# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
40716eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
40717if test -n "$ac_maketemp"; then
40718 eval ac_cv_prog_make_${ac_make}_set=yes
40719else
40720 eval ac_cv_prog_make_${ac_make}_set=no
40721fi
40722rm -f conftest.make
40723fi
40724if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
40725 echo "$as_me:$LINENO: result: yes" >&5
40726echo "${ECHO_T}yes" >&6
40727 SET_MAKE=
40728else
40729 echo "$as_me:$LINENO: result: no" >&5
40730echo "${ECHO_T}no" >&6
40731 SET_MAKE="MAKE=${MAKE-make}"
40732fi
40733
40734
40735
40736 if test -n "$ac_tool_prefix"; then
40737 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
40738set dummy ${ac_tool_prefix}ar; ac_word=$2
40739echo "$as_me:$LINENO: checking for $ac_word" >&5
40740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40741if test "${ac_cv_prog_AR+set}" = set; then
40742 echo $ECHO_N "(cached) $ECHO_C" >&6
40743else
40744 if test -n "$AR"; then
40745 ac_cv_prog_AR="$AR" # Let the user override the test.
40746else
40747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40748for as_dir in $PATH
40749do
40750 IFS=$as_save_IFS
40751 test -z "$as_dir" && as_dir=.
40752 for ac_exec_ext in '' $ac_executable_extensions; do
40753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40754 ac_cv_prog_AR="${ac_tool_prefix}ar"
40755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40756 break 2
40757 fi
40758done
40759done
40760
40761fi
40762fi
40763AR=$ac_cv_prog_AR
40764if test -n "$AR"; then
40765 echo "$as_me:$LINENO: result: $AR" >&5
40766echo "${ECHO_T}$AR" >&6
40767else
40768 echo "$as_me:$LINENO: result: no" >&5
40769echo "${ECHO_T}no" >&6
40770fi
40771
40772fi
40773if test -z "$ac_cv_prog_AR"; then
40774 ac_ct_AR=$AR
40775 # Extract the first word of "ar", so it can be a program name with args.
40776set dummy ar; ac_word=$2
40777echo "$as_me:$LINENO: checking for $ac_word" >&5
40778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40779if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
40780 echo $ECHO_N "(cached) $ECHO_C" >&6
40781else
40782 if test -n "$ac_ct_AR"; then
40783 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
40784else
40785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40786for as_dir in $PATH
40787do
40788 IFS=$as_save_IFS
40789 test -z "$as_dir" && as_dir=.
40790 for ac_exec_ext in '' $ac_executable_extensions; do
40791 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40792 ac_cv_prog_ac_ct_AR="ar"
40793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40794 break 2
40795 fi
40796done
40797done
40798
40799 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
40800fi
40801fi
40802ac_ct_AR=$ac_cv_prog_ac_ct_AR
40803if test -n "$ac_ct_AR"; then
40804 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
40805echo "${ECHO_T}$ac_ct_AR" >&6
40806else
40807 echo "$as_me:$LINENO: result: no" >&5
40808echo "${ECHO_T}no" >&6
40809fi
40810
40811 AR=$ac_ct_AR
40812else
40813 AR="$ac_cv_prog_AR"
40814fi
40815
40816 if test -n "$ac_tool_prefix"; then
40817 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
40818set dummy ${ac_tool_prefix}strip; ac_word=$2
40819echo "$as_me:$LINENO: checking for $ac_word" >&5
40820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40821if test "${ac_cv_prog_STRIP+set}" = set; then
40822 echo $ECHO_N "(cached) $ECHO_C" >&6
40823else
40824 if test -n "$STRIP"; then
40825 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
40826else
40827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40828for as_dir in $PATH
40829do
40830 IFS=$as_save_IFS
40831 test -z "$as_dir" && as_dir=.
40832 for ac_exec_ext in '' $ac_executable_extensions; do
40833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40834 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
40835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40836 break 2
40837 fi
40838done
40839done
40840
40841fi
40842fi
40843STRIP=$ac_cv_prog_STRIP
40844if test -n "$STRIP"; then
40845 echo "$as_me:$LINENO: result: $STRIP" >&5
40846echo "${ECHO_T}$STRIP" >&6
40847else
40848 echo "$as_me:$LINENO: result: no" >&5
40849echo "${ECHO_T}no" >&6
40850fi
40851
40852fi
40853if test -z "$ac_cv_prog_STRIP"; then
40854 ac_ct_STRIP=$STRIP
40855 # Extract the first word of "strip", so it can be a program name with args.
40856set dummy strip; ac_word=$2
40857echo "$as_me:$LINENO: checking for $ac_word" >&5
40858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40859if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
40860 echo $ECHO_N "(cached) $ECHO_C" >&6
40861else
40862 if test -n "$ac_ct_STRIP"; then
40863 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
40864else
40865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40866for as_dir in $PATH
40867do
40868 IFS=$as_save_IFS
40869 test -z "$as_dir" && as_dir=.
40870 for ac_exec_ext in '' $ac_executable_extensions; do
40871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40872 ac_cv_prog_ac_ct_STRIP="strip"
40873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40874 break 2
40875 fi
40876done
40877done
40878
40879 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
40880fi
40881fi
40882ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
40883if test -n "$ac_ct_STRIP"; then
40884 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
40885echo "${ECHO_T}$ac_ct_STRIP" >&6
40886else
40887 echo "$as_me:$LINENO: result: no" >&5
40888echo "${ECHO_T}no" >&6
40889fi
40890
40891 STRIP=$ac_ct_STRIP
40892else
40893 STRIP="$ac_cv_prog_STRIP"
40894fi
40895
40896 if test -n "$ac_tool_prefix"; then
40897 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
40898set dummy ${ac_tool_prefix}nm; ac_word=$2
40899echo "$as_me:$LINENO: checking for $ac_word" >&5
40900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40901if test "${ac_cv_prog_NM+set}" = set; then
40902 echo $ECHO_N "(cached) $ECHO_C" >&6
40903else
40904 if test -n "$NM"; then
40905 ac_cv_prog_NM="$NM" # Let the user override the test.
40906else
40907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40908for as_dir in $PATH
40909do
40910 IFS=$as_save_IFS
40911 test -z "$as_dir" && as_dir=.
40912 for ac_exec_ext in '' $ac_executable_extensions; do
40913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40914 ac_cv_prog_NM="${ac_tool_prefix}nm"
40915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40916 break 2
40917 fi
40918done
40919done
40920
40921fi
40922fi
40923NM=$ac_cv_prog_NM
40924if test -n "$NM"; then
40925 echo "$as_me:$LINENO: result: $NM" >&5
40926echo "${ECHO_T}$NM" >&6
40927else
40928 echo "$as_me:$LINENO: result: no" >&5
40929echo "${ECHO_T}no" >&6
40930fi
40931
40932fi
40933if test -z "$ac_cv_prog_NM"; then
40934 ac_ct_NM=$NM
40935 # Extract the first word of "nm", so it can be a program name with args.
40936set dummy nm; ac_word=$2
40937echo "$as_me:$LINENO: checking for $ac_word" >&5
40938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40939if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
40940 echo $ECHO_N "(cached) $ECHO_C" >&6
40941else
40942 if test -n "$ac_ct_NM"; then
40943 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
40944else
40945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40946for as_dir in $PATH
40947do
40948 IFS=$as_save_IFS
40949 test -z "$as_dir" && as_dir=.
40950 for ac_exec_ext in '' $ac_executable_extensions; do
40951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40952 ac_cv_prog_ac_ct_NM="nm"
40953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40954 break 2
40955 fi
40956done
40957done
40958
40959 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
40960fi
40961fi
40962ac_ct_NM=$ac_cv_prog_ac_ct_NM
40963if test -n "$ac_ct_NM"; then
40964 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
40965echo "${ECHO_T}$ac_ct_NM" >&6
40966else
40967 echo "$as_me:$LINENO: result: no" >&5
40968echo "${ECHO_T}no" >&6
40969fi
40970
40971 NM=$ac_ct_NM
40972else
40973 NM="$ac_cv_prog_NM"
40974fi
40975
40976
40977 case ${BAKEFILE_HOST} in
40978 *-hp-hpux* )
1e9e8aba 40979 INSTALL_DIR="mkdir -p"
a848cd7e
SC
40980 ;;
40981 *) INSTALL_DIR="$INSTALL -d"
40982 ;;
40983 esac
40984
40985
40986 LDFLAGS_GUI=
40987 case ${BAKEFILE_HOST} in
40988 *-*-cygwin* | *-*-mingw32* )
40989 LDFLAGS_GUI="-mwindows"
40990 esac
40991
40992
40993 fi
40994
40995 echo "$as_me:$LINENO: checking if make is GNU make" >&5
40996echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
40997if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
40998 echo $ECHO_N "(cached) $ECHO_C" >&6
40999else
41000
41001 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
41002 egrep -s GNU > /dev/null); then
41003 bakefile_cv_prog_makeisgnu="yes"
41004 else
41005 bakefile_cv_prog_makeisgnu="no"
41006 fi
41007
41008fi
41009echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
41010echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
41011
41012 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
41013 IF_GNU_MAKE=""
41014 else
41015 IF_GNU_MAKE="#"
41016 fi
41017
41018
41019
41020 PLATFORM_UNIX=0
41021 PLATFORM_WIN32=0
41022 PLATFORM_MSDOS=0
41023 PLATFORM_MAC=0
1e9e8aba 41024 PLATFORM_MACOS=0
a848cd7e
SC
41025 PLATFORM_MACOSX=0
41026 PLATFORM_OS2=0
1e9e8aba 41027 PLATFORM_BEOS=0
a848cd7e
SC
41028
41029 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
41030 case "${BAKEFILE_HOST}" in
41031 *-*-cygwin* | *-*-mingw32* )
41032 PLATFORM_WIN32=1
41033 ;;
41034 *-pc-msdosdjgpp )
41035 PLATFORM_MSDOS=1
41036 ;;
41037 *-pc-os2_emx | *-pc-os2-emx )
41038 PLATFORM_OS2=1
41039 ;;
41040 powerpc-*-darwin* )
41041 PLATFORM_MAC=1
41042 PLATFORM_MACOSX=1
41043 ;;
1e9e8aba
DE
41044 *-*-beos* )
41045 PLATFORM_BEOS=1
41046 ;;
41047 powerpc-apple-macos* )
41048 PLATFORM_MAC=1
41049 PLATFORM_MACOS=1
41050 ;;
a848cd7e
SC
41051 * )
41052 PLATFORM_UNIX=1
41053 ;;
41054 esac
41055 else
41056 case "$BAKEFILE_FORCE_PLATFORM" in
41057 win32 )
41058 PLATFORM_WIN32=1
41059 ;;
41060 msdos )
41061 PLATFORM_MSDOS=1
41062 ;;
41063 os2 )
41064 PLATFORM_OS2=1
41065 ;;
41066 darwin )
41067 PLATFORM_MAC=1
41068 PLATFORM_MACOSX=1
41069 ;;
41070 unix )
41071 PLATFORM_UNIX=1
41072 ;;
1e9e8aba
DE
41073 beos )
41074 PLATFORM_BEOS=1
41075 ;;
a848cd7e
SC
41076 * )
41077 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
41078echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
41079 { (exit 1); exit 1; }; }
41080 ;;
41081 esac
41082 fi
41083
41084
41085
41086
41087
41088
41089
41090
41091
1e9e8aba
DE
41092
41093
a848cd7e
SC
41094 # Check whether --enable-omf or --disable-omf was given.
41095if test "${enable_omf+set}" = set; then
41096 enableval="$enable_omf"
41097 bk_os2_use_omf="$enableval"
41098fi;
41099
41100 case "${BAKEFILE_HOST}" in
41101 *-*-darwin* )
41102 CFLAGS="$CFLAGS -fno-common"
41103 CXXFLAGS="$CXXFLAGS -fno-common"
41104 ;;
41105
41106 *-pc-os2_emx | *-pc-os2-emx )
41107 if test "x$bk_os2_use_omf" = "xyes" ; then
41108 AR=emxomfar
41109 RANLIB=:
41110 LDFLAGS="-Zomf $LDFLAGS"
41111 CFLAGS="-Zomf $CFLAGS"
41112 CXXFLAGS="-Zomf $CXXFLAGS"
41113 OS2_LIBEXT="lib"
41114 else
41115 OS2_LIBEXT="a"
41116 fi
41117 ;;
1e9e8aba
DE
41118
41119 i*86-*-beos* )
41120 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
41121 ;;
a848cd7e
SC
41122 esac
41123
41124
41125 SO_SUFFIX="so"
41126 SO_SUFFIX_MODULE="so"
41127 EXEEXT=""
41128 LIBPREFIX="lib"
41129 LIBEXT=".a"
41130 DLLPREFIX="lib"
41131 DLLPREFIX_MODULE=""
41132 DLLIMP_SUFFIX=""
41133
41134 case "${BAKEFILE_HOST}" in
41135 *-hp-hpux* )
41136 SO_SUFFIX="sl"
41137 SO_SUFFIX_MODULE="sl"
41138 ;;
41139 *-*-aix* )
41140 SO_SUFFIX="a"
41141 SO_SUFFIX_MODULE="a"
41142 ;;
41143 *-*-cygwin* | *-*-mingw32* )
41144 SO_SUFFIX="dll"
41145 SO_SUFFIX_MODULE="dll"
41146 DLLIMP_SUFFIX="dll.a"
41147 EXEEXT=".exe"
41148 DLLPREFIX=""
41149 ;;
41150 *-pc-msdosdjgpp )
41151 EXEEXT=".exe"
41152 DLLPREFIX=""
41153 ;;
41154 *-pc-os2_emx | *-pc-os2-emx )
41155 SO_SUFFIX="dll"
41156 SO_SUFFIX_MODULE="dll"
41157 DLLIMP_SUFFIX=$OS2_LIBEXT
41158 EXEEXT=".exe"
41159 DLLPREFIX=""
41160 LIBPREFIX=""
41161 LIBEXT=".$OS2_LIBEXT"
41162 ;;
41163 powerpc-*-darwin* )
41164 SO_SUFFIX="dylib"
41165 SO_SUFFIX_MODULE="bundle"
41166 ;;
41167 esac
41168
41169 if test "x$DLLIMP_SUFFIX" = "x" ; then
41170 DLLIMP_SUFFIX="$SO_SUFFIX"
41171 fi
41172
41173
41174
41175
41176
41177
41178
41179
41180
41181
41182
1e9e8aba
DE
41183 PIC_FLAG=""
41184 if test "x$GCC" = "xyes"; then
a848cd7e
SC
41185 PIC_FLAG="-fPIC"
41186 fi
41187
1e9e8aba
DE
41188 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
41189 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
41190
a848cd7e
SC
41191 case "${BAKEFILE_HOST}" in
41192 *-hp-hpux* )
1e9e8aba 41193 if test "x$GCC" != "xyes"; then
a848cd7e
SC
41194 LDFLAGS="$LDFLAGS -L/usr/lib"
41195
41196 SHARED_LD_CC="${CC} -b -o"
41197 SHARED_LD_CXX="${CXX} -b -o"
41198 PIC_FLAG="+Z"
41199 fi
41200 ;;
41201
41202 *-*-linux* )
41203 if test "x$GCC" != "xyes"; then
41204 echo "$as_me:$LINENO: checking for Intel compiler" >&5
41205echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
41206if test "${bakefile_cv_prog_icc+set}" = set; then
41207 echo $ECHO_N "(cached) $ECHO_C" >&6
41208else
41209
41210 cat >conftest.$ac_ext <<_ACEOF
41211/* confdefs.h. */
41212_ACEOF
41213cat confdefs.h >>conftest.$ac_ext
41214cat >>conftest.$ac_ext <<_ACEOF
41215/* end confdefs.h. */
41216
41217int
41218main ()
41219{
41220
41221 #ifndef __INTEL_COMPILER
41222 #error Not icc
41223 #endif
41224
41225 ;
41226 return 0;
41227}
41228_ACEOF
41229rm -f conftest.$ac_objext
41230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41231 (eval $ac_compile) 2>conftest.er1
a848cd7e 41232 ac_status=$?
ac1cb8d3
VS
41233 grep -v '^ *+' conftest.er1 >conftest.err
41234 rm -f conftest.er1
41235 cat conftest.err >&5
a848cd7e
SC
41236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41237 (exit $ac_status); } &&
07158944 41238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41240 (eval $ac_try) 2>&5
41241 ac_status=$?
41242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41243 (exit $ac_status); }; } &&
41244 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41246 (eval $ac_try) 2>&5
41247 ac_status=$?
41248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41249 (exit $ac_status); }; }; then
41250 bakefile_cv_prog_icc=yes
41251else
41252 echo "$as_me: failed program was:" >&5
41253sed 's/^/| /' conftest.$ac_ext >&5
41254
41255bakefile_cv_prog_icc=no
41256
41257fi
ac1cb8d3 41258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41259
41260fi
41261echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
41262echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
41263 if test "$bakefile_cv_prog_icc" = "yes"; then
41264 PIC_FLAG="-KPIC"
41265 fi
41266 fi
41267 ;;
41268
41269 *-*-solaris2* )
41270 if test "x$GCC" != xyes ; then
41271 SHARED_LD_CC="${CC} -G -o"
41272 SHARED_LD_CXX="${CXX} -G -o"
41273 PIC_FLAG="-KPIC"
41274 fi
41275 ;;
41276
41277 *-*-darwin* )
41278
41279 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
41280echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
41281if test "${wx_cv_gcc31+set}" = set; then
41282 echo $ECHO_N "(cached) $ECHO_C" >&6
41283else
41284
41285 cat >conftest.$ac_ext <<_ACEOF
41286/* confdefs.h. */
41287_ACEOF
41288cat confdefs.h >>conftest.$ac_ext
41289cat >>conftest.$ac_ext <<_ACEOF
41290/* end confdefs.h. */
41291
41292int
41293main ()
41294{
41295
41296 #if (__GNUC__ < 3) || \
41297 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
41298 #error old gcc
41299 #endif
41300
41301 ;
41302 return 0;
41303}
41304_ACEOF
41305rm -f conftest.$ac_objext
41306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41307 (eval $ac_compile) 2>conftest.er1
a848cd7e 41308 ac_status=$?
ac1cb8d3
VS
41309 grep -v '^ *+' conftest.er1 >conftest.err
41310 rm -f conftest.er1
41311 cat conftest.err >&5
a848cd7e
SC
41312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41313 (exit $ac_status); } &&
07158944 41314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41316 (eval $ac_try) 2>&5
41317 ac_status=$?
41318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41319 (exit $ac_status); }; } &&
41320 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41322 (eval $ac_try) 2>&5
41323 ac_status=$?
41324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41325 (exit $ac_status); }; }; then
41326
41327 wx_cv_gcc31=yes
41328
41329else
41330 echo "$as_me: failed program was:" >&5
41331sed 's/^/| /' conftest.$ac_ext >&5
41332
41333
41334 wx_cv_gcc31=no
41335
41336
41337fi
ac1cb8d3 41338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41339
41340fi
41341echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
41342echo "${ECHO_T}$wx_cv_gcc31" >&6
41343 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
41344
41345D='$'
41346cat <<EOF >shared-ld-sh
a848cd7e
SC
41347#!/bin/sh
41348#-----------------------------------------------------------------------------
41349#-- Name: distrib/mac/shared-ld-sh
41350#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
41351#-- Author: Gilles Depeyrot
41352#-- Copyright: (c) 2002 Gilles Depeyrot
41353#-- Licence: any use permitted
41354#-----------------------------------------------------------------------------
41355
41356verbose=0
41357args=""
41358objects=""
41359linking_flag="-dynamiclib"
41360
473276a9
VS
41361while test ${D}# -gt 0; do
41362 case ${D}1 in
a848cd7e
SC
41363
41364 -v)
41365 verbose=1
41366 ;;
41367
41368 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
41369 # collect these options and values
473276a9 41370 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
41371 shift
41372 ;;
41373
41374 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
41375 # collect these options
473276a9 41376 args="${D}{args} ${D}1"
a848cd7e
SC
41377 ;;
41378
41379 -dynamiclib|-bundle)
473276a9 41380 linking_flag="${D}1"
a848cd7e
SC
41381 ;;
41382
41383 -*)
473276a9 41384 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
41385 exit 1
41386 ;;
41387
41388 *.o | *.a | *.dylib)
41389 # collect object files
473276a9 41390 objects="${D}{objects} ${D}1"
a848cd7e
SC
41391 ;;
41392
41393 *)
473276a9 41394 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
41395 exit 1
41396 ;;
41397
41398 esac
41399 shift
41400done
41401
41402#
41403# Link one module containing all the others
41404#
473276a9
VS
41405if test ${D}{verbose} = 1; then
41406 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 41407fi
473276a9
VS
41408c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
41409status=${D}?
41410if test ${D}{status} != 0; then
41411 exit ${D}{status}
a848cd7e
SC
41412fi
41413
41414#
41415# Link the shared library from the single module created
41416#
473276a9
VS
41417if test ${D}{verbose} = 1; then
41418 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 41419fi
473276a9
VS
41420c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
41421status=${D}?
41422if test ${D}{status} != 0; then
41423 exit ${D}{status}
a848cd7e
SC
41424fi
41425
41426#
41427# Remove intermediate module
41428#
473276a9 41429rm -f master.${D}${D}.o
a848cd7e
SC
41430
41431exit 0
41432EOF
473276a9 41433
a848cd7e
SC
41434 chmod +x shared-ld-sh
41435
41436 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
41437 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
41438 SHARED_LD_CXX="$SHARED_LD_CC"
41439 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
41440 else
41441 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
41442 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
41443 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
41444 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
41445 fi
41446
41447 PIC_FLAG="-dynamic -fPIC"
41448 ;;
41449
41450 *-*-aix* )
41451 if test "x$GCC" != "xyes"; then
41452 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
41453set dummy makeC++SharedLib; ac_word=$2
41454echo "$as_me:$LINENO: checking for $ac_word" >&5
41455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41456if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
41457 echo $ECHO_N "(cached) $ECHO_C" >&6
41458else
41459 if test -n "$AIX_CXX_LD"; then
41460 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
41461else
41462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41463for as_dir in $PATH
41464do
41465 IFS=$as_save_IFS
41466 test -z "$as_dir" && as_dir=.
41467 for ac_exec_ext in '' $ac_executable_extensions; do
41468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41469 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
41470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41471 break 2
41472 fi
41473done
41474done
41475
41476 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
41477fi
41478fi
41479AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
41480if test -n "$AIX_CXX_LD"; then
41481 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
41482echo "${ECHO_T}$AIX_CXX_LD" >&6
41483else
41484 echo "$as_me:$LINENO: result: no" >&5
41485echo "${ECHO_T}no" >&6
41486fi
41487
41488 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
41489 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
41490 fi
41491 ;;
41492
41493 *-*-beos* )
1e9e8aba
DE
41494 SHARED_LD_CC="${LD} -nostart -o"
41495 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
41496 ;;
41497
41498 *-*-irix* )
41499 if test "x$GCC" != "xyes"; then
41500 PIC_FLAG="-KPIC"
41501 fi
41502 ;;
41503
41504 *-*-cygwin* | *-*-mingw32* )
41505 PIC_FLAG=""
1e9e8aba
DE
41506 SHARED_LD_CC="\$(CC) -shared -o"
41507 SHARED_LD_CXX="\$(CXX) -shared -o"
a848cd7e
SC
41508 ;;
41509
41510 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
41511 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
41512 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 41513 PIC_FLAG=""
473276a9
VS
41514
41515D='$'
41516cat <<EOF >dllar.sh
41517#!/bin/sh
41518#
41519# dllar - a tool to build both a .dll and an .a file
41520# from a set of object (.o) files for EMX/OS2.
41521#
41522# Written by Andrew Zabolotny, bit@freya.etu.ru
41523# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
41524#
41525# This script will accept a set of files on the command line.
41526# All the public symbols from the .o files will be exported into
41527# a .DEF file, then linker will be run (through gcc) against them to
41528# build a shared library consisting of all given .o files. All libraries
41529# (.a) will be first decompressed into component .o files then act as
41530# described above. You can optionally give a description (-d "description")
41531# which will be put into .DLL. To see the list of accepted options (as well
41532# as command-line format) simply run this program without options. The .DLL
41533# is built to be imported by name (there is no guarantee that new versions
41534# of the library you build will have same ordinals for same symbols).
41535#
41536# dllar is free software; you can redistribute it and/or modify
41537# it under the terms of the GNU General Public License as published by
41538# the Free Software Foundation; either version 2, or (at your option)
41539# any later version.
41540#
41541# dllar is distributed in the hope that it will be useful,
41542# but WITHOUT ANY WARRANTY; without even the implied warranty of
41543# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41544# GNU General Public License for more details.
41545#
41546# You should have received a copy of the GNU General Public License
41547# along with dllar; see the file COPYING. If not, write to the Free
41548# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
41549# 02111-1307, USA.
41550
41551# To successfuly run this program you will need:
41552# - Current drive should have LFN support (HPFS, ext2, network, etc)
41553# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
41554# - gcc
41555# (used to build the .dll)
41556# - emxexp
41557# (used to create .def file from .o files)
41558# - emximp
41559# (used to create .a file from .def file)
41560# - GNU text utilites (cat, sort, uniq)
41561# used to process emxexp output
41562# - GNU file utilities (mv, rm)
41563# - GNU sed
41564# - lxlite (optional, see flag below)
41565# (used for general .dll cleanup)
41566#
41567
41568flag_USE_LXLITE=1;
41569
41570#
41571# helper functions
41572# basnam, variant of basename, which does _not_ remove the path, _iff_
41573# second argument (suffix to remove) is given
41574basnam(){
41575 case ${D}# in
41576 1)
1e9e8aba 41577 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
41578 ;;
41579 2)
41580 echo ${D}1 | sed 's/'${D}2'${D}//'
41581 ;;
41582 *)
41583 echo "error in basnam ${D}*"
41584 exit 8
41585 ;;
41586 esac
41587}
41588
41589# Cleanup temporary files and output
41590CleanUp() {
41591 cd ${D}curDir
41592 for i in ${D}inputFiles ; do
41593 case ${D}i in
41594 *!)
41595 rm -rf \`basnam ${D}i !\`
41596 ;;
41597 *)
41598 ;;
41599 esac
41600 done
41601
41602 # Kill result in case of failure as there is just to many stupid make/nmake
41603 # things out there which doesn't do this.
1e9e8aba 41604 if [ ${D}# -eq 0 ]; then
473276a9
VS
41605 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
41606 fi
41607}
41608
41609# Print usage and exit script with rc=1.
41610PrintHelp() {
b1d22ded
DE
41611 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
41612 echo ' [-name-mangler-script script.sh]'
41613 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
41614 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
41615 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 41616 echo ' [*.o] [*.a]'
473276a9
VS
41617 echo '*> "output_file" should have no extension.'
41618 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
41619 echo ' The import library name is derived from this and is set to "name".a,'
41620 echo ' unless overridden by -import'
41621 echo '*> "importlib_name" should have no extension.'
41622 echo ' If it has the .o, or .a extension, it is automatically removed.'
41623 echo ' This name is used as the import library name and may be longer and'
41624 echo ' more descriptive than the DLL name which has to follow the old '
41625 echo ' 8.3 convention of FAT.'
b1d22ded
DE
41626 echo '*> "script.sh may be given to override the output_file name by a'
41627 echo ' different name. It is mainly useful if the regular make process'
41628 echo ' of some package does not take into account OS/2 restriction of'
41629 echo ' DLL name lengths. It takes the importlib name as input and is'
41630 echo ' supposed to procude a shorter name as output. The script should'
41631 echo ' expect to get importlib_name without extension and should produce'
41632 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
41633 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
41634 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
41635 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
41636 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
41637 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
41638 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
41639 echo ' If the last character of a symbol is "*", all symbols beginning'
41640 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 41641 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 41642 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 41643 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 41644 echo ' C runtime DLLs.'
b1d22ded 41645 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
41646 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
41647 echo ' unchanged to GCC at the end of command line.'
41648 echo '*> If you create a DLL from a library and you do not specify -o,'
41649 echo ' the basename for DLL and import library will be set to library name,'
41650 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
41651 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
41652 echo ' library will be renamed into gcc_s.a.'
41653 echo '--------'
41654 echo 'Example:'
41655 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
41656 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
41657 CleanUp
41658 exit 1
41659}
41660
41661# Execute a command.
41662# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
41663# @Uses Whatever CleanUp() uses.
41664doCommand() {
41665 echo "${D}*"
41666 eval ${D}*
41667 rcCmd=${D}?
41668
1e9e8aba 41669 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
41670 echo "command failed, exit code="${D}rcCmd
41671 CleanUp
41672 exit ${D}rcCmd
41673 fi
41674}
41675
41676# main routine
41677# setup globals
41678cmdLine=${D}*
41679outFile=""
41680outimpFile=""
41681inputFiles=""
b1d22ded 41682renameScript=""
473276a9
VS
41683description=""
41684CC=gcc.exe
41685CFLAGS="-s -Zcrtdll"
41686EXTRA_CFLAGS=""
41687EXPORT_BY_ORDINALS=0
41688exclude_symbols=""
41689library_flags=""
41690curDir=\`pwd\`
41691curDirS=curDir
41692case ${D}curDirS in
41693*/)
41694 ;;
41695*)
41696 curDirS=${D}{curDirS}"/"
41697 ;;
41698esac
41699# Parse commandline
41700libsToLink=0
b1d22ded 41701omfLinking=0
1e9e8aba 41702while [ ${D}1 ]; do
473276a9
VS
41703 case ${D}1 in
41704 -ord*)
41705 EXPORT_BY_ORDINALS=1;
41706 ;;
41707 -o*)
41708 shift
41709 outFile=${D}1
41710 ;;
41711 -i*)
41712 shift
41713 outimpFile=${D}1
41714 ;;
b1d22ded
DE
41715 -name-mangler-script)
41716 shift
41717 renameScript=${D}1
41718 ;;
473276a9
VS
41719 -d*)
41720 shift
41721 description=${D}1
41722 ;;
41723 -f*)
41724 shift
41725 CFLAGS=${D}1
41726 ;;
41727 -c*)
41728 shift
41729 CC=${D}1
41730 ;;
41731 -h*)
41732 PrintHelp
41733 ;;
41734 -ex*)
41735 shift
41736 exclude_symbols=${D}{exclude_symbols}${D}1" "
41737 ;;
41738 -libf*)
41739 shift
41740 library_flags=${D}{library_flags}${D}1" "
41741 ;;
41742 -nocrt*)
41743 CFLAGS="-s"
41744 ;;
41745 -nolxl*)
41746 flag_USE_LXLITE=0
41747 ;;
41748 -* | /*)
41749 case ${D}1 in
41750 -L* | -l*)
41751 libsToLink=1
41752 ;;
b1d22ded
DE
41753 -Zomf)
41754 omfLinking=1
41755 ;;
473276a9
VS
41756 *)
41757 ;;
41758 esac
41759 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
41760 ;;
b1d22ded
DE
41761 *.dll)
41762 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
41763 if [ ${D}omfLinking -eq 1 ]; then
41764 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
41765 else
41766 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
41767 fi
41768 ;;
473276a9
VS
41769 *)
41770 found=0;
1e9e8aba 41771 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
41772 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
41773 else
41774 for file in ${D}1 ; do
1e9e8aba 41775 if [ -f ${D}file ]; then
473276a9
VS
41776 inputFiles="${D}{inputFiles} ${D}file"
41777 found=1
41778 fi
41779 done
1e9e8aba 41780 if [ ${D}found -eq 0 ]; then
473276a9
VS
41781 echo "ERROR: No file(s) found: "${D}1
41782 exit 8
41783 fi
41784 fi
41785 ;;
41786 esac
41787 shift
41788done # iterate cmdline words
41789
41790#
1e9e8aba 41791if [ -z "${D}inputFiles" ]; then
473276a9
VS
41792 echo "dllar: no input files"
41793 PrintHelp
41794fi
41795
41796# Now extract all .o files from .a files
41797newInputFiles=""
41798for file in ${D}inputFiles ; do
41799 case ${D}file in
41800 *.a | *.lib)
41801 case ${D}file in
41802 *.a)
41803 suffix=".a"
41804 AR="ar"
41805 ;;
41806 *.lib)
41807 suffix=".lib"
41808 AR="emxomfar"
41809 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
41810 ;;
41811 *)
41812 ;;
41813 esac
41814 dirname=\`basnam ${D}file ${D}suffix\`"_%"
41815 mkdir ${D}dirname
1e9e8aba 41816 if [ ${D}? -ne 0 ]; then
473276a9
VS
41817 echo "Failed to create subdirectory ./${D}dirname"
41818 CleanUp
41819 exit 8;
41820 fi
41821 # Append '!' to indicate archive
41822 newInputFiles="${D}newInputFiles ${D}{dirname}!"
41823 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
41824 cd ${D}curDir
41825 found=0;
41826 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 41827 if [ -f ${D}subfile ]; then
473276a9 41828 found=1
1e9e8aba 41829 if [ -s ${D}subfile ]; then
473276a9
VS
41830 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
41831 newInputFiles="${D}newInputFiles ${D}subfile"
41832 fi
41833 fi
41834 done
1e9e8aba
DE
41835 if [ ${D}found -eq 0 ]; then
41836 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
41837 fi
41838 ;;
41839 *)
41840 newInputFiles="${D}{newInputFiles} ${D}file"
41841 ;;
41842 esac
41843done
41844inputFiles="${D}newInputFiles"
41845
41846# Output filename(s).
41847do_backup=0;
1e9e8aba 41848if [ -z ${D}outFile ]; then
473276a9
VS
41849 do_backup=1;
41850 set outFile ${D}inputFiles; outFile=${D}2
41851fi
41852
41853# If it is an archive, remove the '!' and the '_%' suffixes
41854case ${D}outFile in
41855*_%!)
41856 outFile=\`basnam ${D}outFile _%!\`
41857 ;;
41858*)
41859 ;;
41860esac
41861case ${D}outFile in
41862*.dll)
41863 outFile=\`basnam ${D}outFile .dll\`
41864 ;;
41865*.DLL)
41866 outFile=\`basnam ${D}outFile .DLL\`
41867 ;;
41868*.o)
41869 outFile=\`basnam ${D}outFile .o\`
41870 ;;
41871*.obj)
41872 outFile=\`basnam ${D}outFile .obj\`
41873 ;;
41874*.a)
41875 outFile=\`basnam ${D}outFile .a\`
41876 ;;
41877*.lib)
41878 outFile=\`basnam ${D}outFile .lib\`
41879 ;;
41880*)
41881 ;;
41882esac
41883case ${D}outimpFile in
41884*.a)
41885 outimpFile=\`basnam ${D}outimpFile .a\`
41886 ;;
41887*.lib)
41888 outimpFile=\`basnam ${D}outimpFile .lib\`
41889 ;;
41890*)
41891 ;;
41892esac
1e9e8aba 41893if [ -z ${D}outimpFile ]; then
473276a9
VS
41894 outimpFile=${D}outFile
41895fi
41896defFile="${D}{outFile}.def"
41897arcFile="${D}{outimpFile}.a"
41898arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
41899
41900#create ${D}dllFile as something matching 8.3 restrictions,
41901if [ -z ${D}renameScript ] ; then
41902 dllFile="${D}outFile"
41903else
41904 dllFile=\`${D}renameScript ${D}outimpFile\`
41905fi
473276a9 41906
1e9e8aba
DE
41907if [ ${D}do_backup -ne 0 ] ; then
41908 if [ -f ${D}arcFile ] ; then
473276a9
VS
41909 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
41910 fi
1e9e8aba 41911 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
41912 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
41913 fi
41914fi
41915
41916# Extract public symbols from all the object files.
41917tmpdefFile=${D}{defFile}_%
41918rm -f ${D}tmpdefFile
41919for file in ${D}inputFiles ; do
41920 case ${D}file in
41921 *!)
41922 ;;
41923 *)
41924 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
41925 ;;
41926 esac
41927done
41928
41929# Create the def file.
41930rm -f ${D}defFile
41931echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
41932dllFile="${D}{dllFile}.dll"
41933if [ ! -z ${D}description ]; then
1e9e8aba 41934 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
41935fi
41936echo "EXPORTS" >> ${D}defFile
41937
41938doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
41939grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
41940
41941# Checks if the export is ok or not.
41942for word in ${D}exclude_symbols; do
41943 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
41944 mv ${D}{tmpdefFile}% ${D}tmpdefFile
41945done
41946
41947
1e9e8aba
DE
41948if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
41949 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
41950 sed '
41951 N
41952 : loop
1e9e8aba 41953 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
41954 t loop
41955 ' > ${D}{tmpdefFile}%
41956 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
41957else
41958 rm -f ${D}{tmpdefFile}%
41959fi
41960cat ${D}tmpdefFile >> ${D}defFile
41961rm -f ${D}tmpdefFile
41962
41963# Do linking, create implib, and apply lxlite.
41964gccCmdl="";
41965for file in ${D}inputFiles ; do
41966 case ${D}file in
41967 *!)
41968 ;;
41969 *)
41970 gccCmdl="${D}gccCmdl ${D}file"
41971 ;;
41972 esac
41973done
41974doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
41975touch "${D}{outFile}.dll"
41976
41977doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 41978if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 41979 add_flags="";
1e9e8aba 41980 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
41981 add_flags="-ynd"
41982 fi
41983 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
41984fi
41985doCommand "emxomf -s -l ${D}arcFile"
41986
41987# Successful exit.
41988CleanUp 1
41989exit 0
41990EOF
41991
41992 chmod +x dllar.sh
a848cd7e
SC
41993 ;;
41994
1e9e8aba 41995 powerpc-apple-macos* | \
a848cd7e
SC
41996 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
41997 *-*-sunos4* | \
41998 *-*-osf* | \
41999 *-*-dgux5* | \
42000 *-*-sysv5* )
42001 ;;
42002
42003 *)
42004 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
42005echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
42006 { (exit 1); exit 1; }; }
42007 esac
42008
2057db16
VS
42009 if test "x$PIC_FLAG" != "x" ; then
42010 PIC_FLAG="$PIC_FLAG -DPIC"
42011 fi
42012
a848cd7e
SC
42013 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
42014 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
42015 fi
42016 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
42017 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
42018 fi
42019
42020
42021
42022
42023
42024
42025
42026
42027 USE_SOVERSION=0
42028 USE_SOVERLINUX=0
42029 USE_SOVERSOLARIS=0
42030 USE_SOSYMLINKS=0
42031 USE_MACVERSION=0
42032 SONAME_FLAG=
42033
42034 case "${BAKEFILE_HOST}" in
b1d22ded 42035 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
42036 SONAME_FLAG="-Wl,-soname,"
42037 USE_SOVERSION=1
42038 USE_SOVERLINUX=1
42039 USE_SOSYMLINKS=1
42040 ;;
42041
a848cd7e
SC
42042 *-*-solaris2* )
42043 SONAME_FLAG="-h "
42044 USE_SOVERSION=1
42045 USE_SOVERSOLARIS=1
42046 USE_SOSYMLINKS=1
42047 ;;
42048
42049 *-*-darwin* )
42050 USE_MACVERSION=1
42051 USE_SOVERSION=1
42052 USE_SOSYMLINKS=1
42053 ;;
42054 esac
42055
42056
42057
42058
42059
42060
42061
42062
42063
42064 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
42065echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
42066 DEPS_TRACKING=0
42067
42068 if test "x$GCC" = "xyes"; then
42069 DEPSMODE=gcc
42070 DEPS_TRACKING=1
42071 case "${BAKEFILE_HOST}" in
42072 powerpc-*-darwin* )
42073 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
42074 ;;
42075 * )
42076 DEPSFLAG_GCC="-MMD"
42077 ;;
42078 esac
42079 echo "$as_me:$LINENO: result: gcc" >&5
42080echo "${ECHO_T}gcc" >&6
b1d22ded 42081 elif test "x$MWCC" = "xyes"; then
81f90336 42082 DEPSMODE=mwcc
b1d22ded 42083 DEPS_TRACKING=1
81f90336 42084 DEPSFLAG_MWCC="-MM"
b1d22ded
DE
42085 echo "$as_me:$LINENO: result: mwcc" >&5
42086echo "${ECHO_T}mwcc" >&6
a848cd7e
SC
42087 else
42088 echo "$as_me:$LINENO: result: none" >&5
42089echo "${ECHO_T}none" >&6
42090 fi
42091
42092 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
42093
42094D='$'
42095cat <<EOF >bk-deps
a848cd7e
SC
42096#!/bin/sh
42097
42098# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
42099# script. It is used to track C/C++ files dependencies in portable way.
42100#
42101# Permission is given to use this file in any way.
42102
473276a9 42103DEPSMODE=${DEPSMODE}
a848cd7e 42104DEPSDIR=.deps
473276a9 42105DEPSFLAG_GCC="${DEPSFLAG_GCC}"
81f90336 42106DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
a848cd7e 42107
473276a9 42108mkdir -p ${D}DEPSDIR
a848cd7e 42109
473276a9
VS
42110if test ${D}DEPSMODE = gcc ; then
42111 ${D}* ${D}{DEPSFLAG_GCC}
42112 status=${D}?
42113 if test ${D}{status} != 0 ; then
42114 exit ${D}{status}
a848cd7e
SC
42115 fi
42116 # move created file to the location we want it in:
473276a9
VS
42117 while test ${D}# -gt 0; do
42118 case "${D}1" in
a848cd7e
SC
42119 -o )
42120 shift
473276a9 42121 objfile=${D}1
a848cd7e
SC
42122 ;;
42123 -* )
42124 ;;
42125 * )
473276a9 42126 srcfile=${D}1
a848cd7e
SC
42127 ;;
42128 esac
42129 shift
42130 done
1e9e8aba
DE
42131 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
42132 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
42133 if test -f ${D}depfile ; then
42134 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42135 rm -f ${D}depfile
a848cd7e 42136 else
1e9e8aba 42137 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
42138 if test -f ${D}depfile ; then
42139 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
42140 rm -f ${D}depfile
a848cd7e
SC
42141 fi
42142 fi
42143 exit 0
81f90336
MW
42144elif test ${D}DEPSMODE = mwcc ; then
42145 ${D}*
42146 status=${D}?
42147 if test ${D}{status} != 0 ; then
42148 exit ${D}{status}
42149 fi
42150 # Run mwcc again with -MM and redirect into the dep file we want
42151 # NOTE: We can't use shift here because we need ${D}* to be valid
42152 prevarg=
42153 for arg in ${D}* ; do
42154 if test "${D}prevarg" = "-o"; then
42155 objfile=${D}arg
42156 else
42157 case "${D}arg" in
42158 -* )
42159 ;;
42160 * )
42161 srcfile=${D}arg
42162 ;;
42163 esac
42164 fi
42165 prevarg="${D}arg"
42166 done
42167 ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
42168 exit 0
a848cd7e 42169else
473276a9
VS
42170 ${D}*
42171 exit ${D}?
a848cd7e
SC
42172fi
42173EOF
473276a9 42174
a848cd7e
SC
42175 chmod +x bk-deps
42176 fi
42177
42178
42179
42180
42181 RESCOMP=
42182 SETFILE=
42183
42184 case ${BAKEFILE_HOST} in
42185 *-*-cygwin* | *-*-mingw32* )
42186 if test "$build" != "$host" ; then
42187 RESCOMP=$host_alias-windres
42188 else
42189 # Extract the first word of "windres", so it can be a program name with args.
42190set dummy windres; ac_word=$2
42191echo "$as_me:$LINENO: checking for $ac_word" >&5
42192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42193if test "${ac_cv_prog_RESCOMP+set}" = set; then
42194 echo $ECHO_N "(cached) $ECHO_C" >&6
42195else
42196 if test -n "$RESCOMP"; then
42197 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42198else
42199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42200for as_dir in $PATH
42201do
42202 IFS=$as_save_IFS
42203 test -z "$as_dir" && as_dir=.
42204 for ac_exec_ext in '' $ac_executable_extensions; do
42205 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42206 ac_cv_prog_RESCOMP="windres"
42207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42208 break 2
42209 fi
42210done
42211done
42212
42213 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
42214fi
42215fi
42216RESCOMP=$ac_cv_prog_RESCOMP
42217if test -n "$RESCOMP"; then
42218 echo "$as_me:$LINENO: result: $RESCOMP" >&5
42219echo "${ECHO_T}$RESCOMP" >&6
42220else
42221 echo "$as_me:$LINENO: result: no" >&5
42222echo "${ECHO_T}no" >&6
42223fi
42224
42225 fi
42226 ;;
42227
1e9e8aba 42228 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
42229 # Extract the first word of "Rez", so it can be a program name with args.
42230set dummy Rez; ac_word=$2
42231echo "$as_me:$LINENO: checking for $ac_word" >&5
42232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42233if test "${ac_cv_prog_RESCOMP+set}" = set; then
42234 echo $ECHO_N "(cached) $ECHO_C" >&6
42235else
42236 if test -n "$RESCOMP"; then
42237 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
42238else
42239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42240for as_dir in $PATH
42241do
42242 IFS=$as_save_IFS
42243 test -z "$as_dir" && as_dir=.
42244 for ac_exec_ext in '' $ac_executable_extensions; do
42245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42246 ac_cv_prog_RESCOMP="Rez"
42247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42248 break 2
42249 fi
42250done
42251done
42252
42253 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
42254fi
42255fi
42256RESCOMP=$ac_cv_prog_RESCOMP
42257if test -n "$RESCOMP"; then
42258 echo "$as_me:$LINENO: result: $RESCOMP" >&5
42259echo "${ECHO_T}$RESCOMP" >&6
42260else
42261 echo "$as_me:$LINENO: result: no" >&5
42262echo "${ECHO_T}no" >&6
42263fi
42264
42265 # Extract the first word of "SetFile", so it can be a program name with args.
42266set dummy SetFile; ac_word=$2
42267echo "$as_me:$LINENO: checking for $ac_word" >&5
42268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42269if test "${ac_cv_prog_SETFILE+set}" = set; then
42270 echo $ECHO_N "(cached) $ECHO_C" >&6
42271else
42272 if test -n "$SETFILE"; then
42273 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
42274else
42275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42276for as_dir in $PATH
42277do
42278 IFS=$as_save_IFS
42279 test -z "$as_dir" && as_dir=.
42280 for ac_exec_ext in '' $ac_executable_extensions; do
42281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42282 ac_cv_prog_SETFILE="SetFile"
42283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42284 break 2
42285 fi
42286done
42287done
42288
42289 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
42290fi
42291fi
42292SETFILE=$ac_cv_prog_SETFILE
42293if test -n "$SETFILE"; then
42294 echo "$as_me:$LINENO: result: $SETFILE" >&5
42295echo "${ECHO_T}$SETFILE" >&6
42296else
42297 echo "$as_me:$LINENO: result: no" >&5
42298echo "${ECHO_T}no" >&6
42299fi
42300
42301 ;;
42302 esac
42303
42304
42305
42306
42307
fbb7dfff 42308 BAKEFILE_BAKEFILE_M4_VERSION="0.1.8"
a848cd7e 42309
dcc1b6ad 42310
fbb7dfff 42311BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.8"
a848cd7e 42312
646b6ec1 42313
74b84332 42314
a848cd7e
SC
42315 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
42316if test "${enable_precomp_headers+set}" = set; then
42317 enableval="$enable_precomp_headers"
42318 bk_use_pch="$enableval"
42319fi;
42320
42321 GCC_PCH=0
42322
42323 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
42324 if test "x$GCC" = "xyes"; then
42325 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
42326echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
42327 cat >conftest.$ac_ext <<_ACEOF
42328/* confdefs.h. */
42329_ACEOF
42330cat confdefs.h >>conftest.$ac_ext
42331cat >>conftest.$ac_ext <<_ACEOF
42332/* end confdefs.h. */
42333
42334int
42335main ()
42336{
42337
42338 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
42339 #error "no pch support"
42340 #endif
42341 #if (__GNUC__ < 3)
42342 #error "no pch support"
42343 #endif
42344 #if (__GNUC__ == 3) && \
42345 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
42346 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
42347 #error "no pch support"
42348 #endif
42349
42350 ;
42351 return 0;
42352}
42353_ACEOF
42354rm -f conftest.$ac_objext
42355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42356 (eval $ac_compile) 2>conftest.er1
a848cd7e 42357 ac_status=$?
ac1cb8d3
VS
42358 grep -v '^ *+' conftest.er1 >conftest.err
42359 rm -f conftest.er1
42360 cat conftest.err >&5
a848cd7e
SC
42361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42362 (exit $ac_status); } &&
07158944 42363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42365 (eval $ac_try) 2>&5
42366 ac_status=$?
42367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42368 (exit $ac_status); }; } &&
42369 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42371 (eval $ac_try) 2>&5
42372 ac_status=$?
42373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42374 (exit $ac_status); }; }; then
42375
42376 echo "$as_me:$LINENO: result: yes" >&5
42377echo "${ECHO_T}yes" >&6
a848cd7e
SC
42378 GCC_PCH=1
42379
42380else
42381 echo "$as_me: failed program was:" >&5
42382sed 's/^/| /' conftest.$ac_ext >&5
42383
42384
42385 echo "$as_me:$LINENO: result: no" >&5
42386echo "${ECHO_T}no" >&6
42387
42388fi
ac1cb8d3 42389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 42390 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
42391
42392D='$'
42393cat <<EOF >bk-make-pch
a848cd7e
SC
42394#!/bin/sh
42395
42396# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
42397# script. It is used to generated precompiled headers.
42398#
42399# Permission is given to use this file in any way.
42400
1e9e8aba
DE
42401outfile="${D}{1}"
42402header="${D}{2}"
a848cd7e
SC
42403shift
42404shift
42405
42406compiler=
42407headerfile=
1e9e8aba
DE
42408while test ${D}{#} -gt 0; do
42409 case "${D}{1}" in
a848cd7e 42410 -I* )
1e9e8aba
DE
42411 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
42412 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
42413 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
42414 fi
42415 ;;
42416 esac
1e9e8aba 42417 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
42418 shift
42419done
42420
1e9e8aba
DE
42421if test "x${D}{headerfile}" = "x" ; then
42422 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 42423else
1e9e8aba
DE
42424 if test -f ${D}{outfile} ; then
42425 rm -f ${D}{outfile}
a848cd7e 42426 else
1e9e8aba 42427 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 42428 fi
1e9e8aba 42429 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
42430 mkdir -p .deps
42431 # can do this because gcc is >= 3.4:
1e9e8aba
DE
42432 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
42433 exit ${D}{?}
a848cd7e
SC
42434fi
42435EOF
1e9e8aba 42436
a848cd7e
SC
42437 chmod +x bk-make-pch
42438 fi
42439 fi
42440 fi
42441
42442
42443
a848cd7e
SC
42444 COND_BUILD_DEBUG="#"
42445 if test "x$BUILD" = "xdebug" ; then
42446 COND_BUILD_DEBUG=""
42447 fi
42448
42449 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
42450 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
42451 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
42452 fi
42453
42454 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
42455 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
42456 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
42457 fi
42458
42459 COND_BUILD_DEBUG_UNICODE_0="#"
42460 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
42461 COND_BUILD_DEBUG_UNICODE_0=""
42462 fi
42463
42464 COND_BUILD_DEBUG_UNICODE_1="#"
42465 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
42466 COND_BUILD_DEBUG_UNICODE_1=""
42467 fi
42468
42469 COND_BUILD_RELEASE="#"
42470 if test "x$BUILD" = "xrelease" ; then
42471 COND_BUILD_RELEASE=""
42472 fi
42473
42474 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
42475 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
42476 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
42477 fi
42478
42479 COND_BUILD_RELEASE_UNICODE_0="#"
42480 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
42481 COND_BUILD_RELEASE_UNICODE_0=""
42482 fi
42483
42484 COND_BUILD_RELEASE_UNICODE_1="#"
42485 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
42486 COND_BUILD_RELEASE_UNICODE_1=""
42487 fi
42488
42489 COND_DEBUG_FLAG_1="#"
42490 if test "x$DEBUG_FLAG" = "x1" ; then
42491 COND_DEBUG_FLAG_1=""
42492 fi
42493
42494 COND_DEBUG_INFO_0="#"
42495 if test "x$DEBUG_INFO" = "x0" ; then
42496 COND_DEBUG_INFO_0=""
42497 fi
42498
42499 COND_DEBUG_INFO_1="#"
42500 if test "x$DEBUG_INFO" = "x1" ; then
42501 COND_DEBUG_INFO_1=""
42502 fi
42503
42504 COND_DEPS_TRACKING_0="#"
42505 if test "x$DEPS_TRACKING" = "x0" ; then
42506 COND_DEPS_TRACKING_0=""
42507 fi
42508
42509 COND_DEPS_TRACKING_1="#"
42510 if test "x$DEPS_TRACKING" = "x1" ; then
42511 COND_DEPS_TRACKING_1=""
42512 fi
42513
42514 COND_GCC_PCH_1="#"
42515 if test "x$GCC_PCH" = "x1" ; then
42516 COND_GCC_PCH_1=""
42517 fi
42518
42519 COND_MONOLITHIC_0="#"
42520 if test "x$MONOLITHIC" = "x0" ; then
42521 COND_MONOLITHIC_0=""
42522 fi
42523
42524 COND_MONOLITHIC_0_SHARED_0="#"
42525 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
42526 COND_MONOLITHIC_0_SHARED_0=""
42527 fi
42528
42529 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
42530 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
42531 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
42532 fi
42533
90970d69
DE
42534 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
42535 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
42536 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
42537 fi
42538
a848cd7e
SC
42539 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
42540 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
42541 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
42542 fi
42543
6671c68b
VZ
42544 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
42545 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
42546 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
42547 fi
42548
a848cd7e
SC
42549 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
42550 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
42551 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
42552 fi
42553
ceec2216
RL
42554 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
42555 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
42556 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
42557 fi
42558
a848cd7e
SC
42559 COND_MONOLITHIC_0_SHARED_1="#"
42560 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
42561 COND_MONOLITHIC_0_SHARED_1=""
42562 fi
42563
42564 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
42565 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
42566 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
42567 fi
42568
90970d69
DE
42569 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
42570 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
42571 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
42572 fi
42573
a848cd7e
SC
42574 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
42575 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
42576 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
42577 fi
42578
6671c68b
VZ
42579 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
42580 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
42581 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
42582 fi
42583
a848cd7e
SC
42584 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
42585 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
42586 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
42587 fi
42588
ceec2216
RL
42589 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
42590 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
42591 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
42592 fi
42593
a848cd7e
SC
42594 COND_MONOLITHIC_0_USE_ODBC_1="#"
42595 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
42596 COND_MONOLITHIC_0_USE_ODBC_1=""
42597 fi
42598
42599 COND_MONOLITHIC_1="#"
42600 if test "x$MONOLITHIC" = "x1" ; then
42601 COND_MONOLITHIC_1=""
42602 fi
42603
42604 COND_MONOLITHIC_1_SHARED_0="#"
42605 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
42606 COND_MONOLITHIC_1_SHARED_0=""
42607 fi
42608
42609 COND_MONOLITHIC_1_SHARED_1="#"
42610 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
42611 COND_MONOLITHIC_1_SHARED_1=""
42612 fi
42613
42614 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
42615 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
42616 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
42617 fi
42618
42619 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
42620 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
42621 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
42622 fi
42623
42624 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
42625 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
42626 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
42627 fi
42628
42629 COND_PLATFORM_MACOSX_1="#"
42630 if test "x$PLATFORM_MACOSX" = "x1" ; then
42631 COND_PLATFORM_MACOSX_1=""
42632 fi
42633
a30f955f
VS
42634 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
42635 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
42636 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
42637 fi
42638
a848cd7e
SC
42639 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
42640 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
42641 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
42642 fi
42643
42644 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
42645 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
42646 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
42647 fi
42648
42649 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
42650 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
42651 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
42652 fi
42653
fc480dc1
DE
42654 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
42655 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
42656 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
42657 fi
42658
1e9e8aba
DE
42659 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
42660 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42661 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
42662 fi
42663
ebee3cd0
VS
42664 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
42665 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
42666 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
42667 fi
42668
42669 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
42670 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
42671 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
42672 fi
42673
a848cd7e
SC
42674 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
42675 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
42676 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
42677 fi
42678
42679 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
42680 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
42681 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
42682 fi
42683
b48a2016
DE
42684 COND_PLATFORM_MACOS_1="#"
42685 if test "x$PLATFORM_MACOS" = "x1" ; then
42686 COND_PLATFORM_MACOS_1=""
42687 fi
42688
a848cd7e
SC
42689 COND_PLATFORM_MAC_1="#"
42690 if test "x$PLATFORM_MAC" = "x1" ; then
42691 COND_PLATFORM_MAC_1=""
42692 fi
42693
42694 COND_PLATFORM_OS2_1="#"
42695 if test "x$PLATFORM_OS2" = "x1" ; then
42696 COND_PLATFORM_OS2_1=""
42697 fi
42698
42699 COND_PLATFORM_UNIX_0="#"
42700 if test "x$PLATFORM_UNIX" = "x0" ; then
42701 COND_PLATFORM_UNIX_0=""
42702 fi
42703
42704 COND_PLATFORM_UNIX_1="#"
42705 if test "x$PLATFORM_UNIX" = "x1" ; then
42706 COND_PLATFORM_UNIX_1=""
42707 fi
42708
42709 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
42710 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
42711 COND_PLATFORM_UNIX_1_USE_GUI_1=""
42712 fi
42713
42714 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
42715 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
42716 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
42717 fi
42718
42719 COND_PLATFORM_WIN32_0="#"
42720 if test "x$PLATFORM_WIN32" = "x0" ; then
42721 COND_PLATFORM_WIN32_0=""
42722 fi
42723
42724 COND_PLATFORM_WIN32_1="#"
42725 if test "x$PLATFORM_WIN32" = "x1" ; then
42726 COND_PLATFORM_WIN32_1=""
42727 fi
42728
42729 COND_SHARED_0="#"
42730 if test "x$SHARED" = "x0" ; then
42731 COND_SHARED_0=""
42732 fi
42733
ceec2216
RL
42734 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
42735 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
42736 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
42737 fi
42738
42739 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
42740 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
42741 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
42742 fi
42743
42744 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
42745 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
42746 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
42747 fi
42748
a848cd7e
SC
42749 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
42750 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
42751 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
42752 fi
42753
42754 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
42755 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
42756 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
42757 fi
42758
42759 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
42760 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
42761 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
42762 fi
42763
42764 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
42765 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
42766 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
42767 fi
42768
42769 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
42770 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
42771 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
42772 fi
42773
42774 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
42775 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
42776 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
42777 fi
42778
42779 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
42780 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
42781 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
42782 fi
42783
42784 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
42785 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
42786 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
42787 fi
42788
42789 COND_SHARED_1="#"
42790 if test "x$SHARED" = "x1" ; then
42791 COND_SHARED_1=""
42792 fi
42793
42794 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
42795 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
42796 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
42797 fi
42798
a30f955f
VS
42799 COND_TOOLKIT_="#"
42800 if test "x$TOOLKIT" = "x" ; then
42801 COND_TOOLKIT_=""
42802 fi
42803
a848cd7e
SC
42804 COND_TOOLKIT_COCOA="#"
42805 if test "x$TOOLKIT" = "xCOCOA" ; then
42806 COND_TOOLKIT_COCOA=""
42807 fi
42808
a49baeab
DE
42809 COND_TOOLKIT_COCOA_USE_GUI_1="#"
42810 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
42811 COND_TOOLKIT_COCOA_USE_GUI_1=""
42812 fi
42813
a848cd7e
SC
42814 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
42815 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42816 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
42817 fi
42818
42819 COND_TOOLKIT_GTK="#"
42820 if test "x$TOOLKIT" = "xGTK" ; then
42821 COND_TOOLKIT_GTK=""
42822 fi
42823
42824 COND_TOOLKIT_GTK_USE_GUI_1="#"
42825 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
42826 COND_TOOLKIT_GTK_USE_GUI_1=""
42827 fi
42828
42829 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
42830 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42831 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
42832 fi
42833
42834 COND_TOOLKIT_MAC="#"
42835 if test "x$TOOLKIT" = "xMAC" ; then
42836 COND_TOOLKIT_MAC=""
42837 fi
42838
42839 COND_TOOLKIT_MAC_USE_GUI_1="#"
42840 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
42841 COND_TOOLKIT_MAC_USE_GUI_1=""
42842 fi
42843
42844 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
42845 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42846 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
42847 fi
42848
42849 COND_TOOLKIT_MGL="#"
42850 if test "x$TOOLKIT" = "xMGL" ; then
42851 COND_TOOLKIT_MGL=""
42852 fi
42853
42854 COND_TOOLKIT_MGL_USE_GUI_1="#"
42855 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
42856 COND_TOOLKIT_MGL_USE_GUI_1=""
42857 fi
42858
42859 COND_TOOLKIT_MOTIF="#"
42860 if test "x$TOOLKIT" = "xMOTIF" ; then
42861 COND_TOOLKIT_MOTIF=""
42862 fi
42863
42864 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
42865 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
42866 COND_TOOLKIT_MOTIF_USE_GUI_1=""
42867 fi
42868
42869 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
42870 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42871 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
42872 fi
42873
42874 COND_TOOLKIT_MSW="#"
42875 if test "x$TOOLKIT" = "xMSW" ; then
42876 COND_TOOLKIT_MSW=""
42877 fi
42878
42879 COND_TOOLKIT_MSW_USE_GUI_1="#"
42880 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
42881 COND_TOOLKIT_MSW_USE_GUI_1=""
42882 fi
42883
42884 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
42885 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42886 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
42887 fi
42888
42889 COND_TOOLKIT_PM="#"
42890 if test "x$TOOLKIT" = "xPM" ; then
42891 COND_TOOLKIT_PM=""
42892 fi
42893
42894 COND_TOOLKIT_PM_USE_GUI_1="#"
42895 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
42896 COND_TOOLKIT_PM_USE_GUI_1=""
42897 fi
42898
42899 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
42900 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42901 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
42902 fi
42903
3fd9c298
DE
42904 COND_TOOLKIT_WINCE="#"
42905 if test "x$TOOLKIT" = "xWINCE" ; then
42906 COND_TOOLKIT_WINCE=""
42907 fi
42908
42909 COND_TOOLKIT_WINCE_USE_GUI_1="#"
42910 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
42911 COND_TOOLKIT_WINCE_USE_GUI_1=""
42912 fi
42913
42914 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
42915 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42916 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
42917 fi
42918
a848cd7e
SC
42919 COND_TOOLKIT_X11="#"
42920 if test "x$TOOLKIT" = "xX11" ; then
42921 COND_TOOLKIT_X11=""
42922 fi
42923
42924 COND_TOOLKIT_X11_USE_GUI_1="#"
42925 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
42926 COND_TOOLKIT_X11_USE_GUI_1=""
42927 fi
42928
42929 COND_UNICODE_1="#"
42930 if test "x$UNICODE" = "x1" ; then
42931 COND_UNICODE_1=""
42932 fi
42933
42934 COND_USE_EXCEPTIONS_0="#"
42935 if test "x$USE_EXCEPTIONS" = "x0" ; then
42936 COND_USE_EXCEPTIONS_0=""
42937 fi
42938
42939 COND_USE_EXCEPTIONS_1="#"
42940 if test "x$USE_EXCEPTIONS" = "x1" ; then
42941 COND_USE_EXCEPTIONS_1=""
42942 fi
42943
42944 COND_USE_GUI_0="#"
42945 if test "x$USE_GUI" = "x0" ; then
42946 COND_USE_GUI_0=""
42947 fi
42948
42949 COND_USE_GUI_1="#"
42950 if test "x$USE_GUI" = "x1" ; then
42951 COND_USE_GUI_1=""
42952 fi
42953
42954 COND_USE_GUI_1_WXUNIV_0="#"
42955 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
42956 COND_USE_GUI_1_WXUNIV_0=""
42957 fi
42958
42959 COND_USE_GUI_1_WXUNIV_1="#"
42960 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
42961 COND_USE_GUI_1_WXUNIV_1=""
42962 fi
42963
42964 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
42965 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
42966 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
42967 fi
42968
42969 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
42970 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
42971 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
42972 fi
42973
42974 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
42975 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
42976 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
42977 fi
42978
ceec2216
RL
42979 COND_USE_ODBC_1="#"
42980 if test "x$USE_ODBC" = "x1" ; then
42981 COND_USE_ODBC_1=""
42982 fi
42983
ffa0583f
RL
42984 COND_USE_OPENGL_1="#"
42985 if test "x$USE_OPENGL" = "x1" ; then
42986 COND_USE_OPENGL_1=""
42987 fi
42988
a848cd7e
SC
42989 COND_USE_PLUGINS_0="#"
42990 if test "x$USE_PLUGINS" = "x0" ; then
42991 COND_USE_PLUGINS_0=""
42992 fi
42993
0b78747f
MW
42994 COND_USE_RTTI_0="#"
42995 if test "x$USE_RTTI" = "x0" ; then
42996 COND_USE_RTTI_0=""
42997 fi
42998
42999 COND_USE_RTTI_1="#"
43000 if test "x$USE_RTTI" = "x1" ; then
43001 COND_USE_RTTI_1=""
43002 fi
43003
a848cd7e
SC
43004 COND_USE_SOSYMLINKS_1="#"
43005 if test "x$USE_SOSYMLINKS" = "x1" ; then
43006 COND_USE_SOSYMLINKS_1=""
43007 fi
43008
43009 COND_USE_SOVERLINUX_1="#"
43010 if test "x$USE_SOVERLINUX" = "x1" ; then
43011 COND_USE_SOVERLINUX_1=""
43012 fi
43013
43014 COND_USE_SOVERSION_0="#"
43015 if test "x$USE_SOVERSION" = "x0" ; then
43016 COND_USE_SOVERSION_0=""
43017 fi
43018
43019 COND_USE_SOVERSOLARIS_1="#"
43020 if test "x$USE_SOVERSOLARIS" = "x1" ; then
43021 COND_USE_SOVERSOLARIS_1=""
43022 fi
43023
0b78747f
MW
43024 COND_USE_THREADS_0="#"
43025 if test "x$USE_THREADS" = "x0" ; then
43026 COND_USE_THREADS_0=""
43027 fi
43028
43029 COND_USE_THREADS_1="#"
43030 if test "x$USE_THREADS" = "x1" ; then
43031 COND_USE_THREADS_1=""
43032 fi
43033
a13a7f89
RL
43034 COND_USE_XRC_1="#"
43035 if test "x$USE_XRC" = "x1" ; then
43036 COND_USE_XRC_1=""
43037 fi
43038
a848cd7e
SC
43039 COND_WITH_PLUGIN_SDL_1="#"
43040 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
43041 COND_WITH_PLUGIN_SDL_1=""
43042 fi
43043
1e6eb025
VZ
43044 COND_WXUNIV_0="#"
43045 if test "x$WXUNIV" = "x0" ; then
43046 COND_WXUNIV_0=""
43047 fi
43048
a848cd7e
SC
43049 COND_WXUNIV_1="#"
43050 if test "x$WXUNIV" = "x1" ; then
43051 COND_WXUNIV_1=""
43052 fi
43053
43054 COND_WXUSE_EXPAT_BUILTIN="#"
43055 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
43056 COND_WXUSE_EXPAT_BUILTIN=""
43057 fi
43058
43059 COND_WXUSE_LIBJPEG_BUILTIN="#"
43060 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43061 COND_WXUSE_LIBJPEG_BUILTIN=""
43062 fi
43063
43064 COND_WXUSE_LIBPNG_BUILTIN="#"
43065 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43066 COND_WXUSE_LIBPNG_BUILTIN=""
43067 fi
43068
43069 COND_WXUSE_LIBTIFF_BUILTIN="#"
43070 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43071 COND_WXUSE_LIBTIFF_BUILTIN=""
43072 fi
43073
43074 COND_WXUSE_ODBC_BUILTIN="#"
43075 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
43076 COND_WXUSE_ODBC_BUILTIN=""
43077 fi
43078
43079 COND_WXUSE_REGEX_BUILTIN="#"
43080 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
43081 COND_WXUSE_REGEX_BUILTIN=""
43082 fi
43083
43084 COND_WXUSE_ZLIB_BUILTIN="#"
43085 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
43086 COND_WXUSE_ZLIB_BUILTIN=""
43087 fi
43088
43089
43090
2057db16
VS
43091 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
43092 { { echo "$as_me:$LINENO: error: Versions of Bakefile used to generate makefiles ($BAKEFILE_AUTOCONF_INC_M4_VERSION) and configure ($BAKEFILE_BAKEFILE_M4_VERSION) do not match." >&5
43093echo "$as_me: error: Versions of Bakefile used to generate makefiles ($BAKEFILE_AUTOCONF_INC_M4_VERSION) and configure ($BAKEFILE_BAKEFILE_M4_VERSION) do not match." >&2;}
43094 { (exit 1); exit 1; }; }
43095 fi
43096
a848cd7e 43097
ceec2216
RL
43098if test "$wxUSE_SHARED" = "yes"; then
43099
43100 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
43101 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
43102
5b674b9d
DE
43103 case "${host}" in
43104 *-pc-os2_emx | *-pc-os2-emx )
43105 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43106 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
43107 cp -p ${srcdir}/src/os2/dllnames.sh .
43108 cp -p ${srcdir}/src/os2/dllar.sh .
43109 ;;
43110 esac
ceec2216
RL
43111else
43112
43113 EXE_LINKER="$CXX -o"
43114
43115fi
a848cd7e 43116
74b84332 43117GCC_PRAGMA_FLAGS=""
c08ebc62
DE
43118PCH_FLAGS=""
43119if test $GCC_PCH = 1 ; then
43120 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43121 PCH_FLAGS="-DWX_PRECOMP"
43122else
a848cd7e
SC
43123 case "${host}" in
43124 powerpc-*-darwin* )
74b84332 43125 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 43126 ;;
bea8e651 43127 *-*-mingw32* )
1f344abf
VS
43128 if test "$wxUSE_STL" = "yes" -o \
43129 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
43130 "$wxUSE_NO_RTTI" != "yes"; then
43131 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
43132echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
43133 cat >conftest.$ac_ext <<_ACEOF
43134/* confdefs.h. */
43135_ACEOF
43136cat confdefs.h >>conftest.$ac_ext
43137cat >>conftest.$ac_ext <<_ACEOF
43138/* end confdefs.h. */
43139
3314e67b
RR
43140int
43141main ()
43142{
43143#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
43144 #error "Not GCC 3.2 or greater"
43145 #endif
43146
43147 ;
43148 return 0;
43149}
43150_ACEOF
43151rm -f conftest.$ac_objext
43152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43153 (eval $ac_compile) 2>conftest.er1
43154 ac_status=$?
43155 grep -v '^ *+' conftest.er1 >conftest.err
43156 rm -f conftest.er1
43157 cat conftest.err >&5
43158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43159 (exit $ac_status); } &&
07158944 43160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3314e67b
RR
43161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43162 (eval $ac_try) 2>&5
43163 ac_status=$?
43164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43165 (exit $ac_status); }; } &&
43166 { ac_try='test -s conftest.$ac_objext'
43167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43168 (eval $ac_try) 2>&5
43169 ac_status=$?
43170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43171 (exit $ac_status); }; }; then
43172 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
43173 echo "$as_me:$LINENO: result: yes" >&5
43174echo "${ECHO_T}yes" >&6
43175else
43176 echo "$as_me: failed program was:" >&5
43177sed 's/^/| /' conftest.$ac_ext >&5
43178
43179echo "$as_me:$LINENO: result: no" >&5
43180echo "${ECHO_T}no" >&6
43181fi
43182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43183 fi
43184 ;;
43185 *-pc-os2_emx | *-pc-os2-emx )
43186 if test "$wxUSE_STL" = "yes"; then
43187 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
43188echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
43189 cat >conftest.$ac_ext <<_ACEOF
43190/* confdefs.h. */
43191_ACEOF
43192cat confdefs.h >>conftest.$ac_ext
43193cat >>conftest.$ac_ext <<_ACEOF
43194/* end confdefs.h. */
43195
bea8e651
MB
43196int
43197main ()
43198{
1f344abf 43199#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
43200 #error "Not GCC 3.2 or greater"
43201 #endif
43202
43203 ;
43204 return 0;
43205}
43206_ACEOF
43207rm -f conftest.$ac_objext
43208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43209 (eval $ac_compile) 2>conftest.er1
bea8e651 43210 ac_status=$?
ac1cb8d3
VS
43211 grep -v '^ *+' conftest.er1 >conftest.err
43212 rm -f conftest.er1
43213 cat conftest.err >&5
bea8e651
MB
43214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43215 (exit $ac_status); } &&
07158944 43216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43218 (eval $ac_try) 2>&5
43219 ac_status=$?
43220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43221 (exit $ac_status); }; } &&
43222 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
43223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43224 (eval $ac_try) 2>&5
43225 ac_status=$?
43226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43227 (exit $ac_status); }; }; then
74b84332 43228 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
43229 echo "$as_me:$LINENO: result: yes" >&5
43230echo "${ECHO_T}yes" >&6
43231else
43232 echo "$as_me: failed program was:" >&5
43233sed 's/^/| /' conftest.$ac_ext >&5
43234
43235echo "$as_me:$LINENO: result: no" >&5
43236echo "${ECHO_T}no" >&6
43237fi
ac1cb8d3 43238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
43239 fi
43240 ;;
a848cd7e
SC
43241 esac
43242fi
d2083416 43243CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
43244
43245
43246SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
43247
43248
43249
43250
43251
43252
43253
43254
43255
43256
43257
43258
43259
43260
43261
43262
43263
43264
43265
43266
43267
43268
43269
43270
43271
43272
43273
43274
43275
43276
43277
43278
43279
43280
43281
43282
43283
43284
43285
43286
43287
43288
a848cd7e
SC
43289
43290
43291
43292
43293
43294
43295
43296
43297
43298
43299
43300
43301
43302
43303
43304
43305
43306
74b84332 43307
a848cd7e
SC
43308
43309
43310echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
43311echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 43312set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
43313if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
43314 echo $ECHO_N "(cached) $ECHO_C" >&6
43315else
43316 cat >conftest.make <<\_ACEOF
43317all:
43318 @echo 'ac_maketemp="$(MAKE)"'
43319_ACEOF
43320# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
43321eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
43322if test -n "$ac_maketemp"; then
43323 eval ac_cv_prog_make_${ac_make}_set=yes
43324else
43325 eval ac_cv_prog_make_${ac_make}_set=no
43326fi
43327rm -f conftest.make
43328fi
43329if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
43330 echo "$as_me:$LINENO: result: yes" >&5
43331echo "${ECHO_T}yes" >&6
43332 SET_MAKE=
43333else
43334 echo "$as_me:$LINENO: result: no" >&5
43335echo "${ECHO_T}no" >&6
43336 SET_MAKE="MAKE=${MAKE-make}"
43337fi
43338
43339
a848cd7e 43340
ceec2216
RL
43341 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
43342
a848cd7e 43343
ceec2216 43344 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 43345
a848cd7e 43346
ceec2216 43347 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 43348
ceec2216
RL
43349
43350 ac_config_files="$ac_config_files version-script Makefile"
43351
43352
43353 ac_config_commands="$ac_config_commands wx-config
43354 "
a848cd7e
SC
43355
43356
9103d280
RL
43357
43358
a848cd7e
SC
43359if test "$wxUSE_GUI" = "yes"; then
43360 SUBDIRS="samples demos utils contrib"
43361else SUBDIRS="samples utils"
43362fi
43363
43364
43365
43366# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
43367if test "${with_cppunit_prefix+set}" = set; then
43368 withval="$with_cppunit_prefix"
43369 cppunit_config_prefix="$withval"
43370else
43371 cppunit_config_prefix=""
43372fi;
43373
43374# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
43375if test "${with_cppunit_exec_prefix+set}" = set; then
43376 withval="$with_cppunit_exec_prefix"
43377 cppunit_config_exec_prefix="$withval"
43378else
43379 cppunit_config_exec_prefix=""
43380fi;
43381
43382 if test x$cppunit_config_exec_prefix != x ; then
43383 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
43384 if test x${CPPUNIT_CONFIG+set} != xset ; then
43385 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
43386 fi
43387 fi
43388 if test x$cppunit_config_prefix != x ; then
43389 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
43390 if test x${CPPUNIT_CONFIG+set} != xset ; then
43391 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
43392 fi
43393 fi
43394
43395 # Extract the first word of "cppunit-config", so it can be a program name with args.
43396set dummy cppunit-config; ac_word=$2
43397echo "$as_me:$LINENO: checking for $ac_word" >&5
43398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43399if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
43400 echo $ECHO_N "(cached) $ECHO_C" >&6
43401else
43402 case $CPPUNIT_CONFIG in
43403 [\\/]* | ?:[\\/]*)
43404 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
43405 ;;
43406 *)
43407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43408for as_dir in $PATH
43409do
43410 IFS=$as_save_IFS
43411 test -z "$as_dir" && as_dir=.
43412 for ac_exec_ext in '' $ac_executable_extensions; do
43413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43414 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43416 break 2
43417 fi
43418done
43419done
43420
43421 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
43422 ;;
43423esac
43424fi
43425CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
43426
43427if test -n "$CPPUNIT_CONFIG"; then
43428 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
43429echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
43430else
43431 echo "$as_me:$LINENO: result: no" >&5
43432echo "${ECHO_T}no" >&6
43433fi
43434
43435 cppunit_version_min=1.8.0
43436
43437 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
43438echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
43439 no_cppunit=""
43440 if test "$CPPUNIT_CONFIG" = "no" ; then
43441 no_cppunit=yes
43442 else
43443 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
43444 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
43445 cppunit_version=`$CPPUNIT_CONFIG --version`
43446
43447 cppunit_major_version=`echo $cppunit_version | \
43448 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43449 cppunit_minor_version=`echo $cppunit_version | \
43450 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43451 cppunit_micro_version=`echo $cppunit_version | \
43452 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43453
43454 cppunit_major_min=`echo $cppunit_version_min | \
43455 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
43456 cppunit_minor_min=`echo $cppunit_version_min | \
43457 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
43458 cppunit_micro_min=`echo $cppunit_version_min | \
43459 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
43460
43461 cppunit_version_proper=`expr \
43462 $cppunit_major_version \> $cppunit_major_min \| \
43463 $cppunit_major_version \= $cppunit_major_min \& \
43464 $cppunit_minor_version \> $cppunit_minor_min \| \
43465 $cppunit_major_version \= $cppunit_major_min \& \
43466 $cppunit_minor_version \= $cppunit_minor_min \& \
43467 $cppunit_micro_version \>= $cppunit_micro_min `
43468
43469 if test "$cppunit_version_proper" = "1" ; then
43470 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
43471echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
43472 else
43473 echo "$as_me:$LINENO: result: no" >&5
43474echo "${ECHO_T}no" >&6
43475 no_cppunit=yes
43476 fi
43477 fi
43478
43479 if test "x$no_cppunit" = x ; then
c2218763 43480 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
43481 else
43482 CPPUNIT_CFLAGS=""
43483 CPPUNIT_LIBS=""
c2218763 43484 :
a848cd7e
SC
43485 fi
43486
43487
43488
43489
43490
43491for subdir in `echo $SUBDIRS`; do
43492 if test -d ${srcdir}/${subdir} ; then
43493 if test "$wxUSE_GUI" = "yes"; then
43494 if test ${subdir} = "samples"; then
43495 makefiles="samples/Makefile.in $makefiles"
43496 for sample in `echo $SAMPLES_SUBDIRS`; do
43497 if test -d $srcdir/samples/$sample; then
43498 makefiles="samples/$sample/Makefile.in $makefiles"
43499 fi
43500 done
43501 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
43502 fi
43503 else if test ${subdir} = "samples"; then
43504 makefiles="samples/Makefile.in samples/console/Makefile.in"
43505 elif test ${subdir} = "utils"; then
6537ccf8
VS
43506 makefiles=""
43507 for util in HelpGen tex2rtf ; do
43508 if test -d $srcdir/utils/$util ; then
43509 makefiles="utils/$util/Makefile.in \
43510 utils/$util/src/Makefile.in \
43511 $makefiles"
43512 fi
43513 done
a848cd7e
SC
43514 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
43515 fi
43516 fi
43517
43518 for mkin in $makefiles ; do
43519 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
43520 ac_config_files="$ac_config_files $mk"
43521
43522 done
43523 fi
43524done
43525
43526
43527cat >confcache <<\_ACEOF
43528# This file is a shell script that caches the results of configure
43529# tests run on this system so they can be shared between configure
43530# scripts and configure runs, see configure's option --config-cache.
43531# It is not useful on other systems. If it contains results you don't
43532# want to keep, you may remove or edit it.
43533#
43534# config.status only pays attention to the cache file if you give it
43535# the --recheck option to rerun configure.
43536#
43537# `ac_cv_env_foo' variables (set or unset) will be overridden when
43538# loading this file, other *unset* `ac_cv_foo' will be assigned the
43539# following values.
43540
43541_ACEOF
43542
43543# The following way of writing the cache mishandles newlines in values,
43544# but we know of no workaround that is simple, portable, and efficient.
43545# So, don't put newlines in cache variables' values.
43546# Ultrix sh set writes to stderr and can't be redirected directly,
43547# and sets the high bit in the cache file unless we assign to the vars.
43548{
43549 (set) 2>&1 |
43550 case `(ac_space=' '; set | grep ac_space) 2>&1` in
43551 *ac_space=\ *)
43552 # `set' does not quote correctly, so add quotes (double-quote
43553 # substitution turns \\\\ into \\, and sed turns \\ into \).
43554 sed -n \
ac1cb8d3
VS
43555 "s/'/'\\\\''/g;
43556 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
43557 ;;
43558 *)
43559 # `set' quotes correctly as required by POSIX, so do not add quotes.
43560 sed -n \
ac1cb8d3 43561 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
43562 ;;
43563 esac;
43564} |
43565 sed '
43566 t clear
43567 : clear
43568 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
43569 t end
43570 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
43571 : end' >>confcache
43572if diff $cache_file confcache >/dev/null 2>&1; then :; else
43573 if test -w $cache_file; then
43574 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
43575 cat confcache >$cache_file
43576 else
43577 echo "not updating unwritable cache $cache_file"
43578 fi
43579fi
43580rm -f confcache
43581
43582test "x$prefix" = xNONE && prefix=$ac_default_prefix
43583# Let make expand exec_prefix.
43584test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
43585
43586# VPATH may cause trouble with some makes, so we remove $(srcdir),
43587# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
43588# trailing colons and then remove the whole line if VPATH becomes empty
43589# (actually we leave an empty line to preserve line numbers).
43590if test "x$srcdir" = x.; then
ac1cb8d3 43591 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
43592s/:*\$(srcdir):*/:/;
43593s/:*\${srcdir}:*/:/;
43594s/:*@srcdir@:*/:/;
ac1cb8d3 43595s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 43596s/:*$//;
ac1cb8d3 43597s/^[^=]*=[ ]*$//;
a848cd7e
SC
43598}'
43599fi
43600
43601DEFS=-DHAVE_CONFIG_H
43602
43603ac_libobjs=
43604ac_ltlibobjs=
43605for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
43606 # 1. Remove the extension, and $U if already installed.
43607 ac_i=`echo "$ac_i" |
ac1cb8d3 43608 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
43609 # 2. Add them.
43610 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
43611 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
43612done
43613LIBOBJS=$ac_libobjs
43614
43615LTLIBOBJS=$ac_ltlibobjs
43616
43617
43618
43619: ${CONFIG_STATUS=./config.status}
43620ac_clean_files_save=$ac_clean_files
43621ac_clean_files="$ac_clean_files $CONFIG_STATUS"
43622{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
43623echo "$as_me: creating $CONFIG_STATUS" >&6;}
43624cat >$CONFIG_STATUS <<_ACEOF
43625#! $SHELL
43626# Generated by $as_me.
43627# Run this file to recreate the current configuration.
43628# Compiler output produced by configure, useful for debugging
43629# configure, is in config.log if it exists.
43630
43631debug=false
43632ac_cs_recheck=false
43633ac_cs_silent=false
43634SHELL=\${CONFIG_SHELL-$SHELL}
43635_ACEOF
43636
43637cat >>$CONFIG_STATUS <<\_ACEOF
43638## --------------------- ##
43639## M4sh Initialization. ##
43640## --------------------- ##
43641
43642# Be Bourne compatible
43643if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
43644 emulate sh
43645 NULLCMD=:
43646 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
43647 # is contrary to our usage. Disable this feature.
43648 alias -g '${1+"$@"}'='"$@"'
43649elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
43650 set -o posix
43651fi
ac1cb8d3 43652DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
43653
43654# Support unset when possible.
ac1cb8d3 43655if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
43656 as_unset=unset
43657else
43658 as_unset=false
43659fi
43660
43661
43662# Work around bugs in pre-3.0 UWIN ksh.
43663$as_unset ENV MAIL MAILPATH
43664PS1='$ '
43665PS2='> '
43666PS4='+ '
43667
43668# NLS nuisances.
43669for as_var in \
43670 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43671 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43672 LC_TELEPHONE LC_TIME
43673do
ac1cb8d3 43674 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
43675 eval $as_var=C; export $as_var
43676 else
43677 $as_unset $as_var
43678 fi
43679done
43680
43681# Required to use basename.
43682if expr a : '\(a\)' >/dev/null 2>&1; then
43683 as_expr=expr
43684else
43685 as_expr=false
43686fi
43687
43688if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
43689 as_basename=basename
43690else
43691 as_basename=false
43692fi
43693
43694
43695# Name of the executable.
43696as_me=`$as_basename "$0" ||
43697$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
43698 X"$0" : 'X\(//\)$' \| \
43699 X"$0" : 'X\(/\)$' \| \
43700 . : '\(.\)' 2>/dev/null ||
43701echo X/"$0" |
43702 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
43703 /^X\/\(\/\/\)$/{ s//\1/; q; }
43704 /^X\/\(\/\).*/{ s//\1/; q; }
43705 s/.*/./; q'`
43706
43707
43708# PATH needs CR, and LINENO needs CR and PATH.
43709# Avoid depending upon Character Ranges.
43710as_cr_letters='abcdefghijklmnopqrstuvwxyz'
43711as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43712as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43713as_cr_digits='0123456789'
43714as_cr_alnum=$as_cr_Letters$as_cr_digits
43715
43716# The user is always right.
43717if test "${PATH_SEPARATOR+set}" != set; then
43718 echo "#! /bin/sh" >conf$$.sh
43719 echo "exit 0" >>conf$$.sh
43720 chmod +x conf$$.sh
43721 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
43722 PATH_SEPARATOR=';'
43723 else
43724 PATH_SEPARATOR=:
43725 fi
43726 rm -f conf$$.sh
43727fi
43728
43729
43730 as_lineno_1=$LINENO
43731 as_lineno_2=$LINENO
43732 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
43733 test "x$as_lineno_1" != "x$as_lineno_2" &&
43734 test "x$as_lineno_3" = "x$as_lineno_2" || {
43735 # Find who we are. Look in the path if we contain no path at all
43736 # relative or not.
43737 case $0 in
43738 *[\\/]* ) as_myself=$0 ;;
43739 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43740for as_dir in $PATH
43741do
43742 IFS=$as_save_IFS
43743 test -z "$as_dir" && as_dir=.
43744 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
43745done
43746
43747 ;;
43748 esac
43749 # We did not find ourselves, most probably we were run as `sh COMMAND'
43750 # in which case we are not to be found in the path.
43751 if test "x$as_myself" = x; then
43752 as_myself=$0
43753 fi
43754 if test ! -f "$as_myself"; then
43755 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
43756echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
43757 { (exit 1); exit 1; }; }
43758 fi
43759 case $CONFIG_SHELL in
43760 '')
43761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43762for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
43763do
43764 IFS=$as_save_IFS
43765 test -z "$as_dir" && as_dir=.
43766 for as_base in sh bash ksh sh5; do
43767 case $as_dir in
43768 /*)
43769 if ("$as_dir/$as_base" -c '
43770 as_lineno_1=$LINENO
43771 as_lineno_2=$LINENO
43772 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
43773 test "x$as_lineno_1" != "x$as_lineno_2" &&
43774 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
43775 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
43776 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
43777 CONFIG_SHELL=$as_dir/$as_base
43778 export CONFIG_SHELL
43779 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
43780 fi;;
43781 esac
43782 done
43783done
43784;;
43785 esac
43786
43787 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
43788 # uniformly replaced by the line number. The first 'sed' inserts a
43789 # line-number line before each line; the second 'sed' does the real
43790 # work. The second script uses 'N' to pair each line-number line
43791 # with the numbered line, and appends trailing '-' during
43792 # substitution so that $LINENO is not a special case at line end.
43793 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
43794 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
43795 sed '=' <$as_myself |
43796 sed '
43797 N
43798 s,$,-,
43799 : loop
43800 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
43801 t loop
43802 s,-$,,
43803 s,^['$as_cr_digits']*\n,,
43804 ' >$as_me.lineno &&
43805 chmod +x $as_me.lineno ||
43806 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
43807echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
43808 { (exit 1); exit 1; }; }
43809
43810 # Don't try to exec as it changes $[0], causing all sort of problems
43811 # (the dirname of $[0] is not the place where we might find the
43812 # original and so on. Autoconf is especially sensible to this).
43813 . ./$as_me.lineno
43814 # Exit status is that of the last command.
43815 exit
43816}
43817
43818
43819case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
43820 *c*,-n*) ECHO_N= ECHO_C='
43821' ECHO_T=' ' ;;
43822 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
43823 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
43824esac
43825
43826if expr a : '\(a\)' >/dev/null 2>&1; then
43827 as_expr=expr
43828else
43829 as_expr=false
43830fi
43831
43832rm -f conf$$ conf$$.exe conf$$.file
43833echo >conf$$.file
43834if ln -s conf$$.file conf$$ 2>/dev/null; then
43835 # We could just check for DJGPP; but this test a) works b) is more generic
43836 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
43837 if test -f conf$$.exe; then
43838 # Don't use ln at all; we don't have any links
43839 as_ln_s='cp -p'
43840 else
43841 as_ln_s='ln -s'
43842 fi
43843elif ln conf$$.file conf$$ 2>/dev/null; then
43844 as_ln_s=ln
43845else
43846 as_ln_s='cp -p'
43847fi
43848rm -f conf$$ conf$$.exe conf$$.file
43849
43850if mkdir -p . 2>/dev/null; then
43851 as_mkdir_p=:
43852else
ac1cb8d3 43853 test -d ./-p && rmdir ./-p
a848cd7e
SC
43854 as_mkdir_p=false
43855fi
43856
43857as_executable_p="test -f"
43858
43859# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 43860as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
43861
43862# Sed expression to map a string onto a valid variable name.
ac1cb8d3 43863as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
43864
43865
43866# IFS
43867# We need space, tab and new line, in precisely that order.
43868as_nl='
43869'
43870IFS=" $as_nl"
43871
43872# CDPATH.
43873$as_unset CDPATH
43874
43875exec 6>&1
43876
43877# Open the log real soon, to keep \$[0] and so on meaningful, and to
43878# report actual input values of CONFIG_FILES etc. instead of their
43879# values after options handling. Logging --version etc. is OK.
43880exec 5>>config.log
43881{
43882 echo
43883 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43884## Running $as_me. ##
43885_ASBOX
43886} >&5
43887cat >&5 <<_CSEOF
43888
63c4f6da 43889This file was extended by wxWidgets $as_me 2.5.5, which was
ac1cb8d3 43890generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
43891
43892 CONFIG_FILES = $CONFIG_FILES
43893 CONFIG_HEADERS = $CONFIG_HEADERS
43894 CONFIG_LINKS = $CONFIG_LINKS
43895 CONFIG_COMMANDS = $CONFIG_COMMANDS
43896 $ $0 $@
43897
43898_CSEOF
43899echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
43900echo >&5
43901_ACEOF
43902
43903# Files that config.status was made for.
43904if test -n "$ac_config_files"; then
43905 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
43906fi
43907
43908if test -n "$ac_config_headers"; then
43909 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
43910fi
43911
43912if test -n "$ac_config_links"; then
43913 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
43914fi
43915
43916if test -n "$ac_config_commands"; then
43917 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
43918fi
43919
43920cat >>$CONFIG_STATUS <<\_ACEOF
43921
43922ac_cs_usage="\
43923\`$as_me' instantiates files from templates according to the
43924current configuration.
43925
43926Usage: $0 [OPTIONS] [FILE]...
43927
43928 -h, --help print this help, then exit
43929 -V, --version print version number, then exit
43930 -q, --quiet do not print progress messages
43931 -d, --debug don't remove temporary files
43932 --recheck update $as_me by reconfiguring in the same conditions
43933 --file=FILE[:TEMPLATE]
ac1cb8d3 43934 instantiate the configuration file FILE
a848cd7e 43935 --header=FILE[:TEMPLATE]
ac1cb8d3 43936 instantiate the configuration header FILE
a848cd7e
SC
43937
43938Configuration files:
43939$config_files
43940
43941Configuration headers:
43942$config_headers
43943
43944Configuration commands:
43945$config_commands
43946
43947Report bugs to <bug-autoconf@gnu.org>."
43948_ACEOF
43949
43950cat >>$CONFIG_STATUS <<_ACEOF
43951ac_cs_version="\\
63c4f6da 43952wxWidgets config.status 2.5.5
ac1cb8d3 43953configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
43954 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
43955
ac1cb8d3 43956Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
43957This config.status script is free software; the Free Software Foundation
43958gives unlimited permission to copy, distribute and modify it."
43959srcdir=$srcdir
43960INSTALL="$INSTALL"
43961_ACEOF
43962
43963cat >>$CONFIG_STATUS <<\_ACEOF
43964# If no file are specified by the user, then we need to provide default
43965# value. By we need to know if files were specified by the user.
43966ac_need_defaults=:
43967while test $# != 0
43968do
43969 case $1 in
43970 --*=*)
43971 ac_option=`expr "x$1" : 'x\([^=]*\)='`
43972 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
43973 ac_shift=:
43974 ;;
43975 -*)
43976 ac_option=$1
43977 ac_optarg=$2
43978 ac_shift=shift
43979 ;;
43980 *) # This is not an option, so the user has probably given explicit
43981 # arguments.
43982 ac_option=$1
43983 ac_need_defaults=false;;
43984 esac
43985
43986 case $ac_option in
43987 # Handling of the options.
43988_ACEOF
43989cat >>$CONFIG_STATUS <<\_ACEOF
43990 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43991 ac_cs_recheck=: ;;
43992 --version | --vers* | -V )
43993 echo "$ac_cs_version"; exit 0 ;;
43994 --he | --h)
43995 # Conflict between --help and --header
43996 { { echo "$as_me:$LINENO: error: ambiguous option: $1
43997Try \`$0 --help' for more information." >&5
43998echo "$as_me: error: ambiguous option: $1
43999Try \`$0 --help' for more information." >&2;}
44000 { (exit 1); exit 1; }; };;
44001 --help | --hel | -h )
44002 echo "$ac_cs_usage"; exit 0 ;;
44003 --debug | --d* | -d )
44004 debug=: ;;
44005 --file | --fil | --fi | --f )
44006 $ac_shift
44007 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44008 ac_need_defaults=false;;
44009 --header | --heade | --head | --hea )
44010 $ac_shift
44011 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44012 ac_need_defaults=false;;
44013 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44014 | -silent | --silent | --silen | --sile | --sil | --si | --s)
44015 ac_cs_silent=: ;;
44016
44017 # This is an error.
44018 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
44019Try \`$0 --help' for more information." >&5
44020echo "$as_me: error: unrecognized option: $1
44021Try \`$0 --help' for more information." >&2;}
44022 { (exit 1); exit 1; }; } ;;
44023
44024 *) ac_config_targets="$ac_config_targets $1" ;;
44025
44026 esac
44027 shift
44028done
44029
44030ac_configure_extra_args=
44031
44032if $ac_cs_silent; then
44033 exec 6>/dev/null
44034 ac_configure_extra_args="$ac_configure_extra_args --silent"
44035fi
44036
44037_ACEOF
44038cat >>$CONFIG_STATUS <<_ACEOF
44039if \$ac_cs_recheck; then
44040 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44041 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44042fi
44043
44044_ACEOF
44045
44046cat >>$CONFIG_STATUS <<_ACEOF
44047#
44048# INIT-COMMANDS section.
44049#
44050
ceec2216
RL
44051 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44052 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44053 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
44054 LN_S="${LN_S}"
a848cd7e
SC
44055
44056
44057_ACEOF
44058
44059
44060
44061cat >>$CONFIG_STATUS <<\_ACEOF
44062for ac_config_target in $ac_config_targets
44063do
44064 case "$ac_config_target" in
44065 # Handling of arguments.
ceec2216
RL
44066 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
44067 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
44068 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
44069 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
44070 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
44071 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
44072 "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
a848cd7e
SC
44073 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
44074echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
44075 { (exit 1); exit 1; }; };;
44076 esac
44077done
44078
44079# If the user did not use the arguments to specify the items to instantiate,
44080# then the envvar interface is used. Set only those that are not.
44081# We use the long form for the default assignment because of an extremely
44082# bizarre bug on SunOS 4.1.3.
44083if $ac_need_defaults; then
44084 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
44085 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
44086 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
44087fi
44088
44089# Have a temporary directory for convenience. Make it in the build tree
44090# simply because there is no reason to put it here, and in addition,
44091# creating and moving files from /tmp can sometimes cause problems.
44092# Create a temporary directory, and hook for its removal unless debugging.
44093$debug ||
44094{
44095 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
44096 trap '{ (exit 1); exit 1; }' 1 2 13 15
44097}
44098
44099# Create a (secure) tmp directory for tmp files.
44100
44101{
44102 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
44103 test -n "$tmp" && test -d "$tmp"
44104} ||
44105{
44106 tmp=./confstat$$-$RANDOM
44107 (umask 077 && mkdir $tmp)
44108} ||
44109{
44110 echo "$me: cannot create a temporary directory in ." >&2
44111 { (exit 1); exit 1; }
44112}
44113
44114_ACEOF
44115
44116cat >>$CONFIG_STATUS <<_ACEOF
44117
44118#
44119# CONFIG_FILES section.
44120#
44121
44122# No need to generate the scripts if there are no CONFIG_FILES.
44123# This happens for instance when ./config.status config.h
44124if test -n "\$CONFIG_FILES"; then
44125 # Protect against being on the right side of a sed subst in config.status.
44126 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
44127 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
44128s,@SHELL@,$SHELL,;t t
44129s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
44130s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
44131s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
44132s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
44133s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
44134s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
44135s,@exec_prefix@,$exec_prefix,;t t
44136s,@prefix@,$prefix,;t t
44137s,@program_transform_name@,$program_transform_name,;t t
44138s,@bindir@,$bindir,;t t
44139s,@sbindir@,$sbindir,;t t
44140s,@libexecdir@,$libexecdir,;t t
44141s,@datadir@,$datadir,;t t
44142s,@sysconfdir@,$sysconfdir,;t t
44143s,@sharedstatedir@,$sharedstatedir,;t t
44144s,@localstatedir@,$localstatedir,;t t
44145s,@libdir@,$libdir,;t t
44146s,@includedir@,$includedir,;t t
44147s,@oldincludedir@,$oldincludedir,;t t
44148s,@infodir@,$infodir,;t t
44149s,@mandir@,$mandir,;t t
44150s,@build_alias@,$build_alias,;t t
44151s,@host_alias@,$host_alias,;t t
44152s,@target_alias@,$target_alias,;t t
44153s,@DEFS@,$DEFS,;t t
44154s,@ECHO_C@,$ECHO_C,;t t
44155s,@ECHO_N@,$ECHO_N,;t t
44156s,@ECHO_T@,$ECHO_T,;t t
44157s,@LIBS@,$LIBS,;t t
44158s,@build@,$build,;t t
44159s,@build_cpu@,$build_cpu,;t t
44160s,@build_vendor@,$build_vendor,;t t
44161s,@build_os@,$build_os,;t t
44162s,@host@,$host,;t t
44163s,@host_cpu@,$host_cpu,;t t
44164s,@host_vendor@,$host_vendor,;t t
44165s,@host_os@,$host_os,;t t
44166s,@target@,$target,;t t
44167s,@target_cpu@,$target_cpu,;t t
44168s,@target_vendor@,$target_vendor,;t t
44169s,@target_os@,$target_os,;t t
44170s,@CC@,$CC,;t t
44171s,@CFLAGS@,$CFLAGS,;t t
44172s,@LDFLAGS@,$LDFLAGS,;t t
44173s,@CPPFLAGS@,$CPPFLAGS,;t t
44174s,@ac_ct_CC@,$ac_ct_CC,;t t
44175s,@EXEEXT@,$EXEEXT,;t t
44176s,@OBJEXT@,$OBJEXT,;t t
44177s,@CPP@,$CPP,;t t
44178s,@EGREP@,$EGREP,;t t
44179s,@CXX@,$CXX,;t t
44180s,@CXXFLAGS@,$CXXFLAGS,;t t
44181s,@ac_ct_CXX@,$ac_ct_CXX,;t t
44182s,@RANLIB@,$RANLIB,;t t
44183s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
44184s,@AR@,$AR,;t t
44185s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
44186s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
44187s,@INSTALL_DATA@,$INSTALL_DATA,;t t
44188s,@STRIP@,$STRIP,;t t
44189s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
44190s,@LN_S@,$LN_S,;t t
44191s,@CXXCPP@,$CXXCPP,;t t
44192s,@subdirs@,$subdirs,;t t
44193s,@PKG_CONFIG@,$PKG_CONFIG,;t t
44194s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
44195s,@GTK_LIBS@,$GTK_LIBS,;t t
44196s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
44197s,@X_CFLAGS@,$X_CFLAGS,;t t
44198s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
44199s,@X_LIBS@,$X_LIBS,;t t
44200s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
44201s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
44202s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
44203s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
44204s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
44205s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
44206s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
44207s,@RESCOMP@,$RESCOMP,;t t
44208s,@DEREZ@,$DEREZ,;t t
44209s,@SETFILE@,$SETFILE,;t t
44210s,@LIBICONV@,$LIBICONV,;t t
44211s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
44212s,@SDL_CONFIG@,$SDL_CONFIG,;t t
44213s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
44214s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
44215s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
44216s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
44217s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
44218s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
44219s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
44220s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
44221s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
44222s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
44223s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
44224s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
44225s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
44226s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
44227s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
44228s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
44229s,@VENDOR@,$VENDOR,;t t
44230s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
44231s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
44232s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
44233s,@WXUNIV@,$WXUNIV,;t t
44234s,@MONOLITHIC@,$MONOLITHIC,;t t
44235s,@USE_PLUGINS@,$USE_PLUGINS,;t t
44236s,@EXTRALIBS@,$EXTRALIBS,;t t
44237s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
44238s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
44239s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
44240s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
44241s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
44242s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
44243s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 44244s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
44245s,@UNICODE@,$UNICODE,;t t
44246s,@BUILD@,$BUILD,;t t
44247s,@DEBUG_INFO@,$DEBUG_INFO,;t t
44248s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
44249s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
44250s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
44251s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
44252s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
44253s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
44254s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
44255s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
44256s,@SET_MAKE@,$SET_MAKE,;t t
44257s,@MAKE_SET@,$MAKE_SET,;t t
44258s,@ac_ct_AR@,$ac_ct_AR,;t t
44259s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
44260s,@NM@,$NM,;t t
44261s,@ac_ct_NM@,$ac_ct_NM,;t t
44262s,@INSTALL_DIR@,$INSTALL_DIR,;t t
44263s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
44264s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
44265s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
44266s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
44267s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 44268s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
44269s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
44270s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 44271s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
44272s,@SO_SUFFIX@,$SO_SUFFIX,;t t
44273s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
44274s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
44275s,@LIBPREFIX@,$LIBPREFIX,;t t
44276s,@LIBEXT@,$LIBEXT,;t t
44277s,@DLLPREFIX@,$DLLPREFIX,;t t
44278s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
44279s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
44280s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
44281s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
44282s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
44283s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
44284s,@PIC_FLAG@,$PIC_FLAG,;t t
44285s,@USE_SOVERSION@,$USE_SOVERSION,;t t
44286s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
44287s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
44288s,@USE_MACVERSION@,$USE_MACVERSION,;t t
44289s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
44290s,@SONAME_FLAG@,$SONAME_FLAG,;t t
44291s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
44292s,@GCC_PCH@,$GCC_PCH,;t t
44293s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
44294s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
44295s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
44296s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
44297s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
44298s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
44299s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
44300s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
44301s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
44302s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
44303s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
44304s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
44305s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
44306s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
44307s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
44308s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
44309s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
44310s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 44311s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1,;t t
a848cd7e 44312s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
6671c68b 44313s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1,;t t
a848cd7e 44314s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 44315s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
44316s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
44317s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 44318s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1,;t t
a848cd7e 44319s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
6671c68b 44320s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1,;t t
a848cd7e 44321s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 44322s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
44323s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
44324s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
44325s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
44326s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
44327s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
44328s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
44329s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
44330s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 44331s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
44332s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
44333s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
44334s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 44335s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 44336s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
ebee3cd0
VS
44337s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
44338s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
44339s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
44340s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 44341s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
a848cd7e
SC
44342s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
44343s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
44344s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
44345s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
44346s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
44347s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
44348s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
44349s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
44350s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
44351s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
44352s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
44353s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
44354s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
44355s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
44356s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
44357s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
44358s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
44359s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
44360s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
44361s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
44362s,@COND_SHARED_1@,$COND_SHARED_1,;t t
44363s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
a30f955f 44364s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 44365s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 44366s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
44367s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
44368s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
44369s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
44370s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
44371s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
44372s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
44373s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
44374s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
44375s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
44376s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
44377s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
44378s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
44379s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
44380s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
44381s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
44382s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
44383s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
44384s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
44385s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
44386s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
44387s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
44388s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
44389s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
44390s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
44391s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
44392s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
44393s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
44394s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
44395s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
44396s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
44397s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
44398s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
44399s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 44400s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 44401s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 44402s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
44403s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
44404s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e
SC
44405s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
44406s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
44407s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
44408s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
44409s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
44410s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 44411s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 44412s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 44413s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
44414s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
44415s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
44416s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
44417s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
44418s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
44419s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
44420s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
44421s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 44422s,@SHARED@,$SHARED,;t t
a848cd7e
SC
44423s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
44424s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
44425s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
44426s,@USE_GUI@,$USE_GUI,;t t
44427s,@AFMINSTALL@,$AFMINSTALL,;t t
44428s,@WIN32INSTALL@,$WIN32INSTALL,;t t
44429s,@TOOLKIT@,$TOOLKIT,;t t
44430s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 44431s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 44432s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
44433s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
44434s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 44435s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
44436s,@WIDGET_SET@,$WIDGET_SET,;t t
44437s,@WX_RELEASE@,$WX_RELEASE,;t t
44438s,@WX_VERSION@,$WX_VERSION,;t t
44439s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
44440s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
44441s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 44442s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
44443s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
44444s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
44445s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
44446s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 44447s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
44448s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
44449s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 44450s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 44451s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
44452s,@DISTDIR@,$DISTDIR,;t t
44453s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
44454s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
44455s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
44456s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
44457s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
44458s,@RESFLAGS@,$RESFLAGS,;t t
44459s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
44460s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
44461s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
44462s,@LIBWXMACRES@,$LIBWXMACRES,;t t
44463s,@MACRESCOMP@,$MACRESCOMP,;t t
44464s,@MACSETFILE@,$MACSETFILE,;t t
44465s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
44466s,@GCC@,$GCC,;t t
a848cd7e 44467s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
44468s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
44469s,@LIBOBJS@,$LIBOBJS,;t t
44470s,@LTLIBOBJS@,$LTLIBOBJS,;t t
44471CEOF
44472
44473_ACEOF
44474
44475 cat >>$CONFIG_STATUS <<\_ACEOF
44476 # Split the substitutions into bite-sized pieces for seds with
44477 # small command number limits, like on Digital OSF/1 and HP-UX.
44478 ac_max_sed_lines=48
44479 ac_sed_frag=1 # Number of current file.
44480 ac_beg=1 # First line for current file.
44481 ac_end=$ac_max_sed_lines # Line after last line for current file.
44482 ac_more_lines=:
44483 ac_sed_cmds=
44484 while $ac_more_lines; do
44485 if test $ac_beg -gt 1; then
44486 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44487 else
44488 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44489 fi
44490 if test ! -s $tmp/subs.frag; then
44491 ac_more_lines=false
44492 else
44493 # The purpose of the label and of the branching condition is to
44494 # speed up the sed processing (if there are no `@' at all, there
44495 # is no need to browse any of the substitutions).
44496 # These are the two extra sed commands mentioned above.
44497 (echo ':t
44498 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
44499 if test -z "$ac_sed_cmds"; then
ac1cb8d3 44500 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 44501 else
ac1cb8d3 44502 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
44503 fi
44504 ac_sed_frag=`expr $ac_sed_frag + 1`
44505 ac_beg=$ac_end
44506 ac_end=`expr $ac_end + $ac_max_sed_lines`
44507 fi
44508 done
44509 if test -z "$ac_sed_cmds"; then
44510 ac_sed_cmds=cat
44511 fi
44512fi # test -n "$CONFIG_FILES"
44513
44514_ACEOF
44515cat >>$CONFIG_STATUS <<\_ACEOF
44516for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
44517 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
44518 case $ac_file in
44519 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
44520 cat >$tmp/stdin
44521 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44522 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 44523 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 44524 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
44525 * ) ac_file_in=$ac_file.in ;;
44526 esac
44527
44528 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
44529 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
44530$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44531 X"$ac_file" : 'X\(//\)[^/]' \| \
44532 X"$ac_file" : 'X\(//\)$' \| \
44533 X"$ac_file" : 'X\(/\)' \| \
44534 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44535echo X"$ac_file" |
44536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44537 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44538 /^X\(\/\/\)$/{ s//\1/; q; }
44539 /^X\(\/\).*/{ s//\1/; q; }
44540 s/.*/./; q'`
44541 { if $as_mkdir_p; then
44542 mkdir -p "$ac_dir"
44543 else
44544 as_dir="$ac_dir"
44545 as_dirs=
44546 while test ! -d "$as_dir"; do
44547 as_dirs="$as_dir $as_dirs"
44548 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44549$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44550 X"$as_dir" : 'X\(//\)[^/]' \| \
44551 X"$as_dir" : 'X\(//\)$' \| \
44552 X"$as_dir" : 'X\(/\)' \| \
44553 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44554echo X"$as_dir" |
44555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44556 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44557 /^X\(\/\/\)$/{ s//\1/; q; }
44558 /^X\(\/\).*/{ s//\1/; q; }
44559 s/.*/./; q'`
44560 done
44561 test ! -n "$as_dirs" || mkdir $as_dirs
44562 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44563echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44564 { (exit 1); exit 1; }; }; }
44565
44566 ac_builddir=.
44567
44568if test "$ac_dir" != .; then
44569 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44570 # A "../" for each directory in $ac_dir_suffix.
44571 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44572else
44573 ac_dir_suffix= ac_top_builddir=
44574fi
44575
44576case $srcdir in
44577 .) # No --srcdir option. We are building in place.
44578 ac_srcdir=.
44579 if test -z "$ac_top_builddir"; then
44580 ac_top_srcdir=.
44581 else
44582 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44583 fi ;;
44584 [\\/]* | ?:[\\/]* ) # Absolute path.
44585 ac_srcdir=$srcdir$ac_dir_suffix;
44586 ac_top_srcdir=$srcdir ;;
44587 *) # Relative path.
44588 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44589 ac_top_srcdir=$ac_top_builddir$srcdir ;;
44590esac
ac1cb8d3
VS
44591
44592# Do not use `cd foo && pwd` to compute absolute paths, because
44593# the directories may not exist.
44594case `pwd` in
44595.) ac_abs_builddir="$ac_dir";;
44596*)
44597 case "$ac_dir" in
44598 .) ac_abs_builddir=`pwd`;;
44599 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44600 *) ac_abs_builddir=`pwd`/"$ac_dir";;
44601 esac;;
44602esac
44603case $ac_abs_builddir in
44604.) ac_abs_top_builddir=${ac_top_builddir}.;;
44605*)
44606 case ${ac_top_builddir}. in
44607 .) ac_abs_top_builddir=$ac_abs_builddir;;
44608 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44609 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44610 esac;;
44611esac
44612case $ac_abs_builddir in
44613.) ac_abs_srcdir=$ac_srcdir;;
44614*)
44615 case $ac_srcdir in
44616 .) ac_abs_srcdir=$ac_abs_builddir;;
44617 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44618 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44619 esac;;
44620esac
44621case $ac_abs_builddir in
44622.) ac_abs_top_srcdir=$ac_top_srcdir;;
44623*)
44624 case $ac_top_srcdir in
44625 .) ac_abs_top_srcdir=$ac_abs_builddir;;
44626 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44627 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44628 esac;;
44629esac
a848cd7e
SC
44630
44631
44632 case $INSTALL in
44633 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
44634 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
44635 esac
44636
a848cd7e
SC
44637 # Let's still pretend it is `configure' which instantiates (i.e., don't
44638 # use $as_me), people would be surprised to read:
44639 # /* config.h. Generated by config.status. */
44640 if test x"$ac_file" = x-; then
44641 configure_input=
44642 else
44643 configure_input="$ac_file. "
44644 fi
44645 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 44646 sed 's,.*/,,'` by configure."
a848cd7e
SC
44647
44648 # First look for the input files in the build tree, otherwise in the
44649 # src tree.
44650 ac_file_inputs=`IFS=:
44651 for f in $ac_file_in; do
44652 case $f in
44653 -) echo $tmp/stdin ;;
44654 [\\/$]*)
ac1cb8d3
VS
44655 # Absolute (can't be DOS-style, as IFS=:)
44656 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44657echo "$as_me: error: cannot find input file: $f" >&2;}
44658 { (exit 1); exit 1; }; }
ac1cb8d3 44659 echo "$f";;
a848cd7e 44660 *) # Relative
ac1cb8d3
VS
44661 if test -f "$f"; then
44662 # Build tree
44663 echo "$f"
44664 elif test -f "$srcdir/$f"; then
44665 # Source tree
44666 echo "$srcdir/$f"
44667 else
44668 # /dev/null tree
44669 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44670echo "$as_me: error: cannot find input file: $f" >&2;}
44671 { (exit 1); exit 1; }; }
ac1cb8d3 44672 fi;;
a848cd7e
SC
44673 esac
44674 done` || { (exit 1); exit 1; }
07158944
VZ
44675
44676 if test x"$ac_file" != x-; then
44677 { echo "$as_me:$LINENO: creating $ac_file" >&5
44678echo "$as_me: creating $ac_file" >&6;}
44679 rm -f "$ac_file"
44680 fi
a848cd7e
SC
44681_ACEOF
44682cat >>$CONFIG_STATUS <<_ACEOF
44683 sed "$ac_vpsub
44684$extrasub
44685_ACEOF
44686cat >>$CONFIG_STATUS <<\_ACEOF
44687:t
44688/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44689s,@configure_input@,$configure_input,;t t
44690s,@srcdir@,$ac_srcdir,;t t
44691s,@abs_srcdir@,$ac_abs_srcdir,;t t
44692s,@top_srcdir@,$ac_top_srcdir,;t t
44693s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
44694s,@builddir@,$ac_builddir,;t t
44695s,@abs_builddir@,$ac_abs_builddir,;t t
44696s,@top_builddir@,$ac_top_builddir,;t t
44697s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
44698s,@INSTALL@,$ac_INSTALL,;t t
44699" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
44700 rm -f $tmp/stdin
44701 if test x"$ac_file" != x-; then
44702 mv $tmp/out $ac_file
44703 else
44704 cat $tmp/out
44705 rm -f $tmp/out
44706 fi
44707
ceec2216
RL
44708 # Run the commands associated with the file.
44709 case $ac_file in
44710 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
44711 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
44712 esac
a848cd7e
SC
44713done
44714_ACEOF
44715cat >>$CONFIG_STATUS <<\_ACEOF
44716
44717#
44718# CONFIG_HEADER section.
44719#
44720
44721# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
44722# NAME is the cpp macro being defined and VALUE is the value it is being given.
44723#
44724# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
44725ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
44726ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
44727ac_dC=' '
44728ac_dD=',;t'
44729# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 44730ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
44731ac_uB='$,\1#\2define\3'
44732ac_uC=' '
44733ac_uD=',;t'
44734
44735for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
44736 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
44737 case $ac_file in
44738 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
44739 cat >$tmp/stdin
44740 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44741 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 44742 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 44743 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
44744 * ) ac_file_in=$ac_file.in ;;
44745 esac
44746
44747 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
44748echo "$as_me: creating $ac_file" >&6;}
44749
44750 # First look for the input files in the build tree, otherwise in the
44751 # src tree.
44752 ac_file_inputs=`IFS=:
44753 for f in $ac_file_in; do
44754 case $f in
44755 -) echo $tmp/stdin ;;
44756 [\\/$]*)
ac1cb8d3
VS
44757 # Absolute (can't be DOS-style, as IFS=:)
44758 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44759echo "$as_me: error: cannot find input file: $f" >&2;}
44760 { (exit 1); exit 1; }; }
ac1cb8d3
VS
44761 # Do quote $f, to prevent DOS paths from being IFS'd.
44762 echo "$f";;
a848cd7e 44763 *) # Relative
ac1cb8d3
VS
44764 if test -f "$f"; then
44765 # Build tree
44766 echo "$f"
44767 elif test -f "$srcdir/$f"; then
44768 # Source tree
44769 echo "$srcdir/$f"
44770 else
44771 # /dev/null tree
44772 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
44773echo "$as_me: error: cannot find input file: $f" >&2;}
44774 { (exit 1); exit 1; }; }
ac1cb8d3 44775 fi;;
a848cd7e
SC
44776 esac
44777 done` || { (exit 1); exit 1; }
44778 # Remove the trailing spaces.
ac1cb8d3 44779 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
44780
44781_ACEOF
44782
44783# Transform confdefs.h into two sed scripts, `conftest.defines' and
44784# `conftest.undefs', that substitutes the proper values into
44785# config.h.in to produce config.h. The first handles `#define'
44786# templates, and the second `#undef' templates.
44787# And first: Protect against being on the right side of a sed subst in
44788# config.status. Protect against being in an unquoted here document
44789# in config.status.
44790rm -f conftest.defines conftest.undefs
44791# Using a here document instead of a string reduces the quoting nightmare.
44792# Putting comments in sed scripts is not portable.
44793#
44794# `end' is used to avoid that the second main sed command (meant for
44795# 0-ary CPP macros) applies to n-ary macro definitions.
44796# See the Autoconf documentation for `clear'.
44797cat >confdef2sed.sed <<\_ACEOF
44798s/[\\&,]/\\&/g
44799s,[\\$`],\\&,g
44800t clear
44801: clear
ac1cb8d3 44802s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 44803t end
ac1cb8d3 44804s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
44805: end
44806_ACEOF
44807# If some macros were called several times there might be several times
44808# the same #defines, which is useless. Nevertheless, we may not want to
44809# sort them, since we want the *last* AC-DEFINE to be honored.
44810uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
44811sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
44812rm -f confdef2sed.sed
44813
44814# This sed command replaces #undef with comments. This is necessary, for
44815# example, in the case of _POSIX_SOURCE, which is predefined and required
44816# on some systems where configure will not decide to define it.
44817cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 44818s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
44819_ACEOF
44820
44821# Break up conftest.defines because some shells have a limit on the size
44822# of here documents, and old seds have small limits too (100 cmds).
44823echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 44824echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
44825echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
44826echo ' :' >>$CONFIG_STATUS
44827rm -f conftest.tail
44828while grep . conftest.defines >/dev/null
44829do
44830 # Write a limited-size here document to $tmp/defines.sed.
44831 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
44832 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 44833 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
44834 # Work around the forget-to-reset-the-flag bug.
44835 echo 't clr' >>$CONFIG_STATUS
44836 echo ': clr' >>$CONFIG_STATUS
44837 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
44838 echo 'CEOF
44839 sed -f $tmp/defines.sed $tmp/in >$tmp/out
44840 rm -f $tmp/in
44841 mv $tmp/out $tmp/in
44842' >>$CONFIG_STATUS
44843 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
44844 rm -f conftest.defines
44845 mv conftest.tail conftest.defines
44846done
44847rm -f conftest.defines
44848echo ' fi # grep' >>$CONFIG_STATUS
44849echo >>$CONFIG_STATUS
44850
44851# Break up conftest.undefs because some shells have a limit on the size
44852# of here documents, and old seds have small limits too (100 cmds).
44853echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
44854rm -f conftest.tail
44855while grep . conftest.undefs >/dev/null
44856do
44857 # Write a limited-size here document to $tmp/undefs.sed.
44858 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
44859 # Speed up: don't consider the non `#undef'
ac1cb8d3 44860 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
44861 # Work around the forget-to-reset-the-flag bug.
44862 echo 't clr' >>$CONFIG_STATUS
44863 echo ': clr' >>$CONFIG_STATUS
44864 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
44865 echo 'CEOF
44866 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
44867 rm -f $tmp/in
44868 mv $tmp/out $tmp/in
44869' >>$CONFIG_STATUS
44870 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
44871 rm -f conftest.undefs
44872 mv conftest.tail conftest.undefs
44873done
44874rm -f conftest.undefs
44875
44876cat >>$CONFIG_STATUS <<\_ACEOF
44877 # Let's still pretend it is `configure' which instantiates (i.e., don't
44878 # use $as_me), people would be surprised to read:
44879 # /* config.h. Generated by config.status. */
44880 if test x"$ac_file" = x-; then
44881 echo "/* Generated by configure. */" >$tmp/config.h
44882 else
44883 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
44884 fi
44885 cat $tmp/in >>$tmp/config.h
44886 rm -f $tmp/in
44887 if test x"$ac_file" != x-; then
44888 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
44889 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
44890echo "$as_me: $ac_file is unchanged" >&6;}
44891 else
44892 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
44893$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44894 X"$ac_file" : 'X\(//\)[^/]' \| \
44895 X"$ac_file" : 'X\(//\)$' \| \
44896 X"$ac_file" : 'X\(/\)' \| \
44897 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44898echo X"$ac_file" |
44899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44900 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44901 /^X\(\/\/\)$/{ s//\1/; q; }
44902 /^X\(\/\).*/{ s//\1/; q; }
44903 s/.*/./; q'`
44904 { if $as_mkdir_p; then
44905 mkdir -p "$ac_dir"
44906 else
44907 as_dir="$ac_dir"
44908 as_dirs=
44909 while test ! -d "$as_dir"; do
44910 as_dirs="$as_dir $as_dirs"
44911 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44912$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44913 X"$as_dir" : 'X\(//\)[^/]' \| \
44914 X"$as_dir" : 'X\(//\)$' \| \
44915 X"$as_dir" : 'X\(/\)' \| \
44916 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44917echo X"$as_dir" |
44918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44919 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44920 /^X\(\/\/\)$/{ s//\1/; q; }
44921 /^X\(\/\).*/{ s//\1/; q; }
44922 s/.*/./; q'`
44923 done
44924 test ! -n "$as_dirs" || mkdir $as_dirs
44925 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44926echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44927 { (exit 1); exit 1; }; }; }
44928
44929 rm -f $ac_file
44930 mv $tmp/config.h $ac_file
44931 fi
44932 else
44933 cat $tmp/config.h
44934 rm -f $tmp/config.h
44935 fi
44936done
44937_ACEOF
44938cat >>$CONFIG_STATUS <<\_ACEOF
44939
44940#
44941# CONFIG_COMMANDS section.
44942#
44943for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
44944 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
44945 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
44946 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
44947$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
44948 X"$ac_dest" : 'X\(//\)[^/]' \| \
44949 X"$ac_dest" : 'X\(//\)$' \| \
44950 X"$ac_dest" : 'X\(/\)' \| \
44951 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
44952echo X"$ac_dest" |
44953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44954 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44955 /^X\(\/\/\)$/{ s//\1/; q; }
44956 /^X\(\/\).*/{ s//\1/; q; }
44957 s/.*/./; q'`
ac1cb8d3
VS
44958 { if $as_mkdir_p; then
44959 mkdir -p "$ac_dir"
44960 else
44961 as_dir="$ac_dir"
44962 as_dirs=
44963 while test ! -d "$as_dir"; do
44964 as_dirs="$as_dir $as_dirs"
44965 as_dir=`(dirname "$as_dir") 2>/dev/null ||
44966$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44967 X"$as_dir" : 'X\(//\)[^/]' \| \
44968 X"$as_dir" : 'X\(//\)$' \| \
44969 X"$as_dir" : 'X\(/\)' \| \
44970 . : '\(.\)' 2>/dev/null ||
44971echo X"$as_dir" |
44972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44973 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44974 /^X\(\/\/\)$/{ s//\1/; q; }
44975 /^X\(\/\).*/{ s//\1/; q; }
44976 s/.*/./; q'`
44977 done
44978 test ! -n "$as_dirs" || mkdir $as_dirs
44979 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44980echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44981 { (exit 1); exit 1; }; }; }
44982
a848cd7e
SC
44983 ac_builddir=.
44984
44985if test "$ac_dir" != .; then
44986 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44987 # A "../" for each directory in $ac_dir_suffix.
44988 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44989else
44990 ac_dir_suffix= ac_top_builddir=
44991fi
44992
44993case $srcdir in
44994 .) # No --srcdir option. We are building in place.
44995 ac_srcdir=.
44996 if test -z "$ac_top_builddir"; then
44997 ac_top_srcdir=.
44998 else
44999 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45000 fi ;;
45001 [\\/]* | ?:[\\/]* ) # Absolute path.
45002 ac_srcdir=$srcdir$ac_dir_suffix;
45003 ac_top_srcdir=$srcdir ;;
45004 *) # Relative path.
45005 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45006 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45007esac
ac1cb8d3
VS
45008
45009# Do not use `cd foo && pwd` to compute absolute paths, because
45010# the directories may not exist.
45011case `pwd` in
45012.) ac_abs_builddir="$ac_dir";;
45013*)
45014 case "$ac_dir" in
45015 .) ac_abs_builddir=`pwd`;;
45016 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45017 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45018 esac;;
45019esac
45020case $ac_abs_builddir in
45021.) ac_abs_top_builddir=${ac_top_builddir}.;;
45022*)
45023 case ${ac_top_builddir}. in
45024 .) ac_abs_top_builddir=$ac_abs_builddir;;
45025 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45026 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45027 esac;;
45028esac
45029case $ac_abs_builddir in
45030.) ac_abs_srcdir=$ac_srcdir;;
45031*)
45032 case $ac_srcdir in
45033 .) ac_abs_srcdir=$ac_abs_builddir;;
45034 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45035 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45036 esac;;
45037esac
45038case $ac_abs_builddir in
45039.) ac_abs_top_srcdir=$ac_top_srcdir;;
45040*)
45041 case $ac_top_srcdir in
45042 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45043 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45044 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45045 esac;;
45046esac
a848cd7e
SC
45047
45048
45049 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
45050echo "$as_me: executing $ac_dest commands" >&6;}
45051 case $ac_dest in
ceec2216
RL
45052 wx-config ) rm -f wx-config
45053 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
45054 ;;
a848cd7e
SC
45055 esac
45056done
45057_ACEOF
45058
45059cat >>$CONFIG_STATUS <<\_ACEOF
45060
45061{ (exit 0); exit 0; }
45062_ACEOF
45063chmod +x $CONFIG_STATUS
45064ac_clean_files=$ac_clean_files_save
45065
45066
45067# configure is writing to config.log, and then calls config.status.
45068# config.status does its own redirection, appending to config.log.
45069# Unfortunately, on DOS this fails, as config.log is still kept open
45070# by configure, so config.status won't be able to write to it; its
45071# output is simply discarded. So we exec the FD to /dev/null,
45072# effectively closing config.log, so it can be properly (re)opened and
45073# appended to by config.status. When coming back to configure, we
45074# need to make the FD available again.
45075if test "$no_create" != yes; then
45076 ac_cs_success=:
45077 ac_config_status_args=
45078 test "$silent" = yes &&
45079 ac_config_status_args="$ac_config_status_args --quiet"
45080 exec 5>/dev/null
45081 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
45082 exec 5>>config.log
45083 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
45084 # would make configure fail if this is the last instruction.
45085 $ac_cs_success || { (exit 1); exit 1; }
45086fi
45087
45088#
45089# CONFIG_SUBDIRS section.
45090#
45091if test "$no_recursion" != yes; then
45092
45093 # Remove --cache-file and --srcdir arguments so they do not pile up.
45094 ac_sub_configure_args=
45095 ac_prev=
45096 for ac_arg in $ac_configure_args; do
45097 if test -n "$ac_prev"; then
45098 ac_prev=
45099 continue
45100 fi
45101 case $ac_arg in
45102 -cache-file | --cache-file | --cache-fil | --cache-fi \
45103 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
45104 ac_prev=cache_file ;;
45105 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
45106 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
45107 | --c=*)
45108 ;;
45109 --config-cache | -C)
45110 ;;
45111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
45112 ac_prev=srcdir ;;
45113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
45114 ;;
45115 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
45116 ac_prev=prefix ;;
45117 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
45118 ;;
45119 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
45120 esac
45121 done
45122
45123 # Always prepend --prefix to ensure using the same prefix
45124 # in subdir configurations.
45125 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
45126
45127 ac_popdir=`pwd`
45128 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
45129
45130 # Do not complain, so a configure script can configure whichever
45131 # parts of a large source tree are present.
45132 test -d $srcdir/$ac_dir || continue
45133
45134 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
45135echo "$as_me: configuring in $ac_dir" >&6;}
45136 { if $as_mkdir_p; then
45137 mkdir -p "$ac_dir"
45138 else
45139 as_dir="$ac_dir"
45140 as_dirs=
45141 while test ! -d "$as_dir"; do
45142 as_dirs="$as_dir $as_dirs"
45143 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45144$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45145 X"$as_dir" : 'X\(//\)[^/]' \| \
45146 X"$as_dir" : 'X\(//\)$' \| \
45147 X"$as_dir" : 'X\(/\)' \| \
45148 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45149echo X"$as_dir" |
45150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45151 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45152 /^X\(\/\/\)$/{ s//\1/; q; }
45153 /^X\(\/\).*/{ s//\1/; q; }
45154 s/.*/./; q'`
45155 done
45156 test ! -n "$as_dirs" || mkdir $as_dirs
45157 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45158echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45159 { (exit 1); exit 1; }; }; }
45160
45161 ac_builddir=.
45162
45163if test "$ac_dir" != .; then
45164 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45165 # A "../" for each directory in $ac_dir_suffix.
45166 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45167else
45168 ac_dir_suffix= ac_top_builddir=
45169fi
45170
45171case $srcdir in
45172 .) # No --srcdir option. We are building in place.
45173 ac_srcdir=.
45174 if test -z "$ac_top_builddir"; then
45175 ac_top_srcdir=.
45176 else
45177 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45178 fi ;;
45179 [\\/]* | ?:[\\/]* ) # Absolute path.
45180 ac_srcdir=$srcdir$ac_dir_suffix;
45181 ac_top_srcdir=$srcdir ;;
45182 *) # Relative path.
45183 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45184 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45185esac
ac1cb8d3
VS
45186
45187# Do not use `cd foo && pwd` to compute absolute paths, because
45188# the directories may not exist.
45189case `pwd` in
45190.) ac_abs_builddir="$ac_dir";;
45191*)
45192 case "$ac_dir" in
45193 .) ac_abs_builddir=`pwd`;;
45194 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45195 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45196 esac;;
45197esac
45198case $ac_abs_builddir in
45199.) ac_abs_top_builddir=${ac_top_builddir}.;;
45200*)
45201 case ${ac_top_builddir}. in
45202 .) ac_abs_top_builddir=$ac_abs_builddir;;
45203 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45204 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45205 esac;;
45206esac
45207case $ac_abs_builddir in
45208.) ac_abs_srcdir=$ac_srcdir;;
45209*)
45210 case $ac_srcdir in
45211 .) ac_abs_srcdir=$ac_abs_builddir;;
45212 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45213 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45214 esac;;
45215esac
45216case $ac_abs_builddir in
45217.) ac_abs_top_srcdir=$ac_top_srcdir;;
45218*)
45219 case $ac_top_srcdir in
45220 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45221 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45222 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45223 esac;;
45224esac
a848cd7e
SC
45225
45226
45227 cd $ac_dir
45228
45229 # Check for guested configure; otherwise get Cygnus style configure.
45230 if test -f $ac_srcdir/configure.gnu; then
45231 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
45232 elif test -f $ac_srcdir/configure; then
45233 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
45234 elif test -f $ac_srcdir/configure.in; then
45235 ac_sub_configure=$ac_configure
45236 else
45237 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
45238echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
45239 ac_sub_configure=
45240 fi
45241
45242 # The recursion is here.
45243 if test -n "$ac_sub_configure"; then
45244 # Make the cache file name correct relative to the subdirectory.
45245 case $cache_file in
45246 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
45247 *) # Relative path.
ac1cb8d3 45248 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
45249 esac
45250
45251 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
45252echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
45253 # The eval makes quoting arguments work.
45254 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
45255 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
45256 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
45257echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
45258 { (exit 1); exit 1; }; }
45259 fi
45260
07158944 45261 cd "$ac_popdir"
a848cd7e
SC
45262 done
45263fi
45264
45265
45266echo
77ffb593 45267echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 45268echo ""
4d4ff94c 45269echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 45270echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 45271
77ffb593
JS
45272echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
45273echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
45274echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 45275
77ffb593
JS
45276echo " What level of wxWidgets compatibility should be enabled?"
45277echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
45278echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 45279
77ffb593 45280echo " Which libraries should wxWidgets use?"
a848cd7e
SC
45281echo " jpeg ${wxUSE_LIBJPEG-none}"
45282echo " png ${wxUSE_LIBPNG-none}"
45283echo " regex ${wxUSE_REGEX}"
45284echo " tiff ${wxUSE_LIBTIFF-none}"
45285if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
45286echo " xpm ${wxUSE_LIBXPM-none}"
45287fi
45288echo " zlib ${wxUSE_ZLIB}"
45289echo " odbc ${wxUSE_ODBC}"
45290echo " expat ${wxUSE_EXPAT}"
45291echo " libmspack ${wxUSE_LIBMSPACK}"
45292echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 45293echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
45294
45295echo ""
45296