]> git.saurik.com Git - wxWidgets.git/blame - configure
regenerated after HP-UX fixes
[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.
eb730a0c 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.6.2.
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'
eb730a0c
JS
273PACKAGE_VERSION='2.6.2'
274PACKAGE_STRING='wxWidgets 2.6.2'
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"
083508af 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 dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN 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_SOVERCYGWIN_0_USE_SOVERSION_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_MSDOS_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_USE_XRC_1 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_SHARED_1_USE_XRC_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_SOVERCYGWIN_1_USE_SOVERSION_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_WINDOWS_IMPLIB_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
eb730a0c 797\`configure' configures wxWidgets 2.6.2 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
eb730a0c 863 short | recursive ) echo "Configuration of wxWidgets 2.6.2:";;
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
f34ca037 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
59746b65 929 --enable-std_string use standard C++ string classes
07158944 930 --enable-stdpaths use wxStandardPaths class
a848cd7e 931 --enable-stopwatch use wxStopWatch class
07158944 932 --enable-streams use wxStream etc classes
a848cd7e
SC
933 --enable-sysoptions use wxSystemOptions
934 --enable-textbuf use wxTextBuffer class
935 --enable-textfile use wxTextFile class
936 --enable-timer use wxTimer class
937 --enable-unicode compile wxString with Unicode support
938 --enable-sound use wxSound class
3b57de8b 939 --enable-mediactrl use wxMediaCtrl class
77ffb593 940 --enable-wxprintfv use wxWidgets implementation of vprintf()
81f90336 941 --enable-zipstream use wxZip streams
a848cd7e
SC
942 --enable-url use wxURL class
943 --enable-protocol use wxProtocol class
944 --enable-protocol-http HTTP support in wxProtocol
945 --enable-protocol-ftp FTP support in wxProtocol
946 --enable-protocol-file FILE support in wxProtocol
947 --enable-threads use threads
948 --enable-docview use document view architecture
949 --enable-help use help subsystem
950 --enable-mshtmlhelp use MS HTML Help (win32)
951 --enable-html use wxHTML sub-library
952 --enable-htmlhelp use wxHTML-based help
9a8f0513 953 --enable-xrc use XRC resources sub-library
a848cd7e
SC
954 --enable-constraints use layout-constraints system
955 --enable-printarch use printing architecture
956 --enable-mdi use multiple document interface architecture
8a7b1113 957 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
958 --enable-loggui use standard GUI logger
959 --enable-logwin use wxLogWindow
960 --enable-logdialog use wxLogDialog
646b6ec1 961 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
962 --enable-postscript use wxPostscriptDC device context (default for gtk+)
963 --enable-prologio not available; see contrib
964 --enable-resources not available; see contrib
965 --enable-clipboard use wxClipboard class
966 --enable-dnd use Drag'n'Drop classes
967 --enable-metafile use win32 metafiles
968 --enable-controls use all usual controls
969 --enable-accel use accelerators
970 --enable-button use wxButton class
971 --enable-bmpbutton use wxBitmapButton class
972 --enable-calendar use wxCalendarCtrl class
973 --enable-caret use wxCaret class
974 --enable-checkbox use wxCheckBox class
975 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
976 --enable-choice use wxChoice class
92bbdbcd 977 --enable-choicebook use wxChoicebook class
a848cd7e 978 --enable-combobox use wxComboBox class
da98e9be 979 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
980 --enable-display use wxDisplay class
981 --enable-gauge use wxGauge class
982 --enable-grid use wxGrid class
983 --enable-imaglist use wxImageList class
984 --enable-listbook use wxListbook class
985 --enable-listbox use wxListBox class
986 --enable-listctrl use wxListCtrl class
987 --enable-notebook use wxNotebook class
988 --enable-radiobox use wxRadioBox class
989 --enable-radiobtn use wxRadioButton class
990 --enable-sash use wxSashWindow class
991 --enable-scrollbar use wxScrollBar class and scrollable windows
992 --enable-slider use wxSlider class
993 --enable-spinbtn use wxSpinButton class
994 --enable-spinctrl use wxSpinCtrl class
995 --enable-splitter use wxSplitterWindow class
996 --enable-statbmp use wxStaticBitmap class
997 --enable-statbox use wxStaticBox class
998 --enable-statline use wxStaticLine class
999 --enable-stattext use wxStaticText class
1000 --enable-statusbar use wxStatusBar class
1001 --enable-tabdialog use wxTabControl class
1002 --enable-textctrl use wxTextCtrl class
1003 --enable-togglebtn use wxToggleButton class
1004 --enable-toolbar use wxToolBar class
1005 --enable-tbarnative use native wxToolBar class
1006 --enable-tbarsmpl use wxToolBarSimple class
1007 --enable-treectrl use wxTreeCtrl class
1008 --enable-tipwindow use wxTipWindow class
1009 --enable-popupwin use wxPopUpWindow class
1010 --enable-commondlg use all common dialogs
1011 --enable-choicedlg use wxChoiceDialog
1012 --enable-coldlg use wxColourDialog
1013 --enable-filedlg use wxFileDialog
1014 --enable-finddlg use wxFindReplaceDialog
1015 --enable-fontdlg use wxFontDialog
1016 --enable-dirdlg use wxDirDialog
1017 --enable-msgdlg use wxMessageDialog
1018 --enable-numberdlg use wxNumberEntryDialog
1019 --enable-splash use wxSplashScreen
1020 --enable-textdlg use wxTextDialog
1021 --enable-tipdlg use startup tips
1022 --enable-progressdlg use wxProgressDialog
1023 --enable-wizarddlg use wxWizard
1024 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1025 --enable-miniframe use wxMiniFrame class
1026 --enable-tooltips use wxToolTip class
1027 --enable-splines use spline drawing code
fbe2ca43 1028 --enable-mousewheel use mousewheel
a848cd7e
SC
1029 --enable-validators use wxValidator and derived classes
1030 --enable-busyinfo use wxBusyInfo
4cb1d3da 1031 --enable-joystick use wxJoystick
38b4a946 1032 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1033 --enable-dragimage use wxDragImage
1034 --enable-accessibility enable accessibility support
38b4a946 1035 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1036 --enable-palette use wxPalette class
1037 --enable-image use wxImage class
1038 --enable-gif use gif images (GIF file format)
1039 --enable-pcx use pcx images (PCX file format)
1040 --enable-iff use iff images (IFF file format)
1041 --enable-pnm use pnm images (PNM file format)
1042 --enable-xpm use xpm images (XPM file format)
1043 --enable-icocur use Windows ICO and CUR formats
77ffb593 1044 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1045 --enable-vendor=VENDOR vendor name (win32 DLL only)
1046 --disable-largefile omit support for large files
1047 --disable-gtktest do not try to compile and run a test GTK+ program
1048 --disable-gtktest Do not try to compile and run a test GTK program
1049 --disable-sdltest Do not try to compile and run a test SDL program
1050 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1051 --disable-precomp-headers
1052 don't use precompiled headers even if compiler can
a848cd7e
SC
1053
1054Optional Packages:
1055 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1056 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
f34ca037 1057 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1058 --with-motif use Motif/Lesstif
1059 --with-mac use Mac OS X
1060 --with-cocoa use Cocoa
1061 --with-wine use Wine
1062 --with-msw use MS-Windows
1063 --with-pm use OS/2 Presentation Manager
1064 --with-mgl use SciTech MGL
1065 --with-microwin use MicroWindows
1066 --with-x11 use X11
1067 --with-libpng use libpng (PNG image format)
1068 --with-libjpeg use libjpeg (JPEG file format)
1069 --with-libtiff use libtiff (TIFF file format)
1070 --with-libxpm use libxpm (XPM file format)
1071 --with-libmspack use libmspack (CHM help files loading)
1072 --with-sdl use SDL for audio on Unix
d51253e8 1073 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1074 --with-opengl use OpenGL (or Mesa)
1075 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1076 --with-regex enable support for wxRegEx class
1077 --with-zlib use zlib for LZW compression
1078 --with-odbc use the IODBC and wxODBC classes
1079 --with-expat enable XML support using expat parser
ceec2216 1080 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1081 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1082 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1083 --with-x use the X Window System
1084 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1085 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1086 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1087 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1088 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1089
1090Some influential environment variables:
dcc1b6ad
VS
1091 CC C compiler command
1092 CFLAGS C compiler flags
1093 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1094 nonstandard directory <lib dir>
1095 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1096 headers in a nonstandard directory <include dir>
1097 CPP C preprocessor
1098 CXX C++ compiler command
1099 CXXFLAGS C++ compiler flags
1100 CXXCPP C++ preprocessor
a848cd7e
SC
1101
1102Use these variables to override the choices made by `configure' or to help
1103it to find libraries and programs with nonstandard names/locations.
1104
77ffb593 1105Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1106_ACEOF
1107fi
1108
1109if test "$ac_init_help" = "recursive"; then
1110 # If there are subdirs, report their specific --help.
1111 ac_popdir=`pwd`
1112 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1113 test -d $ac_dir || continue
1114 ac_builddir=.
1115
1116if test "$ac_dir" != .; then
1117 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1118 # A "../" for each directory in $ac_dir_suffix.
1119 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1120else
1121 ac_dir_suffix= ac_top_builddir=
1122fi
1123
1124case $srcdir in
1125 .) # No --srcdir option. We are building in place.
1126 ac_srcdir=.
1127 if test -z "$ac_top_builddir"; then
1128 ac_top_srcdir=.
1129 else
1130 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1131 fi ;;
1132 [\\/]* | ?:[\\/]* ) # Absolute path.
1133 ac_srcdir=$srcdir$ac_dir_suffix;
1134 ac_top_srcdir=$srcdir ;;
1135 *) # Relative path.
1136 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1137 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1138esac
ac1cb8d3
VS
1139
1140# Do not use `cd foo && pwd` to compute absolute paths, because
1141# the directories may not exist.
1142case `pwd` in
1143.) ac_abs_builddir="$ac_dir";;
1144*)
1145 case "$ac_dir" in
1146 .) ac_abs_builddir=`pwd`;;
1147 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1148 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1149 esac;;
1150esac
1151case $ac_abs_builddir in
1152.) ac_abs_top_builddir=${ac_top_builddir}.;;
1153*)
1154 case ${ac_top_builddir}. in
1155 .) ac_abs_top_builddir=$ac_abs_builddir;;
1156 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1157 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1158 esac;;
1159esac
1160case $ac_abs_builddir in
1161.) ac_abs_srcdir=$ac_srcdir;;
1162*)
1163 case $ac_srcdir in
1164 .) ac_abs_srcdir=$ac_abs_builddir;;
1165 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1166 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1167 esac;;
1168esac
1169case $ac_abs_builddir in
1170.) ac_abs_top_srcdir=$ac_top_srcdir;;
1171*)
1172 case $ac_top_srcdir in
1173 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1174 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1175 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1176 esac;;
1177esac
a848cd7e
SC
1178
1179 cd $ac_dir
1180 # Check for guested configure; otherwise get Cygnus style configure.
1181 if test -f $ac_srcdir/configure.gnu; then
1182 echo
1183 $SHELL $ac_srcdir/configure.gnu --help=recursive
1184 elif test -f $ac_srcdir/configure; then
1185 echo
1186 $SHELL $ac_srcdir/configure --help=recursive
1187 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1188 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1189 echo
1190 $ac_configure --help
1191 else
1192 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1193 fi
6ebeb4c7 1194 cd "$ac_popdir"
a848cd7e
SC
1195 done
1196fi
1197
1198test -n "$ac_init_help" && exit 0
1199if $ac_init_version; then
1200 cat <<\_ACEOF
eb730a0c 1201wxWidgets configure 2.6.2
ac1cb8d3 1202generated by GNU Autoconf 2.59
a848cd7e 1203
ac1cb8d3 1204Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1205This configure script is free software; the Free Software Foundation
1206gives unlimited permission to copy, distribute and modify it.
1207_ACEOF
1208 exit 0
1209fi
1210exec 5>config.log
1211cat >&5 <<_ACEOF
1212This file contains any messages produced by compilers while
1213running configure, to aid debugging if configure makes a mistake.
1214
eb730a0c 1215It was created by wxWidgets $as_me 2.6.2, which was
ac1cb8d3 1216generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1217
1218 $ $0 $@
1219
1220_ACEOF
1221{
1222cat <<_ASUNAME
1223## --------- ##
1224## Platform. ##
1225## --------- ##
1226
1227hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1228uname -m = `(uname -m) 2>/dev/null || echo unknown`
1229uname -r = `(uname -r) 2>/dev/null || echo unknown`
1230uname -s = `(uname -s) 2>/dev/null || echo unknown`
1231uname -v = `(uname -v) 2>/dev/null || echo unknown`
1232
1233/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1234/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1235
1236/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1237/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1238/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1239hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1240/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1241/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1242/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1243
1244_ASUNAME
1245
1246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1247for as_dir in $PATH
1248do
1249 IFS=$as_save_IFS
1250 test -z "$as_dir" && as_dir=.
1251 echo "PATH: $as_dir"
1252done
1253
1254} >&5
1255
1256cat >&5 <<_ACEOF
1257
1258
1259## ----------- ##
1260## Core tests. ##
1261## ----------- ##
1262
1263_ACEOF
1264
1265
1266# Keep a trace of the command line.
1267# Strip out --no-create and --no-recursion so they do not pile up.
1268# Strip out --silent because we don't want to record it for future runs.
1269# Also quote any args containing shell meta-characters.
1270# Make two passes to allow for proper duplicate-argument suppression.
1271ac_configure_args=
1272ac_configure_args0=
1273ac_configure_args1=
1274ac_sep=
1275ac_must_keep_next=false
1276for ac_pass in 1 2
1277do
1278 for ac_arg
1279 do
1280 case $ac_arg in
1281 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1282 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1283 | -silent | --silent | --silen | --sile | --sil)
1284 continue ;;
1285 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1286 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1287 esac
1288 case $ac_pass in
1289 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1290 2)
1291 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1292 if test $ac_must_keep_next = true; then
ac1cb8d3 1293 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1294 else
ac1cb8d3
VS
1295 case $ac_arg in
1296 *=* | --config-cache | -C | -disable-* | --disable-* \
1297 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1298 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1299 | -with-* | --with-* | -without-* | --without-* | --x)
1300 case "$ac_configure_args0 " in
1301 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1302 esac
1303 ;;
1304 -* ) ac_must_keep_next=true ;;
1305 esac
a848cd7e
SC
1306 fi
1307 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1308 # Get rid of the leading space.
1309 ac_sep=" "
1310 ;;
1311 esac
1312 done
1313done
1314$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1315$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1316
1317# When interrupted or exit'd, cleanup temporary files, and complete
1318# config.log. We remove comments because anyway the quotes in there
1319# would cause problems or look ugly.
1320# WARNING: Be sure not to use single quotes in there, as some shells,
1321# such as our DU 5.0 friend, will then `close' the trap.
1322trap 'exit_status=$?
1323 # Save into config.log some information that might help in debugging.
1324 {
1325 echo
1326
1327 cat <<\_ASBOX
1328## ---------------- ##
1329## Cache variables. ##
1330## ---------------- ##
1331_ASBOX
1332 echo
1333 # The following way of writing the cache mishandles newlines in values,
1334{
1335 (set) 2>&1 |
1336 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1337 *ac_space=\ *)
1338 sed -n \
ac1cb8d3
VS
1339 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1340 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1341 ;;
1342 *)
1343 sed -n \
ac1cb8d3 1344 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1345 ;;
1346 esac;
1347}
1348 echo
1349
1350 cat <<\_ASBOX
1351## ----------------- ##
1352## Output variables. ##
1353## ----------------- ##
1354_ASBOX
1355 echo
1356 for ac_var in $ac_subst_vars
1357 do
1358 eval ac_val=$`echo $ac_var`
1359 echo "$ac_var='"'"'$ac_val'"'"'"
1360 done | sort
1361 echo
1362
1363 if test -n "$ac_subst_files"; then
1364 cat <<\_ASBOX
1365## ------------- ##
1366## Output files. ##
1367## ------------- ##
1368_ASBOX
1369 echo
1370 for ac_var in $ac_subst_files
1371 do
1372 eval ac_val=$`echo $ac_var`
ac1cb8d3 1373 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1374 done | sort
1375 echo
1376 fi
1377
1378 if test -s confdefs.h; then
1379 cat <<\_ASBOX
1380## ----------- ##
1381## confdefs.h. ##
1382## ----------- ##
1383_ASBOX
1384 echo
1385 sed "/^$/d" confdefs.h | sort
1386 echo
1387 fi
1388 test "$ac_signal" != 0 &&
1389 echo "$as_me: caught signal $ac_signal"
1390 echo "$as_me: exit $exit_status"
1391 } >&5
ac1cb8d3 1392 rm -f core *.core &&
a848cd7e
SC
1393 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1394 exit $exit_status
1395 ' 0
1396for ac_signal in 1 2 13 15; do
1397 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1398done
1399ac_signal=0
1400
1401# confdefs.h avoids OS command line length limits that DEFS can exceed.
1402rm -rf conftest* confdefs.h
1403# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1404echo >confdefs.h
1405
1406# Predefined preprocessor variables.
1407
1408cat >>confdefs.h <<_ACEOF
1409#define PACKAGE_NAME "$PACKAGE_NAME"
1410_ACEOF
1411
1412
1413cat >>confdefs.h <<_ACEOF
1414#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1415_ACEOF
1416
1417
1418cat >>confdefs.h <<_ACEOF
1419#define PACKAGE_VERSION "$PACKAGE_VERSION"
1420_ACEOF
1421
1422
1423cat >>confdefs.h <<_ACEOF
1424#define PACKAGE_STRING "$PACKAGE_STRING"
1425_ACEOF
1426
1427
1428cat >>confdefs.h <<_ACEOF
1429#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1430_ACEOF
1431
1432
1433# Let the site file select an alternate cache file if it wants to.
1434# Prefer explicitly selected file to automatically selected ones.
1435if test -z "$CONFIG_SITE"; then
1436 if test "x$prefix" != xNONE; then
1437 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1438 else
1439 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1440 fi
1441fi
1442for ac_site_file in $CONFIG_SITE; do
1443 if test -r "$ac_site_file"; then
1444 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1445echo "$as_me: loading site script $ac_site_file" >&6;}
1446 sed 's/^/| /' "$ac_site_file" >&5
1447 . "$ac_site_file"
1448 fi
1449done
1450
1451if test -r "$cache_file"; then
1452 # Some versions of bash will fail to source /dev/null (special
1453 # files actually), so we avoid doing that.
1454 if test -f "$cache_file"; then
1455 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1456echo "$as_me: loading cache $cache_file" >&6;}
1457 case $cache_file in
1458 [\\/]* | ?:[\\/]* ) . $cache_file;;
1459 *) . ./$cache_file;;
1460 esac
1461 fi
1462else
1463 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1464echo "$as_me: creating cache $cache_file" >&6;}
1465 >$cache_file
1466fi
1467
1468# Check that the precious variables saved in the cache have kept the same
1469# value.
1470ac_cache_corrupted=false
1471for ac_var in `(set) 2>&1 |
ac1cb8d3 1472 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1473 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1474 eval ac_new_set=\$ac_env_${ac_var}_set
1475 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1476 eval ac_new_val="\$ac_env_${ac_var}_value"
1477 case $ac_old_set,$ac_new_set in
1478 set,)
1479 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1480echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1481 ac_cache_corrupted=: ;;
1482 ,set)
1483 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1484echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1485 ac_cache_corrupted=: ;;
1486 ,);;
1487 *)
1488 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1489 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1490echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1491 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1492echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1493 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1494echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1495 ac_cache_corrupted=:
a848cd7e
SC
1496 fi;;
1497 esac
1498 # Pass precious variables to config.status.
1499 if test "$ac_new_set" = set; then
1500 case $ac_new_val in
1501 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1502 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1503 *) ac_arg=$ac_var=$ac_new_val ;;
1504 esac
1505 case " $ac_configure_args " in
1506 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1507 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1508 esac
1509 fi
1510done
1511if $ac_cache_corrupted; then
1512 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1513echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1514 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1515echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1516 { (exit 1); exit 1; }; }
1517fi
1518
1519ac_ext=c
1520ac_cpp='$CPP $CPPFLAGS'
1521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1523ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1551
1552
1553
1554ac_aux_dir=
1555for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1556 if test -f $ac_dir/install-sh; then
1557 ac_aux_dir=$ac_dir
1558 ac_install_sh="$ac_aux_dir/install-sh -c"
1559 break
1560 elif test -f $ac_dir/install.sh; then
1561 ac_aux_dir=$ac_dir
1562 ac_install_sh="$ac_aux_dir/install.sh -c"
1563 break
1564 elif test -f $ac_dir/shtool; then
1565 ac_aux_dir=$ac_dir
1566 ac_install_sh="$ac_aux_dir/shtool install -c"
1567 break
1568 fi
1569done
1570if test -z "$ac_aux_dir"; then
1571 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1572echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1573 { (exit 1); exit 1; }; }
1574fi
1575ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1576ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1577ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1578
1579# Make sure we can run config.sub.
1580$ac_config_sub sun4 >/dev/null 2>&1 ||
1581 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1582echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1583 { (exit 1); exit 1; }; }
1584
1585echo "$as_me:$LINENO: checking build system type" >&5
1586echo $ECHO_N "checking build system type... $ECHO_C" >&6
1587if test "${ac_cv_build+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
1589else
1590 ac_cv_build_alias=$build_alias
1591test -z "$ac_cv_build_alias" &&
1592 ac_cv_build_alias=`$ac_config_guess`
1593test -z "$ac_cv_build_alias" &&
1594 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1595echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1596 { (exit 1); exit 1; }; }
1597ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1598 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1599echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1600 { (exit 1); exit 1; }; }
1601
1602fi
1603echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1604echo "${ECHO_T}$ac_cv_build" >&6
1605build=$ac_cv_build
1606build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1607build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1608build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1609
1610
1611echo "$as_me:$LINENO: checking host system type" >&5
1612echo $ECHO_N "checking host system type... $ECHO_C" >&6
1613if test "${ac_cv_host+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1615else
1616 ac_cv_host_alias=$host_alias
1617test -z "$ac_cv_host_alias" &&
1618 ac_cv_host_alias=$ac_cv_build_alias
1619ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1620 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1621echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1622 { (exit 1); exit 1; }; }
1623
1624fi
1625echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1626echo "${ECHO_T}$ac_cv_host" >&6
1627host=$ac_cv_host
1628host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1629host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1630host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1631
1632
1633echo "$as_me:$LINENO: checking target system type" >&5
1634echo $ECHO_N "checking target system type... $ECHO_C" >&6
1635if test "${ac_cv_target+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1637else
1638 ac_cv_target_alias=$target_alias
1639test "x$ac_cv_target_alias" = "x" &&
1640 ac_cv_target_alias=$ac_cv_host_alias
1641ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1642 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1643echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1644 { (exit 1); exit 1; }; }
1645
1646fi
1647echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1648echo "${ECHO_T}$ac_cv_target" >&6
1649target=$ac_cv_target
1650target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1651target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1652target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1653
1654
1655# The aliases save the names the user supplied, while $host etc.
1656# will get canonicalized.
1657test -n "$target_alias" &&
1658 test "$program_prefix$program_suffix$program_transform_name" = \
1659 NONENONEs,x,x, &&
1660 program_prefix=${target_alias}-
1661
1662
1663
ceec2216 1664wx_major_version_number=2
e0d84535 1665wx_minor_version_number=6
eb730a0c 1666wx_release_number=2
063c96c1 1667wx_subrelease_number=1
a848cd7e 1668
ceec2216
RL
1669WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1670WX_VERSION=$WX_RELEASE.$wx_release_number
1671WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1672
ceec2216 1673WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1674
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
a03b8b04
RD
1727DEFAULT_STD_FLAG=yes
1728
a848cd7e
SC
1729case "${host}" in
1730 *-hp-hpux* )
1731 USE_HPUX=1
1732 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1733 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1734 SO_SUFFIX=sl
1735 cat >>confdefs.h <<\_ACEOF
1736#define __HPUX__ 1
1737_ACEOF
1738
1739 ;;
1740 *-*-linux* )
1741 USE_LINUX=1
1742 cat >>confdefs.h <<\_ACEOF
1743#define __LINUX__ 1
1744_ACEOF
1745
1746 TMP=`uname -m`
1747 if test "x$TMP" = "xalpha"; then
1748 USE_ALPHA=1
1749 cat >>confdefs.h <<\_ACEOF
1750#define __ALPHA__ 1
1751_ACEOF
1752
1753 fi
1754 DEFAULT_DEFAULT_wxUSE_GTK=1
1755 ;;
1756 *-*-gnu* | *-*-k*bsd*-gnu )
1757 USE_GNU=1
1758 TMP=`uname -m`
1759 if test "x$TMP" = "xalpha"; then
1760 USE_ALPHA=1
1761 cat >>confdefs.h <<\_ACEOF
1762#define __ALPHA__ 1
1763_ACEOF
1764
1765 fi
1766 DEFAULT_DEFAULT_wxUSE_GTK=1
1767 ;;
1768 *-*-irix5* | *-*-irix6* )
1769 USE_SGI=1
1770 USE_SVR4=1
1771 cat >>confdefs.h <<\_ACEOF
1772#define __SGI__ 1
1773_ACEOF
1774
1775 cat >>confdefs.h <<\_ACEOF
1776#define __SVR4__ 1
1777_ACEOF
1778
1779 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1780 ;;
1781 *-*-solaris2* )
1782 USE_SUN=1
1783 USE_SOLARIS=1
1784 USE_SVR4=1
1785 cat >>confdefs.h <<\_ACEOF
1786#define __SUN__ 1
1787_ACEOF
1788
1789 cat >>confdefs.h <<\_ACEOF
1790#define __SOLARIS__ 1
1791_ACEOF
1792
1793 cat >>confdefs.h <<\_ACEOF
1794#define __SVR4__ 1
1795_ACEOF
1796
1797 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1798 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1799 ;;
1800 *-*-sunos4* )
1801 USE_SUN=1
1802 USE_SUNOS=1
1803 USE_BSD=1
1804 cat >>confdefs.h <<\_ACEOF
1805#define __SUN__ 1
1806_ACEOF
1807
1808 cat >>confdefs.h <<\_ACEOF
1809#define __SUNOS__ 1
1810_ACEOF
1811
1812 cat >>confdefs.h <<\_ACEOF
1813#define __BSD__ 1
1814_ACEOF
1815
1816 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1817 ;;
1818 *-*-freebsd*)
1819 USE_BSD=1
1820 USE_FREEBSD=1
1821 cat >>confdefs.h <<\_ACEOF
1822#define __FREEBSD__ 1
1823_ACEOF
1824
1825 cat >>confdefs.h <<\_ACEOF
1826#define __BSD__ 1
1827_ACEOF
1828
1829 DEFAULT_DEFAULT_wxUSE_GTK=1
1830 ;;
1831 *-*-openbsd*)
1832 USE_BSD=1
1833 USE_OPENBSD=1
1834 cat >>confdefs.h <<\_ACEOF
1835#define __OPENBSD__ 1
1836_ACEOF
1837
1838 cat >>confdefs.h <<\_ACEOF
1839#define __BSD__ 1
1840_ACEOF
1841
1842 DEFAULT_DEFAULT_wxUSE_GTK=1
1843 ;;
1844 *-*-netbsd*)
1845 USE_BSD=1
1846 USE_NETBSD=1
1847 cat >>confdefs.h <<\_ACEOF
1848#define __NETBSD__ 1
1849_ACEOF
1850
1851 cat >>confdefs.h <<\_ACEOF
1852#define __BSD__ 1
1853_ACEOF
1854
1855 DEFAULT_DEFAULT_wxUSE_GTK=1
1856 ;;
1857 *-*-osf* )
1858 USE_ALPHA=1
1859 USE_OSF=1
1860 cat >>confdefs.h <<\_ACEOF
1861#define __ALPHA__ 1
1862_ACEOF
1863
1864 cat >>confdefs.h <<\_ACEOF
1865#define __OSF__ 1
1866_ACEOF
1867
1868 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1869 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1870 ;;
1871 *-*-dgux5* )
1872 USE_ALPHA=1
1873 USE_SVR4=1
1874 cat >>confdefs.h <<\_ACEOF
1875#define __ALPHA__ 1
1876_ACEOF
1877
1878 cat >>confdefs.h <<\_ACEOF
1879#define __SVR4__ 1
1880_ACEOF
1881
1882 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1883 ;;
1884 *-*-sysv5* )
1885 USE_SYSV=1
1886 USE_SVR4=1
1887 cat >>confdefs.h <<\_ACEOF
1888#define __SYSV__ 1
1889_ACEOF
1890
1891 cat >>confdefs.h <<\_ACEOF
1892#define __SVR4__ 1
1893_ACEOF
1894
1895 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1896 ;;
1897 *-*-aix* )
1898 USE_AIX=1
1899 USE_SYSV=1
1900 USE_SVR4=1
1901 SO_SUFFIX=a
1902 cat >>confdefs.h <<\_ACEOF
1903#define __AIX__ 1
1904_ACEOF
1905
1906 cat >>confdefs.h <<\_ACEOF
1907#define __SYSV__ 1
1908_ACEOF
1909
1910 cat >>confdefs.h <<\_ACEOF
1911#define __SVR4__ 1
1912_ACEOF
1913
1914 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1915 ;;
1916
1917 *-*-*UnixWare*)
1918 USE_SYSV=1
1919 USE_SVR4=1
1920 USE_UNIXWARE=1
1921 cat >>confdefs.h <<\_ACEOF
1922#define __UNIXWARE__ 1
1923_ACEOF
1924
1925 ;;
1926
1927 *-*-cygwin* | *-*-mingw32* )
1928 SO_SUFFIX=dll
1929 PROGRAM_EXT=".exe"
1930 RESCOMP=windres
1931 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 1932 DEFAULT_STD_FLAG=no
a848cd7e
SC
1933 ;;
1934
1935 *-pc-msdosdjgpp )
1936 USE_UNIX=0
1937 USE_DOS=1
1938 cat >>confdefs.h <<\_ACEOF
1939#define __DOS__ 1
1940_ACEOF
1941
1942 PROGRAM_EXT=".exe"
1943 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
1944 ;;
1945
1946 *-pc-os2_emx | *-pc-os2-emx )
1947 cat >>confdefs.h <<\_ACEOF
1948#define __EMX__ 1
1949_ACEOF
1950
1951 USE_OS2=1
1952 cat >>confdefs.h <<\_ACEOF
1953#define __OS2__ 1
1954_ACEOF
1955
1956 PROGRAM_EXT=".exe"
1957 DEFAULT_DEFAULT_wxUSE_PM=1
1958 CXX=gcc
1959 LDFLAGS="$LDFLAGS -Zcrtdll"
1960 ac_executable_extensions=".exe"
1961 export ac_executable_extensions
1962 ac_save_IFS="$IFS"
1963 IFS='\\'
1964 ac_TEMP_PATH=
1965 for ac_dir in $PATH; do
1966 IFS=$ac_save_IFS
1967 if test -z "$ac_TEMP_PATH"; then
1968 ac_TEMP_PATH="$ac_dir"
1969 else
1970 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1971 fi
1972 done
1973 export PATH="$ac_TEMP_PATH"
1974 unset ac_TEMP_PATH
a03b8b04 1975 DEFAULT_STD_FLAG=no
a848cd7e
SC
1976 ;;
1977
cfda0ea8 1978 *-*-darwin* )
a848cd7e
SC
1979 USE_BSD=1
1980 USE_DARWIN=1
1981 SO_SUFFIX=dylib
1982 cat >>confdefs.h <<\_ACEOF
1983#define __BSD__ 1
1984_ACEOF
1985
1986 cat >>confdefs.h <<\_ACEOF
1987#define __DARWIN__ 1
a848cd7e
SC
1988_ACEOF
1989
1990 cat >>confdefs.h <<\_ACEOF
1991#define TARGET_CARBON 1
1992_ACEOF
1993
1994 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 1995 DEFAULT_STD_FLAG=no
a848cd7e 1996 ;;
1e9e8aba
DE
1997 powerpc-apple-macos* )
1998 USE_UNIX=0
1999 ac_cv_c_bigendian=yes
2000 SO_SUFFIX=shlib
2001 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2002 DEFAULT_STD_FLAG=no
1e9e8aba 2003 ;;
a848cd7e
SC
2004
2005 *-*-beos* )
2006 USE_BEOS=1
2007 cat >>confdefs.h <<\_ACEOF
2008#define __BEOS__ 1
2009_ACEOF
2010
2011 ;;
2012
2013 *)
2014 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2015echo "$as_me: error: unknown system type ${host}." >&2;}
2016 { (exit 1); exit 1; }; }
2017esac
2018
2019
2020
2021
2022 wx_arg_cache_file="configarg.cache"
2023 echo "loading argument cache $wx_arg_cache_file"
2024 rm -f ${wx_arg_cache_file}.tmp
2025 touch ${wx_arg_cache_file}.tmp
2026 touch ${wx_arg_cache_file}
2027
2028
2029DEBUG_CONFIGURE=0
2030if test $DEBUG_CONFIGURE = 1; then
2031 DEFAULT_wxUSE_UNIVERSAL=no
2032 DEFAULT_wxUSE_STL=no
2033
2034 DEFAULT_wxUSE_NANOX=no
2035
2036 DEFAULT_wxUSE_THREADS=yes
2037
2038 DEFAULT_wxUSE_SHARED=yes
2039 DEFAULT_wxUSE_OPTIMISE=no
2040 DEFAULT_wxUSE_PROFILE=no
2041 DEFAULT_wxUSE_NO_DEPS=no
2042 DEFAULT_wxUSE_NO_RTTI=no
2043 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2044 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2045 DEFAULT_wxUSE_PERMISSIVE=no
2046 DEFAULT_wxUSE_DEBUG_FLAG=yes
2047 DEFAULT_wxUSE_DEBUG_INFO=yes
2048 DEFAULT_wxUSE_DEBUG_GDB=yes
2049 DEFAULT_wxUSE_MEM_TRACING=no
2050 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2051 DEFAULT_wxUSE_DMALLOC=no
2052 DEFAULT_wxUSE_APPLE_IEEE=no
2053
2054 DEFAULT_wxUSE_EXCEPTIONS=no
2055 DEFAULT_wxUSE_LOG=yes
2056 DEFAULT_wxUSE_LOGWINDOW=no
2057 DEFAULT_wxUSE_LOGGUI=no
2058 DEFAULT_wxUSE_LOGDIALOG=no
2059
2060 DEFAULT_wxUSE_GUI=yes
2061 DEFAULT_wxUSE_CONTROLS=no
2062
2063 DEFAULT_wxUSE_REGEX=no
2064 DEFAULT_wxUSE_XML=no
2065 DEFAULT_wxUSE_EXPAT=no
2066 DEFAULT_wxUSE_ZLIB=no
2067 DEFAULT_wxUSE_LIBPNG=no
2068 DEFAULT_wxUSE_LIBJPEG=no
2069 DEFAULT_wxUSE_LIBTIFF=no
2070 DEFAULT_wxUSE_LIBXPM=no
2071 DEFAULT_wxUSE_LIBMSPACK=no
2072 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2073 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2074 DEFAULT_wxUSE_ODBC=no
2075 DEFAULT_wxUSE_OPENGL=no
2076
2077 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2078 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2079 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2080 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2081 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2082 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2083 DEFAULT_wxUSE_CMDLINE_PARSER=no
2084 DEFAULT_wxUSE_DATETIME=no
2085 DEFAULT_wxUSE_TIMER=no
2086 DEFAULT_wxUSE_STOPWATCH=no
2087 DEFAULT_wxUSE_FILE=no
2088 DEFAULT_wxUSE_FFILE=no
07158944 2089 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2090 DEFAULT_wxUSE_TEXTBUFFER=no
2091 DEFAULT_wxUSE_TEXTFILE=no
2092 DEFAULT_wxUSE_SOUND=no
3b57de8b 2093 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2094 DEFAULT_wxUSE_INTL=no
2095 DEFAULT_wxUSE_CONFIG=no
2096 DEFAULT_wxUSE_FONTMAP=no
2097 DEFAULT_wxUSE_STREAMS=no
2098 DEFAULT_wxUSE_SOCKETS=no
2099 DEFAULT_wxUSE_OLE=no
2100 DEFAULT_wxUSE_DATAOBJ=no
2101 DEFAULT_wxUSE_DIALUP_MANAGER=no
2102 DEFAULT_wxUSE_JOYSTICK=no
2103 DEFAULT_wxUSE_DYNLIB_CLASS=no
2104 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2105 DEFAULT_wxUSE_LONGLONG=no
2106 DEFAULT_wxUSE_GEOMETRY=no
2107
2108 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2109 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2110 DEFAULT_wxUSE_POSTSCRIPT=no
2111
2112 DEFAULT_wxUSE_CLIPBOARD=no
2113 DEFAULT_wxUSE_TOOLTIPS=no
2114 DEFAULT_wxUSE_DRAG_AND_DROP=no
2115 DEFAULT_wxUSE_DRAGIMAGE=no
2116 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2117 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2118
8a7b1113 2119 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2120 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2121 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2122 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2123
2124 DEFAULT_wxUSE_RESOURCES=no
2125 DEFAULT_wxUSE_CONSTRAINTS=no
2126 DEFAULT_wxUSE_IPC=no
2127 DEFAULT_wxUSE_HELP=no
2128 DEFAULT_wxUSE_MS_HTML_HELP=no
2129 DEFAULT_wxUSE_WXHTML_HELP=no
2130 DEFAULT_wxUSE_TREELAYOUT=no
2131 DEFAULT_wxUSE_METAFILE=no
2132 DEFAULT_wxUSE_MIMETYPE=no
2133 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2134 DEFAULT_wxUSE_PROTOCOL=no
2135 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2136 DEFAULT_wxUSE_PROTOCOL_FTP=no
2137 DEFAULT_wxUSE_PROTOCOL_FILE=no
2138 DEFAULT_wxUSE_URL=no
2139
2140 DEFAULT_wxUSE_COMMONDLGS=no
2141 DEFAULT_wxUSE_CHOICEDLG=no
2142 DEFAULT_wxUSE_COLOURDLG=no
2143 DEFAULT_wxUSE_DIRDLG=no
2144 DEFAULT_wxUSE_FILEDLG=no
2145 DEFAULT_wxUSE_FINDREPLDLG=no
2146 DEFAULT_wxUSE_FONTDLG=no
2147 DEFAULT_wxUSE_MSGDLG=no
2148 DEFAULT_wxUSE_NUMBERDLG=no
2149 DEFAULT_wxUSE_TEXTDLG=no
2150 DEFAULT_wxUSE_SPLASH=no
2151 DEFAULT_wxUSE_STARTUP_TIPS=no
2152 DEFAULT_wxUSE_PROGRESSDLG=no
2153 DEFAULT_wxUSE_WIZARDDLG=no
2154
2155 DEFAULT_wxUSE_MENUS=no
2156 DEFAULT_wxUSE_MINIFRAME=no
2157 DEFAULT_wxUSE_HTML=no
9a8f0513 2158 DEFAULT_wxUSE_XRC=no
646b6ec1 2159 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2160 DEFAULT_wxUSE_FILESYSTEM=no
2161 DEFAULT_wxUSE_FS_INET=no
2162 DEFAULT_wxUSE_FS_ZIP=no
2163 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2164 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2165 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2166 DEFAULT_wxUSE_VALIDATORS=no
2167
2168 DEFAULT_wxUSE_ACCEL=no
2169 DEFAULT_wxUSE_BUTTON=no
2170 DEFAULT_wxUSE_BMPBUTTON=no
2171 DEFAULT_wxUSE_CALCTRL=no
2172 DEFAULT_wxUSE_CARET=no
2173 DEFAULT_wxUSE_CHECKBOX=no
2174 DEFAULT_wxUSE_CHECKLST=no
2175 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2176 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2177 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2178 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2179 DEFAULT_wxUSE_DISPLAY=no
2180 DEFAULT_wxUSE_GAUGE=no
2181 DEFAULT_wxUSE_GRID=no
2182 DEFAULT_wxUSE_IMAGLIST=no
2183 DEFAULT_wxUSE_LISTBOOK=no
2184 DEFAULT_wxUSE_LISTBOX=no
2185 DEFAULT_wxUSE_LISTCTRL=no
2186 DEFAULT_wxUSE_NOTEBOOK=no
2187 DEFAULT_wxUSE_RADIOBOX=no
2188 DEFAULT_wxUSE_RADIOBTN=no
2189 DEFAULT_wxUSE_SASH=no
2190 DEFAULT_wxUSE_SCROLLBAR=no
2191 DEFAULT_wxUSE_SLIDER=no
2192 DEFAULT_wxUSE_SPINBTN=no
2193 DEFAULT_wxUSE_SPINCTRL=no
2194 DEFAULT_wxUSE_SPLITTER=no
2195 DEFAULT_wxUSE_STATBMP=no
2196 DEFAULT_wxUSE_STATBOX=no
2197 DEFAULT_wxUSE_STATLINE=no
2198 DEFAULT_wxUSE_STATTEXT=no
2199 DEFAULT_wxUSE_STATUSBAR=yes
2200 DEFAULT_wxUSE_TABDIALOG=no
2201 DEFAULT_wxUSE_TEXTCTRL=no
2202 DEFAULT_wxUSE_TOGGLEBTN=no
2203 DEFAULT_wxUSE_TOOLBAR=no
2204 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2205 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2206 DEFAULT_wxUSE_TREECTRL=no
2207 DEFAULT_wxUSE_POPUPWIN=no
2208 DEFAULT_wxUSE_TIPWINDOW=no
2209
2210 DEFAULT_wxUSE_UNICODE=no
2211 DEFAULT_wxUSE_UNICODE_MSLU=no
2212 DEFAULT_wxUSE_WCSRTOMBS=no
2213
2214 DEFAULT_wxUSE_PALETTE=no
2215 DEFAULT_wxUSE_IMAGE=no
2216 DEFAULT_wxUSE_GIF=no
2217 DEFAULT_wxUSE_PCX=no
2218 DEFAULT_wxUSE_PNM=no
2219 DEFAULT_wxUSE_IFF=no
2220 DEFAULT_wxUSE_XPM=no
2221 DEFAULT_wxUSE_ICO_CUR=no
2222 DEFAULT_wxUSE_ACCESSIBILITY=no
2223
2224 DEFAULT_wxUSE_MONOLITHIC=no
2225 DEFAULT_wxUSE_PLUGINS=no
2226 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2227else
2228 DEFAULT_wxUSE_UNIVERSAL=no
2229 DEFAULT_wxUSE_STL=no
2230
2231 DEFAULT_wxUSE_NANOX=no
2232
2233 DEFAULT_wxUSE_THREADS=yes
2234
2235 DEFAULT_wxUSE_SHARED=yes
2236 DEFAULT_wxUSE_OPTIMISE=yes
2237 DEFAULT_wxUSE_PROFILE=no
2238 DEFAULT_wxUSE_NO_DEPS=no
2239 DEFAULT_wxUSE_NO_RTTI=no
2240 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2241 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2242 DEFAULT_wxUSE_PERMISSIVE=no
2243 DEFAULT_wxUSE_DEBUG_FLAG=no
2244 DEFAULT_wxUSE_DEBUG_INFO=no
2245 DEFAULT_wxUSE_DEBUG_GDB=no
2246 DEFAULT_wxUSE_MEM_TRACING=no
2247 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2248 DEFAULT_wxUSE_DMALLOC=no
2249 DEFAULT_wxUSE_APPLE_IEEE=yes
2250
2251 DEFAULT_wxUSE_EXCEPTIONS=yes
2252 DEFAULT_wxUSE_LOG=yes
2253 DEFAULT_wxUSE_LOGWINDOW=yes
2254 DEFAULT_wxUSE_LOGGUI=yes
2255 DEFAULT_wxUSE_LOGDIALOG=yes
2256
2257 DEFAULT_wxUSE_GUI=yes
2258
2259 DEFAULT_wxUSE_REGEX=yes
2260 DEFAULT_wxUSE_XML=yes
2261 DEFAULT_wxUSE_EXPAT=yes
2262 DEFAULT_wxUSE_ZLIB=yes
2263 DEFAULT_wxUSE_LIBPNG=yes
2264 DEFAULT_wxUSE_LIBJPEG=yes
2265 DEFAULT_wxUSE_LIBTIFF=yes
2266 DEFAULT_wxUSE_LIBXPM=yes
2267 DEFAULT_wxUSE_LIBMSPACK=yes
2268 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2269 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e 2270 DEFAULT_wxUSE_ODBC=no
52cb607e 2271 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2272
2273 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2274 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2275 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2276 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2277 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2278 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2279 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2280 DEFAULT_wxUSE_DATETIME=yes
2281 DEFAULT_wxUSE_TIMER=yes
2282 DEFAULT_wxUSE_STOPWATCH=yes
2283 DEFAULT_wxUSE_FILE=yes
2284 DEFAULT_wxUSE_FFILE=yes
07158944 2285 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2286 DEFAULT_wxUSE_TEXTBUFFER=yes
2287 DEFAULT_wxUSE_TEXTFILE=yes
2288 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2289 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2290 DEFAULT_wxUSE_INTL=yes
2291 DEFAULT_wxUSE_CONFIG=yes
2292 DEFAULT_wxUSE_FONTMAP=yes
2293 DEFAULT_wxUSE_STREAMS=yes
2294 DEFAULT_wxUSE_SOCKETS=yes
2295 DEFAULT_wxUSE_OLE=yes
2296 DEFAULT_wxUSE_DATAOBJ=yes
2297 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2298 DEFAULT_wxUSE_JOYSTICK=yes
2299 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2300 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2301 DEFAULT_wxUSE_LONGLONG=yes
2302 DEFAULT_wxUSE_GEOMETRY=yes
2303
2304 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2305 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2306 DEFAULT_wxUSE_POSTSCRIPT=yes
2307
2308 DEFAULT_wxUSE_CLIPBOARD=yes
2309 DEFAULT_wxUSE_TOOLTIPS=yes
2310 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2311 DEFAULT_wxUSE_DRAGIMAGE=yes
2312 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2313 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2314
8a7b1113 2315 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2316 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2317 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2318 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2319
2320 DEFAULT_wxUSE_RESOURCES=no
2321 DEFAULT_wxUSE_CONSTRAINTS=yes
2322 DEFAULT_wxUSE_IPC=yes
2323 DEFAULT_wxUSE_HELP=yes
2324 DEFAULT_wxUSE_MS_HTML_HELP=yes
2325 DEFAULT_wxUSE_WXHTML_HELP=yes
2326 DEFAULT_wxUSE_TREELAYOUT=yes
2327 DEFAULT_wxUSE_METAFILE=yes
2328 DEFAULT_wxUSE_MIMETYPE=yes
2329 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2330 DEFAULT_wxUSE_PROTOCOL=yes
2331 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2332 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2333 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2334 DEFAULT_wxUSE_URL=yes
2335
2336 DEFAULT_wxUSE_COMMONDLGS=yes
2337 DEFAULT_wxUSE_CHOICEDLG=yes
2338 DEFAULT_wxUSE_COLOURDLG=yes
2339 DEFAULT_wxUSE_DIRDLG=yes
2340 DEFAULT_wxUSE_FILEDLG=yes
2341 DEFAULT_wxUSE_FINDREPLDLG=yes
2342 DEFAULT_wxUSE_FONTDLG=yes
2343 DEFAULT_wxUSE_MSGDLG=yes
2344 DEFAULT_wxUSE_NUMBERDLG=yes
2345 DEFAULT_wxUSE_TEXTDLG=yes
2346 DEFAULT_wxUSE_SPLASH=yes
2347 DEFAULT_wxUSE_STARTUP_TIPS=yes
2348 DEFAULT_wxUSE_PROGRESSDLG=yes
2349 DEFAULT_wxUSE_WIZARDDLG=yes
2350
2351 DEFAULT_wxUSE_MENUS=yes
2352 DEFAULT_wxUSE_MINIFRAME=yes
2353 DEFAULT_wxUSE_HTML=yes
9a8f0513 2354 DEFAULT_wxUSE_XRC=yes
646b6ec1 2355 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2356 DEFAULT_wxUSE_FILESYSTEM=yes
2357 DEFAULT_wxUSE_FS_INET=yes
2358 DEFAULT_wxUSE_FS_ZIP=yes
2359 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2360 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2361 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2362 DEFAULT_wxUSE_VALIDATORS=yes
2363
2364 DEFAULT_wxUSE_ACCEL=yes
2365 DEFAULT_wxUSE_BUTTON=yes
2366 DEFAULT_wxUSE_BMPBUTTON=yes
2367 DEFAULT_wxUSE_CALCTRL=yes
2368 DEFAULT_wxUSE_CARET=yes
2369 DEFAULT_wxUSE_CHECKBOX=yes
2370 DEFAULT_wxUSE_CHECKLST=yes
2371 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2372 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2373 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2374 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2375 DEFAULT_wxUSE_DISPLAY=yes
2376 DEFAULT_wxUSE_GAUGE=yes
2377 DEFAULT_wxUSE_GRID=yes
2378 DEFAULT_wxUSE_IMAGLIST=yes
2379 DEFAULT_wxUSE_LISTBOOK=yes
2380 DEFAULT_wxUSE_LISTBOX=yes
2381 DEFAULT_wxUSE_LISTCTRL=yes
2382 DEFAULT_wxUSE_NOTEBOOK=yes
2383 DEFAULT_wxUSE_RADIOBOX=yes
2384 DEFAULT_wxUSE_RADIOBTN=yes
2385 DEFAULT_wxUSE_SASH=yes
2386 DEFAULT_wxUSE_SCROLLBAR=yes
2387 DEFAULT_wxUSE_SLIDER=yes
2388 DEFAULT_wxUSE_SPINBTN=yes
2389 DEFAULT_wxUSE_SPINCTRL=yes
2390 DEFAULT_wxUSE_SPLITTER=yes
2391 DEFAULT_wxUSE_STATBMP=yes
2392 DEFAULT_wxUSE_STATBOX=yes
2393 DEFAULT_wxUSE_STATLINE=yes
2394 DEFAULT_wxUSE_STATTEXT=yes
2395 DEFAULT_wxUSE_STATUSBAR=yes
2396 DEFAULT_wxUSE_TABDIALOG=no
2397 DEFAULT_wxUSE_TEXTCTRL=yes
2398 DEFAULT_wxUSE_TOGGLEBTN=yes
2399 DEFAULT_wxUSE_TOOLBAR=yes
2400 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2401 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2402 DEFAULT_wxUSE_TREECTRL=yes
2403 DEFAULT_wxUSE_POPUPWIN=yes
2404 DEFAULT_wxUSE_TIPWINDOW=yes
2405
78de529b 2406 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2407 DEFAULT_wxUSE_UNICODE_MSLU=yes
2408 DEFAULT_wxUSE_WCSRTOMBS=no
2409
2410 DEFAULT_wxUSE_PALETTE=yes
2411 DEFAULT_wxUSE_IMAGE=yes
2412 DEFAULT_wxUSE_GIF=yes
2413 DEFAULT_wxUSE_PCX=yes
2414 DEFAULT_wxUSE_IFF=no
2415 DEFAULT_wxUSE_PNM=yes
2416 DEFAULT_wxUSE_XPM=yes
2417 DEFAULT_wxUSE_ICO_CUR=yes
2418 DEFAULT_wxUSE_ACCESSIBILITY=no
2419
2420 DEFAULT_wxUSE_MONOLITHIC=no
2421 DEFAULT_wxUSE_PLUGINS=no
2422 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2423
f34ca037 2424 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2425fi
2426
2427
2428
f34ca037 2429
a848cd7e
SC
2430for toolkit in `echo $ALL_TOOLKITS`; do
2431 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2432 if test "x$LINE" != "x" ; then
2433 has_toolkit_in_cache=1
2434 eval "DEFAULT_$LINE"
2435 eval "CACHE_$toolkit=1"
f34ca037
MW
2436
2437 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2438 if test "x$LINE" != "x" ; then
2439 eval "DEFAULT_$LINE"
2440 fi
a848cd7e
SC
2441 fi
2442done
2443
2444
2445
2446 enablestring=
2447 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2448echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2449 no_cache=0
2450 # Check whether --enable-gui or --disable-gui was given.
2451if test "${enable_gui+set}" = set; then
2452 enableval="$enable_gui"
2453
2454 if test "$enableval" = yes; then
2455 ac_cv_use_gui='wxUSE_GUI=yes'
2456 else
2457 ac_cv_use_gui='wxUSE_GUI=no'
2458 fi
2459
2460else
2461
2462 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2463 if test "x$LINE" != x ; then
2464 eval "DEFAULT_$LINE"
2465 else
2466 no_cache=1
2467 fi
2468
2469 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2470
2471fi;
2472
2473 eval "$ac_cv_use_gui"
2474 if test "$no_cache" != 1; then
2475 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2476 fi
2477
2478 if test "$wxUSE_GUI" = yes; then
2479 echo "$as_me:$LINENO: result: yes" >&5
2480echo "${ECHO_T}yes" >&6
2481 else
2482 echo "$as_me:$LINENO: result: no" >&5
2483echo "${ECHO_T}no" >&6
2484 fi
2485
2486
2487 enablestring=
2488 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2489echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2490 no_cache=0
2491 # Check whether --enable-monolithic or --disable-monolithic was given.
2492if test "${enable_monolithic+set}" = set; then
2493 enableval="$enable_monolithic"
2494
2495 if test "$enableval" = yes; then
2496 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2497 else
2498 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2499 fi
2500
2501else
2502
2503 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2504 if test "x$LINE" != x ; then
2505 eval "DEFAULT_$LINE"
2506 else
2507 no_cache=1
2508 fi
2509
2510 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2511
2512fi;
2513
2514 eval "$ac_cv_use_monolithic"
2515 if test "$no_cache" != 1; then
2516 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2517 fi
2518
2519 if test "$wxUSE_MONOLITHIC" = yes; then
2520 echo "$as_me:$LINENO: result: yes" >&5
2521echo "${ECHO_T}yes" >&6
2522 else
2523 echo "$as_me:$LINENO: result: no" >&5
2524echo "${ECHO_T}no" >&6
2525 fi
2526
2527
2528 enablestring=
2529 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2530echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2531 no_cache=0
2532 # Check whether --enable-plugins or --disable-plugins was given.
2533if test "${enable_plugins+set}" = set; then
2534 enableval="$enable_plugins"
2535
2536 if test "$enableval" = yes; then
2537 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2538 else
2539 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2540 fi
2541
2542else
2543
2544 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2545 if test "x$LINE" != x ; then
2546 eval "DEFAULT_$LINE"
2547 else
2548 no_cache=1
2549 fi
2550
2551 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2552
2553fi;
2554
2555 eval "$ac_cv_use_plugins"
2556 if test "$no_cache" != 1; then
2557 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2558 fi
2559
2560 if test "$wxUSE_PLUGINS" = yes; then
2561 echo "$as_me:$LINENO: result: yes" >&5
2562echo "${ECHO_T}yes" >&6
2563 else
2564 echo "$as_me:$LINENO: result: no" >&5
2565echo "${ECHO_T}no" >&6
2566 fi
2567
2568
2569if test "$wxUSE_GUI" = "yes"; then
2570
2571
2572 enablestring=
2573 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2574echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2575 no_cache=0
2576 # Check whether --enable-universal or --disable-universal was given.
2577if test "${enable_universal+set}" = set; then
2578 enableval="$enable_universal"
2579
2580 if test "$enableval" = yes; then
2581 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2582 else
2583 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2584 fi
2585
2586else
2587
2588 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2589 if test "x$LINE" != x ; then
2590 eval "DEFAULT_$LINE"
2591 else
2592 no_cache=1
2593 fi
2594
2595 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2596
2597fi;
2598
2599 eval "$ac_cv_use_universal"
2600 if test "$no_cache" != 1; then
2601 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2602 fi
2603
2604 if test "$wxUSE_UNIVERSAL" = yes; then
2605 echo "$as_me:$LINENO: result: yes" >&5
2606echo "${ECHO_T}yes" >&6
2607 else
2608 echo "$as_me:$LINENO: result: no" >&5
2609echo "${ECHO_T}no" >&6
2610 fi
2611
2612
2613# Check whether --with-gtk or --without-gtk was given.
2614if test "${with_gtk+set}" = set; then
2615 withval="$with_gtk"
2616 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2617fi;
2618
2619# Check whether --with-motif or --without-motif was given.
2620if test "${with_motif+set}" = set; then
2621 withval="$with_motif"
2622 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2623fi;
2624
2625# Check whether --with-mac or --without-mac was given.
2626if test "${with_mac+set}" = set; then
2627 withval="$with_mac"
c228d3a4 2628 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2629fi;
2630
2631# Check whether --with-cocoa or --without-cocoa was given.
2632if test "${with_cocoa+set}" = set; then
2633 withval="$with_cocoa"
c228d3a4 2634 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2635fi;
2636
2637# Check whether --with-wine or --without-wine was given.
2638if test "${with_wine+set}" = set; then
2639 withval="$with_wine"
2640 wxUSE_WINE="$withval" CACHE_WINE=1
2641fi;
2642
2643# Check whether --with-msw or --without-msw was given.
2644if test "${with_msw+set}" = set; then
2645 withval="$with_msw"
2646 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2647fi;
2648
2649# Check whether --with-pm or --without-pm was given.
2650if test "${with_pm+set}" = set; then
2651 withval="$with_pm"
2652 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2653fi;
2654
2655# Check whether --with-mgl or --without-mgl was given.
2656if test "${with_mgl+set}" = set; then
2657 withval="$with_mgl"
2658 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2659fi;
2660
2661# Check whether --with-microwin or --without-microwin was given.
2662if test "${with_microwin+set}" = set; then
2663 withval="$with_microwin"
2664 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2665fi;
2666
2667# Check whether --with-x11 or --without-x11 was given.
2668if test "${with_x11+set}" = set; then
2669 withval="$with_x11"
2670 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2671fi;
2672
2673 enablestring=
2674 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2675echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2676 no_cache=0
2677 # Check whether --enable-nanox or --disable-nanox was given.
2678if test "${enable_nanox+set}" = set; then
2679 enableval="$enable_nanox"
2680
2681 if test "$enableval" = yes; then
2682 ac_cv_use_nanox='wxUSE_NANOX=yes'
2683 else
2684 ac_cv_use_nanox='wxUSE_NANOX=no'
2685 fi
2686
2687else
2688
2689 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2690 if test "x$LINE" != x ; then
2691 eval "DEFAULT_$LINE"
2692 else
2693 no_cache=1
2694 fi
2695
2696 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2697
2698fi;
2699
2700 eval "$ac_cv_use_nanox"
2701 if test "$no_cache" != 1; then
2702 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2703 fi
2704
2705 if test "$wxUSE_NANOX" = yes; then
2706 echo "$as_me:$LINENO: result: yes" >&5
2707echo "${ECHO_T}yes" >&6
2708 else
2709 echo "$as_me:$LINENO: result: no" >&5
2710echo "${ECHO_T}no" >&6
2711 fi
2712
2713
f34ca037
MW
2714# Check whether --enable-gtk2 or --disable-gtk2 was given.
2715if test "${enable_gtk2+set}" = set; then
2716 enableval="$enable_gtk2"
2717 wxUSE_GTK2="$enableval"
2718fi;
a848cd7e 2719
a848cd7e
SC
2720 enablestring=
2721 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2722echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2723 no_cache=0
2724 # Check whether --enable-gpe or --disable-gpe was given.
2725if test "${enable_gpe+set}" = set; then
2726 enableval="$enable_gpe"
2727
2728 if test "$enableval" = yes; then
2729 ac_cv_use_gpe='wxUSE_GPE=yes'
2730 else
2731 ac_cv_use_gpe='wxUSE_GPE=no'
2732 fi
2733
2734else
2735
2736 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2737 if test "x$LINE" != x ; then
2738 eval "DEFAULT_$LINE"
2739 else
2740 no_cache=1
2741 fi
2742
2743 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2744
2745fi;
2746
2747 eval "$ac_cv_use_gpe"
2748 if test "$no_cache" != 1; then
2749 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2750 fi
2751
2752 if test "$wxUSE_GPE" = yes; then
2753 echo "$as_me:$LINENO: result: yes" >&5
2754echo "${ECHO_T}yes" >&6
2755 else
2756 echo "$as_me:$LINENO: result: no" >&5
2757echo "${ECHO_T}no" >&6
2758 fi
2759
2760
2761
2762 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2763echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2764 no_cache=0
2765
2766# Check whether --with-libpng or --without-libpng was given.
2767if test "${with_libpng+set}" = set; then
2768 withval="$with_libpng"
2769
2770 if test "$withval" = yes; then
2771 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2772 elif test "$withval" = no; then
2773 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2774 elif test "$withval" = sys; then
2775 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2776 elif test "$withval" = builtin; then
2777 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2778 else
2779 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2780echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2781 { (exit 1); exit 1; }; }
2782 fi
2783
2784else
2785
2786 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2787 if test "x$LINE" != x ; then
2788 eval "DEFAULT_$LINE"
2789 else
2790 no_cache=1
2791 fi
2792
2793 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2794
2795fi;
2796
2797 eval "$ac_cv_use_libpng"
2798 if test "$no_cache" != 1; then
2799 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2800 fi
2801
2802 if test "$wxUSE_LIBPNG" = yes; then
2803 echo "$as_me:$LINENO: result: yes" >&5
2804echo "${ECHO_T}yes" >&6
2805 elif test "$wxUSE_LIBPNG" = no; then
2806 echo "$as_me:$LINENO: result: no" >&5
2807echo "${ECHO_T}no" >&6
2808 elif test "$wxUSE_LIBPNG" = sys; then
2809 echo "$as_me:$LINENO: result: system version" >&5
2810echo "${ECHO_T}system version" >&6
2811 elif test "$wxUSE_LIBPNG" = builtin; then
2812 echo "$as_me:$LINENO: result: builtin version" >&5
2813echo "${ECHO_T}builtin version" >&6
2814 else
2815 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2816echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2817 { (exit 1); exit 1; }; }
2818 fi
2819
2820
2821 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2822echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2823 no_cache=0
2824
2825# Check whether --with-libjpeg or --without-libjpeg was given.
2826if test "${with_libjpeg+set}" = set; then
2827 withval="$with_libjpeg"
2828
2829 if test "$withval" = yes; then
2830 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2831 elif test "$withval" = no; then
2832 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2833 elif test "$withval" = sys; then
2834 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2835 elif test "$withval" = builtin; then
2836 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2837 else
2838 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2839echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2840 { (exit 1); exit 1; }; }
2841 fi
2842
2843else
2844
2845 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2846 if test "x$LINE" != x ; then
2847 eval "DEFAULT_$LINE"
2848 else
2849 no_cache=1
2850 fi
2851
2852 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2853
2854fi;
2855
2856 eval "$ac_cv_use_libjpeg"
2857 if test "$no_cache" != 1; then
2858 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2859 fi
2860
2861 if test "$wxUSE_LIBJPEG" = yes; then
2862 echo "$as_me:$LINENO: result: yes" >&5
2863echo "${ECHO_T}yes" >&6
2864 elif test "$wxUSE_LIBJPEG" = no; then
2865 echo "$as_me:$LINENO: result: no" >&5
2866echo "${ECHO_T}no" >&6
2867 elif test "$wxUSE_LIBJPEG" = sys; then
2868 echo "$as_me:$LINENO: result: system version" >&5
2869echo "${ECHO_T}system version" >&6
2870 elif test "$wxUSE_LIBJPEG" = builtin; then
2871 echo "$as_me:$LINENO: result: builtin version" >&5
2872echo "${ECHO_T}builtin version" >&6
2873 else
2874 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2875echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2876 { (exit 1); exit 1; }; }
2877 fi
2878
2879
2880 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2881echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2882 no_cache=0
2883
2884# Check whether --with-libtiff or --without-libtiff was given.
2885if test "${with_libtiff+set}" = set; then
2886 withval="$with_libtiff"
2887
2888 if test "$withval" = yes; then
2889 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2890 elif test "$withval" = no; then
2891 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2892 elif test "$withval" = sys; then
2893 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2894 elif test "$withval" = builtin; then
2895 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2896 else
2897 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2898echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2899 { (exit 1); exit 1; }; }
2900 fi
2901
2902else
2903
2904 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2905 if test "x$LINE" != x ; then
2906 eval "DEFAULT_$LINE"
2907 else
2908 no_cache=1
2909 fi
2910
2911 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2912
2913fi;
2914
2915 eval "$ac_cv_use_libtiff"
2916 if test "$no_cache" != 1; then
2917 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2918 fi
2919
2920 if test "$wxUSE_LIBTIFF" = yes; then
2921 echo "$as_me:$LINENO: result: yes" >&5
2922echo "${ECHO_T}yes" >&6
2923 elif test "$wxUSE_LIBTIFF" = no; then
2924 echo "$as_me:$LINENO: result: no" >&5
2925echo "${ECHO_T}no" >&6
2926 elif test "$wxUSE_LIBTIFF" = sys; then
2927 echo "$as_me:$LINENO: result: system version" >&5
2928echo "${ECHO_T}system version" >&6
2929 elif test "$wxUSE_LIBTIFF" = builtin; then
2930 echo "$as_me:$LINENO: result: builtin version" >&5
2931echo "${ECHO_T}builtin version" >&6
2932 else
2933 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2934echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2935 { (exit 1); exit 1; }; }
2936 fi
2937
2938
2939 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2940echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2941 no_cache=0
2942
2943# Check whether --with-libxpm or --without-libxpm was given.
2944if test "${with_libxpm+set}" = set; then
2945 withval="$with_libxpm"
2946
2947 if test "$withval" = yes; then
2948 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2949 elif test "$withval" = no; then
2950 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2951 elif test "$withval" = sys; then
2952 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2953 elif test "$withval" = builtin; then
2954 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2955 else
2956 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2957echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2958 { (exit 1); exit 1; }; }
2959 fi
2960
2961else
2962
2963 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2964 if test "x$LINE" != x ; then
2965 eval "DEFAULT_$LINE"
2966 else
2967 no_cache=1
2968 fi
2969
2970 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2971
2972fi;
2973
2974 eval "$ac_cv_use_libxpm"
2975 if test "$no_cache" != 1; then
2976 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2977 fi
2978
2979 if test "$wxUSE_LIBXPM" = yes; then
2980 echo "$as_me:$LINENO: result: yes" >&5
2981echo "${ECHO_T}yes" >&6
2982 elif test "$wxUSE_LIBXPM" = no; then
2983 echo "$as_me:$LINENO: result: no" >&5
2984echo "${ECHO_T}no" >&6
2985 elif test "$wxUSE_LIBXPM" = sys; then
2986 echo "$as_me:$LINENO: result: system version" >&5
2987echo "${ECHO_T}system version" >&6
2988 elif test "$wxUSE_LIBXPM" = builtin; then
2989 echo "$as_me:$LINENO: result: builtin version" >&5
2990echo "${ECHO_T}builtin version" >&6
2991 else
2992 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2993echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2994 { (exit 1); exit 1; }; }
2995 fi
2996
2997
2998 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2999echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3000 no_cache=0
3001
3002# Check whether --with-libmspack or --without-libmspack was given.
3003if test "${with_libmspack+set}" = set; then
3004 withval="$with_libmspack"
3005
3006 if test "$withval" = yes; then
3007 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3008 else
3009 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3010 fi
3011
3012else
3013
3014 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3015 if test "x$LINE" != x ; then
3016 eval "DEFAULT_$LINE"
3017 else
3018 no_cache=1
3019 fi
3020
3021 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3022
3023fi;
3024
3025 eval "$ac_cv_use_libmspack"
3026 if test "$no_cache" != 1; then
3027 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3028 fi
3029
3030 if test "$wxUSE_LIBMSPACK" = yes; then
3031 echo "$as_me:$LINENO: result: yes" >&5
3032echo "${ECHO_T}yes" >&6
3033 else
3034 echo "$as_me:$LINENO: result: no" >&5
3035echo "${ECHO_T}no" >&6
3036 fi
3037
3038
3039 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3040echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3041 no_cache=0
3042
3043# Check whether --with-sdl or --without-sdl was given.
3044if test "${with_sdl+set}" = set; then
3045 withval="$with_sdl"
3046
3047 if test "$withval" = yes; then
3048 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3049 else
3050 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3051 fi
3052
3053else
3054
3055 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3056 if test "x$LINE" != x ; then
3057 eval "DEFAULT_$LINE"
3058 else
3059 no_cache=1
3060 fi
3061
3062 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3063
3064fi;
3065
3066 eval "$ac_cv_use_sdl"
3067 if test "$no_cache" != 1; then
3068 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3069 fi
3070
3071 if test "$wxUSE_LIBSDL" = yes; then
3072 echo "$as_me:$LINENO: result: yes" >&5
3073echo "${ECHO_T}yes" >&6
3074 else
3075 echo "$as_me:$LINENO: result: no" >&5
3076echo "${ECHO_T}no" >&6
3077 fi
3078
3079
d1c38808
VZ
3080 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3081echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3082 no_cache=0
3083
3084# Check whether --with-gnomeprint or --without-gnomeprint was given.
3085if test "${with_gnomeprint+set}" = set; then
3086 withval="$with_gnomeprint"
3087
3088 if test "$withval" = yes; then
3089 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3090 else
3091 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3092 fi
3093
3094else
3095
3096 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3097 if test "x$LINE" != x ; then
3098 eval "DEFAULT_$LINE"
3099 else
3100 no_cache=1
3101 fi
3102
3103 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3104
3105fi;
3106
3107 eval "$ac_cv_use_gnomeprint"
3108 if test "$no_cache" != 1; then
3109 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3110 fi
3111
3112 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3113 echo "$as_me:$LINENO: result: yes" >&5
3114echo "${ECHO_T}yes" >&6
3115 else
3116 echo "$as_me:$LINENO: result: no" >&5
3117echo "${ECHO_T}no" >&6
3118 fi
3119
3120
a848cd7e
SC
3121 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3122echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3123 no_cache=0
3124
3125# Check whether --with-opengl or --without-opengl was given.
3126if test "${with_opengl+set}" = set; then
3127 withval="$with_opengl"
3128
3129 if test "$withval" = yes; then
3130 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3131 else
3132 ac_cv_use_opengl='wxUSE_OPENGL=no'
3133 fi
3134
3135else
3136
3137 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3138 if test "x$LINE" != x ; then
3139 eval "DEFAULT_$LINE"
3140 else
3141 no_cache=1
3142 fi
3143
3144 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3145
3146fi;
3147
3148 eval "$ac_cv_use_opengl"
3149 if test "$no_cache" != 1; then
3150 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3151 fi
3152
3153 if test "$wxUSE_OPENGL" = yes; then
3154 echo "$as_me:$LINENO: result: yes" >&5
3155echo "${ECHO_T}yes" >&6
3156 else
3157 echo "$as_me:$LINENO: result: no" >&5
3158echo "${ECHO_T}no" >&6
3159 fi
3160
3161
3162fi
3163
3164
3165 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3166echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3167 no_cache=0
3168
3169# Check whether --with-dmalloc or --without-dmalloc was given.
3170if test "${with_dmalloc+set}" = set; then
3171 withval="$with_dmalloc"
3172
3173 if test "$withval" = yes; then
3174 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3175 else
3176 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3177 fi
3178
3179else
3180
3181 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3182 if test "x$LINE" != x ; then
3183 eval "DEFAULT_$LINE"
3184 else
3185 no_cache=1
3186 fi
3187
3188 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3189
3190fi;
3191
3192 eval "$ac_cv_use_dmalloc"
3193 if test "$no_cache" != 1; then
3194 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3195 fi
3196
3197 if test "$wxUSE_DMALLOC" = yes; then
3198 echo "$as_me:$LINENO: result: yes" >&5
3199echo "${ECHO_T}yes" >&6
3200 else
3201 echo "$as_me:$LINENO: result: no" >&5
3202echo "${ECHO_T}no" >&6
3203 fi
3204
3205
3206 echo "$as_me:$LINENO: checking for --with-regex" >&5
3207echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3208 no_cache=0
3209
3210# Check whether --with-regex or --without-regex was given.
3211if test "${with_regex+set}" = set; then
3212 withval="$with_regex"
3213
3214 if test "$withval" = yes; then
3215 ac_cv_use_regex='wxUSE_REGEX=yes'
3216 elif test "$withval" = no; then
3217 ac_cv_use_regex='wxUSE_REGEX=no'
3218 elif test "$withval" = sys; then
3219 ac_cv_use_regex='wxUSE_REGEX=sys'
3220 elif test "$withval" = builtin; then
3221 ac_cv_use_regex='wxUSE_REGEX=builtin'
3222 else
3223 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3224echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3225 { (exit 1); exit 1; }; }
3226 fi
3227
3228else
3229
3230 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3231 if test "x$LINE" != x ; then
3232 eval "DEFAULT_$LINE"
3233 else
3234 no_cache=1
3235 fi
3236
3237 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3238
3239fi;
3240
3241 eval "$ac_cv_use_regex"
3242 if test "$no_cache" != 1; then
3243 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3244 fi
3245
3246 if test "$wxUSE_REGEX" = yes; then
3247 echo "$as_me:$LINENO: result: yes" >&5
3248echo "${ECHO_T}yes" >&6
3249 elif test "$wxUSE_REGEX" = no; then
3250 echo "$as_me:$LINENO: result: no" >&5
3251echo "${ECHO_T}no" >&6
3252 elif test "$wxUSE_REGEX" = sys; then
3253 echo "$as_me:$LINENO: result: system version" >&5
3254echo "${ECHO_T}system version" >&6
3255 elif test "$wxUSE_REGEX" = builtin; then
3256 echo "$as_me:$LINENO: result: builtin version" >&5
3257echo "${ECHO_T}builtin version" >&6
3258 else
3259 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3260echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3261 { (exit 1); exit 1; }; }
3262 fi
3263
3264
3265 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3266echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3267 no_cache=0
3268
3269# Check whether --with-zlib or --without-zlib was given.
3270if test "${with_zlib+set}" = set; then
3271 withval="$with_zlib"
3272
3273 if test "$withval" = yes; then
3274 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3275 elif test "$withval" = no; then
3276 ac_cv_use_zlib='wxUSE_ZLIB=no'
3277 elif test "$withval" = sys; then
3278 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3279 elif test "$withval" = builtin; then
3280 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3281 else
3282 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3283echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3284 { (exit 1); exit 1; }; }
3285 fi
3286
3287else
3288
3289 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3290 if test "x$LINE" != x ; then
3291 eval "DEFAULT_$LINE"
3292 else
3293 no_cache=1
3294 fi
3295
3296 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3297
3298fi;
3299
3300 eval "$ac_cv_use_zlib"
3301 if test "$no_cache" != 1; then
3302 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3303 fi
3304
3305 if test "$wxUSE_ZLIB" = yes; then
3306 echo "$as_me:$LINENO: result: yes" >&5
3307echo "${ECHO_T}yes" >&6
3308 elif test "$wxUSE_ZLIB" = no; then
3309 echo "$as_me:$LINENO: result: no" >&5
3310echo "${ECHO_T}no" >&6
3311 elif test "$wxUSE_ZLIB" = sys; then
3312 echo "$as_me:$LINENO: result: system version" >&5
3313echo "${ECHO_T}system version" >&6
3314 elif test "$wxUSE_ZLIB" = builtin; then
3315 echo "$as_me:$LINENO: result: builtin version" >&5
3316echo "${ECHO_T}builtin version" >&6
3317 else
3318 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3319echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3320 { (exit 1); exit 1; }; }
3321 fi
3322
3323
3324 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3325echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3326 no_cache=0
3327
3328# Check whether --with-odbc or --without-odbc was given.
3329if test "${with_odbc+set}" = set; then
3330 withval="$with_odbc"
3331
3332 if test "$withval" = yes; then
3333 ac_cv_use_odbc='wxUSE_ODBC=yes'
3334 elif test "$withval" = no; then
3335 ac_cv_use_odbc='wxUSE_ODBC=no'
3336 elif test "$withval" = sys; then
3337 ac_cv_use_odbc='wxUSE_ODBC=sys'
3338 elif test "$withval" = builtin; then
3339 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3340 else
3341 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3342echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3343 { (exit 1); exit 1; }; }
3344 fi
3345
3346else
3347
3348 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3349 if test "x$LINE" != x ; then
3350 eval "DEFAULT_$LINE"
3351 else
3352 no_cache=1
3353 fi
3354
3355 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3356
3357fi;
3358
3359 eval "$ac_cv_use_odbc"
3360 if test "$no_cache" != 1; then
3361 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3362 fi
3363
3364 if test "$wxUSE_ODBC" = yes; then
3365 echo "$as_me:$LINENO: result: yes" >&5
3366echo "${ECHO_T}yes" >&6
3367 elif test "$wxUSE_ODBC" = no; then
3368 echo "$as_me:$LINENO: result: no" >&5
3369echo "${ECHO_T}no" >&6
3370 elif test "$wxUSE_ODBC" = sys; then
3371 echo "$as_me:$LINENO: result: system version" >&5
3372echo "${ECHO_T}system version" >&6
3373 elif test "$wxUSE_ODBC" = builtin; then
3374 echo "$as_me:$LINENO: result: builtin version" >&5
3375echo "${ECHO_T}builtin version" >&6
3376 else
3377 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3378echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3379 { (exit 1); exit 1; }; }
3380 fi
3381
3382
3383 echo "$as_me:$LINENO: checking for --with-expat" >&5
3384echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3385 no_cache=0
3386
3387# Check whether --with-expat or --without-expat was given.
3388if test "${with_expat+set}" = set; then
3389 withval="$with_expat"
3390
3391 if test "$withval" = yes; then
3392 ac_cv_use_expat='wxUSE_EXPAT=yes'
3393 elif test "$withval" = no; then
3394 ac_cv_use_expat='wxUSE_EXPAT=no'
3395 elif test "$withval" = sys; then
3396 ac_cv_use_expat='wxUSE_EXPAT=sys'
3397 elif test "$withval" = builtin; then
3398 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3399 else
3400 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3401echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3402 { (exit 1); exit 1; }; }
3403 fi
3404
3405else
3406
3407 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3408 if test "x$LINE" != x ; then
3409 eval "DEFAULT_$LINE"
3410 else
3411 no_cache=1
3412 fi
3413
3414 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3415
3416fi;
3417
3418 eval "$ac_cv_use_expat"
3419 if test "$no_cache" != 1; then
3420 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3421 fi
3422
3423 if test "$wxUSE_EXPAT" = yes; then
3424 echo "$as_me:$LINENO: result: yes" >&5
3425echo "${ECHO_T}yes" >&6
3426 elif test "$wxUSE_EXPAT" = no; then
3427 echo "$as_me:$LINENO: result: no" >&5
3428echo "${ECHO_T}no" >&6
3429 elif test "$wxUSE_EXPAT" = sys; then
3430 echo "$as_me:$LINENO: result: system version" >&5
3431echo "${ECHO_T}system version" >&6
3432 elif test "$wxUSE_EXPAT" = builtin; then
3433 echo "$as_me:$LINENO: result: builtin version" >&5
3434echo "${ECHO_T}builtin version" >&6
3435 else
3436 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3437echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3438 { (exit 1); exit 1; }; }
3439 fi
3440
3441
3442
3443
3444 enablestring=
3445 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3446echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3447 no_cache=0
3448 # Check whether --enable-shared or --disable-shared was given.
3449if test "${enable_shared+set}" = set; then
3450 enableval="$enable_shared"
3451
3452 if test "$enableval" = yes; then
3453 ac_cv_use_shared='wxUSE_SHARED=yes'
3454 else
3455 ac_cv_use_shared='wxUSE_SHARED=no'
3456 fi
3457
3458else
3459
3460 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3461 if test "x$LINE" != x ; then
3462 eval "DEFAULT_$LINE"
3463 else
3464 no_cache=1
3465 fi
3466
3467 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3468
3469fi;
3470
3471 eval "$ac_cv_use_shared"
3472 if test "$no_cache" != 1; then
3473 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3474 fi
3475
3476 if test "$wxUSE_SHARED" = yes; then
3477 echo "$as_me:$LINENO: result: yes" >&5
3478echo "${ECHO_T}yes" >&6
3479 else
3480 echo "$as_me:$LINENO: result: no" >&5
3481echo "${ECHO_T}no" >&6
3482 fi
3483
3484
3485 enablestring=
3486 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3487echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3488 no_cache=0
3489 # Check whether --enable-optimise or --disable-optimise was given.
3490if test "${enable_optimise+set}" = set; then
3491 enableval="$enable_optimise"
3492
3493 if test "$enableval" = yes; then
3494 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3495 else
3496 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3497 fi
3498
3499else
3500
3501 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3502 if test "x$LINE" != x ; then
3503 eval "DEFAULT_$LINE"
3504 else
3505 no_cache=1
3506 fi
3507
3508 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3509
3510fi;
3511
3512 eval "$ac_cv_use_optimise"
3513 if test "$no_cache" != 1; then
3514 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3515 fi
3516
3517 if test "$wxUSE_OPTIMISE" = yes; then
3518 echo "$as_me:$LINENO: result: yes" >&5
3519echo "${ECHO_T}yes" >&6
3520 else
3521 echo "$as_me:$LINENO: result: no" >&5
3522echo "${ECHO_T}no" >&6
3523 fi
3524
3525
3526 enablestring=
3527 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3528echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3529 no_cache=0
3530 # Check whether --enable-debug or --disable-debug was given.
3531if test "${enable_debug+set}" = set; then
3532 enableval="$enable_debug"
3533
3534 if test "$enableval" = yes; then
3535 ac_cv_use_debug='wxUSE_DEBUG=yes'
3536 else
3537 ac_cv_use_debug='wxUSE_DEBUG=no'
3538 fi
3539
3540else
3541
3542 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3543 if test "x$LINE" != x ; then
3544 eval "DEFAULT_$LINE"
3545 else
3546 no_cache=1
3547 fi
3548
3549 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3550
3551fi;
3552
3553 eval "$ac_cv_use_debug"
3554 if test "$no_cache" != 1; then
3555 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3556 fi
3557
3558 if test "$wxUSE_DEBUG" = yes; then
3559 echo "$as_me:$LINENO: result: yes" >&5
3560echo "${ECHO_T}yes" >&6
3561 else
3562 echo "$as_me:$LINENO: result: no" >&5
3563echo "${ECHO_T}no" >&6
3564 fi
3565
3566
3567 enablestring=
3568 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3569echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3570 no_cache=0
3571 # Check whether --enable-stl or --disable-stl was given.
3572if test "${enable_stl+set}" = set; then
3573 enableval="$enable_stl"
3574
3575 if test "$enableval" = yes; then
3576 ac_cv_use_stl='wxUSE_STL=yes'
3577 else
3578 ac_cv_use_stl='wxUSE_STL=no'
3579 fi
3580
3581else
3582
3583 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3584 if test "x$LINE" != x ; then
3585 eval "DEFAULT_$LINE"
3586 else
3587 no_cache=1
3588 fi
3589
3590 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3591
3592fi;
3593
3594 eval "$ac_cv_use_stl"
3595 if test "$no_cache" != 1; then
3596 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3597 fi
3598
3599 if test "$wxUSE_STL" = yes; then
3600 echo "$as_me:$LINENO: result: yes" >&5
3601echo "${ECHO_T}yes" >&6
3602 else
3603 echo "$as_me:$LINENO: result: no" >&5
3604echo "${ECHO_T}no" >&6
3605 fi
3606
3607if test "$USE_OS2" = "1"; then
69120ee4 3608 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3609
3610 enablestring=
3611 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3612echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3613 no_cache=0
3614 # Check whether --enable-omf or --disable-omf was given.
3615if test "${enable_omf+set}" = set; then
3616 enableval="$enable_omf"
3617
3618 if test "$enableval" = yes; then
3619 ac_cv_use_omf='wxUSE_OMF=yes'
3620 else
3621 ac_cv_use_omf='wxUSE_OMF=no'
3622 fi
3623
3624else
3625
3626 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3627 if test "x$LINE" != x ; then
3628 eval "DEFAULT_$LINE"
3629 else
3630 no_cache=1
3631 fi
3632
3633 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3634
3635fi;
3636
3637 eval "$ac_cv_use_omf"
3638 if test "$no_cache" != 1; then
3639 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3640 fi
3641
3642 if test "$wxUSE_OMF" = yes; then
3643 echo "$as_me:$LINENO: result: yes" >&5
3644echo "${ECHO_T}yes" >&6
3645 else
3646 echo "$as_me:$LINENO: result: no" >&5
3647echo "${ECHO_T}no" >&6
3648 fi
3649
3650fi
3651
3652if test "$wxUSE_DEBUG" = "yes"; then
3653 DEFAULT_wxUSE_DEBUG_FLAG=yes
3654 DEFAULT_wxUSE_DEBUG_INFO=yes
3655 BUILD=debug
3656elif test "$wxUSE_DEBUG" = "no"; then
3657 DEFAULT_wxUSE_DEBUG_FLAG=no
3658 DEFAULT_wxUSE_DEBUG_INFO=no
3659 BUILD=release
3660fi
3661
3662
3663 enablestring=
3664 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3665echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3666 no_cache=0
3667 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3668if test "${enable_debug_flag+set}" = set; then
3669 enableval="$enable_debug_flag"
3670
3671 if test "$enableval" = yes; then
3672 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3673 else
3674 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3675 fi
3676
3677else
3678
3679 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3680 if test "x$LINE" != x ; then
3681 eval "DEFAULT_$LINE"
3682 else
3683 no_cache=1
3684 fi
3685
3686 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3687
3688fi;
3689
3690 eval "$ac_cv_use_debug_flag"
3691 if test "$no_cache" != 1; then
3692 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3693 fi
3694
3695 if test "$wxUSE_DEBUG_FLAG" = yes; then
3696 echo "$as_me:$LINENO: result: yes" >&5
3697echo "${ECHO_T}yes" >&6
3698 else
3699 echo "$as_me:$LINENO: result: no" >&5
3700echo "${ECHO_T}no" >&6
3701 fi
3702
3703
3704 enablestring=
3705 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3706echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3707 no_cache=0
3708 # Check whether --enable-debug_info or --disable-debug_info was given.
3709if test "${enable_debug_info+set}" = set; then
3710 enableval="$enable_debug_info"
3711
3712 if test "$enableval" = yes; then
3713 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3714 else
3715 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3716 fi
3717
3718else
3719
3720 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3721 if test "x$LINE" != x ; then
3722 eval "DEFAULT_$LINE"
3723 else
3724 no_cache=1
3725 fi
3726
3727 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3728
3729fi;
3730
3731 eval "$ac_cv_use_debug_info"
3732 if test "$no_cache" != 1; then
3733 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3734 fi
3735
3736 if test "$wxUSE_DEBUG_INFO" = yes; then
3737 echo "$as_me:$LINENO: result: yes" >&5
3738echo "${ECHO_T}yes" >&6
3739 else
3740 echo "$as_me:$LINENO: result: no" >&5
3741echo "${ECHO_T}no" >&6
3742 fi
3743
3744
3745 enablestring=
3746 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3747echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3748 no_cache=0
3749 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3750if test "${enable_debug_gdb+set}" = set; then
3751 enableval="$enable_debug_gdb"
3752
3753 if test "$enableval" = yes; then
3754 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3755 else
3756 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3757 fi
3758
3759else
3760
3761 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3762 if test "x$LINE" != x ; then
3763 eval "DEFAULT_$LINE"
3764 else
3765 no_cache=1
3766 fi
3767
3768 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3769
3770fi;
3771
3772 eval "$ac_cv_use_debug_gdb"
3773 if test "$no_cache" != 1; then
3774 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3775 fi
3776
3777 if test "$wxUSE_DEBUG_GDB" = yes; then
3778 echo "$as_me:$LINENO: result: yes" >&5
3779echo "${ECHO_T}yes" >&6
3780 else
3781 echo "$as_me:$LINENO: result: no" >&5
3782echo "${ECHO_T}no" >&6
3783 fi
3784
3785
3786 enablestring=
3787 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3788echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3789 no_cache=0
3790 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3791if test "${enable_debug_cntxt+set}" = set; then
3792 enableval="$enable_debug_cntxt"
3793
3794 if test "$enableval" = yes; then
3795 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3796 else
3797 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3798 fi
3799
3800else
3801
3802 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3803 if test "x$LINE" != x ; then
3804 eval "DEFAULT_$LINE"
3805 else
3806 no_cache=1
3807 fi
3808
3809 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3810
3811fi;
3812
3813 eval "$ac_cv_use_debug_cntxt"
3814 if test "$no_cache" != 1; then
3815 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3816 fi
3817
3818 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3819 echo "$as_me:$LINENO: result: yes" >&5
3820echo "${ECHO_T}yes" >&6
3821 else
3822 echo "$as_me:$LINENO: result: no" >&5
3823echo "${ECHO_T}no" >&6
3824 fi
3825
3826
3827 enablestring=
3828 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3829echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3830 no_cache=0
3831 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3832if test "${enable_mem_tracing+set}" = set; then
3833 enableval="$enable_mem_tracing"
3834
3835 if test "$enableval" = yes; then
3836 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3837 else
3838 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3839 fi
3840
3841else
3842
3843 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3844 if test "x$LINE" != x ; then
3845 eval "DEFAULT_$LINE"
3846 else
3847 no_cache=1
3848 fi
3849
3850 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3851
3852fi;
3853
3854 eval "$ac_cv_use_mem_tracing"
3855 if test "$no_cache" != 1; then
3856 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3857 fi
3858
3859 if test "$wxUSE_MEM_TRACING" = yes; then
3860 echo "$as_me:$LINENO: result: yes" >&5
3861echo "${ECHO_T}yes" >&6
3862 else
3863 echo "$as_me:$LINENO: result: no" >&5
3864echo "${ECHO_T}no" >&6
3865 fi
3866
3867
3868 enablestring=
3869 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3870echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3871 no_cache=0
3872 # Check whether --enable-profile or --disable-profile was given.
3873if test "${enable_profile+set}" = set; then
3874 enableval="$enable_profile"
3875
3876 if test "$enableval" = yes; then
3877 ac_cv_use_profile='wxUSE_PROFILE=yes'
3878 else
3879 ac_cv_use_profile='wxUSE_PROFILE=no'
3880 fi
3881
3882else
3883
3884 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3885 if test "x$LINE" != x ; then
3886 eval "DEFAULT_$LINE"
3887 else
3888 no_cache=1
3889 fi
3890
3891 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3892
3893fi;
3894
3895 eval "$ac_cv_use_profile"
3896 if test "$no_cache" != 1; then
3897 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3898 fi
3899
3900 if test "$wxUSE_PROFILE" = yes; then
3901 echo "$as_me:$LINENO: result: yes" >&5
3902echo "${ECHO_T}yes" >&6
3903 else
3904 echo "$as_me:$LINENO: result: no" >&5
3905echo "${ECHO_T}no" >&6
3906 fi
3907
3908
3909 enablestring=
3910 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3911echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3912 no_cache=0
3913 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3914if test "${enable_no_rtti+set}" = set; then
3915 enableval="$enable_no_rtti"
3916
3917 if test "$enableval" = yes; then
3918 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3919 else
3920 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3921 fi
3922
3923else
3924
3925 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3926 if test "x$LINE" != x ; then
3927 eval "DEFAULT_$LINE"
3928 else
3929 no_cache=1
3930 fi
3931
3932 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3933
3934fi;
3935
3936 eval "$ac_cv_use_no_rtti"
3937 if test "$no_cache" != 1; then
3938 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3939 fi
3940
3941 if test "$wxUSE_NO_RTTI" = yes; then
3942 echo "$as_me:$LINENO: result: yes" >&5
3943echo "${ECHO_T}yes" >&6
3944 else
3945 echo "$as_me:$LINENO: result: no" >&5
3946echo "${ECHO_T}no" >&6
3947 fi
3948
3949
3950 enablestring=
3951 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3952echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3953 no_cache=0
3954 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3955if test "${enable_no_exceptions+set}" = set; then
3956 enableval="$enable_no_exceptions"
3957
3958 if test "$enableval" = yes; then
3959 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3960 else
3961 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3962 fi
3963
3964else
3965
3966 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3967 if test "x$LINE" != x ; then
3968 eval "DEFAULT_$LINE"
3969 else
3970 no_cache=1
3971 fi
3972
3973 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3974
3975fi;
3976
3977 eval "$ac_cv_use_no_exceptions"
3978 if test "$no_cache" != 1; then
3979 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3980 fi
3981
3982 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3983 echo "$as_me:$LINENO: result: yes" >&5
3984echo "${ECHO_T}yes" >&6
3985 else
3986 echo "$as_me:$LINENO: result: no" >&5
3987echo "${ECHO_T}no" >&6
3988 fi
3989
3990
3991 enablestring=
3992 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3993echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3994 no_cache=0
3995 # Check whether --enable-permissive or --disable-permissive was given.
3996if test "${enable_permissive+set}" = set; then
3997 enableval="$enable_permissive"
3998
3999 if test "$enableval" = yes; then
4000 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4001 else
4002 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4003 fi
4004
4005else
4006
4007 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4008 if test "x$LINE" != x ; then
4009 eval "DEFAULT_$LINE"
4010 else
4011 no_cache=1
4012 fi
4013
4014 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4015
4016fi;
4017
4018 eval "$ac_cv_use_permissive"
4019 if test "$no_cache" != 1; then
4020 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4021 fi
4022
4023 if test "$wxUSE_PERMISSIVE" = yes; then
4024 echo "$as_me:$LINENO: result: yes" >&5
4025echo "${ECHO_T}yes" >&6
4026 else
4027 echo "$as_me:$LINENO: result: no" >&5
4028echo "${ECHO_T}no" >&6
4029 fi
4030
4031
4032 enablestring=
4033 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4034echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4035 no_cache=0
4036 # Check whether --enable-no_deps or --disable-no_deps was given.
4037if test "${enable_no_deps+set}" = set; then
4038 enableval="$enable_no_deps"
4039
4040 if test "$enableval" = yes; then
4041 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4042 else
4043 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4044 fi
4045
4046else
4047
4048 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4049 if test "x$LINE" != x ; then
4050 eval "DEFAULT_$LINE"
4051 else
4052 no_cache=1
4053 fi
4054
4055 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4056
4057fi;
4058
4059 eval "$ac_cv_use_no_deps"
4060 if test "$no_cache" != 1; then
4061 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4062 fi
4063
4064 if test "$wxUSE_NO_DEPS" = yes; then
4065 echo "$as_me:$LINENO: result: yes" >&5
4066echo "${ECHO_T}yes" >&6
4067 else
4068 echo "$as_me:$LINENO: result: no" >&5
4069echo "${ECHO_T}no" >&6
4070 fi
4071
4072
4073
4074 enablestring=
4075 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4076echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4077 no_cache=0
4078 # Check whether --enable-compat22 or --disable-compat22 was given.
4079if test "${enable_compat22+set}" = set; then
4080 enableval="$enable_compat22"
4081
4082 if test "$enableval" = yes; then
4083 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4084 else
4085 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4086 fi
4087
4088else
4089
4090 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4091 if test "x$LINE" != x ; then
4092 eval "DEFAULT_$LINE"
4093 else
4094 no_cache=1
4095 fi
4096
4097 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4098
4099fi;
4100
4101 eval "$ac_cv_use_compat22"
4102 if test "$no_cache" != 1; then
4103 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4104 fi
4105
4106 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4107 echo "$as_me:$LINENO: result: yes" >&5
4108echo "${ECHO_T}yes" >&6
4109 else
4110 echo "$as_me:$LINENO: result: no" >&5
4111echo "${ECHO_T}no" >&6
4112 fi
4113
4114
4115 enablestring=disable
4116 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4117echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4118 no_cache=0
4119 # Check whether --enable-compat24 or --disable-compat24 was given.
4120if test "${enable_compat24+set}" = set; then
4121 enableval="$enable_compat24"
4122
4123 if test "$enableval" = yes; then
4124 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4125 else
4126 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4127 fi
4128
4129else
4130
4131 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4132 if test "x$LINE" != x ; then
4133 eval "DEFAULT_$LINE"
4134 else
4135 no_cache=1
4136 fi
4137
4138 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4139
4140fi;
4141
4142 eval "$ac_cv_use_compat24"
4143 if test "$no_cache" != 1; then
4144 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4145 fi
4146
4147 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4148 echo "$as_me:$LINENO: result: yes" >&5
4149echo "${ECHO_T}yes" >&6
4150 else
4151 echo "$as_me:$LINENO: result: no" >&5
4152echo "${ECHO_T}no" >&6
4153 fi
4154
4155
ffa0583f
RL
4156
4157 enablestring=
4158 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4159echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4160 no_cache=0
4161 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4162if test "${enable_rpath+set}" = set; then
4163 enableval="$enable_rpath"
ffa0583f
RL
4164
4165 if test "$enableval" = yes; then
4166 ac_cv_use_rpath='wxUSE_RPATH=yes'
4167 else
4168 ac_cv_use_rpath='wxUSE_RPATH=no'
4169 fi
4170
4171else
4172
4173 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4174 if test "x$LINE" != x ; then
4175 eval "DEFAULT_$LINE"
4176 else
4177 no_cache=1
4178 fi
4179
4180 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4181
a848cd7e
SC
4182fi;
4183
ffa0583f
RL
4184 eval "$ac_cv_use_rpath"
4185 if test "$no_cache" != 1; then
4186 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4187 fi
4188
4189 if test "$wxUSE_RPATH" = yes; then
4190 echo "$as_me:$LINENO: result: yes" >&5
4191echo "${ECHO_T}yes" >&6
4192 else
4193 echo "$as_me:$LINENO: result: no" >&5
4194echo "${ECHO_T}no" >&6
4195 fi
4196
a848cd7e
SC
4197
4198
4199
4200
4201 enablestring=
4202 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4203echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4204 no_cache=0
4205 # Check whether --enable-intl or --disable-intl was given.
4206if test "${enable_intl+set}" = set; then
4207 enableval="$enable_intl"
4208
4209 if test "$enableval" = yes; then
4210 ac_cv_use_intl='wxUSE_INTL=yes'
4211 else
4212 ac_cv_use_intl='wxUSE_INTL=no'
4213 fi
4214
4215else
4216
4217 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4218 if test "x$LINE" != x ; then
4219 eval "DEFAULT_$LINE"
4220 else
4221 no_cache=1
4222 fi
4223
4224 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4225
4226fi;
4227
4228 eval "$ac_cv_use_intl"
4229 if test "$no_cache" != 1; then
4230 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4231 fi
4232
4233 if test "$wxUSE_INTL" = yes; then
4234 echo "$as_me:$LINENO: result: yes" >&5
4235echo "${ECHO_T}yes" >&6
4236 else
4237 echo "$as_me:$LINENO: result: no" >&5
4238echo "${ECHO_T}no" >&6
4239 fi
4240
4241
4242 enablestring=
4243 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4244echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4245 no_cache=0
4246 # Check whether --enable-config or --disable-config was given.
4247if test "${enable_config+set}" = set; then
4248 enableval="$enable_config"
4249
4250 if test "$enableval" = yes; then
4251 ac_cv_use_config='wxUSE_CONFIG=yes'
4252 else
4253 ac_cv_use_config='wxUSE_CONFIG=no'
4254 fi
4255
4256else
4257
4258 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4259 if test "x$LINE" != x ; then
4260 eval "DEFAULT_$LINE"
4261 else
4262 no_cache=1
4263 fi
4264
4265 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4266
4267fi;
4268
4269 eval "$ac_cv_use_config"
4270 if test "$no_cache" != 1; then
4271 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4272 fi
4273
4274 if test "$wxUSE_CONFIG" = yes; then
4275 echo "$as_me:$LINENO: result: yes" >&5
4276echo "${ECHO_T}yes" >&6
4277 else
4278 echo "$as_me:$LINENO: result: no" >&5
4279echo "${ECHO_T}no" >&6
4280 fi
4281
4282
4283
4284 enablestring=
4285 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4286echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4287 no_cache=0
4288 # Check whether --enable-protocols or --disable-protocols was given.
4289if test "${enable_protocols+set}" = set; then
4290 enableval="$enable_protocols"
4291
4292 if test "$enableval" = yes; then
4293 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4294 else
4295 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4296 fi
4297
4298else
4299
4300 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4301 if test "x$LINE" != x ; then
4302 eval "DEFAULT_$LINE"
4303 else
4304 no_cache=1
4305 fi
4306
4307 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4308
4309fi;
4310
4311 eval "$ac_cv_use_protocols"
4312 if test "$no_cache" != 1; then
4313 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4314 fi
4315
4316 if test "$wxUSE_PROTOCOL" = yes; then
4317 echo "$as_me:$LINENO: result: yes" >&5
4318echo "${ECHO_T}yes" >&6
4319 else
4320 echo "$as_me:$LINENO: result: no" >&5
4321echo "${ECHO_T}no" >&6
4322 fi
4323
4324
4325 enablestring=
4326 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4327echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4328 no_cache=0
4329 # Check whether --enable-ftp or --disable-ftp was given.
4330if test "${enable_ftp+set}" = set; then
4331 enableval="$enable_ftp"
4332
4333 if test "$enableval" = yes; then
4334 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4335 else
4336 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4337 fi
4338
4339else
4340
4341 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4342 if test "x$LINE" != x ; then
4343 eval "DEFAULT_$LINE"
4344 else
4345 no_cache=1
4346 fi
4347
4348 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4349
4350fi;
4351
4352 eval "$ac_cv_use_ftp"
4353 if test "$no_cache" != 1; then
4354 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4355 fi
4356
4357 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4358 echo "$as_me:$LINENO: result: yes" >&5
4359echo "${ECHO_T}yes" >&6
4360 else
4361 echo "$as_me:$LINENO: result: no" >&5
4362echo "${ECHO_T}no" >&6
4363 fi
4364
4365
4366 enablestring=
4367 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4368echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4369 no_cache=0
4370 # Check whether --enable-http or --disable-http was given.
4371if test "${enable_http+set}" = set; then
4372 enableval="$enable_http"
4373
4374 if test "$enableval" = yes; then
4375 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4376 else
4377 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4378 fi
4379
4380else
4381
4382 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4383 if test "x$LINE" != x ; then
4384 eval "DEFAULT_$LINE"
4385 else
4386 no_cache=1
4387 fi
4388
4389 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4390
4391fi;
4392
4393 eval "$ac_cv_use_http"
4394 if test "$no_cache" != 1; then
4395 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4396 fi
4397
4398 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4399 echo "$as_me:$LINENO: result: yes" >&5
4400echo "${ECHO_T}yes" >&6
4401 else
4402 echo "$as_me:$LINENO: result: no" >&5
4403echo "${ECHO_T}no" >&6
4404 fi
4405
4406
4407 enablestring=
4408 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4409echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4410 no_cache=0
4411 # Check whether --enable-fileproto or --disable-fileproto was given.
4412if test "${enable_fileproto+set}" = set; then
4413 enableval="$enable_fileproto"
4414
4415 if test "$enableval" = yes; then
4416 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4417 else
4418 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4419 fi
4420
4421else
4422
4423 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4424 if test "x$LINE" != x ; then
4425 eval "DEFAULT_$LINE"
4426 else
4427 no_cache=1
4428 fi
4429
4430 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4431
4432fi;
4433
4434 eval "$ac_cv_use_fileproto"
4435 if test "$no_cache" != 1; then
4436 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4437 fi
4438
4439 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4440 echo "$as_me:$LINENO: result: yes" >&5
4441echo "${ECHO_T}yes" >&6
4442 else
4443 echo "$as_me:$LINENO: result: no" >&5
4444echo "${ECHO_T}no" >&6
4445 fi
4446
4447
4448 enablestring=
4449 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4450echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4451 no_cache=0
4452 # Check whether --enable-sockets or --disable-sockets was given.
4453if test "${enable_sockets+set}" = set; then
4454 enableval="$enable_sockets"
4455
4456 if test "$enableval" = yes; then
4457 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4458 else
4459 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4460 fi
4461
4462else
4463
4464 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4465 if test "x$LINE" != x ; then
4466 eval "DEFAULT_$LINE"
4467 else
4468 no_cache=1
4469 fi
4470
4471 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4472
4473fi;
4474
4475 eval "$ac_cv_use_sockets"
4476 if test "$no_cache" != 1; then
4477 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4478 fi
4479
4480 if test "$wxUSE_SOCKETS" = yes; then
4481 echo "$as_me:$LINENO: result: yes" >&5
4482echo "${ECHO_T}yes" >&6
4483 else
4484 echo "$as_me:$LINENO: result: no" >&5
4485echo "${ECHO_T}no" >&6
4486 fi
4487
4488
4489 enablestring=
4490 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4491echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4492 no_cache=0
4493 # Check whether --enable-ole or --disable-ole was given.
4494if test "${enable_ole+set}" = set; then
4495 enableval="$enable_ole"
4496
4497 if test "$enableval" = yes; then
4498 ac_cv_use_ole='wxUSE_OLE=yes'
4499 else
4500 ac_cv_use_ole='wxUSE_OLE=no'
4501 fi
4502
4503else
4504
4505 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4506 if test "x$LINE" != x ; then
4507 eval "DEFAULT_$LINE"
4508 else
4509 no_cache=1
4510 fi
4511
4512 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4513
4514fi;
4515
4516 eval "$ac_cv_use_ole"
4517 if test "$no_cache" != 1; then
4518 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4519 fi
4520
4521 if test "$wxUSE_OLE" = yes; then
4522 echo "$as_me:$LINENO: result: yes" >&5
4523echo "${ECHO_T}yes" >&6
4524 else
4525 echo "$as_me:$LINENO: result: no" >&5
4526echo "${ECHO_T}no" >&6
4527 fi
4528
4529
4530 enablestring=
4531 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4532echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4533 no_cache=0
4534 # Check whether --enable-dataobj or --disable-dataobj was given.
4535if test "${enable_dataobj+set}" = set; then
4536 enableval="$enable_dataobj"
4537
4538 if test "$enableval" = yes; then
4539 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4540 else
4541 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4542 fi
4543
4544else
4545
4546 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4547 if test "x$LINE" != x ; then
4548 eval "DEFAULT_$LINE"
4549 else
4550 no_cache=1
4551 fi
4552
4553 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4554
4555fi;
4556
4557 eval "$ac_cv_use_dataobj"
4558 if test "$no_cache" != 1; then
4559 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4560 fi
4561
4562 if test "$wxUSE_DATAOBJ" = yes; then
4563 echo "$as_me:$LINENO: result: yes" >&5
4564echo "${ECHO_T}yes" >&6
4565 else
4566 echo "$as_me:$LINENO: result: no" >&5
4567echo "${ECHO_T}no" >&6
4568 fi
4569
4570
4571
4572 enablestring=
4573 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4574echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4575 no_cache=0
4576 # Check whether --enable-ipc or --disable-ipc was given.
4577if test "${enable_ipc+set}" = set; then
4578 enableval="$enable_ipc"
4579
4580 if test "$enableval" = yes; then
4581 ac_cv_use_ipc='wxUSE_IPC=yes'
4582 else
4583 ac_cv_use_ipc='wxUSE_IPC=no'
4584 fi
4585
4586else
4587
4588 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4589 if test "x$LINE" != x ; then
4590 eval "DEFAULT_$LINE"
4591 else
4592 no_cache=1
4593 fi
4594
4595 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4596
4597fi;
4598
4599 eval "$ac_cv_use_ipc"
4600 if test "$no_cache" != 1; then
4601 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4602 fi
4603
4604 if test "$wxUSE_IPC" = yes; then
4605 echo "$as_me:$LINENO: result: yes" >&5
4606echo "${ECHO_T}yes" >&6
4607 else
4608 echo "$as_me:$LINENO: result: no" >&5
4609echo "${ECHO_T}no" >&6
4610 fi
4611
4612
4613
4614 enablestring=
4615 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4616echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4617 no_cache=0
4618 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4619if test "${enable_apple_ieee+set}" = set; then
4620 enableval="$enable_apple_ieee"
4621
4622 if test "$enableval" = yes; then
4623 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4624 else
4625 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4626 fi
4627
4628else
4629
4630 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4631 if test "x$LINE" != x ; then
4632 eval "DEFAULT_$LINE"
4633 else
4634 no_cache=1
4635 fi
4636
4637 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4638
4639fi;
4640
4641 eval "$ac_cv_use_apple_ieee"
4642 if test "$no_cache" != 1; then
4643 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4644 fi
4645
4646 if test "$wxUSE_APPLE_IEEE" = yes; then
4647 echo "$as_me:$LINENO: result: yes" >&5
4648echo "${ECHO_T}yes" >&6
4649 else
4650 echo "$as_me:$LINENO: result: no" >&5
4651echo "${ECHO_T}no" >&6
4652 fi
4653
4654
81f90336
MW
4655 enablestring=
4656 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4657echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4658 no_cache=0
4659 # Check whether --enable-arcstream or --disable-arcstream was given.
4660if test "${enable_arcstream+set}" = set; then
4661 enableval="$enable_arcstream"
4662
4663 if test "$enableval" = yes; then
9e8e867f 4664 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4665 else
9e8e867f 4666 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4667 fi
4668
4669else
4670
9e8e867f 4671 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4672 if test "x$LINE" != x ; then
4673 eval "DEFAULT_$LINE"
4674 else
4675 no_cache=1
4676 fi
4677
9e8e867f 4678 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4679
4680fi;
4681
4682 eval "$ac_cv_use_arcstream"
4683 if test "$no_cache" != 1; then
4684 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4685 fi
4686
9e8e867f 4687 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4688 echo "$as_me:$LINENO: result: yes" >&5
4689echo "${ECHO_T}yes" >&6
4690 else
4691 echo "$as_me:$LINENO: result: no" >&5
4692echo "${ECHO_T}no" >&6
4693 fi
4694
4695
a848cd7e 4696 enablestring=
36b6448c
VZ
4697 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4698echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4699 no_cache=0
36b6448c
VZ
4700 # Check whether --enable-backtrace or --disable-backtrace was given.
4701if test "${enable_backtrace+set}" = set; then
4702 enableval="$enable_backtrace"
a848cd7e
SC
4703
4704 if test "$enableval" = yes; then
36b6448c 4705 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4706 else
36b6448c 4707 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4708 fi
4709
4710else
4711
36b6448c 4712 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4713 if test "x$LINE" != x ; then
4714 eval "DEFAULT_$LINE"
4715 else
4716 no_cache=1
4717 fi
4718
36b6448c 4719 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4720
4721fi;
4722
36b6448c 4723 eval "$ac_cv_use_backtrace"
a848cd7e 4724 if test "$no_cache" != 1; then
36b6448c 4725 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4726 fi
4727
36b6448c 4728 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4729 echo "$as_me:$LINENO: result: yes" >&5
4730echo "${ECHO_T}yes" >&6
4731 else
4732 echo "$as_me:$LINENO: result: no" >&5
4733echo "${ECHO_T}no" >&6
4734 fi
4735
4736
eaff0f0d 4737 enablestring=
36b6448c
VZ
4738 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4739echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4740 no_cache=0
36b6448c
VZ
4741 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4742if test "${enable_catch_segvs+set}" = set; then
4743 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4744
4745 if test "$enableval" = yes; then
36b6448c 4746 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4747 else
36b6448c 4748 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4749 fi
4750
4751else
4752
36b6448c 4753 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4754 if test "x$LINE" != x ; then
4755 eval "DEFAULT_$LINE"
4756 else
4757 no_cache=1
4758 fi
4759
36b6448c 4760 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4761
4762fi;
4763
36b6448c 4764 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4765 if test "$no_cache" != 1; then
36b6448c 4766 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4767 fi
4768
36b6448c 4769 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4770 echo "$as_me:$LINENO: result: yes" >&5
4771echo "${ECHO_T}yes" >&6
4772 else
4773 echo "$as_me:$LINENO: result: no" >&5
4774echo "${ECHO_T}no" >&6
4775 fi
4776
4777
a848cd7e
SC
4778 enablestring=
4779 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4780echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4781 no_cache=0
4782 # Check whether --enable-cmdline or --disable-cmdline was given.
4783if test "${enable_cmdline+set}" = set; then
4784 enableval="$enable_cmdline"
4785
4786 if test "$enableval" = yes; then
4787 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4788 else
4789 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4790 fi
4791
4792else
4793
4794 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4795 if test "x$LINE" != x ; then
4796 eval "DEFAULT_$LINE"
4797 else
4798 no_cache=1
4799 fi
4800
4801 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4802
4803fi;
4804
4805 eval "$ac_cv_use_cmdline"
4806 if test "$no_cache" != 1; then
4807 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4808 fi
4809
4810 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4811 echo "$as_me:$LINENO: result: yes" >&5
4812echo "${ECHO_T}yes" >&6
4813 else
4814 echo "$as_me:$LINENO: result: no" >&5
4815echo "${ECHO_T}no" >&6
4816 fi
4817
4818
4819 enablestring=
4820 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4821echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4822 no_cache=0
4823 # Check whether --enable-datetime or --disable-datetime was given.
4824if test "${enable_datetime+set}" = set; then
4825 enableval="$enable_datetime"
4826
4827 if test "$enableval" = yes; then
4828 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4829 else
4830 ac_cv_use_datetime='wxUSE_DATETIME=no'
4831 fi
4832
4833else
4834
4835 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4836 if test "x$LINE" != x ; then
4837 eval "DEFAULT_$LINE"
4838 else
4839 no_cache=1
4840 fi
4841
4842 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4843
4844fi;
4845
4846 eval "$ac_cv_use_datetime"
4847 if test "$no_cache" != 1; then
4848 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4849 fi
4850
4851 if test "$wxUSE_DATETIME" = yes; then
4852 echo "$as_me:$LINENO: result: yes" >&5
4853echo "${ECHO_T}yes" >&6
4854 else
4855 echo "$as_me:$LINENO: result: no" >&5
4856echo "${ECHO_T}no" >&6
4857 fi
4858
4859
36b6448c
VZ
4860 enablestring=
4861 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4862echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4863 no_cache=0
4864 # Check whether --enable-debugreport or --disable-debugreport was given.
4865if test "${enable_debugreport+set}" = set; then
4866 enableval="$enable_debugreport"
4867
4868 if test "$enableval" = yes; then
4869 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4870 else
4871 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4872 fi
4873
4874else
4875
4876 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4877 if test "x$LINE" != x ; then
4878 eval "DEFAULT_$LINE"
4879 else
4880 no_cache=1
4881 fi
4882
4883 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4884
4885fi;
4886
4887 eval "$ac_cv_use_debugreport"
4888 if test "$no_cache" != 1; then
4889 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4890 fi
4891
4892 if test "$wxUSE_DEBUGREPORT" = yes; then
4893 echo "$as_me:$LINENO: result: yes" >&5
4894echo "${ECHO_T}yes" >&6
4895 else
4896 echo "$as_me:$LINENO: result: no" >&5
4897echo "${ECHO_T}no" >&6
4898 fi
4899
4900
a848cd7e
SC
4901 enablestring=
4902 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4903echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4904 no_cache=0
4905 # Check whether --enable-dialupman or --disable-dialupman was given.
4906if test "${enable_dialupman+set}" = set; then
4907 enableval="$enable_dialupman"
4908
4909 if test "$enableval" = yes; then
4910 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4911 else
4912 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4913 fi
4914
4915else
4916
4917 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4918 if test "x$LINE" != x ; then
4919 eval "DEFAULT_$LINE"
4920 else
4921 no_cache=1
4922 fi
4923
4924 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4925
4926fi;
4927
4928 eval "$ac_cv_use_dialupman"
4929 if test "$no_cache" != 1; then
4930 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4931 fi
4932
4933 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4934 echo "$as_me:$LINENO: result: yes" >&5
4935echo "${ECHO_T}yes" >&6
4936 else
4937 echo "$as_me:$LINENO: result: no" >&5
4938echo "${ECHO_T}no" >&6
4939 fi
4940
4941
4942 enablestring=
4943 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4944echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4945 no_cache=0
4946 # Check whether --enable-dynlib or --disable-dynlib was given.
4947if test "${enable_dynlib+set}" = set; then
4948 enableval="$enable_dynlib"
4949
4950 if test "$enableval" = yes; then
4951 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4952 else
4953 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4954 fi
4955
4956else
4957
4958 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4959 if test "x$LINE" != x ; then
4960 eval "DEFAULT_$LINE"
4961 else
4962 no_cache=1
4963 fi
4964
4965 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4966
4967fi;
4968
4969 eval "$ac_cv_use_dynlib"
4970 if test "$no_cache" != 1; then
4971 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4972 fi
4973
4974 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4975 echo "$as_me:$LINENO: result: yes" >&5
4976echo "${ECHO_T}yes" >&6
4977 else
4978 echo "$as_me:$LINENO: result: no" >&5
4979echo "${ECHO_T}no" >&6
4980 fi
4981
4982
4983 enablestring=
4984 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4985echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4986 no_cache=0
4987 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4988if test "${enable_dynamicloader+set}" = set; then
4989 enableval="$enable_dynamicloader"
4990
4991 if test "$enableval" = yes; then
4992 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4993 else
4994 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4995 fi
4996
4997else
4998
4999 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5000 if test "x$LINE" != x ; then
5001 eval "DEFAULT_$LINE"
5002 else
5003 no_cache=1
5004 fi
5005
5006 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5007
5008fi;
5009
5010 eval "$ac_cv_use_dynamicloader"
5011 if test "$no_cache" != 1; then
5012 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5013 fi
5014
5015 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5016 echo "$as_me:$LINENO: result: yes" >&5
5017echo "${ECHO_T}yes" >&6
5018 else
5019 echo "$as_me:$LINENO: result: no" >&5
5020echo "${ECHO_T}no" >&6
5021 fi
5022
5023
5024 enablestring=
5025 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5026echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5027 no_cache=0
5028 # Check whether --enable-exceptions or --disable-exceptions was given.
5029if test "${enable_exceptions+set}" = set; then
5030 enableval="$enable_exceptions"
5031
5032 if test "$enableval" = yes; then
5033 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5034 else
5035 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5036 fi
5037
5038else
5039
5040 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5041 if test "x$LINE" != x ; then
5042 eval "DEFAULT_$LINE"
5043 else
5044 no_cache=1
5045 fi
5046
5047 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5048
5049fi;
5050
5051 eval "$ac_cv_use_exceptions"
5052 if test "$no_cache" != 1; then
5053 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5054 fi
5055
5056 if test "$wxUSE_EXCEPTIONS" = yes; then
5057 echo "$as_me:$LINENO: result: yes" >&5
5058echo "${ECHO_T}yes" >&6
5059 else
5060 echo "$as_me:$LINENO: result: no" >&5
5061echo "${ECHO_T}no" >&6
5062 fi
5063
5064
5065 enablestring=
5066 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5067echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5068 no_cache=0
5069 # Check whether --enable-ffile or --disable-ffile was given.
5070if test "${enable_ffile+set}" = set; then
5071 enableval="$enable_ffile"
5072
5073 if test "$enableval" = yes; then
5074 ac_cv_use_ffile='wxUSE_FFILE=yes'
5075 else
5076 ac_cv_use_ffile='wxUSE_FFILE=no'
5077 fi
5078
5079else
5080
5081 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5082 if test "x$LINE" != x ; then
5083 eval "DEFAULT_$LINE"
5084 else
5085 no_cache=1
5086 fi
5087
5088 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5089
5090fi;
5091
5092 eval "$ac_cv_use_ffile"
5093 if test "$no_cache" != 1; then
5094 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5095 fi
5096
5097 if test "$wxUSE_FFILE" = yes; then
5098 echo "$as_me:$LINENO: result: yes" >&5
5099echo "${ECHO_T}yes" >&6
5100 else
5101 echo "$as_me:$LINENO: result: no" >&5
5102echo "${ECHO_T}no" >&6
5103 fi
5104
5105
5106 enablestring=
5107 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5108echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5109 no_cache=0
5110 # Check whether --enable-file or --disable-file was given.
5111if test "${enable_file+set}" = set; then
5112 enableval="$enable_file"
5113
5114 if test "$enableval" = yes; then
5115 ac_cv_use_file='wxUSE_FILE=yes'
5116 else
5117 ac_cv_use_file='wxUSE_FILE=no'
5118 fi
5119
5120else
5121
5122 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5123 if test "x$LINE" != x ; then
5124 eval "DEFAULT_$LINE"
5125 else
5126 no_cache=1
5127 fi
5128
5129 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5130
5131fi;
5132
5133 eval "$ac_cv_use_file"
5134 if test "$no_cache" != 1; then
5135 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5136 fi
5137
5138 if test "$wxUSE_FILE" = yes; then
5139 echo "$as_me:$LINENO: result: yes" >&5
5140echo "${ECHO_T}yes" >&6
5141 else
5142 echo "$as_me:$LINENO: result: no" >&5
5143echo "${ECHO_T}no" >&6
5144 fi
5145
5146
5147 enablestring=
5148 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5149echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5150 no_cache=0
5151 # Check whether --enable-filesystem or --disable-filesystem was given.
5152if test "${enable_filesystem+set}" = set; then
5153 enableval="$enable_filesystem"
5154
5155 if test "$enableval" = yes; then
5156 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5157 else
5158 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5159 fi
5160
5161else
5162
5163 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5164 if test "x$LINE" != x ; then
5165 eval "DEFAULT_$LINE"
5166 else
5167 no_cache=1
5168 fi
5169
5170 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5171
5172fi;
5173
5174 eval "$ac_cv_use_filesystem"
5175 if test "$no_cache" != 1; then
5176 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5177 fi
5178
5179 if test "$wxUSE_FILESYSTEM" = yes; then
5180 echo "$as_me:$LINENO: result: yes" >&5
5181echo "${ECHO_T}yes" >&6
5182 else
5183 echo "$as_me:$LINENO: result: no" >&5
5184echo "${ECHO_T}no" >&6
5185 fi
5186
5187
5188 enablestring=
5189 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5190echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5191 no_cache=0
5192 # Check whether --enable-fontmap or --disable-fontmap was given.
5193if test "${enable_fontmap+set}" = set; then
5194 enableval="$enable_fontmap"
5195
5196 if test "$enableval" = yes; then
5197 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5198 else
5199 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5200 fi
5201
5202else
5203
5204 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5205 if test "x$LINE" != x ; then
5206 eval "DEFAULT_$LINE"
5207 else
5208 no_cache=1
5209 fi
5210
5211 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5212
5213fi;
5214
5215 eval "$ac_cv_use_fontmap"
5216 if test "$no_cache" != 1; then
5217 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5218 fi
5219
5220 if test "$wxUSE_FONTMAP" = yes; then
5221 echo "$as_me:$LINENO: result: yes" >&5
5222echo "${ECHO_T}yes" >&6
5223 else
5224 echo "$as_me:$LINENO: result: no" >&5
5225echo "${ECHO_T}no" >&6
5226 fi
5227
5228
5229 enablestring=
5230 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5231echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5232 no_cache=0
5233 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5234if test "${enable_fs_inet+set}" = set; then
5235 enableval="$enable_fs_inet"
5236
5237 if test "$enableval" = yes; then
5238 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5239 else
5240 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5241 fi
5242
5243else
5244
5245 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5246 if test "x$LINE" != x ; then
5247 eval "DEFAULT_$LINE"
5248 else
5249 no_cache=1
5250 fi
5251
5252 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5253
5254fi;
5255
5256 eval "$ac_cv_use_fs_inet"
5257 if test "$no_cache" != 1; then
5258 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5259 fi
5260
5261 if test "$wxUSE_FS_INET" = yes; then
5262 echo "$as_me:$LINENO: result: yes" >&5
5263echo "${ECHO_T}yes" >&6
5264 else
5265 echo "$as_me:$LINENO: result: no" >&5
5266echo "${ECHO_T}no" >&6
5267 fi
5268
5269
5270 enablestring=
5271 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5272echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5273 no_cache=0
5274 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5275if test "${enable_fs_zip+set}" = set; then
5276 enableval="$enable_fs_zip"
5277
5278 if test "$enableval" = yes; then
5279 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5280 else
5281 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5282 fi
5283
5284else
5285
5286 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5287 if test "x$LINE" != x ; then
5288 eval "DEFAULT_$LINE"
5289 else
5290 no_cache=1
5291 fi
5292
5293 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5294
5295fi;
5296
5297 eval "$ac_cv_use_fs_zip"
5298 if test "$no_cache" != 1; then
5299 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5300 fi
5301
5302 if test "$wxUSE_FS_ZIP" = yes; then
5303 echo "$as_me:$LINENO: result: yes" >&5
5304echo "${ECHO_T}yes" >&6
5305 else
5306 echo "$as_me:$LINENO: result: no" >&5
5307echo "${ECHO_T}no" >&6
5308 fi
5309
5310
5311 enablestring=
5312 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5313echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5314 no_cache=0
5315 # Check whether --enable-geometry or --disable-geometry was given.
5316if test "${enable_geometry+set}" = set; then
5317 enableval="$enable_geometry"
5318
5319 if test "$enableval" = yes; then
5320 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5321 else
5322 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5323 fi
5324
5325else
5326
5327 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5328 if test "x$LINE" != x ; then
5329 eval "DEFAULT_$LINE"
5330 else
5331 no_cache=1
5332 fi
5333
5334 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5335
5336fi;
5337
5338 eval "$ac_cv_use_geometry"
5339 if test "$no_cache" != 1; then
5340 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5341 fi
5342
5343 if test "$wxUSE_GEOMETRY" = yes; then
5344 echo "$as_me:$LINENO: result: yes" >&5
5345echo "${ECHO_T}yes" >&6
5346 else
5347 echo "$as_me:$LINENO: result: no" >&5
5348echo "${ECHO_T}no" >&6
5349 fi
5350
5351
5352 enablestring=
5353 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5354echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5355 no_cache=0
5356 # Check whether --enable-log or --disable-log was given.
5357if test "${enable_log+set}" = set; then
5358 enableval="$enable_log"
5359
5360 if test "$enableval" = yes; then
5361 ac_cv_use_log='wxUSE_LOG=yes'
5362 else
5363 ac_cv_use_log='wxUSE_LOG=no'
5364 fi
5365
5366else
5367
5368 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5369 if test "x$LINE" != x ; then
5370 eval "DEFAULT_$LINE"
5371 else
5372 no_cache=1
5373 fi
5374
5375 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5376
5377fi;
5378
5379 eval "$ac_cv_use_log"
5380 if test "$no_cache" != 1; then
5381 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5382 fi
5383
5384 if test "$wxUSE_LOG" = yes; then
5385 echo "$as_me:$LINENO: result: yes" >&5
5386echo "${ECHO_T}yes" >&6
5387 else
5388 echo "$as_me:$LINENO: result: no" >&5
5389echo "${ECHO_T}no" >&6
5390 fi
5391
5392
5393 enablestring=
5394 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5395echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5396 no_cache=0
5397 # Check whether --enable-longlong or --disable-longlong was given.
5398if test "${enable_longlong+set}" = set; then
5399 enableval="$enable_longlong"
5400
5401 if test "$enableval" = yes; then
5402 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5403 else
5404 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5405 fi
5406
5407else
5408
5409 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5410 if test "x$LINE" != x ; then
5411 eval "DEFAULT_$LINE"
5412 else
5413 no_cache=1
5414 fi
5415
5416 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5417
5418fi;
5419
5420 eval "$ac_cv_use_longlong"
5421 if test "$no_cache" != 1; then
5422 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5423 fi
5424
5425 if test "$wxUSE_LONGLONG" = yes; then
5426 echo "$as_me:$LINENO: result: yes" >&5
5427echo "${ECHO_T}yes" >&6
5428 else
5429 echo "$as_me:$LINENO: result: no" >&5
5430echo "${ECHO_T}no" >&6
5431 fi
5432
5433
5434 enablestring=
5435 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5436echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5437 no_cache=0
5438 # Check whether --enable-mimetype or --disable-mimetype was given.
5439if test "${enable_mimetype+set}" = set; then
5440 enableval="$enable_mimetype"
5441
5442 if test "$enableval" = yes; then
5443 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5444 else
5445 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5446 fi
5447
5448else
5449
5450 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5451 if test "x$LINE" != x ; then
5452 eval "DEFAULT_$LINE"
5453 else
5454 no_cache=1
5455 fi
5456
5457 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5458
5459fi;
5460
5461 eval "$ac_cv_use_mimetype"
5462 if test "$no_cache" != 1; then
5463 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5464 fi
5465
5466 if test "$wxUSE_MIMETYPE" = yes; then
5467 echo "$as_me:$LINENO: result: yes" >&5
5468echo "${ECHO_T}yes" >&6
5469 else
5470 echo "$as_me:$LINENO: result: no" >&5
5471echo "${ECHO_T}no" >&6
5472 fi
5473
5474
5475 enablestring=
5476 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5477echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5478 no_cache=0
5479 # Check whether --enable-mslu or --disable-mslu was given.
5480if test "${enable_mslu+set}" = set; then
5481 enableval="$enable_mslu"
5482
5483 if test "$enableval" = yes; then
5484 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5485 else
5486 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5487 fi
5488
5489else
5490
5491 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5492 if test "x$LINE" != x ; then
5493 eval "DEFAULT_$LINE"
5494 else
5495 no_cache=1
5496 fi
5497
5498 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5499
5500fi;
5501
5502 eval "$ac_cv_use_mslu"
5503 if test "$no_cache" != 1; then
5504 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5505 fi
5506
5507 if test "$wxUSE_UNICODE_MSLU" = yes; then
5508 echo "$as_me:$LINENO: result: yes" >&5
5509echo "${ECHO_T}yes" >&6
5510 else
5511 echo "$as_me:$LINENO: result: no" >&5
5512echo "${ECHO_T}no" >&6
5513 fi
5514
5515
5516 enablestring=
5517 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5518echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5519 no_cache=0
5520 # Check whether --enable-snglinst or --disable-snglinst was given.
5521if test "${enable_snglinst+set}" = set; then
5522 enableval="$enable_snglinst"
5523
5524 if test "$enableval" = yes; then
5525 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5526 else
5527 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5528 fi
5529
5530else
5531
5532 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5533 if test "x$LINE" != x ; then
5534 eval "DEFAULT_$LINE"
5535 else
5536 no_cache=1
5537 fi
5538
5539 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5540
5541fi;
5542
5543 eval "$ac_cv_use_snglinst"
5544 if test "$no_cache" != 1; then
5545 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5546 fi
5547
5548 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5549 echo "$as_me:$LINENO: result: yes" >&5
5550echo "${ECHO_T}yes" >&6
5551 else
5552 echo "$as_me:$LINENO: result: no" >&5
5553echo "${ECHO_T}no" >&6
5554 fi
5555
5556
5557 enablestring=
07158944
VZ
5558 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5559echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5560 no_cache=0
07158944
VZ
5561 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5562if test "${enable_std_iostreams+set}" = set; then
5563 enableval="$enable_std_iostreams"
a848cd7e
SC
5564
5565 if test "$enableval" = yes; then
07158944 5566 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5567 else
07158944 5568 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5569 fi
5570
5571else
5572
07158944 5573 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5574 if test "x$LINE" != x ; then
5575 eval "DEFAULT_$LINE"
5576 else
5577 no_cache=1
5578 fi
5579
07158944 5580 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5581
5582fi;
5583
07158944 5584 eval "$ac_cv_use_std_iostreams"
a848cd7e 5585 if test "$no_cache" != 1; then
07158944 5586 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5587 fi
5588
07158944 5589 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5590 echo "$as_me:$LINENO: result: yes" >&5
5591echo "${ECHO_T}yes" >&6
5592 else
5593 echo "$as_me:$LINENO: result: no" >&5
5594echo "${ECHO_T}no" >&6
5595 fi
5596
5597
59746b65
MW
5598 enablestring=
5599 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5600echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5601 no_cache=0
5602 # Check whether --enable-std_string or --disable-std_string was given.
5603if test "${enable_std_string+set}" = set; then
5604 enableval="$enable_std_string"
5605
5606 if test "$enableval" = yes; then
5607 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5608 else
5609 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5610 fi
5611
5612else
5613
5614 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5615 if test "x$LINE" != x ; then
5616 eval "DEFAULT_$LINE"
5617 else
5618 no_cache=1
5619 fi
5620
5621 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5622
5623fi;
5624
5625 eval "$ac_cv_use_std_string"
5626 if test "$no_cache" != 1; then
5627 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5628 fi
5629
5630 if test "$wxUSE_STD_STRING" = yes; then
5631 echo "$as_me:$LINENO: result: yes" >&5
5632echo "${ECHO_T}yes" >&6
5633 else
5634 echo "$as_me:$LINENO: result: no" >&5
5635echo "${ECHO_T}no" >&6
5636 fi
5637
5638
a848cd7e 5639 enablestring=
07158944
VZ
5640 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5641echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5642 no_cache=0
07158944
VZ
5643 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5644if test "${enable_stdpaths+set}" = set; then
5645 enableval="$enable_stdpaths"
a848cd7e
SC
5646
5647 if test "$enableval" = yes; then
07158944 5648 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5649 else
07158944 5650 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5651 fi
5652
5653else
5654
07158944 5655 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5656 if test "x$LINE" != x ; then
5657 eval "DEFAULT_$LINE"
5658 else
5659 no_cache=1
5660 fi
5661
07158944 5662 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5663
5664fi;
5665
07158944 5666 eval "$ac_cv_use_stdpaths"
a848cd7e 5667 if test "$no_cache" != 1; then
07158944 5668 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5669 fi
5670
07158944 5671 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5672 echo "$as_me:$LINENO: result: yes" >&5
5673echo "${ECHO_T}yes" >&6
5674 else
5675 echo "$as_me:$LINENO: result: no" >&5
5676echo "${ECHO_T}no" >&6
5677 fi
5678
5679
5680 enablestring=
5681 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5682echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5683 no_cache=0
5684 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5685if test "${enable_stopwatch+set}" = set; then
5686 enableval="$enable_stopwatch"
5687
5688 if test "$enableval" = yes; then
5689 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5690 else
5691 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5692 fi
5693
5694else
5695
5696 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5697 if test "x$LINE" != x ; then
5698 eval "DEFAULT_$LINE"
5699 else
5700 no_cache=1
5701 fi
5702
5703 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5704
5705fi;
5706
5707 eval "$ac_cv_use_stopwatch"
5708 if test "$no_cache" != 1; then
5709 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5710 fi
5711
5712 if test "$wxUSE_STOPWATCH" = yes; then
5713 echo "$as_me:$LINENO: result: yes" >&5
5714echo "${ECHO_T}yes" >&6
5715 else
5716 echo "$as_me:$LINENO: result: no" >&5
5717echo "${ECHO_T}no" >&6
5718 fi
5719
5720
07158944
VZ
5721 enablestring=
5722 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5723echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5724 no_cache=0
5725 # Check whether --enable-streams or --disable-streams was given.
5726if test "${enable_streams+set}" = set; then
5727 enableval="$enable_streams"
5728
5729 if test "$enableval" = yes; then
5730 ac_cv_use_streams='wxUSE_STREAMS=yes'
5731 else
5732 ac_cv_use_streams='wxUSE_STREAMS=no'
5733 fi
5734
5735else
5736
5737 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5738 if test "x$LINE" != x ; then
5739 eval "DEFAULT_$LINE"
5740 else
5741 no_cache=1
5742 fi
5743
5744 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5745
5746fi;
5747
5748 eval "$ac_cv_use_streams"
5749 if test "$no_cache" != 1; then
5750 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5751 fi
5752
5753 if test "$wxUSE_STREAMS" = yes; then
5754 echo "$as_me:$LINENO: result: yes" >&5
5755echo "${ECHO_T}yes" >&6
5756 else
5757 echo "$as_me:$LINENO: result: no" >&5
5758echo "${ECHO_T}no" >&6
5759 fi
5760
5761
a848cd7e
SC
5762 enablestring=
5763 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5764echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5765 no_cache=0
5766 # Check whether --enable-system_options or --disable-system_options was given.
5767if test "${enable_system_options+set}" = set; then
5768 enableval="$enable_system_options"
5769
5770 if test "$enableval" = yes; then
5771 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5772 else
5773 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5774 fi
5775
5776else
5777
5778 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5779 if test "x$LINE" != x ; then
5780 eval "DEFAULT_$LINE"
5781 else
5782 no_cache=1
5783 fi
5784
5785 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5786
5787fi;
5788
5789 eval "$ac_cv_use_system_options"
5790 if test "$no_cache" != 1; then
5791 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5792 fi
5793
5794 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5795 echo "$as_me:$LINENO: result: yes" >&5
5796echo "${ECHO_T}yes" >&6
5797 else
5798 echo "$as_me:$LINENO: result: no" >&5
5799echo "${ECHO_T}no" >&6
5800 fi
5801
5802
5803 enablestring=
5804 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5805echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5806 no_cache=0
5807 # Check whether --enable-textbuf or --disable-textbuf was given.
5808if test "${enable_textbuf+set}" = set; then
5809 enableval="$enable_textbuf"
5810
5811 if test "$enableval" = yes; then
5812 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5813 else
5814 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5815 fi
5816
5817else
5818
5819 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5820 if test "x$LINE" != x ; then
5821 eval "DEFAULT_$LINE"
5822 else
5823 no_cache=1
5824 fi
5825
5826 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5827
5828fi;
5829
5830 eval "$ac_cv_use_textbuf"
5831 if test "$no_cache" != 1; then
5832 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5833 fi
5834
5835 if test "$wxUSE_TEXTBUFFER" = yes; then
5836 echo "$as_me:$LINENO: result: yes" >&5
5837echo "${ECHO_T}yes" >&6
5838 else
5839 echo "$as_me:$LINENO: result: no" >&5
5840echo "${ECHO_T}no" >&6
5841 fi
5842
5843
5844 enablestring=
5845 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5846echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5847 no_cache=0
5848 # Check whether --enable-textfile or --disable-textfile was given.
5849if test "${enable_textfile+set}" = set; then
5850 enableval="$enable_textfile"
5851
5852 if test "$enableval" = yes; then
5853 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5854 else
5855 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5856 fi
5857
5858else
5859
5860 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5861 if test "x$LINE" != x ; then
5862 eval "DEFAULT_$LINE"
5863 else
5864 no_cache=1
5865 fi
5866
5867 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5868
5869fi;
5870
5871 eval "$ac_cv_use_textfile"
5872 if test "$no_cache" != 1; then
5873 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5874 fi
5875
5876 if test "$wxUSE_TEXTFILE" = yes; then
5877 echo "$as_me:$LINENO: result: yes" >&5
5878echo "${ECHO_T}yes" >&6
5879 else
5880 echo "$as_me:$LINENO: result: no" >&5
5881echo "${ECHO_T}no" >&6
5882 fi
5883
5884
5885 enablestring=
5886 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5887echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5888 no_cache=0
5889 # Check whether --enable-timer or --disable-timer was given.
5890if test "${enable_timer+set}" = set; then
5891 enableval="$enable_timer"
5892
5893 if test "$enableval" = yes; then
5894 ac_cv_use_timer='wxUSE_TIMER=yes'
5895 else
5896 ac_cv_use_timer='wxUSE_TIMER=no'
5897 fi
5898
5899else
5900
5901 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5902 if test "x$LINE" != x ; then
5903 eval "DEFAULT_$LINE"
5904 else
5905 no_cache=1
5906 fi
5907
5908 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5909
5910fi;
5911
5912 eval "$ac_cv_use_timer"
5913 if test "$no_cache" != 1; then
5914 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5915 fi
5916
5917 if test "$wxUSE_TIMER" = yes; then
5918 echo "$as_me:$LINENO: result: yes" >&5
5919echo "${ECHO_T}yes" >&6
5920 else
5921 echo "$as_me:$LINENO: result: no" >&5
5922echo "${ECHO_T}no" >&6
5923 fi
5924
5925
5926 enablestring=
5927 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5928echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5929 no_cache=0
5930 # Check whether --enable-unicode or --disable-unicode was given.
5931if test "${enable_unicode+set}" = set; then
5932 enableval="$enable_unicode"
5933
5934 if test "$enableval" = yes; then
5935 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5936 else
5937 ac_cv_use_unicode='wxUSE_UNICODE=no'
5938 fi
5939
5940else
5941
5942 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5943 if test "x$LINE" != x ; then
5944 eval "DEFAULT_$LINE"
5945 else
5946 no_cache=1
5947 fi
5948
5949 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5950
5951fi;
5952
5953 eval "$ac_cv_use_unicode"
5954 if test "$no_cache" != 1; then
5955 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5956 fi
5957
5958 if test "$wxUSE_UNICODE" = yes; then
5959 echo "$as_me:$LINENO: result: yes" >&5
5960echo "${ECHO_T}yes" >&6
5961 else
5962 echo "$as_me:$LINENO: result: no" >&5
5963echo "${ECHO_T}no" >&6
5964 fi
5965
5966
5967 enablestring=
5968 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5969echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5970 no_cache=0
5971 # Check whether --enable-sound or --disable-sound was given.
5972if test "${enable_sound+set}" = set; then
5973 enableval="$enable_sound"
5974
5975 if test "$enableval" = yes; then
5976 ac_cv_use_sound='wxUSE_SOUND=yes'
5977 else
5978 ac_cv_use_sound='wxUSE_SOUND=no'
5979 fi
5980
5981else
5982
5983 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5984 if test "x$LINE" != x ; then
5985 eval "DEFAULT_$LINE"
5986 else
5987 no_cache=1
5988 fi
5989
5990 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5991
5992fi;
5993
5994 eval "$ac_cv_use_sound"
5995 if test "$no_cache" != 1; then
5996 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5997 fi
5998
5999 if test "$wxUSE_SOUND" = yes; then
6000 echo "$as_me:$LINENO: result: yes" >&5
6001echo "${ECHO_T}yes" >&6
6002 else
6003 echo "$as_me:$LINENO: result: no" >&5
6004echo "${ECHO_T}no" >&6
6005 fi
6006
6007
3b57de8b
RL
6008 enablestring=
6009 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6010echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6011 no_cache=0
6012 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6013if test "${enable_mediactrl+set}" = set; then
6014 enableval="$enable_mediactrl"
6015
6016 if test "$enableval" = yes; then
6017 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6018 else
6019 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6020 fi
6021
6022else
6023
6024 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6025 if test "x$LINE" != x ; then
6026 eval "DEFAULT_$LINE"
6027 else
6028 no_cache=1
6029 fi
6030
6031 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6032
6033fi;
6034
6035 eval "$ac_cv_use_mediactrl"
6036 if test "$no_cache" != 1; then
6037 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6038 fi
6039
6040 if test "$wxUSE_MEDIACTRL" = yes; then
6041 echo "$as_me:$LINENO: result: yes" >&5
6042echo "${ECHO_T}yes" >&6
6043 else
6044 echo "$as_me:$LINENO: result: no" >&5
6045echo "${ECHO_T}no" >&6
6046 fi
6047
6048
a848cd7e
SC
6049 enablestring=
6050 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6051echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6052 no_cache=0
6053 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6054if test "${enable_wxprintfv+set}" = set; then
6055 enableval="$enable_wxprintfv"
6056
6057 if test "$enableval" = yes; then
6058 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6059 else
6060 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6061 fi
6062
6063else
6064
6065 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6066 if test "x$LINE" != x ; then
6067 eval "DEFAULT_$LINE"
6068 else
6069 no_cache=1
6070 fi
6071
6072 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6073
6074fi;
6075
6076 eval "$ac_cv_use_wxprintfv"
6077 if test "$no_cache" != 1; then
6078 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6079 fi
6080
6081 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6082 echo "$as_me:$LINENO: result: yes" >&5
6083echo "${ECHO_T}yes" >&6
6084 else
6085 echo "$as_me:$LINENO: result: no" >&5
6086echo "${ECHO_T}no" >&6
6087 fi
6088
6089
6090 enablestring=
6091 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6092echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6093 no_cache=0
6094 # Check whether --enable-zipstream or --disable-zipstream was given.
6095if test "${enable_zipstream+set}" = set; then
6096 enableval="$enable_zipstream"
6097
6098 if test "$enableval" = yes; then
6099 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6100 else
6101 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6102 fi
6103
6104else
6105
6106 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6107 if test "x$LINE" != x ; then
6108 eval "DEFAULT_$LINE"
6109 else
6110 no_cache=1
6111 fi
6112
6113 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6114
6115fi;
6116
6117 eval "$ac_cv_use_zipstream"
6118 if test "$no_cache" != 1; then
6119 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6120 fi
6121
6122 if test "$wxUSE_ZIPSTREAM" = yes; then
6123 echo "$as_me:$LINENO: result: yes" >&5
6124echo "${ECHO_T}yes" >&6
6125 else
6126 echo "$as_me:$LINENO: result: no" >&5
6127echo "${ECHO_T}no" >&6
6128 fi
6129
6130
a848cd7e
SC
6131
6132 enablestring=
6133 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6134echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6135 no_cache=0
6136 # Check whether --enable-url or --disable-url was given.
6137if test "${enable_url+set}" = set; then
6138 enableval="$enable_url"
6139
6140 if test "$enableval" = yes; then
6141 ac_cv_use_url='wxUSE_URL=yes'
6142 else
6143 ac_cv_use_url='wxUSE_URL=no'
6144 fi
6145
6146else
6147
6148 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6149 if test "x$LINE" != x ; then
6150 eval "DEFAULT_$LINE"
6151 else
6152 no_cache=1
6153 fi
6154
6155 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6156
6157fi;
6158
6159 eval "$ac_cv_use_url"
6160 if test "$no_cache" != 1; then
6161 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6162 fi
6163
6164 if test "$wxUSE_URL" = yes; then
6165 echo "$as_me:$LINENO: result: yes" >&5
6166echo "${ECHO_T}yes" >&6
6167 else
6168 echo "$as_me:$LINENO: result: no" >&5
6169echo "${ECHO_T}no" >&6
6170 fi
6171
6172
6173 enablestring=
6174 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6175echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6176 no_cache=0
6177 # Check whether --enable-protocol or --disable-protocol was given.
6178if test "${enable_protocol+set}" = set; then
6179 enableval="$enable_protocol"
6180
6181 if test "$enableval" = yes; then
6182 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6183 else
6184 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6185 fi
6186
6187else
6188
6189 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6190 if test "x$LINE" != x ; then
6191 eval "DEFAULT_$LINE"
6192 else
6193 no_cache=1
6194 fi
6195
6196 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6197
6198fi;
6199
6200 eval "$ac_cv_use_protocol"
6201 if test "$no_cache" != 1; then
6202 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6203 fi
6204
6205 if test "$wxUSE_PROTOCOL" = yes; then
6206 echo "$as_me:$LINENO: result: yes" >&5
6207echo "${ECHO_T}yes" >&6
6208 else
6209 echo "$as_me:$LINENO: result: no" >&5
6210echo "${ECHO_T}no" >&6
6211 fi
6212
6213
6214 enablestring=
6215 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6216echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6217 no_cache=0
6218 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6219if test "${enable_protocol_http+set}" = set; then
6220 enableval="$enable_protocol_http"
6221
6222 if test "$enableval" = yes; then
6223 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6224 else
6225 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6226 fi
6227
6228else
6229
6230 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6231 if test "x$LINE" != x ; then
6232 eval "DEFAULT_$LINE"
6233 else
6234 no_cache=1
6235 fi
6236
6237 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6238
6239fi;
6240
6241 eval "$ac_cv_use_protocol_http"
6242 if test "$no_cache" != 1; then
6243 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6244 fi
6245
6246 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6247 echo "$as_me:$LINENO: result: yes" >&5
6248echo "${ECHO_T}yes" >&6
6249 else
6250 echo "$as_me:$LINENO: result: no" >&5
6251echo "${ECHO_T}no" >&6
6252 fi
6253
6254
6255 enablestring=
6256 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6257echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6258 no_cache=0
6259 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6260if test "${enable_protocol_ftp+set}" = set; then
6261 enableval="$enable_protocol_ftp"
6262
6263 if test "$enableval" = yes; then
6264 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6265 else
6266 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6267 fi
6268
6269else
6270
6271 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6272 if test "x$LINE" != x ; then
6273 eval "DEFAULT_$LINE"
6274 else
6275 no_cache=1
6276 fi
6277
6278 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6279
6280fi;
6281
6282 eval "$ac_cv_use_protocol_ftp"
6283 if test "$no_cache" != 1; then
6284 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6285 fi
6286
6287 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6288 echo "$as_me:$LINENO: result: yes" >&5
6289echo "${ECHO_T}yes" >&6
6290 else
6291 echo "$as_me:$LINENO: result: no" >&5
6292echo "${ECHO_T}no" >&6
6293 fi
6294
6295
6296 enablestring=
6297 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6298echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6299 no_cache=0
6300 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6301if test "${enable_protocol_file+set}" = set; then
6302 enableval="$enable_protocol_file"
6303
6304 if test "$enableval" = yes; then
6305 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6306 else
6307 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6308 fi
6309
6310else
6311
6312 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6313 if test "x$LINE" != x ; then
6314 eval "DEFAULT_$LINE"
6315 else
6316 no_cache=1
6317 fi
6318
6319 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6320
6321fi;
6322
6323 eval "$ac_cv_use_protocol_file"
6324 if test "$no_cache" != 1; then
6325 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6326 fi
6327
6328 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6329 echo "$as_me:$LINENO: result: yes" >&5
6330echo "${ECHO_T}yes" >&6
6331 else
6332 echo "$as_me:$LINENO: result: no" >&5
6333echo "${ECHO_T}no" >&6
6334 fi
6335
6336
6337
6338
6339
6340 enablestring=
6341 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6342echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6343 no_cache=0
6344 # Check whether --enable-threads or --disable-threads was given.
6345if test "${enable_threads+set}" = set; then
6346 enableval="$enable_threads"
6347
6348 if test "$enableval" = yes; then
6349 ac_cv_use_threads='wxUSE_THREADS=yes'
6350 else
6351 ac_cv_use_threads='wxUSE_THREADS=no'
6352 fi
6353
6354else
6355
6356 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6357 if test "x$LINE" != x ; then
6358 eval "DEFAULT_$LINE"
6359 else
6360 no_cache=1
6361 fi
6362
6363 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6364
6365fi;
6366
6367 eval "$ac_cv_use_threads"
6368 if test "$no_cache" != 1; then
6369 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6370 fi
6371
6372 if test "$wxUSE_THREADS" = yes; then
6373 echo "$as_me:$LINENO: result: yes" >&5
6374echo "${ECHO_T}yes" >&6
6375 else
6376 echo "$as_me:$LINENO: result: no" >&5
6377echo "${ECHO_T}no" >&6
6378 fi
6379
6380
6381if test "$wxUSE_GUI" = "yes"; then
6382
6383
6384
6385 enablestring=
6386 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6387echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6388 no_cache=0
6389 # Check whether --enable-docview or --disable-docview was given.
6390if test "${enable_docview+set}" = set; then
6391 enableval="$enable_docview"
6392
6393 if test "$enableval" = yes; then
6394 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6395 else
6396 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6397 fi
6398
6399else
6400
6401 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6402 if test "x$LINE" != x ; then
6403 eval "DEFAULT_$LINE"
6404 else
6405 no_cache=1
6406 fi
6407
6408 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6409
6410fi;
6411
6412 eval "$ac_cv_use_docview"
6413 if test "$no_cache" != 1; then
6414 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6415 fi
6416
6417 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6418 echo "$as_me:$LINENO: result: yes" >&5
6419echo "${ECHO_T}yes" >&6
6420 else
6421 echo "$as_me:$LINENO: result: no" >&5
6422echo "${ECHO_T}no" >&6
6423 fi
6424
6425
6426 enablestring=
6427 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6428echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6429 no_cache=0
6430 # Check whether --enable-help or --disable-help was given.
6431if test "${enable_help+set}" = set; then
6432 enableval="$enable_help"
6433
6434 if test "$enableval" = yes; then
6435 ac_cv_use_help='wxUSE_HELP=yes'
6436 else
6437 ac_cv_use_help='wxUSE_HELP=no'
6438 fi
6439
6440else
6441
6442 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6443 if test "x$LINE" != x ; then
6444 eval "DEFAULT_$LINE"
6445 else
6446 no_cache=1
6447 fi
6448
6449 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6450
6451fi;
6452
6453 eval "$ac_cv_use_help"
6454 if test "$no_cache" != 1; then
6455 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6456 fi
6457
6458 if test "$wxUSE_HELP" = yes; then
6459 echo "$as_me:$LINENO: result: yes" >&5
6460echo "${ECHO_T}yes" >&6
6461 else
6462 echo "$as_me:$LINENO: result: no" >&5
6463echo "${ECHO_T}no" >&6
6464 fi
6465
6466
6467 enablestring=
6468 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6469echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6470 no_cache=0
6471 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6472if test "${enable_mshtmlhelp+set}" = set; then
6473 enableval="$enable_mshtmlhelp"
6474
6475 if test "$enableval" = yes; then
6476 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6477 else
6478 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6479 fi
6480
6481else
6482
6483 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6484 if test "x$LINE" != x ; then
6485 eval "DEFAULT_$LINE"
6486 else
6487 no_cache=1
6488 fi
6489
6490 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6491
6492fi;
6493
6494 eval "$ac_cv_use_mshtmlhelp"
6495 if test "$no_cache" != 1; then
6496 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6497 fi
6498
6499 if test "$wxUSE_MS_HTML_HELP" = yes; then
6500 echo "$as_me:$LINENO: result: yes" >&5
6501echo "${ECHO_T}yes" >&6
6502 else
6503 echo "$as_me:$LINENO: result: no" >&5
6504echo "${ECHO_T}no" >&6
6505 fi
6506
6507
6508 enablestring=
6509 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6510echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6511 no_cache=0
6512 # Check whether --enable-html or --disable-html was given.
6513if test "${enable_html+set}" = set; then
6514 enableval="$enable_html"
6515
6516 if test "$enableval" = yes; then
6517 ac_cv_use_html='wxUSE_HTML=yes'
6518 else
6519 ac_cv_use_html='wxUSE_HTML=no'
6520 fi
6521
6522else
6523
6524 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6525 if test "x$LINE" != x ; then
6526 eval "DEFAULT_$LINE"
6527 else
6528 no_cache=1
6529 fi
6530
6531 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6532
6533fi;
6534
6535 eval "$ac_cv_use_html"
6536 if test "$no_cache" != 1; then
6537 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6538 fi
6539
6540 if test "$wxUSE_HTML" = yes; then
6541 echo "$as_me:$LINENO: result: yes" >&5
6542echo "${ECHO_T}yes" >&6
6543 else
6544 echo "$as_me:$LINENO: result: no" >&5
6545echo "${ECHO_T}no" >&6
6546 fi
6547
6548
6549 enablestring=
6550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6551echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6552 no_cache=0
6553 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6554if test "${enable_htmlhelp+set}" = set; then
6555 enableval="$enable_htmlhelp"
6556
6557 if test "$enableval" = yes; then
6558 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6559 else
6560 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6561 fi
6562
6563else
6564
6565 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6566 if test "x$LINE" != x ; then
6567 eval "DEFAULT_$LINE"
6568 else
6569 no_cache=1
6570 fi
6571
6572 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6573
6574fi;
6575
6576 eval "$ac_cv_use_htmlhelp"
6577 if test "$no_cache" != 1; then
6578 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6579 fi
6580
6581 if test "$wxUSE_WXHTML_HELP" = yes; then
6582 echo "$as_me:$LINENO: result: yes" >&5
6583echo "${ECHO_T}yes" >&6
6584 else
6585 echo "$as_me:$LINENO: result: no" >&5
6586echo "${ECHO_T}no" >&6
6587 fi
6588
6589
9a8f0513
VS
6590 enablestring=
6591 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6592echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6593 no_cache=0
6594 # Check whether --enable-xrc or --disable-xrc was given.
6595if test "${enable_xrc+set}" = set; then
6596 enableval="$enable_xrc"
6597
6598 if test "$enableval" = yes; then
6599 ac_cv_use_xrc='wxUSE_XRC=yes'
6600 else
6601 ac_cv_use_xrc='wxUSE_XRC=no'
6602 fi
6603
6604else
6605
6606 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6607 if test "x$LINE" != x ; then
6608 eval "DEFAULT_$LINE"
6609 else
6610 no_cache=1
6611 fi
6612
6613 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6614
6615fi;
6616
6617 eval "$ac_cv_use_xrc"
6618 if test "$no_cache" != 1; then
6619 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6620 fi
6621
6622 if test "$wxUSE_XRC" = yes; then
6623 echo "$as_me:$LINENO: result: yes" >&5
6624echo "${ECHO_T}yes" >&6
6625 else
6626 echo "$as_me:$LINENO: result: no" >&5
6627echo "${ECHO_T}no" >&6
6628 fi
6629
6630
a848cd7e
SC
6631 enablestring=
6632 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6633echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6634 no_cache=0
6635 # Check whether --enable-constraints or --disable-constraints was given.
6636if test "${enable_constraints+set}" = set; then
6637 enableval="$enable_constraints"
6638
6639 if test "$enableval" = yes; then
6640 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6641 else
6642 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6643 fi
6644
6645else
6646
6647 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6648 if test "x$LINE" != x ; then
6649 eval "DEFAULT_$LINE"
6650 else
6651 no_cache=1
6652 fi
6653
6654 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6655
6656fi;
6657
6658 eval "$ac_cv_use_constraints"
6659 if test "$no_cache" != 1; then
6660 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6661 fi
6662
6663 if test "$wxUSE_CONSTRAINTS" = yes; then
6664 echo "$as_me:$LINENO: result: yes" >&5
6665echo "${ECHO_T}yes" >&6
6666 else
6667 echo "$as_me:$LINENO: result: no" >&5
6668echo "${ECHO_T}no" >&6
6669 fi
6670
6671
6672 enablestring=
6673 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6674echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6675 no_cache=0
6676 # Check whether --enable-printarch or --disable-printarch was given.
6677if test "${enable_printarch+set}" = set; then
6678 enableval="$enable_printarch"
6679
6680 if test "$enableval" = yes; then
6681 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6682 else
6683 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6684 fi
6685
6686else
6687
6688 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6689 if test "x$LINE" != x ; then
6690 eval "DEFAULT_$LINE"
6691 else
6692 no_cache=1
6693 fi
6694
6695 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6696
6697fi;
6698
6699 eval "$ac_cv_use_printarch"
6700 if test "$no_cache" != 1; then
6701 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6702 fi
6703
6704 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6705 echo "$as_me:$LINENO: result: yes" >&5
6706echo "${ECHO_T}yes" >&6
6707 else
6708 echo "$as_me:$LINENO: result: no" >&5
6709echo "${ECHO_T}no" >&6
6710 fi
6711
6712
6713 enablestring=
6714 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6715echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6716 no_cache=0
6717 # Check whether --enable-mdi or --disable-mdi was given.
6718if test "${enable_mdi+set}" = set; then
6719 enableval="$enable_mdi"
6720
6721 if test "$enableval" = yes; then
8a7b1113 6722 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6723 else
8a7b1113 6724 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6725 fi
6726
6727else
6728
8a7b1113 6729 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6730 if test "x$LINE" != x ; then
6731 eval "DEFAULT_$LINE"
6732 else
6733 no_cache=1
6734 fi
6735
8a7b1113 6736 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6737
6738fi;
6739
6740 eval "$ac_cv_use_mdi"
6741 if test "$no_cache" != 1; then
6742 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6743 fi
6744
8a7b1113
VZ
6745 if test "$wxUSE_MDI" = yes; then
6746 echo "$as_me:$LINENO: result: yes" >&5
6747echo "${ECHO_T}yes" >&6
6748 else
6749 echo "$as_me:$LINENO: result: no" >&5
6750echo "${ECHO_T}no" >&6
6751 fi
6752
6753
6754 enablestring=
6755 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6756echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6757 no_cache=0
6758 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6759if test "${enable_mdidoc+set}" = set; then
6760 enableval="$enable_mdidoc"
6761
6762 if test "$enableval" = yes; then
6763 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6764 else
6765 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6766 fi
6767
6768else
6769
6770 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6771 if test "x$LINE" != x ; then
6772 eval "DEFAULT_$LINE"
6773 else
6774 no_cache=1
6775 fi
6776
6777 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6778
6779fi;
6780
6781 eval "$ac_cv_use_mdidoc"
6782 if test "$no_cache" != 1; then
6783 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6784 fi
6785
a848cd7e
SC
6786 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6787 echo "$as_me:$LINENO: result: yes" >&5
6788echo "${ECHO_T}yes" >&6
6789 else
6790 echo "$as_me:$LINENO: result: no" >&5
6791echo "${ECHO_T}no" >&6
6792 fi
6793
6794
6795 enablestring=
6796 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6797echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6798 no_cache=0
6799 # Check whether --enable-loggui or --disable-loggui was given.
6800if test "${enable_loggui+set}" = set; then
6801 enableval="$enable_loggui"
6802
6803 if test "$enableval" = yes; then
6804 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6805 else
6806 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6807 fi
6808
6809else
6810
6811 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6812 if test "x$LINE" != x ; then
6813 eval "DEFAULT_$LINE"
6814 else
6815 no_cache=1
6816 fi
6817
6818 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6819
6820fi;
6821
6822 eval "$ac_cv_use_loggui"
6823 if test "$no_cache" != 1; then
6824 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6825 fi
6826
6827 if test "$wxUSE_LOGGUI" = yes; then
6828 echo "$as_me:$LINENO: result: yes" >&5
6829echo "${ECHO_T}yes" >&6
6830 else
6831 echo "$as_me:$LINENO: result: no" >&5
6832echo "${ECHO_T}no" >&6
6833 fi
6834
6835
6836 enablestring=
6837 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6838echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6839 no_cache=0
6840 # Check whether --enable-logwin or --disable-logwin was given.
6841if test "${enable_logwin+set}" = set; then
6842 enableval="$enable_logwin"
6843
6844 if test "$enableval" = yes; then
6845 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6846 else
6847 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6848 fi
6849
6850else
6851
6852 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6853 if test "x$LINE" != x ; then
6854 eval "DEFAULT_$LINE"
6855 else
6856 no_cache=1
6857 fi
6858
6859 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6860
6861fi;
6862
6863 eval "$ac_cv_use_logwin"
6864 if test "$no_cache" != 1; then
6865 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6866 fi
6867
6868 if test "$wxUSE_LOGWINDOW" = yes; then
6869 echo "$as_me:$LINENO: result: yes" >&5
6870echo "${ECHO_T}yes" >&6
6871 else
6872 echo "$as_me:$LINENO: result: no" >&5
6873echo "${ECHO_T}no" >&6
6874 fi
6875
6876
6877 enablestring=
6878 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6879echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6880 no_cache=0
6881 # Check whether --enable-logdialog or --disable-logdialog was given.
6882if test "${enable_logdialog+set}" = set; then
6883 enableval="$enable_logdialog"
6884
6885 if test "$enableval" = yes; then
6886 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6887 else
6888 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6889 fi
6890
6891else
6892
6893 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6894 if test "x$LINE" != x ; then
6895 eval "DEFAULT_$LINE"
6896 else
6897 no_cache=1
6898 fi
6899
6900 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6901
6902fi;
6903
6904 eval "$ac_cv_use_logdialog"
6905 if test "$no_cache" != 1; then
6906 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6907 fi
6908
6909 if test "$wxUSE_LOGDIALOG" = yes; then
6910 echo "$as_me:$LINENO: result: yes" >&5
6911echo "${ECHO_T}yes" >&6
6912 else
6913 echo "$as_me:$LINENO: result: no" >&5
6914echo "${ECHO_T}no" >&6
6915 fi
6916
6917
646b6ec1
VS
6918 enablestring=
6919 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6920echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6921 no_cache=0
6922 # Check whether --enable-webkit or --disable-webkit was given.
6923if test "${enable_webkit+set}" = set; then
6924 enableval="$enable_webkit"
6925
6926 if test "$enableval" = yes; then
6927 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6928 else
6929 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6930 fi
6931
6932else
6933
6934 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6935 if test "x$LINE" != x ; then
6936 eval "DEFAULT_$LINE"
6937 else
6938 no_cache=1
6939 fi
6940
6941 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6942
6943fi;
6944
6945 eval "$ac_cv_use_webkit"
6946 if test "$no_cache" != 1; then
6947 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6948 fi
6949
6950 if test "$wxUSE_WEBKIT" = yes; then
6951 echo "$as_me:$LINENO: result: yes" >&5
6952echo "${ECHO_T}yes" >&6
6953 else
6954 echo "$as_me:$LINENO: result: no" >&5
6955echo "${ECHO_T}no" >&6
6956 fi
6957
6958
a848cd7e
SC
6959
6960 enablestring=
6961 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6962echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6963 no_cache=0
6964 # Check whether --enable-postscript or --disable-postscript was given.
6965if test "${enable_postscript+set}" = set; then
6966 enableval="$enable_postscript"
6967
6968 if test "$enableval" = yes; then
6969 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6970 else
6971 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6972 fi
6973
6974else
6975
6976 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6977 if test "x$LINE" != x ; then
6978 eval "DEFAULT_$LINE"
6979 else
6980 no_cache=1
6981 fi
6982
6983 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6984
6985fi;
6986
6987 eval "$ac_cv_use_postscript"
6988 if test "$no_cache" != 1; then
6989 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6990 fi
6991
6992 if test "$wxUSE_POSTSCRIPT" = yes; then
6993 echo "$as_me:$LINENO: result: yes" >&5
6994echo "${ECHO_T}yes" >&6
6995 else
6996 echo "$as_me:$LINENO: result: no" >&5
6997echo "${ECHO_T}no" >&6
6998 fi
6999
7000
7001
7002
7003
7004 enablestring=
7005 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7006echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7007 no_cache=0
7008 # Check whether --enable-prologio or --disable-prologio was given.
7009if test "${enable_prologio+set}" = set; then
7010 enableval="$enable_prologio"
7011
7012 if test "$enableval" = yes; then
7013 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7014 else
7015 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7016 fi
7017
7018else
7019
7020 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7021 if test "x$LINE" != x ; then
7022 eval "DEFAULT_$LINE"
7023 else
7024 no_cache=1
7025 fi
7026
7027 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7028
7029fi;
7030
7031 eval "$ac_cv_use_prologio"
7032 if test "$no_cache" != 1; then
7033 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7034 fi
7035
7036 if test "$wxUSE_PROLOGIO" = yes; then
7037 echo "$as_me:$LINENO: result: yes" >&5
7038echo "${ECHO_T}yes" >&6
7039 else
7040 echo "$as_me:$LINENO: result: no" >&5
7041echo "${ECHO_T}no" >&6
7042 fi
7043
7044
7045 enablestring=
7046 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7047echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7048 no_cache=0
7049 # Check whether --enable-resources or --disable-resources was given.
7050if test "${enable_resources+set}" = set; then
7051 enableval="$enable_resources"
7052
7053 if test "$enableval" = yes; then
7054 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7055 else
7056 ac_cv_use_resources='wxUSE_RESOURCES=no'
7057 fi
7058
7059else
7060
7061 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7062 if test "x$LINE" != x ; then
7063 eval "DEFAULT_$LINE"
7064 else
7065 no_cache=1
7066 fi
7067
7068 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7069
7070fi;
7071
7072 eval "$ac_cv_use_resources"
7073 if test "$no_cache" != 1; then
7074 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7075 fi
7076
7077 if test "$wxUSE_RESOURCES" = yes; then
7078 echo "$as_me:$LINENO: result: yes" >&5
7079echo "${ECHO_T}yes" >&6
7080 else
7081 echo "$as_me:$LINENO: result: no" >&5
7082echo "${ECHO_T}no" >&6
7083 fi
7084
7085
7086
7087
7088 enablestring=
7089 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7090echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7091 no_cache=0
7092 # Check whether --enable-clipboard or --disable-clipboard was given.
7093if test "${enable_clipboard+set}" = set; then
7094 enableval="$enable_clipboard"
7095
7096 if test "$enableval" = yes; then
7097 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7098 else
7099 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7100 fi
7101
7102else
7103
7104 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7105 if test "x$LINE" != x ; then
7106 eval "DEFAULT_$LINE"
7107 else
7108 no_cache=1
7109 fi
7110
7111 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7112
7113fi;
7114
7115 eval "$ac_cv_use_clipboard"
7116 if test "$no_cache" != 1; then
7117 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7118 fi
7119
7120 if test "$wxUSE_CLIPBOARD" = yes; then
7121 echo "$as_me:$LINENO: result: yes" >&5
7122echo "${ECHO_T}yes" >&6
7123 else
7124 echo "$as_me:$LINENO: result: no" >&5
7125echo "${ECHO_T}no" >&6
7126 fi
7127
7128
7129 enablestring=
7130 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7131echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7132 no_cache=0
7133 # Check whether --enable-dnd or --disable-dnd was given.
7134if test "${enable_dnd+set}" = set; then
7135 enableval="$enable_dnd"
7136
7137 if test "$enableval" = yes; then
7138 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7139 else
7140 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7141 fi
7142
7143else
7144
7145 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7146 if test "x$LINE" != x ; then
7147 eval "DEFAULT_$LINE"
7148 else
7149 no_cache=1
7150 fi
7151
7152 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7153
7154fi;
7155
7156 eval "$ac_cv_use_dnd"
7157 if test "$no_cache" != 1; then
7158 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7159 fi
7160
7161 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7162 echo "$as_me:$LINENO: result: yes" >&5
7163echo "${ECHO_T}yes" >&6
7164 else
7165 echo "$as_me:$LINENO: result: no" >&5
7166echo "${ECHO_T}no" >&6
7167 fi
7168
7169
7170 enablestring=
7171 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7172echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7173 no_cache=0
7174 # Check whether --enable-metafile or --disable-metafile was given.
7175if test "${enable_metafile+set}" = set; then
7176 enableval="$enable_metafile"
7177
7178 if test "$enableval" = yes; then
7179 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7180 else
7181 ac_cv_use_metafile='wxUSE_METAFILE=no'
7182 fi
7183
7184else
7185
7186 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7187 if test "x$LINE" != x ; then
7188 eval "DEFAULT_$LINE"
7189 else
7190 no_cache=1
7191 fi
7192
7193 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7194
7195fi;
7196
7197 eval "$ac_cv_use_metafile"
7198 if test "$no_cache" != 1; then
7199 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7200 fi
7201
7202 if test "$wxUSE_METAFILE" = yes; then
7203 echo "$as_me:$LINENO: result: yes" >&5
7204echo "${ECHO_T}yes" >&6
7205 else
7206 echo "$as_me:$LINENO: result: no" >&5
7207echo "${ECHO_T}no" >&6
7208 fi
7209
7210
7211
7212
7213
7214 enablestring=
7215 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7216echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7217 no_cache=0
7218 # Check whether --enable-controls or --disable-controls was given.
7219if test "${enable_controls+set}" = set; then
7220 enableval="$enable_controls"
7221
7222 if test "$enableval" = yes; then
7223 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7224 else
7225 ac_cv_use_controls='wxUSE_CONTROLS=no'
7226 fi
7227
7228else
7229
7230 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7231 if test "x$LINE" != x ; then
7232 eval "DEFAULT_$LINE"
7233 else
7234 no_cache=1
7235 fi
7236
7237 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7238
7239fi;
7240
7241 eval "$ac_cv_use_controls"
7242 if test "$no_cache" != 1; then
7243 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7244 fi
7245
7246 if test "$wxUSE_CONTROLS" = yes; then
7247 echo "$as_me:$LINENO: result: yes" >&5
7248echo "${ECHO_T}yes" >&6
7249 else
7250 echo "$as_me:$LINENO: result: no" >&5
7251echo "${ECHO_T}no" >&6
7252 fi
7253
7254
7255if test "$wxUSE_CONTROLS" = "yes"; then
7256 DEFAULT_wxUSE_ACCEL=yes
7257 DEFAULT_wxUSE_BMPBUTTON=yes
7258 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7259 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7260 DEFAULT_wxUSE_CARET=yes
7261 DEFAULT_wxUSE_COMBOBOX=yes
7262 DEFAULT_wxUSE_CHECKBOX=yes
7263 DEFAULT_wxUSE_CHECKLISTBOX=yes
7264 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7265 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7266 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7267 DEFAULT_wxUSE_GAUGE=yes
7268 DEFAULT_wxUSE_GRID=yes
7269 DEFAULT_wxUSE_IMAGLIST=yes
7270 DEFAULT_wxUSE_LISTBOOK=yes
7271 DEFAULT_wxUSE_LISTBOX=yes
7272 DEFAULT_wxUSE_LISTCTRL=yes
7273 DEFAULT_wxUSE_NOTEBOOK=yes
7274 DEFAULT_wxUSE_RADIOBOX=yes
7275 DEFAULT_wxUSE_RADIOBTN=yes
7276 DEFAULT_wxUSE_SASH=yes
7277 DEFAULT_wxUSE_SCROLLBAR=yes
7278 DEFAULT_wxUSE_SLIDER=yes
7279 DEFAULT_wxUSE_SPINBTN=yes
7280 DEFAULT_wxUSE_SPINCTRL=yes
7281 DEFAULT_wxUSE_SPLITTER=yes
7282 DEFAULT_wxUSE_STATBMP=yes
7283 DEFAULT_wxUSE_STATBOX=yes
7284 DEFAULT_wxUSE_STATLINE=yes
7285 DEFAULT_wxUSE_STATUSBAR=yes
7286 DEFAULT_wxUSE_TAB_DIALOG=yes
7287 DEFAULT_wxUSE_TOGGLEBTN=yes
7288 DEFAULT_wxUSE_TOOLBAR=yes
7289 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7290 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7291 DEFAULT_wxUSE_TOOLTIPS=yes
7292 DEFAULT_wxUSE_TREECTRL=yes
7293 DEFAULT_wxUSE_POPUPWIN=yes
7294 DEFAULT_wxUSE_TIPWINDOW=yes
7295elif test "$wxUSE_CONTROLS" = "no"; then
7296 DEFAULT_wxUSE_ACCEL=no
7297 DEFAULT_wxUSE_BMPBUTTON=no
7298 DEFAULT_wxUSE_BUTTON=no
7299 DEFAULT_wxUSE_CALCTRL=no
7300 DEFAULT_wxUSE_CARET=no
7301 DEFAULT_wxUSE_COMBOBOX=no
7302 DEFAULT_wxUSE_CHECKBOX=no
7303 DEFAULT_wxUSE_CHECKLISTBOX=no
7304 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7305 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7306 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7307 DEFAULT_wxUSE_GAUGE=no
7308 DEFAULT_wxUSE_GRID=no
7309 DEFAULT_wxUSE_IMAGLIST=no
7310 DEFAULT_wxUSE_LISTBOOK=no
7311 DEFAULT_wxUSE_LISTBOX=no
7312 DEFAULT_wxUSE_LISTCTRL=no
7313 DEFAULT_wxUSE_NOTEBOOK=no
7314 DEFAULT_wxUSE_RADIOBOX=no
7315 DEFAULT_wxUSE_RADIOBTN=no
7316 DEFAULT_wxUSE_SASH=no
7317 DEFAULT_wxUSE_SCROLLBAR=no
7318 DEFAULT_wxUSE_SLIDER=no
7319 DEFAULT_wxUSE_SPINBTN=no
7320 DEFAULT_wxUSE_SPINCTRL=no
7321 DEFAULT_wxUSE_SPLITTER=no
7322 DEFAULT_wxUSE_STATBMP=no
7323 DEFAULT_wxUSE_STATBOX=no
7324 DEFAULT_wxUSE_STATLINE=no
7325 DEFAULT_wxUSE_STATUSBAR=no
7326 DEFAULT_wxUSE_TAB_DIALOG=no
7327 DEFAULT_wxUSE_TOGGLEBTN=no
7328 DEFAULT_wxUSE_TOOLBAR=no
7329 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7330 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7331 DEFAULT_wxUSE_TOOLTIPS=no
7332 DEFAULT_wxUSE_TREECTRL=no
7333 DEFAULT_wxUSE_POPUPWIN=no
7334 DEFAULT_wxUSE_TIPWINDOW=no
7335fi
7336
a848cd7e
SC
7337
7338 enablestring=
7339 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7340echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7341 no_cache=0
7342 # Check whether --enable-accel or --disable-accel was given.
7343if test "${enable_accel+set}" = set; then
7344 enableval="$enable_accel"
7345
7346 if test "$enableval" = yes; then
7347 ac_cv_use_accel='wxUSE_ACCEL=yes'
7348 else
7349 ac_cv_use_accel='wxUSE_ACCEL=no'
7350 fi
7351
7352else
7353
7354 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7355 if test "x$LINE" != x ; then
7356 eval "DEFAULT_$LINE"
7357 else
7358 no_cache=1
7359 fi
7360
7361 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7362
7363fi;
7364
7365 eval "$ac_cv_use_accel"
7366 if test "$no_cache" != 1; then
7367 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7368 fi
7369
7370 if test "$wxUSE_ACCEL" = yes; then
7371 echo "$as_me:$LINENO: result: yes" >&5
7372echo "${ECHO_T}yes" >&6
7373 else
7374 echo "$as_me:$LINENO: result: no" >&5
7375echo "${ECHO_T}no" >&6
7376 fi
7377
7378
7379 enablestring=
7380 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7381echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7382 no_cache=0
7383 # Check whether --enable-button or --disable-button was given.
7384if test "${enable_button+set}" = set; then
7385 enableval="$enable_button"
7386
7387 if test "$enableval" = yes; then
7388 ac_cv_use_button='wxUSE_BUTTON=yes'
7389 else
7390 ac_cv_use_button='wxUSE_BUTTON=no'
7391 fi
7392
7393else
7394
7395 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7396 if test "x$LINE" != x ; then
7397 eval "DEFAULT_$LINE"
7398 else
7399 no_cache=1
7400 fi
7401
7402 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7403
7404fi;
7405
7406 eval "$ac_cv_use_button"
7407 if test "$no_cache" != 1; then
7408 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7409 fi
7410
7411 if test "$wxUSE_BUTTON" = yes; then
7412 echo "$as_me:$LINENO: result: yes" >&5
7413echo "${ECHO_T}yes" >&6
7414 else
7415 echo "$as_me:$LINENO: result: no" >&5
7416echo "${ECHO_T}no" >&6
7417 fi
7418
7419
7420 enablestring=
7421 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7422echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7423 no_cache=0
7424 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7425if test "${enable_bmpbutton+set}" = set; then
7426 enableval="$enable_bmpbutton"
7427
7428 if test "$enableval" = yes; then
7429 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7430 else
7431 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7432 fi
7433
7434else
7435
7436 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7437 if test "x$LINE" != x ; then
7438 eval "DEFAULT_$LINE"
7439 else
7440 no_cache=1
7441 fi
7442
7443 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7444
7445fi;
7446
7447 eval "$ac_cv_use_bmpbutton"
7448 if test "$no_cache" != 1; then
7449 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7450 fi
7451
7452 if test "$wxUSE_BMPBUTTON" = yes; then
7453 echo "$as_me:$LINENO: result: yes" >&5
7454echo "${ECHO_T}yes" >&6
7455 else
7456 echo "$as_me:$LINENO: result: no" >&5
7457echo "${ECHO_T}no" >&6
7458 fi
7459
7460
7461 enablestring=
7462 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7463echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7464 no_cache=0
7465 # Check whether --enable-calendar or --disable-calendar was given.
7466if test "${enable_calendar+set}" = set; then
7467 enableval="$enable_calendar"
7468
7469 if test "$enableval" = yes; then
7470 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7471 else
7472 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7473 fi
7474
7475else
7476
7477 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7478 if test "x$LINE" != x ; then
7479 eval "DEFAULT_$LINE"
7480 else
7481 no_cache=1
7482 fi
7483
7484 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7485
7486fi;
7487
7488 eval "$ac_cv_use_calendar"
7489 if test "$no_cache" != 1; then
7490 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7491 fi
7492
7493 if test "$wxUSE_CALCTRL" = yes; then
7494 echo "$as_me:$LINENO: result: yes" >&5
7495echo "${ECHO_T}yes" >&6
7496 else
7497 echo "$as_me:$LINENO: result: no" >&5
7498echo "${ECHO_T}no" >&6
7499 fi
7500
7501
7502 enablestring=
7503 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7504echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7505 no_cache=0
7506 # Check whether --enable-caret or --disable-caret was given.
7507if test "${enable_caret+set}" = set; then
7508 enableval="$enable_caret"
7509
7510 if test "$enableval" = yes; then
7511 ac_cv_use_caret='wxUSE_CARET=yes'
7512 else
7513 ac_cv_use_caret='wxUSE_CARET=no'
7514 fi
7515
7516else
7517
7518 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7519 if test "x$LINE" != x ; then
7520 eval "DEFAULT_$LINE"
7521 else
7522 no_cache=1
7523 fi
7524
7525 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7526
7527fi;
7528
7529 eval "$ac_cv_use_caret"
7530 if test "$no_cache" != 1; then
7531 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7532 fi
7533
7534 if test "$wxUSE_CARET" = yes; then
7535 echo "$as_me:$LINENO: result: yes" >&5
7536echo "${ECHO_T}yes" >&6
7537 else
7538 echo "$as_me:$LINENO: result: no" >&5
7539echo "${ECHO_T}no" >&6
7540 fi
7541
7542
7543 enablestring=
7544 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7545echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7546 no_cache=0
7547 # Check whether --enable-checkbox or --disable-checkbox was given.
7548if test "${enable_checkbox+set}" = set; then
7549 enableval="$enable_checkbox"
7550
7551 if test "$enableval" = yes; then
7552 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7553 else
7554 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7555 fi
7556
7557else
7558
7559 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7560 if test "x$LINE" != x ; then
7561 eval "DEFAULT_$LINE"
7562 else
7563 no_cache=1
7564 fi
7565
7566 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7567
7568fi;
7569
7570 eval "$ac_cv_use_checkbox"
7571 if test "$no_cache" != 1; then
7572 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7573 fi
7574
7575 if test "$wxUSE_CHECKBOX" = yes; then
7576 echo "$as_me:$LINENO: result: yes" >&5
7577echo "${ECHO_T}yes" >&6
7578 else
7579 echo "$as_me:$LINENO: result: no" >&5
7580echo "${ECHO_T}no" >&6
7581 fi
7582
7583
7584 enablestring=
7585 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7586echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7587 no_cache=0
7588 # Check whether --enable-checklst or --disable-checklst was given.
7589if test "${enable_checklst+set}" = set; then
7590 enableval="$enable_checklst"
7591
7592 if test "$enableval" = yes; then
7593 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7594 else
7595 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7596 fi
7597
7598else
7599
7600 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7601 if test "x$LINE" != x ; then
7602 eval "DEFAULT_$LINE"
7603 else
7604 no_cache=1
7605 fi
7606
7607 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7608
7609fi;
7610
7611 eval "$ac_cv_use_checklst"
7612 if test "$no_cache" != 1; then
7613 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7614 fi
7615
7616 if test "$wxUSE_CHECKLST" = yes; then
7617 echo "$as_me:$LINENO: result: yes" >&5
7618echo "${ECHO_T}yes" >&6
7619 else
7620 echo "$as_me:$LINENO: result: no" >&5
7621echo "${ECHO_T}no" >&6
7622 fi
7623
7624
7625 enablestring=
7626 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7627echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7628 no_cache=0
7629 # Check whether --enable-choice or --disable-choice was given.
7630if test "${enable_choice+set}" = set; then
7631 enableval="$enable_choice"
7632
7633 if test "$enableval" = yes; then
7634 ac_cv_use_choice='wxUSE_CHOICE=yes'
7635 else
7636 ac_cv_use_choice='wxUSE_CHOICE=no'
7637 fi
7638
7639else
7640
7641 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7642 if test "x$LINE" != x ; then
7643 eval "DEFAULT_$LINE"
7644 else
7645 no_cache=1
7646 fi
7647
7648 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7649
7650fi;
7651
7652 eval "$ac_cv_use_choice"
7653 if test "$no_cache" != 1; then
7654 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7655 fi
7656
7657 if test "$wxUSE_CHOICE" = yes; then
7658 echo "$as_me:$LINENO: result: yes" >&5
7659echo "${ECHO_T}yes" >&6
7660 else
7661 echo "$as_me:$LINENO: result: no" >&5
7662echo "${ECHO_T}no" >&6
7663 fi
7664
7665
92bbdbcd
WS
7666 enablestring=
7667 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7668echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7669 no_cache=0
7670 # Check whether --enable-choicebook or --disable-choicebook was given.
7671if test "${enable_choicebook+set}" = set; then
7672 enableval="$enable_choicebook"
7673
7674 if test "$enableval" = yes; then
7675 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7676 else
7677 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7678 fi
7679
7680else
7681
7682 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7683 if test "x$LINE" != x ; then
7684 eval "DEFAULT_$LINE"
7685 else
7686 no_cache=1
7687 fi
7688
7689 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7690
7691fi;
7692
7693 eval "$ac_cv_use_choicebook"
7694 if test "$no_cache" != 1; then
7695 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7696 fi
7697
7698 if test "$wxUSE_CHOICEBOOK" = yes; then
7699 echo "$as_me:$LINENO: result: yes" >&5
7700echo "${ECHO_T}yes" >&6
7701 else
7702 echo "$as_me:$LINENO: result: no" >&5
7703echo "${ECHO_T}no" >&6
7704 fi
7705
7706
a848cd7e
SC
7707 enablestring=
7708 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7709echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7710 no_cache=0
7711 # Check whether --enable-combobox or --disable-combobox was given.
7712if test "${enable_combobox+set}" = set; then
7713 enableval="$enable_combobox"
7714
7715 if test "$enableval" = yes; then
7716 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7717 else
7718 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7719 fi
7720
7721else
7722
7723 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7724 if test "x$LINE" != x ; then
7725 eval "DEFAULT_$LINE"
7726 else
7727 no_cache=1
7728 fi
7729
7730 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7731
7732fi;
7733
7734 eval "$ac_cv_use_combobox"
7735 if test "$no_cache" != 1; then
7736 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7737 fi
7738
7739 if test "$wxUSE_COMBOBOX" = yes; then
7740 echo "$as_me:$LINENO: result: yes" >&5
7741echo "${ECHO_T}yes" >&6
7742 else
7743 echo "$as_me:$LINENO: result: no" >&5
7744echo "${ECHO_T}no" >&6
7745 fi
7746
7747
da98e9be
VZ
7748 enablestring=
7749 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7750echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7751 no_cache=0
7752 # Check whether --enable-datepick or --disable-datepick was given.
7753if test "${enable_datepick+set}" = set; then
7754 enableval="$enable_datepick"
7755
7756 if test "$enableval" = yes; then
7757 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7758 else
7759 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7760 fi
7761
7762else
7763
7764 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7765 if test "x$LINE" != x ; then
7766 eval "DEFAULT_$LINE"
7767 else
7768 no_cache=1
7769 fi
7770
7771 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7772
7773fi;
7774
7775 eval "$ac_cv_use_datepick"
7776 if test "$no_cache" != 1; then
7777 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7778 fi
7779
7780 if test "$wxUSE_DATEPICKCTRL" = yes; then
7781 echo "$as_me:$LINENO: result: yes" >&5
7782echo "${ECHO_T}yes" >&6
7783 else
7784 echo "$as_me:$LINENO: result: no" >&5
7785echo "${ECHO_T}no" >&6
7786 fi
7787
7788
a848cd7e
SC
7789 enablestring=
7790 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7791echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7792 no_cache=0
7793 # Check whether --enable-display or --disable-display was given.
7794if test "${enable_display+set}" = set; then
7795 enableval="$enable_display"
7796
7797 if test "$enableval" = yes; then
7798 ac_cv_use_display='wxUSE_DISPLAY=yes'
7799 else
7800 ac_cv_use_display='wxUSE_DISPLAY=no'
7801 fi
7802
7803else
7804
7805 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7806 if test "x$LINE" != x ; then
7807 eval "DEFAULT_$LINE"
7808 else
7809 no_cache=1
7810 fi
7811
7812 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7813
7814fi;
7815
7816 eval "$ac_cv_use_display"
7817 if test "$no_cache" != 1; then
7818 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7819 fi
7820
7821 if test "$wxUSE_DISPLAY" = yes; then
7822 echo "$as_me:$LINENO: result: yes" >&5
7823echo "${ECHO_T}yes" >&6
7824 else
7825 echo "$as_me:$LINENO: result: no" >&5
7826echo "${ECHO_T}no" >&6
7827 fi
7828
7829
7830 enablestring=
7831 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7832echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7833 no_cache=0
7834 # Check whether --enable-gauge or --disable-gauge was given.
7835if test "${enable_gauge+set}" = set; then
7836 enableval="$enable_gauge"
7837
7838 if test "$enableval" = yes; then
7839 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7840 else
7841 ac_cv_use_gauge='wxUSE_GAUGE=no'
7842 fi
7843
7844else
7845
7846 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7847 if test "x$LINE" != x ; then
7848 eval "DEFAULT_$LINE"
7849 else
7850 no_cache=1
7851 fi
7852
7853 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7854
7855fi;
7856
7857 eval "$ac_cv_use_gauge"
7858 if test "$no_cache" != 1; then
7859 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7860 fi
7861
7862 if test "$wxUSE_GAUGE" = yes; then
7863 echo "$as_me:$LINENO: result: yes" >&5
7864echo "${ECHO_T}yes" >&6
7865 else
7866 echo "$as_me:$LINENO: result: no" >&5
7867echo "${ECHO_T}no" >&6
7868 fi
7869
7870
7871 enablestring=
7872 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7873echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7874 no_cache=0
7875 # Check whether --enable-grid or --disable-grid was given.
7876if test "${enable_grid+set}" = set; then
7877 enableval="$enable_grid"
7878
7879 if test "$enableval" = yes; then
7880 ac_cv_use_grid='wxUSE_GRID=yes'
7881 else
7882 ac_cv_use_grid='wxUSE_GRID=no'
7883 fi
7884
7885else
7886
7887 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7888 if test "x$LINE" != x ; then
7889 eval "DEFAULT_$LINE"
7890 else
7891 no_cache=1
7892 fi
7893
7894 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7895
7896fi;
7897
7898 eval "$ac_cv_use_grid"
7899 if test "$no_cache" != 1; then
7900 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7901 fi
7902
7903 if test "$wxUSE_GRID" = yes; then
7904 echo "$as_me:$LINENO: result: yes" >&5
7905echo "${ECHO_T}yes" >&6
7906 else
7907 echo "$as_me:$LINENO: result: no" >&5
7908echo "${ECHO_T}no" >&6
7909 fi
7910
7911
7912 enablestring=
7913 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7914echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7915 no_cache=0
7916 # Check whether --enable-imaglist or --disable-imaglist was given.
7917if test "${enable_imaglist+set}" = set; then
7918 enableval="$enable_imaglist"
7919
7920 if test "$enableval" = yes; then
7921 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7922 else
7923 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7924 fi
7925
7926else
7927
7928 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7929 if test "x$LINE" != x ; then
7930 eval "DEFAULT_$LINE"
7931 else
7932 no_cache=1
7933 fi
7934
7935 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7936
7937fi;
7938
7939 eval "$ac_cv_use_imaglist"
7940 if test "$no_cache" != 1; then
7941 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7942 fi
7943
7944 if test "$wxUSE_IMAGLIST" = yes; then
7945 echo "$as_me:$LINENO: result: yes" >&5
7946echo "${ECHO_T}yes" >&6
7947 else
7948 echo "$as_me:$LINENO: result: no" >&5
7949echo "${ECHO_T}no" >&6
7950 fi
7951
7952
7953 enablestring=
7954 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7955echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7956 no_cache=0
7957 # Check whether --enable-listbook or --disable-listbook was given.
7958if test "${enable_listbook+set}" = set; then
7959 enableval="$enable_listbook"
7960
7961 if test "$enableval" = yes; then
7962 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7963 else
7964 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7965 fi
7966
7967else
7968
7969 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7970 if test "x$LINE" != x ; then
7971 eval "DEFAULT_$LINE"
7972 else
7973 no_cache=1
7974 fi
7975
7976 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7977
7978fi;
7979
7980 eval "$ac_cv_use_listbook"
7981 if test "$no_cache" != 1; then
7982 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7983 fi
7984
7985 if test "$wxUSE_LISTBOOK" = yes; then
7986 echo "$as_me:$LINENO: result: yes" >&5
7987echo "${ECHO_T}yes" >&6
7988 else
7989 echo "$as_me:$LINENO: result: no" >&5
7990echo "${ECHO_T}no" >&6
7991 fi
7992
7993
7994 enablestring=
7995 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7996echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7997 no_cache=0
7998 # Check whether --enable-listbox or --disable-listbox was given.
7999if test "${enable_listbox+set}" = set; then
8000 enableval="$enable_listbox"
8001
8002 if test "$enableval" = yes; then
8003 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8004 else
8005 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8006 fi
8007
8008else
8009
8010 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8011 if test "x$LINE" != x ; then
8012 eval "DEFAULT_$LINE"
8013 else
8014 no_cache=1
8015 fi
8016
8017 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8018
8019fi;
8020
8021 eval "$ac_cv_use_listbox"
8022 if test "$no_cache" != 1; then
8023 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8024 fi
8025
8026 if test "$wxUSE_LISTBOX" = yes; then
8027 echo "$as_me:$LINENO: result: yes" >&5
8028echo "${ECHO_T}yes" >&6
8029 else
8030 echo "$as_me:$LINENO: result: no" >&5
8031echo "${ECHO_T}no" >&6
8032 fi
8033
8034
8035 enablestring=
8036 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8037echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8038 no_cache=0
8039 # Check whether --enable-listctrl or --disable-listctrl was given.
8040if test "${enable_listctrl+set}" = set; then
8041 enableval="$enable_listctrl"
8042
8043 if test "$enableval" = yes; then
8044 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8045 else
8046 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8047 fi
8048
8049else
8050
8051 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8052 if test "x$LINE" != x ; then
8053 eval "DEFAULT_$LINE"
8054 else
8055 no_cache=1
8056 fi
8057
8058 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8059
8060fi;
8061
8062 eval "$ac_cv_use_listctrl"
8063 if test "$no_cache" != 1; then
8064 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8065 fi
8066
8067 if test "$wxUSE_LISTCTRL" = yes; then
8068 echo "$as_me:$LINENO: result: yes" >&5
8069echo "${ECHO_T}yes" >&6
8070 else
8071 echo "$as_me:$LINENO: result: no" >&5
8072echo "${ECHO_T}no" >&6
8073 fi
8074
8075
8076 enablestring=
8077 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8078echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8079 no_cache=0
8080 # Check whether --enable-notebook or --disable-notebook was given.
8081if test "${enable_notebook+set}" = set; then
8082 enableval="$enable_notebook"
8083
8084 if test "$enableval" = yes; then
8085 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8086 else
8087 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8088 fi
8089
8090else
8091
8092 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8093 if test "x$LINE" != x ; then
8094 eval "DEFAULT_$LINE"
8095 else
8096 no_cache=1
8097 fi
8098
8099 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8100
8101fi;
8102
8103 eval "$ac_cv_use_notebook"
8104 if test "$no_cache" != 1; then
8105 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8106 fi
8107
8108 if test "$wxUSE_NOTEBOOK" = yes; then
8109 echo "$as_me:$LINENO: result: yes" >&5
8110echo "${ECHO_T}yes" >&6
8111 else
8112 echo "$as_me:$LINENO: result: no" >&5
8113echo "${ECHO_T}no" >&6
8114 fi
8115
8116
8117 enablestring=
8118 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8119echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8120 no_cache=0
8121 # Check whether --enable-radiobox or --disable-radiobox was given.
8122if test "${enable_radiobox+set}" = set; then
8123 enableval="$enable_radiobox"
8124
8125 if test "$enableval" = yes; then
8126 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8127 else
8128 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8129 fi
8130
8131else
8132
8133 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8134 if test "x$LINE" != x ; then
8135 eval "DEFAULT_$LINE"
8136 else
8137 no_cache=1
8138 fi
8139
8140 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8141
8142fi;
8143
8144 eval "$ac_cv_use_radiobox"
8145 if test "$no_cache" != 1; then
8146 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8147 fi
8148
8149 if test "$wxUSE_RADIOBOX" = yes; then
8150 echo "$as_me:$LINENO: result: yes" >&5
8151echo "${ECHO_T}yes" >&6
8152 else
8153 echo "$as_me:$LINENO: result: no" >&5
8154echo "${ECHO_T}no" >&6
8155 fi
8156
8157
8158 enablestring=
8159 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8160echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8161 no_cache=0
8162 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8163if test "${enable_radiobtn+set}" = set; then
8164 enableval="$enable_radiobtn"
8165
8166 if test "$enableval" = yes; then
8167 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8168 else
8169 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8170 fi
8171
8172else
8173
8174 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8175 if test "x$LINE" != x ; then
8176 eval "DEFAULT_$LINE"
8177 else
8178 no_cache=1
8179 fi
8180
8181 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8182
8183fi;
8184
8185 eval "$ac_cv_use_radiobtn"
8186 if test "$no_cache" != 1; then
8187 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8188 fi
8189
8190 if test "$wxUSE_RADIOBTN" = yes; then
8191 echo "$as_me:$LINENO: result: yes" >&5
8192echo "${ECHO_T}yes" >&6
8193 else
8194 echo "$as_me:$LINENO: result: no" >&5
8195echo "${ECHO_T}no" >&6
8196 fi
8197
8198
8199 enablestring=
8200 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8201echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8202 no_cache=0
8203 # Check whether --enable-sash or --disable-sash was given.
8204if test "${enable_sash+set}" = set; then
8205 enableval="$enable_sash"
8206
8207 if test "$enableval" = yes; then
8208 ac_cv_use_sash='wxUSE_SASH=yes'
8209 else
8210 ac_cv_use_sash='wxUSE_SASH=no'
8211 fi
8212
8213else
8214
8215 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8216 if test "x$LINE" != x ; then
8217 eval "DEFAULT_$LINE"
8218 else
8219 no_cache=1
8220 fi
8221
8222 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8223
8224fi;
8225
8226 eval "$ac_cv_use_sash"
8227 if test "$no_cache" != 1; then
8228 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8229 fi
8230
8231 if test "$wxUSE_SASH" = yes; then
8232 echo "$as_me:$LINENO: result: yes" >&5
8233echo "${ECHO_T}yes" >&6
8234 else
8235 echo "$as_me:$LINENO: result: no" >&5
8236echo "${ECHO_T}no" >&6
8237 fi
8238
8239
8240 enablestring=
8241 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8242echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8243 no_cache=0
8244 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8245if test "${enable_scrollbar+set}" = set; then
8246 enableval="$enable_scrollbar"
8247
8248 if test "$enableval" = yes; then
8249 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8250 else
8251 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8252 fi
8253
8254else
8255
8256 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8257 if test "x$LINE" != x ; then
8258 eval "DEFAULT_$LINE"
8259 else
8260 no_cache=1
8261 fi
8262
8263 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8264
8265fi;
8266
8267 eval "$ac_cv_use_scrollbar"
8268 if test "$no_cache" != 1; then
8269 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8270 fi
8271
8272 if test "$wxUSE_SCROLLBAR" = yes; then
8273 echo "$as_me:$LINENO: result: yes" >&5
8274echo "${ECHO_T}yes" >&6
8275 else
8276 echo "$as_me:$LINENO: result: no" >&5
8277echo "${ECHO_T}no" >&6
8278 fi
8279
8280
8281 enablestring=
8282 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8283echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8284 no_cache=0
8285 # Check whether --enable-slider or --disable-slider was given.
8286if test "${enable_slider+set}" = set; then
8287 enableval="$enable_slider"
8288
8289 if test "$enableval" = yes; then
8290 ac_cv_use_slider='wxUSE_SLIDER=yes'
8291 else
8292 ac_cv_use_slider='wxUSE_SLIDER=no'
8293 fi
8294
8295else
8296
8297 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8298 if test "x$LINE" != x ; then
8299 eval "DEFAULT_$LINE"
8300 else
8301 no_cache=1
8302 fi
8303
8304 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8305
8306fi;
8307
8308 eval "$ac_cv_use_slider"
8309 if test "$no_cache" != 1; then
8310 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8311 fi
8312
8313 if test "$wxUSE_SLIDER" = yes; then
8314 echo "$as_me:$LINENO: result: yes" >&5
8315echo "${ECHO_T}yes" >&6
8316 else
8317 echo "$as_me:$LINENO: result: no" >&5
8318echo "${ECHO_T}no" >&6
8319 fi
8320
8321
8322 enablestring=
8323 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8324echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8325 no_cache=0
8326 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8327if test "${enable_spinbtn+set}" = set; then
8328 enableval="$enable_spinbtn"
8329
8330 if test "$enableval" = yes; then
8331 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8332 else
8333 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8334 fi
8335
8336else
8337
8338 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8339 if test "x$LINE" != x ; then
8340 eval "DEFAULT_$LINE"
8341 else
8342 no_cache=1
8343 fi
8344
8345 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8346
8347fi;
8348
8349 eval "$ac_cv_use_spinbtn"
8350 if test "$no_cache" != 1; then
8351 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8352 fi
8353
8354 if test "$wxUSE_SPINBTN" = yes; then
8355 echo "$as_me:$LINENO: result: yes" >&5
8356echo "${ECHO_T}yes" >&6
8357 else
8358 echo "$as_me:$LINENO: result: no" >&5
8359echo "${ECHO_T}no" >&6
8360 fi
8361
8362
8363 enablestring=
8364 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8365echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8366 no_cache=0
8367 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8368if test "${enable_spinctrl+set}" = set; then
8369 enableval="$enable_spinctrl"
8370
8371 if test "$enableval" = yes; then
8372 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8373 else
8374 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8375 fi
8376
8377else
8378
8379 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8380 if test "x$LINE" != x ; then
8381 eval "DEFAULT_$LINE"
8382 else
8383 no_cache=1
8384 fi
8385
8386 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8387
8388fi;
8389
8390 eval "$ac_cv_use_spinctrl"
8391 if test "$no_cache" != 1; then
8392 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8393 fi
8394
8395 if test "$wxUSE_SPINCTRL" = yes; then
8396 echo "$as_me:$LINENO: result: yes" >&5
8397echo "${ECHO_T}yes" >&6
8398 else
8399 echo "$as_me:$LINENO: result: no" >&5
8400echo "${ECHO_T}no" >&6
8401 fi
8402
8403
8404 enablestring=
8405 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8406echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8407 no_cache=0
8408 # Check whether --enable-splitter or --disable-splitter was given.
8409if test "${enable_splitter+set}" = set; then
8410 enableval="$enable_splitter"
8411
8412 if test "$enableval" = yes; then
8413 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8414 else
8415 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8416 fi
8417
8418else
8419
8420 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8421 if test "x$LINE" != x ; then
8422 eval "DEFAULT_$LINE"
8423 else
8424 no_cache=1
8425 fi
8426
8427 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8428
8429fi;
8430
8431 eval "$ac_cv_use_splitter"
8432 if test "$no_cache" != 1; then
8433 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8434 fi
8435
8436 if test "$wxUSE_SPLITTER" = yes; then
8437 echo "$as_me:$LINENO: result: yes" >&5
8438echo "${ECHO_T}yes" >&6
8439 else
8440 echo "$as_me:$LINENO: result: no" >&5
8441echo "${ECHO_T}no" >&6
8442 fi
8443
8444
8445 enablestring=
8446 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8447echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8448 no_cache=0
8449 # Check whether --enable-statbmp or --disable-statbmp was given.
8450if test "${enable_statbmp+set}" = set; then
8451 enableval="$enable_statbmp"
8452
8453 if test "$enableval" = yes; then
8454 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8455 else
8456 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8457 fi
8458
8459else
8460
8461 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8462 if test "x$LINE" != x ; then
8463 eval "DEFAULT_$LINE"
8464 else
8465 no_cache=1
8466 fi
8467
8468 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8469
8470fi;
8471
8472 eval "$ac_cv_use_statbmp"
8473 if test "$no_cache" != 1; then
8474 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8475 fi
8476
8477 if test "$wxUSE_STATBMP" = yes; then
8478 echo "$as_me:$LINENO: result: yes" >&5
8479echo "${ECHO_T}yes" >&6
8480 else
8481 echo "$as_me:$LINENO: result: no" >&5
8482echo "${ECHO_T}no" >&6
8483 fi
8484
8485
8486 enablestring=
8487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8488echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8489 no_cache=0
8490 # Check whether --enable-statbox or --disable-statbox was given.
8491if test "${enable_statbox+set}" = set; then
8492 enableval="$enable_statbox"
8493
8494 if test "$enableval" = yes; then
8495 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8496 else
8497 ac_cv_use_statbox='wxUSE_STATBOX=no'
8498 fi
8499
8500else
8501
8502 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8503 if test "x$LINE" != x ; then
8504 eval "DEFAULT_$LINE"
8505 else
8506 no_cache=1
8507 fi
8508
8509 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8510
8511fi;
8512
8513 eval "$ac_cv_use_statbox"
8514 if test "$no_cache" != 1; then
8515 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8516 fi
8517
8518 if test "$wxUSE_STATBOX" = yes; then
8519 echo "$as_me:$LINENO: result: yes" >&5
8520echo "${ECHO_T}yes" >&6
8521 else
8522 echo "$as_me:$LINENO: result: no" >&5
8523echo "${ECHO_T}no" >&6
8524 fi
8525
8526
8527 enablestring=
8528 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8529echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8530 no_cache=0
8531 # Check whether --enable-statline or --disable-statline was given.
8532if test "${enable_statline+set}" = set; then
8533 enableval="$enable_statline"
8534
8535 if test "$enableval" = yes; then
8536 ac_cv_use_statline='wxUSE_STATLINE=yes'
8537 else
8538 ac_cv_use_statline='wxUSE_STATLINE=no'
8539 fi
8540
8541else
8542
8543 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8544 if test "x$LINE" != x ; then
8545 eval "DEFAULT_$LINE"
8546 else
8547 no_cache=1
8548 fi
8549
8550 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8551
8552fi;
8553
8554 eval "$ac_cv_use_statline"
8555 if test "$no_cache" != 1; then
8556 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8557 fi
8558
8559 if test "$wxUSE_STATLINE" = yes; then
8560 echo "$as_me:$LINENO: result: yes" >&5
8561echo "${ECHO_T}yes" >&6
8562 else
8563 echo "$as_me:$LINENO: result: no" >&5
8564echo "${ECHO_T}no" >&6
8565 fi
8566
8567
8568 enablestring=
8569 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8570echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8571 no_cache=0
8572 # Check whether --enable-stattext or --disable-stattext was given.
8573if test "${enable_stattext+set}" = set; then
8574 enableval="$enable_stattext"
8575
8576 if test "$enableval" = yes; then
8577 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8578 else
8579 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8580 fi
8581
8582else
8583
8584 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8585 if test "x$LINE" != x ; then
8586 eval "DEFAULT_$LINE"
8587 else
8588 no_cache=1
8589 fi
8590
8591 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8592
8593fi;
8594
8595 eval "$ac_cv_use_stattext"
8596 if test "$no_cache" != 1; then
8597 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8598 fi
8599
8600 if test "$wxUSE_STATTEXT" = yes; then
8601 echo "$as_me:$LINENO: result: yes" >&5
8602echo "${ECHO_T}yes" >&6
8603 else
8604 echo "$as_me:$LINENO: result: no" >&5
8605echo "${ECHO_T}no" >&6
8606 fi
8607
8608
8609 enablestring=
8610 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8611echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8612 no_cache=0
8613 # Check whether --enable-statusbar or --disable-statusbar was given.
8614if test "${enable_statusbar+set}" = set; then
8615 enableval="$enable_statusbar"
8616
8617 if test "$enableval" = yes; then
8618 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8619 else
8620 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8621 fi
8622
8623else
8624
8625 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8626 if test "x$LINE" != x ; then
8627 eval "DEFAULT_$LINE"
8628 else
8629 no_cache=1
8630 fi
8631
8632 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8633
8634fi;
8635
8636 eval "$ac_cv_use_statusbar"
8637 if test "$no_cache" != 1; then
8638 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8639 fi
8640
8641 if test "$wxUSE_STATUSBAR" = yes; then
8642 echo "$as_me:$LINENO: result: yes" >&5
8643echo "${ECHO_T}yes" >&6
8644 else
8645 echo "$as_me:$LINENO: result: no" >&5
8646echo "${ECHO_T}no" >&6
8647 fi
8648
8649
8650 enablestring=
8651 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8652echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8653 no_cache=0
8654 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8655if test "${enable_tabdialog+set}" = set; then
8656 enableval="$enable_tabdialog"
8657
8658 if test "$enableval" = yes; then
8659 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8660 else
8661 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8662 fi
8663
8664else
8665
8666 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8667 if test "x$LINE" != x ; then
8668 eval "DEFAULT_$LINE"
8669 else
8670 no_cache=1
8671 fi
8672
8673 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8674
8675fi;
8676
8677 eval "$ac_cv_use_tabdialog"
8678 if test "$no_cache" != 1; then
8679 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8680 fi
8681
8682 if test "$wxUSE_TABDIALOG" = yes; then
8683 echo "$as_me:$LINENO: result: yes" >&5
8684echo "${ECHO_T}yes" >&6
8685 else
8686 echo "$as_me:$LINENO: result: no" >&5
8687echo "${ECHO_T}no" >&6
8688 fi
8689
8690
8691 enablestring=
8692 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8693echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8694 no_cache=0
8695 # Check whether --enable-textctrl or --disable-textctrl was given.
8696if test "${enable_textctrl+set}" = set; then
8697 enableval="$enable_textctrl"
8698
8699 if test "$enableval" = yes; then
8700 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8701 else
8702 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8703 fi
8704
8705else
8706
8707 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8708 if test "x$LINE" != x ; then
8709 eval "DEFAULT_$LINE"
8710 else
8711 no_cache=1
8712 fi
8713
8714 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8715
8716fi;
8717
8718 eval "$ac_cv_use_textctrl"
8719 if test "$no_cache" != 1; then
8720 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8721 fi
8722
8723 if test "$wxUSE_TEXTCTRL" = yes; then
8724 echo "$as_me:$LINENO: result: yes" >&5
8725echo "${ECHO_T}yes" >&6
8726 else
8727 echo "$as_me:$LINENO: result: no" >&5
8728echo "${ECHO_T}no" >&6
8729 fi
8730
8731
8732 enablestring=
8733 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8734echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8735 no_cache=0
8736 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8737if test "${enable_togglebtn+set}" = set; then
8738 enableval="$enable_togglebtn"
8739
8740 if test "$enableval" = yes; then
8741 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8742 else
8743 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8744 fi
8745
8746else
8747
8748 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8749 if test "x$LINE" != x ; then
8750 eval "DEFAULT_$LINE"
8751 else
8752 no_cache=1
8753 fi
8754
8755 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8756
8757fi;
8758
8759 eval "$ac_cv_use_togglebtn"
8760 if test "$no_cache" != 1; then
8761 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8762 fi
8763
8764 if test "$wxUSE_TOGGLEBTN" = yes; then
8765 echo "$as_me:$LINENO: result: yes" >&5
8766echo "${ECHO_T}yes" >&6
8767 else
8768 echo "$as_me:$LINENO: result: no" >&5
8769echo "${ECHO_T}no" >&6
8770 fi
8771
8772
8773 enablestring=
8774 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8775echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8776 no_cache=0
8777 # Check whether --enable-toolbar or --disable-toolbar was given.
8778if test "${enable_toolbar+set}" = set; then
8779 enableval="$enable_toolbar"
8780
8781 if test "$enableval" = yes; then
8782 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8783 else
8784 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8785 fi
8786
8787else
8788
8789 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8790 if test "x$LINE" != x ; then
8791 eval "DEFAULT_$LINE"
8792 else
8793 no_cache=1
8794 fi
8795
8796 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8797
8798fi;
8799
8800 eval "$ac_cv_use_toolbar"
8801 if test "$no_cache" != 1; then
8802 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8803 fi
8804
8805 if test "$wxUSE_TOOLBAR" = yes; then
8806 echo "$as_me:$LINENO: result: yes" >&5
8807echo "${ECHO_T}yes" >&6
8808 else
8809 echo "$as_me:$LINENO: result: no" >&5
8810echo "${ECHO_T}no" >&6
8811 fi
8812
8813
8814 enablestring=
8815 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8816echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8817 no_cache=0
8818 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8819if test "${enable_tbarnative+set}" = set; then
8820 enableval="$enable_tbarnative"
8821
8822 if test "$enableval" = yes; then
8823 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8824 else
8825 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8826 fi
8827
8828else
8829
8830 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8831 if test "x$LINE" != x ; then
8832 eval "DEFAULT_$LINE"
8833 else
8834 no_cache=1
8835 fi
8836
8837 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8838
8839fi;
8840
8841 eval "$ac_cv_use_tbarnative"
8842 if test "$no_cache" != 1; then
8843 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8844 fi
8845
8846 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8847 echo "$as_me:$LINENO: result: yes" >&5
8848echo "${ECHO_T}yes" >&6
8849 else
8850 echo "$as_me:$LINENO: result: no" >&5
8851echo "${ECHO_T}no" >&6
8852 fi
8853
8854
8855 enablestring=
8856 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8857echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8858 no_cache=0
8859 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8860if test "${enable_tbarsmpl+set}" = set; then
8861 enableval="$enable_tbarsmpl"
8862
8863 if test "$enableval" = yes; then
8864 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8865 else
8866 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8867 fi
8868
8869else
8870
8871 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8872 if test "x$LINE" != x ; then
8873 eval "DEFAULT_$LINE"
8874 else
8875 no_cache=1
8876 fi
8877
8878 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8879
8880fi;
8881
8882 eval "$ac_cv_use_tbarsmpl"
8883 if test "$no_cache" != 1; then
8884 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8885 fi
8886
8887 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8888 echo "$as_me:$LINENO: result: yes" >&5
8889echo "${ECHO_T}yes" >&6
8890 else
8891 echo "$as_me:$LINENO: result: no" >&5
8892echo "${ECHO_T}no" >&6
8893 fi
8894
8895
8896 enablestring=
8897 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8898echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8899 no_cache=0
8900 # Check whether --enable-treectrl or --disable-treectrl was given.
8901if test "${enable_treectrl+set}" = set; then
8902 enableval="$enable_treectrl"
8903
8904 if test "$enableval" = yes; then
8905 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8906 else
8907 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8908 fi
8909
8910else
8911
8912 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8913 if test "x$LINE" != x ; then
8914 eval "DEFAULT_$LINE"
8915 else
8916 no_cache=1
8917 fi
8918
8919 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8920
8921fi;
8922
8923 eval "$ac_cv_use_treectrl"
8924 if test "$no_cache" != 1; then
8925 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8926 fi
8927
8928 if test "$wxUSE_TREECTRL" = yes; then
8929 echo "$as_me:$LINENO: result: yes" >&5
8930echo "${ECHO_T}yes" >&6
8931 else
8932 echo "$as_me:$LINENO: result: no" >&5
8933echo "${ECHO_T}no" >&6
8934 fi
8935
8936
8937 enablestring=
8938 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8939echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8940 no_cache=0
8941 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8942if test "${enable_tipwindow+set}" = set; then
8943 enableval="$enable_tipwindow"
8944
8945 if test "$enableval" = yes; then
8946 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8947 else
8948 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8949 fi
8950
8951else
8952
8953 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8954 if test "x$LINE" != x ; then
8955 eval "DEFAULT_$LINE"
8956 else
8957 no_cache=1
8958 fi
8959
8960 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8961
8962fi;
8963
8964 eval "$ac_cv_use_tipwindow"
8965 if test "$no_cache" != 1; then
8966 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8967 fi
8968
8969 if test "$wxUSE_TIPWINDOW" = yes; then
8970 echo "$as_me:$LINENO: result: yes" >&5
8971echo "${ECHO_T}yes" >&6
8972 else
8973 echo "$as_me:$LINENO: result: no" >&5
8974echo "${ECHO_T}no" >&6
8975 fi
8976
8977
8978 enablestring=
8979 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8980echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8981 no_cache=0
8982 # Check whether --enable-popupwin or --disable-popupwin was given.
8983if test "${enable_popupwin+set}" = set; then
8984 enableval="$enable_popupwin"
8985
8986 if test "$enableval" = yes; then
8987 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8988 else
8989 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8990 fi
8991
8992else
8993
8994 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8995 if test "x$LINE" != x ; then
8996 eval "DEFAULT_$LINE"
8997 else
8998 no_cache=1
8999 fi
9000
9001 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9002
9003fi;
9004
9005 eval "$ac_cv_use_popupwin"
9006 if test "$no_cache" != 1; then
9007 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9008 fi
9009
9010 if test "$wxUSE_POPUPWIN" = yes; then
9011 echo "$as_me:$LINENO: result: yes" >&5
9012echo "${ECHO_T}yes" >&6
9013 else
9014 echo "$as_me:$LINENO: result: no" >&5
9015echo "${ECHO_T}no" >&6
9016 fi
9017
9018
9019
9020
9021 enablestring=
9022 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9023echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9024 no_cache=0
9025 # Check whether --enable-commondlg or --disable-commondlg was given.
9026if test "${enable_commondlg+set}" = set; then
9027 enableval="$enable_commondlg"
9028
9029 if test "$enableval" = yes; then
9030 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9031 else
9032 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9033 fi
9034
9035else
9036
9037 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9038 if test "x$LINE" != x ; then
9039 eval "DEFAULT_$LINE"
9040 else
9041 no_cache=1
9042 fi
9043
9044 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9045
9046fi;
9047
9048 eval "$ac_cv_use_commondlg"
9049 if test "$no_cache" != 1; then
9050 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9051 fi
9052
9053 if test "$wxUSE_COMMONDLGS" = yes; then
9054 echo "$as_me:$LINENO: result: yes" >&5
9055echo "${ECHO_T}yes" >&6
9056 else
9057 echo "$as_me:$LINENO: result: no" >&5
9058echo "${ECHO_T}no" >&6
9059 fi
9060
9061
9062 enablestring=
9063 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9064echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9065 no_cache=0
9066 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9067if test "${enable_choicedlg+set}" = set; then
9068 enableval="$enable_choicedlg"
9069
9070 if test "$enableval" = yes; then
9071 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9072 else
9073 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9074 fi
9075
9076else
9077
9078 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9079 if test "x$LINE" != x ; then
9080 eval "DEFAULT_$LINE"
9081 else
9082 no_cache=1
9083 fi
9084
9085 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9086
9087fi;
9088
9089 eval "$ac_cv_use_choicedlg"
9090 if test "$no_cache" != 1; then
9091 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9092 fi
9093
9094 if test "$wxUSE_CHOICEDLG" = yes; then
9095 echo "$as_me:$LINENO: result: yes" >&5
9096echo "${ECHO_T}yes" >&6
9097 else
9098 echo "$as_me:$LINENO: result: no" >&5
9099echo "${ECHO_T}no" >&6
9100 fi
9101
9102
9103 enablestring=
9104 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9105echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9106 no_cache=0
9107 # Check whether --enable-coldlg or --disable-coldlg was given.
9108if test "${enable_coldlg+set}" = set; then
9109 enableval="$enable_coldlg"
9110
9111 if test "$enableval" = yes; then
9112 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9113 else
9114 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9115 fi
9116
9117else
9118
9119 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9120 if test "x$LINE" != x ; then
9121 eval "DEFAULT_$LINE"
9122 else
9123 no_cache=1
9124 fi
9125
9126 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9127
9128fi;
9129
9130 eval "$ac_cv_use_coldlg"
9131 if test "$no_cache" != 1; then
9132 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9133 fi
9134
9135 if test "$wxUSE_COLOURDLG" = yes; then
9136 echo "$as_me:$LINENO: result: yes" >&5
9137echo "${ECHO_T}yes" >&6
9138 else
9139 echo "$as_me:$LINENO: result: no" >&5
9140echo "${ECHO_T}no" >&6
9141 fi
9142
9143
9144 enablestring=
9145 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9146echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9147 no_cache=0
9148 # Check whether --enable-filedlg or --disable-filedlg was given.
9149if test "${enable_filedlg+set}" = set; then
9150 enableval="$enable_filedlg"
9151
9152 if test "$enableval" = yes; then
9153 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9154 else
9155 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9156 fi
9157
9158else
9159
9160 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9161 if test "x$LINE" != x ; then
9162 eval "DEFAULT_$LINE"
9163 else
9164 no_cache=1
9165 fi
9166
9167 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9168
9169fi;
9170
9171 eval "$ac_cv_use_filedlg"
9172 if test "$no_cache" != 1; then
9173 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9174 fi
9175
9176 if test "$wxUSE_FILEDLG" = yes; then
9177 echo "$as_me:$LINENO: result: yes" >&5
9178echo "${ECHO_T}yes" >&6
9179 else
9180 echo "$as_me:$LINENO: result: no" >&5
9181echo "${ECHO_T}no" >&6
9182 fi
9183
9184
9185 enablestring=
9186 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9187echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9188 no_cache=0
9189 # Check whether --enable-finddlg or --disable-finddlg was given.
9190if test "${enable_finddlg+set}" = set; then
9191 enableval="$enable_finddlg"
9192
9193 if test "$enableval" = yes; then
9194 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9195 else
9196 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9197 fi
9198
9199else
9200
9201 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9202 if test "x$LINE" != x ; then
9203 eval "DEFAULT_$LINE"
9204 else
9205 no_cache=1
9206 fi
9207
9208 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9209
9210fi;
9211
9212 eval "$ac_cv_use_finddlg"
9213 if test "$no_cache" != 1; then
9214 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9215 fi
9216
9217 if test "$wxUSE_FINDREPLDLG" = yes; then
9218 echo "$as_me:$LINENO: result: yes" >&5
9219echo "${ECHO_T}yes" >&6
9220 else
9221 echo "$as_me:$LINENO: result: no" >&5
9222echo "${ECHO_T}no" >&6
9223 fi
9224
9225
9226 enablestring=
9227 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9228echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9229 no_cache=0
9230 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9231if test "${enable_fontdlg+set}" = set; then
9232 enableval="$enable_fontdlg"
9233
9234 if test "$enableval" = yes; then
9235 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9236 else
9237 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9238 fi
9239
9240else
9241
9242 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9243 if test "x$LINE" != x ; then
9244 eval "DEFAULT_$LINE"
9245 else
9246 no_cache=1
9247 fi
9248
9249 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9250
9251fi;
9252
9253 eval "$ac_cv_use_fontdlg"
9254 if test "$no_cache" != 1; then
9255 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9256 fi
9257
9258 if test "$wxUSE_FONTDLG" = yes; then
9259 echo "$as_me:$LINENO: result: yes" >&5
9260echo "${ECHO_T}yes" >&6
9261 else
9262 echo "$as_me:$LINENO: result: no" >&5
9263echo "${ECHO_T}no" >&6
9264 fi
9265
9266
9267 enablestring=
9268 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9269echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9270 no_cache=0
9271 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9272if test "${enable_dirdlg+set}" = set; then
9273 enableval="$enable_dirdlg"
9274
9275 if test "$enableval" = yes; then
9276 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9277 else
9278 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9279 fi
9280
9281else
9282
9283 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9284 if test "x$LINE" != x ; then
9285 eval "DEFAULT_$LINE"
9286 else
9287 no_cache=1
9288 fi
9289
9290 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9291
9292fi;
9293
9294 eval "$ac_cv_use_dirdlg"
9295 if test "$no_cache" != 1; then
9296 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9297 fi
9298
9299 if test "$wxUSE_DIRDLG" = yes; then
9300 echo "$as_me:$LINENO: result: yes" >&5
9301echo "${ECHO_T}yes" >&6
9302 else
9303 echo "$as_me:$LINENO: result: no" >&5
9304echo "${ECHO_T}no" >&6
9305 fi
9306
9307
9308 enablestring=
9309 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9310echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9311 no_cache=0
9312 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9313if test "${enable_msgdlg+set}" = set; then
9314 enableval="$enable_msgdlg"
9315
9316 if test "$enableval" = yes; then
9317 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9318 else
9319 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9320 fi
9321
9322else
9323
9324 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9325 if test "x$LINE" != x ; then
9326 eval "DEFAULT_$LINE"
9327 else
9328 no_cache=1
9329 fi
9330
9331 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9332
9333fi;
9334
9335 eval "$ac_cv_use_msgdlg"
9336 if test "$no_cache" != 1; then
9337 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9338 fi
9339
9340 if test "$wxUSE_MSGDLG" = yes; then
9341 echo "$as_me:$LINENO: result: yes" >&5
9342echo "${ECHO_T}yes" >&6
9343 else
9344 echo "$as_me:$LINENO: result: no" >&5
9345echo "${ECHO_T}no" >&6
9346 fi
9347
9348
9349 enablestring=
9350 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9351echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9352 no_cache=0
9353 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9354if test "${enable_numberdlg+set}" = set; then
9355 enableval="$enable_numberdlg"
9356
9357 if test "$enableval" = yes; then
9358 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9359 else
9360 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9361 fi
9362
9363else
9364
9365 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9366 if test "x$LINE" != x ; then
9367 eval "DEFAULT_$LINE"
9368 else
9369 no_cache=1
9370 fi
9371
9372 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9373
9374fi;
9375
9376 eval "$ac_cv_use_numberdlg"
9377 if test "$no_cache" != 1; then
9378 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9379 fi
9380
9381 if test "$wxUSE_NUMBERDLG" = yes; then
9382 echo "$as_me:$LINENO: result: yes" >&5
9383echo "${ECHO_T}yes" >&6
9384 else
9385 echo "$as_me:$LINENO: result: no" >&5
9386echo "${ECHO_T}no" >&6
9387 fi
9388
9389
9390 enablestring=
9391 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9392echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9393 no_cache=0
9394 # Check whether --enable-splash or --disable-splash was given.
9395if test "${enable_splash+set}" = set; then
9396 enableval="$enable_splash"
9397
9398 if test "$enableval" = yes; then
9399 ac_cv_use_splash='wxUSE_SPLASH=yes'
9400 else
9401 ac_cv_use_splash='wxUSE_SPLASH=no'
9402 fi
9403
9404else
9405
9406 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9407 if test "x$LINE" != x ; then
9408 eval "DEFAULT_$LINE"
9409 else
9410 no_cache=1
9411 fi
9412
9413 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9414
9415fi;
9416
9417 eval "$ac_cv_use_splash"
9418 if test "$no_cache" != 1; then
9419 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9420 fi
9421
9422 if test "$wxUSE_SPLASH" = yes; then
9423 echo "$as_me:$LINENO: result: yes" >&5
9424echo "${ECHO_T}yes" >&6
9425 else
9426 echo "$as_me:$LINENO: result: no" >&5
9427echo "${ECHO_T}no" >&6
9428 fi
9429
9430
9431 enablestring=
9432 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9433echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9434 no_cache=0
9435 # Check whether --enable-textdlg or --disable-textdlg was given.
9436if test "${enable_textdlg+set}" = set; then
9437 enableval="$enable_textdlg"
9438
9439 if test "$enableval" = yes; then
9440 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9441 else
9442 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9443 fi
9444
9445else
9446
9447 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9448 if test "x$LINE" != x ; then
9449 eval "DEFAULT_$LINE"
9450 else
9451 no_cache=1
9452 fi
9453
9454 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9455
9456fi;
9457
9458 eval "$ac_cv_use_textdlg"
9459 if test "$no_cache" != 1; then
9460 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9461 fi
9462
9463 if test "$wxUSE_TEXTDLG" = yes; then
9464 echo "$as_me:$LINENO: result: yes" >&5
9465echo "${ECHO_T}yes" >&6
9466 else
9467 echo "$as_me:$LINENO: result: no" >&5
9468echo "${ECHO_T}no" >&6
9469 fi
9470
9471
9472 enablestring=
9473 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9474echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9475 no_cache=0
9476 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9477if test "${enable_tipdlg+set}" = set; then
9478 enableval="$enable_tipdlg"
9479
9480 if test "$enableval" = yes; then
9481 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9482 else
9483 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9484 fi
9485
9486else
9487
9488 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9489 if test "x$LINE" != x ; then
9490 eval "DEFAULT_$LINE"
9491 else
9492 no_cache=1
9493 fi
9494
9495 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9496
9497fi;
9498
9499 eval "$ac_cv_use_tipdlg"
9500 if test "$no_cache" != 1; then
9501 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9502 fi
9503
9504 if test "$wxUSE_STARTUP_TIPS" = yes; then
9505 echo "$as_me:$LINENO: result: yes" >&5
9506echo "${ECHO_T}yes" >&6
9507 else
9508 echo "$as_me:$LINENO: result: no" >&5
9509echo "${ECHO_T}no" >&6
9510 fi
9511
9512
9513 enablestring=
9514 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9515echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9516 no_cache=0
9517 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9518if test "${enable_progressdlg+set}" = set; then
9519 enableval="$enable_progressdlg"
9520
9521 if test "$enableval" = yes; then
9522 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9523 else
9524 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9525 fi
9526
9527else
9528
9529 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9530 if test "x$LINE" != x ; then
9531 eval "DEFAULT_$LINE"
9532 else
9533 no_cache=1
9534 fi
9535
9536 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9537
9538fi;
9539
9540 eval "$ac_cv_use_progressdlg"
9541 if test "$no_cache" != 1; then
9542 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9543 fi
9544
9545 if test "$wxUSE_PROGRESSDLG" = yes; then
9546 echo "$as_me:$LINENO: result: yes" >&5
9547echo "${ECHO_T}yes" >&6
9548 else
9549 echo "$as_me:$LINENO: result: no" >&5
9550echo "${ECHO_T}no" >&6
9551 fi
9552
9553
9554 enablestring=
9555 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9556echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9557 no_cache=0
9558 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9559if test "${enable_wizarddlg+set}" = set; then
9560 enableval="$enable_wizarddlg"
9561
9562 if test "$enableval" = yes; then
9563 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9564 else
9565 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9566 fi
9567
9568else
9569
9570 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9571 if test "x$LINE" != x ; then
9572 eval "DEFAULT_$LINE"
9573 else
9574 no_cache=1
9575 fi
9576
9577 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9578
9579fi;
9580
9581 eval "$ac_cv_use_wizarddlg"
9582 if test "$no_cache" != 1; then
9583 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9584 fi
9585
9586 if test "$wxUSE_WIZARDDLG" = yes; then
9587 echo "$as_me:$LINENO: result: yes" >&5
9588echo "${ECHO_T}yes" >&6
9589 else
9590 echo "$as_me:$LINENO: result: no" >&5
9591echo "${ECHO_T}no" >&6
9592 fi
9593
9594
9595
9596
9597 enablestring=
9598 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9599echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9600 no_cache=0
9601 # Check whether --enable-menus or --disable-menus was given.
9602if test "${enable_menus+set}" = set; then
9603 enableval="$enable_menus"
9604
9605 if test "$enableval" = yes; then
9606 ac_cv_use_menus='wxUSE_MENUS=yes'
9607 else
9608 ac_cv_use_menus='wxUSE_MENUS=no'
9609 fi
9610
9611else
9612
9613 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9614 if test "x$LINE" != x ; then
9615 eval "DEFAULT_$LINE"
9616 else
9617 no_cache=1
9618 fi
9619
9620 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9621
9622fi;
9623
9624 eval "$ac_cv_use_menus"
9625 if test "$no_cache" != 1; then
9626 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9627 fi
9628
9629 if test "$wxUSE_MENUS" = yes; then
9630 echo "$as_me:$LINENO: result: yes" >&5
9631echo "${ECHO_T}yes" >&6
9632 else
9633 echo "$as_me:$LINENO: result: no" >&5
9634echo "${ECHO_T}no" >&6
9635 fi
9636
9637
9638 enablestring=
9639 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9640echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9641 no_cache=0
9642 # Check whether --enable-miniframe or --disable-miniframe was given.
9643if test "${enable_miniframe+set}" = set; then
9644 enableval="$enable_miniframe"
9645
9646 if test "$enableval" = yes; then
9647 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9648 else
9649 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9650 fi
9651
9652else
9653
9654 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9655 if test "x$LINE" != x ; then
9656 eval "DEFAULT_$LINE"
9657 else
9658 no_cache=1
9659 fi
9660
9661 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9662
9663fi;
9664
9665 eval "$ac_cv_use_miniframe"
9666 if test "$no_cache" != 1; then
9667 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9668 fi
9669
9670 if test "$wxUSE_MINIFRAME" = yes; then
9671 echo "$as_me:$LINENO: result: yes" >&5
9672echo "${ECHO_T}yes" >&6
9673 else
9674 echo "$as_me:$LINENO: result: no" >&5
9675echo "${ECHO_T}no" >&6
9676 fi
9677
9678
9679 enablestring=
9680 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9681echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9682 no_cache=0
9683 # Check whether --enable-tooltips or --disable-tooltips was given.
9684if test "${enable_tooltips+set}" = set; then
9685 enableval="$enable_tooltips"
9686
9687 if test "$enableval" = yes; then
9688 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9689 else
9690 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9691 fi
9692
9693else
9694
9695 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9696 if test "x$LINE" != x ; then
9697 eval "DEFAULT_$LINE"
9698 else
9699 no_cache=1
9700 fi
9701
9702 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9703
9704fi;
9705
9706 eval "$ac_cv_use_tooltips"
9707 if test "$no_cache" != 1; then
9708 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9709 fi
9710
9711 if test "$wxUSE_TOOLTIPS" = yes; then
9712 echo "$as_me:$LINENO: result: yes" >&5
9713echo "${ECHO_T}yes" >&6
9714 else
9715 echo "$as_me:$LINENO: result: no" >&5
9716echo "${ECHO_T}no" >&6
9717 fi
9718
9719
9720 enablestring=
9721 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9722echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9723 no_cache=0
9724 # Check whether --enable-splines or --disable-splines was given.
9725if test "${enable_splines+set}" = set; then
9726 enableval="$enable_splines"
9727
9728 if test "$enableval" = yes; then
9729 ac_cv_use_splines='wxUSE_SPLINES=yes'
9730 else
9731 ac_cv_use_splines='wxUSE_SPLINES=no'
9732 fi
9733
9734else
9735
9736 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9737 if test "x$LINE" != x ; then
9738 eval "DEFAULT_$LINE"
9739 else
9740 no_cache=1
9741 fi
9742
9743 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9744
9745fi;
9746
9747 eval "$ac_cv_use_splines"
9748 if test "$no_cache" != 1; then
9749 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9750 fi
9751
9752 if test "$wxUSE_SPLINES" = yes; then
9753 echo "$as_me:$LINENO: result: yes" >&5
9754echo "${ECHO_T}yes" >&6
9755 else
9756 echo "$as_me:$LINENO: result: no" >&5
9757echo "${ECHO_T}no" >&6
9758 fi
9759
9760
fbe2ca43
SN
9761 enablestring=
9762 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
9763echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
9764 no_cache=0
9765 # Check whether --enable-mousewheel or --disable-mousewheel was given.
9766if test "${enable_mousewheel+set}" = set; then
9767 enableval="$enable_mousewheel"
9768
9769 if test "$enableval" = yes; then
9770 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
9771 else
9772 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
9773 fi
9774
9775else
9776
9777 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
9778 if test "x$LINE" != x ; then
9779 eval "DEFAULT_$LINE"
9780 else
9781 no_cache=1
9782 fi
9783
9784 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
9785
9786fi;
9787
9788 eval "$ac_cv_use_mousewheel"
9789 if test "$no_cache" != 1; then
9790 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
9791 fi
9792
9793 if test "$wxUSE_MOUSEWHEEL" = yes; then
9794 echo "$as_me:$LINENO: result: yes" >&5
9795echo "${ECHO_T}yes" >&6
9796 else
9797 echo "$as_me:$LINENO: result: no" >&5
9798echo "${ECHO_T}no" >&6
9799 fi
9800
9801
a848cd7e
SC
9802 enablestring=
9803 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9804echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9805 no_cache=0
9806 # Check whether --enable-validators or --disable-validators was given.
9807if test "${enable_validators+set}" = set; then
9808 enableval="$enable_validators"
9809
9810 if test "$enableval" = yes; then
9811 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9812 else
9813 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9814 fi
9815
9816else
9817
9818 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9819 if test "x$LINE" != x ; then
9820 eval "DEFAULT_$LINE"
9821 else
9822 no_cache=1
9823 fi
9824
9825 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9826
9827fi;
9828
9829 eval "$ac_cv_use_validators"
9830 if test "$no_cache" != 1; then
9831 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9832 fi
9833
9834 if test "$wxUSE_VALIDATORS" = yes; then
9835 echo "$as_me:$LINENO: result: yes" >&5
9836echo "${ECHO_T}yes" >&6
9837 else
9838 echo "$as_me:$LINENO: result: no" >&5
9839echo "${ECHO_T}no" >&6
9840 fi
9841
9842
9843 enablestring=
9844 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9845echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9846 no_cache=0
9847 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9848if test "${enable_busyinfo+set}" = set; then
9849 enableval="$enable_busyinfo"
9850
9851 if test "$enableval" = yes; then
9852 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9853 else
9854 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9855 fi
9856
9857else
9858
9859 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9860 if test "x$LINE" != x ; then
9861 eval "DEFAULT_$LINE"
9862 else
9863 no_cache=1
9864 fi
9865
9866 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9867
9868fi;
9869
9870 eval "$ac_cv_use_busyinfo"
9871 if test "$no_cache" != 1; then
9872 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9873 fi
9874
9875 if test "$wxUSE_BUSYINFO" = yes; then
9876 echo "$as_me:$LINENO: result: yes" >&5
9877echo "${ECHO_T}yes" >&6
9878 else
9879 echo "$as_me:$LINENO: result: no" >&5
9880echo "${ECHO_T}no" >&6
9881 fi
9882
9883
9884 enablestring=
9885 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9886echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9887 no_cache=0
9888 # Check whether --enable-joystick or --disable-joystick was given.
9889if test "${enable_joystick+set}" = set; then
9890 enableval="$enable_joystick"
9891
9892 if test "$enableval" = yes; then
9893 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9894 else
9895 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9896 fi
9897
9898else
9899
9900 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9901 if test "x$LINE" != x ; then
9902 eval "DEFAULT_$LINE"
9903 else
9904 no_cache=1
9905 fi
9906
9907 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9908
9909fi;
9910
9911 eval "$ac_cv_use_joystick"
9912 if test "$no_cache" != 1; then
9913 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9914 fi
9915
9916 if test "$wxUSE_JOYSTICK" = yes; then
9917 echo "$as_me:$LINENO: result: yes" >&5
9918echo "${ECHO_T}yes" >&6
9919 else
9920 echo "$as_me:$LINENO: result: no" >&5
9921echo "${ECHO_T}no" >&6
9922 fi
9923
9924
9925 enablestring=
9926 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9927echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9928 no_cache=0
9929 # Check whether --enable-metafile or --disable-metafile was given.
9930if test "${enable_metafile+set}" = set; then
9931 enableval="$enable_metafile"
9932
9933 if test "$enableval" = yes; then
9934 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9935 else
9936 ac_cv_use_metafile='wxUSE_METAFILE=no'
9937 fi
9938
9939else
9940
9941 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9942 if test "x$LINE" != x ; then
9943 eval "DEFAULT_$LINE"
9944 else
9945 no_cache=1
9946 fi
9947
9948 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9949
9950fi;
9951
9952 eval "$ac_cv_use_metafile"
9953 if test "$no_cache" != 1; then
9954 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9955 fi
9956
9957 if test "$wxUSE_METAFILE" = yes; then
9958 echo "$as_me:$LINENO: result: yes" >&5
9959echo "${ECHO_T}yes" >&6
9960 else
9961 echo "$as_me:$LINENO: result: no" >&5
9962echo "${ECHO_T}no" >&6
9963 fi
9964
9965
9966 enablestring=
9967 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9968echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9969 no_cache=0
9970 # Check whether --enable-dragimage or --disable-dragimage was given.
9971if test "${enable_dragimage+set}" = set; then
9972 enableval="$enable_dragimage"
9973
9974 if test "$enableval" = yes; then
9975 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9976 else
9977 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9978 fi
9979
9980else
9981
9982 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9983 if test "x$LINE" != x ; then
9984 eval "DEFAULT_$LINE"
9985 else
9986 no_cache=1
9987 fi
9988
9989 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9990
9991fi;
9992
9993 eval "$ac_cv_use_dragimage"
9994 if test "$no_cache" != 1; then
9995 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9996 fi
9997
9998 if test "$wxUSE_DRAGIMAGE" = yes; then
9999 echo "$as_me:$LINENO: result: yes" >&5
10000echo "${ECHO_T}yes" >&6
10001 else
10002 echo "$as_me:$LINENO: result: no" >&5
10003echo "${ECHO_T}no" >&6
10004 fi
10005
10006
10007 enablestring=
10008 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10009echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10010 no_cache=0
10011 # Check whether --enable-accessibility or --disable-accessibility was given.
10012if test "${enable_accessibility+set}" = set; then
10013 enableval="$enable_accessibility"
10014
10015 if test "$enableval" = yes; then
10016 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10017 else
10018 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10019 fi
10020
10021else
10022
10023 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10024 if test "x$LINE" != x ; then
10025 eval "DEFAULT_$LINE"
10026 else
10027 no_cache=1
10028 fi
10029
10030 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10031
10032fi;
10033
10034 eval "$ac_cv_use_accessibility"
10035 if test "$no_cache" != 1; then
10036 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10037 fi
10038
10039 if test "$wxUSE_ACCESSIBILITY" = yes; then
10040 echo "$as_me:$LINENO: result: yes" >&5
10041echo "${ECHO_T}yes" >&6
10042 else
10043 echo "$as_me:$LINENO: result: no" >&5
10044echo "${ECHO_T}no" >&6
10045 fi
10046
10047
38b4a946
VZ
10048if test "$wxUSE_MSW" = "1"; then
10049
10050 enablestring=
10051 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10052echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10053 no_cache=0
10054 # Check whether --enable-dccache or --disable-dccache was given.
10055if test "${enable_dccache+set}" = set; then
10056 enableval="$enable_dccache"
10057
10058 if test "$enableval" = yes; then
10059 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10060 else
10061 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10062 fi
10063
10064else
10065
10066 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10067 if test "x$LINE" != x ; then
10068 eval "DEFAULT_$LINE"
10069 else
10070 no_cache=1
10071 fi
10072
10073 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10074
10075fi;
10076
10077 eval "$ac_cv_use_dccache"
10078 if test "$no_cache" != 1; then
10079 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10080 fi
10081
10082 if test "$wxUSE_DC_CACHEING" = yes; then
10083 echo "$as_me:$LINENO: result: yes" >&5
10084echo "${ECHO_T}yes" >&6
10085 else
10086 echo "$as_me:$LINENO: result: no" >&5
10087echo "${ECHO_T}no" >&6
10088 fi
10089
10090fi
10091
a848cd7e
SC
10092
10093
10094 enablestring=
10095 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10096echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10097 no_cache=0
10098 # Check whether --enable-palette or --disable-palette was given.
10099if test "${enable_palette+set}" = set; then
10100 enableval="$enable_palette"
10101
10102 if test "$enableval" = yes; then
10103 ac_cv_use_palette='wxUSE_PALETTE=yes'
10104 else
10105 ac_cv_use_palette='wxUSE_PALETTE=no'
10106 fi
10107
10108else
10109
10110 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10111 if test "x$LINE" != x ; then
10112 eval "DEFAULT_$LINE"
10113 else
10114 no_cache=1
10115 fi
10116
10117 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10118
10119fi;
10120
10121 eval "$ac_cv_use_palette"
10122 if test "$no_cache" != 1; then
10123 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10124 fi
10125
10126 if test "$wxUSE_PALETTE" = yes; then
10127 echo "$as_me:$LINENO: result: yes" >&5
10128echo "${ECHO_T}yes" >&6
10129 else
10130 echo "$as_me:$LINENO: result: no" >&5
10131echo "${ECHO_T}no" >&6
10132 fi
10133
10134
10135 enablestring=
10136 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10137echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10138 no_cache=0
10139 # Check whether --enable-image or --disable-image was given.
10140if test "${enable_image+set}" = set; then
10141 enableval="$enable_image"
10142
10143 if test "$enableval" = yes; then
10144 ac_cv_use_image='wxUSE_IMAGE=yes'
10145 else
10146 ac_cv_use_image='wxUSE_IMAGE=no'
10147 fi
10148
10149else
10150
10151 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10152 if test "x$LINE" != x ; then
10153 eval "DEFAULT_$LINE"
10154 else
10155 no_cache=1
10156 fi
10157
10158 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10159
10160fi;
10161
10162 eval "$ac_cv_use_image"
10163 if test "$no_cache" != 1; then
10164 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10165 fi
10166
10167 if test "$wxUSE_IMAGE" = yes; then
10168 echo "$as_me:$LINENO: result: yes" >&5
10169echo "${ECHO_T}yes" >&6
10170 else
10171 echo "$as_me:$LINENO: result: no" >&5
10172echo "${ECHO_T}no" >&6
10173 fi
10174
10175
10176 enablestring=
10177 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10178echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10179 no_cache=0
10180 # Check whether --enable-gif or --disable-gif was given.
10181if test "${enable_gif+set}" = set; then
10182 enableval="$enable_gif"
10183
10184 if test "$enableval" = yes; then
10185 ac_cv_use_gif='wxUSE_GIF=yes'
10186 else
10187 ac_cv_use_gif='wxUSE_GIF=no'
10188 fi
10189
10190else
10191
10192 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10193 if test "x$LINE" != x ; then
10194 eval "DEFAULT_$LINE"
10195 else
10196 no_cache=1
10197 fi
10198
10199 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10200
10201fi;
10202
10203 eval "$ac_cv_use_gif"
10204 if test "$no_cache" != 1; then
10205 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10206 fi
10207
10208 if test "$wxUSE_GIF" = yes; then
10209 echo "$as_me:$LINENO: result: yes" >&5
10210echo "${ECHO_T}yes" >&6
10211 else
10212 echo "$as_me:$LINENO: result: no" >&5
10213echo "${ECHO_T}no" >&6
10214 fi
10215
10216
10217 enablestring=
10218 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10219echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10220 no_cache=0
10221 # Check whether --enable-pcx or --disable-pcx was given.
10222if test "${enable_pcx+set}" = set; then
10223 enableval="$enable_pcx"
10224
10225 if test "$enableval" = yes; then
10226 ac_cv_use_pcx='wxUSE_PCX=yes'
10227 else
10228 ac_cv_use_pcx='wxUSE_PCX=no'
10229 fi
10230
10231else
10232
10233 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10234 if test "x$LINE" != x ; then
10235 eval "DEFAULT_$LINE"
10236 else
10237 no_cache=1
10238 fi
10239
10240 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10241
10242fi;
10243
10244 eval "$ac_cv_use_pcx"
10245 if test "$no_cache" != 1; then
10246 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10247 fi
10248
10249 if test "$wxUSE_PCX" = yes; then
10250 echo "$as_me:$LINENO: result: yes" >&5
10251echo "${ECHO_T}yes" >&6
10252 else
10253 echo "$as_me:$LINENO: result: no" >&5
10254echo "${ECHO_T}no" >&6
10255 fi
10256
10257
10258 enablestring=
10259 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10260echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10261 no_cache=0
10262 # Check whether --enable-iff or --disable-iff was given.
10263if test "${enable_iff+set}" = set; then
10264 enableval="$enable_iff"
10265
10266 if test "$enableval" = yes; then
10267 ac_cv_use_iff='wxUSE_IFF=yes'
10268 else
10269 ac_cv_use_iff='wxUSE_IFF=no'
10270 fi
10271
10272else
10273
10274 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10275 if test "x$LINE" != x ; then
10276 eval "DEFAULT_$LINE"
10277 else
10278 no_cache=1
10279 fi
10280
10281 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10282
10283fi;
10284
10285 eval "$ac_cv_use_iff"
10286 if test "$no_cache" != 1; then
10287 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10288 fi
10289
10290 if test "$wxUSE_IFF" = yes; then
10291 echo "$as_me:$LINENO: result: yes" >&5
10292echo "${ECHO_T}yes" >&6
10293 else
10294 echo "$as_me:$LINENO: result: no" >&5
10295echo "${ECHO_T}no" >&6
10296 fi
10297
10298
10299 enablestring=
10300 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10301echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10302 no_cache=0
10303 # Check whether --enable-pnm or --disable-pnm was given.
10304if test "${enable_pnm+set}" = set; then
10305 enableval="$enable_pnm"
10306
10307 if test "$enableval" = yes; then
10308 ac_cv_use_pnm='wxUSE_PNM=yes'
10309 else
10310 ac_cv_use_pnm='wxUSE_PNM=no'
10311 fi
10312
10313else
10314
10315 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10316 if test "x$LINE" != x ; then
10317 eval "DEFAULT_$LINE"
10318 else
10319 no_cache=1
10320 fi
10321
10322 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10323
10324fi;
10325
10326 eval "$ac_cv_use_pnm"
10327 if test "$no_cache" != 1; then
10328 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10329 fi
10330
10331 if test "$wxUSE_PNM" = yes; then
10332 echo "$as_me:$LINENO: result: yes" >&5
10333echo "${ECHO_T}yes" >&6
10334 else
10335 echo "$as_me:$LINENO: result: no" >&5
10336echo "${ECHO_T}no" >&6
10337 fi
10338
10339
10340 enablestring=
10341 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10342echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10343 no_cache=0
10344 # Check whether --enable-xpm or --disable-xpm was given.
10345if test "${enable_xpm+set}" = set; then
10346 enableval="$enable_xpm"
10347
10348 if test "$enableval" = yes; then
10349 ac_cv_use_xpm='wxUSE_XPM=yes'
10350 else
10351 ac_cv_use_xpm='wxUSE_XPM=no'
10352 fi
10353
10354else
10355
10356 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10357 if test "x$LINE" != x ; then
10358 eval "DEFAULT_$LINE"
10359 else
10360 no_cache=1
10361 fi
10362
10363 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10364
10365fi;
10366
10367 eval "$ac_cv_use_xpm"
10368 if test "$no_cache" != 1; then
10369 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10370 fi
10371
10372 if test "$wxUSE_XPM" = yes; then
10373 echo "$as_me:$LINENO: result: yes" >&5
10374echo "${ECHO_T}yes" >&6
10375 else
10376 echo "$as_me:$LINENO: result: no" >&5
10377echo "${ECHO_T}no" >&6
10378 fi
10379
10380
10381 enablestring=
10382 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10383echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10384 no_cache=0
10385 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10386if test "${enable_ico_cur+set}" = set; then
10387 enableval="$enable_ico_cur"
10388
10389 if test "$enableval" = yes; then
10390 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10391 else
10392 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10393 fi
10394
10395else
10396
10397 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10398 if test "x$LINE" != x ; then
10399 eval "DEFAULT_$LINE"
10400 else
10401 no_cache=1
10402 fi
10403
10404 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10405
10406fi;
10407
10408 eval "$ac_cv_use_ico_cur"
10409 if test "$no_cache" != 1; then
10410 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10411 fi
10412
10413 if test "$wxUSE_ICO_CUR" = yes; then
10414 echo "$as_me:$LINENO: result: yes" >&5
10415echo "${ECHO_T}yes" >&6
10416 else
10417 echo "$as_me:$LINENO: result: no" >&5
10418echo "${ECHO_T}no" >&6
10419 fi
10420
10421
10422fi
10423
10424
10425
ceec2216
RL
10426# Check whether --with-flavour or --without-flavour was given.
10427if test "${with_flavour+set}" = set; then
10428 withval="$with_flavour"
10429 WX_FLAVOUR="$withval"
10430fi;
10431
10432
10433
a848cd7e
SC
10434 enablestring=
10435 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10436echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10437 no_cache=0
10438 # Check whether --enable-official_build or --disable-official_build was given.
10439if test "${enable_official_build+set}" = set; then
10440 enableval="$enable_official_build"
10441
10442 if test "$enableval" = yes; then
10443 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10444 else
10445 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10446 fi
10447
10448else
10449
10450 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10451 if test "x$LINE" != x ; then
10452 eval "DEFAULT_$LINE"
10453 else
10454 no_cache=1
10455 fi
10456
10457 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10458
10459fi;
10460
10461 eval "$ac_cv_use_official_build"
10462 if test "$no_cache" != 1; then
10463 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10464 fi
10465
10466 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10467 echo "$as_me:$LINENO: result: yes" >&5
10468echo "${ECHO_T}yes" >&6
10469 else
10470 echo "$as_me:$LINENO: result: no" >&5
10471echo "${ECHO_T}no" >&6
10472 fi
10473
10474# Check whether --enable-vendor or --disable-vendor was given.
10475if test "${enable_vendor+set}" = set; then
10476 enableval="$enable_vendor"
10477 VENDOR="$enableval"
10478fi;
10479if test "x$VENDOR" = "x"; then
10480 VENDOR="custom"
10481fi
10482
a848cd7e
SC
10483
10484
10485
10486 echo "saving argument cache $wx_arg_cache_file"
10487 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10488
10489
10490
10491echo "$as_me:$LINENO: checking for toolkit" >&5
10492echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10493
10494# In Wine, we need to default to MSW, not GTK or MOTIF
10495if test "$wxUSE_WINE" = "yes"; then
10496 DEFAULT_DEFAULT_wxUSE_GTK=0
10497 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10498 DEFAULT_DEFAULT_wxUSE_MSW=1
10499 wxUSE_SHARED=no
10500fi
10501
f597b41c 10502
a848cd7e
SC
10503if test "$wxUSE_GUI" = "yes"; then
10504
10505 if test "$USE_BEOS" = 1; then
10506 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10507echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10508 { (exit 1); exit 1; }; }
10509 fi
10510
10511 if test "$TOOLKIT_GIVEN" = 1; then
10512 for toolkit in `echo $ALL_TOOLKITS`; do
10513 var=wxUSE_$toolkit
10514 eval "value=\$${var}"
f34ca037
MW
10515 if test "x$value" = "xno"; then
10516 eval "$var=0"
10517 elif test "x$value" != "x"; then
10518 eval "$var=1"
10519 fi
10520
10521 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
10522 eval "wx${toolkit}_VERSION=$value"
10523 fi
a848cd7e
SC
10524 done
10525 else
10526 for toolkit in `echo $ALL_TOOLKITS`; do
10527 if test "$has_toolkit_in_cache" != 1; then
10528 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10529 else
10530 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
10531
10532 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
10533 if test "x$version" != "x"; then
10534 eval "wx${toolkit}_VERSION=$version"
10535 fi
a848cd7e
SC
10536 fi
10537 eval "wxUSE_$toolkit=\$${var}"
10538 done
10539 fi
10540
10541 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10542 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10543 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10544
10545 case "${host}" in
10546 *-pc-os2_emx | *-pc-os2-emx )
10547 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10548 esac
10549
10550 case "$NUM_TOOLKITS" in
10551 1)
10552 ;;
10553 0)
10554 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10555echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10556 { (exit 1); exit 1; }; }
10557 ;;
10558 *)
10559 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10560echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10561 { (exit 1); exit 1; }; }
10562 esac
10563
f34ca037
MW
10564 # to be removed when --disable-gtk2 isn't needed
10565 if test "x$wxUSE_GTK2" = "xyes"; then
10566 wxGTK_VERSION=2
10567 elif test "x$wxUSE_GTK2" = "xno"; then
10568 wxGTK_VERSION=1
10569 fi
10570
a848cd7e
SC
10571 for toolkit in `echo $ALL_TOOLKITS`; do
10572 var=wxUSE_$toolkit
10573 eval "value=\$${var}"
10574 if test "x$value" != x; then
10575 cache_var=CACHE_$toolkit
10576 eval "cache=\$${cache_var}"
10577 if test "$cache" = 1; then
10578 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
10579 eval "version=\$wx${toolkit}_VERSION"
10580 if test "x$version" != "x"; then
10581 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
10582 fi
a848cd7e
SC
10583 fi
10584 if test "$value" = 1; then
10585 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10586 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10587echo "${ECHO_T}$toolkit_echo" >&6
10588 fi
10589 fi
10590 done
10591else
10592 if test "x$host_alias" != "x"; then
10593 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10594echo "${ECHO_T}base ($host_alias hosted) only" >&6
10595 else
10596 echo "$as_me:$LINENO: result: base only" >&5
10597echo "${ECHO_T}base only" >&6
10598 fi
10599fi
10600
10601wants_win32=0
10602doesnt_want_win32=0
10603case "${host}" in
10604 *-*-cygwin*)
10605 if test "$wxUSE_MSW" = 1 ; then
10606 wants_win32=1
7275146d 10607 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
10608 else
10609 doesnt_want_win32=1
10610 fi
10611 ;;
10612 *-*-mingw*)
10613 wants_win32=1
10614 ;;
10615esac
10616
10617if test "$wxUSE_WINE" = "yes"; then
10618 wants_win32=1
10619 CC=winegcc
10620 CXX=wineg++
10621 RESCOMP=wrc
10622 LDFLAGS_GUI="-mwindows"
10623fi
10624
10625if test "$wants_win32" = 1 ; then
10626 USE_UNIX=0
10627 USE_WIN32=1
10628 cat >>confdefs.h <<\_ACEOF
10629#define __WIN32__ 1
10630_ACEOF
10631
10632 cat >>confdefs.h <<\_ACEOF
10633#define __WIN95__ 1
10634_ACEOF
10635
10636 cat >>confdefs.h <<\_ACEOF
10637#define __WINDOWS__ 1
10638_ACEOF
10639
10640 cat >>confdefs.h <<\_ACEOF
10641#define __GNUWIN32__ 1
10642_ACEOF
10643
10644 cat >>confdefs.h <<\_ACEOF
10645#define STRICT 1
10646_ACEOF
10647
10648 cat >>confdefs.h <<\_ACEOF
10649#define WINVER 0x0400
10650_ACEOF
10651
10652fi
10653if test "$doesnt_want_win32" = 1 ; then
10654 USE_UNIX=1
10655 USE_WIN32=0
10656fi
10657
10658if test "$USE_UNIX" = 1 ; then
10659 wxUSE_UNIX=yes
10660 cat >>confdefs.h <<\_ACEOF
10661#define __UNIX__ 1
10662_ACEOF
10663
10664fi
10665
10666
10667cat >confcache <<\_ACEOF
10668# This file is a shell script that caches the results of configure
10669# tests run on this system so they can be shared between configure
10670# scripts and configure runs, see configure's option --config-cache.
10671# It is not useful on other systems. If it contains results you don't
10672# want to keep, you may remove or edit it.
10673#
10674# config.status only pays attention to the cache file if you give it
10675# the --recheck option to rerun configure.
10676#
10677# `ac_cv_env_foo' variables (set or unset) will be overridden when
10678# loading this file, other *unset* `ac_cv_foo' will be assigned the
10679# following values.
10680
10681_ACEOF
10682
10683# The following way of writing the cache mishandles newlines in values,
10684# but we know of no workaround that is simple, portable, and efficient.
10685# So, don't put newlines in cache variables' values.
10686# Ultrix sh set writes to stderr and can't be redirected directly,
10687# and sets the high bit in the cache file unless we assign to the vars.
10688{
10689 (set) 2>&1 |
10690 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10691 *ac_space=\ *)
10692 # `set' does not quote correctly, so add quotes (double-quote
10693 # substitution turns \\\\ into \\, and sed turns \\ into \).
10694 sed -n \
ac1cb8d3
VS
10695 "s/'/'\\\\''/g;
10696 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10697 ;;
10698 *)
10699 # `set' quotes correctly as required by POSIX, so do not add quotes.
10700 sed -n \
ac1cb8d3 10701 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10702 ;;
10703 esac;
10704} |
10705 sed '
10706 t clear
10707 : clear
10708 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10709 t end
10710 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10711 : end' >>confcache
10712if diff $cache_file confcache >/dev/null 2>&1; then :; else
10713 if test -w $cache_file; then
10714 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10715 cat confcache >$cache_file
10716 else
10717 echo "not updating unwritable cache $cache_file"
10718 fi
10719fi
10720rm -f confcache
10721
10722if test "$build" != "$host" ; then
1e9e8aba 10723 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10724 CC=$host_alias-gcc
10725 CXX=$host_alias-c++
10726 AR=$host_alias-ar
10727 RANLIB=$host_alias-ranlib
10728 DLLTOOL=$host_alias-dlltool
10729 RESCOMP=$host_alias-windres
a848cd7e 10730 STRIP=$host_alias-strip
1e9e8aba
DE
10731 elif test "x$CC" '!=' "x"; then
10732 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10733 else
10734 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10735echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10736 { (exit 1); exit 1; }; }
10737 fi
10738fi
10739
10740CFLAGS=${CFLAGS:=}
6dcfc289
DE
10741
10742
10743 ac_ext=c
a848cd7e
SC
10744ac_cpp='$CPP $CPPFLAGS'
10745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10747ac_compiler_gnu=$ac_cv_c_compiler_gnu
10748if test -n "$ac_tool_prefix"; then
10749 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10750set dummy ${ac_tool_prefix}gcc; ac_word=$2
10751echo "$as_me:$LINENO: checking for $ac_word" >&5
10752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10753if test "${ac_cv_prog_CC+set}" = set; then
10754 echo $ECHO_N "(cached) $ECHO_C" >&6
10755else
10756 if test -n "$CC"; then
10757 ac_cv_prog_CC="$CC" # Let the user override the test.
10758else
10759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10760for as_dir in $PATH
10761do
10762 IFS=$as_save_IFS
10763 test -z "$as_dir" && as_dir=.
10764 for ac_exec_ext in '' $ac_executable_extensions; do
10765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10766 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10768 break 2
10769 fi
10770done
10771done
10772
10773fi
10774fi
10775CC=$ac_cv_prog_CC
10776if test -n "$CC"; then
10777 echo "$as_me:$LINENO: result: $CC" >&5
10778echo "${ECHO_T}$CC" >&6
10779else
10780 echo "$as_me:$LINENO: result: no" >&5
10781echo "${ECHO_T}no" >&6
10782fi
10783
10784fi
10785if test -z "$ac_cv_prog_CC"; then
10786 ac_ct_CC=$CC
10787 # Extract the first word of "gcc", so it can be a program name with args.
10788set dummy gcc; ac_word=$2
10789echo "$as_me:$LINENO: checking for $ac_word" >&5
10790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10791if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10792 echo $ECHO_N "(cached) $ECHO_C" >&6
10793else
10794 if test -n "$ac_ct_CC"; then
10795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10796else
10797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10798for as_dir in $PATH
10799do
10800 IFS=$as_save_IFS
10801 test -z "$as_dir" && as_dir=.
10802 for ac_exec_ext in '' $ac_executable_extensions; do
10803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10804 ac_cv_prog_ac_ct_CC="gcc"
10805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10806 break 2
10807 fi
10808done
10809done
10810
10811fi
10812fi
10813ac_ct_CC=$ac_cv_prog_ac_ct_CC
10814if test -n "$ac_ct_CC"; then
10815 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10816echo "${ECHO_T}$ac_ct_CC" >&6
10817else
10818 echo "$as_me:$LINENO: result: no" >&5
10819echo "${ECHO_T}no" >&6
10820fi
10821
10822 CC=$ac_ct_CC
10823else
10824 CC="$ac_cv_prog_CC"
10825fi
10826
10827if test -z "$CC"; then
10828 if test -n "$ac_tool_prefix"; then
10829 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10830set dummy ${ac_tool_prefix}cc; ac_word=$2
10831echo "$as_me:$LINENO: checking for $ac_word" >&5
10832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10833if test "${ac_cv_prog_CC+set}" = set; then
10834 echo $ECHO_N "(cached) $ECHO_C" >&6
10835else
10836 if test -n "$CC"; then
10837 ac_cv_prog_CC="$CC" # Let the user override the test.
10838else
10839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10840for as_dir in $PATH
10841do
10842 IFS=$as_save_IFS
10843 test -z "$as_dir" && as_dir=.
10844 for ac_exec_ext in '' $ac_executable_extensions; do
10845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10846 ac_cv_prog_CC="${ac_tool_prefix}cc"
10847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10848 break 2
10849 fi
10850done
10851done
10852
10853fi
10854fi
10855CC=$ac_cv_prog_CC
10856if test -n "$CC"; then
10857 echo "$as_me:$LINENO: result: $CC" >&5
10858echo "${ECHO_T}$CC" >&6
10859else
10860 echo "$as_me:$LINENO: result: no" >&5
10861echo "${ECHO_T}no" >&6
10862fi
10863
10864fi
10865if test -z "$ac_cv_prog_CC"; then
10866 ac_ct_CC=$CC
10867 # Extract the first word of "cc", so it can be a program name with args.
10868set dummy cc; ac_word=$2
10869echo "$as_me:$LINENO: checking for $ac_word" >&5
10870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10871if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10872 echo $ECHO_N "(cached) $ECHO_C" >&6
10873else
10874 if test -n "$ac_ct_CC"; then
10875 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10876else
10877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10878for as_dir in $PATH
10879do
10880 IFS=$as_save_IFS
10881 test -z "$as_dir" && as_dir=.
10882 for ac_exec_ext in '' $ac_executable_extensions; do
10883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10884 ac_cv_prog_ac_ct_CC="cc"
10885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10886 break 2
10887 fi
10888done
10889done
10890
10891fi
10892fi
10893ac_ct_CC=$ac_cv_prog_ac_ct_CC
10894if test -n "$ac_ct_CC"; then
10895 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10896echo "${ECHO_T}$ac_ct_CC" >&6
10897else
10898 echo "$as_me:$LINENO: result: no" >&5
10899echo "${ECHO_T}no" >&6
10900fi
10901
10902 CC=$ac_ct_CC
10903else
10904 CC="$ac_cv_prog_CC"
10905fi
10906
10907fi
10908if test -z "$CC"; then
10909 # Extract the first word of "cc", so it can be a program name with args.
10910set dummy cc; ac_word=$2
10911echo "$as_me:$LINENO: checking for $ac_word" >&5
10912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10913if test "${ac_cv_prog_CC+set}" = set; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
10915else
10916 if test -n "$CC"; then
10917 ac_cv_prog_CC="$CC" # Let the user override the test.
10918else
10919 ac_prog_rejected=no
10920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10921for as_dir in $PATH
10922do
10923 IFS=$as_save_IFS
10924 test -z "$as_dir" && as_dir=.
10925 for ac_exec_ext in '' $ac_executable_extensions; do
10926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10927 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10928 ac_prog_rejected=yes
10929 continue
10930 fi
10931 ac_cv_prog_CC="cc"
10932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10933 break 2
10934 fi
10935done
10936done
10937
10938if test $ac_prog_rejected = yes; then
10939 # We found a bogon in the path, so make sure we never use it.
10940 set dummy $ac_cv_prog_CC
10941 shift
10942 if test $# != 0; then
10943 # We chose a different compiler from the bogus one.
10944 # However, it has the same basename, so the bogon will be chosen
10945 # first if we set CC to just the basename; use the full file name.
10946 shift
10947 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10948 fi
10949fi
10950fi
10951fi
10952CC=$ac_cv_prog_CC
10953if test -n "$CC"; then
10954 echo "$as_me:$LINENO: result: $CC" >&5
10955echo "${ECHO_T}$CC" >&6
10956else
10957 echo "$as_me:$LINENO: result: no" >&5
10958echo "${ECHO_T}no" >&6
10959fi
10960
10961fi
10962if test -z "$CC"; then
10963 if test -n "$ac_tool_prefix"; then
10964 for ac_prog in cl
10965 do
10966 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10967set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10968echo "$as_me:$LINENO: checking for $ac_word" >&5
10969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10970if test "${ac_cv_prog_CC+set}" = set; then
10971 echo $ECHO_N "(cached) $ECHO_C" >&6
10972else
10973 if test -n "$CC"; then
10974 ac_cv_prog_CC="$CC" # Let the user override the test.
10975else
10976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10977for as_dir in $PATH
10978do
10979 IFS=$as_save_IFS
10980 test -z "$as_dir" && as_dir=.
10981 for ac_exec_ext in '' $ac_executable_extensions; do
10982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10983 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10985 break 2
10986 fi
10987done
10988done
10989
10990fi
10991fi
10992CC=$ac_cv_prog_CC
10993if test -n "$CC"; then
10994 echo "$as_me:$LINENO: result: $CC" >&5
10995echo "${ECHO_T}$CC" >&6
10996else
10997 echo "$as_me:$LINENO: result: no" >&5
10998echo "${ECHO_T}no" >&6
10999fi
11000
11001 test -n "$CC" && break
11002 done
11003fi
11004if test -z "$CC"; then
11005 ac_ct_CC=$CC
11006 for ac_prog in cl
11007do
11008 # Extract the first word of "$ac_prog", so it can be a program name with args.
11009set dummy $ac_prog; ac_word=$2
11010echo "$as_me:$LINENO: checking for $ac_word" >&5
11011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11012if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11013 echo $ECHO_N "(cached) $ECHO_C" >&6
11014else
11015 if test -n "$ac_ct_CC"; then
11016 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11017else
11018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11019for as_dir in $PATH
11020do
11021 IFS=$as_save_IFS
11022 test -z "$as_dir" && as_dir=.
11023 for ac_exec_ext in '' $ac_executable_extensions; do
11024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11025 ac_cv_prog_ac_ct_CC="$ac_prog"
11026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11027 break 2
11028 fi
11029done
11030done
11031
11032fi
11033fi
11034ac_ct_CC=$ac_cv_prog_ac_ct_CC
11035if test -n "$ac_ct_CC"; then
11036 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11037echo "${ECHO_T}$ac_ct_CC" >&6
11038else
11039 echo "$as_me:$LINENO: result: no" >&5
11040echo "${ECHO_T}no" >&6
11041fi
11042
11043 test -n "$ac_ct_CC" && break
11044done
11045
11046 CC=$ac_ct_CC
11047fi
11048
11049fi
11050
11051
11052test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11053See \`config.log' for more details." >&5
11054echo "$as_me: error: no acceptable C compiler found in \$PATH
11055See \`config.log' for more details." >&2;}
11056 { (exit 1); exit 1; }; }
11057
11058# Provide some information about the compiler.
11059echo "$as_me:$LINENO:" \
11060 "checking for C compiler version" >&5
11061ac_compiler=`set X $ac_compile; echo $2`
11062{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11063 (eval $ac_compiler --version </dev/null >&5) 2>&5
11064 ac_status=$?
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); }
11067{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11068 (eval $ac_compiler -v </dev/null >&5) 2>&5
11069 ac_status=$?
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); }
11072{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11073 (eval $ac_compiler -V </dev/null >&5) 2>&5
11074 ac_status=$?
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); }
11077
11078cat >conftest.$ac_ext <<_ACEOF
11079/* confdefs.h. */
11080_ACEOF
11081cat confdefs.h >>conftest.$ac_ext
11082cat >>conftest.$ac_ext <<_ACEOF
11083/* end confdefs.h. */
11084
11085int
11086main ()
11087{
11088
11089 ;
11090 return 0;
11091}
11092_ACEOF
11093ac_clean_files_save=$ac_clean_files
11094ac_clean_files="$ac_clean_files a.out a.exe b.out"
11095# Try to create an executable without -o first, disregard a.out.
11096# It will help us diagnose broken compilers, and finding out an intuition
11097# of exeext.
ac1cb8d3
VS
11098echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11099echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11100ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11101if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11102 (eval $ac_link_default) 2>&5
11103 ac_status=$?
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }; then
11106 # Find the output, starting from the most likely. This scheme is
11107# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11108# resort.
11109
11110# Be careful to initialize this variable, since it used to be cached.
11111# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11112ac_cv_exeext=
11113# b.out is created by i960 compilers.
11114for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11115do
11116 test -f "$ac_file" || continue
11117 case $ac_file in
11118 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11119 ;;
a848cd7e 11120 conftest.$ac_ext )
ac1cb8d3
VS
11121 # This is the source file.
11122 ;;
a848cd7e 11123 [ab].out )
ac1cb8d3
VS
11124 # We found the default executable, but exeext='' is most
11125 # certainly right.
11126 break;;
a848cd7e 11127 *.* )
ac1cb8d3
VS
11128 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11129 # FIXME: I believe we export ac_cv_exeext for Libtool,
11130 # but it would be cool to find out if it's true. Does anybody
11131 # maintain Libtool? --akim.
11132 export ac_cv_exeext
11133 break;;
a848cd7e 11134 * )
ac1cb8d3 11135 break;;
a848cd7e
SC
11136 esac
11137done
11138else
11139 echo "$as_me: failed program was:" >&5
11140sed 's/^/| /' conftest.$ac_ext >&5
11141
11142{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11143See \`config.log' for more details." >&5
11144echo "$as_me: error: C compiler cannot create executables
11145See \`config.log' for more details." >&2;}
11146 { (exit 77); exit 77; }; }
11147fi
11148
11149ac_exeext=$ac_cv_exeext
11150echo "$as_me:$LINENO: result: $ac_file" >&5
11151echo "${ECHO_T}$ac_file" >&6
11152
11153# Check the compiler produces executables we can run. If not, either
11154# the compiler is broken, or we cross compile.
11155echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11156echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11157# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11158# If not cross compiling, check that we can run a simple program.
11159if test "$cross_compiling" != yes; then
11160 if { ac_try='./$ac_file'
11161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11162 (eval $ac_try) 2>&5
11163 ac_status=$?
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); }; }; then
11166 cross_compiling=no
11167 else
11168 if test "$cross_compiling" = maybe; then
11169 cross_compiling=yes
11170 else
11171 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11172If you meant to cross compile, use \`--host'.
11173See \`config.log' for more details." >&5
11174echo "$as_me: error: cannot run C compiled programs.
11175If you meant to cross compile, use \`--host'.
11176See \`config.log' for more details." >&2;}
11177 { (exit 1); exit 1; }; }
11178 fi
11179 fi
11180fi
11181echo "$as_me:$LINENO: result: yes" >&5
11182echo "${ECHO_T}yes" >&6
11183
11184rm -f a.out a.exe conftest$ac_cv_exeext b.out
11185ac_clean_files=$ac_clean_files_save
11186# Check the compiler produces executables we can run. If not, either
11187# the compiler is broken, or we cross compile.
11188echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11189echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11190echo "$as_me:$LINENO: result: $cross_compiling" >&5
11191echo "${ECHO_T}$cross_compiling" >&6
11192
11193echo "$as_me:$LINENO: checking for suffix of executables" >&5
11194echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11196 (eval $ac_link) 2>&5
11197 ac_status=$?
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); }; then
11200 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11201# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11202# work properly (i.e., refer to `conftest.exe'), while it won't with
11203# `rm'.
11204for ac_file in conftest.exe conftest conftest.*; do
11205 test -f "$ac_file" || continue
11206 case $ac_file in
11207 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11208 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11209 export ac_cv_exeext
11210 break;;
a848cd7e
SC
11211 * ) break;;
11212 esac
11213done
11214else
11215 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11216See \`config.log' for more details." >&5
11217echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11218See \`config.log' for more details." >&2;}
11219 { (exit 1); exit 1; }; }
11220fi
11221
11222rm -f conftest$ac_cv_exeext
11223echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11224echo "${ECHO_T}$ac_cv_exeext" >&6
11225
11226rm -f conftest.$ac_ext
11227EXEEXT=$ac_cv_exeext
11228ac_exeext=$EXEEXT
11229echo "$as_me:$LINENO: checking for suffix of object files" >&5
11230echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11231if test "${ac_cv_objext+set}" = set; then
11232 echo $ECHO_N "(cached) $ECHO_C" >&6
11233else
11234 cat >conftest.$ac_ext <<_ACEOF
11235/* confdefs.h. */
11236_ACEOF
11237cat confdefs.h >>conftest.$ac_ext
11238cat >>conftest.$ac_ext <<_ACEOF
11239/* end confdefs.h. */
11240
11241int
11242main ()
11243{
11244
11245 ;
11246 return 0;
11247}
11248_ACEOF
11249rm -f conftest.o conftest.obj
11250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11251 (eval $ac_compile) 2>&5
11252 ac_status=$?
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); }; then
11255 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11256 case $ac_file in
11257 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11258 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11259 break;;
11260 esac
11261done
11262else
11263 echo "$as_me: failed program was:" >&5
11264sed 's/^/| /' conftest.$ac_ext >&5
11265
11266{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11267See \`config.log' for more details." >&5
11268echo "$as_me: error: cannot compute suffix of object files: cannot compile
11269See \`config.log' for more details." >&2;}
11270 { (exit 1); exit 1; }; }
11271fi
11272
11273rm -f conftest.$ac_cv_objext conftest.$ac_ext
11274fi
11275echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11276echo "${ECHO_T}$ac_cv_objext" >&6
11277OBJEXT=$ac_cv_objext
11278ac_objext=$OBJEXT
11279echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11280echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11281if test "${ac_cv_c_compiler_gnu+set}" = set; then
11282 echo $ECHO_N "(cached) $ECHO_C" >&6
11283else
11284 cat >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
11291int
11292main ()
11293{
11294#ifndef __GNUC__
11295 choke me
11296#endif
11297
11298 ;
11299 return 0;
11300}
11301_ACEOF
11302rm -f conftest.$ac_objext
11303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11304 (eval $ac_compile) 2>conftest.er1
a848cd7e 11305 ac_status=$?
ac1cb8d3
VS
11306 grep -v '^ *+' conftest.er1 >conftest.err
11307 rm -f conftest.er1
11308 cat conftest.err >&5
a848cd7e
SC
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); } &&
6ebeb4c7 11311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11313 (eval $ac_try) 2>&5
11314 ac_status=$?
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); }; } &&
11317 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11319 (eval $ac_try) 2>&5
11320 ac_status=$?
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); }; }; then
11323 ac_compiler_gnu=yes
11324else
11325 echo "$as_me: failed program was:" >&5
11326sed 's/^/| /' conftest.$ac_ext >&5
11327
11328ac_compiler_gnu=no
11329fi
ac1cb8d3 11330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11331ac_cv_c_compiler_gnu=$ac_compiler_gnu
11332
11333fi
11334echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11335echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11336GCC=`test $ac_compiler_gnu = yes && echo yes`
11337ac_test_CFLAGS=${CFLAGS+set}
11338ac_save_CFLAGS=$CFLAGS
efdf6afe 11339CFLAGS="-g"
a848cd7e
SC
11340echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11341echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11342if test "${ac_cv_prog_cc_g+set}" = set; then
11343 echo $ECHO_N "(cached) $ECHO_C" >&6
11344else
11345 cat >conftest.$ac_ext <<_ACEOF
11346/* confdefs.h. */
11347_ACEOF
11348cat confdefs.h >>conftest.$ac_ext
11349cat >>conftest.$ac_ext <<_ACEOF
11350/* end confdefs.h. */
11351
11352int
11353main ()
11354{
11355
11356 ;
11357 return 0;
11358}
11359_ACEOF
11360rm -f conftest.$ac_objext
11361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11362 (eval $ac_compile) 2>conftest.er1
a848cd7e 11363 ac_status=$?
ac1cb8d3
VS
11364 grep -v '^ *+' conftest.er1 >conftest.err
11365 rm -f conftest.er1
11366 cat conftest.err >&5
a848cd7e
SC
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); } &&
6ebeb4c7 11369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5
11372 ac_status=$?
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; } &&
11375 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377 (eval $ac_try) 2>&5
11378 ac_status=$?
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; }; then
11381 ac_cv_prog_cc_g=yes
11382else
11383 echo "$as_me: failed program was:" >&5
11384sed 's/^/| /' conftest.$ac_ext >&5
11385
11386ac_cv_prog_cc_g=no
11387fi
ac1cb8d3 11388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11389fi
11390echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11391echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11392if test "$ac_test_CFLAGS" = set; then
11393 CFLAGS=$ac_save_CFLAGS
11394elif test $ac_cv_prog_cc_g = yes; then
11395 if test "$GCC" = yes; then
11396 CFLAGS="-g -O2"
11397 else
11398 CFLAGS="-g"
11399 fi
11400else
11401 if test "$GCC" = yes; then
11402 CFLAGS="-O2"
11403 else
11404 CFLAGS=
11405 fi
11406fi
11407echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11408echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11409if test "${ac_cv_prog_cc_stdc+set}" = set; then
11410 echo $ECHO_N "(cached) $ECHO_C" >&6
11411else
11412 ac_cv_prog_cc_stdc=no
11413ac_save_CC=$CC
11414cat >conftest.$ac_ext <<_ACEOF
11415/* confdefs.h. */
11416_ACEOF
11417cat confdefs.h >>conftest.$ac_ext
11418cat >>conftest.$ac_ext <<_ACEOF
11419/* end confdefs.h. */
11420#include <stdarg.h>
11421#include <stdio.h>
11422#include <sys/types.h>
11423#include <sys/stat.h>
11424/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11425struct buf { int x; };
11426FILE * (*rcsopen) (struct buf *, struct stat *, int);
11427static char *e (p, i)
11428 char **p;
11429 int i;
11430{
11431 return p[i];
11432}
11433static char *f (char * (*g) (char **, int), char **p, ...)
11434{
11435 char *s;
11436 va_list v;
11437 va_start (v,p);
11438 s = g (p, va_arg (v,int));
11439 va_end (v);
11440 return s;
11441}
ac1cb8d3
VS
11442
11443/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11444 function prototypes and stuff, but not '\xHH' hex character constants.
11445 These don't provoke an error unfortunately, instead are silently treated
11446 as 'x'. The following induces an error, until -std1 is added to get
11447 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11448 array size at least. It's necessary to write '\x00'==0 to get something
11449 that's true only with -std1. */
11450int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11451
a848cd7e
SC
11452int test (int i, double x);
11453struct s1 {int (*f) (int a);};
11454struct s2 {int (*f) (double a);};
11455int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11456int argc;
11457char **argv;
11458int
11459main ()
11460{
11461return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11462 ;
11463 return 0;
11464}
11465_ACEOF
11466# Don't try gcc -ansi; that turns off useful extensions and
11467# breaks some systems' header files.
11468# AIX -qlanglvl=ansi
11469# Ultrix and OSF/1 -std1
11470# HP-UX 10.20 and later -Ae
11471# HP-UX older versions -Aa -D_HPUX_SOURCE
11472# SVR4 -Xc -D__EXTENSIONS__
11473for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11474do
11475 CC="$ac_save_CC $ac_arg"
11476 rm -f conftest.$ac_objext
11477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11478 (eval $ac_compile) 2>conftest.er1
a848cd7e 11479 ac_status=$?
ac1cb8d3
VS
11480 grep -v '^ *+' conftest.er1 >conftest.err
11481 rm -f conftest.er1
11482 cat conftest.err >&5
a848cd7e
SC
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); } &&
6ebeb4c7 11485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11487 (eval $ac_try) 2>&5
11488 ac_status=$?
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); }; } &&
11491 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11493 (eval $ac_try) 2>&5
11494 ac_status=$?
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; }; then
11497 ac_cv_prog_cc_stdc=$ac_arg
11498break
11499else
11500 echo "$as_me: failed program was:" >&5
11501sed 's/^/| /' conftest.$ac_ext >&5
11502
11503fi
ac1cb8d3 11504rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11505done
11506rm -f conftest.$ac_ext conftest.$ac_objext
11507CC=$ac_save_CC
11508
11509fi
11510
11511case "x$ac_cv_prog_cc_stdc" in
11512 x|xno)
11513 echo "$as_me:$LINENO: result: none needed" >&5
11514echo "${ECHO_T}none needed" >&6 ;;
11515 *)
11516 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11517echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11518 CC="$CC $ac_cv_prog_cc_stdc" ;;
11519esac
11520
11521# Some people use a C++ compiler to compile C. Since we use `exit',
11522# in C++ we need to declare it. In case someone uses the same compiler
11523# for both compiling C and C++ we need to have the C++ compiler decide
11524# the declaration of exit, since it's the most demanding environment.
11525cat >conftest.$ac_ext <<_ACEOF
11526#ifndef __cplusplus
11527 choke me
11528#endif
11529_ACEOF
11530rm -f conftest.$ac_objext
11531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11532 (eval $ac_compile) 2>conftest.er1
a848cd7e 11533 ac_status=$?
ac1cb8d3
VS
11534 grep -v '^ *+' conftest.er1 >conftest.err
11535 rm -f conftest.er1
11536 cat conftest.err >&5
a848cd7e
SC
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); } &&
6ebeb4c7 11539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11541 (eval $ac_try) 2>&5
11542 ac_status=$?
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); }; } &&
11545 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11547 (eval $ac_try) 2>&5
11548 ac_status=$?
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); }; }; then
11551 for ac_declaration in \
ac1cb8d3 11552 '' \
a848cd7e
SC
11553 'extern "C" void std::exit (int) throw (); using std::exit;' \
11554 'extern "C" void std::exit (int); using std::exit;' \
11555 'extern "C" void exit (int) throw ();' \
11556 'extern "C" void exit (int);' \
11557 'void exit (int);'
11558do
11559 cat >conftest.$ac_ext <<_ACEOF
11560/* confdefs.h. */
11561_ACEOF
11562cat confdefs.h >>conftest.$ac_ext
11563cat >>conftest.$ac_ext <<_ACEOF
11564/* end confdefs.h. */
de59c161 11565$ac_declaration
ac1cb8d3 11566#include <stdlib.h>
a848cd7e
SC
11567int
11568main ()
11569{
11570exit (42);
11571 ;
11572 return 0;
11573}
11574_ACEOF
11575rm -f conftest.$ac_objext
11576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11577 (eval $ac_compile) 2>conftest.er1
a848cd7e 11578 ac_status=$?
ac1cb8d3
VS
11579 grep -v '^ *+' conftest.er1 >conftest.err
11580 rm -f conftest.er1
11581 cat conftest.err >&5
a848cd7e
SC
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); } &&
6ebeb4c7 11584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11586 (eval $ac_try) 2>&5
11587 ac_status=$?
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); }; } &&
11590 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11592 (eval $ac_try) 2>&5
11593 ac_status=$?
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); }; }; then
11596 :
11597else
11598 echo "$as_me: failed program was:" >&5
11599sed 's/^/| /' conftest.$ac_ext >&5
11600
11601continue
11602fi
ac1cb8d3 11603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11604 cat >conftest.$ac_ext <<_ACEOF
11605/* confdefs.h. */
11606_ACEOF
11607cat confdefs.h >>conftest.$ac_ext
11608cat >>conftest.$ac_ext <<_ACEOF
11609/* end confdefs.h. */
11610$ac_declaration
11611int
11612main ()
11613{
11614exit (42);
11615 ;
11616 return 0;
11617}
11618_ACEOF
11619rm -f conftest.$ac_objext
11620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11621 (eval $ac_compile) 2>conftest.er1
a848cd7e 11622 ac_status=$?
ac1cb8d3
VS
11623 grep -v '^ *+' conftest.er1 >conftest.err
11624 rm -f conftest.er1
11625 cat conftest.err >&5
a848cd7e
SC
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); } &&
6ebeb4c7 11628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11630 (eval $ac_try) 2>&5
11631 ac_status=$?
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); }; } &&
11634 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11636 (eval $ac_try) 2>&5
11637 ac_status=$?
11638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); }; }; then
11640 break
11641else
11642 echo "$as_me: failed program was:" >&5
11643sed 's/^/| /' conftest.$ac_ext >&5
11644
11645fi
ac1cb8d3 11646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11647done
11648rm -f conftest*
11649if test -n "$ac_declaration"; then
11650 echo '#ifdef __cplusplus' >>confdefs.h
11651 echo $ac_declaration >>confdefs.h
11652 echo '#endif' >>confdefs.h
11653fi
11654
11655else
11656 echo "$as_me: failed program was:" >&5
11657sed 's/^/| /' conftest.$ac_ext >&5
11658
11659fi
ac1cb8d3 11660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11661ac_ext=c
11662ac_cpp='$CPP $CPPFLAGS'
11663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11665ac_compiler_gnu=$ac_cv_c_compiler_gnu
11666
6dcfc289 11667 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21
DE
11668echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11669if test "${wx_cv_c_exto+set}" = set; then
11670 echo $ECHO_N "(cached) $ECHO_C" >&6
11671else
11672 cat >conftest.$ac_ext <<_ACEOF
11673/* confdefs.h. */
11674_ACEOF
11675cat confdefs.h >>conftest.$ac_ext
11676cat >>conftest.$ac_ext <<_ACEOF
11677/* end confdefs.h. */
11678
11679int
11680main ()
11681{
11682
11683 ;
11684 return 0;
11685}
11686_ACEOF
11687rm -f conftest.$ac_objext conftest.$ac_ext.o
11688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11689 (eval $ac_compile) 2>&5
11690 ac_status=$?
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); }; then
11693 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11694 case $ac_file in
11695 conftest.$ac_ext.o)
11696 wx_cv_c_exto="-ext o"
11697 ;;
11698 *)
11699 ;;
11700 esac
11701done
11702else
11703 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11704See \`config.log' for more details." >&5
11705echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11706See \`config.log' for more details." >&2;}
11707 { (exit 1); exit 1; }; }
11708
11709fi
11710
11711rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11712
11713fi
11714echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
11715echo "${ECHO_T}$wx_cv_c_exto" >&6
11716if test "x$wx_cv_c_exto" '!=' "x"; then
11717 if test "c" = "c"; then
11718 CFLAGS="$wx_cv_c_exto $CFLAGS"
11719 fi
11720 if test "c" = "cxx"; then
11721 CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
11722 fi
11723fi
11724
6dcfc289
DE
11725 if test "x$wx_cv_c_exto" '!=' "x"; then
11726 unset ac_cv_prog_cc_g
11727 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 11728ac_save_CFLAGS=$CFLAGS
efdf6afe 11729CFLAGS="-g"
480ccd21
DE
11730echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11731echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11732if test "${ac_cv_prog_cc_g+set}" = set; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11734else
11735 cat >conftest.$ac_ext <<_ACEOF
11736/* confdefs.h. */
11737_ACEOF
11738cat confdefs.h >>conftest.$ac_ext
11739cat >>conftest.$ac_ext <<_ACEOF
11740/* end confdefs.h. */
11741
11742int
11743main ()
11744{
11745
11746 ;
11747 return 0;
11748}
11749_ACEOF
11750rm -f conftest.$ac_objext
11751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11752 (eval $ac_compile) 2>conftest.er1
11753 ac_status=$?
11754 grep -v '^ *+' conftest.er1 >conftest.err
11755 rm -f conftest.er1
11756 cat conftest.err >&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); } &&
6ebeb4c7 11759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
11760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11761 (eval $ac_try) 2>&5
11762 ac_status=$?
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); }; } &&
11765 { ac_try='test -s conftest.$ac_objext'
11766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11767 (eval $ac_try) 2>&5
11768 ac_status=$?
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; }; then
11771 ac_cv_prog_cc_g=yes
11772else
11773 echo "$as_me: failed program was:" >&5
11774sed 's/^/| /' conftest.$ac_ext >&5
11775
11776ac_cv_prog_cc_g=no
11777fi
11778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11779fi
11780echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11781echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11782if test "$ac_test_CFLAGS" = set; then
11783 CFLAGS=$ac_save_CFLAGS
11784elif test $ac_cv_prog_cc_g = yes; then
11785 if test "$GCC" = yes; then
11786 CFLAGS="-g -O2"
11787 else
11788 CFLAGS="-g"
11789 fi
11790else
11791 if test "$GCC" = yes; then
11792 CFLAGS="-O2"
11793 else
11794 CFLAGS=
11795 fi
11796fi
6dcfc289
DE
11797 fi
11798 ac_ext=c
95986553
DE
11799ac_cpp='$CPP $CPPFLAGS'
11800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11802ac_compiler_gnu=$ac_cv_c_compiler_gnu
11803
11804echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11805echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11806if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11807 echo $ECHO_N "(cached) $ECHO_C" >&6
11808else
11809 cat >conftest.$ac_ext <<_ACEOF
11810/* confdefs.h. */
11811_ACEOF
11812cat confdefs.h >>conftest.$ac_ext
11813cat >>conftest.$ac_ext <<_ACEOF
11814/* end confdefs.h. */
11815
11816int
11817main ()
11818{
11819#ifndef __MWERKS__
11820 choke me
11821#endif
11822
11823 ;
11824 return 0;
11825}
11826_ACEOF
11827rm -f conftest.$ac_objext
11828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11829 (eval $ac_compile) 2>conftest.er1
11830 ac_status=$?
11831 grep -v '^ *+' conftest.er1 >conftest.err
11832 rm -f conftest.er1
11833 cat conftest.err >&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); } &&
6ebeb4c7 11836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
11837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838 (eval $ac_try) 2>&5
11839 ac_status=$?
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); }; } &&
11842 { ac_try='test -s conftest.$ac_objext'
11843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11844 (eval $ac_try) 2>&5
11845 ac_status=$?
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; }; then
11848 bakefile_compiler_mwerks=yes
11849else
11850 echo "$as_me: failed program was:" >&5
11851sed 's/^/| /' conftest.$ac_ext >&5
11852
11853bakefile_compiler_mwerks=no
11854fi
11855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11856 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11857
11858fi
11859echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11860echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11861
0e6fa1d9 11862MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
11863ac_ext=c
11864ac_cpp='$CPP $CPPFLAGS'
11865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11867ac_compiler_gnu=$ac_cv_c_compiler_gnu
11868
11869
6dcfc289 11870 ac_ext=c
9273ffba
DE
11871ac_cpp='$CPP $CPPFLAGS'
11872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11874ac_compiler_gnu=$ac_cv_c_compiler_gnu
11875
11876echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11877echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
11878if test "${wx_cv_c_compiler_xlc+set}" = set; then
11879 echo $ECHO_N "(cached) $ECHO_C" >&6
11880else
11881 cat >conftest.$ac_ext <<_ACEOF
11882/* confdefs.h. */
11883_ACEOF
11884cat confdefs.h >>conftest.$ac_ext
11885cat >>conftest.$ac_ext <<_ACEOF
11886/* end confdefs.h. */
11887
11888int
11889main ()
11890{
11891#ifndef __xlC__
11892 choke me
11893#endif
11894
11895 ;
11896 return 0;
11897}
11898_ACEOF
11899rm -f conftest.$ac_objext
11900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11901 (eval $ac_compile) 2>conftest.er1
11902 ac_status=$?
11903 grep -v '^ *+' conftest.er1 >conftest.err
11904 rm -f conftest.er1
11905 cat conftest.err >&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); } &&
6ebeb4c7 11908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
11909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910 (eval $ac_try) 2>&5
11911 ac_status=$?
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; } &&
11914 { ac_try='test -s conftest.$ac_objext'
11915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11916 (eval $ac_try) 2>&5
11917 ac_status=$?
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); }; }; then
11920 wx_compiler_xlc=yes
11921else
11922 echo "$as_me: failed program was:" >&5
11923sed 's/^/| /' conftest.$ac_ext >&5
11924
11925wx_compiler_xlc=no
11926fi
11927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11928 wx_cv_c_compiler_xlc=$wx_compiler_xlc
11929
11930fi
11931echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
11932echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
11933
0e6fa1d9 11934XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
11935ac_ext=c
11936ac_cpp='$CPP $CPPFLAGS'
11937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11939ac_compiler_gnu=$ac_cv_c_compiler_gnu
11940
11941
a848cd7e 11942
6dcfc289 11943
a9e5b1f0
MW
11944 ac_ext=c
11945ac_cpp='$CPP $CPPFLAGS'
11946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11948ac_compiler_gnu=$ac_cv_c_compiler_gnu
11949
11950 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
11951echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
11952if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
11953 echo $ECHO_N "(cached) $ECHO_C" >&6
11954else
11955 cat >conftest.$ac_ext <<_ACEOF
11956/* confdefs.h. */
11957_ACEOF
11958cat confdefs.h >>conftest.$ac_ext
11959cat >>conftest.$ac_ext <<_ACEOF
11960/* end confdefs.h. */
11961
11962int
11963main ()
11964{
11965
11966 #ifndef __SUNPRO_C
11967 choke me
11968 #endif
11969
11970 ;
11971 return 0;
11972}
11973_ACEOF
11974rm -f conftest.$ac_objext
11975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11976 (eval $ac_compile) 2>conftest.er1
11977 ac_status=$?
11978 grep -v '^ *+' conftest.er1 >conftest.err
11979 rm -f conftest.er1
11980 cat conftest.err >&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); } &&
6ebeb4c7 11983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a9e5b1f0
MW
11984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985 (eval $ac_try) 2>&5
11986 ac_status=$?
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; } &&
11989 { ac_try='test -s conftest.$ac_objext'
11990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11991 (eval $ac_try) 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; }; then
11995 bakefile_cv_c_compiler___SUNPRO_C=yes
11996else
11997 echo "$as_me: failed program was:" >&5
11998sed 's/^/| /' conftest.$ac_ext >&5
11999
12000bakefile_cv_c_compiler___SUNPRO_C=no
12001
12002fi
12003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12004
12005
12006fi
12007echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
12008echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
12009 ac_ext=c
12010ac_cpp='$CPP $CPPFLAGS'
12011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12013ac_compiler_gnu=$ac_cv_c_compiler_gnu
12014
12015 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
12016 :; SUNCC=yes
12017 else
12018 :;
12019 fi
12020
12021
12022
12023
a848cd7e
SC
12024ac_ext=c
12025ac_cpp='$CPP $CPPFLAGS'
12026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12028ac_compiler_gnu=$ac_cv_c_compiler_gnu
12029echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12030echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
12031# On Suns, sometimes $CPP names a directory.
12032if test -n "$CPP" && test -d "$CPP"; then
12033 CPP=
12034fi
12035if test -z "$CPP"; then
12036 if test "${ac_cv_prog_CPP+set}" = set; then
12037 echo $ECHO_N "(cached) $ECHO_C" >&6
12038else
12039 # Double quotes because CPP needs to be expanded
12040 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12041 do
12042 ac_preproc_ok=false
12043for ac_c_preproc_warn_flag in '' yes
12044do
12045 # Use a header file that comes with gcc, so configuring glibc
12046 # with a fresh cross-compiler works.
12047 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12048 # <limits.h> exists even on freestanding compilers.
12049 # On the NeXT, cc -E runs the code through the compiler's parser,
12050 # not just through cpp. "Syntax error" is here to catch this case.
12051 cat >conftest.$ac_ext <<_ACEOF
12052/* confdefs.h. */
12053_ACEOF
12054cat confdefs.h >>conftest.$ac_ext
12055cat >>conftest.$ac_ext <<_ACEOF
12056/* end confdefs.h. */
12057#ifdef __STDC__
12058# include <limits.h>
12059#else
12060# include <assert.h>
12061#endif
ac1cb8d3 12062 Syntax error
a848cd7e
SC
12063_ACEOF
12064if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12066 ac_status=$?
12067 grep -v '^ *+' conftest.er1 >conftest.err
12068 rm -f conftest.er1
12069 cat conftest.err >&5
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); } >/dev/null; then
12072 if test -s conftest.err; then
12073 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12075 else
12076 ac_cpp_err=
12077 fi
12078else
12079 ac_cpp_err=yes
12080fi
12081if test -z "$ac_cpp_err"; then
12082 :
12083else
12084 echo "$as_me: failed program was:" >&5
12085sed 's/^/| /' conftest.$ac_ext >&5
12086
12087 # Broken: fails on valid input.
12088continue
12089fi
12090rm -f conftest.err conftest.$ac_ext
12091
12092 # OK, works on sane cases. Now check whether non-existent headers
12093 # can be detected and how.
12094 cat >conftest.$ac_ext <<_ACEOF
12095/* confdefs.h. */
12096_ACEOF
12097cat confdefs.h >>conftest.$ac_ext
12098cat >>conftest.$ac_ext <<_ACEOF
12099/* end confdefs.h. */
12100#include <ac_nonexistent.h>
12101_ACEOF
12102if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12103 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12104 ac_status=$?
12105 grep -v '^ *+' conftest.er1 >conftest.err
12106 rm -f conftest.er1
12107 cat conftest.err >&5
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); } >/dev/null; then
12110 if test -s conftest.err; then
12111 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12112 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12113 else
12114 ac_cpp_err=
12115 fi
12116else
12117 ac_cpp_err=yes
12118fi
12119if test -z "$ac_cpp_err"; then
12120 # Broken: success on invalid input.
12121continue
12122else
12123 echo "$as_me: failed program was:" >&5
12124sed 's/^/| /' conftest.$ac_ext >&5
12125
12126 # Passes both tests.
12127ac_preproc_ok=:
12128break
12129fi
12130rm -f conftest.err conftest.$ac_ext
12131
12132done
12133# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12134rm -f conftest.err conftest.$ac_ext
12135if $ac_preproc_ok; then
12136 break
12137fi
12138
12139 done
12140 ac_cv_prog_CPP=$CPP
12141
12142fi
12143 CPP=$ac_cv_prog_CPP
12144else
12145 ac_cv_prog_CPP=$CPP
12146fi
12147echo "$as_me:$LINENO: result: $CPP" >&5
12148echo "${ECHO_T}$CPP" >&6
12149ac_preproc_ok=false
12150for ac_c_preproc_warn_flag in '' yes
12151do
12152 # Use a header file that comes with gcc, so configuring glibc
12153 # with a fresh cross-compiler works.
12154 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12155 # <limits.h> exists even on freestanding compilers.
12156 # On the NeXT, cc -E runs the code through the compiler's parser,
12157 # not just through cpp. "Syntax error" is here to catch this case.
12158 cat >conftest.$ac_ext <<_ACEOF
12159/* confdefs.h. */
12160_ACEOF
12161cat confdefs.h >>conftest.$ac_ext
12162cat >>conftest.$ac_ext <<_ACEOF
12163/* end confdefs.h. */
12164#ifdef __STDC__
12165# include <limits.h>
12166#else
12167# include <assert.h>
12168#endif
ac1cb8d3 12169 Syntax error
a848cd7e
SC
12170_ACEOF
12171if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12173 ac_status=$?
12174 grep -v '^ *+' conftest.er1 >conftest.err
12175 rm -f conftest.er1
12176 cat conftest.err >&5
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); } >/dev/null; then
12179 if test -s conftest.err; then
12180 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12181 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12182 else
12183 ac_cpp_err=
12184 fi
12185else
12186 ac_cpp_err=yes
12187fi
12188if test -z "$ac_cpp_err"; then
12189 :
12190else
12191 echo "$as_me: failed program was:" >&5
12192sed 's/^/| /' conftest.$ac_ext >&5
12193
12194 # Broken: fails on valid input.
12195continue
12196fi
12197rm -f conftest.err conftest.$ac_ext
12198
12199 # OK, works on sane cases. Now check whether non-existent headers
12200 # can be detected and how.
12201 cat >conftest.$ac_ext <<_ACEOF
12202/* confdefs.h. */
12203_ACEOF
12204cat confdefs.h >>conftest.$ac_ext
12205cat >>conftest.$ac_ext <<_ACEOF
12206/* end confdefs.h. */
12207#include <ac_nonexistent.h>
12208_ACEOF
12209if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12210 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12211 ac_status=$?
12212 grep -v '^ *+' conftest.er1 >conftest.err
12213 rm -f conftest.er1
12214 cat conftest.err >&5
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); } >/dev/null; then
12217 if test -s conftest.err; then
12218 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12219 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12220 else
12221 ac_cpp_err=
12222 fi
12223else
12224 ac_cpp_err=yes
12225fi
12226if test -z "$ac_cpp_err"; then
12227 # Broken: success on invalid input.
12228continue
12229else
12230 echo "$as_me: failed program was:" >&5
12231sed 's/^/| /' conftest.$ac_ext >&5
12232
12233 # Passes both tests.
12234ac_preproc_ok=:
12235break
12236fi
12237rm -f conftest.err conftest.$ac_ext
12238
12239done
12240# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12241rm -f conftest.err conftest.$ac_ext
12242if $ac_preproc_ok; then
12243 :
12244else
12245 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12246See \`config.log' for more details." >&5
12247echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12248See \`config.log' for more details." >&2;}
12249 { (exit 1); exit 1; }; }
12250fi
12251
12252ac_ext=c
12253ac_cpp='$CPP $CPPFLAGS'
12254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12256ac_compiler_gnu=$ac_cv_c_compiler_gnu
12257
12258
12259echo "$as_me:$LINENO: checking for egrep" >&5
12260echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12261if test "${ac_cv_prog_egrep+set}" = set; then
12262 echo $ECHO_N "(cached) $ECHO_C" >&6
12263else
12264 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12265 then ac_cv_prog_egrep='grep -E'
12266 else ac_cv_prog_egrep='egrep'
12267 fi
12268fi
12269echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12270echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12271 EGREP=$ac_cv_prog_egrep
12272
12273
12274if test $ac_cv_c_compiler_gnu = yes; then
12275 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12276echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12277if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12278 echo $ECHO_N "(cached) $ECHO_C" >&6
12279else
12280 ac_pattern="Autoconf.*'x'"
12281 cat >conftest.$ac_ext <<_ACEOF
12282/* confdefs.h. */
12283_ACEOF
12284cat confdefs.h >>conftest.$ac_ext
12285cat >>conftest.$ac_ext <<_ACEOF
12286/* end confdefs.h. */
12287#include <sgtty.h>
12288Autoconf TIOCGETP
12289_ACEOF
12290if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12291 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12292 ac_cv_prog_gcc_traditional=yes
12293else
12294 ac_cv_prog_gcc_traditional=no
12295fi
12296rm -f conftest*
12297
12298
12299 if test $ac_cv_prog_gcc_traditional = no; then
12300 cat >conftest.$ac_ext <<_ACEOF
12301/* confdefs.h. */
12302_ACEOF
12303cat confdefs.h >>conftest.$ac_ext
12304cat >>conftest.$ac_ext <<_ACEOF
12305/* end confdefs.h. */
12306#include <termio.h>
12307Autoconf TCGETA
12308_ACEOF
12309if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12310 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12311 ac_cv_prog_gcc_traditional=yes
12312fi
12313rm -f conftest*
12314
12315 fi
12316fi
12317echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12318echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12319 if test $ac_cv_prog_gcc_traditional = yes; then
12320 CC="$CC -traditional"
12321 fi
12322fi
12323
12324
12325
12326
12327ac_ext=cc
12328ac_cpp='$CXXCPP $CPPFLAGS'
12329ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12330ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12331ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12332
12333
12334CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
12335
12336
12337 ac_ext=cc
a848cd7e
SC
12338ac_cpp='$CXXCPP $CPPFLAGS'
12339ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12340ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12341ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12342if test -n "$ac_tool_prefix"; then
12343 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12344 do
12345 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12346set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12347echo "$as_me:$LINENO: checking for $ac_word" >&5
12348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12349if test "${ac_cv_prog_CXX+set}" = set; then
12350 echo $ECHO_N "(cached) $ECHO_C" >&6
12351else
12352 if test -n "$CXX"; then
12353 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12354else
12355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12356for as_dir in $PATH
12357do
12358 IFS=$as_save_IFS
12359 test -z "$as_dir" && as_dir=.
12360 for ac_exec_ext in '' $ac_executable_extensions; do
12361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12362 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12364 break 2
12365 fi
12366done
12367done
12368
12369fi
12370fi
12371CXX=$ac_cv_prog_CXX
12372if test -n "$CXX"; then
12373 echo "$as_me:$LINENO: result: $CXX" >&5
12374echo "${ECHO_T}$CXX" >&6
12375else
12376 echo "$as_me:$LINENO: result: no" >&5
12377echo "${ECHO_T}no" >&6
12378fi
12379
12380 test -n "$CXX" && break
12381 done
12382fi
12383if test -z "$CXX"; then
12384 ac_ct_CXX=$CXX
12385 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12386do
12387 # Extract the first word of "$ac_prog", so it can be a program name with args.
12388set dummy $ac_prog; ac_word=$2
12389echo "$as_me:$LINENO: checking for $ac_word" >&5
12390echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12391if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12392 echo $ECHO_N "(cached) $ECHO_C" >&6
12393else
12394 if test -n "$ac_ct_CXX"; then
12395 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12396else
12397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12398for as_dir in $PATH
12399do
12400 IFS=$as_save_IFS
12401 test -z "$as_dir" && as_dir=.
12402 for ac_exec_ext in '' $ac_executable_extensions; do
12403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12404 ac_cv_prog_ac_ct_CXX="$ac_prog"
12405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12406 break 2
12407 fi
12408done
12409done
12410
12411fi
12412fi
12413ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12414if test -n "$ac_ct_CXX"; then
12415 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12416echo "${ECHO_T}$ac_ct_CXX" >&6
12417else
12418 echo "$as_me:$LINENO: result: no" >&5
12419echo "${ECHO_T}no" >&6
12420fi
12421
12422 test -n "$ac_ct_CXX" && break
12423done
12424test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12425
12426 CXX=$ac_ct_CXX
12427fi
12428
12429
12430# Provide some information about the compiler.
12431echo "$as_me:$LINENO:" \
12432 "checking for C++ compiler version" >&5
12433ac_compiler=`set X $ac_compile; echo $2`
12434{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12435 (eval $ac_compiler --version </dev/null >&5) 2>&5
12436 ac_status=$?
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); }
12439{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12440 (eval $ac_compiler -v </dev/null >&5) 2>&5
12441 ac_status=$?
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); }
12444{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12445 (eval $ac_compiler -V </dev/null >&5) 2>&5
12446 ac_status=$?
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); }
12449
12450echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12451echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12452if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12453 echo $ECHO_N "(cached) $ECHO_C" >&6
12454else
12455 cat >conftest.$ac_ext <<_ACEOF
12456/* confdefs.h. */
12457_ACEOF
12458cat confdefs.h >>conftest.$ac_ext
12459cat >>conftest.$ac_ext <<_ACEOF
12460/* end confdefs.h. */
12461
12462int
12463main ()
12464{
12465#ifndef __GNUC__
12466 choke me
12467#endif
12468
12469 ;
12470 return 0;
12471}
12472_ACEOF
12473rm -f conftest.$ac_objext
12474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12475 (eval $ac_compile) 2>conftest.er1
a848cd7e 12476 ac_status=$?
ac1cb8d3
VS
12477 grep -v '^ *+' conftest.er1 >conftest.err
12478 rm -f conftest.er1
12479 cat conftest.err >&5
a848cd7e
SC
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); } &&
6ebeb4c7 12482 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484 (eval $ac_try) 2>&5
12485 ac_status=$?
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; } &&
12488 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490 (eval $ac_try) 2>&5
12491 ac_status=$?
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); }; }; then
12494 ac_compiler_gnu=yes
12495else
12496 echo "$as_me: failed program was:" >&5
12497sed 's/^/| /' conftest.$ac_ext >&5
12498
12499ac_compiler_gnu=no
12500fi
ac1cb8d3 12501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12502ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12503
12504fi
12505echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12506echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12507GXX=`test $ac_compiler_gnu = yes && echo yes`
12508ac_test_CXXFLAGS=${CXXFLAGS+set}
12509ac_save_CXXFLAGS=$CXXFLAGS
12510CXXFLAGS="-g"
12511echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12512echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12513if test "${ac_cv_prog_cxx_g+set}" = set; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12515else
12516 cat >conftest.$ac_ext <<_ACEOF
12517/* confdefs.h. */
12518_ACEOF
12519cat confdefs.h >>conftest.$ac_ext
12520cat >>conftest.$ac_ext <<_ACEOF
12521/* end confdefs.h. */
12522
12523int
12524main ()
12525{
12526
12527 ;
12528 return 0;
12529}
12530_ACEOF
12531rm -f conftest.$ac_objext
12532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12533 (eval $ac_compile) 2>conftest.er1
a848cd7e 12534 ac_status=$?
ac1cb8d3
VS
12535 grep -v '^ *+' conftest.er1 >conftest.err
12536 rm -f conftest.er1
12537 cat conftest.err >&5
a848cd7e
SC
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); } &&
6ebeb4c7 12540 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542 (eval $ac_try) 2>&5
12543 ac_status=$?
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; } &&
12546 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548 (eval $ac_try) 2>&5
12549 ac_status=$?
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; }; then
12552 ac_cv_prog_cxx_g=yes
12553else
12554 echo "$as_me: failed program was:" >&5
12555sed 's/^/| /' conftest.$ac_ext >&5
12556
12557ac_cv_prog_cxx_g=no
12558fi
ac1cb8d3 12559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12560fi
12561echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12562echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12563if test "$ac_test_CXXFLAGS" = set; then
12564 CXXFLAGS=$ac_save_CXXFLAGS
12565elif test $ac_cv_prog_cxx_g = yes; then
12566 if test "$GXX" = yes; then
efdf6afe 12567 CXXFLAGS="-g -O2"
a848cd7e 12568 else
efdf6afe 12569 CXXFLAGS="-g"
a848cd7e
SC
12570 fi
12571else
12572 if test "$GXX" = yes; then
12573 CXXFLAGS="-O2"
12574 else
12575 CXXFLAGS=
12576 fi
12577fi
12578for ac_declaration in \
ac1cb8d3 12579 '' \
a848cd7e
SC
12580 'extern "C" void std::exit (int) throw (); using std::exit;' \
12581 'extern "C" void std::exit (int); using std::exit;' \
12582 'extern "C" void exit (int) throw ();' \
12583 'extern "C" void exit (int);' \
12584 'void exit (int);'
12585do
12586 cat >conftest.$ac_ext <<_ACEOF
12587/* confdefs.h. */
12588_ACEOF
12589cat confdefs.h >>conftest.$ac_ext
12590cat >>conftest.$ac_ext <<_ACEOF
12591/* end confdefs.h. */
de59c161 12592$ac_declaration
ac1cb8d3 12593#include <stdlib.h>
a848cd7e
SC
12594int
12595main ()
12596{
12597exit (42);
12598 ;
12599 return 0;
12600}
12601_ACEOF
12602rm -f conftest.$ac_objext
12603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12604 (eval $ac_compile) 2>conftest.er1
a848cd7e 12605 ac_status=$?
ac1cb8d3
VS
12606 grep -v '^ *+' conftest.er1 >conftest.err
12607 rm -f conftest.er1
12608 cat conftest.err >&5
a848cd7e
SC
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); } &&
6ebeb4c7 12611 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12613 (eval $ac_try) 2>&5
12614 ac_status=$?
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; } &&
12617 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12619 (eval $ac_try) 2>&5
12620 ac_status=$?
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; }; then
12623 :
12624else
12625 echo "$as_me: failed program was:" >&5
12626sed 's/^/| /' conftest.$ac_ext >&5
12627
12628continue
12629fi
ac1cb8d3 12630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12631 cat >conftest.$ac_ext <<_ACEOF
12632/* confdefs.h. */
12633_ACEOF
12634cat confdefs.h >>conftest.$ac_ext
12635cat >>conftest.$ac_ext <<_ACEOF
12636/* end confdefs.h. */
12637$ac_declaration
12638int
12639main ()
12640{
12641exit (42);
12642 ;
12643 return 0;
12644}
12645_ACEOF
12646rm -f conftest.$ac_objext
12647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12648 (eval $ac_compile) 2>conftest.er1
a848cd7e 12649 ac_status=$?
ac1cb8d3
VS
12650 grep -v '^ *+' conftest.er1 >conftest.err
12651 rm -f conftest.er1
12652 cat conftest.err >&5
a848cd7e
SC
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); } &&
6ebeb4c7 12655 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12657 (eval $ac_try) 2>&5
12658 ac_status=$?
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); }; } &&
12661 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663 (eval $ac_try) 2>&5
12664 ac_status=$?
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); }; }; then
12667 break
12668else
12669 echo "$as_me: failed program was:" >&5
12670sed 's/^/| /' conftest.$ac_ext >&5
12671
12672fi
ac1cb8d3 12673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12674done
12675rm -f conftest*
12676if test -n "$ac_declaration"; then
12677 echo '#ifdef __cplusplus' >>confdefs.h
12678 echo $ac_declaration >>confdefs.h
12679 echo '#endif' >>confdefs.h
12680fi
12681
12682ac_ext=cc
12683ac_cpp='$CXXCPP $CPPFLAGS'
12684ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12685ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12686ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12687
6dcfc289 12688 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21
DE
12689echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
12690if test "${wx_cv_cxx_exto+set}" = set; then
12691 echo $ECHO_N "(cached) $ECHO_C" >&6
12692else
12693 cat >conftest.$ac_ext <<_ACEOF
12694/* confdefs.h. */
12695_ACEOF
12696cat confdefs.h >>conftest.$ac_ext
12697cat >>conftest.$ac_ext <<_ACEOF
12698/* end confdefs.h. */
12699
12700int
12701main ()
12702{
12703
12704 ;
12705 return 0;
12706}
12707_ACEOF
12708rm -f conftest.$ac_objext conftest.$ac_ext.o
12709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12710 (eval $ac_compile) 2>&5
12711 ac_status=$?
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; then
12714 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12715 case $ac_file in
12716 conftest.$ac_ext.o)
12717 wx_cv_cxx_exto="-ext o"
12718 ;;
12719 *)
12720 ;;
12721 esac
12722done
12723else
12724 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12725See \`config.log' for more details." >&5
12726echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12727See \`config.log' for more details." >&2;}
12728 { (exit 1); exit 1; }; }
12729
12730fi
12731
12732rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12733
12734fi
12735echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5
12736echo "${ECHO_T}$wx_cv_cxx_exto" >&6
12737if test "x$wx_cv_cxx_exto" '!=' "x"; then
12738 if test "cxx" = "c"; then
12739 CFLAGS="$wx_cv_cxx_exto $CFLAGS"
12740 fi
12741 if test "cxx" = "cxx"; then
12742 CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS"
12743 fi
12744fi
12745
6dcfc289
DE
12746 if test "x$wx_cv_cxx_exto" '!=' "x"; then
12747 unset ac_cv_prog_cxx_g
12748 ac_test_CXXFLAGS=${CXXFLAGS+set}
480ccd21
DE
12749ac_save_CXXFLAGS=$CXXFLAGS
12750CXXFLAGS="-g"
12751echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12752echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12753if test "${ac_cv_prog_cxx_g+set}" = set; then
12754 echo $ECHO_N "(cached) $ECHO_C" >&6
12755else
12756 cat >conftest.$ac_ext <<_ACEOF
12757/* confdefs.h. */
12758_ACEOF
12759cat confdefs.h >>conftest.$ac_ext
12760cat >>conftest.$ac_ext <<_ACEOF
12761/* end confdefs.h. */
12762
12763int
12764main ()
12765{
12766
12767 ;
12768 return 0;
12769}
12770_ACEOF
12771rm -f conftest.$ac_objext
12772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12773 (eval $ac_compile) 2>conftest.er1
12774 ac_status=$?
12775 grep -v '^ *+' conftest.er1 >conftest.err
12776 rm -f conftest.er1
12777 cat conftest.err >&5
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); } &&
6ebeb4c7 12780 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12782 (eval $ac_try) 2>&5
12783 ac_status=$?
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); }; } &&
12786 { ac_try='test -s conftest.$ac_objext'
12787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12788 (eval $ac_try) 2>&5
12789 ac_status=$?
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; }; then
12792 ac_cv_prog_cxx_g=yes
12793else
12794 echo "$as_me: failed program was:" >&5
12795sed 's/^/| /' conftest.$ac_ext >&5
12796
12797ac_cv_prog_cxx_g=no
12798fi
12799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12800fi
12801echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12802echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12803if test "$ac_test_CXXFLAGS" = set; then
12804 CXXFLAGS=$ac_save_CXXFLAGS
12805elif test $ac_cv_prog_cxx_g = yes; then
12806 if test "$GXX" = yes; then
efdf6afe 12807 CXXFLAGS="-g -O2"
480ccd21 12808 else
efdf6afe 12809 CXXFLAGS="-g"
480ccd21
DE
12810 fi
12811else
12812 if test "$GXX" = yes; then
12813 CXXFLAGS="-O2"
12814 else
12815 CXXFLAGS=
12816 fi
12817fi
6dcfc289
DE
12818 fi
12819 ac_ext=cc
95986553
DE
12820ac_cpp='$CXXCPP $CPPFLAGS'
12821ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12822ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12823ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12824
12825echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12826echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12827if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12828 echo $ECHO_N "(cached) $ECHO_C" >&6
12829else
12830 cat >conftest.$ac_ext <<_ACEOF
12831/* confdefs.h. */
12832_ACEOF
12833cat confdefs.h >>conftest.$ac_ext
12834cat >>conftest.$ac_ext <<_ACEOF
12835/* end confdefs.h. */
12836
12837int
12838main ()
12839{
12840#ifndef __MWERKS__
12841 choke me
12842#endif
12843
12844 ;
12845 return 0;
12846}
12847_ACEOF
12848rm -f conftest.$ac_objext
12849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12850 (eval $ac_compile) 2>conftest.er1
12851 ac_status=$?
12852 grep -v '^ *+' conftest.er1 >conftest.err
12853 rm -f conftest.er1
12854 cat conftest.err >&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); } &&
6ebeb4c7 12857 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
12858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12859 (eval $ac_try) 2>&5
12860 ac_status=$?
12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); }; } &&
12863 { ac_try='test -s conftest.$ac_objext'
12864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12865 (eval $ac_try) 2>&5
12866 ac_status=$?
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); }; }; then
12869 bakefile_compiler_mwerks=yes
12870else
12871 echo "$as_me: failed program was:" >&5
12872sed 's/^/| /' conftest.$ac_ext >&5
12873
12874bakefile_compiler_mwerks=no
12875fi
12876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12877 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12878
12879fi
12880echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12881echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12882
0e6fa1d9 12883MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
12884ac_ext=cc
12885ac_cpp='$CXXCPP $CPPFLAGS'
12886ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12887ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12888ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12889
12890
6dcfc289 12891 ac_ext=cc
9273ffba
DE
12892ac_cpp='$CXXCPP $CPPFLAGS'
12893ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12894ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12895ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12896
12897echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
12898echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
12899if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
12900 echo $ECHO_N "(cached) $ECHO_C" >&6
12901else
12902 cat >conftest.$ac_ext <<_ACEOF
12903/* confdefs.h. */
12904_ACEOF
12905cat confdefs.h >>conftest.$ac_ext
12906cat >>conftest.$ac_ext <<_ACEOF
12907/* end confdefs.h. */
12908
12909int
12910main ()
12911{
12912#ifndef __xlC__
12913 choke me
12914#endif
12915
12916 ;
12917 return 0;
12918}
12919_ACEOF
12920rm -f conftest.$ac_objext
12921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12922 (eval $ac_compile) 2>conftest.er1
12923 ac_status=$?
12924 grep -v '^ *+' conftest.er1 >conftest.err
12925 rm -f conftest.er1
12926 cat conftest.err >&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); } &&
6ebeb4c7 12929 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12931 (eval $ac_try) 2>&5
12932 ac_status=$?
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); }; } &&
12935 { ac_try='test -s conftest.$ac_objext'
12936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12937 (eval $ac_try) 2>&5
12938 ac_status=$?
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); }; }; then
12941 wx_compiler_xlc=yes
12942else
12943 echo "$as_me: failed program was:" >&5
12944sed 's/^/| /' conftest.$ac_ext >&5
12945
12946wx_compiler_xlc=no
12947fi
12948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12949 wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
12950
12951fi
12952echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
12953echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
12954
0e6fa1d9 12955XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
12956ac_ext=cc
12957ac_cpp='$CXXCPP $CPPFLAGS'
12958ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12959ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12960ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12961
12962
95986553 12963
6dcfc289 12964
a9e5b1f0
MW
12965 ac_ext=cc
12966ac_cpp='$CXXCPP $CPPFLAGS'
12967ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12968ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12969ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12970
12971 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
12972echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
12973if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
12974 echo $ECHO_N "(cached) $ECHO_C" >&6
12975else
12976 cat >conftest.$ac_ext <<_ACEOF
12977/* confdefs.h. */
12978_ACEOF
12979cat confdefs.h >>conftest.$ac_ext
12980cat >>conftest.$ac_ext <<_ACEOF
12981/* end confdefs.h. */
12982
12983int
12984main ()
12985{
12986
12987 #ifndef __SUNPRO_CC
12988 choke me
12989 #endif
12990
12991 ;
12992 return 0;
12993}
12994_ACEOF
12995rm -f conftest.$ac_objext
12996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12997 (eval $ac_compile) 2>conftest.er1
12998 ac_status=$?
12999 grep -v '^ *+' conftest.er1 >conftest.err
13000 rm -f conftest.er1
13001 cat conftest.err >&5
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); } &&
6ebeb4c7 13004 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a9e5b1f0
MW
13005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13006 (eval $ac_try) 2>&5
13007 ac_status=$?
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); }; } &&
13010 { ac_try='test -s conftest.$ac_objext'
13011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13012 (eval $ac_try) 2>&5
13013 ac_status=$?
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); }; }; then
13016 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
13017else
13018 echo "$as_me: failed program was:" >&5
13019sed 's/^/| /' conftest.$ac_ext >&5
13020
13021bakefile_cv_cxx_compiler___SUNPRO_CC=no
13022
13023fi
13024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13025
13026
13027fi
13028echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
13029echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
13030 ac_ext=cc
13031ac_cpp='$CXXCPP $CPPFLAGS'
13032ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13033ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13034ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13035
13036 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
13037 :; SUNCXX=yes
13038 else
13039 :;
13040 fi
13041
13042
13043
13044
a848cd7e
SC
13045ac_ext=c
13046ac_cpp='$CPP $CPPFLAGS'
13047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13049ac_compiler_gnu=$ac_cv_c_compiler_gnu
13050
13051
a848cd7e
SC
13052if test -n "$ac_tool_prefix"; then
13053 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13054set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13055echo "$as_me:$LINENO: checking for $ac_word" >&5
13056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13057if test "${ac_cv_prog_RANLIB+set}" = set; then
13058 echo $ECHO_N "(cached) $ECHO_C" >&6
13059else
13060 if test -n "$RANLIB"; then
13061 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13062else
13063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13064for as_dir in $PATH
13065do
13066 IFS=$as_save_IFS
13067 test -z "$as_dir" && as_dir=.
13068 for ac_exec_ext in '' $ac_executable_extensions; do
13069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13070 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13072 break 2
13073 fi
13074done
13075done
13076
13077fi
13078fi
13079RANLIB=$ac_cv_prog_RANLIB
13080if test -n "$RANLIB"; then
13081 echo "$as_me:$LINENO: result: $RANLIB" >&5
13082echo "${ECHO_T}$RANLIB" >&6
13083else
13084 echo "$as_me:$LINENO: result: no" >&5
13085echo "${ECHO_T}no" >&6
13086fi
13087
13088fi
13089if test -z "$ac_cv_prog_RANLIB"; then
13090 ac_ct_RANLIB=$RANLIB
13091 # Extract the first word of "ranlib", so it can be a program name with args.
13092set dummy ranlib; ac_word=$2
13093echo "$as_me:$LINENO: checking for $ac_word" >&5
13094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13095if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13096 echo $ECHO_N "(cached) $ECHO_C" >&6
13097else
13098 if test -n "$ac_ct_RANLIB"; then
13099 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13100else
13101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13102for as_dir in $PATH
13103do
13104 IFS=$as_save_IFS
13105 test -z "$as_dir" && as_dir=.
13106 for ac_exec_ext in '' $ac_executable_extensions; do
13107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13108 ac_cv_prog_ac_ct_RANLIB="ranlib"
13109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13110 break 2
13111 fi
13112done
13113done
13114
13115 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
13116fi
13117fi
13118ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13119if test -n "$ac_ct_RANLIB"; then
13120 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13121echo "${ECHO_T}$ac_ct_RANLIB" >&6
13122else
13123 echo "$as_me:$LINENO: result: no" >&5
13124echo "${ECHO_T}no" >&6
13125fi
13126
13127 RANLIB=$ac_ct_RANLIB
13128else
13129 RANLIB="$ac_cv_prog_RANLIB"
13130fi
13131
13132
13133# Extract the first word of "ar", so it can be a program name with args.
13134set dummy ar; ac_word=$2
13135echo "$as_me:$LINENO: checking for $ac_word" >&5
13136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13137if test "${ac_cv_prog_AR+set}" = set; then
13138 echo $ECHO_N "(cached) $ECHO_C" >&6
13139else
13140 if test -n "$AR"; then
13141 ac_cv_prog_AR="$AR" # Let the user override the test.
13142else
13143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13144for as_dir in $PATH
13145do
13146 IFS=$as_save_IFS
13147 test -z "$as_dir" && as_dir=.
13148 for ac_exec_ext in '' $ac_executable_extensions; do
13149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13150 ac_cv_prog_AR="ar"
13151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13152 break 2
13153 fi
13154done
13155done
13156
13157fi
13158fi
13159AR=$ac_cv_prog_AR
13160if test -n "$AR"; then
13161 echo "$as_me:$LINENO: result: $AR" >&5
13162echo "${ECHO_T}$AR" >&6
13163else
13164 echo "$as_me:$LINENO: result: no" >&5
13165echo "${ECHO_T}no" >&6
13166fi
13167
13168if test "x$AR" = "x" ; then
77ffb593
JS
13169 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
13170echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
13171 { (exit 1); exit 1; }; }
13172fi
13173
13174# Find a good install program. We prefer a C program (faster),
13175# so one script is as good as another. But avoid the broken or
13176# incompatible versions:
13177# SysV /etc/install, /usr/sbin/install
13178# SunOS /usr/etc/install
13179# IRIX /sbin/install
13180# AIX /bin/install
13181# AmigaOS /C/install, which installs bootblocks on floppy discs
13182# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13183# AFS /usr/afsws/bin/install, which mishandles nonexistent args
13184# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 13185# OS/2's system install, which has a completely different semantic
a848cd7e
SC
13186# ./install, which can be erroneously created by make from ./install.sh.
13187echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
13188echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
13189if test -z "$INSTALL"; then
13190if test "${ac_cv_path_install+set}" = set; then
13191 echo $ECHO_N "(cached) $ECHO_C" >&6
13192else
13193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13194for as_dir in $PATH
13195do
13196 IFS=$as_save_IFS
13197 test -z "$as_dir" && as_dir=.
13198 # Account for people who put trailing slashes in PATH elements.
13199case $as_dir/ in
13200 ./ | .// | /cC/* | \
13201 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 13202 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
13203 /usr/ucb/* ) ;;
13204 *)
13205 # OSF1 and SCO ODT 3.0 have their own names for install.
13206 # Don't use installbsd from OSF since it installs stuff as root
13207 # by default.
13208 for ac_prog in ginstall scoinst install; do
13209 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
13210 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13211 if test $ac_prog = install &&
13212 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13213 # AIX install. It has an incompatible calling convention.
13214 :
13215 elif test $ac_prog = install &&
13216 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13217 # program-specific install script used by HP pwplus--don't use.
13218 :
13219 else
13220 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13221 break 3
13222 fi
13223 fi
a848cd7e
SC
13224 done
13225 done
13226 ;;
13227esac
13228done
13229
13230
13231fi
13232 if test "${ac_cv_path_install+set}" = set; then
13233 INSTALL=$ac_cv_path_install
13234 else
13235 # As a last resort, use the slow shell script. We don't cache a
13236 # path for INSTALL within a source directory, because that will
13237 # break other packages using the cache if that directory is
13238 # removed, or if the path is relative.
13239 INSTALL=$ac_install_sh
13240 fi
13241fi
13242echo "$as_me:$LINENO: result: $INSTALL" >&5
13243echo "${ECHO_T}$INSTALL" >&6
13244
13245# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13246# It thinks the first close brace ends the variable substitution.
13247test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13248
13249test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13250
13251test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13252
13253
13254case ${INSTALL} in
13255 /* ) # Absolute
13256 ;;
13257 ?:* ) # Drive letter, considered as absolute.
13258 ;;
13259 *)
13260 INSTALL=`pwd`/${INSTALL} ;;
13261esac
13262
a848cd7e
SC
13263
13264case "${host}" in
13265
cfda0ea8 13266 *-*-darwin* )
a848cd7e
SC
13267 INSTALL_PROGRAM="cp -fp"
13268 INSTALL_DATA="cp -fp"
13269 ;;
13270 *)
13271 ;;
13272esac
13273
13274# Extract the first word of "strip", so it can be a program name with args.
13275set dummy strip; ac_word=$2
13276echo "$as_me:$LINENO: checking for $ac_word" >&5
13277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13278if test "${ac_cv_prog_STRIP+set}" = set; then
13279 echo $ECHO_N "(cached) $ECHO_C" >&6
13280else
13281 if test -n "$STRIP"; then
13282 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13283else
13284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13285for as_dir in $PATH
13286do
13287 IFS=$as_save_IFS
13288 test -z "$as_dir" && as_dir=.
13289 for ac_exec_ext in '' $ac_executable_extensions; do
13290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13291 ac_cv_prog_STRIP="strip"
13292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13293 break 2
13294 fi
13295done
13296done
13297
13298 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
13299fi
13300fi
13301STRIP=$ac_cv_prog_STRIP
13302if test -n "$STRIP"; then
13303 echo "$as_me:$LINENO: result: $STRIP" >&5
13304echo "${ECHO_T}$STRIP" >&6
13305else
13306 echo "$as_me:$LINENO: result: no" >&5
13307echo "${ECHO_T}no" >&6
13308fi
13309
13310
13311echo "$as_me:$LINENO: checking if make is GNU make" >&5
13312echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
13313if test "${wx_cv_prog_makeisgnu+set}" = set; then
13314 echo $ECHO_N "(cached) $ECHO_C" >&6
13315else
13316
13317 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
13318 egrep -s GNU > /dev/null); then
13319 wx_cv_prog_makeisgnu="yes"
13320 else
13321 wx_cv_prog_makeisgnu="no"
13322 fi
13323
13324fi
13325echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
13326echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
13327
13328if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
13329 IF_GNU_MAKE=""
13330else
13331 IF_GNU_MAKE="#"
13332fi
13333
13334
13335
13336if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
13337echo "$as_me:$LINENO: checking if make supports VPATH" >&5
13338echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
13339if test "${wx_cv_prog_makevpath+set}" = set; then
13340 echo $ECHO_N "(cached) $ECHO_C" >&6
13341else
13342
13343cat - << EOF > confMake
13344check : file
13345 cp \$? \$@
13346 cp \$? final_file
13347EOF
13348
13349if test ! -d sub ; then
13350 mkdir sub
13351fi
13352echo dummy > sub/file
13353${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
13354RESULT=$?
13355rm -f sub/file check final_file confMake
13356rmdir sub
13357if test "$RESULT" = 0; then
13358 wx_cv_prog_makevpath="yes"
13359else
13360 wx_cv_prog_makevpath="no"
13361fi
13362
13363fi
13364echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
13365echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
13366
13367if test "x$wx_cv_prog_makevpath" != "xyes"; then
13368{ { echo "$as_me:$LINENO: error:
13369You need a make-utility that is able to use the variable
13370VPATH correctly.
13371If your version of make does not support VPATH correctly,
13372please install GNU-make (possibly as gmake), and start
13373configure with the following command:
13374export MAKE=gmake; ./configure for sh-type shells
13375setenv MAKE gmake; ./configure for csh-type shells
13376Also please do remember to use gmake in this case every time
13377you are trying to compile.
13378" >&5
13379echo "$as_me: error:
13380You need a make-utility that is able to use the variable
13381VPATH correctly.
13382If your version of make does not support VPATH correctly,
13383please install GNU-make (possibly as gmake), and start
13384configure with the following command:
13385export MAKE=gmake; ./configure for sh-type shells
13386setenv MAKE gmake; ./configure for csh-type shells
13387Also please do remember to use gmake in this case every time
13388you are trying to compile.
13389" >&2;}
13390 { (exit 1); exit 1; }; }
13391fi fi
13392echo "$as_me:$LINENO: checking whether ln -s works" >&5
13393echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13394LN_S=$as_ln_s
13395if test "$LN_S" = "ln -s"; then
13396 echo "$as_me:$LINENO: result: yes" >&5
13397echo "${ECHO_T}yes" >&6
13398else
13399 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13400echo "${ECHO_T}no, using $LN_S" >&6
13401fi
13402
13403
13404
2113bc77 13405if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
9273ffba
DE
13406 CXXFLAGS="$CXXFLAGS -qunique"
13407fi
13408
13409
4d7ec9f1
DE
13410case "${host}" in
13411 powerpc-*-darwin* )
13412 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
13413echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
13414 cat >conftest.$ac_ext <<_ACEOF
13415/* confdefs.h. */
13416_ACEOF
13417cat confdefs.h >>conftest.$ac_ext
13418cat >>conftest.$ac_ext <<_ACEOF
13419/* end confdefs.h. */
13420
13421int
13422main ()
13423{
13424#ifndef __POWERPC__
13425 choke me for lack of PowerPC
13426#endif
13427
13428 ;
13429 return 0;
13430}
13431_ACEOF
13432rm -f conftest.$ac_objext
13433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13434 (eval $ac_compile) 2>conftest.er1
13435 ac_status=$?
13436 grep -v '^ *+' conftest.er1 >conftest.err
13437 rm -f conftest.er1
13438 cat conftest.err >&5
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); } &&
6ebeb4c7 13441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13443 (eval $ac_try) 2>&5
13444 ac_status=$?
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; } &&
13447 { ac_try='test -s conftest.$ac_objext'
13448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13449 (eval $ac_try) 2>&5
13450 ac_status=$?
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); }; }; then
13453 echo "$as_me:$LINENO: result: yes" >&5
13454echo "${ECHO_T}yes" >&6
13455else
13456 echo "$as_me: failed program was:" >&5
13457sed 's/^/| /' conftest.$ac_ext >&5
13458
13459echo "$as_me:$LINENO: result: no" >&5
13460echo "${ECHO_T}no" >&6
13461 cat >>confdefs.h <<\_ACEOF
13462#define __POWERPC__ 1
13463_ACEOF
13464
13465
13466fi
13467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
13468 ;;
13469esac
13470
13471case "${host}" in
13472 *-*-darwin* )
4d7ec9f1
DE
13473 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
13474echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
13475 cat >conftest.$ac_ext <<_ACEOF
13476/* confdefs.h. */
13477_ACEOF
13478cat confdefs.h >>conftest.$ac_ext
13479cat >>conftest.$ac_ext <<_ACEOF
13480/* end confdefs.h. */
13481#include <CoreFoundation/CFBase.h>
13482
13483int
13484main ()
13485{
13486
13487 ;
13488 return 0;
13489}
13490_ACEOF
13491rm -f conftest.$ac_objext
13492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13493 (eval $ac_compile) 2>conftest.er1
13494 ac_status=$?
13495 grep -v '^ *+' conftest.er1 >conftest.err
13496 rm -f conftest.er1
13497 cat conftest.err >&5
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); } &&
6ebeb4c7 13500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13502 (eval $ac_try) 2>&5
13503 ac_status=$?
13504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13505 (exit $ac_status); }; } &&
13506 { ac_try='test -s conftest.$ac_objext'
13507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13508 (eval $ac_try) 2>&5
13509 ac_status=$?
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); }; }; then
13512 echo "$as_me:$LINENO: result: yes" >&5
13513echo "${ECHO_T}yes" >&6
13514else
13515 echo "$as_me: failed program was:" >&5
13516sed 's/^/| /' conftest.$ac_ext >&5
13517
13518echo "$as_me:$LINENO: result: no" >&5
13519echo "${ECHO_T}no" >&6
13520 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
13521echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
13522 cat >conftest.$ac_ext <<_ACEOF
13523/* confdefs.h. */
13524_ACEOF
13525cat confdefs.h >>conftest.$ac_ext
13526cat >>conftest.$ac_ext <<_ACEOF
13527/* end confdefs.h. */
13528#define __CF_USE_FRAMEWORK_INCLUDES__
13529#include <CoreFoundation/CFBase.h>
13530
13531int
13532main ()
13533{
13534
13535 ;
13536 return 0;
13537}
13538_ACEOF
13539rm -f conftest.$ac_objext
13540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13541 (eval $ac_compile) 2>conftest.er1
13542 ac_status=$?
13543 grep -v '^ *+' conftest.er1 >conftest.err
13544 rm -f conftest.er1
13545 cat conftest.err >&5
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); } &&
6ebeb4c7 13548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
13549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550 (eval $ac_try) 2>&5
13551 ac_status=$?
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; } &&
13554 { ac_try='test -s conftest.$ac_objext'
13555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13556 (eval $ac_try) 2>&5
13557 ac_status=$?
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); }; }; then
13560 echo "$as_me:$LINENO: result: yes" >&5
13561echo "${ECHO_T}yes" >&6
13562 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
13563else
13564 echo "$as_me: failed program was:" >&5
13565sed 's/^/| /' conftest.$ac_ext >&5
13566
13567{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
13568See \`config.log' for more details." >&5
13569echo "$as_me: error: no. CoreFoundation not available.
13570See \`config.log' for more details." >&2;}
13571 { (exit 1); exit 1; }; }
13572
13573fi
13574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13575
13576
13577fi
13578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13579 ;;
13580esac
13581
a848cd7e
SC
13582case "${host}" in
13583 *-pc-os2_emx | *-pc-os2-emx )
13584 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
13585 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
13586echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
13587if test "${ac_cv_lib_cExt_drand48+set}" = set; then
13588 echo $ECHO_N "(cached) $ECHO_C" >&6
13589else
13590 ac_check_lib_save_LIBS=$LIBS
13591LIBS="-lcExt $LIBS"
13592cat >conftest.$ac_ext <<_ACEOF
13593/* confdefs.h. */
13594_ACEOF
13595cat confdefs.h >>conftest.$ac_ext
13596cat >>conftest.$ac_ext <<_ACEOF
13597/* end confdefs.h. */
13598
13599/* Override any gcc2 internal prototype to avoid an error. */
13600#ifdef __cplusplus
13601extern "C"
13602#endif
13603/* We use char because int might match the return type of a gcc2
13604 builtin and then its argument prototype would still apply. */
13605char drand48 ();
13606int
13607main ()
13608{
13609drand48 ();
13610 ;
13611 return 0;
13612}
13613_ACEOF
13614rm -f conftest.$ac_objext conftest$ac_exeext
13615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13616 (eval $ac_link) 2>conftest.er1
a848cd7e 13617 ac_status=$?
ac1cb8d3
VS
13618 grep -v '^ *+' conftest.er1 >conftest.err
13619 rm -f conftest.er1
13620 cat conftest.err >&5
a848cd7e
SC
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); } &&
6ebeb4c7 13623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625 (eval $ac_try) 2>&5
13626 ac_status=$?
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; } &&
13629 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13631 (eval $ac_try) 2>&5
13632 ac_status=$?
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); }; }; then
13635 ac_cv_lib_cExt_drand48=yes
13636else
13637 echo "$as_me: failed program was:" >&5
13638sed 's/^/| /' conftest.$ac_ext >&5
13639
13640ac_cv_lib_cExt_drand48=no
13641fi
ac1cb8d3
VS
13642rm -f conftest.err conftest.$ac_objext \
13643 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13644LIBS=$ac_check_lib_save_LIBS
13645fi
13646echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
13647echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
13648if test $ac_cv_lib_cExt_drand48 = yes; then
13649 LIBS="$LIBS -lcExt"
13650fi
13651
13652 else
13653 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
13654 fi
69120ee4
VZ
13655 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
13656echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
13657if test "${wx_cv_gccversion+set}" = set; then
13658 echo $ECHO_N "(cached) $ECHO_C" >&6
13659else
13660
391a765e
VS
13661 if test "$cross_compiling" = yes; then
13662 wx_cv_gccversion="EMX2"
13663
13664else
13665 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
13666/* confdefs.h. */
13667_ACEOF
13668cat confdefs.h >>conftest.$ac_ext
13669cat >>conftest.$ac_ext <<_ACEOF
13670/* end confdefs.h. */
13671
391a765e 13672 #include <stdio.h>
a848cd7e 13673
391a765e
VS
13674 int main()
13675 {
13676 FILE *f=fopen("conftestval", "w");
13677 if (!f) exit(1);
13678 fprintf(f,
a848cd7e 13679 #if (__GNUC__ < 3)
391a765e
VS
13680 "EMX2"
13681 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
13682 "EMX3"
13683 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
13684 "Innotek5"
13685 #else
13686 "Innotek6"
a848cd7e 13687 #endif
391a765e
VS
13688 );
13689 exit(0);
13690 }
a848cd7e 13691
a848cd7e 13692_ACEOF
391a765e
VS
13693rm -f conftest$ac_exeext
13694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13695 (eval $ac_link) 2>&5
ac1cb8d3
VS
13696 ac_status=$?
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 13698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
13699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700 (eval $ac_try) 2>&5
13701 ac_status=$?
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); }; }; then
391a765e 13704 wx_cv_gccversion=`cat conftestval`
a848cd7e 13705else
391a765e
VS
13706 echo "$as_me: program exited with status $ac_status" >&5
13707echo "$as_me: failed program was:" >&5
a848cd7e
SC
13708sed 's/^/| /' conftest.$ac_ext >&5
13709
391a765e
VS
13710( exit $ac_status )
13711wx_cv_gccversion="EMX2"
a848cd7e 13712fi
391a765e 13713rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 13714fi
a848cd7e
SC
13715
13716fi
13717echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
13718echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 13719 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
13720 LIBS="$LIBS -lstdcpp"
13721 LDFLAGS="$LDFLAGS -Zsysv-signals"
13722 else
391a765e 13723 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 13724 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
13725 LDFLAGS="$LDFLAGS -Zsysv-signals"
13726 else
13727 LIBS="$LIBS -lstdc++"
13728 fi
13729 fi
94acd38e
DE
13730 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
13731 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
13732echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
13733 wxUSE_OMF=yes
2da0c077 13734 enable_omf=yes
a848cd7e
SC
13735 fi
13736 ;;
13737 *)
13738
13739
13740
13741 ac_ext=cc
13742ac_cpp='$CXXCPP $CPPFLAGS'
13743ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13744ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13745ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13746
13747
95986553 13748 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
13749echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
13750if test "${ac_cv_string_strcasecmp+set}" = set; then
13751 echo $ECHO_N "(cached) $ECHO_C" >&6
13752else
13753
13754 cat >conftest.$ac_ext <<_ACEOF
13755/* confdefs.h. */
13756_ACEOF
13757cat confdefs.h >>conftest.$ac_ext
13758cat >>conftest.$ac_ext <<_ACEOF
13759/* end confdefs.h. */
13760
13761 #include <string.h>
13762
13763int
13764main ()
13765{
13766
13767 strcasecmp("foo", "bar");
13768
13769 ;
13770 return 0;
13771}
13772_ACEOF
13773rm -f conftest.$ac_objext conftest$ac_exeext
13774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13775 (eval $ac_link) 2>conftest.er1
a848cd7e 13776 ac_status=$?
ac1cb8d3
VS
13777 grep -v '^ *+' conftest.er1 >conftest.err
13778 rm -f conftest.er1
13779 cat conftest.err >&5
a848cd7e
SC
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); } &&
6ebeb4c7 13782 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13784 (eval $ac_try) 2>&5
13785 ac_status=$?
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); }; } &&
13788 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13790 (eval $ac_try) 2>&5
13791 ac_status=$?
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); }; }; then
13794 ac_cv_string_strcasecmp=yes
13795else
13796 echo "$as_me: failed program was:" >&5
13797sed 's/^/| /' conftest.$ac_ext >&5
13798
13799ac_cv_string_strcasecmp=no
13800
13801fi
ac1cb8d3
VS
13802rm -f conftest.err conftest.$ac_objext \
13803 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13804
13805fi
13806echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
13807echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
13808
13809 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
13810 cat >>confdefs.h <<\_ACEOF
13811#define HAVE_STRCASECMP_IN_STRING_H 1
13812_ACEOF
13813
13814 else
13815 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
13816echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
13817if test "${ac_cv_strings_strcasecmp+set}" = set; then
13818 echo $ECHO_N "(cached) $ECHO_C" >&6
13819else
13820
13821 cat >conftest.$ac_ext <<_ACEOF
13822/* confdefs.h. */
13823_ACEOF
13824cat confdefs.h >>conftest.$ac_ext
13825cat >>conftest.$ac_ext <<_ACEOF
13826/* end confdefs.h. */
13827
13828 #include <strings.h>
13829
13830int
13831main ()
13832{
13833
13834 strcasecmp("foo", "bar");
13835
13836 ;
13837 return 0;
13838}
13839_ACEOF
13840rm -f conftest.$ac_objext conftest$ac_exeext
13841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13842 (eval $ac_link) 2>conftest.er1
a848cd7e 13843 ac_status=$?
ac1cb8d3
VS
13844 grep -v '^ *+' conftest.er1 >conftest.err
13845 rm -f conftest.er1
13846 cat conftest.err >&5
a848cd7e
SC
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); } &&
6ebeb4c7 13849 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13852 ac_status=$?
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; } &&
13855 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13857 (eval $ac_try) 2>&5
13858 ac_status=$?
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; }; then
13861 ac_cv_strings_strcasecmp=yes
13862else
13863 echo "$as_me: failed program was:" >&5
13864sed 's/^/| /' conftest.$ac_ext >&5
13865
13866ac_cv_strings_strcasecmp=no
13867
13868fi
ac1cb8d3
VS
13869rm -f conftest.err conftest.$ac_objext \
13870 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13871
13872fi
13873echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
13874echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
13875
0c3c69fc 13876 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
13877 cat >>confdefs.h <<\_ACEOF
13878#define HAVE_STRCASECMP_IN_STRINGS_H 1
13879_ACEOF
13880
13881 else
13882 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
13883echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
13884 { (exit 1); exit 1; }; }
13885 fi
13886 fi
13887
13888 ac_ext=c
13889ac_cpp='$CPP $CPPFLAGS'
13890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13892ac_compiler_gnu=$ac_cv_c_compiler_gnu
13893
13894 ;;
13895esac
13896
13897
13898echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13899echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13900if test "${ac_cv_header_stdc+set}" = set; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13902else
13903 cat >conftest.$ac_ext <<_ACEOF
13904/* confdefs.h. */
13905_ACEOF
13906cat confdefs.h >>conftest.$ac_ext
13907cat >>conftest.$ac_ext <<_ACEOF
13908/* end confdefs.h. */
13909#include <stdlib.h>
13910#include <stdarg.h>
13911#include <string.h>
13912#include <float.h>
13913
13914int
13915main ()
13916{
13917
13918 ;
13919 return 0;
13920}
13921_ACEOF
13922rm -f conftest.$ac_objext
13923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13924 (eval $ac_compile) 2>conftest.er1
a848cd7e 13925 ac_status=$?
ac1cb8d3
VS
13926 grep -v '^ *+' conftest.er1 >conftest.err
13927 rm -f conftest.er1
13928 cat conftest.err >&5
a848cd7e
SC
13929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930 (exit $ac_status); } &&
6ebeb4c7 13931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13933 (eval $ac_try) 2>&5
13934 ac_status=$?
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); }; } &&
13937 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13939 (eval $ac_try) 2>&5
13940 ac_status=$?
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); }; }; then
13943 ac_cv_header_stdc=yes
13944else
13945 echo "$as_me: failed program was:" >&5
13946sed 's/^/| /' conftest.$ac_ext >&5
13947
13948ac_cv_header_stdc=no
13949fi
ac1cb8d3 13950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13951
13952if test $ac_cv_header_stdc = yes; then
13953 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13954 cat >conftest.$ac_ext <<_ACEOF
13955/* confdefs.h. */
13956_ACEOF
13957cat confdefs.h >>conftest.$ac_ext
13958cat >>conftest.$ac_ext <<_ACEOF
13959/* end confdefs.h. */
13960#include <string.h>
13961
13962_ACEOF
13963if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13964 $EGREP "memchr" >/dev/null 2>&1; then
13965 :
13966else
13967 ac_cv_header_stdc=no
13968fi
13969rm -f conftest*
13970
13971fi
13972
13973if test $ac_cv_header_stdc = yes; then
13974 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13975 cat >conftest.$ac_ext <<_ACEOF
13976/* confdefs.h. */
13977_ACEOF
13978cat confdefs.h >>conftest.$ac_ext
13979cat >>conftest.$ac_ext <<_ACEOF
13980/* end confdefs.h. */
13981#include <stdlib.h>
13982
13983_ACEOF
13984if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13985 $EGREP "free" >/dev/null 2>&1; then
13986 :
13987else
13988 ac_cv_header_stdc=no
13989fi
13990rm -f conftest*
13991
13992fi
13993
13994if test $ac_cv_header_stdc = yes; then
13995 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13996 if test "$cross_compiling" = yes; then
13997 :
13998else
13999 cat >conftest.$ac_ext <<_ACEOF
14000/* confdefs.h. */
14001_ACEOF
14002cat confdefs.h >>conftest.$ac_ext
14003cat >>conftest.$ac_ext <<_ACEOF
14004/* end confdefs.h. */
14005#include <ctype.h>
14006#if ((' ' & 0x0FF) == 0x020)
14007# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14008# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14009#else
14010# define ISLOWER(c) \
ac1cb8d3
VS
14011 (('a' <= (c) && (c) <= 'i') \
14012 || ('j' <= (c) && (c) <= 'r') \
14013 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
14014# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14015#endif
14016
14017#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14018int
14019main ()
14020{
14021 int i;
14022 for (i = 0; i < 256; i++)
14023 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 14024 || toupper (i) != TOUPPER (i))
a848cd7e
SC
14025 exit(2);
14026 exit (0);
14027}
14028_ACEOF
14029rm -f conftest$ac_exeext
14030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14031 (eval $ac_link) 2>&5
14032 ac_status=$?
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14036 (eval $ac_try) 2>&5
14037 ac_status=$?
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); }; }; then
14040 :
14041else
14042 echo "$as_me: program exited with status $ac_status" >&5
14043echo "$as_me: failed program was:" >&5
14044sed 's/^/| /' conftest.$ac_ext >&5
14045
14046( exit $ac_status )
14047ac_cv_header_stdc=no
14048fi
ac1cb8d3 14049rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14050fi
14051fi
14052fi
14053echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14054echo "${ECHO_T}$ac_cv_header_stdc" >&6
14055if test $ac_cv_header_stdc = yes; then
14056
14057cat >>confdefs.h <<\_ACEOF
14058#define STDC_HEADERS 1
14059_ACEOF
14060
14061fi
14062
14063# On IRIX 5.3, sys/types and inttypes.h are conflicting.
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 14074 inttypes.h stdint.h unistd.h
a848cd7e
SC
14075do
14076as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14077echo "$as_me:$LINENO: checking for $ac_header" >&5
14078echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14079if eval "test \"\${$as_ac_Header+set}\" = set"; then
14080 echo $ECHO_N "(cached) $ECHO_C" >&6
14081else
14082 cat >conftest.$ac_ext <<_ACEOF
14083/* confdefs.h. */
14084_ACEOF
14085cat confdefs.h >>conftest.$ac_ext
14086cat >>conftest.$ac_ext <<_ACEOF
14087/* end confdefs.h. */
14088$ac_includes_default
14089
14090#include <$ac_header>
14091_ACEOF
14092rm -f conftest.$ac_objext
14093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14094 (eval $ac_compile) 2>conftest.er1
a848cd7e 14095 ac_status=$?
ac1cb8d3
VS
14096 grep -v '^ *+' conftest.er1 >conftest.err
14097 rm -f conftest.er1
14098 cat conftest.err >&5
a848cd7e
SC
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } &&
6ebeb4c7 14101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14103 (eval $ac_try) 2>&5
14104 ac_status=$?
14105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106 (exit $ac_status); }; } &&
14107 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109 (eval $ac_try) 2>&5
14110 ac_status=$?
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; }; then
14113 eval "$as_ac_Header=yes"
14114else
14115 echo "$as_me: failed program was:" >&5
14116sed 's/^/| /' conftest.$ac_ext >&5
14117
14118eval "$as_ac_Header=no"
14119fi
ac1cb8d3 14120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14121fi
14122echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14123echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14124if test `eval echo '${'$as_ac_Header'}'` = yes; then
14125 cat >>confdefs.h <<_ACEOF
14126#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14127_ACEOF
14128
14129fi
14130
14131done
14132
14133
14134
14135for ac_header in stdlib.h
14136do
14137as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14138if eval "test \"\${$as_ac_Header+set}\" = set"; then
14139 echo "$as_me:$LINENO: checking for $ac_header" >&5
14140echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14141if eval "test \"\${$as_ac_Header+set}\" = set"; then
14142 echo $ECHO_N "(cached) $ECHO_C" >&6
14143fi
14144echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14145echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14146else
14147 # Is the header compilable?
14148echo "$as_me:$LINENO: checking $ac_header usability" >&5
14149echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14150cat >conftest.$ac_ext <<_ACEOF
14151/* confdefs.h. */
14152_ACEOF
14153cat confdefs.h >>conftest.$ac_ext
14154cat >>conftest.$ac_ext <<_ACEOF
14155/* end confdefs.h. */
14156$ac_includes_default
14157#include <$ac_header>
14158_ACEOF
14159rm -f conftest.$ac_objext
14160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14161 (eval $ac_compile) 2>conftest.er1
a848cd7e 14162 ac_status=$?
ac1cb8d3
VS
14163 grep -v '^ *+' conftest.er1 >conftest.err
14164 rm -f conftest.er1
14165 cat conftest.err >&5
a848cd7e
SC
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); } &&
6ebeb4c7 14168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170 (eval $ac_try) 2>&5
14171 ac_status=$?
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); }; } &&
14174 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14176 (eval $ac_try) 2>&5
14177 ac_status=$?
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; }; then
14180 ac_header_compiler=yes
14181else
14182 echo "$as_me: failed program was:" >&5
14183sed 's/^/| /' conftest.$ac_ext >&5
14184
14185ac_header_compiler=no
14186fi
ac1cb8d3 14187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14188echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14189echo "${ECHO_T}$ac_header_compiler" >&6
14190
14191# Is the header present?
14192echo "$as_me:$LINENO: checking $ac_header presence" >&5
14193echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14194cat >conftest.$ac_ext <<_ACEOF
14195/* confdefs.h. */
14196_ACEOF
14197cat confdefs.h >>conftest.$ac_ext
14198cat >>conftest.$ac_ext <<_ACEOF
14199/* end confdefs.h. */
14200#include <$ac_header>
14201_ACEOF
14202if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14203 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14204 ac_status=$?
14205 grep -v '^ *+' conftest.er1 >conftest.err
14206 rm -f conftest.er1
14207 cat conftest.err >&5
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); } >/dev/null; then
14210 if test -s conftest.err; then
14211 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14212 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14213 else
14214 ac_cpp_err=
14215 fi
14216else
14217 ac_cpp_err=yes
14218fi
14219if test -z "$ac_cpp_err"; then
14220 ac_header_preproc=yes
14221else
14222 echo "$as_me: failed program was:" >&5
14223sed 's/^/| /' conftest.$ac_ext >&5
14224
14225 ac_header_preproc=no
14226fi
14227rm -f conftest.err conftest.$ac_ext
14228echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14229echo "${ECHO_T}$ac_header_preproc" >&6
14230
14231# So? What about this header?
ac1cb8d3
VS
14232case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14233 yes:no: )
a848cd7e
SC
14234 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14235echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14237echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14238 ac_header_preproc=yes
a848cd7e 14239 ;;
ac1cb8d3 14240 no:yes:* )
a848cd7e
SC
14241 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14242echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14243 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14244echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14245 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14246echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14247 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14248echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14250echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14251 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14252echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14253 (
14254 cat <<\_ASBOX
ac1cb8d3
VS
14255## ----------------------------------------- ##
14256## Report this to wx-dev@lists.wxwidgets.org ##
14257## ----------------------------------------- ##
a848cd7e
SC
14258_ASBOX
14259 ) |
14260 sed "s/^/$as_me: WARNING: /" >&2
14261 ;;
14262esac
14263echo "$as_me:$LINENO: checking for $ac_header" >&5
14264echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14265if eval "test \"\${$as_ac_Header+set}\" = set"; then
14266 echo $ECHO_N "(cached) $ECHO_C" >&6
14267else
ac1cb8d3 14268 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14269fi
14270echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14271echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14272
14273fi
14274if test `eval echo '${'$as_ac_Header'}'` = yes; then
14275 cat >>confdefs.h <<_ACEOF
14276#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14277_ACEOF
14278
14279fi
14280
14281done
14282
14283
14284for ac_header in malloc.h
14285do
14286as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14287if eval "test \"\${$as_ac_Header+set}\" = set"; then
14288 echo "$as_me:$LINENO: checking for $ac_header" >&5
14289echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14290if eval "test \"\${$as_ac_Header+set}\" = set"; then
14291 echo $ECHO_N "(cached) $ECHO_C" >&6
14292fi
14293echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14294echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14295else
14296 # Is the header compilable?
14297echo "$as_me:$LINENO: checking $ac_header usability" >&5
14298echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14299cat >conftest.$ac_ext <<_ACEOF
14300/* confdefs.h. */
14301_ACEOF
14302cat confdefs.h >>conftest.$ac_ext
14303cat >>conftest.$ac_ext <<_ACEOF
14304/* end confdefs.h. */
14305$ac_includes_default
14306#include <$ac_header>
14307_ACEOF
14308rm -f conftest.$ac_objext
14309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14310 (eval $ac_compile) 2>conftest.er1
a848cd7e 14311 ac_status=$?
ac1cb8d3
VS
14312 grep -v '^ *+' conftest.er1 >conftest.err
14313 rm -f conftest.er1
14314 cat conftest.err >&5
a848cd7e
SC
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); } &&
6ebeb4c7 14317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14319 (eval $ac_try) 2>&5
14320 ac_status=$?
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); }; } &&
14323 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
14329 ac_header_compiler=yes
14330else
14331 echo "$as_me: failed program was:" >&5
14332sed 's/^/| /' conftest.$ac_ext >&5
14333
14334ac_header_compiler=no
14335fi
ac1cb8d3 14336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14337echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14338echo "${ECHO_T}$ac_header_compiler" >&6
14339
14340# Is the header present?
14341echo "$as_me:$LINENO: checking $ac_header presence" >&5
14342echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14343cat >conftest.$ac_ext <<_ACEOF
14344/* confdefs.h. */
14345_ACEOF
14346cat confdefs.h >>conftest.$ac_ext
14347cat >>conftest.$ac_ext <<_ACEOF
14348/* end confdefs.h. */
14349#include <$ac_header>
14350_ACEOF
14351if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14353 ac_status=$?
14354 grep -v '^ *+' conftest.er1 >conftest.err
14355 rm -f conftest.er1
14356 cat conftest.err >&5
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); } >/dev/null; then
14359 if test -s conftest.err; then
14360 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14362 else
14363 ac_cpp_err=
14364 fi
14365else
14366 ac_cpp_err=yes
14367fi
14368if test -z "$ac_cpp_err"; then
14369 ac_header_preproc=yes
14370else
14371 echo "$as_me: failed program was:" >&5
14372sed 's/^/| /' conftest.$ac_ext >&5
14373
14374 ac_header_preproc=no
14375fi
14376rm -f conftest.err conftest.$ac_ext
14377echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14378echo "${ECHO_T}$ac_header_preproc" >&6
14379
14380# So? What about this header?
ac1cb8d3
VS
14381case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14382 yes:no: )
a848cd7e
SC
14383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14384echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14386echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14387 ac_header_preproc=yes
a848cd7e 14388 ;;
ac1cb8d3 14389 no:yes:* )
a848cd7e
SC
14390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14391echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14393echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14395echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14397echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14399echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14401echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14402 (
14403 cat <<\_ASBOX
ac1cb8d3
VS
14404## ----------------------------------------- ##
14405## Report this to wx-dev@lists.wxwidgets.org ##
14406## ----------------------------------------- ##
a848cd7e
SC
14407_ASBOX
14408 ) |
14409 sed "s/^/$as_me: WARNING: /" >&2
14410 ;;
14411esac
14412echo "$as_me:$LINENO: checking for $ac_header" >&5
14413echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14414if eval "test \"\${$as_ac_Header+set}\" = set"; then
14415 echo $ECHO_N "(cached) $ECHO_C" >&6
14416else
ac1cb8d3 14417 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14418fi
14419echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14420echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14421
14422fi
14423if test `eval echo '${'$as_ac_Header'}'` = yes; then
14424 cat >>confdefs.h <<_ACEOF
14425#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14426_ACEOF
14427
14428fi
14429
14430done
14431
14432
14433for ac_header in unistd.h
14434do
14435as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14436if eval "test \"\${$as_ac_Header+set}\" = set"; then
14437 echo "$as_me:$LINENO: checking for $ac_header" >&5
14438echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14439if eval "test \"\${$as_ac_Header+set}\" = set"; then
14440 echo $ECHO_N "(cached) $ECHO_C" >&6
14441fi
14442echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14443echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14444else
14445 # Is the header compilable?
14446echo "$as_me:$LINENO: checking $ac_header usability" >&5
14447echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14448cat >conftest.$ac_ext <<_ACEOF
14449/* confdefs.h. */
14450_ACEOF
14451cat confdefs.h >>conftest.$ac_ext
14452cat >>conftest.$ac_ext <<_ACEOF
14453/* end confdefs.h. */
14454$ac_includes_default
14455#include <$ac_header>
14456_ACEOF
14457rm -f conftest.$ac_objext
14458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14459 (eval $ac_compile) 2>conftest.er1
a848cd7e 14460 ac_status=$?
ac1cb8d3
VS
14461 grep -v '^ *+' conftest.er1 >conftest.err
14462 rm -f conftest.er1
14463 cat conftest.err >&5
a848cd7e
SC
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); } &&
6ebeb4c7 14466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14468 (eval $ac_try) 2>&5
14469 ac_status=$?
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); }; } &&
14472 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14474 (eval $ac_try) 2>&5
14475 ac_status=$?
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); }; }; then
14478 ac_header_compiler=yes
14479else
14480 echo "$as_me: failed program was:" >&5
14481sed 's/^/| /' conftest.$ac_ext >&5
14482
14483ac_header_compiler=no
14484fi
ac1cb8d3 14485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14486echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14487echo "${ECHO_T}$ac_header_compiler" >&6
14488
14489# Is the header present?
14490echo "$as_me:$LINENO: checking $ac_header presence" >&5
14491echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14492cat >conftest.$ac_ext <<_ACEOF
14493/* confdefs.h. */
14494_ACEOF
14495cat confdefs.h >>conftest.$ac_ext
14496cat >>conftest.$ac_ext <<_ACEOF
14497/* end confdefs.h. */
14498#include <$ac_header>
14499_ACEOF
14500if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14501 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14502 ac_status=$?
14503 grep -v '^ *+' conftest.er1 >conftest.err
14504 rm -f conftest.er1
14505 cat conftest.err >&5
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); } >/dev/null; then
14508 if test -s conftest.err; then
14509 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14510 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14511 else
14512 ac_cpp_err=
14513 fi
14514else
14515 ac_cpp_err=yes
14516fi
14517if test -z "$ac_cpp_err"; then
14518 ac_header_preproc=yes
14519else
14520 echo "$as_me: failed program was:" >&5
14521sed 's/^/| /' conftest.$ac_ext >&5
14522
14523 ac_header_preproc=no
14524fi
14525rm -f conftest.err conftest.$ac_ext
14526echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14527echo "${ECHO_T}$ac_header_preproc" >&6
14528
14529# So? What about this header?
ac1cb8d3
VS
14530case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14531 yes:no: )
a848cd7e
SC
14532 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14533echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14535echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14536 ac_header_preproc=yes
a848cd7e 14537 ;;
ac1cb8d3 14538 no:yes:* )
a848cd7e
SC
14539 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14540echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14541 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14542echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14543 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14544echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14545 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14546echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14548echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14549 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14550echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14551 (
14552 cat <<\_ASBOX
ac1cb8d3
VS
14553## ----------------------------------------- ##
14554## Report this to wx-dev@lists.wxwidgets.org ##
14555## ----------------------------------------- ##
a848cd7e
SC
14556_ASBOX
14557 ) |
14558 sed "s/^/$as_me: WARNING: /" >&2
14559 ;;
14560esac
14561echo "$as_me:$LINENO: checking for $ac_header" >&5
14562echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14563if eval "test \"\${$as_ac_Header+set}\" = set"; then
14564 echo $ECHO_N "(cached) $ECHO_C" >&6
14565else
ac1cb8d3 14566 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14567fi
14568echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14569echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14570
14571fi
14572if test `eval echo '${'$as_ac_Header'}'` = yes; then
14573 cat >>confdefs.h <<_ACEOF
14574#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14575_ACEOF
14576
14577fi
14578
14579done
14580
14581
14582for ac_header in wchar.h
14583do
14584as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14585if eval "test \"\${$as_ac_Header+set}\" = set"; then
14586 echo "$as_me:$LINENO: checking for $ac_header" >&5
14587echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14588if eval "test \"\${$as_ac_Header+set}\" = set"; then
14589 echo $ECHO_N "(cached) $ECHO_C" >&6
14590fi
14591echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14592echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14593else
14594 # Is the header compilable?
14595echo "$as_me:$LINENO: checking $ac_header usability" >&5
14596echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14597cat >conftest.$ac_ext <<_ACEOF
14598/* confdefs.h. */
14599_ACEOF
14600cat confdefs.h >>conftest.$ac_ext
14601cat >>conftest.$ac_ext <<_ACEOF
14602/* end confdefs.h. */
14603$ac_includes_default
14604#include <$ac_header>
14605_ACEOF
14606rm -f conftest.$ac_objext
14607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14608 (eval $ac_compile) 2>conftest.er1
a848cd7e 14609 ac_status=$?
ac1cb8d3
VS
14610 grep -v '^ *+' conftest.er1 >conftest.err
14611 rm -f conftest.er1
14612 cat conftest.err >&5
a848cd7e
SC
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); } &&
6ebeb4c7 14615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14617 (eval $ac_try) 2>&5
14618 ac_status=$?
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); }; } &&
14621 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14623 (eval $ac_try) 2>&5
14624 ac_status=$?
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); }; }; then
14627 ac_header_compiler=yes
14628else
14629 echo "$as_me: failed program was:" >&5
14630sed 's/^/| /' conftest.$ac_ext >&5
14631
14632ac_header_compiler=no
14633fi
ac1cb8d3 14634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14635echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14636echo "${ECHO_T}$ac_header_compiler" >&6
14637
14638# Is the header present?
14639echo "$as_me:$LINENO: checking $ac_header presence" >&5
14640echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14641cat >conftest.$ac_ext <<_ACEOF
14642/* confdefs.h. */
14643_ACEOF
14644cat confdefs.h >>conftest.$ac_ext
14645cat >>conftest.$ac_ext <<_ACEOF
14646/* end confdefs.h. */
14647#include <$ac_header>
14648_ACEOF
14649if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14650 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14651 ac_status=$?
14652 grep -v '^ *+' conftest.er1 >conftest.err
14653 rm -f conftest.er1
14654 cat conftest.err >&5
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); } >/dev/null; then
14657 if test -s conftest.err; then
14658 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14659 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14660 else
14661 ac_cpp_err=
14662 fi
14663else
14664 ac_cpp_err=yes
14665fi
14666if test -z "$ac_cpp_err"; then
14667 ac_header_preproc=yes
14668else
14669 echo "$as_me: failed program was:" >&5
14670sed 's/^/| /' conftest.$ac_ext >&5
14671
14672 ac_header_preproc=no
14673fi
14674rm -f conftest.err conftest.$ac_ext
14675echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14676echo "${ECHO_T}$ac_header_preproc" >&6
14677
14678# So? What about this header?
ac1cb8d3
VS
14679case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14680 yes:no: )
a848cd7e
SC
14681 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14682echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14684echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14685 ac_header_preproc=yes
a848cd7e 14686 ;;
ac1cb8d3 14687 no:yes:* )
a848cd7e
SC
14688 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14689echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14690 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14691echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14692 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14693echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14694 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14695echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14697echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14698 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14699echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14700 (
14701 cat <<\_ASBOX
ac1cb8d3
VS
14702## ----------------------------------------- ##
14703## Report this to wx-dev@lists.wxwidgets.org ##
14704## ----------------------------------------- ##
a848cd7e
SC
14705_ASBOX
14706 ) |
14707 sed "s/^/$as_me: WARNING: /" >&2
14708 ;;
14709esac
14710echo "$as_me:$LINENO: checking for $ac_header" >&5
14711echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14712if eval "test \"\${$as_ac_Header+set}\" = set"; then
14713 echo $ECHO_N "(cached) $ECHO_C" >&6
14714else
ac1cb8d3 14715 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14716fi
14717echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14718echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14719
14720fi
14721if test `eval echo '${'$as_ac_Header'}'` = yes; then
14722 cat >>confdefs.h <<_ACEOF
14723#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14724_ACEOF
14725
14726fi
14727
14728done
14729
14730
14731if test "$ac_cv_header_wchar_h" != "yes"; then
14732
14733for ac_header in wcstr.h
14734do
14735as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14736if eval "test \"\${$as_ac_Header+set}\" = set"; then
14737 echo "$as_me:$LINENO: checking for $ac_header" >&5
14738echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14739if eval "test \"\${$as_ac_Header+set}\" = set"; then
14740 echo $ECHO_N "(cached) $ECHO_C" >&6
14741fi
14742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14743echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14744else
14745 # Is the header compilable?
14746echo "$as_me:$LINENO: checking $ac_header usability" >&5
14747echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14748cat >conftest.$ac_ext <<_ACEOF
14749/* confdefs.h. */
14750_ACEOF
14751cat confdefs.h >>conftest.$ac_ext
14752cat >>conftest.$ac_ext <<_ACEOF
14753/* end confdefs.h. */
14754$ac_includes_default
14755#include <$ac_header>
14756_ACEOF
14757rm -f conftest.$ac_objext
14758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14759 (eval $ac_compile) 2>conftest.er1
a848cd7e 14760 ac_status=$?
ac1cb8d3
VS
14761 grep -v '^ *+' conftest.er1 >conftest.err
14762 rm -f conftest.er1
14763 cat conftest.err >&5
a848cd7e
SC
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); } &&
6ebeb4c7 14766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14768 (eval $ac_try) 2>&5
14769 ac_status=$?
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); }; } &&
14772 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14774 (eval $ac_try) 2>&5
14775 ac_status=$?
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); }; }; then
14778 ac_header_compiler=yes
14779else
14780 echo "$as_me: failed program was:" >&5
14781sed 's/^/| /' conftest.$ac_ext >&5
14782
14783ac_header_compiler=no
14784fi
ac1cb8d3 14785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14786echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14787echo "${ECHO_T}$ac_header_compiler" >&6
14788
14789# Is the header present?
14790echo "$as_me:$LINENO: checking $ac_header presence" >&5
14791echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14792cat >conftest.$ac_ext <<_ACEOF
14793/* confdefs.h. */
14794_ACEOF
14795cat confdefs.h >>conftest.$ac_ext
14796cat >>conftest.$ac_ext <<_ACEOF
14797/* end confdefs.h. */
14798#include <$ac_header>
14799_ACEOF
14800if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14802 ac_status=$?
14803 grep -v '^ *+' conftest.er1 >conftest.err
14804 rm -f conftest.er1
14805 cat conftest.err >&5
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); } >/dev/null; then
14808 if test -s conftest.err; then
14809 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14810 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14811 else
14812 ac_cpp_err=
14813 fi
14814else
14815 ac_cpp_err=yes
14816fi
14817if test -z "$ac_cpp_err"; then
14818 ac_header_preproc=yes
14819else
14820 echo "$as_me: failed program was:" >&5
14821sed 's/^/| /' conftest.$ac_ext >&5
14822
14823 ac_header_preproc=no
14824fi
14825rm -f conftest.err conftest.$ac_ext
14826echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14827echo "${ECHO_T}$ac_header_preproc" >&6
14828
14829# So? What about this header?
ac1cb8d3
VS
14830case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14831 yes:no: )
a848cd7e
SC
14832 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14833echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14835echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14836 ac_header_preproc=yes
a848cd7e 14837 ;;
ac1cb8d3 14838 no:yes:* )
a848cd7e
SC
14839 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14840echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14841 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14842echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14843 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14844echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14845 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14846echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14848echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14849 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14850echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14851 (
14852 cat <<\_ASBOX
ac1cb8d3
VS
14853## ----------------------------------------- ##
14854## Report this to wx-dev@lists.wxwidgets.org ##
14855## ----------------------------------------- ##
a848cd7e
SC
14856_ASBOX
14857 ) |
14858 sed "s/^/$as_me: WARNING: /" >&2
14859 ;;
14860esac
14861echo "$as_me:$LINENO: checking for $ac_header" >&5
14862echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14863if eval "test \"\${$as_ac_Header+set}\" = set"; then
14864 echo $ECHO_N "(cached) $ECHO_C" >&6
14865else
ac1cb8d3 14866 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14867fi
14868echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14869echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14870
14871fi
14872if test `eval echo '${'$as_ac_Header'}'` = yes; then
14873 cat >>confdefs.h <<_ACEOF
14874#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14875_ACEOF
14876
14877fi
14878
14879done
14880
14881fi
14882
14883
14884for ac_header in fnmatch.h
14885do
14886as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14887if eval "test \"\${$as_ac_Header+set}\" = set"; then
14888 echo "$as_me:$LINENO: checking for $ac_header" >&5
14889echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14890if eval "test \"\${$as_ac_Header+set}\" = set"; then
14891 echo $ECHO_N "(cached) $ECHO_C" >&6
14892fi
14893echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14894echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14895else
14896 # Is the header compilable?
14897echo "$as_me:$LINENO: checking $ac_header usability" >&5
14898echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14899cat >conftest.$ac_ext <<_ACEOF
14900/* confdefs.h. */
14901_ACEOF
14902cat confdefs.h >>conftest.$ac_ext
14903cat >>conftest.$ac_ext <<_ACEOF
14904/* end confdefs.h. */
14905$ac_includes_default
14906#include <$ac_header>
14907_ACEOF
14908rm -f conftest.$ac_objext
14909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14910 (eval $ac_compile) 2>conftest.er1
a848cd7e 14911 ac_status=$?
ac1cb8d3
VS
14912 grep -v '^ *+' conftest.er1 >conftest.err
14913 rm -f conftest.er1
14914 cat conftest.err >&5
a848cd7e
SC
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); } &&
6ebeb4c7 14917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919 (eval $ac_try) 2>&5
14920 ac_status=$?
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); }; } &&
14923 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14925 (eval $ac_try) 2>&5
14926 ac_status=$?
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); }; }; then
14929 ac_header_compiler=yes
14930else
14931 echo "$as_me: failed program was:" >&5
14932sed 's/^/| /' conftest.$ac_ext >&5
14933
14934ac_header_compiler=no
14935fi
ac1cb8d3 14936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14937echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14938echo "${ECHO_T}$ac_header_compiler" >&6
14939
14940# Is the header present?
14941echo "$as_me:$LINENO: checking $ac_header presence" >&5
14942echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14943cat >conftest.$ac_ext <<_ACEOF
14944/* confdefs.h. */
14945_ACEOF
14946cat confdefs.h >>conftest.$ac_ext
14947cat >>conftest.$ac_ext <<_ACEOF
14948/* end confdefs.h. */
14949#include <$ac_header>
14950_ACEOF
14951if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14953 ac_status=$?
14954 grep -v '^ *+' conftest.er1 >conftest.err
14955 rm -f conftest.er1
14956 cat conftest.err >&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); } >/dev/null; then
14959 if test -s conftest.err; then
14960 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14961 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14962 else
14963 ac_cpp_err=
14964 fi
14965else
14966 ac_cpp_err=yes
14967fi
14968if test -z "$ac_cpp_err"; then
14969 ac_header_preproc=yes
14970else
14971 echo "$as_me: failed program was:" >&5
14972sed 's/^/| /' conftest.$ac_ext >&5
14973
14974 ac_header_preproc=no
14975fi
14976rm -f conftest.err conftest.$ac_ext
14977echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14978echo "${ECHO_T}$ac_header_preproc" >&6
14979
14980# So? What about this header?
ac1cb8d3
VS
14981case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14982 yes:no: )
a848cd7e
SC
14983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14984echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14986echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14987 ac_header_preproc=yes
a848cd7e 14988 ;;
ac1cb8d3 14989 no:yes:* )
a848cd7e
SC
14990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14991echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14993echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14995echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14997echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14999echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15001echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15002 (
15003 cat <<\_ASBOX
ac1cb8d3
VS
15004## ----------------------------------------- ##
15005## Report this to wx-dev@lists.wxwidgets.org ##
15006## ----------------------------------------- ##
a848cd7e
SC
15007_ASBOX
15008 ) |
15009 sed "s/^/$as_me: WARNING: /" >&2
15010 ;;
15011esac
15012echo "$as_me:$LINENO: checking for $ac_header" >&5
15013echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15014if eval "test \"\${$as_ac_Header+set}\" = set"; then
15015 echo $ECHO_N "(cached) $ECHO_C" >&6
15016else
ac1cb8d3 15017 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15018fi
15019echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15020echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15021
15022fi
15023if test `eval echo '${'$as_ac_Header'}'` = yes; then
15024 cat >>confdefs.h <<_ACEOF
15025#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15026_ACEOF
15027
15028fi
15029
15030done
15031
15032
a848cd7e
SC
15033
15034for ac_header in langinfo.h
15035do
15036as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15037if eval "test \"\${$as_ac_Header+set}\" = set"; then
15038 echo "$as_me:$LINENO: checking for $ac_header" >&5
15039echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15040if eval "test \"\${$as_ac_Header+set}\" = set"; then
15041 echo $ECHO_N "(cached) $ECHO_C" >&6
15042fi
15043echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15044echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15045else
15046 # Is the header compilable?
15047echo "$as_me:$LINENO: checking $ac_header usability" >&5
15048echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15049cat >conftest.$ac_ext <<_ACEOF
15050/* confdefs.h. */
15051_ACEOF
15052cat confdefs.h >>conftest.$ac_ext
15053cat >>conftest.$ac_ext <<_ACEOF
15054/* end confdefs.h. */
15055$ac_includes_default
15056#include <$ac_header>
15057_ACEOF
15058rm -f conftest.$ac_objext
15059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15060 (eval $ac_compile) 2>conftest.er1
a848cd7e 15061 ac_status=$?
ac1cb8d3
VS
15062 grep -v '^ *+' conftest.er1 >conftest.err
15063 rm -f conftest.er1
15064 cat conftest.err >&5
a848cd7e
SC
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); } &&
6ebeb4c7 15067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15069 (eval $ac_try) 2>&5
15070 ac_status=$?
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); }; } &&
15073 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15075 (eval $ac_try) 2>&5
15076 ac_status=$?
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); }; }; then
15079 ac_header_compiler=yes
15080else
15081 echo "$as_me: failed program was:" >&5
15082sed 's/^/| /' conftest.$ac_ext >&5
15083
15084ac_header_compiler=no
15085fi
ac1cb8d3 15086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15087echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15088echo "${ECHO_T}$ac_header_compiler" >&6
15089
15090# Is the header present?
15091echo "$as_me:$LINENO: checking $ac_header presence" >&5
15092echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15093cat >conftest.$ac_ext <<_ACEOF
15094/* confdefs.h. */
15095_ACEOF
15096cat confdefs.h >>conftest.$ac_ext
15097cat >>conftest.$ac_ext <<_ACEOF
15098/* end confdefs.h. */
15099#include <$ac_header>
15100_ACEOF
15101if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15103 ac_status=$?
15104 grep -v '^ *+' conftest.er1 >conftest.err
15105 rm -f conftest.er1
15106 cat conftest.err >&5
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); } >/dev/null; then
15109 if test -s conftest.err; then
15110 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15111 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15112 else
15113 ac_cpp_err=
15114 fi
15115else
15116 ac_cpp_err=yes
15117fi
15118if test -z "$ac_cpp_err"; then
15119 ac_header_preproc=yes
15120else
15121 echo "$as_me: failed program was:" >&5
15122sed 's/^/| /' conftest.$ac_ext >&5
15123
15124 ac_header_preproc=no
15125fi
15126rm -f conftest.err conftest.$ac_ext
15127echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15128echo "${ECHO_T}$ac_header_preproc" >&6
15129
15130# So? What about this header?
ac1cb8d3
VS
15131case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15132 yes:no: )
a848cd7e
SC
15133 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15134echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15136echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15137 ac_header_preproc=yes
a848cd7e 15138 ;;
ac1cb8d3 15139 no:yes:* )
a848cd7e
SC
15140 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15141echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15142 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15143echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15144 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15145echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15146 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15147echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15149echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15150 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15151echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15152 (
15153 cat <<\_ASBOX
ac1cb8d3
VS
15154## ----------------------------------------- ##
15155## Report this to wx-dev@lists.wxwidgets.org ##
15156## ----------------------------------------- ##
a848cd7e
SC
15157_ASBOX
15158 ) |
15159 sed "s/^/$as_me: WARNING: /" >&2
15160 ;;
15161esac
15162echo "$as_me:$LINENO: checking for $ac_header" >&5
15163echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15164if eval "test \"\${$as_ac_Header+set}\" = set"; then
15165 echo $ECHO_N "(cached) $ECHO_C" >&6
15166else
ac1cb8d3 15167 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15168fi
15169echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15170echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15171
15172fi
15173if test `eval echo '${'$as_ac_Header'}'` = yes; then
15174 cat >>confdefs.h <<_ACEOF
15175#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15176_ACEOF
15177
15178fi
15179
15180done
15181
15182
15183case "${host}" in
15184 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
15185 if test $ac_cv_header_langinfo_h = "yes" \
15186 -a \( "$wx_cv_gccversion" = "EMX2" \
15187 -o "$wx_cv_gccversion" = "EMX3" \
15188 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
15189 LIBS="$LIBS -lintl"
15190 fi
15191 ;;
15192esac
15193
15194if test "$wxUSE_GUI" = "yes"; then
15195 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
15196
15197for ac_header in X11/Xlib.h
15198do
15199as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15200if eval "test \"\${$as_ac_Header+set}\" = set"; then
15201 echo "$as_me:$LINENO: checking for $ac_header" >&5
15202echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15203if eval "test \"\${$as_ac_Header+set}\" = set"; then
15204 echo $ECHO_N "(cached) $ECHO_C" >&6
15205fi
15206echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15207echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15208else
15209 # Is the header compilable?
15210echo "$as_me:$LINENO: checking $ac_header usability" >&5
15211echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15212cat >conftest.$ac_ext <<_ACEOF
15213/* confdefs.h. */
15214_ACEOF
15215cat confdefs.h >>conftest.$ac_ext
15216cat >>conftest.$ac_ext <<_ACEOF
15217/* end confdefs.h. */
15218$ac_includes_default
15219#include <$ac_header>
15220_ACEOF
15221rm -f conftest.$ac_objext
15222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15223 (eval $ac_compile) 2>conftest.er1
a848cd7e 15224 ac_status=$?
ac1cb8d3
VS
15225 grep -v '^ *+' conftest.er1 >conftest.err
15226 rm -f conftest.er1
15227 cat conftest.err >&5
a848cd7e
SC
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); } &&
6ebeb4c7 15230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15232 (eval $ac_try) 2>&5
15233 ac_status=$?
15234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235 (exit $ac_status); }; } &&
15236 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15238 (eval $ac_try) 2>&5
15239 ac_status=$?
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); }; }; then
15242 ac_header_compiler=yes
15243else
15244 echo "$as_me: failed program was:" >&5
15245sed 's/^/| /' conftest.$ac_ext >&5
15246
15247ac_header_compiler=no
15248fi
ac1cb8d3 15249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15250echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15251echo "${ECHO_T}$ac_header_compiler" >&6
15252
15253# Is the header present?
15254echo "$as_me:$LINENO: checking $ac_header presence" >&5
15255echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15256cat >conftest.$ac_ext <<_ACEOF
15257/* confdefs.h. */
15258_ACEOF
15259cat confdefs.h >>conftest.$ac_ext
15260cat >>conftest.$ac_ext <<_ACEOF
15261/* end confdefs.h. */
15262#include <$ac_header>
15263_ACEOF
15264if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15266 ac_status=$?
15267 grep -v '^ *+' conftest.er1 >conftest.err
15268 rm -f conftest.er1
15269 cat conftest.err >&5
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); } >/dev/null; then
15272 if test -s conftest.err; then
15273 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15275 else
15276 ac_cpp_err=
15277 fi
15278else
15279 ac_cpp_err=yes
15280fi
15281if test -z "$ac_cpp_err"; then
15282 ac_header_preproc=yes
15283else
15284 echo "$as_me: failed program was:" >&5
15285sed 's/^/| /' conftest.$ac_ext >&5
15286
15287 ac_header_preproc=no
15288fi
15289rm -f conftest.err conftest.$ac_ext
15290echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15291echo "${ECHO_T}$ac_header_preproc" >&6
15292
15293# So? What about this header?
ac1cb8d3
VS
15294case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15295 yes:no: )
a848cd7e
SC
15296 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15297echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15299echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15300 ac_header_preproc=yes
a848cd7e 15301 ;;
ac1cb8d3 15302 no:yes:* )
a848cd7e
SC
15303 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15304echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15305 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15306echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15307 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15308echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15309 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15310echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15312echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15313 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15314echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15315 (
15316 cat <<\_ASBOX
ac1cb8d3
VS
15317## ----------------------------------------- ##
15318## Report this to wx-dev@lists.wxwidgets.org ##
15319## ----------------------------------------- ##
a848cd7e
SC
15320_ASBOX
15321 ) |
15322 sed "s/^/$as_me: WARNING: /" >&2
15323 ;;
15324esac
15325echo "$as_me:$LINENO: checking for $ac_header" >&5
15326echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15327if eval "test \"\${$as_ac_Header+set}\" = set"; then
15328 echo $ECHO_N "(cached) $ECHO_C" >&6
15329else
ac1cb8d3 15330 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15331fi
15332echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15333echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15334
15335fi
15336if test `eval echo '${'$as_ac_Header'}'` = yes; then
15337 cat >>confdefs.h <<_ACEOF
15338#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15339_ACEOF
15340
15341fi
15342
15343done
15344
15345
15346for ac_header in X11/XKBlib.h
15347do
15348as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15349echo "$as_me:$LINENO: checking for $ac_header" >&5
15350echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15351if eval "test \"\${$as_ac_Header+set}\" = set"; then
15352 echo $ECHO_N "(cached) $ECHO_C" >&6
15353else
15354 cat >conftest.$ac_ext <<_ACEOF
15355/* confdefs.h. */
15356_ACEOF
15357cat confdefs.h >>conftest.$ac_ext
15358cat >>conftest.$ac_ext <<_ACEOF
15359/* end confdefs.h. */
15360
15361 #if HAVE_X11_XLIB_H
15362 #include <X11/Xlib.h>
15363 #endif
15364
15365
15366#include <$ac_header>
15367_ACEOF
15368rm -f conftest.$ac_objext
15369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15370 (eval $ac_compile) 2>conftest.er1
a848cd7e 15371 ac_status=$?
ac1cb8d3
VS
15372 grep -v '^ *+' conftest.er1 >conftest.err
15373 rm -f conftest.er1
15374 cat conftest.err >&5
a848cd7e
SC
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); } &&
6ebeb4c7 15377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15379 (eval $ac_try) 2>&5
15380 ac_status=$?
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); }; } &&
15383 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15385 (eval $ac_try) 2>&5
15386 ac_status=$?
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); }; }; then
15389 eval "$as_ac_Header=yes"
15390else
15391 echo "$as_me: failed program was:" >&5
15392sed 's/^/| /' conftest.$ac_ext >&5
15393
15394eval "$as_ac_Header=no"
15395fi
ac1cb8d3 15396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15397fi
15398echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15399echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15400if test `eval echo '${'$as_ac_Header'}'` = yes; then
15401 cat >>confdefs.h <<_ACEOF
15402#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15403_ACEOF
15404
15405fi
15406
15407done
15408
15409 fi
15410fi
15411
15412
15413echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15414echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15415if test "${ac_cv_c_const+set}" = set; then
15416 echo $ECHO_N "(cached) $ECHO_C" >&6
15417else
15418 cat >conftest.$ac_ext <<_ACEOF
15419/* confdefs.h. */
15420_ACEOF
15421cat confdefs.h >>conftest.$ac_ext
15422cat >>conftest.$ac_ext <<_ACEOF
15423/* end confdefs.h. */
15424
15425int
15426main ()
15427{
15428/* FIXME: Include the comments suggested by Paul. */
15429#ifndef __cplusplus
15430 /* Ultrix mips cc rejects this. */
15431 typedef int charset[2];
15432 const charset x;
15433 /* SunOS 4.1.1 cc rejects this. */
15434 char const *const *ccp;
15435 char **p;
15436 /* NEC SVR4.0.2 mips cc rejects this. */
15437 struct point {int x, y;};
15438 static struct point const zero = {0,0};
15439 /* AIX XL C 1.02.0.0 rejects this.
15440 It does not let you subtract one const X* pointer from another in
15441 an arm of an if-expression whose if-part is not a constant
15442 expression */
15443 const char *g = "string";
15444 ccp = &g + (g ? g-g : 0);
15445 /* HPUX 7.0 cc rejects these. */
15446 ++ccp;
15447 p = (char**) ccp;
15448 ccp = (char const *const *) p;
15449 { /* SCO 3.2v4 cc rejects this. */
15450 char *t;
15451 char const *s = 0 ? (char *) 0 : (char const *) 0;
15452
15453 *t++ = 0;
15454 }
15455 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15456 int x[] = {25, 17};
15457 const int *foo = &x[0];
15458 ++foo;
15459 }
15460 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15461 typedef const int *iptr;
15462 iptr p = 0;
15463 ++p;
15464 }
15465 { /* AIX XL C 1.02.0.0 rejects this saying
15466 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15467 struct s { int j; const int *ap[3]; };
15468 struct s *b; b->j = 5;
15469 }
15470 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15471 const int foo = 10;
15472 }
15473#endif
15474
15475 ;
15476 return 0;
15477}
15478_ACEOF
15479rm -f conftest.$ac_objext
15480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15481 (eval $ac_compile) 2>conftest.er1
a848cd7e 15482 ac_status=$?
ac1cb8d3
VS
15483 grep -v '^ *+' conftest.er1 >conftest.err
15484 rm -f conftest.er1
15485 cat conftest.err >&5
a848cd7e
SC
15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); } &&
6ebeb4c7 15488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15490 (eval $ac_try) 2>&5
15491 ac_status=$?
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); }; } &&
15494 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15496 (eval $ac_try) 2>&5
15497 ac_status=$?
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; }; then
15500 ac_cv_c_const=yes
15501else
15502 echo "$as_me: failed program was:" >&5
15503sed 's/^/| /' conftest.$ac_ext >&5
15504
15505ac_cv_c_const=no
15506fi
ac1cb8d3 15507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15508fi
15509echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15510echo "${ECHO_T}$ac_cv_c_const" >&6
15511if test $ac_cv_c_const = no; then
15512
15513cat >>confdefs.h <<\_ACEOF
15514#define const
15515_ACEOF
15516
15517fi
15518
15519echo "$as_me:$LINENO: checking for inline" >&5
15520echo $ECHO_N "checking for inline... $ECHO_C" >&6
15521if test "${ac_cv_c_inline+set}" = set; then
15522 echo $ECHO_N "(cached) $ECHO_C" >&6
15523else
15524 ac_cv_c_inline=no
15525for ac_kw in inline __inline__ __inline; do
15526 cat >conftest.$ac_ext <<_ACEOF
15527/* confdefs.h. */
15528_ACEOF
15529cat confdefs.h >>conftest.$ac_ext
15530cat >>conftest.$ac_ext <<_ACEOF
15531/* end confdefs.h. */
15532#ifndef __cplusplus
15533typedef int foo_t;
15534static $ac_kw foo_t static_foo () {return 0; }
15535$ac_kw foo_t foo () {return 0; }
15536#endif
15537
15538_ACEOF
15539rm -f conftest.$ac_objext
15540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15541 (eval $ac_compile) 2>conftest.er1
a848cd7e 15542 ac_status=$?
ac1cb8d3
VS
15543 grep -v '^ *+' conftest.er1 >conftest.err
15544 rm -f conftest.er1
15545 cat conftest.err >&5
a848cd7e
SC
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); } &&
6ebeb4c7 15548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15550 (eval $ac_try) 2>&5
15551 ac_status=$?
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); }; } &&
15554 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15556 (eval $ac_try) 2>&5
15557 ac_status=$?
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); }; }; then
15560 ac_cv_c_inline=$ac_kw; break
15561else
15562 echo "$as_me: failed program was:" >&5
15563sed 's/^/| /' conftest.$ac_ext >&5
15564
15565fi
ac1cb8d3 15566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15567done
15568
15569fi
15570echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15571echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
15572
15573
a848cd7e
SC
15574case $ac_cv_c_inline in
15575 inline | yes) ;;
ac1cb8d3
VS
15576 *)
15577 case $ac_cv_c_inline in
15578 no) ac_val=;;
15579 *) ac_val=$ac_cv_c_inline;;
15580 esac
15581 cat >>confdefs.h <<_ACEOF
15582#ifndef __cplusplus
15583#define inline $ac_val
15584#endif
de59c161 15585_ACEOF
ac1cb8d3 15586 ;;
a848cd7e
SC
15587esac
15588
15589
15590echo "$as_me:$LINENO: checking for char" >&5
15591echo $ECHO_N "checking for char... $ECHO_C" >&6
15592if test "${ac_cv_type_char+set}" = set; then
15593 echo $ECHO_N "(cached) $ECHO_C" >&6
15594else
15595 cat >conftest.$ac_ext <<_ACEOF
15596/* confdefs.h. */
15597_ACEOF
15598cat confdefs.h >>conftest.$ac_ext
15599cat >>conftest.$ac_ext <<_ACEOF
15600/* end confdefs.h. */
15601$ac_includes_default
15602int
15603main ()
15604{
15605if ((char *) 0)
15606 return 0;
15607if (sizeof (char))
15608 return 0;
15609 ;
15610 return 0;
15611}
15612_ACEOF
15613rm -f conftest.$ac_objext
15614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15615 (eval $ac_compile) 2>conftest.er1
a848cd7e 15616 ac_status=$?
ac1cb8d3
VS
15617 grep -v '^ *+' conftest.er1 >conftest.err
15618 rm -f conftest.er1
15619 cat conftest.err >&5
a848cd7e
SC
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); } &&
6ebeb4c7 15622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15624 (eval $ac_try) 2>&5
15625 ac_status=$?
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); }; } &&
15628 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15630 (eval $ac_try) 2>&5
15631 ac_status=$?
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); }; }; then
15634 ac_cv_type_char=yes
15635else
15636 echo "$as_me: failed program was:" >&5
15637sed 's/^/| /' conftest.$ac_ext >&5
15638
15639ac_cv_type_char=no
15640fi
ac1cb8d3 15641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15642fi
15643echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15644echo "${ECHO_T}$ac_cv_type_char" >&6
15645
15646echo "$as_me:$LINENO: checking size of char" >&5
15647echo $ECHO_N "checking size of char... $ECHO_C" >&6
15648if test "${ac_cv_sizeof_char+set}" = set; then
15649 echo $ECHO_N "(cached) $ECHO_C" >&6
15650else
15651 if test "$ac_cv_type_char" = yes; then
15652 # The cast to unsigned long works around a bug in the HP C Compiler
15653 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15654 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15655 # This bug is HP SR number 8606223364.
15656 if test "$cross_compiling" = yes; then
15657 # Depending upon the size, compute the lo and hi bounds.
15658cat >conftest.$ac_ext <<_ACEOF
15659/* confdefs.h. */
15660_ACEOF
15661cat confdefs.h >>conftest.$ac_ext
15662cat >>conftest.$ac_ext <<_ACEOF
15663/* end confdefs.h. */
15664$ac_includes_default
15665int
15666main ()
15667{
15668static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15669test_array [0] = 0
15670
15671 ;
15672 return 0;
15673}
15674_ACEOF
15675rm -f conftest.$ac_objext
15676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15677 (eval $ac_compile) 2>conftest.er1
a848cd7e 15678 ac_status=$?
ac1cb8d3
VS
15679 grep -v '^ *+' conftest.er1 >conftest.err
15680 rm -f conftest.er1
15681 cat conftest.err >&5
a848cd7e
SC
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); } &&
6ebeb4c7 15684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15686 (eval $ac_try) 2>&5
15687 ac_status=$?
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); }; } &&
15690 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15692 (eval $ac_try) 2>&5
15693 ac_status=$?
15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); }; }; then
15696 ac_lo=0 ac_mid=0
15697 while :; do
15698 cat >conftest.$ac_ext <<_ACEOF
15699/* confdefs.h. */
15700_ACEOF
15701cat confdefs.h >>conftest.$ac_ext
15702cat >>conftest.$ac_ext <<_ACEOF
15703/* end confdefs.h. */
15704$ac_includes_default
15705int
15706main ()
15707{
15708static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15709test_array [0] = 0
15710
15711 ;
15712 return 0;
15713}
15714_ACEOF
15715rm -f conftest.$ac_objext
15716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15717 (eval $ac_compile) 2>conftest.er1
a848cd7e 15718 ac_status=$?
ac1cb8d3
VS
15719 grep -v '^ *+' conftest.er1 >conftest.err
15720 rm -f conftest.er1
15721 cat conftest.err >&5
a848cd7e
SC
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); } &&
6ebeb4c7 15724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15726 (eval $ac_try) 2>&5
15727 ac_status=$?
15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729 (exit $ac_status); }; } &&
15730 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15732 (eval $ac_try) 2>&5
15733 ac_status=$?
15734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); }; }; then
15736 ac_hi=$ac_mid; break
15737else
15738 echo "$as_me: failed program was:" >&5
15739sed 's/^/| /' conftest.$ac_ext >&5
15740
15741ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15742 if test $ac_lo -le $ac_mid; then
15743 ac_lo= ac_hi=
15744 break
15745 fi
15746 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15747fi
ac1cb8d3 15748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15749 done
15750else
15751 echo "$as_me: failed program was:" >&5
15752sed 's/^/| /' conftest.$ac_ext >&5
15753
15754cat >conftest.$ac_ext <<_ACEOF
15755/* confdefs.h. */
15756_ACEOF
15757cat confdefs.h >>conftest.$ac_ext
15758cat >>conftest.$ac_ext <<_ACEOF
15759/* end confdefs.h. */
15760$ac_includes_default
15761int
15762main ()
15763{
15764static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15765test_array [0] = 0
15766
15767 ;
15768 return 0;
15769}
15770_ACEOF
15771rm -f conftest.$ac_objext
15772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15773 (eval $ac_compile) 2>conftest.er1
a848cd7e 15774 ac_status=$?
ac1cb8d3
VS
15775 grep -v '^ *+' conftest.er1 >conftest.err
15776 rm -f conftest.er1
15777 cat conftest.err >&5
a848cd7e
SC
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); } &&
6ebeb4c7 15780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15782 (eval $ac_try) 2>&5
15783 ac_status=$?
15784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785 (exit $ac_status); }; } &&
15786 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15788 (eval $ac_try) 2>&5
15789 ac_status=$?
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); }; }; then
15792 ac_hi=-1 ac_mid=-1
15793 while :; do
15794 cat >conftest.$ac_ext <<_ACEOF
15795/* confdefs.h. */
15796_ACEOF
15797cat confdefs.h >>conftest.$ac_ext
15798cat >>conftest.$ac_ext <<_ACEOF
15799/* end confdefs.h. */
15800$ac_includes_default
15801int
15802main ()
15803{
15804static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15805test_array [0] = 0
15806
15807 ;
15808 return 0;
15809}
15810_ACEOF
15811rm -f conftest.$ac_objext
15812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15813 (eval $ac_compile) 2>conftest.er1
a848cd7e 15814 ac_status=$?
ac1cb8d3
VS
15815 grep -v '^ *+' conftest.er1 >conftest.err
15816 rm -f conftest.er1
15817 cat conftest.err >&5
a848cd7e
SC
15818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819 (exit $ac_status); } &&
6ebeb4c7 15820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15822 (eval $ac_try) 2>&5
15823 ac_status=$?
15824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825 (exit $ac_status); }; } &&
15826 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15828 (eval $ac_try) 2>&5
15829 ac_status=$?
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); }; }; then
15832 ac_lo=$ac_mid; break
15833else
15834 echo "$as_me: failed program was:" >&5
15835sed 's/^/| /' conftest.$ac_ext >&5
15836
15837ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15838 if test $ac_mid -le $ac_hi; then
15839 ac_lo= ac_hi=
15840 break
15841 fi
15842 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15843fi
ac1cb8d3 15844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15845 done
15846else
15847 echo "$as_me: failed program was:" >&5
15848sed 's/^/| /' conftest.$ac_ext >&5
15849
15850ac_lo= ac_hi=
15851fi
ac1cb8d3 15852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15853fi
ac1cb8d3 15854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15855# Binary search between lo and hi bounds.
15856while test "x$ac_lo" != "x$ac_hi"; do
15857 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15858 cat >conftest.$ac_ext <<_ACEOF
15859/* confdefs.h. */
15860_ACEOF
15861cat confdefs.h >>conftest.$ac_ext
15862cat >>conftest.$ac_ext <<_ACEOF
15863/* end confdefs.h. */
15864$ac_includes_default
15865int
15866main ()
15867{
15868static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15869test_array [0] = 0
15870
15871 ;
15872 return 0;
15873}
15874_ACEOF
15875rm -f conftest.$ac_objext
15876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15877 (eval $ac_compile) 2>conftest.er1
a848cd7e 15878 ac_status=$?
ac1cb8d3
VS
15879 grep -v '^ *+' conftest.er1 >conftest.err
15880 rm -f conftest.er1
15881 cat conftest.err >&5
a848cd7e
SC
15882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883 (exit $ac_status); } &&
6ebeb4c7 15884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15886 (eval $ac_try) 2>&5
15887 ac_status=$?
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); }; } &&
15890 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15892 (eval $ac_try) 2>&5
15893 ac_status=$?
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); }; }; then
15896 ac_hi=$ac_mid
15897else
15898 echo "$as_me: failed program was:" >&5
15899sed 's/^/| /' conftest.$ac_ext >&5
15900
15901ac_lo=`expr '(' $ac_mid ')' + 1`
15902fi
ac1cb8d3 15903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15904done
15905case $ac_lo in
15906?*) ac_cv_sizeof_char=$ac_lo;;
15907'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15908See \`config.log' for more details." >&5
15909echo "$as_me: error: cannot compute sizeof (char), 77
15910See \`config.log' for more details." >&2;}
15911 { (exit 1); exit 1; }; } ;;
15912esac
15913else
15914 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
15915 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15916echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15917 { (exit 1); exit 1; }; }
15918else
15919 cat >conftest.$ac_ext <<_ACEOF
15920/* confdefs.h. */
15921_ACEOF
15922cat confdefs.h >>conftest.$ac_ext
15923cat >>conftest.$ac_ext <<_ACEOF
15924/* end confdefs.h. */
15925$ac_includes_default
15926long longval () { return (long) (sizeof (char)); }
15927unsigned long ulongval () { return (long) (sizeof (char)); }
15928#include <stdio.h>
15929#include <stdlib.h>
15930int
15931main ()
15932{
15933
15934 FILE *f = fopen ("conftest.val", "w");
15935 if (! f)
15936 exit (1);
15937 if (((long) (sizeof (char))) < 0)
15938 {
15939 long i = longval ();
15940 if (i != ((long) (sizeof (char))))
15941 exit (1);
15942 fprintf (f, "%ld\n", i);
15943 }
15944 else
15945 {
15946 unsigned long i = ulongval ();
15947 if (i != ((long) (sizeof (char))))
15948 exit (1);
15949 fprintf (f, "%lu\n", i);
15950 }
15951 exit (ferror (f) || fclose (f) != 0);
15952
15953 ;
15954 return 0;
15955}
15956_ACEOF
15957rm -f conftest$ac_exeext
15958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15959 (eval $ac_link) 2>&5
15960 ac_status=$?
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15964 (eval $ac_try) 2>&5
15965 ac_status=$?
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); }; }; then
15968 ac_cv_sizeof_char=`cat conftest.val`
15969else
15970 echo "$as_me: program exited with status $ac_status" >&5
15971echo "$as_me: failed program was:" >&5
15972sed 's/^/| /' conftest.$ac_ext >&5
15973
15974( exit $ac_status )
15975{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
15976See \`config.log' for more details." >&5
15977echo "$as_me: error: cannot compute sizeof (char), 77
15978See \`config.log' for more details." >&2;}
15979 { (exit 1); exit 1; }; }
15980fi
ac1cb8d3 15981rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15982fi
15983fi
15984rm -f conftest.val
15985else
15986 ac_cv_sizeof_char=0
15987fi
15988fi
15989echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15990echo "${ECHO_T}$ac_cv_sizeof_char" >&6
15991cat >>confdefs.h <<_ACEOF
15992#define SIZEOF_CHAR $ac_cv_sizeof_char
15993_ACEOF
15994
15995
15996echo "$as_me:$LINENO: checking for short" >&5
15997echo $ECHO_N "checking for short... $ECHO_C" >&6
15998if test "${ac_cv_type_short+set}" = set; then
15999 echo $ECHO_N "(cached) $ECHO_C" >&6
16000else
16001 cat >conftest.$ac_ext <<_ACEOF
16002/* confdefs.h. */
16003_ACEOF
16004cat confdefs.h >>conftest.$ac_ext
16005cat >>conftest.$ac_ext <<_ACEOF
16006/* end confdefs.h. */
16007$ac_includes_default
16008int
16009main ()
16010{
16011if ((short *) 0)
16012 return 0;
16013if (sizeof (short))
16014 return 0;
16015 ;
16016 return 0;
16017}
16018_ACEOF
16019rm -f conftest.$ac_objext
16020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16021 (eval $ac_compile) 2>conftest.er1
a848cd7e 16022 ac_status=$?
ac1cb8d3
VS
16023 grep -v '^ *+' conftest.er1 >conftest.err
16024 rm -f conftest.er1
16025 cat conftest.err >&5
a848cd7e
SC
16026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027 (exit $ac_status); } &&
6ebeb4c7 16028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16030 (eval $ac_try) 2>&5
16031 ac_status=$?
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); }; } &&
16034 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16036 (eval $ac_try) 2>&5
16037 ac_status=$?
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); }; }; then
16040 ac_cv_type_short=yes
16041else
16042 echo "$as_me: failed program was:" >&5
16043sed 's/^/| /' conftest.$ac_ext >&5
16044
16045ac_cv_type_short=no
16046fi
ac1cb8d3 16047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16048fi
16049echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
16050echo "${ECHO_T}$ac_cv_type_short" >&6
16051
16052echo "$as_me:$LINENO: checking size of short" >&5
16053echo $ECHO_N "checking size of short... $ECHO_C" >&6
16054if test "${ac_cv_sizeof_short+set}" = set; then
16055 echo $ECHO_N "(cached) $ECHO_C" >&6
16056else
16057 if test "$ac_cv_type_short" = yes; then
16058 # The cast to unsigned long works around a bug in the HP C Compiler
16059 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16060 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16061 # This bug is HP SR number 8606223364.
16062 if test "$cross_compiling" = yes; then
16063 # Depending upon the size, compute the lo and hi bounds.
16064cat >conftest.$ac_ext <<_ACEOF
16065/* confdefs.h. */
16066_ACEOF
16067cat confdefs.h >>conftest.$ac_ext
16068cat >>conftest.$ac_ext <<_ACEOF
16069/* end confdefs.h. */
16070$ac_includes_default
16071int
16072main ()
16073{
16074static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16075test_array [0] = 0
16076
16077 ;
16078 return 0;
16079}
16080_ACEOF
16081rm -f conftest.$ac_objext
16082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16083 (eval $ac_compile) 2>conftest.er1
a848cd7e 16084 ac_status=$?
ac1cb8d3
VS
16085 grep -v '^ *+' conftest.er1 >conftest.err
16086 rm -f conftest.er1
16087 cat conftest.err >&5
a848cd7e
SC
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); } &&
6ebeb4c7 16090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16092 (eval $ac_try) 2>&5
16093 ac_status=$?
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); }; } &&
16096 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16098 (eval $ac_try) 2>&5
16099 ac_status=$?
16100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101 (exit $ac_status); }; }; then
16102 ac_lo=0 ac_mid=0
16103 while :; do
16104 cat >conftest.$ac_ext <<_ACEOF
16105/* confdefs.h. */
16106_ACEOF
16107cat confdefs.h >>conftest.$ac_ext
16108cat >>conftest.$ac_ext <<_ACEOF
16109/* end confdefs.h. */
16110$ac_includes_default
16111int
16112main ()
16113{
16114static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16115test_array [0] = 0
16116
16117 ;
16118 return 0;
16119}
16120_ACEOF
16121rm -f conftest.$ac_objext
16122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16123 (eval $ac_compile) 2>conftest.er1
a848cd7e 16124 ac_status=$?
ac1cb8d3
VS
16125 grep -v '^ *+' conftest.er1 >conftest.err
16126 rm -f conftest.er1
16127 cat conftest.err >&5
a848cd7e
SC
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); } &&
6ebeb4c7 16130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16132 (eval $ac_try) 2>&5
16133 ac_status=$?
16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); }; } &&
16136 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16138 (eval $ac_try) 2>&5
16139 ac_status=$?
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); }; }; then
16142 ac_hi=$ac_mid; break
16143else
16144 echo "$as_me: failed program was:" >&5
16145sed 's/^/| /' conftest.$ac_ext >&5
16146
16147ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16148 if test $ac_lo -le $ac_mid; then
16149 ac_lo= ac_hi=
16150 break
16151 fi
16152 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16153fi
ac1cb8d3 16154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16155 done
16156else
16157 echo "$as_me: failed program was:" >&5
16158sed 's/^/| /' conftest.$ac_ext >&5
16159
16160cat >conftest.$ac_ext <<_ACEOF
16161/* confdefs.h. */
16162_ACEOF
16163cat confdefs.h >>conftest.$ac_ext
16164cat >>conftest.$ac_ext <<_ACEOF
16165/* end confdefs.h. */
16166$ac_includes_default
16167int
16168main ()
16169{
16170static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16171test_array [0] = 0
16172
16173 ;
16174 return 0;
16175}
16176_ACEOF
16177rm -f conftest.$ac_objext
16178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16179 (eval $ac_compile) 2>conftest.er1
a848cd7e 16180 ac_status=$?
ac1cb8d3
VS
16181 grep -v '^ *+' conftest.er1 >conftest.err
16182 rm -f conftest.er1
16183 cat conftest.err >&5
a848cd7e
SC
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); } &&
6ebeb4c7 16186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16188 (eval $ac_try) 2>&5
16189 ac_status=$?
16190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191 (exit $ac_status); }; } &&
16192 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16194 (eval $ac_try) 2>&5
16195 ac_status=$?
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); }; }; then
16198 ac_hi=-1 ac_mid=-1
16199 while :; do
16200 cat >conftest.$ac_ext <<_ACEOF
16201/* confdefs.h. */
16202_ACEOF
16203cat confdefs.h >>conftest.$ac_ext
16204cat >>conftest.$ac_ext <<_ACEOF
16205/* end confdefs.h. */
16206$ac_includes_default
16207int
16208main ()
16209{
16210static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16211test_array [0] = 0
16212
16213 ;
16214 return 0;
16215}
16216_ACEOF
16217rm -f conftest.$ac_objext
16218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16219 (eval $ac_compile) 2>conftest.er1
a848cd7e 16220 ac_status=$?
ac1cb8d3
VS
16221 grep -v '^ *+' conftest.er1 >conftest.err
16222 rm -f conftest.er1
16223 cat conftest.err >&5
a848cd7e
SC
16224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); } &&
6ebeb4c7 16226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16228 (eval $ac_try) 2>&5
16229 ac_status=$?
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); }; } &&
16232 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16234 (eval $ac_try) 2>&5
16235 ac_status=$?
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); }; }; then
16238 ac_lo=$ac_mid; break
16239else
16240 echo "$as_me: failed program was:" >&5
16241sed 's/^/| /' conftest.$ac_ext >&5
16242
16243ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16244 if test $ac_mid -le $ac_hi; then
16245 ac_lo= ac_hi=
16246 break
16247 fi
16248 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16249fi
ac1cb8d3 16250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16251 done
16252else
16253 echo "$as_me: failed program was:" >&5
16254sed 's/^/| /' conftest.$ac_ext >&5
16255
16256ac_lo= ac_hi=
16257fi
ac1cb8d3 16258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16259fi
ac1cb8d3 16260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16261# Binary search between lo and hi bounds.
16262while test "x$ac_lo" != "x$ac_hi"; do
16263 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16264 cat >conftest.$ac_ext <<_ACEOF
16265/* confdefs.h. */
16266_ACEOF
16267cat confdefs.h >>conftest.$ac_ext
16268cat >>conftest.$ac_ext <<_ACEOF
16269/* end confdefs.h. */
16270$ac_includes_default
16271int
16272main ()
16273{
16274static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16275test_array [0] = 0
16276
16277 ;
16278 return 0;
16279}
16280_ACEOF
16281rm -f conftest.$ac_objext
16282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16283 (eval $ac_compile) 2>conftest.er1
a848cd7e 16284 ac_status=$?
ac1cb8d3
VS
16285 grep -v '^ *+' conftest.er1 >conftest.err
16286 rm -f conftest.er1
16287 cat conftest.err >&5
a848cd7e
SC
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); } &&
6ebeb4c7 16290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16292 (eval $ac_try) 2>&5
16293 ac_status=$?
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); }; } &&
16296 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16298 (eval $ac_try) 2>&5
16299 ac_status=$?
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); }; }; then
16302 ac_hi=$ac_mid
16303else
16304 echo "$as_me: failed program was:" >&5
16305sed 's/^/| /' conftest.$ac_ext >&5
16306
16307ac_lo=`expr '(' $ac_mid ')' + 1`
16308fi
ac1cb8d3 16309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16310done
16311case $ac_lo in
16312?*) ac_cv_sizeof_short=$ac_lo;;
16313'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16314See \`config.log' for more details." >&5
16315echo "$as_me: error: cannot compute sizeof (short), 77
16316See \`config.log' for more details." >&2;}
16317 { (exit 1); exit 1; }; } ;;
16318esac
16319else
16320 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
16321 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16322echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16323 { (exit 1); exit 1; }; }
16324else
16325 cat >conftest.$ac_ext <<_ACEOF
16326/* confdefs.h. */
16327_ACEOF
16328cat confdefs.h >>conftest.$ac_ext
16329cat >>conftest.$ac_ext <<_ACEOF
16330/* end confdefs.h. */
16331$ac_includes_default
16332long longval () { return (long) (sizeof (short)); }
16333unsigned long ulongval () { return (long) (sizeof (short)); }
16334#include <stdio.h>
16335#include <stdlib.h>
16336int
16337main ()
16338{
16339
16340 FILE *f = fopen ("conftest.val", "w");
16341 if (! f)
16342 exit (1);
16343 if (((long) (sizeof (short))) < 0)
16344 {
16345 long i = longval ();
16346 if (i != ((long) (sizeof (short))))
16347 exit (1);
16348 fprintf (f, "%ld\n", i);
16349 }
16350 else
16351 {
16352 unsigned long i = ulongval ();
16353 if (i != ((long) (sizeof (short))))
16354 exit (1);
16355 fprintf (f, "%lu\n", i);
16356 }
16357 exit (ferror (f) || fclose (f) != 0);
16358
16359 ;
16360 return 0;
16361}
16362_ACEOF
16363rm -f conftest$ac_exeext
16364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16365 (eval $ac_link) 2>&5
16366 ac_status=$?
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16370 (eval $ac_try) 2>&5
16371 ac_status=$?
16372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); }; }; then
16374 ac_cv_sizeof_short=`cat conftest.val`
16375else
16376 echo "$as_me: program exited with status $ac_status" >&5
16377echo "$as_me: failed program was:" >&5
16378sed 's/^/| /' conftest.$ac_ext >&5
16379
16380( exit $ac_status )
16381{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16382See \`config.log' for more details." >&5
16383echo "$as_me: error: cannot compute sizeof (short), 77
16384See \`config.log' for more details." >&2;}
16385 { (exit 1); exit 1; }; }
16386fi
ac1cb8d3 16387rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16388fi
16389fi
16390rm -f conftest.val
16391else
16392 ac_cv_sizeof_short=0
16393fi
16394fi
16395echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16396echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16397cat >>confdefs.h <<_ACEOF
16398#define SIZEOF_SHORT $ac_cv_sizeof_short
16399_ACEOF
16400
16401
16402echo "$as_me:$LINENO: checking for void *" >&5
16403echo $ECHO_N "checking for void *... $ECHO_C" >&6
16404if test "${ac_cv_type_void_p+set}" = set; then
16405 echo $ECHO_N "(cached) $ECHO_C" >&6
16406else
16407 cat >conftest.$ac_ext <<_ACEOF
16408/* confdefs.h. */
16409_ACEOF
16410cat confdefs.h >>conftest.$ac_ext
16411cat >>conftest.$ac_ext <<_ACEOF
16412/* end confdefs.h. */
16413$ac_includes_default
16414int
16415main ()
16416{
16417if ((void * *) 0)
16418 return 0;
16419if (sizeof (void *))
16420 return 0;
16421 ;
16422 return 0;
16423}
16424_ACEOF
16425rm -f conftest.$ac_objext
16426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16427 (eval $ac_compile) 2>conftest.er1
a848cd7e 16428 ac_status=$?
ac1cb8d3
VS
16429 grep -v '^ *+' conftest.er1 >conftest.err
16430 rm -f conftest.er1
16431 cat conftest.err >&5
a848cd7e
SC
16432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 (exit $ac_status); } &&
6ebeb4c7 16434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16436 (eval $ac_try) 2>&5
16437 ac_status=$?
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); }; } &&
16440 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16442 (eval $ac_try) 2>&5
16443 ac_status=$?
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); }; }; then
16446 ac_cv_type_void_p=yes
16447else
16448 echo "$as_me: failed program was:" >&5
16449sed 's/^/| /' conftest.$ac_ext >&5
16450
16451ac_cv_type_void_p=no
16452fi
ac1cb8d3 16453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16454fi
16455echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16456echo "${ECHO_T}$ac_cv_type_void_p" >&6
16457
16458echo "$as_me:$LINENO: checking size of void *" >&5
16459echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16460if test "${ac_cv_sizeof_void_p+set}" = set; then
16461 echo $ECHO_N "(cached) $ECHO_C" >&6
16462else
16463 if test "$ac_cv_type_void_p" = yes; then
16464 # The cast to unsigned long works around a bug in the HP C Compiler
16465 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16466 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16467 # This bug is HP SR number 8606223364.
16468 if test "$cross_compiling" = yes; then
16469 # Depending upon the size, compute the lo and hi bounds.
16470cat >conftest.$ac_ext <<_ACEOF
16471/* confdefs.h. */
16472_ACEOF
16473cat confdefs.h >>conftest.$ac_ext
16474cat >>conftest.$ac_ext <<_ACEOF
16475/* end confdefs.h. */
16476$ac_includes_default
16477int
16478main ()
16479{
16480static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
16481test_array [0] = 0
16482
16483 ;
16484 return 0;
16485}
16486_ACEOF
16487rm -f conftest.$ac_objext
16488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16489 (eval $ac_compile) 2>conftest.er1
a848cd7e 16490 ac_status=$?
ac1cb8d3
VS
16491 grep -v '^ *+' conftest.er1 >conftest.err
16492 rm -f conftest.er1
16493 cat conftest.err >&5
a848cd7e
SC
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); } &&
6ebeb4c7 16496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16498 (eval $ac_try) 2>&5
16499 ac_status=$?
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); }; } &&
16502 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16504 (eval $ac_try) 2>&5
16505 ac_status=$?
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); }; }; then
16508 ac_lo=0 ac_mid=0
16509 while :; do
16510 cat >conftest.$ac_ext <<_ACEOF
16511/* confdefs.h. */
16512_ACEOF
16513cat confdefs.h >>conftest.$ac_ext
16514cat >>conftest.$ac_ext <<_ACEOF
16515/* end confdefs.h. */
16516$ac_includes_default
16517int
16518main ()
16519{
16520static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16521test_array [0] = 0
16522
16523 ;
16524 return 0;
16525}
16526_ACEOF
16527rm -f conftest.$ac_objext
16528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16529 (eval $ac_compile) 2>conftest.er1
a848cd7e 16530 ac_status=$?
ac1cb8d3
VS
16531 grep -v '^ *+' conftest.er1 >conftest.err
16532 rm -f conftest.er1
16533 cat conftest.err >&5
a848cd7e
SC
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); } &&
6ebeb4c7 16536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16538 (eval $ac_try) 2>&5
16539 ac_status=$?
16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541 (exit $ac_status); }; } &&
16542 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16544 (eval $ac_try) 2>&5
16545 ac_status=$?
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); }; }; then
16548 ac_hi=$ac_mid; break
16549else
16550 echo "$as_me: failed program was:" >&5
16551sed 's/^/| /' conftest.$ac_ext >&5
16552
16553ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16554 if test $ac_lo -le $ac_mid; then
16555 ac_lo= ac_hi=
16556 break
16557 fi
16558 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16559fi
ac1cb8d3 16560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16561 done
16562else
16563 echo "$as_me: failed program was:" >&5
16564sed 's/^/| /' conftest.$ac_ext >&5
16565
16566cat >conftest.$ac_ext <<_ACEOF
16567/* confdefs.h. */
16568_ACEOF
16569cat confdefs.h >>conftest.$ac_ext
16570cat >>conftest.$ac_ext <<_ACEOF
16571/* end confdefs.h. */
16572$ac_includes_default
16573int
16574main ()
16575{
16576static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
16577test_array [0] = 0
16578
16579 ;
16580 return 0;
16581}
16582_ACEOF
16583rm -f conftest.$ac_objext
16584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16585 (eval $ac_compile) 2>conftest.er1
a848cd7e 16586 ac_status=$?
ac1cb8d3
VS
16587 grep -v '^ *+' conftest.er1 >conftest.err
16588 rm -f conftest.er1
16589 cat conftest.err >&5
a848cd7e
SC
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); } &&
6ebeb4c7 16592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16594 (eval $ac_try) 2>&5
16595 ac_status=$?
16596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597 (exit $ac_status); }; } &&
16598 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16600 (eval $ac_try) 2>&5
16601 ac_status=$?
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); }; }; then
16604 ac_hi=-1 ac_mid=-1
16605 while :; do
16606 cat >conftest.$ac_ext <<_ACEOF
16607/* confdefs.h. */
16608_ACEOF
16609cat confdefs.h >>conftest.$ac_ext
16610cat >>conftest.$ac_ext <<_ACEOF
16611/* end confdefs.h. */
16612$ac_includes_default
16613int
16614main ()
16615{
16616static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
16617test_array [0] = 0
16618
16619 ;
16620 return 0;
16621}
16622_ACEOF
16623rm -f conftest.$ac_objext
16624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16625 (eval $ac_compile) 2>conftest.er1
a848cd7e 16626 ac_status=$?
ac1cb8d3
VS
16627 grep -v '^ *+' conftest.er1 >conftest.err
16628 rm -f conftest.er1
16629 cat conftest.err >&5
a848cd7e
SC
16630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); } &&
6ebeb4c7 16632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16634 (eval $ac_try) 2>&5
16635 ac_status=$?
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); }; } &&
16638 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16640 (eval $ac_try) 2>&5
16641 ac_status=$?
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); }; }; then
16644 ac_lo=$ac_mid; break
16645else
16646 echo "$as_me: failed program was:" >&5
16647sed 's/^/| /' conftest.$ac_ext >&5
16648
16649ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16650 if test $ac_mid -le $ac_hi; then
16651 ac_lo= ac_hi=
16652 break
16653 fi
16654 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16655fi
ac1cb8d3 16656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16657 done
16658else
16659 echo "$as_me: failed program was:" >&5
16660sed 's/^/| /' conftest.$ac_ext >&5
16661
16662ac_lo= ac_hi=
16663fi
ac1cb8d3 16664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16665fi
ac1cb8d3 16666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16667# Binary search between lo and hi bounds.
16668while test "x$ac_lo" != "x$ac_hi"; do
16669 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16670 cat >conftest.$ac_ext <<_ACEOF
16671/* confdefs.h. */
16672_ACEOF
16673cat confdefs.h >>conftest.$ac_ext
16674cat >>conftest.$ac_ext <<_ACEOF
16675/* end confdefs.h. */
16676$ac_includes_default
16677int
16678main ()
16679{
16680static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16681test_array [0] = 0
16682
16683 ;
16684 return 0;
16685}
16686_ACEOF
16687rm -f conftest.$ac_objext
16688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16689 (eval $ac_compile) 2>conftest.er1
a848cd7e 16690 ac_status=$?
ac1cb8d3
VS
16691 grep -v '^ *+' conftest.er1 >conftest.err
16692 rm -f conftest.er1
16693 cat conftest.err >&5
a848cd7e
SC
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); } &&
6ebeb4c7 16696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16698 (eval $ac_try) 2>&5
16699 ac_status=$?
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); }; } &&
16702 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16704 (eval $ac_try) 2>&5
16705 ac_status=$?
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); }; }; then
16708 ac_hi=$ac_mid
16709else
16710 echo "$as_me: failed program was:" >&5
16711sed 's/^/| /' conftest.$ac_ext >&5
16712
16713ac_lo=`expr '(' $ac_mid ')' + 1`
16714fi
ac1cb8d3 16715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16716done
16717case $ac_lo in
16718?*) ac_cv_sizeof_void_p=$ac_lo;;
16719'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16720See \`config.log' for more details." >&5
16721echo "$as_me: error: cannot compute sizeof (void *), 77
16722See \`config.log' for more details." >&2;}
16723 { (exit 1); exit 1; }; } ;;
16724esac
16725else
16726 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
16727 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16728echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16729 { (exit 1); exit 1; }; }
16730else
16731 cat >conftest.$ac_ext <<_ACEOF
16732/* confdefs.h. */
16733_ACEOF
16734cat confdefs.h >>conftest.$ac_ext
16735cat >>conftest.$ac_ext <<_ACEOF
16736/* end confdefs.h. */
16737$ac_includes_default
16738long longval () { return (long) (sizeof (void *)); }
16739unsigned long ulongval () { return (long) (sizeof (void *)); }
16740#include <stdio.h>
16741#include <stdlib.h>
16742int
16743main ()
16744{
16745
16746 FILE *f = fopen ("conftest.val", "w");
16747 if (! f)
16748 exit (1);
16749 if (((long) (sizeof (void *))) < 0)
16750 {
16751 long i = longval ();
16752 if (i != ((long) (sizeof (void *))))
16753 exit (1);
16754 fprintf (f, "%ld\n", i);
16755 }
16756 else
16757 {
16758 unsigned long i = ulongval ();
16759 if (i != ((long) (sizeof (void *))))
16760 exit (1);
16761 fprintf (f, "%lu\n", i);
16762 }
16763 exit (ferror (f) || fclose (f) != 0);
16764
16765 ;
16766 return 0;
16767}
16768_ACEOF
16769rm -f conftest$ac_exeext
16770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16771 (eval $ac_link) 2>&5
16772 ac_status=$?
16773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16776 (eval $ac_try) 2>&5
16777 ac_status=$?
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); }; }; then
16780 ac_cv_sizeof_void_p=`cat conftest.val`
16781else
16782 echo "$as_me: program exited with status $ac_status" >&5
16783echo "$as_me: failed program was:" >&5
16784sed 's/^/| /' conftest.$ac_ext >&5
16785
16786( exit $ac_status )
16787{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16788See \`config.log' for more details." >&5
16789echo "$as_me: error: cannot compute sizeof (void *), 77
16790See \`config.log' for more details." >&2;}
16791 { (exit 1); exit 1; }; }
16792fi
ac1cb8d3 16793rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16794fi
16795fi
16796rm -f conftest.val
16797else
16798 ac_cv_sizeof_void_p=0
16799fi
16800fi
16801echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16802echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16803cat >>confdefs.h <<_ACEOF
16804#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16805_ACEOF
16806
16807
16808echo "$as_me:$LINENO: checking for int" >&5
16809echo $ECHO_N "checking for int... $ECHO_C" >&6
16810if test "${ac_cv_type_int+set}" = set; then
16811 echo $ECHO_N "(cached) $ECHO_C" >&6
16812else
16813 cat >conftest.$ac_ext <<_ACEOF
16814/* confdefs.h. */
16815_ACEOF
16816cat confdefs.h >>conftest.$ac_ext
16817cat >>conftest.$ac_ext <<_ACEOF
16818/* end confdefs.h. */
16819$ac_includes_default
16820int
16821main ()
16822{
16823if ((int *) 0)
16824 return 0;
16825if (sizeof (int))
16826 return 0;
16827 ;
16828 return 0;
16829}
16830_ACEOF
16831rm -f conftest.$ac_objext
16832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16833 (eval $ac_compile) 2>conftest.er1
a848cd7e 16834 ac_status=$?
ac1cb8d3
VS
16835 grep -v '^ *+' conftest.er1 >conftest.err
16836 rm -f conftest.er1
16837 cat conftest.err >&5
a848cd7e
SC
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); } &&
6ebeb4c7 16840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16842 (eval $ac_try) 2>&5
16843 ac_status=$?
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); }; } &&
16846 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848 (eval $ac_try) 2>&5
16849 ac_status=$?
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; }; then
16852 ac_cv_type_int=yes
16853else
16854 echo "$as_me: failed program was:" >&5
16855sed 's/^/| /' conftest.$ac_ext >&5
16856
16857ac_cv_type_int=no
16858fi
ac1cb8d3 16859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16860fi
16861echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16862echo "${ECHO_T}$ac_cv_type_int" >&6
16863
16864echo "$as_me:$LINENO: checking size of int" >&5
16865echo $ECHO_N "checking size of int... $ECHO_C" >&6
16866if test "${ac_cv_sizeof_int+set}" = set; then
16867 echo $ECHO_N "(cached) $ECHO_C" >&6
16868else
16869 if test "$ac_cv_type_int" = yes; then
16870 # The cast to unsigned long works around a bug in the HP C Compiler
16871 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16872 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16873 # This bug is HP SR number 8606223364.
16874 if test "$cross_compiling" = yes; then
16875 # Depending upon the size, compute the lo and hi bounds.
16876cat >conftest.$ac_ext <<_ACEOF
16877/* confdefs.h. */
16878_ACEOF
16879cat confdefs.h >>conftest.$ac_ext
16880cat >>conftest.$ac_ext <<_ACEOF
16881/* end confdefs.h. */
16882$ac_includes_default
16883int
16884main ()
16885{
16886static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
16887test_array [0] = 0
16888
16889 ;
16890 return 0;
16891}
16892_ACEOF
16893rm -f conftest.$ac_objext
16894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16895 (eval $ac_compile) 2>conftest.er1
a848cd7e 16896 ac_status=$?
ac1cb8d3
VS
16897 grep -v '^ *+' conftest.er1 >conftest.err
16898 rm -f conftest.er1
16899 cat conftest.err >&5
a848cd7e
SC
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); } &&
6ebeb4c7 16902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16904 (eval $ac_try) 2>&5
16905 ac_status=$?
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); }; } &&
16908 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16910 (eval $ac_try) 2>&5
16911 ac_status=$?
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); }; }; then
16914 ac_lo=0 ac_mid=0
16915 while :; do
16916 cat >conftest.$ac_ext <<_ACEOF
16917/* confdefs.h. */
16918_ACEOF
16919cat confdefs.h >>conftest.$ac_ext
16920cat >>conftest.$ac_ext <<_ACEOF
16921/* end confdefs.h. */
16922$ac_includes_default
16923int
16924main ()
16925{
16926static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16927test_array [0] = 0
16928
16929 ;
16930 return 0;
16931}
16932_ACEOF
16933rm -f conftest.$ac_objext
16934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16935 (eval $ac_compile) 2>conftest.er1
a848cd7e 16936 ac_status=$?
ac1cb8d3
VS
16937 grep -v '^ *+' conftest.er1 >conftest.err
16938 rm -f conftest.er1
16939 cat conftest.err >&5
a848cd7e
SC
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); } &&
6ebeb4c7 16942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16944 (eval $ac_try) 2>&5
16945 ac_status=$?
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); }; } &&
16948 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16950 (eval $ac_try) 2>&5
16951 ac_status=$?
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); }; }; then
16954 ac_hi=$ac_mid; break
16955else
16956 echo "$as_me: failed program was:" >&5
16957sed 's/^/| /' conftest.$ac_ext >&5
16958
16959ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16960 if test $ac_lo -le $ac_mid; then
16961 ac_lo= ac_hi=
16962 break
16963 fi
16964 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16965fi
ac1cb8d3 16966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16967 done
16968else
16969 echo "$as_me: failed program was:" >&5
16970sed 's/^/| /' conftest.$ac_ext >&5
16971
16972cat >conftest.$ac_ext <<_ACEOF
16973/* confdefs.h. */
16974_ACEOF
16975cat confdefs.h >>conftest.$ac_ext
16976cat >>conftest.$ac_ext <<_ACEOF
16977/* end confdefs.h. */
16978$ac_includes_default
16979int
16980main ()
16981{
16982static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
16983test_array [0] = 0
16984
16985 ;
16986 return 0;
16987}
16988_ACEOF
16989rm -f conftest.$ac_objext
16990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16991 (eval $ac_compile) 2>conftest.er1
a848cd7e 16992 ac_status=$?
ac1cb8d3
VS
16993 grep -v '^ *+' conftest.er1 >conftest.err
16994 rm -f conftest.er1
16995 cat conftest.err >&5
a848cd7e
SC
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); } &&
6ebeb4c7 16998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17000 (eval $ac_try) 2>&5
17001 ac_status=$?
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); }; } &&
17004 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17006 (eval $ac_try) 2>&5
17007 ac_status=$?
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); }; }; then
17010 ac_hi=-1 ac_mid=-1
17011 while :; do
17012 cat >conftest.$ac_ext <<_ACEOF
17013/* confdefs.h. */
17014_ACEOF
17015cat confdefs.h >>conftest.$ac_ext
17016cat >>conftest.$ac_ext <<_ACEOF
17017/* end confdefs.h. */
17018$ac_includes_default
17019int
17020main ()
17021{
17022static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
17023test_array [0] = 0
17024
17025 ;
17026 return 0;
17027}
17028_ACEOF
17029rm -f conftest.$ac_objext
17030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17031 (eval $ac_compile) 2>conftest.er1
a848cd7e 17032 ac_status=$?
ac1cb8d3
VS
17033 grep -v '^ *+' conftest.er1 >conftest.err
17034 rm -f conftest.er1
17035 cat conftest.err >&5
a848cd7e
SC
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); } &&
6ebeb4c7 17038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17040 (eval $ac_try) 2>&5
17041 ac_status=$?
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); }; } &&
17044 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17046 (eval $ac_try) 2>&5
17047 ac_status=$?
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); }; }; then
17050 ac_lo=$ac_mid; break
17051else
17052 echo "$as_me: failed program was:" >&5
17053sed 's/^/| /' conftest.$ac_ext >&5
17054
17055ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17056 if test $ac_mid -le $ac_hi; then
17057 ac_lo= ac_hi=
17058 break
17059 fi
17060 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17061fi
ac1cb8d3 17062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17063 done
17064else
17065 echo "$as_me: failed program was:" >&5
17066sed 's/^/| /' conftest.$ac_ext >&5
17067
17068ac_lo= ac_hi=
17069fi
ac1cb8d3 17070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17071fi
ac1cb8d3 17072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17073# Binary search between lo and hi bounds.
17074while test "x$ac_lo" != "x$ac_hi"; do
17075 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17076 cat >conftest.$ac_ext <<_ACEOF
17077/* confdefs.h. */
17078_ACEOF
17079cat confdefs.h >>conftest.$ac_ext
17080cat >>conftest.$ac_ext <<_ACEOF
17081/* end confdefs.h. */
17082$ac_includes_default
17083int
17084main ()
17085{
17086static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17087test_array [0] = 0
17088
17089 ;
17090 return 0;
17091}
17092_ACEOF
17093rm -f conftest.$ac_objext
17094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17095 (eval $ac_compile) 2>conftest.er1
a848cd7e 17096 ac_status=$?
ac1cb8d3
VS
17097 grep -v '^ *+' conftest.er1 >conftest.err
17098 rm -f conftest.er1
17099 cat conftest.err >&5
a848cd7e
SC
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); } &&
6ebeb4c7 17102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17104 (eval $ac_try) 2>&5
17105 ac_status=$?
17106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107 (exit $ac_status); }; } &&
17108 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17110 (eval $ac_try) 2>&5
17111 ac_status=$?
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); }; }; then
17114 ac_hi=$ac_mid
17115else
17116 echo "$as_me: failed program was:" >&5
17117sed 's/^/| /' conftest.$ac_ext >&5
17118
17119ac_lo=`expr '(' $ac_mid ')' + 1`
17120fi
ac1cb8d3 17121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17122done
17123case $ac_lo in
17124?*) ac_cv_sizeof_int=$ac_lo;;
17125'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17126See \`config.log' for more details." >&5
17127echo "$as_me: error: cannot compute sizeof (int), 77
17128See \`config.log' for more details." >&2;}
17129 { (exit 1); exit 1; }; } ;;
17130esac
17131else
17132 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
17133 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17134echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17135 { (exit 1); exit 1; }; }
17136else
17137 cat >conftest.$ac_ext <<_ACEOF
17138/* confdefs.h. */
17139_ACEOF
17140cat confdefs.h >>conftest.$ac_ext
17141cat >>conftest.$ac_ext <<_ACEOF
17142/* end confdefs.h. */
17143$ac_includes_default
17144long longval () { return (long) (sizeof (int)); }
17145unsigned long ulongval () { return (long) (sizeof (int)); }
17146#include <stdio.h>
17147#include <stdlib.h>
17148int
17149main ()
17150{
17151
17152 FILE *f = fopen ("conftest.val", "w");
17153 if (! f)
17154 exit (1);
17155 if (((long) (sizeof (int))) < 0)
17156 {
17157 long i = longval ();
17158 if (i != ((long) (sizeof (int))))
17159 exit (1);
17160 fprintf (f, "%ld\n", i);
17161 }
17162 else
17163 {
17164 unsigned long i = ulongval ();
17165 if (i != ((long) (sizeof (int))))
17166 exit (1);
17167 fprintf (f, "%lu\n", i);
17168 }
17169 exit (ferror (f) || fclose (f) != 0);
17170
17171 ;
17172 return 0;
17173}
17174_ACEOF
17175rm -f conftest$ac_exeext
17176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17177 (eval $ac_link) 2>&5
17178 ac_status=$?
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17182 (eval $ac_try) 2>&5
17183 ac_status=$?
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); }; }; then
17186 ac_cv_sizeof_int=`cat conftest.val`
17187else
17188 echo "$as_me: program exited with status $ac_status" >&5
17189echo "$as_me: failed program was:" >&5
17190sed 's/^/| /' conftest.$ac_ext >&5
17191
17192( exit $ac_status )
17193{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17194See \`config.log' for more details." >&5
17195echo "$as_me: error: cannot compute sizeof (int), 77
17196See \`config.log' for more details." >&2;}
17197 { (exit 1); exit 1; }; }
17198fi
ac1cb8d3 17199rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17200fi
17201fi
17202rm -f conftest.val
17203else
17204 ac_cv_sizeof_int=0
17205fi
17206fi
17207echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17208echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17209cat >>confdefs.h <<_ACEOF
17210#define SIZEOF_INT $ac_cv_sizeof_int
17211_ACEOF
17212
17213
17214echo "$as_me:$LINENO: checking for long" >&5
17215echo $ECHO_N "checking for long... $ECHO_C" >&6
17216if test "${ac_cv_type_long+set}" = set; then
17217 echo $ECHO_N "(cached) $ECHO_C" >&6
17218else
17219 cat >conftest.$ac_ext <<_ACEOF
17220/* confdefs.h. */
17221_ACEOF
17222cat confdefs.h >>conftest.$ac_ext
17223cat >>conftest.$ac_ext <<_ACEOF
17224/* end confdefs.h. */
17225$ac_includes_default
17226int
17227main ()
17228{
17229if ((long *) 0)
17230 return 0;
17231if (sizeof (long))
17232 return 0;
17233 ;
17234 return 0;
17235}
17236_ACEOF
17237rm -f conftest.$ac_objext
17238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17239 (eval $ac_compile) 2>conftest.er1
a848cd7e 17240 ac_status=$?
ac1cb8d3
VS
17241 grep -v '^ *+' conftest.er1 >conftest.err
17242 rm -f conftest.er1
17243 cat conftest.err >&5
a848cd7e
SC
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); } &&
6ebeb4c7 17246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17248 (eval $ac_try) 2>&5
17249 ac_status=$?
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); }; } &&
17252 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17254 (eval $ac_try) 2>&5
17255 ac_status=$?
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; }; then
17258 ac_cv_type_long=yes
17259else
17260 echo "$as_me: failed program was:" >&5
17261sed 's/^/| /' conftest.$ac_ext >&5
17262
17263ac_cv_type_long=no
17264fi
ac1cb8d3 17265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17266fi
17267echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17268echo "${ECHO_T}$ac_cv_type_long" >&6
17269
17270echo "$as_me:$LINENO: checking size of long" >&5
17271echo $ECHO_N "checking size of long... $ECHO_C" >&6
17272if test "${ac_cv_sizeof_long+set}" = set; then
17273 echo $ECHO_N "(cached) $ECHO_C" >&6
17274else
17275 if test "$ac_cv_type_long" = yes; then
17276 # The cast to unsigned long works around a bug in the HP C Compiler
17277 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17278 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17279 # This bug is HP SR number 8606223364.
17280 if test "$cross_compiling" = yes; then
17281 # Depending upon the size, compute the lo and hi bounds.
17282cat >conftest.$ac_ext <<_ACEOF
17283/* confdefs.h. */
17284_ACEOF
17285cat confdefs.h >>conftest.$ac_ext
17286cat >>conftest.$ac_ext <<_ACEOF
17287/* end confdefs.h. */
17288$ac_includes_default
17289int
17290main ()
17291{
17292static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17293test_array [0] = 0
17294
17295 ;
17296 return 0;
17297}
17298_ACEOF
17299rm -f conftest.$ac_objext
17300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17301 (eval $ac_compile) 2>conftest.er1
a848cd7e 17302 ac_status=$?
ac1cb8d3
VS
17303 grep -v '^ *+' conftest.er1 >conftest.err
17304 rm -f conftest.er1
17305 cat conftest.err >&5
a848cd7e
SC
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); } &&
6ebeb4c7 17308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17310 (eval $ac_try) 2>&5
17311 ac_status=$?
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); }; } &&
17314 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17316 (eval $ac_try) 2>&5
17317 ac_status=$?
17318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319 (exit $ac_status); }; }; then
17320 ac_lo=0 ac_mid=0
17321 while :; do
17322 cat >conftest.$ac_ext <<_ACEOF
17323/* confdefs.h. */
17324_ACEOF
17325cat confdefs.h >>conftest.$ac_ext
17326cat >>conftest.$ac_ext <<_ACEOF
17327/* end confdefs.h. */
17328$ac_includes_default
17329int
17330main ()
17331{
17332static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17333test_array [0] = 0
17334
17335 ;
17336 return 0;
17337}
17338_ACEOF
17339rm -f conftest.$ac_objext
17340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17341 (eval $ac_compile) 2>conftest.er1
a848cd7e 17342 ac_status=$?
ac1cb8d3
VS
17343 grep -v '^ *+' conftest.er1 >conftest.err
17344 rm -f conftest.er1
17345 cat conftest.err >&5
a848cd7e
SC
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); } &&
6ebeb4c7 17348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17350 (eval $ac_try) 2>&5
17351 ac_status=$?
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); }; } &&
17354 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17356 (eval $ac_try) 2>&5
17357 ac_status=$?
17358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359 (exit $ac_status); }; }; then
17360 ac_hi=$ac_mid; break
17361else
17362 echo "$as_me: failed program was:" >&5
17363sed 's/^/| /' conftest.$ac_ext >&5
17364
17365ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17366 if test $ac_lo -le $ac_mid; then
17367 ac_lo= ac_hi=
17368 break
17369 fi
17370 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17371fi
ac1cb8d3 17372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17373 done
17374else
17375 echo "$as_me: failed program was:" >&5
17376sed 's/^/| /' conftest.$ac_ext >&5
17377
17378cat >conftest.$ac_ext <<_ACEOF
17379/* confdefs.h. */
17380_ACEOF
17381cat confdefs.h >>conftest.$ac_ext
17382cat >>conftest.$ac_ext <<_ACEOF
17383/* end confdefs.h. */
17384$ac_includes_default
17385int
17386main ()
17387{
17388static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17389test_array [0] = 0
17390
17391 ;
17392 return 0;
17393}
17394_ACEOF
17395rm -f conftest.$ac_objext
17396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17397 (eval $ac_compile) 2>conftest.er1
a848cd7e 17398 ac_status=$?
ac1cb8d3
VS
17399 grep -v '^ *+' conftest.er1 >conftest.err
17400 rm -f conftest.er1
17401 cat conftest.err >&5
a848cd7e
SC
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); } &&
6ebeb4c7 17404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17406 (eval $ac_try) 2>&5
17407 ac_status=$?
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); }; } &&
17410 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17412 (eval $ac_try) 2>&5
17413 ac_status=$?
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); }; }; then
17416 ac_hi=-1 ac_mid=-1
17417 while :; do
17418 cat >conftest.$ac_ext <<_ACEOF
17419/* confdefs.h. */
17420_ACEOF
17421cat confdefs.h >>conftest.$ac_ext
17422cat >>conftest.$ac_ext <<_ACEOF
17423/* end confdefs.h. */
17424$ac_includes_default
17425int
17426main ()
17427{
17428static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17429test_array [0] = 0
17430
17431 ;
17432 return 0;
17433}
17434_ACEOF
17435rm -f conftest.$ac_objext
17436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17437 (eval $ac_compile) 2>conftest.er1
a848cd7e 17438 ac_status=$?
ac1cb8d3
VS
17439 grep -v '^ *+' conftest.er1 >conftest.err
17440 rm -f conftest.er1
17441 cat conftest.err >&5
a848cd7e
SC
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); } &&
6ebeb4c7 17444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17446 (eval $ac_try) 2>&5
17447 ac_status=$?
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); }; } &&
17450 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17452 (eval $ac_try) 2>&5
17453 ac_status=$?
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); }; }; then
17456 ac_lo=$ac_mid; break
17457else
17458 echo "$as_me: failed program was:" >&5
17459sed 's/^/| /' conftest.$ac_ext >&5
17460
17461ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17462 if test $ac_mid -le $ac_hi; then
17463 ac_lo= ac_hi=
17464 break
17465 fi
17466 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17467fi
ac1cb8d3 17468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17469 done
17470else
17471 echo "$as_me: failed program was:" >&5
17472sed 's/^/| /' conftest.$ac_ext >&5
17473
17474ac_lo= ac_hi=
17475fi
ac1cb8d3 17476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17477fi
ac1cb8d3 17478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17479# Binary search between lo and hi bounds.
17480while test "x$ac_lo" != "x$ac_hi"; do
17481 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17482 cat >conftest.$ac_ext <<_ACEOF
17483/* confdefs.h. */
17484_ACEOF
17485cat confdefs.h >>conftest.$ac_ext
17486cat >>conftest.$ac_ext <<_ACEOF
17487/* end confdefs.h. */
17488$ac_includes_default
17489int
17490main ()
17491{
17492static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17493test_array [0] = 0
17494
17495 ;
17496 return 0;
17497}
17498_ACEOF
17499rm -f conftest.$ac_objext
17500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17501 (eval $ac_compile) 2>conftest.er1
a848cd7e 17502 ac_status=$?
ac1cb8d3
VS
17503 grep -v '^ *+' conftest.er1 >conftest.err
17504 rm -f conftest.er1
17505 cat conftest.err >&5
a848cd7e
SC
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); } &&
6ebeb4c7 17508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17510 (eval $ac_try) 2>&5
17511 ac_status=$?
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }; } &&
17514 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17516 (eval $ac_try) 2>&5
17517 ac_status=$?
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); }; }; then
17520 ac_hi=$ac_mid
17521else
17522 echo "$as_me: failed program was:" >&5
17523sed 's/^/| /' conftest.$ac_ext >&5
17524
17525ac_lo=`expr '(' $ac_mid ')' + 1`
17526fi
ac1cb8d3 17527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17528done
17529case $ac_lo in
17530?*) ac_cv_sizeof_long=$ac_lo;;
17531'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17532See \`config.log' for more details." >&5
17533echo "$as_me: error: cannot compute sizeof (long), 77
17534See \`config.log' for more details." >&2;}
17535 { (exit 1); exit 1; }; } ;;
17536esac
17537else
17538 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
17539 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17540echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17541 { (exit 1); exit 1; }; }
17542else
17543 cat >conftest.$ac_ext <<_ACEOF
17544/* confdefs.h. */
17545_ACEOF
17546cat confdefs.h >>conftest.$ac_ext
17547cat >>conftest.$ac_ext <<_ACEOF
17548/* end confdefs.h. */
17549$ac_includes_default
17550long longval () { return (long) (sizeof (long)); }
17551unsigned long ulongval () { return (long) (sizeof (long)); }
17552#include <stdio.h>
17553#include <stdlib.h>
17554int
17555main ()
17556{
17557
17558 FILE *f = fopen ("conftest.val", "w");
17559 if (! f)
17560 exit (1);
17561 if (((long) (sizeof (long))) < 0)
17562 {
17563 long i = longval ();
17564 if (i != ((long) (sizeof (long))))
17565 exit (1);
17566 fprintf (f, "%ld\n", i);
17567 }
17568 else
17569 {
17570 unsigned long i = ulongval ();
17571 if (i != ((long) (sizeof (long))))
17572 exit (1);
17573 fprintf (f, "%lu\n", i);
17574 }
17575 exit (ferror (f) || fclose (f) != 0);
17576
17577 ;
17578 return 0;
17579}
17580_ACEOF
17581rm -f conftest$ac_exeext
17582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17583 (eval $ac_link) 2>&5
17584 ac_status=$?
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17588 (eval $ac_try) 2>&5
17589 ac_status=$?
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); }; }; then
17592 ac_cv_sizeof_long=`cat conftest.val`
17593else
17594 echo "$as_me: program exited with status $ac_status" >&5
17595echo "$as_me: failed program was:" >&5
17596sed 's/^/| /' conftest.$ac_ext >&5
17597
17598( exit $ac_status )
17599{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17600See \`config.log' for more details." >&5
17601echo "$as_me: error: cannot compute sizeof (long), 77
17602See \`config.log' for more details." >&2;}
17603 { (exit 1); exit 1; }; }
17604fi
ac1cb8d3 17605rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17606fi
17607fi
17608rm -f conftest.val
17609else
17610 ac_cv_sizeof_long=0
17611fi
17612fi
17613echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17614echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17615cat >>confdefs.h <<_ACEOF
17616#define SIZEOF_LONG $ac_cv_sizeof_long
17617_ACEOF
17618
17619
17620echo "$as_me:$LINENO: checking for size_t" >&5
17621echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17622if test "${ac_cv_type_size_t+set}" = set; then
17623 echo $ECHO_N "(cached) $ECHO_C" >&6
17624else
17625 cat >conftest.$ac_ext <<_ACEOF
17626/* confdefs.h. */
17627_ACEOF
17628cat confdefs.h >>conftest.$ac_ext
17629cat >>conftest.$ac_ext <<_ACEOF
17630/* end confdefs.h. */
17631$ac_includes_default
17632int
17633main ()
17634{
17635if ((size_t *) 0)
17636 return 0;
17637if (sizeof (size_t))
17638 return 0;
17639 ;
17640 return 0;
17641}
17642_ACEOF
17643rm -f conftest.$ac_objext
17644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17645 (eval $ac_compile) 2>conftest.er1
a848cd7e 17646 ac_status=$?
ac1cb8d3
VS
17647 grep -v '^ *+' conftest.er1 >conftest.err
17648 rm -f conftest.er1
17649 cat conftest.err >&5
a848cd7e
SC
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); } &&
6ebeb4c7 17652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17654 (eval $ac_try) 2>&5
17655 ac_status=$?
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); }; } &&
17658 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17660 (eval $ac_try) 2>&5
17661 ac_status=$?
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); }; }; then
17664 ac_cv_type_size_t=yes
17665else
17666 echo "$as_me: failed program was:" >&5
17667sed 's/^/| /' conftest.$ac_ext >&5
17668
17669ac_cv_type_size_t=no
17670fi
ac1cb8d3 17671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17672fi
17673echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17674echo "${ECHO_T}$ac_cv_type_size_t" >&6
17675
17676echo "$as_me:$LINENO: checking size of size_t" >&5
17677echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17678if test "${ac_cv_sizeof_size_t+set}" = set; then
17679 echo $ECHO_N "(cached) $ECHO_C" >&6
17680else
17681 if test "$ac_cv_type_size_t" = yes; then
17682 # The cast to unsigned long works around a bug in the HP C Compiler
17683 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17684 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17685 # This bug is HP SR number 8606223364.
17686 if test "$cross_compiling" = yes; then
17687 # Depending upon the size, compute the lo and hi bounds.
17688cat >conftest.$ac_ext <<_ACEOF
17689/* confdefs.h. */
17690_ACEOF
17691cat confdefs.h >>conftest.$ac_ext
17692cat >>conftest.$ac_ext <<_ACEOF
17693/* end confdefs.h. */
17694$ac_includes_default
17695int
17696main ()
17697{
17698static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17699test_array [0] = 0
17700
17701 ;
17702 return 0;
17703}
17704_ACEOF
17705rm -f conftest.$ac_objext
17706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17707 (eval $ac_compile) 2>conftest.er1
a848cd7e 17708 ac_status=$?
ac1cb8d3
VS
17709 grep -v '^ *+' conftest.er1 >conftest.err
17710 rm -f conftest.er1
17711 cat conftest.err >&5
a848cd7e
SC
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); } &&
6ebeb4c7 17714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716 (eval $ac_try) 2>&5
17717 ac_status=$?
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); }; } &&
17720 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17722 (eval $ac_try) 2>&5
17723 ac_status=$?
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); }; }; then
17726 ac_lo=0 ac_mid=0
17727 while :; do
17728 cat >conftest.$ac_ext <<_ACEOF
17729/* confdefs.h. */
17730_ACEOF
17731cat confdefs.h >>conftest.$ac_ext
17732cat >>conftest.$ac_ext <<_ACEOF
17733/* end confdefs.h. */
17734$ac_includes_default
17735int
17736main ()
17737{
17738static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17739test_array [0] = 0
17740
17741 ;
17742 return 0;
17743}
17744_ACEOF
17745rm -f conftest.$ac_objext
17746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17747 (eval $ac_compile) 2>conftest.er1
a848cd7e 17748 ac_status=$?
ac1cb8d3
VS
17749 grep -v '^ *+' conftest.er1 >conftest.err
17750 rm -f conftest.er1
17751 cat conftest.err >&5
a848cd7e
SC
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); } &&
6ebeb4c7 17754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17756 (eval $ac_try) 2>&5
17757 ac_status=$?
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); }; } &&
17760 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762 (eval $ac_try) 2>&5
17763 ac_status=$?
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); }; }; then
17766 ac_hi=$ac_mid; break
17767else
17768 echo "$as_me: failed program was:" >&5
17769sed 's/^/| /' conftest.$ac_ext >&5
17770
17771ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17772 if test $ac_lo -le $ac_mid; then
17773 ac_lo= ac_hi=
17774 break
17775 fi
17776 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17777fi
ac1cb8d3 17778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17779 done
17780else
17781 echo "$as_me: failed program was:" >&5
17782sed 's/^/| /' conftest.$ac_ext >&5
17783
17784cat >conftest.$ac_ext <<_ACEOF
17785/* confdefs.h. */
17786_ACEOF
17787cat confdefs.h >>conftest.$ac_ext
17788cat >>conftest.$ac_ext <<_ACEOF
17789/* end confdefs.h. */
17790$ac_includes_default
17791int
17792main ()
17793{
17794static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17795test_array [0] = 0
17796
17797 ;
17798 return 0;
17799}
17800_ACEOF
17801rm -f conftest.$ac_objext
17802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17803 (eval $ac_compile) 2>conftest.er1
a848cd7e 17804 ac_status=$?
ac1cb8d3
VS
17805 grep -v '^ *+' conftest.er1 >conftest.err
17806 rm -f conftest.er1
17807 cat conftest.err >&5
a848cd7e
SC
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); } &&
6ebeb4c7 17810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17812 (eval $ac_try) 2>&5
17813 ac_status=$?
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); }; } &&
17816 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17818 (eval $ac_try) 2>&5
17819 ac_status=$?
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); }; }; then
17822 ac_hi=-1 ac_mid=-1
17823 while :; do
17824 cat >conftest.$ac_ext <<_ACEOF
17825/* confdefs.h. */
17826_ACEOF
17827cat confdefs.h >>conftest.$ac_ext
17828cat >>conftest.$ac_ext <<_ACEOF
17829/* end confdefs.h. */
17830$ac_includes_default
17831int
17832main ()
17833{
17834static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17835test_array [0] = 0
17836
17837 ;
17838 return 0;
17839}
17840_ACEOF
17841rm -f conftest.$ac_objext
17842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17843 (eval $ac_compile) 2>conftest.er1
a848cd7e 17844 ac_status=$?
ac1cb8d3
VS
17845 grep -v '^ *+' conftest.er1 >conftest.err
17846 rm -f conftest.er1
17847 cat conftest.err >&5
a848cd7e
SC
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } &&
6ebeb4c7 17850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17852 (eval $ac_try) 2>&5
17853 ac_status=$?
17854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855 (exit $ac_status); }; } &&
17856 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17858 (eval $ac_try) 2>&5
17859 ac_status=$?
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); }; }; then
17862 ac_lo=$ac_mid; break
17863else
17864 echo "$as_me: failed program was:" >&5
17865sed 's/^/| /' conftest.$ac_ext >&5
17866
17867ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17868 if test $ac_mid -le $ac_hi; then
17869 ac_lo= ac_hi=
17870 break
17871 fi
17872 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17873fi
ac1cb8d3 17874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17875 done
17876else
17877 echo "$as_me: failed program was:" >&5
17878sed 's/^/| /' conftest.$ac_ext >&5
17879
17880ac_lo= ac_hi=
17881fi
ac1cb8d3 17882rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17883fi
ac1cb8d3 17884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17885# Binary search between lo and hi bounds.
17886while test "x$ac_lo" != "x$ac_hi"; do
17887 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17888 cat >conftest.$ac_ext <<_ACEOF
17889/* confdefs.h. */
17890_ACEOF
17891cat confdefs.h >>conftest.$ac_ext
17892cat >>conftest.$ac_ext <<_ACEOF
17893/* end confdefs.h. */
17894$ac_includes_default
17895int
17896main ()
17897{
17898static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17899test_array [0] = 0
17900
17901 ;
17902 return 0;
17903}
17904_ACEOF
17905rm -f conftest.$ac_objext
17906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17907 (eval $ac_compile) 2>conftest.er1
a848cd7e 17908 ac_status=$?
ac1cb8d3
VS
17909 grep -v '^ *+' conftest.er1 >conftest.err
17910 rm -f conftest.er1
17911 cat conftest.err >&5
a848cd7e
SC
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); } &&
6ebeb4c7 17914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17916 (eval $ac_try) 2>&5
17917 ac_status=$?
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); }; } &&
17920 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17922 (eval $ac_try) 2>&5
17923 ac_status=$?
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); }; }; then
17926 ac_hi=$ac_mid
17927else
17928 echo "$as_me: failed program was:" >&5
17929sed 's/^/| /' conftest.$ac_ext >&5
17930
17931ac_lo=`expr '(' $ac_mid ')' + 1`
17932fi
ac1cb8d3 17933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17934done
17935case $ac_lo in
17936?*) ac_cv_sizeof_size_t=$ac_lo;;
17937'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17938See \`config.log' for more details." >&5
17939echo "$as_me: error: cannot compute sizeof (size_t), 77
17940See \`config.log' for more details." >&2;}
17941 { (exit 1); exit 1; }; } ;;
17942esac
17943else
17944 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
17945 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17946echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17947 { (exit 1); exit 1; }; }
17948else
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
17956long longval () { return (long) (sizeof (size_t)); }
17957unsigned long ulongval () { return (long) (sizeof (size_t)); }
17958#include <stdio.h>
17959#include <stdlib.h>
17960int
17961main ()
17962{
17963
17964 FILE *f = fopen ("conftest.val", "w");
17965 if (! f)
17966 exit (1);
17967 if (((long) (sizeof (size_t))) < 0)
17968 {
17969 long i = longval ();
17970 if (i != ((long) (sizeof (size_t))))
17971 exit (1);
17972 fprintf (f, "%ld\n", i);
17973 }
17974 else
17975 {
17976 unsigned long i = ulongval ();
17977 if (i != ((long) (sizeof (size_t))))
17978 exit (1);
17979 fprintf (f, "%lu\n", i);
17980 }
17981 exit (ferror (f) || fclose (f) != 0);
17982
17983 ;
17984 return 0;
17985}
17986_ACEOF
17987rm -f conftest$ac_exeext
17988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17989 (eval $ac_link) 2>&5
17990 ac_status=$?
17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17994 (eval $ac_try) 2>&5
17995 ac_status=$?
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); }; }; then
17998 ac_cv_sizeof_size_t=`cat conftest.val`
17999else
18000 echo "$as_me: program exited with status $ac_status" >&5
18001echo "$as_me: failed program was:" >&5
18002sed 's/^/| /' conftest.$ac_ext >&5
18003
18004( exit $ac_status )
18005{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18006See \`config.log' for more details." >&5
18007echo "$as_me: error: cannot compute sizeof (size_t), 77
18008See \`config.log' for more details." >&2;}
18009 { (exit 1); exit 1; }; }
18010fi
ac1cb8d3 18011rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18012fi
18013fi
18014rm -f conftest.val
18015else
18016 ac_cv_sizeof_size_t=0
18017fi
18018fi
18019echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
18020echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
18021cat >>confdefs.h <<_ACEOF
18022#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
18023_ACEOF
18024
18025
18026
18027case "${host}" in
18028 arm-*-linux* )
18029 echo "$as_me:$LINENO: checking for long long" >&5
18030echo $ECHO_N "checking for long long... $ECHO_C" >&6
18031if test "${ac_cv_type_long_long+set}" = set; then
18032 echo $ECHO_N "(cached) $ECHO_C" >&6
18033else
18034 cat >conftest.$ac_ext <<_ACEOF
18035/* confdefs.h. */
18036_ACEOF
18037cat confdefs.h >>conftest.$ac_ext
18038cat >>conftest.$ac_ext <<_ACEOF
18039/* end confdefs.h. */
18040$ac_includes_default
18041int
18042main ()
18043{
18044if ((long long *) 0)
18045 return 0;
18046if (sizeof (long long))
18047 return 0;
18048 ;
18049 return 0;
18050}
18051_ACEOF
18052rm -f conftest.$ac_objext
18053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18054 (eval $ac_compile) 2>conftest.er1
a848cd7e 18055 ac_status=$?
ac1cb8d3
VS
18056 grep -v '^ *+' conftest.er1 >conftest.err
18057 rm -f conftest.er1
18058 cat conftest.err >&5
a848cd7e
SC
18059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060 (exit $ac_status); } &&
6ebeb4c7 18061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18063 (eval $ac_try) 2>&5
18064 ac_status=$?
18065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066 (exit $ac_status); }; } &&
18067 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18069 (eval $ac_try) 2>&5
18070 ac_status=$?
18071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 (exit $ac_status); }; }; then
18073 ac_cv_type_long_long=yes
18074else
18075 echo "$as_me: failed program was:" >&5
18076sed 's/^/| /' conftest.$ac_ext >&5
18077
18078ac_cv_type_long_long=no
18079fi
ac1cb8d3 18080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18081fi
18082echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18083echo "${ECHO_T}$ac_cv_type_long_long" >&6
18084
18085echo "$as_me:$LINENO: checking size of long long" >&5
18086echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18087if test "${ac_cv_sizeof_long_long+set}" = set; then
18088 echo $ECHO_N "(cached) $ECHO_C" >&6
18089else
18090 if test "$ac_cv_type_long_long" = yes; then
18091 # The cast to unsigned long works around a bug in the HP C Compiler
18092 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18093 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18094 # This bug is HP SR number 8606223364.
18095 if test "$cross_compiling" = yes; then
18096 # Depending upon the size, compute the lo and hi bounds.
18097cat >conftest.$ac_ext <<_ACEOF
18098/* confdefs.h. */
18099_ACEOF
18100cat confdefs.h >>conftest.$ac_ext
18101cat >>conftest.$ac_ext <<_ACEOF
18102/* end confdefs.h. */
18103$ac_includes_default
18104int
18105main ()
18106{
18107static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18108test_array [0] = 0
18109
18110 ;
18111 return 0;
18112}
18113_ACEOF
18114rm -f conftest.$ac_objext
18115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18116 (eval $ac_compile) 2>conftest.er1
a848cd7e 18117 ac_status=$?
ac1cb8d3
VS
18118 grep -v '^ *+' conftest.er1 >conftest.err
18119 rm -f conftest.er1
18120 cat conftest.err >&5
a848cd7e
SC
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); } &&
6ebeb4c7 18123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18125 (eval $ac_try) 2>&5
18126 ac_status=$?
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); }; } &&
18129 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18131 (eval $ac_try) 2>&5
18132 ac_status=$?
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); }; }; then
18135 ac_lo=0 ac_mid=0
18136 while :; do
18137 cat >conftest.$ac_ext <<_ACEOF
18138/* confdefs.h. */
18139_ACEOF
18140cat confdefs.h >>conftest.$ac_ext
18141cat >>conftest.$ac_ext <<_ACEOF
18142/* end confdefs.h. */
18143$ac_includes_default
18144int
18145main ()
18146{
18147static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18148test_array [0] = 0
18149
18150 ;
18151 return 0;
18152}
18153_ACEOF
18154rm -f conftest.$ac_objext
18155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18156 (eval $ac_compile) 2>conftest.er1
a848cd7e 18157 ac_status=$?
ac1cb8d3
VS
18158 grep -v '^ *+' conftest.er1 >conftest.err
18159 rm -f conftest.er1
18160 cat conftest.err >&5
a848cd7e
SC
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); } &&
6ebeb4c7 18163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18165 (eval $ac_try) 2>&5
18166 ac_status=$?
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); }; } &&
18169 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18171 (eval $ac_try) 2>&5
18172 ac_status=$?
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); }; }; then
18175 ac_hi=$ac_mid; break
18176else
18177 echo "$as_me: failed program was:" >&5
18178sed 's/^/| /' conftest.$ac_ext >&5
18179
18180ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18181 if test $ac_lo -le $ac_mid; then
18182 ac_lo= ac_hi=
18183 break
18184 fi
18185 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18186fi
ac1cb8d3 18187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18188 done
18189else
18190 echo "$as_me: failed program was:" >&5
18191sed 's/^/| /' conftest.$ac_ext >&5
18192
18193cat >conftest.$ac_ext <<_ACEOF
18194/* confdefs.h. */
18195_ACEOF
18196cat confdefs.h >>conftest.$ac_ext
18197cat >>conftest.$ac_ext <<_ACEOF
18198/* end confdefs.h. */
18199$ac_includes_default
18200int
18201main ()
18202{
18203static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18204test_array [0] = 0
18205
18206 ;
18207 return 0;
18208}
18209_ACEOF
18210rm -f conftest.$ac_objext
18211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18212 (eval $ac_compile) 2>conftest.er1
a848cd7e 18213 ac_status=$?
ac1cb8d3
VS
18214 grep -v '^ *+' conftest.er1 >conftest.err
18215 rm -f conftest.er1
18216 cat conftest.err >&5
a848cd7e
SC
18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218 (exit $ac_status); } &&
6ebeb4c7 18219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18221 (eval $ac_try) 2>&5
18222 ac_status=$?
18223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); }; } &&
18225 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18227 (eval $ac_try) 2>&5
18228 ac_status=$?
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); }; }; then
18231 ac_hi=-1 ac_mid=-1
18232 while :; do
18233 cat >conftest.$ac_ext <<_ACEOF
18234/* confdefs.h. */
18235_ACEOF
18236cat confdefs.h >>conftest.$ac_ext
18237cat >>conftest.$ac_ext <<_ACEOF
18238/* end confdefs.h. */
18239$ac_includes_default
18240int
18241main ()
18242{
18243static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18244test_array [0] = 0
18245
18246 ;
18247 return 0;
18248}
18249_ACEOF
18250rm -f conftest.$ac_objext
18251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18252 (eval $ac_compile) 2>conftest.er1
a848cd7e 18253 ac_status=$?
ac1cb8d3
VS
18254 grep -v '^ *+' conftest.er1 >conftest.err
18255 rm -f conftest.er1
18256 cat conftest.err >&5
a848cd7e
SC
18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); } &&
6ebeb4c7 18259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18261 (eval $ac_try) 2>&5
18262 ac_status=$?
18263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264 (exit $ac_status); }; } &&
18265 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18267 (eval $ac_try) 2>&5
18268 ac_status=$?
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); }; }; then
18271 ac_lo=$ac_mid; break
18272else
18273 echo "$as_me: failed program was:" >&5
18274sed 's/^/| /' conftest.$ac_ext >&5
18275
18276ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18277 if test $ac_mid -le $ac_hi; then
18278 ac_lo= ac_hi=
18279 break
18280 fi
18281 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18282fi
ac1cb8d3 18283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18284 done
18285else
18286 echo "$as_me: failed program was:" >&5
18287sed 's/^/| /' conftest.$ac_ext >&5
18288
18289ac_lo= ac_hi=
18290fi
ac1cb8d3 18291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18292fi
ac1cb8d3 18293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18294# Binary search between lo and hi bounds.
18295while test "x$ac_lo" != "x$ac_hi"; do
18296 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18297 cat >conftest.$ac_ext <<_ACEOF
18298/* confdefs.h. */
18299_ACEOF
18300cat confdefs.h >>conftest.$ac_ext
18301cat >>conftest.$ac_ext <<_ACEOF
18302/* end confdefs.h. */
18303$ac_includes_default
18304int
18305main ()
18306{
18307static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18308test_array [0] = 0
18309
18310 ;
18311 return 0;
18312}
18313_ACEOF
18314rm -f conftest.$ac_objext
18315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18316 (eval $ac_compile) 2>conftest.er1
a848cd7e 18317 ac_status=$?
ac1cb8d3
VS
18318 grep -v '^ *+' conftest.er1 >conftest.err
18319 rm -f conftest.er1
18320 cat conftest.err >&5
a848cd7e
SC
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); } &&
6ebeb4c7 18323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18325 (eval $ac_try) 2>&5
18326 ac_status=$?
18327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328 (exit $ac_status); }; } &&
18329 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18331 (eval $ac_try) 2>&5
18332 ac_status=$?
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); }; }; then
18335 ac_hi=$ac_mid
18336else
18337 echo "$as_me: failed program was:" >&5
18338sed 's/^/| /' conftest.$ac_ext >&5
18339
18340ac_lo=`expr '(' $ac_mid ')' + 1`
18341fi
ac1cb8d3 18342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18343done
18344case $ac_lo in
18345?*) ac_cv_sizeof_long_long=$ac_lo;;
18346'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18347See \`config.log' for more details." >&5
18348echo "$as_me: error: cannot compute sizeof (long long), 77
18349See \`config.log' for more details." >&2;}
18350 { (exit 1); exit 1; }; } ;;
18351esac
18352else
18353 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
18354 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18355echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18356 { (exit 1); exit 1; }; }
18357else
18358 cat >conftest.$ac_ext <<_ACEOF
18359/* confdefs.h. */
18360_ACEOF
18361cat confdefs.h >>conftest.$ac_ext
18362cat >>conftest.$ac_ext <<_ACEOF
18363/* end confdefs.h. */
18364$ac_includes_default
18365long longval () { return (long) (sizeof (long long)); }
18366unsigned long ulongval () { return (long) (sizeof (long long)); }
18367#include <stdio.h>
18368#include <stdlib.h>
18369int
18370main ()
18371{
18372
18373 FILE *f = fopen ("conftest.val", "w");
18374 if (! f)
18375 exit (1);
18376 if (((long) (sizeof (long long))) < 0)
18377 {
18378 long i = longval ();
18379 if (i != ((long) (sizeof (long long))))
18380 exit (1);
18381 fprintf (f, "%ld\n", i);
18382 }
18383 else
18384 {
18385 unsigned long i = ulongval ();
18386 if (i != ((long) (sizeof (long long))))
18387 exit (1);
18388 fprintf (f, "%lu\n", i);
18389 }
18390 exit (ferror (f) || fclose (f) != 0);
18391
18392 ;
18393 return 0;
18394}
18395_ACEOF
18396rm -f conftest$ac_exeext
18397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18398 (eval $ac_link) 2>&5
18399 ac_status=$?
18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18403 (eval $ac_try) 2>&5
18404 ac_status=$?
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); }; }; then
18407 ac_cv_sizeof_long_long=`cat conftest.val`
18408else
18409 echo "$as_me: program exited with status $ac_status" >&5
18410echo "$as_me: failed program was:" >&5
18411sed 's/^/| /' conftest.$ac_ext >&5
18412
18413( exit $ac_status )
18414{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18415See \`config.log' for more details." >&5
18416echo "$as_me: error: cannot compute sizeof (long long), 77
18417See \`config.log' for more details." >&2;}
18418 { (exit 1); exit 1; }; }
18419fi
ac1cb8d3 18420rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18421fi
18422fi
18423rm -f conftest.val
18424else
18425 ac_cv_sizeof_long_long=0
18426fi
18427fi
18428echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18429echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18430cat >>confdefs.h <<_ACEOF
18431#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18432_ACEOF
18433
18434
18435 ;;
18436 *-hp-hpux* )
18437 echo "$as_me:$LINENO: checking for long long" >&5
18438echo $ECHO_N "checking for long long... $ECHO_C" >&6
18439if test "${ac_cv_type_long_long+set}" = set; then
18440 echo $ECHO_N "(cached) $ECHO_C" >&6
18441else
18442 cat >conftest.$ac_ext <<_ACEOF
18443/* confdefs.h. */
18444_ACEOF
18445cat confdefs.h >>conftest.$ac_ext
18446cat >>conftest.$ac_ext <<_ACEOF
18447/* end confdefs.h. */
18448$ac_includes_default
18449int
18450main ()
18451{
18452if ((long long *) 0)
18453 return 0;
18454if (sizeof (long long))
18455 return 0;
18456 ;
18457 return 0;
18458}
18459_ACEOF
18460rm -f conftest.$ac_objext
18461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18462 (eval $ac_compile) 2>conftest.er1
a848cd7e 18463 ac_status=$?
ac1cb8d3
VS
18464 grep -v '^ *+' conftest.er1 >conftest.err
18465 rm -f conftest.er1
18466 cat conftest.err >&5
a848cd7e
SC
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); } &&
6ebeb4c7 18469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18471 (eval $ac_try) 2>&5
18472 ac_status=$?
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); }; } &&
18475 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18477 (eval $ac_try) 2>&5
18478 ac_status=$?
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; }; then
18481 ac_cv_type_long_long=yes
18482else
18483 echo "$as_me: failed program was:" >&5
18484sed 's/^/| /' conftest.$ac_ext >&5
18485
18486ac_cv_type_long_long=no
18487fi
ac1cb8d3 18488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18489fi
18490echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18491echo "${ECHO_T}$ac_cv_type_long_long" >&6
18492
18493echo "$as_me:$LINENO: checking size of long long" >&5
18494echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18495if test "${ac_cv_sizeof_long_long+set}" = set; then
18496 echo $ECHO_N "(cached) $ECHO_C" >&6
18497else
18498 if test "$ac_cv_type_long_long" = yes; then
18499 # The cast to unsigned long works around a bug in the HP C Compiler
18500 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18501 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18502 # This bug is HP SR number 8606223364.
18503 if test "$cross_compiling" = yes; then
18504 # Depending upon the size, compute the lo and hi bounds.
18505cat >conftest.$ac_ext <<_ACEOF
18506/* confdefs.h. */
18507_ACEOF
18508cat confdefs.h >>conftest.$ac_ext
18509cat >>conftest.$ac_ext <<_ACEOF
18510/* end confdefs.h. */
18511$ac_includes_default
18512int
18513main ()
18514{
18515static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18516test_array [0] = 0
18517
18518 ;
18519 return 0;
18520}
18521_ACEOF
18522rm -f conftest.$ac_objext
18523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18524 (eval $ac_compile) 2>conftest.er1
a848cd7e 18525 ac_status=$?
ac1cb8d3
VS
18526 grep -v '^ *+' conftest.er1 >conftest.err
18527 rm -f conftest.er1
18528 cat conftest.err >&5
a848cd7e
SC
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); } &&
6ebeb4c7 18531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18533 (eval $ac_try) 2>&5
18534 ac_status=$?
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); }; } &&
18537 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18539 (eval $ac_try) 2>&5
18540 ac_status=$?
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); }; }; then
18543 ac_lo=0 ac_mid=0
18544 while :; do
18545 cat >conftest.$ac_ext <<_ACEOF
18546/* confdefs.h. */
18547_ACEOF
18548cat confdefs.h >>conftest.$ac_ext
18549cat >>conftest.$ac_ext <<_ACEOF
18550/* end confdefs.h. */
18551$ac_includes_default
18552int
18553main ()
18554{
18555static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18556test_array [0] = 0
18557
18558 ;
18559 return 0;
18560}
18561_ACEOF
18562rm -f conftest.$ac_objext
18563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18564 (eval $ac_compile) 2>conftest.er1
a848cd7e 18565 ac_status=$?
ac1cb8d3
VS
18566 grep -v '^ *+' conftest.er1 >conftest.err
18567 rm -f conftest.er1
18568 cat conftest.err >&5
a848cd7e
SC
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); } &&
6ebeb4c7 18571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18573 (eval $ac_try) 2>&5
18574 ac_status=$?
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); }; } &&
18577 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18579 (eval $ac_try) 2>&5
18580 ac_status=$?
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); }; }; then
18583 ac_hi=$ac_mid; break
18584else
18585 echo "$as_me: failed program was:" >&5
18586sed 's/^/| /' conftest.$ac_ext >&5
18587
18588ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18589 if test $ac_lo -le $ac_mid; then
18590 ac_lo= ac_hi=
18591 break
18592 fi
18593 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18594fi
ac1cb8d3 18595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18596 done
18597else
18598 echo "$as_me: failed program was:" >&5
18599sed 's/^/| /' conftest.$ac_ext >&5
18600
18601cat >conftest.$ac_ext <<_ACEOF
18602/* confdefs.h. */
18603_ACEOF
18604cat confdefs.h >>conftest.$ac_ext
18605cat >>conftest.$ac_ext <<_ACEOF
18606/* end confdefs.h. */
18607$ac_includes_default
18608int
18609main ()
18610{
18611static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18612test_array [0] = 0
18613
18614 ;
18615 return 0;
18616}
18617_ACEOF
18618rm -f conftest.$ac_objext
18619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18620 (eval $ac_compile) 2>conftest.er1
a848cd7e 18621 ac_status=$?
ac1cb8d3
VS
18622 grep -v '^ *+' conftest.er1 >conftest.err
18623 rm -f conftest.er1
18624 cat conftest.err >&5
a848cd7e
SC
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); } &&
6ebeb4c7 18627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18629 (eval $ac_try) 2>&5
18630 ac_status=$?
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); }; } &&
18633 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18635 (eval $ac_try) 2>&5
18636 ac_status=$?
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); }; }; then
18639 ac_hi=-1 ac_mid=-1
18640 while :; do
18641 cat >conftest.$ac_ext <<_ACEOF
18642/* confdefs.h. */
18643_ACEOF
18644cat confdefs.h >>conftest.$ac_ext
18645cat >>conftest.$ac_ext <<_ACEOF
18646/* end confdefs.h. */
18647$ac_includes_default
18648int
18649main ()
18650{
18651static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18652test_array [0] = 0
18653
18654 ;
18655 return 0;
18656}
18657_ACEOF
18658rm -f conftest.$ac_objext
18659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18660 (eval $ac_compile) 2>conftest.er1
a848cd7e 18661 ac_status=$?
ac1cb8d3
VS
18662 grep -v '^ *+' conftest.er1 >conftest.err
18663 rm -f conftest.er1
18664 cat conftest.err >&5
a848cd7e
SC
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); } &&
6ebeb4c7 18667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18669 (eval $ac_try) 2>&5
18670 ac_status=$?
18671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672 (exit $ac_status); }; } &&
18673 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18675 (eval $ac_try) 2>&5
18676 ac_status=$?
18677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678 (exit $ac_status); }; }; then
18679 ac_lo=$ac_mid; break
18680else
18681 echo "$as_me: failed program was:" >&5
18682sed 's/^/| /' conftest.$ac_ext >&5
18683
18684ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18685 if test $ac_mid -le $ac_hi; then
18686 ac_lo= ac_hi=
18687 break
18688 fi
18689 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18690fi
ac1cb8d3 18691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18692 done
18693else
18694 echo "$as_me: failed program was:" >&5
18695sed 's/^/| /' conftest.$ac_ext >&5
18696
18697ac_lo= ac_hi=
18698fi
ac1cb8d3 18699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18700fi
ac1cb8d3 18701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18702# Binary search between lo and hi bounds.
18703while test "x$ac_lo" != "x$ac_hi"; do
18704 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18705 cat >conftest.$ac_ext <<_ACEOF
18706/* confdefs.h. */
18707_ACEOF
18708cat confdefs.h >>conftest.$ac_ext
18709cat >>conftest.$ac_ext <<_ACEOF
18710/* end confdefs.h. */
18711$ac_includes_default
18712int
18713main ()
18714{
18715static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18716test_array [0] = 0
18717
18718 ;
18719 return 0;
18720}
18721_ACEOF
18722rm -f conftest.$ac_objext
18723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18724 (eval $ac_compile) 2>conftest.er1
a848cd7e 18725 ac_status=$?
ac1cb8d3
VS
18726 grep -v '^ *+' conftest.er1 >conftest.err
18727 rm -f conftest.er1
18728 cat conftest.err >&5
a848cd7e
SC
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); } &&
6ebeb4c7 18731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18733 (eval $ac_try) 2>&5
18734 ac_status=$?
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); }; } &&
18737 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18739 (eval $ac_try) 2>&5
18740 ac_status=$?
18741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742 (exit $ac_status); }; }; then
18743 ac_hi=$ac_mid
18744else
18745 echo "$as_me: failed program was:" >&5
18746sed 's/^/| /' conftest.$ac_ext >&5
18747
18748ac_lo=`expr '(' $ac_mid ')' + 1`
18749fi
ac1cb8d3 18750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18751done
18752case $ac_lo in
18753?*) ac_cv_sizeof_long_long=$ac_lo;;
18754'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18755See \`config.log' for more details." >&5
18756echo "$as_me: error: cannot compute sizeof (long long), 77
18757See \`config.log' for more details." >&2;}
18758 { (exit 1); exit 1; }; } ;;
18759esac
18760else
18761 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
18762 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18763echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18764 { (exit 1); exit 1; }; }
18765else
18766 cat >conftest.$ac_ext <<_ACEOF
18767/* confdefs.h. */
18768_ACEOF
18769cat confdefs.h >>conftest.$ac_ext
18770cat >>conftest.$ac_ext <<_ACEOF
18771/* end confdefs.h. */
18772$ac_includes_default
18773long longval () { return (long) (sizeof (long long)); }
18774unsigned long ulongval () { return (long) (sizeof (long long)); }
18775#include <stdio.h>
18776#include <stdlib.h>
18777int
18778main ()
18779{
18780
18781 FILE *f = fopen ("conftest.val", "w");
18782 if (! f)
18783 exit (1);
18784 if (((long) (sizeof (long long))) < 0)
18785 {
18786 long i = longval ();
18787 if (i != ((long) (sizeof (long long))))
18788 exit (1);
18789 fprintf (f, "%ld\n", i);
18790 }
18791 else
18792 {
18793 unsigned long i = ulongval ();
18794 if (i != ((long) (sizeof (long long))))
18795 exit (1);
18796 fprintf (f, "%lu\n", i);
18797 }
18798 exit (ferror (f) || fclose (f) != 0);
18799
18800 ;
18801 return 0;
18802}
18803_ACEOF
18804rm -f conftest$ac_exeext
18805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18806 (eval $ac_link) 2>&5
18807 ac_status=$?
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18811 (eval $ac_try) 2>&5
18812 ac_status=$?
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); }; }; then
18815 ac_cv_sizeof_long_long=`cat conftest.val`
18816else
18817 echo "$as_me: program exited with status $ac_status" >&5
18818echo "$as_me: failed program was:" >&5
18819sed 's/^/| /' conftest.$ac_ext >&5
18820
18821( exit $ac_status )
18822{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18823See \`config.log' for more details." >&5
18824echo "$as_me: error: cannot compute sizeof (long long), 77
18825See \`config.log' for more details." >&2;}
18826 { (exit 1); exit 1; }; }
18827fi
ac1cb8d3 18828rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18829fi
18830fi
18831rm -f conftest.val
18832else
18833 ac_cv_sizeof_long_long=0
18834fi
18835fi
18836echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18837echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18838cat >>confdefs.h <<_ACEOF
18839#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18840_ACEOF
18841
18842
18843 if test "$ac_cv_sizeof_long_long" != "0"; then
18844 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
18845 fi
18846 ;;
18847 * )
18848 echo "$as_me:$LINENO: checking for long long" >&5
18849echo $ECHO_N "checking for long long... $ECHO_C" >&6
18850if test "${ac_cv_type_long_long+set}" = set; then
18851 echo $ECHO_N "(cached) $ECHO_C" >&6
18852else
18853 cat >conftest.$ac_ext <<_ACEOF
18854/* confdefs.h. */
18855_ACEOF
18856cat confdefs.h >>conftest.$ac_ext
18857cat >>conftest.$ac_ext <<_ACEOF
18858/* end confdefs.h. */
18859$ac_includes_default
18860int
18861main ()
18862{
18863if ((long long *) 0)
18864 return 0;
18865if (sizeof (long long))
18866 return 0;
18867 ;
18868 return 0;
18869}
18870_ACEOF
18871rm -f conftest.$ac_objext
18872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18873 (eval $ac_compile) 2>conftest.er1
a848cd7e 18874 ac_status=$?
ac1cb8d3
VS
18875 grep -v '^ *+' conftest.er1 >conftest.err
18876 rm -f conftest.er1
18877 cat conftest.err >&5
a848cd7e
SC
18878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879 (exit $ac_status); } &&
6ebeb4c7 18880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18882 (eval $ac_try) 2>&5
18883 ac_status=$?
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); }; } &&
18886 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18888 (eval $ac_try) 2>&5
18889 ac_status=$?
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); }; }; then
18892 ac_cv_type_long_long=yes
18893else
18894 echo "$as_me: failed program was:" >&5
18895sed 's/^/| /' conftest.$ac_ext >&5
18896
18897ac_cv_type_long_long=no
18898fi
ac1cb8d3 18899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18900fi
18901echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18902echo "${ECHO_T}$ac_cv_type_long_long" >&6
18903
18904echo "$as_me:$LINENO: checking size of long long" >&5
18905echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18906if test "${ac_cv_sizeof_long_long+set}" = set; then
18907 echo $ECHO_N "(cached) $ECHO_C" >&6
18908else
18909 if test "$ac_cv_type_long_long" = yes; then
18910 # The cast to unsigned long works around a bug in the HP C Compiler
18911 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18912 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18913 # This bug is HP SR number 8606223364.
18914 if test "$cross_compiling" = yes; then
18915 # Depending upon the size, compute the lo and hi bounds.
18916cat >conftest.$ac_ext <<_ACEOF
18917/* confdefs.h. */
18918_ACEOF
18919cat confdefs.h >>conftest.$ac_ext
18920cat >>conftest.$ac_ext <<_ACEOF
18921/* end confdefs.h. */
18922$ac_includes_default
18923int
18924main ()
18925{
18926static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18927test_array [0] = 0
18928
18929 ;
18930 return 0;
18931}
18932_ACEOF
18933rm -f conftest.$ac_objext
18934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18935 (eval $ac_compile) 2>conftest.er1
a848cd7e 18936 ac_status=$?
ac1cb8d3
VS
18937 grep -v '^ *+' conftest.er1 >conftest.err
18938 rm -f conftest.er1
18939 cat conftest.err >&5
a848cd7e
SC
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); } &&
6ebeb4c7 18942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18944 (eval $ac_try) 2>&5
18945 ac_status=$?
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); }; } &&
18948 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18950 (eval $ac_try) 2>&5
18951 ac_status=$?
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); }; }; then
18954 ac_lo=0 ac_mid=0
18955 while :; do
18956 cat >conftest.$ac_ext <<_ACEOF
18957/* confdefs.h. */
18958_ACEOF
18959cat confdefs.h >>conftest.$ac_ext
18960cat >>conftest.$ac_ext <<_ACEOF
18961/* end confdefs.h. */
18962$ac_includes_default
18963int
18964main ()
18965{
18966static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18967test_array [0] = 0
18968
18969 ;
18970 return 0;
18971}
18972_ACEOF
18973rm -f conftest.$ac_objext
18974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18975 (eval $ac_compile) 2>conftest.er1
a848cd7e 18976 ac_status=$?
ac1cb8d3
VS
18977 grep -v '^ *+' conftest.er1 >conftest.err
18978 rm -f conftest.er1
18979 cat conftest.err >&5
a848cd7e
SC
18980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); } &&
6ebeb4c7 18982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18984 (eval $ac_try) 2>&5
18985 ac_status=$?
18986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987 (exit $ac_status); }; } &&
18988 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18990 (eval $ac_try) 2>&5
18991 ac_status=$?
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); }; }; then
18994 ac_hi=$ac_mid; break
18995else
18996 echo "$as_me: failed program was:" >&5
18997sed 's/^/| /' conftest.$ac_ext >&5
18998
18999ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19000 if test $ac_lo -le $ac_mid; then
19001 ac_lo= ac_hi=
19002 break
19003 fi
19004 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19005fi
ac1cb8d3 19006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19007 done
19008else
19009 echo "$as_me: failed program was:" >&5
19010sed 's/^/| /' conftest.$ac_ext >&5
19011
19012cat >conftest.$ac_ext <<_ACEOF
19013/* confdefs.h. */
19014_ACEOF
19015cat confdefs.h >>conftest.$ac_ext
19016cat >>conftest.$ac_ext <<_ACEOF
19017/* end confdefs.h. */
19018$ac_includes_default
19019int
19020main ()
19021{
19022static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19023test_array [0] = 0
19024
19025 ;
19026 return 0;
19027}
19028_ACEOF
19029rm -f conftest.$ac_objext
19030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19031 (eval $ac_compile) 2>conftest.er1
a848cd7e 19032 ac_status=$?
ac1cb8d3
VS
19033 grep -v '^ *+' conftest.er1 >conftest.err
19034 rm -f conftest.er1
19035 cat conftest.err >&5
a848cd7e
SC
19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 (exit $ac_status); } &&
6ebeb4c7 19038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19040 (eval $ac_try) 2>&5
19041 ac_status=$?
19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); }; } &&
19044 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19046 (eval $ac_try) 2>&5
19047 ac_status=$?
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); }; }; then
19050 ac_hi=-1 ac_mid=-1
19051 while :; do
19052 cat >conftest.$ac_ext <<_ACEOF
19053/* confdefs.h. */
19054_ACEOF
19055cat confdefs.h >>conftest.$ac_ext
19056cat >>conftest.$ac_ext <<_ACEOF
19057/* end confdefs.h. */
19058$ac_includes_default
19059int
19060main ()
19061{
19062static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19063test_array [0] = 0
19064
19065 ;
19066 return 0;
19067}
19068_ACEOF
19069rm -f conftest.$ac_objext
19070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19071 (eval $ac_compile) 2>conftest.er1
a848cd7e 19072 ac_status=$?
ac1cb8d3
VS
19073 grep -v '^ *+' conftest.er1 >conftest.err
19074 rm -f conftest.er1
19075 cat conftest.err >&5
a848cd7e
SC
19076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077 (exit $ac_status); } &&
6ebeb4c7 19078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19080 (eval $ac_try) 2>&5
19081 ac_status=$?
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); }; } &&
19084 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19086 (eval $ac_try) 2>&5
19087 ac_status=$?
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); }; }; then
19090 ac_lo=$ac_mid; break
19091else
19092 echo "$as_me: failed program was:" >&5
19093sed 's/^/| /' conftest.$ac_ext >&5
19094
19095ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19096 if test $ac_mid -le $ac_hi; then
19097 ac_lo= ac_hi=
19098 break
19099 fi
19100 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19101fi
ac1cb8d3 19102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19103 done
19104else
19105 echo "$as_me: failed program was:" >&5
19106sed 's/^/| /' conftest.$ac_ext >&5
19107
19108ac_lo= ac_hi=
19109fi
ac1cb8d3 19110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19111fi
ac1cb8d3 19112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19113# Binary search between lo and hi bounds.
19114while test "x$ac_lo" != "x$ac_hi"; do
19115 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19116 cat >conftest.$ac_ext <<_ACEOF
19117/* confdefs.h. */
19118_ACEOF
19119cat confdefs.h >>conftest.$ac_ext
19120cat >>conftest.$ac_ext <<_ACEOF
19121/* end confdefs.h. */
19122$ac_includes_default
19123int
19124main ()
19125{
19126static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19127test_array [0] = 0
19128
19129 ;
19130 return 0;
19131}
19132_ACEOF
19133rm -f conftest.$ac_objext
19134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19135 (eval $ac_compile) 2>conftest.er1
a848cd7e 19136 ac_status=$?
ac1cb8d3
VS
19137 grep -v '^ *+' conftest.er1 >conftest.err
19138 rm -f conftest.er1
19139 cat conftest.err >&5
a848cd7e
SC
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); } &&
6ebeb4c7 19142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19144 (eval $ac_try) 2>&5
19145 ac_status=$?
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); }; } &&
19148 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19150 (eval $ac_try) 2>&5
19151 ac_status=$?
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); }; }; then
19154 ac_hi=$ac_mid
19155else
19156 echo "$as_me: failed program was:" >&5
19157sed 's/^/| /' conftest.$ac_ext >&5
19158
19159ac_lo=`expr '(' $ac_mid ')' + 1`
19160fi
ac1cb8d3 19161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19162done
19163case $ac_lo in
19164?*) ac_cv_sizeof_long_long=$ac_lo;;
19165'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19166See \`config.log' for more details." >&5
19167echo "$as_me: error: cannot compute sizeof (long long), 77
19168See \`config.log' for more details." >&2;}
19169 { (exit 1); exit 1; }; } ;;
19170esac
19171else
19172 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
19173 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19174echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19175 { (exit 1); exit 1; }; }
19176else
19177 cat >conftest.$ac_ext <<_ACEOF
19178/* confdefs.h. */
19179_ACEOF
19180cat confdefs.h >>conftest.$ac_ext
19181cat >>conftest.$ac_ext <<_ACEOF
19182/* end confdefs.h. */
19183$ac_includes_default
19184long longval () { return (long) (sizeof (long long)); }
19185unsigned long ulongval () { return (long) (sizeof (long long)); }
19186#include <stdio.h>
19187#include <stdlib.h>
19188int
19189main ()
19190{
19191
19192 FILE *f = fopen ("conftest.val", "w");
19193 if (! f)
19194 exit (1);
19195 if (((long) (sizeof (long long))) < 0)
19196 {
19197 long i = longval ();
19198 if (i != ((long) (sizeof (long long))))
19199 exit (1);
19200 fprintf (f, "%ld\n", i);
19201 }
19202 else
19203 {
19204 unsigned long i = ulongval ();
19205 if (i != ((long) (sizeof (long long))))
19206 exit (1);
19207 fprintf (f, "%lu\n", i);
19208 }
19209 exit (ferror (f) || fclose (f) != 0);
19210
19211 ;
19212 return 0;
19213}
19214_ACEOF
19215rm -f conftest$ac_exeext
19216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19217 (eval $ac_link) 2>&5
19218 ac_status=$?
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19222 (eval $ac_try) 2>&5
19223 ac_status=$?
19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); }; }; then
19226 ac_cv_sizeof_long_long=`cat conftest.val`
19227else
19228 echo "$as_me: program exited with status $ac_status" >&5
19229echo "$as_me: failed program was:" >&5
19230sed 's/^/| /' conftest.$ac_ext >&5
19231
19232( exit $ac_status )
19233{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19234See \`config.log' for more details." >&5
19235echo "$as_me: error: cannot compute sizeof (long long), 77
19236See \`config.log' for more details." >&2;}
19237 { (exit 1); exit 1; }; }
19238fi
ac1cb8d3 19239rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19240fi
19241fi
19242rm -f conftest.val
19243else
19244 ac_cv_sizeof_long_long=0
19245fi
19246fi
19247echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19248echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19249cat >>confdefs.h <<_ACEOF
19250#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19251_ACEOF
19252
19253
19254esac
19255
238ecede
MW
19256echo "$as_me:$LINENO: checking for wchar_t" >&5
19257echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19258if test "${ac_cv_type_wchar_t+set}" = set; then
19259 echo $ECHO_N "(cached) $ECHO_C" >&6
19260else
19261 cat >conftest.$ac_ext <<_ACEOF
19262/* confdefs.h. */
19263_ACEOF
19264cat confdefs.h >>conftest.$ac_ext
19265cat >>conftest.$ac_ext <<_ACEOF
19266/* end confdefs.h. */
19267
83d8eb47
MW
19268 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19269 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19270 # error "fake wchar_t"
19271 #endif
19272 #ifdef HAVE_WCHAR_H
19273 # ifdef __CYGWIN__
19274 # include <stddef.h>
19275 # endif
19276 # include <wchar.h>
19277 #endif
19278 #ifdef HAVE_STDLIB_H
19279 # include <stdlib.h>
19280 #endif
19281 #include <stdio.h>
19282
19283
19284
19285int
19286main ()
19287{
19288if ((wchar_t *) 0)
19289 return 0;
19290if (sizeof (wchar_t))
19291 return 0;
19292 ;
19293 return 0;
19294}
19295_ACEOF
19296rm -f conftest.$ac_objext
19297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19298 (eval $ac_compile) 2>conftest.er1
19299 ac_status=$?
19300 grep -v '^ *+' conftest.er1 >conftest.err
19301 rm -f conftest.er1
19302 cat conftest.err >&5
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); } &&
6ebeb4c7 19305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19307 (eval $ac_try) 2>&5
19308 ac_status=$?
19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); }; } &&
19311 { ac_try='test -s conftest.$ac_objext'
19312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19313 (eval $ac_try) 2>&5
19314 ac_status=$?
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); }; }; then
19317 ac_cv_type_wchar_t=yes
19318else
19319 echo "$as_me: failed program was:" >&5
19320sed 's/^/| /' conftest.$ac_ext >&5
19321
19322ac_cv_type_wchar_t=no
19323fi
19324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19325fi
19326echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19327echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19328
a848cd7e
SC
19329echo "$as_me:$LINENO: checking size of wchar_t" >&5
19330echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 19331if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
19332 echo $ECHO_N "(cached) $ECHO_C" >&6
19333else
238ecede
MW
19334 if test "$ac_cv_type_wchar_t" = yes; then
19335 # The cast to unsigned long works around a bug in the HP C Compiler
19336 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19337 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19338 # This bug is HP SR number 8606223364.
19339 if test "$cross_compiling" = yes; then
19340 # Depending upon the size, compute the lo and hi bounds.
19341cat >conftest.$ac_ext <<_ACEOF
19342/* confdefs.h. */
19343_ACEOF
19344cat confdefs.h >>conftest.$ac_ext
19345cat >>conftest.$ac_ext <<_ACEOF
19346/* end confdefs.h. */
19347
83d8eb47
MW
19348 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19349 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19350 # error "fake wchar_t"
19351 #endif
19352 #ifdef HAVE_WCHAR_H
19353 # ifdef __CYGWIN__
19354 # include <stddef.h>
19355 # endif
19356 # include <wchar.h>
19357 #endif
19358 #ifdef HAVE_STDLIB_H
19359 # include <stdlib.h>
19360 #endif
19361 #include <stdio.h>
19362
19363
19364
19365int
19366main ()
19367{
19368static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19369test_array [0] = 0
19370
19371 ;
19372 return 0;
19373}
19374_ACEOF
19375rm -f conftest.$ac_objext
19376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19377 (eval $ac_compile) 2>conftest.er1
19378 ac_status=$?
19379 grep -v '^ *+' conftest.er1 >conftest.err
19380 rm -f conftest.er1
19381 cat conftest.err >&5
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); } &&
6ebeb4c7 19384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19386 (eval $ac_try) 2>&5
19387 ac_status=$?
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); }; } &&
19390 { ac_try='test -s conftest.$ac_objext'
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19393 ac_status=$?
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; }; then
19396 ac_lo=0 ac_mid=0
19397 while :; do
19398 cat >conftest.$ac_ext <<_ACEOF
19399/* confdefs.h. */
19400_ACEOF
19401cat confdefs.h >>conftest.$ac_ext
19402cat >>conftest.$ac_ext <<_ACEOF
19403/* end confdefs.h. */
19404
83d8eb47
MW
19405 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19406 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19407 # error "fake wchar_t"
19408 #endif
19409 #ifdef HAVE_WCHAR_H
19410 # ifdef __CYGWIN__
19411 # include <stddef.h>
19412 # endif
19413 # include <wchar.h>
19414 #endif
19415 #ifdef HAVE_STDLIB_H
19416 # include <stdlib.h>
19417 #endif
19418 #include <stdio.h>
19419
19420
19421
19422int
19423main ()
19424{
19425static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19426test_array [0] = 0
19427
19428 ;
19429 return 0;
19430}
19431_ACEOF
19432rm -f conftest.$ac_objext
19433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19434 (eval $ac_compile) 2>conftest.er1
19435 ac_status=$?
19436 grep -v '^ *+' conftest.er1 >conftest.err
19437 rm -f conftest.er1
19438 cat conftest.err >&5
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); } &&
6ebeb4c7 19441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19443 (eval $ac_try) 2>&5
19444 ac_status=$?
19445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19446 (exit $ac_status); }; } &&
19447 { ac_try='test -s conftest.$ac_objext'
19448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19449 (eval $ac_try) 2>&5
19450 ac_status=$?
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); }; }; then
19453 ac_hi=$ac_mid; break
19454else
19455 echo "$as_me: failed program was:" >&5
19456sed 's/^/| /' conftest.$ac_ext >&5
19457
19458ac_lo=`expr $ac_mid + 1`
19459 if test $ac_lo -le $ac_mid; then
19460 ac_lo= ac_hi=
19461 break
19462 fi
19463 ac_mid=`expr 2 '*' $ac_mid + 1`
19464fi
19465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19466 done
19467else
19468 echo "$as_me: failed program was:" >&5
19469sed 's/^/| /' conftest.$ac_ext >&5
19470
19471cat >conftest.$ac_ext <<_ACEOF
19472/* confdefs.h. */
19473_ACEOF
19474cat confdefs.h >>conftest.$ac_ext
19475cat >>conftest.$ac_ext <<_ACEOF
19476/* end confdefs.h. */
19477
83d8eb47
MW
19478 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19479 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19480 # error "fake wchar_t"
19481 #endif
19482 #ifdef HAVE_WCHAR_H
19483 # ifdef __CYGWIN__
19484 # include <stddef.h>
19485 # endif
19486 # include <wchar.h>
19487 #endif
19488 #ifdef HAVE_STDLIB_H
19489 # include <stdlib.h>
19490 #endif
19491 #include <stdio.h>
19492
19493
19494
19495int
19496main ()
19497{
19498static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19499test_array [0] = 0
19500
19501 ;
19502 return 0;
19503}
19504_ACEOF
19505rm -f conftest.$ac_objext
19506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19507 (eval $ac_compile) 2>conftest.er1
19508 ac_status=$?
19509 grep -v '^ *+' conftest.er1 >conftest.err
19510 rm -f conftest.er1
19511 cat conftest.err >&5
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); } &&
6ebeb4c7 19514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19516 (eval $ac_try) 2>&5
19517 ac_status=$?
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); }; } &&
19520 { ac_try='test -s conftest.$ac_objext'
19521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19522 (eval $ac_try) 2>&5
19523 ac_status=$?
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); }; }; then
19526 ac_hi=-1 ac_mid=-1
19527 while :; do
19528 cat >conftest.$ac_ext <<_ACEOF
19529/* confdefs.h. */
19530_ACEOF
19531cat confdefs.h >>conftest.$ac_ext
19532cat >>conftest.$ac_ext <<_ACEOF
19533/* end confdefs.h. */
19534
83d8eb47
MW
19535 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19536 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19537 # error "fake wchar_t"
19538 #endif
19539 #ifdef HAVE_WCHAR_H
19540 # ifdef __CYGWIN__
19541 # include <stddef.h>
19542 # endif
19543 # include <wchar.h>
19544 #endif
19545 #ifdef HAVE_STDLIB_H
19546 # include <stdlib.h>
19547 #endif
19548 #include <stdio.h>
19549
19550
19551
19552int
19553main ()
19554{
19555static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19556test_array [0] = 0
19557
19558 ;
19559 return 0;
19560}
19561_ACEOF
19562rm -f conftest.$ac_objext
19563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19564 (eval $ac_compile) 2>conftest.er1
19565 ac_status=$?
19566 grep -v '^ *+' conftest.er1 >conftest.err
19567 rm -f conftest.er1
19568 cat conftest.err >&5
19569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19570 (exit $ac_status); } &&
6ebeb4c7 19571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19573 (eval $ac_try) 2>&5
19574 ac_status=$?
19575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576 (exit $ac_status); }; } &&
19577 { ac_try='test -s conftest.$ac_objext'
19578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19579 (eval $ac_try) 2>&5
19580 ac_status=$?
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); }; }; then
19583 ac_lo=$ac_mid; break
19584else
19585 echo "$as_me: failed program was:" >&5
19586sed 's/^/| /' conftest.$ac_ext >&5
19587
19588ac_hi=`expr '(' $ac_mid ')' - 1`
19589 if test $ac_mid -le $ac_hi; then
19590 ac_lo= ac_hi=
19591 break
19592 fi
19593 ac_mid=`expr 2 '*' $ac_mid`
19594fi
19595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19596 done
19597else
19598 echo "$as_me: failed program was:" >&5
19599sed 's/^/| /' conftest.$ac_ext >&5
19600
19601ac_lo= ac_hi=
19602fi
19603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19604fi
19605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19606# Binary search between lo and hi bounds.
19607while test "x$ac_lo" != "x$ac_hi"; do
19608 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19609 cat >conftest.$ac_ext <<_ACEOF
19610/* confdefs.h. */
19611_ACEOF
19612cat confdefs.h >>conftest.$ac_ext
19613cat >>conftest.$ac_ext <<_ACEOF
19614/* end confdefs.h. */
19615
83d8eb47
MW
19616 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19617 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19618 # error "fake wchar_t"
19619 #endif
19620 #ifdef HAVE_WCHAR_H
19621 # ifdef __CYGWIN__
19622 # include <stddef.h>
19623 # endif
19624 # include <wchar.h>
19625 #endif
19626 #ifdef HAVE_STDLIB_H
19627 # include <stdlib.h>
19628 #endif
19629 #include <stdio.h>
a848cd7e 19630
a848cd7e 19631
a848cd7e 19632
238ecede
MW
19633int
19634main ()
19635{
19636static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19637test_array [0] = 0
a848cd7e 19638
238ecede
MW
19639 ;
19640 return 0;
19641}
19642_ACEOF
19643rm -f conftest.$ac_objext
19644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19645 (eval $ac_compile) 2>conftest.er1
19646 ac_status=$?
19647 grep -v '^ *+' conftest.er1 >conftest.err
19648 rm -f conftest.er1
19649 cat conftest.err >&5
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); } &&
6ebeb4c7 19652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
19653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19654 (eval $ac_try) 2>&5
19655 ac_status=$?
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); }; } &&
19658 { ac_try='test -s conftest.$ac_objext'
19659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19660 (eval $ac_try) 2>&5
19661 ac_status=$?
19662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663 (exit $ac_status); }; }; then
19664 ac_hi=$ac_mid
19665else
19666 echo "$as_me: failed program was:" >&5
19667sed 's/^/| /' conftest.$ac_ext >&5
19668
19669ac_lo=`expr '(' $ac_mid ')' + 1`
19670fi
19671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19672done
19673case $ac_lo in
19674?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19675'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19676See \`config.log' for more details." >&5
19677echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19678See \`config.log' for more details." >&2;}
19679 { (exit 1); exit 1; }; } ;;
19680esac
19681else
19682 if test "$cross_compiling" = yes; then
6ebeb4c7
VZ
19683 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19684echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 19685 { (exit 1); exit 1; }; }
a848cd7e
SC
19686else
19687 cat >conftest.$ac_ext <<_ACEOF
19688/* confdefs.h. */
19689_ACEOF
19690cat confdefs.h >>conftest.$ac_ext
19691cat >>conftest.$ac_ext <<_ACEOF
19692/* end confdefs.h. */
19693
83d8eb47
MW
19694 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19695 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19696 # error "fake wchar_t"
19697 #endif
19698 #ifdef HAVE_WCHAR_H
19699 # ifdef __CYGWIN__
19700 # include <stddef.h>
19701 # endif
19702 # include <wchar.h>
19703 #endif
19704 #ifdef HAVE_STDLIB_H
19705 # include <stdlib.h>
19706 #endif
19707 #include <stdio.h>
19708
19709
19710
19711long longval () { return (long) (sizeof (wchar_t)); }
19712unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19713#include <stdio.h>
19714#include <stdlib.h>
19715int
19716main ()
19717{
a848cd7e 19718
238ecede
MW
19719 FILE *f = fopen ("conftest.val", "w");
19720 if (! f)
19721 exit (1);
19722 if (((long) (sizeof (wchar_t))) < 0)
19723 {
19724 long i = longval ();
19725 if (i != ((long) (sizeof (wchar_t))))
19726 exit (1);
19727 fprintf (f, "%ld\n", i);
19728 }
19729 else
19730 {
19731 unsigned long i = ulongval ();
19732 if (i != ((long) (sizeof (wchar_t))))
19733 exit (1);
19734 fprintf (f, "%lu\n", i);
19735 }
19736 exit (ferror (f) || fclose (f) != 0);
19737
19738 ;
19739 return 0;
19740}
a848cd7e
SC
19741_ACEOF
19742rm -f conftest$ac_exeext
19743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19744 (eval $ac_link) 2>&5
19745 ac_status=$?
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19749 (eval $ac_try) 2>&5
19750 ac_status=$?
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); }; }; then
238ecede 19753 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
19754else
19755 echo "$as_me: program exited with status $ac_status" >&5
19756echo "$as_me: failed program was:" >&5
19757sed 's/^/| /' conftest.$ac_ext >&5
19758
19759( exit $ac_status )
238ecede
MW
19760{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19761See \`config.log' for more details." >&5
19762echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19763See \`config.log' for more details." >&2;}
19764 { (exit 1); exit 1; }; }
a848cd7e 19765fi
ac1cb8d3 19766rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 19767fi
a848cd7e 19768fi
238ecede
MW
19769rm -f conftest.val
19770else
19771 ac_cv_sizeof_wchar_t=0
19772fi
19773fi
19774echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19775echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 19776cat >>confdefs.h <<_ACEOF
238ecede 19777#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
19778_ACEOF
19779
19780
47a7e797
MW
19781if test "$ac_cv_sizeof_wchar_t" != "0"; then
19782 wxUSE_WCHAR_T=yes
19783else
19784 wxUSE_WCHAR_T=no
19785fi
238ecede 19786
ba3d13e1
VZ
19787echo "$as_me:$LINENO: checking for va_copy" >&5
19788echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
19789if test "${wx_cv_func_va_copy+set}" = set; then
19790 echo $ECHO_N "(cached) $ECHO_C" >&6
19791else
19792
19793 cat >conftest.$ac_ext <<_ACEOF
19794
19795 #include <stdarg.h>
19796 void foo(char *f, ...)
19797 {
19798 va_list ap1, ap2;
19799 va_start(ap1, f);
19800 va_copy(ap2, ap1);
19801 va_end(ap2);
19802 va_end(ap1);
19803 }
5886b072
VZ
19804 int main()
19805 {
b902e639
VZ
19806 foo("hi", 17);
19807 return 0;
5886b072 19808 }
ba3d13e1
VZ
19809_ACEOF
19810rm -f conftest.$ac_objext conftest$ac_exeext
19811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19812 (eval $ac_link) 2>conftest.er1
19813 ac_status=$?
19814 grep -v '^ *+' conftest.er1 >conftest.err
19815 rm -f conftest.er1
19816 cat conftest.err >&5
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); } &&
6ebeb4c7 19819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
19820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19821 (eval $ac_try) 2>&5
19822 ac_status=$?
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); }; } &&
19825 { ac_try='test -s conftest$ac_exeext'
19826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19827 (eval $ac_try) 2>&5
19828 ac_status=$?
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); }; }; then
19831 wx_cv_func_va_copy=yes
19832else
19833 echo "$as_me: failed program was:" >&5
19834sed 's/^/| /' conftest.$ac_ext >&5
19835
19836wx_cv_func_va_copy=no
19837
19838fi
19839rm -f conftest.err conftest.$ac_objext \
19840 conftest$ac_exeext conftest.$ac_ext
19841
19842
19843fi
19844echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
19845echo "${ECHO_T}$wx_cv_func_va_copy" >&6
19846
19847if test $wx_cv_func_va_copy = "yes"; then
19848 cat >>confdefs.h <<\_ACEOF
19849#define HAVE_VA_COPY 1
19850_ACEOF
19851
19852else
19853 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
19854echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
19855if test "${wx_cv_type_va_list_lvalue+set}" = set; then
19856 echo $ECHO_N "(cached) $ECHO_C" >&6
19857else
19858
19859 if test "$cross_compiling" = yes; then
19860 wx_cv_type_va_list_lvalue=yes
19861
19862else
19863 cat >conftest.$ac_ext <<_ACEOF
19864
19865 #include <stdarg.h>
19866 int foo(char *f, ...)
19867 {
19868 va_list ap1, ap2;
19869 va_start(ap1, f);
19870 ap2 = ap1;
19871 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
19872 return 1;
19873 va_end(ap2);
19874 va_end(ap1);
19875 return 0;
19876 }
19877 int main()
19878 {
19879 return foo("hi", 17);
19880 }
19881_ACEOF
19882rm -f conftest$ac_exeext
19883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19884 (eval $ac_link) 2>&5
19885 ac_status=$?
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19889 (eval $ac_try) 2>&5
19890 ac_status=$?
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); }; }; then
19893 wx_cv_type_va_list_lvalue=yes
19894else
19895 echo "$as_me: program exited with status $ac_status" >&5
19896echo "$as_me: failed program was:" >&5
19897sed 's/^/| /' conftest.$ac_ext >&5
19898
19899( exit $ac_status )
19900wx_cv_type_va_list_lvalue=no
19901fi
19902rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19903fi
19904
19905
19906fi
19907echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
19908echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
19909
19910 if test $wx_cv_type_va_list_lvalue != "yes"; then
19911 cat >>confdefs.h <<\_ACEOF
19912#define VA_LIST_IS_ARRAY 1
19913_ACEOF
19914
19915 fi
19916fi
19917
a848cd7e
SC
19918# Check whether --enable-largefile or --disable-largefile was given.
19919if test "${enable_largefile+set}" = set; then
19920 enableval="$enable_largefile"
19921
19922fi;
19923if test "$enable_largefile" != no; then
19924 wx_largefile=no
19925
19926 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19927echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
19928if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19929 echo $ECHO_N "(cached) $ECHO_C" >&6
19930else
19931
19932 cat >conftest.$ac_ext <<_ACEOF
19933/* confdefs.h. */
19934_ACEOF
19935cat confdefs.h >>conftest.$ac_ext
19936cat >>conftest.$ac_ext <<_ACEOF
19937/* end confdefs.h. */
19938#define _FILE_OFFSET_BITS 64
19939 #include <sys/types.h>
19940int
19941main ()
19942{
19943typedef struct {
19944 unsigned int field: sizeof(off_t) == 8;
19945} wxlf;
19946
19947 ;
19948 return 0;
19949}
19950_ACEOF
19951rm -f conftest.$ac_objext
19952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19953 (eval $ac_compile) 2>conftest.er1
a848cd7e 19954 ac_status=$?
ac1cb8d3
VS
19955 grep -v '^ *+' conftest.er1 >conftest.err
19956 rm -f conftest.er1
19957 cat conftest.err >&5
a848cd7e
SC
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); } &&
6ebeb4c7 19960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19962 (eval $ac_try) 2>&5
19963 ac_status=$?
19964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); }; } &&
19966 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19968 (eval $ac_try) 2>&5
19969 ac_status=$?
19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); }; }; then
19972 ac_cv_sys_file_offset_bits=64
19973else
19974 echo "$as_me: failed program was:" >&5
19975sed 's/^/| /' conftest.$ac_ext >&5
19976
19977ac_cv_sys_file_offset_bits=no
19978fi
ac1cb8d3 19979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19980
19981
19982fi
19983echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19984echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
19985
19986 if test "$ac_cv_sys_file_offset_bits" != no; then
19987 wx_largefile=yes
19988 cat >>confdefs.h <<_ACEOF
19989#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19990_ACEOF
19991
19992 fi
19993
19994 if test "x$wx_largefile" != "xyes"; then
19995
19996 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19997echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
19998if test "${ac_cv_sys_large_files+set}" = set; then
19999 echo $ECHO_N "(cached) $ECHO_C" >&6
20000else
20001
20002 cat >conftest.$ac_ext <<_ACEOF
20003/* confdefs.h. */
20004_ACEOF
20005cat confdefs.h >>conftest.$ac_ext
20006cat >>conftest.$ac_ext <<_ACEOF
20007/* end confdefs.h. */
20008#define _LARGE_FILES 1
20009 #include <sys/types.h>
20010int
20011main ()
20012{
20013typedef struct {
20014 unsigned int field: sizeof(off_t) == 8;
20015} wxlf;
20016
20017 ;
20018 return 0;
20019}
20020_ACEOF
20021rm -f conftest.$ac_objext
20022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20023 (eval $ac_compile) 2>conftest.er1
a848cd7e 20024 ac_status=$?
ac1cb8d3
VS
20025 grep -v '^ *+' conftest.er1 >conftest.err
20026 rm -f conftest.er1
20027 cat conftest.err >&5
a848cd7e
SC
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); } &&
6ebeb4c7 20030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20032 (eval $ac_try) 2>&5
20033 ac_status=$?
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); }; } &&
20036 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20038 (eval $ac_try) 2>&5
20039 ac_status=$?
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); }; }; then
20042 ac_cv_sys_large_files=1
20043else
20044 echo "$as_me: failed program was:" >&5
20045sed 's/^/| /' conftest.$ac_ext >&5
20046
20047ac_cv_sys_large_files=no
20048fi
ac1cb8d3 20049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20050
20051
20052fi
20053echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
20054echo "${ECHO_T}$ac_cv_sys_large_files" >&6
20055
20056 if test "$ac_cv_sys_large_files" != no; then
20057 wx_largefile=yes
20058 cat >>confdefs.h <<_ACEOF
20059#define _LARGE_FILES $ac_cv_sys_large_files
20060_ACEOF
20061
20062 fi
20063
20064 fi
20065
20066 echo "$as_me:$LINENO: checking if large file support is available" >&5
20067echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
20068 if test "x$wx_largefile" = "xyes"; then
20069 cat >>confdefs.h <<\_ACEOF
20070#define HAVE_LARGEFILE_SUPPORT 1
20071_ACEOF
20072
20073 fi
20074 echo "$as_me:$LINENO: result: $wx_largefile" >&5
20075echo "${ECHO_T}$wx_largefile" >&6
20076fi
20077
5b674b9d
DE
20078
20079if test "x$wx_largefile" = "xyes"; then
20080 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
20081 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
efdf6afe
VZ
20082
20083 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
20084 CXXFLAGS="$CXXFLAGS -D__STDC_EXT__=1"
20085 fi
5b674b9d
DE
20086 else
20087 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
20088 fi
20089 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
20090echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
20091if test "${ac_cv_sys_largefile_source+set}" = set; then
20092 echo $ECHO_N "(cached) $ECHO_C" >&6
20093else
20094 while :; do
20095 ac_cv_sys_largefile_source=no
20096 cat >conftest.$ac_ext <<_ACEOF
20097/* confdefs.h. */
20098_ACEOF
20099cat confdefs.h >>conftest.$ac_ext
20100cat >>conftest.$ac_ext <<_ACEOF
20101/* end confdefs.h. */
20102#include <stdio.h>
20103int
20104main ()
20105{
20106return !fseeko;
20107 ;
20108 return 0;
20109}
20110_ACEOF
20111rm -f conftest.$ac_objext
20112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20113 (eval $ac_compile) 2>conftest.er1
20114 ac_status=$?
20115 grep -v '^ *+' conftest.er1 >conftest.err
20116 rm -f conftest.er1
20117 cat conftest.err >&5
20118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); } &&
6ebeb4c7 20120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20122 (eval $ac_try) 2>&5
20123 ac_status=$?
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); }; } &&
20126 { ac_try='test -s conftest.$ac_objext'
20127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20128 (eval $ac_try) 2>&5
20129 ac_status=$?
20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); }; }; then
20132 break
20133else
20134 echo "$as_me: failed program was:" >&5
20135sed 's/^/| /' conftest.$ac_ext >&5
20136
20137fi
20138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20139 cat >conftest.$ac_ext <<_ACEOF
20140/* confdefs.h. */
20141_ACEOF
20142cat confdefs.h >>conftest.$ac_ext
20143cat >>conftest.$ac_ext <<_ACEOF
20144/* end confdefs.h. */
20145#define _LARGEFILE_SOURCE 1
20146#include <stdio.h>
20147int
20148main ()
20149{
20150return !fseeko;
20151 ;
20152 return 0;
20153}
20154_ACEOF
20155rm -f conftest.$ac_objext
20156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20157 (eval $ac_compile) 2>conftest.er1
20158 ac_status=$?
20159 grep -v '^ *+' conftest.er1 >conftest.err
20160 rm -f conftest.er1
20161 cat conftest.err >&5
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); } &&
6ebeb4c7 20164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20166 (eval $ac_try) 2>&5
20167 ac_status=$?
20168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169 (exit $ac_status); }; } &&
20170 { ac_try='test -s conftest.$ac_objext'
20171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20172 (eval $ac_try) 2>&5
20173 ac_status=$?
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); }; }; then
20176 ac_cv_sys_largefile_source=1; break
20177else
20178 echo "$as_me: failed program was:" >&5
20179sed 's/^/| /' conftest.$ac_ext >&5
20180
20181fi
20182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20183 break
20184done
20185fi
20186echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20187echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
20188if test "$ac_cv_sys_largefile_source" != no; then
20189
20190cat >>confdefs.h <<_ACEOF
20191#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20192_ACEOF
20193
20194fi
20195rm -f conftest*
20196
20197# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20198# in glibc 2.1.3, but that breaks too many other things.
20199# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20200echo "$as_me:$LINENO: checking for fseeko" >&5
20201echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
20202if test "${ac_cv_func_fseeko+set}" = set; then
20203 echo $ECHO_N "(cached) $ECHO_C" >&6
20204else
20205 cat >conftest.$ac_ext <<_ACEOF
20206/* confdefs.h. */
20207_ACEOF
20208cat confdefs.h >>conftest.$ac_ext
20209cat >>conftest.$ac_ext <<_ACEOF
20210/* end confdefs.h. */
20211#include <stdio.h>
20212int
20213main ()
20214{
20215return fseeko && fseeko (stdin, 0, 0);
20216 ;
20217 return 0;
20218}
20219_ACEOF
20220rm -f conftest.$ac_objext conftest$ac_exeext
20221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20222 (eval $ac_link) 2>conftest.er1
20223 ac_status=$?
20224 grep -v '^ *+' conftest.er1 >conftest.err
20225 rm -f conftest.er1
20226 cat conftest.err >&5
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); } &&
6ebeb4c7 20229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
20230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20231 (eval $ac_try) 2>&5
20232 ac_status=$?
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); }; } &&
20235 { ac_try='test -s conftest$ac_exeext'
20236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20237 (eval $ac_try) 2>&5
20238 ac_status=$?
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); }; }; then
20241 ac_cv_func_fseeko=yes
20242else
20243 echo "$as_me: failed program was:" >&5
20244sed 's/^/| /' conftest.$ac_ext >&5
20245
20246ac_cv_func_fseeko=no
20247fi
20248rm -f conftest.err conftest.$ac_objext \
20249 conftest$ac_exeext conftest.$ac_ext
20250fi
20251echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20252echo "${ECHO_T}$ac_cv_func_fseeko" >&6
20253if test $ac_cv_func_fseeko = yes; then
20254
20255cat >>confdefs.h <<\_ACEOF
20256#define HAVE_FSEEKO 1
20257_ACEOF
20258
20259fi
20260
5b674b9d
DE
20261 if test "$ac_cv_sys_largefile_source" != no; then
20262 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
20263 fi
20264 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
20265fi
20266
20267echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20268echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20269if test "${ac_cv_c_bigendian+set}" = set; then
20270 echo $ECHO_N "(cached) $ECHO_C" >&6
20271else
20272 ac_cv_c_bigendian=unknown
20273# See if sys/param.h defines the BYTE_ORDER macro.
20274cat >conftest.$ac_ext <<_ACEOF
20275/* confdefs.h. */
20276_ACEOF
20277cat confdefs.h >>conftest.$ac_ext
20278cat >>conftest.$ac_ext <<_ACEOF
20279/* end confdefs.h. */
20280#include <sys/types.h>
20281#include <sys/param.h>
20282int
20283main ()
20284{
20285
20286#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20287 bogus endian macros
20288#endif
20289 ;
20290 return 0;
20291}
20292_ACEOF
20293rm -f conftest.$ac_objext
20294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20295 (eval $ac_compile) 2>conftest.er1
a848cd7e 20296 ac_status=$?
ac1cb8d3
VS
20297 grep -v '^ *+' conftest.er1 >conftest.err
20298 rm -f conftest.er1
20299 cat conftest.err >&5
a848cd7e
SC
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); } &&
6ebeb4c7 20302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20304 (eval $ac_try) 2>&5
20305 ac_status=$?
20306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307 (exit $ac_status); }; } &&
20308 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20310 (eval $ac_try) 2>&5
20311 ac_status=$?
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); }; }; then
20314 # It does; now see whether it defined to BIG_ENDIAN or not.
20315cat >conftest.$ac_ext <<_ACEOF
20316/* confdefs.h. */
20317_ACEOF
20318cat confdefs.h >>conftest.$ac_ext
20319cat >>conftest.$ac_ext <<_ACEOF
20320/* end confdefs.h. */
20321#include <sys/types.h>
20322#include <sys/param.h>
20323int
20324main ()
20325{
20326
20327#if BYTE_ORDER != BIG_ENDIAN
20328 not big endian
20329#endif
20330 ;
20331 return 0;
20332}
20333_ACEOF
20334rm -f conftest.$ac_objext
20335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20336 (eval $ac_compile) 2>conftest.er1
a848cd7e 20337 ac_status=$?
ac1cb8d3
VS
20338 grep -v '^ *+' conftest.er1 >conftest.err
20339 rm -f conftest.er1
20340 cat conftest.err >&5
a848cd7e
SC
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); } &&
6ebeb4c7 20343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20345 (eval $ac_try) 2>&5
20346 ac_status=$?
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); }; } &&
20349 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20351 (eval $ac_try) 2>&5
20352 ac_status=$?
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); }; }; then
20355 ac_cv_c_bigendian=yes
20356else
20357 echo "$as_me: failed program was:" >&5
20358sed 's/^/| /' conftest.$ac_ext >&5
20359
20360ac_cv_c_bigendian=no
20361fi
ac1cb8d3 20362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20363else
20364 echo "$as_me: failed program was:" >&5
20365sed 's/^/| /' conftest.$ac_ext >&5
20366
20367fi
ac1cb8d3 20368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20369if test $ac_cv_c_bigendian = unknown; then
20370if test "$cross_compiling" = yes; then
20371 ac_cv_c_bigendian=unknown
20372else
20373 cat >conftest.$ac_ext <<_ACEOF
20374/* confdefs.h. */
20375_ACEOF
20376cat confdefs.h >>conftest.$ac_ext
20377cat >>conftest.$ac_ext <<_ACEOF
20378/* end confdefs.h. */
20379main () {
20380 /* Are we little or big endian? From Harbison&Steele. */
20381 union
20382 {
20383 long l;
20384 char c[sizeof (long)];
20385 } u;
20386 u.l = 1;
20387 exit (u.c[sizeof (long) - 1] == 1);
20388}
20389_ACEOF
20390rm -f conftest$ac_exeext
20391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20392 (eval $ac_link) 2>&5
20393 ac_status=$?
20394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20397 (eval $ac_try) 2>&5
20398 ac_status=$?
20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); }; }; then
20401 ac_cv_c_bigendian=no
20402else
20403 echo "$as_me: program exited with status $ac_status" >&5
20404echo "$as_me: failed program was:" >&5
20405sed 's/^/| /' conftest.$ac_ext >&5
20406
20407( exit $ac_status )
20408ac_cv_c_bigendian=yes
20409fi
ac1cb8d3 20410rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20411fi
20412fi
20413fi
20414echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20415echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20416if test $ac_cv_c_bigendian = unknown; then
20417 { 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
20418echo "$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;}
20419fi
20420if test $ac_cv_c_bigendian = yes; then
20421 cat >>confdefs.h <<\_ACEOF
20422#define WORDS_BIGENDIAN 1
20423_ACEOF
20424
20425fi
20426
20427
20428ac_ext=cc
20429ac_cpp='$CXXCPP $CPPFLAGS'
20430ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20431ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20432ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20433echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
20434echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20435if test -z "$CXXCPP"; then
20436 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20437 echo $ECHO_N "(cached) $ECHO_C" >&6
20438else
20439 # Double quotes because CXXCPP needs to be expanded
20440 for CXXCPP in "$CXX -E" "/lib/cpp"
20441 do
20442 ac_preproc_ok=false
20443for ac_cxx_preproc_warn_flag in '' yes
20444do
20445 # Use a header file that comes with gcc, so configuring glibc
20446 # with a fresh cross-compiler works.
20447 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20448 # <limits.h> exists even on freestanding compilers.
20449 # On the NeXT, cc -E runs the code through the compiler's parser,
20450 # not just through cpp. "Syntax error" is here to catch this case.
20451 cat >conftest.$ac_ext <<_ACEOF
20452/* confdefs.h. */
20453_ACEOF
20454cat confdefs.h >>conftest.$ac_ext
20455cat >>conftest.$ac_ext <<_ACEOF
20456/* end confdefs.h. */
20457#ifdef __STDC__
20458# include <limits.h>
20459#else
20460# include <assert.h>
20461#endif
ac1cb8d3 20462 Syntax error
a848cd7e
SC
20463_ACEOF
20464if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20466 ac_status=$?
20467 grep -v '^ *+' conftest.er1 >conftest.err
20468 rm -f conftest.er1
20469 cat conftest.err >&5
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 (exit $ac_status); } >/dev/null; then
20472 if test -s conftest.err; then
20473 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20474 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20475 else
20476 ac_cpp_err=
20477 fi
20478else
20479 ac_cpp_err=yes
20480fi
20481if test -z "$ac_cpp_err"; then
20482 :
20483else
20484 echo "$as_me: failed program was:" >&5
20485sed 's/^/| /' conftest.$ac_ext >&5
20486
20487 # Broken: fails on valid input.
20488continue
20489fi
20490rm -f conftest.err conftest.$ac_ext
20491
20492 # OK, works on sane cases. Now check whether non-existent headers
20493 # can be detected and how.
20494 cat >conftest.$ac_ext <<_ACEOF
20495/* confdefs.h. */
20496_ACEOF
20497cat confdefs.h >>conftest.$ac_ext
20498cat >>conftest.$ac_ext <<_ACEOF
20499/* end confdefs.h. */
20500#include <ac_nonexistent.h>
20501_ACEOF
20502if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20504 ac_status=$?
20505 grep -v '^ *+' conftest.er1 >conftest.err
20506 rm -f conftest.er1
20507 cat conftest.err >&5
20508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509 (exit $ac_status); } >/dev/null; then
20510 if test -s conftest.err; then
20511 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20512 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20513 else
20514 ac_cpp_err=
20515 fi
20516else
20517 ac_cpp_err=yes
20518fi
20519if test -z "$ac_cpp_err"; then
20520 # Broken: success on invalid input.
20521continue
20522else
20523 echo "$as_me: failed program was:" >&5
20524sed 's/^/| /' conftest.$ac_ext >&5
20525
20526 # Passes both tests.
20527ac_preproc_ok=:
20528break
20529fi
20530rm -f conftest.err conftest.$ac_ext
20531
20532done
20533# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20534rm -f conftest.err conftest.$ac_ext
20535if $ac_preproc_ok; then
20536 break
20537fi
20538
20539 done
20540 ac_cv_prog_CXXCPP=$CXXCPP
20541
20542fi
20543 CXXCPP=$ac_cv_prog_CXXCPP
20544else
20545 ac_cv_prog_CXXCPP=$CXXCPP
20546fi
20547echo "$as_me:$LINENO: result: $CXXCPP" >&5
20548echo "${ECHO_T}$CXXCPP" >&6
20549ac_preproc_ok=false
20550for ac_cxx_preproc_warn_flag in '' yes
20551do
20552 # Use a header file that comes with gcc, so configuring glibc
20553 # with a fresh cross-compiler works.
20554 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20555 # <limits.h> exists even on freestanding compilers.
20556 # On the NeXT, cc -E runs the code through the compiler's parser,
20557 # not just through cpp. "Syntax error" is here to catch this case.
20558 cat >conftest.$ac_ext <<_ACEOF
20559/* confdefs.h. */
20560_ACEOF
20561cat confdefs.h >>conftest.$ac_ext
20562cat >>conftest.$ac_ext <<_ACEOF
20563/* end confdefs.h. */
20564#ifdef __STDC__
20565# include <limits.h>
20566#else
20567# include <assert.h>
20568#endif
ac1cb8d3 20569 Syntax error
a848cd7e
SC
20570_ACEOF
20571if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20572 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20573 ac_status=$?
20574 grep -v '^ *+' conftest.er1 >conftest.err
20575 rm -f conftest.er1
20576 cat conftest.err >&5
20577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578 (exit $ac_status); } >/dev/null; then
20579 if test -s conftest.err; then
20580 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20581 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20582 else
20583 ac_cpp_err=
20584 fi
20585else
20586 ac_cpp_err=yes
20587fi
20588if test -z "$ac_cpp_err"; then
20589 :
20590else
20591 echo "$as_me: failed program was:" >&5
20592sed 's/^/| /' conftest.$ac_ext >&5
20593
20594 # Broken: fails on valid input.
20595continue
20596fi
20597rm -f conftest.err conftest.$ac_ext
20598
20599 # OK, works on sane cases. Now check whether non-existent headers
20600 # can be detected and how.
20601 cat >conftest.$ac_ext <<_ACEOF
20602/* confdefs.h. */
20603_ACEOF
20604cat confdefs.h >>conftest.$ac_ext
20605cat >>conftest.$ac_ext <<_ACEOF
20606/* end confdefs.h. */
20607#include <ac_nonexistent.h>
20608_ACEOF
20609if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20610 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20611 ac_status=$?
20612 grep -v '^ *+' conftest.er1 >conftest.err
20613 rm -f conftest.er1
20614 cat conftest.err >&5
20615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); } >/dev/null; then
20617 if test -s conftest.err; then
20618 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20619 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20620 else
20621 ac_cpp_err=
20622 fi
20623else
20624 ac_cpp_err=yes
20625fi
20626if test -z "$ac_cpp_err"; then
20627 # Broken: success on invalid input.
20628continue
20629else
20630 echo "$as_me: failed program was:" >&5
20631sed 's/^/| /' conftest.$ac_ext >&5
20632
20633 # Passes both tests.
20634ac_preproc_ok=:
20635break
20636fi
20637rm -f conftest.err conftest.$ac_ext
20638
20639done
20640# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20641rm -f conftest.err conftest.$ac_ext
20642if $ac_preproc_ok; then
20643 :
20644else
20645 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20646See \`config.log' for more details." >&5
20647echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20648See \`config.log' for more details." >&2;}
20649 { (exit 1); exit 1; }; }
20650fi
20651
20652ac_ext=cc
20653ac_cpp='$CXXCPP $CPPFLAGS'
20654ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20655ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20656ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20657
20658
20659
20660
20661
20662 ac_ext=cc
20663ac_cpp='$CXXCPP $CPPFLAGS'
20664ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20665ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20666ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20667
20668
20669
20670for ac_header in iostream
20671do
20672as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20673if eval "test \"\${$as_ac_Header+set}\" = set"; then
20674 echo "$as_me:$LINENO: checking for $ac_header" >&5
20675echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20676if eval "test \"\${$as_ac_Header+set}\" = set"; then
20677 echo $ECHO_N "(cached) $ECHO_C" >&6
20678fi
20679echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20680echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20681else
20682 # Is the header compilable?
20683echo "$as_me:$LINENO: checking $ac_header usability" >&5
20684echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20685cat >conftest.$ac_ext <<_ACEOF
20686/* confdefs.h. */
20687_ACEOF
20688cat confdefs.h >>conftest.$ac_ext
20689cat >>conftest.$ac_ext <<_ACEOF
20690/* end confdefs.h. */
20691$ac_includes_default
20692#include <$ac_header>
20693_ACEOF
20694rm -f conftest.$ac_objext
20695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20696 (eval $ac_compile) 2>conftest.er1
a848cd7e 20697 ac_status=$?
ac1cb8d3
VS
20698 grep -v '^ *+' conftest.er1 >conftest.err
20699 rm -f conftest.er1
20700 cat conftest.err >&5
a848cd7e
SC
20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); } &&
6ebeb4c7 20703 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20705 (eval $ac_try) 2>&5
20706 ac_status=$?
20707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708 (exit $ac_status); }; } &&
20709 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20711 (eval $ac_try) 2>&5
20712 ac_status=$?
20713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714 (exit $ac_status); }; }; then
20715 ac_header_compiler=yes
20716else
20717 echo "$as_me: failed program was:" >&5
20718sed 's/^/| /' conftest.$ac_ext >&5
20719
20720ac_header_compiler=no
20721fi
ac1cb8d3 20722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20723echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20724echo "${ECHO_T}$ac_header_compiler" >&6
20725
20726# Is the header present?
20727echo "$as_me:$LINENO: checking $ac_header presence" >&5
20728echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20729cat >conftest.$ac_ext <<_ACEOF
20730/* confdefs.h. */
20731_ACEOF
20732cat confdefs.h >>conftest.$ac_ext
20733cat >>conftest.$ac_ext <<_ACEOF
20734/* end confdefs.h. */
20735#include <$ac_header>
20736_ACEOF
20737if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20738 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20739 ac_status=$?
20740 grep -v '^ *+' conftest.er1 >conftest.err
20741 rm -f conftest.er1
20742 cat conftest.err >&5
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); } >/dev/null; then
20745 if test -s conftest.err; then
20746 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20747 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20748 else
20749 ac_cpp_err=
20750 fi
20751else
20752 ac_cpp_err=yes
20753fi
20754if test -z "$ac_cpp_err"; then
20755 ac_header_preproc=yes
20756else
20757 echo "$as_me: failed program was:" >&5
20758sed 's/^/| /' conftest.$ac_ext >&5
20759
20760 ac_header_preproc=no
20761fi
20762rm -f conftest.err conftest.$ac_ext
20763echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20764echo "${ECHO_T}$ac_header_preproc" >&6
20765
20766# So? What about this header?
ac1cb8d3
VS
20767case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20768 yes:no: )
a848cd7e
SC
20769 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20770echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20772echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20773 ac_header_preproc=yes
a848cd7e 20774 ;;
ac1cb8d3 20775 no:yes:* )
a848cd7e
SC
20776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20777echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20779echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20780 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20781echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20782 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20783echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20785echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20786 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20787echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20788 (
20789 cat <<\_ASBOX
ac1cb8d3
VS
20790## ----------------------------------------- ##
20791## Report this to wx-dev@lists.wxwidgets.org ##
20792## ----------------------------------------- ##
a848cd7e
SC
20793_ASBOX
20794 ) |
20795 sed "s/^/$as_me: WARNING: /" >&2
20796 ;;
20797esac
20798echo "$as_me:$LINENO: checking for $ac_header" >&5
20799echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20800if eval "test \"\${$as_ac_Header+set}\" = set"; then
20801 echo $ECHO_N "(cached) $ECHO_C" >&6
20802else
ac1cb8d3 20803 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
20804fi
20805echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20806echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20807
20808fi
20809if test `eval echo '${'$as_ac_Header'}'` = yes; then
20810 cat >>confdefs.h <<_ACEOF
20811#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20812_ACEOF
20813
20814fi
20815
20816done
20817
20818
20819 if test "$ac_cv_header_iostream" = "yes" ; then
20820 :
20821 else
20822 cat >>confdefs.h <<\_ACEOF
20823#define wxUSE_IOSTREAMH 1
20824_ACEOF
20825
20826 fi
20827
20828 ac_ext=c
20829ac_cpp='$CPP $CPPFLAGS'
20830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20832ac_compiler_gnu=$ac_cv_c_compiler_gnu
20833
20834
20835
20836
20837 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
20838echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
20839if test "${wx_cv_cpp_bool+set}" = set; then
20840 echo $ECHO_N "(cached) $ECHO_C" >&6
20841else
20842
20843
20844
20845 ac_ext=cc
20846ac_cpp='$CXXCPP $CPPFLAGS'
20847ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20848ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20849ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20850
20851
20852 cat >conftest.$ac_ext <<_ACEOF
20853/* confdefs.h. */
20854_ACEOF
20855cat confdefs.h >>conftest.$ac_ext
20856cat >>conftest.$ac_ext <<_ACEOF
20857/* end confdefs.h. */
20858
20859
20860int
20861main ()
20862{
20863
20864 bool b = true;
20865
20866 return 0;
20867
20868 ;
20869 return 0;
20870}
20871_ACEOF
20872rm -f conftest.$ac_objext
20873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20874 (eval $ac_compile) 2>conftest.er1
a848cd7e 20875 ac_status=$?
ac1cb8d3
VS
20876 grep -v '^ *+' conftest.er1 >conftest.err
20877 rm -f conftest.er1
20878 cat conftest.err >&5
a848cd7e
SC
20879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880 (exit $ac_status); } &&
6ebeb4c7 20881 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20883 (eval $ac_try) 2>&5
20884 ac_status=$?
20885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886 (exit $ac_status); }; } &&
20887 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20889 (eval $ac_try) 2>&5
20890 ac_status=$?
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); }; }; then
20893
20894 wx_cv_cpp_bool=yes
20895
20896else
20897 echo "$as_me: failed program was:" >&5
20898sed 's/^/| /' conftest.$ac_ext >&5
20899
20900
20901 wx_cv_cpp_bool=no
20902
20903
20904fi
ac1cb8d3 20905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20906
20907 ac_ext=c
20908ac_cpp='$CPP $CPPFLAGS'
20909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20911ac_compiler_gnu=$ac_cv_c_compiler_gnu
20912
20913
20914fi
20915echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
20916echo "${ECHO_T}$wx_cv_cpp_bool" >&6
20917
20918 if test "$wx_cv_cpp_bool" = "yes"; then
20919 cat >>confdefs.h <<\_ACEOF
20920#define HAVE_BOOL 1
20921_ACEOF
20922
20923 fi
20924
20925
20926
20927 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
20928echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
20929if test "${wx_cv_explicit+set}" = set; then
20930 echo $ECHO_N "(cached) $ECHO_C" >&6
20931else
20932
20933
20934
20935 ac_ext=cc
20936ac_cpp='$CXXCPP $CPPFLAGS'
20937ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20938ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20939ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20940
20941
20942 cat >conftest.$ac_ext <<_ACEOF
20943/* confdefs.h. */
20944_ACEOF
20945cat confdefs.h >>conftest.$ac_ext
20946cat >>conftest.$ac_ext <<_ACEOF
20947/* end confdefs.h. */
20948
20949 class Foo { public: explicit Foo(int) {} };
20950
20951int
20952main ()
20953{
20954
20955 return 0;
20956
20957 ;
20958 return 0;
20959}
20960_ACEOF
20961rm -f conftest.$ac_objext
20962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20963 (eval $ac_compile) 2>conftest.er1
a848cd7e 20964 ac_status=$?
ac1cb8d3
VS
20965 grep -v '^ *+' conftest.er1 >conftest.err
20966 rm -f conftest.er1
20967 cat conftest.err >&5
a848cd7e
SC
20968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969 (exit $ac_status); } &&
6ebeb4c7 20970 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20972 (eval $ac_try) 2>&5
20973 ac_status=$?
20974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20975 (exit $ac_status); }; } &&
20976 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20978 (eval $ac_try) 2>&5
20979 ac_status=$?
20980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981 (exit $ac_status); }; }; then
20982
20983 cat >conftest.$ac_ext <<_ACEOF
20984/* confdefs.h. */
20985_ACEOF
20986cat confdefs.h >>conftest.$ac_ext
20987cat >>conftest.$ac_ext <<_ACEOF
20988/* end confdefs.h. */
20989
20990 class Foo { public: explicit Foo(int) {} };
20991 static void TakeFoo(const Foo& foo) { }
20992
20993int
20994main ()
20995{
20996
20997 TakeFoo(17);
20998 return 0;
20999
21000 ;
21001 return 0;
21002}
21003_ACEOF
21004rm -f conftest.$ac_objext
21005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21006 (eval $ac_compile) 2>conftest.er1
a848cd7e 21007 ac_status=$?
ac1cb8d3
VS
21008 grep -v '^ *+' conftest.er1 >conftest.err
21009 rm -f conftest.er1
21010 cat conftest.err >&5
a848cd7e
SC
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); } &&
6ebeb4c7 21013 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21015 (eval $ac_try) 2>&5
21016 ac_status=$?
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); }; } &&
21019 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21021 (eval $ac_try) 2>&5
21022 ac_status=$?
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); }; }; then
21025 wx_cv_explicit=no
21026else
21027 echo "$as_me: failed program was:" >&5
21028sed 's/^/| /' conftest.$ac_ext >&5
21029
21030wx_cv_explicit=yes
21031
21032fi
ac1cb8d3 21033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21034
21035else
21036 echo "$as_me: failed program was:" >&5
21037sed 's/^/| /' conftest.$ac_ext >&5
21038
21039wx_cv_explicit=no
21040
21041fi
ac1cb8d3 21042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21043
21044 ac_ext=c
21045ac_cpp='$CPP $CPPFLAGS'
21046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21048ac_compiler_gnu=$ac_cv_c_compiler_gnu
21049
21050
21051fi
21052echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
21053echo "${ECHO_T}$wx_cv_explicit" >&6
21054
21055 if test "$wx_cv_explicit" = "yes"; then
21056 cat >>confdefs.h <<\_ACEOF
21057#define HAVE_EXPLICIT 1
21058_ACEOF
21059
21060 fi
21061
21062
21063echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
21064echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
21065if test "${ac_cv_cxx_const_cast+set}" = set; then
21066 echo $ECHO_N "(cached) $ECHO_C" >&6
21067else
21068
21069
21070 ac_ext=cc
21071ac_cpp='$CXXCPP $CPPFLAGS'
21072ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21073ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21074ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21075
21076 cat >conftest.$ac_ext <<_ACEOF
21077/* confdefs.h. */
21078_ACEOF
21079cat confdefs.h >>conftest.$ac_ext
21080cat >>conftest.$ac_ext <<_ACEOF
21081/* end confdefs.h. */
21082
21083int
21084main ()
21085{
21086int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
21087 ;
21088 return 0;
21089}
21090_ACEOF
21091rm -f conftest.$ac_objext
21092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21093 (eval $ac_compile) 2>conftest.er1
a848cd7e 21094 ac_status=$?
ac1cb8d3
VS
21095 grep -v '^ *+' conftest.er1 >conftest.err
21096 rm -f conftest.er1
21097 cat conftest.err >&5
a848cd7e
SC
21098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099 (exit $ac_status); } &&
6ebeb4c7 21100 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21102 (eval $ac_try) 2>&5
21103 ac_status=$?
21104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105 (exit $ac_status); }; } &&
21106 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21108 (eval $ac_try) 2>&5
21109 ac_status=$?
21110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111 (exit $ac_status); }; }; then
21112 ac_cv_cxx_const_cast=yes
21113else
21114 echo "$as_me: failed program was:" >&5
21115sed 's/^/| /' conftest.$ac_ext >&5
21116
21117ac_cv_cxx_const_cast=no
21118fi
ac1cb8d3 21119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21120 ac_ext=c
21121ac_cpp='$CPP $CPPFLAGS'
21122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21124ac_compiler_gnu=$ac_cv_c_compiler_gnu
21125
21126
21127fi
21128echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
21129echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
21130if test "$ac_cv_cxx_const_cast" = yes; then
21131
21132cat >>confdefs.h <<\_ACEOF
21133#define HAVE_CONST_CAST
21134_ACEOF
21135
21136fi
21137
7714864e
RL
21138echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
21139echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
21140if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
21141 echo $ECHO_N "(cached) $ECHO_C" >&6
21142else
21143
21144
21145 ac_ext=cc
21146ac_cpp='$CXXCPP $CPPFLAGS'
21147ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21148ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21149ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21150
21151 cat >conftest.$ac_ext <<_ACEOF
21152/* confdefs.h. */
21153_ACEOF
21154cat confdefs.h >>conftest.$ac_ext
21155cat >>conftest.$ac_ext <<_ACEOF
21156/* end confdefs.h. */
21157#include <typeinfo>
21158class Base { public : Base () {} virtual void f () = 0;};
21159class Derived : public Base { public : Derived () {} virtual void f () {} };
21160class Unrelated { public : Unrelated () {} };
21161int g (Unrelated&) { return 0; }
21162int
21163main ()
21164{
21165
21166Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
21167 ;
21168 return 0;
21169}
21170_ACEOF
21171rm -f conftest.$ac_objext
21172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21173 (eval $ac_compile) 2>conftest.er1
21174 ac_status=$?
21175 grep -v '^ *+' conftest.er1 >conftest.err
21176 rm -f conftest.er1
21177 cat conftest.err >&5
21178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179 (exit $ac_status); } &&
6ebeb4c7 21180 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
21181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21182 (eval $ac_try) 2>&5
21183 ac_status=$?
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); }; } &&
21186 { ac_try='test -s conftest.$ac_objext'
21187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21188 (eval $ac_try) 2>&5
21189 ac_status=$?
21190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191 (exit $ac_status); }; }; then
21192 ac_cv_cxx_reinterpret_cast=yes
21193else
21194 echo "$as_me: failed program was:" >&5
21195sed 's/^/| /' conftest.$ac_ext >&5
21196
21197ac_cv_cxx_reinterpret_cast=no
21198fi
21199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21200 ac_ext=c
21201ac_cpp='$CPP $CPPFLAGS'
21202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21204ac_compiler_gnu=$ac_cv_c_compiler_gnu
21205
21206
21207fi
21208echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
21209echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
21210if test "$ac_cv_cxx_reinterpret_cast" = yes; then
21211
21212cat >>confdefs.h <<\_ACEOF
21213#define HAVE_REINTERPRET_CAST
21214_ACEOF
21215
21216fi
21217
a848cd7e
SC
21218echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
21219echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
21220if test "${ac_cv_cxx_static_cast+set}" = set; then
21221 echo $ECHO_N "(cached) $ECHO_C" >&6
21222else
21223
21224
21225 ac_ext=cc
21226ac_cpp='$CXXCPP $CPPFLAGS'
21227ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21228ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21229ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21230
21231 cat >conftest.$ac_ext <<_ACEOF
21232/* confdefs.h. */
21233_ACEOF
21234cat confdefs.h >>conftest.$ac_ext
21235cat >>conftest.$ac_ext <<_ACEOF
21236/* end confdefs.h. */
21237#include <typeinfo>
21238class Base { public : Base () {} virtual void f () = 0; };
21239class Derived : public Base { public : Derived () {} virtual void f () {} };
21240int g (Derived&) { return 0; }
21241int
21242main ()
21243{
21244
21245Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
21246 ;
21247 return 0;
21248}
21249_ACEOF
21250rm -f conftest.$ac_objext
21251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21252 (eval $ac_compile) 2>conftest.er1
a848cd7e 21253 ac_status=$?
ac1cb8d3
VS
21254 grep -v '^ *+' conftest.er1 >conftest.err
21255 rm -f conftest.er1
21256 cat conftest.err >&5
a848cd7e
SC
21257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258 (exit $ac_status); } &&
6ebeb4c7 21259 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21261 (eval $ac_try) 2>&5
21262 ac_status=$?
21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); }; } &&
21265 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21267 (eval $ac_try) 2>&5
21268 ac_status=$?
21269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270 (exit $ac_status); }; }; then
21271 ac_cv_cxx_static_cast=yes
21272else
21273 echo "$as_me: failed program was:" >&5
21274sed 's/^/| /' conftest.$ac_ext >&5
21275
21276ac_cv_cxx_static_cast=no
21277fi
ac1cb8d3 21278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21279 ac_ext=c
21280ac_cpp='$CPP $CPPFLAGS'
21281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21283ac_compiler_gnu=$ac_cv_c_compiler_gnu
21284
21285
21286fi
21287echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
21288echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
21289if test "$ac_cv_cxx_static_cast" = yes; then
21290
21291cat >>confdefs.h <<\_ACEOF
21292#define HAVE_STATIC_CAST
21293_ACEOF
21294
21295fi
21296
21297
3c28b7cb
MW
21298if test "x$SUNCXX" = xyes; then
21299 CXXFLAGS="$CXXFLAGS -features=tmplife"
21300fi
21301
f56c22b4 21302if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
a848cd7e
SC
21303 ac_ext=cc
21304ac_cpp='$CXXCPP $CPPFLAGS'
21305ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21306ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21307ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21308
21309
f56c22b4
MW
21310 if test "$wxUSE_UNICODE" = "yes"; then
21311 std_string="std::wstring"
21312 char_type="wchar_t"
21313 else
21314 std_string="std::string"
21315 char_type="char"
21316 fi
21317
21318 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
21319echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
21320 cat >conftest.$ac_ext <<_ACEOF
21321/* confdefs.h. */
21322_ACEOF
21323cat confdefs.h >>conftest.$ac_ext
21324cat >>conftest.$ac_ext <<_ACEOF
21325/* end confdefs.h. */
21326#include <string>
a848cd7e
SC
21327int
21328main ()
21329{
f56c22b4 21330$std_string foo;
a848cd7e
SC
21331 ;
21332 return 0;
21333}
21334_ACEOF
21335rm -f conftest.$ac_objext
21336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21337 (eval $ac_compile) 2>conftest.er1
a848cd7e 21338 ac_status=$?
ac1cb8d3
VS
21339 grep -v '^ *+' conftest.er1 >conftest.err
21340 rm -f conftest.er1
21341 cat conftest.err >&5
a848cd7e
SC
21342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343 (exit $ac_status); } &&
6ebeb4c7 21344 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21346 (eval $ac_try) 2>&5
21347 ac_status=$?
21348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21349 (exit $ac_status); }; } &&
21350 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21352 (eval $ac_try) 2>&5
21353 ac_status=$?
21354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355 (exit $ac_status); }; }; then
21356 echo "$as_me:$LINENO: result: yes" >&5
21357echo "${ECHO_T}yes" >&6
0a08f02a
MB
21358 cat >>confdefs.h <<\_ACEOF
21359#define HAVE_STD_WSTRING 1
21360_ACEOF
21361
a848cd7e
SC
21362else
21363 echo "$as_me: failed program was:" >&5
21364sed 's/^/| /' conftest.$ac_ext >&5
21365
21366echo "$as_me:$LINENO: result: no" >&5
21367echo "${ECHO_T}no" >&6
f56c22b4
MW
21368 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
21369echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
21370 cat >conftest.$ac_ext <<_ACEOF
21371/* confdefs.h. */
21372_ACEOF
21373cat confdefs.h >>conftest.$ac_ext
21374cat >>conftest.$ac_ext <<_ACEOF
21375/* end confdefs.h. */
21376
21377 #ifdef HAVE_WCHAR_H
21378 # ifdef __CYGWIN__
21379 # include <stddef.h>
21380 # endif
21381 # include <wchar.h>
21382 #endif
21383 #ifdef HAVE_STDLIB_H
21384 # include <stdlib.h>
21385 #endif
21386 #include <stdio.h>
21387 #include <string>
21388
21389int
21390main ()
21391{
f56c22b4
MW
21392std::basic_string<$char_type> foo;
21393 const $char_type* dummy = foo.c_str();
0a08f02a
MB
21394 ;
21395 return 0;
21396}
21397_ACEOF
21398rm -f conftest.$ac_objext
21399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21400 (eval $ac_compile) 2>conftest.er1
21401 ac_status=$?
21402 grep -v '^ *+' conftest.er1 >conftest.err
21403 rm -f conftest.er1
21404 cat conftest.err >&5
21405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406 (exit $ac_status); } &&
6ebeb4c7 21407 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
21408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21409 (eval $ac_try) 2>&5
21410 ac_status=$?
21411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412 (exit $ac_status); }; } &&
21413 { ac_try='test -s conftest.$ac_objext'
21414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21415 (eval $ac_try) 2>&5
21416 ac_status=$?
21417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21418 (exit $ac_status); }; }; then
21419 echo "$as_me:$LINENO: result: yes" >&5
21420echo "${ECHO_T}yes" >&6
21421else
21422 echo "$as_me: failed program was:" >&5
21423sed 's/^/| /' conftest.$ac_ext >&5
21424
21425echo "$as_me:$LINENO: result: no" >&5
21426echo "${ECHO_T}no" >&6
f56c22b4 21427 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
21428 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
21429echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
21430 { (exit 1); exit 1; }; }
21431 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
21432 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
21433echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 21434 { (exit 1); exit 1; }; }
f56c22b4
MW
21435 else
21436 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
21437echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
21438 wxUSE_STD_STRING=no
21439 fi
21440
0a08f02a 21441
a848cd7e 21442fi
ac1cb8d3 21443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21444
0a08f02a
MB
21445fi
21446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21447
21448 ac_ext=c
21449ac_cpp='$CPP $CPPFLAGS'
21450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
f56c22b4
MW
21452ac_compiler_gnu=$ac_cv_c_compiler_gnu
21453
21454fi
21455
21456if test "$wxUSE_STD_IOSTREAM" = "yes"; then
21457 ac_ext=cc
21458ac_cpp='$CXXCPP $CPPFLAGS'
21459ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21460ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21461ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21462
21463
21464 echo "$as_me:$LINENO: checking for std::istream" >&5
21465echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
21466if test "${ac_cv_type_std__istream+set}" = set; then
21467 echo $ECHO_N "(cached) $ECHO_C" >&6
21468else
21469 cat >conftest.$ac_ext <<_ACEOF
21470/* confdefs.h. */
21471_ACEOF
21472cat confdefs.h >>conftest.$ac_ext
21473cat >>conftest.$ac_ext <<_ACEOF
21474/* end confdefs.h. */
21475#include <iostream>
21476
21477int
21478main ()
21479{
21480if ((std::istream *) 0)
21481 return 0;
21482if (sizeof (std::istream))
21483 return 0;
21484 ;
21485 return 0;
21486}
21487_ACEOF
21488rm -f conftest.$ac_objext
21489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21490 (eval $ac_compile) 2>conftest.er1
21491 ac_status=$?
21492 grep -v '^ *+' conftest.er1 >conftest.err
21493 rm -f conftest.er1
21494 cat conftest.err >&5
21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); } &&
6ebeb4c7 21497 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
21498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21499 (eval $ac_try) 2>&5
21500 ac_status=$?
21501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502 (exit $ac_status); }; } &&
21503 { ac_try='test -s conftest.$ac_objext'
21504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21505 (eval $ac_try) 2>&5
21506 ac_status=$?
21507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508 (exit $ac_status); }; }; then
21509 ac_cv_type_std__istream=yes
21510else
21511 echo "$as_me: failed program was:" >&5
21512sed 's/^/| /' conftest.$ac_ext >&5
21513
21514ac_cv_type_std__istream=no
21515fi
21516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21517fi
21518echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
21519echo "${ECHO_T}$ac_cv_type_std__istream" >&6
21520if test $ac_cv_type_std__istream = yes; then
21521
21522cat >>confdefs.h <<_ACEOF
21523#define HAVE_STD__ISTREAM 1
21524_ACEOF
21525
21526
21527else
21528 wxUSE_STD_IOSTREAM=no
21529fi
21530echo "$as_me:$LINENO: checking for std::ostream" >&5
21531echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
21532if test "${ac_cv_type_std__ostream+set}" = set; then
21533 echo $ECHO_N "(cached) $ECHO_C" >&6
21534else
21535 cat >conftest.$ac_ext <<_ACEOF
21536/* confdefs.h. */
21537_ACEOF
21538cat confdefs.h >>conftest.$ac_ext
21539cat >>conftest.$ac_ext <<_ACEOF
21540/* end confdefs.h. */
21541#include <iostream>
21542
21543int
21544main ()
21545{
21546if ((std::ostream *) 0)
21547 return 0;
21548if (sizeof (std::ostream))
21549 return 0;
21550 ;
21551 return 0;
21552}
21553_ACEOF
21554rm -f conftest.$ac_objext
21555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21556 (eval $ac_compile) 2>conftest.er1
21557 ac_status=$?
21558 grep -v '^ *+' conftest.er1 >conftest.err
21559 rm -f conftest.er1
21560 cat conftest.err >&5
21561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562 (exit $ac_status); } &&
6ebeb4c7 21563 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
21564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21565 (eval $ac_try) 2>&5
21566 ac_status=$?
21567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21568 (exit $ac_status); }; } &&
21569 { ac_try='test -s conftest.$ac_objext'
21570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21571 (eval $ac_try) 2>&5
21572 ac_status=$?
21573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21574 (exit $ac_status); }; }; then
21575 ac_cv_type_std__ostream=yes
21576else
21577 echo "$as_me: failed program was:" >&5
21578sed 's/^/| /' conftest.$ac_ext >&5
21579
21580ac_cv_type_std__ostream=no
21581fi
21582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21583fi
21584echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
21585echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
21586if test $ac_cv_type_std__ostream = yes; then
21587
21588cat >>confdefs.h <<_ACEOF
21589#define HAVE_STD__OSTREAM 1
21590_ACEOF
21591
21592
21593else
21594 wxUSE_STD_IOSTREAM=no
21595fi
21596
21597
21598 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
21599 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
21600 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
21601echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
21602 { (exit 1); exit 1; }; }
21603 else
21604 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 21605echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 21606 fi
f56c22b4
MW
21607 fi
21608
21609 ac_ext=c
21610ac_cpp='$CPP $CPPFLAGS'
21611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
0a08f02a
MB
21613ac_compiler_gnu=$ac_cv_c_compiler_gnu
21614
21615fi
21616
21617if test "$wxUSE_STL" = "yes"; then
21618 ac_ext=cc
21619ac_cpp='$CXXCPP $CPPFLAGS'
21620ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21621ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21622ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21623
21624
21625 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
21626echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
21627 cat >conftest.$ac_ext <<_ACEOF
21628/* confdefs.h. */
21629_ACEOF
21630cat confdefs.h >>conftest.$ac_ext
21631cat >>conftest.$ac_ext <<_ACEOF
21632/* end confdefs.h. */
21633#include <string>
0a08f02a
MB
21634 #include <functional>
21635 #include <algorithm>
21636 #include <vector>
21637 #include <list>
a848cd7e
SC
21638int
21639main ()
21640{
0a08f02a
MB
21641std::vector<int> moo;
21642 std::list<int> foo;
21643 std::vector<int>::iterator it =
21644 std::find_if(moo.begin(), moo.end(),
21645 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
21646 ;
21647 return 0;
21648}
21649_ACEOF
21650rm -f conftest.$ac_objext
21651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21652 (eval $ac_compile) 2>conftest.er1
a848cd7e 21653 ac_status=$?
ac1cb8d3
VS
21654 grep -v '^ *+' conftest.er1 >conftest.err
21655 rm -f conftest.er1
21656 cat conftest.err >&5
a848cd7e
SC
21657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21658 (exit $ac_status); } &&
6ebeb4c7 21659 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21661 (eval $ac_try) 2>&5
21662 ac_status=$?
21663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664 (exit $ac_status); }; } &&
21665 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21667 (eval $ac_try) 2>&5
21668 ac_status=$?
21669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21670 (exit $ac_status); }; }; then
21671 echo "$as_me:$LINENO: result: yes" >&5
21672echo "${ECHO_T}yes" >&6
a848cd7e
SC
21673else
21674 echo "$as_me: failed program was:" >&5
21675sed 's/^/| /' conftest.$ac_ext >&5
21676
21677echo "$as_me:$LINENO: result: no" >&5
21678echo "${ECHO_T}no" >&6
0a08f02a
MB
21679 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
21680echo "$as_me: error: Basic STL functionality missing" >&2;}
21681 { (exit 1); exit 1; }; }
a848cd7e 21682fi
ac1cb8d3 21683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21684
21685 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
21686echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
21687 cat >conftest.$ac_ext <<_ACEOF
21688/* confdefs.h. */
21689_ACEOF
21690cat confdefs.h >>conftest.$ac_ext
21691cat >>conftest.$ac_ext <<_ACEOF
21692/* end confdefs.h. */
21693#include <string>
21694int
21695main ()
21696{
21697std::string foo, bar;
21698 foo.compare(bar);
21699 foo.compare(1, 1, bar);
21700 foo.compare(1, 1, bar, 1, 1);
21701 foo.compare("");
21702 foo.compare(1, 1, "");
21703 foo.compare(1, 1, "", 2);
21704 ;
21705 return 0;
21706}
21707_ACEOF
21708rm -f conftest.$ac_objext
21709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21710 (eval $ac_compile) 2>conftest.er1
a848cd7e 21711 ac_status=$?
ac1cb8d3
VS
21712 grep -v '^ *+' conftest.er1 >conftest.err
21713 rm -f conftest.er1
21714 cat conftest.err >&5
a848cd7e
SC
21715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716 (exit $ac_status); } &&
6ebeb4c7 21717 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21719 (eval $ac_try) 2>&5
21720 ac_status=$?
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); }; } &&
21723 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21725 (eval $ac_try) 2>&5
21726 ac_status=$?
21727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728 (exit $ac_status); }; }; then
21729 echo "$as_me:$LINENO: result: yes" >&5
21730echo "${ECHO_T}yes" >&6
21731 cat >>confdefs.h <<\_ACEOF
21732#define HAVE_STD_STRING_COMPARE 1
21733_ACEOF
21734
21735else
21736 echo "$as_me: failed program was:" >&5
21737sed 's/^/| /' conftest.$ac_ext >&5
21738
21739echo "$as_me:$LINENO: result: no" >&5
21740echo "${ECHO_T}no" >&6
21741fi
ac1cb8d3 21742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21743
21744 if test "${ac_cv_header_hash_map+set}" = set; then
21745 echo "$as_me:$LINENO: checking for hash_map" >&5
21746echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21747if test "${ac_cv_header_hash_map+set}" = set; then
21748 echo $ECHO_N "(cached) $ECHO_C" >&6
21749fi
21750echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21751echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21752else
21753 # Is the header compilable?
21754echo "$as_me:$LINENO: checking hash_map usability" >&5
21755echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
21756cat >conftest.$ac_ext <<_ACEOF
21757/* confdefs.h. */
21758_ACEOF
21759cat confdefs.h >>conftest.$ac_ext
21760cat >>conftest.$ac_ext <<_ACEOF
21761/* end confdefs.h. */
21762$ac_includes_default
21763#include <hash_map>
21764_ACEOF
21765rm -f conftest.$ac_objext
21766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21767 (eval $ac_compile) 2>conftest.er1
bdcade0a 21768 ac_status=$?
ac1cb8d3
VS
21769 grep -v '^ *+' conftest.er1 >conftest.err
21770 rm -f conftest.er1
21771 cat conftest.err >&5
bdcade0a
MB
21772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773 (exit $ac_status); } &&
6ebeb4c7 21774 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21776 (eval $ac_try) 2>&5
21777 ac_status=$?
21778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779 (exit $ac_status); }; } &&
21780 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21782 (eval $ac_try) 2>&5
21783 ac_status=$?
21784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785 (exit $ac_status); }; }; then
21786 ac_header_compiler=yes
21787else
21788 echo "$as_me: failed program was:" >&5
21789sed 's/^/| /' conftest.$ac_ext >&5
21790
21791ac_header_compiler=no
21792fi
ac1cb8d3 21793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21794echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21795echo "${ECHO_T}$ac_header_compiler" >&6
21796
21797# Is the header present?
21798echo "$as_me:$LINENO: checking hash_map presence" >&5
21799echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
21800cat >conftest.$ac_ext <<_ACEOF
21801/* confdefs.h. */
21802_ACEOF
21803cat confdefs.h >>conftest.$ac_ext
21804cat >>conftest.$ac_ext <<_ACEOF
21805/* end confdefs.h. */
21806#include <hash_map>
21807_ACEOF
21808if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21809 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21810 ac_status=$?
21811 grep -v '^ *+' conftest.er1 >conftest.err
21812 rm -f conftest.er1
21813 cat conftest.err >&5
21814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815 (exit $ac_status); } >/dev/null; then
21816 if test -s conftest.err; then
21817 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21818 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
21819 else
21820 ac_cpp_err=
21821 fi
21822else
21823 ac_cpp_err=yes
21824fi
21825if test -z "$ac_cpp_err"; then
21826 ac_header_preproc=yes
21827else
21828 echo "$as_me: failed program was:" >&5
21829sed 's/^/| /' conftest.$ac_ext >&5
21830
21831 ac_header_preproc=no
21832fi
21833rm -f conftest.err conftest.$ac_ext
21834echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21835echo "${ECHO_T}$ac_header_preproc" >&6
21836
21837# So? What about this header?
ac1cb8d3
VS
21838case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21839 yes:no: )
bdcade0a
MB
21840 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
21841echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21842 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
21843echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
21844 ac_header_preproc=yes
bdcade0a 21845 ;;
ac1cb8d3 21846 no:yes:* )
bdcade0a
MB
21847 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
21848echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21849 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
21850echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
21851 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
21852echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
21853 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
21854echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
21855 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
21856echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21857 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
21858echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
21859 (
21860 cat <<\_ASBOX
ac1cb8d3
VS
21861## ----------------------------------------- ##
21862## Report this to wx-dev@lists.wxwidgets.org ##
21863## ----------------------------------------- ##
bdcade0a
MB
21864_ASBOX
21865 ) |
21866 sed "s/^/$as_me: WARNING: /" >&2
21867 ;;
21868esac
21869echo "$as_me:$LINENO: checking for hash_map" >&5
21870echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21871if test "${ac_cv_header_hash_map+set}" = set; then
21872 echo $ECHO_N "(cached) $ECHO_C" >&6
21873else
21874 ac_cv_header_hash_map=$ac_header_preproc
21875fi
21876echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21877echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21878
21879fi
21880if test $ac_cv_header_hash_map = yes; then
21881 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
21882echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
21883 cat >conftest.$ac_ext <<_ACEOF
21884/* confdefs.h. */
21885_ACEOF
21886cat confdefs.h >>conftest.$ac_ext
21887cat >>conftest.$ac_ext <<_ACEOF
21888/* end confdefs.h. */
21889#include <hash_map>
21890 #include <hash_set>
21891int
21892main ()
21893{
21894std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
21895 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
21896 ;
21897 return 0;
21898}
21899_ACEOF
21900rm -f conftest.$ac_objext
21901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21902 (eval $ac_compile) 2>conftest.er1
bdcade0a 21903 ac_status=$?
ac1cb8d3
VS
21904 grep -v '^ *+' conftest.er1 >conftest.err
21905 rm -f conftest.er1
21906 cat conftest.err >&5
bdcade0a
MB
21907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908 (exit $ac_status); } &&
6ebeb4c7 21909 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21911 (eval $ac_try) 2>&5
21912 ac_status=$?
21913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914 (exit $ac_status); }; } &&
21915 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21917 (eval $ac_try) 2>&5
21918 ac_status=$?
21919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21920 (exit $ac_status); }; }; then
21921 echo "$as_me:$LINENO: result: yes" >&5
21922echo "${ECHO_T}yes" >&6
21923 cat >>confdefs.h <<\_ACEOF
21924#define HAVE_HASH_MAP 1
21925_ACEOF
21926
21927 cat >>confdefs.h <<\_ACEOF
21928#define HAVE_STD_HASH_MAP 1
21929_ACEOF
21930
21931else
21932 echo "$as_me: failed program was:" >&5
21933sed 's/^/| /' conftest.$ac_ext >&5
21934
21935echo "$as_me:$LINENO: result: no" >&5
21936echo "${ECHO_T}no" >&6
21937fi
ac1cb8d3 21938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21939
21940fi
21941
21942
21943
21944 if test "${ac_cv_header_ext_hash_map+set}" = set; then
21945 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
21946echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
21947if test "${ac_cv_header_ext_hash_map+set}" = set; then
21948 echo $ECHO_N "(cached) $ECHO_C" >&6
21949fi
21950echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
21951echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
21952else
21953 # Is the header compilable?
21954echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
21955echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
21956cat >conftest.$ac_ext <<_ACEOF
21957/* confdefs.h. */
21958_ACEOF
21959cat confdefs.h >>conftest.$ac_ext
21960cat >>conftest.$ac_ext <<_ACEOF
21961/* end confdefs.h. */
21962$ac_includes_default
21963#include <ext/hash_map>
21964_ACEOF
21965rm -f conftest.$ac_objext
21966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21967 (eval $ac_compile) 2>conftest.er1
bdcade0a 21968 ac_status=$?
ac1cb8d3
VS
21969 grep -v '^ *+' conftest.er1 >conftest.err
21970 rm -f conftest.er1
21971 cat conftest.err >&5
bdcade0a
MB
21972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973 (exit $ac_status); } &&
6ebeb4c7 21974 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21976 (eval $ac_try) 2>&5
21977 ac_status=$?
21978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979 (exit $ac_status); }; } &&
21980 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21982 (eval $ac_try) 2>&5
21983 ac_status=$?
21984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985 (exit $ac_status); }; }; then
21986 ac_header_compiler=yes
21987else
21988 echo "$as_me: failed program was:" >&5
21989sed 's/^/| /' conftest.$ac_ext >&5
21990
21991ac_header_compiler=no
21992fi
ac1cb8d3 21993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21994echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21995echo "${ECHO_T}$ac_header_compiler" >&6
21996
21997# Is the header present?
21998echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
21999echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
22000cat >conftest.$ac_ext <<_ACEOF
22001/* confdefs.h. */
22002_ACEOF
22003cat confdefs.h >>conftest.$ac_ext
22004cat >>conftest.$ac_ext <<_ACEOF
22005/* end confdefs.h. */
22006#include <ext/hash_map>
22007_ACEOF
22008if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22010 ac_status=$?
22011 grep -v '^ *+' conftest.er1 >conftest.err
22012 rm -f conftest.er1
22013 cat conftest.err >&5
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); } >/dev/null; then
22016 if test -s conftest.err; then
22017 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22018 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
22019 else
22020 ac_cpp_err=
22021 fi
22022else
22023 ac_cpp_err=yes
22024fi
22025if test -z "$ac_cpp_err"; then
22026 ac_header_preproc=yes
22027else
22028 echo "$as_me: failed program was:" >&5
22029sed 's/^/| /' conftest.$ac_ext >&5
22030
22031 ac_header_preproc=no
22032fi
22033rm -f conftest.err conftest.$ac_ext
22034echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22035echo "${ECHO_T}$ac_header_preproc" >&6
22036
22037# So? What about this header?
ac1cb8d3
VS
22038case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22039 yes:no: )
bdcade0a
MB
22040 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
22041echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22042 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
22043echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
22044 ac_header_preproc=yes
bdcade0a 22045 ;;
ac1cb8d3 22046 no:yes:* )
bdcade0a
MB
22047 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
22048echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22049 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
22050echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
22051 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
22052echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
22053 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
22054echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
22055 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
22056echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22057 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
22058echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
22059 (
22060 cat <<\_ASBOX
ac1cb8d3
VS
22061## ----------------------------------------- ##
22062## Report this to wx-dev@lists.wxwidgets.org ##
22063## ----------------------------------------- ##
bdcade0a
MB
22064_ASBOX
22065 ) |
22066 sed "s/^/$as_me: WARNING: /" >&2
22067 ;;
22068esac
22069echo "$as_me:$LINENO: checking for ext/hash_map" >&5
22070echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
22071if test "${ac_cv_header_ext_hash_map+set}" = set; then
22072 echo $ECHO_N "(cached) $ECHO_C" >&6
22073else
22074 ac_cv_header_ext_hash_map=$ac_header_preproc
22075fi
22076echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
22077echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
22078
22079fi
22080if test $ac_cv_header_ext_hash_map = yes; then
22081 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
22082echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
22083 cat >conftest.$ac_ext <<_ACEOF
22084/* confdefs.h. */
22085_ACEOF
22086cat confdefs.h >>conftest.$ac_ext
22087cat >>conftest.$ac_ext <<_ACEOF
22088/* end confdefs.h. */
22089#include <ext/hash_map>
22090 #include <ext/hash_set>
22091int
22092main ()
22093{
22094__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
22095 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
22096 ;
22097 return 0;
22098}
22099_ACEOF
22100rm -f conftest.$ac_objext
22101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22102 (eval $ac_compile) 2>conftest.er1
bdcade0a 22103 ac_status=$?
ac1cb8d3
VS
22104 grep -v '^ *+' conftest.er1 >conftest.err
22105 rm -f conftest.er1
22106 cat conftest.err >&5
bdcade0a
MB
22107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108 (exit $ac_status); } &&
6ebeb4c7 22109 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22111 (eval $ac_try) 2>&5
22112 ac_status=$?
22113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114 (exit $ac_status); }; } &&
22115 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22117 (eval $ac_try) 2>&5
22118 ac_status=$?
22119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120 (exit $ac_status); }; }; then
22121 echo "$as_me:$LINENO: result: yes" >&5
22122echo "${ECHO_T}yes" >&6
22123 cat >>confdefs.h <<\_ACEOF
22124#define HAVE_EXT_HASH_MAP 1
22125_ACEOF
22126
22127 cat >>confdefs.h <<\_ACEOF
22128#define HAVE_GNU_CXX_HASH_MAP 1
22129_ACEOF
22130
22131else
22132 echo "$as_me: failed program was:" >&5
22133sed 's/^/| /' conftest.$ac_ext >&5
22134
22135echo "$as_me:$LINENO: result: no" >&5
22136echo "${ECHO_T}no" >&6
22137fi
ac1cb8d3 22138rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22139
22140fi
22141
22142
a848cd7e
SC
22143
22144 ac_ext=c
22145ac_cpp='$CPP $CPPFLAGS'
22146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22148ac_compiler_gnu=$ac_cv_c_compiler_gnu
22149
22150fi
22151
22152
22153SEARCH_INCLUDE="\
22154 /usr/local/include \
22155 \
22156 /usr/Motif-2.1/include \
22157 /usr/Motif-1.2/include \
22158 /usr/include/Motif1.2 \
22159 /opt/xpm/include/X11 \
22160 /opt/GBxpm/include/ \
22161 /opt/GBxpm/X11/include/ \
22162 \
22163 /usr/dt/include \
22164 /usr/openwin/include \
22165 \
22166 /usr/include/Xm \
22167 \
22168 /usr/X11R6/include \
22169 /usr/X11R6.4/include \
22170 /usr/X11R5/include \
22171 /usr/X11R4/include \
22172 \
22173 /usr/include/X11R6 \
22174 /usr/include/X11R5 \
22175 /usr/include/X11R4 \
22176 \
22177 /usr/local/X11R6/include \
22178 /usr/local/X11R5/include \
22179 /usr/local/X11R4/include \
22180 \
22181 /usr/local/include/X11R6 \
22182 /usr/local/include/X11R5 \
22183 /usr/local/include/X11R4 \
22184 \
22185 /usr/X11/include \
22186 /usr/include/X11 \
22187 /usr/local/X11/include \
22188 /usr/local/include/X11 \
22189 \
22190 /usr/X386/include \
22191 /usr/x386/include \
22192 /usr/XFree86/include/X11 \
22193 \
22194 X:/XFree86/include \
22195 X:/XFree86/include/X11 \
22196 \
22197 /usr/include/gtk \
22198 /usr/local/include/gtk \
22199 /usr/include/glib \
22200 /usr/local/include/glib \
22201 \
22202 /usr/include/qt \
22203 /usr/local/include/qt \
22204 \
22205 /usr/local/arm/3.3.2/include \
22206 \
22207 /usr/include/windows \
22208 /usr/include/wine \
22209 /usr/local/include/wine \
22210 \
22211 /usr/unsupported/include \
22212 /usr/athena/include \
22213 /usr/local/x11r5/include \
22214 /usr/lpp/Xamples/include \
22215 \
22216 /usr/openwin/share/include"
22217
07158944 22218SEARCH_LIB="/usr/lib /usr/lib32 /usr/lib64 /usr/X11R6/lib64 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g`"
a848cd7e 22219
3eca31dc
MW
22220if test "$build" != "$host" -a "$GCC" = yes; then
22221 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
22222 cross_root=`dirname $cross_root`
22223 cross_root=`dirname $cross_root`
22224
22225 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
22226 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
22227
22228 if test -z "$PKG_CONFIG_PATH"; then
22229 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
22230 export PKG_CONFIG_PATH
22231 fi
22232
22233 if test -z "$x_includes" -o "$x_includes" = NONE; then
22234
22235ac_find_includes=
22236for ac_dir in $SEARCH_INCLUDE /usr/include;
22237 do
22238 if test -f "$ac_dir/X11/Intrinsic.h"; then
22239 ac_find_includes=$ac_dir
22240 break
22241 fi
22242 done
22243
22244 x_includes=$ac_find_includes
22245 fi
22246 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
22247
22248ac_find_libraries=
22249for ac_dir in $SEARCH_LIB /usr/lib;
22250 do
22251 for ac_extension in a so sl dylib dll.a; do
22252 if test -f "$ac_dir/libXt.$ac_extension"; then
22253 ac_find_libraries=$ac_dir
22254 break 2
22255 fi
22256 done
22257 done
22258
22259 x_libraries=$ac_find_libraries
22260 fi
22261 fi
22262fi
22263
a848cd7e
SC
22264
22265cat >confcache <<\_ACEOF
22266# This file is a shell script that caches the results of configure
22267# tests run on this system so they can be shared between configure
22268# scripts and configure runs, see configure's option --config-cache.
22269# It is not useful on other systems. If it contains results you don't
22270# want to keep, you may remove or edit it.
22271#
22272# config.status only pays attention to the cache file if you give it
22273# the --recheck option to rerun configure.
22274#
22275# `ac_cv_env_foo' variables (set or unset) will be overridden when
22276# loading this file, other *unset* `ac_cv_foo' will be assigned the
22277# following values.
22278
22279_ACEOF
22280
22281# The following way of writing the cache mishandles newlines in values,
22282# but we know of no workaround that is simple, portable, and efficient.
22283# So, don't put newlines in cache variables' values.
22284# Ultrix sh set writes to stderr and can't be redirected directly,
22285# and sets the high bit in the cache file unless we assign to the vars.
22286{
22287 (set) 2>&1 |
22288 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22289 *ac_space=\ *)
22290 # `set' does not quote correctly, so add quotes (double-quote
22291 # substitution turns \\\\ into \\, and sed turns \\ into \).
22292 sed -n \
ac1cb8d3
VS
22293 "s/'/'\\\\''/g;
22294 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
22295 ;;
22296 *)
22297 # `set' quotes correctly as required by POSIX, so do not add quotes.
22298 sed -n \
ac1cb8d3 22299 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
22300 ;;
22301 esac;
22302} |
22303 sed '
22304 t clear
22305 : clear
22306 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22307 t end
22308 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22309 : end' >>confcache
22310if diff $cache_file confcache >/dev/null 2>&1; then :; else
22311 if test -w $cache_file; then
22312 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22313 cat confcache >$cache_file
22314 else
22315 echo "not updating unwritable cache $cache_file"
22316 fi
22317fi
22318rm -f confcache
22319
22320if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
22321 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
22322echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
22323if test "${wx_cv_lib_glibc21+set}" = set; then
22324 echo $ECHO_N "(cached) $ECHO_C" >&6
22325else
22326
22327 cat >conftest.$ac_ext <<_ACEOF
22328/* confdefs.h. */
22329_ACEOF
22330cat confdefs.h >>conftest.$ac_ext
22331cat >>conftest.$ac_ext <<_ACEOF
22332/* end confdefs.h. */
22333#include <features.h>
22334int
22335main ()
22336{
22337
22338 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
22339 #error not glibc2.1
22340 #endif
22341
22342 ;
22343 return 0;
22344}
22345_ACEOF
22346rm -f conftest.$ac_objext
22347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22348 (eval $ac_compile) 2>conftest.er1
a848cd7e 22349 ac_status=$?
ac1cb8d3
VS
22350 grep -v '^ *+' conftest.er1 >conftest.err
22351 rm -f conftest.er1
22352 cat conftest.err >&5
a848cd7e
SC
22353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354 (exit $ac_status); } &&
6ebeb4c7 22355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22357 (eval $ac_try) 2>&5
22358 ac_status=$?
22359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22360 (exit $ac_status); }; } &&
22361 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22363 (eval $ac_try) 2>&5
22364 ac_status=$?
22365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366 (exit $ac_status); }; }; then
22367
22368 wx_cv_lib_glibc21=yes
22369
22370else
22371 echo "$as_me: failed program was:" >&5
22372sed 's/^/| /' conftest.$ac_ext >&5
22373
22374
22375 wx_cv_lib_glibc21=no
22376
22377
22378fi
ac1cb8d3 22379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22380
22381fi
22382echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
22383echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
22384 if test "$wx_cv_lib_glibc21" = "yes"; then
22385 cat >>confdefs.h <<\_ACEOF
22386#define wxHAVE_GLIBC2 1
22387_ACEOF
22388
22389 fi
22390fi
22391
22392if test "x$wx_cv_lib_glibc21" = "xyes"; then
22393 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
22394 cat >>confdefs.h <<\_ACEOF
22395#define _GNU_SOURCE 1
22396_ACEOF
22397
22398 fi
22399fi
22400
22401
22402
22403if test "$wxUSE_REGEX" != "no"; then
22404 cat >>confdefs.h <<\_ACEOF
22405#define wxUSE_REGEX 1
22406_ACEOF
22407
22408
22409 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
22410 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
22411echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
22412 wxUSE_REGEX=builtin
22413 fi
22414
22415 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
22416 if test "${ac_cv_header_regex_h+set}" = set; then
22417 echo "$as_me:$LINENO: checking for regex.h" >&5
22418echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22419if test "${ac_cv_header_regex_h+set}" = set; then
22420 echo $ECHO_N "(cached) $ECHO_C" >&6
22421fi
22422echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22423echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22424else
22425 # Is the header compilable?
22426echo "$as_me:$LINENO: checking regex.h usability" >&5
22427echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
22428cat >conftest.$ac_ext <<_ACEOF
22429/* confdefs.h. */
22430_ACEOF
22431cat confdefs.h >>conftest.$ac_ext
22432cat >>conftest.$ac_ext <<_ACEOF
22433/* end confdefs.h. */
22434$ac_includes_default
22435#include <regex.h>
22436_ACEOF
22437rm -f conftest.$ac_objext
22438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22439 (eval $ac_compile) 2>conftest.er1
a848cd7e 22440 ac_status=$?
ac1cb8d3
VS
22441 grep -v '^ *+' conftest.er1 >conftest.err
22442 rm -f conftest.er1
22443 cat conftest.err >&5
a848cd7e
SC
22444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22445 (exit $ac_status); } &&
6ebeb4c7 22446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22448 (eval $ac_try) 2>&5
22449 ac_status=$?
22450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22451 (exit $ac_status); }; } &&
22452 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22454 (eval $ac_try) 2>&5
22455 ac_status=$?
22456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457 (exit $ac_status); }; }; then
22458 ac_header_compiler=yes
22459else
22460 echo "$as_me: failed program was:" >&5
22461sed 's/^/| /' conftest.$ac_ext >&5
22462
22463ac_header_compiler=no
22464fi
ac1cb8d3 22465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22466echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22467echo "${ECHO_T}$ac_header_compiler" >&6
22468
22469# Is the header present?
22470echo "$as_me:$LINENO: checking regex.h presence" >&5
22471echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
22472cat >conftest.$ac_ext <<_ACEOF
22473/* confdefs.h. */
22474_ACEOF
22475cat confdefs.h >>conftest.$ac_ext
22476cat >>conftest.$ac_ext <<_ACEOF
22477/* end confdefs.h. */
22478#include <regex.h>
22479_ACEOF
22480if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22482 ac_status=$?
22483 grep -v '^ *+' conftest.er1 >conftest.err
22484 rm -f conftest.er1
22485 cat conftest.err >&5
22486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487 (exit $ac_status); } >/dev/null; then
22488 if test -s conftest.err; then
22489 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22491 else
22492 ac_cpp_err=
22493 fi
22494else
22495 ac_cpp_err=yes
22496fi
22497if test -z "$ac_cpp_err"; then
22498 ac_header_preproc=yes
22499else
22500 echo "$as_me: failed program was:" >&5
22501sed 's/^/| /' conftest.$ac_ext >&5
22502
22503 ac_header_preproc=no
22504fi
22505rm -f conftest.err conftest.$ac_ext
22506echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22507echo "${ECHO_T}$ac_header_preproc" >&6
22508
22509# So? What about this header?
ac1cb8d3
VS
22510case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22511 yes:no: )
a848cd7e
SC
22512 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22513echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22514 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22515echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22516 ac_header_preproc=yes
a848cd7e 22517 ;;
ac1cb8d3 22518 no:yes:* )
a848cd7e
SC
22519 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22520echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22521 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
22522echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
22523 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22524echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22525 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
22526echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22527 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22528echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22529 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22530echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22531 (
22532 cat <<\_ASBOX
ac1cb8d3
VS
22533## ----------------------------------------- ##
22534## Report this to wx-dev@lists.wxwidgets.org ##
22535## ----------------------------------------- ##
a848cd7e
SC
22536_ASBOX
22537 ) |
22538 sed "s/^/$as_me: WARNING: /" >&2
22539 ;;
22540esac
22541echo "$as_me:$LINENO: checking for regex.h" >&5
22542echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22543if test "${ac_cv_header_regex_h+set}" = set; then
22544 echo $ECHO_N "(cached) $ECHO_C" >&6
22545else
22546 ac_cv_header_regex_h=$ac_header_preproc
22547fi
22548echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22549echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22550
22551fi
22552if test $ac_cv_header_regex_h = yes; then
22553
22554for ac_func in regcomp
22555do
22556as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22557echo "$as_me:$LINENO: checking for $ac_func" >&5
22558echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22559if eval "test \"\${$as_ac_var+set}\" = set"; then
22560 echo $ECHO_N "(cached) $ECHO_C" >&6
22561else
22562 cat >conftest.$ac_ext <<_ACEOF
22563/* confdefs.h. */
22564_ACEOF
22565cat confdefs.h >>conftest.$ac_ext
22566cat >>conftest.$ac_ext <<_ACEOF
22567/* end confdefs.h. */
ac1cb8d3
VS
22568/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22570#define $ac_func innocuous_$ac_func
22571
a848cd7e
SC
22572/* System header to define __stub macros and hopefully few prototypes,
22573 which can conflict with char $ac_func (); below.
22574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22575 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 22576
a848cd7e
SC
22577#ifdef __STDC__
22578# include <limits.h>
22579#else
22580# include <assert.h>
22581#endif
ac1cb8d3
VS
22582
22583#undef $ac_func
22584
a848cd7e
SC
22585/* Override any gcc2 internal prototype to avoid an error. */
22586#ifdef __cplusplus
22587extern "C"
22588{
22589#endif
22590/* We use char because int might match the return type of a gcc2
22591 builtin and then its argument prototype would still apply. */
22592char $ac_func ();
22593/* The GNU C library defines this for functions which it implements
22594 to always fail with ENOSYS. Some functions are actually named
22595 something starting with __ and the normal name is an alias. */
22596#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22597choke me
22598#else
22599char (*f) () = $ac_func;
22600#endif
22601#ifdef __cplusplus
22602}
22603#endif
22604
22605int
22606main ()
22607{
22608return f != $ac_func;
22609 ;
22610 return 0;
22611}
22612_ACEOF
22613rm -f conftest.$ac_objext conftest$ac_exeext
22614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22615 (eval $ac_link) 2>conftest.er1
a848cd7e 22616 ac_status=$?
ac1cb8d3
VS
22617 grep -v '^ *+' conftest.er1 >conftest.err
22618 rm -f conftest.er1
22619 cat conftest.err >&5
a848cd7e
SC
22620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621 (exit $ac_status); } &&
6ebeb4c7 22622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22624 (eval $ac_try) 2>&5
22625 ac_status=$?
22626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627 (exit $ac_status); }; } &&
22628 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22630 (eval $ac_try) 2>&5
22631 ac_status=$?
22632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633 (exit $ac_status); }; }; then
22634 eval "$as_ac_var=yes"
22635else
22636 echo "$as_me: failed program was:" >&5
22637sed 's/^/| /' conftest.$ac_ext >&5
22638
22639eval "$as_ac_var=no"
22640fi
ac1cb8d3
VS
22641rm -f conftest.err conftest.$ac_objext \
22642 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22643fi
22644echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22645echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22646if test `eval echo '${'$as_ac_var'}'` = yes; then
22647 cat >>confdefs.h <<_ACEOF
22648#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22649_ACEOF
22650
22651fi
22652done
22653
22654fi
22655
22656
22657
22658 if test "x$ac_cv_func_regcomp" != "xyes"; then
22659 if test "$wxUSE_REGEX" = "sys" ; then
22660 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
22661echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
22662 { (exit 1); exit 1; }; }
22663 else
22664 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
22665echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
22666 wxUSE_REGEX=builtin
22667 fi
22668 else
22669 wxUSE_REGEX=sys
22670 cat >>confdefs.h <<\_ACEOF
22671#define WX_NO_REGEX_ADVANCED 1
22672_ACEOF
22673
22674 fi
22675 fi
22676fi
22677
22678
22679ZLIB_LINK=
22680if test "$wxUSE_ZLIB" != "no" ; then
22681 cat >>confdefs.h <<\_ACEOF
22682#define wxUSE_ZLIB 1
22683_ACEOF
22684
22685
22686 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
22687 if test "$USE_DARWIN" = 1; then
22688 system_zlib_h_ok="yes"
22689 else
22690 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
22691echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
22692if test "${ac_cv_header_zlib_h+set}" = set; then
22693 echo $ECHO_N "(cached) $ECHO_C" >&6
22694else
22695 if test "$cross_compiling" = yes; then
22696 unset ac_cv_header_zlib_h
22697
22698else
22699 cat >conftest.$ac_ext <<_ACEOF
22700/* confdefs.h. */
22701_ACEOF
22702cat confdefs.h >>conftest.$ac_ext
22703cat >>conftest.$ac_ext <<_ACEOF
22704/* end confdefs.h. */
22705
22706 #include <zlib.h>
22707 #include <stdio.h>
22708
22709 int main()
22710 {
22711 FILE *f=fopen("conftestval", "w");
22712 if (!f) exit(1);
22713 fprintf(f, "%s",
22714 ZLIB_VERSION[0] == '1' &&
22715 (ZLIB_VERSION[2] > '1' ||
22716 (ZLIB_VERSION[2] == '1' &&
22717 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
22718 exit(0);
22719 }
22720
22721_ACEOF
22722rm -f conftest$ac_exeext
22723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22724 (eval $ac_link) 2>&5
22725 ac_status=$?
22726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22729 (eval $ac_try) 2>&5
22730 ac_status=$?
22731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22732 (exit $ac_status); }; }; then
22733 ac_cv_header_zlib_h=`cat conftestval`
22734else
22735 echo "$as_me: program exited with status $ac_status" >&5
22736echo "$as_me: failed program was:" >&5
22737sed 's/^/| /' conftest.$ac_ext >&5
22738
22739( exit $ac_status )
22740ac_cv_header_zlib_h=no
22741fi
ac1cb8d3 22742rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22743fi
22744
22745fi
22746echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22747echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22748 if test "${ac_cv_header_zlib_h+set}" = set; then
22749 echo "$as_me:$LINENO: checking for zlib.h" >&5
22750echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22751if test "${ac_cv_header_zlib_h+set}" = set; then
22752 echo $ECHO_N "(cached) $ECHO_C" >&6
22753fi
22754echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22755echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22756else
22757 # Is the header compilable?
22758echo "$as_me:$LINENO: checking zlib.h usability" >&5
22759echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
22760cat >conftest.$ac_ext <<_ACEOF
22761/* confdefs.h. */
22762_ACEOF
22763cat confdefs.h >>conftest.$ac_ext
22764cat >>conftest.$ac_ext <<_ACEOF
22765/* end confdefs.h. */
22766$ac_includes_default
22767#include <zlib.h>
22768_ACEOF
22769rm -f conftest.$ac_objext
22770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22771 (eval $ac_compile) 2>conftest.er1
a848cd7e 22772 ac_status=$?
ac1cb8d3
VS
22773 grep -v '^ *+' conftest.er1 >conftest.err
22774 rm -f conftest.er1
22775 cat conftest.err >&5
a848cd7e
SC
22776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22777 (exit $ac_status); } &&
6ebeb4c7 22778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22780 (eval $ac_try) 2>&5
22781 ac_status=$?
22782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22783 (exit $ac_status); }; } &&
22784 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22786 (eval $ac_try) 2>&5
22787 ac_status=$?
22788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22789 (exit $ac_status); }; }; then
22790 ac_header_compiler=yes
22791else
22792 echo "$as_me: failed program was:" >&5
22793sed 's/^/| /' conftest.$ac_ext >&5
22794
22795ac_header_compiler=no
22796fi
ac1cb8d3 22797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22798echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22799echo "${ECHO_T}$ac_header_compiler" >&6
22800
22801# Is the header present?
22802echo "$as_me:$LINENO: checking zlib.h presence" >&5
22803echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
22804cat >conftest.$ac_ext <<_ACEOF
22805/* confdefs.h. */
22806_ACEOF
22807cat confdefs.h >>conftest.$ac_ext
22808cat >>conftest.$ac_ext <<_ACEOF
22809/* end confdefs.h. */
22810#include <zlib.h>
22811_ACEOF
22812if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22814 ac_status=$?
22815 grep -v '^ *+' conftest.er1 >conftest.err
22816 rm -f conftest.er1
22817 cat conftest.err >&5
22818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819 (exit $ac_status); } >/dev/null; then
22820 if test -s conftest.err; then
22821 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22823 else
22824 ac_cpp_err=
22825 fi
22826else
22827 ac_cpp_err=yes
22828fi
22829if test -z "$ac_cpp_err"; then
22830 ac_header_preproc=yes
22831else
22832 echo "$as_me: failed program was:" >&5
22833sed 's/^/| /' conftest.$ac_ext >&5
22834
22835 ac_header_preproc=no
22836fi
22837rm -f conftest.err conftest.$ac_ext
22838echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22839echo "${ECHO_T}$ac_header_preproc" >&6
22840
22841# So? What about this header?
ac1cb8d3
VS
22842case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22843 yes:no: )
a848cd7e
SC
22844 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22845echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22846 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22847echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22848 ac_header_preproc=yes
a848cd7e 22849 ;;
ac1cb8d3 22850 no:yes:* )
a848cd7e
SC
22851 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22852echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22853 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
22854echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
22855 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22856echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22857 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
22858echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22859 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22860echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22861 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22862echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22863 (
22864 cat <<\_ASBOX
ac1cb8d3
VS
22865## ----------------------------------------- ##
22866## Report this to wx-dev@lists.wxwidgets.org ##
22867## ----------------------------------------- ##
a848cd7e
SC
22868_ASBOX
22869 ) |
22870 sed "s/^/$as_me: WARNING: /" >&2
22871 ;;
22872esac
22873echo "$as_me:$LINENO: checking for zlib.h" >&5
22874echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22875if test "${ac_cv_header_zlib_h+set}" = set; then
22876 echo $ECHO_N "(cached) $ECHO_C" >&6
22877else
22878 ac_cv_header_zlib_h=$ac_header_preproc
22879fi
22880echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22881echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22882
22883fi
22884
22885
22886
22887 system_zlib_h_ok=$ac_cv_header_zlib_h
22888 fi
22889
22890 if test "$system_zlib_h_ok" = "yes"; then
22891 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
22892echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
22893if test "${ac_cv_lib_z_deflate+set}" = set; then
22894 echo $ECHO_N "(cached) $ECHO_C" >&6
22895else
22896 ac_check_lib_save_LIBS=$LIBS
22897LIBS="-lz $LIBS"
22898cat >conftest.$ac_ext <<_ACEOF
22899/* confdefs.h. */
22900_ACEOF
22901cat confdefs.h >>conftest.$ac_ext
22902cat >>conftest.$ac_ext <<_ACEOF
22903/* end confdefs.h. */
22904
22905/* Override any gcc2 internal prototype to avoid an error. */
22906#ifdef __cplusplus
22907extern "C"
22908#endif
22909/* We use char because int might match the return type of a gcc2
22910 builtin and then its argument prototype would still apply. */
22911char deflate ();
22912int
22913main ()
22914{
22915deflate ();
22916 ;
22917 return 0;
22918}
22919_ACEOF
22920rm -f conftest.$ac_objext conftest$ac_exeext
22921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22922 (eval $ac_link) 2>conftest.er1
a848cd7e 22923 ac_status=$?
ac1cb8d3
VS
22924 grep -v '^ *+' conftest.er1 >conftest.err
22925 rm -f conftest.er1
22926 cat conftest.err >&5
a848cd7e
SC
22927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928 (exit $ac_status); } &&
6ebeb4c7 22929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22931 (eval $ac_try) 2>&5
22932 ac_status=$?
22933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934 (exit $ac_status); }; } &&
22935 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22937 (eval $ac_try) 2>&5
22938 ac_status=$?
22939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940 (exit $ac_status); }; }; then
22941 ac_cv_lib_z_deflate=yes
22942else
22943 echo "$as_me: failed program was:" >&5
22944sed 's/^/| /' conftest.$ac_ext >&5
22945
22946ac_cv_lib_z_deflate=no
22947fi
ac1cb8d3
VS
22948rm -f conftest.err conftest.$ac_objext \
22949 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22950LIBS=$ac_check_lib_save_LIBS
22951fi
22952echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
22953echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
22954if test $ac_cv_lib_z_deflate = yes; then
22955 ZLIB_LINK=" -lz"
22956fi
22957
22958 fi
22959
22960 if test "x$ZLIB_LINK" = "x" ; then
22961 if test "$wxUSE_ZLIB" = "sys" ; then
22962 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
22963echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
22964 { (exit 1); exit 1; }; }
22965 else
22966 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
22967echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
22968 wxUSE_ZLIB=builtin
22969 fi
22970 else
22971 wxUSE_ZLIB=sys
22972 fi
22973 fi
22974fi
22975
22976
22977PNG_LINK=
22978if test "$wxUSE_LIBPNG" != "no" ; then
22979 cat >>confdefs.h <<\_ACEOF
22980#define wxUSE_LIBPNG 1
22981_ACEOF
22982
22983
22984 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
22985 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
22986echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
22987 wxUSE_LIBPNG=sys
22988 fi
22989
22990 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
22991 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
22992echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
22993 wxUSE_LIBPNG=builtin
22994 fi
22995
22996 if test "$wxUSE_MGL" != 1 ; then
22997 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
22998 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
22999echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
23000if test "${ac_cv_header_png_h+set}" = set; then
23001 echo $ECHO_N "(cached) $ECHO_C" >&6
23002else
23003 if test "$cross_compiling" = yes; then
23004 unset ac_cv_header_png_h
23005
23006else
23007 cat >conftest.$ac_ext <<_ACEOF
23008/* confdefs.h. */
23009_ACEOF
23010cat confdefs.h >>conftest.$ac_ext
23011cat >>conftest.$ac_ext <<_ACEOF
23012/* end confdefs.h. */
23013
23014 #include <png.h>
23015 #include <stdio.h>
23016
23017 int main()
23018 {
23019 FILE *f=fopen("conftestval", "w");
23020 if (!f) exit(1);
23021 fprintf(f, "%s",
23022 PNG_LIBPNG_VER > 90 ? "yes" : "no");
23023 exit(0);
23024 }
23025
23026_ACEOF
23027rm -f conftest$ac_exeext
23028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23029 (eval $ac_link) 2>&5
23030 ac_status=$?
23031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23034 (eval $ac_try) 2>&5
23035 ac_status=$?
23036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23037 (exit $ac_status); }; }; then
23038 ac_cv_header_png_h=`cat conftestval`
23039else
23040 echo "$as_me: program exited with status $ac_status" >&5
23041echo "$as_me: failed program was:" >&5
23042sed 's/^/| /' conftest.$ac_ext >&5
23043
23044( exit $ac_status )
23045ac_cv_header_png_h=no
23046fi
ac1cb8d3 23047rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23048fi
23049
23050fi
23051echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23052echo "${ECHO_T}$ac_cv_header_png_h" >&6
23053 if test "${ac_cv_header_png_h+set}" = set; then
23054 echo "$as_me:$LINENO: checking for png.h" >&5
23055echo $ECHO_N "checking for png.h... $ECHO_C" >&6
23056if test "${ac_cv_header_png_h+set}" = set; then
23057 echo $ECHO_N "(cached) $ECHO_C" >&6
23058fi
23059echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23060echo "${ECHO_T}$ac_cv_header_png_h" >&6
23061else
23062 # Is the header compilable?
23063echo "$as_me:$LINENO: checking png.h usability" >&5
23064echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
23065cat >conftest.$ac_ext <<_ACEOF
23066/* confdefs.h. */
23067_ACEOF
23068cat confdefs.h >>conftest.$ac_ext
23069cat >>conftest.$ac_ext <<_ACEOF
23070/* end confdefs.h. */
23071$ac_includes_default
23072#include <png.h>
23073_ACEOF
23074rm -f conftest.$ac_objext
23075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23076 (eval $ac_compile) 2>conftest.er1
a848cd7e 23077 ac_status=$?
ac1cb8d3
VS
23078 grep -v '^ *+' conftest.er1 >conftest.err
23079 rm -f conftest.er1
23080 cat conftest.err >&5
a848cd7e
SC
23081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23082 (exit $ac_status); } &&
6ebeb4c7 23083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23085 (eval $ac_try) 2>&5
23086 ac_status=$?
23087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23088 (exit $ac_status); }; } &&
23089 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23091 (eval $ac_try) 2>&5
23092 ac_status=$?
23093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094 (exit $ac_status); }; }; then
23095 ac_header_compiler=yes
23096else
23097 echo "$as_me: failed program was:" >&5
23098sed 's/^/| /' conftest.$ac_ext >&5
23099
23100ac_header_compiler=no
23101fi
ac1cb8d3 23102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23103echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23104echo "${ECHO_T}$ac_header_compiler" >&6
23105
23106# Is the header present?
23107echo "$as_me:$LINENO: checking png.h presence" >&5
23108echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
23109cat >conftest.$ac_ext <<_ACEOF
23110/* confdefs.h. */
23111_ACEOF
23112cat confdefs.h >>conftest.$ac_ext
23113cat >>conftest.$ac_ext <<_ACEOF
23114/* end confdefs.h. */
23115#include <png.h>
23116_ACEOF
23117if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23119 ac_status=$?
23120 grep -v '^ *+' conftest.er1 >conftest.err
23121 rm -f conftest.er1
23122 cat conftest.err >&5
23123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23124 (exit $ac_status); } >/dev/null; then
23125 if test -s conftest.err; then
23126 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23127 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23128 else
23129 ac_cpp_err=
23130 fi
23131else
23132 ac_cpp_err=yes
23133fi
23134if test -z "$ac_cpp_err"; then
23135 ac_header_preproc=yes
23136else
23137 echo "$as_me: failed program was:" >&5
23138sed 's/^/| /' conftest.$ac_ext >&5
23139
23140 ac_header_preproc=no
23141fi
23142rm -f conftest.err conftest.$ac_ext
23143echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23144echo "${ECHO_T}$ac_header_preproc" >&6
23145
23146# So? What about this header?
ac1cb8d3
VS
23147case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23148 yes:no: )
a848cd7e
SC
23149 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
23150echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23151 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
23152echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
23153 ac_header_preproc=yes
a848cd7e 23154 ;;
ac1cb8d3 23155 no:yes:* )
a848cd7e
SC
23156 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
23157echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23158 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
23159echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
23160 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
23161echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
23162 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
23163echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23164 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
23165echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23166 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
23167echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23168 (
23169 cat <<\_ASBOX
ac1cb8d3
VS
23170## ----------------------------------------- ##
23171## Report this to wx-dev@lists.wxwidgets.org ##
23172## ----------------------------------------- ##
a848cd7e
SC
23173_ASBOX
23174 ) |
23175 sed "s/^/$as_me: WARNING: /" >&2
23176 ;;
23177esac
23178echo "$as_me:$LINENO: checking for png.h" >&5
23179echo $ECHO_N "checking for png.h... $ECHO_C" >&6
23180if test "${ac_cv_header_png_h+set}" = set; then
23181 echo $ECHO_N "(cached) $ECHO_C" >&6
23182else
23183 ac_cv_header_png_h=$ac_header_preproc
23184fi
23185echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23186echo "${ECHO_T}$ac_cv_header_png_h" >&6
23187
23188fi
23189
23190
23191
23192 if test "$ac_cv_header_png_h" = "yes"; then
23193 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
23194echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
23195if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
23196 echo $ECHO_N "(cached) $ECHO_C" >&6
23197else
23198 ac_check_lib_save_LIBS=$LIBS
23199LIBS="-lpng -lz -lm $LIBS"
23200cat >conftest.$ac_ext <<_ACEOF
23201/* confdefs.h. */
23202_ACEOF
23203cat confdefs.h >>conftest.$ac_ext
23204cat >>conftest.$ac_ext <<_ACEOF
23205/* end confdefs.h. */
23206
23207/* Override any gcc2 internal prototype to avoid an error. */
23208#ifdef __cplusplus
23209extern "C"
23210#endif
23211/* We use char because int might match the return type of a gcc2
23212 builtin and then its argument prototype would still apply. */
23213char png_check_sig ();
23214int
23215main ()
23216{
23217png_check_sig ();
23218 ;
23219 return 0;
23220}
23221_ACEOF
23222rm -f conftest.$ac_objext conftest$ac_exeext
23223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23224 (eval $ac_link) 2>conftest.er1
a848cd7e 23225 ac_status=$?
ac1cb8d3
VS
23226 grep -v '^ *+' conftest.er1 >conftest.err
23227 rm -f conftest.er1
23228 cat conftest.err >&5
a848cd7e
SC
23229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23230 (exit $ac_status); } &&
6ebeb4c7 23231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23233 (eval $ac_try) 2>&5
23234 ac_status=$?
23235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236 (exit $ac_status); }; } &&
23237 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23239 (eval $ac_try) 2>&5
23240 ac_status=$?
23241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23242 (exit $ac_status); }; }; then
23243 ac_cv_lib_png_png_check_sig=yes
23244else
23245 echo "$as_me: failed program was:" >&5
23246sed 's/^/| /' conftest.$ac_ext >&5
23247
23248ac_cv_lib_png_png_check_sig=no
23249fi
ac1cb8d3
VS
23250rm -f conftest.err conftest.$ac_objext \
23251 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23252LIBS=$ac_check_lib_save_LIBS
23253fi
23254echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
23255echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
23256if test $ac_cv_lib_png_png_check_sig = yes; then
23257 PNG_LINK=" -lpng -lz"
23258fi
23259
23260 fi
23261
23262 if test "x$PNG_LINK" = "x" ; then
23263 if test "$wxUSE_LIBPNG" = "sys" ; then
23264 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
23265echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
23266 { (exit 1); exit 1; }; }
23267 else
23268 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
23269echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
23270 wxUSE_LIBPNG=builtin
23271 fi
23272 else
23273 wxUSE_LIBPNG=sys
23274 fi
23275 fi
23276 fi
23277
23278 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
23279fi
23280
23281
23282JPEG_LINK=
23283if test "$wxUSE_LIBJPEG" != "no" ; then
23284 cat >>confdefs.h <<\_ACEOF
23285#define wxUSE_LIBJPEG 1
23286_ACEOF
23287
23288
23289 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
23290 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
23291echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
23292 wxUSE_LIBJPEG=sys
23293 fi
23294
23295 if test "$wxUSE_MGL" != 1 ; then
23296 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
23297 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
23298echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
23299 if test "${ac_cv_header_jpeglib_h+set}" = set; then
23300 echo $ECHO_N "(cached) $ECHO_C" >&6
23301else
23302 cat >conftest.$ac_ext <<_ACEOF
23303/* confdefs.h. */
23304_ACEOF
23305cat confdefs.h >>conftest.$ac_ext
23306cat >>conftest.$ac_ext <<_ACEOF
23307/* end confdefs.h. */
23308
23309 #undef HAVE_STDLIB_H
23310 #include <stdio.h>
23311 #include <jpeglib.h>
23312
23313int
23314main ()
23315{
23316
23317
23318 ;
23319 return 0;
23320}
23321_ACEOF
23322rm -f conftest.$ac_objext
23323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23324 (eval $ac_compile) 2>conftest.er1
a848cd7e 23325 ac_status=$?
ac1cb8d3
VS
23326 grep -v '^ *+' conftest.er1 >conftest.err
23327 rm -f conftest.er1
23328 cat conftest.err >&5
a848cd7e
SC
23329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23330 (exit $ac_status); } &&
6ebeb4c7 23331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23333 (eval $ac_try) 2>&5
23334 ac_status=$?
23335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23336 (exit $ac_status); }; } &&
23337 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23339 (eval $ac_try) 2>&5
23340 ac_status=$?
23341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23342 (exit $ac_status); }; }; then
23343 ac_cv_header_jpeglib_h=yes
23344else
23345 echo "$as_me: failed program was:" >&5
23346sed 's/^/| /' conftest.$ac_ext >&5
23347
23348ac_cv_header_jpeglib_h=no
23349
23350fi
ac1cb8d3 23351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23352
23353fi
23354
23355 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
23356echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
23357
23358 if test "$ac_cv_header_jpeglib_h" = "yes"; then
23359 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
23360echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
23361if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
23362 echo $ECHO_N "(cached) $ECHO_C" >&6
23363else
23364 ac_check_lib_save_LIBS=$LIBS
23365LIBS="-ljpeg $LIBS"
23366cat >conftest.$ac_ext <<_ACEOF
23367/* confdefs.h. */
23368_ACEOF
23369cat confdefs.h >>conftest.$ac_ext
23370cat >>conftest.$ac_ext <<_ACEOF
23371/* end confdefs.h. */
23372
23373/* Override any gcc2 internal prototype to avoid an error. */
23374#ifdef __cplusplus
23375extern "C"
23376#endif
23377/* We use char because int might match the return type of a gcc2
23378 builtin and then its argument prototype would still apply. */
23379char jpeg_read_header ();
23380int
23381main ()
23382{
23383jpeg_read_header ();
23384 ;
23385 return 0;
23386}
23387_ACEOF
23388rm -f conftest.$ac_objext conftest$ac_exeext
23389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23390 (eval $ac_link) 2>conftest.er1
a848cd7e 23391 ac_status=$?
ac1cb8d3
VS
23392 grep -v '^ *+' conftest.er1 >conftest.err
23393 rm -f conftest.er1
23394 cat conftest.err >&5
a848cd7e
SC
23395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23396 (exit $ac_status); } &&
6ebeb4c7 23397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23399 (eval $ac_try) 2>&5
23400 ac_status=$?
23401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23402 (exit $ac_status); }; } &&
23403 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23405 (eval $ac_try) 2>&5
23406 ac_status=$?
23407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23408 (exit $ac_status); }; }; then
23409 ac_cv_lib_jpeg_jpeg_read_header=yes
23410else
23411 echo "$as_me: failed program was:" >&5
23412sed 's/^/| /' conftest.$ac_ext >&5
23413
23414ac_cv_lib_jpeg_jpeg_read_header=no
23415fi
ac1cb8d3
VS
23416rm -f conftest.err conftest.$ac_objext \
23417 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23418LIBS=$ac_check_lib_save_LIBS
23419fi
23420echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
23421echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
23422if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
23423 JPEG_LINK=" -ljpeg"
23424fi
23425
23426 fi
23427
23428 if test "x$JPEG_LINK" = "x" ; then
23429 if test "$wxUSE_LIBJPEG" = "sys" ; then
23430 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
23431echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
23432 { (exit 1); exit 1; }; }
23433 else
23434 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
23435echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
23436 wxUSE_LIBJPEG=builtin
23437 fi
23438 else
23439 wxUSE_LIBJPEG=sys
23440 fi
23441 fi
23442 fi
23443fi
23444
23445
23446TIFF_LINK=
23447TIFF_PREREQ_LINKS=-lm
23448if test "$wxUSE_LIBTIFF" != "no" ; then
23449 cat >>confdefs.h <<\_ACEOF
23450#define wxUSE_LIBTIFF 1
23451_ACEOF
23452
23453
23454 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
23455 if test "$wxUSE_LIBJPEG" = "sys"; then
23456 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
23457 fi
23458 if test "$wxUSE_ZLIB" = "sys"; then
23459 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
23460 fi
23461 if test "${ac_cv_header_tiffio_h+set}" = set; then
23462 echo "$as_me:$LINENO: checking for tiffio.h" >&5
23463echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23464if test "${ac_cv_header_tiffio_h+set}" = set; then
23465 echo $ECHO_N "(cached) $ECHO_C" >&6
23466fi
23467echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23468echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23469else
23470 # Is the header compilable?
23471echo "$as_me:$LINENO: checking tiffio.h usability" >&5
23472echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
23473cat >conftest.$ac_ext <<_ACEOF
23474/* confdefs.h. */
23475_ACEOF
23476cat confdefs.h >>conftest.$ac_ext
23477cat >>conftest.$ac_ext <<_ACEOF
23478/* end confdefs.h. */
23479$ac_includes_default
23480#include <tiffio.h>
23481_ACEOF
23482rm -f conftest.$ac_objext
23483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23484 (eval $ac_compile) 2>conftest.er1
a848cd7e 23485 ac_status=$?
ac1cb8d3
VS
23486 grep -v '^ *+' conftest.er1 >conftest.err
23487 rm -f conftest.er1
23488 cat conftest.err >&5
a848cd7e
SC
23489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23490 (exit $ac_status); } &&
6ebeb4c7 23491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23493 (eval $ac_try) 2>&5
23494 ac_status=$?
23495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23496 (exit $ac_status); }; } &&
23497 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23499 (eval $ac_try) 2>&5
23500 ac_status=$?
23501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502 (exit $ac_status); }; }; then
23503 ac_header_compiler=yes
23504else
23505 echo "$as_me: failed program was:" >&5
23506sed 's/^/| /' conftest.$ac_ext >&5
23507
23508ac_header_compiler=no
23509fi
ac1cb8d3 23510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23511echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23512echo "${ECHO_T}$ac_header_compiler" >&6
23513
23514# Is the header present?
23515echo "$as_me:$LINENO: checking tiffio.h presence" >&5
23516echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
23517cat >conftest.$ac_ext <<_ACEOF
23518/* confdefs.h. */
23519_ACEOF
23520cat confdefs.h >>conftest.$ac_ext
23521cat >>conftest.$ac_ext <<_ACEOF
23522/* end confdefs.h. */
23523#include <tiffio.h>
23524_ACEOF
23525if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23527 ac_status=$?
23528 grep -v '^ *+' conftest.er1 >conftest.err
23529 rm -f conftest.er1
23530 cat conftest.err >&5
23531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23532 (exit $ac_status); } >/dev/null; then
23533 if test -s conftest.err; then
23534 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23535 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23536 else
23537 ac_cpp_err=
23538 fi
23539else
23540 ac_cpp_err=yes
23541fi
23542if test -z "$ac_cpp_err"; then
23543 ac_header_preproc=yes
23544else
23545 echo "$as_me: failed program was:" >&5
23546sed 's/^/| /' conftest.$ac_ext >&5
23547
23548 ac_header_preproc=no
23549fi
23550rm -f conftest.err conftest.$ac_ext
23551echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23552echo "${ECHO_T}$ac_header_preproc" >&6
23553
23554# So? What about this header?
ac1cb8d3
VS
23555case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23556 yes:no: )
a848cd7e
SC
23557 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
23558echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23559 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
23560echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
23561 ac_header_preproc=yes
a848cd7e 23562 ;;
ac1cb8d3 23563 no:yes:* )
a848cd7e
SC
23564 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
23565echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23566 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
23567echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
23568 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
23569echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
23570 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
23571echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23572 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
23573echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23574 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
23575echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23576 (
23577 cat <<\_ASBOX
ac1cb8d3
VS
23578## ----------------------------------------- ##
23579## Report this to wx-dev@lists.wxwidgets.org ##
23580## ----------------------------------------- ##
a848cd7e
SC
23581_ASBOX
23582 ) |
23583 sed "s/^/$as_me: WARNING: /" >&2
23584 ;;
23585esac
23586echo "$as_me:$LINENO: checking for tiffio.h" >&5
23587echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23588if test "${ac_cv_header_tiffio_h+set}" = set; then
23589 echo $ECHO_N "(cached) $ECHO_C" >&6
23590else
23591 ac_cv_header_tiffio_h=$ac_header_preproc
23592fi
23593echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23594echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23595
23596fi
23597if test $ac_cv_header_tiffio_h = yes; then
23598
23599 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
23600echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
23601if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
23602 echo $ECHO_N "(cached) $ECHO_C" >&6
23603else
23604 ac_check_lib_save_LIBS=$LIBS
23605LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
23606cat >conftest.$ac_ext <<_ACEOF
23607/* confdefs.h. */
23608_ACEOF
23609cat confdefs.h >>conftest.$ac_ext
23610cat >>conftest.$ac_ext <<_ACEOF
23611/* end confdefs.h. */
23612
23613/* Override any gcc2 internal prototype to avoid an error. */
23614#ifdef __cplusplus
23615extern "C"
23616#endif
23617/* We use char because int might match the return type of a gcc2
23618 builtin and then its argument prototype would still apply. */
23619char TIFFError ();
23620int
23621main ()
23622{
23623TIFFError ();
23624 ;
23625 return 0;
23626}
23627_ACEOF
23628rm -f conftest.$ac_objext conftest$ac_exeext
23629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23630 (eval $ac_link) 2>conftest.er1
a848cd7e 23631 ac_status=$?
ac1cb8d3
VS
23632 grep -v '^ *+' conftest.er1 >conftest.err
23633 rm -f conftest.er1
23634 cat conftest.err >&5
a848cd7e
SC
23635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23636 (exit $ac_status); } &&
6ebeb4c7 23637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23639 (eval $ac_try) 2>&5
23640 ac_status=$?
23641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642 (exit $ac_status); }; } &&
23643 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23645 (eval $ac_try) 2>&5
23646 ac_status=$?
23647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648 (exit $ac_status); }; }; then
23649 ac_cv_lib_tiff_TIFFError=yes
23650else
23651 echo "$as_me: failed program was:" >&5
23652sed 's/^/| /' conftest.$ac_ext >&5
23653
23654ac_cv_lib_tiff_TIFFError=no
23655fi
ac1cb8d3
VS
23656rm -f conftest.err conftest.$ac_objext \
23657 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23658LIBS=$ac_check_lib_save_LIBS
23659fi
23660echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
23661echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
23662if test $ac_cv_lib_tiff_TIFFError = yes; then
23663 TIFF_LINK=" -ltiff"
23664fi
23665
23666
23667
23668fi
23669
23670
23671
23672 if test "x$TIFF_LINK" = "x" ; then
23673 if test "$wxUSE_LIBTIFF" = "sys" ; then
23674 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
23675echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
23676 { (exit 1); exit 1; }; }
23677 else
23678 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
23679echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
23680 wxUSE_LIBTIFF=builtin
23681 fi
23682 else
23683 wxUSE_LIBTIFF=sys
23684 fi
23685 fi
23686fi
23687
23688
47a7e797
MW
23689if test "$wxUSE_WCHAR_T" != "yes"; then
23690 if test "$wxUSE_EXPAT" != "no"; then
23691 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
23692echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
23693 wxUSE_EXPAT=no
23694 fi
23695 if test "$wxUSE_XML" != "no"; then
23696 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
23697echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
23698 wxUSE_XML=no
23699 fi
23700fi
23701
a848cd7e
SC
23702if test "$wxUSE_EXPAT" != "no"; then
23703 wxUSE_XML=yes
23704 cat >>confdefs.h <<\_ACEOF
23705#define wxUSE_EXPAT 1
23706_ACEOF
23707
23708 cat >>confdefs.h <<\_ACEOF
23709#define wxUSE_XML 1
23710_ACEOF
23711
23712
23713 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
23714 if test "${ac_cv_header_expat_h+set}" = set; then
23715 echo "$as_me:$LINENO: checking for expat.h" >&5
23716echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23717if test "${ac_cv_header_expat_h+set}" = set; then
23718 echo $ECHO_N "(cached) $ECHO_C" >&6
23719fi
23720echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23721echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23722else
23723 # Is the header compilable?
23724echo "$as_me:$LINENO: checking expat.h usability" >&5
23725echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
23726cat >conftest.$ac_ext <<_ACEOF
23727/* confdefs.h. */
23728_ACEOF
23729cat confdefs.h >>conftest.$ac_ext
23730cat >>conftest.$ac_ext <<_ACEOF
23731/* end confdefs.h. */
23732$ac_includes_default
23733#include <expat.h>
23734_ACEOF
23735rm -f conftest.$ac_objext
23736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23737 (eval $ac_compile) 2>conftest.er1
a848cd7e 23738 ac_status=$?
ac1cb8d3
VS
23739 grep -v '^ *+' conftest.er1 >conftest.err
23740 rm -f conftest.er1
23741 cat conftest.err >&5
a848cd7e
SC
23742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743 (exit $ac_status); } &&
6ebeb4c7 23744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23746 (eval $ac_try) 2>&5
23747 ac_status=$?
23748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23749 (exit $ac_status); }; } &&
23750 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23752 (eval $ac_try) 2>&5
23753 ac_status=$?
23754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23755 (exit $ac_status); }; }; then
23756 ac_header_compiler=yes
23757else
23758 echo "$as_me: failed program was:" >&5
23759sed 's/^/| /' conftest.$ac_ext >&5
23760
23761ac_header_compiler=no
23762fi
ac1cb8d3 23763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23764echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23765echo "${ECHO_T}$ac_header_compiler" >&6
23766
23767# Is the header present?
23768echo "$as_me:$LINENO: checking expat.h presence" >&5
23769echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
23770cat >conftest.$ac_ext <<_ACEOF
23771/* confdefs.h. */
23772_ACEOF
23773cat confdefs.h >>conftest.$ac_ext
23774cat >>conftest.$ac_ext <<_ACEOF
23775/* end confdefs.h. */
23776#include <expat.h>
23777_ACEOF
23778if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23780 ac_status=$?
23781 grep -v '^ *+' conftest.er1 >conftest.err
23782 rm -f conftest.er1
23783 cat conftest.err >&5
23784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23785 (exit $ac_status); } >/dev/null; then
23786 if test -s conftest.err; then
23787 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23788 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23789 else
23790 ac_cpp_err=
23791 fi
23792else
23793 ac_cpp_err=yes
23794fi
23795if test -z "$ac_cpp_err"; then
23796 ac_header_preproc=yes
23797else
23798 echo "$as_me: failed program was:" >&5
23799sed 's/^/| /' conftest.$ac_ext >&5
23800
23801 ac_header_preproc=no
23802fi
23803rm -f conftest.err conftest.$ac_ext
23804echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23805echo "${ECHO_T}$ac_header_preproc" >&6
23806
23807# So? What about this header?
ac1cb8d3
VS
23808case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23809 yes:no: )
a848cd7e
SC
23810 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
23811echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23812 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
23813echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
23814 ac_header_preproc=yes
a848cd7e 23815 ;;
ac1cb8d3 23816 no:yes:* )
a848cd7e
SC
23817 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
23818echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23819 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
23820echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
23821 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
23822echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
23823 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
23824echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23825 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
23826echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23827 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
23828echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23829 (
23830 cat <<\_ASBOX
ac1cb8d3
VS
23831## ----------------------------------------- ##
23832## Report this to wx-dev@lists.wxwidgets.org ##
23833## ----------------------------------------- ##
a848cd7e
SC
23834_ASBOX
23835 ) |
23836 sed "s/^/$as_me: WARNING: /" >&2
23837 ;;
23838esac
23839echo "$as_me:$LINENO: checking for expat.h" >&5
23840echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23841if test "${ac_cv_header_expat_h+set}" = set; then
23842 echo $ECHO_N "(cached) $ECHO_C" >&6
23843else
23844 ac_cv_header_expat_h=$ac_header_preproc
23845fi
23846echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23847echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23848
23849fi
23850if test $ac_cv_header_expat_h = yes; then
23851 found_expat_h=1
23852fi
23853
23854
23855 if test "x$found_expat_h" = "x1"; then
23856 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
23857echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
23858if test "${wx_cv_expat_is_not_broken+set}" = set; then
23859 echo $ECHO_N "(cached) $ECHO_C" >&6
23860else
23861
23862
23863
23864 ac_ext=cc
23865ac_cpp='$CXXCPP $CPPFLAGS'
23866ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23867ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23868ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23869
23870 cat >conftest.$ac_ext <<_ACEOF
23871/* confdefs.h. */
23872_ACEOF
23873cat confdefs.h >>conftest.$ac_ext
23874cat >>conftest.$ac_ext <<_ACEOF
23875/* end confdefs.h. */
23876#include <expat.h>
23877int
23878main ()
23879{
23880
23881 ;
23882 return 0;
23883}
23884_ACEOF
23885rm -f conftest.$ac_objext
23886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23887 (eval $ac_compile) 2>conftest.er1
a848cd7e 23888 ac_status=$?
ac1cb8d3
VS
23889 grep -v '^ *+' conftest.er1 >conftest.err
23890 rm -f conftest.er1
23891 cat conftest.err >&5
a848cd7e
SC
23892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23893 (exit $ac_status); } &&
6ebeb4c7 23894 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23896 (eval $ac_try) 2>&5
23897 ac_status=$?
23898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23899 (exit $ac_status); }; } &&
23900 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23902 (eval $ac_try) 2>&5
23903 ac_status=$?
23904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23905 (exit $ac_status); }; }; then
23906 wx_cv_expat_is_not_broken=yes
23907else
23908 echo "$as_me: failed program was:" >&5
23909sed 's/^/| /' conftest.$ac_ext >&5
23910
23911wx_cv_expat_is_not_broken=no
23912
23913fi
ac1cb8d3 23914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23915 ac_ext=c
23916ac_cpp='$CPP $CPPFLAGS'
23917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23919ac_compiler_gnu=$ac_cv_c_compiler_gnu
23920
23921
23922
23923fi
23924echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
23925echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
23926 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
23927 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
23928echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
23929if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
23930 echo $ECHO_N "(cached) $ECHO_C" >&6
23931else
23932 ac_check_lib_save_LIBS=$LIBS
23933LIBS="-lexpat $LIBS"
23934cat >conftest.$ac_ext <<_ACEOF
23935/* confdefs.h. */
23936_ACEOF
23937cat confdefs.h >>conftest.$ac_ext
23938cat >>conftest.$ac_ext <<_ACEOF
23939/* end confdefs.h. */
23940
23941/* Override any gcc2 internal prototype to avoid an error. */
23942#ifdef __cplusplus
23943extern "C"
23944#endif
23945/* We use char because int might match the return type of a gcc2
23946 builtin and then its argument prototype would still apply. */
23947char XML_ParserCreate ();
23948int
23949main ()
23950{
23951XML_ParserCreate ();
23952 ;
23953 return 0;
23954}
23955_ACEOF
23956rm -f conftest.$ac_objext conftest$ac_exeext
23957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23958 (eval $ac_link) 2>conftest.er1
a848cd7e 23959 ac_status=$?
ac1cb8d3
VS
23960 grep -v '^ *+' conftest.er1 >conftest.err
23961 rm -f conftest.er1
23962 cat conftest.err >&5
a848cd7e
SC
23963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23964 (exit $ac_status); } &&
6ebeb4c7 23965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23967 (eval $ac_try) 2>&5
23968 ac_status=$?
23969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23970 (exit $ac_status); }; } &&
23971 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23973 (eval $ac_try) 2>&5
23974 ac_status=$?
23975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976 (exit $ac_status); }; }; then
23977 ac_cv_lib_expat_XML_ParserCreate=yes
23978else
23979 echo "$as_me: failed program was:" >&5
23980sed 's/^/| /' conftest.$ac_ext >&5
23981
23982ac_cv_lib_expat_XML_ParserCreate=no
23983fi
ac1cb8d3
VS
23984rm -f conftest.err conftest.$ac_objext \
23985 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23986LIBS=$ac_check_lib_save_LIBS
23987fi
23988echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
23989echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
23990if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
23991 EXPAT_LINK=" -lexpat"
23992fi
23993
23994 fi
23995 fi
23996 if test "x$EXPAT_LINK" = "x" ; then
23997 if test "$wxUSE_EXPAT" = "sys" ; then
23998 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
23999echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
24000 { (exit 1); exit 1; }; }
24001 else
24002 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
24003echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
24004 wxUSE_EXPAT=builtin
24005 fi
24006 else
24007 wxUSE_EXPAT=sys
24008 fi
24009 fi
24010 if test "$wxUSE_EXPAT" = "builtin" ; then
24011
24012
24013subdirs="$subdirs src/expat"
24014
24015 fi
24016fi
24017
24018
24019
24020if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
24021 if test "${ac_cv_header_mspack_h+set}" = set; then
24022 echo "$as_me:$LINENO: checking for mspack.h" >&5
24023echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
24024if test "${ac_cv_header_mspack_h+set}" = set; then
24025 echo $ECHO_N "(cached) $ECHO_C" >&6
24026fi
24027echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
24028echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
24029else
24030 # Is the header compilable?
24031echo "$as_me:$LINENO: checking mspack.h usability" >&5
24032echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
24033cat >conftest.$ac_ext <<_ACEOF
24034/* confdefs.h. */
24035_ACEOF
24036cat confdefs.h >>conftest.$ac_ext
24037cat >>conftest.$ac_ext <<_ACEOF
24038/* end confdefs.h. */
24039$ac_includes_default
24040#include <mspack.h>
24041_ACEOF
24042rm -f conftest.$ac_objext
24043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24044 (eval $ac_compile) 2>conftest.er1
a848cd7e 24045 ac_status=$?
ac1cb8d3
VS
24046 grep -v '^ *+' conftest.er1 >conftest.err
24047 rm -f conftest.er1
24048 cat conftest.err >&5
a848cd7e
SC
24049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24050 (exit $ac_status); } &&
6ebeb4c7 24051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24053 (eval $ac_try) 2>&5
24054 ac_status=$?
24055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24056 (exit $ac_status); }; } &&
24057 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24059 (eval $ac_try) 2>&5
24060 ac_status=$?
24061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24062 (exit $ac_status); }; }; then
24063 ac_header_compiler=yes
24064else
24065 echo "$as_me: failed program was:" >&5
24066sed 's/^/| /' conftest.$ac_ext >&5
24067
24068ac_header_compiler=no
24069fi
ac1cb8d3 24070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24071echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24072echo "${ECHO_T}$ac_header_compiler" >&6
24073
24074# Is the header present?
24075echo "$as_me:$LINENO: checking mspack.h presence" >&5
24076echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
24077cat >conftest.$ac_ext <<_ACEOF
24078/* confdefs.h. */
24079_ACEOF
24080cat confdefs.h >>conftest.$ac_ext
24081cat >>conftest.$ac_ext <<_ACEOF
24082/* end confdefs.h. */
24083#include <mspack.h>
24084_ACEOF
24085if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24087 ac_status=$?
24088 grep -v '^ *+' conftest.er1 >conftest.err
24089 rm -f conftest.er1
24090 cat conftest.err >&5
24091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24092 (exit $ac_status); } >/dev/null; then
24093 if test -s conftest.err; then
24094 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24096 else
24097 ac_cpp_err=
24098 fi
24099else
24100 ac_cpp_err=yes
24101fi
24102if test -z "$ac_cpp_err"; then
24103 ac_header_preproc=yes
24104else
24105 echo "$as_me: failed program was:" >&5
24106sed 's/^/| /' conftest.$ac_ext >&5
24107
24108 ac_header_preproc=no
24109fi
24110rm -f conftest.err conftest.$ac_ext
24111echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24112echo "${ECHO_T}$ac_header_preproc" >&6
24113
24114# So? What about this header?
ac1cb8d3
VS
24115case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24116 yes:no: )
a848cd7e
SC
24117 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
24118echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24119 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
24120echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
24121 ac_header_preproc=yes
a848cd7e 24122 ;;
ac1cb8d3 24123 no:yes:* )
a848cd7e
SC
24124 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
24125echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24126 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
24127echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
24128 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
24129echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
24130 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
24131echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24132 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
24133echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24134 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
24135echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24136 (
24137 cat <<\_ASBOX
ac1cb8d3
VS
24138## ----------------------------------------- ##
24139## Report this to wx-dev@lists.wxwidgets.org ##
24140## ----------------------------------------- ##
a848cd7e
SC
24141_ASBOX
24142 ) |
24143 sed "s/^/$as_me: WARNING: /" >&2
24144 ;;
24145esac
24146echo "$as_me:$LINENO: checking for mspack.h" >&5
24147echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
24148if test "${ac_cv_header_mspack_h+set}" = set; then
24149 echo $ECHO_N "(cached) $ECHO_C" >&6
24150else
24151 ac_cv_header_mspack_h=$ac_header_preproc
24152fi
24153echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
24154echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
24155
24156fi
24157if test $ac_cv_header_mspack_h = yes; then
24158 found_mspack_h=1
24159fi
24160
24161
24162 if test "x$found_mspack_h" = "x1"; then
24163 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
24164echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
24165if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
24166 echo $ECHO_N "(cached) $ECHO_C" >&6
24167else
24168 ac_check_lib_save_LIBS=$LIBS
24169LIBS="-lmspack $LIBS"
24170cat >conftest.$ac_ext <<_ACEOF
24171/* confdefs.h. */
24172_ACEOF
24173cat confdefs.h >>conftest.$ac_ext
24174cat >>conftest.$ac_ext <<_ACEOF
24175/* end confdefs.h. */
24176
24177/* Override any gcc2 internal prototype to avoid an error. */
24178#ifdef __cplusplus
24179extern "C"
24180#endif
24181/* We use char because int might match the return type of a gcc2
24182 builtin and then its argument prototype would still apply. */
24183char mspack_create_chm_decompressor ();
24184int
24185main ()
24186{
24187mspack_create_chm_decompressor ();
24188 ;
24189 return 0;
24190}
24191_ACEOF
24192rm -f conftest.$ac_objext conftest$ac_exeext
24193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24194 (eval $ac_link) 2>conftest.er1
a848cd7e 24195 ac_status=$?
ac1cb8d3
VS
24196 grep -v '^ *+' conftest.er1 >conftest.err
24197 rm -f conftest.er1
24198 cat conftest.err >&5
a848cd7e
SC
24199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200 (exit $ac_status); } &&
6ebeb4c7 24201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24203 (eval $ac_try) 2>&5
24204 ac_status=$?
24205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24206 (exit $ac_status); }; } &&
24207 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24209 (eval $ac_try) 2>&5
24210 ac_status=$?
24211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24212 (exit $ac_status); }; }; then
24213 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
24214else
24215 echo "$as_me: failed program was:" >&5
24216sed 's/^/| /' conftest.$ac_ext >&5
24217
24218ac_cv_lib_mspack_mspack_create_chm_decompressor=no
24219fi
ac1cb8d3
VS
24220rm -f conftest.err conftest.$ac_objext \
24221 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24222LIBS=$ac_check_lib_save_LIBS
24223fi
24224echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
24225echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
24226if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
24227 MSPACK_LINK=" -lmspack"
24228fi
24229
24230 fi
24231 if test "x$MSPACK_LINK" = "x" ; then
24232 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
24233 fi
24234fi
24235
24236if test "$wxUSE_LIBMSPACK" != "no"; then
24237 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
24238#define wxUSE_LIBMSPACK 1
24239_ACEOF
24240
a848cd7e
SC
24241fi
24242
24243
24244
24245AFMINSTALL=
24246WIN32INSTALL=
24247
24248TOOLKIT=
24249TOOLKIT_INCLUDE=
24250WIDGET_SET=
24251
24252if test "$USE_WIN32" = 1 ; then
24253
24254for ac_header in w32api.h
24255do
24256as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24257if eval "test \"\${$as_ac_Header+set}\" = set"; then
24258 echo "$as_me:$LINENO: checking for $ac_header" >&5
24259echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24260if eval "test \"\${$as_ac_Header+set}\" = set"; then
24261 echo $ECHO_N "(cached) $ECHO_C" >&6
24262fi
24263echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24264echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24265else
24266 # Is the header compilable?
24267echo "$as_me:$LINENO: checking $ac_header usability" >&5
24268echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24269cat >conftest.$ac_ext <<_ACEOF
24270/* confdefs.h. */
24271_ACEOF
24272cat confdefs.h >>conftest.$ac_ext
24273cat >>conftest.$ac_ext <<_ACEOF
24274/* end confdefs.h. */
24275$ac_includes_default
24276#include <$ac_header>
24277_ACEOF
24278rm -f conftest.$ac_objext
24279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24280 (eval $ac_compile) 2>conftest.er1
a848cd7e 24281 ac_status=$?
ac1cb8d3
VS
24282 grep -v '^ *+' conftest.er1 >conftest.err
24283 rm -f conftest.er1
24284 cat conftest.err >&5
a848cd7e
SC
24285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24286 (exit $ac_status); } &&
6ebeb4c7 24287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24289 (eval $ac_try) 2>&5
24290 ac_status=$?
24291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24292 (exit $ac_status); }; } &&
24293 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24295 (eval $ac_try) 2>&5
24296 ac_status=$?
24297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298 (exit $ac_status); }; }; then
24299 ac_header_compiler=yes
24300else
24301 echo "$as_me: failed program was:" >&5
24302sed 's/^/| /' conftest.$ac_ext >&5
24303
24304ac_header_compiler=no
24305fi
ac1cb8d3 24306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24307echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24308echo "${ECHO_T}$ac_header_compiler" >&6
24309
24310# Is the header present?
24311echo "$as_me:$LINENO: checking $ac_header presence" >&5
24312echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24313cat >conftest.$ac_ext <<_ACEOF
24314/* confdefs.h. */
24315_ACEOF
24316cat confdefs.h >>conftest.$ac_ext
24317cat >>conftest.$ac_ext <<_ACEOF
24318/* end confdefs.h. */
24319#include <$ac_header>
24320_ACEOF
24321if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24323 ac_status=$?
24324 grep -v '^ *+' conftest.er1 >conftest.err
24325 rm -f conftest.er1
24326 cat conftest.err >&5
24327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24328 (exit $ac_status); } >/dev/null; then
24329 if test -s conftest.err; then
24330 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24332 else
24333 ac_cpp_err=
24334 fi
24335else
24336 ac_cpp_err=yes
24337fi
24338if test -z "$ac_cpp_err"; then
24339 ac_header_preproc=yes
24340else
24341 echo "$as_me: failed program was:" >&5
24342sed 's/^/| /' conftest.$ac_ext >&5
24343
24344 ac_header_preproc=no
24345fi
24346rm -f conftest.err conftest.$ac_ext
24347echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24348echo "${ECHO_T}$ac_header_preproc" >&6
24349
24350# So? What about this header?
ac1cb8d3
VS
24351case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24352 yes:no: )
a848cd7e
SC
24353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24354echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24356echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24357 ac_header_preproc=yes
a848cd7e 24358 ;;
ac1cb8d3 24359 no:yes:* )
a848cd7e
SC
24360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24361echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24363echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24365echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24367echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24369echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24371echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24372 (
24373 cat <<\_ASBOX
ac1cb8d3
VS
24374## ----------------------------------------- ##
24375## Report this to wx-dev@lists.wxwidgets.org ##
24376## ----------------------------------------- ##
a848cd7e
SC
24377_ASBOX
24378 ) |
24379 sed "s/^/$as_me: WARNING: /" >&2
24380 ;;
24381esac
24382echo "$as_me:$LINENO: checking for $ac_header" >&5
24383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24384if eval "test \"\${$as_ac_Header+set}\" = set"; then
24385 echo $ECHO_N "(cached) $ECHO_C" >&6
24386else
ac1cb8d3 24387 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
24388fi
24389echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24390echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24391
24392fi
24393if test `eval echo '${'$as_ac_Header'}'` = yes; then
24394 cat >>confdefs.h <<_ACEOF
24395#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24396_ACEOF
24397
24398fi
24399
24400done
24401
24402 if test "${ac_cv_header_windows_h+set}" = set; then
24403 echo "$as_me:$LINENO: checking for windows.h" >&5
24404echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24405if test "${ac_cv_header_windows_h+set}" = set; then
24406 echo $ECHO_N "(cached) $ECHO_C" >&6
24407fi
24408echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24409echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24410else
24411 # Is the header compilable?
24412echo "$as_me:$LINENO: checking windows.h usability" >&5
24413echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
24414cat >conftest.$ac_ext <<_ACEOF
24415/* confdefs.h. */
24416_ACEOF
24417cat confdefs.h >>conftest.$ac_ext
24418cat >>conftest.$ac_ext <<_ACEOF
24419/* end confdefs.h. */
24420$ac_includes_default
24421#include <windows.h>
24422_ACEOF
24423rm -f conftest.$ac_objext
24424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24425 (eval $ac_compile) 2>conftest.er1
a848cd7e 24426 ac_status=$?
ac1cb8d3
VS
24427 grep -v '^ *+' conftest.er1 >conftest.err
24428 rm -f conftest.er1
24429 cat conftest.err >&5
a848cd7e
SC
24430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24431 (exit $ac_status); } &&
6ebeb4c7 24432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24434 (eval $ac_try) 2>&5
24435 ac_status=$?
24436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24437 (exit $ac_status); }; } &&
24438 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24440 (eval $ac_try) 2>&5
24441 ac_status=$?
24442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24443 (exit $ac_status); }; }; then
24444 ac_header_compiler=yes
24445else
24446 echo "$as_me: failed program was:" >&5
24447sed 's/^/| /' conftest.$ac_ext >&5
24448
24449ac_header_compiler=no
24450fi
ac1cb8d3 24451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24452echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24453echo "${ECHO_T}$ac_header_compiler" >&6
24454
24455# Is the header present?
24456echo "$as_me:$LINENO: checking windows.h presence" >&5
24457echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
24458cat >conftest.$ac_ext <<_ACEOF
24459/* confdefs.h. */
24460_ACEOF
24461cat confdefs.h >>conftest.$ac_ext
24462cat >>conftest.$ac_ext <<_ACEOF
24463/* end confdefs.h. */
24464#include <windows.h>
24465_ACEOF
24466if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24468 ac_status=$?
24469 grep -v '^ *+' conftest.er1 >conftest.err
24470 rm -f conftest.er1
24471 cat conftest.err >&5
24472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24473 (exit $ac_status); } >/dev/null; then
24474 if test -s conftest.err; then
24475 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24477 else
24478 ac_cpp_err=
24479 fi
24480else
24481 ac_cpp_err=yes
24482fi
24483if test -z "$ac_cpp_err"; then
24484 ac_header_preproc=yes
24485else
24486 echo "$as_me: failed program was:" >&5
24487sed 's/^/| /' conftest.$ac_ext >&5
24488
24489 ac_header_preproc=no
24490fi
24491rm -f conftest.err conftest.$ac_ext
24492echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24493echo "${ECHO_T}$ac_header_preproc" >&6
24494
24495# So? What about this header?
ac1cb8d3
VS
24496case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24497 yes:no: )
a848cd7e
SC
24498 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
24499echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24500 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
24501echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
24502 ac_header_preproc=yes
a848cd7e 24503 ;;
ac1cb8d3 24504 no:yes:* )
a848cd7e
SC
24505 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
24506echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24507 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
24508echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
24509 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
24510echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
24511 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
24512echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24513 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
24514echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24515 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
24516echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24517 (
24518 cat <<\_ASBOX
ac1cb8d3
VS
24519## ----------------------------------------- ##
24520## Report this to wx-dev@lists.wxwidgets.org ##
24521## ----------------------------------------- ##
a848cd7e
SC
24522_ASBOX
24523 ) |
24524 sed "s/^/$as_me: WARNING: /" >&2
24525 ;;
24526esac
24527echo "$as_me:$LINENO: checking for windows.h" >&5
24528echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24529if test "${ac_cv_header_windows_h+set}" = set; then
24530 echo $ECHO_N "(cached) $ECHO_C" >&6
24531else
24532 ac_cv_header_windows_h=$ac_header_preproc
24533fi
24534echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24535echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24536
24537fi
24538if test $ac_cv_header_windows_h = yes; then
24539 :
24540else
24541
24542 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
24543echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
24544 { (exit 1); exit 1; }; }
24545
24546fi
24547
24548
24549
24550 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
24551
24552 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
24553 LIBS="$LIBS -loleacc"
24554 fi
24555
24556 case "${host}" in
24557 *-*-cygwin* )
24558 LIBS="$LIBS -lkernel32 -luser32"
24559 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
24560 esac
24561
24562 if test "$wxUSE_ODBC" = "sys" ; then
24563 wxUSE_ODBC = "yes"
24564 fi
24565 if test "$wxUSE_ODBC" = "yes" ; then
24566 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
24567 cat >>confdefs.h <<\_ACEOF
24568#define wxUSE_ODBC 1
24569_ACEOF
24570
24571 fi
24572
24573 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
24574 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
24575
24576 WIN32INSTALL=win32install
24577fi
24578
24579if test "$wxUSE_GUI" = "yes"; then
24580 USE_GUI=1
24581
24582 GUI_TK_LIBRARY=
24583
24584 WXGTK12=
24585 WXGTK127=
24586 WXGTK20=
24587 WXGPE=
24588
207bc66c
RN
24589 if test "$wxUSE_COCOA" = 1 ; then
24590 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
24591 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
24592echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
24593 wxUSE_PRINTING_ARCHITECTURE=no
24594 fi
24595 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
24596 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
24597echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
24598 wxUSE_DRAG_AND_DROP=no
24599 fi
24600 if test "$wxUSE_DRAGIMAGE" = "yes"; then
24601 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
24602echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
24603 wxUSE_DRAGIMAGE=no
24604 fi
24605 fi
24606
a848cd7e
SC
24607 if test "$wxUSE_MSW" = 1 ; then
24608 TOOLKIT=MSW
24609 GUIDIST=MSW_DIST
24610
ceec2216 24611 case "${host}" in
a848cd7e
SC
24612 *-*-mingw32* )
24613 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
24614 esac
24615 fi
24616
24617 if test "$wxUSE_GTK" = 1; then
24618 echo "$as_me:$LINENO: checking for GTK+ version" >&5
24619echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
24620
24621 gtk_version_cached=1
24622 if test "${wx_cv_lib_gtk+set}" = set; then
24623 echo $ECHO_N "(cached) $ECHO_C" >&6
24624else
24625
24626 gtk_version_cached=0
24627 echo "$as_me:$LINENO: result: " >&5
24628echo "${ECHO_T}" >&6
24629
24630 GTK_MODULES=
24631 if test "$wxUSE_THREADS" = "yes"; then
24632 GTK_MODULES=gthread
24633 fi
24634
f597b41c 24635 wx_cv_lib_gtk=
f34ca037 24636 if test "x$wxGTK_VERSION" != "x1"; then
a848cd7e
SC
24637 # Check whether --enable-gtktest or --disable-gtktest was given.
24638if test "${enable_gtktest+set}" = set; then
24639 enableval="$enable_gtktest"
24640
24641else
24642 enable_gtktest=yes
24643fi;
24644
24645 pkg_config_args=gtk+-2.0
24646 for module in . $GTK_MODULES
24647 do
24648 case "$module" in
24649 gthread)
24650 pkg_config_args="$pkg_config_args gthread-2.0"
24651 ;;
24652 esac
24653 done
24654
24655 no_gtk=""
24656
24657 # Extract the first word of "pkg-config", so it can be a program name with args.
24658set dummy pkg-config; ac_word=$2
24659echo "$as_me:$LINENO: checking for $ac_word" >&5
24660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24661if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24662 echo $ECHO_N "(cached) $ECHO_C" >&6
24663else
24664 case $PKG_CONFIG in
24665 [\\/]* | ?:[\\/]*)
24666 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24667 ;;
24668 *)
24669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24670for as_dir in $PATH
24671do
24672 IFS=$as_save_IFS
24673 test -z "$as_dir" && as_dir=.
24674 for ac_exec_ext in '' $ac_executable_extensions; do
24675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24676 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24678 break 2
24679 fi
24680done
24681done
24682
24683 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24684 ;;
24685esac
24686fi
24687PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24688
24689if test -n "$PKG_CONFIG"; then
24690 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24691echo "${ECHO_T}$PKG_CONFIG" >&6
24692else
24693 echo "$as_me:$LINENO: result: no" >&5
24694echo "${ECHO_T}no" >&6
24695fi
24696
24697
24698 if test x$PKG_CONFIG != xno ; then
24699 if pkg-config --atleast-pkgconfig-version 0.7 ; then
24700 :
24701 else
c2218763 24702 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
24703 no_gtk=yes
24704 PKG_CONFIG=no
24705 fi
24706 else
24707 no_gtk=yes
24708 fi
24709
24710 min_gtk_version=2.0.0
24711 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
24712echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
24713
24714 if test x$PKG_CONFIG != xno ; then
24715 ## don't try to run the test against uninstalled libtool libs
24716 if $PKG_CONFIG --uninstalled $pkg_config_args; then
24717 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
24718 enable_gtktest=no
24719 fi
24720
24721 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
24722 :
24723 else
24724 no_gtk=yes
24725 fi
24726 fi
24727
24728 if test x"$no_gtk" = x ; then
24729 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
24730 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
24731 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24732 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24733 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24734 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24735 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24736 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24737 if test "x$enable_gtktest" = "xyes" ; then
24738 ac_save_CFLAGS="$CFLAGS"
24739 ac_save_LIBS="$LIBS"
24740 CFLAGS="$CFLAGS $GTK_CFLAGS"
24741 LIBS="$GTK_LIBS $LIBS"
24742 rm -f conf.gtktest
24743 if test "$cross_compiling" = yes; then
24744 echo $ac_n "cross compiling; assumed OK... $ac_c"
24745else
24746 cat >conftest.$ac_ext <<_ACEOF
24747/* confdefs.h. */
24748_ACEOF
24749cat confdefs.h >>conftest.$ac_ext
24750cat >>conftest.$ac_ext <<_ACEOF
24751/* end confdefs.h. */
24752
24753#include <gtk/gtk.h>
24754#include <stdio.h>
24755#include <stdlib.h>
24756
24757int
24758main ()
24759{
24760 int major, minor, micro;
24761 char *tmp_version;
24762
24763 system ("touch conf.gtktest");
24764
24765 /* HP/UX 9 (%@#!) writes to sscanf strings */
24766 tmp_version = g_strdup("$min_gtk_version");
24767 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24768 printf("%s, bad version string\n", "$min_gtk_version");
24769 exit(1);
24770 }
24771
24772 if ((gtk_major_version != $gtk_config_major_version) ||
24773 (gtk_minor_version != $gtk_config_minor_version) ||
24774 (gtk_micro_version != $gtk_config_micro_version))
24775 {
24776 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24777 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24778 gtk_major_version, gtk_minor_version, gtk_micro_version);
24779 printf ("*** was found! If pkg-config was correct, then it is best\n");
24780 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24781 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24782 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24783 printf("*** required on your system.\n");
24784 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
24785 printf("*** to point to the correct configuration files\n");
24786 }
24787 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24788 (gtk_minor_version != GTK_MINOR_VERSION) ||
24789 (gtk_micro_version != GTK_MICRO_VERSION))
24790 {
24791 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24792 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24793 printf("*** library (version %d.%d.%d)\n",
24794 gtk_major_version, gtk_minor_version, gtk_micro_version);
24795 }
24796 else
24797 {
24798 if ((gtk_major_version > major) ||
24799 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24800 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24801 {
24802 return 0;
24803 }
24804 else
24805 {
24806 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24807 gtk_major_version, gtk_minor_version, gtk_micro_version);
24808 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24809 major, minor, micro);
24810 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24811 printf("***\n");
24812 printf("*** If you have already installed a sufficiently new version, this error\n");
24813 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
24814 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24815 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
24816 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
24817 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24818 printf("*** so that the correct libraries are found at run-time))\n");
24819 }
24820 }
24821 return 1;
24822}
24823
24824_ACEOF
24825rm -f conftest$ac_exeext
24826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24827 (eval $ac_link) 2>&5
24828 ac_status=$?
24829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24832 (eval $ac_try) 2>&5
24833 ac_status=$?
24834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24835 (exit $ac_status); }; }; then
24836 :
24837else
24838 echo "$as_me: program exited with status $ac_status" >&5
24839echo "$as_me: failed program was:" >&5
24840sed 's/^/| /' conftest.$ac_ext >&5
24841
24842( exit $ac_status )
24843no_gtk=yes
24844fi
ac1cb8d3 24845rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24846fi
24847 CFLAGS="$ac_save_CFLAGS"
24848 LIBS="$ac_save_LIBS"
24849 fi
24850 fi
24851 if test "x$no_gtk" = x ; then
24852 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
24853echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
24854 wx_cv_lib_gtk=2.0
24855 else
24856 echo "$as_me:$LINENO: result: no" >&5
24857echo "${ECHO_T}no" >&6
24858 if test "$PKG_CONFIG" = "no" ; then
24859 echo "*** A new enough version of pkg-config was not found."
24860 echo "*** See http://pkgconfig.sourceforge.net"
24861 else
24862 if test -f conf.gtktest ; then
24863 :
24864 else
24865 echo "*** Could not run GTK+ test program, checking why..."
24866 ac_save_CFLAGS="$CFLAGS"
24867 ac_save_LIBS="$LIBS"
24868 CFLAGS="$CFLAGS $GTK_CFLAGS"
24869 LIBS="$LIBS $GTK_LIBS"
24870 cat >conftest.$ac_ext <<_ACEOF
24871/* confdefs.h. */
24872_ACEOF
24873cat confdefs.h >>conftest.$ac_ext
24874cat >>conftest.$ac_ext <<_ACEOF
24875/* end confdefs.h. */
24876
24877#include <gtk/gtk.h>
24878#include <stdio.h>
24879
24880int
24881main ()
24882{
24883 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
24884 ;
24885 return 0;
24886}
24887_ACEOF
24888rm -f conftest.$ac_objext conftest$ac_exeext
24889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24890 (eval $ac_link) 2>conftest.er1
a848cd7e 24891 ac_status=$?
ac1cb8d3
VS
24892 grep -v '^ *+' conftest.er1 >conftest.err
24893 rm -f conftest.er1
24894 cat conftest.err >&5
a848cd7e
SC
24895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896 (exit $ac_status); } &&
6ebeb4c7 24897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24899 (eval $ac_try) 2>&5
24900 ac_status=$?
24901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24902 (exit $ac_status); }; } &&
24903 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24905 (eval $ac_try) 2>&5
24906 ac_status=$?
24907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24908 (exit $ac_status); }; }; then
24909 echo "*** The test program compiled, but did not run. This usually means"
24910 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
24911 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
24912 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
24913 echo "*** to the installed location Also, make sure you have run ldconfig if that"
24914 echo "*** is required on your system"
24915 echo "***"
24916 echo "*** If you have an old version installed, it is best to remove it, although"
24917 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
24918else
24919 echo "$as_me: failed program was:" >&5
24920sed 's/^/| /' conftest.$ac_ext >&5
24921
24922 echo "*** The test program failed to compile or link. See the file config.log for the"
24923 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
24924fi
ac1cb8d3
VS
24925rm -f conftest.err conftest.$ac_objext \
24926 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24927 CFLAGS="$ac_save_CFLAGS"
24928 LIBS="$ac_save_LIBS"
24929 fi
24930 fi
24931 GTK_CFLAGS=""
24932 GTK_LIBS=""
24933 :
24934 fi
24935
24936
24937 rm -f conf.gtktest
24938
f597b41c
MW
24939 fi
24940
f34ca037
MW
24941 if test -z "$wx_cv_lib_gtk"; then
24942 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
24943
24944# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
24945if test "${with_gtk_prefix+set}" = set; then
24946 withval="$with_gtk_prefix"
24947 gtk_config_prefix="$withval"
24948else
24949 gtk_config_prefix=""
24950fi;
24951
24952# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
24953if test "${with_gtk_exec_prefix+set}" = set; then
24954 withval="$with_gtk_exec_prefix"
24955 gtk_config_exec_prefix="$withval"
24956else
24957 gtk_config_exec_prefix=""
24958fi;
24959# Check whether --enable-gtktest or --disable-gtktest was given.
24960if test "${enable_gtktest+set}" = set; then
24961 enableval="$enable_gtktest"
24962
24963else
24964 enable_gtktest=yes
24965fi;
24966
24967 for module in . $GTK_MODULES
24968 do
24969 case "$module" in
24970 gthread)
24971 gtk_config_args="$gtk_config_args gthread"
24972 ;;
24973 esac
24974 done
24975
24976 if test x$gtk_config_exec_prefix != x ; then
24977 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
24978 if test x${GTK_CONFIG+set} != xset ; then
24979 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
24980 fi
24981 fi
24982 if test x$gtk_config_prefix != x ; then
24983 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
24984 if test x${GTK_CONFIG+set} != xset ; then
24985 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
24986 fi
24987 fi
24988
24989 # Extract the first word of "gtk-config", so it can be a program name with args.
24990set dummy gtk-config; ac_word=$2
24991echo "$as_me:$LINENO: checking for $ac_word" >&5
24992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24993if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
24994 echo $ECHO_N "(cached) $ECHO_C" >&6
24995else
24996 case $GTK_CONFIG in
24997 [\\/]* | ?:[\\/]*)
24998 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
24999 ;;
25000 *)
25001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25002for as_dir in $PATH
25003do
25004 IFS=$as_save_IFS
25005 test -z "$as_dir" && as_dir=.
25006 for ac_exec_ext in '' $ac_executable_extensions; do
25007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25008 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25010 break 2
25011 fi
25012done
25013done
25014
25015 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
25016 ;;
25017esac
25018fi
25019GTK_CONFIG=$ac_cv_path_GTK_CONFIG
25020
25021if test -n "$GTK_CONFIG"; then
25022 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
25023echo "${ECHO_T}$GTK_CONFIG" >&6
25024else
25025 echo "$as_me:$LINENO: result: no" >&5
25026echo "${ECHO_T}no" >&6
25027fi
25028
25029 min_gtk_version=1.2.7
25030 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
25031echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
25032 no_gtk=""
25033 if test "$GTK_CONFIG" = "no" ; then
25034 no_gtk=yes
25035 else
25036 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
25037 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
25038 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25039 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25040 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25041 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25042 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25043 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25044 if test "x$enable_gtktest" = "xyes" ; then
25045 ac_save_CFLAGS="$CFLAGS"
25046 ac_save_LIBS="$LIBS"
25047 CFLAGS="$CFLAGS $GTK_CFLAGS"
25048 LIBS="$GTK_LIBS $LIBS"
25049 rm -f conf.gtktest
25050 if test "$cross_compiling" = yes; then
25051 echo $ac_n "cross compiling; assumed OK... $ac_c"
25052else
25053 cat >conftest.$ac_ext <<_ACEOF
25054/* confdefs.h. */
25055_ACEOF
25056cat confdefs.h >>conftest.$ac_ext
25057cat >>conftest.$ac_ext <<_ACEOF
25058/* end confdefs.h. */
25059
25060#include <gtk/gtk.h>
25061#include <stdio.h>
25062#include <stdlib.h>
25063
25064int
25065main ()
25066{
25067 int major, minor, micro;
25068 char *tmp_version;
25069
25070 system ("touch conf.gtktest");
25071
25072 /* HP/UX 9 (%@#!) writes to sscanf strings */
25073 tmp_version = g_strdup("$min_gtk_version");
25074 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25075 printf("%s, bad version string\n", "$min_gtk_version");
25076 exit(1);
25077 }
25078
25079 if ((gtk_major_version != $gtk_config_major_version) ||
25080 (gtk_minor_version != $gtk_config_minor_version) ||
25081 (gtk_micro_version != $gtk_config_micro_version))
25082 {
25083 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25084 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25085 gtk_major_version, gtk_minor_version, gtk_micro_version);
25086 printf ("*** was found! If gtk-config was correct, then it is best\n");
25087 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25088 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25089 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25090 printf("*** required on your system.\n");
25091 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25092 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25093 printf("*** before re-running configure\n");
25094 }
25095#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25096 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25097 (gtk_minor_version != GTK_MINOR_VERSION) ||
25098 (gtk_micro_version != GTK_MICRO_VERSION))
25099 {
25100 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25101 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25102 printf("*** library (version %d.%d.%d)\n",
25103 gtk_major_version, gtk_minor_version, gtk_micro_version);
25104 }
25105#endif /* defined (GTK_MAJOR_VERSION) ... */
25106 else
25107 {
25108 if ((gtk_major_version > major) ||
25109 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25110 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25111 {
25112 return 0;
25113 }
25114 else
25115 {
25116 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25117 gtk_major_version, gtk_minor_version, gtk_micro_version);
25118 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25119 major, minor, micro);
25120 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25121 printf("***\n");
25122 printf("*** If you have already installed a sufficiently new version, this error\n");
25123 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25124 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25125 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25126 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25127 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25128 printf("*** so that the correct libraries are found at run-time))\n");
25129 }
25130 }
25131 return 1;
25132}
25133
25134_ACEOF
25135rm -f conftest$ac_exeext
25136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25137 (eval $ac_link) 2>&5
25138 ac_status=$?
25139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25140 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25142 (eval $ac_try) 2>&5
25143 ac_status=$?
25144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25145 (exit $ac_status); }; }; then
25146 :
25147else
25148 echo "$as_me: program exited with status $ac_status" >&5
25149echo "$as_me: failed program was:" >&5
25150sed 's/^/| /' conftest.$ac_ext >&5
25151
25152( exit $ac_status )
25153no_gtk=yes
25154fi
ac1cb8d3 25155rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25156fi
25157 CFLAGS="$ac_save_CFLAGS"
25158 LIBS="$ac_save_LIBS"
25159 fi
25160 fi
25161 if test "x$no_gtk" = x ; then
25162 echo "$as_me:$LINENO: result: yes" >&5
25163echo "${ECHO_T}yes" >&6
25164 wx_cv_lib_gtk=1.2.7
25165 else
25166 echo "$as_me:$LINENO: result: no" >&5
25167echo "${ECHO_T}no" >&6
25168 if test "$GTK_CONFIG" = "no" ; then
25169 echo "*** The gtk-config script installed by GTK could not be found"
25170 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25171 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25172 echo "*** full path to gtk-config."
25173 else
25174 if test -f conf.gtktest ; then
25175 :
25176 else
25177 echo "*** Could not run GTK test program, checking why..."
25178 CFLAGS="$CFLAGS $GTK_CFLAGS"
25179 LIBS="$LIBS $GTK_LIBS"
25180 cat >conftest.$ac_ext <<_ACEOF
25181/* confdefs.h. */
25182_ACEOF
25183cat confdefs.h >>conftest.$ac_ext
25184cat >>conftest.$ac_ext <<_ACEOF
25185/* end confdefs.h. */
25186
25187#include <gtk/gtk.h>
25188#include <stdio.h>
25189
25190int
25191main ()
25192{
25193 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25194 ;
25195 return 0;
25196}
25197_ACEOF
25198rm -f conftest.$ac_objext conftest$ac_exeext
25199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25200 (eval $ac_link) 2>conftest.er1
a848cd7e 25201 ac_status=$?
ac1cb8d3
VS
25202 grep -v '^ *+' conftest.er1 >conftest.err
25203 rm -f conftest.er1
25204 cat conftest.err >&5
a848cd7e
SC
25205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206 (exit $ac_status); } &&
6ebeb4c7 25207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25209 (eval $ac_try) 2>&5
25210 ac_status=$?
25211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212 (exit $ac_status); }; } &&
25213 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25215 (eval $ac_try) 2>&5
25216 ac_status=$?
25217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25218 (exit $ac_status); }; }; then
25219 echo "*** The test program compiled, but did not run. This usually means"
25220 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25221 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25222 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25223 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25224 echo "*** is required on your system"
25225 echo "***"
25226 echo "*** If you have an old version installed, it is best to remove it, although"
25227 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25228 echo "***"
25229 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25230 echo "*** came with the system with the command"
25231 echo "***"
25232 echo "*** rpm --erase --nodeps gtk gtk-devel"
25233else
25234 echo "$as_me: failed program was:" >&5
25235sed 's/^/| /' conftest.$ac_ext >&5
25236
25237 echo "*** The test program failed to compile or link. See the file config.log for the"
25238 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25239 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25240 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25241fi
ac1cb8d3
VS
25242rm -f conftest.err conftest.$ac_objext \
25243 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25244 CFLAGS="$ac_save_CFLAGS"
25245 LIBS="$ac_save_LIBS"
25246 fi
25247 fi
25248 GTK_CFLAGS=""
25249 GTK_LIBS=""
25250 :
25251 fi
25252
25253
25254 rm -f conf.gtktest
25255
25256
f34ca037 25257 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
25258
25259# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
25260if test "${with_gtk_prefix+set}" = set; then
25261 withval="$with_gtk_prefix"
25262 gtk_config_prefix="$withval"
25263else
25264 gtk_config_prefix=""
25265fi;
25266
25267# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
25268if test "${with_gtk_exec_prefix+set}" = set; then
25269 withval="$with_gtk_exec_prefix"
25270 gtk_config_exec_prefix="$withval"
25271else
25272 gtk_config_exec_prefix=""
25273fi;
25274# Check whether --enable-gtktest or --disable-gtktest was given.
25275if test "${enable_gtktest+set}" = set; then
25276 enableval="$enable_gtktest"
25277
25278else
25279 enable_gtktest=yes
25280fi;
25281
25282 for module in . $GTK_MODULES
25283 do
25284 case "$module" in
25285 gthread)
25286 gtk_config_args="$gtk_config_args gthread"
25287 ;;
25288 esac
25289 done
25290
25291 if test x$gtk_config_exec_prefix != x ; then
25292 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
25293 if test x${GTK_CONFIG+set} != xset ; then
25294 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
25295 fi
25296 fi
25297 if test x$gtk_config_prefix != x ; then
25298 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
25299 if test x${GTK_CONFIG+set} != xset ; then
25300 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
25301 fi
25302 fi
25303
25304 # Extract the first word of "gtk-config", so it can be a program name with args.
25305set dummy gtk-config; ac_word=$2
25306echo "$as_me:$LINENO: checking for $ac_word" >&5
25307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25308if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
25309 echo $ECHO_N "(cached) $ECHO_C" >&6
25310else
25311 case $GTK_CONFIG in
25312 [\\/]* | ?:[\\/]*)
25313 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
25314 ;;
25315 *)
25316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25317for as_dir in $PATH
25318do
25319 IFS=$as_save_IFS
25320 test -z "$as_dir" && as_dir=.
25321 for ac_exec_ext in '' $ac_executable_extensions; do
25322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25323 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25325 break 2
25326 fi
25327done
25328done
25329
25330 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
25331 ;;
25332esac
25333fi
25334GTK_CONFIG=$ac_cv_path_GTK_CONFIG
25335
25336if test -n "$GTK_CONFIG"; then
25337 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
25338echo "${ECHO_T}$GTK_CONFIG" >&6
25339else
25340 echo "$as_me:$LINENO: result: no" >&5
25341echo "${ECHO_T}no" >&6
25342fi
25343
25344 min_gtk_version=1.2.3
25345 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
25346echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
25347 no_gtk=""
25348 if test "$GTK_CONFIG" = "no" ; then
25349 no_gtk=yes
25350 else
25351 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
25352 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
25353 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25354 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25355 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25356 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25357 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25358 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25359 if test "x$enable_gtktest" = "xyes" ; then
25360 ac_save_CFLAGS="$CFLAGS"
25361 ac_save_LIBS="$LIBS"
25362 CFLAGS="$CFLAGS $GTK_CFLAGS"
25363 LIBS="$GTK_LIBS $LIBS"
25364 rm -f conf.gtktest
25365 if test "$cross_compiling" = yes; then
25366 echo $ac_n "cross compiling; assumed OK... $ac_c"
25367else
25368 cat >conftest.$ac_ext <<_ACEOF
25369/* confdefs.h. */
25370_ACEOF
25371cat confdefs.h >>conftest.$ac_ext
25372cat >>conftest.$ac_ext <<_ACEOF
25373/* end confdefs.h. */
25374
25375#include <gtk/gtk.h>
25376#include <stdio.h>
25377#include <stdlib.h>
25378
25379int
25380main ()
25381{
25382 int major, minor, micro;
25383 char *tmp_version;
25384
25385 system ("touch conf.gtktest");
25386
25387 /* HP/UX 9 (%@#!) writes to sscanf strings */
25388 tmp_version = g_strdup("$min_gtk_version");
25389 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25390 printf("%s, bad version string\n", "$min_gtk_version");
25391 exit(1);
25392 }
25393
25394 if ((gtk_major_version != $gtk_config_major_version) ||
25395 (gtk_minor_version != $gtk_config_minor_version) ||
25396 (gtk_micro_version != $gtk_config_micro_version))
25397 {
25398 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25399 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25400 gtk_major_version, gtk_minor_version, gtk_micro_version);
25401 printf ("*** was found! If gtk-config was correct, then it is best\n");
25402 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25403 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25404 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25405 printf("*** required on your system.\n");
25406 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25407 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25408 printf("*** before re-running configure\n");
25409 }
25410#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25411 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25412 (gtk_minor_version != GTK_MINOR_VERSION) ||
25413 (gtk_micro_version != GTK_MICRO_VERSION))
25414 {
25415 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25416 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25417 printf("*** library (version %d.%d.%d)\n",
25418 gtk_major_version, gtk_minor_version, gtk_micro_version);
25419 }
25420#endif /* defined (GTK_MAJOR_VERSION) ... */
25421 else
25422 {
25423 if ((gtk_major_version > major) ||
25424 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25425 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25426 {
25427 return 0;
25428 }
25429 else
25430 {
25431 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25432 gtk_major_version, gtk_minor_version, gtk_micro_version);
25433 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25434 major, minor, micro);
25435 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25436 printf("***\n");
25437 printf("*** If you have already installed a sufficiently new version, this error\n");
25438 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25439 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25440 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25441 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25442 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25443 printf("*** so that the correct libraries are found at run-time))\n");
25444 }
25445 }
25446 return 1;
25447}
25448
25449_ACEOF
25450rm -f conftest$ac_exeext
25451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25452 (eval $ac_link) 2>&5
25453 ac_status=$?
25454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25455 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25457 (eval $ac_try) 2>&5
25458 ac_status=$?
25459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460 (exit $ac_status); }; }; then
25461 :
25462else
25463 echo "$as_me: program exited with status $ac_status" >&5
25464echo "$as_me: failed program was:" >&5
25465sed 's/^/| /' conftest.$ac_ext >&5
25466
25467( exit $ac_status )
25468no_gtk=yes
25469fi
ac1cb8d3 25470rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25471fi
25472 CFLAGS="$ac_save_CFLAGS"
25473 LIBS="$ac_save_LIBS"
25474 fi
25475 fi
25476 if test "x$no_gtk" = x ; then
25477 echo "$as_me:$LINENO: result: yes" >&5
25478echo "${ECHO_T}yes" >&6
25479 wx_cv_lib_gtk=1.2.3
25480 else
25481 echo "$as_me:$LINENO: result: no" >&5
25482echo "${ECHO_T}no" >&6
25483 if test "$GTK_CONFIG" = "no" ; then
25484 echo "*** The gtk-config script installed by GTK could not be found"
25485 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25486 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25487 echo "*** full path to gtk-config."
25488 else
25489 if test -f conf.gtktest ; then
25490 :
25491 else
25492 echo "*** Could not run GTK test program, checking why..."
25493 CFLAGS="$CFLAGS $GTK_CFLAGS"
25494 LIBS="$LIBS $GTK_LIBS"
25495 cat >conftest.$ac_ext <<_ACEOF
25496/* confdefs.h. */
25497_ACEOF
25498cat confdefs.h >>conftest.$ac_ext
25499cat >>conftest.$ac_ext <<_ACEOF
25500/* end confdefs.h. */
25501
25502#include <gtk/gtk.h>
25503#include <stdio.h>
25504
25505int
25506main ()
25507{
25508 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25509 ;
25510 return 0;
25511}
25512_ACEOF
25513rm -f conftest.$ac_objext conftest$ac_exeext
25514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25515 (eval $ac_link) 2>conftest.er1
a848cd7e 25516 ac_status=$?
ac1cb8d3
VS
25517 grep -v '^ *+' conftest.er1 >conftest.err
25518 rm -f conftest.er1
25519 cat conftest.err >&5
a848cd7e
SC
25520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25521 (exit $ac_status); } &&
6ebeb4c7 25522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25524 (eval $ac_try) 2>&5
25525 ac_status=$?
25526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25527 (exit $ac_status); }; } &&
25528 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25530 (eval $ac_try) 2>&5
25531 ac_status=$?
25532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533 (exit $ac_status); }; }; then
25534 echo "*** The test program compiled, but did not run. This usually means"
25535 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25536 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25537 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25538 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25539 echo "*** is required on your system"
25540 echo "***"
25541 echo "*** If you have an old version installed, it is best to remove it, although"
25542 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25543 echo "***"
25544 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25545 echo "*** came with the system with the command"
25546 echo "***"
25547 echo "*** rpm --erase --nodeps gtk gtk-devel"
25548else
25549 echo "$as_me: failed program was:" >&5
25550sed 's/^/| /' conftest.$ac_ext >&5
25551
25552 echo "*** The test program failed to compile or link. See the file config.log for the"
25553 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25554 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25555 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25556fi
ac1cb8d3
VS
25557rm -f conftest.err conftest.$ac_objext \
25558 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25559 CFLAGS="$ac_save_CFLAGS"
25560 LIBS="$ac_save_LIBS"
25561 fi
25562 fi
25563 GTK_CFLAGS=""
25564 GTK_LIBS=""
25565 :
25566 fi
25567
25568
25569 rm -f conf.gtktest
25570
f34ca037 25571 fi
a848cd7e
SC
25572 fi
25573 fi
25574
25575 if test -z "$wx_cv_lib_gtk"; then
25576 wx_cv_lib_gtk=none
25577 else
25578 wx_cv_cflags_gtk=$GTK_CFLAGS
25579 wx_cv_libs_gtk=$GTK_LIBS
25580 fi
25581
25582
25583fi
25584
25585
25586 if test "$gtk_version_cached" = 1; then
25587 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
25588echo "${ECHO_T}$wx_cv_lib_gtk" >&6
25589 fi
25590
25591 case "$wx_cv_lib_gtk" in
25592 2.0) WXGTK20=1
25593 TOOLKIT_VERSION=2
25594 ;;
25595 1.2.7) WXGTK127=1
25596 WXGTK12=1
25597 ;;
25598 1.2.3) WXGTK12=1
25599 ;;
25600 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
25601The development files for GTK+ were not found. For GTK+ 2, please
25602ensure that pkg-config is in the path and that gtk+-2.0.pc is
25603installed. For GTK+ 1.2 please check that gtk-config is in the path,
25604and that the version is 1.2.3 or above. Also check that the
25605libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25606--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
25607 " >&5
25608echo "$as_me: error:
f597b41c
MW
25609The development files for GTK+ were not found. For GTK+ 2, please
25610ensure that pkg-config is in the path and that gtk+-2.0.pc is
25611installed. For GTK+ 1.2 please check that gtk-config is in the path,
25612and that the version is 1.2.3 or above. Also check that the
25613libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25614--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
25615 " >&2;}
25616 { (exit 1); exit 1; }; }
25617 ;;
25618 esac
25619
25620 if test "$WXGTK20" = 1; then
304205f1
VS
25621 save_CFLAGS="$CFLAGS"
25622 save_LIBS="$LIBS"
9d271838 25623 CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
abc736fd 25624 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 25625
9755e73b 25626
304205f1
VS
25627for ac_func in pango_font_family_is_monospace
25628do
25629as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25630echo "$as_me:$LINENO: checking for $ac_func" >&5
25631echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25632if eval "test \"\${$as_ac_var+set}\" = set"; then
25633 echo $ECHO_N "(cached) $ECHO_C" >&6
25634else
25635 cat >conftest.$ac_ext <<_ACEOF
25636/* confdefs.h. */
25637_ACEOF
25638cat confdefs.h >>conftest.$ac_ext
25639cat >>conftest.$ac_ext <<_ACEOF
25640/* end confdefs.h. */
25641/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25643#define $ac_func innocuous_$ac_func
25644
25645/* System header to define __stub macros and hopefully few prototypes,
25646 which can conflict with char $ac_func (); below.
25647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25648 <limits.h> exists even on freestanding compilers. */
25649
25650#ifdef __STDC__
25651# include <limits.h>
25652#else
25653# include <assert.h>
25654#endif
25655
25656#undef $ac_func
25657
25658/* Override any gcc2 internal prototype to avoid an error. */
25659#ifdef __cplusplus
25660extern "C"
25661{
25662#endif
25663/* We use char because int might match the return type of a gcc2
25664 builtin and then its argument prototype would still apply. */
25665char $ac_func ();
25666/* The GNU C library defines this for functions which it implements
25667 to always fail with ENOSYS. Some functions are actually named
25668 something starting with __ and the normal name is an alias. */
25669#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25670choke me
25671#else
25672char (*f) () = $ac_func;
25673#endif
25674#ifdef __cplusplus
25675}
25676#endif
25677
25678int
25679main ()
25680{
25681return f != $ac_func;
25682 ;
25683 return 0;
25684}
25685_ACEOF
25686rm -f conftest.$ac_objext conftest$ac_exeext
25687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25688 (eval $ac_link) 2>conftest.er1
25689 ac_status=$?
25690 grep -v '^ *+' conftest.er1 >conftest.err
25691 rm -f conftest.er1
25692 cat conftest.err >&5
25693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25694 (exit $ac_status); } &&
6ebeb4c7 25695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
25696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25697 (eval $ac_try) 2>&5
25698 ac_status=$?
25699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25700 (exit $ac_status); }; } &&
25701 { ac_try='test -s conftest$ac_exeext'
25702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25703 (eval $ac_try) 2>&5
25704 ac_status=$?
25705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706 (exit $ac_status); }; }; then
25707 eval "$as_ac_var=yes"
25708else
25709 echo "$as_me: failed program was:" >&5
25710sed 's/^/| /' conftest.$ac_ext >&5
25711
25712eval "$as_ac_var=no"
25713fi
25714rm -f conftest.err conftest.$ac_objext \
25715 conftest$ac_exeext conftest.$ac_ext
25716fi
25717echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25718echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25719if test `eval echo '${'$as_ac_var'}'` = yes; then
25720 cat >>confdefs.h <<_ACEOF
25721#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25722_ACEOF
25723
25724fi
25725done
25726
9755e73b 25727
abc736fd
MW
25728 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
25729echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
25730 cat >conftest.$ac_ext <<_ACEOF
25731/* confdefs.h. */
25732_ACEOF
25733cat confdefs.h >>conftest.$ac_ext
25734cat >>conftest.$ac_ext <<_ACEOF
25735/* end confdefs.h. */
25736
25737 #include <gtk/gtk.h>
25738
25739int
25740main ()
25741{
25742
25743 void *f = gtk_icon_size_lookup;
25744
25745 ;
25746 return 0;
25747}
25748_ACEOF
25749rm -f conftest.$ac_objext
25750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25751 (eval $ac_compile) 2>conftest.er1
25752 ac_status=$?
25753 grep -v '^ *+' conftest.er1 >conftest.err
25754 rm -f conftest.er1
25755 cat conftest.err >&5
25756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25757 (exit $ac_status); } &&
6ebeb4c7 25758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
25759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25760 (eval $ac_try) 2>&5
25761 ac_status=$?
25762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25763 (exit $ac_status); }; } &&
25764 { ac_try='test -s conftest.$ac_objext'
25765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25766 (eval $ac_try) 2>&5
25767 ac_status=$?
25768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25769 (exit $ac_status); }; }; then
25770
25771 echo "$as_me:$LINENO: result: no" >&5
25772echo "${ECHO_T}no" >&6
25773
25774else
25775 echo "$as_me: failed program was:" >&5
25776sed 's/^/| /' conftest.$ac_ext >&5
25777
25778
25779 cat >>confdefs.h <<\_ACEOF
25780#define NEED_GTK_ICON_SIZE_LOOKUP 1
25781_ACEOF
25782
25783 echo "$as_me:$LINENO: result: yes" >&5
25784echo "${ECHO_T}yes" >&6
25785
25786fi
25787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25788
9755e73b
VS
25789 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
25790echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
25791 cat >conftest.$ac_ext <<_ACEOF
25792/* confdefs.h. */
25793_ACEOF
25794cat confdefs.h >>conftest.$ac_ext
25795cat >>conftest.$ac_ext <<_ACEOF
25796/* end confdefs.h. */
25797
25798 #include <gtk/gtk.h>
25799
25800int
25801main ()
25802{
25803
25804 #if !GTK_CHECK_VERSION(2,4,0)
25805 #error "Not GTK+ 2.4"
25806 #endif
25807
25808 ;
25809 return 0;
25810}
25811_ACEOF
25812rm -f conftest.$ac_objext
25813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25814 (eval $ac_compile) 2>conftest.er1
25815 ac_status=$?
25816 grep -v '^ *+' conftest.er1 >conftest.err
25817 rm -f conftest.er1
25818 cat conftest.err >&5
25819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25820 (exit $ac_status); } &&
6ebeb4c7 25821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
25822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25823 (eval $ac_try) 2>&5
25824 ac_status=$?
25825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25826 (exit $ac_status); }; } &&
25827 { ac_try='test -s conftest.$ac_objext'
25828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25829 (eval $ac_try) 2>&5
25830 ac_status=$?
25831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25832 (exit $ac_status); }; }; then
25833
25834 cat >>confdefs.h <<\_ACEOF
25835#define __WXGTK24__ 1
25836_ACEOF
25837
25838 echo "$as_me:$LINENO: result: yes" >&5
25839echo "${ECHO_T}yes" >&6
25840
25841else
25842 echo "$as_me: failed program was:" >&5
25843sed 's/^/| /' conftest.$ac_ext >&5
25844
25845
25846 echo "$as_me:$LINENO: result: no" >&5
25847echo "${ECHO_T}no" >&6
25848
25849fi
25850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25851
304205f1
VS
25852 CFLAGS="$save_CFLAGS"
25853 LIBS="$save_LIBS"
a848cd7e
SC
25854 else
25855 if test "$wxUSE_UNICODE" = "yes"; then
25856 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
25857echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
25858 wxUSE_UNICODE=no
25859 fi
25860 fi
25861
25862 if test "$USE_DARWIN" != 1; then
25863
25864for ac_func in poll
25865do
25866as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25867echo "$as_me:$LINENO: checking for $ac_func" >&5
25868echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25869if eval "test \"\${$as_ac_var+set}\" = set"; then
25870 echo $ECHO_N "(cached) $ECHO_C" >&6
25871else
25872 cat >conftest.$ac_ext <<_ACEOF
25873/* confdefs.h. */
25874_ACEOF
25875cat confdefs.h >>conftest.$ac_ext
25876cat >>conftest.$ac_ext <<_ACEOF
25877/* end confdefs.h. */
ac1cb8d3
VS
25878/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25880#define $ac_func innocuous_$ac_func
25881
a848cd7e
SC
25882/* System header to define __stub macros and hopefully few prototypes,
25883 which can conflict with char $ac_func (); below.
25884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25885 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25886
a848cd7e
SC
25887#ifdef __STDC__
25888# include <limits.h>
25889#else
25890# include <assert.h>
25891#endif
ac1cb8d3
VS
25892
25893#undef $ac_func
25894
a848cd7e
SC
25895/* Override any gcc2 internal prototype to avoid an error. */
25896#ifdef __cplusplus
25897extern "C"
25898{
25899#endif
25900/* We use char because int might match the return type of a gcc2
25901 builtin and then its argument prototype would still apply. */
25902char $ac_func ();
25903/* The GNU C library defines this for functions which it implements
25904 to always fail with ENOSYS. Some functions are actually named
25905 something starting with __ and the normal name is an alias. */
25906#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25907choke me
25908#else
25909char (*f) () = $ac_func;
25910#endif
25911#ifdef __cplusplus
25912}
25913#endif
25914
25915int
25916main ()
25917{
25918return f != $ac_func;
25919 ;
25920 return 0;
25921}
25922_ACEOF
25923rm -f conftest.$ac_objext conftest$ac_exeext
25924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25925 (eval $ac_link) 2>conftest.er1
a848cd7e 25926 ac_status=$?
ac1cb8d3
VS
25927 grep -v '^ *+' conftest.er1 >conftest.err
25928 rm -f conftest.er1
25929 cat conftest.err >&5
a848cd7e
SC
25930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25931 (exit $ac_status); } &&
6ebeb4c7 25932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25934 (eval $ac_try) 2>&5
25935 ac_status=$?
25936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937 (exit $ac_status); }; } &&
25938 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25940 (eval $ac_try) 2>&5
25941 ac_status=$?
25942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25943 (exit $ac_status); }; }; then
25944 eval "$as_ac_var=yes"
25945else
25946 echo "$as_me: failed program was:" >&5
25947sed 's/^/| /' conftest.$ac_ext >&5
25948
25949eval "$as_ac_var=no"
25950fi
ac1cb8d3
VS
25951rm -f conftest.err conftest.$ac_objext \
25952 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25953fi
25954echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25955echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25956if test `eval echo '${'$as_ac_var'}'` = yes; then
25957 cat >>confdefs.h <<_ACEOF
25958#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25959_ACEOF
25960
25961fi
25962done
25963
25964 fi
25965
25966 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
25967 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
25968
25969 AFMINSTALL=afminstall
25970 TOOLKIT=GTK
25971 GUIDIST=GTK_DIST
25972
25973 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
25974echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
25975if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
25976 echo $ECHO_N "(cached) $ECHO_C" >&6
25977else
25978 ac_check_lib_save_LIBS=$LIBS
25979LIBS="-lgdk $LIBS"
25980cat >conftest.$ac_ext <<_ACEOF
25981/* confdefs.h. */
25982_ACEOF
25983cat confdefs.h >>conftest.$ac_ext
25984cat >>conftest.$ac_ext <<_ACEOF
25985/* end confdefs.h. */
25986
25987/* Override any gcc2 internal prototype to avoid an error. */
25988#ifdef __cplusplus
25989extern "C"
25990#endif
25991/* We use char because int might match the return type of a gcc2
25992 builtin and then its argument prototype would still apply. */
25993char gdk_im_open ();
25994int
25995main ()
25996{
25997gdk_im_open ();
25998 ;
25999 return 0;
26000}
26001_ACEOF
26002rm -f conftest.$ac_objext conftest$ac_exeext
26003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26004 (eval $ac_link) 2>conftest.er1
a848cd7e 26005 ac_status=$?
ac1cb8d3
VS
26006 grep -v '^ *+' conftest.er1 >conftest.err
26007 rm -f conftest.er1
26008 cat conftest.err >&5
a848cd7e
SC
26009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26010 (exit $ac_status); } &&
6ebeb4c7 26011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26013 (eval $ac_try) 2>&5
26014 ac_status=$?
26015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26016 (exit $ac_status); }; } &&
26017 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26019 (eval $ac_try) 2>&5
26020 ac_status=$?
26021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26022 (exit $ac_status); }; }; then
26023 ac_cv_lib_gdk_gdk_im_open=yes
26024else
26025 echo "$as_me: failed program was:" >&5
26026sed 's/^/| /' conftest.$ac_ext >&5
26027
26028ac_cv_lib_gdk_gdk_im_open=no
26029fi
ac1cb8d3
VS
26030rm -f conftest.err conftest.$ac_objext \
26031 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26032LIBS=$ac_check_lib_save_LIBS
26033fi
26034echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
26035echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
26036if test $ac_cv_lib_gdk_gdk_im_open = yes; then
26037 cat >>confdefs.h <<\_ACEOF
26038#define HAVE_XIM 1
26039_ACEOF
26040
26041fi
26042
26043
26044
26045 if test "$wxUSE_GPE" = "yes"; then
26046 echo "$as_me:$LINENO: checking for gpewidget library" >&5
26047echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
26048
26049ac_find_libraries=
26050for ac_dir in $SEARCH_LIB /usr/lib;
26051 do
3eca31dc 26052 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
26053 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
26054 ac_find_libraries=$ac_dir
26055 break 2
26056 fi
26057 done
26058 done
26059
26060 if test "$ac_find_libraries" != "" ; then
26061
26062 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26063 result=$?
26064 if test $result = 0; then
26065 ac_path_to_link=""
26066 else
26067 ac_path_to_link=" -L$ac_find_libraries"
26068 fi
26069
26070 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
26071 WXGPE=1
26072 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26073echo "${ECHO_T}found at $ac_find_libraries" >&6
26074 else
26075 echo "$as_me:$LINENO: result: not found" >&5
26076echo "${ECHO_T}not found" >&6
26077 fi
26078
26079 fi
26080 fi
26081
26082 if test "$wxUSE_MGL" = 1; then
26083 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
26084echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
26085 if test "x$MGL_ROOT" = x ; then
26086 echo "$as_me:$LINENO: result: not found" >&5
26087echo "${ECHO_T}not found" >&6
26088 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
26089echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
26090 { (exit 1); exit 1; }; }
26091 else
26092 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
26093echo "${ECHO_T}$MGL_ROOT" >&6
26094 fi
26095
26096 echo "$as_me:$LINENO: checking for libmgl location" >&5
26097echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
26098 case "${host}" in
26099 *-*-linux* )
26100 if test "x$wxUSE_SHARED" = xyes ; then
26101 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
26102 else
26103 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
26104 fi
26105 ;;
26106 *-pc-msdosdjgpp )
26107 mgl_os_candidates="dos32/dj2"
26108 ;;
26109 *)
26110 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
26111echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
26112 { (exit 1); exit 1; }; }
26113 esac
26114
26115 mgl_lib_type=""
26116 mgl_os=""
26117
26118 for mgl_os_i in $mgl_os_candidates ; do
26119 if test "x$mgl_os" = x ; then
26120 if test "$wxUSE_DEBUG_FLAG" = yes ; then
26121 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
26122 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
26123 mgl_lib_type=debug
26124 mgl_os=$mgl_os_i
26125 fi
26126 fi
26127 if test "x$mgl_lib_type" = x ; then
26128 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
26129 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
26130 mgl_lib_type=release
26131 mgl_os=$mgl_os_i
26132 fi
26133 fi
26134 fi
26135 done
26136
26137 if test "x$mgl_os" = x ; then
26138 echo "$as_me:$LINENO: result: not found" >&5
26139echo "${ECHO_T}not found" >&6
26140 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
26141echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
26142 { (exit 1); exit 1; }; }
26143 fi
26144 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
26145echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
26146
26147 wxUSE_UNIVERSAL="yes"
26148
26149 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
26150 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
26151
26152 AFMINSTALL=afminstall
26153 TOOLKIT=MGL
26154 GUIDIST=MGL_DIST
26155 fi
26156
26157 if test "$wxUSE_MICROWIN" = 1; then
26158 echo "$as_me:$LINENO: checking for MicroWindows" >&5
26159echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
26160 if test "x$MICROWINDOWS" = x ; then
26161 echo "$as_me:$LINENO: result: not found" >&5
26162echo "${ECHO_T}not found" >&6
26163 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
26164echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
26165 { (exit 1); exit 1; }; }
26166 else
26167 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
26168echo "${ECHO_T}$MICROWINDOWS" >&6
26169 fi
26170
26171 if test -f $MICROWINDOWS/lib/libmwin.a; then
26172 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
26173echo "${ECHO_T}MicroWindows' libraries found." >&6
26174 else
26175 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
26176echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
26177 { (exit 1); exit 1; }; }
26178 fi
26179
26180 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
26181 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
26182
26183 wxUSE_UNIVERSAL="yes"
26184
26185 AFMINSTALL=afminstall
26186 TOOLKIT=MICROWIN
26187 GUIDIST=MICROWIN_DIST
26188
26189 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
26190 fi
26191
74b84332 26192 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
6ebeb4c7
VZ
26193
26194if test "x$ac_path_x_has_been_run" != xyes; then
26195 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
26196echo $ECHO_N "checking for X... $ECHO_C" >&6
26197
6ebeb4c7 26198ac_path_x_has_been_run=yes
a848cd7e
SC
26199
26200# Check whether --with-x or --without-x was given.
26201if test "${with_x+set}" = set; then
26202 withval="$with_x"
26203
26204fi;
26205# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26206if test "x$with_x" = xno; then
26207 # The user explicitly disabled X.
26208 have_x=disabled
26209else
26210 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
26211 # Both variables are already set.
26212 have_x=yes
26213 else
26214 if test "${ac_cv_have_x+set}" = set; then
26215 echo $ECHO_N "(cached) $ECHO_C" >&6
26216else
26217 # One or both of the vars are not set, and there is no cached value.
26218ac_x_includes=no ac_x_libraries=no
26219rm -fr conftest.dir
26220if mkdir conftest.dir; then
26221 cd conftest.dir
26222 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
26223 cat >Imakefile <<'_ACEOF'
26224acfindx:
26225 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
26226_ACEOF
26227 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
26228 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
26229 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
26230 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26231 for ac_extension in a so sl; do
26232 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
26233 test -f $ac_im_libdir/libX11.$ac_extension; then
26234 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
26235 fi
26236 done
26237 # Screen out bogus values from the imake configuration. They are
26238 # bogus both because they are the default anyway, and because
26239 # using them would break gcc on systems where it needs fixed includes.
26240 case $ac_im_incroot in
26241 /usr/include) ;;
26242 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26243 esac
26244 case $ac_im_usrlibdir in
26245 /usr/lib | /lib) ;;
26246 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26247 esac
26248 fi
26249 cd ..
26250 rm -fr conftest.dir
26251fi
26252
26253# Standard set of common directories for X headers.
26254# Check X11 before X11Rn because it is often a symlink to the current release.
26255ac_x_header_dirs='
26256/usr/X11/include
26257/usr/X11R6/include
26258/usr/X11R5/include
26259/usr/X11R4/include
26260
26261/usr/include/X11
26262/usr/include/X11R6
26263/usr/include/X11R5
26264/usr/include/X11R4
26265
26266/usr/local/X11/include
26267/usr/local/X11R6/include
26268/usr/local/X11R5/include
26269/usr/local/X11R4/include
26270
26271/usr/local/include/X11
26272/usr/local/include/X11R6
26273/usr/local/include/X11R5
26274/usr/local/include/X11R4
26275
26276/usr/X386/include
26277/usr/x386/include
26278/usr/XFree86/include/X11
26279
26280/usr/include
26281/usr/local/include
26282/usr/unsupported/include
26283/usr/athena/include
26284/usr/local/x11r5/include
26285/usr/lpp/Xamples/include
26286
26287/usr/openwin/include
26288/usr/openwin/share/include'
26289
26290if test "$ac_x_includes" = no; then
6ebeb4c7 26291 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
26292 # First, try using that file with no special directory specified.
26293 cat >conftest.$ac_ext <<_ACEOF
26294/* confdefs.h. */
26295_ACEOF
26296cat confdefs.h >>conftest.$ac_ext
26297cat >>conftest.$ac_ext <<_ACEOF
26298/* end confdefs.h. */
26299#include <X11/Intrinsic.h>
26300_ACEOF
26301if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26303 ac_status=$?
26304 grep -v '^ *+' conftest.er1 >conftest.err
26305 rm -f conftest.er1
26306 cat conftest.err >&5
26307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26308 (exit $ac_status); } >/dev/null; then
26309 if test -s conftest.err; then
26310 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26312 else
26313 ac_cpp_err=
26314 fi
26315else
26316 ac_cpp_err=yes
26317fi
26318if test -z "$ac_cpp_err"; then
26319 # We can compile using X headers with no special include directory.
26320ac_x_includes=
26321else
26322 echo "$as_me: failed program was:" >&5
26323sed 's/^/| /' conftest.$ac_ext >&5
26324
26325 for ac_dir in $ac_x_header_dirs; do
26326 if test -r "$ac_dir/X11/Intrinsic.h"; then
26327 ac_x_includes=$ac_dir
26328 break
26329 fi
26330done
26331fi
26332rm -f conftest.err conftest.$ac_ext
26333fi # $ac_x_includes = no
26334
26335if test "$ac_x_libraries" = no; then
26336 # Check for the libraries.
26337 # See if we find them without any special options.
26338 # Don't add to $LIBS permanently.
26339 ac_save_LIBS=$LIBS
26340 LIBS="-lXt $LIBS"
26341 cat >conftest.$ac_ext <<_ACEOF
26342/* confdefs.h. */
26343_ACEOF
26344cat confdefs.h >>conftest.$ac_ext
26345cat >>conftest.$ac_ext <<_ACEOF
26346/* end confdefs.h. */
26347#include <X11/Intrinsic.h>
26348int
26349main ()
26350{
26351XtMalloc (0)
26352 ;
26353 return 0;
26354}
26355_ACEOF
26356rm -f conftest.$ac_objext conftest$ac_exeext
26357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26358 (eval $ac_link) 2>conftest.er1
a848cd7e 26359 ac_status=$?
ac1cb8d3
VS
26360 grep -v '^ *+' conftest.er1 >conftest.err
26361 rm -f conftest.er1
26362 cat conftest.err >&5
a848cd7e
SC
26363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26364 (exit $ac_status); } &&
6ebeb4c7 26365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26367 (eval $ac_try) 2>&5
26368 ac_status=$?
26369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26370 (exit $ac_status); }; } &&
26371 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26373 (eval $ac_try) 2>&5
26374 ac_status=$?
26375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26376 (exit $ac_status); }; }; then
26377 LIBS=$ac_save_LIBS
26378# We can link X programs with no special library path.
26379ac_x_libraries=
26380else
26381 echo "$as_me: failed program was:" >&5
26382sed 's/^/| /' conftest.$ac_ext >&5
26383
26384LIBS=$ac_save_LIBS
26385for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26386do
26387 # Don't even attempt the hair of trying to link an X program!
26388 for ac_extension in a so sl; do
26389 if test -r $ac_dir/libXt.$ac_extension; then
26390 ac_x_libraries=$ac_dir
26391 break 2
26392 fi
26393 done
26394done
26395fi
ac1cb8d3
VS
26396rm -f conftest.err conftest.$ac_objext \
26397 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26398fi # $ac_x_libraries = no
26399
26400if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
26401 # Didn't find X anywhere. Cache the known absence of X.
26402 ac_cv_have_x="have_x=no"
26403else
26404 # Record where we found X for the cache.
26405 ac_cv_have_x="have_x=yes \
ac1cb8d3 26406 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
26407fi
26408fi
26409
26410 fi
26411 eval "$ac_cv_have_x"
26412fi # $with_x != no
26413
26414if test "$have_x" != yes; then
26415 echo "$as_me:$LINENO: result: $have_x" >&5
26416echo "${ECHO_T}$have_x" >&6
26417 no_x=yes
26418else
26419 # If each of the values was on the command line, it overrides each guess.
26420 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26421 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26422 # Update the cache value to reflect the command line values.
26423 ac_cv_have_x="have_x=yes \
26424 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6ebeb4c7
VZ
26425 # It might be that x_includes is empty (headers are found in the
26426 # standard search path. Then output the corresponding message
26427 ac_out_x_includes=$x_includes
26428 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
26429 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
26430echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
26431fi
26432
6ebeb4c7 26433fi
a848cd7e
SC
26434if test "$no_x" = yes; then
26435 # Not all programs may use this symbol, but it does not hurt to define it.
26436
26437cat >>confdefs.h <<\_ACEOF
26438#define X_DISPLAY_MISSING 1
26439_ACEOF
26440
26441 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26442else
26443 if test -n "$x_includes"; then
26444 X_CFLAGS="$X_CFLAGS -I$x_includes"
26445 fi
26446
26447 # It would also be nice to do this for all -L options, not just this one.
26448 if test -n "$x_libraries"; then
26449 X_LIBS="$X_LIBS -L$x_libraries"
26450 # For Solaris; some versions of Sun CC require a space after -R and
26451 # others require no space. Words are not sufficient . . . .
26452 case `(uname -sr) 2>/dev/null` in
26453 "SunOS 5"*)
26454 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
26455echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
26456 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26457 cat >conftest.$ac_ext <<_ACEOF
26458/* confdefs.h. */
26459_ACEOF
26460cat confdefs.h >>conftest.$ac_ext
26461cat >>conftest.$ac_ext <<_ACEOF
26462/* end confdefs.h. */
26463
26464int
26465main ()
26466{
26467
26468 ;
26469 return 0;
26470}
26471_ACEOF
26472rm -f conftest.$ac_objext conftest$ac_exeext
26473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26474 (eval $ac_link) 2>conftest.er1
a848cd7e 26475 ac_status=$?
ac1cb8d3
VS
26476 grep -v '^ *+' conftest.er1 >conftest.err
26477 rm -f conftest.er1
26478 cat conftest.err >&5
a848cd7e
SC
26479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26480 (exit $ac_status); } &&
6ebeb4c7 26481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26483 (eval $ac_try) 2>&5
26484 ac_status=$?
26485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26486 (exit $ac_status); }; } &&
26487 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26489 (eval $ac_try) 2>&5
26490 ac_status=$?
26491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492 (exit $ac_status); }; }; then
26493 ac_R_nospace=yes
26494else
26495 echo "$as_me: failed program was:" >&5
26496sed 's/^/| /' conftest.$ac_ext >&5
26497
26498ac_R_nospace=no
26499fi
ac1cb8d3
VS
26500rm -f conftest.err conftest.$ac_objext \
26501 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26502 if test $ac_R_nospace = yes; then
26503 echo "$as_me:$LINENO: result: no" >&5
26504echo "${ECHO_T}no" >&6
26505 X_LIBS="$X_LIBS -R$x_libraries"
26506 else
26507 LIBS="$ac_xsave_LIBS -R $x_libraries"
26508 cat >conftest.$ac_ext <<_ACEOF
26509/* confdefs.h. */
26510_ACEOF
26511cat confdefs.h >>conftest.$ac_ext
26512cat >>conftest.$ac_ext <<_ACEOF
26513/* end confdefs.h. */
26514
26515int
26516main ()
26517{
26518
26519 ;
26520 return 0;
26521}
26522_ACEOF
26523rm -f conftest.$ac_objext conftest$ac_exeext
26524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26525 (eval $ac_link) 2>conftest.er1
a848cd7e 26526 ac_status=$?
ac1cb8d3
VS
26527 grep -v '^ *+' conftest.er1 >conftest.err
26528 rm -f conftest.er1
26529 cat conftest.err >&5
a848cd7e
SC
26530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26531 (exit $ac_status); } &&
6ebeb4c7 26532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26534 (eval $ac_try) 2>&5
26535 ac_status=$?
26536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26537 (exit $ac_status); }; } &&
26538 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26540 (eval $ac_try) 2>&5
26541 ac_status=$?
26542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26543 (exit $ac_status); }; }; then
26544 ac_R_space=yes
26545else
26546 echo "$as_me: failed program was:" >&5
26547sed 's/^/| /' conftest.$ac_ext >&5
26548
26549ac_R_space=no
26550fi
ac1cb8d3
VS
26551rm -f conftest.err conftest.$ac_objext \
26552 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26553 if test $ac_R_space = yes; then
26554 echo "$as_me:$LINENO: result: yes" >&5
26555echo "${ECHO_T}yes" >&6
26556 X_LIBS="$X_LIBS -R $x_libraries"
26557 else
26558 echo "$as_me:$LINENO: result: neither works" >&5
26559echo "${ECHO_T}neither works" >&6
26560 fi
26561 fi
26562 LIBS=$ac_xsave_LIBS
26563 esac
26564 fi
26565
26566 # Check for system-dependent libraries X programs must link with.
26567 # Do this before checking for the system-independent R6 libraries
26568 # (-lICE), since we may need -lsocket or whatever for X linking.
26569
26570 if test "$ISC" = yes; then
26571 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26572 else
26573 # Martyn Johnson says this is needed for Ultrix, if the X
26574 # libraries were built with DECnet support. And Karl Berry says
26575 # the Alpha needs dnet_stub (dnet does not exist).
26576 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
26577 cat >conftest.$ac_ext <<_ACEOF
26578/* confdefs.h. */
26579_ACEOF
26580cat confdefs.h >>conftest.$ac_ext
26581cat >>conftest.$ac_ext <<_ACEOF
26582/* end confdefs.h. */
26583
26584/* Override any gcc2 internal prototype to avoid an error. */
26585#ifdef __cplusplus
26586extern "C"
26587#endif
26588/* We use char because int might match the return type of a gcc2
26589 builtin and then its argument prototype would still apply. */
26590char XOpenDisplay ();
26591int
26592main ()
26593{
26594XOpenDisplay ();
26595 ;
26596 return 0;
26597}
26598_ACEOF
26599rm -f conftest.$ac_objext conftest$ac_exeext
26600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26601 (eval $ac_link) 2>conftest.er1
a848cd7e 26602 ac_status=$?
ac1cb8d3
VS
26603 grep -v '^ *+' conftest.er1 >conftest.err
26604 rm -f conftest.er1
26605 cat conftest.err >&5
a848cd7e
SC
26606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26607 (exit $ac_status); } &&
6ebeb4c7 26608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26610 (eval $ac_try) 2>&5
26611 ac_status=$?
26612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26613 (exit $ac_status); }; } &&
26614 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26616 (eval $ac_try) 2>&5
26617 ac_status=$?
26618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26619 (exit $ac_status); }; }; then
26620 :
26621else
26622 echo "$as_me: failed program was:" >&5
26623sed 's/^/| /' conftest.$ac_ext >&5
26624
26625echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
26626echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
26627if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
26628 echo $ECHO_N "(cached) $ECHO_C" >&6
26629else
26630 ac_check_lib_save_LIBS=$LIBS
26631LIBS="-ldnet $LIBS"
26632cat >conftest.$ac_ext <<_ACEOF
26633/* confdefs.h. */
26634_ACEOF
26635cat confdefs.h >>conftest.$ac_ext
26636cat >>conftest.$ac_ext <<_ACEOF
26637/* end confdefs.h. */
26638
26639/* Override any gcc2 internal prototype to avoid an error. */
26640#ifdef __cplusplus
26641extern "C"
26642#endif
26643/* We use char because int might match the return type of a gcc2
26644 builtin and then its argument prototype would still apply. */
26645char dnet_ntoa ();
26646int
26647main ()
26648{
26649dnet_ntoa ();
26650 ;
26651 return 0;
26652}
26653_ACEOF
26654rm -f conftest.$ac_objext conftest$ac_exeext
26655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26656 (eval $ac_link) 2>conftest.er1
a848cd7e 26657 ac_status=$?
ac1cb8d3
VS
26658 grep -v '^ *+' conftest.er1 >conftest.err
26659 rm -f conftest.er1
26660 cat conftest.err >&5
a848cd7e
SC
26661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26662 (exit $ac_status); } &&
6ebeb4c7 26663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26665 (eval $ac_try) 2>&5
26666 ac_status=$?
26667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26668 (exit $ac_status); }; } &&
26669 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26671 (eval $ac_try) 2>&5
26672 ac_status=$?
26673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26674 (exit $ac_status); }; }; then
26675 ac_cv_lib_dnet_dnet_ntoa=yes
26676else
26677 echo "$as_me: failed program was:" >&5
26678sed 's/^/| /' conftest.$ac_ext >&5
26679
26680ac_cv_lib_dnet_dnet_ntoa=no
26681fi
ac1cb8d3
VS
26682rm -f conftest.err conftest.$ac_objext \
26683 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26684LIBS=$ac_check_lib_save_LIBS
26685fi
26686echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26687echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
26688if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
26689 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26690fi
26691
26692 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26693 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
26694echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
26695if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
26696 echo $ECHO_N "(cached) $ECHO_C" >&6
26697else
26698 ac_check_lib_save_LIBS=$LIBS
26699LIBS="-ldnet_stub $LIBS"
26700cat >conftest.$ac_ext <<_ACEOF
26701/* confdefs.h. */
26702_ACEOF
26703cat confdefs.h >>conftest.$ac_ext
26704cat >>conftest.$ac_ext <<_ACEOF
26705/* end confdefs.h. */
26706
26707/* Override any gcc2 internal prototype to avoid an error. */
26708#ifdef __cplusplus
26709extern "C"
26710#endif
26711/* We use char because int might match the return type of a gcc2
26712 builtin and then its argument prototype would still apply. */
26713char dnet_ntoa ();
26714int
26715main ()
26716{
26717dnet_ntoa ();
26718 ;
26719 return 0;
26720}
26721_ACEOF
26722rm -f conftest.$ac_objext conftest$ac_exeext
26723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26724 (eval $ac_link) 2>conftest.er1
a848cd7e 26725 ac_status=$?
ac1cb8d3
VS
26726 grep -v '^ *+' conftest.er1 >conftest.err
26727 rm -f conftest.er1
26728 cat conftest.err >&5
a848cd7e
SC
26729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26730 (exit $ac_status); } &&
6ebeb4c7 26731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26733 (eval $ac_try) 2>&5
26734 ac_status=$?
26735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26736 (exit $ac_status); }; } &&
26737 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26739 (eval $ac_try) 2>&5
26740 ac_status=$?
26741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26742 (exit $ac_status); }; }; then
26743 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26744else
26745 echo "$as_me: failed program was:" >&5
26746sed 's/^/| /' conftest.$ac_ext >&5
26747
26748ac_cv_lib_dnet_stub_dnet_ntoa=no
26749fi
ac1cb8d3
VS
26750rm -f conftest.err conftest.$ac_objext \
26751 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26752LIBS=$ac_check_lib_save_LIBS
26753fi
26754echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26755echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
26756if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
26757 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26758fi
26759
26760 fi
26761fi
ac1cb8d3
VS
26762rm -f conftest.err conftest.$ac_objext \
26763 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26764 LIBS="$ac_xsave_LIBS"
26765
26766 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26767 # to get the SysV transport functions.
26768 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26769 # needs -lnsl.
26770 # The nsl library prevents programs from opening the X display
26771 # on Irix 5.2, according to T.E. Dickey.
26772 # The functions gethostbyname, getservbyname, and inet_addr are
26773 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26774 echo "$as_me:$LINENO: checking for gethostbyname" >&5
26775echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
26776if test "${ac_cv_func_gethostbyname+set}" = set; then
26777 echo $ECHO_N "(cached) $ECHO_C" >&6
26778else
26779 cat >conftest.$ac_ext <<_ACEOF
26780/* confdefs.h. */
26781_ACEOF
26782cat confdefs.h >>conftest.$ac_ext
26783cat >>conftest.$ac_ext <<_ACEOF
26784/* end confdefs.h. */
ac1cb8d3
VS
26785/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
26786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26787#define gethostbyname innocuous_gethostbyname
26788
a848cd7e
SC
26789/* System header to define __stub macros and hopefully few prototypes,
26790 which can conflict with char gethostbyname (); below.
26791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26792 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26793
a848cd7e
SC
26794#ifdef __STDC__
26795# include <limits.h>
26796#else
26797# include <assert.h>
26798#endif
ac1cb8d3
VS
26799
26800#undef gethostbyname
26801
a848cd7e
SC
26802/* Override any gcc2 internal prototype to avoid an error. */
26803#ifdef __cplusplus
26804extern "C"
26805{
26806#endif
26807/* We use char because int might match the return type of a gcc2
26808 builtin and then its argument prototype would still apply. */
26809char gethostbyname ();
26810/* The GNU C library defines this for functions which it implements
26811 to always fail with ENOSYS. Some functions are actually named
26812 something starting with __ and the normal name is an alias. */
26813#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
26814choke me
26815#else
26816char (*f) () = gethostbyname;
26817#endif
26818#ifdef __cplusplus
26819}
26820#endif
26821
26822int
26823main ()
26824{
26825return f != gethostbyname;
26826 ;
26827 return 0;
26828}
26829_ACEOF
26830rm -f conftest.$ac_objext conftest$ac_exeext
26831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26832 (eval $ac_link) 2>conftest.er1
a848cd7e 26833 ac_status=$?
ac1cb8d3
VS
26834 grep -v '^ *+' conftest.er1 >conftest.err
26835 rm -f conftest.er1
26836 cat conftest.err >&5
a848cd7e
SC
26837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26838 (exit $ac_status); } &&
6ebeb4c7 26839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26841 (eval $ac_try) 2>&5
26842 ac_status=$?
26843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26844 (exit $ac_status); }; } &&
26845 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26847 (eval $ac_try) 2>&5
26848 ac_status=$?
26849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26850 (exit $ac_status); }; }; then
26851 ac_cv_func_gethostbyname=yes
26852else
26853 echo "$as_me: failed program was:" >&5
26854sed 's/^/| /' conftest.$ac_ext >&5
26855
26856ac_cv_func_gethostbyname=no
26857fi
ac1cb8d3
VS
26858rm -f conftest.err conftest.$ac_objext \
26859 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26860fi
26861echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
26862echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
26863
26864 if test $ac_cv_func_gethostbyname = no; then
26865 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
26866echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
26867if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
26868 echo $ECHO_N "(cached) $ECHO_C" >&6
26869else
26870 ac_check_lib_save_LIBS=$LIBS
26871LIBS="-lnsl $LIBS"
26872cat >conftest.$ac_ext <<_ACEOF
26873/* confdefs.h. */
26874_ACEOF
26875cat confdefs.h >>conftest.$ac_ext
26876cat >>conftest.$ac_ext <<_ACEOF
26877/* end confdefs.h. */
26878
26879/* Override any gcc2 internal prototype to avoid an error. */
26880#ifdef __cplusplus
26881extern "C"
26882#endif
26883/* We use char because int might match the return type of a gcc2
26884 builtin and then its argument prototype would still apply. */
26885char gethostbyname ();
26886int
26887main ()
26888{
26889gethostbyname ();
26890 ;
26891 return 0;
26892}
26893_ACEOF
26894rm -f conftest.$ac_objext conftest$ac_exeext
26895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
26896 (eval $ac_link) 2>conftest.er1
26897 ac_status=$?
26898 grep -v '^ *+' conftest.er1 >conftest.err
26899 rm -f conftest.er1
26900 cat conftest.err >&5
26901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26902 (exit $ac_status); } &&
6ebeb4c7 26903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26905 (eval $ac_try) 2>&5
26906 ac_status=$?
26907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26908 (exit $ac_status); }; } &&
26909 { ac_try='test -s conftest$ac_exeext'
26910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26911 (eval $ac_try) 2>&5
26912 ac_status=$?
26913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26914 (exit $ac_status); }; }; then
26915 ac_cv_lib_nsl_gethostbyname=yes
26916else
26917 echo "$as_me: failed program was:" >&5
26918sed 's/^/| /' conftest.$ac_ext >&5
26919
26920ac_cv_lib_nsl_gethostbyname=no
26921fi
26922rm -f conftest.err conftest.$ac_objext \
26923 conftest$ac_exeext conftest.$ac_ext
26924LIBS=$ac_check_lib_save_LIBS
26925fi
26926echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
26927echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
26928if test $ac_cv_lib_nsl_gethostbyname = yes; then
26929 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26930fi
26931
26932 if test $ac_cv_lib_nsl_gethostbyname = no; then
26933 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
26934echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
26935if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
26936 echo $ECHO_N "(cached) $ECHO_C" >&6
26937else
26938 ac_check_lib_save_LIBS=$LIBS
26939LIBS="-lbsd $LIBS"
26940cat >conftest.$ac_ext <<_ACEOF
26941/* confdefs.h. */
26942_ACEOF
26943cat confdefs.h >>conftest.$ac_ext
26944cat >>conftest.$ac_ext <<_ACEOF
26945/* end confdefs.h. */
26946
26947/* Override any gcc2 internal prototype to avoid an error. */
26948#ifdef __cplusplus
26949extern "C"
26950#endif
26951/* We use char because int might match the return type of a gcc2
26952 builtin and then its argument prototype would still apply. */
26953char gethostbyname ();
26954int
26955main ()
26956{
26957gethostbyname ();
26958 ;
26959 return 0;
26960}
26961_ACEOF
26962rm -f conftest.$ac_objext conftest$ac_exeext
26963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26964 (eval $ac_link) 2>conftest.er1
a848cd7e 26965 ac_status=$?
ac1cb8d3
VS
26966 grep -v '^ *+' conftest.er1 >conftest.err
26967 rm -f conftest.er1
26968 cat conftest.err >&5
a848cd7e
SC
26969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26970 (exit $ac_status); } &&
6ebeb4c7 26971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
26972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26973 (eval $ac_try) 2>&5
26974 ac_status=$?
26975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
26976 (exit $ac_status); }; } &&
26977 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26979 (eval $ac_try) 2>&5
26980 ac_status=$?
26981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26982 (exit $ac_status); }; }; then
26983 ac_cv_lib_bsd_gethostbyname=yes
26984else
26985 echo "$as_me: failed program was:" >&5
26986sed 's/^/| /' conftest.$ac_ext >&5
26987
26988ac_cv_lib_bsd_gethostbyname=no
26989fi
ac1cb8d3
VS
26990rm -f conftest.err conftest.$ac_objext \
26991 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26992LIBS=$ac_check_lib_save_LIBS
26993fi
26994echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
26995echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
26996if test $ac_cv_lib_bsd_gethostbyname = yes; then
26997 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26998fi
26999
27000 fi
27001 fi
27002
27003 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27004 # socket/setsockopt and other routines are undefined under SCO ODT
27005 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27006 # on later versions), says Simon Leinen: it contains gethostby*
27007 # variants that don't use the name server (or something). -lsocket
27008 # must be given before -lnsl if both are needed. We assume that
27009 # if connect needs -lnsl, so does gethostbyname.
27010 echo "$as_me:$LINENO: checking for connect" >&5
27011echo $ECHO_N "checking for connect... $ECHO_C" >&6
27012if test "${ac_cv_func_connect+set}" = set; then
27013 echo $ECHO_N "(cached) $ECHO_C" >&6
27014else
27015 cat >conftest.$ac_ext <<_ACEOF
27016/* confdefs.h. */
27017_ACEOF
27018cat confdefs.h >>conftest.$ac_ext
27019cat >>conftest.$ac_ext <<_ACEOF
27020/* end confdefs.h. */
ac1cb8d3
VS
27021/* Define connect to an innocuous variant, in case <limits.h> declares connect.
27022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27023#define connect innocuous_connect
27024
a848cd7e
SC
27025/* System header to define __stub macros and hopefully few prototypes,
27026 which can conflict with char connect (); below.
27027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27028 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27029
a848cd7e
SC
27030#ifdef __STDC__
27031# include <limits.h>
27032#else
27033# include <assert.h>
27034#endif
ac1cb8d3
VS
27035
27036#undef connect
27037
a848cd7e
SC
27038/* Override any gcc2 internal prototype to avoid an error. */
27039#ifdef __cplusplus
27040extern "C"
27041{
27042#endif
27043/* We use char because int might match the return type of a gcc2
27044 builtin and then its argument prototype would still apply. */
27045char connect ();
27046/* The GNU C library defines this for functions which it implements
27047 to always fail with ENOSYS. Some functions are actually named
27048 something starting with __ and the normal name is an alias. */
27049#if defined (__stub_connect) || defined (__stub___connect)
27050choke me
27051#else
27052char (*f) () = connect;
27053#endif
27054#ifdef __cplusplus
27055}
27056#endif
27057
27058int
27059main ()
27060{
27061return f != connect;
27062 ;
27063 return 0;
27064}
27065_ACEOF
27066rm -f conftest.$ac_objext conftest$ac_exeext
27067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27068 (eval $ac_link) 2>conftest.er1
a848cd7e 27069 ac_status=$?
ac1cb8d3
VS
27070 grep -v '^ *+' conftest.er1 >conftest.err
27071 rm -f conftest.er1
27072 cat conftest.err >&5
a848cd7e
SC
27073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27074 (exit $ac_status); } &&
6ebeb4c7 27075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27077 (eval $ac_try) 2>&5
27078 ac_status=$?
27079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27080 (exit $ac_status); }; } &&
27081 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27083 (eval $ac_try) 2>&5
27084 ac_status=$?
27085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27086 (exit $ac_status); }; }; then
27087 ac_cv_func_connect=yes
27088else
27089 echo "$as_me: failed program was:" >&5
27090sed 's/^/| /' conftest.$ac_ext >&5
27091
27092ac_cv_func_connect=no
27093fi
ac1cb8d3
VS
27094rm -f conftest.err conftest.$ac_objext \
27095 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27096fi
27097echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
27098echo "${ECHO_T}$ac_cv_func_connect" >&6
27099
27100 if test $ac_cv_func_connect = no; then
27101 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
27102echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
27103if test "${ac_cv_lib_socket_connect+set}" = set; then
27104 echo $ECHO_N "(cached) $ECHO_C" >&6
27105else
27106 ac_check_lib_save_LIBS=$LIBS
27107LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
27108cat >conftest.$ac_ext <<_ACEOF
27109/* confdefs.h. */
27110_ACEOF
27111cat confdefs.h >>conftest.$ac_ext
27112cat >>conftest.$ac_ext <<_ACEOF
27113/* end confdefs.h. */
27114
27115/* Override any gcc2 internal prototype to avoid an error. */
27116#ifdef __cplusplus
27117extern "C"
27118#endif
27119/* We use char because int might match the return type of a gcc2
27120 builtin and then its argument prototype would still apply. */
27121char connect ();
27122int
27123main ()
27124{
27125connect ();
27126 ;
27127 return 0;
27128}
27129_ACEOF
27130rm -f conftest.$ac_objext conftest$ac_exeext
27131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27132 (eval $ac_link) 2>conftest.er1
a848cd7e 27133 ac_status=$?
ac1cb8d3
VS
27134 grep -v '^ *+' conftest.er1 >conftest.err
27135 rm -f conftest.er1
27136 cat conftest.err >&5
a848cd7e
SC
27137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27138 (exit $ac_status); } &&
6ebeb4c7 27139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27141 (eval $ac_try) 2>&5
27142 ac_status=$?
27143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27144 (exit $ac_status); }; } &&
27145 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27147 (eval $ac_try) 2>&5
27148 ac_status=$?
27149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27150 (exit $ac_status); }; }; then
27151 ac_cv_lib_socket_connect=yes
27152else
27153 echo "$as_me: failed program was:" >&5
27154sed 's/^/| /' conftest.$ac_ext >&5
27155
27156ac_cv_lib_socket_connect=no
27157fi
ac1cb8d3
VS
27158rm -f conftest.err conftest.$ac_objext \
27159 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27160LIBS=$ac_check_lib_save_LIBS
27161fi
27162echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
27163echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
27164if test $ac_cv_lib_socket_connect = yes; then
27165 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27166fi
27167
27168 fi
27169
27170 # Guillermo Gomez says -lposix is necessary on A/UX.
27171 echo "$as_me:$LINENO: checking for remove" >&5
27172echo $ECHO_N "checking for remove... $ECHO_C" >&6
27173if test "${ac_cv_func_remove+set}" = set; then
27174 echo $ECHO_N "(cached) $ECHO_C" >&6
27175else
27176 cat >conftest.$ac_ext <<_ACEOF
27177/* confdefs.h. */
27178_ACEOF
27179cat confdefs.h >>conftest.$ac_ext
27180cat >>conftest.$ac_ext <<_ACEOF
27181/* end confdefs.h. */
ac1cb8d3
VS
27182/* Define remove to an innocuous variant, in case <limits.h> declares remove.
27183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27184#define remove innocuous_remove
27185
a848cd7e
SC
27186/* System header to define __stub macros and hopefully few prototypes,
27187 which can conflict with char remove (); below.
27188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27189 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27190
a848cd7e
SC
27191#ifdef __STDC__
27192# include <limits.h>
27193#else
27194# include <assert.h>
27195#endif
ac1cb8d3
VS
27196
27197#undef remove
27198
a848cd7e
SC
27199/* Override any gcc2 internal prototype to avoid an error. */
27200#ifdef __cplusplus
27201extern "C"
27202{
27203#endif
27204/* We use char because int might match the return type of a gcc2
27205 builtin and then its argument prototype would still apply. */
27206char remove ();
27207/* The GNU C library defines this for functions which it implements
27208 to always fail with ENOSYS. Some functions are actually named
27209 something starting with __ and the normal name is an alias. */
27210#if defined (__stub_remove) || defined (__stub___remove)
27211choke me
27212#else
27213char (*f) () = remove;
27214#endif
27215#ifdef __cplusplus
27216}
27217#endif
27218
27219int
27220main ()
27221{
27222return f != remove;
27223 ;
27224 return 0;
27225}
27226_ACEOF
27227rm -f conftest.$ac_objext conftest$ac_exeext
27228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27229 (eval $ac_link) 2>conftest.er1
a848cd7e 27230 ac_status=$?
ac1cb8d3
VS
27231 grep -v '^ *+' conftest.er1 >conftest.err
27232 rm -f conftest.er1
27233 cat conftest.err >&5
a848cd7e
SC
27234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27235 (exit $ac_status); } &&
6ebeb4c7 27236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27238 (eval $ac_try) 2>&5
27239 ac_status=$?
27240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27241 (exit $ac_status); }; } &&
27242 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27244 (eval $ac_try) 2>&5
27245 ac_status=$?
27246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247 (exit $ac_status); }; }; then
27248 ac_cv_func_remove=yes
27249else
27250 echo "$as_me: failed program was:" >&5
27251sed 's/^/| /' conftest.$ac_ext >&5
27252
27253ac_cv_func_remove=no
27254fi
ac1cb8d3
VS
27255rm -f conftest.err conftest.$ac_objext \
27256 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27257fi
27258echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
27259echo "${ECHO_T}$ac_cv_func_remove" >&6
27260
27261 if test $ac_cv_func_remove = no; then
27262 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
27263echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
27264if test "${ac_cv_lib_posix_remove+set}" = set; then
27265 echo $ECHO_N "(cached) $ECHO_C" >&6
27266else
27267 ac_check_lib_save_LIBS=$LIBS
27268LIBS="-lposix $LIBS"
27269cat >conftest.$ac_ext <<_ACEOF
27270/* confdefs.h. */
27271_ACEOF
27272cat confdefs.h >>conftest.$ac_ext
27273cat >>conftest.$ac_ext <<_ACEOF
27274/* end confdefs.h. */
27275
27276/* Override any gcc2 internal prototype to avoid an error. */
27277#ifdef __cplusplus
27278extern "C"
27279#endif
27280/* We use char because int might match the return type of a gcc2
27281 builtin and then its argument prototype would still apply. */
27282char remove ();
27283int
27284main ()
27285{
27286remove ();
27287 ;
27288 return 0;
27289}
27290_ACEOF
27291rm -f conftest.$ac_objext conftest$ac_exeext
27292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27293 (eval $ac_link) 2>conftest.er1
a848cd7e 27294 ac_status=$?
ac1cb8d3
VS
27295 grep -v '^ *+' conftest.er1 >conftest.err
27296 rm -f conftest.er1
27297 cat conftest.err >&5
a848cd7e
SC
27298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27299 (exit $ac_status); } &&
6ebeb4c7 27300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27302 (eval $ac_try) 2>&5
27303 ac_status=$?
27304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27305 (exit $ac_status); }; } &&
27306 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27308 (eval $ac_try) 2>&5
27309 ac_status=$?
27310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27311 (exit $ac_status); }; }; then
27312 ac_cv_lib_posix_remove=yes
27313else
27314 echo "$as_me: failed program was:" >&5
27315sed 's/^/| /' conftest.$ac_ext >&5
27316
27317ac_cv_lib_posix_remove=no
27318fi
ac1cb8d3
VS
27319rm -f conftest.err conftest.$ac_objext \
27320 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27321LIBS=$ac_check_lib_save_LIBS
27322fi
27323echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
27324echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
27325if test $ac_cv_lib_posix_remove = yes; then
27326 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27327fi
27328
27329 fi
27330
27331 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
27332 echo "$as_me:$LINENO: checking for shmat" >&5
27333echo $ECHO_N "checking for shmat... $ECHO_C" >&6
27334if test "${ac_cv_func_shmat+set}" = set; then
27335 echo $ECHO_N "(cached) $ECHO_C" >&6
27336else
27337 cat >conftest.$ac_ext <<_ACEOF
27338/* confdefs.h. */
27339_ACEOF
27340cat confdefs.h >>conftest.$ac_ext
27341cat >>conftest.$ac_ext <<_ACEOF
27342/* end confdefs.h. */
ac1cb8d3
VS
27343/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
27344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27345#define shmat innocuous_shmat
27346
a848cd7e
SC
27347/* System header to define __stub macros and hopefully few prototypes,
27348 which can conflict with char shmat (); below.
27349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27350 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27351
a848cd7e
SC
27352#ifdef __STDC__
27353# include <limits.h>
27354#else
27355# include <assert.h>
27356#endif
ac1cb8d3
VS
27357
27358#undef shmat
27359
a848cd7e
SC
27360/* Override any gcc2 internal prototype to avoid an error. */
27361#ifdef __cplusplus
27362extern "C"
27363{
27364#endif
27365/* We use char because int might match the return type of a gcc2
27366 builtin and then its argument prototype would still apply. */
27367char shmat ();
27368/* The GNU C library defines this for functions which it implements
27369 to always fail with ENOSYS. Some functions are actually named
27370 something starting with __ and the normal name is an alias. */
27371#if defined (__stub_shmat) || defined (__stub___shmat)
27372choke me
27373#else
27374char (*f) () = shmat;
27375#endif
27376#ifdef __cplusplus
27377}
27378#endif
27379
27380int
27381main ()
27382{
27383return f != shmat;
27384 ;
27385 return 0;
27386}
27387_ACEOF
27388rm -f conftest.$ac_objext conftest$ac_exeext
27389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27390 (eval $ac_link) 2>conftest.er1
a848cd7e 27391 ac_status=$?
ac1cb8d3
VS
27392 grep -v '^ *+' conftest.er1 >conftest.err
27393 rm -f conftest.er1
27394 cat conftest.err >&5
a848cd7e
SC
27395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396 (exit $ac_status); } &&
6ebeb4c7 27397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27399 (eval $ac_try) 2>&5
27400 ac_status=$?
27401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402 (exit $ac_status); }; } &&
27403 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27405 (eval $ac_try) 2>&5
27406 ac_status=$?
27407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408 (exit $ac_status); }; }; then
27409 ac_cv_func_shmat=yes
27410else
27411 echo "$as_me: failed program was:" >&5
27412sed 's/^/| /' conftest.$ac_ext >&5
27413
27414ac_cv_func_shmat=no
27415fi
ac1cb8d3
VS
27416rm -f conftest.err conftest.$ac_objext \
27417 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27418fi
27419echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
27420echo "${ECHO_T}$ac_cv_func_shmat" >&6
27421
27422 if test $ac_cv_func_shmat = no; then
27423 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
27424echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
27425if test "${ac_cv_lib_ipc_shmat+set}" = set; then
27426 echo $ECHO_N "(cached) $ECHO_C" >&6
27427else
27428 ac_check_lib_save_LIBS=$LIBS
27429LIBS="-lipc $LIBS"
27430cat >conftest.$ac_ext <<_ACEOF
27431/* confdefs.h. */
27432_ACEOF
27433cat confdefs.h >>conftest.$ac_ext
27434cat >>conftest.$ac_ext <<_ACEOF
27435/* end confdefs.h. */
27436
27437/* Override any gcc2 internal prototype to avoid an error. */
27438#ifdef __cplusplus
27439extern "C"
27440#endif
27441/* We use char because int might match the return type of a gcc2
27442 builtin and then its argument prototype would still apply. */
27443char shmat ();
27444int
27445main ()
27446{
27447shmat ();
27448 ;
27449 return 0;
27450}
27451_ACEOF
27452rm -f conftest.$ac_objext conftest$ac_exeext
27453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27454 (eval $ac_link) 2>conftest.er1
a848cd7e 27455 ac_status=$?
ac1cb8d3
VS
27456 grep -v '^ *+' conftest.er1 >conftest.err
27457 rm -f conftest.er1
27458 cat conftest.err >&5
a848cd7e
SC
27459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460 (exit $ac_status); } &&
6ebeb4c7 27461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27463 (eval $ac_try) 2>&5
27464 ac_status=$?
27465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27466 (exit $ac_status); }; } &&
27467 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27469 (eval $ac_try) 2>&5
27470 ac_status=$?
27471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27472 (exit $ac_status); }; }; then
27473 ac_cv_lib_ipc_shmat=yes
27474else
27475 echo "$as_me: failed program was:" >&5
27476sed 's/^/| /' conftest.$ac_ext >&5
27477
27478ac_cv_lib_ipc_shmat=no
27479fi
ac1cb8d3
VS
27480rm -f conftest.err conftest.$ac_objext \
27481 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27482LIBS=$ac_check_lib_save_LIBS
27483fi
27484echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
27485echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
27486if test $ac_cv_lib_ipc_shmat = yes; then
27487 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27488fi
27489
27490 fi
27491 fi
27492
27493 # Check for libraries that X11R6 Xt/Xaw programs need.
27494 ac_save_LDFLAGS=$LDFLAGS
27495 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27496 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27497 # check for ICE first), but we must link in the order -lSM -lICE or
27498 # we get undefined symbols. So assume we have SM if we have ICE.
27499 # These have to be linked with before -lX11, unlike the other
27500 # libraries we check for below, so use a different variable.
27501 # John Interrante, Karl Berry
27502 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
27503echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
27504if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
27505 echo $ECHO_N "(cached) $ECHO_C" >&6
27506else
27507 ac_check_lib_save_LIBS=$LIBS
27508LIBS="-lICE $X_EXTRA_LIBS $LIBS"
27509cat >conftest.$ac_ext <<_ACEOF
27510/* confdefs.h. */
27511_ACEOF
27512cat confdefs.h >>conftest.$ac_ext
27513cat >>conftest.$ac_ext <<_ACEOF
27514/* end confdefs.h. */
27515
27516/* Override any gcc2 internal prototype to avoid an error. */
27517#ifdef __cplusplus
27518extern "C"
27519#endif
27520/* We use char because int might match the return type of a gcc2
27521 builtin and then its argument prototype would still apply. */
27522char IceConnectionNumber ();
27523int
27524main ()
27525{
27526IceConnectionNumber ();
27527 ;
27528 return 0;
27529}
27530_ACEOF
27531rm -f conftest.$ac_objext conftest$ac_exeext
27532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27533 (eval $ac_link) 2>conftest.er1
a848cd7e 27534 ac_status=$?
ac1cb8d3
VS
27535 grep -v '^ *+' conftest.er1 >conftest.err
27536 rm -f conftest.er1
27537 cat conftest.err >&5
a848cd7e
SC
27538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27539 (exit $ac_status); } &&
6ebeb4c7 27540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27542 (eval $ac_try) 2>&5
27543 ac_status=$?
27544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27545 (exit $ac_status); }; } &&
27546 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27548 (eval $ac_try) 2>&5
27549 ac_status=$?
27550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27551 (exit $ac_status); }; }; then
27552 ac_cv_lib_ICE_IceConnectionNumber=yes
27553else
27554 echo "$as_me: failed program was:" >&5
27555sed 's/^/| /' conftest.$ac_ext >&5
27556
27557ac_cv_lib_ICE_IceConnectionNumber=no
27558fi
ac1cb8d3
VS
27559rm -f conftest.err conftest.$ac_objext \
27560 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27561LIBS=$ac_check_lib_save_LIBS
27562fi
27563echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
27564echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
27565if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
27566 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27567fi
27568
27569 LDFLAGS=$ac_save_LDFLAGS
27570
27571fi
27572
27573
27574 if test "$no_x" = "yes"; then
27575 { { echo "$as_me:$LINENO: error: X11 not found" >&5
27576echo "$as_me: error: X11 not found" >&2;}
27577 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
27578 fi
27579
74b84332
VS
27580 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
27581 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
27582 AFMINSTALL=afminstall
27583 COMPILED_X_PROGRAM=0
27584
74b84332
VS
27585 fi
27586
27587 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
27588 if test "$wxUSE_NANOX" = "yes"; then
27589 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
27590echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
27591 if test "x$MICROWIN" = x ; then
27592 echo "$as_me:$LINENO: result: not found" >&5
27593echo "${ECHO_T}not found" >&6
27594 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
27595echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
27596 { (exit 1); exit 1; }; }
27597 else
27598 echo "$as_me:$LINENO: result: $MICROWIN" >&5
27599echo "${ECHO_T}$MICROWIN" >&6
27600 cat >>confdefs.h <<\_ACEOF
27601#define wxUSE_NANOX 1
27602_ACEOF
27603
27604 fi
27605 fi
27606
27607 if test "$wxUSE_UNICODE" = "yes"; then
27608
27609 succeeded=no
27610
27611 if test -z "$PKG_CONFIG"; then
27612 # Extract the first word of "pkg-config", so it can be a program name with args.
27613set dummy pkg-config; ac_word=$2
27614echo "$as_me:$LINENO: checking for $ac_word" >&5
27615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27616if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27617 echo $ECHO_N "(cached) $ECHO_C" >&6
27618else
27619 case $PKG_CONFIG in
27620 [\\/]* | ?:[\\/]*)
27621 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27622 ;;
27623 *)
27624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27625for as_dir in $PATH
27626do
27627 IFS=$as_save_IFS
27628 test -z "$as_dir" && as_dir=.
27629 for ac_exec_ext in '' $ac_executable_extensions; do
27630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27631 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27633 break 2
27634 fi
27635done
27636done
27637
27638 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27639 ;;
27640esac
27641fi
27642PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27643
27644if test -n "$PKG_CONFIG"; then
27645 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27646echo "${ECHO_T}$PKG_CONFIG" >&6
27647else
27648 echo "$as_me:$LINENO: result: no" >&5
27649echo "${ECHO_T}no" >&6
27650fi
27651
27652 fi
27653
27654 if test "$PKG_CONFIG" = "no" ; then
27655 echo "*** The pkg-config script could not be found. Make sure it is"
27656 echo "*** in your path, or set the PKG_CONFIG environment variable"
27657 echo "*** to the full path to pkg-config."
27658 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27659 else
27660 PKG_CONFIG_MIN_VERSION=0.9.0
27661 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27662 echo "$as_me:$LINENO: checking for pangox" >&5
27663echo $ECHO_N "checking for pangox... $ECHO_C" >&6
27664
27665 if $PKG_CONFIG --exists "pangox" ; then
27666 echo "$as_me:$LINENO: result: yes" >&5
27667echo "${ECHO_T}yes" >&6
27668 succeeded=yes
27669
27670 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
27671echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
27672 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
27673 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
27674echo "${ECHO_T}$PANGOX_CFLAGS" >&6
27675
27676 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
27677echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
27678 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
27679 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
27680echo "${ECHO_T}$PANGOX_LIBS" >&6
27681 else
27682 PANGOX_CFLAGS=""
27683 PANGOX_LIBS=""
27684 ## If we have a custom action on failure, don't print errors, but
27685 ## do set a variable so people can do so.
27686 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
27687
27688 fi
27689
27690
27691
27692 else
27693 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27694 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27695 fi
27696 fi
27697
27698 if test $succeeded = yes; then
27699
27700 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
27701 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
27702
27703 else
27704
27705 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
27706echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
27707 { (exit 1); exit 1; }; }
27708
27709
27710 fi
27711
27712
27713 succeeded=no
27714
27715 if test -z "$PKG_CONFIG"; then
27716 # Extract the first word of "pkg-config", so it can be a program name with args.
27717set dummy pkg-config; ac_word=$2
27718echo "$as_me:$LINENO: checking for $ac_word" >&5
27719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27720if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27721 echo $ECHO_N "(cached) $ECHO_C" >&6
27722else
27723 case $PKG_CONFIG in
27724 [\\/]* | ?:[\\/]*)
27725 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27726 ;;
27727 *)
27728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27729for as_dir in $PATH
27730do
27731 IFS=$as_save_IFS
27732 test -z "$as_dir" && as_dir=.
27733 for ac_exec_ext in '' $ac_executable_extensions; do
27734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27735 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27737 break 2
27738 fi
27739done
27740done
27741
27742 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27743 ;;
27744esac
27745fi
27746PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27747
27748if test -n "$PKG_CONFIG"; then
27749 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27750echo "${ECHO_T}$PKG_CONFIG" >&6
27751else
27752 echo "$as_me:$LINENO: result: no" >&5
27753echo "${ECHO_T}no" >&6
27754fi
27755
27756 fi
27757
27758 if test "$PKG_CONFIG" = "no" ; then
27759 echo "*** The pkg-config script could not be found. Make sure it is"
27760 echo "*** in your path, or set the PKG_CONFIG environment variable"
27761 echo "*** to the full path to pkg-config."
27762 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27763 else
27764 PKG_CONFIG_MIN_VERSION=0.9.0
27765 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27766 echo "$as_me:$LINENO: checking for pangoft2" >&5
27767echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
27768
27769 if $PKG_CONFIG --exists "pangoft2" ; then
27770 echo "$as_me:$LINENO: result: yes" >&5
27771echo "${ECHO_T}yes" >&6
27772 succeeded=yes
27773
27774 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
27775echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
27776 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
27777 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
27778echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
27779
27780 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
27781echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
27782 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
27783 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
27784echo "${ECHO_T}$PANGOFT2_LIBS" >&6
27785 else
27786 PANGOFT2_CFLAGS=""
27787 PANGOFT2_LIBS=""
27788 ## If we have a custom action on failure, don't print errors, but
27789 ## do set a variable so people can do so.
27790 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
27791
27792 fi
27793
27794
27795
27796 else
27797 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27798 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27799 fi
27800 fi
27801
27802 if test $succeeded = yes; then
27803
27804 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
27805 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
27806
27807 else
27808
27809 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
27810echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
27811 wxUSE_PRINTING_ARCHITECTURE="no"
27812
27813
27814 fi
27815
27816
27817 succeeded=no
27818
27819 if test -z "$PKG_CONFIG"; then
27820 # Extract the first word of "pkg-config", so it can be a program name with args.
27821set dummy pkg-config; ac_word=$2
27822echo "$as_me:$LINENO: checking for $ac_word" >&5
27823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27824if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27825 echo $ECHO_N "(cached) $ECHO_C" >&6
27826else
27827 case $PKG_CONFIG in
27828 [\\/]* | ?:[\\/]*)
27829 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27830 ;;
27831 *)
27832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27833for as_dir in $PATH
27834do
27835 IFS=$as_save_IFS
27836 test -z "$as_dir" && as_dir=.
27837 for ac_exec_ext in '' $ac_executable_extensions; do
27838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27839 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27841 break 2
27842 fi
27843done
27844done
27845
27846 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27847 ;;
27848esac
27849fi
27850PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27851
27852if test -n "$PKG_CONFIG"; then
27853 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27854echo "${ECHO_T}$PKG_CONFIG" >&6
27855else
27856 echo "$as_me:$LINENO: result: no" >&5
27857echo "${ECHO_T}no" >&6
27858fi
27859
27860 fi
27861
27862 if test "$PKG_CONFIG" = "no" ; then
27863 echo "*** The pkg-config script could not be found. Make sure it is"
27864 echo "*** in your path, or set the PKG_CONFIG environment variable"
27865 echo "*** to the full path to pkg-config."
27866 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27867 else
27868 PKG_CONFIG_MIN_VERSION=0.9.0
27869 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27870 echo "$as_me:$LINENO: checking for pangoxft" >&5
27871echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
27872
27873 if $PKG_CONFIG --exists "pangoxft" ; then
27874 echo "$as_me:$LINENO: result: yes" >&5
27875echo "${ECHO_T}yes" >&6
27876 succeeded=yes
27877
27878 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
27879echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
27880 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
27881 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
27882echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
27883
27884 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
27885echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
27886 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
27887 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
27888echo "${ECHO_T}$PANGOXFT_LIBS" >&6
27889 else
27890 PANGOXFT_CFLAGS=""
27891 PANGOXFT_LIBS=""
27892 ## If we have a custom action on failure, don't print errors, but
27893 ## do set a variable so people can do so.
27894 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
27895
27896 fi
27897
27898
27899
27900 else
27901 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27902 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27903 fi
27904 fi
27905
27906 if test $succeeded = yes; then
27907
4ae1af05
MB
27908 cat >>confdefs.h <<\_ACEOF
27909#define HAVE_PANGO_XFT 1
27910_ACEOF
27911
a848cd7e
SC
27912 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
27913 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
27914
27915 else
27916
27917 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
27918echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
27919
27920
27921 fi
27922
304205f1
VS
27923 save_CFLAGS="$CFLAGS"
27924 save_LIBS="$LIBS"
27925 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
27926 LIBS="$LIBS $PANGOX_LIBS"
27927
27928for ac_func in pango_font_family_is_monospace
27929do
27930as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27931echo "$as_me:$LINENO: checking for $ac_func" >&5
27932echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27933if eval "test \"\${$as_ac_var+set}\" = set"; then
27934 echo $ECHO_N "(cached) $ECHO_C" >&6
27935else
27936 cat >conftest.$ac_ext <<_ACEOF
27937/* confdefs.h. */
27938_ACEOF
27939cat confdefs.h >>conftest.$ac_ext
27940cat >>conftest.$ac_ext <<_ACEOF
27941/* end confdefs.h. */
27942/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27944#define $ac_func innocuous_$ac_func
27945
27946/* System header to define __stub macros and hopefully few prototypes,
27947 which can conflict with char $ac_func (); below.
27948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27949 <limits.h> exists even on freestanding compilers. */
27950
27951#ifdef __STDC__
27952# include <limits.h>
27953#else
27954# include <assert.h>
27955#endif
27956
27957#undef $ac_func
27958
27959/* Override any gcc2 internal prototype to avoid an error. */
27960#ifdef __cplusplus
27961extern "C"
27962{
27963#endif
27964/* We use char because int might match the return type of a gcc2
27965 builtin and then its argument prototype would still apply. */
27966char $ac_func ();
27967/* The GNU C library defines this for functions which it implements
27968 to always fail with ENOSYS. Some functions are actually named
27969 something starting with __ and the normal name is an alias. */
27970#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27971choke me
27972#else
27973char (*f) () = $ac_func;
27974#endif
27975#ifdef __cplusplus
27976}
27977#endif
27978
27979int
27980main ()
27981{
27982return f != $ac_func;
27983 ;
27984 return 0;
27985}
27986_ACEOF
27987rm -f conftest.$ac_objext conftest$ac_exeext
27988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27989 (eval $ac_link) 2>conftest.er1
27990 ac_status=$?
27991 grep -v '^ *+' conftest.er1 >conftest.err
27992 rm -f conftest.er1
27993 cat conftest.err >&5
27994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27995 (exit $ac_status); } &&
6ebeb4c7 27996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
27997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27998 (eval $ac_try) 2>&5
27999 ac_status=$?
28000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28001 (exit $ac_status); }; } &&
28002 { ac_try='test -s conftest$ac_exeext'
28003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28004 (eval $ac_try) 2>&5
28005 ac_status=$?
28006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28007 (exit $ac_status); }; }; then
28008 eval "$as_ac_var=yes"
28009else
28010 echo "$as_me: failed program was:" >&5
28011sed 's/^/| /' conftest.$ac_ext >&5
28012
28013eval "$as_ac_var=no"
28014fi
28015rm -f conftest.err conftest.$ac_objext \
28016 conftest$ac_exeext conftest.$ac_ext
28017fi
28018echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28019echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28020if test `eval echo '${'$as_ac_var'}'` = yes; then
28021 cat >>confdefs.h <<_ACEOF
28022#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28023_ACEOF
28024
28025fi
28026done
28027
28028 CFLAGS="$save_CFLAGS"
28029 LIBS="$save_LIBS"
a848cd7e
SC
28030 fi
28031
28032 wxUSE_UNIVERSAL="yes"
28033
28034 if test "$wxUSE_NANOX" = "yes"; then
28035 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
28036 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"
28037 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
28038 else
28039 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
28040 fi
28041
a848cd7e
SC
28042 TOOLKIT=X11
28043 GUIDIST=X11_DIST
28044 fi
28045
28046 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
28047 if test "$wxUSE_UNICODE" = "yes"; then
28048 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
28049echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
28050 { (exit 1); exit 1; }; }
28051 fi
28052
74b84332
VS
28053 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
28054echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 28055
74b84332
VS
28056ac_find_includes=
28057for ac_dir in $SEARCH_INCLUDE /usr/include;
28058 do
28059 if test -f "$ac_dir/Xm/Xm.h"; then
28060 ac_find_includes=$ac_dir
28061 break
28062 fi
28063 done
a848cd7e 28064
74b84332
VS
28065 if test "$ac_find_includes" != "" ; then
28066 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
28067echo "${ECHO_T}found in $ac_find_includes" >&6
28068
28069 if test "x$ac_find_includes" = "x/usr/include"; then
28070 ac_path_to_include=""
28071 else
28072 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
28073 result=$?
28074 if test $result = 0; then
28075 ac_path_to_include=""
28076 else
28077 ac_path_to_include=" -I$ac_find_includes"
28078 fi
a848cd7e
SC
28079 fi
28080
74b84332
VS
28081 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
28082 else
28083 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28084/* confdefs.h. */
28085_ACEOF
28086cat confdefs.h >>conftest.$ac_ext
28087cat >>conftest.$ac_ext <<_ACEOF
28088/* end confdefs.h. */
28089
74b84332
VS
28090 #include <Xm/Xm.h>
28091
a848cd7e
SC
28092int
28093main ()
28094{
28095
74b84332
VS
28096 int version;
28097 version = xmUseVersion;
28098
a848cd7e
SC
28099 ;
28100 return 0;
28101}
28102_ACEOF
74b84332
VS
28103rm -f conftest.$ac_objext
28104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28105 (eval $ac_compile) 2>conftest.er1
a848cd7e 28106 ac_status=$?
ac1cb8d3
VS
28107 grep -v '^ *+' conftest.er1 >conftest.err
28108 rm -f conftest.er1
28109 cat conftest.err >&5
a848cd7e
SC
28110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28111 (exit $ac_status); } &&
6ebeb4c7 28112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28114 (eval $ac_try) 2>&5
28115 ac_status=$?
28116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28117 (exit $ac_status); }; } &&
74b84332 28118 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28120 (eval $ac_try) 2>&5
28121 ac_status=$?
28122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28123 (exit $ac_status); }; }; then
74b84332
VS
28124
28125 echo "$as_me:$LINENO: result: found in default search path" >&5
28126echo "${ECHO_T}found in default search path" >&6
28127 COMPILED_X_PROGRAM=1
28128
a848cd7e
SC
28129else
28130 echo "$as_me: failed program was:" >&5
28131sed 's/^/| /' conftest.$ac_ext >&5
28132
a848cd7e 28133
74b84332
VS
28134 echo "$as_me:$LINENO: result: no" >&5
28135echo "${ECHO_T}no" >&6
28136 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
28137echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
28138 { (exit 1); exit 1; }; }
a848cd7e 28139
a848cd7e 28140
a848cd7e 28141fi
74b84332
VS
28142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28143 fi
28144
28145 if test "$COMPILED_X_PROGRAM" = 0; then
28146 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
28147echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
28148
28149ac_find_libraries=
28150for ac_dir in $SEARCH_LIB /usr/lib;
28151 do
3eca31dc 28152 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
28153 if test -f "$ac_dir/libXm.$ac_extension"; then
28154 ac_find_libraries=$ac_dir
28155 break 2
a848cd7e 28156 fi
74b84332
VS
28157 done
28158 done
a848cd7e 28159
74b84332
VS
28160 if test "$ac_find_libraries" != "" ; then
28161 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
28162echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 28163
74b84332
VS
28164
28165 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28166 result=$?
28167 if test $result = 0; then
28168 ac_path_to_link=""
a848cd7e 28169 else
74b84332
VS
28170 ac_path_to_link=" -L$ac_find_libraries"
28171 fi
28172
28173 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
28174 else
28175 save_CFLAGS=$CFLAGS
28176 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28177
28178 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28179/* confdefs.h. */
28180_ACEOF
28181cat confdefs.h >>conftest.$ac_ext
28182cat >>conftest.$ac_ext <<_ACEOF
28183/* end confdefs.h. */
28184
74b84332
VS
28185 #include <Xm/Xm.h>
28186
a848cd7e
SC
28187int
28188main ()
28189{
74b84332
VS
28190
28191 int version;
28192 version = xmUseVersion;
28193
a848cd7e
SC
28194 ;
28195 return 0;
28196}
28197_ACEOF
74b84332
VS
28198rm -f conftest.$ac_objext
28199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28200 (eval $ac_compile) 2>conftest.er1
a848cd7e 28201 ac_status=$?
ac1cb8d3
VS
28202 grep -v '^ *+' conftest.er1 >conftest.err
28203 rm -f conftest.er1
28204 cat conftest.err >&5
a848cd7e
SC
28205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28206 (exit $ac_status); } &&
6ebeb4c7 28207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28209 (eval $ac_try) 2>&5
28210 ac_status=$?
28211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28212 (exit $ac_status); }; } &&
74b84332 28213 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28215 (eval $ac_try) 2>&5
28216 ac_status=$?
28217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28218 (exit $ac_status); }; }; then
74b84332
VS
28219
28220 echo "$as_me:$LINENO: result: found in default search path" >&5
28221echo "${ECHO_T}found in default search path" >&6
28222 COMPILED_X_PROGRAM=1
28223
a848cd7e
SC
28224else
28225 echo "$as_me: failed program was:" >&5
28226sed 's/^/| /' conftest.$ac_ext >&5
28227
74b84332
VS
28228
28229 echo "$as_me:$LINENO: result: no" >&5
28230echo "${ECHO_T}no" >&6
28231 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
28232echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
28233 { (exit 1); exit 1; }; }
28234
28235
28236fi
28237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28238
28239 CFLAGS=$save_CFLAGS
28240 fi
28241 fi
28242
28243 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
28244echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
28245 libp_link=""
28246 libsm_ice_link=""
28247 libs_found=0
28248 for libp in "" " -lXp"; do
28249 if test "$libs_found" = "0"; then
28250 for libsm_ice in "" " -lSM -lICE"; do
28251 if test "$libs_found" = "0"; then
28252 save_LIBS="$LIBS"
28253 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
28254 save_CFLAGS=$CFLAGS
28255 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28256
28257 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28258/* confdefs.h. */
28259_ACEOF
28260cat confdefs.h >>conftest.$ac_ext
28261cat >>conftest.$ac_ext <<_ACEOF
28262/* end confdefs.h. */
28263
74b84332
VS
28264 #include <Xm/Xm.h>
28265 #include <Xm/List.h>
28266
a848cd7e
SC
28267int
28268main ()
28269{
74b84332
VS
28270
28271 XmString string = NULL;
28272 Widget w = NULL;
28273 int position = 0;
28274 XmListAddItem(w, string, position);
28275
a848cd7e
SC
28276 ;
28277 return 0;
28278}
28279_ACEOF
28280rm -f conftest.$ac_objext conftest$ac_exeext
28281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28282 (eval $ac_link) 2>conftest.er1
a848cd7e 28283 ac_status=$?
ac1cb8d3
VS
28284 grep -v '^ *+' conftest.er1 >conftest.err
28285 rm -f conftest.er1
28286 cat conftest.err >&5
a848cd7e
SC
28287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28288 (exit $ac_status); } &&
6ebeb4c7 28289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28291 (eval $ac_try) 2>&5
28292 ac_status=$?
28293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28294 (exit $ac_status); }; } &&
28295 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28297 (eval $ac_try) 2>&5
28298 ac_status=$?
28299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28300 (exit $ac_status); }; }; then
28301
28302 libp_link="$libp"
28303 libsm_ice_link="$libsm_ice"
28304 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
28305echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
28306 libs_found=1
28307
28308else
28309 echo "$as_me: failed program was:" >&5
28310sed 's/^/| /' conftest.$ac_ext >&5
28311
28312
28313
28314fi
ac1cb8d3
VS
28315rm -f conftest.err conftest.$ac_objext \
28316 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28317
28318 LIBS="$save_LIBS"
28319 CFLAGS=$save_CFLAGS
28320 fi
28321 done
28322 fi
28323 done
28324
28325 if test "$libs_found" = "0"; then
28326 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
28327echo "${ECHO_T}can't find the right libraries" >&6
28328 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
28329echo "$as_me: error: can't link a simple motif program" >&2;}
28330 { (exit 1); exit 1; }; }
28331 fi
28332
28333 save_CFLAGS=$CFLAGS
28334 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28335 echo "$as_me:$LINENO: checking for Motif 2" >&5
28336echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
28337 cat >conftest.$ac_ext <<_ACEOF
28338/* confdefs.h. */
28339_ACEOF
28340cat confdefs.h >>conftest.$ac_ext
28341cat >>conftest.$ac_ext <<_ACEOF
28342/* end confdefs.h. */
28343
28344 #include <Xm/Xm.h>
28345
28346int
28347main ()
28348{
28349
28350 #if XmVersion < 2000
28351 #error "Not Motif 2"
28352 #endif
28353
28354 ;
28355 return 0;
28356}
28357_ACEOF
28358rm -f conftest.$ac_objext
28359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28360 (eval $ac_compile) 2>conftest.er1
a848cd7e 28361 ac_status=$?
ac1cb8d3
VS
28362 grep -v '^ *+' conftest.er1 >conftest.err
28363 rm -f conftest.er1
28364 cat conftest.err >&5
a848cd7e
SC
28365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28366 (exit $ac_status); } &&
6ebeb4c7 28367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28369 (eval $ac_try) 2>&5
28370 ac_status=$?
28371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28372 (exit $ac_status); }; } &&
28373 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28375 (eval $ac_try) 2>&5
28376 ac_status=$?
28377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28378 (exit $ac_status); }; }; then
28379
28380 cat >>confdefs.h <<\_ACEOF
28381#define __WXMOTIF20__ 1
28382_ACEOF
28383
28384 echo "$as_me:$LINENO: result: found" >&5
28385echo "${ECHO_T}found" >&6
28386
28387else
28388 echo "$as_me: failed program was:" >&5
28389sed 's/^/| /' conftest.$ac_ext >&5
28390
28391
28392 cat >>confdefs.h <<\_ACEOF
28393#define __WXMOTIF20__ 0
28394_ACEOF
28395
28396 echo "$as_me:$LINENO: result: not found" >&5
28397echo "${ECHO_T}not found" >&6
28398
2113bc77
MW
28399fi
28400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28401
28402 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
28403echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
28404 cat >conftest.$ac_ext <<_ACEOF
28405/* confdefs.h. */
28406_ACEOF
28407cat confdefs.h >>conftest.$ac_ext
28408cat >>conftest.$ac_ext <<_ACEOF
28409/* end confdefs.h. */
28410
28411 #include <Xm/Xm.h>
28412
28413int
28414main ()
28415{
28416
28417 #if !defined(LesstifVersion) || LesstifVersion <= 0
28418 #error "Not Lesstif"
28419 #endif
28420
28421 ;
28422 return 0;
28423}
28424_ACEOF
28425rm -f conftest.$ac_objext
28426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28427 (eval $ac_compile) 2>conftest.er1
28428 ac_status=$?
28429 grep -v '^ *+' conftest.er1 >conftest.err
28430 rm -f conftest.er1
28431 cat conftest.err >&5
28432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28433 (exit $ac_status); } &&
6ebeb4c7 28434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2113bc77
MW
28435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28436 (eval $ac_try) 2>&5
28437 ac_status=$?
28438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439 (exit $ac_status); }; } &&
28440 { ac_try='test -s conftest.$ac_objext'
28441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28442 (eval $ac_try) 2>&5
28443 ac_status=$?
28444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28445 (exit $ac_status); }; }; then
28446
28447 cat >>confdefs.h <<\_ACEOF
28448#define __WXLESSTIF__ 1
28449_ACEOF
28450
28451 echo "$as_me:$LINENO: result: yes" >&5
28452echo "${ECHO_T}yes" >&6
28453
28454else
28455 echo "$as_me: failed program was:" >&5
28456sed 's/^/| /' conftest.$ac_ext >&5
28457
28458
28459 cat >>confdefs.h <<\_ACEOF
28460#define __WXLESSTIF__ 0
28461_ACEOF
28462
28463 echo "$as_me:$LINENO: result: no" >&5
28464echo "${ECHO_T}no" >&6
28465
a848cd7e 28466fi
ac1cb8d3 28467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28468 CFLAGS=$save_CFLAGS
28469
28470 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
28471 TOOLKIT=MOTIF
28472 GUIDIST=MOTIF_DIST
28473 fi
28474
74b84332 28475 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
28476 if test "$wxUSE_LIBXPM" = "sys"; then
28477 echo "$as_me:$LINENO: checking for Xpm library" >&5
28478echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
28479
28480ac_find_libraries=
28481for ac_dir in $SEARCH_LIB /usr/lib;
28482 do
3eca31dc 28483 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
28484 if test -f "$ac_dir/libXpm.$ac_extension"; then
28485 ac_find_libraries=$ac_dir
28486 break 2
28487 fi
28488 done
28489 done
28490
28491 if test "$ac_find_libraries" != "" ; then
28492
28493 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28494 result=$?
28495 if test $result = 0; then
28496 ac_path_to_link=""
28497 else
28498 ac_path_to_link=" -L$ac_find_libraries"
28499 fi
28500
28501 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
28502 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
28503echo "${ECHO_T}found at $ac_find_libraries" >&6
28504
28505 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
28506echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
28507if test "${wx_cv_x11_xpm_h+set}" = set; then
28508 echo $ECHO_N "(cached) $ECHO_C" >&6
28509else
28510
28511 save_CFLAGS=$CFLAGS
28512 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28513
28514 cat >conftest.$ac_ext <<_ACEOF
28515/* confdefs.h. */
28516_ACEOF
28517cat confdefs.h >>conftest.$ac_ext
28518cat >>conftest.$ac_ext <<_ACEOF
28519/* end confdefs.h. */
28520
28521 #include <X11/xpm.h>
28522
28523int
28524main ()
28525{
28526
28527 int version;
28528 version = XpmLibraryVersion();
28529
28530 ;
28531 return 0;
28532}
28533_ACEOF
28534rm -f conftest.$ac_objext
28535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28536 (eval $ac_compile) 2>conftest.er1
a848cd7e 28537 ac_status=$?
ac1cb8d3
VS
28538 grep -v '^ *+' conftest.er1 >conftest.err
28539 rm -f conftest.er1
28540 cat conftest.err >&5
a848cd7e
SC
28541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28542 (exit $ac_status); } &&
6ebeb4c7 28543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28545 (eval $ac_try) 2>&5
28546 ac_status=$?
28547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28548 (exit $ac_status); }; } &&
28549 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28551 (eval $ac_try) 2>&5
28552 ac_status=$?
28553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28554 (exit $ac_status); }; }; then
28555 wx_cv_x11_xpm_h=yes
28556else
28557 echo "$as_me: failed program was:" >&5
28558sed 's/^/| /' conftest.$ac_ext >&5
28559
28560wx_cv_x11_xpm_h=no
28561
28562fi
ac1cb8d3 28563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28564
28565 CFLAGS=$save_CFLAGS
28566
28567
28568fi
28569echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
28570echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
28571
28572 if test $wx_cv_x11_xpm_h = "yes"; then
28573 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
28574 cat >>confdefs.h <<\_ACEOF
28575#define wxHAVE_LIB_XPM 1
28576_ACEOF
28577
28578 else
28579 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
28580echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
28581 fi
28582 fi
28583
28584 fi
28585
28586 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
28587echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
28588if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
28589 echo $ECHO_N "(cached) $ECHO_C" >&6
28590else
28591 ac_check_lib_save_LIBS=$LIBS
28592LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
28593cat >conftest.$ac_ext <<_ACEOF
28594/* confdefs.h. */
28595_ACEOF
28596cat confdefs.h >>conftest.$ac_ext
28597cat >>conftest.$ac_ext <<_ACEOF
28598/* end confdefs.h. */
28599
28600/* Override any gcc2 internal prototype to avoid an error. */
28601#ifdef __cplusplus
28602extern "C"
28603#endif
28604/* We use char because int might match the return type of a gcc2
28605 builtin and then its argument prototype would still apply. */
28606char XShapeQueryExtension ();
28607int
28608main ()
28609{
28610XShapeQueryExtension ();
28611 ;
28612 return 0;
28613}
28614_ACEOF
28615rm -f conftest.$ac_objext conftest$ac_exeext
28616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28617 (eval $ac_link) 2>conftest.er1
a848cd7e 28618 ac_status=$?
ac1cb8d3
VS
28619 grep -v '^ *+' conftest.er1 >conftest.err
28620 rm -f conftest.er1
28621 cat conftest.err >&5
a848cd7e
SC
28622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28623 (exit $ac_status); } &&
6ebeb4c7 28624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28626 (eval $ac_try) 2>&5
28627 ac_status=$?
28628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28629 (exit $ac_status); }; } &&
28630 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28632 (eval $ac_try) 2>&5
28633 ac_status=$?
28634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28635 (exit $ac_status); }; }; then
28636 ac_cv_lib_Xext_XShapeQueryExtension=yes
28637else
28638 echo "$as_me: failed program was:" >&5
28639sed 's/^/| /' conftest.$ac_ext >&5
28640
28641ac_cv_lib_Xext_XShapeQueryExtension=no
28642fi
ac1cb8d3
VS
28643rm -f conftest.err conftest.$ac_objext \
28644 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28645LIBS=$ac_check_lib_save_LIBS
28646fi
28647echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
28648echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
28649if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
28650
28651 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
28652 wxHAVE_XEXT_LIB=1
28653
28654fi
28655
28656
28657 if test "$wxHAVE_XEXT_LIB" = 1; then
28658 save_CFLAGS="$CFLAGS"
28659 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28660
28661 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
28662echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
28663 cat >conftest.$ac_ext <<_ACEOF
28664/* confdefs.h. */
28665_ACEOF
28666cat confdefs.h >>conftest.$ac_ext
28667cat >>conftest.$ac_ext <<_ACEOF
28668/* end confdefs.h. */
28669
28670 #include <X11/Xlib.h>
28671 #include <X11/extensions/shape.h>
28672
28673int
28674main ()
28675{
28676
28677 int dummy1, dummy2;
28678 XShapeQueryExtension((Display*)NULL,
28679 (int*)NULL, (int*)NULL);
28680
28681 ;
28682 return 0;
28683}
28684_ACEOF
28685rm -f conftest.$ac_objext
28686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28687 (eval $ac_compile) 2>conftest.er1
a848cd7e 28688 ac_status=$?
ac1cb8d3
VS
28689 grep -v '^ *+' conftest.er1 >conftest.err
28690 rm -f conftest.er1
28691 cat conftest.err >&5
a848cd7e
SC
28692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693 (exit $ac_status); } &&
6ebeb4c7 28694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28696 (eval $ac_try) 2>&5
28697 ac_status=$?
28698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28699 (exit $ac_status); }; } &&
28700 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28702 (eval $ac_try) 2>&5
28703 ac_status=$?
28704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28705 (exit $ac_status); }; }; then
28706
28707 cat >>confdefs.h <<\_ACEOF
28708#define HAVE_XSHAPE 1
28709_ACEOF
28710
28711 echo "$as_me:$LINENO: result: found" >&5
28712echo "${ECHO_T}found" >&6
28713
28714else
28715 echo "$as_me: failed program was:" >&5
28716sed 's/^/| /' conftest.$ac_ext >&5
28717
28718
28719 echo "$as_me:$LINENO: result: not found" >&5
28720echo "${ECHO_T}not found" >&6
28721
28722fi
ac1cb8d3 28723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28724 CFLAGS="$save_CFLAGS"
28725
28726 fi
28727 fi
28728
28729 if test "$wxUSE_MAC" = 1; then
28730 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
28731echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
28732 if test "$GCC" = yes; then
28733 echo "$as_me:$LINENO: result: gcc" >&5
28734echo "${ECHO_T}gcc" >&6
28735 CPPFLAGS_PASCAL="-fpascal-strings"
28736 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
28737 echo "$as_me:$LINENO: result: xlc" >&5
28738echo "${ECHO_T}xlc" >&6
28739 CPPFLAGS_PASCAL="-qmacpstr"
28740 else
28741 echo "$as_me:$LINENO: result: none" >&5
28742echo "${ECHO_T}none" >&6
28743 fi
28744
1e9e8aba
DE
28745 if test "x$wxUSE_UNIX" = "xyes"; then
28746 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
28747 else
28748 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
28749 fi
a848cd7e 28750
a848cd7e
SC
28751 TOOLKIT=MAC
28752 GUIDIST=MACX_DIST
dd21ced8 28753 WXBASEPORT="_carbon"
a848cd7e
SC
28754 fi
28755
28756 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
28757 TOOLKIT=COCOA
28758 GUIDIST=COCOA_DIST
28759 fi
28760
28761 if test "$wxUSE_PM" = 1; then
28762 TOOLKIT=PM
de59c161
RD
28763 GUIDIST=PM_DIST
28764 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
28765echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
28766if test "${wx_cv_spbcdata+set}" = set; then
28767 echo $ECHO_N "(cached) $ECHO_C" >&6
28768else
28769
28770 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
28771/* confdefs.h. */
28772_ACEOF
28773cat confdefs.h >>conftest.$ac_ext
28774cat >>conftest.$ac_ext <<_ACEOF
28775/* end confdefs.h. */
28776
28777 #define INCL_PM
28778 #include <os2.h>
28779
28780int
28781main ()
28782{
28783
28784 SPBCDATA test;
28785
28786 ;
28787 return 0;
28788}
28789_ACEOF
28790rm -f conftest.$ac_objext
28791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28792 (eval $ac_compile) 2>conftest.er1
de59c161 28793 ac_status=$?
ac1cb8d3
VS
28794 grep -v '^ *+' conftest.er1 >conftest.err
28795 rm -f conftest.er1
28796 cat conftest.err >&5
de59c161
RD
28797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28798 (exit $ac_status); } &&
6ebeb4c7 28799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28801 (eval $ac_try) 2>&5
28802 ac_status=$?
28803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28804 (exit $ac_status); }; } &&
28805 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
28806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28807 (eval $ac_try) 2>&5
28808 ac_status=$?
28809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28810 (exit $ac_status); }; }; then
28811 wx_cv_spbcdata=yes
28812else
28813 echo "$as_me: failed program was:" >&5
28814sed 's/^/| /' conftest.$ac_ext >&5
28815
28816wx_cv_spbcdata=no
28817
28818fi
ac1cb8d3 28819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
28820
28821
28822fi
28823echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
28824echo "${ECHO_T}$wx_cv_spbcdata" >&6
28825
28826 if test $wx_cv_spbcdata = "yes"; then
28827 cat >>confdefs.h <<\_ACEOF
28828#define HAVE_SPBCDATA 1
28829_ACEOF
28830
28831 fi
a848cd7e
SC
28832 fi
28833
28834 if test "$TOOLKIT" = "PM" ; then
28835 TOOLKIT_DIR="os2"
28836 else
28837 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
28838 fi
28839
a848cd7e 28840 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
28841 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
28842 WIDGET_SET=univ
a848cd7e
SC
28843 fi
28844
28845 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
28846 DISTDIR="wx\$(TOOLKIT)"
28847else
28848 USE_GUI=0
28849
28850 TOOLKIT_DIR="base"
28851
28852 if test "$USE_WIN32" = 1 ; then
a848cd7e 28853 TOOLKIT="MSW"
a848cd7e
SC
28854 fi
28855
a848cd7e
SC
28856 GUIDIST="BASE_DIST"
28857 DISTDIR="wxBase"
28858fi
28859
28860
28861
28862
28863IODBC_C_SRC=""
28864
28865
28866if test "$TOOLKIT" != "MSW" ; then
28867
28868 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
28869
28870 if test "${ac_cv_header_sql_h+set}" = set; then
28871 echo "$as_me:$LINENO: checking for sql.h" >&5
28872echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28873if test "${ac_cv_header_sql_h+set}" = set; then
28874 echo $ECHO_N "(cached) $ECHO_C" >&6
28875fi
28876echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
28877echo "${ECHO_T}$ac_cv_header_sql_h" >&6
28878else
28879 # Is the header compilable?
28880echo "$as_me:$LINENO: checking sql.h usability" >&5
28881echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
28882cat >conftest.$ac_ext <<_ACEOF
28883/* confdefs.h. */
28884_ACEOF
28885cat confdefs.h >>conftest.$ac_ext
28886cat >>conftest.$ac_ext <<_ACEOF
28887/* end confdefs.h. */
28888$ac_includes_default
28889#include <sql.h>
28890_ACEOF
28891rm -f conftest.$ac_objext
28892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28893 (eval $ac_compile) 2>conftest.er1
a848cd7e 28894 ac_status=$?
ac1cb8d3
VS
28895 grep -v '^ *+' conftest.er1 >conftest.err
28896 rm -f conftest.er1
28897 cat conftest.err >&5
a848cd7e
SC
28898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28899 (exit $ac_status); } &&
6ebeb4c7 28900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28902 (eval $ac_try) 2>&5
28903 ac_status=$?
28904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28905 (exit $ac_status); }; } &&
28906 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28908 (eval $ac_try) 2>&5
28909 ac_status=$?
28910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28911 (exit $ac_status); }; }; then
28912 ac_header_compiler=yes
28913else
28914 echo "$as_me: failed program was:" >&5
28915sed 's/^/| /' conftest.$ac_ext >&5
28916
28917ac_header_compiler=no
28918fi
ac1cb8d3 28919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28920echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28921echo "${ECHO_T}$ac_header_compiler" >&6
28922
28923# Is the header present?
28924echo "$as_me:$LINENO: checking sql.h presence" >&5
28925echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
28926cat >conftest.$ac_ext <<_ACEOF
28927/* confdefs.h. */
28928_ACEOF
28929cat confdefs.h >>conftest.$ac_ext
28930cat >>conftest.$ac_ext <<_ACEOF
28931/* end confdefs.h. */
28932#include <sql.h>
28933_ACEOF
28934if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28936 ac_status=$?
28937 grep -v '^ *+' conftest.er1 >conftest.err
28938 rm -f conftest.er1
28939 cat conftest.err >&5
28940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28941 (exit $ac_status); } >/dev/null; then
28942 if test -s conftest.err; then
28943 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 28944 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
28945 else
28946 ac_cpp_err=
28947 fi
28948else
28949 ac_cpp_err=yes
28950fi
28951if test -z "$ac_cpp_err"; then
28952 ac_header_preproc=yes
28953else
28954 echo "$as_me: failed program was:" >&5
28955sed 's/^/| /' conftest.$ac_ext >&5
28956
28957 ac_header_preproc=no
28958fi
28959rm -f conftest.err conftest.$ac_ext
28960echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28961echo "${ECHO_T}$ac_header_preproc" >&6
28962
28963# So? What about this header?
ac1cb8d3
VS
28964case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28965 yes:no: )
a848cd7e
SC
28966 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
28967echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
28968 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
28969echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
28970 ac_header_preproc=yes
a848cd7e 28971 ;;
ac1cb8d3 28972 no:yes:* )
a848cd7e
SC
28973 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
28974echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
28975 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
28976echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
28977 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
28978echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
28979 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
28980echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
28981 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
28982echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
28983 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
28984echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
28985 (
28986 cat <<\_ASBOX
ac1cb8d3
VS
28987## ----------------------------------------- ##
28988## Report this to wx-dev@lists.wxwidgets.org ##
28989## ----------------------------------------- ##
a848cd7e
SC
28990_ASBOX
28991 ) |
28992 sed "s/^/$as_me: WARNING: /" >&2
28993 ;;
28994esac
28995echo "$as_me:$LINENO: checking for sql.h" >&5
28996echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28997if test "${ac_cv_header_sql_h+set}" = set; then
28998 echo $ECHO_N "(cached) $ECHO_C" >&6
28999else
29000 ac_cv_header_sql_h=$ac_header_preproc
29001fi
29002echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
29003echo "${ECHO_T}$ac_cv_header_sql_h" >&6
29004
29005fi
29006if test $ac_cv_header_sql_h = yes; then
29007 found_sql_h=1
29008fi
29009
29010
29011 if test "x$found_sql_h" = "x1" ; then
29012 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
29013echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
29014if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
29015 echo $ECHO_N "(cached) $ECHO_C" >&6
29016else
29017 ac_check_lib_save_LIBS=$LIBS
29018LIBS="-liodbc $LIBS"
29019cat >conftest.$ac_ext <<_ACEOF
29020/* confdefs.h. */
29021_ACEOF
29022cat confdefs.h >>conftest.$ac_ext
29023cat >>conftest.$ac_ext <<_ACEOF
29024/* end confdefs.h. */
29025
29026/* Override any gcc2 internal prototype to avoid an error. */
29027#ifdef __cplusplus
29028extern "C"
29029#endif
29030/* We use char because int might match the return type of a gcc2
29031 builtin and then its argument prototype would still apply. */
29032char SQLAllocEnv ();
29033int
29034main ()
29035{
29036SQLAllocEnv ();
29037 ;
29038 return 0;
29039}
29040_ACEOF
29041rm -f conftest.$ac_objext conftest$ac_exeext
29042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29043 (eval $ac_link) 2>conftest.er1
a848cd7e 29044 ac_status=$?
ac1cb8d3
VS
29045 grep -v '^ *+' conftest.er1 >conftest.err
29046 rm -f conftest.er1
29047 cat conftest.err >&5
a848cd7e
SC
29048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29049 (exit $ac_status); } &&
6ebeb4c7 29050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29052 (eval $ac_try) 2>&5
29053 ac_status=$?
29054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29055 (exit $ac_status); }; } &&
29056 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29058 (eval $ac_try) 2>&5
29059 ac_status=$?
29060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29061 (exit $ac_status); }; }; then
29062 ac_cv_lib_iodbc_SQLAllocEnv=yes
29063else
29064 echo "$as_me: failed program was:" >&5
29065sed 's/^/| /' conftest.$ac_ext >&5
29066
29067ac_cv_lib_iodbc_SQLAllocEnv=no
29068fi
ac1cb8d3
VS
29069rm -f conftest.err conftest.$ac_objext \
29070 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29071LIBS=$ac_check_lib_save_LIBS
29072fi
29073echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
29074echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
29075if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
29076 ODBC_LINK=" -liodbc"
29077else
29078
29079 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
29080echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
29081if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
29082 echo $ECHO_N "(cached) $ECHO_C" >&6
29083else
29084 ac_check_lib_save_LIBS=$LIBS
29085LIBS="-lunixodbc $LIBS"
29086cat >conftest.$ac_ext <<_ACEOF
29087/* confdefs.h. */
29088_ACEOF
29089cat confdefs.h >>conftest.$ac_ext
29090cat >>conftest.$ac_ext <<_ACEOF
29091/* end confdefs.h. */
29092
29093/* Override any gcc2 internal prototype to avoid an error. */
29094#ifdef __cplusplus
29095extern "C"
29096#endif
29097/* We use char because int might match the return type of a gcc2
29098 builtin and then its argument prototype would still apply. */
29099char SQLAllocEnv ();
29100int
29101main ()
29102{
29103SQLAllocEnv ();
29104 ;
29105 return 0;
29106}
29107_ACEOF
29108rm -f conftest.$ac_objext conftest$ac_exeext
29109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29110 (eval $ac_link) 2>conftest.er1
a848cd7e 29111 ac_status=$?
ac1cb8d3
VS
29112 grep -v '^ *+' conftest.er1 >conftest.err
29113 rm -f conftest.er1
29114 cat conftest.err >&5
a848cd7e
SC
29115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29116 (exit $ac_status); } &&
6ebeb4c7 29117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29119 (eval $ac_try) 2>&5
29120 ac_status=$?
29121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29122 (exit $ac_status); }; } &&
29123 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29125 (eval $ac_try) 2>&5
29126 ac_status=$?
29127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29128 (exit $ac_status); }; }; then
29129 ac_cv_lib_unixodbc_SQLAllocEnv=yes
29130else
29131 echo "$as_me: failed program was:" >&5
29132sed 's/^/| /' conftest.$ac_ext >&5
29133
29134ac_cv_lib_unixodbc_SQLAllocEnv=no
29135fi
ac1cb8d3
VS
29136rm -f conftest.err conftest.$ac_objext \
29137 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29138LIBS=$ac_check_lib_save_LIBS
29139fi
29140echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
29141echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
29142if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
29143 ODBC_LINK=" -lunixodbc"
29144else
29145
29146 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
29147echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
29148if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
29149 echo $ECHO_N "(cached) $ECHO_C" >&6
29150else
29151 ac_check_lib_save_LIBS=$LIBS
29152LIBS="-lodbc $LIBS"
29153cat >conftest.$ac_ext <<_ACEOF
29154/* confdefs.h. */
29155_ACEOF
29156cat confdefs.h >>conftest.$ac_ext
29157cat >>conftest.$ac_ext <<_ACEOF
29158/* end confdefs.h. */
29159
29160/* Override any gcc2 internal prototype to avoid an error. */
29161#ifdef __cplusplus
29162extern "C"
29163#endif
29164/* We use char because int might match the return type of a gcc2
29165 builtin and then its argument prototype would still apply. */
29166char SQLAllocEnv ();
29167int
29168main ()
29169{
29170SQLAllocEnv ();
29171 ;
29172 return 0;
29173}
29174_ACEOF
29175rm -f conftest.$ac_objext conftest$ac_exeext
29176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29177 (eval $ac_link) 2>conftest.er1
a848cd7e 29178 ac_status=$?
ac1cb8d3
VS
29179 grep -v '^ *+' conftest.er1 >conftest.err
29180 rm -f conftest.er1
29181 cat conftest.err >&5
a848cd7e
SC
29182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29183 (exit $ac_status); } &&
6ebeb4c7 29184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29186 (eval $ac_try) 2>&5
29187 ac_status=$?
29188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29189 (exit $ac_status); }; } &&
29190 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29192 (eval $ac_try) 2>&5
29193 ac_status=$?
29194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29195 (exit $ac_status); }; }; then
29196 ac_cv_lib_odbc_SQLAllocEnv=yes
29197else
29198 echo "$as_me: failed program was:" >&5
29199sed 's/^/| /' conftest.$ac_ext >&5
29200
29201ac_cv_lib_odbc_SQLAllocEnv=no
29202fi
ac1cb8d3
VS
29203rm -f conftest.err conftest.$ac_objext \
29204 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29205LIBS=$ac_check_lib_save_LIBS
29206fi
29207echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
29208echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
29209if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
29210 ODBC_LINK=" -lodbc"
29211fi
29212
29213
29214fi
29215
29216
29217fi
29218
29219 fi
29220 if test "x$ODBC_LINK" = "x" ; then
29221 if test "$wxUSE_ODBC" = "sys" ; then
29222 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
29223echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
29224 { (exit 1); exit 1; }; }
29225 else
29226 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
29227echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
29228 wxUSE_ODBC=builtin
29229 fi
29230 else
29231 wxUSE_ODBC=sys
29232 fi
29233 fi
a848cd7e 29234
2da0c077
RD
29235 if test "$wxUSE_ODBC" = "builtin" ; then
29236 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
29237#define wxUSE_BUILTIN_IODBC 1
29238_ACEOF
29239
a848cd7e
SC
29240 fi
29241fi
29242
2da0c077
RD
29243if test "$wxUSE_ODBC" != "no" ; then
29244 cat >>confdefs.h <<\_ACEOF
29245#define wxUSE_ODBC 1
29246_ACEOF
29247
29248 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
29249
29250 WXODBCFLAG="-D_IODBC_"
29251fi
a848cd7e 29252
01cb68df 29253
a848cd7e 29254if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 29255 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
29256 echo "$as_me:$LINENO: checking for Xinerama" >&5
29257echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
29258
29259ac_find_libraries=
29260for ac_dir in $SEARCH_LIB /usr/lib;
29261 do
3eca31dc 29262 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29263 if test -f "$ac_dir/libXinerama.$ac_extension"; then
29264 ac_find_libraries=$ac_dir
29265 break 2
29266 fi
29267 done
29268 done
29269
29270 if test "$ac_find_libraries" != "" ; then
29271
29272 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29273 result=$?
29274 if test $result = 0; then
29275 ac_path_to_link=""
29276 else
29277 ac_path_to_link=" -L$ac_find_libraries"
29278 fi
29279
29280 if test "$ac_path_to_link" != " -L/usr/lib" ; then
29281 LDFLAGS="$LDFLAGS $ac_path_to_link"
29282 fi
29283 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
29284 echo "$as_me:$LINENO: result: yes" >&5
29285echo "${ECHO_T}yes" >&6
29286
29287 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
29288echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
29289
29290ac_find_libraries=
29291for ac_dir in $SEARCH_LIB /usr/lib;
29292 do
3eca31dc 29293 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29294 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
29295 ac_find_libraries=$ac_dir
29296 break 2
29297 fi
29298 done
29299 done
29300
29301 if test "$ac_find_libraries" != "" ; then
29302 echo "$as_me:$LINENO: result: yes" >&5
29303echo "${ECHO_T}yes" >&6
29304
29305for ac_header in X11/extensions/xf86vmode.h
29306do
29307as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29308echo "$as_me:$LINENO: checking for $ac_header" >&5
29309echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29310if eval "test \"\${$as_ac_Header+set}\" = set"; then
29311 echo $ECHO_N "(cached) $ECHO_C" >&6
29312else
29313 cat >conftest.$ac_ext <<_ACEOF
29314/* confdefs.h. */
29315_ACEOF
29316cat confdefs.h >>conftest.$ac_ext
29317cat >>conftest.$ac_ext <<_ACEOF
29318/* end confdefs.h. */
29319
29320 #if HAVE_X11_XLIB_H
29321 #include <X11/Xlib.h>
29322 #endif
29323
29324
29325#include <$ac_header>
29326_ACEOF
29327rm -f conftest.$ac_objext
29328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29329 (eval $ac_compile) 2>conftest.er1
a848cd7e 29330 ac_status=$?
ac1cb8d3
VS
29331 grep -v '^ *+' conftest.er1 >conftest.err
29332 rm -f conftest.er1
29333 cat conftest.err >&5
a848cd7e
SC
29334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29335 (exit $ac_status); } &&
6ebeb4c7 29336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29338 (eval $ac_try) 2>&5
29339 ac_status=$?
29340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29341 (exit $ac_status); }; } &&
29342 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29344 (eval $ac_try) 2>&5
29345 ac_status=$?
29346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29347 (exit $ac_status); }; }; then
29348 eval "$as_ac_Header=yes"
29349else
29350 echo "$as_me: failed program was:" >&5
29351sed 's/^/| /' conftest.$ac_ext >&5
29352
29353eval "$as_ac_Header=no"
29354fi
ac1cb8d3 29355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29356fi
29357echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29358echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29359if test `eval echo '${'$as_ac_Header'}'` = yes; then
29360 cat >>confdefs.h <<_ACEOF
29361#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29362_ACEOF
29363
29364 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
29365
29366fi
29367
29368done
29369
29370 else
29371 echo "$as_me:$LINENO: result: no" >&5
29372echo "${ECHO_T}no" >&6
29373 fi
29374
29375 else
29376 echo "$as_me:$LINENO: result: no" >&5
29377echo "${ECHO_T}no" >&6
dcc1b6ad
VS
29378 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
29379echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
29380 wxUSE_DISPLAY="no"
29381 fi
01cb68df
RG
29382 elif test "$wxUSE_MSW" = 1; then
29383
29384
29385for ac_header in multimon.h ddraw.h
29386do
29387as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 29388echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
29389echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29390if eval "test \"\${$as_ac_Header+set}\" = set"; then
29391 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 29392else
5294a27e 29393 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
29394/* confdefs.h. */
29395_ACEOF
29396cat confdefs.h >>conftest.$ac_ext
29397cat >>conftest.$ac_ext <<_ACEOF
29398/* end confdefs.h. */
5294a27e
VZ
29399#include <windows.h>
29400
01cb68df
RG
29401#include <$ac_header>
29402_ACEOF
29403rm -f conftest.$ac_objext
29404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29405 (eval $ac_compile) 2>conftest.er1
01cb68df 29406 ac_status=$?
ac1cb8d3
VS
29407 grep -v '^ *+' conftest.er1 >conftest.err
29408 rm -f conftest.er1
29409 cat conftest.err >&5
01cb68df
RG
29410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29411 (exit $ac_status); } &&
6ebeb4c7 29412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
29418 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
29419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29420 (eval $ac_try) 2>&5
29421 ac_status=$?
29422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29423 (exit $ac_status); }; }; then
5294a27e 29424 eval "$as_ac_Header=yes"
01cb68df
RG
29425else
29426 echo "$as_me: failed program was:" >&5
29427sed 's/^/| /' conftest.$ac_ext >&5
29428
5294a27e 29429eval "$as_ac_Header=no"
01cb68df 29430fi
ac1cb8d3 29431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
29432fi
29433echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29434echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
29435if test `eval echo '${'$as_ac_Header'}'` = yes; then
29436 cat >>confdefs.h <<_ACEOF
29437#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29438_ACEOF
29439
29440else
29441
5294a27e
VZ
29442 wxUSE_DISPLAY="no"
29443 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 29444echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
29445
29446fi
29447
29448done
29449
a848cd7e
SC
29450 fi
29451fi
29452
29453
29454USE_OPENGL=0
29455if test "$wxUSE_OPENGL" = "yes"; then
29456 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
29457 OPENGL_LIBS="-framework OpenGL -framework AGL"
29458 elif test "$wxUSE_MSW" = 1; then
29459 OPENGL_LIBS="-lopengl32 -lglu32"
29460 else
29461
29462
29463ac_find_includes=
29464for ac_dir in $SEARCH_INCLUDE /usr/include;
29465 do
29466 if test -f "$ac_dir/GL/gl.h"; then
29467 ac_find_includes=$ac_dir
29468 break
29469 fi
29470 done
29471
29472 if test "$ac_find_includes" != "" ; then
29473 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29474echo "${ECHO_T}found in $ac_find_includes" >&6
29475
29476 if test "x$ac_find_includes" = "x/usr/include"; then
29477 ac_path_to_include=""
29478 else
29479 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
29480 result=$?
29481 if test $result = 0; then
29482 ac_path_to_include=""
29483 else
29484 ac_path_to_include=" -I$ac_find_includes"
29485 fi
29486 fi
29487
29488 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
29489 fi
29490
29491 if test "${ac_cv_header_GL_gl_h+set}" = set; then
29492 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29493echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29494if test "${ac_cv_header_GL_gl_h+set}" = set; then
29495 echo $ECHO_N "(cached) $ECHO_C" >&6
29496fi
29497echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29498echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29499else
29500 # Is the header compilable?
29501echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
29502echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
29503cat >conftest.$ac_ext <<_ACEOF
29504/* confdefs.h. */
29505_ACEOF
29506cat confdefs.h >>conftest.$ac_ext
29507cat >>conftest.$ac_ext <<_ACEOF
29508/* end confdefs.h. */
29509$ac_includes_default
29510#include <GL/gl.h>
29511_ACEOF
29512rm -f conftest.$ac_objext
29513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29514 (eval $ac_compile) 2>conftest.er1
a848cd7e 29515 ac_status=$?
ac1cb8d3
VS
29516 grep -v '^ *+' conftest.er1 >conftest.err
29517 rm -f conftest.er1
29518 cat conftest.err >&5
a848cd7e
SC
29519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29520 (exit $ac_status); } &&
6ebeb4c7 29521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29523 (eval $ac_try) 2>&5
29524 ac_status=$?
29525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29526 (exit $ac_status); }; } &&
29527 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29529 (eval $ac_try) 2>&5
29530 ac_status=$?
29531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29532 (exit $ac_status); }; }; then
29533 ac_header_compiler=yes
29534else
29535 echo "$as_me: failed program was:" >&5
29536sed 's/^/| /' conftest.$ac_ext >&5
29537
29538ac_header_compiler=no
29539fi
ac1cb8d3 29540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29541echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29542echo "${ECHO_T}$ac_header_compiler" >&6
29543
29544# Is the header present?
29545echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
29546echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
29547cat >conftest.$ac_ext <<_ACEOF
29548/* confdefs.h. */
29549_ACEOF
29550cat confdefs.h >>conftest.$ac_ext
29551cat >>conftest.$ac_ext <<_ACEOF
29552/* end confdefs.h. */
29553#include <GL/gl.h>
29554_ACEOF
29555if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29557 ac_status=$?
29558 grep -v '^ *+' conftest.er1 >conftest.err
29559 rm -f conftest.er1
29560 cat conftest.err >&5
29561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29562 (exit $ac_status); } >/dev/null; then
29563 if test -s conftest.err; then
29564 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 29565 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
29566 else
29567 ac_cpp_err=
29568 fi
29569else
29570 ac_cpp_err=yes
29571fi
29572if test -z "$ac_cpp_err"; then
29573 ac_header_preproc=yes
29574else
29575 echo "$as_me: failed program was:" >&5
29576sed 's/^/| /' conftest.$ac_ext >&5
29577
29578 ac_header_preproc=no
29579fi
29580rm -f conftest.err conftest.$ac_ext
29581echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29582echo "${ECHO_T}$ac_header_preproc" >&6
29583
29584# So? What about this header?
ac1cb8d3
VS
29585case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29586 yes:no: )
a848cd7e
SC
29587 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29588echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
29589 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
29590echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
29591 ac_header_preproc=yes
a848cd7e 29592 ;;
ac1cb8d3 29593 no:yes:* )
a848cd7e
SC
29594 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
29595echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
29596 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
29597echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
29598 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
29599echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
29600 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
29601echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
29602 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
29603echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
29604 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
29605echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
29606 (
29607 cat <<\_ASBOX
ac1cb8d3
VS
29608## ----------------------------------------- ##
29609## Report this to wx-dev@lists.wxwidgets.org ##
29610## ----------------------------------------- ##
a848cd7e
SC
29611_ASBOX
29612 ) |
29613 sed "s/^/$as_me: WARNING: /" >&2
29614 ;;
29615esac
29616echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29617echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29618if test "${ac_cv_header_GL_gl_h+set}" = set; then
29619 echo $ECHO_N "(cached) $ECHO_C" >&6
29620else
29621 ac_cv_header_GL_gl_h=$ac_header_preproc
29622fi
29623echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29624echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29625
29626fi
29627if test $ac_cv_header_GL_gl_h = yes; then
29628
29629 found_gl=0
29630
29631 echo "$as_me:$LINENO: checking for -lGL" >&5
29632echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
29633
29634ac_find_libraries=
29635for ac_dir in $SEARCH_LIB /usr/lib;
29636 do
3eca31dc 29637 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29638 if test -f "$ac_dir/libGL.$ac_extension"; then
29639 ac_find_libraries=$ac_dir
29640 break 2
29641 fi
29642 done
29643 done
29644
29645 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
29646 echo "$as_me:$LINENO: result: yes" >&5
29647echo "${ECHO_T}yes" >&6
29648
a848cd7e
SC
29649
29650 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29651 result=$?
29652 if test $result = 0; then
29653 ac_path_to_link=""
29654 else
29655 ac_path_to_link=" -L$ac_find_libraries"
29656 fi
29657
29658 if test "$ac_path_to_link" != " -L/usr/lib" ; then
29659 LDFLAGS_GL="$ac_path_to_link"
29660 fi
29661
69120ee4
VZ
29662 echo "$as_me:$LINENO: checking for -lGLU" >&5
29663echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e
SC
29664
29665ac_find_libraries=
29666for ac_dir in $SEARCH_LIB /usr/lib;
29667 do
3eca31dc 29668 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29669 if test -f "$ac_dir/libGLU.$ac_extension"; then
29670 ac_find_libraries=$ac_dir
29671 break 2
29672 fi
29673 done
29674 done
29675
29676 if test "$ac_find_libraries" != "" ; then
29677
29678 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29679 result=$?
29680 if test $result = 0; then
29681 ac_path_to_link=""
29682 else
29683 ac_path_to_link=" -L$ac_find_libraries"
29684 fi
29685
29686 if test "$ac_path_to_link" != " -L/usr/lib" -a \
29687 "$ac_path_to_link" != "$LDFLAGS_GL"; then
29688 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
29689 fi
29690
29691 found_gl=1
29692 OPENGL_LIBS="-lGL -lGLU"
29693 echo "$as_me:$LINENO: result: yes" >&5
29694echo "${ECHO_T}yes" >&6
69120ee4
VZ
29695 else
29696 echo "$as_me:$LINENO: result: no" >&5
29697echo "${ECHO_T}no" >&6
a848cd7e 29698 fi
69120ee4
VZ
29699 else
29700 echo "$as_me:$LINENO: result: no" >&5
29701echo "${ECHO_T}no" >&6
a848cd7e
SC
29702 fi
29703
29704 if test "$found_gl" != 1; then
a848cd7e
SC
29705 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
29706echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
29707
29708ac_find_libraries=
29709for ac_dir in $SEARCH_LIB /usr/lib;
29710 do
3eca31dc 29711 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29712 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
29713 ac_find_libraries=$ac_dir
29714 break 2
29715 fi
29716 done
29717 done
29718
29719 if test "$ac_find_libraries" != "" ; then
29720
29721 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29722 result=$?
29723 if test $result = 0; then
29724 ac_path_to_link=""
29725 else
29726 ac_path_to_link=" -L$ac_find_libraries"
29727 fi
29728
29729 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
29730 OPENGL_LIBS="-lMesaGL -lMesaGLU"
29731 echo "$as_me:$LINENO: result: yes" >&5
29732echo "${ECHO_T}yes" >&6
29733 else
29734 echo "$as_me:$LINENO: result: no" >&5
29735echo "${ECHO_T}no" >&6
29736 fi
29737 fi
29738
29739fi
29740
29741
29742
29743 if test "x$OPENGL_LIBS" = "x"; then
29744 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
29745echo "$as_me: error: OpenGL libraries not available" >&2;}
29746 { (exit 1); exit 1; }; }
29747 fi
29748 fi
29749
29750 if test "$wxUSE_OPENGL" = "yes"; then
29751 USE_OPENGL=1
29752 cat >>confdefs.h <<\_ACEOF
29753#define wxUSE_OPENGL 1
29754_ACEOF
29755
29756 cat >>confdefs.h <<\_ACEOF
29757#define wxUSE_GLCANVAS 1
29758_ACEOF
29759
29760 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
29761 fi
29762fi
29763
a848cd7e
SC
29764
29765if test -n "$TOOLKIT" ; then
29766 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
29767fi
29768
a848cd7e
SC
29769
29770
29771if test "$wxUSE_SHARED" = "yes"; then
29772 case "${host}" in
29773 *-pc-msdosdjgpp )
29774 wxUSE_SHARED=no
29775 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
29776echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
29777 ;;
29778 esac
29779fi
29780
a848cd7e 29781if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
29782
29783
29784 found_versioning=no
29785
29786
29787 if test $found_versioning = no ; then
29788 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
29789echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
29790if test "${wx_cv_version_script+set}" = set; then
29791 echo $ECHO_N "(cached) $ECHO_C" >&6
29792else
29793
29794 echo "VER_1 { *; };" >conftest.sym
29795 echo "int main() { return 0; }" >conftest.cpp
29796
29797 if { ac_try='
29798 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29799 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
29800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29801 (eval $ac_try) 2>&5
29802 ac_status=$?
29803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29804 (exit $ac_status); }; } ; then
29805 if test -s conftest.stderr ; then
29806 wx_cv_version_script=no
29807 else
29808 wx_cv_version_script=yes
29809 fi
29810 else
29811 wx_cv_version_script=no
29812 fi
e5d4b470
MW
29813
29814 if test $wx_cv_version_script = yes
29815 then
29816 echo "struct B { virtual ~B() { } }; \
29817 struct D : public B { }; \
29818 void F() { D d; }" > conftest.cpp
29819
29820 if { ac_try='
29821 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29822 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
29823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29824 (eval $ac_try) 2>&5
29825 ac_status=$?
29826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29827 (exit $ac_status); }; } &&
29828 { ac_try='
29829 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29830 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
29831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29832 (eval $ac_try) 2>&5
29833 ac_status=$?
29834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835 (exit $ac_status); }; }
29836 then
29837 if { ac_try='
29838 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29839 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
29840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29841 (eval $ac_try) 2>&5
29842 ac_status=$?
29843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29844 (exit $ac_status); }; }
29845 then
29846 wx_cv_version_script=yes
29847 else
29848 wx_cv_version_script=no
29849 fi
29850 fi
29851 fi
29852
a848cd7e 29853 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 29854 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
29855
29856fi
29857echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
29858echo "${ECHO_T}$wx_cv_version_script" >&6
29859 if test $wx_cv_version_script = yes ; then
29860 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
29861 fi
29862 fi
29863
29864
29865 case "${host}" in
29866 *-*-linux* | *-*-gnu* )
29867 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29868 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 29869 ;;
a848cd7e
SC
29870
29871 *-*-solaris2* )
29872 if test "$GCC" = yes ; then
29873 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
29874
29875 saveLdflags="$LDFLAGS"
29876 LDFLAGS="$saveLdflags -Wl,-rpath,/"
29877 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
29878echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
29879 cat >conftest.$ac_ext <<_ACEOF
29880/* confdefs.h. */
29881_ACEOF
29882cat confdefs.h >>conftest.$ac_ext
29883cat >>conftest.$ac_ext <<_ACEOF
29884/* end confdefs.h. */
29885
29886int
29887main ()
29888{
29889
29890 ;
29891 return 0;
29892}
29893_ACEOF
29894rm -f conftest.$ac_objext conftest$ac_exeext
29895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29896 (eval $ac_link) 2>conftest.er1
a848cd7e 29897 ac_status=$?
ac1cb8d3
VS
29898 grep -v '^ *+' conftest.er1 >conftest.err
29899 rm -f conftest.er1
29900 cat conftest.err >&5
a848cd7e
SC
29901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29902 (exit $ac_status); } &&
6ebeb4c7 29903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29905 (eval $ac_try) 2>&5
29906 ac_status=$?
29907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29908 (exit $ac_status); }; } &&
29909 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29911 (eval $ac_try) 2>&5
29912 ac_status=$?
29913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29914 (exit $ac_status); }; }; then
29915
29916 echo "$as_me:$LINENO: result: yes" >&5
29917echo "${ECHO_T}yes" >&6
29918 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29919 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29920
29921else
29922 echo "$as_me: failed program was:" >&5
29923sed 's/^/| /' conftest.$ac_ext >&5
29924
29925
29926 echo "$as_me:$LINENO: result: no" >&5
29927echo "${ECHO_T}no" >&6
29928 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
29929echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
29930 LDFLAGS="$saveLdflags -Wl,-R,/"
29931 cat >conftest.$ac_ext <<_ACEOF
29932/* confdefs.h. */
29933_ACEOF
29934cat confdefs.h >>conftest.$ac_ext
29935cat >>conftest.$ac_ext <<_ACEOF
29936/* end confdefs.h. */
29937
29938int
29939main ()
29940{
29941
29942 ;
29943 return 0;
29944}
29945_ACEOF
29946rm -f conftest.$ac_objext conftest$ac_exeext
29947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29948 (eval $ac_link) 2>conftest.er1
a848cd7e 29949 ac_status=$?
ac1cb8d3
VS
29950 grep -v '^ *+' conftest.er1 >conftest.err
29951 rm -f conftest.er1
29952 cat conftest.err >&5
a848cd7e
SC
29953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29954 (exit $ac_status); } &&
6ebeb4c7 29955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29957 (eval $ac_try) 2>&5
29958 ac_status=$?
29959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29960 (exit $ac_status); }; } &&
29961 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29963 (eval $ac_try) 2>&5
29964 ac_status=$?
29965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29966 (exit $ac_status); }; }; then
29967
ffa0583f 29968 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 29969echo "${ECHO_T}yes" >&6
ffa0583f
RL
29970 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
29971 WXCONFIG_RPATH="-Wl,-R,\$libdir"
29972
a848cd7e
SC
29973else
29974 echo "$as_me: failed program was:" >&5
29975sed 's/^/| /' conftest.$ac_ext >&5
29976
29977
29978 echo "$as_me:$LINENO: result: no" >&5
29979echo "${ECHO_T}no" >&6
29980
29981fi
ac1cb8d3
VS
29982rm -f conftest.err conftest.$ac_objext \
29983 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29984
29985fi
ac1cb8d3
VS
29986rm -f conftest.err conftest.$ac_objext \
29987 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29988 LDFLAGS="$saveLdflags"
29989 else
a848cd7e 29990 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 29991 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
29992 fi
29993 ;;
29994
cfda0ea8 29995 *-*-darwin* )
0caebc27
MW
29996 install_name_tool=`which install_name_tool`
29997 if test "$install_name_tool" -a -x "$install_name_tool"; then
29998 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
29999 cat <<EOF >change-install-names
a848cd7e
SC
30000#!/bin/sh
30001libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
30002inst_cmd="install_name_tool "
30003for i in \${libnames} ; do
30004 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
30005done
30006\${inst_cmd} \${3}
30007EOF
0caebc27
MW
30008 chmod +x change-install-names
30009 fi
a848cd7e
SC
30010 ;;
30011
30012 *-*-cygwin* | *-*-mingw32* )
30013 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
30014 ;;
30015
81f90336
MW
30016 *-*-hpux* )
30017 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
30018 WXCONFIG_RPATH="-Wl,+b,\$libdir"
30019 ;;
30020
a848cd7e 30021 esac
ceec2216 30022
ffa0583f
RL
30023 if test $wxUSE_RPATH = "no"; then
30024 SAMPLES_RPATH_FLAG=''
30025 SAMPLES_RPATH_POSTLINK=''
30026 WXCONFIG_RPATH=''
30027 fi
30028
30029 SHARED=1
30030
30031else
30032
ceec2216
RL
30033 config_linkage_component="-static"
30034 SHARED=0
ffa0583f 30035
ceec2216 30036fi
a848cd7e 30037
a848cd7e 30038
ceec2216
RL
30039UNICODE=0
30040lib_unicode_suffix=
30041WX_CHARTYPE="ansi"
30042if test "$wxUSE_UNICODE" = "yes"; then
30043 lib_unicode_suffix=u
30044 WX_CHARTYPE="unicode"
30045 UNICODE=1
a848cd7e
SC
30046fi
30047
ceec2216
RL
30048lib_debug_suffix=
30049WX_DEBUGTYPE="release"
30050DEBUG_FLAG=0
30051if test "$wxUSE_DEBUG_FLAG" = "yes"; then
30052 lib_debug_suffix=d
30053 WX_DEBUGTYPE="debug"
30054 DEBUG_FLAG=1
30055fi
a848cd7e 30056
ceec2216
RL
30057WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
30058WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 30059
ceec2216
RL
30060DEBUG_INFO=0
30061if test "$wxUSE_DEBUG_INFO" = "yes"; then
30062 DEBUG_INFO=1
30063fi
a848cd7e 30064
ceec2216 30065WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 30066
ceec2216 30067TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 30068
ceec2216 30069TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 30070
ceec2216
RL
30071if test "$cross_compiling" = "yes"; then
30072 HOST_SUFFIX="-$host_alias"
30073 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
30074 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
30075fi
30076
dd21ced8 30077WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
30078if test "${TOOLKIT_DIR}" = "os2"; then
30079 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
30080else
30081 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
30082fi
ceec2216
RL
30083
30084
30085
1d1af5ea
DE
30086if test "$wxUSE_COCOA" = 1; then
30087
30088
30089 ac_ext=c
30090ac_cpp='$CPP $CPPFLAGS'
30091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30093ac_compiler_gnu=$ac_cv_c_compiler_gnu
30094
30095ac_ext=m
30096
30097 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
30098echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
30099 cat >conftest.$ac_ext <<_ACEOF
30100/* confdefs.h. */
30101_ACEOF
30102cat confdefs.h >>conftest.$ac_ext
30103cat >>conftest.$ac_ext <<_ACEOF
30104/* end confdefs.h. */
30105#include <AppKit/NSEvent.h>
30106#include <CoreFoundation/CoreFoundation.h>
30107
30108int
30109main ()
30110{
30111
30112 ;
30113 return 0;
30114}
30115_ACEOF
30116rm -f conftest.$ac_objext
30117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30118 (eval $ac_compile) 2>conftest.er1
30119 ac_status=$?
30120 grep -v '^ *+' conftest.er1 >conftest.err
30121 rm -f conftest.er1
30122 cat conftest.err >&5
30123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30124 (exit $ac_status); } &&
6ebeb4c7 30125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
30126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30127 (eval $ac_try) 2>&5
30128 ac_status=$?
30129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30130 (exit $ac_status); }; } &&
30131 { ac_try='test -s conftest.$ac_objext'
30132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30133 (eval $ac_try) 2>&5
30134 ac_status=$?
30135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30136 (exit $ac_status); }; }; then
30137 echo "$as_me:$LINENO: result: no" >&5
30138echo "${ECHO_T}no" >&6
30139else
30140 echo "$as_me: failed program was:" >&5
30141sed 's/^/| /' conftest.$ac_ext >&5
30142
30143echo "$as_me:$LINENO: result: yes" >&5
30144echo "${ECHO_T}yes" >&6
30145 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
30146echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
30147 cat >conftest.$ac_ext <<_ACEOF
30148/* confdefs.h. */
30149_ACEOF
30150cat confdefs.h >>conftest.$ac_ext
30151cat >>conftest.$ac_ext <<_ACEOF
30152/* end confdefs.h. */
30153#define __Point__ 1
30154#include <AppKit/NSEvent.h>
30155#include <CoreFoundation/CoreFoundation.h>
30156
30157int
30158main ()
30159{
30160
30161 ;
30162 return 0;
30163}
30164_ACEOF
30165rm -f conftest.$ac_objext
30166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30167 (eval $ac_compile) 2>conftest.er1
30168 ac_status=$?
30169 grep -v '^ *+' conftest.er1 >conftest.err
30170 rm -f conftest.er1
30171 cat conftest.err >&5
30172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30173 (exit $ac_status); } &&
6ebeb4c7 30174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
30175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30176 (eval $ac_try) 2>&5
30177 ac_status=$?
30178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30179 (exit $ac_status); }; } &&
30180 { ac_try='test -s conftest.$ac_objext'
30181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30182 (eval $ac_try) 2>&5
30183 ac_status=$?
30184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30185 (exit $ac_status); }; }; then
30186 echo "$as_me:$LINENO: result: yes" >&5
30187echo "${ECHO_T}yes" >&6
30188 cat >>confdefs.h <<\_ACEOF
30189#define __Point__ 1
30190_ACEOF
30191
30192
30193else
30194 echo "$as_me: failed program was:" >&5
30195sed 's/^/| /' conftest.$ac_ext >&5
30196
30197{ { echo "$as_me:$LINENO: error: no
30198See \`config.log' for more details." >&5
30199echo "$as_me: error: no
30200See \`config.log' for more details." >&2;}
30201 { (exit 1); exit 1; }; }
30202
30203fi
30204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30205
30206fi
30207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30208 ac_ext=c
30209ac_cpp='$CPP $CPPFLAGS'
30210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30212ac_compiler_gnu=$ac_cv_c_compiler_gnu
30213
30214fi
30215
a848cd7e 30216if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
30217 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
30218 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 30219
a848cd7e 30220 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
30221
30222 # Extract the first word of "Rez", so it can be a program name with args.
30223set dummy Rez; ac_word=$2
30224echo "$as_me:$LINENO: checking for $ac_word" >&5
30225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30226if test "${ac_cv_prog_RESCOMP+set}" = set; then
30227 echo $ECHO_N "(cached) $ECHO_C" >&6
30228else
30229 if test -n "$RESCOMP"; then
30230 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
30231else
30232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30233for as_dir in $PATH
30234do
30235 IFS=$as_save_IFS
30236 test -z "$as_dir" && as_dir=.
30237 for ac_exec_ext in '' $ac_executable_extensions; do
30238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30239 ac_cv_prog_RESCOMP="Rez"
30240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30241 break 2
30242 fi
30243done
30244done
30245
30246 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
30247fi
30248fi
30249RESCOMP=$ac_cv_prog_RESCOMP
30250if test -n "$RESCOMP"; then
30251 echo "$as_me:$LINENO: result: $RESCOMP" >&5
30252echo "${ECHO_T}$RESCOMP" >&6
30253else
30254 echo "$as_me:$LINENO: result: no" >&5
30255echo "${ECHO_T}no" >&6
30256fi
30257
30258 # Extract the first word of "DeRez", so it can be a program name with args.
30259set dummy DeRez; ac_word=$2
30260echo "$as_me:$LINENO: checking for $ac_word" >&5
30261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30262if test "${ac_cv_prog_DEREZ+set}" = set; then
30263 echo $ECHO_N "(cached) $ECHO_C" >&6
30264else
30265 if test -n "$DEREZ"; then
30266 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
30267else
30268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30269for as_dir in $PATH
30270do
30271 IFS=$as_save_IFS
30272 test -z "$as_dir" && as_dir=.
30273 for ac_exec_ext in '' $ac_executable_extensions; do
30274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30275 ac_cv_prog_DEREZ="DeRez"
30276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30277 break 2
30278 fi
30279done
30280done
30281
30282 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
30283fi
30284fi
30285DEREZ=$ac_cv_prog_DEREZ
30286if test -n "$DEREZ"; then
30287 echo "$as_me:$LINENO: result: $DEREZ" >&5
30288echo "${ECHO_T}$DEREZ" >&6
30289else
30290 echo "$as_me:$LINENO: result: no" >&5
30291echo "${ECHO_T}no" >&6
30292fi
30293
30294 # Extract the first word of "SetFile", so it can be a program name with args.
30295set dummy SetFile; ac_word=$2
30296echo "$as_me:$LINENO: checking for $ac_word" >&5
30297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30298if test "${ac_cv_prog_SETFILE+set}" = set; then
30299 echo $ECHO_N "(cached) $ECHO_C" >&6
30300else
30301 if test -n "$SETFILE"; then
30302 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
30303else
30304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30305for as_dir in $PATH
30306do
30307 IFS=$as_save_IFS
30308 test -z "$as_dir" && as_dir=.
30309 for ac_exec_ext in '' $ac_executable_extensions; do
30310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30311 ac_cv_prog_SETFILE="SetFile"
30312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30313 break 2
30314 fi
30315done
30316done
30317
30318 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
30319fi
30320fi
30321SETFILE=$ac_cv_prog_SETFILE
30322if test -n "$SETFILE"; then
30323 echo "$as_me:$LINENO: result: $SETFILE" >&5
30324echo "${ECHO_T}$SETFILE" >&6
30325else
30326 echo "$as_me:$LINENO: result: no" >&5
30327echo "${ECHO_T}no" >&6
30328fi
30329
30330
30331 MACSETFILE="\$(SETFILE)"
30332
30333 if test "$wxUSE_MAC" = 1; then
1a79f136 30334 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 30335
1a79f136 30336 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e
SC
30337 else
30338 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
30339 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
30340 fi
30341else
ffa0583f
RL
30342 MACSETFILE="@true"
30343 MACRESWXCONFIG="@true"
a848cd7e
SC
30344
30345 if test "$wxUSE_PM" = 1; then
30346 MACRESCOMP="emxbind -ep"
30347 else
ffa0583f 30348 MACRESCOMP="@true"
a848cd7e
SC
30349 fi
30350fi
30351
30352
30353
30354echo "$as_me:$LINENO: checking for mode_t" >&5
30355echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
30356if test "${ac_cv_type_mode_t+set}" = set; then
30357 echo $ECHO_N "(cached) $ECHO_C" >&6
30358else
30359 cat >conftest.$ac_ext <<_ACEOF
30360/* confdefs.h. */
30361_ACEOF
30362cat confdefs.h >>conftest.$ac_ext
30363cat >>conftest.$ac_ext <<_ACEOF
30364/* end confdefs.h. */
30365$ac_includes_default
30366int
30367main ()
30368{
30369if ((mode_t *) 0)
30370 return 0;
30371if (sizeof (mode_t))
30372 return 0;
30373 ;
30374 return 0;
30375}
30376_ACEOF
30377rm -f conftest.$ac_objext
30378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30379 (eval $ac_compile) 2>conftest.er1
a848cd7e 30380 ac_status=$?
ac1cb8d3
VS
30381 grep -v '^ *+' conftest.er1 >conftest.err
30382 rm -f conftest.er1
30383 cat conftest.err >&5
a848cd7e
SC
30384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30385 (exit $ac_status); } &&
6ebeb4c7 30386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30388 (eval $ac_try) 2>&5
30389 ac_status=$?
30390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30391 (exit $ac_status); }; } &&
30392 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30394 (eval $ac_try) 2>&5
30395 ac_status=$?
30396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30397 (exit $ac_status); }; }; then
30398 ac_cv_type_mode_t=yes
30399else
30400 echo "$as_me: failed program was:" >&5
30401sed 's/^/| /' conftest.$ac_ext >&5
30402
30403ac_cv_type_mode_t=no
30404fi
ac1cb8d3 30405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30406fi
30407echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
30408echo "${ECHO_T}$ac_cv_type_mode_t" >&6
30409if test $ac_cv_type_mode_t = yes; then
30410 :
30411else
30412
30413cat >>confdefs.h <<_ACEOF
30414#define mode_t int
30415_ACEOF
30416
30417fi
30418
30419echo "$as_me:$LINENO: checking for off_t" >&5
30420echo $ECHO_N "checking for off_t... $ECHO_C" >&6
30421if test "${ac_cv_type_off_t+set}" = set; then
30422 echo $ECHO_N "(cached) $ECHO_C" >&6
30423else
30424 cat >conftest.$ac_ext <<_ACEOF
30425/* confdefs.h. */
30426_ACEOF
30427cat confdefs.h >>conftest.$ac_ext
30428cat >>conftest.$ac_ext <<_ACEOF
30429/* end confdefs.h. */
30430$ac_includes_default
30431int
30432main ()
30433{
30434if ((off_t *) 0)
30435 return 0;
30436if (sizeof (off_t))
30437 return 0;
30438 ;
30439 return 0;
30440}
30441_ACEOF
30442rm -f conftest.$ac_objext
30443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30444 (eval $ac_compile) 2>conftest.er1
a848cd7e 30445 ac_status=$?
ac1cb8d3
VS
30446 grep -v '^ *+' conftest.er1 >conftest.err
30447 rm -f conftest.er1
30448 cat conftest.err >&5
a848cd7e
SC
30449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30450 (exit $ac_status); } &&
6ebeb4c7 30451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30453 (eval $ac_try) 2>&5
30454 ac_status=$?
30455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30456 (exit $ac_status); }; } &&
30457 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30459 (eval $ac_try) 2>&5
30460 ac_status=$?
30461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30462 (exit $ac_status); }; }; then
30463 ac_cv_type_off_t=yes
30464else
30465 echo "$as_me: failed program was:" >&5
30466sed 's/^/| /' conftest.$ac_ext >&5
30467
30468ac_cv_type_off_t=no
30469fi
ac1cb8d3 30470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30471fi
30472echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
30473echo "${ECHO_T}$ac_cv_type_off_t" >&6
30474if test $ac_cv_type_off_t = yes; then
30475 :
30476else
30477
30478cat >>confdefs.h <<_ACEOF
30479#define off_t long
30480_ACEOF
30481
30482fi
30483
30484echo "$as_me:$LINENO: checking for pid_t" >&5
30485echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
30486if test "${ac_cv_type_pid_t+set}" = set; then
30487 echo $ECHO_N "(cached) $ECHO_C" >&6
30488else
30489 cat >conftest.$ac_ext <<_ACEOF
30490/* confdefs.h. */
30491_ACEOF
30492cat confdefs.h >>conftest.$ac_ext
30493cat >>conftest.$ac_ext <<_ACEOF
30494/* end confdefs.h. */
30495$ac_includes_default
30496int
30497main ()
30498{
30499if ((pid_t *) 0)
30500 return 0;
30501if (sizeof (pid_t))
30502 return 0;
30503 ;
30504 return 0;
30505}
30506_ACEOF
30507rm -f conftest.$ac_objext
30508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30509 (eval $ac_compile) 2>conftest.er1
a848cd7e 30510 ac_status=$?
ac1cb8d3
VS
30511 grep -v '^ *+' conftest.er1 >conftest.err
30512 rm -f conftest.er1
30513 cat conftest.err >&5
a848cd7e
SC
30514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30515 (exit $ac_status); } &&
6ebeb4c7 30516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30518 (eval $ac_try) 2>&5
30519 ac_status=$?
30520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30521 (exit $ac_status); }; } &&
30522 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30524 (eval $ac_try) 2>&5
30525 ac_status=$?
30526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30527 (exit $ac_status); }; }; then
30528 ac_cv_type_pid_t=yes
30529else
30530 echo "$as_me: failed program was:" >&5
30531sed 's/^/| /' conftest.$ac_ext >&5
30532
30533ac_cv_type_pid_t=no
30534fi
ac1cb8d3 30535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30536fi
30537echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30538echo "${ECHO_T}$ac_cv_type_pid_t" >&6
30539if test $ac_cv_type_pid_t = yes; then
30540 :
30541else
30542
30543cat >>confdefs.h <<_ACEOF
30544#define pid_t int
30545_ACEOF
30546
30547fi
30548
30549echo "$as_me:$LINENO: checking for size_t" >&5
30550echo $ECHO_N "checking for size_t... $ECHO_C" >&6
30551if test "${ac_cv_type_size_t+set}" = set; then
30552 echo $ECHO_N "(cached) $ECHO_C" >&6
30553else
30554 cat >conftest.$ac_ext <<_ACEOF
30555/* confdefs.h. */
30556_ACEOF
30557cat confdefs.h >>conftest.$ac_ext
30558cat >>conftest.$ac_ext <<_ACEOF
30559/* end confdefs.h. */
30560$ac_includes_default
30561int
30562main ()
30563{
30564if ((size_t *) 0)
30565 return 0;
30566if (sizeof (size_t))
30567 return 0;
30568 ;
30569 return 0;
30570}
30571_ACEOF
30572rm -f conftest.$ac_objext
30573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30574 (eval $ac_compile) 2>conftest.er1
a848cd7e 30575 ac_status=$?
ac1cb8d3
VS
30576 grep -v '^ *+' conftest.er1 >conftest.err
30577 rm -f conftest.er1
30578 cat conftest.err >&5
a848cd7e
SC
30579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30580 (exit $ac_status); } &&
6ebeb4c7 30581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30583 (eval $ac_try) 2>&5
30584 ac_status=$?
30585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30586 (exit $ac_status); }; } &&
30587 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30589 (eval $ac_try) 2>&5
30590 ac_status=$?
30591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30592 (exit $ac_status); }; }; then
30593 ac_cv_type_size_t=yes
30594else
30595 echo "$as_me: failed program was:" >&5
30596sed 's/^/| /' conftest.$ac_ext >&5
30597
30598ac_cv_type_size_t=no
30599fi
ac1cb8d3 30600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30601fi
30602echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30603echo "${ECHO_T}$ac_cv_type_size_t" >&6
30604if test $ac_cv_type_size_t = yes; then
30605 :
30606else
30607
30608cat >>confdefs.h <<_ACEOF
30609#define size_t unsigned
30610_ACEOF
30611
30612fi
30613
30614echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
30615echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
30616if test "${ac_cv_type_uid_t+set}" = set; then
30617 echo $ECHO_N "(cached) $ECHO_C" >&6
30618else
30619 cat >conftest.$ac_ext <<_ACEOF
30620/* confdefs.h. */
30621_ACEOF
30622cat confdefs.h >>conftest.$ac_ext
30623cat >>conftest.$ac_ext <<_ACEOF
30624/* end confdefs.h. */
30625#include <sys/types.h>
30626
30627_ACEOF
30628if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30629 $EGREP "uid_t" >/dev/null 2>&1; then
30630 ac_cv_type_uid_t=yes
30631else
30632 ac_cv_type_uid_t=no
30633fi
30634rm -f conftest*
30635
30636fi
30637echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
30638echo "${ECHO_T}$ac_cv_type_uid_t" >&6
30639if test $ac_cv_type_uid_t = no; then
30640
30641cat >>confdefs.h <<\_ACEOF
30642#define uid_t int
30643_ACEOF
30644
30645
30646cat >>confdefs.h <<\_ACEOF
30647#define gid_t int
30648_ACEOF
30649
30650fi
30651
30652
d51253e8
RL
30653echo "$as_me:$LINENO: checking for ssize_t" >&5
30654echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
30655if test "${ac_cv_type_ssize_t+set}" = set; then
30656 echo $ECHO_N "(cached) $ECHO_C" >&6
30657else
30658 cat >conftest.$ac_ext <<_ACEOF
30659/* confdefs.h. */
30660_ACEOF
30661cat confdefs.h >>conftest.$ac_ext
30662cat >>conftest.$ac_ext <<_ACEOF
30663/* end confdefs.h. */
30664$ac_includes_default
30665int
30666main ()
30667{
30668if ((ssize_t *) 0)
30669 return 0;
30670if (sizeof (ssize_t))
30671 return 0;
30672 ;
30673 return 0;
30674}
30675_ACEOF
30676rm -f conftest.$ac_objext
30677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30678 (eval $ac_compile) 2>conftest.er1
30679 ac_status=$?
30680 grep -v '^ *+' conftest.er1 >conftest.err
30681 rm -f conftest.er1
30682 cat conftest.err >&5
30683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30684 (exit $ac_status); } &&
6ebeb4c7 30685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
30686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30687 (eval $ac_try) 2>&5
30688 ac_status=$?
30689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30690 (exit $ac_status); }; } &&
30691 { ac_try='test -s conftest.$ac_objext'
30692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30693 (eval $ac_try) 2>&5
30694 ac_status=$?
30695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30696 (exit $ac_status); }; }; then
30697 ac_cv_type_ssize_t=yes
30698else
30699 echo "$as_me: failed program was:" >&5
30700sed 's/^/| /' conftest.$ac_ext >&5
30701
30702ac_cv_type_ssize_t=no
30703fi
30704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30705fi
30706echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
30707echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
30708if test $ac_cv_type_ssize_t = yes; then
30709
30710cat >>confdefs.h <<_ACEOF
30711#define HAVE_SSIZE_T 1
30712_ACEOF
30713
30714
30715fi
30716
30717
a848cd7e
SC
30718
30719
30720ac_ext=cc
30721ac_cpp='$CXXCPP $CPPFLAGS'
30722ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30723ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30724ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30725
30726echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
30727echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
30728if test "${wx_cv_size_t_is_uint+set}" = set; then
30729 echo $ECHO_N "(cached) $ECHO_C" >&6
30730else
30731
30732 cat >conftest.$ac_ext <<_ACEOF
30733/* confdefs.h. */
30734_ACEOF
30735cat confdefs.h >>conftest.$ac_ext
30736cat >>conftest.$ac_ext <<_ACEOF
30737/* end confdefs.h. */
30738#include <stddef.h>
30739int
30740main ()
30741{
30742
30743 return 0; }
30744
30745 struct Foo { void foo(size_t); void foo(unsigned int); };
30746
30747 int bar() {
30748
30749 ;
30750 return 0;
30751}
30752_ACEOF
30753rm -f conftest.$ac_objext
30754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30755 (eval $ac_compile) 2>conftest.er1
a848cd7e 30756 ac_status=$?
ac1cb8d3
VS
30757 grep -v '^ *+' conftest.er1 >conftest.err
30758 rm -f conftest.er1
30759 cat conftest.err >&5
a848cd7e
SC
30760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30761 (exit $ac_status); } &&
6ebeb4c7 30762 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30764 (eval $ac_try) 2>&5
30765 ac_status=$?
30766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30767 (exit $ac_status); }; } &&
30768 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30770 (eval $ac_try) 2>&5
30771 ac_status=$?
30772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30773 (exit $ac_status); }; }; then
30774 wx_cv_size_t_is_uint=no
30775else
30776 echo "$as_me: failed program was:" >&5
30777sed 's/^/| /' conftest.$ac_ext >&5
30778
30779wx_cv_size_t_is_uint=yes
30780
30781fi
ac1cb8d3 30782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30783
30784
30785fi
30786echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
30787echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
30788
30789if test "$wx_cv_size_t_is_uint" = "yes"; then
30790 cat >>confdefs.h <<\_ACEOF
30791#define wxSIZE_T_IS_UINT 1
30792_ACEOF
30793
30794else
30795 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
30796echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
30797if test "${wx_cv_size_t_is_ulong+set}" = set; then
30798 echo $ECHO_N "(cached) $ECHO_C" >&6
30799else
30800 cat >conftest.$ac_ext <<_ACEOF
30801/* confdefs.h. */
30802_ACEOF
30803cat confdefs.h >>conftest.$ac_ext
30804cat >>conftest.$ac_ext <<_ACEOF
30805/* end confdefs.h. */
30806#include <stddef.h>
30807int
30808main ()
30809{
30810
30811 return 0; }
30812
30813 struct Foo { void foo(size_t); void foo(unsigned long); };
30814
30815 int bar() {
30816
30817 ;
30818 return 0;
30819}
30820_ACEOF
30821rm -f conftest.$ac_objext
30822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30823 (eval $ac_compile) 2>conftest.er1
a848cd7e 30824 ac_status=$?
ac1cb8d3
VS
30825 grep -v '^ *+' conftest.er1 >conftest.err
30826 rm -f conftest.er1
30827 cat conftest.err >&5
a848cd7e
SC
30828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30829 (exit $ac_status); } &&
6ebeb4c7 30830 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30832 (eval $ac_try) 2>&5
30833 ac_status=$?
30834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30835 (exit $ac_status); }; } &&
30836 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30838 (eval $ac_try) 2>&5
30839 ac_status=$?
30840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30841 (exit $ac_status); }; }; then
30842 wx_cv_size_t_is_ulong=no
30843else
30844 echo "$as_me: failed program was:" >&5
30845sed 's/^/| /' conftest.$ac_ext >&5
30846
30847wx_cv_size_t_is_ulong=yes
30848
30849fi
ac1cb8d3 30850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30851
30852fi
30853echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
30854echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
30855
30856 if test "$wx_cv_size_t_is_ulong" = "yes"; then
30857 cat >>confdefs.h <<\_ACEOF
30858#define wxSIZE_T_IS_ULONG 1
30859_ACEOF
30860
30861 fi
30862fi
30863
30864ac_ext=c
30865ac_cpp='$CPP $CPPFLAGS'
30866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30868ac_compiler_gnu=$ac_cv_c_compiler_gnu
30869
30870
30871
30872echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
30873echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
30874if test "${wx_cv_struct_pw_gecos+set}" = set; then
30875 echo $ECHO_N "(cached) $ECHO_C" >&6
30876else
30877
30878 cat >conftest.$ac_ext <<_ACEOF
30879/* confdefs.h. */
30880_ACEOF
30881cat confdefs.h >>conftest.$ac_ext
30882cat >>conftest.$ac_ext <<_ACEOF
30883/* end confdefs.h. */
30884#include <pwd.h>
30885int
30886main ()
30887{
30888
30889 char *p;
30890 struct passwd *pw;
30891 p = pw->pw_gecos;
30892
30893 ;
30894 return 0;
30895}
30896_ACEOF
30897rm -f conftest.$ac_objext
30898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30899 (eval $ac_compile) 2>conftest.er1
a848cd7e 30900 ac_status=$?
ac1cb8d3
VS
30901 grep -v '^ *+' conftest.er1 >conftest.err
30902 rm -f conftest.er1
30903 cat conftest.err >&5
a848cd7e
SC
30904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30905 (exit $ac_status); } &&
6ebeb4c7 30906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30908 (eval $ac_try) 2>&5
30909 ac_status=$?
30910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30911 (exit $ac_status); }; } &&
30912 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30914 (eval $ac_try) 2>&5
30915 ac_status=$?
30916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30917 (exit $ac_status); }; }; then
30918
30919 wx_cv_struct_pw_gecos=yes
30920
30921else
30922 echo "$as_me: failed program was:" >&5
30923sed 's/^/| /' conftest.$ac_ext >&5
30924
30925
30926 wx_cv_struct_pw_gecos=no
30927
30928
30929fi
ac1cb8d3 30930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30931
30932
30933fi
30934echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
30935echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
30936
30937if test "$wx_cv_struct_pw_gecos" = "yes"; then
30938 cat >>confdefs.h <<\_ACEOF
30939#define HAVE_PW_GECOS 1
30940_ACEOF
30941
30942fi
30943
30944
47a7e797 30945if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
30946 cat >>confdefs.h <<\_ACEOF
30947#define wxUSE_WCHAR_T 1
30948_ACEOF
30949
30950
30951 WCSLEN_FOUND=0
30952 WCHAR_LINK=
30953
30954for ac_func in wcslen
30955do
30956as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30957echo "$as_me:$LINENO: checking for $ac_func" >&5
30958echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30959if eval "test \"\${$as_ac_var+set}\" = set"; then
30960 echo $ECHO_N "(cached) $ECHO_C" >&6
30961else
30962 cat >conftest.$ac_ext <<_ACEOF
30963/* confdefs.h. */
30964_ACEOF
30965cat confdefs.h >>conftest.$ac_ext
30966cat >>conftest.$ac_ext <<_ACEOF
30967/* end confdefs.h. */
ac1cb8d3
VS
30968/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30970#define $ac_func innocuous_$ac_func
30971
a848cd7e
SC
30972/* System header to define __stub macros and hopefully few prototypes,
30973 which can conflict with char $ac_func (); below.
30974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30975 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30976
a848cd7e
SC
30977#ifdef __STDC__
30978# include <limits.h>
30979#else
30980# include <assert.h>
30981#endif
ac1cb8d3
VS
30982
30983#undef $ac_func
30984
a848cd7e
SC
30985/* Override any gcc2 internal prototype to avoid an error. */
30986#ifdef __cplusplus
30987extern "C"
30988{
30989#endif
30990/* We use char because int might match the return type of a gcc2
30991 builtin and then its argument prototype would still apply. */
30992char $ac_func ();
30993/* The GNU C library defines this for functions which it implements
30994 to always fail with ENOSYS. Some functions are actually named
30995 something starting with __ and the normal name is an alias. */
30996#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30997choke me
30998#else
30999char (*f) () = $ac_func;
31000#endif
31001#ifdef __cplusplus
31002}
31003#endif
31004
31005int
31006main ()
31007{
31008return f != $ac_func;
31009 ;
31010 return 0;
31011}
31012_ACEOF
31013rm -f conftest.$ac_objext conftest$ac_exeext
31014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31015 (eval $ac_link) 2>conftest.er1
a848cd7e 31016 ac_status=$?
ac1cb8d3
VS
31017 grep -v '^ *+' conftest.er1 >conftest.err
31018 rm -f conftest.er1
31019 cat conftest.err >&5
a848cd7e
SC
31020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31021 (exit $ac_status); } &&
6ebeb4c7 31022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31024 (eval $ac_try) 2>&5
31025 ac_status=$?
31026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31027 (exit $ac_status); }; } &&
31028 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31030 (eval $ac_try) 2>&5
31031 ac_status=$?
31032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31033 (exit $ac_status); }; }; then
31034 eval "$as_ac_var=yes"
31035else
31036 echo "$as_me: failed program was:" >&5
31037sed 's/^/| /' conftest.$ac_ext >&5
31038
31039eval "$as_ac_var=no"
31040fi
ac1cb8d3
VS
31041rm -f conftest.err conftest.$ac_objext \
31042 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31043fi
31044echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31045echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31046if test `eval echo '${'$as_ac_var'}'` = yes; then
31047 cat >>confdefs.h <<_ACEOF
31048#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31049_ACEOF
31050 WCSLEN_FOUND=1
31051fi
31052done
31053
31054
31055 if test "$WCSLEN_FOUND" = 0; then
31056 if test "$TOOLKIT" = "MSW"; then
31057 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
31058echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
31059if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
31060 echo $ECHO_N "(cached) $ECHO_C" >&6
31061else
31062 ac_check_lib_save_LIBS=$LIBS
31063LIBS="-lmsvcrt $LIBS"
31064cat >conftest.$ac_ext <<_ACEOF
31065/* confdefs.h. */
31066_ACEOF
31067cat confdefs.h >>conftest.$ac_ext
31068cat >>conftest.$ac_ext <<_ACEOF
31069/* end confdefs.h. */
31070
31071/* Override any gcc2 internal prototype to avoid an error. */
31072#ifdef __cplusplus
31073extern "C"
31074#endif
31075/* We use char because int might match the return type of a gcc2
31076 builtin and then its argument prototype would still apply. */
31077char wcslen ();
31078int
31079main ()
31080{
31081wcslen ();
31082 ;
31083 return 0;
31084}
31085_ACEOF
31086rm -f conftest.$ac_objext conftest$ac_exeext
31087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31088 (eval $ac_link) 2>conftest.er1
a848cd7e 31089 ac_status=$?
ac1cb8d3
VS
31090 grep -v '^ *+' conftest.er1 >conftest.err
31091 rm -f conftest.er1
31092 cat conftest.err >&5
a848cd7e
SC
31093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31094 (exit $ac_status); } &&
6ebeb4c7 31095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31097 (eval $ac_try) 2>&5
31098 ac_status=$?
31099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31100 (exit $ac_status); }; } &&
31101 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31103 (eval $ac_try) 2>&5
31104 ac_status=$?
31105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31106 (exit $ac_status); }; }; then
31107 ac_cv_lib_msvcrt_wcslen=yes
31108else
31109 echo "$as_me: failed program was:" >&5
31110sed 's/^/| /' conftest.$ac_ext >&5
31111
31112ac_cv_lib_msvcrt_wcslen=no
31113fi
ac1cb8d3
VS
31114rm -f conftest.err conftest.$ac_objext \
31115 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31116LIBS=$ac_check_lib_save_LIBS
31117fi
31118echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
31119echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
31120if test $ac_cv_lib_msvcrt_wcslen = yes; then
31121 WCHAR_OK=1
31122fi
31123
31124 else
31125 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
31126echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
31127if test "${ac_cv_lib_w_wcslen+set}" = set; then
31128 echo $ECHO_N "(cached) $ECHO_C" >&6
31129else
31130 ac_check_lib_save_LIBS=$LIBS
31131LIBS="-lw $LIBS"
31132cat >conftest.$ac_ext <<_ACEOF
31133/* confdefs.h. */
31134_ACEOF
31135cat confdefs.h >>conftest.$ac_ext
31136cat >>conftest.$ac_ext <<_ACEOF
31137/* end confdefs.h. */
31138
31139/* Override any gcc2 internal prototype to avoid an error. */
31140#ifdef __cplusplus
31141extern "C"
31142#endif
31143/* We use char because int might match the return type of a gcc2
31144 builtin and then its argument prototype would still apply. */
31145char wcslen ();
31146int
31147main ()
31148{
31149wcslen ();
31150 ;
31151 return 0;
31152}
31153_ACEOF
31154rm -f conftest.$ac_objext conftest$ac_exeext
31155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31156 (eval $ac_link) 2>conftest.er1
a848cd7e 31157 ac_status=$?
ac1cb8d3
VS
31158 grep -v '^ *+' conftest.er1 >conftest.err
31159 rm -f conftest.er1
31160 cat conftest.err >&5
a848cd7e
SC
31161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31162 (exit $ac_status); } &&
6ebeb4c7 31163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31165 (eval $ac_try) 2>&5
31166 ac_status=$?
31167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31168 (exit $ac_status); }; } &&
31169 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31171 (eval $ac_try) 2>&5
31172 ac_status=$?
31173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31174 (exit $ac_status); }; }; then
31175 ac_cv_lib_w_wcslen=yes
31176else
31177 echo "$as_me: failed program was:" >&5
31178sed 's/^/| /' conftest.$ac_ext >&5
31179
31180ac_cv_lib_w_wcslen=no
31181fi
ac1cb8d3
VS
31182rm -f conftest.err conftest.$ac_objext \
31183 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31184LIBS=$ac_check_lib_save_LIBS
31185fi
31186echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
31187echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
31188if test $ac_cv_lib_w_wcslen = yes; then
31189
31190 WCHAR_LINK=" -lw"
31191 WCSLEN_FOUND=1
31192
31193fi
31194
31195 fi
31196 fi
31197
31198 if test "$WCSLEN_FOUND" = 1; then
31199 cat >>confdefs.h <<\_ACEOF
31200#define HAVE_WCSLEN 1
31201_ACEOF
31202
31203 fi
31204
efdf6afe 31205 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
473276a9
VS
31206 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
31207 fi
31208
efdf6afe
VZ
31209 echo "$as_me:$LINENO: checking for mbstate_t" >&5
31210echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
31211if test "${ac_cv_type_mbstate_t+set}" = set; then
31212 echo $ECHO_N "(cached) $ECHO_C" >&6
31213else
31214 cat >conftest.$ac_ext <<_ACEOF
31215/* confdefs.h. */
31216_ACEOF
31217cat confdefs.h >>conftest.$ac_ext
31218cat >>conftest.$ac_ext <<_ACEOF
31219/* end confdefs.h. */
31220#include <wchar.h>
31221
31222int
31223main ()
31224{
31225if ((mbstate_t *) 0)
31226 return 0;
31227if (sizeof (mbstate_t))
31228 return 0;
31229 ;
31230 return 0;
31231}
31232_ACEOF
31233rm -f conftest.$ac_objext
31234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31235 (eval $ac_compile) 2>conftest.er1
31236 ac_status=$?
31237 grep -v '^ *+' conftest.er1 >conftest.err
31238 rm -f conftest.er1
31239 cat conftest.err >&5
31240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31241 (exit $ac_status); } &&
31242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31244 (eval $ac_try) 2>&5
31245 ac_status=$?
31246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31247 (exit $ac_status); }; } &&
31248 { ac_try='test -s conftest.$ac_objext'
31249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31250 (eval $ac_try) 2>&5
31251 ac_status=$?
31252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31253 (exit $ac_status); }; }; then
31254 ac_cv_type_mbstate_t=yes
31255else
31256 echo "$as_me: failed program was:" >&5
31257sed 's/^/| /' conftest.$ac_ext >&5
31258
31259ac_cv_type_mbstate_t=no
31260fi
31261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31262fi
31263echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
31264echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
31265if test $ac_cv_type_mbstate_t = yes; then
31266
31267cat >>confdefs.h <<_ACEOF
31268#define HAVE_MBSTATE_T 1
31269_ACEOF
31270
a848cd7e
SC
31271
31272for ac_func in wcsrtombs
31273do
31274as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31275echo "$as_me:$LINENO: checking for $ac_func" >&5
31276echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31277if eval "test \"\${$as_ac_var+set}\" = set"; then
31278 echo $ECHO_N "(cached) $ECHO_C" >&6
31279else
31280 cat >conftest.$ac_ext <<_ACEOF
31281/* confdefs.h. */
31282_ACEOF
31283cat confdefs.h >>conftest.$ac_ext
31284cat >>conftest.$ac_ext <<_ACEOF
31285/* end confdefs.h. */
ac1cb8d3
VS
31286/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31288#define $ac_func innocuous_$ac_func
31289
a848cd7e
SC
31290/* System header to define __stub macros and hopefully few prototypes,
31291 which can conflict with char $ac_func (); below.
31292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31293 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31294
a848cd7e
SC
31295#ifdef __STDC__
31296# include <limits.h>
31297#else
31298# include <assert.h>
31299#endif
ac1cb8d3
VS
31300
31301#undef $ac_func
31302
a848cd7e
SC
31303/* Override any gcc2 internal prototype to avoid an error. */
31304#ifdef __cplusplus
31305extern "C"
31306{
31307#endif
31308/* We use char because int might match the return type of a gcc2
31309 builtin and then its argument prototype would still apply. */
31310char $ac_func ();
31311/* The GNU C library defines this for functions which it implements
31312 to always fail with ENOSYS. Some functions are actually named
31313 something starting with __ and the normal name is an alias. */
31314#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31315choke me
31316#else
31317char (*f) () = $ac_func;
31318#endif
31319#ifdef __cplusplus
31320}
31321#endif
31322
31323int
31324main ()
31325{
31326return f != $ac_func;
31327 ;
31328 return 0;
31329}
31330_ACEOF
31331rm -f conftest.$ac_objext conftest$ac_exeext
31332if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31333 (eval $ac_link) 2>conftest.er1
a848cd7e 31334 ac_status=$?
ac1cb8d3
VS
31335 grep -v '^ *+' conftest.er1 >conftest.err
31336 rm -f conftest.er1
31337 cat conftest.err >&5
a848cd7e
SC
31338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31339 (exit $ac_status); } &&
6ebeb4c7 31340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31342 (eval $ac_try) 2>&5
31343 ac_status=$?
31344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31345 (exit $ac_status); }; } &&
31346 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31348 (eval $ac_try) 2>&5
31349 ac_status=$?
31350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31351 (exit $ac_status); }; }; then
31352 eval "$as_ac_var=yes"
31353else
31354 echo "$as_me: failed program was:" >&5
31355sed 's/^/| /' conftest.$ac_ext >&5
31356
31357eval "$as_ac_var=no"
31358fi
ac1cb8d3
VS
31359rm -f conftest.err conftest.$ac_objext \
31360 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31361fi
31362echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31363echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31364if test `eval echo '${'$as_ac_var'}'` = yes; then
31365 cat >>confdefs.h <<_ACEOF
31366#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31367_ACEOF
31368
31369fi
31370done
31371
efdf6afe
VZ
31372fi
31373
a848cd7e
SC
31374else
31375 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
31376echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
31377fi
31378
31379
31380
31381ac_ext=cc
31382ac_cpp='$CXXCPP $CPPFLAGS'
31383ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31384ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31385ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31386
31387
31388
31389for ac_func in vsnprintf
31390do
31391as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31392echo "$as_me:$LINENO: checking for $ac_func" >&5
31393echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31394if eval "test \"\${$as_ac_var+set}\" = set"; then
31395 echo $ECHO_N "(cached) $ECHO_C" >&6
31396else
31397 cat >conftest.$ac_ext <<_ACEOF
31398/* confdefs.h. */
31399_ACEOF
31400cat confdefs.h >>conftest.$ac_ext
31401cat >>conftest.$ac_ext <<_ACEOF
31402/* end confdefs.h. */
ac1cb8d3
VS
31403/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31405#define $ac_func innocuous_$ac_func
31406
a848cd7e
SC
31407/* System header to define __stub macros and hopefully few prototypes,
31408 which can conflict with char $ac_func (); below.
31409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31410 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31411
a848cd7e
SC
31412#ifdef __STDC__
31413# include <limits.h>
31414#else
31415# include <assert.h>
31416#endif
ac1cb8d3
VS
31417
31418#undef $ac_func
31419
a848cd7e
SC
31420/* Override any gcc2 internal prototype to avoid an error. */
31421#ifdef __cplusplus
31422extern "C"
31423{
31424#endif
31425/* We use char because int might match the return type of a gcc2
31426 builtin and then its argument prototype would still apply. */
31427char $ac_func ();
31428/* The GNU C library defines this for functions which it implements
31429 to always fail with ENOSYS. Some functions are actually named
31430 something starting with __ and the normal name is an alias. */
31431#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31432choke me
31433#else
31434char (*f) () = $ac_func;
31435#endif
31436#ifdef __cplusplus
31437}
31438#endif
31439
31440int
31441main ()
31442{
31443return f != $ac_func;
31444 ;
31445 return 0;
31446}
31447_ACEOF
31448rm -f conftest.$ac_objext conftest$ac_exeext
31449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31450 (eval $ac_link) 2>conftest.er1
a848cd7e 31451 ac_status=$?
ac1cb8d3
VS
31452 grep -v '^ *+' conftest.er1 >conftest.err
31453 rm -f conftest.er1
31454 cat conftest.err >&5
a848cd7e
SC
31455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31456 (exit $ac_status); } &&
6ebeb4c7 31457 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31459 (eval $ac_try) 2>&5
31460 ac_status=$?
31461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31462 (exit $ac_status); }; } &&
31463 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31465 (eval $ac_try) 2>&5
31466 ac_status=$?
31467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31468 (exit $ac_status); }; }; then
31469 eval "$as_ac_var=yes"
31470else
31471 echo "$as_me: failed program was:" >&5
31472sed 's/^/| /' conftest.$ac_ext >&5
31473
31474eval "$as_ac_var=no"
31475fi
ac1cb8d3
VS
31476rm -f conftest.err conftest.$ac_objext \
31477 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31478fi
31479echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31480echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31481if test `eval echo '${'$as_ac_var'}'` = yes; then
31482 cat >>confdefs.h <<_ACEOF
31483#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31484_ACEOF
31485
31486fi
31487done
31488
31489
31490if test "$ac_cv_func_vsnprintf" = "yes"; then
31491 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
31492echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
31493if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
31494 echo $ECHO_N "(cached) $ECHO_C" >&6
31495else
31496
efdf6afe 31497 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31498/* confdefs.h. */
31499_ACEOF
31500cat confdefs.h >>conftest.$ac_ext
31501cat >>conftest.$ac_ext <<_ACEOF
31502/* end confdefs.h. */
31503
31504 #include <stdio.h>
31505 #include <stdarg.h>
efdf6afe
VZ
31506 #ifdef __MSL__
31507 #if __MSL__ >= 0x6000
31508 namespace std {}
31509 using namespace std;
31510 #endif
31511 #endif
a848cd7e
SC
31512
31513int
31514main ()
31515{
31516
31517 char *buf;
31518 va_list ap;
efdf6afe
VZ
31519 const char *fmt = "%s";
31520 vsnprintf(buf, 10u, fmt, ap);
c122b164
DE
31521
31522 ;
31523 return 0;
31524}
31525_ACEOF
31526rm -f conftest.$ac_objext
31527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31528 (eval $ac_compile) 2>conftest.er1
31529 ac_status=$?
31530 grep -v '^ *+' conftest.er1 >conftest.err
31531 rm -f conftest.er1
31532 cat conftest.err >&5
31533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31534 (exit $ac_status); } &&
6ebeb4c7 31535 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
31536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31537 (eval $ac_try) 2>&5
31538 ac_status=$?
31539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31540 (exit $ac_status); }; } &&
31541 { ac_try='test -s conftest.$ac_objext'
31542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31543 (eval $ac_try) 2>&5
31544 ac_status=$?
31545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31546 (exit $ac_status); }; }; then
31547 wx_cv_func_vsnprintf_decl=yes
31548else
31549 echo "$as_me: failed program was:" >&5
31550sed 's/^/| /' conftest.$ac_ext >&5
31551
a848cd7e
SC
31552wx_cv_func_vsnprintf_decl=no
31553
31554fi
ac1cb8d3 31555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31556
31557
31558fi
31559echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
31560echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
31561
31562 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
31563 cat >>confdefs.h <<\_ACEOF
31564#define HAVE_VSNPRINTF_DECL 1
31565_ACEOF
31566
31567 fi
31568fi
31569
31570if test "$wxUSE_UNICODE" = yes; then
31571
31572
31573
fbe47c7b
VS
31574
31575
31576
31577for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
31578do
31579as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31580echo "$as_me:$LINENO: checking for $ac_func" >&5
31581echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31582if eval "test \"\${$as_ac_var+set}\" = set"; then
31583 echo $ECHO_N "(cached) $ECHO_C" >&6
31584else
31585 cat >conftest.$ac_ext <<_ACEOF
31586/* confdefs.h. */
31587_ACEOF
31588cat confdefs.h >>conftest.$ac_ext
31589cat >>conftest.$ac_ext <<_ACEOF
31590/* end confdefs.h. */
ac1cb8d3
VS
31591/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31593#define $ac_func innocuous_$ac_func
31594
a848cd7e
SC
31595/* System header to define __stub macros and hopefully few prototypes,
31596 which can conflict with char $ac_func (); below.
31597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31598 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31599
a848cd7e
SC
31600#ifdef __STDC__
31601# include <limits.h>
31602#else
31603# include <assert.h>
31604#endif
ac1cb8d3
VS
31605
31606#undef $ac_func
31607
a848cd7e
SC
31608/* Override any gcc2 internal prototype to avoid an error. */
31609#ifdef __cplusplus
31610extern "C"
31611{
31612#endif
31613/* We use char because int might match the return type of a gcc2
31614 builtin and then its argument prototype would still apply. */
31615char $ac_func ();
31616/* The GNU C library defines this for functions which it implements
31617 to always fail with ENOSYS. Some functions are actually named
31618 something starting with __ and the normal name is an alias. */
31619#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31620choke me
31621#else
31622char (*f) () = $ac_func;
31623#endif
31624#ifdef __cplusplus
31625}
31626#endif
31627
31628int
31629main ()
31630{
31631return f != $ac_func;
31632 ;
31633 return 0;
31634}
31635_ACEOF
31636rm -f conftest.$ac_objext conftest$ac_exeext
31637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31638 (eval $ac_link) 2>conftest.er1
a848cd7e 31639 ac_status=$?
ac1cb8d3
VS
31640 grep -v '^ *+' conftest.er1 >conftest.err
31641 rm -f conftest.er1
31642 cat conftest.err >&5
a848cd7e
SC
31643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31644 (exit $ac_status); } &&
6ebeb4c7 31645 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31647 (eval $ac_try) 2>&5
31648 ac_status=$?
31649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31650 (exit $ac_status); }; } &&
31651 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31653 (eval $ac_try) 2>&5
31654 ac_status=$?
31655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31656 (exit $ac_status); }; }; then
31657 eval "$as_ac_var=yes"
31658else
31659 echo "$as_me: failed program was:" >&5
31660sed 's/^/| /' conftest.$ac_ext >&5
31661
31662eval "$as_ac_var=no"
31663fi
ac1cb8d3
VS
31664rm -f conftest.err conftest.$ac_objext \
31665 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31666fi
31667echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31668echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31669if test `eval echo '${'$as_ac_var'}'` = yes; then
31670 cat >>confdefs.h <<_ACEOF
31671#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31672_ACEOF
31673
31674fi
31675done
31676
31677
31678 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
31679echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
31680 cat >conftest.$ac_ext <<_ACEOF
31681/* confdefs.h. */
31682_ACEOF
31683cat confdefs.h >>conftest.$ac_ext
31684cat >>conftest.$ac_ext <<_ACEOF
31685/* end confdefs.h. */
31686#include <wchar.h>
31687int
31688main ()
31689{
31690&_vsnwprintf;
31691 ;
31692 return 0;
31693}
31694_ACEOF
31695rm -f conftest.$ac_objext
31696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31697 (eval $ac_compile) 2>conftest.er1
a848cd7e 31698 ac_status=$?
ac1cb8d3
VS
31699 grep -v '^ *+' conftest.er1 >conftest.err
31700 rm -f conftest.er1
31701 cat conftest.err >&5
a848cd7e
SC
31702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31703 (exit $ac_status); } &&
6ebeb4c7 31704 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31706 (eval $ac_try) 2>&5
31707 ac_status=$?
31708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31709 (exit $ac_status); }; } &&
31710 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31712 (eval $ac_try) 2>&5
31713 ac_status=$?
31714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31715 (exit $ac_status); }; }; then
31716 echo "$as_me:$LINENO: result: yes" >&5
31717echo "${ECHO_T}yes" >&6
31718 cat >>confdefs.h <<\_ACEOF
31719#define HAVE__VSNWPRINTF 1
31720_ACEOF
31721
31722else
31723 echo "$as_me: failed program was:" >&5
31724sed 's/^/| /' conftest.$ac_ext >&5
31725
31726echo "$as_me:$LINENO: result: no" >&5
31727echo "${ECHO_T}no" >&6
31728fi
ac1cb8d3 31729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
31730fi
31731
31732ac_ext=c
31733ac_cpp='$CPP $CPPFLAGS'
31734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31736ac_compiler_gnu=$ac_cv_c_compiler_gnu
31737
31738
6ebeb4c7
VZ
31739if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
31740
31741for ac_func in fnmatch
31742do
31743as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31744echo "$as_me:$LINENO: checking for $ac_func" >&5
31745echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31746if eval "test \"\${$as_ac_var+set}\" = set"; then
31747 echo $ECHO_N "(cached) $ECHO_C" >&6
31748else
31749 cat >conftest.$ac_ext <<_ACEOF
31750/* confdefs.h. */
31751_ACEOF
31752cat confdefs.h >>conftest.$ac_ext
31753cat >>conftest.$ac_ext <<_ACEOF
31754/* end confdefs.h. */
31755/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31757#define $ac_func innocuous_$ac_func
31758
31759/* System header to define __stub macros and hopefully few prototypes,
31760 which can conflict with char $ac_func (); below.
31761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31762 <limits.h> exists even on freestanding compilers. */
31763
31764#ifdef __STDC__
31765# include <limits.h>
31766#else
31767# include <assert.h>
31768#endif
31769
31770#undef $ac_func
31771
31772/* Override any gcc2 internal prototype to avoid an error. */
31773#ifdef __cplusplus
31774extern "C"
31775{
31776#endif
31777/* We use char because int might match the return type of a gcc2
31778 builtin and then its argument prototype would still apply. */
31779char $ac_func ();
31780/* The GNU C library defines this for functions which it implements
31781 to always fail with ENOSYS. Some functions are actually named
31782 something starting with __ and the normal name is an alias. */
31783#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31784choke me
31785#else
31786char (*f) () = $ac_func;
31787#endif
31788#ifdef __cplusplus
31789}
31790#endif
31791
31792int
31793main ()
31794{
31795return f != $ac_func;
31796 ;
31797 return 0;
31798}
31799_ACEOF
31800rm -f conftest.$ac_objext conftest$ac_exeext
31801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31802 (eval $ac_link) 2>conftest.er1
31803 ac_status=$?
31804 grep -v '^ *+' conftest.er1 >conftest.err
31805 rm -f conftest.er1
31806 cat conftest.err >&5
31807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31808 (exit $ac_status); } &&
31809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31811 (eval $ac_try) 2>&5
31812 ac_status=$?
31813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31814 (exit $ac_status); }; } &&
31815 { ac_try='test -s conftest$ac_exeext'
31816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31817 (eval $ac_try) 2>&5
31818 ac_status=$?
31819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31820 (exit $ac_status); }; }; then
31821 eval "$as_ac_var=yes"
31822else
31823 echo "$as_me: failed program was:" >&5
31824sed 's/^/| /' conftest.$ac_ext >&5
31825
31826eval "$as_ac_var=no"
31827fi
31828rm -f conftest.err conftest.$ac_objext \
31829 conftest$ac_exeext conftest.$ac_ext
31830fi
31831echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31832echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31833if test `eval echo '${'$as_ac_var'}'` = yes; then
31834 cat >>confdefs.h <<_ACEOF
31835#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31836_ACEOF
31837
31838fi
31839done
31840
31841fi
31842
31843if test "$wxUSE_FILE" = "yes"; then
31844
31845for ac_func in fsync
31846do
31847as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31848echo "$as_me:$LINENO: checking for $ac_func" >&5
31849echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31850if eval "test \"\${$as_ac_var+set}\" = set"; then
31851 echo $ECHO_N "(cached) $ECHO_C" >&6
31852else
31853 cat >conftest.$ac_ext <<_ACEOF
31854/* confdefs.h. */
31855_ACEOF
31856cat confdefs.h >>conftest.$ac_ext
31857cat >>conftest.$ac_ext <<_ACEOF
31858/* end confdefs.h. */
31859/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31861#define $ac_func innocuous_$ac_func
31862
31863/* System header to define __stub macros and hopefully few prototypes,
31864 which can conflict with char $ac_func (); below.
31865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31866 <limits.h> exists even on freestanding compilers. */
31867
31868#ifdef __STDC__
31869# include <limits.h>
31870#else
31871# include <assert.h>
31872#endif
31873
31874#undef $ac_func
31875
31876/* Override any gcc2 internal prototype to avoid an error. */
31877#ifdef __cplusplus
31878extern "C"
31879{
31880#endif
31881/* We use char because int might match the return type of a gcc2
31882 builtin and then its argument prototype would still apply. */
31883char $ac_func ();
31884/* The GNU C library defines this for functions which it implements
31885 to always fail with ENOSYS. Some functions are actually named
31886 something starting with __ and the normal name is an alias. */
31887#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31888choke me
31889#else
31890char (*f) () = $ac_func;
31891#endif
31892#ifdef __cplusplus
31893}
31894#endif
31895
31896int
31897main ()
31898{
31899return f != $ac_func;
31900 ;
31901 return 0;
31902}
31903_ACEOF
31904rm -f conftest.$ac_objext conftest$ac_exeext
31905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31906 (eval $ac_link) 2>conftest.er1
31907 ac_status=$?
31908 grep -v '^ *+' conftest.er1 >conftest.err
31909 rm -f conftest.er1
31910 cat conftest.err >&5
31911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31912 (exit $ac_status); } &&
31913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31915 (eval $ac_try) 2>&5
31916 ac_status=$?
31917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31918 (exit $ac_status); }; } &&
31919 { ac_try='test -s conftest$ac_exeext'
31920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31921 (eval $ac_try) 2>&5
31922 ac_status=$?
31923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31924 (exit $ac_status); }; }; then
31925 eval "$as_ac_var=yes"
31926else
31927 echo "$as_me: failed program was:" >&5
31928sed 's/^/| /' conftest.$ac_ext >&5
31929
31930eval "$as_ac_var=no"
31931fi
31932rm -f conftest.err conftest.$ac_objext \
31933 conftest$ac_exeext conftest.$ac_ext
31934fi
31935echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31936echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31937if test `eval echo '${'$as_ac_var'}'` = yes; then
31938 cat >>confdefs.h <<_ACEOF
31939#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31940_ACEOF
31941
31942fi
31943done
31944
31945fi
a848cd7e
SC
31946
31947
31948if test "$TOOLKIT" != "MSW"; then
31949
31950
31951
31952
31953ac_ext=cc
31954ac_cpp='$CXXCPP $CPPFLAGS'
31955ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31956ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31957ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31958
31959
31960
31961
31962# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
31963if test "${with_libiconv_prefix+set}" = set; then
31964 withval="$with_libiconv_prefix"
31965
31966 for dir in `echo "$withval" | tr : ' '`; do
31967 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
31968 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
31969 done
31970
31971fi;
31972
31973 echo "$as_me:$LINENO: checking for iconv" >&5
31974echo $ECHO_N "checking for iconv... $ECHO_C" >&6
31975if test "${am_cv_func_iconv+set}" = set; then
31976 echo $ECHO_N "(cached) $ECHO_C" >&6
31977else
31978
31979 am_cv_func_iconv="no, consider installing GNU libiconv"
31980 am_cv_lib_iconv=no
31981 cat >conftest.$ac_ext <<_ACEOF
31982/* confdefs.h. */
31983_ACEOF
31984cat confdefs.h >>conftest.$ac_ext
31985cat >>conftest.$ac_ext <<_ACEOF
31986/* end confdefs.h. */
31987#include <stdlib.h>
31988#include <iconv.h>
31989int
31990main ()
31991{
31992iconv_t cd = iconv_open("","");
31993 iconv(cd,NULL,NULL,NULL,NULL);
31994 iconv_close(cd);
31995 ;
31996 return 0;
31997}
31998_ACEOF
31999rm -f conftest.$ac_objext conftest$ac_exeext
32000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32001 (eval $ac_link) 2>conftest.er1
a848cd7e 32002 ac_status=$?
ac1cb8d3
VS
32003 grep -v '^ *+' conftest.er1 >conftest.err
32004 rm -f conftest.er1
32005 cat conftest.err >&5
a848cd7e
SC
32006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32007 (exit $ac_status); } &&
6ebeb4c7 32008 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32010 (eval $ac_try) 2>&5
32011 ac_status=$?
32012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32013 (exit $ac_status); }; } &&
32014 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32016 (eval $ac_try) 2>&5
32017 ac_status=$?
32018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32019 (exit $ac_status); }; }; then
32020 am_cv_func_iconv=yes
32021else
32022 echo "$as_me: failed program was:" >&5
32023sed 's/^/| /' conftest.$ac_ext >&5
32024
32025fi
ac1cb8d3
VS
32026rm -f conftest.err conftest.$ac_objext \
32027 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32028 if test "$am_cv_func_iconv" != yes; then
32029 am_save_LIBS="$LIBS"
32030 LIBS="$LIBS -liconv"
32031 cat >conftest.$ac_ext <<_ACEOF
32032/* confdefs.h. */
32033_ACEOF
32034cat confdefs.h >>conftest.$ac_ext
32035cat >>conftest.$ac_ext <<_ACEOF
32036/* end confdefs.h. */
32037#include <stdlib.h>
32038#include <iconv.h>
32039int
32040main ()
32041{
32042iconv_t cd = iconv_open("","");
32043 iconv(cd,NULL,NULL,NULL,NULL);
32044 iconv_close(cd);
32045 ;
32046 return 0;
32047}
32048_ACEOF
32049rm -f conftest.$ac_objext conftest$ac_exeext
32050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32051 (eval $ac_link) 2>conftest.er1
a848cd7e 32052 ac_status=$?
ac1cb8d3
VS
32053 grep -v '^ *+' conftest.er1 >conftest.err
32054 rm -f conftest.er1
32055 cat conftest.err >&5
a848cd7e
SC
32056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32057 (exit $ac_status); } &&
6ebeb4c7 32058 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32060 (eval $ac_try) 2>&5
32061 ac_status=$?
32062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32063 (exit $ac_status); }; } &&
32064 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32066 (eval $ac_try) 2>&5
32067 ac_status=$?
32068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32069 (exit $ac_status); }; }; then
32070 am_cv_lib_iconv=yes
32071 am_cv_func_iconv=yes
32072else
32073 echo "$as_me: failed program was:" >&5
32074sed 's/^/| /' conftest.$ac_ext >&5
32075
32076fi
ac1cb8d3
VS
32077rm -f conftest.err conftest.$ac_objext \
32078 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32079 LIBS="$am_save_LIBS"
32080 fi
32081
32082fi
32083echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
32084echo "${ECHO_T}$am_cv_func_iconv" >&6
32085 if test "$am_cv_func_iconv" = yes; then
32086
32087cat >>confdefs.h <<\_ACEOF
32088#define HAVE_ICONV 1
32089_ACEOF
32090
32091 echo "$as_me:$LINENO: checking if iconv needs const" >&5
32092echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
32093if test "${wx_cv_func_iconv_const+set}" = set; then
32094 echo $ECHO_N "(cached) $ECHO_C" >&6
32095else
32096 cat >conftest.$ac_ext <<_ACEOF
32097/* confdefs.h. */
32098_ACEOF
32099cat confdefs.h >>conftest.$ac_ext
32100cat >>conftest.$ac_ext <<_ACEOF
32101/* end confdefs.h. */
32102
32103#include <stdlib.h>
32104#include <iconv.h>
32105extern
32106#ifdef __cplusplus
32107"C"
32108#endif
32109#if defined(__STDC__) || defined(__cplusplus)
32110size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
32111#else
32112size_t iconv();
32113#endif
32114
32115int
32116main ()
32117{
32118
32119 ;
32120 return 0;
32121}
32122_ACEOF
32123rm -f conftest.$ac_objext
32124if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32125 (eval $ac_compile) 2>conftest.er1
a848cd7e 32126 ac_status=$?
ac1cb8d3
VS
32127 grep -v '^ *+' conftest.er1 >conftest.err
32128 rm -f conftest.er1
32129 cat conftest.err >&5
a848cd7e
SC
32130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32131 (exit $ac_status); } &&
6ebeb4c7 32132 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32134 (eval $ac_try) 2>&5
32135 ac_status=$?
32136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32137 (exit $ac_status); }; } &&
32138 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32140 (eval $ac_try) 2>&5
32141 ac_status=$?
32142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32143 (exit $ac_status); }; }; then
32144 wx_cv_func_iconv_const="no"
32145else
32146 echo "$as_me: failed program was:" >&5
32147sed 's/^/| /' conftest.$ac_ext >&5
32148
32149wx_cv_func_iconv_const="yes"
32150
32151fi
ac1cb8d3 32152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32153
32154fi
32155echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
32156echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
32157
32158 iconv_const=
32159 if test "x$wx_cv_func_iconv_const" = "xyes"; then
32160 iconv_const="const"
32161 fi
32162
32163
32164cat >>confdefs.h <<_ACEOF
32165#define ICONV_CONST $iconv_const
32166_ACEOF
32167
32168 fi
32169 LIBICONV=
32170 if test "$am_cv_lib_iconv" = yes; then
32171 LIBICONV="-liconv"
32172 fi
32173
32174
32175LIBS="$LIBICONV $LIBS"
32176ac_ext=c
32177ac_cpp='$CPP $CPPFLAGS'
32178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32180ac_compiler_gnu=$ac_cv_c_compiler_gnu
32181
32182
32183if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
32184
32185for ac_func in sigaction
32186do
32187as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32188echo "$as_me:$LINENO: checking for $ac_func" >&5
32189echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32190if eval "test \"\${$as_ac_var+set}\" = set"; then
32191 echo $ECHO_N "(cached) $ECHO_C" >&6
32192else
32193 cat >conftest.$ac_ext <<_ACEOF
32194/* confdefs.h. */
32195_ACEOF
32196cat confdefs.h >>conftest.$ac_ext
32197cat >>conftest.$ac_ext <<_ACEOF
32198/* end confdefs.h. */
ac1cb8d3
VS
32199/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32201#define $ac_func innocuous_$ac_func
32202
a848cd7e
SC
32203/* System header to define __stub macros and hopefully few prototypes,
32204 which can conflict with char $ac_func (); below.
32205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32206 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32207
a848cd7e
SC
32208#ifdef __STDC__
32209# include <limits.h>
32210#else
32211# include <assert.h>
32212#endif
ac1cb8d3
VS
32213
32214#undef $ac_func
32215
a848cd7e
SC
32216/* Override any gcc2 internal prototype to avoid an error. */
32217#ifdef __cplusplus
32218extern "C"
32219{
32220#endif
32221/* We use char because int might match the return type of a gcc2
32222 builtin and then its argument prototype would still apply. */
32223char $ac_func ();
32224/* The GNU C library defines this for functions which it implements
32225 to always fail with ENOSYS. Some functions are actually named
32226 something starting with __ and the normal name is an alias. */
32227#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32228choke me
32229#else
32230char (*f) () = $ac_func;
32231#endif
32232#ifdef __cplusplus
32233}
32234#endif
32235
32236int
32237main ()
32238{
32239return f != $ac_func;
32240 ;
32241 return 0;
32242}
32243_ACEOF
32244rm -f conftest.$ac_objext conftest$ac_exeext
32245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32246 (eval $ac_link) 2>conftest.er1
a848cd7e 32247 ac_status=$?
ac1cb8d3
VS
32248 grep -v '^ *+' conftest.er1 >conftest.err
32249 rm -f conftest.er1
32250 cat conftest.err >&5
a848cd7e
SC
32251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32252 (exit $ac_status); } &&
6ebeb4c7 32253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32255 (eval $ac_try) 2>&5
32256 ac_status=$?
32257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32258 (exit $ac_status); }; } &&
32259 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32261 (eval $ac_try) 2>&5
32262 ac_status=$?
32263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32264 (exit $ac_status); }; }; then
32265 eval "$as_ac_var=yes"
32266else
32267 echo "$as_me: failed program was:" >&5
32268sed 's/^/| /' conftest.$ac_ext >&5
32269
32270eval "$as_ac_var=no"
32271fi
ac1cb8d3
VS
32272rm -f conftest.err conftest.$ac_objext \
32273 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32274fi
32275echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32276echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32277if test `eval echo '${'$as_ac_var'}'` = yes; then
32278 cat >>confdefs.h <<_ACEOF
32279#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32280_ACEOF
32281
32282fi
32283done
32284
32285
32286 if test "$ac_cv_func_sigaction" = "no"; then
32287 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
32288echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
32289 wxUSE_ON_FATAL_EXCEPTION=no
32290 fi
32291
32292 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
32293
32294
32295 ac_ext=cc
32296ac_cpp='$CXXCPP $CPPFLAGS'
32297ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32298ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32299ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32300
32301
32302 echo "$as_me:$LINENO: checking for sa_handler type" >&5
32303echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
32304if test "${wx_cv_type_sa_handler+set}" = set; then
32305 echo $ECHO_N "(cached) $ECHO_C" >&6
32306else
32307
32308 cat >conftest.$ac_ext <<_ACEOF
32309/* confdefs.h. */
32310_ACEOF
32311cat confdefs.h >>conftest.$ac_ext
32312cat >>conftest.$ac_ext <<_ACEOF
32313/* end confdefs.h. */
32314#include <signal.h>
32315int
32316main ()
32317{
32318
32319 extern void testSigHandler(int);
32320
32321 struct sigaction sa;
32322 sa.sa_handler = testSigHandler;
32323
32324 ;
32325 return 0;
32326}
32327_ACEOF
32328rm -f conftest.$ac_objext
32329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32330 (eval $ac_compile) 2>conftest.er1
a848cd7e 32331 ac_status=$?
ac1cb8d3
VS
32332 grep -v '^ *+' conftest.er1 >conftest.err
32333 rm -f conftest.er1
32334 cat conftest.err >&5
a848cd7e
SC
32335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32336 (exit $ac_status); } &&
6ebeb4c7 32337 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32339 (eval $ac_try) 2>&5
32340 ac_status=$?
32341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32342 (exit $ac_status); }; } &&
32343 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32345 (eval $ac_try) 2>&5
32346 ac_status=$?
32347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32348 (exit $ac_status); }; }; then
32349
32350 wx_cv_type_sa_handler=int
32351
32352else
32353 echo "$as_me: failed program was:" >&5
32354sed 's/^/| /' conftest.$ac_ext >&5
32355
32356
32357 wx_cv_type_sa_handler=void
32358
32359fi
ac1cb8d3 32360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32361
32362fi
32363echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
32364echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
32365
32366 ac_ext=c
32367ac_cpp='$CPP $CPPFLAGS'
32368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32370ac_compiler_gnu=$ac_cv_c_compiler_gnu
32371
32372
32373 cat >>confdefs.h <<_ACEOF
32374#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
32375_ACEOF
32376
32377 fi
32378fi
32379
eaff0f0d
VZ
32380if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
32381
32382
32383 ac_ext=cc
32384ac_cpp='$CXXCPP $CPPFLAGS'
32385ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32386ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32387ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32388
32389
32390 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
32391echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
32392if test "${wx_cv_func_backtrace+set}" = set; then
32393 echo $ECHO_N "(cached) $ECHO_C" >&6
32394else
32395
32396 cat >conftest.$ac_ext <<_ACEOF
32397/* confdefs.h. */
32398_ACEOF
32399cat confdefs.h >>conftest.$ac_ext
32400cat >>conftest.$ac_ext <<_ACEOF
32401/* end confdefs.h. */
32402#include <execinfo.h>
32403int
32404main ()
32405{
32406
32407 void *trace[1];
32408 char **messages;
32409
32410 backtrace(trace, 1);
32411 messages = backtrace_symbols(trace, 1);
32412
32413 ;
32414 return 0;
32415}
32416_ACEOF
32417rm -f conftest.$ac_objext
32418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32419 (eval $ac_compile) 2>conftest.er1
32420 ac_status=$?
32421 grep -v '^ *+' conftest.er1 >conftest.err
32422 rm -f conftest.er1
32423 cat conftest.err >&5
32424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32425 (exit $ac_status); } &&
6ebeb4c7 32426 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
32427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32428 (eval $ac_try) 2>&5
32429 ac_status=$?
32430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32431 (exit $ac_status); }; } &&
32432 { ac_try='test -s conftest.$ac_objext'
32433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32434 (eval $ac_try) 2>&5
32435 ac_status=$?
32436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32437 (exit $ac_status); }; }; then
32438 wx_cv_func_backtrace=yes
32439else
32440 echo "$as_me: failed program was:" >&5
32441sed 's/^/| /' conftest.$ac_ext >&5
32442
32443wx_cv_func_backtrace=no
32444
32445fi
32446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32447
32448
32449fi
32450echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
32451echo "${ECHO_T}$wx_cv_func_backtrace" >&6
32452
32453
32454 if test "$wx_cv_func_backtrace" = "no"; then
32455 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
32456echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
32457 wxUSE_STACKWALKER=no
32458 else
32459 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
32460echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
32461if test "${wx_cv_func_cxa_demangle+set}" = set; then
32462 echo $ECHO_N "(cached) $ECHO_C" >&6
32463else
32464
32465 cat >conftest.$ac_ext <<_ACEOF
32466/* confdefs.h. */
32467_ACEOF
32468cat confdefs.h >>conftest.$ac_ext
32469cat >>conftest.$ac_ext <<_ACEOF
32470/* end confdefs.h. */
32471#include <cxxabi.h>
32472int
32473main ()
32474{
32475
32476 int rc;
32477 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
32478
32479 ;
32480 return 0;
32481}
32482_ACEOF
dfe0c803
JS
32483rm -f conftest.$ac_objext conftest$ac_exeext
32484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32485 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
32486 ac_status=$?
32487 grep -v '^ *+' conftest.er1 >conftest.err
32488 rm -f conftest.er1
32489 cat conftest.err >&5
32490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32491 (exit $ac_status); } &&
6ebeb4c7 32492 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
32493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32494 (eval $ac_try) 2>&5
32495 ac_status=$?
32496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32497 (exit $ac_status); }; } &&
dfe0c803 32498 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
32499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32500 (eval $ac_try) 2>&5
32501 ac_status=$?
32502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32503 (exit $ac_status); }; }; then
32504 wx_cv_func_cxa_demangle=yes
32505else
32506 echo "$as_me: failed program was:" >&5
32507sed 's/^/| /' conftest.$ac_ext >&5
32508
32509wx_cv_func_cxa_demangle=no
32510
32511fi
dfe0c803
JS
32512rm -f conftest.err conftest.$ac_objext \
32513 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
32514
32515
32516fi
32517echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
32518echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
32519
32520 if test "$wx_cv_func_cxa_demangle" = "yes"; then
32521 cat >>confdefs.h <<\_ACEOF
32522#define HAVE_CXA_DEMANGLE 1
32523_ACEOF
32524
32525 fi
32526 fi
32527
32528 ac_ext=c
32529ac_cpp='$CPP $CPPFLAGS'
32530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32532ac_compiler_gnu=$ac_cv_c_compiler_gnu
32533
32534fi
32535
898beab1
DE
32536if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
32537 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
32538echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
32539 wxUSE_STACKWALKER=no
32540fi
32541
32542
a848cd7e
SC
32543
32544
32545for ac_func in mkstemp mktemp
32546do
32547as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32548echo "$as_me:$LINENO: checking for $ac_func" >&5
32549echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32550if eval "test \"\${$as_ac_var+set}\" = set"; then
32551 echo $ECHO_N "(cached) $ECHO_C" >&6
32552else
32553 cat >conftest.$ac_ext <<_ACEOF
32554/* confdefs.h. */
32555_ACEOF
32556cat confdefs.h >>conftest.$ac_ext
32557cat >>conftest.$ac_ext <<_ACEOF
32558/* end confdefs.h. */
ac1cb8d3
VS
32559/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32561#define $ac_func innocuous_$ac_func
32562
a848cd7e
SC
32563/* System header to define __stub macros and hopefully few prototypes,
32564 which can conflict with char $ac_func (); below.
32565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32566 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32567
a848cd7e
SC
32568#ifdef __STDC__
32569# include <limits.h>
32570#else
32571# include <assert.h>
32572#endif
ac1cb8d3
VS
32573
32574#undef $ac_func
32575
a848cd7e
SC
32576/* Override any gcc2 internal prototype to avoid an error. */
32577#ifdef __cplusplus
32578extern "C"
32579{
32580#endif
32581/* We use char because int might match the return type of a gcc2
32582 builtin and then its argument prototype would still apply. */
32583char $ac_func ();
32584/* The GNU C library defines this for functions which it implements
32585 to always fail with ENOSYS. Some functions are actually named
32586 something starting with __ and the normal name is an alias. */
32587#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32588choke me
32589#else
32590char (*f) () = $ac_func;
32591#endif
32592#ifdef __cplusplus
32593}
32594#endif
32595
32596int
32597main ()
32598{
32599return f != $ac_func;
32600 ;
32601 return 0;
32602}
32603_ACEOF
32604rm -f conftest.$ac_objext conftest$ac_exeext
32605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32606 (eval $ac_link) 2>conftest.er1
a848cd7e 32607 ac_status=$?
ac1cb8d3
VS
32608 grep -v '^ *+' conftest.er1 >conftest.err
32609 rm -f conftest.er1
32610 cat conftest.err >&5
a848cd7e
SC
32611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32612 (exit $ac_status); } &&
6ebeb4c7 32613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32615 (eval $ac_try) 2>&5
32616 ac_status=$?
32617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32618 (exit $ac_status); }; } &&
32619 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32621 (eval $ac_try) 2>&5
32622 ac_status=$?
32623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32624 (exit $ac_status); }; }; then
32625 eval "$as_ac_var=yes"
32626else
32627 echo "$as_me: failed program was:" >&5
32628sed 's/^/| /' conftest.$ac_ext >&5
32629
32630eval "$as_ac_var=no"
32631fi
ac1cb8d3
VS
32632rm -f conftest.err conftest.$ac_objext \
32633 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32634fi
32635echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32636echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32637if test `eval echo '${'$as_ac_var'}'` = yes; then
32638 cat >>confdefs.h <<_ACEOF
32639#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32640_ACEOF
32641 break
32642fi
32643done
32644
32645
32646echo "$as_me:$LINENO: checking for statfs" >&5
32647echo $ECHO_N "checking for statfs... $ECHO_C" >&6
32648if test "${wx_cv_func_statfs+set}" = set; then
32649 echo $ECHO_N "(cached) $ECHO_C" >&6
32650else
32651 cat >conftest.$ac_ext <<_ACEOF
32652/* confdefs.h. */
32653_ACEOF
32654cat confdefs.h >>conftest.$ac_ext
32655cat >>conftest.$ac_ext <<_ACEOF
32656/* end confdefs.h. */
32657
32658 #if defined(__BSD__)
32659 #include <sys/param.h>
32660 #include <sys/mount.h>
32661 #else
32662 #include <sys/vfs.h>
32663 #endif
32664
32665int
32666main ()
32667{
32668
32669 long l;
32670 struct statfs fs;
32671 statfs("/", &fs);
32672 l = fs.f_bsize;
32673 l += fs.f_blocks;
32674 l += fs.f_bavail;
32675
32676 ;
32677 return 0;
32678}
32679_ACEOF
32680rm -f conftest.$ac_objext
32681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32682 (eval $ac_compile) 2>conftest.er1
a848cd7e 32683 ac_status=$?
ac1cb8d3
VS
32684 grep -v '^ *+' conftest.er1 >conftest.err
32685 rm -f conftest.er1
32686 cat conftest.err >&5
a848cd7e
SC
32687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32688 (exit $ac_status); } &&
6ebeb4c7 32689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32691 (eval $ac_try) 2>&5
32692 ac_status=$?
32693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32694 (exit $ac_status); }; } &&
32695 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32697 (eval $ac_try) 2>&5
32698 ac_status=$?
32699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32700 (exit $ac_status); }; }; then
32701
32702 wx_cv_func_statfs=yes
32703
32704else
32705 echo "$as_me: failed program was:" >&5
32706sed 's/^/| /' conftest.$ac_ext >&5
32707
32708
32709 wx_cv_func_statfs=no
32710
32711
32712fi
ac1cb8d3 32713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32714
32715fi
32716echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
32717echo "${ECHO_T}$wx_cv_func_statfs" >&6
32718
32719if test "$wx_cv_func_statfs" = "yes"; then
32720 wx_cv_type_statvfs_t="struct statfs"
32721 cat >>confdefs.h <<\_ACEOF
32722#define HAVE_STATFS 1
32723_ACEOF
32724
32725else
32726 echo "$as_me:$LINENO: checking for statvfs" >&5
32727echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
32728if test "${wx_cv_func_statvfs+set}" = set; then
32729 echo $ECHO_N "(cached) $ECHO_C" >&6
32730else
32731 cat >conftest.$ac_ext <<_ACEOF
32732/* confdefs.h. */
32733_ACEOF
32734cat confdefs.h >>conftest.$ac_ext
32735cat >>conftest.$ac_ext <<_ACEOF
32736/* end confdefs.h. */
32737
32738 #include <stddef.h>
32739 #include <sys/statvfs.h>
32740
32741int
32742main ()
32743{
32744
32745 statvfs("/", NULL);
32746
32747 ;
32748 return 0;
32749}
32750_ACEOF
32751rm -f conftest.$ac_objext
32752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32753 (eval $ac_compile) 2>conftest.er1
a848cd7e 32754 ac_status=$?
ac1cb8d3
VS
32755 grep -v '^ *+' conftest.er1 >conftest.err
32756 rm -f conftest.er1
32757 cat conftest.err >&5
a848cd7e
SC
32758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32759 (exit $ac_status); } &&
6ebeb4c7 32760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32762 (eval $ac_try) 2>&5
32763 ac_status=$?
32764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32765 (exit $ac_status); }; } &&
32766 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32768 (eval $ac_try) 2>&5
32769 ac_status=$?
32770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32771 (exit $ac_status); }; }; then
32772 wx_cv_func_statvfs=yes
32773else
32774 echo "$as_me: failed program was:" >&5
32775sed 's/^/| /' conftest.$ac_ext >&5
32776
32777wx_cv_func_statvfs=no
32778
32779fi
ac1cb8d3 32780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32781
32782fi
32783echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
32784echo "${ECHO_T}$wx_cv_func_statvfs" >&6
32785
32786 if test "$wx_cv_func_statvfs" = "yes"; then
32787
32788
32789 ac_ext=cc
32790ac_cpp='$CXXCPP $CPPFLAGS'
32791ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32792ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32793ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32794
32795
32796 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
32797echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
32798if test "${wx_cv_type_statvfs_t+set}" = set; then
32799 echo $ECHO_N "(cached) $ECHO_C" >&6
32800else
32801 cat >conftest.$ac_ext <<_ACEOF
32802/* confdefs.h. */
32803_ACEOF
32804cat confdefs.h >>conftest.$ac_ext
32805cat >>conftest.$ac_ext <<_ACEOF
32806/* end confdefs.h. */
32807
32808 #include <sys/statvfs.h>
32809
32810int
32811main ()
32812{
32813
32814 long l;
32815 statvfs_t fs;
32816 statvfs("/", &fs);
32817 l = fs.f_bsize;
32818 l += fs.f_blocks;
32819 l += fs.f_bavail;
32820
32821 ;
32822 return 0;
32823}
32824_ACEOF
32825rm -f conftest.$ac_objext
32826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32827 (eval $ac_compile) 2>conftest.er1
a848cd7e 32828 ac_status=$?
ac1cb8d3
VS
32829 grep -v '^ *+' conftest.er1 >conftest.err
32830 rm -f conftest.er1
32831 cat conftest.err >&5
a848cd7e
SC
32832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32833 (exit $ac_status); } &&
6ebeb4c7 32834 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32836 (eval $ac_try) 2>&5
32837 ac_status=$?
32838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32839 (exit $ac_status); }; } &&
32840 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32842 (eval $ac_try) 2>&5
32843 ac_status=$?
32844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32845 (exit $ac_status); }; }; then
32846 wx_cv_type_statvfs_t=statvfs_t
32847else
32848 echo "$as_me: failed program was:" >&5
32849sed 's/^/| /' conftest.$ac_ext >&5
32850
32851
32852 cat >conftest.$ac_ext <<_ACEOF
32853/* confdefs.h. */
32854_ACEOF
32855cat confdefs.h >>conftest.$ac_ext
32856cat >>conftest.$ac_ext <<_ACEOF
32857/* end confdefs.h. */
32858
32859 #include <sys/statvfs.h>
32860
32861int
32862main ()
32863{
32864
32865 long l;
32866 struct statvfs fs;
32867 statvfs("/", &fs);
32868 l = fs.f_bsize;
32869 l += fs.f_blocks;
32870 l += fs.f_bavail;
32871
32872 ;
32873 return 0;
32874}
32875_ACEOF
32876rm -f conftest.$ac_objext
32877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32878 (eval $ac_compile) 2>conftest.er1
a848cd7e 32879 ac_status=$?
ac1cb8d3
VS
32880 grep -v '^ *+' conftest.er1 >conftest.err
32881 rm -f conftest.er1
32882 cat conftest.err >&5
a848cd7e
SC
32883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32884 (exit $ac_status); } &&
6ebeb4c7 32885 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32887 (eval $ac_try) 2>&5
32888 ac_status=$?
32889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32890 (exit $ac_status); }; } &&
32891 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32893 (eval $ac_try) 2>&5
32894 ac_status=$?
32895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32896 (exit $ac_status); }; }; then
32897 wx_cv_type_statvfs_t="struct statvfs"
32898else
32899 echo "$as_me: failed program was:" >&5
32900sed 's/^/| /' conftest.$ac_ext >&5
32901
32902wx_cv_type_statvfs_t="unknown"
32903
32904fi
ac1cb8d3 32905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32906
32907
32908fi
ac1cb8d3 32909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32910
32911fi
32912echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
32913echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
32914
32915 ac_ext=c
32916ac_cpp='$CPP $CPPFLAGS'
32917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32919ac_compiler_gnu=$ac_cv_c_compiler_gnu
32920
32921
32922 if test "$wx_cv_type_statvfs_t" != "unknown"; then
32923 cat >>confdefs.h <<\_ACEOF
32924#define HAVE_STATVFS 1
32925_ACEOF
32926
32927 fi
32928 else
32929 wx_cv_type_statvfs_t="unknown"
32930 fi
32931fi
32932
32933if test "$wx_cv_type_statvfs_t" != "unknown"; then
32934 cat >>confdefs.h <<_ACEOF
32935#define WX_STATFS_T $wx_cv_type_statvfs_t
32936_ACEOF
32937
32938else
32939 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
32940echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
32941fi
32942
32943if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
32944
32945
32946for ac_func in fcntl flock
32947do
32948as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32949echo "$as_me:$LINENO: checking for $ac_func" >&5
32950echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32951if eval "test \"\${$as_ac_var+set}\" = set"; then
32952 echo $ECHO_N "(cached) $ECHO_C" >&6
32953else
32954 cat >conftest.$ac_ext <<_ACEOF
32955/* confdefs.h. */
32956_ACEOF
32957cat confdefs.h >>conftest.$ac_ext
32958cat >>conftest.$ac_ext <<_ACEOF
32959/* end confdefs.h. */
ac1cb8d3
VS
32960/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32962#define $ac_func innocuous_$ac_func
32963
a848cd7e
SC
32964/* System header to define __stub macros and hopefully few prototypes,
32965 which can conflict with char $ac_func (); below.
32966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32967 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32968
a848cd7e
SC
32969#ifdef __STDC__
32970# include <limits.h>
32971#else
32972# include <assert.h>
32973#endif
ac1cb8d3
VS
32974
32975#undef $ac_func
32976
a848cd7e
SC
32977/* Override any gcc2 internal prototype to avoid an error. */
32978#ifdef __cplusplus
32979extern "C"
32980{
32981#endif
32982/* We use char because int might match the return type of a gcc2
32983 builtin and then its argument prototype would still apply. */
32984char $ac_func ();
32985/* The GNU C library defines this for functions which it implements
32986 to always fail with ENOSYS. Some functions are actually named
32987 something starting with __ and the normal name is an alias. */
32988#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32989choke me
32990#else
32991char (*f) () = $ac_func;
32992#endif
32993#ifdef __cplusplus
32994}
32995#endif
32996
32997int
32998main ()
32999{
33000return f != $ac_func;
33001 ;
33002 return 0;
33003}
33004_ACEOF
33005rm -f conftest.$ac_objext conftest$ac_exeext
33006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33007 (eval $ac_link) 2>conftest.er1
a848cd7e 33008 ac_status=$?
ac1cb8d3
VS
33009 grep -v '^ *+' conftest.er1 >conftest.err
33010 rm -f conftest.er1
33011 cat conftest.err >&5
a848cd7e
SC
33012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33013 (exit $ac_status); } &&
6ebeb4c7 33014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33016 (eval $ac_try) 2>&5
33017 ac_status=$?
33018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33019 (exit $ac_status); }; } &&
33020 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33022 (eval $ac_try) 2>&5
33023 ac_status=$?
33024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33025 (exit $ac_status); }; }; then
33026 eval "$as_ac_var=yes"
33027else
33028 echo "$as_me: failed program was:" >&5
33029sed 's/^/| /' conftest.$ac_ext >&5
33030
33031eval "$as_ac_var=no"
33032fi
ac1cb8d3
VS
33033rm -f conftest.err conftest.$ac_objext \
33034 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33035fi
33036echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33037echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33038if test `eval echo '${'$as_ac_var'}'` = yes; then
33039 cat >>confdefs.h <<_ACEOF
33040#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33041_ACEOF
33042 break
33043fi
33044done
33045
33046
33047 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
33048 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
33049echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
33050 wxUSE_SNGLINST_CHECKER=no
33051 fi
33052fi
33053
33054
33055for ac_func in timegm
33056do
33057as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33058echo "$as_me:$LINENO: checking for $ac_func" >&5
33059echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33060if eval "test \"\${$as_ac_var+set}\" = set"; then
33061 echo $ECHO_N "(cached) $ECHO_C" >&6
33062else
33063 cat >conftest.$ac_ext <<_ACEOF
33064/* confdefs.h. */
33065_ACEOF
33066cat confdefs.h >>conftest.$ac_ext
33067cat >>conftest.$ac_ext <<_ACEOF
33068/* end confdefs.h. */
ac1cb8d3
VS
33069/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33071#define $ac_func innocuous_$ac_func
33072
a848cd7e
SC
33073/* System header to define __stub macros and hopefully few prototypes,
33074 which can conflict with char $ac_func (); below.
33075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33076 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33077
a848cd7e
SC
33078#ifdef __STDC__
33079# include <limits.h>
33080#else
33081# include <assert.h>
33082#endif
ac1cb8d3
VS
33083
33084#undef $ac_func
33085
a848cd7e
SC
33086/* Override any gcc2 internal prototype to avoid an error. */
33087#ifdef __cplusplus
33088extern "C"
33089{
33090#endif
33091/* We use char because int might match the return type of a gcc2
33092 builtin and then its argument prototype would still apply. */
33093char $ac_func ();
33094/* The GNU C library defines this for functions which it implements
33095 to always fail with ENOSYS. Some functions are actually named
33096 something starting with __ and the normal name is an alias. */
33097#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33098choke me
33099#else
33100char (*f) () = $ac_func;
33101#endif
33102#ifdef __cplusplus
33103}
33104#endif
33105
33106int
33107main ()
33108{
33109return f != $ac_func;
33110 ;
33111 return 0;
33112}
33113_ACEOF
33114rm -f conftest.$ac_objext conftest$ac_exeext
33115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33116 (eval $ac_link) 2>conftest.er1
a848cd7e 33117 ac_status=$?
ac1cb8d3
VS
33118 grep -v '^ *+' conftest.er1 >conftest.err
33119 rm -f conftest.er1
33120 cat conftest.err >&5
a848cd7e
SC
33121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33122 (exit $ac_status); } &&
6ebeb4c7 33123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33125 (eval $ac_try) 2>&5
33126 ac_status=$?
33127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33128 (exit $ac_status); }; } &&
33129 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33131 (eval $ac_try) 2>&5
33132 ac_status=$?
33133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33134 (exit $ac_status); }; }; then
33135 eval "$as_ac_var=yes"
33136else
33137 echo "$as_me: failed program was:" >&5
33138sed 's/^/| /' conftest.$ac_ext >&5
33139
33140eval "$as_ac_var=no"
33141fi
ac1cb8d3
VS
33142rm -f conftest.err conftest.$ac_objext \
33143 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33144fi
33145echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33146echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33147if test `eval echo '${'$as_ac_var'}'` = yes; then
33148 cat >>confdefs.h <<_ACEOF
33149#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33150_ACEOF
33151
33152fi
33153done
33154
33155
33156
33157
33158for ac_func in putenv setenv
33159do
33160as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33161echo "$as_me:$LINENO: checking for $ac_func" >&5
33162echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33163if eval "test \"\${$as_ac_var+set}\" = set"; then
33164 echo $ECHO_N "(cached) $ECHO_C" >&6
33165else
33166 cat >conftest.$ac_ext <<_ACEOF
33167/* confdefs.h. */
33168_ACEOF
33169cat confdefs.h >>conftest.$ac_ext
33170cat >>conftest.$ac_ext <<_ACEOF
33171/* end confdefs.h. */
ac1cb8d3
VS
33172/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33174#define $ac_func innocuous_$ac_func
33175
a848cd7e
SC
33176/* System header to define __stub macros and hopefully few prototypes,
33177 which can conflict with char $ac_func (); below.
33178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33179 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33180
a848cd7e
SC
33181#ifdef __STDC__
33182# include <limits.h>
33183#else
33184# include <assert.h>
33185#endif
ac1cb8d3
VS
33186
33187#undef $ac_func
33188
a848cd7e
SC
33189/* Override any gcc2 internal prototype to avoid an error. */
33190#ifdef __cplusplus
33191extern "C"
33192{
33193#endif
33194/* We use char because int might match the return type of a gcc2
33195 builtin and then its argument prototype would still apply. */
33196char $ac_func ();
33197/* The GNU C library defines this for functions which it implements
33198 to always fail with ENOSYS. Some functions are actually named
33199 something starting with __ and the normal name is an alias. */
33200#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33201choke me
33202#else
33203char (*f) () = $ac_func;
33204#endif
33205#ifdef __cplusplus
33206}
33207#endif
33208
33209int
33210main ()
33211{
33212return f != $ac_func;
33213 ;
33214 return 0;
33215}
33216_ACEOF
33217rm -f conftest.$ac_objext conftest$ac_exeext
33218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33219 (eval $ac_link) 2>conftest.er1
a848cd7e 33220 ac_status=$?
ac1cb8d3
VS
33221 grep -v '^ *+' conftest.er1 >conftest.err
33222 rm -f conftest.er1
33223 cat conftest.err >&5
a848cd7e
SC
33224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33225 (exit $ac_status); } &&
6ebeb4c7 33226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33228 (eval $ac_try) 2>&5
33229 ac_status=$?
33230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33231 (exit $ac_status); }; } &&
33232 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33234 (eval $ac_try) 2>&5
33235 ac_status=$?
33236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33237 (exit $ac_status); }; }; then
33238 eval "$as_ac_var=yes"
33239else
33240 echo "$as_me: failed program was:" >&5
33241sed 's/^/| /' conftest.$ac_ext >&5
33242
33243eval "$as_ac_var=no"
33244fi
ac1cb8d3
VS
33245rm -f conftest.err conftest.$ac_objext \
33246 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33247fi
33248echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33249echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33250if test `eval echo '${'$as_ac_var'}'` = yes; then
33251 cat >>confdefs.h <<_ACEOF
33252#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33253_ACEOF
33254 break
33255fi
33256done
33257
33258
33259HAVE_SOME_SLEEP_FUNC=0
33260if test "$USE_BEOS" = 1; then
33261 cat >>confdefs.h <<\_ACEOF
33262#define HAVE_SLEEP 1
33263_ACEOF
33264
33265 HAVE_SOME_SLEEP_FUNC=1
33266fi
33267
33268if test "$USE_DARWIN" = 1; then
33269 cat >>confdefs.h <<\_ACEOF
33270#define HAVE_USLEEP 1
33271_ACEOF
33272
33273 HAVE_SOME_SLEEP_FUNC=1
33274fi
33275
33276if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
33277 POSIX4_LINK=
33278
33279for ac_func in nanosleep
33280do
33281as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33282echo "$as_me:$LINENO: checking for $ac_func" >&5
33283echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33284if eval "test \"\${$as_ac_var+set}\" = set"; then
33285 echo $ECHO_N "(cached) $ECHO_C" >&6
33286else
33287 cat >conftest.$ac_ext <<_ACEOF
33288/* confdefs.h. */
33289_ACEOF
33290cat confdefs.h >>conftest.$ac_ext
33291cat >>conftest.$ac_ext <<_ACEOF
33292/* end confdefs.h. */
ac1cb8d3
VS
33293/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33295#define $ac_func innocuous_$ac_func
33296
a848cd7e
SC
33297/* System header to define __stub macros and hopefully few prototypes,
33298 which can conflict with char $ac_func (); below.
33299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33300 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33301
a848cd7e
SC
33302#ifdef __STDC__
33303# include <limits.h>
33304#else
33305# include <assert.h>
33306#endif
ac1cb8d3
VS
33307
33308#undef $ac_func
33309
a848cd7e
SC
33310/* Override any gcc2 internal prototype to avoid an error. */
33311#ifdef __cplusplus
33312extern "C"
33313{
33314#endif
33315/* We use char because int might match the return type of a gcc2
33316 builtin and then its argument prototype would still apply. */
33317char $ac_func ();
33318/* The GNU C library defines this for functions which it implements
33319 to always fail with ENOSYS. Some functions are actually named
33320 something starting with __ and the normal name is an alias. */
33321#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33322choke me
33323#else
33324char (*f) () = $ac_func;
33325#endif
33326#ifdef __cplusplus
33327}
33328#endif
33329
33330int
33331main ()
33332{
33333return f != $ac_func;
33334 ;
33335 return 0;
33336}
33337_ACEOF
33338rm -f conftest.$ac_objext conftest$ac_exeext
33339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33340 (eval $ac_link) 2>conftest.er1
a848cd7e 33341 ac_status=$?
ac1cb8d3
VS
33342 grep -v '^ *+' conftest.er1 >conftest.err
33343 rm -f conftest.er1
33344 cat conftest.err >&5
a848cd7e
SC
33345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33346 (exit $ac_status); } &&
6ebeb4c7 33347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33349 (eval $ac_try) 2>&5
33350 ac_status=$?
33351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33352 (exit $ac_status); }; } &&
33353 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33355 (eval $ac_try) 2>&5
33356 ac_status=$?
33357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33358 (exit $ac_status); }; }; then
33359 eval "$as_ac_var=yes"
33360else
33361 echo "$as_me: failed program was:" >&5
33362sed 's/^/| /' conftest.$ac_ext >&5
33363
33364eval "$as_ac_var=no"
33365fi
ac1cb8d3
VS
33366rm -f conftest.err conftest.$ac_objext \
33367 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33368fi
33369echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33370echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33371if test `eval echo '${'$as_ac_var'}'` = yes; then
33372 cat >>confdefs.h <<_ACEOF
33373#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33374_ACEOF
33375 cat >>confdefs.h <<\_ACEOF
33376#define HAVE_NANOSLEEP 1
33377_ACEOF
33378
33379else
33380
33381 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
33382echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
33383if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
33384 echo $ECHO_N "(cached) $ECHO_C" >&6
33385else
33386 ac_check_lib_save_LIBS=$LIBS
33387LIBS="-lposix4 $LIBS"
33388cat >conftest.$ac_ext <<_ACEOF
33389/* confdefs.h. */
33390_ACEOF
33391cat confdefs.h >>conftest.$ac_ext
33392cat >>conftest.$ac_ext <<_ACEOF
33393/* end confdefs.h. */
33394
33395/* Override any gcc2 internal prototype to avoid an error. */
33396#ifdef __cplusplus
33397extern "C"
33398#endif
33399/* We use char because int might match the return type of a gcc2
33400 builtin and then its argument prototype would still apply. */
33401char nanosleep ();
33402int
33403main ()
33404{
33405nanosleep ();
33406 ;
33407 return 0;
33408}
33409_ACEOF
33410rm -f conftest.$ac_objext conftest$ac_exeext
33411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33412 (eval $ac_link) 2>conftest.er1
a848cd7e 33413 ac_status=$?
ac1cb8d3
VS
33414 grep -v '^ *+' conftest.er1 >conftest.err
33415 rm -f conftest.er1
33416 cat conftest.err >&5
a848cd7e
SC
33417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33418 (exit $ac_status); } &&
6ebeb4c7 33419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33421 (eval $ac_try) 2>&5
33422 ac_status=$?
33423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33424 (exit $ac_status); }; } &&
33425 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33427 (eval $ac_try) 2>&5
33428 ac_status=$?
33429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33430 (exit $ac_status); }; }; then
33431 ac_cv_lib_posix4_nanosleep=yes
33432else
33433 echo "$as_me: failed program was:" >&5
33434sed 's/^/| /' conftest.$ac_ext >&5
33435
33436ac_cv_lib_posix4_nanosleep=no
33437fi
ac1cb8d3
VS
33438rm -f conftest.err conftest.$ac_objext \
33439 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33440LIBS=$ac_check_lib_save_LIBS
33441fi
33442echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
33443echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
33444if test $ac_cv_lib_posix4_nanosleep = yes; then
33445
33446 cat >>confdefs.h <<\_ACEOF
33447#define HAVE_NANOSLEEP 1
33448_ACEOF
33449
33450 POSIX4_LINK=" -lposix4"
33451
33452else
33453
33454
33455for ac_func in usleep
33456do
33457as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33458echo "$as_me:$LINENO: checking for $ac_func" >&5
33459echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33460if eval "test \"\${$as_ac_var+set}\" = set"; then
33461 echo $ECHO_N "(cached) $ECHO_C" >&6
33462else
33463 cat >conftest.$ac_ext <<_ACEOF
33464/* confdefs.h. */
33465_ACEOF
33466cat confdefs.h >>conftest.$ac_ext
33467cat >>conftest.$ac_ext <<_ACEOF
33468/* end confdefs.h. */
ac1cb8d3
VS
33469/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33471#define $ac_func innocuous_$ac_func
33472
a848cd7e
SC
33473/* System header to define __stub macros and hopefully few prototypes,
33474 which can conflict with char $ac_func (); below.
33475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33476 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33477
a848cd7e
SC
33478#ifdef __STDC__
33479# include <limits.h>
33480#else
33481# include <assert.h>
33482#endif
ac1cb8d3
VS
33483
33484#undef $ac_func
33485
a848cd7e
SC
33486/* Override any gcc2 internal prototype to avoid an error. */
33487#ifdef __cplusplus
33488extern "C"
33489{
33490#endif
33491/* We use char because int might match the return type of a gcc2
33492 builtin and then its argument prototype would still apply. */
33493char $ac_func ();
33494/* The GNU C library defines this for functions which it implements
33495 to always fail with ENOSYS. Some functions are actually named
33496 something starting with __ and the normal name is an alias. */
33497#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33498choke me
33499#else
33500char (*f) () = $ac_func;
33501#endif
33502#ifdef __cplusplus
33503}
33504#endif
33505
33506int
33507main ()
33508{
33509return f != $ac_func;
33510 ;
33511 return 0;
33512}
33513_ACEOF
33514rm -f conftest.$ac_objext conftest$ac_exeext
33515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33516 (eval $ac_link) 2>conftest.er1
a848cd7e 33517 ac_status=$?
ac1cb8d3
VS
33518 grep -v '^ *+' conftest.er1 >conftest.err
33519 rm -f conftest.er1
33520 cat conftest.err >&5
a848cd7e
SC
33521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33522 (exit $ac_status); } &&
6ebeb4c7 33523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33525 (eval $ac_try) 2>&5
33526 ac_status=$?
33527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33528 (exit $ac_status); }; } &&
33529 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33531 (eval $ac_try) 2>&5
33532 ac_status=$?
33533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33534 (exit $ac_status); }; }; then
33535 eval "$as_ac_var=yes"
33536else
33537 echo "$as_me: failed program was:" >&5
33538sed 's/^/| /' conftest.$ac_ext >&5
33539
33540eval "$as_ac_var=no"
33541fi
ac1cb8d3
VS
33542rm -f conftest.err conftest.$ac_objext \
33543 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33544fi
33545echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33546echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33547if test `eval echo '${'$as_ac_var'}'` = yes; then
33548 cat >>confdefs.h <<_ACEOF
33549#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33550_ACEOF
33551 cat >>confdefs.h <<\_ACEOF
33552#define HAVE_USLEEP 1
33553_ACEOF
33554
33555else
33556 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
33557echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
33558
33559fi
33560done
33561
33562
33563
33564fi
33565
33566
33567
33568fi
33569done
33570
33571fi
33572
33573
33574
33575for ac_func in uname gethostname
33576do
33577as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33578echo "$as_me:$LINENO: checking for $ac_func" >&5
33579echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33580if eval "test \"\${$as_ac_var+set}\" = set"; then
33581 echo $ECHO_N "(cached) $ECHO_C" >&6
33582else
33583 cat >conftest.$ac_ext <<_ACEOF
33584/* confdefs.h. */
33585_ACEOF
33586cat confdefs.h >>conftest.$ac_ext
33587cat >>conftest.$ac_ext <<_ACEOF
33588/* end confdefs.h. */
ac1cb8d3
VS
33589/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33591#define $ac_func innocuous_$ac_func
33592
a848cd7e
SC
33593/* System header to define __stub macros and hopefully few prototypes,
33594 which can conflict with char $ac_func (); below.
33595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33596 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33597
a848cd7e
SC
33598#ifdef __STDC__
33599# include <limits.h>
33600#else
33601# include <assert.h>
33602#endif
ac1cb8d3
VS
33603
33604#undef $ac_func
33605
a848cd7e
SC
33606/* Override any gcc2 internal prototype to avoid an error. */
33607#ifdef __cplusplus
33608extern "C"
33609{
33610#endif
33611/* We use char because int might match the return type of a gcc2
33612 builtin and then its argument prototype would still apply. */
33613char $ac_func ();
33614/* The GNU C library defines this for functions which it implements
33615 to always fail with ENOSYS. Some functions are actually named
33616 something starting with __ and the normal name is an alias. */
33617#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33618choke me
33619#else
33620char (*f) () = $ac_func;
33621#endif
33622#ifdef __cplusplus
33623}
33624#endif
33625
33626int
33627main ()
33628{
33629return f != $ac_func;
33630 ;
33631 return 0;
33632}
33633_ACEOF
33634rm -f conftest.$ac_objext conftest$ac_exeext
33635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33636 (eval $ac_link) 2>conftest.er1
a848cd7e 33637 ac_status=$?
ac1cb8d3
VS
33638 grep -v '^ *+' conftest.er1 >conftest.err
33639 rm -f conftest.er1
33640 cat conftest.err >&5
a848cd7e
SC
33641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33642 (exit $ac_status); } &&
6ebeb4c7 33643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33645 (eval $ac_try) 2>&5
33646 ac_status=$?
33647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33648 (exit $ac_status); }; } &&
33649 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33651 (eval $ac_try) 2>&5
33652 ac_status=$?
33653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33654 (exit $ac_status); }; }; then
33655 eval "$as_ac_var=yes"
33656else
33657 echo "$as_me: failed program was:" >&5
33658sed 's/^/| /' conftest.$ac_ext >&5
33659
33660eval "$as_ac_var=no"
33661fi
ac1cb8d3
VS
33662rm -f conftest.err conftest.$ac_objext \
33663 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33664fi
33665echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33666echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33667if test `eval echo '${'$as_ac_var'}'` = yes; then
33668 cat >>confdefs.h <<_ACEOF
33669#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33670_ACEOF
33671 break
33672fi
33673done
33674
33675
33676
33677
33678ac_ext=cc
33679ac_cpp='$CXXCPP $CPPFLAGS'
33680ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33681ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33682ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33683
33684
33685
33686for ac_func in strtok_r
33687do
33688as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33689echo "$as_me:$LINENO: checking for $ac_func" >&5
33690echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33691if eval "test \"\${$as_ac_var+set}\" = set"; then
33692 echo $ECHO_N "(cached) $ECHO_C" >&6
33693else
33694 cat >conftest.$ac_ext <<_ACEOF
33695/* confdefs.h. */
33696_ACEOF
33697cat confdefs.h >>conftest.$ac_ext
33698cat >>conftest.$ac_ext <<_ACEOF
33699/* end confdefs.h. */
ac1cb8d3
VS
33700/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33702#define $ac_func innocuous_$ac_func
33703
a848cd7e
SC
33704/* System header to define __stub macros and hopefully few prototypes,
33705 which can conflict with char $ac_func (); below.
33706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33707 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33708
a848cd7e
SC
33709#ifdef __STDC__
33710# include <limits.h>
33711#else
33712# include <assert.h>
33713#endif
ac1cb8d3
VS
33714
33715#undef $ac_func
33716
a848cd7e
SC
33717/* Override any gcc2 internal prototype to avoid an error. */
33718#ifdef __cplusplus
33719extern "C"
33720{
33721#endif
33722/* We use char because int might match the return type of a gcc2
33723 builtin and then its argument prototype would still apply. */
33724char $ac_func ();
33725/* The GNU C library defines this for functions which it implements
33726 to always fail with ENOSYS. Some functions are actually named
33727 something starting with __ and the normal name is an alias. */
33728#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33729choke me
33730#else
33731char (*f) () = $ac_func;
33732#endif
33733#ifdef __cplusplus
33734}
33735#endif
33736
33737int
33738main ()
33739{
33740return f != $ac_func;
33741 ;
33742 return 0;
33743}
33744_ACEOF
33745rm -f conftest.$ac_objext conftest$ac_exeext
33746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33747 (eval $ac_link) 2>conftest.er1
a848cd7e 33748 ac_status=$?
ac1cb8d3
VS
33749 grep -v '^ *+' conftest.er1 >conftest.err
33750 rm -f conftest.er1
33751 cat conftest.err >&5
a848cd7e
SC
33752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33753 (exit $ac_status); } &&
6ebeb4c7 33754 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33756 (eval $ac_try) 2>&5
33757 ac_status=$?
33758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33759 (exit $ac_status); }; } &&
33760 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33762 (eval $ac_try) 2>&5
33763 ac_status=$?
33764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33765 (exit $ac_status); }; }; then
33766 eval "$as_ac_var=yes"
33767else
33768 echo "$as_me: failed program was:" >&5
33769sed 's/^/| /' conftest.$ac_ext >&5
33770
33771eval "$as_ac_var=no"
33772fi
ac1cb8d3
VS
33773rm -f conftest.err conftest.$ac_objext \
33774 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33775fi
33776echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33777echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33778if test `eval echo '${'$as_ac_var'}'` = yes; then
33779 cat >>confdefs.h <<_ACEOF
33780#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33781_ACEOF
33782
33783fi
33784done
33785
33786
33787ac_ext=c
33788ac_cpp='$CPP $CPPFLAGS'
33789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33791ac_compiler_gnu=$ac_cv_c_compiler_gnu
33792
33793
33794INET_LINK=
33795
33796for ac_func in inet_addr
33797do
33798as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33799echo "$as_me:$LINENO: checking for $ac_func" >&5
33800echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33801if eval "test \"\${$as_ac_var+set}\" = set"; then
33802 echo $ECHO_N "(cached) $ECHO_C" >&6
33803else
33804 cat >conftest.$ac_ext <<_ACEOF
33805/* confdefs.h. */
33806_ACEOF
33807cat confdefs.h >>conftest.$ac_ext
33808cat >>conftest.$ac_ext <<_ACEOF
33809/* end confdefs.h. */
ac1cb8d3
VS
33810/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33812#define $ac_func innocuous_$ac_func
33813
a848cd7e
SC
33814/* System header to define __stub macros and hopefully few prototypes,
33815 which can conflict with char $ac_func (); below.
33816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33817 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33818
a848cd7e
SC
33819#ifdef __STDC__
33820# include <limits.h>
33821#else
33822# include <assert.h>
33823#endif
ac1cb8d3
VS
33824
33825#undef $ac_func
33826
a848cd7e
SC
33827/* Override any gcc2 internal prototype to avoid an error. */
33828#ifdef __cplusplus
33829extern "C"
33830{
33831#endif
33832/* We use char because int might match the return type of a gcc2
33833 builtin and then its argument prototype would still apply. */
33834char $ac_func ();
33835/* The GNU C library defines this for functions which it implements
33836 to always fail with ENOSYS. Some functions are actually named
33837 something starting with __ and the normal name is an alias. */
33838#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33839choke me
33840#else
33841char (*f) () = $ac_func;
33842#endif
33843#ifdef __cplusplus
33844}
33845#endif
33846
33847int
33848main ()
33849{
33850return f != $ac_func;
33851 ;
33852 return 0;
33853}
33854_ACEOF
33855rm -f conftest.$ac_objext conftest$ac_exeext
33856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33857 (eval $ac_link) 2>conftest.er1
a848cd7e 33858 ac_status=$?
ac1cb8d3
VS
33859 grep -v '^ *+' conftest.er1 >conftest.err
33860 rm -f conftest.er1
33861 cat conftest.err >&5
a848cd7e
SC
33862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33863 (exit $ac_status); } &&
6ebeb4c7 33864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33866 (eval $ac_try) 2>&5
33867 ac_status=$?
33868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33869 (exit $ac_status); }; } &&
33870 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33872 (eval $ac_try) 2>&5
33873 ac_status=$?
33874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33875 (exit $ac_status); }; }; then
33876 eval "$as_ac_var=yes"
33877else
33878 echo "$as_me: failed program was:" >&5
33879sed 's/^/| /' conftest.$ac_ext >&5
33880
33881eval "$as_ac_var=no"
33882fi
ac1cb8d3
VS
33883rm -f conftest.err conftest.$ac_objext \
33884 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33885fi
33886echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33887echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33888if test `eval echo '${'$as_ac_var'}'` = yes; then
33889 cat >>confdefs.h <<_ACEOF
33890#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33891_ACEOF
33892 cat >>confdefs.h <<\_ACEOF
33893#define HAVE_INET_ADDR 1
33894_ACEOF
33895
33896else
33897
33898 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
33899echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
33900if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
33901 echo $ECHO_N "(cached) $ECHO_C" >&6
33902else
33903 ac_check_lib_save_LIBS=$LIBS
33904LIBS="-lnsl $LIBS"
33905cat >conftest.$ac_ext <<_ACEOF
33906/* confdefs.h. */
33907_ACEOF
33908cat confdefs.h >>conftest.$ac_ext
33909cat >>conftest.$ac_ext <<_ACEOF
33910/* end confdefs.h. */
33911
33912/* Override any gcc2 internal prototype to avoid an error. */
33913#ifdef __cplusplus
33914extern "C"
33915#endif
33916/* We use char because int might match the return type of a gcc2
33917 builtin and then its argument prototype would still apply. */
33918char inet_addr ();
33919int
33920main ()
33921{
33922inet_addr ();
33923 ;
33924 return 0;
33925}
33926_ACEOF
33927rm -f conftest.$ac_objext conftest$ac_exeext
33928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33929 (eval $ac_link) 2>conftest.er1
a848cd7e 33930 ac_status=$?
ac1cb8d3
VS
33931 grep -v '^ *+' conftest.er1 >conftest.err
33932 rm -f conftest.er1
33933 cat conftest.err >&5
a848cd7e
SC
33934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33935 (exit $ac_status); } &&
6ebeb4c7 33936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33938 (eval $ac_try) 2>&5
33939 ac_status=$?
33940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33941 (exit $ac_status); }; } &&
33942 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33944 (eval $ac_try) 2>&5
33945 ac_status=$?
33946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33947 (exit $ac_status); }; }; then
33948 ac_cv_lib_nsl_inet_addr=yes
33949else
33950 echo "$as_me: failed program was:" >&5
33951sed 's/^/| /' conftest.$ac_ext >&5
33952
33953ac_cv_lib_nsl_inet_addr=no
33954fi
ac1cb8d3
VS
33955rm -f conftest.err conftest.$ac_objext \
33956 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33957LIBS=$ac_check_lib_save_LIBS
33958fi
33959echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
33960echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
33961if test $ac_cv_lib_nsl_inet_addr = yes; then
33962 INET_LINK="nsl"
33963else
33964
33965 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
33966echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
33967if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
33968 echo $ECHO_N "(cached) $ECHO_C" >&6
33969else
33970 ac_check_lib_save_LIBS=$LIBS
33971LIBS="-lresolv $LIBS"
33972cat >conftest.$ac_ext <<_ACEOF
33973/* confdefs.h. */
33974_ACEOF
33975cat confdefs.h >>conftest.$ac_ext
33976cat >>conftest.$ac_ext <<_ACEOF
33977/* end confdefs.h. */
33978
33979/* Override any gcc2 internal prototype to avoid an error. */
33980#ifdef __cplusplus
33981extern "C"
33982#endif
33983/* We use char because int might match the return type of a gcc2
33984 builtin and then its argument prototype would still apply. */
33985char inet_addr ();
33986int
33987main ()
33988{
33989inet_addr ();
33990 ;
33991 return 0;
33992}
33993_ACEOF
33994rm -f conftest.$ac_objext conftest$ac_exeext
33995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33996 (eval $ac_link) 2>conftest.er1
a848cd7e 33997 ac_status=$?
ac1cb8d3
VS
33998 grep -v '^ *+' conftest.er1 >conftest.err
33999 rm -f conftest.er1
34000 cat conftest.err >&5
a848cd7e
SC
34001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34002 (exit $ac_status); } &&
6ebeb4c7 34003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34005 (eval $ac_try) 2>&5
34006 ac_status=$?
34007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34008 (exit $ac_status); }; } &&
34009 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34011 (eval $ac_try) 2>&5
34012 ac_status=$?
34013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34014 (exit $ac_status); }; }; then
34015 ac_cv_lib_resolv_inet_addr=yes
34016else
34017 echo "$as_me: failed program was:" >&5
34018sed 's/^/| /' conftest.$ac_ext >&5
34019
34020ac_cv_lib_resolv_inet_addr=no
34021fi
ac1cb8d3
VS
34022rm -f conftest.err conftest.$ac_objext \
34023 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34024LIBS=$ac_check_lib_save_LIBS
34025fi
34026echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
34027echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
34028if test $ac_cv_lib_resolv_inet_addr = yes; then
34029 INET_LINK="resolv"
34030else
34031
34032 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
34033echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
34034if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
34035 echo $ECHO_N "(cached) $ECHO_C" >&6
34036else
34037 ac_check_lib_save_LIBS=$LIBS
34038LIBS="-lsocket $LIBS"
34039cat >conftest.$ac_ext <<_ACEOF
34040/* confdefs.h. */
34041_ACEOF
34042cat confdefs.h >>conftest.$ac_ext
34043cat >>conftest.$ac_ext <<_ACEOF
34044/* end confdefs.h. */
34045
34046/* Override any gcc2 internal prototype to avoid an error. */
34047#ifdef __cplusplus
34048extern "C"
34049#endif
34050/* We use char because int might match the return type of a gcc2
34051 builtin and then its argument prototype would still apply. */
34052char inet_addr ();
34053int
34054main ()
34055{
34056inet_addr ();
34057 ;
34058 return 0;
34059}
34060_ACEOF
34061rm -f conftest.$ac_objext conftest$ac_exeext
34062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34063 (eval $ac_link) 2>conftest.er1
a848cd7e 34064 ac_status=$?
ac1cb8d3
VS
34065 grep -v '^ *+' conftest.er1 >conftest.err
34066 rm -f conftest.er1
34067 cat conftest.err >&5
a848cd7e
SC
34068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34069 (exit $ac_status); } &&
6ebeb4c7 34070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34072 (eval $ac_try) 2>&5
34073 ac_status=$?
34074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34075 (exit $ac_status); }; } &&
34076 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34078 (eval $ac_try) 2>&5
34079 ac_status=$?
34080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34081 (exit $ac_status); }; }; then
34082 ac_cv_lib_socket_inet_addr=yes
34083else
34084 echo "$as_me: failed program was:" >&5
34085sed 's/^/| /' conftest.$ac_ext >&5
34086
34087ac_cv_lib_socket_inet_addr=no
34088fi
ac1cb8d3
VS
34089rm -f conftest.err conftest.$ac_objext \
34090 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34091LIBS=$ac_check_lib_save_LIBS
34092fi
34093echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
34094echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
34095if test $ac_cv_lib_socket_inet_addr = yes; then
34096 INET_LINK="socket"
34097
34098fi
34099
34100
34101
34102fi
34103
34104
34105
34106fi
34107
34108
34109
34110fi
34111done
34112
34113
34114
34115for ac_func in inet_aton
34116do
34117as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34118echo "$as_me:$LINENO: checking for $ac_func" >&5
34119echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34120if eval "test \"\${$as_ac_var+set}\" = set"; then
34121 echo $ECHO_N "(cached) $ECHO_C" >&6
34122else
34123 cat >conftest.$ac_ext <<_ACEOF
34124/* confdefs.h. */
34125_ACEOF
34126cat confdefs.h >>conftest.$ac_ext
34127cat >>conftest.$ac_ext <<_ACEOF
34128/* end confdefs.h. */
ac1cb8d3
VS
34129/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34131#define $ac_func innocuous_$ac_func
34132
a848cd7e
SC
34133/* System header to define __stub macros and hopefully few prototypes,
34134 which can conflict with char $ac_func (); below.
34135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34136 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34137
a848cd7e
SC
34138#ifdef __STDC__
34139# include <limits.h>
34140#else
34141# include <assert.h>
34142#endif
ac1cb8d3
VS
34143
34144#undef $ac_func
34145
a848cd7e
SC
34146/* Override any gcc2 internal prototype to avoid an error. */
34147#ifdef __cplusplus
34148extern "C"
34149{
34150#endif
34151/* We use char because int might match the return type of a gcc2
34152 builtin and then its argument prototype would still apply. */
34153char $ac_func ();
34154/* The GNU C library defines this for functions which it implements
34155 to always fail with ENOSYS. Some functions are actually named
34156 something starting with __ and the normal name is an alias. */
34157#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34158choke me
34159#else
34160char (*f) () = $ac_func;
34161#endif
34162#ifdef __cplusplus
34163}
34164#endif
34165
34166int
34167main ()
34168{
34169return f != $ac_func;
34170 ;
34171 return 0;
34172}
34173_ACEOF
34174rm -f conftest.$ac_objext conftest$ac_exeext
34175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34176 (eval $ac_link) 2>conftest.er1
a848cd7e 34177 ac_status=$?
ac1cb8d3
VS
34178 grep -v '^ *+' conftest.er1 >conftest.err
34179 rm -f conftest.er1
34180 cat conftest.err >&5
a848cd7e
SC
34181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34182 (exit $ac_status); } &&
6ebeb4c7 34183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34185 (eval $ac_try) 2>&5
34186 ac_status=$?
34187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34188 (exit $ac_status); }; } &&
34189 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34191 (eval $ac_try) 2>&5
34192 ac_status=$?
34193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34194 (exit $ac_status); }; }; then
34195 eval "$as_ac_var=yes"
34196else
34197 echo "$as_me: failed program was:" >&5
34198sed 's/^/| /' conftest.$ac_ext >&5
34199
34200eval "$as_ac_var=no"
34201fi
ac1cb8d3
VS
34202rm -f conftest.err conftest.$ac_objext \
34203 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34204fi
34205echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34206echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34207if test `eval echo '${'$as_ac_var'}'` = yes; then
34208 cat >>confdefs.h <<_ACEOF
34209#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34210_ACEOF
34211 cat >>confdefs.h <<\_ACEOF
34212#define HAVE_INET_ATON 1
34213_ACEOF
34214
34215else
34216
34217 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
34218echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
34219echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
34220if eval "test \"\${$as_ac_Lib+set}\" = set"; then
34221 echo $ECHO_N "(cached) $ECHO_C" >&6
34222else
34223 ac_check_lib_save_LIBS=$LIBS
34224LIBS="-l$INET_LINK $LIBS"
34225cat >conftest.$ac_ext <<_ACEOF
34226/* confdefs.h. */
34227_ACEOF
34228cat confdefs.h >>conftest.$ac_ext
34229cat >>conftest.$ac_ext <<_ACEOF
34230/* end confdefs.h. */
34231
34232/* Override any gcc2 internal prototype to avoid an error. */
34233#ifdef __cplusplus
34234extern "C"
34235#endif
34236/* We use char because int might match the return type of a gcc2
34237 builtin and then its argument prototype would still apply. */
34238char inet_aton ();
34239int
34240main ()
34241{
34242inet_aton ();
34243 ;
34244 return 0;
34245}
34246_ACEOF
34247rm -f conftest.$ac_objext conftest$ac_exeext
34248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34249 (eval $ac_link) 2>conftest.er1
a848cd7e 34250 ac_status=$?
ac1cb8d3
VS
34251 grep -v '^ *+' conftest.er1 >conftest.err
34252 rm -f conftest.er1
34253 cat conftest.err >&5
a848cd7e
SC
34254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34255 (exit $ac_status); } &&
6ebeb4c7 34256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34258 (eval $ac_try) 2>&5
34259 ac_status=$?
34260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34261 (exit $ac_status); }; } &&
34262 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34264 (eval $ac_try) 2>&5
34265 ac_status=$?
34266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34267 (exit $ac_status); }; }; then
34268 eval "$as_ac_Lib=yes"
34269else
34270 echo "$as_me: failed program was:" >&5
34271sed 's/^/| /' conftest.$ac_ext >&5
34272
34273eval "$as_ac_Lib=no"
34274fi
ac1cb8d3
VS
34275rm -f conftest.err conftest.$ac_objext \
34276 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34277LIBS=$ac_check_lib_save_LIBS
34278fi
34279echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
34280echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
34281if test `eval echo '${'$as_ac_Lib'}'` = yes; then
34282 cat >>confdefs.h <<\_ACEOF
34283#define HAVE_INET_ATON 1
34284_ACEOF
34285
34286fi
34287
34288
34289fi
34290done
34291
34292
34293if test "x$INET_LINK" != "x"; then
34294 cat >>confdefs.h <<\_ACEOF
34295#define HAVE_INET_ADDR 1
34296_ACEOF
34297
34298 INET_LINK=" -l$INET_LINK"
34299fi
34300
34301fi
34302
34303
34304
34305EXTRALIBS_ESD=
34306echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
34307echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
34308if test "${ac_cv_lib_esd_esd_close+set}" = set; then
34309 echo $ECHO_N "(cached) $ECHO_C" >&6
34310else
34311 ac_check_lib_save_LIBS=$LIBS
34312LIBS="-lesd $LIBS"
34313cat >conftest.$ac_ext <<_ACEOF
34314/* confdefs.h. */
34315_ACEOF
34316cat confdefs.h >>conftest.$ac_ext
34317cat >>conftest.$ac_ext <<_ACEOF
34318/* end confdefs.h. */
34319
34320/* Override any gcc2 internal prototype to avoid an error. */
34321#ifdef __cplusplus
34322extern "C"
34323#endif
34324/* We use char because int might match the return type of a gcc2
34325 builtin and then its argument prototype would still apply. */
34326char esd_close ();
34327int
34328main ()
34329{
34330esd_close ();
34331 ;
34332 return 0;
34333}
34334_ACEOF
34335rm -f conftest.$ac_objext conftest$ac_exeext
34336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34337 (eval $ac_link) 2>conftest.er1
a848cd7e 34338 ac_status=$?
ac1cb8d3
VS
34339 grep -v '^ *+' conftest.er1 >conftest.err
34340 rm -f conftest.er1
34341 cat conftest.err >&5
a848cd7e
SC
34342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34343 (exit $ac_status); } &&
6ebeb4c7 34344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34346 (eval $ac_try) 2>&5
34347 ac_status=$?
34348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34349 (exit $ac_status); }; } &&
34350 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34352 (eval $ac_try) 2>&5
34353 ac_status=$?
34354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34355 (exit $ac_status); }; }; then
34356 ac_cv_lib_esd_esd_close=yes
34357else
34358 echo "$as_me: failed program was:" >&5
34359sed 's/^/| /' conftest.$ac_ext >&5
34360
34361ac_cv_lib_esd_esd_close=no
34362fi
ac1cb8d3
VS
34363rm -f conftest.err conftest.$ac_objext \
34364 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34365LIBS=$ac_check_lib_save_LIBS
34366fi
34367echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
34368echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
34369if test $ac_cv_lib_esd_esd_close = yes; then
34370
34371
34372for ac_header in esd.h
34373do
34374as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34375if eval "test \"\${$as_ac_Header+set}\" = set"; then
34376 echo "$as_me:$LINENO: checking for $ac_header" >&5
34377echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34378if eval "test \"\${$as_ac_Header+set}\" = set"; then
34379 echo $ECHO_N "(cached) $ECHO_C" >&6
34380fi
34381echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34382echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34383else
34384 # Is the header compilable?
34385echo "$as_me:$LINENO: checking $ac_header usability" >&5
34386echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34387cat >conftest.$ac_ext <<_ACEOF
34388/* confdefs.h. */
34389_ACEOF
34390cat confdefs.h >>conftest.$ac_ext
34391cat >>conftest.$ac_ext <<_ACEOF
34392/* end confdefs.h. */
34393$ac_includes_default
34394#include <$ac_header>
34395_ACEOF
34396rm -f conftest.$ac_objext
34397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34398 (eval $ac_compile) 2>conftest.er1
a848cd7e 34399 ac_status=$?
ac1cb8d3
VS
34400 grep -v '^ *+' conftest.er1 >conftest.err
34401 rm -f conftest.er1
34402 cat conftest.err >&5
a848cd7e
SC
34403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34404 (exit $ac_status); } &&
6ebeb4c7 34405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34407 (eval $ac_try) 2>&5
34408 ac_status=$?
34409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34410 (exit $ac_status); }; } &&
34411 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34413 (eval $ac_try) 2>&5
34414 ac_status=$?
34415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34416 (exit $ac_status); }; }; then
34417 ac_header_compiler=yes
34418else
34419 echo "$as_me: failed program was:" >&5
34420sed 's/^/| /' conftest.$ac_ext >&5
34421
34422ac_header_compiler=no
34423fi
ac1cb8d3 34424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34425echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34426echo "${ECHO_T}$ac_header_compiler" >&6
34427
34428# Is the header present?
34429echo "$as_me:$LINENO: checking $ac_header presence" >&5
34430echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34431cat >conftest.$ac_ext <<_ACEOF
34432/* confdefs.h. */
34433_ACEOF
34434cat confdefs.h >>conftest.$ac_ext
34435cat >>conftest.$ac_ext <<_ACEOF
34436/* end confdefs.h. */
34437#include <$ac_header>
34438_ACEOF
34439if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34440 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34441 ac_status=$?
34442 grep -v '^ *+' conftest.er1 >conftest.err
34443 rm -f conftest.er1
34444 cat conftest.err >&5
34445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34446 (exit $ac_status); } >/dev/null; then
34447 if test -s conftest.err; then
34448 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34449 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34450 else
34451 ac_cpp_err=
34452 fi
34453else
34454 ac_cpp_err=yes
34455fi
34456if test -z "$ac_cpp_err"; then
34457 ac_header_preproc=yes
34458else
34459 echo "$as_me: failed program was:" >&5
34460sed 's/^/| /' conftest.$ac_ext >&5
34461
34462 ac_header_preproc=no
34463fi
34464rm -f conftest.err conftest.$ac_ext
34465echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34466echo "${ECHO_T}$ac_header_preproc" >&6
34467
34468# So? What about this header?
ac1cb8d3
VS
34469case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34470 yes:no: )
a848cd7e
SC
34471 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34472echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34474echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34475 ac_header_preproc=yes
a848cd7e 34476 ;;
ac1cb8d3 34477 no:yes:* )
a848cd7e
SC
34478 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34479echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34480 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34481echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34482 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34483echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34484 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34485echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34487echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34488 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34489echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34490 (
34491 cat <<\_ASBOX
ac1cb8d3
VS
34492## ----------------------------------------- ##
34493## Report this to wx-dev@lists.wxwidgets.org ##
34494## ----------------------------------------- ##
a848cd7e
SC
34495_ASBOX
34496 ) |
34497 sed "s/^/$as_me: WARNING: /" >&2
34498 ;;
34499esac
34500echo "$as_me:$LINENO: checking for $ac_header" >&5
34501echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34502if eval "test \"\${$as_ac_Header+set}\" = set"; then
34503 echo $ECHO_N "(cached) $ECHO_C" >&6
34504else
ac1cb8d3 34505 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34506fi
34507echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34508echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34509
34510fi
34511if test `eval echo '${'$as_ac_Header'}'` = yes; then
34512 cat >>confdefs.h <<_ACEOF
34513#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34514_ACEOF
34515
34516 EXTRALIBS_ESD="-lesd"
34517
34518fi
34519
34520done
34521
34522
34523fi
34524
34525
34526
34527echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
34528echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
34529cat >conftest.$ac_ext <<_ACEOF
34530/* confdefs.h. */
34531_ACEOF
34532cat confdefs.h >>conftest.$ac_ext
34533cat >>conftest.$ac_ext <<_ACEOF
34534/* end confdefs.h. */
34535#ifdef __linux__
34536 #include <linux/cdrom.h>
34537 #else
34538 /* For Solaris */
34539 #include <sys/cdio.h>
34540 #endif
34541
34542int
34543main ()
34544{
34545struct cdrom_tocentry entry, old_entry;
34546 ;
34547 return 0;
34548}
34549_ACEOF
34550rm -f conftest.$ac_objext
34551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34552 (eval $ac_compile) 2>conftest.er1
a848cd7e 34553 ac_status=$?
ac1cb8d3
VS
34554 grep -v '^ *+' conftest.er1 >conftest.err
34555 rm -f conftest.er1
34556 cat conftest.err >&5
a848cd7e
SC
34557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34558 (exit $ac_status); } &&
6ebeb4c7 34559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34561 (eval $ac_try) 2>&5
34562 ac_status=$?
34563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34564 (exit $ac_status); }; } &&
34565 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34567 (eval $ac_try) 2>&5
34568 ac_status=$?
34569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34570 (exit $ac_status); }; }; then
34571 echo "$as_me:$LINENO: result: yes" >&5
34572echo "${ECHO_T}yes" >&6
34573 cat >>confdefs.h <<\_ACEOF
34574#define HAVE_KNOWN_CDROM_INTERFACE 1
34575_ACEOF
34576
34577else
34578 echo "$as_me: failed program was:" >&5
34579sed 's/^/| /' conftest.$ac_ext >&5
34580
34581echo "$as_me:$LINENO: result: no" >&5
34582echo "${ECHO_T}no" >&6
34583fi
ac1cb8d3 34584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34585
34586
34587cat >confcache <<\_ACEOF
34588# This file is a shell script that caches the results of configure
34589# tests run on this system so they can be shared between configure
34590# scripts and configure runs, see configure's option --config-cache.
34591# It is not useful on other systems. If it contains results you don't
34592# want to keep, you may remove or edit it.
34593#
34594# config.status only pays attention to the cache file if you give it
34595# the --recheck option to rerun configure.
34596#
34597# `ac_cv_env_foo' variables (set or unset) will be overridden when
34598# loading this file, other *unset* `ac_cv_foo' will be assigned the
34599# following values.
34600
34601_ACEOF
34602
34603# The following way of writing the cache mishandles newlines in values,
34604# but we know of no workaround that is simple, portable, and efficient.
34605# So, don't put newlines in cache variables' values.
34606# Ultrix sh set writes to stderr and can't be redirected directly,
34607# and sets the high bit in the cache file unless we assign to the vars.
34608{
34609 (set) 2>&1 |
34610 case `(ac_space=' '; set | grep ac_space) 2>&1` in
34611 *ac_space=\ *)
34612 # `set' does not quote correctly, so add quotes (double-quote
34613 # substitution turns \\\\ into \\, and sed turns \\ into \).
34614 sed -n \
ac1cb8d3
VS
34615 "s/'/'\\\\''/g;
34616 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
34617 ;;
34618 *)
34619 # `set' quotes correctly as required by POSIX, so do not add quotes.
34620 sed -n \
ac1cb8d3 34621 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
34622 ;;
34623 esac;
34624} |
34625 sed '
34626 t clear
34627 : clear
34628 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34629 t end
34630 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34631 : end' >>confcache
34632if diff $cache_file confcache >/dev/null 2>&1; then :; else
34633 if test -w $cache_file; then
34634 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
34635 cat confcache >$cache_file
34636 else
34637 echo "not updating unwritable cache $cache_file"
34638 fi
34639fi
34640rm -f confcache
34641
34642
34643CPP_MT_FLAG=
34644if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
34645
34646
34647 THREADS_LINK=
34648 THREADS_CFLAGS=
34649
34650 if test "$wxUSE_THREADS" = "yes" ; then
34651 if test "$USE_BEOS" = 1; then
34652 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
34653echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
34654 wxUSE_THREADS="no"
34655 fi
34656 fi
34657
34658 if test "$wxUSE_THREADS" = "yes" ; then
34659
34660
34661 THREAD_OPTS="-pthread"
34662 case "${host}" in
34663 *-*-solaris2* | *-*-sunos4* )
34664 if test "x$GCC" = "xyes"; then
34665 THREAD_OPTS="-pthreads $THREAD_OPTS"
34666 else
34667 THREAD_OPTS="-mt $THREAD_OPTS"
34668 fi
34669 ;;
34670 *-*-freebsd*)
34671 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
34672 ;;
34673 *-*-darwin* | *-*-cygwin* )
34674 THREAD_OPTS=""
34675 ;;
34676 *-*-aix*)
34677 THREAD_OPTS="pthreads"
34678 ;;
34679 *-hp-hpux* )
efdf6afe
VZ
34680 if test "x$GCC" = "xyes"; then
34681 THREAD_OPTS="-threads"
34682 fi
34683 THREAD_OPTS=""
a848cd7e
SC
34684 fi
34685 ;;
34686
34687 *-*-irix* )
34688 if test "x$GCC" = "xyes"; then
34689 THREAD_OPTS=""
34690 fi
34691 ;;
34692
34693 *-*-*UnixWare*)
34694 if test "x$GCC" != "xyes"; then
34695 THREAD_OPTS="-Ethread"
34696 fi
34697 ;;
34698 esac
34699
34700 THREAD_OPTS="$THREAD_OPTS pthread none"
34701
34702 THREADS_OK=no
34703 for flag in $THREAD_OPTS; do
34704 case $flag in
34705 none)
34706 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
34707echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
34708 ;;
34709
34710 -*)
34711 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
34712echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
34713 THREADS_CFLAGS="$flag"
34714 ;;
34715
34716 *)
34717 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
34718echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
34719 THREADS_LINK="-l$flag"
34720 ;;
34721 esac
34722
34723 save_LIBS="$LIBS"
34724 save_CFLAGS="$CFLAGS"
34725 LIBS="$THREADS_LINK $LIBS"
34726 CFLAGS="$THREADS_CFLAGS $CFLAGS"
34727
34728 cat >conftest.$ac_ext <<_ACEOF
34729/* confdefs.h. */
34730_ACEOF
34731cat confdefs.h >>conftest.$ac_ext
34732cat >>conftest.$ac_ext <<_ACEOF
34733/* end confdefs.h. */
34734#include <pthread.h>
34735int
34736main ()
34737{
34738pthread_create(0,0,0,0);
34739 ;
34740 return 0;
34741}
34742_ACEOF
34743rm -f conftest.$ac_objext conftest$ac_exeext
34744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34745 (eval $ac_link) 2>conftest.er1
a848cd7e 34746 ac_status=$?
ac1cb8d3
VS
34747 grep -v '^ *+' conftest.er1 >conftest.err
34748 rm -f conftest.er1
34749 cat conftest.err >&5
a848cd7e
SC
34750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34751 (exit $ac_status); } &&
6ebeb4c7 34752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34754 (eval $ac_try) 2>&5
34755 ac_status=$?
34756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34757 (exit $ac_status); }; } &&
34758 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34760 (eval $ac_try) 2>&5
34761 ac_status=$?
34762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34763 (exit $ac_status); }; }; then
34764 THREADS_OK=yes
34765else
34766 echo "$as_me: failed program was:" >&5
34767sed 's/^/| /' conftest.$ac_ext >&5
34768
34769fi
ac1cb8d3
VS
34770rm -f conftest.err conftest.$ac_objext \
34771 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34772
34773 LIBS="$save_LIBS"
34774 CFLAGS="$save_CFLAGS"
34775
34776 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
34777echo "${ECHO_T}$THREADS_OK" >&6
34778 if test "x$THREADS_OK" = "xyes"; then
34779 break;
34780 fi
34781
34782 THREADS_LINK=""
34783 THREADS_CFLAGS=""
34784 done
34785
34786 if test "x$THREADS_OK" != "xyes"; then
34787 wxUSE_THREADS=no
34788 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
34789echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
34790 else
34791 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
34792 LIBS="$THREADS_LINK $LIBS"
34793
34794 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
34795echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
34796 flag=no
34797 case "${host}" in
34798 *-aix*)
34799 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
34800 flag="-D_THREAD_SAFE"
34801 ;;
34802 *-freebsd*)
34803 flag="-D_THREAD_SAFE"
34804 ;;
34805 *-hp-hpux* )
34806 flag="-D_REENTRANT"
34807 if test "x$GCC" != "xyes"; then
34808 flag="$flag -D_RWSTD_MULTI_THREAD"
34809 fi
34810 ;;
34811 *solaris* | alpha*-osf*)
34812 flag="-D_REENTRANT"
34813 ;;
34814 esac
34815 echo "$as_me:$LINENO: result: ${flag}" >&5
34816echo "${ECHO_T}${flag}" >&6
34817 if test "x$flag" != xno; then
34818 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
34819 fi
34820
34821 if test "x$THREADS_CFLAGS" != "x"; then
34822 CFLAGS="$CFLAGS $THREADS_CFLAGS"
34823 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
34824 fi
34825 fi
34826 fi
34827
34828 if test "$wxUSE_THREADS" = "yes" ; then
34829
34830for ac_func in thr_setconcurrency
34831do
34832as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34833echo "$as_me:$LINENO: checking for $ac_func" >&5
34834echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34835if eval "test \"\${$as_ac_var+set}\" = set"; then
34836 echo $ECHO_N "(cached) $ECHO_C" >&6
34837else
34838 cat >conftest.$ac_ext <<_ACEOF
34839/* confdefs.h. */
34840_ACEOF
34841cat confdefs.h >>conftest.$ac_ext
34842cat >>conftest.$ac_ext <<_ACEOF
34843/* end confdefs.h. */
ac1cb8d3
VS
34844/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34846#define $ac_func innocuous_$ac_func
34847
a848cd7e
SC
34848/* System header to define __stub macros and hopefully few prototypes,
34849 which can conflict with char $ac_func (); below.
34850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34851 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34852
a848cd7e
SC
34853#ifdef __STDC__
34854# include <limits.h>
34855#else
34856# include <assert.h>
34857#endif
ac1cb8d3
VS
34858
34859#undef $ac_func
34860
a848cd7e
SC
34861/* Override any gcc2 internal prototype to avoid an error. */
34862#ifdef __cplusplus
34863extern "C"
34864{
34865#endif
34866/* We use char because int might match the return type of a gcc2
34867 builtin and then its argument prototype would still apply. */
34868char $ac_func ();
34869/* The GNU C library defines this for functions which it implements
34870 to always fail with ENOSYS. Some functions are actually named
34871 something starting with __ and the normal name is an alias. */
34872#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34873choke me
34874#else
34875char (*f) () = $ac_func;
34876#endif
34877#ifdef __cplusplus
34878}
34879#endif
34880
34881int
34882main ()
34883{
34884return f != $ac_func;
34885 ;
34886 return 0;
34887}
34888_ACEOF
34889rm -f conftest.$ac_objext conftest$ac_exeext
34890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34891 (eval $ac_link) 2>conftest.er1
a848cd7e 34892 ac_status=$?
ac1cb8d3
VS
34893 grep -v '^ *+' conftest.er1 >conftest.err
34894 rm -f conftest.er1
34895 cat conftest.err >&5
a848cd7e
SC
34896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34897 (exit $ac_status); } &&
6ebeb4c7 34898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34900 (eval $ac_try) 2>&5
34901 ac_status=$?
34902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34903 (exit $ac_status); }; } &&
34904 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34906 (eval $ac_try) 2>&5
34907 ac_status=$?
34908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34909 (exit $ac_status); }; }; then
34910 eval "$as_ac_var=yes"
34911else
34912 echo "$as_me: failed program was:" >&5
34913sed 's/^/| /' conftest.$ac_ext >&5
34914
34915eval "$as_ac_var=no"
34916fi
ac1cb8d3
VS
34917rm -f conftest.err conftest.$ac_objext \
34918 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34919fi
34920echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34921echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34922if test `eval echo '${'$as_ac_var'}'` = yes; then
34923 cat >>confdefs.h <<_ACEOF
34924#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34925_ACEOF
34926
34927fi
34928done
34929
34930
6ebeb4c7
VZ
34931 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
34932echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
34933if test "${wx_cv_func_pthread_cleanup+set}" = set; then
34934 echo $ECHO_N "(cached) $ECHO_C" >&6
34935else
34936
34937 cat >conftest.$ac_ext <<_ACEOF
34938/* confdefs.h. */
34939_ACEOF
34940cat confdefs.h >>conftest.$ac_ext
34941cat >>conftest.$ac_ext <<_ACEOF
34942/* end confdefs.h. */
34943#include <pthread.h>
34944 void ThreadCleanupFunc(void *p);
34945
34946int
34947main ()
34948{
34949
34950 void *p;
34951 pthread_cleanup_push(ThreadCleanupFunc, p);
34952 pthread_cleanup_pop(0);
34953
34954 ;
34955 return 0;
34956}
34957_ACEOF
34958rm -f conftest.$ac_objext
34959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34960 (eval $ac_compile) 2>conftest.er1
34961 ac_status=$?
34962 grep -v '^ *+' conftest.er1 >conftest.err
34963 rm -f conftest.er1
34964 cat conftest.err >&5
34965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34966 (exit $ac_status); } &&
34967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34969 (eval $ac_try) 2>&5
34970 ac_status=$?
34971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34972 (exit $ac_status); }; } &&
34973 { ac_try='test -s conftest.$ac_objext'
34974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34975 (eval $ac_try) 2>&5
34976 ac_status=$?
34977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34978 (exit $ac_status); }; }; then
34979
34980 wx_cv_func_pthread_cleanup=yes
34981
34982else
34983 echo "$as_me: failed program was:" >&5
34984sed 's/^/| /' conftest.$ac_ext >&5
34985
34986
34987 wx_cv_func_pthread_cleanup=no
34988
34989
34990fi
34991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34992
34993fi
34994echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
34995echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
34996 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
34997 cat >>confdefs.h <<\_ACEOF
34998#define wxHAVE_PTHREAD_CLEANUP 1
34999_ACEOF
35000
35001 fi
35002
a848cd7e
SC
35003
35004for ac_header in sched.h
35005do
35006as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35007if eval "test \"\${$as_ac_Header+set}\" = set"; then
35008 echo "$as_me:$LINENO: checking for $ac_header" >&5
35009echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35010if eval "test \"\${$as_ac_Header+set}\" = set"; then
35011 echo $ECHO_N "(cached) $ECHO_C" >&6
35012fi
35013echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35014echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35015else
35016 # Is the header compilable?
35017echo "$as_me:$LINENO: checking $ac_header usability" >&5
35018echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35019cat >conftest.$ac_ext <<_ACEOF
35020/* confdefs.h. */
35021_ACEOF
35022cat confdefs.h >>conftest.$ac_ext
35023cat >>conftest.$ac_ext <<_ACEOF
35024/* end confdefs.h. */
35025$ac_includes_default
35026#include <$ac_header>
35027_ACEOF
35028rm -f conftest.$ac_objext
35029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35030 (eval $ac_compile) 2>conftest.er1
a848cd7e 35031 ac_status=$?
ac1cb8d3
VS
35032 grep -v '^ *+' conftest.er1 >conftest.err
35033 rm -f conftest.er1
35034 cat conftest.err >&5
a848cd7e
SC
35035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35036 (exit $ac_status); } &&
6ebeb4c7 35037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35039 (eval $ac_try) 2>&5
35040 ac_status=$?
35041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35042 (exit $ac_status); }; } &&
35043 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35045 (eval $ac_try) 2>&5
35046 ac_status=$?
35047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35048 (exit $ac_status); }; }; then
35049 ac_header_compiler=yes
35050else
35051 echo "$as_me: failed program was:" >&5
35052sed 's/^/| /' conftest.$ac_ext >&5
35053
35054ac_header_compiler=no
35055fi
ac1cb8d3 35056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35057echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35058echo "${ECHO_T}$ac_header_compiler" >&6
35059
35060# Is the header present?
35061echo "$as_me:$LINENO: checking $ac_header presence" >&5
35062echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35063cat >conftest.$ac_ext <<_ACEOF
35064/* confdefs.h. */
35065_ACEOF
35066cat confdefs.h >>conftest.$ac_ext
35067cat >>conftest.$ac_ext <<_ACEOF
35068/* end confdefs.h. */
35069#include <$ac_header>
35070_ACEOF
35071if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35073 ac_status=$?
35074 grep -v '^ *+' conftest.er1 >conftest.err
35075 rm -f conftest.er1
35076 cat conftest.err >&5
35077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35078 (exit $ac_status); } >/dev/null; then
35079 if test -s conftest.err; then
35080 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35082 else
35083 ac_cpp_err=
35084 fi
35085else
35086 ac_cpp_err=yes
35087fi
35088if test -z "$ac_cpp_err"; then
35089 ac_header_preproc=yes
35090else
35091 echo "$as_me: failed program was:" >&5
35092sed 's/^/| /' conftest.$ac_ext >&5
35093
35094 ac_header_preproc=no
35095fi
35096rm -f conftest.err conftest.$ac_ext
35097echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35098echo "${ECHO_T}$ac_header_preproc" >&6
35099
35100# So? What about this header?
ac1cb8d3
VS
35101case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35102 yes:no: )
a848cd7e
SC
35103 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35104echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35106echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35107 ac_header_preproc=yes
a848cd7e 35108 ;;
ac1cb8d3 35109 no:yes:* )
a848cd7e
SC
35110 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35111echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35112 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35113echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35114 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35115echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35116 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35117echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35119echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35120 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35121echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35122 (
35123 cat <<\_ASBOX
ac1cb8d3
VS
35124## ----------------------------------------- ##
35125## Report this to wx-dev@lists.wxwidgets.org ##
35126## ----------------------------------------- ##
a848cd7e
SC
35127_ASBOX
35128 ) |
35129 sed "s/^/$as_me: WARNING: /" >&2
35130 ;;
35131esac
35132echo "$as_me:$LINENO: checking for $ac_header" >&5
35133echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35134if eval "test \"\${$as_ac_Header+set}\" = set"; then
35135 echo $ECHO_N "(cached) $ECHO_C" >&6
35136else
ac1cb8d3 35137 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35138fi
35139echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35140echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35141
35142fi
35143if test `eval echo '${'$as_ac_Header'}'` = yes; then
35144 cat >>confdefs.h <<_ACEOF
35145#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35146_ACEOF
35147
35148fi
35149
35150done
35151
35152 if test "$ac_cv_header_sched_h" = "yes"; then
35153 echo "$as_me:$LINENO: checking for sched_yield" >&5
35154echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
35155if test "${ac_cv_func_sched_yield+set}" = set; then
35156 echo $ECHO_N "(cached) $ECHO_C" >&6
35157else
35158 cat >conftest.$ac_ext <<_ACEOF
35159/* confdefs.h. */
35160_ACEOF
35161cat confdefs.h >>conftest.$ac_ext
35162cat >>conftest.$ac_ext <<_ACEOF
35163/* end confdefs.h. */
ac1cb8d3
VS
35164/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
35165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35166#define sched_yield innocuous_sched_yield
35167
a848cd7e
SC
35168/* System header to define __stub macros and hopefully few prototypes,
35169 which can conflict with char sched_yield (); below.
35170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35171 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35172
a848cd7e
SC
35173#ifdef __STDC__
35174# include <limits.h>
35175#else
35176# include <assert.h>
35177#endif
ac1cb8d3
VS
35178
35179#undef sched_yield
35180
a848cd7e
SC
35181/* Override any gcc2 internal prototype to avoid an error. */
35182#ifdef __cplusplus
35183extern "C"
35184{
35185#endif
35186/* We use char because int might match the return type of a gcc2
35187 builtin and then its argument prototype would still apply. */
35188char sched_yield ();
35189/* The GNU C library defines this for functions which it implements
35190 to always fail with ENOSYS. Some functions are actually named
35191 something starting with __ and the normal name is an alias. */
35192#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
35193choke me
35194#else
35195char (*f) () = sched_yield;
35196#endif
35197#ifdef __cplusplus
35198}
35199#endif
35200
35201int
35202main ()
35203{
35204return f != sched_yield;
35205 ;
35206 return 0;
35207}
35208_ACEOF
35209rm -f conftest.$ac_objext conftest$ac_exeext
35210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35211 (eval $ac_link) 2>conftest.er1
a848cd7e 35212 ac_status=$?
ac1cb8d3
VS
35213 grep -v '^ *+' conftest.er1 >conftest.err
35214 rm -f conftest.er1
35215 cat conftest.err >&5
a848cd7e
SC
35216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35217 (exit $ac_status); } &&
6ebeb4c7 35218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35220 (eval $ac_try) 2>&5
35221 ac_status=$?
35222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35223 (exit $ac_status); }; } &&
35224 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35226 (eval $ac_try) 2>&5
35227 ac_status=$?
35228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35229 (exit $ac_status); }; }; then
35230 ac_cv_func_sched_yield=yes
35231else
35232 echo "$as_me: failed program was:" >&5
35233sed 's/^/| /' conftest.$ac_ext >&5
35234
35235ac_cv_func_sched_yield=no
35236fi
ac1cb8d3
VS
35237rm -f conftest.err conftest.$ac_objext \
35238 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35239fi
35240echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
35241echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
35242if test $ac_cv_func_sched_yield = yes; then
35243 cat >>confdefs.h <<\_ACEOF
35244#define HAVE_SCHED_YIELD 1
35245_ACEOF
35246
35247else
35248
35249 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
35250echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
35251if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
35252 echo $ECHO_N "(cached) $ECHO_C" >&6
35253else
35254 ac_check_lib_save_LIBS=$LIBS
35255LIBS="-lposix4 $LIBS"
35256cat >conftest.$ac_ext <<_ACEOF
35257/* confdefs.h. */
35258_ACEOF
35259cat confdefs.h >>conftest.$ac_ext
35260cat >>conftest.$ac_ext <<_ACEOF
35261/* end confdefs.h. */
35262
35263/* Override any gcc2 internal prototype to avoid an error. */
35264#ifdef __cplusplus
35265extern "C"
35266#endif
35267/* We use char because int might match the return type of a gcc2
35268 builtin and then its argument prototype would still apply. */
35269char sched_yield ();
35270int
35271main ()
35272{
35273sched_yield ();
35274 ;
35275 return 0;
35276}
35277_ACEOF
35278rm -f conftest.$ac_objext conftest$ac_exeext
35279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35280 (eval $ac_link) 2>conftest.er1
a848cd7e 35281 ac_status=$?
ac1cb8d3
VS
35282 grep -v '^ *+' conftest.er1 >conftest.err
35283 rm -f conftest.er1
35284 cat conftest.err >&5
a848cd7e
SC
35285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35286 (exit $ac_status); } &&
6ebeb4c7 35287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35289 (eval $ac_try) 2>&5
35290 ac_status=$?
35291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35292 (exit $ac_status); }; } &&
35293 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35295 (eval $ac_try) 2>&5
35296 ac_status=$?
35297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35298 (exit $ac_status); }; }; then
35299 ac_cv_lib_posix4_sched_yield=yes
35300else
35301 echo "$as_me: failed program was:" >&5
35302sed 's/^/| /' conftest.$ac_ext >&5
35303
35304ac_cv_lib_posix4_sched_yield=no
35305fi
ac1cb8d3
VS
35306rm -f conftest.err conftest.$ac_objext \
35307 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35308LIBS=$ac_check_lib_save_LIBS
35309fi
35310echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
35311echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
35312if test $ac_cv_lib_posix4_sched_yield = yes; then
35313 cat >>confdefs.h <<\_ACEOF
35314#define HAVE_SCHED_YIELD 1
35315_ACEOF
35316 POSIX4_LINK=" -lposix4"
35317else
35318 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
35319echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
35320
35321fi
35322
35323
35324
35325fi
35326
35327 fi
35328
35329 HAVE_PRIOR_FUNCS=0
35330 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
35331echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
35332if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
35333 echo $ECHO_N "(cached) $ECHO_C" >&6
35334else
35335 cat >conftest.$ac_ext <<_ACEOF
35336/* confdefs.h. */
35337_ACEOF
35338cat confdefs.h >>conftest.$ac_ext
35339cat >>conftest.$ac_ext <<_ACEOF
35340/* end confdefs.h. */
ac1cb8d3
VS
35341/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
35342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35343#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
35344
a848cd7e
SC
35345/* System header to define __stub macros and hopefully few prototypes,
35346 which can conflict with char pthread_attr_getschedpolicy (); below.
35347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35348 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35349
a848cd7e
SC
35350#ifdef __STDC__
35351# include <limits.h>
35352#else
35353# include <assert.h>
35354#endif
ac1cb8d3
VS
35355
35356#undef pthread_attr_getschedpolicy
35357
a848cd7e
SC
35358/* Override any gcc2 internal prototype to avoid an error. */
35359#ifdef __cplusplus
35360extern "C"
35361{
35362#endif
35363/* We use char because int might match the return type of a gcc2
35364 builtin and then its argument prototype would still apply. */
35365char pthread_attr_getschedpolicy ();
35366/* The GNU C library defines this for functions which it implements
35367 to always fail with ENOSYS. Some functions are actually named
35368 something starting with __ and the normal name is an alias. */
35369#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
35370choke me
35371#else
35372char (*f) () = pthread_attr_getschedpolicy;
35373#endif
35374#ifdef __cplusplus
35375}
35376#endif
35377
35378int
35379main ()
35380{
35381return f != pthread_attr_getschedpolicy;
35382 ;
35383 return 0;
35384}
35385_ACEOF
35386rm -f conftest.$ac_objext conftest$ac_exeext
35387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35388 (eval $ac_link) 2>conftest.er1
a848cd7e 35389 ac_status=$?
ac1cb8d3
VS
35390 grep -v '^ *+' conftest.er1 >conftest.err
35391 rm -f conftest.er1
35392 cat conftest.err >&5
a848cd7e
SC
35393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35394 (exit $ac_status); } &&
6ebeb4c7 35395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35397 (eval $ac_try) 2>&5
35398 ac_status=$?
35399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35400 (exit $ac_status); }; } &&
35401 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35403 (eval $ac_try) 2>&5
35404 ac_status=$?
35405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35406 (exit $ac_status); }; }; then
35407 ac_cv_func_pthread_attr_getschedpolicy=yes
35408else
35409 echo "$as_me: failed program was:" >&5
35410sed 's/^/| /' conftest.$ac_ext >&5
35411
35412ac_cv_func_pthread_attr_getschedpolicy=no
35413fi
ac1cb8d3
VS
35414rm -f conftest.err conftest.$ac_objext \
35415 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35416fi
35417echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
35418echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
35419if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
35420 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
35421echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
35422if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
35423 echo $ECHO_N "(cached) $ECHO_C" >&6
35424else
35425 cat >conftest.$ac_ext <<_ACEOF
35426/* confdefs.h. */
35427_ACEOF
35428cat confdefs.h >>conftest.$ac_ext
35429cat >>conftest.$ac_ext <<_ACEOF
35430/* end confdefs.h. */
ac1cb8d3
VS
35431/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
35432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35433#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
35434
a848cd7e
SC
35435/* System header to define __stub macros and hopefully few prototypes,
35436 which can conflict with char pthread_attr_setschedparam (); below.
35437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35438 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35439
a848cd7e
SC
35440#ifdef __STDC__
35441# include <limits.h>
35442#else
35443# include <assert.h>
35444#endif
ac1cb8d3
VS
35445
35446#undef pthread_attr_setschedparam
35447
a848cd7e
SC
35448/* Override any gcc2 internal prototype to avoid an error. */
35449#ifdef __cplusplus
35450extern "C"
35451{
35452#endif
35453/* We use char because int might match the return type of a gcc2
35454 builtin and then its argument prototype would still apply. */
35455char pthread_attr_setschedparam ();
35456/* The GNU C library defines this for functions which it implements
35457 to always fail with ENOSYS. Some functions are actually named
35458 something starting with __ and the normal name is an alias. */
35459#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
35460choke me
35461#else
35462char (*f) () = pthread_attr_setschedparam;
35463#endif
35464#ifdef __cplusplus
35465}
35466#endif
35467
35468int
35469main ()
35470{
35471return f != pthread_attr_setschedparam;
35472 ;
35473 return 0;
35474}
35475_ACEOF
35476rm -f conftest.$ac_objext conftest$ac_exeext
35477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35478 (eval $ac_link) 2>conftest.er1
a848cd7e 35479 ac_status=$?
ac1cb8d3
VS
35480 grep -v '^ *+' conftest.er1 >conftest.err
35481 rm -f conftest.er1
35482 cat conftest.err >&5
a848cd7e
SC
35483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35484 (exit $ac_status); } &&
6ebeb4c7 35485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35487 (eval $ac_try) 2>&5
35488 ac_status=$?
35489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35490 (exit $ac_status); }; } &&
35491 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35493 (eval $ac_try) 2>&5
35494 ac_status=$?
35495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35496 (exit $ac_status); }; }; then
35497 ac_cv_func_pthread_attr_setschedparam=yes
35498else
35499 echo "$as_me: failed program was:" >&5
35500sed 's/^/| /' conftest.$ac_ext >&5
35501
35502ac_cv_func_pthread_attr_setschedparam=no
35503fi
ac1cb8d3
VS
35504rm -f conftest.err conftest.$ac_objext \
35505 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35506fi
35507echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
35508echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
35509if test $ac_cv_func_pthread_attr_setschedparam = yes; then
35510 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
35511echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
35512if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
35513 echo $ECHO_N "(cached) $ECHO_C" >&6
35514else
35515 cat >conftest.$ac_ext <<_ACEOF
35516/* confdefs.h. */
35517_ACEOF
35518cat confdefs.h >>conftest.$ac_ext
35519cat >>conftest.$ac_ext <<_ACEOF
35520/* end confdefs.h. */
ac1cb8d3
VS
35521/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
35522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35523#define sched_get_priority_max innocuous_sched_get_priority_max
35524
a848cd7e
SC
35525/* System header to define __stub macros and hopefully few prototypes,
35526 which can conflict with char sched_get_priority_max (); below.
35527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35528 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35529
a848cd7e
SC
35530#ifdef __STDC__
35531# include <limits.h>
35532#else
35533# include <assert.h>
35534#endif
ac1cb8d3
VS
35535
35536#undef sched_get_priority_max
35537
a848cd7e
SC
35538/* Override any gcc2 internal prototype to avoid an error. */
35539#ifdef __cplusplus
35540extern "C"
35541{
35542#endif
35543/* We use char because int might match the return type of a gcc2
35544 builtin and then its argument prototype would still apply. */
35545char sched_get_priority_max ();
35546/* The GNU C library defines this for functions which it implements
35547 to always fail with ENOSYS. Some functions are actually named
35548 something starting with __ and the normal name is an alias. */
35549#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
35550choke me
35551#else
35552char (*f) () = sched_get_priority_max;
35553#endif
35554#ifdef __cplusplus
35555}
35556#endif
35557
35558int
35559main ()
35560{
35561return f != sched_get_priority_max;
35562 ;
35563 return 0;
35564}
35565_ACEOF
35566rm -f conftest.$ac_objext conftest$ac_exeext
35567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35568 (eval $ac_link) 2>conftest.er1
a848cd7e 35569 ac_status=$?
ac1cb8d3
VS
35570 grep -v '^ *+' conftest.er1 >conftest.err
35571 rm -f conftest.er1
35572 cat conftest.err >&5
a848cd7e
SC
35573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35574 (exit $ac_status); } &&
6ebeb4c7 35575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35577 (eval $ac_try) 2>&5
35578 ac_status=$?
35579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35580 (exit $ac_status); }; } &&
35581 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35583 (eval $ac_try) 2>&5
35584 ac_status=$?
35585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35586 (exit $ac_status); }; }; then
35587 ac_cv_func_sched_get_priority_max=yes
35588else
35589 echo "$as_me: failed program was:" >&5
35590sed 's/^/| /' conftest.$ac_ext >&5
35591
35592ac_cv_func_sched_get_priority_max=no
35593fi
ac1cb8d3
VS
35594rm -f conftest.err conftest.$ac_objext \
35595 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35596fi
35597echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
35598echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
35599if test $ac_cv_func_sched_get_priority_max = yes; then
35600 HAVE_PRIOR_FUNCS=1
35601else
35602 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
35603echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
35604if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
35605 echo $ECHO_N "(cached) $ECHO_C" >&6
35606else
35607 ac_check_lib_save_LIBS=$LIBS
35608LIBS="-lposix4 $LIBS"
35609cat >conftest.$ac_ext <<_ACEOF
35610/* confdefs.h. */
35611_ACEOF
35612cat confdefs.h >>conftest.$ac_ext
35613cat >>conftest.$ac_ext <<_ACEOF
35614/* end confdefs.h. */
35615
35616/* Override any gcc2 internal prototype to avoid an error. */
35617#ifdef __cplusplus
35618extern "C"
35619#endif
35620/* We use char because int might match the return type of a gcc2
35621 builtin and then its argument prototype would still apply. */
35622char sched_get_priority_max ();
35623int
35624main ()
35625{
35626sched_get_priority_max ();
35627 ;
35628 return 0;
35629}
35630_ACEOF
35631rm -f conftest.$ac_objext conftest$ac_exeext
35632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35633 (eval $ac_link) 2>conftest.er1
a848cd7e 35634 ac_status=$?
ac1cb8d3
VS
35635 grep -v '^ *+' conftest.er1 >conftest.err
35636 rm -f conftest.er1
35637 cat conftest.err >&5
a848cd7e
SC
35638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35639 (exit $ac_status); } &&
6ebeb4c7 35640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35642 (eval $ac_try) 2>&5
35643 ac_status=$?
35644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35645 (exit $ac_status); }; } &&
35646 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35648 (eval $ac_try) 2>&5
35649 ac_status=$?
35650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35651 (exit $ac_status); }; }; then
35652 ac_cv_lib_posix4_sched_get_priority_max=yes
35653else
35654 echo "$as_me: failed program was:" >&5
35655sed 's/^/| /' conftest.$ac_ext >&5
35656
35657ac_cv_lib_posix4_sched_get_priority_max=no
35658fi
ac1cb8d3
VS
35659rm -f conftest.err conftest.$ac_objext \
35660 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35661LIBS=$ac_check_lib_save_LIBS
35662fi
35663echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
35664echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
35665if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
35666
35667 HAVE_PRIOR_FUNCS=1
35668 POSIX4_LINK=" -lposix4"
35669
35670fi
35671
35672
35673fi
35674
35675
35676fi
35677
35678
35679fi
35680
35681
35682 if test "$HAVE_PRIOR_FUNCS" = 1; then
35683 cat >>confdefs.h <<\_ACEOF
35684#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
35685_ACEOF
35686
35687 else
35688 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
35689echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
35690 fi
35691
35692 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
35693echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
35694if test "${ac_cv_func_pthread_cancel+set}" = set; then
35695 echo $ECHO_N "(cached) $ECHO_C" >&6
35696else
35697 cat >conftest.$ac_ext <<_ACEOF
35698/* confdefs.h. */
35699_ACEOF
35700cat confdefs.h >>conftest.$ac_ext
35701cat >>conftest.$ac_ext <<_ACEOF
35702/* end confdefs.h. */
ac1cb8d3
VS
35703/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
35704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35705#define pthread_cancel innocuous_pthread_cancel
35706
a848cd7e
SC
35707/* System header to define __stub macros and hopefully few prototypes,
35708 which can conflict with char pthread_cancel (); below.
35709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35710 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35711
a848cd7e
SC
35712#ifdef __STDC__
35713# include <limits.h>
35714#else
35715# include <assert.h>
35716#endif
ac1cb8d3
VS
35717
35718#undef pthread_cancel
35719
a848cd7e
SC
35720/* Override any gcc2 internal prototype to avoid an error. */
35721#ifdef __cplusplus
35722extern "C"
35723{
35724#endif
35725/* We use char because int might match the return type of a gcc2
35726 builtin and then its argument prototype would still apply. */
35727char pthread_cancel ();
35728/* The GNU C library defines this for functions which it implements
35729 to always fail with ENOSYS. Some functions are actually named
35730 something starting with __ and the normal name is an alias. */
35731#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
35732choke me
35733#else
35734char (*f) () = pthread_cancel;
35735#endif
35736#ifdef __cplusplus
35737}
35738#endif
35739
35740int
35741main ()
35742{
35743return f != pthread_cancel;
35744 ;
35745 return 0;
35746}
35747_ACEOF
35748rm -f conftest.$ac_objext conftest$ac_exeext
35749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35750 (eval $ac_link) 2>conftest.er1
a848cd7e 35751 ac_status=$?
ac1cb8d3
VS
35752 grep -v '^ *+' conftest.er1 >conftest.err
35753 rm -f conftest.er1
35754 cat conftest.err >&5
a848cd7e
SC
35755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35756 (exit $ac_status); } &&
6ebeb4c7 35757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35759 (eval $ac_try) 2>&5
35760 ac_status=$?
35761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35762 (exit $ac_status); }; } &&
35763 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35765 (eval $ac_try) 2>&5
35766 ac_status=$?
35767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35768 (exit $ac_status); }; }; then
35769 ac_cv_func_pthread_cancel=yes
35770else
35771 echo "$as_me: failed program was:" >&5
35772sed 's/^/| /' conftest.$ac_ext >&5
35773
35774ac_cv_func_pthread_cancel=no
35775fi
ac1cb8d3
VS
35776rm -f conftest.err conftest.$ac_objext \
35777 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35778fi
35779echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
35780echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
35781if test $ac_cv_func_pthread_cancel = yes; then
35782 cat >>confdefs.h <<\_ACEOF
35783#define HAVE_PTHREAD_CANCEL 1
35784_ACEOF
35785
35786else
35787 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
35788echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
35789fi
35790
35791
abc736fd
MW
35792 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
35793echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
35794if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
35795 echo $ECHO_N "(cached) $ECHO_C" >&6
35796else
35797 cat >conftest.$ac_ext <<_ACEOF
35798/* confdefs.h. */
35799_ACEOF
35800cat confdefs.h >>conftest.$ac_ext
35801cat >>conftest.$ac_ext <<_ACEOF
35802/* end confdefs.h. */
35803/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
35804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35805#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
35806
35807/* System header to define __stub macros and hopefully few prototypes,
35808 which can conflict with char pthread_attr_setstacksize (); below.
35809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35810 <limits.h> exists even on freestanding compilers. */
35811
35812#ifdef __STDC__
35813# include <limits.h>
35814#else
35815# include <assert.h>
35816#endif
35817
35818#undef pthread_attr_setstacksize
35819
35820/* Override any gcc2 internal prototype to avoid an error. */
35821#ifdef __cplusplus
35822extern "C"
35823{
35824#endif
35825/* We use char because int might match the return type of a gcc2
35826 builtin and then its argument prototype would still apply. */
35827char pthread_attr_setstacksize ();
35828/* The GNU C library defines this for functions which it implements
35829 to always fail with ENOSYS. Some functions are actually named
35830 something starting with __ and the normal name is an alias. */
35831#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
35832choke me
35833#else
35834char (*f) () = pthread_attr_setstacksize;
35835#endif
35836#ifdef __cplusplus
35837}
35838#endif
35839
35840int
35841main ()
35842{
35843return f != pthread_attr_setstacksize;
35844 ;
35845 return 0;
35846}
35847_ACEOF
35848rm -f conftest.$ac_objext conftest$ac_exeext
35849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35850 (eval $ac_link) 2>conftest.er1
35851 ac_status=$?
35852 grep -v '^ *+' conftest.er1 >conftest.err
35853 rm -f conftest.er1
35854 cat conftest.err >&5
35855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35856 (exit $ac_status); } &&
6ebeb4c7 35857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
35858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35859 (eval $ac_try) 2>&5
35860 ac_status=$?
35861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35862 (exit $ac_status); }; } &&
35863 { ac_try='test -s conftest$ac_exeext'
35864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35865 (eval $ac_try) 2>&5
35866 ac_status=$?
35867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35868 (exit $ac_status); }; }; then
35869 ac_cv_func_pthread_attr_setstacksize=yes
35870else
35871 echo "$as_me: failed program was:" >&5
35872sed 's/^/| /' conftest.$ac_ext >&5
35873
35874ac_cv_func_pthread_attr_setstacksize=no
35875fi
35876rm -f conftest.err conftest.$ac_objext \
35877 conftest$ac_exeext conftest.$ac_ext
35878fi
35879echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
35880echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
35881if test $ac_cv_func_pthread_attr_setstacksize = yes; then
35882 cat >>confdefs.h <<\_ACEOF
35883#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
35884_ACEOF
35885
35886fi
35887
a848cd7e
SC
35888
35889
35890 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
35891echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
35892if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
35893 echo $ECHO_N "(cached) $ECHO_C" >&6
35894else
35895
35896 cat >conftest.$ac_ext <<_ACEOF
35897/* confdefs.h. */
35898_ACEOF
35899cat confdefs.h >>conftest.$ac_ext
35900cat >>conftest.$ac_ext <<_ACEOF
35901/* end confdefs.h. */
35902#include <pthread.h>
35903int
35904main ()
35905{
35906
35907 pthread_mutexattr_t attr;
35908 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
35909
35910 ;
35911 return 0;
35912}
35913_ACEOF
35914rm -f conftest.$ac_objext
35915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35916 (eval $ac_compile) 2>conftest.er1
a848cd7e 35917 ac_status=$?
ac1cb8d3
VS
35918 grep -v '^ *+' conftest.er1 >conftest.err
35919 rm -f conftest.er1
35920 cat conftest.err >&5
a848cd7e
SC
35921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35922 (exit $ac_status); } &&
6ebeb4c7 35923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35925 (eval $ac_try) 2>&5
35926 ac_status=$?
35927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35928 (exit $ac_status); }; } &&
35929 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35931 (eval $ac_try) 2>&5
35932 ac_status=$?
35933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35934 (exit $ac_status); }; }; then
35935
35936 wx_cv_type_pthread_mutexattr_t=yes
35937
35938else
35939 echo "$as_me: failed program was:" >&5
35940sed 's/^/| /' conftest.$ac_ext >&5
35941
35942
35943 wx_cv_type_pthread_mutexattr_t=no
35944
35945
35946fi
ac1cb8d3 35947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35948
35949fi
35950echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
35951echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
35952
35953 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
35954 cat >>confdefs.h <<\_ACEOF
35955#define HAVE_PTHREAD_MUTEXATTR_T 1
35956_ACEOF
35957
35958 else
35959 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
35960echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
35961if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
35962 echo $ECHO_N "(cached) $ECHO_C" >&6
35963else
35964
35965 cat >conftest.$ac_ext <<_ACEOF
35966/* confdefs.h. */
35967_ACEOF
35968cat confdefs.h >>conftest.$ac_ext
35969cat >>conftest.$ac_ext <<_ACEOF
35970/* end confdefs.h. */
35971#include <pthread.h>
35972int
35973main ()
35974{
35975
35976 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
35977
35978 ;
35979 return 0;
35980}
35981_ACEOF
35982rm -f conftest.$ac_objext
35983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35984 (eval $ac_compile) 2>conftest.er1
a848cd7e 35985 ac_status=$?
ac1cb8d3
VS
35986 grep -v '^ *+' conftest.er1 >conftest.err
35987 rm -f conftest.er1
35988 cat conftest.err >&5
a848cd7e
SC
35989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35990 (exit $ac_status); } &&
6ebeb4c7 35991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35993 (eval $ac_try) 2>&5
35994 ac_status=$?
35995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35996 (exit $ac_status); }; } &&
35997 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35999 (eval $ac_try) 2>&5
36000 ac_status=$?
36001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36002 (exit $ac_status); }; }; then
36003
36004 wx_cv_type_pthread_rec_mutex_init=yes
36005
36006else
36007 echo "$as_me: failed program was:" >&5
36008sed 's/^/| /' conftest.$ac_ext >&5
36009
36010
36011 wx_cv_type_pthread_rec_mutex_init=no
36012
36013
36014fi
ac1cb8d3 36015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36016
36017fi
36018echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
36019echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
36020 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
36021 cat >>confdefs.h <<\_ACEOF
36022#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
36023_ACEOF
36024
36025 else
36026 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
36027echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
36028 fi
36029 fi
36030 fi
36031
36032else
36033 if test "$wxUSE_THREADS" = "yes" ; then
36034 case "${host}" in
36035 *-*-mingw32* )
36036 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
36037echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
36038if test "${wx_cv_cflags_mthread+set}" = set; then
36039 echo $ECHO_N "(cached) $ECHO_C" >&6
36040else
36041
36042 CFLAGS_OLD="$CFLAGS"
36043 CFLAGS="$CFLAGS -mthreads"
36044 cat >conftest.$ac_ext <<_ACEOF
36045/* confdefs.h. */
36046_ACEOF
36047cat confdefs.h >>conftest.$ac_ext
36048cat >>conftest.$ac_ext <<_ACEOF
36049/* end confdefs.h. */
36050
36051int
36052main ()
36053{
36054
36055 ;
36056 return 0;
36057}
36058_ACEOF
36059rm -f conftest.$ac_objext
36060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36061 (eval $ac_compile) 2>conftest.er1
a848cd7e 36062 ac_status=$?
ac1cb8d3
VS
36063 grep -v '^ *+' conftest.er1 >conftest.err
36064 rm -f conftest.er1
36065 cat conftest.err >&5
a848cd7e
SC
36066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36067 (exit $ac_status); } &&
6ebeb4c7 36068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36070 (eval $ac_try) 2>&5
36071 ac_status=$?
36072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36073 (exit $ac_status); }; } &&
36074 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36076 (eval $ac_try) 2>&5
36077 ac_status=$?
36078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36079 (exit $ac_status); }; }; then
36080 wx_cv_cflags_mthread=yes
36081else
36082 echo "$as_me: failed program was:" >&5
36083sed 's/^/| /' conftest.$ac_ext >&5
36084
36085wx_cv_cflags_mthread=no
36086
36087fi
ac1cb8d3 36088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36089
36090
36091fi
36092echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
36093echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
36094
36095 if test "$wx_cv_cflags_mthread" = "yes"; then
36096 CXXFLAGS="$CXXFLAGS -mthreads"
36097 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
36098 LDFLAGS="$LDFLAGS -mthreads"
36099 else
36100 CFLAGS="$CFLAGS_OLD"
36101 fi
36102 ;;
36103 *-pc-os2*emx )
36104 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
36105 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
36106 LDFLAGS="$LDFLAGS -Zmt"
36107 ;;
36108 esac
36109 fi
36110fi
36111
36112if test "$wxUSE_THREADS" = "yes"; then
36113 cat >>confdefs.h <<\_ACEOF
36114#define wxUSE_THREADS 1
36115_ACEOF
36116
36117
36118 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
36119else
36120 if test "$ac_cv_func_strtok_r" = "yes"; then
36121 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
36122echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
36123 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
36124 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
36125 echo "$as_me:$LINENO: result: yes" >&5
36126echo "${ECHO_T}yes" >&6
36127 else
36128 echo "$as_me:$LINENO: result: no" >&5
36129echo "${ECHO_T}no" >&6
36130 fi
36131 fi
36132fi
36133
36134if test "$WXGTK20" = 1 ; then
36135 cat >>confdefs.h <<_ACEOF
36136#define __WXGTK20__ $WXGTK20
36137_ACEOF
36138
36139 WXGTK12=1
36140fi
36141
36142if test "$WXGTK12" = 1 ; then
36143 cat >>confdefs.h <<_ACEOF
36144#define __WXGTK12__ $WXGTK12
36145_ACEOF
36146
36147fi
36148
36149if test "$WXGTK127" = 1 ; then
36150 cat >>confdefs.h <<_ACEOF
36151#define __WXGTK127__ $WXGTK127
36152_ACEOF
36153
36154fi
36155
36156if test "$WXGPE" = 1 ; then
36157 cat >>confdefs.h <<_ACEOF
36158#define __WXGPE__ $WXGPE
36159_ACEOF
36160
36161fi
36162
36163WXDEBUG=
36164
36165if test "$wxUSE_DEBUG_INFO" = "yes" ; then
36166 WXDEBUG="-g"
36167 wxUSE_OPTIMISE=no
36168fi
36169
36170if test "$wxUSE_DEBUG_GDB" = "yes" ; then
36171 wxUSE_DEBUG_INFO=yes
18228ab4
MW
36172 if test "$GCC" = yes; then
36173 WXDEBUG="-ggdb"
36174 fi
a848cd7e
SC
36175fi
36176
36177if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
36178 cat >>confdefs.h <<\_ACEOF
36179#define WXDEBUG 1
36180_ACEOF
36181
36182 WXDEBUG_DEFINE="-D__WXDEBUG__"
36183else
36184 if test "$wxUSE_GTK" = 1 ; then
36185 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
36186 fi
36187fi
36188
36189if test "$wxUSE_MEM_TRACING" = "yes" ; then
36190 cat >>confdefs.h <<\_ACEOF
36191#define wxUSE_MEMORY_TRACING 1
36192_ACEOF
36193
36194 cat >>confdefs.h <<\_ACEOF
36195#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
36196_ACEOF
36197
36198 cat >>confdefs.h <<\_ACEOF
36199#define wxUSE_DEBUG_NEW_ALWAYS 1
36200_ACEOF
36201
36202 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
36203fi
36204
36205if test "$wxUSE_DMALLOC" = "yes" ; then
df1b269d 36206 DMALLOC_LIBS="-ldmallocthcxx"
a848cd7e
SC
36207fi
36208
36209PROFILE=
36210if test "$wxUSE_PROFILE" = "yes" ; then
36211 PROFILE=" -pg"
36212fi
36213
36214CODE_GEN_FLAGS=
36215CODE_GEN_FLAGS_CXX=
36216if test "$GCC" = "yes" ; then
36217 if test "$wxUSE_NO_RTTI" = "yes" ; then
36218 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
36219 fi
36220 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
36221 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
36222 fi
36223 if test "$wxUSE_PERMISSIVE" = "yes" ; then
36224 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
36225 fi
36226
36227 case "${host}" in
36228 powerpc*-*-aix* )
36229 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
36230 ;;
36231 *-hppa* )
36232 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
36233 ;;
36234 esac
36235fi
36236
36237OPTIMISE=
36238if test "$wxUSE_OPTIMISE" = "no" ; then
36239 if test "$GCC" = yes ; then
36240 OPTIMISE="-O0"
36241 fi
36242else
36243 if test "$GCC" = yes ; then
36244 OPTIMISE="-O2"
36245
36246 case "${host}" in
36247 i586-*-*|i686-*-* )
36248 OPTIMISE="${OPTIMISE} "
36249 ;;
36250 esac
36251 else
36252 OPTIMISE="-O"
36253 fi
36254fi
36255
36256
36257if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
36258 cat >>confdefs.h <<\_ACEOF
36259#define WXWIN_COMPATIBILITY_2_2 1
36260_ACEOF
36261
36262
36263 WXWIN_COMPATIBILITY_2_4="yes"
36264fi
36265
36266if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
36267 cat >>confdefs.h <<\_ACEOF
36268#define WXWIN_COMPATIBILITY_2_4 1
36269_ACEOF
36270
36271fi
36272
36273
36274if test "$wxUSE_GUI" = "yes"; then
881bfcd6 36275 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36276#define wxUSE_GUI 1
36277_ACEOF
36278
36279
370fd4c2 36280 fi
a848cd7e
SC
36281
36282
36283if test "$wxUSE_UNIX" = "yes"; then
36284 cat >>confdefs.h <<\_ACEOF
36285#define wxUSE_UNIX 1
36286_ACEOF
36287
36288fi
36289
36290
36291if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
36292
36293 HAVE_DL_FUNCS=0
36294 HAVE_SHL_FUNCS=0
36295 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
36296 if test "$USE_DARWIN" = 1; then
36297 HAVE_DL_FUNCS=1
47a7e797
MW
36298 elif test "$USE_DOS" = 1; then
36299 HAVE_DL_FUNCS=0
a848cd7e
SC
36300 else
36301
36302for ac_func in dlopen
36303do
36304as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36305echo "$as_me:$LINENO: checking for $ac_func" >&5
36306echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36307if eval "test \"\${$as_ac_var+set}\" = set"; then
36308 echo $ECHO_N "(cached) $ECHO_C" >&6
36309else
36310 cat >conftest.$ac_ext <<_ACEOF
36311/* confdefs.h. */
36312_ACEOF
36313cat confdefs.h >>conftest.$ac_ext
36314cat >>conftest.$ac_ext <<_ACEOF
36315/* end confdefs.h. */
ac1cb8d3
VS
36316/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36318#define $ac_func innocuous_$ac_func
36319
a848cd7e
SC
36320/* System header to define __stub macros and hopefully few prototypes,
36321 which can conflict with char $ac_func (); below.
36322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36323 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36324
a848cd7e
SC
36325#ifdef __STDC__
36326# include <limits.h>
36327#else
36328# include <assert.h>
36329#endif
ac1cb8d3
VS
36330
36331#undef $ac_func
36332
a848cd7e
SC
36333/* Override any gcc2 internal prototype to avoid an error. */
36334#ifdef __cplusplus
36335extern "C"
36336{
36337#endif
36338/* We use char because int might match the return type of a gcc2
36339 builtin and then its argument prototype would still apply. */
36340char $ac_func ();
36341/* The GNU C library defines this for functions which it implements
36342 to always fail with ENOSYS. Some functions are actually named
36343 something starting with __ and the normal name is an alias. */
36344#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36345choke me
36346#else
36347char (*f) () = $ac_func;
36348#endif
36349#ifdef __cplusplus
36350}
36351#endif
36352
36353int
36354main ()
36355{
36356return f != $ac_func;
36357 ;
36358 return 0;
36359}
36360_ACEOF
36361rm -f conftest.$ac_objext conftest$ac_exeext
36362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36363 (eval $ac_link) 2>conftest.er1
a848cd7e 36364 ac_status=$?
ac1cb8d3
VS
36365 grep -v '^ *+' conftest.er1 >conftest.err
36366 rm -f conftest.er1
36367 cat conftest.err >&5
a848cd7e
SC
36368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36369 (exit $ac_status); } &&
6ebeb4c7 36370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36372 (eval $ac_try) 2>&5
36373 ac_status=$?
36374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36375 (exit $ac_status); }; } &&
36376 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36378 (eval $ac_try) 2>&5
36379 ac_status=$?
36380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36381 (exit $ac_status); }; }; then
36382 eval "$as_ac_var=yes"
36383else
36384 echo "$as_me: failed program was:" >&5
36385sed 's/^/| /' conftest.$ac_ext >&5
36386
36387eval "$as_ac_var=no"
36388fi
ac1cb8d3
VS
36389rm -f conftest.err conftest.$ac_objext \
36390 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36391fi
36392echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36393echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36394if test `eval echo '${'$as_ac_var'}'` = yes; then
36395 cat >>confdefs.h <<_ACEOF
36396#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36397_ACEOF
36398
36399 cat >>confdefs.h <<\_ACEOF
36400#define HAVE_DLOPEN 1
36401_ACEOF
36402
36403 HAVE_DL_FUNCS=1
36404
36405else
36406
36407 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
36408echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
36409if test "${ac_cv_lib_dl_dlopen+set}" = set; then
36410 echo $ECHO_N "(cached) $ECHO_C" >&6
36411else
36412 ac_check_lib_save_LIBS=$LIBS
36413LIBS="-ldl $LIBS"
36414cat >conftest.$ac_ext <<_ACEOF
36415/* confdefs.h. */
36416_ACEOF
36417cat confdefs.h >>conftest.$ac_ext
36418cat >>conftest.$ac_ext <<_ACEOF
36419/* end confdefs.h. */
36420
36421/* Override any gcc2 internal prototype to avoid an error. */
36422#ifdef __cplusplus
36423extern "C"
36424#endif
36425/* We use char because int might match the return type of a gcc2
36426 builtin and then its argument prototype would still apply. */
36427char dlopen ();
36428int
36429main ()
36430{
36431dlopen ();
36432 ;
36433 return 0;
36434}
36435_ACEOF
36436rm -f conftest.$ac_objext conftest$ac_exeext
36437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36438 (eval $ac_link) 2>conftest.er1
a848cd7e 36439 ac_status=$?
ac1cb8d3
VS
36440 grep -v '^ *+' conftest.er1 >conftest.err
36441 rm -f conftest.er1
36442 cat conftest.err >&5
a848cd7e
SC
36443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36444 (exit $ac_status); } &&
6ebeb4c7 36445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36447 (eval $ac_try) 2>&5
36448 ac_status=$?
36449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36450 (exit $ac_status); }; } &&
36451 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36453 (eval $ac_try) 2>&5
36454 ac_status=$?
36455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36456 (exit $ac_status); }; }; then
36457 ac_cv_lib_dl_dlopen=yes
36458else
36459 echo "$as_me: failed program was:" >&5
36460sed 's/^/| /' conftest.$ac_ext >&5
36461
36462ac_cv_lib_dl_dlopen=no
36463fi
ac1cb8d3
VS
36464rm -f conftest.err conftest.$ac_objext \
36465 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36466LIBS=$ac_check_lib_save_LIBS
36467fi
36468echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
36469echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
36470if test $ac_cv_lib_dl_dlopen = yes; then
36471
36472 cat >>confdefs.h <<\_ACEOF
36473#define HAVE_DLOPEN 1
36474_ACEOF
36475
36476 HAVE_DL_FUNCS=1
36477 DL_LINK=" -ldl$DL_LINK"
36478
36479else
36480
36481
36482for ac_func in shl_load
36483do
36484as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36485echo "$as_me:$LINENO: checking for $ac_func" >&5
36486echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36487if eval "test \"\${$as_ac_var+set}\" = set"; then
36488 echo $ECHO_N "(cached) $ECHO_C" >&6
36489else
36490 cat >conftest.$ac_ext <<_ACEOF
36491/* confdefs.h. */
36492_ACEOF
36493cat confdefs.h >>conftest.$ac_ext
36494cat >>conftest.$ac_ext <<_ACEOF
36495/* end confdefs.h. */
ac1cb8d3
VS
36496/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36498#define $ac_func innocuous_$ac_func
36499
a848cd7e
SC
36500/* System header to define __stub macros and hopefully few prototypes,
36501 which can conflict with char $ac_func (); below.
36502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36503 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36504
a848cd7e
SC
36505#ifdef __STDC__
36506# include <limits.h>
36507#else
36508# include <assert.h>
36509#endif
ac1cb8d3
VS
36510
36511#undef $ac_func
36512
a848cd7e
SC
36513/* Override any gcc2 internal prototype to avoid an error. */
36514#ifdef __cplusplus
36515extern "C"
36516{
36517#endif
36518/* We use char because int might match the return type of a gcc2
36519 builtin and then its argument prototype would still apply. */
36520char $ac_func ();
36521/* The GNU C library defines this for functions which it implements
36522 to always fail with ENOSYS. Some functions are actually named
36523 something starting with __ and the normal name is an alias. */
36524#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36525choke me
36526#else
36527char (*f) () = $ac_func;
36528#endif
36529#ifdef __cplusplus
36530}
36531#endif
36532
36533int
36534main ()
36535{
36536return f != $ac_func;
36537 ;
36538 return 0;
36539}
36540_ACEOF
36541rm -f conftest.$ac_objext conftest$ac_exeext
36542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36543 (eval $ac_link) 2>conftest.er1
a848cd7e 36544 ac_status=$?
ac1cb8d3
VS
36545 grep -v '^ *+' conftest.er1 >conftest.err
36546 rm -f conftest.er1
36547 cat conftest.err >&5
a848cd7e
SC
36548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36549 (exit $ac_status); } &&
6ebeb4c7 36550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36552 (eval $ac_try) 2>&5
36553 ac_status=$?
36554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36555 (exit $ac_status); }; } &&
36556 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36558 (eval $ac_try) 2>&5
36559 ac_status=$?
36560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36561 (exit $ac_status); }; }; then
36562 eval "$as_ac_var=yes"
36563else
36564 echo "$as_me: failed program was:" >&5
36565sed 's/^/| /' conftest.$ac_ext >&5
36566
36567eval "$as_ac_var=no"
36568fi
ac1cb8d3
VS
36569rm -f conftest.err conftest.$ac_objext \
36570 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36571fi
36572echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36573echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36574if test `eval echo '${'$as_ac_var'}'` = yes; then
36575 cat >>confdefs.h <<_ACEOF
36576#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36577_ACEOF
36578
36579 cat >>confdefs.h <<\_ACEOF
36580#define HAVE_SHL_LOAD 1
36581_ACEOF
36582
36583 HAVE_SHL_FUNCS=1
36584
36585else
36586
36587 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
36588echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
36589if test "${ac_cv_lib_shl_load_dld+set}" = set; then
36590 echo $ECHO_N "(cached) $ECHO_C" >&6
36591else
36592 ac_check_lib_save_LIBS=$LIBS
36593LIBS="-lshl_load $LIBS"
36594cat >conftest.$ac_ext <<_ACEOF
36595/* confdefs.h. */
36596_ACEOF
36597cat confdefs.h >>conftest.$ac_ext
36598cat >>conftest.$ac_ext <<_ACEOF
36599/* end confdefs.h. */
36600
36601/* Override any gcc2 internal prototype to avoid an error. */
36602#ifdef __cplusplus
36603extern "C"
36604#endif
36605/* We use char because int might match the return type of a gcc2
36606 builtin and then its argument prototype would still apply. */
36607char dld ();
36608int
36609main ()
36610{
36611dld ();
36612 ;
36613 return 0;
36614}
36615_ACEOF
36616rm -f conftest.$ac_objext conftest$ac_exeext
36617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36618 (eval $ac_link) 2>conftest.er1
a848cd7e 36619 ac_status=$?
ac1cb8d3
VS
36620 grep -v '^ *+' conftest.er1 >conftest.err
36621 rm -f conftest.er1
36622 cat conftest.err >&5
a848cd7e
SC
36623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36624 (exit $ac_status); } &&
6ebeb4c7 36625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36627 (eval $ac_try) 2>&5
36628 ac_status=$?
36629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36630 (exit $ac_status); }; } &&
36631 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36633 (eval $ac_try) 2>&5
36634 ac_status=$?
36635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36636 (exit $ac_status); }; }; then
36637 ac_cv_lib_shl_load_dld=yes
36638else
36639 echo "$as_me: failed program was:" >&5
36640sed 's/^/| /' conftest.$ac_ext >&5
36641
36642ac_cv_lib_shl_load_dld=no
36643fi
ac1cb8d3
VS
36644rm -f conftest.err conftest.$ac_objext \
36645 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36646LIBS=$ac_check_lib_save_LIBS
36647fi
36648echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
36649echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
36650if test $ac_cv_lib_shl_load_dld = yes; then
36651
36652 HAVE_SHL_FUNCS=1
36653 DL_LINK=" -ldld$DL_LINK"
36654
36655fi
36656
36657
36658fi
36659done
36660
36661
36662fi
36663
36664
36665fi
36666done
36667
36668
36669 if test "$HAVE_DL_FUNCS" = 1; then
36670
36671for ac_func in dlerror
36672do
36673as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36674echo "$as_me:$LINENO: checking for $ac_func" >&5
36675echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36676if eval "test \"\${$as_ac_var+set}\" = set"; then
36677 echo $ECHO_N "(cached) $ECHO_C" >&6
36678else
36679 cat >conftest.$ac_ext <<_ACEOF
36680/* confdefs.h. */
36681_ACEOF
36682cat confdefs.h >>conftest.$ac_ext
36683cat >>conftest.$ac_ext <<_ACEOF
36684/* end confdefs.h. */
ac1cb8d3
VS
36685/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36687#define $ac_func innocuous_$ac_func
36688
a848cd7e
SC
36689/* System header to define __stub macros and hopefully few prototypes,
36690 which can conflict with char $ac_func (); below.
36691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36692 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36693
a848cd7e
SC
36694#ifdef __STDC__
36695# include <limits.h>
36696#else
36697# include <assert.h>
36698#endif
ac1cb8d3
VS
36699
36700#undef $ac_func
36701
a848cd7e
SC
36702/* Override any gcc2 internal prototype to avoid an error. */
36703#ifdef __cplusplus
36704extern "C"
36705{
36706#endif
36707/* We use char because int might match the return type of a gcc2
36708 builtin and then its argument prototype would still apply. */
36709char $ac_func ();
36710/* The GNU C library defines this for functions which it implements
36711 to always fail with ENOSYS. Some functions are actually named
36712 something starting with __ and the normal name is an alias. */
36713#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36714choke me
36715#else
36716char (*f) () = $ac_func;
36717#endif
36718#ifdef __cplusplus
36719}
36720#endif
36721
36722int
36723main ()
36724{
36725return f != $ac_func;
36726 ;
36727 return 0;
36728}
36729_ACEOF
36730rm -f conftest.$ac_objext conftest$ac_exeext
36731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36732 (eval $ac_link) 2>conftest.er1
a848cd7e 36733 ac_status=$?
ac1cb8d3
VS
36734 grep -v '^ *+' conftest.er1 >conftest.err
36735 rm -f conftest.er1
36736 cat conftest.err >&5
a848cd7e
SC
36737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36738 (exit $ac_status); } &&
6ebeb4c7 36739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36741 (eval $ac_try) 2>&5
36742 ac_status=$?
36743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36744 (exit $ac_status); }; } &&
36745 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36747 (eval $ac_try) 2>&5
36748 ac_status=$?
36749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36750 (exit $ac_status); }; }; then
36751 eval "$as_ac_var=yes"
36752else
36753 echo "$as_me: failed program was:" >&5
36754sed 's/^/| /' conftest.$ac_ext >&5
36755
36756eval "$as_ac_var=no"
36757fi
ac1cb8d3
VS
36758rm -f conftest.err conftest.$ac_objext \
36759 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36760fi
36761echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36762echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36763if test `eval echo '${'$as_ac_var'}'` = yes; then
36764 cat >>confdefs.h <<_ACEOF
36765#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36766_ACEOF
36767 cat >>confdefs.h <<\_ACEOF
36768#define HAVE_DLERROR 1
36769_ACEOF
36770
36771else
36772
36773 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
36774echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
36775if test "${ac_cv_lib_dl_dlerror+set}" = set; then
36776 echo $ECHO_N "(cached) $ECHO_C" >&6
36777else
36778 ac_check_lib_save_LIBS=$LIBS
36779LIBS="-ldl $LIBS"
36780cat >conftest.$ac_ext <<_ACEOF
36781/* confdefs.h. */
36782_ACEOF
36783cat confdefs.h >>conftest.$ac_ext
36784cat >>conftest.$ac_ext <<_ACEOF
36785/* end confdefs.h. */
36786
36787/* Override any gcc2 internal prototype to avoid an error. */
36788#ifdef __cplusplus
36789extern "C"
36790#endif
36791/* We use char because int might match the return type of a gcc2
36792 builtin and then its argument prototype would still apply. */
36793char dlerror ();
36794int
36795main ()
36796{
36797dlerror ();
36798 ;
36799 return 0;
36800}
36801_ACEOF
36802rm -f conftest.$ac_objext conftest$ac_exeext
36803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36804 (eval $ac_link) 2>conftest.er1
a848cd7e 36805 ac_status=$?
ac1cb8d3
VS
36806 grep -v '^ *+' conftest.er1 >conftest.err
36807 rm -f conftest.er1
36808 cat conftest.err >&5
a848cd7e
SC
36809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36810 (exit $ac_status); } &&
6ebeb4c7 36811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
36817 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36819 (eval $ac_try) 2>&5
36820 ac_status=$?
36821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36822 (exit $ac_status); }; }; then
36823 ac_cv_lib_dl_dlerror=yes
36824else
36825 echo "$as_me: failed program was:" >&5
36826sed 's/^/| /' conftest.$ac_ext >&5
36827
36828ac_cv_lib_dl_dlerror=no
36829fi
ac1cb8d3
VS
36830rm -f conftest.err conftest.$ac_objext \
36831 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36832LIBS=$ac_check_lib_save_LIBS
36833fi
36834echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
36835echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
36836if test $ac_cv_lib_dl_dlerror = yes; then
36837 cat >>confdefs.h <<\_ACEOF
36838#define HAVE_DLERROR 1
36839_ACEOF
36840
36841fi
36842
36843
36844
36845fi
36846done
36847
36848 fi
36849 fi
36850
36851 if test "$HAVE_DL_FUNCS" = 0; then
36852 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 36853 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
36854 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
36855echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
36856 wxUSE_DYNAMIC_LOADER=no
36857 wxUSE_DYNLIB_CLASS=no
36858 else
36859 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
36860echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
36861 fi
36862 fi
36863 fi
36864 fi
36865fi
36866
36867if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
36868 cat >>confdefs.h <<\_ACEOF
36869#define wxUSE_DYNAMIC_LOADER 1
36870_ACEOF
36871
36872fi
36873if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
36874 cat >>confdefs.h <<\_ACEOF
36875#define wxUSE_DYNLIB_CLASS 1
36876_ACEOF
36877
36878fi
36879
36880
36881
36882if test "$wxUSE_PLUGINS" = "yes" ; then
36883 if test "$wxUSE_SHARED" = "no" ; then
36884 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
36885echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
36886 wxUSE_PLUGINS=no
36887 fi
36888 if test "$wxUSE_MONOLITHIC" = "yes" ; then
36889 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
36890echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
36891 wxUSE_PLUGINS=no
36892 fi
36893 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
36894 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
36895echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
36896 wxUSE_PLUGINS=no
36897 fi
36898 if test "$wxUSE_PLUGINS" = "yes" ; then
36899 cat >>confdefs.h <<\_ACEOF
36900#define wxUSE_PLUGINS 1
36901_ACEOF
36902
36903 fi
36904fi
36905
36906
36907if test "$wxUSE_STL" = "yes"; then
36908 cat >>confdefs.h <<\_ACEOF
36909#define wxUSE_STL 1
36910_ACEOF
36911
36912fi
36913
36914if test "$wxUSE_APPLE_IEEE" = "yes"; then
36915 cat >>confdefs.h <<\_ACEOF
36916#define wxUSE_APPLE_IEEE 1
36917_ACEOF
36918
36919fi
36920
36921if test "$wxUSE_TIMER" = "yes"; then
36922 cat >>confdefs.h <<\_ACEOF
36923#define wxUSE_TIMER 1
36924_ACEOF
36925
36926fi
36927
9c112555 36928if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
36929
36930for ac_header in sys/soundcard.h
36931do
36932as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36933if eval "test \"\${$as_ac_Header+set}\" = set"; then
36934 echo "$as_me:$LINENO: checking for $ac_header" >&5
36935echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36936if eval "test \"\${$as_ac_Header+set}\" = set"; then
36937 echo $ECHO_N "(cached) $ECHO_C" >&6
36938fi
36939echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36940echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36941else
36942 # Is the header compilable?
36943echo "$as_me:$LINENO: checking $ac_header usability" >&5
36944echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36945cat >conftest.$ac_ext <<_ACEOF
36946/* confdefs.h. */
36947_ACEOF
36948cat confdefs.h >>conftest.$ac_ext
36949cat >>conftest.$ac_ext <<_ACEOF
36950/* end confdefs.h. */
36951$ac_includes_default
36952#include <$ac_header>
36953_ACEOF
36954rm -f conftest.$ac_objext
36955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36956 (eval $ac_compile) 2>conftest.er1
a848cd7e 36957 ac_status=$?
ac1cb8d3
VS
36958 grep -v '^ *+' conftest.er1 >conftest.err
36959 rm -f conftest.er1
36960 cat conftest.err >&5
a848cd7e
SC
36961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36962 (exit $ac_status); } &&
6ebeb4c7 36963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36965 (eval $ac_try) 2>&5
36966 ac_status=$?
36967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36968 (exit $ac_status); }; } &&
36969 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36971 (eval $ac_try) 2>&5
36972 ac_status=$?
36973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36974 (exit $ac_status); }; }; then
36975 ac_header_compiler=yes
36976else
36977 echo "$as_me: failed program was:" >&5
36978sed 's/^/| /' conftest.$ac_ext >&5
36979
36980ac_header_compiler=no
36981fi
ac1cb8d3 36982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36983echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36984echo "${ECHO_T}$ac_header_compiler" >&6
36985
36986# Is the header present?
36987echo "$as_me:$LINENO: checking $ac_header presence" >&5
36988echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36989cat >conftest.$ac_ext <<_ACEOF
36990/* confdefs.h. */
36991_ACEOF
36992cat confdefs.h >>conftest.$ac_ext
36993cat >>conftest.$ac_ext <<_ACEOF
36994/* end confdefs.h. */
36995#include <$ac_header>
36996_ACEOF
36997if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36999 ac_status=$?
37000 grep -v '^ *+' conftest.er1 >conftest.err
37001 rm -f conftest.er1
37002 cat conftest.err >&5
37003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37004 (exit $ac_status); } >/dev/null; then
37005 if test -s conftest.err; then
37006 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 37007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
37008 else
37009 ac_cpp_err=
37010 fi
37011else
37012 ac_cpp_err=yes
37013fi
37014if test -z "$ac_cpp_err"; then
37015 ac_header_preproc=yes
37016else
37017 echo "$as_me: failed program was:" >&5
37018sed 's/^/| /' conftest.$ac_ext >&5
37019
37020 ac_header_preproc=no
37021fi
37022rm -f conftest.err conftest.$ac_ext
37023echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37024echo "${ECHO_T}$ac_header_preproc" >&6
37025
37026# So? What about this header?
ac1cb8d3
VS
37027case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37028 yes:no: )
a848cd7e
SC
37029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37030echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37032echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37033 ac_header_preproc=yes
a848cd7e 37034 ;;
ac1cb8d3 37035 no:yes:* )
a848cd7e
SC
37036 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37037echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37038 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37039echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37040 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37041echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37042 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37043echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37045echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37046 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37047echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37048 (
37049 cat <<\_ASBOX
ac1cb8d3
VS
37050## ----------------------------------------- ##
37051## Report this to wx-dev@lists.wxwidgets.org ##
37052## ----------------------------------------- ##
a848cd7e
SC
37053_ASBOX
37054 ) |
37055 sed "s/^/$as_me: WARNING: /" >&2
37056 ;;
37057esac
37058echo "$as_me:$LINENO: checking for $ac_header" >&5
37059echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37060if eval "test \"\${$as_ac_Header+set}\" = set"; then
37061 echo $ECHO_N "(cached) $ECHO_C" >&6
37062else
ac1cb8d3 37063 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37064fi
37065echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37066echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37067
37068fi
37069if test `eval echo '${'$as_ac_Header'}'` = yes; then
37070 cat >>confdefs.h <<_ACEOF
37071#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37072_ACEOF
37073
9c112555
MW
37074else
37075 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
a848cd7e
SC
37076fi
37077
37078done
37079
9c112555
MW
37080fi
37081WITH_PLUGIN_SDL=0
37082if test "$wxUSE_SOUND" = "yes"; then
37083 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
37084 if test "$wxUSE_LIBSDL" != "no"; then
37085
37086# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
37087if test "${with_sdl_prefix+set}" = set; then
37088 withval="$with_sdl_prefix"
37089 sdl_prefix="$withval"
37090else
37091 sdl_prefix=""
37092fi;
37093
37094# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
37095if test "${with_sdl_exec_prefix+set}" = set; then
37096 withval="$with_sdl_exec_prefix"
37097 sdl_exec_prefix="$withval"
37098else
37099 sdl_exec_prefix=""
37100fi;
37101# Check whether --enable-sdltest or --disable-sdltest was given.
37102if test "${enable_sdltest+set}" = set; then
37103 enableval="$enable_sdltest"
37104
37105else
37106 enable_sdltest=yes
37107fi;
37108
37109 if test x$sdl_exec_prefix != x ; then
37110 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
37111 if test x${SDL_CONFIG+set} != xset ; then
37112 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
37113 fi
37114 fi
37115 if test x$sdl_prefix != x ; then
37116 sdl_args="$sdl_args --prefix=$sdl_prefix"
37117 if test x${SDL_CONFIG+set} != xset ; then
37118 SDL_CONFIG=$sdl_prefix/bin/sdl-config
37119 fi
37120 fi
37121
37122
37123 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
37124 # Extract the first word of "sdl-config", so it can be a program name with args.
37125set dummy sdl-config; ac_word=$2
37126echo "$as_me:$LINENO: checking for $ac_word" >&5
37127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37128if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
37129 echo $ECHO_N "(cached) $ECHO_C" >&6
37130else
37131 case $SDL_CONFIG in
37132 [\\/]* | ?:[\\/]*)
37133 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
37134 ;;
37135 *)
37136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37137for as_dir in $PATH
37138do
37139 IFS=$as_save_IFS
37140 test -z "$as_dir" && as_dir=.
37141 for ac_exec_ext in '' $ac_executable_extensions; do
37142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37143 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37145 break 2
37146 fi
37147done
37148done
37149
37150 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
37151 ;;
37152esac
37153fi
37154SDL_CONFIG=$ac_cv_path_SDL_CONFIG
37155
37156if test -n "$SDL_CONFIG"; then
37157 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
37158echo "${ECHO_T}$SDL_CONFIG" >&6
37159else
37160 echo "$as_me:$LINENO: result: no" >&5
37161echo "${ECHO_T}no" >&6
37162fi
37163
37164 min_sdl_version=1.2.0
37165 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
37166echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
37167 no_sdl=""
37168 if test "$SDL_CONFIG" = "no" ; then
37169 no_sdl=yes
37170 else
37171 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
37172 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
37173
37174 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
37175 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
37176 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
37177 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
37178 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
37179 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
37180 if test "x$enable_sdltest" = "xyes" ; then
37181 ac_save_CFLAGS="$CFLAGS"
94acd38e 37182 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
37183 ac_save_LIBS="$LIBS"
37184 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 37185 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
37186 LIBS="$LIBS $SDL_LIBS"
37187 rm -f conf.sdltest
37188 if test "$cross_compiling" = yes; then
37189 echo $ac_n "cross compiling; assumed OK... $ac_c"
37190else
37191 cat >conftest.$ac_ext <<_ACEOF
37192/* confdefs.h. */
37193_ACEOF
37194cat confdefs.h >>conftest.$ac_ext
37195cat >>conftest.$ac_ext <<_ACEOF
37196/* end confdefs.h. */
37197
37198#include <stdio.h>
37199#include <stdlib.h>
37200#include <string.h>
37201#include "SDL.h"
37202
37203char*
37204my_strdup (char *str)
37205{
37206 char *new_str;
37207
37208 if (str)
37209 {
37210 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
37211 strcpy (new_str, str);
37212 }
37213 else
37214 new_str = NULL;
37215
37216 return new_str;
37217}
37218
37219int main (int argc, char *argv[])
37220{
37221 int major, minor, micro;
37222 char *tmp_version;
37223
37224 /* This hangs on some systems (?)
37225 system ("touch conf.sdltest");
37226 */
37227 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
37228
37229 /* HP/UX 9 (%@#!) writes to sscanf strings */
37230 tmp_version = my_strdup("$min_sdl_version");
37231 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
37232 printf("%s, bad version string\n", "$min_sdl_version");
37233 exit(1);
37234 }
37235
37236 if (($sdl_major_version > major) ||
37237 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
37238 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
37239 {
37240 return 0;
37241 }
37242 else
37243 {
37244 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
37245 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
37246 printf("*** best to upgrade to the required version.\n");
37247 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
37248 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
37249 printf("*** config.cache before re-running configure\n");
37250 return 1;
37251 }
37252}
37253
37254
37255_ACEOF
37256rm -f conftest$ac_exeext
37257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37258 (eval $ac_link) 2>&5
37259 ac_status=$?
37260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37261 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37263 (eval $ac_try) 2>&5
37264 ac_status=$?
37265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37266 (exit $ac_status); }; }; then
37267 :
37268else
37269 echo "$as_me: program exited with status $ac_status" >&5
37270echo "$as_me: failed program was:" >&5
37271sed 's/^/| /' conftest.$ac_ext >&5
37272
37273( exit $ac_status )
37274no_sdl=yes
37275fi
ac1cb8d3 37276rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37277fi
37278 CFLAGS="$ac_save_CFLAGS"
94acd38e 37279 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
37280 LIBS="$ac_save_LIBS"
37281 fi
37282 fi
37283 if test "x$no_sdl" = x ; then
37284 echo "$as_me:$LINENO: result: yes" >&5
37285echo "${ECHO_T}yes" >&6
37286
37287 EXTRALIBS_SDL="$SDL_LIBS"
37288 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
37289 cat >>confdefs.h <<\_ACEOF
37290#define wxUSE_LIBSDL 1
37291_ACEOF
37292
37293
37294 else
37295 echo "$as_me:$LINENO: result: no" >&5
37296echo "${ECHO_T}no" >&6
37297 if test "$SDL_CONFIG" = "no" ; then
37298 echo "*** The sdl-config script installed by SDL could not be found"
37299 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
37300 echo "*** your path, or set the SDL_CONFIG environment variable to the"
37301 echo "*** full path to sdl-config."
37302 else
37303 if test -f conf.sdltest ; then
37304 :
37305 else
37306 echo "*** Could not run SDL test program, checking why..."
37307 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 37308 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
37309 LIBS="$LIBS $SDL_LIBS"
37310 cat >conftest.$ac_ext <<_ACEOF
37311/* confdefs.h. */
37312_ACEOF
37313cat confdefs.h >>conftest.$ac_ext
37314cat >>conftest.$ac_ext <<_ACEOF
37315/* end confdefs.h. */
37316
37317#include <stdio.h>
37318#include "SDL.h"
37319
37320int main(int argc, char *argv[])
37321{ return 0; }
37322#undef main
37323#define main K_and_R_C_main
37324
37325int
37326main ()
37327{
37328 return 0;
37329 ;
37330 return 0;
37331}
37332_ACEOF
37333rm -f conftest.$ac_objext conftest$ac_exeext
37334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37335 (eval $ac_link) 2>conftest.er1
a848cd7e 37336 ac_status=$?
ac1cb8d3
VS
37337 grep -v '^ *+' conftest.er1 >conftest.err
37338 rm -f conftest.er1
37339 cat conftest.err >&5
a848cd7e
SC
37340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37341 (exit $ac_status); } &&
6ebeb4c7 37342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37344 (eval $ac_try) 2>&5
37345 ac_status=$?
37346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37347 (exit $ac_status); }; } &&
37348 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37350 (eval $ac_try) 2>&5
37351 ac_status=$?
37352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37353 (exit $ac_status); }; }; then
37354 echo "*** The test program compiled, but did not run. This usually means"
37355 echo "*** that the run-time linker is not finding SDL or finding the wrong"
37356 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
37357 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
37358 echo "*** to the installed location Also, make sure you have run ldconfig if that"
37359 echo "*** is required on your system"
37360 echo "***"
37361 echo "*** If you have an old version installed, it is best to remove it, although"
37362 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
37363else
37364 echo "$as_me: failed program was:" >&5
37365sed 's/^/| /' conftest.$ac_ext >&5
37366
37367 echo "*** The test program failed to compile or link. See the file config.log for the"
37368 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
37369 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
37370 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
37371fi
ac1cb8d3
VS
37372rm -f conftest.err conftest.$ac_objext \
37373 conftest$ac_exeext conftest.$ac_ext
a848cd7e 37374 CFLAGS="$ac_save_CFLAGS"
94acd38e 37375 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
37376 LIBS="$ac_save_LIBS"
37377 fi
37378 fi
37379 SDL_CFLAGS=""
37380 SDL_LIBS=""
37381 wxUSE_LIBSDL="no"
37382 fi
37383
37384
37385 rm -f conf.sdltest
37386
37387 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
37388 WITH_PLUGIN_SDL=1
37389 fi
37390 fi
37391 fi
37392
37393 cat >>confdefs.h <<\_ACEOF
37394#define wxUSE_SOUND 1
37395_ACEOF
37396
37397 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
37398fi
37399
d1c38808
VZ
37400if test "$WXGTK20" = 1; then
37401 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
37402 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
37403
37404
37405 succeeded=no
37406
37407 if test -z "$PKG_CONFIG"; then
37408 # Extract the first word of "pkg-config", so it can be a program name with args.
37409set dummy pkg-config; ac_word=$2
37410echo "$as_me:$LINENO: checking for $ac_word" >&5
37411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37412if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
37413 echo $ECHO_N "(cached) $ECHO_C" >&6
37414else
37415 case $PKG_CONFIG in
37416 [\\/]* | ?:[\\/]*)
37417 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
37418 ;;
37419 *)
37420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37421for as_dir in $PATH
37422do
37423 IFS=$as_save_IFS
37424 test -z "$as_dir" && as_dir=.
37425 for ac_exec_ext in '' $ac_executable_extensions; do
37426 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37427 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37429 break 2
37430 fi
37431done
37432done
37433
37434 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
37435 ;;
37436esac
37437fi
37438PKG_CONFIG=$ac_cv_path_PKG_CONFIG
37439
37440if test -n "$PKG_CONFIG"; then
37441 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
37442echo "${ECHO_T}$PKG_CONFIG" >&6
37443else
37444 echo "$as_me:$LINENO: result: no" >&5
37445echo "${ECHO_T}no" >&6
37446fi
37447
37448 fi
37449
37450 if test "$PKG_CONFIG" = "no" ; then
37451 echo "*** The pkg-config script could not be found. Make sure it is"
37452 echo "*** in your path, or set the PKG_CONFIG environment variable"
37453 echo "*** to the full path to pkg-config."
37454 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
37455 else
37456 PKG_CONFIG_MIN_VERSION=0.9.0
37457 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
37458 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
37459echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 37460
ffa762ff 37461 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
37462 echo "$as_me:$LINENO: result: yes" >&5
37463echo "${ECHO_T}yes" >&6
37464 succeeded=yes
37465
37466 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
37467echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 37468 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
37469 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
37470echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
37471
37472 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
37473echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 37474 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
37475 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
37476echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
37477 else
37478 LIBGNOMEPRINTUI_CFLAGS=""
37479 LIBGNOMEPRINTUI_LIBS=""
37480 ## If we have a custom action on failure, don't print errors, but
37481 ## do set a variable so people can do so.
ffa762ff 37482 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
37483
37484 fi
37485
37486
37487
37488 else
37489 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
37490 echo "*** See http://www.freedesktop.org/software/pkgconfig"
37491 fi
37492 fi
37493
37494 if test $succeeded = yes; then
37495
d1c38808
VZ
37496 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
37497 cat >>confdefs.h <<\_ACEOF
37498#define wxUSE_LIBGNOMEPRINT 1
37499_ACEOF
37500
37501
37502 else
37503
37504 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
37505echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
37506 wxUSE_LIBGNOMEPRINT="no"
37507
37508
37509 fi
37510
37511 fi
37512 fi
37513fi
37514
37515
a848cd7e
SC
37516if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
37517 cat >>confdefs.h <<\_ACEOF
37518#define wxUSE_CMDLINE_PARSER 1
37519_ACEOF
37520
37521fi
37522
37523if test "$wxUSE_STOPWATCH" = "yes"; then
37524 cat >>confdefs.h <<\_ACEOF
37525#define wxUSE_STOPWATCH 1
37526_ACEOF
37527
37528fi
37529
37530if test "$wxUSE_DATETIME" = "yes"; then
37531 cat >>confdefs.h <<\_ACEOF
37532#define wxUSE_DATETIME 1
37533_ACEOF
37534
37535fi
37536
37537if test "$wxUSE_FILE" = "yes"; then
37538 cat >>confdefs.h <<\_ACEOF
37539#define wxUSE_FILE 1
37540_ACEOF
37541
37542fi
37543
37544if test "$wxUSE_FFILE" = "yes"; then
37545 cat >>confdefs.h <<\_ACEOF
37546#define wxUSE_FFILE 1
37547_ACEOF
37548
37549fi
37550
37551if test "$wxUSE_FILESYSTEM" = "yes"; then
37552 cat >>confdefs.h <<\_ACEOF
37553#define wxUSE_FILESYSTEM 1
37554_ACEOF
37555
37556fi
37557
37558if test "$wxUSE_FS_ZIP" = "yes"; then
37559 cat >>confdefs.h <<\_ACEOF
37560#define wxUSE_FS_ZIP 1
37561_ACEOF
37562
37563fi
37564
9e8e867f 37565if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 37566 cat >>confdefs.h <<\_ACEOF
9e8e867f 37567#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
37568_ACEOF
37569
37570fi
37571
37572if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 37573 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
37574 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
37575echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
37576 elif test "$wxUSE_ZLIB" = "no"; then
37577 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
37578echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
37579 else
37580 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37581#define wxUSE_ZIPSTREAM 1
37582_ACEOF
37583
81f90336 37584 fi
a848cd7e
SC
37585fi
37586
a848cd7e 37587if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
37588 if test "$USE_UNIX" != 1; then
37589 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
37590echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
37591 wxUSE_ON_FATAL_EXCEPTION=no
37592 else
37593 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37594#define wxUSE_ON_FATAL_EXCEPTION 1
37595_ACEOF
37596
18228ab4 37597 fi
a848cd7e
SC
37598fi
37599
eaff0f0d
VZ
37600if test "$wxUSE_STACKWALKER" = "yes"; then
37601 cat >>confdefs.h <<\_ACEOF
37602#define wxUSE_STACKWALKER 1
37603_ACEOF
37604
37605fi
37606
36b6448c 37607if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
37608 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
37609 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
37610echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
37611 wxUSE_DEBUGREPORT=no
37612 else
37613 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
37614#define wxUSE_DEBUGREPORT 1
37615_ACEOF
37616
21dfc162
MW
37617 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
37618 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
37619 fi
dfe0c803 37620 fi
36b6448c
VZ
37621fi
37622
a848cd7e
SC
37623if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37624 cat >>confdefs.h <<\_ACEOF
37625#define wxUSE_SNGLINST_CHECKER 1
37626_ACEOF
37627
37628fi
37629
37630if test "$wxUSE_BUSYINFO" = "yes"; then
37631 cat >>confdefs.h <<\_ACEOF
37632#define wxUSE_BUSYINFO 1
37633_ACEOF
37634
37635fi
37636
37637if test "$wxUSE_STD_IOSTREAM" = "yes"; then
37638 cat >>confdefs.h <<\_ACEOF
37639#define wxUSE_STD_IOSTREAM 1
37640_ACEOF
37641
37642fi
37643
59746b65
MW
37644if test "$wxUSE_STD_STRING" = "yes"; then
37645 cat >>confdefs.h <<\_ACEOF
37646#define wxUSE_STD_STRING 1
37647_ACEOF
37648
37649fi
37650
07158944
VZ
37651if test "$wxUSE_STDPATHS" = "yes"; then
37652 cat >>confdefs.h <<\_ACEOF
37653#define wxUSE_STDPATHS 1
37654_ACEOF
37655
37656fi
37657
a848cd7e
SC
37658if test "$wxUSE_TEXTBUFFER" = "yes"; then
37659 cat >>confdefs.h <<\_ACEOF
37660#define wxUSE_TEXTBUFFER 1
37661_ACEOF
37662
37663fi
37664
37665if test "$wxUSE_TEXTFILE" = "yes"; then
37666 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
37667 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
37668echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
37669 else
37670 cat >>confdefs.h <<\_ACEOF
37671#define wxUSE_TEXTFILE 1
37672_ACEOF
37673
37674 fi
37675fi
37676
37677if test "$wxUSE_CONFIG" = "yes" ; then
37678 if test "$wxUSE_TEXTFILE" != "yes"; then
37679 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
37680echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
37681 else
37682 cat >>confdefs.h <<\_ACEOF
37683#define wxUSE_CONFIG 1
89be85c2
VS
37684_ACEOF
37685
37686 cat >>confdefs.h <<\_ACEOF
37687#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
37688_ACEOF
37689
37690 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
37691 fi
37692fi
37693
37694if test "$wxUSE_INTL" = "yes" ; then
37695 if test "$wxUSE_FILE" != "yes"; then
37696 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
37697echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
37698 else
37699 cat >>confdefs.h <<\_ACEOF
37700#define wxUSE_INTL 1
37701_ACEOF
37702
37703 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
37704 GUIDIST="$GUIDIST INTL_DIST"
37705 fi
37706fi
37707
37708if test "$wxUSE_LOG" = "yes"; then
37709 cat >>confdefs.h <<\_ACEOF
37710#define wxUSE_LOG 1
37711_ACEOF
37712
37713
37714 if test "$wxUSE_LOGGUI" = "yes"; then
37715 cat >>confdefs.h <<\_ACEOF
37716#define wxUSE_LOGGUI 1
37717_ACEOF
37718
37719 fi
37720
37721 if test "$wxUSE_LOGWINDOW" = "yes"; then
37722 cat >>confdefs.h <<\_ACEOF
37723#define wxUSE_LOGWINDOW 1
37724_ACEOF
37725
37726 fi
37727
37728 if test "$wxUSE_LOGDIALOG" = "yes"; then
37729 cat >>confdefs.h <<\_ACEOF
37730#define wxUSE_LOG_DIALOG 1
37731_ACEOF
37732
37733 fi
0b78747f
MW
37734
37735 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
37736fi
37737
37738if test "$wxUSE_LONGLONG" = "yes"; then
37739 cat >>confdefs.h <<\_ACEOF
37740#define wxUSE_LONGLONG 1
37741_ACEOF
37742
37743fi
37744
37745if test "$wxUSE_GEOMETRY" = "yes"; then
37746 cat >>confdefs.h <<\_ACEOF
37747#define wxUSE_GEOMETRY 1
37748_ACEOF
37749
37750fi
37751
a848cd7e
SC
37752if test "$wxUSE_STREAMS" = "yes" ; then
37753 cat >>confdefs.h <<\_ACEOF
37754#define wxUSE_STREAMS 1
37755_ACEOF
37756
37757fi
37758
37759
37760if test "$wxUSE_DATETIME" = "yes"; then
37761
37762for ac_func in strptime
37763do
37764as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37765echo "$as_me:$LINENO: checking for $ac_func" >&5
37766echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37767if eval "test \"\${$as_ac_var+set}\" = set"; then
37768 echo $ECHO_N "(cached) $ECHO_C" >&6
37769else
37770 cat >conftest.$ac_ext <<_ACEOF
37771/* confdefs.h. */
37772_ACEOF
37773cat confdefs.h >>conftest.$ac_ext
37774cat >>conftest.$ac_ext <<_ACEOF
37775/* end confdefs.h. */
ac1cb8d3
VS
37776/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37778#define $ac_func innocuous_$ac_func
37779
a848cd7e
SC
37780/* System header to define __stub macros and hopefully few prototypes,
37781 which can conflict with char $ac_func (); below.
37782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37783 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37784
a848cd7e
SC
37785#ifdef __STDC__
37786# include <limits.h>
37787#else
37788# include <assert.h>
37789#endif
ac1cb8d3
VS
37790
37791#undef $ac_func
37792
a848cd7e
SC
37793/* Override any gcc2 internal prototype to avoid an error. */
37794#ifdef __cplusplus
37795extern "C"
37796{
37797#endif
37798/* We use char because int might match the return type of a gcc2
37799 builtin and then its argument prototype would still apply. */
37800char $ac_func ();
37801/* The GNU C library defines this for functions which it implements
37802 to always fail with ENOSYS. Some functions are actually named
37803 something starting with __ and the normal name is an alias. */
37804#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37805choke me
37806#else
37807char (*f) () = $ac_func;
37808#endif
37809#ifdef __cplusplus
37810}
37811#endif
37812
37813int
37814main ()
37815{
37816return f != $ac_func;
37817 ;
37818 return 0;
37819}
37820_ACEOF
37821rm -f conftest.$ac_objext conftest$ac_exeext
37822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37823 (eval $ac_link) 2>conftest.er1
a848cd7e 37824 ac_status=$?
ac1cb8d3
VS
37825 grep -v '^ *+' conftest.er1 >conftest.err
37826 rm -f conftest.er1
37827 cat conftest.err >&5
a848cd7e
SC
37828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37829 (exit $ac_status); } &&
6ebeb4c7 37830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37832 (eval $ac_try) 2>&5
37833 ac_status=$?
37834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37835 (exit $ac_status); }; } &&
37836 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37838 (eval $ac_try) 2>&5
37839 ac_status=$?
37840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37841 (exit $ac_status); }; }; then
37842 eval "$as_ac_var=yes"
37843else
37844 echo "$as_me: failed program was:" >&5
37845sed 's/^/| /' conftest.$ac_ext >&5
37846
37847eval "$as_ac_var=no"
37848fi
ac1cb8d3
VS
37849rm -f conftest.err conftest.$ac_objext \
37850 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37851fi
37852echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37853echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37854if test `eval echo '${'$as_ac_var'}'` = yes; then
37855 cat >>confdefs.h <<_ACEOF
37856#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37857_ACEOF
37858
37859fi
37860done
37861
37862
37863 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
37864echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
37865if test "${wx_cv_var_timezone+set}" = set; then
37866 echo $ECHO_N "(cached) $ECHO_C" >&6
37867else
37868
37869 cat >conftest.$ac_ext <<_ACEOF
37870/* confdefs.h. */
37871_ACEOF
37872cat confdefs.h >>conftest.$ac_ext
37873cat >>conftest.$ac_ext <<_ACEOF
37874/* end confdefs.h. */
37875
37876 #include <time.h>
37877
37878int
37879main ()
37880{
37881
37882 int tz;
37883 tz = timezone;
37884
37885 ;
37886 return 0;
37887}
37888_ACEOF
37889rm -f conftest.$ac_objext
37890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37891 (eval $ac_compile) 2>conftest.er1
a848cd7e 37892 ac_status=$?
ac1cb8d3
VS
37893 grep -v '^ *+' conftest.er1 >conftest.err
37894 rm -f conftest.er1
37895 cat conftest.err >&5
a848cd7e
SC
37896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37897 (exit $ac_status); } &&
6ebeb4c7 37898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37900 (eval $ac_try) 2>&5
37901 ac_status=$?
37902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37903 (exit $ac_status); }; } &&
37904 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37906 (eval $ac_try) 2>&5
37907 ac_status=$?
37908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37909 (exit $ac_status); }; }; then
37910
37911 wx_cv_var_timezone=timezone
37912
37913else
37914 echo "$as_me: failed program was:" >&5
37915sed 's/^/| /' conftest.$ac_ext >&5
37916
37917
37918 cat >conftest.$ac_ext <<_ACEOF
37919/* confdefs.h. */
37920_ACEOF
37921cat confdefs.h >>conftest.$ac_ext
37922cat >>conftest.$ac_ext <<_ACEOF
37923/* end confdefs.h. */
37924
37925 #include <time.h>
37926
37927int
37928main ()
37929{
37930
37931 int tz;
37932 tz = _timezone;
37933
37934 ;
37935 return 0;
37936}
37937_ACEOF
37938rm -f conftest.$ac_objext
37939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37940 (eval $ac_compile) 2>conftest.er1
a848cd7e 37941 ac_status=$?
ac1cb8d3
VS
37942 grep -v '^ *+' conftest.er1 >conftest.err
37943 rm -f conftest.er1
37944 cat conftest.err >&5
a848cd7e
SC
37945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37946 (exit $ac_status); } &&
6ebeb4c7 37947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37949 (eval $ac_try) 2>&5
37950 ac_status=$?
37951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37952 (exit $ac_status); }; } &&
37953 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37955 (eval $ac_try) 2>&5
37956 ac_status=$?
37957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37958 (exit $ac_status); }; }; then
37959
37960 wx_cv_var_timezone=_timezone
37961
37962else
37963 echo "$as_me: failed program was:" >&5
37964sed 's/^/| /' conftest.$ac_ext >&5
37965
37966
37967 cat >conftest.$ac_ext <<_ACEOF
37968/* confdefs.h. */
37969_ACEOF
37970cat confdefs.h >>conftest.$ac_ext
37971cat >>conftest.$ac_ext <<_ACEOF
37972/* end confdefs.h. */
37973
37974 #include <time.h>
37975
37976int
37977main ()
37978{
37979
37980 int tz;
37981 tz = __timezone;
37982
37983 ;
37984 return 0;
37985}
37986_ACEOF
37987rm -f conftest.$ac_objext
37988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37989 (eval $ac_compile) 2>conftest.er1
a848cd7e 37990 ac_status=$?
ac1cb8d3
VS
37991 grep -v '^ *+' conftest.er1 >conftest.err
37992 rm -f conftest.er1
37993 cat conftest.err >&5
a848cd7e
SC
37994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37995 (exit $ac_status); } &&
6ebeb4c7 37996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37998 (eval $ac_try) 2>&5
37999 ac_status=$?
38000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38001 (exit $ac_status); }; } &&
38002 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38004 (eval $ac_try) 2>&5
38005 ac_status=$?
38006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38007 (exit $ac_status); }; }; then
38008
38009 wx_cv_var_timezone=__timezone
38010
38011else
38012 echo "$as_me: failed program was:" >&5
38013sed 's/^/| /' conftest.$ac_ext >&5
38014
38015
38016 if test "$USE_DOS" = 0 ; then
38017 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
38018echo "$as_me: WARNING: no timezone variable" >&2;}
38019 fi
38020
38021
38022fi
ac1cb8d3 38023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38024
38025
38026fi
ac1cb8d3 38027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38028
38029
38030fi
ac1cb8d3 38031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38032
38033
38034fi
38035echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
38036echo "${ECHO_T}$wx_cv_var_timezone" >&6
38037
38038 if test "x$wx_cv_var_timezone" != x ; then
38039 cat >>confdefs.h <<_ACEOF
38040#define WX_TIMEZONE $wx_cv_var_timezone
38041_ACEOF
38042
38043 fi
38044
38045
38046for ac_func in localtime
38047do
38048as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38049echo "$as_me:$LINENO: checking for $ac_func" >&5
38050echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38051if eval "test \"\${$as_ac_var+set}\" = set"; then
38052 echo $ECHO_N "(cached) $ECHO_C" >&6
38053else
38054 cat >conftest.$ac_ext <<_ACEOF
38055/* confdefs.h. */
38056_ACEOF
38057cat confdefs.h >>conftest.$ac_ext
38058cat >>conftest.$ac_ext <<_ACEOF
38059/* end confdefs.h. */
ac1cb8d3
VS
38060/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38062#define $ac_func innocuous_$ac_func
38063
a848cd7e
SC
38064/* System header to define __stub macros and hopefully few prototypes,
38065 which can conflict with char $ac_func (); below.
38066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38067 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38068
a848cd7e
SC
38069#ifdef __STDC__
38070# include <limits.h>
38071#else
38072# include <assert.h>
38073#endif
ac1cb8d3
VS
38074
38075#undef $ac_func
38076
a848cd7e
SC
38077/* Override any gcc2 internal prototype to avoid an error. */
38078#ifdef __cplusplus
38079extern "C"
38080{
38081#endif
38082/* We use char because int might match the return type of a gcc2
38083 builtin and then its argument prototype would still apply. */
38084char $ac_func ();
38085/* The GNU C library defines this for functions which it implements
38086 to always fail with ENOSYS. Some functions are actually named
38087 something starting with __ and the normal name is an alias. */
38088#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38089choke me
38090#else
38091char (*f) () = $ac_func;
38092#endif
38093#ifdef __cplusplus
38094}
38095#endif
38096
38097int
38098main ()
38099{
38100return f != $ac_func;
38101 ;
38102 return 0;
38103}
38104_ACEOF
38105rm -f conftest.$ac_objext conftest$ac_exeext
38106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38107 (eval $ac_link) 2>conftest.er1
a848cd7e 38108 ac_status=$?
ac1cb8d3
VS
38109 grep -v '^ *+' conftest.er1 >conftest.err
38110 rm -f conftest.er1
38111 cat conftest.err >&5
a848cd7e
SC
38112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38113 (exit $ac_status); } &&
6ebeb4c7 38114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38116 (eval $ac_try) 2>&5
38117 ac_status=$?
38118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38119 (exit $ac_status); }; } &&
38120 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38122 (eval $ac_try) 2>&5
38123 ac_status=$?
38124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38125 (exit $ac_status); }; }; then
38126 eval "$as_ac_var=yes"
38127else
38128 echo "$as_me: failed program was:" >&5
38129sed 's/^/| /' conftest.$ac_ext >&5
38130
38131eval "$as_ac_var=no"
38132fi
ac1cb8d3
VS
38133rm -f conftest.err conftest.$ac_objext \
38134 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38135fi
38136echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38137echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38138if test `eval echo '${'$as_ac_var'}'` = yes; then
38139 cat >>confdefs.h <<_ACEOF
38140#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38141_ACEOF
38142
38143fi
38144done
38145
38146
38147 if test "$ac_cv_func_localtime" = "yes"; then
38148 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
38149echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
38150if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
38151 echo $ECHO_N "(cached) $ECHO_C" >&6
38152else
38153
38154 cat >conftest.$ac_ext <<_ACEOF
38155/* confdefs.h. */
38156_ACEOF
38157cat confdefs.h >>conftest.$ac_ext
38158cat >>conftest.$ac_ext <<_ACEOF
38159/* end confdefs.h. */
38160
38161 #include <time.h>
38162
38163int
38164main ()
38165{
38166
38167 struct tm tm;
38168 tm.tm_gmtoff++;
38169
38170 ;
38171 return 0;
38172}
38173_ACEOF
38174rm -f conftest.$ac_objext
38175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38176 (eval $ac_compile) 2>conftest.er1
a848cd7e 38177 ac_status=$?
ac1cb8d3
VS
38178 grep -v '^ *+' conftest.er1 >conftest.err
38179 rm -f conftest.er1
38180 cat conftest.err >&5
a848cd7e
SC
38181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38182 (exit $ac_status); } &&
6ebeb4c7 38183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38185 (eval $ac_try) 2>&5
38186 ac_status=$?
38187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38188 (exit $ac_status); }; } &&
38189 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38191 (eval $ac_try) 2>&5
38192 ac_status=$?
38193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38194 (exit $ac_status); }; }; then
38195
38196 wx_cv_struct_tm_has_gmtoff=yes
38197
38198else
38199 echo "$as_me: failed program was:" >&5
38200sed 's/^/| /' conftest.$ac_ext >&5
38201
38202wx_cv_struct_tm_has_gmtoff=no
38203
38204fi
ac1cb8d3 38205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38206
38207fi
38208echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
38209echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
38210 fi
38211
38212 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
38213 cat >>confdefs.h <<\_ACEOF
38214#define WX_GMTOFF_IN_TM 1
38215_ACEOF
38216
38217 fi
38218
38219
38220
38221for ac_func in gettimeofday ftime
38222do
38223as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38224echo "$as_me:$LINENO: checking for $ac_func" >&5
38225echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38226if eval "test \"\${$as_ac_var+set}\" = set"; then
38227 echo $ECHO_N "(cached) $ECHO_C" >&6
38228else
38229 cat >conftest.$ac_ext <<_ACEOF
38230/* confdefs.h. */
38231_ACEOF
38232cat confdefs.h >>conftest.$ac_ext
38233cat >>conftest.$ac_ext <<_ACEOF
38234/* end confdefs.h. */
ac1cb8d3
VS
38235/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38237#define $ac_func innocuous_$ac_func
38238
a848cd7e
SC
38239/* System header to define __stub macros and hopefully few prototypes,
38240 which can conflict with char $ac_func (); below.
38241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38242 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38243
a848cd7e
SC
38244#ifdef __STDC__
38245# include <limits.h>
38246#else
38247# include <assert.h>
38248#endif
ac1cb8d3
VS
38249
38250#undef $ac_func
38251
a848cd7e
SC
38252/* Override any gcc2 internal prototype to avoid an error. */
38253#ifdef __cplusplus
38254extern "C"
38255{
38256#endif
38257/* We use char because int might match the return type of a gcc2
38258 builtin and then its argument prototype would still apply. */
38259char $ac_func ();
38260/* The GNU C library defines this for functions which it implements
38261 to always fail with ENOSYS. Some functions are actually named
38262 something starting with __ and the normal name is an alias. */
38263#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38264choke me
38265#else
38266char (*f) () = $ac_func;
38267#endif
38268#ifdef __cplusplus
38269}
38270#endif
38271
38272int
38273main ()
38274{
38275return f != $ac_func;
38276 ;
38277 return 0;
38278}
38279_ACEOF
38280rm -f conftest.$ac_objext conftest$ac_exeext
38281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38282 (eval $ac_link) 2>conftest.er1
a848cd7e 38283 ac_status=$?
ac1cb8d3
VS
38284 grep -v '^ *+' conftest.er1 >conftest.err
38285 rm -f conftest.er1
38286 cat conftest.err >&5
a848cd7e
SC
38287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38288 (exit $ac_status); } &&
6ebeb4c7 38289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38291 (eval $ac_try) 2>&5
38292 ac_status=$?
38293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38294 (exit $ac_status); }; } &&
38295 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38297 (eval $ac_try) 2>&5
38298 ac_status=$?
38299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38300 (exit $ac_status); }; }; then
38301 eval "$as_ac_var=yes"
38302else
38303 echo "$as_me: failed program was:" >&5
38304sed 's/^/| /' conftest.$ac_ext >&5
38305
38306eval "$as_ac_var=no"
38307fi
ac1cb8d3
VS
38308rm -f conftest.err conftest.$ac_objext \
38309 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38310fi
38311echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38312echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38313if test `eval echo '${'$as_ac_var'}'` = yes; then
38314 cat >>confdefs.h <<_ACEOF
38315#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38316_ACEOF
38317 break
38318fi
38319done
38320
38321
38322 if test "$ac_cv_func_gettimeofday" = "yes"; then
38323 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
38324echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
38325if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
38326 echo $ECHO_N "(cached) $ECHO_C" >&6
38327else
38328
38329
38330
38331 ac_ext=cc
38332ac_cpp='$CXXCPP $CPPFLAGS'
38333ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38334ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38335ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38336
38337
38338 cat >conftest.$ac_ext <<_ACEOF
38339/* confdefs.h. */
38340_ACEOF
38341cat confdefs.h >>conftest.$ac_ext
38342cat >>conftest.$ac_ext <<_ACEOF
38343/* end confdefs.h. */
38344
38345 #include <sys/time.h>
38346 #include <unistd.h>
38347
38348int
38349main ()
38350{
38351
38352 struct timeval tv;
38353 gettimeofday(&tv, NULL);
38354
38355 ;
38356 return 0;
38357}
38358_ACEOF
38359rm -f conftest.$ac_objext
38360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38361 (eval $ac_compile) 2>conftest.er1
a848cd7e 38362 ac_status=$?
ac1cb8d3
VS
38363 grep -v '^ *+' conftest.er1 >conftest.err
38364 rm -f conftest.er1
38365 cat conftest.err >&5
a848cd7e
SC
38366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38367 (exit $ac_status); } &&
6ebeb4c7 38368 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38370 (eval $ac_try) 2>&5
38371 ac_status=$?
38372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38373 (exit $ac_status); }; } &&
38374 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38376 (eval $ac_try) 2>&5
38377 ac_status=$?
38378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38379 (exit $ac_status); }; }; then
38380 wx_cv_func_gettimeofday_has_2_args=yes
38381else
38382 echo "$as_me: failed program was:" >&5
38383sed 's/^/| /' conftest.$ac_ext >&5
38384
38385cat >conftest.$ac_ext <<_ACEOF
38386/* confdefs.h. */
38387_ACEOF
38388cat confdefs.h >>conftest.$ac_ext
38389cat >>conftest.$ac_ext <<_ACEOF
38390/* end confdefs.h. */
38391
38392 #include <sys/time.h>
38393 #include <unistd.h>
38394
38395int
38396main ()
38397{
38398
38399 struct timeval tv;
38400 gettimeofday(&tv);
38401
38402 ;
38403 return 0;
38404}
38405_ACEOF
38406rm -f conftest.$ac_objext
38407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38408 (eval $ac_compile) 2>conftest.er1
a848cd7e 38409 ac_status=$?
ac1cb8d3
VS
38410 grep -v '^ *+' conftest.er1 >conftest.err
38411 rm -f conftest.er1
38412 cat conftest.err >&5
a848cd7e
SC
38413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38414 (exit $ac_status); } &&
6ebeb4c7 38415 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38417 (eval $ac_try) 2>&5
38418 ac_status=$?
38419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38420 (exit $ac_status); }; } &&
38421 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38423 (eval $ac_try) 2>&5
38424 ac_status=$?
38425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38426 (exit $ac_status); }; }; then
38427 wx_cv_func_gettimeofday_has_2_args=no
38428else
38429 echo "$as_me: failed program was:" >&5
38430sed 's/^/| /' conftest.$ac_ext >&5
38431
38432
38433 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
38434echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
38435 wx_cv_func_gettimeofday_has_2_args=unknown
38436
38437
38438fi
ac1cb8d3 38439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38440
38441fi
ac1cb8d3 38442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38443 ac_ext=c
38444ac_cpp='$CPP $CPPFLAGS'
38445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38447ac_compiler_gnu=$ac_cv_c_compiler_gnu
38448
38449
38450fi
38451echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
38452echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
38453
38454 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
38455 cat >>confdefs.h <<\_ACEOF
38456#define WX_GETTIMEOFDAY_NO_TZ 1
38457_ACEOF
38458
38459 fi
38460 fi
38461
38462 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
38463fi
38464
38465
38466if test "$wxUSE_SOCKETS" = "yes"; then
38467 if test "$wxUSE_MGL" = "1"; then
38468 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
38469echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
38470 wxUSE_SOCKETS="no"
38471 fi
38472fi
38473
38474if test "$wxUSE_SOCKETS" = "yes"; then
38475 if test "$TOOLKIT" != "MSW"; then
38476 echo "$as_me:$LINENO: checking for socket" >&5
38477echo $ECHO_N "checking for socket... $ECHO_C" >&6
38478if test "${ac_cv_func_socket+set}" = set; then
38479 echo $ECHO_N "(cached) $ECHO_C" >&6
38480else
38481 cat >conftest.$ac_ext <<_ACEOF
38482/* confdefs.h. */
38483_ACEOF
38484cat confdefs.h >>conftest.$ac_ext
38485cat >>conftest.$ac_ext <<_ACEOF
38486/* end confdefs.h. */
ac1cb8d3
VS
38487/* Define socket to an innocuous variant, in case <limits.h> declares socket.
38488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38489#define socket innocuous_socket
38490
a848cd7e
SC
38491/* System header to define __stub macros and hopefully few prototypes,
38492 which can conflict with char socket (); below.
38493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38494 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38495
a848cd7e
SC
38496#ifdef __STDC__
38497# include <limits.h>
38498#else
38499# include <assert.h>
38500#endif
ac1cb8d3
VS
38501
38502#undef socket
38503
a848cd7e
SC
38504/* Override any gcc2 internal prototype to avoid an error. */
38505#ifdef __cplusplus
38506extern "C"
38507{
38508#endif
38509/* We use char because int might match the return type of a gcc2
38510 builtin and then its argument prototype would still apply. */
38511char socket ();
38512/* The GNU C library defines this for functions which it implements
38513 to always fail with ENOSYS. Some functions are actually named
38514 something starting with __ and the normal name is an alias. */
38515#if defined (__stub_socket) || defined (__stub___socket)
38516choke me
38517#else
38518char (*f) () = socket;
38519#endif
38520#ifdef __cplusplus
38521}
38522#endif
38523
38524int
38525main ()
38526{
38527return f != socket;
38528 ;
38529 return 0;
38530}
38531_ACEOF
38532rm -f conftest.$ac_objext conftest$ac_exeext
38533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38534 (eval $ac_link) 2>conftest.er1
a848cd7e 38535 ac_status=$?
ac1cb8d3
VS
38536 grep -v '^ *+' conftest.er1 >conftest.err
38537 rm -f conftest.er1
38538 cat conftest.err >&5
a848cd7e
SC
38539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38540 (exit $ac_status); } &&
6ebeb4c7 38541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
38547 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38549 (eval $ac_try) 2>&5
38550 ac_status=$?
38551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38552 (exit $ac_status); }; }; then
38553 ac_cv_func_socket=yes
38554else
38555 echo "$as_me: failed program was:" >&5
38556sed 's/^/| /' conftest.$ac_ext >&5
38557
38558ac_cv_func_socket=no
38559fi
ac1cb8d3
VS
38560rm -f conftest.err conftest.$ac_objext \
38561 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38562fi
38563echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
38564echo "${ECHO_T}$ac_cv_func_socket" >&6
38565if test $ac_cv_func_socket = yes; then
38566 :
38567else
38568
38569 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
38570echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
38571if test "${ac_cv_lib_socket_socket+set}" = set; then
38572 echo $ECHO_N "(cached) $ECHO_C" >&6
38573else
38574 ac_check_lib_save_LIBS=$LIBS
38575LIBS="-lsocket $LIBS"
38576cat >conftest.$ac_ext <<_ACEOF
38577/* confdefs.h. */
38578_ACEOF
38579cat confdefs.h >>conftest.$ac_ext
38580cat >>conftest.$ac_ext <<_ACEOF
38581/* end confdefs.h. */
38582
38583/* Override any gcc2 internal prototype to avoid an error. */
38584#ifdef __cplusplus
38585extern "C"
38586#endif
38587/* We use char because int might match the return type of a gcc2
38588 builtin and then its argument prototype would still apply. */
38589char socket ();
38590int
38591main ()
38592{
38593socket ();
38594 ;
38595 return 0;
38596}
38597_ACEOF
38598rm -f conftest.$ac_objext conftest$ac_exeext
38599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38600 (eval $ac_link) 2>conftest.er1
a848cd7e 38601 ac_status=$?
ac1cb8d3
VS
38602 grep -v '^ *+' conftest.er1 >conftest.err
38603 rm -f conftest.er1
38604 cat conftest.err >&5
a848cd7e
SC
38605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38606 (exit $ac_status); } &&
6ebeb4c7 38607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38609 (eval $ac_try) 2>&5
38610 ac_status=$?
38611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38612 (exit $ac_status); }; } &&
38613 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38615 (eval $ac_try) 2>&5
38616 ac_status=$?
38617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38618 (exit $ac_status); }; }; then
38619 ac_cv_lib_socket_socket=yes
38620else
38621 echo "$as_me: failed program was:" >&5
38622sed 's/^/| /' conftest.$ac_ext >&5
38623
38624ac_cv_lib_socket_socket=no
38625fi
ac1cb8d3
VS
38626rm -f conftest.err conftest.$ac_objext \
38627 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38628LIBS=$ac_check_lib_save_LIBS
38629fi
38630echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
38631echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
38632if test $ac_cv_lib_socket_socket = yes; then
38633 if test "$INET_LINK" != " -lsocket"; then
38634 INET_LINK="$INET_LINK -lsocket"
38635 fi
38636else
38637
38638 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
38639echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
38640 wxUSE_SOCKETS=no
38641
38642
38643fi
38644
38645
38646
38647fi
38648
38649 fi
38650fi
38651
38652if test "$wxUSE_SOCKETS" = "yes" ; then
38653 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
38654 ac_ext=cc
38655ac_cpp='$CXXCPP $CPPFLAGS'
38656ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38657ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38658ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38659
38660 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
38661echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
38662if test "${wx_cv_type_getsockname3+set}" = set; then
38663 echo $ECHO_N "(cached) $ECHO_C" >&6
38664else
38665
38666 cat >conftest.$ac_ext <<_ACEOF
38667/* confdefs.h. */
38668_ACEOF
38669cat confdefs.h >>conftest.$ac_ext
38670cat >>conftest.$ac_ext <<_ACEOF
38671/* end confdefs.h. */
38672
38673 #include <sys/types.h>
38674 #include <sys/socket.h>
38675
38676int
38677main ()
38678{
38679
38680 socklen_t len;
38681 getsockname(0, 0, &len);
38682
38683 ;
38684 return 0;
38685}
38686_ACEOF
38687rm -f conftest.$ac_objext
38688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38689 (eval $ac_compile) 2>conftest.er1
a848cd7e 38690 ac_status=$?
ac1cb8d3
VS
38691 grep -v '^ *+' conftest.er1 >conftest.err
38692 rm -f conftest.er1
38693 cat conftest.err >&5
a848cd7e
SC
38694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38695 (exit $ac_status); } &&
6ebeb4c7 38696 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38698 (eval $ac_try) 2>&5
38699 ac_status=$?
38700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38701 (exit $ac_status); }; } &&
38702 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38704 (eval $ac_try) 2>&5
38705 ac_status=$?
38706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38707 (exit $ac_status); }; }; then
38708 wx_cv_type_getsockname3=socklen_t
38709else
38710 echo "$as_me: failed program was:" >&5
38711sed 's/^/| /' conftest.$ac_ext >&5
38712
38713
38714 CFLAGS_OLD="$CFLAGS"
38715 if test "$GCC" = yes ; then
38716 CFLAGS="$CFLAGS -Werror"
38717 fi
38718
38719 cat >conftest.$ac_ext <<_ACEOF
38720/* confdefs.h. */
38721_ACEOF
38722cat confdefs.h >>conftest.$ac_ext
38723cat >>conftest.$ac_ext <<_ACEOF
38724/* end confdefs.h. */
38725
38726 #include <sys/types.h>
38727 #include <sys/socket.h>
38728
38729int
38730main ()
38731{
38732
38733 size_t len;
38734 getsockname(0, 0, &len);
38735
38736 ;
38737 return 0;
38738}
38739_ACEOF
38740rm -f conftest.$ac_objext
38741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38742 (eval $ac_compile) 2>conftest.er1
a848cd7e 38743 ac_status=$?
ac1cb8d3
VS
38744 grep -v '^ *+' conftest.er1 >conftest.err
38745 rm -f conftest.er1
38746 cat conftest.err >&5
a848cd7e
SC
38747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38748 (exit $ac_status); } &&
6ebeb4c7 38749 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38751 (eval $ac_try) 2>&5
38752 ac_status=$?
38753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38754 (exit $ac_status); }; } &&
38755 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38757 (eval $ac_try) 2>&5
38758 ac_status=$?
38759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38760 (exit $ac_status); }; }; then
38761 wx_cv_type_getsockname3=size_t
38762else
38763 echo "$as_me: failed program was:" >&5
38764sed 's/^/| /' conftest.$ac_ext >&5
38765
38766cat >conftest.$ac_ext <<_ACEOF
38767/* confdefs.h. */
38768_ACEOF
38769cat confdefs.h >>conftest.$ac_ext
38770cat >>conftest.$ac_ext <<_ACEOF
38771/* end confdefs.h. */
38772
38773 #include <sys/types.h>
38774 #include <sys/socket.h>
38775
38776int
38777main ()
38778{
38779
38780 int len;
38781 getsockname(0, 0, &len);
38782
38783 ;
38784 return 0;
38785}
38786_ACEOF
38787rm -f conftest.$ac_objext
38788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38789 (eval $ac_compile) 2>conftest.er1
a848cd7e 38790 ac_status=$?
ac1cb8d3
VS
38791 grep -v '^ *+' conftest.er1 >conftest.err
38792 rm -f conftest.er1
38793 cat conftest.err >&5
a848cd7e
SC
38794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38795 (exit $ac_status); } &&
6ebeb4c7 38796 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38798 (eval $ac_try) 2>&5
38799 ac_status=$?
38800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38801 (exit $ac_status); }; } &&
38802 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38804 (eval $ac_try) 2>&5
38805 ac_status=$?
38806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38807 (exit $ac_status); }; }; then
38808 wx_cv_type_getsockname3=int
38809else
38810 echo "$as_me: failed program was:" >&5
38811sed 's/^/| /' conftest.$ac_ext >&5
38812
38813wx_cv_type_getsockname3=unknown
38814
38815fi
ac1cb8d3 38816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38817
38818fi
ac1cb8d3 38819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38820
38821 CFLAGS="$CFLAGS_OLD"
38822
38823
38824fi
ac1cb8d3 38825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38826
38827fi
38828echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
38829echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
38830
38831 if test "$wx_cv_type_getsockname3" = "unknown"; then
38832 wxUSE_SOCKETS=no
38833 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
38834echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
38835 else
38836 cat >>confdefs.h <<_ACEOF
38837#define SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
38838_ACEOF
38839
38840 fi
38841 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
38842echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
38843if test "${wx_cv_type_getsockopt5+set}" = set; then
38844 echo $ECHO_N "(cached) $ECHO_C" >&6
38845else
38846
38847 cat >conftest.$ac_ext <<_ACEOF
38848/* confdefs.h. */
38849_ACEOF
38850cat confdefs.h >>conftest.$ac_ext
38851cat >>conftest.$ac_ext <<_ACEOF
38852/* end confdefs.h. */
38853
38854 #include <sys/types.h>
38855 #include <sys/socket.h>
38856
38857int
38858main ()
38859{
38860
38861 socklen_t len;
38862 getsockopt(0, 0, 0, 0, &len);
38863
38864 ;
38865 return 0;
38866}
38867_ACEOF
38868rm -f conftest.$ac_objext
38869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38870 (eval $ac_compile) 2>conftest.er1
38871 ac_status=$?
38872 grep -v '^ *+' conftest.er1 >conftest.err
38873 rm -f conftest.er1
38874 cat conftest.err >&5
38875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38876 (exit $ac_status); } &&
6ebeb4c7 38877 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
38878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38879 (eval $ac_try) 2>&5
38880 ac_status=$?
38881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38882 (exit $ac_status); }; } &&
38883 { ac_try='test -s conftest.$ac_objext'
38884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38885 (eval $ac_try) 2>&5
38886 ac_status=$?
38887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38888 (exit $ac_status); }; }; then
38889 wx_cv_type_getsockopt5=socklen_t
38890else
38891 echo "$as_me: failed program was:" >&5
38892sed 's/^/| /' conftest.$ac_ext >&5
38893
38894
38895 CFLAGS_OLD="$CFLAGS"
38896 if test "$GCC" = yes ; then
38897 CFLAGS="$CFLAGS -Werror"
38898 fi
38899
38900 cat >conftest.$ac_ext <<_ACEOF
38901/* confdefs.h. */
38902_ACEOF
38903cat confdefs.h >>conftest.$ac_ext
38904cat >>conftest.$ac_ext <<_ACEOF
38905/* end confdefs.h. */
38906
38907 #include <sys/types.h>
38908 #include <sys/socket.h>
38909
38910int
38911main ()
38912{
38913
38914 size_t len;
38915 getsockopt(0, 0, 0, 0, &len);
38916
38917 ;
38918 return 0;
38919}
38920_ACEOF
38921rm -f conftest.$ac_objext
38922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38923 (eval $ac_compile) 2>conftest.er1
38924 ac_status=$?
38925 grep -v '^ *+' conftest.er1 >conftest.err
38926 rm -f conftest.er1
38927 cat conftest.err >&5
38928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38929 (exit $ac_status); } &&
6ebeb4c7 38930 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
38931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38932 (eval $ac_try) 2>&5
38933 ac_status=$?
38934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38935 (exit $ac_status); }; } &&
38936 { ac_try='test -s conftest.$ac_objext'
38937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38938 (eval $ac_try) 2>&5
38939 ac_status=$?
38940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38941 (exit $ac_status); }; }; then
38942 wx_cv_type_getsockopt5=size_t
38943else
38944 echo "$as_me: failed program was:" >&5
38945sed 's/^/| /' conftest.$ac_ext >&5
38946
38947cat >conftest.$ac_ext <<_ACEOF
38948/* confdefs.h. */
38949_ACEOF
38950cat confdefs.h >>conftest.$ac_ext
38951cat >>conftest.$ac_ext <<_ACEOF
38952/* end confdefs.h. */
38953
38954 #include <sys/types.h>
38955 #include <sys/socket.h>
38956
38957int
38958main ()
38959{
38960
38961 int len;
38962 getsockopt(0, 0, 0, 0, &len);
38963
38964 ;
38965 return 0;
38966}
38967_ACEOF
38968rm -f conftest.$ac_objext
38969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38970 (eval $ac_compile) 2>conftest.er1
38971 ac_status=$?
38972 grep -v '^ *+' conftest.er1 >conftest.err
38973 rm -f conftest.er1
38974 cat conftest.err >&5
38975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38976 (exit $ac_status); } &&
6ebeb4c7 38977 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
38978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38979 (eval $ac_try) 2>&5
38980 ac_status=$?
38981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38982 (exit $ac_status); }; } &&
38983 { ac_try='test -s conftest.$ac_objext'
38984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38985 (eval $ac_try) 2>&5
38986 ac_status=$?
38987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38988 (exit $ac_status); }; }; then
38989 wx_cv_type_getsockopt5=int
38990else
38991 echo "$as_me: failed program was:" >&5
38992sed 's/^/| /' conftest.$ac_ext >&5
38993
38994wx_cv_type_getsockopt5=unknown
38995
38996fi
38997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38998
38999fi
39000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39001
39002 CFLAGS="$CFLAGS_OLD"
39003
39004
39005fi
39006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39007
39008fi
39009echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
39010echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
39011
39012 if test "$wx_cv_type_getsockopt5" = "unknown"; then
39013 wxUSE_SOCKETS=no
39014 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
39015echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
39016 else
39017 cat >>confdefs.h <<_ACEOF
39018#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
39019_ACEOF
39020
39021 fi
4d4ff94c
VZ
39022 ac_ext=c
39023ac_cpp='$CPP $CPPFLAGS'
39024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39026ac_compiler_gnu=$ac_cv_c_compiler_gnu
39027
a848cd7e
SC
39028 fi
39029fi
39030
39031if test "$wxUSE_SOCKETS" = "yes" ; then
39032 cat >>confdefs.h <<\_ACEOF
39033#define wxUSE_SOCKETS 1
39034_ACEOF
39035
39036 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
39037fi
39038
39039if test "$wxUSE_PROTOCOL" = "yes"; then
39040 if test "$wxUSE_SOCKETS" != "yes"; then
39041 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
39042echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
39043 wxUSE_PROTOCOL=no
39044 fi
39045fi
39046
39047if test "$wxUSE_PROTOCOL" = "yes"; then
39048 cat >>confdefs.h <<\_ACEOF
39049#define wxUSE_PROTOCOL 1
39050_ACEOF
39051
39052
39053 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
39054 cat >>confdefs.h <<\_ACEOF
39055#define wxUSE_PROTOCOL_HTTP 1
39056_ACEOF
39057
39058 fi
39059 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
39060 cat >>confdefs.h <<\_ACEOF
39061#define wxUSE_PROTOCOL_FTP 1
39062_ACEOF
39063
39064 fi
39065 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
39066 cat >>confdefs.h <<\_ACEOF
39067#define wxUSE_PROTOCOL_FILE 1
39068_ACEOF
39069
39070 fi
39071else
39072 if test "$wxUSE_FS_INET" = "yes"; then
39073 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
39074echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
39075 wxUSE_FS_INET="no"
39076 fi
39077fi
39078
39079if test "$wxUSE_URL" = "yes"; then
39080 if test "$wxUSE_PROTOCOL" != "yes"; then
39081 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
39082echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
39083 wxUSE_URL=no
39084 fi
39085 if test "$wxUSE_URL" = "yes"; then
39086 cat >>confdefs.h <<\_ACEOF
39087#define wxUSE_URL 1
39088_ACEOF
39089
39090 fi
39091fi
39092
39093if test "$wxUSE_FS_INET" = "yes"; then
39094 cat >>confdefs.h <<\_ACEOF
39095#define wxUSE_FS_INET 1
39096_ACEOF
39097
39098fi
39099
39100
ee45c548
MW
39101if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
39102 wxUSE_JOYSTICK=no
39103
39104 if test "$TOOLKIT" = "MSW"; then
39105 wxUSE_JOYSTICK=yes
39106
39107 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
39108 if test "$USE_DARWIN" = 1; then
39109 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
39110echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
39111 ac_ext=cc
39112ac_cpp='$CXXCPP $CPPFLAGS'
39113ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39114ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39115ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39116
39117 cat >conftest.$ac_ext <<_ACEOF
39118/* confdefs.h. */
39119_ACEOF
39120cat confdefs.h >>conftest.$ac_ext
39121cat >>conftest.$ac_ext <<_ACEOF
39122/* end confdefs.h. */
39123 #include <IOKit/hid/IOHIDLib.h>
39124int
39125main ()
39126{
39127 IOHIDQueueInterface *qi = NULL;
39128 IOHIDCallbackFunction cb = NULL;
39129 qi->setEventCallout(NULL, cb, NULL, NULL);
39130 ;
39131 return 0;
39132}
39133_ACEOF
39134rm -f conftest.$ac_objext
39135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39136 (eval $ac_compile) 2>conftest.er1
39137 ac_status=$?
39138 grep -v '^ *+' conftest.er1 >conftest.err
39139 rm -f conftest.er1
39140 cat conftest.err >&5
39141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39142 (exit $ac_status); } &&
6ebeb4c7 39143 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
39144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39145 (eval $ac_try) 2>&5
39146 ac_status=$?
39147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39148 (exit $ac_status); }; } &&
39149 { ac_try='test -s conftest.$ac_objext'
39150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39151 (eval $ac_try) 2>&5
39152 ac_status=$?
39153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39154 (exit $ac_status); }; }; then
39155 wxUSE_JOYSTICK=yes
a848cd7e 39156
ee45c548
MW
39157else
39158 echo "$as_me: failed program was:" >&5
39159sed 's/^/| /' conftest.$ac_ext >&5
39160
39161fi
39162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39163 ac_ext=c
39164ac_cpp='$CPP $CPPFLAGS'
39165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39167ac_compiler_gnu=$ac_cv_c_compiler_gnu
39168
39169 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
39170echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
39171 fi
39172
39173 else
a848cd7e
SC
39174
39175for ac_header in linux/joystick.h
39176do
39177as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39178if eval "test \"\${$as_ac_Header+set}\" = set"; then
39179 echo "$as_me:$LINENO: checking for $ac_header" >&5
39180echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39181if eval "test \"\${$as_ac_Header+set}\" = set"; then
39182 echo $ECHO_N "(cached) $ECHO_C" >&6
39183fi
39184echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39185echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39186else
39187 # Is the header compilable?
39188echo "$as_me:$LINENO: checking $ac_header usability" >&5
39189echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39190cat >conftest.$ac_ext <<_ACEOF
39191/* confdefs.h. */
39192_ACEOF
39193cat confdefs.h >>conftest.$ac_ext
39194cat >>conftest.$ac_ext <<_ACEOF
39195/* end confdefs.h. */
39196$ac_includes_default
39197#include <$ac_header>
39198_ACEOF
39199rm -f conftest.$ac_objext
39200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39201 (eval $ac_compile) 2>conftest.er1
a848cd7e 39202 ac_status=$?
ac1cb8d3
VS
39203 grep -v '^ *+' conftest.er1 >conftest.err
39204 rm -f conftest.er1
39205 cat conftest.err >&5
a848cd7e
SC
39206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39207 (exit $ac_status); } &&
6ebeb4c7 39208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39210 (eval $ac_try) 2>&5
39211 ac_status=$?
39212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39213 (exit $ac_status); }; } &&
39214 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39216 (eval $ac_try) 2>&5
39217 ac_status=$?
39218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39219 (exit $ac_status); }; }; then
39220 ac_header_compiler=yes
39221else
39222 echo "$as_me: failed program was:" >&5
39223sed 's/^/| /' conftest.$ac_ext >&5
39224
39225ac_header_compiler=no
39226fi
ac1cb8d3 39227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39228echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39229echo "${ECHO_T}$ac_header_compiler" >&6
39230
39231# Is the header present?
39232echo "$as_me:$LINENO: checking $ac_header presence" >&5
39233echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39234cat >conftest.$ac_ext <<_ACEOF
39235/* confdefs.h. */
39236_ACEOF
39237cat confdefs.h >>conftest.$ac_ext
39238cat >>conftest.$ac_ext <<_ACEOF
39239/* end confdefs.h. */
39240#include <$ac_header>
39241_ACEOF
39242if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39244 ac_status=$?
39245 grep -v '^ *+' conftest.er1 >conftest.err
39246 rm -f conftest.er1
39247 cat conftest.err >&5
39248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39249 (exit $ac_status); } >/dev/null; then
39250 if test -s conftest.err; then
39251 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 39252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
39253 else
39254 ac_cpp_err=
39255 fi
39256else
39257 ac_cpp_err=yes
39258fi
39259if test -z "$ac_cpp_err"; then
39260 ac_header_preproc=yes
39261else
39262 echo "$as_me: failed program was:" >&5
39263sed 's/^/| /' conftest.$ac_ext >&5
39264
39265 ac_header_preproc=no
39266fi
39267rm -f conftest.err conftest.$ac_ext
39268echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39269echo "${ECHO_T}$ac_header_preproc" >&6
39270
39271# So? What about this header?
ac1cb8d3
VS
39272case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39273 yes:no: )
a848cd7e
SC
39274 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39275echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39277echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39278 ac_header_preproc=yes
a848cd7e 39279 ;;
ac1cb8d3 39280 no:yes:* )
a848cd7e
SC
39281 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39282echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39283 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39284echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39285 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39286echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39287 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39288echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39290echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39291 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39292echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39293 (
39294 cat <<\_ASBOX
ac1cb8d3
VS
39295## ----------------------------------------- ##
39296## Report this to wx-dev@lists.wxwidgets.org ##
39297## ----------------------------------------- ##
a848cd7e
SC
39298_ASBOX
39299 ) |
39300 sed "s/^/$as_me: WARNING: /" >&2
39301 ;;
39302esac
39303echo "$as_me:$LINENO: checking for $ac_header" >&5
39304echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39305if eval "test \"\${$as_ac_Header+set}\" = set"; then
39306 echo $ECHO_N "(cached) $ECHO_C" >&6
39307else
ac1cb8d3 39308 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39309fi
39310echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39311echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39312
39313fi
39314if test `eval echo '${'$as_ac_Header'}'` = yes; then
39315 cat >>confdefs.h <<_ACEOF
39316#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39317_ACEOF
ee45c548 39318 wxUSE_JOYSTICK=yes
a848cd7e
SC
39319fi
39320
39321done
39322
ee45c548 39323 fi
4cb1d3da 39324
ee45c548
MW
39325 if test "$wxUSE_JOYSTICK" = "yes"; then
39326 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39327#define wxUSE_JOYSTICK 1
39328_ACEOF
39329
ee45c548
MW
39330 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
39331 else
39332 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
39333echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
39334 fi
39335fi
39336
39337
39338
39339if test "$wxUSE_FONTMAP" = "yes" ; then
39340 cat >>confdefs.h <<\_ACEOF
39341#define wxUSE_FONTMAP 1
39342_ACEOF
39343
39344fi
39345
39346if test "$wxUSE_UNICODE" = "yes" ; then
39347 cat >>confdefs.h <<\_ACEOF
39348#define wxUSE_UNICODE 1
39349_ACEOF
39350
39351
39352 if test "$USE_WIN32" != 1; then
39353 wxUSE_UNICODE_MSLU=no
39354 fi
39355
39356 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
39357 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
39358echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
39359if test "${ac_cv_lib_unicows_main+set}" = set; then
39360 echo $ECHO_N "(cached) $ECHO_C" >&6
39361else
39362 ac_check_lib_save_LIBS=$LIBS
39363LIBS="-lunicows $LIBS"
39364cat >conftest.$ac_ext <<_ACEOF
39365/* confdefs.h. */
39366_ACEOF
39367cat confdefs.h >>conftest.$ac_ext
39368cat >>conftest.$ac_ext <<_ACEOF
39369/* end confdefs.h. */
39370
39371
39372int
39373main ()
39374{
39375main ();
39376 ;
39377 return 0;
39378}
39379_ACEOF
39380rm -f conftest.$ac_objext conftest$ac_exeext
39381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39382 (eval $ac_link) 2>conftest.er1
a848cd7e 39383 ac_status=$?
ac1cb8d3
VS
39384 grep -v '^ *+' conftest.er1 >conftest.err
39385 rm -f conftest.er1
39386 cat conftest.err >&5
a848cd7e
SC
39387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39388 (exit $ac_status); } &&
6ebeb4c7 39389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39391 (eval $ac_try) 2>&5
39392 ac_status=$?
39393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39394 (exit $ac_status); }; } &&
39395 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39397 (eval $ac_try) 2>&5
39398 ac_status=$?
39399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39400 (exit $ac_status); }; }; then
39401 ac_cv_lib_unicows_main=yes
39402else
39403 echo "$as_me: failed program was:" >&5
39404sed 's/^/| /' conftest.$ac_ext >&5
39405
39406ac_cv_lib_unicows_main=no
39407fi
ac1cb8d3
VS
39408rm -f conftest.err conftest.$ac_objext \
39409 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39410LIBS=$ac_check_lib_save_LIBS
39411fi
39412echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
39413echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
39414if test $ac_cv_lib_unicows_main = yes; then
39415
39416 cat >>confdefs.h <<\_ACEOF
39417#define wxUSE_UNICODE_MSLU 1
39418_ACEOF
39419
39420
39421else
39422
39423 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
39424 Applications will only run on Windows NT/2000/XP!" >&5
39425echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
39426 Applications will only run on Windows NT/2000/XP!" >&2;}
39427 wxUSE_UNICODE_MSLU=no
39428
39429fi
39430
39431 fi
39432fi
39433
39434if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
39435 cat >>confdefs.h <<\_ACEOF
39436#define wxUSE_EXPERIMENTAL_PRINTF 1
39437_ACEOF
39438
39439fi
39440
39441
39442if test "$wxUSE_POSTSCRIPT" = "yes" ; then
39443 cat >>confdefs.h <<\_ACEOF
39444#define wxUSE_POSTSCRIPT 1
39445_ACEOF
39446
39447fi
39448
39449cat >>confdefs.h <<\_ACEOF
39450#define wxUSE_AFM_FOR_POSTSCRIPT 1
39451_ACEOF
39452
39453
39454cat >>confdefs.h <<\_ACEOF
39455#define wxUSE_NORMALIZED_PS_FONTS 1
39456_ACEOF
39457
39458
39459
39460if test "$wxUSE_CONSTRAINTS" = "yes"; then
39461 cat >>confdefs.h <<\_ACEOF
39462#define wxUSE_CONSTRAINTS 1
39463_ACEOF
39464
39465 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
39466fi
39467
8a7b1113
VZ
39468if test "$wxUSE_MDI" = "yes"; then
39469 cat >>confdefs.h <<\_ACEOF
39470#define wxUSE_MDI 1
39471_ACEOF
39472
39473
39474 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
39475 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39476#define wxUSE_MDI_ARCHITECTURE 1
39477_ACEOF
39478
8a7b1113
VZ
39479 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
39480 fi
a848cd7e
SC
39481fi
39482
39483if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
39484 cat >>confdefs.h <<\_ACEOF
39485#define wxUSE_DOC_VIEW_ARCHITECTURE 1
39486_ACEOF
39487
39488 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
39489 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
39490 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
39491 fi
39492fi
39493
39494if test "$wxUSE_HELP" = "yes"; then
39495 cat >>confdefs.h <<\_ACEOF
39496#define wxUSE_HELP 1
39497_ACEOF
39498
39499 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
39500
39501 if test "$wxUSE_MSW" = 1; then
39502 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
39503 cat >>confdefs.h <<\_ACEOF
39504#define wxUSE_MS_HTML_HELP 1
39505_ACEOF
39506
39507 fi
39508 fi
39509
39510 if test "$wxUSE_WXHTML_HELP" = "yes"; then
39511 if test "$wxUSE_HTML" = "yes"; then
39512 cat >>confdefs.h <<\_ACEOF
39513#define wxUSE_WXHTML_HELP 1
39514_ACEOF
39515
39516 else
39517 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
39518echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
39519 wxUSE_WXHTML_HELP=no
39520 fi
39521 fi
39522fi
39523
39524if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
39525 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39526 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
39527echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
39528 else
39529 cat >>confdefs.h <<\_ACEOF
39530#define wxUSE_PRINTING_ARCHITECTURE 1
39531_ACEOF
39532
39533 fi
39534 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
39535fi
39536
39537if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
39538 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
39539echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
39540 { (exit 1); exit 1; }; }
39541fi
39542
39543
efdf6afe
VZ
39544if test "$wxUSE_METAFILE" = "yes"; then
39545 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
39546 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
39547echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
39548 wxUSE_METAFILE=no
39549 fi
39550fi
39551
39552
a848cd7e
SC
39553if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
39554 -o "$wxUSE_CLIPBOARD" = "yes" \
39555 -o "$wxUSE_OLE" = "yes" \
39556 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
39557
39558for ac_header in ole2.h
39559do
39560as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39561if eval "test \"\${$as_ac_Header+set}\" = set"; then
39562 echo "$as_me:$LINENO: checking for $ac_header" >&5
39563echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39564if eval "test \"\${$as_ac_Header+set}\" = set"; then
39565 echo $ECHO_N "(cached) $ECHO_C" >&6
39566fi
39567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39568echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39569else
39570 # Is the header compilable?
39571echo "$as_me:$LINENO: checking $ac_header usability" >&5
39572echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39573cat >conftest.$ac_ext <<_ACEOF
39574/* confdefs.h. */
39575_ACEOF
39576cat confdefs.h >>conftest.$ac_ext
39577cat >>conftest.$ac_ext <<_ACEOF
39578/* end confdefs.h. */
39579$ac_includes_default
39580#include <$ac_header>
39581_ACEOF
39582rm -f conftest.$ac_objext
39583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39584 (eval $ac_compile) 2>conftest.er1
a848cd7e 39585 ac_status=$?
ac1cb8d3
VS
39586 grep -v '^ *+' conftest.er1 >conftest.err
39587 rm -f conftest.er1
39588 cat conftest.err >&5
a848cd7e
SC
39589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39590 (exit $ac_status); } &&
6ebeb4c7 39591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39593 (eval $ac_try) 2>&5
39594 ac_status=$?
39595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39596 (exit $ac_status); }; } &&
39597 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39599 (eval $ac_try) 2>&5
39600 ac_status=$?
39601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39602 (exit $ac_status); }; }; then
39603 ac_header_compiler=yes
39604else
39605 echo "$as_me: failed program was:" >&5
39606sed 's/^/| /' conftest.$ac_ext >&5
39607
39608ac_header_compiler=no
39609fi
ac1cb8d3 39610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39611echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39612echo "${ECHO_T}$ac_header_compiler" >&6
39613
39614# Is the header present?
39615echo "$as_me:$LINENO: checking $ac_header presence" >&5
39616echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39617cat >conftest.$ac_ext <<_ACEOF
39618/* confdefs.h. */
39619_ACEOF
39620cat confdefs.h >>conftest.$ac_ext
39621cat >>conftest.$ac_ext <<_ACEOF
39622/* end confdefs.h. */
39623#include <$ac_header>
39624_ACEOF
39625if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39626 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39627 ac_status=$?
39628 grep -v '^ *+' conftest.er1 >conftest.err
39629 rm -f conftest.er1
39630 cat conftest.err >&5
39631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39632 (exit $ac_status); } >/dev/null; then
39633 if test -s conftest.err; then
39634 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 39635 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
39636 else
39637 ac_cpp_err=
39638 fi
39639else
39640 ac_cpp_err=yes
39641fi
39642if test -z "$ac_cpp_err"; then
39643 ac_header_preproc=yes
39644else
39645 echo "$as_me: failed program was:" >&5
39646sed 's/^/| /' conftest.$ac_ext >&5
39647
39648 ac_header_preproc=no
39649fi
39650rm -f conftest.err conftest.$ac_ext
39651echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39652echo "${ECHO_T}$ac_header_preproc" >&6
39653
39654# So? What about this header?
ac1cb8d3
VS
39655case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39656 yes:no: )
a848cd7e
SC
39657 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39658echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39660echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39661 ac_header_preproc=yes
a848cd7e 39662 ;;
ac1cb8d3 39663 no:yes:* )
a848cd7e
SC
39664 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39665echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39666 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39667echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39668 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39669echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39670 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39671echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39673echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39674 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39675echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39676 (
39677 cat <<\_ASBOX
ac1cb8d3
VS
39678## ----------------------------------------- ##
39679## Report this to wx-dev@lists.wxwidgets.org ##
39680## ----------------------------------------- ##
a848cd7e
SC
39681_ASBOX
39682 ) |
39683 sed "s/^/$as_me: WARNING: /" >&2
39684 ;;
39685esac
39686echo "$as_me:$LINENO: checking for $ac_header" >&5
39687echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39688if eval "test \"\${$as_ac_Header+set}\" = set"; then
39689 echo $ECHO_N "(cached) $ECHO_C" >&6
39690else
ac1cb8d3 39691 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39692fi
39693echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39694echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39695
39696fi
39697if test `eval echo '${'$as_ac_Header'}'` = yes; then
39698 cat >>confdefs.h <<_ACEOF
39699#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39700_ACEOF
39701
39702fi
39703
39704done
39705
39706
39707 if test "$ac_cv_header_ole2_h" = "yes" ; then
39708 if test "$GCC" = yes ; then
39709
39710
39711 ac_ext=cc
39712ac_cpp='$CXXCPP $CPPFLAGS'
39713ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39714ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39715ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39716
39717
39718 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
39719echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
39720 cat >conftest.$ac_ext <<_ACEOF
39721/* confdefs.h. */
39722_ACEOF
39723cat confdefs.h >>conftest.$ac_ext
39724cat >>conftest.$ac_ext <<_ACEOF
39725/* end confdefs.h. */
39726#include <windows.h>
39727 #include <ole2.h>
39728int
39729main ()
39730{
39731
39732 ;
39733 return 0;
39734}
39735_ACEOF
39736rm -f conftest.$ac_objext
39737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39738 (eval $ac_compile) 2>conftest.er1
a848cd7e 39739 ac_status=$?
ac1cb8d3
VS
39740 grep -v '^ *+' conftest.er1 >conftest.err
39741 rm -f conftest.er1
39742 cat conftest.err >&5
a848cd7e
SC
39743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39744 (exit $ac_status); } &&
6ebeb4c7 39745 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39747 (eval $ac_try) 2>&5
39748 ac_status=$?
39749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39750 (exit $ac_status); }; } &&
39751 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39753 (eval $ac_try) 2>&5
39754 ac_status=$?
39755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39756 (exit $ac_status); }; }; then
39757 echo "$as_me:$LINENO: result: no" >&5
39758echo "${ECHO_T}no" >&6
39759else
39760 echo "$as_me: failed program was:" >&5
39761sed 's/^/| /' conftest.$ac_ext >&5
39762
39763echo "$as_me:$LINENO: result: yes" >&5
39764echo "${ECHO_T}yes" >&6
39765 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
39766fi
ac1cb8d3 39767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39768 ac_ext=c
39769ac_cpp='$CPP $CPPFLAGS'
39770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39772ac_compiler_gnu=$ac_cv_c_compiler_gnu
39773
a848cd7e
SC
39774 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
39775 if test "$wxUSE_OLE" = "yes" ; then
39776 cat >>confdefs.h <<\_ACEOF
39777#define wxUSE_OLE 1
39778_ACEOF
39779
0b78747f 39780 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
39781 fi
39782 fi
39783
39784 if test "$wxUSE_DATAOBJ" = "yes" ; then
39785 cat >>confdefs.h <<\_ACEOF
39786#define wxUSE_DATAOBJ 1
39787_ACEOF
39788
39789 fi
39790 else
39791 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
39792echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
39793
39794 wxUSE_CLIPBOARD=no
39795 wxUSE_DRAG_AND_DROP=no
39796 wxUSE_DATAOBJ=no
39797 wxUSE_OLE=no
39798 fi
39799
39800 if test "$wxUSE_METAFILE" = "yes"; then
39801 cat >>confdefs.h <<\_ACEOF
39802#define wxUSE_METAFILE 1
39803_ACEOF
39804
39805
39806 cat >>confdefs.h <<\_ACEOF
39807#define wxUSE_ENH_METAFILE 1
39808_ACEOF
39809
39810 fi
39811fi
39812
39813if test "$wxUSE_IPC" = "yes"; then
0b78747f 39814 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
39815 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
39816echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 39817 wxUSE_IPC=no
a848cd7e
SC
39818 fi
39819
0b78747f
MW
39820 if test "$wxUSE_IPC" = "yes"; then
39821 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39822#define wxUSE_IPC 1
39823_ACEOF
39824
0b78747f
MW
39825 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
39826 fi
a848cd7e
SC
39827fi
39828
eb730a0c 39829if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
39830 if test "$wxUSE_MGL" = 1; then
39831 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
39832echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
39833 wxUSE_DATAOBJ=no
39834 else
39835 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
39836#define wxUSE_DATAOBJ 1
39837_ACEOF
39838
2113bc77 39839 fi
eb730a0c
JS
39840else
39841 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
39842echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
39843 wxUSE_CLIPBOARD=no
39844 wxUSE_DRAG_AND_DROP=no
39845fi
39846
a848cd7e
SC
39847if test "$wxUSE_CLIPBOARD" = "yes"; then
39848 if test "$wxUSE_MGL" = 1; then
39849 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
39850echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
39851 wxUSE_CLIPBOARD=no
39852 fi
39853
39854 if test "$wxUSE_CLIPBOARD" = "yes"; then
39855 cat >>confdefs.h <<\_ACEOF
39856#define wxUSE_CLIPBOARD 1
39857_ACEOF
39858
a848cd7e
SC
39859 fi
39860fi
39861
39862if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
39863 if test "$wxUSE_GTK" = 1; then
39864 if test "$WXGTK12" != 1; then
39865 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
39866echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
39867 wxUSE_DRAG_AND_DROP=no
39868 fi
39869 fi
39870
39871 if test "$wxUSE_MOTIF" = 1; then
39872 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
39873echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
39874 wxUSE_DRAG_AND_DROP=no
39875 fi
39876
39877 if test "$wxUSE_X11" = 1; then
39878 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
39879echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
39880 wxUSE_DRAG_AND_DROP=no
39881 fi
39882
39883 if test "$wxUSE_MGL" = 1; then
39884 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
39885echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
39886 wxUSE_DRAG_AND_DROP=no
39887 fi
39888
39889 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
39890 cat >>confdefs.h <<\_ACEOF
39891#define wxUSE_DRAG_AND_DROP 1
39892_ACEOF
39893
39894 fi
39895
39896fi
39897
39898if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
39899 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
39900fi
39901
39902if test "$wxUSE_SPLINES" = "yes" ; then
39903 cat >>confdefs.h <<\_ACEOF
39904#define wxUSE_SPLINES 1
39905_ACEOF
39906
39907fi
39908
fbe2ca43
SN
39909if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
39910 cat >>confdefs.h <<\_ACEOF
39911#define wxUSE_MOUSEWHEEL 1
39912_ACEOF
39913
39914fi
39915
a848cd7e
SC
39916
39917USES_CONTROLS=0
39918if test "$wxUSE_CONTROLS" = "yes"; then
39919 USES_CONTROLS=1
39920fi
39921
39922if test "$wxUSE_ACCEL" = "yes"; then
39923 cat >>confdefs.h <<\_ACEOF
39924#define wxUSE_ACCEL 1
39925_ACEOF
39926
39927 USES_CONTROLS=1
39928fi
39929
39930if test "$wxUSE_BUTTON" = "yes"; then
39931 cat >>confdefs.h <<\_ACEOF
39932#define wxUSE_BUTTON 1
39933_ACEOF
39934
39935 USES_CONTROLS=1
39936fi
39937
39938if test "$wxUSE_BMPBUTTON" = "yes"; then
39939 cat >>confdefs.h <<\_ACEOF
39940#define wxUSE_BMPBUTTON 1
39941_ACEOF
39942
39943 USES_CONTROLS=1
39944fi
39945
39946if test "$wxUSE_CALCTRL" = "yes"; then
39947 cat >>confdefs.h <<\_ACEOF
39948#define wxUSE_CALENDARCTRL 1
39949_ACEOF
39950
39951 USES_CONTROLS=1
39952 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
39953fi
39954
39955if test "$wxUSE_CARET" = "yes"; then
39956 cat >>confdefs.h <<\_ACEOF
39957#define wxUSE_CARET 1
39958_ACEOF
39959
39960 USES_CONTROLS=1
39961 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
39962fi
39963
39964if test "$wxUSE_COMBOBOX" = "yes"; then
39965 cat >>confdefs.h <<\_ACEOF
39966#define wxUSE_COMBOBOX 1
39967_ACEOF
39968
39969 USES_CONTROLS=1
39970fi
39971
39972if test "$wxUSE_CHOICE" = "yes"; then
39973 cat >>confdefs.h <<\_ACEOF
39974#define wxUSE_CHOICE 1
39975_ACEOF
39976
39977 USES_CONTROLS=1
39978fi
39979
92bbdbcd
WS
39980if test "$wxUSE_CHOICEBOOK" = "yes"; then
39981 cat >>confdefs.h <<\_ACEOF
39982#define wxUSE_CHOICEBOOK 1
39983_ACEOF
39984
39985 USES_CONTROLS=1
39986fi
39987
a848cd7e
SC
39988if test "$wxUSE_CHECKBOX" = "yes"; then
39989 cat >>confdefs.h <<\_ACEOF
39990#define wxUSE_CHECKBOX 1
39991_ACEOF
39992
39993 USES_CONTROLS=1
39994fi
39995
39996if test "$wxUSE_CHECKLST" = "yes"; then
39997 cat >>confdefs.h <<\_ACEOF
39998#define wxUSE_CHECKLISTBOX 1
39999_ACEOF
40000
40001 USES_CONTROLS=1
40002 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
40003fi
40004
da98e9be
VZ
40005if test "$wxUSE_DATEPICKCTRL" = "yes"; then
40006 cat >>confdefs.h <<\_ACEOF
40007#define wxUSE_DATEPICKCTRL 1
40008_ACEOF
40009
40010 USES_CONTROLS=1
40011fi
40012
a848cd7e
SC
40013if test "$wxUSE_DISPLAY" = "yes"; then
40014 cat >>confdefs.h <<\_ACEOF
40015#define wxUSE_DISPLAY 1
40016_ACEOF
40017
0b78747f 40018 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
40019fi
40020
40021if test "$wxUSE_GAUGE" = "yes"; then
40022 cat >>confdefs.h <<\_ACEOF
40023#define wxUSE_GAUGE 1
40024_ACEOF
40025
40026 USES_CONTROLS=1
40027fi
40028
40029if test "$wxUSE_GRID" = "yes"; then
40030 cat >>confdefs.h <<\_ACEOF
40031#define wxUSE_GRID 1
40032_ACEOF
40033
40034 USES_CONTROLS=1
40035 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
40036fi
40037
40038if test "$wxUSE_IMAGLIST" = "yes"; then
40039 cat >>confdefs.h <<\_ACEOF
40040#define wxUSE_IMAGLIST 1
40041_ACEOF
40042
40043fi
40044
40045if test "$wxUSE_LISTBOOK" = "yes"; then
40046 cat >>confdefs.h <<\_ACEOF
40047#define wxUSE_LISTBOOK 1
40048_ACEOF
40049
40050 USES_CONTROLS=1
40051fi
40052
40053if test "$wxUSE_LISTBOX" = "yes"; then
40054 cat >>confdefs.h <<\_ACEOF
40055#define wxUSE_LISTBOX 1
40056_ACEOF
40057
40058 USES_CONTROLS=1
0b78747f 40059 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
40060fi
40061
40062if test "$wxUSE_LISTCTRL" = "yes"; then
40063 if test "$wxUSE_IMAGLIST" = "yes"; then
40064 cat >>confdefs.h <<\_ACEOF
40065#define wxUSE_LISTCTRL 1
40066_ACEOF
40067
40068 USES_CONTROLS=1
40069 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
40070 else
40071 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
40072echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
40073 fi
40074fi
40075
40076if test "$wxUSE_NOTEBOOK" = "yes"; then
40077 cat >>confdefs.h <<\_ACEOF
40078#define wxUSE_NOTEBOOK 1
40079_ACEOF
40080
40081 USES_CONTROLS=1
40082 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
40083fi
40084
40085
40086if test "$wxUSE_RADIOBOX" = "yes"; then
40087 cat >>confdefs.h <<\_ACEOF
40088#define wxUSE_RADIOBOX 1
40089_ACEOF
40090
40091 USES_CONTROLS=1
40092fi
40093
40094if test "$wxUSE_RADIOBTN" = "yes"; then
40095 cat >>confdefs.h <<\_ACEOF
40096#define wxUSE_RADIOBTN 1
40097_ACEOF
40098
40099 USES_CONTROLS=1
40100fi
40101
40102if test "$wxUSE_SASH" = "yes"; then
40103 cat >>confdefs.h <<\_ACEOF
40104#define wxUSE_SASH 1
40105_ACEOF
40106
40107 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
40108fi
40109
40110if test "$wxUSE_SCROLLBAR" = "yes"; then
40111 cat >>confdefs.h <<\_ACEOF
40112#define wxUSE_SCROLLBAR 1
40113_ACEOF
40114
40115 USES_CONTROLS=1
40116 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
40117fi
40118
40119if test "$wxUSE_SLIDER" = "yes"; then
40120 cat >>confdefs.h <<\_ACEOF
40121#define wxUSE_SLIDER 1
40122_ACEOF
40123
40124 USES_CONTROLS=1
40125fi
40126
40127if test "$wxUSE_SPINBTN" = "yes"; then
40128 cat >>confdefs.h <<\_ACEOF
40129#define wxUSE_SPINBTN 1
40130_ACEOF
40131
40132 USES_CONTROLS=1
40133fi
40134
40135if test "$wxUSE_SPINCTRL" = "yes"; then
40136 cat >>confdefs.h <<\_ACEOF
40137#define wxUSE_SPINCTRL 1
40138_ACEOF
40139
40140 USES_CONTROLS=1
40141fi
40142
40143if test "$wxUSE_SPLITTER" = "yes"; then
40144 cat >>confdefs.h <<\_ACEOF
40145#define wxUSE_SPLITTER 1
40146_ACEOF
40147
40148 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
40149fi
40150
40151if test "$wxUSE_STATBMP" = "yes"; then
40152 cat >>confdefs.h <<\_ACEOF
40153#define wxUSE_STATBMP 1
40154_ACEOF
40155
40156 USES_CONTROLS=1
40157fi
40158
40159if test "$wxUSE_STATBOX" = "yes"; then
40160 cat >>confdefs.h <<\_ACEOF
40161#define wxUSE_STATBOX 1
40162_ACEOF
40163
40164 USES_CONTROLS=1
40165fi
40166
40167if test "$wxUSE_STATTEXT" = "yes"; then
40168 cat >>confdefs.h <<\_ACEOF
40169#define wxUSE_STATTEXT 1
40170_ACEOF
40171
40172 USES_CONTROLS=1
40173fi
40174
40175if test "$wxUSE_STATLINE" = "yes"; then
40176 cat >>confdefs.h <<\_ACEOF
40177#define wxUSE_STATLINE 1
40178_ACEOF
40179
40180 USES_CONTROLS=1
40181fi
40182
40183if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
40184 cat >>confdefs.h <<\_ACEOF
40185#define wxUSE_NATIVE_STATUSBAR 1
40186_ACEOF
40187
a848cd7e
SC
40188 cat >>confdefs.h <<\_ACEOF
40189#define wxUSE_STATUSBAR 1
40190_ACEOF
40191
40192 USES_CONTROLS=1
40193
40194 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
40195fi
40196
40197if test "$wxUSE_TABDIALOG" = "yes"; then
40198 cat >>confdefs.h <<\_ACEOF
40199#define wxUSE_TAB_DIALOG 1
40200_ACEOF
40201
a848cd7e
SC
40202fi
40203
40204if test "$wxUSE_TEXTCTRL" = "yes"; then
40205 cat >>confdefs.h <<\_ACEOF
40206#define wxUSE_TEXTCTRL 1
40207_ACEOF
40208
40209 USES_CONTROLS=1
40210 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
40211fi
40212
40213if test "$wxUSE_TOGGLEBTN" = "yes"; then
40214 if test "$wxUSE_COCOA" = 1 ; then
40215 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
40216echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
40217 wxUSE_TOGGLEBTN=no
40218 fi
40219 if test "$wxUSE_UNIVERSAL" = "yes"; then
40220 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
40221echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
40222 wxUSE_TOGGLEBTN=no
40223 fi
40224
40225 if test "$wxUSE_TOGGLEBTN" = "yes"; then
40226 cat >>confdefs.h <<\_ACEOF
40227#define wxUSE_TOGGLEBTN 1
40228_ACEOF
40229
40230 USES_CONTROLS=1
40231 fi
40232fi
40233
40234if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
40235 cat >>confdefs.h <<\_ACEOF
40236#define wxUSE_TOOLBAR_SIMPLE 1
40237_ACEOF
40238
40239 wxUSE_TOOLBAR="yes"
40240 USES_CONTROLS=1
40241fi
40242
40243if test "$wxUSE_TOOLBAR" = "yes"; then
40244 cat >>confdefs.h <<\_ACEOF
40245#define wxUSE_TOOLBAR 1
40246_ACEOF
40247
40248 USES_CONTROLS=1
40249
40250 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
40251 wxUSE_TOOLBAR_NATIVE="yes"
40252 fi
40253
40254 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
40255 cat >>confdefs.h <<\_ACEOF
40256#define wxUSE_TOOLBAR_NATIVE 1
40257_ACEOF
40258
40259 USES_CONTROLS=1
40260 fi
40261
40262 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
40263fi
40264
40265if test "$wxUSE_TOOLTIPS" = "yes"; then
40266 if test "$wxUSE_MOTIF" = 1; then
40267 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
40268echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
40269 else
40270 if test "$wxUSE_UNIVERSAL" = "yes"; then
40271 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
40272echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
40273 else
40274 cat >>confdefs.h <<\_ACEOF
40275#define wxUSE_TOOLTIPS 1
40276_ACEOF
40277
40278 fi
40279 fi
40280fi
40281
40282if test "$wxUSE_TREECTRL" = "yes"; then
40283 if test "$wxUSE_IMAGLIST" = "yes"; then
40284 cat >>confdefs.h <<\_ACEOF
40285#define wxUSE_TREECTRL 1
40286_ACEOF
40287
40288 USES_CONTROLS=1
40289 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
40290 else
40291 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
40292echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
40293 fi
40294fi
40295
40296if test "$wxUSE_POPUPWIN" = "yes"; then
40297 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
40298 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
40299echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
40300 else
40301 if test "$wxUSE_PM" = 1; then
40302 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
40303echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
40304 else
40305 cat >>confdefs.h <<\_ACEOF
40306#define wxUSE_POPUPWIN 1
40307_ACEOF
40308
0b78747f 40309 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
40310
40311 USES_CONTROLS=1
40312 fi
40313 fi
40314fi
40315
0dcd06dd 40316if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
40317 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
40318 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
40319echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
40320 else
40321 cat >>confdefs.h <<\_ACEOF
40322#define wxUSE_DIALUP_MANAGER 1
40323_ACEOF
40324
40325 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
40326 fi
40327fi
40328
a848cd7e
SC
40329if test "$wxUSE_TIPWINDOW" = "yes"; then
40330 if test "$wxUSE_PM" = 1; then
40331 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
40332echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
40333 else
40334 cat >>confdefs.h <<\_ACEOF
40335#define wxUSE_TIPWINDOW 1
40336_ACEOF
40337
40338 fi
40339fi
40340
40341if test "$USES_CONTROLS" = 1; then
40342 cat >>confdefs.h <<\_ACEOF
40343#define wxUSE_CONTROLS 1
40344_ACEOF
40345
40346fi
40347
40348
40349if test "$wxUSE_ACCESSIBILITY" = "yes"; then
40350 cat >>confdefs.h <<\_ACEOF
40351#define wxUSE_ACCESSIBILITY 1
40352_ACEOF
40353
40354 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
40355fi
40356
38b4a946
VZ
40357if test "$wxUSE_DC_CACHEING" = "yes"; then
40358 cat >>confdefs.h <<\_ACEOF
40359#define wxUSE_DC_CACHEING 1
40360_ACEOF
40361
40362fi
40363
a848cd7e
SC
40364if test "$wxUSE_DRAGIMAGE" = "yes"; then
40365 cat >>confdefs.h <<\_ACEOF
40366#define wxUSE_DRAGIMAGE 1
40367_ACEOF
40368
40369 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
40370fi
40371
40372if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
40373 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
40374 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
40375echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
40376 else
40377 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
40378#define wxUSE_EXCEPTIONS 1
40379_ACEOF
40380
07bea8f0
VS
40381 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
40382 fi
a848cd7e
SC
40383fi
40384
40385USE_HTML=0
40386if test "$wxUSE_HTML" = "yes"; then
40387 cat >>confdefs.h <<\_ACEOF
40388#define wxUSE_HTML 1
40389_ACEOF
40390
40391 USE_HTML=1
40392 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
40393 if test "$wxUSE_MAC" = 1; then
40394 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
40395 fi
a848cd7e 40396fi
646b6ec1 40397if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 40398 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
40399 old_CPPFLAGS="$CPPFLAGS"
40400 CPPFLAGS="$CPPFLAGS -x objective-c++"
40401 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
40402echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
40403if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
40404 echo $ECHO_N "(cached) $ECHO_C" >&6
40405else
40406 cat >conftest.$ac_ext <<_ACEOF
40407/* confdefs.h. */
40408_ACEOF
40409cat confdefs.h >>conftest.$ac_ext
40410cat >>conftest.$ac_ext <<_ACEOF
40411/* end confdefs.h. */
40412#include <Carbon/Carbon.h>
40413
40414#include <WebKit/HIWebView.h>
40415_ACEOF
40416rm -f conftest.$ac_objext
40417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40418 (eval $ac_compile) 2>conftest.er1
40419 ac_status=$?
40420 grep -v '^ *+' conftest.er1 >conftest.err
40421 rm -f conftest.er1
40422 cat conftest.err >&5
40423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40424 (exit $ac_status); } &&
6ebeb4c7 40425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
40426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40427 (eval $ac_try) 2>&5
40428 ac_status=$?
40429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40430 (exit $ac_status); }; } &&
40431 { ac_try='test -s conftest.$ac_objext'
40432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40433 (eval $ac_try) 2>&5
40434 ac_status=$?
40435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40436 (exit $ac_status); }; }; then
40437 ac_cv_header_WebKit_HIWebView_h=yes
40438else
40439 echo "$as_me: failed program was:" >&5
40440sed 's/^/| /' conftest.$ac_ext >&5
40441
40442ac_cv_header_WebKit_HIWebView_h=no
40443fi
40444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40445fi
40446echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
40447echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
40448if test $ac_cv_header_WebKit_HIWebView_h = yes; then
40449
40450 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
40451#define wxUSE_WEBKIT 1
40452_ACEOF
40453
07bea8f0
VS
40454 WEBKIT_LINK="-framework WebKit"
40455
40456else
40457
40458 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
40459echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
40460 wxUSE_WEBKIT=no
40461
646b6ec1
VS
40462fi
40463
07bea8f0
VS
40464
40465 CPPFLAGS="$old_CPPFLAGS"
40466 elif test "$wxUSE_COCOA" = 1; then
40467 cat >>confdefs.h <<\_ACEOF
40468#define wxUSE_WEBKIT 1
40469_ACEOF
40470
40471 else
40472 wxUSE_WEBKIT=no
40473 fi
40474fi
40475
9a8f0513
VS
40476USE_XRC=0
40477if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
40478 if test "$wxUSE_XML" != "yes"; then
40479 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
40480echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
40481 wxUSE_XRC=no
40482 else
40483 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
40484#define wxUSE_XRC 1
40485_ACEOF
40486
d2ebf0b7
VS
40487 USE_XRC=1
40488 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
40489 fi
9a8f0513 40490fi
07bea8f0 40491
a848cd7e
SC
40492if test "$wxUSE_MENUS" = "yes"; then
40493 cat >>confdefs.h <<\_ACEOF
40494#define wxUSE_MENUS 1
40495_ACEOF
40496
40497 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
40498fi
40499
40500if test "$wxUSE_METAFILE" = "yes"; then
40501 cat >>confdefs.h <<\_ACEOF
40502#define wxUSE_METAFILE 1
40503_ACEOF
40504
40505fi
40506
40507if test "$wxUSE_MIMETYPE" = "yes"; then
40508 cat >>confdefs.h <<\_ACEOF
40509#define wxUSE_MIMETYPE 1
40510_ACEOF
40511
40512fi
40513
40514if test "$wxUSE_MINIFRAME" = "yes"; then
40515 cat >>confdefs.h <<\_ACEOF
40516#define wxUSE_MINIFRAME 1
40517_ACEOF
40518
40519 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
40520fi
40521
40522if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
40523 cat >>confdefs.h <<\_ACEOF
40524#define wxUSE_SYSTEM_OPTIONS 1
40525_ACEOF
40526
40527 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 40528 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
40529 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
40530 fi
40531fi
40532
40533
40534if test "$wxUSE_VALIDATORS" = "yes"; then
40535 cat >>confdefs.h <<\_ACEOF
40536#define wxUSE_VALIDATORS 1
40537_ACEOF
40538
40539 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
40540fi
40541
40542if test "$wxUSE_PALETTE" = "yes" ; then
40543 cat >>confdefs.h <<\_ACEOF
40544#define wxUSE_PALETTE 1
40545_ACEOF
40546
40547fi
40548
40549if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
40550 LIBS=" -lunicows $LIBS"
40551fi
40552
40553
40554if test "$wxUSE_IMAGE" = "yes" ; then
40555 cat >>confdefs.h <<\_ACEOF
40556#define wxUSE_IMAGE 1
40557_ACEOF
40558
40559
40560 if test "$wxUSE_GIF" = "yes" ; then
40561 cat >>confdefs.h <<\_ACEOF
40562#define wxUSE_GIF 1
40563_ACEOF
40564
40565 fi
40566
40567 if test "$wxUSE_PCX" = "yes" ; then
40568 cat >>confdefs.h <<\_ACEOF
40569#define wxUSE_PCX 1
40570_ACEOF
40571
40572 fi
40573
40574 if test "$wxUSE_IFF" = "yes" ; then
40575 cat >>confdefs.h <<\_ACEOF
40576#define wxUSE_IFF 1
40577_ACEOF
40578
40579 fi
40580
40581 if test "$wxUSE_PNM" = "yes" ; then
40582 cat >>confdefs.h <<\_ACEOF
40583#define wxUSE_PNM 1
40584_ACEOF
40585
40586 fi
40587
40588 if test "$wxUSE_XPM" = "yes" ; then
40589 cat >>confdefs.h <<\_ACEOF
40590#define wxUSE_XPM 1
40591_ACEOF
40592
40593 fi
40594
40595 if test "$wxUSE_ICO_CUR" = "yes" ; then
40596 cat >>confdefs.h <<\_ACEOF
40597#define wxUSE_ICO_CUR 1
40598_ACEOF
40599
40600 fi
40601fi
40602
40603
40604if test "$wxUSE_CHOICEDLG" = "yes"; then
40605 cat >>confdefs.h <<\_ACEOF
40606#define wxUSE_CHOICEDLG 1
40607_ACEOF
40608
40609fi
40610
40611if test "$wxUSE_COLOURDLG" = "yes"; then
40612 cat >>confdefs.h <<\_ACEOF
40613#define wxUSE_COLOURDLG 1
40614_ACEOF
40615
40616fi
40617
40618if test "$wxUSE_FILEDLG" = "yes"; then
40619 cat >>confdefs.h <<\_ACEOF
40620#define wxUSE_FILEDLG 1
40621_ACEOF
40622
40623fi
40624
40625if test "$wxUSE_FINDREPLDLG" = "yes"; then
40626 cat >>confdefs.h <<\_ACEOF
40627#define wxUSE_FINDREPLDLG 1
40628_ACEOF
40629
40630fi
40631
40632if test "$wxUSE_FONTDLG" = "yes"; then
40633 cat >>confdefs.h <<\_ACEOF
40634#define wxUSE_FONTDLG 1
40635_ACEOF
40636
40637fi
40638
40639if test "$wxUSE_DIRDLG" = "yes"; then
40640 if test "$wxUSE_TREECTRL" != "yes"; then
40641 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
40642echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
40643 else
40644 cat >>confdefs.h <<\_ACEOF
40645#define wxUSE_DIRDLG 1
40646_ACEOF
40647
40648 fi
40649fi
40650
40651if test "$wxUSE_MSGDLG" = "yes"; then
40652 cat >>confdefs.h <<\_ACEOF
40653#define wxUSE_MSGDLG 1
40654_ACEOF
40655
40656fi
40657
40658if test "$wxUSE_NUMBERDLG" = "yes"; then
40659 cat >>confdefs.h <<\_ACEOF
40660#define wxUSE_NUMBERDLG 1
40661_ACEOF
40662
40663fi
40664
40665if test "$wxUSE_PROGRESSDLG" = "yes"; then
40666 if test "$wxUSE_CONSTRAINTS" != "yes"; then
40667 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
40668echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
40669 else
40670 cat >>confdefs.h <<\_ACEOF
40671#define wxUSE_PROGRESSDLG 1
40672_ACEOF
40673
40674 fi
40675fi
40676
40677if test "$wxUSE_SPLASH" = "yes"; then
40678 cat >>confdefs.h <<\_ACEOF
40679#define wxUSE_SPLASH 1
40680_ACEOF
40681
2057db16 40682 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
40683fi
40684
40685if test "$wxUSE_STARTUP_TIPS" = "yes"; then
40686 if test "$wxUSE_CONSTRAINTS" != "yes"; then
40687 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
40688echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
40689 else
40690 cat >>confdefs.h <<\_ACEOF
40691#define wxUSE_STARTUP_TIPS 1
40692_ACEOF
40693
40694 fi
40695fi
40696
40697if test "$wxUSE_TEXTDLG" = "yes"; then
40698 cat >>confdefs.h <<\_ACEOF
40699#define wxUSE_TEXTDLG 1
40700_ACEOF
40701
40702fi
40703
40704if test "$wxUSE_WIZARDDLG" = "yes"; then
40705 cat >>confdefs.h <<\_ACEOF
40706#define wxUSE_WIZARDDLG 1
40707_ACEOF
40708
40709 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
40710fi
40711
40712
ce756cb0 40713if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
40714 if test "$wxUSE_GTK" = 1; then
40715 wxUSE_GSTREAMER="yes"
40716
ce756cb0 40717
dae87f93 40718 succeeded=no
ce756cb0 40719
dae87f93
RN
40720 if test -z "$PKG_CONFIG"; then
40721 # Extract the first word of "pkg-config", so it can be a program name with args.
40722set dummy pkg-config; ac_word=$2
40723echo "$as_me:$LINENO: checking for $ac_word" >&5
40724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40725if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
40726 echo $ECHO_N "(cached) $ECHO_C" >&6
40727else
40728 case $PKG_CONFIG in
40729 [\\/]* | ?:[\\/]*)
40730 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
40731 ;;
40732 *)
40733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40734for as_dir in $PATH
40735do
40736 IFS=$as_save_IFS
40737 test -z "$as_dir" && as_dir=.
40738 for ac_exec_ext in '' $ac_executable_extensions; do
40739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40740 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40742 break 2
40743 fi
40744done
40745done
40746
40747 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
40748 ;;
40749esac
40750fi
40751PKG_CONFIG=$ac_cv_path_PKG_CONFIG
40752
40753if test -n "$PKG_CONFIG"; then
40754 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
40755echo "${ECHO_T}$PKG_CONFIG" >&6
40756else
40757 echo "$as_me:$LINENO: result: no" >&5
40758echo "${ECHO_T}no" >&6
40759fi
40760
40761 fi
40762
40763 if test "$PKG_CONFIG" = "no" ; then
40764 echo "*** The pkg-config script could not be found. Make sure it is"
40765 echo "*** in your path, or set the PKG_CONFIG environment variable"
40766 echo "*** to the full path to pkg-config."
40767 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
40768 else
40769 PKG_CONFIG_MIN_VERSION=0.9.0
40770 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
40771 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
40772echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
40773
40774 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
40775 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 40776echo "${ECHO_T}yes" >&6
dae87f93 40777 succeeded=yes
ce756cb0 40778
dae87f93
RN
40779 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
40780echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
40781 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
40782 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
40783echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
40784
40785 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
40786echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
40787 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
40788 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
40789echo "${ECHO_T}$GSTREAMER_LIBS" >&6
40790 else
40791 GSTREAMER_CFLAGS=""
40792 GSTREAMER_LIBS=""
40793 ## If we have a custom action on failure, don't print errors, but
40794 ## do set a variable so people can do so.
40795 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 40796
dae87f93
RN
40797 fi
40798
40799
40800
40801 else
40802 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
40803 echo "*** See http://www.freedesktop.org/software/pkgconfig"
40804 fi
40805 fi
40806
40807 if test $succeeded = yes; then
40808
40809 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
40810 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 40811
ce756cb0 40812 else
dae87f93
RN
40813
40814 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
40815echo "$as_me: WARNING: GStreamer installation not found" >&2;}
40816 wxUSE_GSTREAMER="no"
40817
40818 fi
40819
40820
40821
40822
40823
40824 if test "x$GST_INSPECT" == "x"; then
40825 # Extract the first word of "gst-inspect", so it can be a program name with args.
40826set dummy gst-inspect; ac_word=$2
40827echo "$as_me:$LINENO: checking for $ac_word" >&5
40828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40829if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
40830 echo $ECHO_N "(cached) $ECHO_C" >&6
40831else
40832 if test -n "$GST_INSPECT"; then
40833 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
40834else
40835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40836for as_dir in $PATH
40837do
40838 IFS=$as_save_IFS
40839 test -z "$as_dir" && as_dir=.
40840 for ac_exec_ext in '' $ac_executable_extensions; do
40841 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40842 ac_cv_prog_GST_INSPECT="gst-inspect"
40843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40844 break 2
ce756cb0 40845 fi
dae87f93
RN
40846done
40847done
40848
40849fi
40850fi
40851GST_INSPECT=$ac_cv_prog_GST_INSPECT
40852if test -n "$GST_INSPECT"; then
40853 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
40854echo "${ECHO_T}$GST_INSPECT" >&6
40855else
40856 echo "$as_me:$LINENO: result: no" >&5
40857echo "${ECHO_T}no" >&6
40858fi
40859
40860 fi
40861
40862 if test "x$GST_INSPECT" != "x"; then
40863 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
40864echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
40865 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
40866 echo "$as_me:$LINENO: result: found." >&5
40867echo "${ECHO_T}found." >&6
ce756cb0 40868
ce756cb0 40869 else
dae87f93
RN
40870 echo "$as_me:$LINENO: result: not found." >&5
40871echo "${ECHO_T}not found." >&6
40872
40873 wxUSE_GSTREAMER="no"
40874 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
40875echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
40876
40877 fi
40878 fi
40879
40880
40881 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
40882echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
40883if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
40884 echo $ECHO_N "(cached) $ECHO_C" >&6
40885else
40886 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
40887/* confdefs.h. */
40888_ACEOF
40889cat confdefs.h >>conftest.$ac_ext
40890cat >>conftest.$ac_ext <<_ACEOF
40891/* end confdefs.h. */
dae87f93 40892#include <gst/gst.h>
ce756cb0 40893
dae87f93 40894#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
40895_ACEOF
40896rm -f conftest.$ac_objext
40897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40898 (eval $ac_compile) 2>conftest.er1
40899 ac_status=$?
40900 grep -v '^ *+' conftest.er1 >conftest.err
40901 rm -f conftest.er1
40902 cat conftest.err >&5
40903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40904 (exit $ac_status); } &&
6ebeb4c7 40905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
40906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40907 (eval $ac_try) 2>&5
40908 ac_status=$?
40909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40910 (exit $ac_status); }; } &&
40911 { ac_try='test -s conftest.$ac_objext'
40912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40913 (eval $ac_try) 2>&5
40914 ac_status=$?
40915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40916 (exit $ac_status); }; }; then
dae87f93 40917 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
40918else
40919 echo "$as_me: failed program was:" >&5
40920sed 's/^/| /' conftest.$ac_ext >&5
40921
dae87f93 40922ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
40923fi
40924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
40925fi
40926echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
40927echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
40928if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
40929 :
40930else
ce756cb0 40931
dae87f93
RN
40932 wxUSE_GSTREAMER="no"
40933 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
40934echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 40935
dae87f93 40936fi
ce756cb0 40937
dae87f93
RN
40938
40939
40940 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
40941echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
40942
40943ac_find_libraries=
40944for ac_dir in $SEARCH_LIB /usr/lib;
40945 do
3eca31dc 40946 for ac_extension in a so sl dylib dll.a; do
ce756cb0
RN
40947 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
40948 ac_find_libraries=$ac_dir
40949 break 2
40950 fi
40951 done
40952 done
40953
ce756cb0 40954
dae87f93
RN
40955 if test "$ac_find_libraries" = "" ; then
40956 echo "$as_me:$LINENO: result: no" >&5
40957echo "${ECHO_T}no" >&6
40958 wxUSE_GSTREAMER="no"
40959 else
40960 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 40961echo "${ECHO_T}yes" >&6
dae87f93 40962 fi
ce756cb0 40963
dae87f93
RN
40964 if test "$wxUSE_GSTREAMER" = "yes"; then
40965 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
40966#define wxUSE_GSTREAMER 1
40967_ACEOF
40968
dae87f93
RN
40969 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
40970echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
40971 fi
40972 fi
40973 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
40974 cat >>confdefs.h <<\_ACEOF
40975#define wxUSE_MEDIACTRL 1
40976_ACEOF
40977
40978fi
40979
40980
a848cd7e
SC
40981if test "$cross_compiling" = "yes"; then
40982 OSINFO="\"$host\""
40983else
40984 OSINFO=`uname -s -r -m`
40985 OSINFO="\"$OSINFO\""
40986fi
40987
40988cat >>confdefs.h <<_ACEOF
40989#define WXWIN_OS_DESCRIPTION $OSINFO
40990_ACEOF
40991
40992
40993
40994if test "x$prefix" != "xNONE"; then
40995 wxPREFIX=$prefix
40996else
40997 wxPREFIX=$ac_default_prefix
40998fi
40999
41000cat >>confdefs.h <<_ACEOF
41001#define wxINSTALL_PREFIX "$wxPREFIX"
41002_ACEOF
41003
41004
a848cd7e
SC
41005
41006
41007CORE_BASE_LIBS="net base"
41008CORE_GUI_LIBS="adv core"
41009
41010if test "$wxUSE_XML" = "yes" ; then
41011 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
41012fi
41013if test "$wxUSE_ODBC" != "no" ; then
41014 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
41015 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
41016fi
41017if test "$wxUSE_HTML" = "yes" ; then
41018 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
41019fi
61639efb
VZ
41020if test "$wxUSE_DEBUGREPORT" = "yes" ; then
41021 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
41022fi
9a8f0513
VS
41023if test "$wxUSE_XRC" = "yes" ; then
41024 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
41025fi
a848cd7e
SC
41026
41027if test "$wxUSE_GUI" != "yes"; then
41028 CORE_GUI_LIBS=""
41029fi
41030
41031
41032
41033
41034
41035
41036
41037
41038if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 41039 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
41040 if test "$USE_DARWIN" = 1; then
41041 LDFLAGS="$LDFLAGS -framework QuickTime"
41042 else
41043 LDFLAGS="$LDFLAGS -lQuickTimeLib"
41044 fi
07bea8f0 41045 fi
5dcf30a0 41046 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
41047 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
41048 else
41049 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 41050 fi
a848cd7e
SC
41051fi
41052if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 41053 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
41054 if test "$wxUSE_MEDIACTRL" = "yes"; then
41055 LDFLAGS="$LDFLAGS -framework QuickTime"
41056 fi
a848cd7e 41057fi
19b27e78
MW
41058if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
41059 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
41060fi
a848cd7e
SC
41061
41062
41063LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
41064
41065have_cos=0
41066have_floor=0
41067
41068for ac_func in cos
41069do
41070as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41071echo "$as_me:$LINENO: checking for $ac_func" >&5
41072echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41073if eval "test \"\${$as_ac_var+set}\" = set"; then
41074 echo $ECHO_N "(cached) $ECHO_C" >&6
41075else
41076 cat >conftest.$ac_ext <<_ACEOF
41077/* confdefs.h. */
41078_ACEOF
41079cat confdefs.h >>conftest.$ac_ext
41080cat >>conftest.$ac_ext <<_ACEOF
41081/* end confdefs.h. */
ac1cb8d3
VS
41082/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41084#define $ac_func innocuous_$ac_func
41085
a848cd7e
SC
41086/* System header to define __stub macros and hopefully few prototypes,
41087 which can conflict with char $ac_func (); below.
41088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41089 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41090
a848cd7e
SC
41091#ifdef __STDC__
41092# include <limits.h>
41093#else
41094# include <assert.h>
41095#endif
ac1cb8d3
VS
41096
41097#undef $ac_func
41098
a848cd7e
SC
41099/* Override any gcc2 internal prototype to avoid an error. */
41100#ifdef __cplusplus
41101extern "C"
41102{
41103#endif
41104/* We use char because int might match the return type of a gcc2
41105 builtin and then its argument prototype would still apply. */
41106char $ac_func ();
41107/* The GNU C library defines this for functions which it implements
41108 to always fail with ENOSYS. Some functions are actually named
41109 something starting with __ and the normal name is an alias. */
41110#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41111choke me
41112#else
41113char (*f) () = $ac_func;
41114#endif
41115#ifdef __cplusplus
41116}
41117#endif
41118
41119int
41120main ()
41121{
41122return f != $ac_func;
41123 ;
41124 return 0;
41125}
41126_ACEOF
41127rm -f conftest.$ac_objext conftest$ac_exeext
41128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41129 (eval $ac_link) 2>conftest.er1
a848cd7e 41130 ac_status=$?
ac1cb8d3
VS
41131 grep -v '^ *+' conftest.er1 >conftest.err
41132 rm -f conftest.er1
41133 cat conftest.err >&5
a848cd7e
SC
41134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41135 (exit $ac_status); } &&
6ebeb4c7 41136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41138 (eval $ac_try) 2>&5
41139 ac_status=$?
41140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41141 (exit $ac_status); }; } &&
41142 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41144 (eval $ac_try) 2>&5
41145 ac_status=$?
41146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41147 (exit $ac_status); }; }; then
41148 eval "$as_ac_var=yes"
41149else
41150 echo "$as_me: failed program was:" >&5
41151sed 's/^/| /' conftest.$ac_ext >&5
41152
41153eval "$as_ac_var=no"
41154fi
ac1cb8d3
VS
41155rm -f conftest.err conftest.$ac_objext \
41156 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41157fi
41158echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41159echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41160if test `eval echo '${'$as_ac_var'}'` = yes; then
41161 cat >>confdefs.h <<_ACEOF
41162#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41163_ACEOF
41164 have_cos=1
41165fi
41166done
41167
41168
41169for ac_func in floor
41170do
41171as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41172echo "$as_me:$LINENO: checking for $ac_func" >&5
41173echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41174if eval "test \"\${$as_ac_var+set}\" = set"; then
41175 echo $ECHO_N "(cached) $ECHO_C" >&6
41176else
41177 cat >conftest.$ac_ext <<_ACEOF
41178/* confdefs.h. */
41179_ACEOF
41180cat confdefs.h >>conftest.$ac_ext
41181cat >>conftest.$ac_ext <<_ACEOF
41182/* end confdefs.h. */
ac1cb8d3
VS
41183/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41185#define $ac_func innocuous_$ac_func
41186
a848cd7e
SC
41187/* System header to define __stub macros and hopefully few prototypes,
41188 which can conflict with char $ac_func (); below.
41189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41190 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41191
a848cd7e
SC
41192#ifdef __STDC__
41193# include <limits.h>
41194#else
41195# include <assert.h>
41196#endif
ac1cb8d3
VS
41197
41198#undef $ac_func
41199
a848cd7e
SC
41200/* Override any gcc2 internal prototype to avoid an error. */
41201#ifdef __cplusplus
41202extern "C"
41203{
41204#endif
41205/* We use char because int might match the return type of a gcc2
41206 builtin and then its argument prototype would still apply. */
41207char $ac_func ();
41208/* The GNU C library defines this for functions which it implements
41209 to always fail with ENOSYS. Some functions are actually named
41210 something starting with __ and the normal name is an alias. */
41211#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41212choke me
41213#else
41214char (*f) () = $ac_func;
41215#endif
41216#ifdef __cplusplus
41217}
41218#endif
41219
41220int
41221main ()
41222{
41223return f != $ac_func;
41224 ;
41225 return 0;
41226}
41227_ACEOF
41228rm -f conftest.$ac_objext conftest$ac_exeext
41229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41230 (eval $ac_link) 2>conftest.er1
a848cd7e 41231 ac_status=$?
ac1cb8d3
VS
41232 grep -v '^ *+' conftest.er1 >conftest.err
41233 rm -f conftest.er1
41234 cat conftest.err >&5
a848cd7e
SC
41235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41236 (exit $ac_status); } &&
6ebeb4c7 41237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41239 (eval $ac_try) 2>&5
41240 ac_status=$?
41241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41242 (exit $ac_status); }; } &&
41243 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41245 (eval $ac_try) 2>&5
41246 ac_status=$?
41247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41248 (exit $ac_status); }; }; then
41249 eval "$as_ac_var=yes"
41250else
41251 echo "$as_me: failed program was:" >&5
41252sed 's/^/| /' conftest.$ac_ext >&5
41253
41254eval "$as_ac_var=no"
41255fi
ac1cb8d3
VS
41256rm -f conftest.err conftest.$ac_objext \
41257 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41258fi
41259echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41260echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41261if test `eval echo '${'$as_ac_var'}'` = yes; then
41262 cat >>confdefs.h <<_ACEOF
41263#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41264_ACEOF
41265 have_floor=1
41266fi
41267done
41268
41269echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
41270echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
41271if test "$have_cos" = 1 -a "$have_floor" = 1; then
41272 echo "$as_me:$LINENO: result: yes" >&5
41273echo "${ECHO_T}yes" >&6
41274else
41275 echo "$as_me:$LINENO: result: no" >&5
41276echo "${ECHO_T}no" >&6
41277 LIBS="$LIBS -lm"
41278 # use different functions to avoid configure caching
41279 have_sin=0
41280 have_ceil=0
41281
41282for ac_func in sin
41283do
41284as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41285echo "$as_me:$LINENO: checking for $ac_func" >&5
41286echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41287if eval "test \"\${$as_ac_var+set}\" = set"; then
41288 echo $ECHO_N "(cached) $ECHO_C" >&6
41289else
41290 cat >conftest.$ac_ext <<_ACEOF
41291/* confdefs.h. */
41292_ACEOF
41293cat confdefs.h >>conftest.$ac_ext
41294cat >>conftest.$ac_ext <<_ACEOF
41295/* end confdefs.h. */
ac1cb8d3
VS
41296/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41298#define $ac_func innocuous_$ac_func
41299
a848cd7e
SC
41300/* System header to define __stub macros and hopefully few prototypes,
41301 which can conflict with char $ac_func (); below.
41302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41303 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41304
a848cd7e
SC
41305#ifdef __STDC__
41306# include <limits.h>
41307#else
41308# include <assert.h>
41309#endif
ac1cb8d3
VS
41310
41311#undef $ac_func
41312
a848cd7e
SC
41313/* Override any gcc2 internal prototype to avoid an error. */
41314#ifdef __cplusplus
41315extern "C"
41316{
41317#endif
41318/* We use char because int might match the return type of a gcc2
41319 builtin and then its argument prototype would still apply. */
41320char $ac_func ();
41321/* The GNU C library defines this for functions which it implements
41322 to always fail with ENOSYS. Some functions are actually named
41323 something starting with __ and the normal name is an alias. */
41324#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41325choke me
41326#else
41327char (*f) () = $ac_func;
41328#endif
41329#ifdef __cplusplus
41330}
41331#endif
41332
41333int
41334main ()
41335{
41336return f != $ac_func;
41337 ;
41338 return 0;
41339}
41340_ACEOF
41341rm -f conftest.$ac_objext conftest$ac_exeext
41342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41343 (eval $ac_link) 2>conftest.er1
a848cd7e 41344 ac_status=$?
ac1cb8d3
VS
41345 grep -v '^ *+' conftest.er1 >conftest.err
41346 rm -f conftest.er1
41347 cat conftest.err >&5
a848cd7e
SC
41348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41349 (exit $ac_status); } &&
6ebeb4c7 41350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41352 (eval $ac_try) 2>&5
41353 ac_status=$?
41354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41355 (exit $ac_status); }; } &&
41356 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41358 (eval $ac_try) 2>&5
41359 ac_status=$?
41360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41361 (exit $ac_status); }; }; then
41362 eval "$as_ac_var=yes"
41363else
41364 echo "$as_me: failed program was:" >&5
41365sed 's/^/| /' conftest.$ac_ext >&5
41366
41367eval "$as_ac_var=no"
41368fi
ac1cb8d3
VS
41369rm -f conftest.err conftest.$ac_objext \
41370 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41371fi
41372echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41373echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41374if test `eval echo '${'$as_ac_var'}'` = yes; then
41375 cat >>confdefs.h <<_ACEOF
41376#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41377_ACEOF
41378 have_sin=1
41379fi
41380done
41381
41382
41383for ac_func in ceil
41384do
41385as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41386echo "$as_me:$LINENO: checking for $ac_func" >&5
41387echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41388if eval "test \"\${$as_ac_var+set}\" = set"; then
41389 echo $ECHO_N "(cached) $ECHO_C" >&6
41390else
41391 cat >conftest.$ac_ext <<_ACEOF
41392/* confdefs.h. */
41393_ACEOF
41394cat confdefs.h >>conftest.$ac_ext
41395cat >>conftest.$ac_ext <<_ACEOF
41396/* end confdefs.h. */
ac1cb8d3
VS
41397/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41399#define $ac_func innocuous_$ac_func
41400
a848cd7e
SC
41401/* System header to define __stub macros and hopefully few prototypes,
41402 which can conflict with char $ac_func (); below.
41403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41404 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41405
a848cd7e
SC
41406#ifdef __STDC__
41407# include <limits.h>
41408#else
41409# include <assert.h>
41410#endif
ac1cb8d3
VS
41411
41412#undef $ac_func
41413
a848cd7e
SC
41414/* Override any gcc2 internal prototype to avoid an error. */
41415#ifdef __cplusplus
41416extern "C"
41417{
41418#endif
41419/* We use char because int might match the return type of a gcc2
41420 builtin and then its argument prototype would still apply. */
41421char $ac_func ();
41422/* The GNU C library defines this for functions which it implements
41423 to always fail with ENOSYS. Some functions are actually named
41424 something starting with __ and the normal name is an alias. */
41425#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41426choke me
41427#else
41428char (*f) () = $ac_func;
41429#endif
41430#ifdef __cplusplus
41431}
41432#endif
41433
41434int
41435main ()
41436{
41437return f != $ac_func;
41438 ;
41439 return 0;
41440}
41441_ACEOF
41442rm -f conftest.$ac_objext conftest$ac_exeext
41443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41444 (eval $ac_link) 2>conftest.er1
a848cd7e 41445 ac_status=$?
ac1cb8d3
VS
41446 grep -v '^ *+' conftest.er1 >conftest.err
41447 rm -f conftest.er1
41448 cat conftest.err >&5
a848cd7e
SC
41449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41450 (exit $ac_status); } &&
6ebeb4c7 41451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41453 (eval $ac_try) 2>&5
41454 ac_status=$?
41455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41456 (exit $ac_status); }; } &&
41457 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41459 (eval $ac_try) 2>&5
41460 ac_status=$?
41461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41462 (exit $ac_status); }; }; then
41463 eval "$as_ac_var=yes"
41464else
41465 echo "$as_me: failed program was:" >&5
41466sed 's/^/| /' conftest.$ac_ext >&5
41467
41468eval "$as_ac_var=no"
41469fi
ac1cb8d3
VS
41470rm -f conftest.err conftest.$ac_objext \
41471 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41472fi
41473echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41474echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41475if test `eval echo '${'$as_ac_var'}'` = yes; then
41476 cat >>confdefs.h <<_ACEOF
41477#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41478_ACEOF
41479 have_ceil=1
41480fi
41481done
41482
41483 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
41484echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
41485 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
41486 echo "$as_me:$LINENO: result: yes" >&5
41487echo "${ECHO_T}yes" >&6
41488 else
41489 echo "$as_me:$LINENO: result: no" >&5
41490echo "${ECHO_T}no" >&6
41491 # not sure we should warn the user, crash, etc.
41492 fi
41493fi
41494
41495if test "$wxUSE_GUI" = "yes"; then
41496
41497
8bce5cda
MW
41498 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
41499 dynamic erase event exec font image minimal mobile \
41500 mobile/wxedit mobile/styles propsize render \
41501 richedit rotate shaped vscroll widgets"
a848cd7e
SC
41502
41503 if test "$wxUSE_MONOLITHIC" != "yes"; then
41504 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
41505 fi
0b78747f 41506 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
41507 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
41508 if test "$wxUSE_UNIVERSAL" != "yes"; then
41509 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
41510 fi
41511 fi
41512 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
41513 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 41514 fi
a848cd7e
SC
41515else
41516 SAMPLES_SUBDIRS="console"
41517fi
41518
41519
ceec2216 41520INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
41521-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
41522
41523if test "$GXX" = yes ; then
6ebeb4c7 41524 CWARNINGS="-Wall -Wundef"
5294a27e 41525 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
6ebeb4c7 41526fi
a848cd7e
SC
41527
41528EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
41529
0c3c69fc 41530CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 41531CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 41532CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 41533
95986553
DE
41534if test "x$MWCC" = "xyes"; then
41535
41536 CC="$CC -cwd source -I-"
41537 CXX="$CXX -cwd source -I-"
41538fi
41539
a848cd7e 41540
0c3c69fc 41541LIBS=`echo $LIBS`
a848cd7e
SC
41542EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
41543EXTRALIBS_XML="$EXPAT_LINK"
41544EXTRALIBS_HTML="$MSPACK_LINK"
41545EXTRALIBS_ODBC="$ODBC_LINK"
41546if test "$wxUSE_GUI" = "yes"; then
2e350179 41547 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
41548fi
41549if test "$wxUSE_OPENGL" = "yes"; then
41550 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
41551fi
41552
41553LDFLAGS="$LDFLAGS $PROFILE"
41554
41555if test "$wxUSE_GTK" = 1; then
41556 WXCONFIG_INCLUDE=
41557else
41558 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
41559fi
41560
41561WXCONFIG_EXTRALIBS="$LIBS"
41562
41563if test "$wxUSE_REGEX" = "builtin" ; then
74802184 41564 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
41565fi
41566if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 41567 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
41568fi
41569if test "$wxUSE_ODBC" = "builtin" ; then
74802184 41570 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
41571fi
41572if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 41573 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
41574fi
41575if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 41576 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
41577fi
41578if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 41579 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
41580fi
41581if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 41582 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
41583fi
41584
41585for i in $wxconfig_3rdparty ; do
74802184 41586 WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS"
a848cd7e
SC
41587done
41588
41589
41590if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
41591 WXUNIV=1
41592else
41593 WXUNIV=0
41594fi
41595
41596
41597
41598
41599
41600
41601
41602
41603
41604if test $wxUSE_MONOLITHIC = "yes" ; then
41605 MONOLITHIC=1
41606else
41607 MONOLITHIC=0
41608fi
41609
41610if test $wxUSE_PLUGINS = "yes" ; then
41611 USE_PLUGINS=1
41612else
41613 USE_PLUGINS=0
41614fi
41615
41616if test $wxUSE_ODBC != "no" ; then
41617 USE_ODBC=1
41618else
41619 USE_ODBC=0
41620fi
41621
16358932
VZ
41622if test "$wxUSE_DEBUGREPORT" = "yes" ; then
41623 USE_QA=1
41624else
41625 USE_QA=0
41626fi
41627
a848cd7e
SC
41628if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
41629 OFFICIAL_BUILD=1
41630else
41631 OFFICIAL_BUILD=0
41632fi
41633
41634
41635
41636
41637
41638
41639
41640
41641
41642
41643
41644
41645
41646
41647
41648
41649
41650
41651
ceec2216 41652
d1c38808 41653
a848cd7e
SC
41654
41655
41656TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
41657
41658
41659
41660
41661
41662
41663
41664
4d4ff94c
VZ
41665case "$TOOLKIT" in
41666 GTK)
41667 TOOLKIT_USER="GTK+"
41668 if test "$WXGTK20" = 1; then
41669 TOOLKIT_USER="$TOOLKIT_USER 2"
41670 fi
9a8f0513 41671 ;;
4d4ff94c
VZ
41672
41673 *)
41674 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 41675 ;;
4d4ff94c 41676esac
a848cd7e 41677
fb00f58d
JS
41678if test "$wxUSE_WINE" = "yes"; then
41679 BAKEFILE_FORCE_PLATFORM=win32
41680fi
41681
9a8f0513 41682
1e9e8aba
DE
41683
41684
a848cd7e
SC
41685 if test "x$BAKEFILE_HOST" = "x"; then
41686 BAKEFILE_HOST="${host}"
41687 fi
41688
41689 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
41690
41691 if test -n "$ac_tool_prefix"; then
41692 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
41693set dummy ${ac_tool_prefix}ranlib; ac_word=$2
41694echo "$as_me:$LINENO: checking for $ac_word" >&5
41695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41696if test "${ac_cv_prog_RANLIB+set}" = set; then
41697 echo $ECHO_N "(cached) $ECHO_C" >&6
41698else
41699 if test -n "$RANLIB"; then
41700 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
41701else
41702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41703for as_dir in $PATH
41704do
41705 IFS=$as_save_IFS
41706 test -z "$as_dir" && as_dir=.
41707 for ac_exec_ext in '' $ac_executable_extensions; do
41708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41709 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
41710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41711 break 2
41712 fi
41713done
41714done
41715
41716fi
41717fi
41718RANLIB=$ac_cv_prog_RANLIB
41719if test -n "$RANLIB"; then
41720 echo "$as_me:$LINENO: result: $RANLIB" >&5
41721echo "${ECHO_T}$RANLIB" >&6
41722else
41723 echo "$as_me:$LINENO: result: no" >&5
41724echo "${ECHO_T}no" >&6
41725fi
41726
41727fi
41728if test -z "$ac_cv_prog_RANLIB"; then
41729 ac_ct_RANLIB=$RANLIB
41730 # Extract the first word of "ranlib", so it can be a program name with args.
41731set dummy ranlib; ac_word=$2
41732echo "$as_me:$LINENO: checking for $ac_word" >&5
41733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41734if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
41735 echo $ECHO_N "(cached) $ECHO_C" >&6
41736else
41737 if test -n "$ac_ct_RANLIB"; then
41738 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
41739else
41740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41741for as_dir in $PATH
41742do
41743 IFS=$as_save_IFS
41744 test -z "$as_dir" && as_dir=.
41745 for ac_exec_ext in '' $ac_executable_extensions; do
41746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41747 ac_cv_prog_ac_ct_RANLIB="ranlib"
41748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41749 break 2
41750 fi
41751done
41752done
41753
41754 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
41755fi
41756fi
41757ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
41758if test -n "$ac_ct_RANLIB"; then
41759 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
41760echo "${ECHO_T}$ac_ct_RANLIB" >&6
41761else
41762 echo "$as_me:$LINENO: result: no" >&5
41763echo "${ECHO_T}no" >&6
41764fi
41765
41766 RANLIB=$ac_ct_RANLIB
41767else
41768 RANLIB="$ac_cv_prog_RANLIB"
41769fi
41770
41771 # Find a good install program. We prefer a C program (faster),
41772# so one script is as good as another. But avoid the broken or
41773# incompatible versions:
41774# SysV /etc/install, /usr/sbin/install
41775# SunOS /usr/etc/install
41776# IRIX /sbin/install
41777# AIX /bin/install
41778# AmigaOS /C/install, which installs bootblocks on floppy discs
41779# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
41780# AFS /usr/afsws/bin/install, which mishandles nonexistent args
41781# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 41782# OS/2's system install, which has a completely different semantic
a848cd7e
SC
41783# ./install, which can be erroneously created by make from ./install.sh.
41784echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
41785echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
41786if test -z "$INSTALL"; then
41787if test "${ac_cv_path_install+set}" = set; then
41788 echo $ECHO_N "(cached) $ECHO_C" >&6
41789else
41790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41791for as_dir in $PATH
41792do
41793 IFS=$as_save_IFS
41794 test -z "$as_dir" && as_dir=.
41795 # Account for people who put trailing slashes in PATH elements.
41796case $as_dir/ in
41797 ./ | .// | /cC/* | \
41798 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 41799 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
41800 /usr/ucb/* ) ;;
41801 *)
41802 # OSF1 and SCO ODT 3.0 have their own names for install.
41803 # Don't use installbsd from OSF since it installs stuff as root
41804 # by default.
41805 for ac_prog in ginstall scoinst install; do
41806 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
41807 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
41808 if test $ac_prog = install &&
41809 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
41810 # AIX install. It has an incompatible calling convention.
41811 :
41812 elif test $ac_prog = install &&
41813 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
41814 # program-specific install script used by HP pwplus--don't use.
41815 :
41816 else
41817 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
41818 break 3
41819 fi
41820 fi
a848cd7e
SC
41821 done
41822 done
41823 ;;
41824esac
41825done
41826
41827
41828fi
41829 if test "${ac_cv_path_install+set}" = set; then
41830 INSTALL=$ac_cv_path_install
41831 else
41832 # As a last resort, use the slow shell script. We don't cache a
41833 # path for INSTALL within a source directory, because that will
41834 # break other packages using the cache if that directory is
41835 # removed, or if the path is relative.
41836 INSTALL=$ac_install_sh
41837 fi
41838fi
41839echo "$as_me:$LINENO: result: $INSTALL" >&5
41840echo "${ECHO_T}$INSTALL" >&6
41841
41842# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
41843# It thinks the first close brace ends the variable substitution.
41844test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
41845
41846test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
41847
41848test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
41849
41850 echo "$as_me:$LINENO: checking whether ln -s works" >&5
41851echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
41852LN_S=$as_ln_s
41853if test "$LN_S" = "ln -s"; then
41854 echo "$as_me:$LINENO: result: yes" >&5
41855echo "${ECHO_T}yes" >&6
41856else
41857 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
41858echo "${ECHO_T}no, using $LN_S" >&6
41859fi
41860
41861
41862 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41863echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 41864set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
41865if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41866 echo $ECHO_N "(cached) $ECHO_C" >&6
41867else
41868 cat >conftest.make <<\_ACEOF
41869all:
41870 @echo 'ac_maketemp="$(MAKE)"'
41871_ACEOF
41872# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41873eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41874if test -n "$ac_maketemp"; then
41875 eval ac_cv_prog_make_${ac_make}_set=yes
41876else
41877 eval ac_cv_prog_make_${ac_make}_set=no
41878fi
41879rm -f conftest.make
41880fi
41881if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41882 echo "$as_me:$LINENO: result: yes" >&5
41883echo "${ECHO_T}yes" >&6
41884 SET_MAKE=
41885else
41886 echo "$as_me:$LINENO: result: no" >&5
41887echo "${ECHO_T}no" >&6
41888 SET_MAKE="MAKE=${MAKE-make}"
41889fi
41890
41891
41892
41893 if test -n "$ac_tool_prefix"; then
41894 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
41895set dummy ${ac_tool_prefix}ar; ac_word=$2
41896echo "$as_me:$LINENO: checking for $ac_word" >&5
41897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41898if test "${ac_cv_prog_AR+set}" = set; then
41899 echo $ECHO_N "(cached) $ECHO_C" >&6
41900else
41901 if test -n "$AR"; then
41902 ac_cv_prog_AR="$AR" # Let the user override the test.
41903else
41904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41905for as_dir in $PATH
41906do
41907 IFS=$as_save_IFS
41908 test -z "$as_dir" && as_dir=.
41909 for ac_exec_ext in '' $ac_executable_extensions; do
41910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41911 ac_cv_prog_AR="${ac_tool_prefix}ar"
41912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41913 break 2
41914 fi
41915done
41916done
41917
41918fi
41919fi
41920AR=$ac_cv_prog_AR
41921if test -n "$AR"; then
41922 echo "$as_me:$LINENO: result: $AR" >&5
41923echo "${ECHO_T}$AR" >&6
41924else
41925 echo "$as_me:$LINENO: result: no" >&5
41926echo "${ECHO_T}no" >&6
41927fi
41928
41929fi
41930if test -z "$ac_cv_prog_AR"; then
41931 ac_ct_AR=$AR
41932 # Extract the first word of "ar", so it can be a program name with args.
41933set dummy ar; ac_word=$2
41934echo "$as_me:$LINENO: checking for $ac_word" >&5
41935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41936if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
41937 echo $ECHO_N "(cached) $ECHO_C" >&6
41938else
41939 if test -n "$ac_ct_AR"; then
41940 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
41941else
41942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41943for as_dir in $PATH
41944do
41945 IFS=$as_save_IFS
41946 test -z "$as_dir" && as_dir=.
41947 for ac_exec_ext in '' $ac_executable_extensions; do
41948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41949 ac_cv_prog_ac_ct_AR="ar"
41950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41951 break 2
41952 fi
41953done
41954done
41955
41956 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
41957fi
41958fi
41959ac_ct_AR=$ac_cv_prog_ac_ct_AR
41960if test -n "$ac_ct_AR"; then
41961 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
41962echo "${ECHO_T}$ac_ct_AR" >&6
41963else
41964 echo "$as_me:$LINENO: result: no" >&5
41965echo "${ECHO_T}no" >&6
41966fi
41967
41968 AR=$ac_ct_AR
41969else
41970 AR="$ac_cv_prog_AR"
41971fi
41972
41973 if test -n "$ac_tool_prefix"; then
41974 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
41975set dummy ${ac_tool_prefix}strip; ac_word=$2
41976echo "$as_me:$LINENO: checking for $ac_word" >&5
41977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41978if test "${ac_cv_prog_STRIP+set}" = set; then
41979 echo $ECHO_N "(cached) $ECHO_C" >&6
41980else
41981 if test -n "$STRIP"; then
41982 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
41983else
41984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41985for as_dir in $PATH
41986do
41987 IFS=$as_save_IFS
41988 test -z "$as_dir" && as_dir=.
41989 for ac_exec_ext in '' $ac_executable_extensions; do
41990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41991 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
41992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41993 break 2
41994 fi
41995done
41996done
41997
41998fi
41999fi
42000STRIP=$ac_cv_prog_STRIP
42001if test -n "$STRIP"; then
42002 echo "$as_me:$LINENO: result: $STRIP" >&5
42003echo "${ECHO_T}$STRIP" >&6
42004else
42005 echo "$as_me:$LINENO: result: no" >&5
42006echo "${ECHO_T}no" >&6
42007fi
42008
42009fi
42010if test -z "$ac_cv_prog_STRIP"; then
42011 ac_ct_STRIP=$STRIP
42012 # Extract the first word of "strip", so it can be a program name with args.
42013set dummy strip; ac_word=$2
42014echo "$as_me:$LINENO: checking for $ac_word" >&5
42015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42016if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
42017 echo $ECHO_N "(cached) $ECHO_C" >&6
42018else
42019 if test -n "$ac_ct_STRIP"; then
42020 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
42021else
42022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42023for as_dir in $PATH
42024do
42025 IFS=$as_save_IFS
42026 test -z "$as_dir" && as_dir=.
42027 for ac_exec_ext in '' $ac_executable_extensions; do
42028 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42029 ac_cv_prog_ac_ct_STRIP="strip"
42030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42031 break 2
42032 fi
42033done
42034done
42035
42036 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
42037fi
42038fi
42039ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
42040if test -n "$ac_ct_STRIP"; then
42041 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
42042echo "${ECHO_T}$ac_ct_STRIP" >&6
42043else
42044 echo "$as_me:$LINENO: result: no" >&5
42045echo "${ECHO_T}no" >&6
42046fi
42047
42048 STRIP=$ac_ct_STRIP
42049else
42050 STRIP="$ac_cv_prog_STRIP"
42051fi
42052
42053 if test -n "$ac_tool_prefix"; then
42054 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
42055set dummy ${ac_tool_prefix}nm; ac_word=$2
42056echo "$as_me:$LINENO: checking for $ac_word" >&5
42057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42058if test "${ac_cv_prog_NM+set}" = set; then
42059 echo $ECHO_N "(cached) $ECHO_C" >&6
42060else
42061 if test -n "$NM"; then
42062 ac_cv_prog_NM="$NM" # Let the user override the test.
42063else
42064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42065for as_dir in $PATH
42066do
42067 IFS=$as_save_IFS
42068 test -z "$as_dir" && as_dir=.
42069 for ac_exec_ext in '' $ac_executable_extensions; do
42070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42071 ac_cv_prog_NM="${ac_tool_prefix}nm"
42072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42073 break 2
42074 fi
42075done
42076done
42077
42078fi
42079fi
42080NM=$ac_cv_prog_NM
42081if test -n "$NM"; then
42082 echo "$as_me:$LINENO: result: $NM" >&5
42083echo "${ECHO_T}$NM" >&6
42084else
42085 echo "$as_me:$LINENO: result: no" >&5
42086echo "${ECHO_T}no" >&6
42087fi
42088
42089fi
42090if test -z "$ac_cv_prog_NM"; then
42091 ac_ct_NM=$NM
42092 # Extract the first word of "nm", so it can be a program name with args.
42093set dummy nm; ac_word=$2
42094echo "$as_me:$LINENO: checking for $ac_word" >&5
42095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42096if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
42097 echo $ECHO_N "(cached) $ECHO_C" >&6
42098else
42099 if test -n "$ac_ct_NM"; then
42100 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
42101else
42102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42103for as_dir in $PATH
42104do
42105 IFS=$as_save_IFS
42106 test -z "$as_dir" && as_dir=.
42107 for ac_exec_ext in '' $ac_executable_extensions; do
42108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42109 ac_cv_prog_ac_ct_NM="nm"
42110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42111 break 2
42112 fi
42113done
42114done
42115
42116 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
42117fi
42118fi
42119ac_ct_NM=$ac_cv_prog_ac_ct_NM
42120if test -n "$ac_ct_NM"; then
42121 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
42122echo "${ECHO_T}$ac_ct_NM" >&6
42123else
42124 echo "$as_me:$LINENO: result: no" >&5
42125echo "${ECHO_T}no" >&6
42126fi
42127
42128 NM=$ac_ct_NM
42129else
42130 NM="$ac_cv_prog_NM"
42131fi
42132
42133
42134 case ${BAKEFILE_HOST} in
42135 *-hp-hpux* )
1e9e8aba 42136 INSTALL_DIR="mkdir -p"
a848cd7e
SC
42137 ;;
42138 *) INSTALL_DIR="$INSTALL -d"
42139 ;;
42140 esac
42141
42142
42143 LDFLAGS_GUI=
42144 case ${BAKEFILE_HOST} in
42145 *-*-cygwin* | *-*-mingw32* )
42146 LDFLAGS_GUI="-mwindows"
42147 esac
42148
42149
42150 fi
42151
42152 echo "$as_me:$LINENO: checking if make is GNU make" >&5
42153echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
42154if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
42155 echo $ECHO_N "(cached) $ECHO_C" >&6
42156else
42157
42158 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
42159 egrep -s GNU > /dev/null); then
42160 bakefile_cv_prog_makeisgnu="yes"
42161 else
42162 bakefile_cv_prog_makeisgnu="no"
42163 fi
42164
42165fi
42166echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
42167echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
42168
42169 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
42170 IF_GNU_MAKE=""
42171 else
42172 IF_GNU_MAKE="#"
42173 fi
42174
42175
42176
42177 PLATFORM_UNIX=0
42178 PLATFORM_WIN32=0
42179 PLATFORM_MSDOS=0
42180 PLATFORM_MAC=0
1e9e8aba 42181 PLATFORM_MACOS=0
a848cd7e
SC
42182 PLATFORM_MACOSX=0
42183 PLATFORM_OS2=0
1e9e8aba 42184 PLATFORM_BEOS=0
a848cd7e
SC
42185
42186 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
42187 case "${BAKEFILE_HOST}" in
810b94f0 42188 *-*-mingw32* )
a848cd7e
SC
42189 PLATFORM_WIN32=1
42190 ;;
42191 *-pc-msdosdjgpp )
42192 PLATFORM_MSDOS=1
42193 ;;
42194 *-pc-os2_emx | *-pc-os2-emx )
42195 PLATFORM_OS2=1
42196 ;;
efdf6afe 42197 powerpc-*-darwin* )
a848cd7e
SC
42198 PLATFORM_MAC=1
42199 PLATFORM_MACOSX=1
42200 ;;
1e9e8aba
DE
42201 *-*-beos* )
42202 PLATFORM_BEOS=1
42203 ;;
42204 powerpc-apple-macos* )
42205 PLATFORM_MAC=1
42206 PLATFORM_MACOS=1
42207 ;;
a848cd7e
SC
42208 * )
42209 PLATFORM_UNIX=1
42210 ;;
42211 esac
42212 else
42213 case "$BAKEFILE_FORCE_PLATFORM" in
42214 win32 )
42215 PLATFORM_WIN32=1
42216 ;;
42217 msdos )
42218 PLATFORM_MSDOS=1
42219 ;;
42220 os2 )
42221 PLATFORM_OS2=1
42222 ;;
42223 darwin )
42224 PLATFORM_MAC=1
42225 PLATFORM_MACOSX=1
42226 ;;
42227 unix )
42228 PLATFORM_UNIX=1
42229 ;;
1e9e8aba
DE
42230 beos )
42231 PLATFORM_BEOS=1
42232 ;;
a848cd7e
SC
42233 * )
42234 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
42235echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
42236 { (exit 1); exit 1; }; }
42237 ;;
42238 esac
42239 fi
42240
42241
42242
42243
42244
42245
42246
42247
42248
1e9e8aba
DE
42249
42250
a848cd7e
SC
42251 # Check whether --enable-omf or --disable-omf was given.
42252if test "${enable_omf+set}" = set; then
42253 enableval="$enable_omf"
42254 bk_os2_use_omf="$enableval"
42255fi;
42256
42257 case "${BAKEFILE_HOST}" in
42258 *-*-darwin* )
efdf6afe
VZ
42259 CFLAGS="$CFLAGS -fno-common"
42260 CXXFLAGS="$CXXFLAGS -fno-common"
a848cd7e
SC
42261 ;;
42262
42263 *-pc-os2_emx | *-pc-os2-emx )
42264 if test "x$bk_os2_use_omf" = "xyes" ; then
42265 AR=emxomfar
42266 RANLIB=:
42267 LDFLAGS="-Zomf $LDFLAGS"
42268 CFLAGS="-Zomf $CFLAGS"
42269 CXXFLAGS="-Zomf $CXXFLAGS"
42270 OS2_LIBEXT="lib"
42271 else
42272 OS2_LIBEXT="a"
42273 fi
42274 ;;
1e9e8aba
DE
42275
42276 i*86-*-beos* )
42277 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
42278 ;;
a848cd7e
SC
42279 esac
42280
42281
42282 SO_SUFFIX="so"
42283 SO_SUFFIX_MODULE="so"
42284 EXEEXT=""
42285 LIBPREFIX="lib"
42286 LIBEXT=".a"
42287 DLLPREFIX="lib"
42288 DLLPREFIX_MODULE=""
42289 DLLIMP_SUFFIX=""
810b94f0 42290 dlldir="$libdir"
a848cd7e
SC
42291
42292 case "${BAKEFILE_HOST}" in
42293 *-hp-hpux* )
42294 SO_SUFFIX="sl"
42295 SO_SUFFIX_MODULE="sl"
42296 ;;
42297 *-*-aix* )
42298 SO_SUFFIX="a"
42299 SO_SUFFIX_MODULE="a"
42300 ;;
810b94f0
MW
42301 *-*-cygwin* )
42302 SO_SUFFIX="dll"
42303 SO_SUFFIX_MODULE="dll"
42304 DLLIMP_SUFFIX="dll.a"
42305 EXEEXT=".exe"
42306 DLLPREFIX="cyg"
42307 dlldir="$bindir"
42308 ;;
42309 *-*-mingw32* )
a848cd7e
SC
42310 SO_SUFFIX="dll"
42311 SO_SUFFIX_MODULE="dll"
42312 DLLIMP_SUFFIX="dll.a"
42313 EXEEXT=".exe"
42314 DLLPREFIX=""
810b94f0 42315 dlldir="$bindir"
a848cd7e
SC
42316 ;;
42317 *-pc-msdosdjgpp )
42318 EXEEXT=".exe"
42319 DLLPREFIX=""
810b94f0 42320 dlldir="$bindir"
a848cd7e
SC
42321 ;;
42322 *-pc-os2_emx | *-pc-os2-emx )
42323 SO_SUFFIX="dll"
42324 SO_SUFFIX_MODULE="dll"
42325 DLLIMP_SUFFIX=$OS2_LIBEXT
42326 EXEEXT=".exe"
42327 DLLPREFIX=""
42328 LIBPREFIX=""
42329 LIBEXT=".$OS2_LIBEXT"
810b94f0 42330 dlldir="$bindir"
a848cd7e 42331 ;;
efdf6afe 42332 powerpc-*-darwin* )
a848cd7e
SC
42333 SO_SUFFIX="dylib"
42334 SO_SUFFIX_MODULE="bundle"
42335 ;;
42336 esac
42337
42338 if test "x$DLLIMP_SUFFIX" = "x" ; then
42339 DLLIMP_SUFFIX="$SO_SUFFIX"
42340 fi
42341
42342
42343
42344
42345
42346
42347
42348
42349
42350
42351
810b94f0 42352
1e9e8aba
DE
42353 PIC_FLAG=""
42354 if test "x$GCC" = "xyes"; then
a848cd7e
SC
42355 PIC_FLAG="-fPIC"
42356 fi
42357
1e9e8aba
DE
42358 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
42359 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 42360 WINDOWS_IMPLIB=0
1e9e8aba 42361
a848cd7e
SC
42362 case "${BAKEFILE_HOST}" in
42363 *-hp-hpux* )
1e9e8aba 42364 if test "x$GCC" != "xyes"; then
a848cd7e
SC
42365 LDFLAGS="$LDFLAGS -L/usr/lib"
42366
42367 SHARED_LD_CC="${CC} -b -o"
42368 SHARED_LD_CXX="${CXX} -b -o"
42369 PIC_FLAG="+Z"
42370 fi
42371 ;;
42372
42373 *-*-linux* )
42374 if test "x$GCC" != "xyes"; then
42375 echo "$as_me:$LINENO: checking for Intel compiler" >&5
42376echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
42377if test "${bakefile_cv_prog_icc+set}" = set; then
42378 echo $ECHO_N "(cached) $ECHO_C" >&6
42379else
42380
42381 cat >conftest.$ac_ext <<_ACEOF
42382/* confdefs.h. */
42383_ACEOF
42384cat confdefs.h >>conftest.$ac_ext
42385cat >>conftest.$ac_ext <<_ACEOF
42386/* end confdefs.h. */
42387
42388int
42389main ()
42390{
42391
42392 #ifndef __INTEL_COMPILER
42393 #error Not icc
42394 #endif
42395
42396 ;
42397 return 0;
42398}
42399_ACEOF
42400rm -f conftest.$ac_objext
42401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42402 (eval $ac_compile) 2>conftest.er1
a848cd7e 42403 ac_status=$?
ac1cb8d3
VS
42404 grep -v '^ *+' conftest.er1 >conftest.err
42405 rm -f conftest.er1
42406 cat conftest.err >&5
a848cd7e
SC
42407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42408 (exit $ac_status); } &&
6ebeb4c7 42409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42411 (eval $ac_try) 2>&5
42412 ac_status=$?
42413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42414 (exit $ac_status); }; } &&
42415 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42417 (eval $ac_try) 2>&5
42418 ac_status=$?
42419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42420 (exit $ac_status); }; }; then
42421 bakefile_cv_prog_icc=yes
42422else
42423 echo "$as_me: failed program was:" >&5
42424sed 's/^/| /' conftest.$ac_ext >&5
42425
42426bakefile_cv_prog_icc=no
42427
42428fi
ac1cb8d3 42429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42430
42431fi
42432echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
42433echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
42434 if test "$bakefile_cv_prog_icc" = "yes"; then
42435 PIC_FLAG="-KPIC"
42436 fi
42437 fi
42438 ;;
42439
42440 *-*-solaris2* )
42441 if test "x$GCC" != xyes ; then
42442 SHARED_LD_CC="${CC} -G -o"
42443 SHARED_LD_CXX="${CXX} -G -o"
42444 PIC_FLAG="-KPIC"
42445 fi
42446 ;;
42447
42448 *-*-darwin* )
42449
42450 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
42451echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
42452if test "${wx_cv_gcc31+set}" = set; then
42453 echo $ECHO_N "(cached) $ECHO_C" >&6
42454else
42455
42456 cat >conftest.$ac_ext <<_ACEOF
42457/* confdefs.h. */
42458_ACEOF
42459cat confdefs.h >>conftest.$ac_ext
42460cat >>conftest.$ac_ext <<_ACEOF
42461/* end confdefs.h. */
42462
42463int
42464main ()
42465{
42466
42467 #if (__GNUC__ < 3) || \
42468 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
42469 #error old gcc
42470 #endif
42471
42472 ;
42473 return 0;
42474}
42475_ACEOF
42476rm -f conftest.$ac_objext
42477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42478 (eval $ac_compile) 2>conftest.er1
a848cd7e 42479 ac_status=$?
ac1cb8d3
VS
42480 grep -v '^ *+' conftest.er1 >conftest.err
42481 rm -f conftest.er1
42482 cat conftest.err >&5
a848cd7e
SC
42483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42484 (exit $ac_status); } &&
6ebeb4c7 42485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42487 (eval $ac_try) 2>&5
42488 ac_status=$?
42489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42490 (exit $ac_status); }; } &&
42491 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42493 (eval $ac_try) 2>&5
42494 ac_status=$?
42495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42496 (exit $ac_status); }; }; then
42497
42498 wx_cv_gcc31=yes
42499
42500else
42501 echo "$as_me: failed program was:" >&5
42502sed 's/^/| /' conftest.$ac_ext >&5
42503
42504
42505 wx_cv_gcc31=no
42506
42507
42508fi
ac1cb8d3 42509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42510
42511fi
42512echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
42513echo "${ECHO_T}$wx_cv_gcc31" >&6
42514 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
42515
42516D='$'
42517cat <<EOF >shared-ld-sh
a848cd7e
SC
42518#!/bin/sh
42519#-----------------------------------------------------------------------------
42520#-- Name: distrib/mac/shared-ld-sh
42521#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
42522#-- Author: Gilles Depeyrot
42523#-- Copyright: (c) 2002 Gilles Depeyrot
42524#-- Licence: any use permitted
42525#-----------------------------------------------------------------------------
42526
42527verbose=0
42528args=""
42529objects=""
42530linking_flag="-dynamiclib"
810b94f0 42531ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 42532
473276a9
VS
42533while test ${D}# -gt 0; do
42534 case ${D}1 in
a848cd7e
SC
42535
42536 -v)
42537 verbose=1
42538 ;;
42539
42540 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
42541 # collect these options and values
473276a9 42542 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
42543 shift
42544 ;;
42545
810b94f0
MW
42546 -s|-Wl,*)
42547 # collect these load args
42548 ldargs="${D}{ldargs} ${D}1"
2113bc77 42549 ;;
810b94f0
MW
42550
42551 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 42552 # collect these options
473276a9 42553 args="${D}{args} ${D}1"
a848cd7e
SC
42554 ;;
42555
42556 -dynamiclib|-bundle)
473276a9 42557 linking_flag="${D}1"
a848cd7e
SC
42558 ;;
42559
42560 -*)
473276a9 42561 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
42562 exit 1
42563 ;;
42564
42565 *.o | *.a | *.dylib)
42566 # collect object files
473276a9 42567 objects="${D}{objects} ${D}1"
a848cd7e
SC
42568 ;;
42569
42570 *)
473276a9 42571 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
42572 exit 1
42573 ;;
42574
42575 esac
42576 shift
42577done
42578
810b94f0
MW
42579status=0
42580
a848cd7e
SC
42581#
42582# Link one module containing all the others
42583#
473276a9 42584if test ${D}{verbose} = 1; then
810b94f0 42585 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 42586fi
810b94f0 42587c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 42588status=${D}?
a848cd7e
SC
42589
42590#
810b94f0
MW
42591# Link the shared library from the single module created, but only if the
42592# previous command didn't fail:
a848cd7e 42593#
810b94f0
MW
42594if test ${D}{status} = 0; then
42595 if test ${D}{verbose} = 1; then
42596 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
42597 fi
42598 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
42599 status=${D}?
a848cd7e
SC
42600fi
42601
42602#
42603# Remove intermediate module
42604#
473276a9 42605rm -f master.${D}${D}.o
a848cd7e 42606
810b94f0 42607exit ${D}status
a848cd7e 42608EOF
473276a9 42609
a848cd7e
SC
42610 chmod +x shared-ld-sh
42611
42612 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
42613 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
42614 SHARED_LD_CXX="$SHARED_LD_CC"
42615 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
42616 else
42617 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
42618 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
42619 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
42620 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
42621 fi
42622
efdf6afe 42623 PIC_FLAG="-dynamic -fPIC"
a848cd7e
SC
42624 ;;
42625
42626 *-*-aix* )
42627 if test "x$GCC" != "xyes"; then
42628 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
42629set dummy makeC++SharedLib; ac_word=$2
42630echo "$as_me:$LINENO: checking for $ac_word" >&5
42631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42632if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
42633 echo $ECHO_N "(cached) $ECHO_C" >&6
42634else
42635 if test -n "$AIX_CXX_LD"; then
42636 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
42637else
42638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42639for as_dir in $PATH
42640do
42641 IFS=$as_save_IFS
42642 test -z "$as_dir" && as_dir=.
42643 for ac_exec_ext in '' $ac_executable_extensions; do
42644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42645 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
42646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42647 break 2
42648 fi
42649done
42650done
42651
42652 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
42653fi
42654fi
42655AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
42656if test -n "$AIX_CXX_LD"; then
42657 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
42658echo "${ECHO_T}$AIX_CXX_LD" >&6
42659else
42660 echo "$as_me:$LINENO: result: no" >&5
42661echo "${ECHO_T}no" >&6
42662fi
42663
42664 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
42665 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
42666 fi
42667 ;;
42668
42669 *-*-beos* )
1e9e8aba
DE
42670 SHARED_LD_CC="${LD} -nostart -o"
42671 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
42672 ;;
42673
42674 *-*-irix* )
42675 if test "x$GCC" != "xyes"; then
42676 PIC_FLAG="-KPIC"
42677 fi
42678 ;;
42679
42680 *-*-cygwin* | *-*-mingw32* )
42681 PIC_FLAG=""
1e9e8aba
DE
42682 SHARED_LD_CC="\$(CC) -shared -o"
42683 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 42684 WINDOWS_IMPLIB=1
a848cd7e
SC
42685 ;;
42686
42687 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
42688 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
42689 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 42690 PIC_FLAG=""
473276a9
VS
42691
42692D='$'
42693cat <<EOF >dllar.sh
42694#!/bin/sh
42695#
42696# dllar - a tool to build both a .dll and an .a file
42697# from a set of object (.o) files for EMX/OS2.
42698#
42699# Written by Andrew Zabolotny, bit@freya.etu.ru
42700# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
42701#
42702# This script will accept a set of files on the command line.
42703# All the public symbols from the .o files will be exported into
42704# a .DEF file, then linker will be run (through gcc) against them to
42705# build a shared library consisting of all given .o files. All libraries
42706# (.a) will be first decompressed into component .o files then act as
42707# described above. You can optionally give a description (-d "description")
42708# which will be put into .DLL. To see the list of accepted options (as well
42709# as command-line format) simply run this program without options. The .DLL
42710# is built to be imported by name (there is no guarantee that new versions
42711# of the library you build will have same ordinals for same symbols).
42712#
42713# dllar is free software; you can redistribute it and/or modify
42714# it under the terms of the GNU General Public License as published by
42715# the Free Software Foundation; either version 2, or (at your option)
42716# any later version.
42717#
42718# dllar is distributed in the hope that it will be useful,
42719# but WITHOUT ANY WARRANTY; without even the implied warranty of
42720# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
42721# GNU General Public License for more details.
42722#
42723# You should have received a copy of the GNU General Public License
42724# along with dllar; see the file COPYING. If not, write to the Free
42725# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
42726# 02111-1307, USA.
42727
42728# To successfuly run this program you will need:
42729# - Current drive should have LFN support (HPFS, ext2, network, etc)
42730# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
42731# - gcc
42732# (used to build the .dll)
42733# - emxexp
42734# (used to create .def file from .o files)
42735# - emximp
42736# (used to create .a file from .def file)
42737# - GNU text utilites (cat, sort, uniq)
42738# used to process emxexp output
42739# - GNU file utilities (mv, rm)
42740# - GNU sed
42741# - lxlite (optional, see flag below)
42742# (used for general .dll cleanup)
42743#
42744
42745flag_USE_LXLITE=1;
42746
42747#
42748# helper functions
42749# basnam, variant of basename, which does _not_ remove the path, _iff_
42750# second argument (suffix to remove) is given
42751basnam(){
42752 case ${D}# in
42753 1)
1e9e8aba 42754 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
42755 ;;
42756 2)
42757 echo ${D}1 | sed 's/'${D}2'${D}//'
42758 ;;
42759 *)
42760 echo "error in basnam ${D}*"
42761 exit 8
42762 ;;
42763 esac
42764}
42765
42766# Cleanup temporary files and output
42767CleanUp() {
42768 cd ${D}curDir
42769 for i in ${D}inputFiles ; do
42770 case ${D}i in
42771 *!)
42772 rm -rf \`basnam ${D}i !\`
42773 ;;
42774 *)
42775 ;;
42776 esac
42777 done
42778
42779 # Kill result in case of failure as there is just to many stupid make/nmake
42780 # things out there which doesn't do this.
1e9e8aba 42781 if [ ${D}# -eq 0 ]; then
473276a9
VS
42782 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
42783 fi
42784}
42785
42786# Print usage and exit script with rc=1.
42787PrintHelp() {
b1d22ded
DE
42788 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
42789 echo ' [-name-mangler-script script.sh]'
42790 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
42791 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
42792 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 42793 echo ' [*.o] [*.a]'
473276a9
VS
42794 echo '*> "output_file" should have no extension.'
42795 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
42796 echo ' The import library name is derived from this and is set to "name".a,'
42797 echo ' unless overridden by -import'
42798 echo '*> "importlib_name" should have no extension.'
42799 echo ' If it has the .o, or .a extension, it is automatically removed.'
42800 echo ' This name is used as the import library name and may be longer and'
42801 echo ' more descriptive than the DLL name which has to follow the old '
42802 echo ' 8.3 convention of FAT.'
b1d22ded
DE
42803 echo '*> "script.sh may be given to override the output_file name by a'
42804 echo ' different name. It is mainly useful if the regular make process'
42805 echo ' of some package does not take into account OS/2 restriction of'
42806 echo ' DLL name lengths. It takes the importlib name as input and is'
42807 echo ' supposed to procude a shorter name as output. The script should'
42808 echo ' expect to get importlib_name without extension and should produce'
42809 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
42810 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
42811 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
42812 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
42813 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
42814 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
42815 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
42816 echo ' If the last character of a symbol is "*", all symbols beginning'
42817 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 42818 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 42819 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 42820 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 42821 echo ' C runtime DLLs.'
b1d22ded 42822 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
42823 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
42824 echo ' unchanged to GCC at the end of command line.'
42825 echo '*> If you create a DLL from a library and you do not specify -o,'
42826 echo ' the basename for DLL and import library will be set to library name,'
42827 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
42828 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
42829 echo ' library will be renamed into gcc_s.a.'
42830 echo '--------'
42831 echo 'Example:'
42832 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
42833 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
42834 CleanUp
42835 exit 1
42836}
42837
42838# Execute a command.
42839# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
42840# @Uses Whatever CleanUp() uses.
42841doCommand() {
42842 echo "${D}*"
42843 eval ${D}*
42844 rcCmd=${D}?
42845
1e9e8aba 42846 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
42847 echo "command failed, exit code="${D}rcCmd
42848 CleanUp
42849 exit ${D}rcCmd
42850 fi
42851}
42852
42853# main routine
42854# setup globals
42855cmdLine=${D}*
42856outFile=""
42857outimpFile=""
42858inputFiles=""
b1d22ded 42859renameScript=""
473276a9
VS
42860description=""
42861CC=gcc.exe
42862CFLAGS="-s -Zcrtdll"
42863EXTRA_CFLAGS=""
42864EXPORT_BY_ORDINALS=0
42865exclude_symbols=""
42866library_flags=""
42867curDir=\`pwd\`
42868curDirS=curDir
42869case ${D}curDirS in
42870*/)
42871 ;;
42872*)
42873 curDirS=${D}{curDirS}"/"
42874 ;;
42875esac
42876# Parse commandline
42877libsToLink=0
b1d22ded 42878omfLinking=0
1e9e8aba 42879while [ ${D}1 ]; do
473276a9
VS
42880 case ${D}1 in
42881 -ord*)
42882 EXPORT_BY_ORDINALS=1;
42883 ;;
42884 -o*)
42885 shift
42886 outFile=${D}1
42887 ;;
42888 -i*)
42889 shift
42890 outimpFile=${D}1
42891 ;;
b1d22ded
DE
42892 -name-mangler-script)
42893 shift
42894 renameScript=${D}1
42895 ;;
473276a9
VS
42896 -d*)
42897 shift
42898 description=${D}1
42899 ;;
42900 -f*)
42901 shift
42902 CFLAGS=${D}1
42903 ;;
42904 -c*)
42905 shift
42906 CC=${D}1
42907 ;;
42908 -h*)
42909 PrintHelp
42910 ;;
42911 -ex*)
42912 shift
42913 exclude_symbols=${D}{exclude_symbols}${D}1" "
42914 ;;
42915 -libf*)
42916 shift
42917 library_flags=${D}{library_flags}${D}1" "
42918 ;;
42919 -nocrt*)
42920 CFLAGS="-s"
42921 ;;
42922 -nolxl*)
42923 flag_USE_LXLITE=0
42924 ;;
42925 -* | /*)
42926 case ${D}1 in
42927 -L* | -l*)
42928 libsToLink=1
42929 ;;
b1d22ded
DE
42930 -Zomf)
42931 omfLinking=1
42932 ;;
473276a9
VS
42933 *)
42934 ;;
42935 esac
42936 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
42937 ;;
b1d22ded
DE
42938 *.dll)
42939 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
42940 if [ ${D}omfLinking -eq 1 ]; then
42941 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
42942 else
42943 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
42944 fi
42945 ;;
473276a9
VS
42946 *)
42947 found=0;
1e9e8aba 42948 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
42949 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
42950 else
42951 for file in ${D}1 ; do
1e9e8aba 42952 if [ -f ${D}file ]; then
473276a9
VS
42953 inputFiles="${D}{inputFiles} ${D}file"
42954 found=1
42955 fi
42956 done
1e9e8aba 42957 if [ ${D}found -eq 0 ]; then
473276a9
VS
42958 echo "ERROR: No file(s) found: "${D}1
42959 exit 8
42960 fi
42961 fi
42962 ;;
42963 esac
42964 shift
42965done # iterate cmdline words
42966
42967#
1e9e8aba 42968if [ -z "${D}inputFiles" ]; then
473276a9
VS
42969 echo "dllar: no input files"
42970 PrintHelp
42971fi
42972
42973# Now extract all .o files from .a files
42974newInputFiles=""
42975for file in ${D}inputFiles ; do
42976 case ${D}file in
42977 *.a | *.lib)
42978 case ${D}file in
42979 *.a)
42980 suffix=".a"
42981 AR="ar"
42982 ;;
42983 *.lib)
42984 suffix=".lib"
42985 AR="emxomfar"
42986 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
42987 ;;
42988 *)
42989 ;;
42990 esac
42991 dirname=\`basnam ${D}file ${D}suffix\`"_%"
42992 mkdir ${D}dirname
1e9e8aba 42993 if [ ${D}? -ne 0 ]; then
473276a9
VS
42994 echo "Failed to create subdirectory ./${D}dirname"
42995 CleanUp
42996 exit 8;
42997 fi
42998 # Append '!' to indicate archive
42999 newInputFiles="${D}newInputFiles ${D}{dirname}!"
43000 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
43001 cd ${D}curDir
43002 found=0;
43003 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 43004 if [ -f ${D}subfile ]; then
473276a9 43005 found=1
1e9e8aba 43006 if [ -s ${D}subfile ]; then
473276a9
VS
43007 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
43008 newInputFiles="${D}newInputFiles ${D}subfile"
43009 fi
43010 fi
43011 done
1e9e8aba
DE
43012 if [ ${D}found -eq 0 ]; then
43013 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
43014 fi
43015 ;;
43016 *)
43017 newInputFiles="${D}{newInputFiles} ${D}file"
43018 ;;
43019 esac
43020done
43021inputFiles="${D}newInputFiles"
43022
43023# Output filename(s).
43024do_backup=0;
1e9e8aba 43025if [ -z ${D}outFile ]; then
473276a9
VS
43026 do_backup=1;
43027 set outFile ${D}inputFiles; outFile=${D}2
43028fi
43029
43030# If it is an archive, remove the '!' and the '_%' suffixes
43031case ${D}outFile in
43032*_%!)
43033 outFile=\`basnam ${D}outFile _%!\`
43034 ;;
43035*)
43036 ;;
43037esac
43038case ${D}outFile in
43039*.dll)
43040 outFile=\`basnam ${D}outFile .dll\`
43041 ;;
43042*.DLL)
43043 outFile=\`basnam ${D}outFile .DLL\`
43044 ;;
43045*.o)
43046 outFile=\`basnam ${D}outFile .o\`
43047 ;;
43048*.obj)
43049 outFile=\`basnam ${D}outFile .obj\`
43050 ;;
43051*.a)
43052 outFile=\`basnam ${D}outFile .a\`
43053 ;;
43054*.lib)
43055 outFile=\`basnam ${D}outFile .lib\`
43056 ;;
43057*)
43058 ;;
43059esac
43060case ${D}outimpFile in
43061*.a)
43062 outimpFile=\`basnam ${D}outimpFile .a\`
43063 ;;
43064*.lib)
43065 outimpFile=\`basnam ${D}outimpFile .lib\`
43066 ;;
43067*)
43068 ;;
43069esac
1e9e8aba 43070if [ -z ${D}outimpFile ]; then
473276a9
VS
43071 outimpFile=${D}outFile
43072fi
43073defFile="${D}{outFile}.def"
43074arcFile="${D}{outimpFile}.a"
43075arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
43076
43077#create ${D}dllFile as something matching 8.3 restrictions,
43078if [ -z ${D}renameScript ] ; then
43079 dllFile="${D}outFile"
43080else
43081 dllFile=\`${D}renameScript ${D}outimpFile\`
43082fi
473276a9 43083
1e9e8aba
DE
43084if [ ${D}do_backup -ne 0 ] ; then
43085 if [ -f ${D}arcFile ] ; then
473276a9
VS
43086 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
43087 fi
1e9e8aba 43088 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
43089 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
43090 fi
43091fi
43092
43093# Extract public symbols from all the object files.
43094tmpdefFile=${D}{defFile}_%
43095rm -f ${D}tmpdefFile
43096for file in ${D}inputFiles ; do
43097 case ${D}file in
43098 *!)
43099 ;;
43100 *)
43101 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
43102 ;;
43103 esac
43104done
43105
43106# Create the def file.
43107rm -f ${D}defFile
43108echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
43109dllFile="${D}{dllFile}.dll"
43110if [ ! -z ${D}description ]; then
1e9e8aba 43111 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
43112fi
43113echo "EXPORTS" >> ${D}defFile
43114
43115doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
43116grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
43117
43118# Checks if the export is ok or not.
43119for word in ${D}exclude_symbols; do
43120 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
43121 mv ${D}{tmpdefFile}% ${D}tmpdefFile
43122done
43123
43124
1e9e8aba
DE
43125if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
43126 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
43127 sed '
43128 N
43129 : loop
1e9e8aba 43130 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
43131 t loop
43132 ' > ${D}{tmpdefFile}%
43133 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
43134else
43135 rm -f ${D}{tmpdefFile}%
43136fi
43137cat ${D}tmpdefFile >> ${D}defFile
43138rm -f ${D}tmpdefFile
43139
43140# Do linking, create implib, and apply lxlite.
43141gccCmdl="";
43142for file in ${D}inputFiles ; do
43143 case ${D}file in
43144 *!)
43145 ;;
43146 *)
43147 gccCmdl="${D}gccCmdl ${D}file"
43148 ;;
43149 esac
43150done
43151doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
43152touch "${D}{outFile}.dll"
43153
43154doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 43155if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 43156 add_flags="";
1e9e8aba 43157 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
43158 add_flags="-ynd"
43159 fi
43160 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
43161fi
43162doCommand "emxomf -s -l ${D}arcFile"
43163
43164# Successful exit.
43165CleanUp 1
43166exit 0
43167EOF
43168
43169 chmod +x dllar.sh
a848cd7e
SC
43170 ;;
43171
1e9e8aba 43172 powerpc-apple-macos* | \
a848cd7e
SC
43173 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
43174 *-*-sunos4* | \
43175 *-*-osf* | \
43176 *-*-dgux5* | \
47a7e797
MW
43177 *-*-sysv5* | \
43178 *-pc-msdosdjgpp )
a848cd7e
SC
43179 ;;
43180
43181 *)
43182 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
43183echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
43184 { (exit 1); exit 1; }; }
43185 esac
43186
2057db16
VS
43187 if test "x$PIC_FLAG" != "x" ; then
43188 PIC_FLAG="$PIC_FLAG -DPIC"
43189 fi
43190
a848cd7e
SC
43191 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
43192 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
43193 fi
43194 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
43195 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
43196 fi
43197
43198
43199
43200
43201
43202
43203
43204
810b94f0 43205
a848cd7e
SC
43206 USE_SOVERSION=0
43207 USE_SOVERLINUX=0
43208 USE_SOVERSOLARIS=0
810b94f0 43209 USE_SOVERCYGWIN=0
a848cd7e
SC
43210 USE_SOSYMLINKS=0
43211 USE_MACVERSION=0
43212 SONAME_FLAG=
43213
43214 case "${BAKEFILE_HOST}" in
b1d22ded 43215 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
43216 SONAME_FLAG="-Wl,-soname,"
43217 USE_SOVERSION=1
43218 USE_SOVERLINUX=1
43219 USE_SOSYMLINKS=1
43220 ;;
43221
a848cd7e
SC
43222 *-*-solaris2* )
43223 SONAME_FLAG="-h "
43224 USE_SOVERSION=1
43225 USE_SOVERSOLARIS=1
43226 USE_SOSYMLINKS=1
43227 ;;
43228
43229 *-*-darwin* )
43230 USE_MACVERSION=1
43231 USE_SOVERSION=1
43232 USE_SOSYMLINKS=1
43233 ;;
810b94f0
MW
43234
43235 *-*-cygwin* )
43236 USE_SOVERSION=1
43237 USE_SOVERCYGWIN=1
43238 ;;
a848cd7e
SC
43239 esac
43240
43241
43242
43243
43244
43245
43246
43247
43248
810b94f0 43249
a848cd7e
SC
43250 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
43251echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
43252 DEPS_TRACKING=0
43253
43254 if test "x$GCC" = "xyes"; then
43255 DEPSMODE=gcc
43256 DEPS_TRACKING=1
43257 case "${BAKEFILE_HOST}" in
efdf6afe 43258 powerpc-*-darwin* )
a848cd7e
SC
43259 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
43260 ;;
43261 * )
43262 DEPSFLAG_GCC="-MMD"
43263 ;;
43264 esac
43265 echo "$as_me:$LINENO: result: gcc" >&5
43266echo "${ECHO_T}gcc" >&6
b1d22ded 43267 elif test "x$MWCC" = "xyes"; then
81f90336 43268 DEPSMODE=mwcc
b1d22ded 43269 DEPS_TRACKING=1
81f90336 43270 DEPSFLAG_MWCC="-MM"
b1d22ded
DE
43271 echo "$as_me:$LINENO: result: mwcc" >&5
43272echo "${ECHO_T}mwcc" >&6
a9e5b1f0
MW
43273 elif test "x$SUNCC" = "xyes"; then
43274 DEPSMODE=suncc
43275 DEPS_TRACKING=1
43276 DEPSFLAG_SUNCC="-xM1"
43277 echo "$as_me:$LINENO: result: suncc" >&5
43278echo "${ECHO_T}suncc" >&6
a848cd7e
SC
43279 else
43280 echo "$as_me:$LINENO: result: none" >&5
43281echo "${ECHO_T}none" >&6
43282 fi
43283
43284 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
43285
43286D='$'
43287cat <<EOF >bk-deps
a848cd7e
SC
43288#!/bin/sh
43289
43290# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
43291# script. It is used to track C/C++ files dependencies in portable way.
43292#
43293# Permission is given to use this file in any way.
43294
473276a9 43295DEPSMODE=${DEPSMODE}
a848cd7e 43296DEPSDIR=.deps
473276a9 43297DEPSFLAG_GCC="${DEPSFLAG_GCC}"
81f90336 43298DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
a9e5b1f0 43299DEPSFLAG_SUNCC="${DEPSFLAG_SUNCC}"
a848cd7e 43300
473276a9 43301mkdir -p ${D}DEPSDIR
a848cd7e 43302
473276a9
VS
43303if test ${D}DEPSMODE = gcc ; then
43304 ${D}* ${D}{DEPSFLAG_GCC}
43305 status=${D}?
43306 if test ${D}{status} != 0 ; then
43307 exit ${D}{status}
a848cd7e
SC
43308 fi
43309 # move created file to the location we want it in:
473276a9
VS
43310 while test ${D}# -gt 0; do
43311 case "${D}1" in
a848cd7e
SC
43312 -o )
43313 shift
473276a9 43314 objfile=${D}1
a848cd7e
SC
43315 ;;
43316 -* )
43317 ;;
43318 * )
473276a9 43319 srcfile=${D}1
a848cd7e
SC
43320 ;;
43321 esac
43322 shift
43323 done
1e9e8aba
DE
43324 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
43325 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
43326 if test -f ${D}depfile ; then
43327 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
43328 rm -f ${D}depfile
a848cd7e 43329 else
1e9e8aba 43330 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
43331 if test -f ${D}depfile ; then
43332 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
43333 rm -f ${D}depfile
a848cd7e
SC
43334 fi
43335 fi
43336 exit 0
81f90336
MW
43337elif test ${D}DEPSMODE = mwcc ; then
43338 ${D}*
43339 status=${D}?
43340 if test ${D}{status} != 0 ; then
43341 exit ${D}{status}
43342 fi
43343 # Run mwcc again with -MM and redirect into the dep file we want
43344 # NOTE: We can't use shift here because we need ${D}* to be valid
43345 prevarg=
43346 for arg in ${D}* ; do
43347 if test "${D}prevarg" = "-o"; then
43348 objfile=${D}arg
43349 else
43350 case "${D}arg" in
43351 -* )
43352 ;;
43353 * )
43354 srcfile=${D}arg
43355 ;;
43356 esac
43357 fi
43358 prevarg="${D}arg"
43359 done
43360 ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
43361 exit 0
a9e5b1f0
MW
43362elif test ${D}DEPSMODE = suncc; then
43363 ${D}* || exit
43364 # Run compiler again with deps flag and redirect into the dep file.
43365 # It doesn't work if the '-o FILE' option is used, but without it the
43366 # dependency file will contain the wrong name for the object. So it is
43367 # removed from the command line, and the dep file is fixed with sed.
43368 cmd=""
43369 while test ${D}# -gt 0; do
43370 case "${D}1" in
43371 -o )
43372 shift
43373 objfile=${D}1
43374 ;;
43375 * )
43376 eval arg${D}#=\\${D}1
43377 cmd="${D}cmd \\${D}arg${D}#"
43378 ;;
43379 esac
43380 shift
43381 done
43382 eval "${D}cmd ${D}DEPSFLAG_SUNCC" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
43383 exit 0
a848cd7e 43384else
473276a9
VS
43385 ${D}*
43386 exit ${D}?
a848cd7e
SC
43387fi
43388EOF
473276a9 43389
a848cd7e
SC
43390 chmod +x bk-deps
43391 fi
43392
43393
43394
43395
43396 RESCOMP=
43397 SETFILE=
43398
43399 case ${BAKEFILE_HOST} in
43400 *-*-cygwin* | *-*-mingw32* )
43401 if test "$build" != "$host" ; then
43402 RESCOMP=$host_alias-windres
43403 else
43404 # Extract the first word of "windres", so it can be a program name with args.
43405set dummy windres; ac_word=$2
43406echo "$as_me:$LINENO: checking for $ac_word" >&5
43407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43408if test "${ac_cv_prog_RESCOMP+set}" = set; then
43409 echo $ECHO_N "(cached) $ECHO_C" >&6
43410else
43411 if test -n "$RESCOMP"; then
43412 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
43413else
43414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43415for as_dir in $PATH
43416do
43417 IFS=$as_save_IFS
43418 test -z "$as_dir" && as_dir=.
43419 for ac_exec_ext in '' $ac_executable_extensions; do
43420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43421 ac_cv_prog_RESCOMP="windres"
43422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43423 break 2
43424 fi
43425done
43426done
43427
43428 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
43429fi
43430fi
43431RESCOMP=$ac_cv_prog_RESCOMP
43432if test -n "$RESCOMP"; then
43433 echo "$as_me:$LINENO: result: $RESCOMP" >&5
43434echo "${ECHO_T}$RESCOMP" >&6
43435else
43436 echo "$as_me:$LINENO: result: no" >&5
43437echo "${ECHO_T}no" >&6
43438fi
43439
43440 fi
43441 ;;
43442
1e9e8aba 43443 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
43444 # Extract the first word of "Rez", so it can be a program name with args.
43445set dummy Rez; ac_word=$2
43446echo "$as_me:$LINENO: checking for $ac_word" >&5
43447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43448if test "${ac_cv_prog_RESCOMP+set}" = set; then
43449 echo $ECHO_N "(cached) $ECHO_C" >&6
43450else
43451 if test -n "$RESCOMP"; then
43452 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
43453else
43454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43455for as_dir in $PATH
43456do
43457 IFS=$as_save_IFS
43458 test -z "$as_dir" && as_dir=.
43459 for ac_exec_ext in '' $ac_executable_extensions; do
43460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43461 ac_cv_prog_RESCOMP="Rez"
43462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43463 break 2
43464 fi
43465done
43466done
43467
43468 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
43469fi
43470fi
43471RESCOMP=$ac_cv_prog_RESCOMP
43472if test -n "$RESCOMP"; then
43473 echo "$as_me:$LINENO: result: $RESCOMP" >&5
43474echo "${ECHO_T}$RESCOMP" >&6
43475else
43476 echo "$as_me:$LINENO: result: no" >&5
43477echo "${ECHO_T}no" >&6
43478fi
43479
43480 # Extract the first word of "SetFile", so it can be a program name with args.
43481set dummy SetFile; ac_word=$2
43482echo "$as_me:$LINENO: checking for $ac_word" >&5
43483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43484if test "${ac_cv_prog_SETFILE+set}" = set; then
43485 echo $ECHO_N "(cached) $ECHO_C" >&6
43486else
43487 if test -n "$SETFILE"; then
43488 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
43489else
43490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43491for as_dir in $PATH
43492do
43493 IFS=$as_save_IFS
43494 test -z "$as_dir" && as_dir=.
43495 for ac_exec_ext in '' $ac_executable_extensions; do
43496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43497 ac_cv_prog_SETFILE="SetFile"
43498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43499 break 2
43500 fi
43501done
43502done
43503
43504 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
43505fi
43506fi
43507SETFILE=$ac_cv_prog_SETFILE
43508if test -n "$SETFILE"; then
43509 echo "$as_me:$LINENO: result: $SETFILE" >&5
43510echo "${ECHO_T}$SETFILE" >&6
43511else
43512 echo "$as_me:$LINENO: result: no" >&5
43513echo "${ECHO_T}no" >&6
43514fi
43515
43516 ;;
43517 esac
43518
43519
43520
43521
43522
c9469659 43523 BAKEFILE_BAKEFILE_M4_VERSION="0.1.9"
a848cd7e 43524
dcc1b6ad 43525
c9469659 43526BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.9"
a848cd7e 43527
646b6ec1 43528
74b84332 43529
a848cd7e
SC
43530 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
43531if test "${enable_precomp_headers+set}" = set; then
43532 enableval="$enable_precomp_headers"
43533 bk_use_pch="$enableval"
43534fi;
43535
43536 GCC_PCH=0
43537
43538 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
43539 if test "x$GCC" = "xyes"; then
43540 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
43541echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
43542 cat >conftest.$ac_ext <<_ACEOF
43543/* confdefs.h. */
43544_ACEOF
43545cat confdefs.h >>conftest.$ac_ext
43546cat >>conftest.$ac_ext <<_ACEOF
43547/* end confdefs.h. */
43548
43549int
43550main ()
43551{
43552
43553 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
43554 #error "no pch support"
43555 #endif
43556 #if (__GNUC__ < 3)
43557 #error "no pch support"
43558 #endif
43559 #if (__GNUC__ == 3) && \
43560 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
43561 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
43562 #error "no pch support"
43563 #endif
43564
43565 ;
43566 return 0;
43567}
43568_ACEOF
43569rm -f conftest.$ac_objext
43570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43571 (eval $ac_compile) 2>conftest.er1
a848cd7e 43572 ac_status=$?
ac1cb8d3
VS
43573 grep -v '^ *+' conftest.er1 >conftest.err
43574 rm -f conftest.er1
43575 cat conftest.err >&5
a848cd7e
SC
43576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43577 (exit $ac_status); } &&
6ebeb4c7 43578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43580 (eval $ac_try) 2>&5
43581 ac_status=$?
43582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43583 (exit $ac_status); }; } &&
43584 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43586 (eval $ac_try) 2>&5
43587 ac_status=$?
43588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43589 (exit $ac_status); }; }; then
43590
43591 echo "$as_me:$LINENO: result: yes" >&5
43592echo "${ECHO_T}yes" >&6
a848cd7e
SC
43593 GCC_PCH=1
43594
43595else
43596 echo "$as_me: failed program was:" >&5
43597sed 's/^/| /' conftest.$ac_ext >&5
43598
43599
43600 echo "$as_me:$LINENO: result: no" >&5
43601echo "${ECHO_T}no" >&6
43602
43603fi
ac1cb8d3 43604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 43605 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
43606
43607D='$'
43608cat <<EOF >bk-make-pch
a848cd7e
SC
43609#!/bin/sh
43610
43611# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
43612# script. It is used to generated precompiled headers.
43613#
43614# Permission is given to use this file in any way.
43615
1e9e8aba
DE
43616outfile="${D}{1}"
43617header="${D}{2}"
a848cd7e
SC
43618shift
43619shift
43620
43621compiler=
43622headerfile=
1e9e8aba
DE
43623while test ${D}{#} -gt 0; do
43624 case "${D}{1}" in
a848cd7e 43625 -I* )
1e9e8aba
DE
43626 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
43627 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
43628 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
43629 fi
43630 ;;
43631 esac
1e9e8aba 43632 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
43633 shift
43634done
43635
1e9e8aba
DE
43636if test "x${D}{headerfile}" = "x" ; then
43637 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 43638else
1e9e8aba
DE
43639 if test -f ${D}{outfile} ; then
43640 rm -f ${D}{outfile}
a848cd7e 43641 else
1e9e8aba 43642 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 43643 fi
1e9e8aba 43644 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
43645 mkdir -p .deps
43646 # can do this because gcc is >= 3.4:
1e9e8aba
DE
43647 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
43648 exit ${D}{?}
a848cd7e
SC
43649fi
43650EOF
1e9e8aba 43651
a848cd7e
SC
43652 chmod +x bk-make-pch
43653 fi
43654 fi
43655 fi
43656
43657
43658
a848cd7e
SC
43659 COND_BUILD_DEBUG="#"
43660 if test "x$BUILD" = "xdebug" ; then
43661 COND_BUILD_DEBUG=""
43662 fi
43663
43664 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
43665 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
43666 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
43667 fi
43668
43669 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
43670 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
43671 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
43672 fi
43673
43674 COND_BUILD_DEBUG_UNICODE_0="#"
43675 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
43676 COND_BUILD_DEBUG_UNICODE_0=""
43677 fi
43678
43679 COND_BUILD_DEBUG_UNICODE_1="#"
43680 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
43681 COND_BUILD_DEBUG_UNICODE_1=""
43682 fi
43683
43684 COND_BUILD_RELEASE="#"
43685 if test "x$BUILD" = "xrelease" ; then
43686 COND_BUILD_RELEASE=""
43687 fi
43688
43689 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
43690 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
43691 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
43692 fi
43693
43694 COND_BUILD_RELEASE_UNICODE_0="#"
43695 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
43696 COND_BUILD_RELEASE_UNICODE_0=""
43697 fi
43698
43699 COND_BUILD_RELEASE_UNICODE_1="#"
43700 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
43701 COND_BUILD_RELEASE_UNICODE_1=""
43702 fi
43703
43704 COND_DEBUG_FLAG_1="#"
43705 if test "x$DEBUG_FLAG" = "x1" ; then
43706 COND_DEBUG_FLAG_1=""
43707 fi
43708
43709 COND_DEBUG_INFO_0="#"
43710 if test "x$DEBUG_INFO" = "x0" ; then
43711 COND_DEBUG_INFO_0=""
43712 fi
43713
43714 COND_DEBUG_INFO_1="#"
43715 if test "x$DEBUG_INFO" = "x1" ; then
43716 COND_DEBUG_INFO_1=""
43717 fi
43718
43719 COND_DEPS_TRACKING_0="#"
43720 if test "x$DEPS_TRACKING" = "x0" ; then
43721 COND_DEPS_TRACKING_0=""
43722 fi
43723
43724 COND_DEPS_TRACKING_1="#"
43725 if test "x$DEPS_TRACKING" = "x1" ; then
43726 COND_DEPS_TRACKING_1=""
43727 fi
43728
43729 COND_GCC_PCH_1="#"
43730 if test "x$GCC_PCH" = "x1" ; then
43731 COND_GCC_PCH_1=""
43732 fi
43733
43734 COND_MONOLITHIC_0="#"
43735 if test "x$MONOLITHIC" = "x0" ; then
43736 COND_MONOLITHIC_0=""
43737 fi
43738
43739 COND_MONOLITHIC_0_SHARED_0="#"
43740 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
43741 COND_MONOLITHIC_0_SHARED_0=""
43742 fi
43743
43744 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
43745 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
43746 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
43747 fi
43748
90970d69
DE
43749 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
43750 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
43751 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
43752 fi
43753
a848cd7e
SC
43754 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
43755 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
43756 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
43757 fi
43758
6671c68b
VZ
43759 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
43760 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
43761 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
43762 fi
43763
a848cd7e
SC
43764 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
43765 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
43766 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
43767 fi
43768
ceec2216
RL
43769 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
43770 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
43771 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
43772 fi
43773
a848cd7e
SC
43774 COND_MONOLITHIC_0_SHARED_1="#"
43775 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
43776 COND_MONOLITHIC_0_SHARED_1=""
43777 fi
43778
43779 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
43780 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
43781 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
43782 fi
43783
90970d69
DE
43784 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
43785 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
43786 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
43787 fi
43788
a848cd7e
SC
43789 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
43790 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
43791 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
43792 fi
43793
6671c68b
VZ
43794 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
43795 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
43796 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
43797 fi
43798
a848cd7e
SC
43799 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
43800 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
43801 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
43802 fi
43803
ceec2216
RL
43804 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
43805 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
43806 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
43807 fi
43808
a848cd7e
SC
43809 COND_MONOLITHIC_0_USE_ODBC_1="#"
43810 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
43811 COND_MONOLITHIC_0_USE_ODBC_1=""
43812 fi
43813
43814 COND_MONOLITHIC_1="#"
43815 if test "x$MONOLITHIC" = "x1" ; then
43816 COND_MONOLITHIC_1=""
43817 fi
43818
43819 COND_MONOLITHIC_1_SHARED_0="#"
43820 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
43821 COND_MONOLITHIC_1_SHARED_0=""
43822 fi
43823
43824 COND_MONOLITHIC_1_SHARED_1="#"
43825 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
43826 COND_MONOLITHIC_1_SHARED_1=""
43827 fi
43828
43829 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
43830 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
43831 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
43832 fi
43833
43834 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
43835 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
43836 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
43837 fi
43838
eb730a0c
JS
43839 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
43840 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
43841 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
43842 fi
43843
a848cd7e
SC
43844 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
43845 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
43846 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
43847 fi
43848
43849 COND_PLATFORM_MACOSX_1="#"
43850 if test "x$PLATFORM_MACOSX" = "x1" ; then
43851 COND_PLATFORM_MACOSX_1=""
43852 fi
43853
a30f955f
VS
43854 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
43855 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
43856 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
43857 fi
43858
a848cd7e
SC
43859 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
43860 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
43861 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
43862 fi
43863
43864 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
43865 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
43866 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
43867 fi
43868
43869 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
43870 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
43871 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
43872 fi
43873
fc480dc1
DE
43874 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
43875 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
43876 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
43877 fi
43878
1e9e8aba
DE
43879 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
43880 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43881 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
43882 fi
43883
ebee3cd0
VS
43884 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
43885 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
43886 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
43887 fi
43888
43889 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
43890 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
43891 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
43892 fi
43893
a848cd7e
SC
43894 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
43895 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
43896 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
43897 fi
43898
43899 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
43900 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
43901 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
43902 fi
43903
b48a2016
DE
43904 COND_PLATFORM_MACOS_1="#"
43905 if test "x$PLATFORM_MACOS" = "x1" ; then
43906 COND_PLATFORM_MACOS_1=""
43907 fi
43908
083508af
MW
43909 COND_PLATFORM_MAC_1="#"
43910 if test "x$PLATFORM_MAC" = "x1" ; then
43911 COND_PLATFORM_MAC_1=""
43912 fi
43913
83d8eb47
MW
43914 COND_PLATFORM_MSDOS_1="#"
43915 if test "x$PLATFORM_MSDOS" = "x1" ; then
43916 COND_PLATFORM_MSDOS_1=""
43917 fi
43918
a848cd7e
SC
43919 COND_PLATFORM_OS2_1="#"
43920 if test "x$PLATFORM_OS2" = "x1" ; then
43921 COND_PLATFORM_OS2_1=""
43922 fi
43923
43924 COND_PLATFORM_UNIX_0="#"
43925 if test "x$PLATFORM_UNIX" = "x0" ; then
43926 COND_PLATFORM_UNIX_0=""
43927 fi
43928
43929 COND_PLATFORM_UNIX_1="#"
43930 if test "x$PLATFORM_UNIX" = "x1" ; then
43931 COND_PLATFORM_UNIX_1=""
43932 fi
43933
43934 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
43935 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
43936 COND_PLATFORM_UNIX_1_USE_GUI_1=""
43937 fi
43938
43939 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
43940 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
43941 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
43942 fi
43943
43944 COND_PLATFORM_WIN32_0="#"
43945 if test "x$PLATFORM_WIN32" = "x0" ; then
43946 COND_PLATFORM_WIN32_0=""
43947 fi
43948
43949 COND_PLATFORM_WIN32_1="#"
43950 if test "x$PLATFORM_WIN32" = "x1" ; then
43951 COND_PLATFORM_WIN32_1=""
43952 fi
43953
43954 COND_SHARED_0="#"
43955 if test "x$SHARED" = "x0" ; then
43956 COND_SHARED_0=""
43957 fi
43958
083508af
MW
43959 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
43960 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
43961 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
43962 fi
43963
43964 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
43965 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
43966 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
43967 fi
43968
43969 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
43970 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
43971 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
43972 fi
43973
a848cd7e
SC
43974 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
43975 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
43976 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
43977 fi
43978
43979 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
43980 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43981 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
43982 fi
43983
43984 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
43985 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43986 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
43987 fi
43988
43989 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
43990 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43991 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
43992 fi
43993
083508af
MW
43994 COND_SHARED_0_USE_XRC_1="#"
43995 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
43996 COND_SHARED_0_USE_XRC_1=""
43997 fi
43998
a848cd7e
SC
43999 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
44000 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
44001 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
44002 fi
44003
44004 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
44005 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
44006 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
44007 fi
44008
44009 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
44010 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
44011 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
44012 fi
44013
44014 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
44015 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
44016 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
44017 fi
44018
44019 COND_SHARED_1="#"
44020 if test "x$SHARED" = "x1" ; then
44021 COND_SHARED_1=""
44022 fi
44023
44024 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
44025 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
44026 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
44027 fi
44028
083508af
MW
44029 COND_SHARED_1_USE_XRC_1="#"
44030 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
44031 COND_SHARED_1_USE_XRC_1=""
44032 fi
44033
a30f955f
VS
44034 COND_TOOLKIT_="#"
44035 if test "x$TOOLKIT" = "x" ; then
44036 COND_TOOLKIT_=""
44037 fi
44038
a848cd7e
SC
44039 COND_TOOLKIT_COCOA="#"
44040 if test "x$TOOLKIT" = "xCOCOA" ; then
44041 COND_TOOLKIT_COCOA=""
44042 fi
44043
a49baeab
DE
44044 COND_TOOLKIT_COCOA_USE_GUI_1="#"
44045 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
44046 COND_TOOLKIT_COCOA_USE_GUI_1=""
44047 fi
44048
a848cd7e
SC
44049 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
44050 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44051 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
44052 fi
44053
44054 COND_TOOLKIT_GTK="#"
44055 if test "x$TOOLKIT" = "xGTK" ; then
44056 COND_TOOLKIT_GTK=""
44057 fi
44058
44059 COND_TOOLKIT_GTK_USE_GUI_1="#"
44060 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
44061 COND_TOOLKIT_GTK_USE_GUI_1=""
44062 fi
44063
44064 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
44065 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44066 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
44067 fi
44068
44069 COND_TOOLKIT_MAC="#"
44070 if test "x$TOOLKIT" = "xMAC" ; then
44071 COND_TOOLKIT_MAC=""
44072 fi
44073
44074 COND_TOOLKIT_MAC_USE_GUI_1="#"
44075 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
44076 COND_TOOLKIT_MAC_USE_GUI_1=""
44077 fi
44078
44079 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
44080 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44081 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
44082 fi
44083
44084 COND_TOOLKIT_MGL="#"
44085 if test "x$TOOLKIT" = "xMGL" ; then
44086 COND_TOOLKIT_MGL=""
44087 fi
44088
44089 COND_TOOLKIT_MGL_USE_GUI_1="#"
44090 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
44091 COND_TOOLKIT_MGL_USE_GUI_1=""
44092 fi
44093
44094 COND_TOOLKIT_MOTIF="#"
44095 if test "x$TOOLKIT" = "xMOTIF" ; then
44096 COND_TOOLKIT_MOTIF=""
44097 fi
44098
44099 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
44100 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
44101 COND_TOOLKIT_MOTIF_USE_GUI_1=""
44102 fi
44103
44104 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
44105 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44106 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
44107 fi
44108
44109 COND_TOOLKIT_MSW="#"
44110 if test "x$TOOLKIT" = "xMSW" ; then
44111 COND_TOOLKIT_MSW=""
44112 fi
44113
44114 COND_TOOLKIT_MSW_USE_GUI_1="#"
44115 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
44116 COND_TOOLKIT_MSW_USE_GUI_1=""
44117 fi
44118
44119 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
44120 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44121 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
44122 fi
44123
44124 COND_TOOLKIT_PM="#"
44125 if test "x$TOOLKIT" = "xPM" ; then
44126 COND_TOOLKIT_PM=""
44127 fi
44128
44129 COND_TOOLKIT_PM_USE_GUI_1="#"
44130 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
44131 COND_TOOLKIT_PM_USE_GUI_1=""
44132 fi
44133
44134 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
44135 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44136 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
44137 fi
44138
3fd9c298
DE
44139 COND_TOOLKIT_WINCE="#"
44140 if test "x$TOOLKIT" = "xWINCE" ; then
44141 COND_TOOLKIT_WINCE=""
44142 fi
44143
44144 COND_TOOLKIT_WINCE_USE_GUI_1="#"
44145 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
44146 COND_TOOLKIT_WINCE_USE_GUI_1=""
44147 fi
44148
44149 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
44150 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44151 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
44152 fi
44153
a848cd7e
SC
44154 COND_TOOLKIT_X11="#"
44155 if test "x$TOOLKIT" = "xX11" ; then
44156 COND_TOOLKIT_X11=""
44157 fi
44158
44159 COND_TOOLKIT_X11_USE_GUI_1="#"
44160 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
44161 COND_TOOLKIT_X11_USE_GUI_1=""
44162 fi
44163
44164 COND_UNICODE_1="#"
44165 if test "x$UNICODE" = "x1" ; then
44166 COND_UNICODE_1=""
44167 fi
44168
44169 COND_USE_EXCEPTIONS_0="#"
44170 if test "x$USE_EXCEPTIONS" = "x0" ; then
44171 COND_USE_EXCEPTIONS_0=""
44172 fi
44173
44174 COND_USE_EXCEPTIONS_1="#"
44175 if test "x$USE_EXCEPTIONS" = "x1" ; then
44176 COND_USE_EXCEPTIONS_1=""
44177 fi
44178
44179 COND_USE_GUI_0="#"
44180 if test "x$USE_GUI" = "x0" ; then
44181 COND_USE_GUI_0=""
44182 fi
44183
44184 COND_USE_GUI_1="#"
44185 if test "x$USE_GUI" = "x1" ; then
44186 COND_USE_GUI_1=""
44187 fi
44188
44189 COND_USE_GUI_1_WXUNIV_0="#"
44190 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44191 COND_USE_GUI_1_WXUNIV_0=""
44192 fi
44193
44194 COND_USE_GUI_1_WXUNIV_1="#"
44195 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
44196 COND_USE_GUI_1_WXUNIV_1=""
44197 fi
44198
44199 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
44200 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
44201 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
44202 fi
44203
44204 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
44205 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
44206 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
44207 fi
44208
44209 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
44210 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
44211 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
44212 fi
44213
083508af
MW
44214 COND_USE_ODBC_1="#"
44215 if test "x$USE_ODBC" = "x1" ; then
44216 COND_USE_ODBC_1=""
44217 fi
44218
44219 COND_USE_OPENGL_1="#"
44220 if test "x$USE_OPENGL" = "x1" ; then
44221 COND_USE_OPENGL_1=""
44222 fi
44223
a848cd7e
SC
44224 COND_USE_PLUGINS_0="#"
44225 if test "x$USE_PLUGINS" = "x0" ; then
44226 COND_USE_PLUGINS_0=""
44227 fi
44228
0b78747f
MW
44229 COND_USE_RTTI_0="#"
44230 if test "x$USE_RTTI" = "x0" ; then
44231 COND_USE_RTTI_0=""
44232 fi
44233
44234 COND_USE_RTTI_1="#"
44235 if test "x$USE_RTTI" = "x1" ; then
44236 COND_USE_RTTI_1=""
44237 fi
44238
a848cd7e
SC
44239 COND_USE_SOSYMLINKS_1="#"
44240 if test "x$USE_SOSYMLINKS" = "x1" ; then
44241 COND_USE_SOSYMLINKS_1=""
44242 fi
44243
eb730a0c
JS
44244 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
44245 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
44246 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
44247 fi
44248
a848cd7e
SC
44249 COND_USE_SOVERLINUX_1="#"
44250 if test "x$USE_SOVERLINUX" = "x1" ; then
44251 COND_USE_SOVERLINUX_1=""
44252 fi
44253
44254 COND_USE_SOVERSION_0="#"
44255 if test "x$USE_SOVERSION" = "x0" ; then
44256 COND_USE_SOVERSION_0=""
44257 fi
44258
44259 COND_USE_SOVERSOLARIS_1="#"
44260 if test "x$USE_SOVERSOLARIS" = "x1" ; then
44261 COND_USE_SOVERSOLARIS_1=""
44262 fi
44263
0b78747f
MW
44264 COND_USE_THREADS_0="#"
44265 if test "x$USE_THREADS" = "x0" ; then
44266 COND_USE_THREADS_0=""
44267 fi
44268
44269 COND_USE_THREADS_1="#"
44270 if test "x$USE_THREADS" = "x1" ; then
44271 COND_USE_THREADS_1=""
44272 fi
44273
a13a7f89
RL
44274 COND_USE_XRC_1="#"
44275 if test "x$USE_XRC" = "x1" ; then
44276 COND_USE_XRC_1=""
44277 fi
44278
eb730a0c
JS
44279 COND_WINDOWS_IMPLIB_1="#"
44280 if test "x$WINDOWS_IMPLIB" = "x1" ; then
44281 COND_WINDOWS_IMPLIB_1=""
44282 fi
44283
a848cd7e
SC
44284 COND_WITH_PLUGIN_SDL_1="#"
44285 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
44286 COND_WITH_PLUGIN_SDL_1=""
44287 fi
44288
1e6eb025
VZ
44289 COND_WXUNIV_0="#"
44290 if test "x$WXUNIV" = "x0" ; then
44291 COND_WXUNIV_0=""
44292 fi
44293
a848cd7e
SC
44294 COND_WXUNIV_1="#"
44295 if test "x$WXUNIV" = "x1" ; then
44296 COND_WXUNIV_1=""
44297 fi
44298
44299 COND_WXUSE_EXPAT_BUILTIN="#"
44300 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
44301 COND_WXUSE_EXPAT_BUILTIN=""
44302 fi
44303
44304 COND_WXUSE_LIBJPEG_BUILTIN="#"
44305 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
44306 COND_WXUSE_LIBJPEG_BUILTIN=""
44307 fi
44308
44309 COND_WXUSE_LIBPNG_BUILTIN="#"
44310 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
44311 COND_WXUSE_LIBPNG_BUILTIN=""
44312 fi
44313
44314 COND_WXUSE_LIBTIFF_BUILTIN="#"
44315 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
44316 COND_WXUSE_LIBTIFF_BUILTIN=""
44317 fi
44318
44319 COND_WXUSE_ODBC_BUILTIN="#"
44320 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
44321 COND_WXUSE_ODBC_BUILTIN=""
44322 fi
44323
44324 COND_WXUSE_REGEX_BUILTIN="#"
44325 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
44326 COND_WXUSE_REGEX_BUILTIN=""
44327 fi
44328
44329 COND_WXUSE_ZLIB_BUILTIN="#"
44330 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
44331 COND_WXUSE_ZLIB_BUILTIN=""
44332 fi
44333
44334
44335
810b94f0
MW
44336 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
44337 { { echo "$as_me:$LINENO: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&5
44338echo "$as_me: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&2;}
44339 { (exit 1); exit 1; }; }
44340 fi
44341
2057db16
VS
44342 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
44343 { { 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
44344echo "$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;}
44345 { (exit 1); exit 1; }; }
44346 fi
44347
a848cd7e 44348
fb00f58d
JS
44349if test "$wxUSE_WINE" = "yes"; then
44350 RESCOMP=wrc
44351fi
44352
ceec2216
RL
44353if test "$wxUSE_SHARED" = "yes"; then
44354
44355 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
44356 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
44357
5b674b9d
DE
44358 case "${host}" in
44359 *-pc-os2_emx | *-pc-os2-emx )
44360 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
44361 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
44362 cp -p ${srcdir}/src/os2/dllnames.sh .
44363 cp -p ${srcdir}/src/os2/dllar.sh .
44364 ;;
44365 esac
ceec2216
RL
44366else
44367
44368 EXE_LINKER="$CXX -o"
44369
44370fi
69120ee4
VZ
44371if test "$wxUSE_OMF" = "yes"; then
44372 case "${host}" in
44373 *-pc-os2_emx | *-pc-os2-emx )
44374 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
44375 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
44376 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
44377 ;;
44378 esac
44379fi
a848cd7e 44380
ddd14b14
RR
44381GCC_PRAGMA_FLAGS=""
44382PCH_FLAGS=""
87dd70d3 44383
c08ebc62 44384if test $GCC_PCH = 1 ; then
ddd14b14 44385 PCH_FLAGS="-DWX_PRECOMP"
87ae5038
RR
44386 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
44387else
44388 if test "$GCC" = yes; then
44389 echo "$as_me:$LINENO: checking if this GCC version is >= 4.0 and needs -DNO_GCC_PRAGMA" >&5
87dd70d3 44390echo $ECHO_N "checking if this GCC version is >= 4.0 and needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
87ae5038 44391 cat >conftest.$ac_ext <<_ACEOF
87dd70d3
RR
44392/* confdefs.h. */
44393_ACEOF
44394cat confdefs.h >>conftest.$ac_ext
44395cat >>conftest.$ac_ext <<_ACEOF
44396/* end confdefs.h. */
44397
44398int
44399main ()
44400{
44401#if (__GNUC__ < 4)
87ae5038
RR
44402 #error "Not GCC 4.0 or greater"
44403 #endif
87dd70d3
RR
44404
44405 ;
44406 return 0;
44407}
44408_ACEOF
44409rm -f conftest.$ac_objext
44410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44411 (eval $ac_compile) 2>conftest.er1
44412 ac_status=$?
44413 grep -v '^ *+' conftest.er1 >conftest.err
44414 rm -f conftest.er1
44415 cat conftest.err >&5
44416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44417 (exit $ac_status); } &&
6ebeb4c7 44418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
87dd70d3
RR
44419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44420 (eval $ac_try) 2>&5
44421 ac_status=$?
44422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44423 (exit $ac_status); }; } &&
44424 { ac_try='test -s conftest.$ac_objext'
44425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44426 (eval $ac_try) 2>&5
44427 ac_status=$?
44428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44429 (exit $ac_status); }; }; then
44430 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
87ae5038 44431 echo "$as_me:$LINENO: result: yes" >&5
87dd70d3
RR
44432echo "${ECHO_T}yes" >&6
44433else
44434 echo "$as_me: failed program was:" >&5
44435sed 's/^/| /' conftest.$ac_ext >&5
44436
44437echo "$as_me:$LINENO: result: no" >&5
44438echo "${ECHO_T}no" >&6
87ae5038 44439 case "${host}" in
cfda0ea8 44440 *-*-darwin* )
87ae5038
RR
44441 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
44442 ;;
44443 *-*-mingw32* )
44444 if test "$wxUSE_STL" = "yes" -o \
ddd14b14
RR
44445 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
44446 "$wxUSE_NO_RTTI" != "yes"; then
87ae5038 44447 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
ddd14b14 44448echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
87ae5038 44449 cat >conftest.$ac_ext <<_ACEOF
ddd14b14
RR
44450/* confdefs.h. */
44451_ACEOF
44452cat confdefs.h >>conftest.$ac_ext
44453cat >>conftest.$ac_ext <<_ACEOF
44454/* end confdefs.h. */
44455
44456int
44457main ()
44458{
44459#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
87ae5038
RR
44460 #error "Not GCC 3.2 or greater"
44461 #endif
ddd14b14
RR
44462
44463 ;
44464 return 0;
44465}
44466_ACEOF
44467rm -f conftest.$ac_objext
44468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44469 (eval $ac_compile) 2>conftest.er1
44470 ac_status=$?
44471 grep -v '^ *+' conftest.er1 >conftest.err
44472 rm -f conftest.er1
44473 cat conftest.err >&5
44474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44475 (exit $ac_status); } &&
6ebeb4c7 44476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ddd14b14
RR
44477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44478 (eval $ac_try) 2>&5
44479 ac_status=$?
44480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44481 (exit $ac_status); }; } &&
44482 { ac_try='test -s conftest.$ac_objext'
44483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44484 (eval $ac_try) 2>&5
44485 ac_status=$?
44486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44487 (exit $ac_status); }; }; then
44488 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
87ae5038 44489 echo "$as_me:$LINENO: result: yes" >&5
ddd14b14
RR
44490echo "${ECHO_T}yes" >&6
44491else
44492 echo "$as_me: failed program was:" >&5
44493sed 's/^/| /' conftest.$ac_ext >&5
44494
44495echo "$as_me:$LINENO: result: no" >&5
44496echo "${ECHO_T}no" >&6
3314e67b 44497fi
ddd14b14 44498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
87ae5038
RR
44499 fi
44500 ;;
44501 *-pc-os2_emx | *-pc-os2-emx )
44502 if test "$wxUSE_STL" = "yes"; then
44503 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
ddd14b14 44504echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
87ae5038 44505 cat >conftest.$ac_ext <<_ACEOF
ddd14b14
RR
44506/* confdefs.h. */
44507_ACEOF
44508cat confdefs.h >>conftest.$ac_ext
44509cat >>conftest.$ac_ext <<_ACEOF
44510/* end confdefs.h. */
44511
44512int
44513main ()
44514{
44515#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
87ae5038
RR
44516 #error "Not GCC 3.2 or greater"
44517 #endif
ddd14b14
RR
44518
44519 ;
44520 return 0;
44521}
44522_ACEOF
44523rm -f conftest.$ac_objext
44524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44525 (eval $ac_compile) 2>conftest.er1
44526 ac_status=$?
44527 grep -v '^ *+' conftest.er1 >conftest.err
44528 rm -f conftest.er1
44529 cat conftest.err >&5
44530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44531 (exit $ac_status); } &&
6ebeb4c7 44532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ddd14b14
RR
44533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44534 (eval $ac_try) 2>&5
44535 ac_status=$?
44536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44537 (exit $ac_status); }; } &&
44538 { ac_try='test -s conftest.$ac_objext'
44539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44540 (eval $ac_try) 2>&5
44541 ac_status=$?
44542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44543 (exit $ac_status); }; }; then
44544 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
87ae5038 44545 echo "$as_me:$LINENO: result: yes" >&5
ddd14b14
RR
44546echo "${ECHO_T}yes" >&6
44547else
44548 echo "$as_me: failed program was:" >&5
44549sed 's/^/| /' conftest.$ac_ext >&5
bea8e651 44550
ddd14b14
RR
44551echo "$as_me:$LINENO: result: no" >&5
44552echo "${ECHO_T}no" >&6
44553fi
44554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
87ae5038
RR
44555 fi
44556 ;;
44557 esac
44558
44559fi
44560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44561 fi
ddd14b14
RR
44562fi
44563CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
44564
44565
44566SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
44567
44568
44569
44570
44571
44572
44573
44574
44575
44576
44577
44578
44579
44580
44581
44582
44583
44584
44585
44586
44587
44588
44589
44590
44591
44592
44593
44594
44595
44596
44597
44598
44599
44600
44601
44602
44603
44604
44605
44606
44607
44608
a848cd7e
SC
44609
44610
44611
44612
44613
44614
44615
44616
44617
44618
44619
44620
44621
44622
44623
44624
44625
44626
ddd14b14 44627
a848cd7e
SC
44628
44629
44630echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
44631echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 44632set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
44633if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
44634 echo $ECHO_N "(cached) $ECHO_C" >&6
44635else
44636 cat >conftest.make <<\_ACEOF
44637all:
44638 @echo 'ac_maketemp="$(MAKE)"'
44639_ACEOF
44640# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
44641eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
44642if test -n "$ac_maketemp"; then
44643 eval ac_cv_prog_make_${ac_make}_set=yes
44644else
44645 eval ac_cv_prog_make_${ac_make}_set=no
44646fi
44647rm -f conftest.make
44648fi
44649if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
44650 echo "$as_me:$LINENO: result: yes" >&5
44651echo "${ECHO_T}yes" >&6
44652 SET_MAKE=
44653else
44654 echo "$as_me:$LINENO: result: no" >&5
44655echo "${ECHO_T}no" >&6
44656 SET_MAKE="MAKE=${MAKE-make}"
44657fi
44658
44659
a848cd7e 44660
ceec2216
RL
44661 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
44662
a848cd7e 44663
ceec2216 44664 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 44665
a848cd7e 44666
ceec2216 44667 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 44668
ceec2216
RL
44669
44670 ac_config_files="$ac_config_files version-script Makefile"
44671
44672
44673 ac_config_commands="$ac_config_commands wx-config
44674 "
a848cd7e
SC
44675
44676
9103d280
RL
44677
44678
a848cd7e
SC
44679if test "$wxUSE_GUI" = "yes"; then
44680 SUBDIRS="samples demos utils contrib"
44681else SUBDIRS="samples utils"
44682fi
44683
44684
44685
44686# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
44687if test "${with_cppunit_prefix+set}" = set; then
44688 withval="$with_cppunit_prefix"
44689 cppunit_config_prefix="$withval"
44690else
44691 cppunit_config_prefix=""
44692fi;
44693
44694# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
44695if test "${with_cppunit_exec_prefix+set}" = set; then
44696 withval="$with_cppunit_exec_prefix"
44697 cppunit_config_exec_prefix="$withval"
44698else
44699 cppunit_config_exec_prefix=""
44700fi;
44701
44702 if test x$cppunit_config_exec_prefix != x ; then
44703 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
44704 if test x${CPPUNIT_CONFIG+set} != xset ; then
44705 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
44706 fi
44707 fi
44708 if test x$cppunit_config_prefix != x ; then
44709 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
44710 if test x${CPPUNIT_CONFIG+set} != xset ; then
44711 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
44712 fi
44713 fi
44714
44715 # Extract the first word of "cppunit-config", so it can be a program name with args.
44716set dummy cppunit-config; ac_word=$2
44717echo "$as_me:$LINENO: checking for $ac_word" >&5
44718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44719if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
44720 echo $ECHO_N "(cached) $ECHO_C" >&6
44721else
44722 case $CPPUNIT_CONFIG in
44723 [\\/]* | ?:[\\/]*)
44724 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
44725 ;;
44726 *)
44727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44728for as_dir in $PATH
44729do
44730 IFS=$as_save_IFS
44731 test -z "$as_dir" && as_dir=.
44732 for ac_exec_ext in '' $ac_executable_extensions; do
44733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44734 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44736 break 2
44737 fi
44738done
44739done
44740
44741 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
44742 ;;
44743esac
44744fi
44745CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
44746
44747if test -n "$CPPUNIT_CONFIG"; then
44748 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
44749echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
44750else
44751 echo "$as_me:$LINENO: result: no" >&5
44752echo "${ECHO_T}no" >&6
44753fi
44754
44755 cppunit_version_min=1.8.0
44756
44757 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
44758echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
44759 no_cppunit=""
44760 if test "$CPPUNIT_CONFIG" = "no" ; then
44761 no_cppunit=yes
44762 else
44763 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
44764 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
44765 cppunit_version=`$CPPUNIT_CONFIG --version`
44766
44767 cppunit_major_version=`echo $cppunit_version | \
44768 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
44769 cppunit_minor_version=`echo $cppunit_version | \
44770 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
44771 cppunit_micro_version=`echo $cppunit_version | \
44772 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
44773
44774 cppunit_major_min=`echo $cppunit_version_min | \
44775 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
44776 cppunit_minor_min=`echo $cppunit_version_min | \
44777 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
44778 cppunit_micro_min=`echo $cppunit_version_min | \
44779 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
44780
44781 cppunit_version_proper=`expr \
44782 $cppunit_major_version \> $cppunit_major_min \| \
44783 $cppunit_major_version \= $cppunit_major_min \& \
44784 $cppunit_minor_version \> $cppunit_minor_min \| \
44785 $cppunit_major_version \= $cppunit_major_min \& \
44786 $cppunit_minor_version \= $cppunit_minor_min \& \
44787 $cppunit_micro_version \>= $cppunit_micro_min `
44788
44789 if test "$cppunit_version_proper" = "1" ; then
44790 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
44791echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
44792 else
44793 echo "$as_me:$LINENO: result: no" >&5
44794echo "${ECHO_T}no" >&6
44795 no_cppunit=yes
44796 fi
44797 fi
44798
44799 if test "x$no_cppunit" = x ; then
c2218763 44800 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
44801 else
44802 CPPUNIT_CFLAGS=""
44803 CPPUNIT_LIBS=""
c2218763 44804 :
a848cd7e
SC
44805 fi
44806
44807
44808
44809
44810
44811for subdir in `echo $SUBDIRS`; do
44812 if test -d ${srcdir}/${subdir} ; then
44813 if test "$wxUSE_GUI" = "yes"; then
44814 if test ${subdir} = "samples"; then
44815 makefiles="samples/Makefile.in $makefiles"
44816 for sample in `echo $SAMPLES_SUBDIRS`; do
44817 if test -d $srcdir/samples/$sample; then
44818 makefiles="samples/$sample/Makefile.in $makefiles"
44819 fi
44820 done
9c112555
MW
44821 else
44822 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
44823 eval "disabled=\$$disabled_var"
44824 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
44825 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
44826 fi
44827 else if test ${subdir} = "samples"; then
44828 makefiles="samples/Makefile.in samples/console/Makefile.in"
44829 elif test ${subdir} = "utils"; then
6537ccf8
VS
44830 makefiles=""
44831 for util in HelpGen tex2rtf ; do
44832 if test -d $srcdir/utils/$util ; then
44833 makefiles="utils/$util/Makefile.in \
44834 utils/$util/src/Makefile.in \
44835 $makefiles"
44836 fi
44837 done
a848cd7e
SC
44838 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
44839 fi
44840 fi
44841
44842 for mkin in $makefiles ; do
44843 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
44844 ac_config_files="$ac_config_files $mk"
44845
44846 done
44847 fi
44848done
44849
44850
44851cat >confcache <<\_ACEOF
44852# This file is a shell script that caches the results of configure
44853# tests run on this system so they can be shared between configure
44854# scripts and configure runs, see configure's option --config-cache.
44855# It is not useful on other systems. If it contains results you don't
44856# want to keep, you may remove or edit it.
44857#
44858# config.status only pays attention to the cache file if you give it
44859# the --recheck option to rerun configure.
44860#
44861# `ac_cv_env_foo' variables (set or unset) will be overridden when
44862# loading this file, other *unset* `ac_cv_foo' will be assigned the
44863# following values.
44864
44865_ACEOF
44866
44867# The following way of writing the cache mishandles newlines in values,
44868# but we know of no workaround that is simple, portable, and efficient.
44869# So, don't put newlines in cache variables' values.
44870# Ultrix sh set writes to stderr and can't be redirected directly,
44871# and sets the high bit in the cache file unless we assign to the vars.
44872{
44873 (set) 2>&1 |
44874 case `(ac_space=' '; set | grep ac_space) 2>&1` in
44875 *ac_space=\ *)
44876 # `set' does not quote correctly, so add quotes (double-quote
44877 # substitution turns \\\\ into \\, and sed turns \\ into \).
44878 sed -n \
ac1cb8d3
VS
44879 "s/'/'\\\\''/g;
44880 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
44881 ;;
44882 *)
44883 # `set' quotes correctly as required by POSIX, so do not add quotes.
44884 sed -n \
ac1cb8d3 44885 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
44886 ;;
44887 esac;
44888} |
44889 sed '
44890 t clear
44891 : clear
44892 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
44893 t end
44894 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
44895 : end' >>confcache
44896if diff $cache_file confcache >/dev/null 2>&1; then :; else
44897 if test -w $cache_file; then
44898 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
44899 cat confcache >$cache_file
44900 else
44901 echo "not updating unwritable cache $cache_file"
44902 fi
44903fi
44904rm -f confcache
44905
44906test "x$prefix" = xNONE && prefix=$ac_default_prefix
44907# Let make expand exec_prefix.
44908test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44909
44910# VPATH may cause trouble with some makes, so we remove $(srcdir),
44911# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44912# trailing colons and then remove the whole line if VPATH becomes empty
44913# (actually we leave an empty line to preserve line numbers).
44914if test "x$srcdir" = x.; then
ac1cb8d3 44915 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
44916s/:*\$(srcdir):*/:/;
44917s/:*\${srcdir}:*/:/;
44918s/:*@srcdir@:*/:/;
ac1cb8d3 44919s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 44920s/:*$//;
ac1cb8d3 44921s/^[^=]*=[ ]*$//;
a848cd7e
SC
44922}'
44923fi
44924
44925DEFS=-DHAVE_CONFIG_H
44926
44927ac_libobjs=
44928ac_ltlibobjs=
44929for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44930 # 1. Remove the extension, and $U if already installed.
44931 ac_i=`echo "$ac_i" |
ac1cb8d3 44932 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
44933 # 2. Add them.
44934 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
44935 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
44936done
44937LIBOBJS=$ac_libobjs
44938
44939LTLIBOBJS=$ac_ltlibobjs
44940
44941
44942
44943: ${CONFIG_STATUS=./config.status}
44944ac_clean_files_save=$ac_clean_files
44945ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44946{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44947echo "$as_me: creating $CONFIG_STATUS" >&6;}
44948cat >$CONFIG_STATUS <<_ACEOF
44949#! $SHELL
44950# Generated by $as_me.
44951# Run this file to recreate the current configuration.
44952# Compiler output produced by configure, useful for debugging
44953# configure, is in config.log if it exists.
44954
44955debug=false
44956ac_cs_recheck=false
44957ac_cs_silent=false
44958SHELL=\${CONFIG_SHELL-$SHELL}
44959_ACEOF
44960
44961cat >>$CONFIG_STATUS <<\_ACEOF
44962## --------------------- ##
44963## M4sh Initialization. ##
44964## --------------------- ##
44965
44966# Be Bourne compatible
44967if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44968 emulate sh
44969 NULLCMD=:
44970 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44971 # is contrary to our usage. Disable this feature.
44972 alias -g '${1+"$@"}'='"$@"'
44973elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
44974 set -o posix
44975fi
ac1cb8d3 44976DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
44977
44978# Support unset when possible.
ac1cb8d3 44979if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
44980 as_unset=unset
44981else
44982 as_unset=false
44983fi
44984
44985
44986# Work around bugs in pre-3.0 UWIN ksh.
44987$as_unset ENV MAIL MAILPATH
44988PS1='$ '
44989PS2='> '
44990PS4='+ '
44991
44992# NLS nuisances.
44993for as_var in \
44994 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44995 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44996 LC_TELEPHONE LC_TIME
44997do
ac1cb8d3 44998 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
44999 eval $as_var=C; export $as_var
45000 else
45001 $as_unset $as_var
45002 fi
45003done
45004
45005# Required to use basename.
45006if expr a : '\(a\)' >/dev/null 2>&1; then
45007 as_expr=expr
45008else
45009 as_expr=false
45010fi
45011
45012if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
45013 as_basename=basename
45014else
45015 as_basename=false
45016fi
45017
45018
45019# Name of the executable.
45020as_me=`$as_basename "$0" ||
45021$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45022 X"$0" : 'X\(//\)$' \| \
45023 X"$0" : 'X\(/\)$' \| \
45024 . : '\(.\)' 2>/dev/null ||
45025echo X/"$0" |
45026 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
45027 /^X\/\(\/\/\)$/{ s//\1/; q; }
45028 /^X\/\(\/\).*/{ s//\1/; q; }
45029 s/.*/./; q'`
45030
45031
45032# PATH needs CR, and LINENO needs CR and PATH.
45033# Avoid depending upon Character Ranges.
45034as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45035as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45036as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45037as_cr_digits='0123456789'
45038as_cr_alnum=$as_cr_Letters$as_cr_digits
45039
45040# The user is always right.
45041if test "${PATH_SEPARATOR+set}" != set; then
45042 echo "#! /bin/sh" >conf$$.sh
45043 echo "exit 0" >>conf$$.sh
45044 chmod +x conf$$.sh
45045 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45046 PATH_SEPARATOR=';'
45047 else
45048 PATH_SEPARATOR=:
45049 fi
45050 rm -f conf$$.sh
45051fi
45052
45053
45054 as_lineno_1=$LINENO
45055 as_lineno_2=$LINENO
45056 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45057 test "x$as_lineno_1" != "x$as_lineno_2" &&
45058 test "x$as_lineno_3" = "x$as_lineno_2" || {
45059 # Find who we are. Look in the path if we contain no path at all
45060 # relative or not.
45061 case $0 in
45062 *[\\/]* ) as_myself=$0 ;;
45063 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45064for as_dir in $PATH
45065do
45066 IFS=$as_save_IFS
45067 test -z "$as_dir" && as_dir=.
45068 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45069done
45070
45071 ;;
45072 esac
45073 # We did not find ourselves, most probably we were run as `sh COMMAND'
45074 # in which case we are not to be found in the path.
45075 if test "x$as_myself" = x; then
45076 as_myself=$0
45077 fi
45078 if test ! -f "$as_myself"; then
45079 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
45080echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
45081 { (exit 1); exit 1; }; }
45082 fi
45083 case $CONFIG_SHELL in
45084 '')
45085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45086for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
45087do
45088 IFS=$as_save_IFS
45089 test -z "$as_dir" && as_dir=.
45090 for as_base in sh bash ksh sh5; do
45091 case $as_dir in
45092 /*)
45093 if ("$as_dir/$as_base" -c '
45094 as_lineno_1=$LINENO
45095 as_lineno_2=$LINENO
45096 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
45097 test "x$as_lineno_1" != "x$as_lineno_2" &&
45098 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
45099 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
45100 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
45101 CONFIG_SHELL=$as_dir/$as_base
45102 export CONFIG_SHELL
45103 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
45104 fi;;
45105 esac
45106 done
45107done
45108;;
45109 esac
45110
45111 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
45112 # uniformly replaced by the line number. The first 'sed' inserts a
45113 # line-number line before each line; the second 'sed' does the real
45114 # work. The second script uses 'N' to pair each line-number line
45115 # with the numbered line, and appends trailing '-' during
45116 # substitution so that $LINENO is not a special case at line end.
45117 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
45118 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
45119 sed '=' <$as_myself |
45120 sed '
45121 N
45122 s,$,-,
45123 : loop
45124 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
45125 t loop
45126 s,-$,,
45127 s,^['$as_cr_digits']*\n,,
45128 ' >$as_me.lineno &&
45129 chmod +x $as_me.lineno ||
45130 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
45131echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
45132 { (exit 1); exit 1; }; }
45133
45134 # Don't try to exec as it changes $[0], causing all sort of problems
45135 # (the dirname of $[0] is not the place where we might find the
45136 # original and so on. Autoconf is especially sensible to this).
45137 . ./$as_me.lineno
45138 # Exit status is that of the last command.
45139 exit
45140}
45141
45142
45143case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
45144 *c*,-n*) ECHO_N= ECHO_C='
45145' ECHO_T=' ' ;;
45146 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
45147 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
45148esac
45149
45150if expr a : '\(a\)' >/dev/null 2>&1; then
45151 as_expr=expr
45152else
45153 as_expr=false
45154fi
45155
45156rm -f conf$$ conf$$.exe conf$$.file
45157echo >conf$$.file
45158if ln -s conf$$.file conf$$ 2>/dev/null; then
45159 # We could just check for DJGPP; but this test a) works b) is more generic
45160 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45161 if test -f conf$$.exe; then
45162 # Don't use ln at all; we don't have any links
45163 as_ln_s='cp -p'
45164 else
45165 as_ln_s='ln -s'
45166 fi
45167elif ln conf$$.file conf$$ 2>/dev/null; then
45168 as_ln_s=ln
45169else
45170 as_ln_s='cp -p'
45171fi
45172rm -f conf$$ conf$$.exe conf$$.file
45173
45174if mkdir -p . 2>/dev/null; then
45175 as_mkdir_p=:
45176else
ac1cb8d3 45177 test -d ./-p && rmdir ./-p
a848cd7e
SC
45178 as_mkdir_p=false
45179fi
45180
45181as_executable_p="test -f"
45182
45183# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 45184as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
45185
45186# Sed expression to map a string onto a valid variable name.
ac1cb8d3 45187as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
45188
45189
45190# IFS
45191# We need space, tab and new line, in precisely that order.
45192as_nl='
45193'
45194IFS=" $as_nl"
45195
45196# CDPATH.
45197$as_unset CDPATH
45198
45199exec 6>&1
45200
45201# Open the log real soon, to keep \$[0] and so on meaningful, and to
45202# report actual input values of CONFIG_FILES etc. instead of their
45203# values after options handling. Logging --version etc. is OK.
45204exec 5>>config.log
45205{
45206 echo
45207 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45208## Running $as_me. ##
45209_ASBOX
45210} >&5
45211cat >&5 <<_CSEOF
45212
eb730a0c 45213This file was extended by wxWidgets $as_me 2.6.2, which was
ac1cb8d3 45214generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
45215
45216 CONFIG_FILES = $CONFIG_FILES
45217 CONFIG_HEADERS = $CONFIG_HEADERS
45218 CONFIG_LINKS = $CONFIG_LINKS
45219 CONFIG_COMMANDS = $CONFIG_COMMANDS
45220 $ $0 $@
45221
45222_CSEOF
45223echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
45224echo >&5
45225_ACEOF
45226
45227# Files that config.status was made for.
45228if test -n "$ac_config_files"; then
45229 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
45230fi
45231
45232if test -n "$ac_config_headers"; then
45233 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
45234fi
45235
45236if test -n "$ac_config_links"; then
45237 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
45238fi
45239
45240if test -n "$ac_config_commands"; then
45241 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
45242fi
45243
45244cat >>$CONFIG_STATUS <<\_ACEOF
45245
45246ac_cs_usage="\
45247\`$as_me' instantiates files from templates according to the
45248current configuration.
45249
45250Usage: $0 [OPTIONS] [FILE]...
45251
45252 -h, --help print this help, then exit
45253 -V, --version print version number, then exit
45254 -q, --quiet do not print progress messages
45255 -d, --debug don't remove temporary files
45256 --recheck update $as_me by reconfiguring in the same conditions
45257 --file=FILE[:TEMPLATE]
ac1cb8d3 45258 instantiate the configuration file FILE
a848cd7e 45259 --header=FILE[:TEMPLATE]
ac1cb8d3 45260 instantiate the configuration header FILE
a848cd7e
SC
45261
45262Configuration files:
45263$config_files
45264
45265Configuration headers:
45266$config_headers
45267
45268Configuration commands:
45269$config_commands
45270
45271Report bugs to <bug-autoconf@gnu.org>."
45272_ACEOF
45273
45274cat >>$CONFIG_STATUS <<_ACEOF
45275ac_cs_version="\\
eb730a0c 45276wxWidgets config.status 2.6.2
ac1cb8d3 45277configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
45278 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
45279
ac1cb8d3 45280Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
45281This config.status script is free software; the Free Software Foundation
45282gives unlimited permission to copy, distribute and modify it."
45283srcdir=$srcdir
45284INSTALL="$INSTALL"
45285_ACEOF
45286
45287cat >>$CONFIG_STATUS <<\_ACEOF
45288# If no file are specified by the user, then we need to provide default
45289# value. By we need to know if files were specified by the user.
45290ac_need_defaults=:
45291while test $# != 0
45292do
45293 case $1 in
45294 --*=*)
45295 ac_option=`expr "x$1" : 'x\([^=]*\)='`
45296 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
45297 ac_shift=:
45298 ;;
45299 -*)
45300 ac_option=$1
45301 ac_optarg=$2
45302 ac_shift=shift
45303 ;;
45304 *) # This is not an option, so the user has probably given explicit
45305 # arguments.
45306 ac_option=$1
45307 ac_need_defaults=false;;
45308 esac
45309
45310 case $ac_option in
45311 # Handling of the options.
45312_ACEOF
45313cat >>$CONFIG_STATUS <<\_ACEOF
45314 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45315 ac_cs_recheck=: ;;
45316 --version | --vers* | -V )
45317 echo "$ac_cs_version"; exit 0 ;;
45318 --he | --h)
45319 # Conflict between --help and --header
45320 { { echo "$as_me:$LINENO: error: ambiguous option: $1
45321Try \`$0 --help' for more information." >&5
45322echo "$as_me: error: ambiguous option: $1
45323Try \`$0 --help' for more information." >&2;}
45324 { (exit 1); exit 1; }; };;
45325 --help | --hel | -h )
45326 echo "$ac_cs_usage"; exit 0 ;;
45327 --debug | --d* | -d )
45328 debug=: ;;
45329 --file | --fil | --fi | --f )
45330 $ac_shift
45331 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
45332 ac_need_defaults=false;;
45333 --header | --heade | --head | --hea )
45334 $ac_shift
45335 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
45336 ac_need_defaults=false;;
45337 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45338 | -silent | --silent | --silen | --sile | --sil | --si | --s)
45339 ac_cs_silent=: ;;
45340
45341 # This is an error.
45342 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
45343Try \`$0 --help' for more information." >&5
45344echo "$as_me: error: unrecognized option: $1
45345Try \`$0 --help' for more information." >&2;}
45346 { (exit 1); exit 1; }; } ;;
45347
45348 *) ac_config_targets="$ac_config_targets $1" ;;
45349
45350 esac
45351 shift
45352done
45353
45354ac_configure_extra_args=
45355
45356if $ac_cs_silent; then
45357 exec 6>/dev/null
45358 ac_configure_extra_args="$ac_configure_extra_args --silent"
45359fi
45360
45361_ACEOF
45362cat >>$CONFIG_STATUS <<_ACEOF
45363if \$ac_cs_recheck; then
45364 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
45365 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45366fi
45367
45368_ACEOF
45369
45370cat >>$CONFIG_STATUS <<_ACEOF
45371#
45372# INIT-COMMANDS section.
45373#
45374
ceec2216
RL
45375 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
45376 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
45377 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
45378 LN_S="${LN_S}"
a848cd7e
SC
45379
45380
45381_ACEOF
45382
45383
45384
45385cat >>$CONFIG_STATUS <<\_ACEOF
45386for ac_config_target in $ac_config_targets
45387do
45388 case "$ac_config_target" in
45389 # Handling of arguments.
ceec2216
RL
45390 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
45391 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
45392 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
45393 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
45394 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
45395 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
45396 "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
45397 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45398echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45399 { (exit 1); exit 1; }; };;
45400 esac
45401done
45402
45403# If the user did not use the arguments to specify the items to instantiate,
45404# then the envvar interface is used. Set only those that are not.
45405# We use the long form for the default assignment because of an extremely
45406# bizarre bug on SunOS 4.1.3.
45407if $ac_need_defaults; then
45408 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45409 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45410 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45411fi
45412
45413# Have a temporary directory for convenience. Make it in the build tree
45414# simply because there is no reason to put it here, and in addition,
45415# creating and moving files from /tmp can sometimes cause problems.
45416# Create a temporary directory, and hook for its removal unless debugging.
45417$debug ||
45418{
45419 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
45420 trap '{ (exit 1); exit 1; }' 1 2 13 15
45421}
45422
45423# Create a (secure) tmp directory for tmp files.
45424
45425{
45426 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
45427 test -n "$tmp" && test -d "$tmp"
45428} ||
45429{
45430 tmp=./confstat$$-$RANDOM
45431 (umask 077 && mkdir $tmp)
45432} ||
45433{
45434 echo "$me: cannot create a temporary directory in ." >&2
45435 { (exit 1); exit 1; }
45436}
45437
45438_ACEOF
45439
45440cat >>$CONFIG_STATUS <<_ACEOF
45441
45442#
45443# CONFIG_FILES section.
45444#
45445
45446# No need to generate the scripts if there are no CONFIG_FILES.
45447# This happens for instance when ./config.status config.h
45448if test -n "\$CONFIG_FILES"; then
45449 # Protect against being on the right side of a sed subst in config.status.
45450 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
45451 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
45452s,@SHELL@,$SHELL,;t t
45453s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
45454s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
45455s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
45456s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
45457s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
45458s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
45459s,@exec_prefix@,$exec_prefix,;t t
45460s,@prefix@,$prefix,;t t
45461s,@program_transform_name@,$program_transform_name,;t t
45462s,@bindir@,$bindir,;t t
45463s,@sbindir@,$sbindir,;t t
45464s,@libexecdir@,$libexecdir,;t t
45465s,@datadir@,$datadir,;t t
45466s,@sysconfdir@,$sysconfdir,;t t
45467s,@sharedstatedir@,$sharedstatedir,;t t
45468s,@localstatedir@,$localstatedir,;t t
45469s,@libdir@,$libdir,;t t
45470s,@includedir@,$includedir,;t t
45471s,@oldincludedir@,$oldincludedir,;t t
45472s,@infodir@,$infodir,;t t
45473s,@mandir@,$mandir,;t t
45474s,@build_alias@,$build_alias,;t t
45475s,@host_alias@,$host_alias,;t t
45476s,@target_alias@,$target_alias,;t t
45477s,@DEFS@,$DEFS,;t t
45478s,@ECHO_C@,$ECHO_C,;t t
45479s,@ECHO_N@,$ECHO_N,;t t
45480s,@ECHO_T@,$ECHO_T,;t t
45481s,@LIBS@,$LIBS,;t t
45482s,@build@,$build,;t t
45483s,@build_cpu@,$build_cpu,;t t
45484s,@build_vendor@,$build_vendor,;t t
45485s,@build_os@,$build_os,;t t
45486s,@host@,$host,;t t
45487s,@host_cpu@,$host_cpu,;t t
45488s,@host_vendor@,$host_vendor,;t t
45489s,@host_os@,$host_os,;t t
45490s,@target@,$target,;t t
45491s,@target_cpu@,$target_cpu,;t t
45492s,@target_vendor@,$target_vendor,;t t
45493s,@target_os@,$target_os,;t t
45494s,@CC@,$CC,;t t
45495s,@CFLAGS@,$CFLAGS,;t t
45496s,@LDFLAGS@,$LDFLAGS,;t t
45497s,@CPPFLAGS@,$CPPFLAGS,;t t
45498s,@ac_ct_CC@,$ac_ct_CC,;t t
45499s,@EXEEXT@,$EXEEXT,;t t
45500s,@OBJEXT@,$OBJEXT,;t t
45501s,@CPP@,$CPP,;t t
45502s,@EGREP@,$EGREP,;t t
45503s,@CXX@,$CXX,;t t
45504s,@CXXFLAGS@,$CXXFLAGS,;t t
45505s,@ac_ct_CXX@,$ac_ct_CXX,;t t
45506s,@RANLIB@,$RANLIB,;t t
45507s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
45508s,@AR@,$AR,;t t
45509s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
45510s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
45511s,@INSTALL_DATA@,$INSTALL_DATA,;t t
45512s,@STRIP@,$STRIP,;t t
45513s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
45514s,@LN_S@,$LN_S,;t t
45515s,@CXXCPP@,$CXXCPP,;t t
45516s,@subdirs@,$subdirs,;t t
45517s,@PKG_CONFIG@,$PKG_CONFIG,;t t
45518s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
45519s,@GTK_LIBS@,$GTK_LIBS,;t t
45520s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
45521s,@X_CFLAGS@,$X_CFLAGS,;t t
45522s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
45523s,@X_LIBS@,$X_LIBS,;t t
45524s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
45525s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
45526s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
45527s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
45528s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
45529s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
45530s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
45531s,@RESCOMP@,$RESCOMP,;t t
45532s,@DEREZ@,$DEREZ,;t t
45533s,@SETFILE@,$SETFILE,;t t
45534s,@LIBICONV@,$LIBICONV,;t t
45535s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
45536s,@SDL_CONFIG@,$SDL_CONFIG,;t t
45537s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
45538s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
45539s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
45540s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
45541s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
45542s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
45543s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
45544s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
45545s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
45546s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
45547s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
45548s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
45549s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
45550s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
45551s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
45552s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
45553s,@VENDOR@,$VENDOR,;t t
45554s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
45555s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
45556s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
45557s,@WXUNIV@,$WXUNIV,;t t
45558s,@MONOLITHIC@,$MONOLITHIC,;t t
45559s,@USE_PLUGINS@,$USE_PLUGINS,;t t
45560s,@EXTRALIBS@,$EXTRALIBS,;t t
45561s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
45562s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
45563s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
45564s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
45565s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
45566s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
45567s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 45568s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
45569s,@UNICODE@,$UNICODE,;t t
45570s,@BUILD@,$BUILD,;t t
45571s,@DEBUG_INFO@,$DEBUG_INFO,;t t
45572s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
45573s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
45574s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
45575s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
45576s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
45577s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
45578s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
45579s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
45580s,@SET_MAKE@,$SET_MAKE,;t t
45581s,@MAKE_SET@,$MAKE_SET,;t t
45582s,@ac_ct_AR@,$ac_ct_AR,;t t
45583s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
45584s,@NM@,$NM,;t t
45585s,@ac_ct_NM@,$ac_ct_NM,;t t
45586s,@INSTALL_DIR@,$INSTALL_DIR,;t t
45587s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
45588s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
45589s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
45590s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
45591s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 45592s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
45593s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
45594s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 45595s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
45596s,@SO_SUFFIX@,$SO_SUFFIX,;t t
45597s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
45598s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
45599s,@LIBPREFIX@,$LIBPREFIX,;t t
45600s,@LIBEXT@,$LIBEXT,;t t
45601s,@DLLPREFIX@,$DLLPREFIX,;t t
45602s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 45603s,@dlldir@,$dlldir,;t t
a848cd7e
SC
45604s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
45605s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
45606s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
45607s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
45608s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
45609s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 45610s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
45611s,@USE_SOVERSION@,$USE_SOVERSION,;t t
45612s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
45613s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 45614s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
45615s,@USE_MACVERSION@,$USE_MACVERSION,;t t
45616s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
45617s,@SONAME_FLAG@,$SONAME_FLAG,;t t
45618s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
45619s,@GCC_PCH@,$GCC_PCH,;t t
45620s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
45621s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
45622s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
45623s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
45624s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
45625s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
45626s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
45627s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
45628s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
45629s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
45630s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
45631s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
45632s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
45633s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
45634s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
45635s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
45636s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
45637s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 45638s,@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 45639s,@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 45640s,@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 45641s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 45642s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
45643s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
45644s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 45645s,@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 45646s,@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 45647s,@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 45648s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 45649s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
45650s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
45651s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
45652s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
45653s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
45654s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
45655s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 45656s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
45657s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
45658s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 45659s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
45660s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
45661s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
45662s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 45663s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 45664s,@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
45665s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
45666s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
45667s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
45668s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 45669s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 45670s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
83d8eb47 45671s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
45672s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
45673s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
45674s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
45675s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
45676s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
45677s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
45678s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
45679s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
45680s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
45681s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
45682s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
45683s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
45684s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
45685s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
45686s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 45687s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
45688s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
45689s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
45690s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
45691s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
45692s,@COND_SHARED_1@,$COND_SHARED_1,;t t
45693s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 45694s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 45695s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 45696s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 45697s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
45698s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
45699s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
45700s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
45701s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
45702s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
45703s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
45704s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
45705s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
45706s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
45707s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
45708s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
45709s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
45710s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
45711s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
45712s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
45713s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
45714s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
45715s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
45716s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
45717s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
45718s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
45719s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
45720s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
45721s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
45722s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
45723s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
45724s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
45725s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
45726s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
45727s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
45728s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
45729s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
45730s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
45731s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
45732s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 45733s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
45734s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
45735s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 45736s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 45737s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
45738s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
45739s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
45740s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
45741s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
45742s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 45743s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 45744s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 45745s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 45746s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
45747s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
45748s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
45749s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
45750s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
45751s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
45752s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
45753s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
45754s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 45755s,@SHARED@,$SHARED,;t t
a848cd7e
SC
45756s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
45757s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
45758s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
45759s,@USE_GUI@,$USE_GUI,;t t
45760s,@AFMINSTALL@,$AFMINSTALL,;t t
45761s,@WIN32INSTALL@,$WIN32INSTALL,;t t
45762s,@TOOLKIT@,$TOOLKIT,;t t
45763s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 45764s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 45765s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
45766s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
45767s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 45768s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
45769s,@WIDGET_SET@,$WIDGET_SET,;t t
45770s,@WX_RELEASE@,$WX_RELEASE,;t t
45771s,@WX_VERSION@,$WX_VERSION,;t t
45772s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
45773s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
45774s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 45775s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
45776s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
45777s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
45778s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
45779s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
ddd14b14 45780s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
45781s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
45782s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 45783s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 45784s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
45785s,@DISTDIR@,$DISTDIR,;t t
45786s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
45787s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
45788s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
45789s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
45790s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
45791s,@RESFLAGS@,$RESFLAGS,;t t
45792s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
45793s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
45794s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
45795s,@LIBWXMACRES@,$LIBWXMACRES,;t t
45796s,@MACRESCOMP@,$MACRESCOMP,;t t
45797s,@MACSETFILE@,$MACSETFILE,;t t
45798s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
45799s,@GCC@,$GCC,;t t
a848cd7e 45800s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
45801s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
45802s,@LIBOBJS@,$LIBOBJS,;t t
45803s,@LTLIBOBJS@,$LTLIBOBJS,;t t
45804CEOF
45805
45806_ACEOF
45807
45808 cat >>$CONFIG_STATUS <<\_ACEOF
45809 # Split the substitutions into bite-sized pieces for seds with
45810 # small command number limits, like on Digital OSF/1 and HP-UX.
45811 ac_max_sed_lines=48
45812 ac_sed_frag=1 # Number of current file.
45813 ac_beg=1 # First line for current file.
45814 ac_end=$ac_max_sed_lines # Line after last line for current file.
45815 ac_more_lines=:
45816 ac_sed_cmds=
45817 while $ac_more_lines; do
45818 if test $ac_beg -gt 1; then
45819 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45820 else
45821 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45822 fi
45823 if test ! -s $tmp/subs.frag; then
45824 ac_more_lines=false
45825 else
45826 # The purpose of the label and of the branching condition is to
45827 # speed up the sed processing (if there are no `@' at all, there
45828 # is no need to browse any of the substitutions).
45829 # These are the two extra sed commands mentioned above.
45830 (echo ':t
45831 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
45832 if test -z "$ac_sed_cmds"; then
ac1cb8d3 45833 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 45834 else
ac1cb8d3 45835 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
45836 fi
45837 ac_sed_frag=`expr $ac_sed_frag + 1`
45838 ac_beg=$ac_end
45839 ac_end=`expr $ac_end + $ac_max_sed_lines`
45840 fi
45841 done
45842 if test -z "$ac_sed_cmds"; then
45843 ac_sed_cmds=cat
45844 fi
45845fi # test -n "$CONFIG_FILES"
45846
45847_ACEOF
45848cat >>$CONFIG_STATUS <<\_ACEOF
45849for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
45850 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45851 case $ac_file in
45852 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
45853 cat >$tmp/stdin
45854 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45855 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 45856 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 45857 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
45858 * ) ac_file_in=$ac_file.in ;;
45859 esac
45860
45861 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
45862 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45863$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45864 X"$ac_file" : 'X\(//\)[^/]' \| \
45865 X"$ac_file" : 'X\(//\)$' \| \
45866 X"$ac_file" : 'X\(/\)' \| \
45867 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45868echo X"$ac_file" |
45869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45870 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45871 /^X\(\/\/\)$/{ s//\1/; q; }
45872 /^X\(\/\).*/{ s//\1/; q; }
45873 s/.*/./; q'`
45874 { if $as_mkdir_p; then
45875 mkdir -p "$ac_dir"
45876 else
45877 as_dir="$ac_dir"
45878 as_dirs=
45879 while test ! -d "$as_dir"; do
45880 as_dirs="$as_dir $as_dirs"
45881 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45882$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45883 X"$as_dir" : 'X\(//\)[^/]' \| \
45884 X"$as_dir" : 'X\(//\)$' \| \
45885 X"$as_dir" : 'X\(/\)' \| \
45886 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45887echo X"$as_dir" |
45888 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45889 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45890 /^X\(\/\/\)$/{ s//\1/; q; }
45891 /^X\(\/\).*/{ s//\1/; q; }
45892 s/.*/./; q'`
45893 done
45894 test ! -n "$as_dirs" || mkdir $as_dirs
45895 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45896echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45897 { (exit 1); exit 1; }; }; }
45898
45899 ac_builddir=.
45900
45901if test "$ac_dir" != .; then
45902 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45903 # A "../" for each directory in $ac_dir_suffix.
45904 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45905else
45906 ac_dir_suffix= ac_top_builddir=
45907fi
45908
45909case $srcdir in
45910 .) # No --srcdir option. We are building in place.
45911 ac_srcdir=.
45912 if test -z "$ac_top_builddir"; then
45913 ac_top_srcdir=.
45914 else
45915 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45916 fi ;;
45917 [\\/]* | ?:[\\/]* ) # Absolute path.
45918 ac_srcdir=$srcdir$ac_dir_suffix;
45919 ac_top_srcdir=$srcdir ;;
45920 *) # Relative path.
45921 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45922 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45923esac
ac1cb8d3
VS
45924
45925# Do not use `cd foo && pwd` to compute absolute paths, because
45926# the directories may not exist.
45927case `pwd` in
45928.) ac_abs_builddir="$ac_dir";;
45929*)
45930 case "$ac_dir" in
45931 .) ac_abs_builddir=`pwd`;;
45932 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45933 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45934 esac;;
45935esac
45936case $ac_abs_builddir in
45937.) ac_abs_top_builddir=${ac_top_builddir}.;;
45938*)
45939 case ${ac_top_builddir}. in
45940 .) ac_abs_top_builddir=$ac_abs_builddir;;
45941 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45942 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45943 esac;;
45944esac
45945case $ac_abs_builddir in
45946.) ac_abs_srcdir=$ac_srcdir;;
45947*)
45948 case $ac_srcdir in
45949 .) ac_abs_srcdir=$ac_abs_builddir;;
45950 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45951 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45952 esac;;
45953esac
45954case $ac_abs_builddir in
45955.) ac_abs_top_srcdir=$ac_top_srcdir;;
45956*)
45957 case $ac_top_srcdir in
45958 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45959 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45960 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45961 esac;;
45962esac
a848cd7e
SC
45963
45964
45965 case $INSTALL in
45966 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45967 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
45968 esac
45969
a848cd7e
SC
45970 # Let's still pretend it is `configure' which instantiates (i.e., don't
45971 # use $as_me), people would be surprised to read:
45972 # /* config.h. Generated by config.status. */
45973 if test x"$ac_file" = x-; then
45974 configure_input=
45975 else
45976 configure_input="$ac_file. "
45977 fi
45978 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 45979 sed 's,.*/,,'` by configure."
a848cd7e
SC
45980
45981 # First look for the input files in the build tree, otherwise in the
45982 # src tree.
45983 ac_file_inputs=`IFS=:
45984 for f in $ac_file_in; do
45985 case $f in
45986 -) echo $tmp/stdin ;;
45987 [\\/$]*)
ac1cb8d3
VS
45988 # Absolute (can't be DOS-style, as IFS=:)
45989 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
45990echo "$as_me: error: cannot find input file: $f" >&2;}
45991 { (exit 1); exit 1; }; }
ac1cb8d3 45992 echo "$f";;
a848cd7e 45993 *) # Relative
ac1cb8d3
VS
45994 if test -f "$f"; then
45995 # Build tree
45996 echo "$f"
45997 elif test -f "$srcdir/$f"; then
45998 # Source tree
45999 echo "$srcdir/$f"
46000 else
46001 # /dev/null tree
46002 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
46003echo "$as_me: error: cannot find input file: $f" >&2;}
46004 { (exit 1); exit 1; }; }
ac1cb8d3 46005 fi;;
a848cd7e
SC
46006 esac
46007 done` || { (exit 1); exit 1; }
6ebeb4c7
VZ
46008
46009 if test x"$ac_file" != x-; then
46010 { echo "$as_me:$LINENO: creating $ac_file" >&5
46011echo "$as_me: creating $ac_file" >&6;}
46012 rm -f "$ac_file"
46013 fi
a848cd7e
SC
46014_ACEOF
46015cat >>$CONFIG_STATUS <<_ACEOF
46016 sed "$ac_vpsub
46017$extrasub
46018_ACEOF
46019cat >>$CONFIG_STATUS <<\_ACEOF
46020:t
46021/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46022s,@configure_input@,$configure_input,;t t
46023s,@srcdir@,$ac_srcdir,;t t
46024s,@abs_srcdir@,$ac_abs_srcdir,;t t
46025s,@top_srcdir@,$ac_top_srcdir,;t t
46026s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
46027s,@builddir@,$ac_builddir,;t t
46028s,@abs_builddir@,$ac_abs_builddir,;t t
46029s,@top_builddir@,$ac_top_builddir,;t t
46030s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
46031s,@INSTALL@,$ac_INSTALL,;t t
46032" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
46033 rm -f $tmp/stdin
46034 if test x"$ac_file" != x-; then
46035 mv $tmp/out $ac_file
46036 else
46037 cat $tmp/out
46038 rm -f $tmp/out
46039 fi
46040
ceec2216
RL
46041 # Run the commands associated with the file.
46042 case $ac_file in
46043 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
46044 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
46045 esac
a848cd7e
SC
46046done
46047_ACEOF
46048cat >>$CONFIG_STATUS <<\_ACEOF
46049
46050#
46051# CONFIG_HEADER section.
46052#
46053
46054# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
46055# NAME is the cpp macro being defined and VALUE is the value it is being given.
46056#
46057# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
46058ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
46059ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
46060ac_dC=' '
46061ac_dD=',;t'
46062# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 46063ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
46064ac_uB='$,\1#\2define\3'
46065ac_uC=' '
46066ac_uD=',;t'
46067
46068for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
46069 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
46070 case $ac_file in
46071 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
46072 cat >$tmp/stdin
46073 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
46074 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 46075 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 46076 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
46077 * ) ac_file_in=$ac_file.in ;;
46078 esac
46079
46080 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
46081echo "$as_me: creating $ac_file" >&6;}
46082
46083 # First look for the input files in the build tree, otherwise in the
46084 # src tree.
46085 ac_file_inputs=`IFS=:
46086 for f in $ac_file_in; do
46087 case $f in
46088 -) echo $tmp/stdin ;;
46089 [\\/$]*)
ac1cb8d3
VS
46090 # Absolute (can't be DOS-style, as IFS=:)
46091 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
46092echo "$as_me: error: cannot find input file: $f" >&2;}
46093 { (exit 1); exit 1; }; }
ac1cb8d3
VS
46094 # Do quote $f, to prevent DOS paths from being IFS'd.
46095 echo "$f";;
a848cd7e 46096 *) # Relative
ac1cb8d3
VS
46097 if test -f "$f"; then
46098 # Build tree
46099 echo "$f"
46100 elif test -f "$srcdir/$f"; then
46101 # Source tree
46102 echo "$srcdir/$f"
46103 else
46104 # /dev/null tree
46105 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
46106echo "$as_me: error: cannot find input file: $f" >&2;}
46107 { (exit 1); exit 1; }; }
ac1cb8d3 46108 fi;;
a848cd7e
SC
46109 esac
46110 done` || { (exit 1); exit 1; }
46111 # Remove the trailing spaces.
ac1cb8d3 46112 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
46113
46114_ACEOF
46115
46116# Transform confdefs.h into two sed scripts, `conftest.defines' and
46117# `conftest.undefs', that substitutes the proper values into
46118# config.h.in to produce config.h. The first handles `#define'
46119# templates, and the second `#undef' templates.
46120# And first: Protect against being on the right side of a sed subst in
46121# config.status. Protect against being in an unquoted here document
46122# in config.status.
46123rm -f conftest.defines conftest.undefs
46124# Using a here document instead of a string reduces the quoting nightmare.
46125# Putting comments in sed scripts is not portable.
46126#
46127# `end' is used to avoid that the second main sed command (meant for
46128# 0-ary CPP macros) applies to n-ary macro definitions.
46129# See the Autoconf documentation for `clear'.
46130cat >confdef2sed.sed <<\_ACEOF
46131s/[\\&,]/\\&/g
46132s,[\\$`],\\&,g
46133t clear
46134: clear
ac1cb8d3 46135s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 46136t end
ac1cb8d3 46137s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
46138: end
46139_ACEOF
46140# If some macros were called several times there might be several times
46141# the same #defines, which is useless. Nevertheless, we may not want to
46142# sort them, since we want the *last* AC-DEFINE to be honored.
46143uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
46144sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
46145rm -f confdef2sed.sed
46146
46147# This sed command replaces #undef with comments. This is necessary, for
46148# example, in the case of _POSIX_SOURCE, which is predefined and required
46149# on some systems where configure will not decide to define it.
46150cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 46151s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
46152_ACEOF
46153
46154# Break up conftest.defines because some shells have a limit on the size
46155# of here documents, and old seds have small limits too (100 cmds).
46156echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 46157echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
46158echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
46159echo ' :' >>$CONFIG_STATUS
46160rm -f conftest.tail
46161while grep . conftest.defines >/dev/null
46162do
46163 # Write a limited-size here document to $tmp/defines.sed.
46164 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
46165 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 46166 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
46167 # Work around the forget-to-reset-the-flag bug.
46168 echo 't clr' >>$CONFIG_STATUS
46169 echo ': clr' >>$CONFIG_STATUS
46170 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
46171 echo 'CEOF
46172 sed -f $tmp/defines.sed $tmp/in >$tmp/out
46173 rm -f $tmp/in
46174 mv $tmp/out $tmp/in
46175' >>$CONFIG_STATUS
46176 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
46177 rm -f conftest.defines
46178 mv conftest.tail conftest.defines
46179done
46180rm -f conftest.defines
46181echo ' fi # grep' >>$CONFIG_STATUS
46182echo >>$CONFIG_STATUS
46183
46184# Break up conftest.undefs because some shells have a limit on the size
46185# of here documents, and old seds have small limits too (100 cmds).
46186echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
46187rm -f conftest.tail
46188while grep . conftest.undefs >/dev/null
46189do
46190 # Write a limited-size here document to $tmp/undefs.sed.
46191 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
46192 # Speed up: don't consider the non `#undef'
ac1cb8d3 46193 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
46194 # Work around the forget-to-reset-the-flag bug.
46195 echo 't clr' >>$CONFIG_STATUS
46196 echo ': clr' >>$CONFIG_STATUS
46197 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
46198 echo 'CEOF
46199 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
46200 rm -f $tmp/in
46201 mv $tmp/out $tmp/in
46202' >>$CONFIG_STATUS
46203 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
46204 rm -f conftest.undefs
46205 mv conftest.tail conftest.undefs
46206done
46207rm -f conftest.undefs
46208
46209cat >>$CONFIG_STATUS <<\_ACEOF
46210 # Let's still pretend it is `configure' which instantiates (i.e., don't
46211 # use $as_me), people would be surprised to read:
46212 # /* config.h. Generated by config.status. */
46213 if test x"$ac_file" = x-; then
46214 echo "/* Generated by configure. */" >$tmp/config.h
46215 else
46216 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
46217 fi
46218 cat $tmp/in >>$tmp/config.h
46219 rm -f $tmp/in
46220 if test x"$ac_file" != x-; then
46221 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
46222 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
46223echo "$as_me: $ac_file is unchanged" >&6;}
46224 else
46225 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46226$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46227 X"$ac_file" : 'X\(//\)[^/]' \| \
46228 X"$ac_file" : 'X\(//\)$' \| \
46229 X"$ac_file" : 'X\(/\)' \| \
46230 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46231echo X"$ac_file" |
46232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46233 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46234 /^X\(\/\/\)$/{ s//\1/; q; }
46235 /^X\(\/\).*/{ s//\1/; q; }
46236 s/.*/./; q'`
46237 { if $as_mkdir_p; then
46238 mkdir -p "$ac_dir"
46239 else
46240 as_dir="$ac_dir"
46241 as_dirs=
46242 while test ! -d "$as_dir"; do
46243 as_dirs="$as_dir $as_dirs"
46244 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46245$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46246 X"$as_dir" : 'X\(//\)[^/]' \| \
46247 X"$as_dir" : 'X\(//\)$' \| \
46248 X"$as_dir" : 'X\(/\)' \| \
46249 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46250echo X"$as_dir" |
46251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46252 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46253 /^X\(\/\/\)$/{ s//\1/; q; }
46254 /^X\(\/\).*/{ s//\1/; q; }
46255 s/.*/./; q'`
46256 done
46257 test ! -n "$as_dirs" || mkdir $as_dirs
46258 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46259echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46260 { (exit 1); exit 1; }; }; }
46261
46262 rm -f $ac_file
46263 mv $tmp/config.h $ac_file
46264 fi
46265 else
46266 cat $tmp/config.h
46267 rm -f $tmp/config.h
46268 fi
46269done
46270_ACEOF
46271cat >>$CONFIG_STATUS <<\_ACEOF
46272
46273#
46274# CONFIG_COMMANDS section.
46275#
46276for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
46277 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
46278 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
46279 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
46280$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46281 X"$ac_dest" : 'X\(//\)[^/]' \| \
46282 X"$ac_dest" : 'X\(//\)$' \| \
46283 X"$ac_dest" : 'X\(/\)' \| \
46284 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46285echo X"$ac_dest" |
46286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46287 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46288 /^X\(\/\/\)$/{ s//\1/; q; }
46289 /^X\(\/\).*/{ s//\1/; q; }
46290 s/.*/./; q'`
ac1cb8d3
VS
46291 { if $as_mkdir_p; then
46292 mkdir -p "$ac_dir"
46293 else
46294 as_dir="$ac_dir"
46295 as_dirs=
46296 while test ! -d "$as_dir"; do
46297 as_dirs="$as_dir $as_dirs"
46298 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46299$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46300 X"$as_dir" : 'X\(//\)[^/]' \| \
46301 X"$as_dir" : 'X\(//\)$' \| \
46302 X"$as_dir" : 'X\(/\)' \| \
46303 . : '\(.\)' 2>/dev/null ||
46304echo X"$as_dir" |
46305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46306 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46307 /^X\(\/\/\)$/{ s//\1/; q; }
46308 /^X\(\/\).*/{ s//\1/; q; }
46309 s/.*/./; q'`
46310 done
46311 test ! -n "$as_dirs" || mkdir $as_dirs
46312 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46313echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46314 { (exit 1); exit 1; }; }; }
46315
a848cd7e
SC
46316 ac_builddir=.
46317
46318if test "$ac_dir" != .; then
46319 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46320 # A "../" for each directory in $ac_dir_suffix.
46321 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46322else
46323 ac_dir_suffix= ac_top_builddir=
46324fi
46325
46326case $srcdir in
46327 .) # No --srcdir option. We are building in place.
46328 ac_srcdir=.
46329 if test -z "$ac_top_builddir"; then
46330 ac_top_srcdir=.
46331 else
46332 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46333 fi ;;
46334 [\\/]* | ?:[\\/]* ) # Absolute path.
46335 ac_srcdir=$srcdir$ac_dir_suffix;
46336 ac_top_srcdir=$srcdir ;;
46337 *) # Relative path.
46338 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46339 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46340esac
ac1cb8d3
VS
46341
46342# Do not use `cd foo && pwd` to compute absolute paths, because
46343# the directories may not exist.
46344case `pwd` in
46345.) ac_abs_builddir="$ac_dir";;
46346*)
46347 case "$ac_dir" in
46348 .) ac_abs_builddir=`pwd`;;
46349 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46350 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46351 esac;;
46352esac
46353case $ac_abs_builddir in
46354.) ac_abs_top_builddir=${ac_top_builddir}.;;
46355*)
46356 case ${ac_top_builddir}. in
46357 .) ac_abs_top_builddir=$ac_abs_builddir;;
46358 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46359 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46360 esac;;
46361esac
46362case $ac_abs_builddir in
46363.) ac_abs_srcdir=$ac_srcdir;;
46364*)
46365 case $ac_srcdir in
46366 .) ac_abs_srcdir=$ac_abs_builddir;;
46367 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46368 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46369 esac;;
46370esac
46371case $ac_abs_builddir in
46372.) ac_abs_top_srcdir=$ac_top_srcdir;;
46373*)
46374 case $ac_top_srcdir in
46375 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46376 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46377 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46378 esac;;
46379esac
a848cd7e
SC
46380
46381
46382 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
46383echo "$as_me: executing $ac_dest commands" >&6;}
46384 case $ac_dest in
ceec2216
RL
46385 wx-config ) rm -f wx-config
46386 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
46387 ;;
a848cd7e
SC
46388 esac
46389done
46390_ACEOF
46391
46392cat >>$CONFIG_STATUS <<\_ACEOF
46393
46394{ (exit 0); exit 0; }
46395_ACEOF
46396chmod +x $CONFIG_STATUS
46397ac_clean_files=$ac_clean_files_save
46398
46399
46400# configure is writing to config.log, and then calls config.status.
46401# config.status does its own redirection, appending to config.log.
46402# Unfortunately, on DOS this fails, as config.log is still kept open
46403# by configure, so config.status won't be able to write to it; its
46404# output is simply discarded. So we exec the FD to /dev/null,
46405# effectively closing config.log, so it can be properly (re)opened and
46406# appended to by config.status. When coming back to configure, we
46407# need to make the FD available again.
46408if test "$no_create" != yes; then
46409 ac_cs_success=:
46410 ac_config_status_args=
46411 test "$silent" = yes &&
46412 ac_config_status_args="$ac_config_status_args --quiet"
46413 exec 5>/dev/null
46414 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46415 exec 5>>config.log
46416 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46417 # would make configure fail if this is the last instruction.
46418 $ac_cs_success || { (exit 1); exit 1; }
46419fi
46420
46421#
46422# CONFIG_SUBDIRS section.
46423#
46424if test "$no_recursion" != yes; then
46425
46426 # Remove --cache-file and --srcdir arguments so they do not pile up.
46427 ac_sub_configure_args=
46428 ac_prev=
46429 for ac_arg in $ac_configure_args; do
46430 if test -n "$ac_prev"; then
46431 ac_prev=
46432 continue
46433 fi
46434 case $ac_arg in
46435 -cache-file | --cache-file | --cache-fil | --cache-fi \
46436 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
46437 ac_prev=cache_file ;;
46438 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
46439 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
46440 | --c=*)
46441 ;;
46442 --config-cache | -C)
46443 ;;
46444 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
46445 ac_prev=srcdir ;;
46446 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
46447 ;;
46448 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
46449 ac_prev=prefix ;;
46450 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
46451 ;;
46452 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
46453 esac
46454 done
46455
46456 # Always prepend --prefix to ensure using the same prefix
46457 # in subdir configurations.
46458 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
46459
46460 ac_popdir=`pwd`
46461 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
46462
46463 # Do not complain, so a configure script can configure whichever
46464 # parts of a large source tree are present.
46465 test -d $srcdir/$ac_dir || continue
46466
46467 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
46468echo "$as_me: configuring in $ac_dir" >&6;}
46469 { if $as_mkdir_p; then
46470 mkdir -p "$ac_dir"
46471 else
46472 as_dir="$ac_dir"
46473 as_dirs=
46474 while test ! -d "$as_dir"; do
46475 as_dirs="$as_dir $as_dirs"
46476 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46477$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46478 X"$as_dir" : 'X\(//\)[^/]' \| \
46479 X"$as_dir" : 'X\(//\)$' \| \
46480 X"$as_dir" : 'X\(/\)' \| \
46481 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46482echo X"$as_dir" |
46483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46484 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46485 /^X\(\/\/\)$/{ s//\1/; q; }
46486 /^X\(\/\).*/{ s//\1/; q; }
46487 s/.*/./; q'`
46488 done
46489 test ! -n "$as_dirs" || mkdir $as_dirs
46490 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46491echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46492 { (exit 1); exit 1; }; }; }
46493
46494 ac_builddir=.
46495
46496if test "$ac_dir" != .; then
46497 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46498 # A "../" for each directory in $ac_dir_suffix.
46499 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46500else
46501 ac_dir_suffix= ac_top_builddir=
46502fi
46503
46504case $srcdir in
46505 .) # No --srcdir option. We are building in place.
46506 ac_srcdir=.
46507 if test -z "$ac_top_builddir"; then
46508 ac_top_srcdir=.
46509 else
46510 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46511 fi ;;
46512 [\\/]* | ?:[\\/]* ) # Absolute path.
46513 ac_srcdir=$srcdir$ac_dir_suffix;
46514 ac_top_srcdir=$srcdir ;;
46515 *) # Relative path.
46516 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46517 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46518esac
ac1cb8d3
VS
46519
46520# Do not use `cd foo && pwd` to compute absolute paths, because
46521# the directories may not exist.
46522case `pwd` in
46523.) ac_abs_builddir="$ac_dir";;
46524*)
46525 case "$ac_dir" in
46526 .) ac_abs_builddir=`pwd`;;
46527 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46528 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46529 esac;;
46530esac
46531case $ac_abs_builddir in
46532.) ac_abs_top_builddir=${ac_top_builddir}.;;
46533*)
46534 case ${ac_top_builddir}. in
46535 .) ac_abs_top_builddir=$ac_abs_builddir;;
46536 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46537 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46538 esac;;
46539esac
46540case $ac_abs_builddir in
46541.) ac_abs_srcdir=$ac_srcdir;;
46542*)
46543 case $ac_srcdir in
46544 .) ac_abs_srcdir=$ac_abs_builddir;;
46545 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46546 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46547 esac;;
46548esac
46549case $ac_abs_builddir in
46550.) ac_abs_top_srcdir=$ac_top_srcdir;;
46551*)
46552 case $ac_top_srcdir in
46553 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46554 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46555 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46556 esac;;
46557esac
a848cd7e
SC
46558
46559
46560 cd $ac_dir
46561
46562 # Check for guested configure; otherwise get Cygnus style configure.
46563 if test -f $ac_srcdir/configure.gnu; then
46564 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
46565 elif test -f $ac_srcdir/configure; then
46566 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
46567 elif test -f $ac_srcdir/configure.in; then
46568 ac_sub_configure=$ac_configure
46569 else
46570 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
46571echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
46572 ac_sub_configure=
46573 fi
46574
46575 # The recursion is here.
46576 if test -n "$ac_sub_configure"; then
46577 # Make the cache file name correct relative to the subdirectory.
46578 case $cache_file in
46579 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
46580 *) # Relative path.
ac1cb8d3 46581 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
46582 esac
46583
46584 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
46585echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
46586 # The eval makes quoting arguments work.
46587 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
46588 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
46589 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
46590echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
46591 { (exit 1); exit 1; }; }
46592 fi
46593
6ebeb4c7 46594 cd "$ac_popdir"
a848cd7e
SC
46595 done
46596fi
46597
46598
46599echo
77ffb593 46600echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 46601echo ""
4d4ff94c 46602echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 46603echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 46604
77ffb593
JS
46605echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
46606echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
46607echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 46608
77ffb593
JS
46609echo " What level of wxWidgets compatibility should be enabled?"
46610echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
46611echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 46612
77ffb593 46613echo " Which libraries should wxWidgets use?"
a848cd7e
SC
46614echo " jpeg ${wxUSE_LIBJPEG-none}"
46615echo " png ${wxUSE_LIBPNG-none}"
46616echo " regex ${wxUSE_REGEX}"
46617echo " tiff ${wxUSE_LIBTIFF-none}"
46618if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
46619echo " xpm ${wxUSE_LIBXPM-none}"
46620fi
46621echo " zlib ${wxUSE_ZLIB}"
46622echo " odbc ${wxUSE_ODBC}"
46623echo " expat ${wxUSE_EXPAT}"
46624echo " libmspack ${wxUSE_LIBMSPACK}"
46625echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 46626echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
46627
46628echo ""
46629