]> git.saurik.com Git - wxWidgets.git/blame - configure
fixed wxON_BLOCK_EXIT macros to work with new definition of wxMAKE_UNIQUE_NAME()...
[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.
d230c01b 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.6.1.
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'
d230c01b
JS
273PACKAGE_VERSION='2.6.1'
274PACKAGE_STRING='wxWidgets 2.6.1'
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"
83d8eb47 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GSTREAMER_CFLAGS GSTREAMER_LIBS GST_INSPECT CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_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_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
d230c01b 797\`configure' configures wxWidgets 2.6.1 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
d230c01b 863 short | recursive ) echo "Configuration of wxWidgets 2.6.1:";;
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
a848cd7e
SC
1032 --enable-metafiles use wxMetaFile (Windows only)
1033 --enable-dragimage use wxDragImage
1034 --enable-accessibility enable accessibility support
1035 --enable-palette use wxPalette class
1036 --enable-image use wxImage class
1037 --enable-gif use gif images (GIF file format)
1038 --enable-pcx use pcx images (PCX file format)
1039 --enable-iff use iff images (IFF file format)
1040 --enable-pnm use pnm images (PNM file format)
1041 --enable-xpm use xpm images (XPM file format)
1042 --enable-icocur use Windows ICO and CUR formats
77ffb593 1043 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1044 --enable-vendor=VENDOR vendor name (win32 DLL only)
1045 --disable-largefile omit support for large files
1046 --disable-gtktest do not try to compile and run a test GTK+ program
1047 --disable-gtktest Do not try to compile and run a test GTK program
1048 --disable-sdltest Do not try to compile and run a test SDL program
1049 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1050 --disable-precomp-headers
1051 don't use precompiled headers even if compiler can
a848cd7e
SC
1052
1053Optional Packages:
1054 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1055 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
f34ca037 1056 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1057 --with-motif use Motif/Lesstif
1058 --with-mac use Mac OS X
1059 --with-cocoa use Cocoa
1060 --with-wine use Wine
1061 --with-msw use MS-Windows
1062 --with-pm use OS/2 Presentation Manager
1063 --with-mgl use SciTech MGL
1064 --with-microwin use MicroWindows
1065 --with-x11 use X11
1066 --with-libpng use libpng (PNG image format)
1067 --with-libjpeg use libjpeg (JPEG file format)
1068 --with-libtiff use libtiff (TIFF file format)
1069 --with-libxpm use libxpm (XPM file format)
1070 --with-libmspack use libmspack (CHM help files loading)
1071 --with-sdl use SDL for audio on Unix
d51253e8 1072 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1073 --with-opengl use OpenGL (or Mesa)
1074 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1075 --with-regex enable support for wxRegEx class
1076 --with-zlib use zlib for LZW compression
1077 --with-odbc use the IODBC and wxODBC classes
1078 --with-expat enable XML support using expat parser
ceec2216 1079 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1080 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1081 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1082 --with-x use the X Window System
1083 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1084 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1085 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1086 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1087 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1088
1089Some influential environment variables:
dcc1b6ad
VS
1090 CC C compiler command
1091 CFLAGS C compiler flags
1092 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1093 nonstandard directory <lib dir>
1094 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1095 headers in a nonstandard directory <include dir>
1096 CPP C preprocessor
1097 CXX C++ compiler command
1098 CXXFLAGS C++ compiler flags
1099 CXXCPP C++ preprocessor
a848cd7e
SC
1100
1101Use these variables to override the choices made by `configure' or to help
1102it to find libraries and programs with nonstandard names/locations.
1103
77ffb593 1104Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1105_ACEOF
1106fi
1107
1108if test "$ac_init_help" = "recursive"; then
1109 # If there are subdirs, report their specific --help.
1110 ac_popdir=`pwd`
1111 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1112 test -d $ac_dir || continue
1113 ac_builddir=.
1114
1115if test "$ac_dir" != .; then
1116 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1117 # A "../" for each directory in $ac_dir_suffix.
1118 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1119else
1120 ac_dir_suffix= ac_top_builddir=
1121fi
1122
1123case $srcdir in
1124 .) # No --srcdir option. We are building in place.
1125 ac_srcdir=.
1126 if test -z "$ac_top_builddir"; then
1127 ac_top_srcdir=.
1128 else
1129 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1130 fi ;;
1131 [\\/]* | ?:[\\/]* ) # Absolute path.
1132 ac_srcdir=$srcdir$ac_dir_suffix;
1133 ac_top_srcdir=$srcdir ;;
1134 *) # Relative path.
1135 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1136 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1137esac
ac1cb8d3
VS
1138
1139# Do not use `cd foo && pwd` to compute absolute paths, because
1140# the directories may not exist.
1141case `pwd` in
1142.) ac_abs_builddir="$ac_dir";;
1143*)
1144 case "$ac_dir" in
1145 .) ac_abs_builddir=`pwd`;;
1146 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1147 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1148 esac;;
1149esac
1150case $ac_abs_builddir in
1151.) ac_abs_top_builddir=${ac_top_builddir}.;;
1152*)
1153 case ${ac_top_builddir}. in
1154 .) ac_abs_top_builddir=$ac_abs_builddir;;
1155 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1156 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1157 esac;;
1158esac
1159case $ac_abs_builddir in
1160.) ac_abs_srcdir=$ac_srcdir;;
1161*)
1162 case $ac_srcdir in
1163 .) ac_abs_srcdir=$ac_abs_builddir;;
1164 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1165 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1166 esac;;
1167esac
1168case $ac_abs_builddir in
1169.) ac_abs_top_srcdir=$ac_top_srcdir;;
1170*)
1171 case $ac_top_srcdir in
1172 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1173 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1174 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1175 esac;;
1176esac
a848cd7e
SC
1177
1178 cd $ac_dir
1179 # Check for guested configure; otherwise get Cygnus style configure.
1180 if test -f $ac_srcdir/configure.gnu; then
1181 echo
1182 $SHELL $ac_srcdir/configure.gnu --help=recursive
1183 elif test -f $ac_srcdir/configure; then
1184 echo
1185 $SHELL $ac_srcdir/configure --help=recursive
1186 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1187 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1188 echo
1189 $ac_configure --help
1190 else
1191 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1192 fi
fb00f58d 1193 cd $ac_popdir
a848cd7e
SC
1194 done
1195fi
1196
1197test -n "$ac_init_help" && exit 0
1198if $ac_init_version; then
1199 cat <<\_ACEOF
d230c01b 1200wxWidgets configure 2.6.1
ac1cb8d3 1201generated by GNU Autoconf 2.59
a848cd7e 1202
ac1cb8d3 1203Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1204This configure script is free software; the Free Software Foundation
1205gives unlimited permission to copy, distribute and modify it.
1206_ACEOF
1207 exit 0
1208fi
1209exec 5>config.log
1210cat >&5 <<_ACEOF
1211This file contains any messages produced by compilers while
1212running configure, to aid debugging if configure makes a mistake.
1213
d230c01b 1214It was created by wxWidgets $as_me 2.6.1, which was
ac1cb8d3 1215generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1216
1217 $ $0 $@
1218
1219_ACEOF
1220{
1221cat <<_ASUNAME
1222## --------- ##
1223## Platform. ##
1224## --------- ##
1225
1226hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1227uname -m = `(uname -m) 2>/dev/null || echo unknown`
1228uname -r = `(uname -r) 2>/dev/null || echo unknown`
1229uname -s = `(uname -s) 2>/dev/null || echo unknown`
1230uname -v = `(uname -v) 2>/dev/null || echo unknown`
1231
1232/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1233/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1234
1235/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1236/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1237/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1238hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1239/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1240/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1241/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1242
1243_ASUNAME
1244
1245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1246for as_dir in $PATH
1247do
1248 IFS=$as_save_IFS
1249 test -z "$as_dir" && as_dir=.
1250 echo "PATH: $as_dir"
1251done
1252
1253} >&5
1254
1255cat >&5 <<_ACEOF
1256
1257
1258## ----------- ##
1259## Core tests. ##
1260## ----------- ##
1261
1262_ACEOF
1263
1264
1265# Keep a trace of the command line.
1266# Strip out --no-create and --no-recursion so they do not pile up.
1267# Strip out --silent because we don't want to record it for future runs.
1268# Also quote any args containing shell meta-characters.
1269# Make two passes to allow for proper duplicate-argument suppression.
1270ac_configure_args=
1271ac_configure_args0=
1272ac_configure_args1=
1273ac_sep=
1274ac_must_keep_next=false
1275for ac_pass in 1 2
1276do
1277 for ac_arg
1278 do
1279 case $ac_arg in
1280 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1281 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1282 | -silent | --silent | --silen | --sile | --sil)
1283 continue ;;
1284 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1285 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1286 esac
1287 case $ac_pass in
1288 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1289 2)
1290 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1291 if test $ac_must_keep_next = true; then
ac1cb8d3 1292 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1293 else
ac1cb8d3
VS
1294 case $ac_arg in
1295 *=* | --config-cache | -C | -disable-* | --disable-* \
1296 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1297 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1298 | -with-* | --with-* | -without-* | --without-* | --x)
1299 case "$ac_configure_args0 " in
1300 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1301 esac
1302 ;;
1303 -* ) ac_must_keep_next=true ;;
1304 esac
a848cd7e
SC
1305 fi
1306 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1307 # Get rid of the leading space.
1308 ac_sep=" "
1309 ;;
1310 esac
1311 done
1312done
1313$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1314$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1315
1316# When interrupted or exit'd, cleanup temporary files, and complete
1317# config.log. We remove comments because anyway the quotes in there
1318# would cause problems or look ugly.
1319# WARNING: Be sure not to use single quotes in there, as some shells,
1320# such as our DU 5.0 friend, will then `close' the trap.
1321trap 'exit_status=$?
1322 # Save into config.log some information that might help in debugging.
1323 {
1324 echo
1325
1326 cat <<\_ASBOX
1327## ---------------- ##
1328## Cache variables. ##
1329## ---------------- ##
1330_ASBOX
1331 echo
1332 # The following way of writing the cache mishandles newlines in values,
1333{
1334 (set) 2>&1 |
1335 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1336 *ac_space=\ *)
1337 sed -n \
ac1cb8d3
VS
1338 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1339 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1340 ;;
1341 *)
1342 sed -n \
ac1cb8d3 1343 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1344 ;;
1345 esac;
1346}
1347 echo
1348
1349 cat <<\_ASBOX
1350## ----------------- ##
1351## Output variables. ##
1352## ----------------- ##
1353_ASBOX
1354 echo
1355 for ac_var in $ac_subst_vars
1356 do
1357 eval ac_val=$`echo $ac_var`
1358 echo "$ac_var='"'"'$ac_val'"'"'"
1359 done | sort
1360 echo
1361
1362 if test -n "$ac_subst_files"; then
1363 cat <<\_ASBOX
1364## ------------- ##
1365## Output files. ##
1366## ------------- ##
1367_ASBOX
1368 echo
1369 for ac_var in $ac_subst_files
1370 do
1371 eval ac_val=$`echo $ac_var`
ac1cb8d3 1372 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1373 done | sort
1374 echo
1375 fi
1376
1377 if test -s confdefs.h; then
1378 cat <<\_ASBOX
1379## ----------- ##
1380## confdefs.h. ##
1381## ----------- ##
1382_ASBOX
1383 echo
1384 sed "/^$/d" confdefs.h | sort
1385 echo
1386 fi
1387 test "$ac_signal" != 0 &&
1388 echo "$as_me: caught signal $ac_signal"
1389 echo "$as_me: exit $exit_status"
1390 } >&5
ac1cb8d3 1391 rm -f core *.core &&
a848cd7e
SC
1392 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1393 exit $exit_status
1394 ' 0
1395for ac_signal in 1 2 13 15; do
1396 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1397done
1398ac_signal=0
1399
1400# confdefs.h avoids OS command line length limits that DEFS can exceed.
1401rm -rf conftest* confdefs.h
1402# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1403echo >confdefs.h
1404
1405# Predefined preprocessor variables.
1406
1407cat >>confdefs.h <<_ACEOF
1408#define PACKAGE_NAME "$PACKAGE_NAME"
1409_ACEOF
1410
1411
1412cat >>confdefs.h <<_ACEOF
1413#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1414_ACEOF
1415
1416
1417cat >>confdefs.h <<_ACEOF
1418#define PACKAGE_VERSION "$PACKAGE_VERSION"
1419_ACEOF
1420
1421
1422cat >>confdefs.h <<_ACEOF
1423#define PACKAGE_STRING "$PACKAGE_STRING"
1424_ACEOF
1425
1426
1427cat >>confdefs.h <<_ACEOF
1428#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1429_ACEOF
1430
1431
1432# Let the site file select an alternate cache file if it wants to.
1433# Prefer explicitly selected file to automatically selected ones.
1434if test -z "$CONFIG_SITE"; then
1435 if test "x$prefix" != xNONE; then
1436 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1437 else
1438 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1439 fi
1440fi
1441for ac_site_file in $CONFIG_SITE; do
1442 if test -r "$ac_site_file"; then
1443 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1444echo "$as_me: loading site script $ac_site_file" >&6;}
1445 sed 's/^/| /' "$ac_site_file" >&5
1446 . "$ac_site_file"
1447 fi
1448done
1449
1450if test -r "$cache_file"; then
1451 # Some versions of bash will fail to source /dev/null (special
1452 # files actually), so we avoid doing that.
1453 if test -f "$cache_file"; then
1454 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1455echo "$as_me: loading cache $cache_file" >&6;}
1456 case $cache_file in
1457 [\\/]* | ?:[\\/]* ) . $cache_file;;
1458 *) . ./$cache_file;;
1459 esac
1460 fi
1461else
1462 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1463echo "$as_me: creating cache $cache_file" >&6;}
1464 >$cache_file
1465fi
1466
1467# Check that the precious variables saved in the cache have kept the same
1468# value.
1469ac_cache_corrupted=false
1470for ac_var in `(set) 2>&1 |
ac1cb8d3 1471 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1472 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1473 eval ac_new_set=\$ac_env_${ac_var}_set
1474 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1475 eval ac_new_val="\$ac_env_${ac_var}_value"
1476 case $ac_old_set,$ac_new_set in
1477 set,)
1478 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1479echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1480 ac_cache_corrupted=: ;;
1481 ,set)
1482 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1483echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1484 ac_cache_corrupted=: ;;
1485 ,);;
1486 *)
1487 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1488 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1489echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1490 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1491echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1492 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1493echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1494 ac_cache_corrupted=:
a848cd7e
SC
1495 fi;;
1496 esac
1497 # Pass precious variables to config.status.
1498 if test "$ac_new_set" = set; then
1499 case $ac_new_val in
1500 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1501 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1502 *) ac_arg=$ac_var=$ac_new_val ;;
1503 esac
1504 case " $ac_configure_args " in
1505 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1506 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1507 esac
1508 fi
1509done
1510if $ac_cache_corrupted; then
1511 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1512echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1513 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1514echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1515 { (exit 1); exit 1; }; }
1516fi
1517
1518ac_ext=c
1519ac_cpp='$CPP $CPPFLAGS'
1520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1522ac_compiler_gnu=$ac_cv_c_compiler_gnu
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553ac_aux_dir=
1554for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1555 if test -f $ac_dir/install-sh; then
1556 ac_aux_dir=$ac_dir
1557 ac_install_sh="$ac_aux_dir/install-sh -c"
1558 break
1559 elif test -f $ac_dir/install.sh; then
1560 ac_aux_dir=$ac_dir
1561 ac_install_sh="$ac_aux_dir/install.sh -c"
1562 break
1563 elif test -f $ac_dir/shtool; then
1564 ac_aux_dir=$ac_dir
1565 ac_install_sh="$ac_aux_dir/shtool install -c"
1566 break
1567 fi
1568done
1569if test -z "$ac_aux_dir"; then
1570 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1571echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1572 { (exit 1); exit 1; }; }
1573fi
1574ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1575ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1576ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1577
1578# Make sure we can run config.sub.
1579$ac_config_sub sun4 >/dev/null 2>&1 ||
1580 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1581echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1582 { (exit 1); exit 1; }; }
1583
1584echo "$as_me:$LINENO: checking build system type" >&5
1585echo $ECHO_N "checking build system type... $ECHO_C" >&6
1586if test "${ac_cv_build+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1588else
1589 ac_cv_build_alias=$build_alias
1590test -z "$ac_cv_build_alias" &&
1591 ac_cv_build_alias=`$ac_config_guess`
1592test -z "$ac_cv_build_alias" &&
1593 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1594echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1595 { (exit 1); exit 1; }; }
1596ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1597 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1598echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1599 { (exit 1); exit 1; }; }
1600
1601fi
1602echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1603echo "${ECHO_T}$ac_cv_build" >&6
1604build=$ac_cv_build
1605build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1606build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1607build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1608
1609
1610echo "$as_me:$LINENO: checking host system type" >&5
1611echo $ECHO_N "checking host system type... $ECHO_C" >&6
1612if test "${ac_cv_host+set}" = set; then
1613 echo $ECHO_N "(cached) $ECHO_C" >&6
1614else
1615 ac_cv_host_alias=$host_alias
1616test -z "$ac_cv_host_alias" &&
1617 ac_cv_host_alias=$ac_cv_build_alias
1618ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1619 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1620echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1621 { (exit 1); exit 1; }; }
1622
1623fi
1624echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1625echo "${ECHO_T}$ac_cv_host" >&6
1626host=$ac_cv_host
1627host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1628host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1629host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1630
1631
1632echo "$as_me:$LINENO: checking target system type" >&5
1633echo $ECHO_N "checking target system type... $ECHO_C" >&6
1634if test "${ac_cv_target+set}" = set; then
1635 echo $ECHO_N "(cached) $ECHO_C" >&6
1636else
1637 ac_cv_target_alias=$target_alias
1638test "x$ac_cv_target_alias" = "x" &&
1639 ac_cv_target_alias=$ac_cv_host_alias
1640ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1641 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1642echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1643 { (exit 1); exit 1; }; }
1644
1645fi
1646echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1647echo "${ECHO_T}$ac_cv_target" >&6
1648target=$ac_cv_target
1649target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1650target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1651target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1652
1653
1654# The aliases save the names the user supplied, while $host etc.
1655# will get canonicalized.
1656test -n "$target_alias" &&
1657 test "$program_prefix$program_suffix$program_transform_name" = \
1658 NONENONEs,x,x, &&
1659 program_prefix=${target_alias}-
1660
1661
1662
ceec2216 1663wx_major_version_number=2
e0d84535 1664wx_minor_version_number=6
7a070ef1 1665wx_release_number=1
063c96c1 1666wx_subrelease_number=1
a848cd7e 1667
ceec2216
RL
1668WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1669WX_VERSION=$WX_RELEASE.$wx_release_number
1670WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1671
ceec2216 1672WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1673
e0d84535 1674WX_CURRENT=0
d230c01b 1675WX_REVISION=1
e0d84535 1676WX_AGE=0
a848cd7e
SC
1677
1678
1679
1680USE_UNIX=1
1681USE_OS2=0
1682USE_WIN32=0
1683USE_DOS=0
1684USE_BEOS=0
1685USE_MAC=0
1686
1687USE_AIX=
1688USE_BSD= USE_DARWIN= USE_FREEBSD=
1689USE_GNU= USE_HPUX=
1690USE_LINUX=
1691USE_NETBSD=
1692USE_OPENBSD=
1693USE_OSF= USE_SGI=
1694USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1695USE_ULTRIX=
1696USE_UNIXWARE=
1697
1698USE_ALPHA=
1699
1700NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1701
1702ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1703
1704DEFAULT_wxUSE_COCOA=0
1705DEFAULT_wxUSE_GTK=0
1706DEFAULT_wxUSE_MAC=0
1707DEFAULT_wxUSE_MGL=0
1708DEFAULT_wxUSE_MICROWIN=0
1709DEFAULT_wxUSE_MOTIF=0
1710DEFAULT_wxUSE_MSW=0
1711DEFAULT_wxUSE_PM=0
1712DEFAULT_wxUSE_X11=0
1713
1714DEFAULT_DEFAULT_wxUSE_COCOA=0
1715DEFAULT_DEFAULT_wxUSE_GTK=0
1716DEFAULT_DEFAULT_wxUSE_MAC=0
1717DEFAULT_DEFAULT_wxUSE_MGL=0
1718DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1719DEFAULT_DEFAULT_wxUSE_MOTIF=0
1720DEFAULT_DEFAULT_wxUSE_MSW=0
1721DEFAULT_DEFAULT_wxUSE_PM=0
1722DEFAULT_DEFAULT_wxUSE_X11=0
1723
1724PROGRAM_EXT=
1725SO_SUFFIX=so
1726SAMPLES_RPATH_FLAG=
1727SAMPLES_RPATH_POSTLINK=
1728
a03b8b04
RD
1729DEFAULT_STD_FLAG=yes
1730
a848cd7e
SC
1731case "${host}" in
1732 *-hp-hpux* )
1733 USE_HPUX=1
1734 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1735 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1736 SO_SUFFIX=sl
1737 cat >>confdefs.h <<\_ACEOF
1738#define __HPUX__ 1
1739_ACEOF
1740
1741 ;;
1742 *-*-linux* )
1743 USE_LINUX=1
1744 cat >>confdefs.h <<\_ACEOF
1745#define __LINUX__ 1
1746_ACEOF
1747
1748 TMP=`uname -m`
1749 if test "x$TMP" = "xalpha"; then
1750 USE_ALPHA=1
1751 cat >>confdefs.h <<\_ACEOF
1752#define __ALPHA__ 1
1753_ACEOF
1754
1755 fi
1756 DEFAULT_DEFAULT_wxUSE_GTK=1
1757 ;;
1758 *-*-gnu* | *-*-k*bsd*-gnu )
1759 USE_GNU=1
1760 TMP=`uname -m`
1761 if test "x$TMP" = "xalpha"; then
1762 USE_ALPHA=1
1763 cat >>confdefs.h <<\_ACEOF
1764#define __ALPHA__ 1
1765_ACEOF
1766
1767 fi
1768 DEFAULT_DEFAULT_wxUSE_GTK=1
1769 ;;
1770 *-*-irix5* | *-*-irix6* )
1771 USE_SGI=1
1772 USE_SVR4=1
1773 cat >>confdefs.h <<\_ACEOF
1774#define __SGI__ 1
1775_ACEOF
1776
1777 cat >>confdefs.h <<\_ACEOF
1778#define __SVR4__ 1
1779_ACEOF
1780
1781 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1782 ;;
1783 *-*-solaris2* )
1784 USE_SUN=1
1785 USE_SOLARIS=1
1786 USE_SVR4=1
1787 cat >>confdefs.h <<\_ACEOF
1788#define __SUN__ 1
1789_ACEOF
1790
1791 cat >>confdefs.h <<\_ACEOF
1792#define __SOLARIS__ 1
1793_ACEOF
1794
1795 cat >>confdefs.h <<\_ACEOF
1796#define __SVR4__ 1
1797_ACEOF
1798
1799 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1800 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1801 ;;
1802 *-*-sunos4* )
1803 USE_SUN=1
1804 USE_SUNOS=1
1805 USE_BSD=1
1806 cat >>confdefs.h <<\_ACEOF
1807#define __SUN__ 1
1808_ACEOF
1809
1810 cat >>confdefs.h <<\_ACEOF
1811#define __SUNOS__ 1
1812_ACEOF
1813
1814 cat >>confdefs.h <<\_ACEOF
1815#define __BSD__ 1
1816_ACEOF
1817
1818 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1819 ;;
1820 *-*-freebsd*)
1821 USE_BSD=1
1822 USE_FREEBSD=1
1823 cat >>confdefs.h <<\_ACEOF
1824#define __FREEBSD__ 1
1825_ACEOF
1826
1827 cat >>confdefs.h <<\_ACEOF
1828#define __BSD__ 1
1829_ACEOF
1830
1831 DEFAULT_DEFAULT_wxUSE_GTK=1
1832 ;;
1833 *-*-openbsd*)
1834 USE_BSD=1
1835 USE_OPENBSD=1
1836 cat >>confdefs.h <<\_ACEOF
1837#define __OPENBSD__ 1
1838_ACEOF
1839
1840 cat >>confdefs.h <<\_ACEOF
1841#define __BSD__ 1
1842_ACEOF
1843
1844 DEFAULT_DEFAULT_wxUSE_GTK=1
1845 ;;
1846 *-*-netbsd*)
1847 USE_BSD=1
1848 USE_NETBSD=1
1849 cat >>confdefs.h <<\_ACEOF
1850#define __NETBSD__ 1
1851_ACEOF
1852
1853 cat >>confdefs.h <<\_ACEOF
1854#define __BSD__ 1
1855_ACEOF
1856
1857 DEFAULT_DEFAULT_wxUSE_GTK=1
1858 ;;
1859 *-*-osf* )
1860 USE_ALPHA=1
1861 USE_OSF=1
1862 cat >>confdefs.h <<\_ACEOF
1863#define __ALPHA__ 1
1864_ACEOF
1865
1866 cat >>confdefs.h <<\_ACEOF
1867#define __OSF__ 1
1868_ACEOF
1869
1870 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1871 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1872 ;;
1873 *-*-dgux5* )
1874 USE_ALPHA=1
1875 USE_SVR4=1
1876 cat >>confdefs.h <<\_ACEOF
1877#define __ALPHA__ 1
1878_ACEOF
1879
1880 cat >>confdefs.h <<\_ACEOF
1881#define __SVR4__ 1
1882_ACEOF
1883
1884 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1885 ;;
1886 *-*-sysv5* )
1887 USE_SYSV=1
1888 USE_SVR4=1
1889 cat >>confdefs.h <<\_ACEOF
1890#define __SYSV__ 1
1891_ACEOF
1892
1893 cat >>confdefs.h <<\_ACEOF
1894#define __SVR4__ 1
1895_ACEOF
1896
1897 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1898 ;;
1899 *-*-aix* )
1900 USE_AIX=1
1901 USE_SYSV=1
1902 USE_SVR4=1
1903 SO_SUFFIX=a
1904 cat >>confdefs.h <<\_ACEOF
1905#define __AIX__ 1
1906_ACEOF
1907
1908 cat >>confdefs.h <<\_ACEOF
1909#define __SYSV__ 1
1910_ACEOF
1911
1912 cat >>confdefs.h <<\_ACEOF
1913#define __SVR4__ 1
1914_ACEOF
1915
1916 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1917 ;;
1918
1919 *-*-*UnixWare*)
1920 USE_SYSV=1
1921 USE_SVR4=1
1922 USE_UNIXWARE=1
1923 cat >>confdefs.h <<\_ACEOF
1924#define __UNIXWARE__ 1
1925_ACEOF
1926
1927 ;;
1928
1929 *-*-cygwin* | *-*-mingw32* )
1930 SO_SUFFIX=dll
1931 PROGRAM_EXT=".exe"
1932 RESCOMP=windres
1933 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 1934 DEFAULT_STD_FLAG=no
a848cd7e
SC
1935 ;;
1936
1937 *-pc-msdosdjgpp )
1938 USE_UNIX=0
1939 USE_DOS=1
1940 cat >>confdefs.h <<\_ACEOF
1941#define __DOS__ 1
1942_ACEOF
1943
1944 PROGRAM_EXT=".exe"
1945 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
1946 ;;
1947
1948 *-pc-os2_emx | *-pc-os2-emx )
1949 cat >>confdefs.h <<\_ACEOF
1950#define __EMX__ 1
1951_ACEOF
1952
1953 USE_OS2=1
1954 cat >>confdefs.h <<\_ACEOF
1955#define __OS2__ 1
1956_ACEOF
1957
1958 PROGRAM_EXT=".exe"
1959 DEFAULT_DEFAULT_wxUSE_PM=1
1960 CXX=gcc
1961 LDFLAGS="$LDFLAGS -Zcrtdll"
1962 ac_executable_extensions=".exe"
1963 export ac_executable_extensions
1964 ac_save_IFS="$IFS"
1965 IFS='\\'
1966 ac_TEMP_PATH=
1967 for ac_dir in $PATH; do
1968 IFS=$ac_save_IFS
1969 if test -z "$ac_TEMP_PATH"; then
1970 ac_TEMP_PATH="$ac_dir"
1971 else
1972 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1973 fi
1974 done
1975 export PATH="$ac_TEMP_PATH"
1976 unset ac_TEMP_PATH
a03b8b04 1977 DEFAULT_STD_FLAG=no
a848cd7e
SC
1978 ;;
1979
1980 powerpc-*-darwin* )
1981 USE_BSD=1
1982 USE_DARWIN=1
1983 SO_SUFFIX=dylib
1984 cat >>confdefs.h <<\_ACEOF
1985#define __BSD__ 1
1986_ACEOF
1987
1988 cat >>confdefs.h <<\_ACEOF
1989#define __DARWIN__ 1
a848cd7e
SC
1990_ACEOF
1991
1992 cat >>confdefs.h <<\_ACEOF
1993#define TARGET_CARBON 1
1994_ACEOF
1995
1996 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 1997 DEFAULT_STD_FLAG=no
a848cd7e 1998 ;;
1e9e8aba
DE
1999 powerpc-apple-macos* )
2000 USE_UNIX=0
2001 ac_cv_c_bigendian=yes
2002 SO_SUFFIX=shlib
2003 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2004 DEFAULT_STD_FLAG=no
1e9e8aba 2005 ;;
a848cd7e
SC
2006
2007 *-*-beos* )
2008 USE_BEOS=1
2009 cat >>confdefs.h <<\_ACEOF
2010#define __BEOS__ 1
2011_ACEOF
2012
2013 ;;
2014
2015 *)
2016 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2017echo "$as_me: error: unknown system type ${host}." >&2;}
2018 { (exit 1); exit 1; }; }
2019esac
2020
2021
2022
2023
2024 wx_arg_cache_file="configarg.cache"
2025 echo "loading argument cache $wx_arg_cache_file"
2026 rm -f ${wx_arg_cache_file}.tmp
2027 touch ${wx_arg_cache_file}.tmp
2028 touch ${wx_arg_cache_file}
2029
2030
2031DEBUG_CONFIGURE=0
2032if test $DEBUG_CONFIGURE = 1; then
2033 DEFAULT_wxUSE_UNIVERSAL=no
2034 DEFAULT_wxUSE_STL=no
2035
2036 DEFAULT_wxUSE_NANOX=no
2037
2038 DEFAULT_wxUSE_THREADS=yes
2039
2040 DEFAULT_wxUSE_SHARED=yes
2041 DEFAULT_wxUSE_OPTIMISE=no
2042 DEFAULT_wxUSE_PROFILE=no
2043 DEFAULT_wxUSE_NO_DEPS=no
2044 DEFAULT_wxUSE_NO_RTTI=no
2045 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2046 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2047 DEFAULT_wxUSE_PERMISSIVE=no
2048 DEFAULT_wxUSE_DEBUG_FLAG=yes
2049 DEFAULT_wxUSE_DEBUG_INFO=yes
2050 DEFAULT_wxUSE_DEBUG_GDB=yes
2051 DEFAULT_wxUSE_MEM_TRACING=no
2052 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2053 DEFAULT_wxUSE_DMALLOC=no
2054 DEFAULT_wxUSE_APPLE_IEEE=no
2055
2056 DEFAULT_wxUSE_EXCEPTIONS=no
2057 DEFAULT_wxUSE_LOG=yes
2058 DEFAULT_wxUSE_LOGWINDOW=no
2059 DEFAULT_wxUSE_LOGGUI=no
2060 DEFAULT_wxUSE_LOGDIALOG=no
2061
2062 DEFAULT_wxUSE_GUI=yes
2063 DEFAULT_wxUSE_CONTROLS=no
2064
2065 DEFAULT_wxUSE_REGEX=no
2066 DEFAULT_wxUSE_XML=no
2067 DEFAULT_wxUSE_EXPAT=no
2068 DEFAULT_wxUSE_ZLIB=no
2069 DEFAULT_wxUSE_LIBPNG=no
2070 DEFAULT_wxUSE_LIBJPEG=no
2071 DEFAULT_wxUSE_LIBTIFF=no
2072 DEFAULT_wxUSE_LIBXPM=no
2073 DEFAULT_wxUSE_LIBMSPACK=no
2074 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2075 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2076 DEFAULT_wxUSE_ODBC=no
2077 DEFAULT_wxUSE_OPENGL=no
2078
2079 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2080 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2081 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2082 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2083 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2084 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2085 DEFAULT_wxUSE_CMDLINE_PARSER=no
2086 DEFAULT_wxUSE_DATETIME=no
2087 DEFAULT_wxUSE_TIMER=no
2088 DEFAULT_wxUSE_STOPWATCH=no
2089 DEFAULT_wxUSE_FILE=no
2090 DEFAULT_wxUSE_FFILE=no
07158944 2091 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2092 DEFAULT_wxUSE_TEXTBUFFER=no
2093 DEFAULT_wxUSE_TEXTFILE=no
2094 DEFAULT_wxUSE_SOUND=no
3b57de8b 2095 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2096 DEFAULT_wxUSE_INTL=no
2097 DEFAULT_wxUSE_CONFIG=no
2098 DEFAULT_wxUSE_FONTMAP=no
2099 DEFAULT_wxUSE_STREAMS=no
2100 DEFAULT_wxUSE_SOCKETS=no
2101 DEFAULT_wxUSE_OLE=no
2102 DEFAULT_wxUSE_DATAOBJ=no
2103 DEFAULT_wxUSE_DIALUP_MANAGER=no
2104 DEFAULT_wxUSE_JOYSTICK=no
2105 DEFAULT_wxUSE_DYNLIB_CLASS=no
2106 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2107 DEFAULT_wxUSE_LONGLONG=no
2108 DEFAULT_wxUSE_GEOMETRY=no
2109
2110 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2111 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2112 DEFAULT_wxUSE_POSTSCRIPT=no
2113
2114 DEFAULT_wxUSE_CLIPBOARD=no
2115 DEFAULT_wxUSE_TOOLTIPS=no
2116 DEFAULT_wxUSE_DRAG_AND_DROP=no
2117 DEFAULT_wxUSE_DRAGIMAGE=no
2118 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2119 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2120
8a7b1113 2121 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2122 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2123 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2124 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2125
2126 DEFAULT_wxUSE_RESOURCES=no
2127 DEFAULT_wxUSE_CONSTRAINTS=no
2128 DEFAULT_wxUSE_IPC=no
2129 DEFAULT_wxUSE_HELP=no
2130 DEFAULT_wxUSE_MS_HTML_HELP=no
2131 DEFAULT_wxUSE_WXHTML_HELP=no
2132 DEFAULT_wxUSE_TREELAYOUT=no
2133 DEFAULT_wxUSE_METAFILE=no
2134 DEFAULT_wxUSE_MIMETYPE=no
2135 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2136 DEFAULT_wxUSE_PROTOCOL=no
2137 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2138 DEFAULT_wxUSE_PROTOCOL_FTP=no
2139 DEFAULT_wxUSE_PROTOCOL_FILE=no
2140 DEFAULT_wxUSE_URL=no
2141
2142 DEFAULT_wxUSE_COMMONDLGS=no
2143 DEFAULT_wxUSE_CHOICEDLG=no
2144 DEFAULT_wxUSE_COLOURDLG=no
2145 DEFAULT_wxUSE_DIRDLG=no
2146 DEFAULT_wxUSE_FILEDLG=no
2147 DEFAULT_wxUSE_FINDREPLDLG=no
2148 DEFAULT_wxUSE_FONTDLG=no
2149 DEFAULT_wxUSE_MSGDLG=no
2150 DEFAULT_wxUSE_NUMBERDLG=no
2151 DEFAULT_wxUSE_TEXTDLG=no
2152 DEFAULT_wxUSE_SPLASH=no
2153 DEFAULT_wxUSE_STARTUP_TIPS=no
2154 DEFAULT_wxUSE_PROGRESSDLG=no
2155 DEFAULT_wxUSE_WIZARDDLG=no
2156
2157 DEFAULT_wxUSE_MENUS=no
2158 DEFAULT_wxUSE_MINIFRAME=no
2159 DEFAULT_wxUSE_HTML=no
9a8f0513 2160 DEFAULT_wxUSE_XRC=no
646b6ec1 2161 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2162 DEFAULT_wxUSE_FILESYSTEM=no
2163 DEFAULT_wxUSE_FS_INET=no
2164 DEFAULT_wxUSE_FS_ZIP=no
2165 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2166 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2167 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2168 DEFAULT_wxUSE_VALIDATORS=no
2169
2170 DEFAULT_wxUSE_ACCEL=no
2171 DEFAULT_wxUSE_BUTTON=no
2172 DEFAULT_wxUSE_BMPBUTTON=no
2173 DEFAULT_wxUSE_CALCTRL=no
2174 DEFAULT_wxUSE_CARET=no
2175 DEFAULT_wxUSE_CHECKBOX=no
2176 DEFAULT_wxUSE_CHECKLST=no
2177 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2178 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2179 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2180 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2181 DEFAULT_wxUSE_DISPLAY=no
2182 DEFAULT_wxUSE_GAUGE=no
2183 DEFAULT_wxUSE_GRID=no
2184 DEFAULT_wxUSE_IMAGLIST=no
2185 DEFAULT_wxUSE_LISTBOOK=no
2186 DEFAULT_wxUSE_LISTBOX=no
2187 DEFAULT_wxUSE_LISTCTRL=no
2188 DEFAULT_wxUSE_NOTEBOOK=no
2189 DEFAULT_wxUSE_RADIOBOX=no
2190 DEFAULT_wxUSE_RADIOBTN=no
2191 DEFAULT_wxUSE_SASH=no
2192 DEFAULT_wxUSE_SCROLLBAR=no
2193 DEFAULT_wxUSE_SLIDER=no
2194 DEFAULT_wxUSE_SPINBTN=no
2195 DEFAULT_wxUSE_SPINCTRL=no
2196 DEFAULT_wxUSE_SPLITTER=no
2197 DEFAULT_wxUSE_STATBMP=no
2198 DEFAULT_wxUSE_STATBOX=no
2199 DEFAULT_wxUSE_STATLINE=no
2200 DEFAULT_wxUSE_STATTEXT=no
2201 DEFAULT_wxUSE_STATUSBAR=yes
2202 DEFAULT_wxUSE_TABDIALOG=no
2203 DEFAULT_wxUSE_TEXTCTRL=no
2204 DEFAULT_wxUSE_TOGGLEBTN=no
2205 DEFAULT_wxUSE_TOOLBAR=no
2206 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2207 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2208 DEFAULT_wxUSE_TREECTRL=no
2209 DEFAULT_wxUSE_POPUPWIN=no
2210 DEFAULT_wxUSE_TIPWINDOW=no
2211
2212 DEFAULT_wxUSE_UNICODE=no
2213 DEFAULT_wxUSE_UNICODE_MSLU=no
2214 DEFAULT_wxUSE_WCSRTOMBS=no
2215
2216 DEFAULT_wxUSE_PALETTE=no
2217 DEFAULT_wxUSE_IMAGE=no
2218 DEFAULT_wxUSE_GIF=no
2219 DEFAULT_wxUSE_PCX=no
2220 DEFAULT_wxUSE_PNM=no
2221 DEFAULT_wxUSE_IFF=no
2222 DEFAULT_wxUSE_XPM=no
2223 DEFAULT_wxUSE_ICO_CUR=no
2224 DEFAULT_wxUSE_ACCESSIBILITY=no
2225
2226 DEFAULT_wxUSE_MONOLITHIC=no
2227 DEFAULT_wxUSE_PLUGINS=no
2228 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2229else
2230 DEFAULT_wxUSE_UNIVERSAL=no
2231 DEFAULT_wxUSE_STL=no
2232
2233 DEFAULT_wxUSE_NANOX=no
2234
2235 DEFAULT_wxUSE_THREADS=yes
2236
2237 DEFAULT_wxUSE_SHARED=yes
2238 DEFAULT_wxUSE_OPTIMISE=yes
2239 DEFAULT_wxUSE_PROFILE=no
2240 DEFAULT_wxUSE_NO_DEPS=no
2241 DEFAULT_wxUSE_NO_RTTI=no
2242 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2243 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2244 DEFAULT_wxUSE_PERMISSIVE=no
2245 DEFAULT_wxUSE_DEBUG_FLAG=no
2246 DEFAULT_wxUSE_DEBUG_INFO=no
2247 DEFAULT_wxUSE_DEBUG_GDB=no
2248 DEFAULT_wxUSE_MEM_TRACING=no
2249 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2250 DEFAULT_wxUSE_DMALLOC=no
2251 DEFAULT_wxUSE_APPLE_IEEE=yes
2252
2253 DEFAULT_wxUSE_EXCEPTIONS=yes
2254 DEFAULT_wxUSE_LOG=yes
2255 DEFAULT_wxUSE_LOGWINDOW=yes
2256 DEFAULT_wxUSE_LOGGUI=yes
2257 DEFAULT_wxUSE_LOGDIALOG=yes
2258
2259 DEFAULT_wxUSE_GUI=yes
2260
2261 DEFAULT_wxUSE_REGEX=yes
2262 DEFAULT_wxUSE_XML=yes
2263 DEFAULT_wxUSE_EXPAT=yes
2264 DEFAULT_wxUSE_ZLIB=yes
2265 DEFAULT_wxUSE_LIBPNG=yes
2266 DEFAULT_wxUSE_LIBJPEG=yes
2267 DEFAULT_wxUSE_LIBTIFF=yes
2268 DEFAULT_wxUSE_LIBXPM=yes
2269 DEFAULT_wxUSE_LIBMSPACK=yes
2270 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2271 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e 2272 DEFAULT_wxUSE_ODBC=no
52cb607e 2273 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2274
2275 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2276 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2277 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2278 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2279 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2280 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2281 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2282 DEFAULT_wxUSE_DATETIME=yes
2283 DEFAULT_wxUSE_TIMER=yes
2284 DEFAULT_wxUSE_STOPWATCH=yes
2285 DEFAULT_wxUSE_FILE=yes
2286 DEFAULT_wxUSE_FFILE=yes
07158944 2287 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2288 DEFAULT_wxUSE_TEXTBUFFER=yes
2289 DEFAULT_wxUSE_TEXTFILE=yes
2290 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2291 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2292 DEFAULT_wxUSE_INTL=yes
2293 DEFAULT_wxUSE_CONFIG=yes
2294 DEFAULT_wxUSE_FONTMAP=yes
2295 DEFAULT_wxUSE_STREAMS=yes
2296 DEFAULT_wxUSE_SOCKETS=yes
2297 DEFAULT_wxUSE_OLE=yes
2298 DEFAULT_wxUSE_DATAOBJ=yes
2299 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2300 DEFAULT_wxUSE_JOYSTICK=yes
2301 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2302 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2303 DEFAULT_wxUSE_LONGLONG=yes
2304 DEFAULT_wxUSE_GEOMETRY=yes
2305
2306 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2307 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2308 DEFAULT_wxUSE_POSTSCRIPT=yes
2309
2310 DEFAULT_wxUSE_CLIPBOARD=yes
2311 DEFAULT_wxUSE_TOOLTIPS=yes
2312 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2313 DEFAULT_wxUSE_DRAGIMAGE=yes
2314 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2315 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2316
8a7b1113 2317 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2318 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2319 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2320 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2321
2322 DEFAULT_wxUSE_RESOURCES=no
2323 DEFAULT_wxUSE_CONSTRAINTS=yes
2324 DEFAULT_wxUSE_IPC=yes
2325 DEFAULT_wxUSE_HELP=yes
2326 DEFAULT_wxUSE_MS_HTML_HELP=yes
2327 DEFAULT_wxUSE_WXHTML_HELP=yes
2328 DEFAULT_wxUSE_TREELAYOUT=yes
2329 DEFAULT_wxUSE_METAFILE=yes
2330 DEFAULT_wxUSE_MIMETYPE=yes
2331 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2332 DEFAULT_wxUSE_PROTOCOL=yes
2333 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2334 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2335 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2336 DEFAULT_wxUSE_URL=yes
2337
2338 DEFAULT_wxUSE_COMMONDLGS=yes
2339 DEFAULT_wxUSE_CHOICEDLG=yes
2340 DEFAULT_wxUSE_COLOURDLG=yes
2341 DEFAULT_wxUSE_DIRDLG=yes
2342 DEFAULT_wxUSE_FILEDLG=yes
2343 DEFAULT_wxUSE_FINDREPLDLG=yes
2344 DEFAULT_wxUSE_FONTDLG=yes
2345 DEFAULT_wxUSE_MSGDLG=yes
2346 DEFAULT_wxUSE_NUMBERDLG=yes
2347 DEFAULT_wxUSE_TEXTDLG=yes
2348 DEFAULT_wxUSE_SPLASH=yes
2349 DEFAULT_wxUSE_STARTUP_TIPS=yes
2350 DEFAULT_wxUSE_PROGRESSDLG=yes
2351 DEFAULT_wxUSE_WIZARDDLG=yes
2352
2353 DEFAULT_wxUSE_MENUS=yes
2354 DEFAULT_wxUSE_MINIFRAME=yes
2355 DEFAULT_wxUSE_HTML=yes
9a8f0513 2356 DEFAULT_wxUSE_XRC=yes
646b6ec1 2357 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2358 DEFAULT_wxUSE_FILESYSTEM=yes
2359 DEFAULT_wxUSE_FS_INET=yes
2360 DEFAULT_wxUSE_FS_ZIP=yes
2361 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2362 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2363 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2364 DEFAULT_wxUSE_VALIDATORS=yes
2365
2366 DEFAULT_wxUSE_ACCEL=yes
2367 DEFAULT_wxUSE_BUTTON=yes
2368 DEFAULT_wxUSE_BMPBUTTON=yes
2369 DEFAULT_wxUSE_CALCTRL=yes
2370 DEFAULT_wxUSE_CARET=yes
2371 DEFAULT_wxUSE_CHECKBOX=yes
2372 DEFAULT_wxUSE_CHECKLST=yes
2373 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2374 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2375 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2376 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2377 DEFAULT_wxUSE_DISPLAY=yes
2378 DEFAULT_wxUSE_GAUGE=yes
2379 DEFAULT_wxUSE_GRID=yes
2380 DEFAULT_wxUSE_IMAGLIST=yes
2381 DEFAULT_wxUSE_LISTBOOK=yes
2382 DEFAULT_wxUSE_LISTBOX=yes
2383 DEFAULT_wxUSE_LISTCTRL=yes
2384 DEFAULT_wxUSE_NOTEBOOK=yes
2385 DEFAULT_wxUSE_RADIOBOX=yes
2386 DEFAULT_wxUSE_RADIOBTN=yes
2387 DEFAULT_wxUSE_SASH=yes
2388 DEFAULT_wxUSE_SCROLLBAR=yes
2389 DEFAULT_wxUSE_SLIDER=yes
2390 DEFAULT_wxUSE_SPINBTN=yes
2391 DEFAULT_wxUSE_SPINCTRL=yes
2392 DEFAULT_wxUSE_SPLITTER=yes
2393 DEFAULT_wxUSE_STATBMP=yes
2394 DEFAULT_wxUSE_STATBOX=yes
2395 DEFAULT_wxUSE_STATLINE=yes
2396 DEFAULT_wxUSE_STATTEXT=yes
2397 DEFAULT_wxUSE_STATUSBAR=yes
2398 DEFAULT_wxUSE_TABDIALOG=no
2399 DEFAULT_wxUSE_TEXTCTRL=yes
2400 DEFAULT_wxUSE_TOGGLEBTN=yes
2401 DEFAULT_wxUSE_TOOLBAR=yes
2402 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2403 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2404 DEFAULT_wxUSE_TREECTRL=yes
2405 DEFAULT_wxUSE_POPUPWIN=yes
2406 DEFAULT_wxUSE_TIPWINDOW=yes
2407
78de529b 2408 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2409 DEFAULT_wxUSE_UNICODE_MSLU=yes
2410 DEFAULT_wxUSE_WCSRTOMBS=no
2411
2412 DEFAULT_wxUSE_PALETTE=yes
2413 DEFAULT_wxUSE_IMAGE=yes
2414 DEFAULT_wxUSE_GIF=yes
2415 DEFAULT_wxUSE_PCX=yes
2416 DEFAULT_wxUSE_IFF=no
2417 DEFAULT_wxUSE_PNM=yes
2418 DEFAULT_wxUSE_XPM=yes
2419 DEFAULT_wxUSE_ICO_CUR=yes
2420 DEFAULT_wxUSE_ACCESSIBILITY=no
2421
2422 DEFAULT_wxUSE_MONOLITHIC=no
2423 DEFAULT_wxUSE_PLUGINS=no
2424 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2425
f34ca037 2426 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2427fi
2428
2429
2430
f34ca037 2431
a848cd7e
SC
2432for toolkit in `echo $ALL_TOOLKITS`; do
2433 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2434 if test "x$LINE" != "x" ; then
2435 has_toolkit_in_cache=1
2436 eval "DEFAULT_$LINE"
2437 eval "CACHE_$toolkit=1"
f34ca037
MW
2438
2439 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2440 if test "x$LINE" != "x" ; then
2441 eval "DEFAULT_$LINE"
2442 fi
a848cd7e
SC
2443 fi
2444done
2445
2446
2447
2448 enablestring=
2449 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2450echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2451 no_cache=0
2452 # Check whether --enable-gui or --disable-gui was given.
2453if test "${enable_gui+set}" = set; then
2454 enableval="$enable_gui"
2455
2456 if test "$enableval" = yes; then
2457 ac_cv_use_gui='wxUSE_GUI=yes'
2458 else
2459 ac_cv_use_gui='wxUSE_GUI=no'
2460 fi
2461
2462else
2463
2464 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2465 if test "x$LINE" != x ; then
2466 eval "DEFAULT_$LINE"
2467 else
2468 no_cache=1
2469 fi
2470
2471 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2472
2473fi;
2474
2475 eval "$ac_cv_use_gui"
2476 if test "$no_cache" != 1; then
2477 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2478 fi
2479
2480 if test "$wxUSE_GUI" = yes; then
2481 echo "$as_me:$LINENO: result: yes" >&5
2482echo "${ECHO_T}yes" >&6
2483 else
2484 echo "$as_me:$LINENO: result: no" >&5
2485echo "${ECHO_T}no" >&6
2486 fi
2487
2488
2489 enablestring=
2490 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2491echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2492 no_cache=0
2493 # Check whether --enable-monolithic or --disable-monolithic was given.
2494if test "${enable_monolithic+set}" = set; then
2495 enableval="$enable_monolithic"
2496
2497 if test "$enableval" = yes; then
2498 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2499 else
2500 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2501 fi
2502
2503else
2504
2505 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2506 if test "x$LINE" != x ; then
2507 eval "DEFAULT_$LINE"
2508 else
2509 no_cache=1
2510 fi
2511
2512 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2513
2514fi;
2515
2516 eval "$ac_cv_use_monolithic"
2517 if test "$no_cache" != 1; then
2518 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2519 fi
2520
2521 if test "$wxUSE_MONOLITHIC" = yes; then
2522 echo "$as_me:$LINENO: result: yes" >&5
2523echo "${ECHO_T}yes" >&6
2524 else
2525 echo "$as_me:$LINENO: result: no" >&5
2526echo "${ECHO_T}no" >&6
2527 fi
2528
2529
2530 enablestring=
2531 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2532echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2533 no_cache=0
2534 # Check whether --enable-plugins or --disable-plugins was given.
2535if test "${enable_plugins+set}" = set; then
2536 enableval="$enable_plugins"
2537
2538 if test "$enableval" = yes; then
2539 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2540 else
2541 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2542 fi
2543
2544else
2545
2546 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2547 if test "x$LINE" != x ; then
2548 eval "DEFAULT_$LINE"
2549 else
2550 no_cache=1
2551 fi
2552
2553 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2554
2555fi;
2556
2557 eval "$ac_cv_use_plugins"
2558 if test "$no_cache" != 1; then
2559 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2560 fi
2561
2562 if test "$wxUSE_PLUGINS" = yes; then
2563 echo "$as_me:$LINENO: result: yes" >&5
2564echo "${ECHO_T}yes" >&6
2565 else
2566 echo "$as_me:$LINENO: result: no" >&5
2567echo "${ECHO_T}no" >&6
2568 fi
2569
2570
2571if test "$wxUSE_GUI" = "yes"; then
2572
2573
2574 enablestring=
2575 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2576echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2577 no_cache=0
2578 # Check whether --enable-universal or --disable-universal was given.
2579if test "${enable_universal+set}" = set; then
2580 enableval="$enable_universal"
2581
2582 if test "$enableval" = yes; then
2583 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2584 else
2585 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2586 fi
2587
2588else
2589
2590 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2591 if test "x$LINE" != x ; then
2592 eval "DEFAULT_$LINE"
2593 else
2594 no_cache=1
2595 fi
2596
2597 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2598
2599fi;
2600
2601 eval "$ac_cv_use_universal"
2602 if test "$no_cache" != 1; then
2603 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2604 fi
2605
2606 if test "$wxUSE_UNIVERSAL" = yes; then
2607 echo "$as_me:$LINENO: result: yes" >&5
2608echo "${ECHO_T}yes" >&6
2609 else
2610 echo "$as_me:$LINENO: result: no" >&5
2611echo "${ECHO_T}no" >&6
2612 fi
2613
2614
2615# Check whether --with-gtk or --without-gtk was given.
2616if test "${with_gtk+set}" = set; then
2617 withval="$with_gtk"
2618 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2619fi;
2620
2621# Check whether --with-motif or --without-motif was given.
2622if test "${with_motif+set}" = set; then
2623 withval="$with_motif"
2624 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2625fi;
2626
2627# Check whether --with-mac or --without-mac was given.
2628if test "${with_mac+set}" = set; then
2629 withval="$with_mac"
c228d3a4 2630 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2631fi;
2632
2633# Check whether --with-cocoa or --without-cocoa was given.
2634if test "${with_cocoa+set}" = set; then
2635 withval="$with_cocoa"
c228d3a4 2636 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2637fi;
2638
2639# Check whether --with-wine or --without-wine was given.
2640if test "${with_wine+set}" = set; then
2641 withval="$with_wine"
2642 wxUSE_WINE="$withval" CACHE_WINE=1
2643fi;
2644
2645# Check whether --with-msw or --without-msw was given.
2646if test "${with_msw+set}" = set; then
2647 withval="$with_msw"
2648 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2649fi;
2650
2651# Check whether --with-pm or --without-pm was given.
2652if test "${with_pm+set}" = set; then
2653 withval="$with_pm"
2654 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2655fi;
2656
2657# Check whether --with-mgl or --without-mgl was given.
2658if test "${with_mgl+set}" = set; then
2659 withval="$with_mgl"
2660 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2661fi;
2662
2663# Check whether --with-microwin or --without-microwin was given.
2664if test "${with_microwin+set}" = set; then
2665 withval="$with_microwin"
2666 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2667fi;
2668
2669# Check whether --with-x11 or --without-x11 was given.
2670if test "${with_x11+set}" = set; then
2671 withval="$with_x11"
2672 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2673fi;
2674
2675 enablestring=
2676 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2677echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2678 no_cache=0
2679 # Check whether --enable-nanox or --disable-nanox was given.
2680if test "${enable_nanox+set}" = set; then
2681 enableval="$enable_nanox"
2682
2683 if test "$enableval" = yes; then
2684 ac_cv_use_nanox='wxUSE_NANOX=yes'
2685 else
2686 ac_cv_use_nanox='wxUSE_NANOX=no'
2687 fi
2688
2689else
2690
2691 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2692 if test "x$LINE" != x ; then
2693 eval "DEFAULT_$LINE"
2694 else
2695 no_cache=1
2696 fi
2697
2698 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2699
2700fi;
2701
2702 eval "$ac_cv_use_nanox"
2703 if test "$no_cache" != 1; then
2704 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2705 fi
2706
2707 if test "$wxUSE_NANOX" = yes; then
2708 echo "$as_me:$LINENO: result: yes" >&5
2709echo "${ECHO_T}yes" >&6
2710 else
2711 echo "$as_me:$LINENO: result: no" >&5
2712echo "${ECHO_T}no" >&6
2713 fi
2714
2715
f34ca037
MW
2716# Check whether --enable-gtk2 or --disable-gtk2 was given.
2717if test "${enable_gtk2+set}" = set; then
2718 enableval="$enable_gtk2"
2719 wxUSE_GTK2="$enableval"
2720fi;
a848cd7e 2721
a848cd7e
SC
2722 enablestring=
2723 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2724echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2725 no_cache=0
2726 # Check whether --enable-gpe or --disable-gpe was given.
2727if test "${enable_gpe+set}" = set; then
2728 enableval="$enable_gpe"
2729
2730 if test "$enableval" = yes; then
2731 ac_cv_use_gpe='wxUSE_GPE=yes'
2732 else
2733 ac_cv_use_gpe='wxUSE_GPE=no'
2734 fi
2735
2736else
2737
2738 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2739 if test "x$LINE" != x ; then
2740 eval "DEFAULT_$LINE"
2741 else
2742 no_cache=1
2743 fi
2744
2745 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2746
2747fi;
2748
2749 eval "$ac_cv_use_gpe"
2750 if test "$no_cache" != 1; then
2751 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2752 fi
2753
2754 if test "$wxUSE_GPE" = yes; then
2755 echo "$as_me:$LINENO: result: yes" >&5
2756echo "${ECHO_T}yes" >&6
2757 else
2758 echo "$as_me:$LINENO: result: no" >&5
2759echo "${ECHO_T}no" >&6
2760 fi
2761
2762
2763
2764 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2765echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2766 no_cache=0
2767
2768# Check whether --with-libpng or --without-libpng was given.
2769if test "${with_libpng+set}" = set; then
2770 withval="$with_libpng"
2771
2772 if test "$withval" = yes; then
2773 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2774 elif test "$withval" = no; then
2775 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2776 elif test "$withval" = sys; then
2777 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2778 elif test "$withval" = builtin; then
2779 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2780 else
2781 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2782echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2783 { (exit 1); exit 1; }; }
2784 fi
2785
2786else
2787
2788 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2789 if test "x$LINE" != x ; then
2790 eval "DEFAULT_$LINE"
2791 else
2792 no_cache=1
2793 fi
2794
2795 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2796
2797fi;
2798
2799 eval "$ac_cv_use_libpng"
2800 if test "$no_cache" != 1; then
2801 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2802 fi
2803
2804 if test "$wxUSE_LIBPNG" = yes; then
2805 echo "$as_me:$LINENO: result: yes" >&5
2806echo "${ECHO_T}yes" >&6
2807 elif test "$wxUSE_LIBPNG" = no; then
2808 echo "$as_me:$LINENO: result: no" >&5
2809echo "${ECHO_T}no" >&6
2810 elif test "$wxUSE_LIBPNG" = sys; then
2811 echo "$as_me:$LINENO: result: system version" >&5
2812echo "${ECHO_T}system version" >&6
2813 elif test "$wxUSE_LIBPNG" = builtin; then
2814 echo "$as_me:$LINENO: result: builtin version" >&5
2815echo "${ECHO_T}builtin version" >&6
2816 else
2817 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2818echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2819 { (exit 1); exit 1; }; }
2820 fi
2821
2822
2823 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2824echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2825 no_cache=0
2826
2827# Check whether --with-libjpeg or --without-libjpeg was given.
2828if test "${with_libjpeg+set}" = set; then
2829 withval="$with_libjpeg"
2830
2831 if test "$withval" = yes; then
2832 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2833 elif test "$withval" = no; then
2834 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2835 elif test "$withval" = sys; then
2836 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2837 elif test "$withval" = builtin; then
2838 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2839 else
2840 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2841echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2842 { (exit 1); exit 1; }; }
2843 fi
2844
2845else
2846
2847 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2848 if test "x$LINE" != x ; then
2849 eval "DEFAULT_$LINE"
2850 else
2851 no_cache=1
2852 fi
2853
2854 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2855
2856fi;
2857
2858 eval "$ac_cv_use_libjpeg"
2859 if test "$no_cache" != 1; then
2860 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2861 fi
2862
2863 if test "$wxUSE_LIBJPEG" = yes; then
2864 echo "$as_me:$LINENO: result: yes" >&5
2865echo "${ECHO_T}yes" >&6
2866 elif test "$wxUSE_LIBJPEG" = no; then
2867 echo "$as_me:$LINENO: result: no" >&5
2868echo "${ECHO_T}no" >&6
2869 elif test "$wxUSE_LIBJPEG" = sys; then
2870 echo "$as_me:$LINENO: result: system version" >&5
2871echo "${ECHO_T}system version" >&6
2872 elif test "$wxUSE_LIBJPEG" = builtin; then
2873 echo "$as_me:$LINENO: result: builtin version" >&5
2874echo "${ECHO_T}builtin version" >&6
2875 else
2876 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2877echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2878 { (exit 1); exit 1; }; }
2879 fi
2880
2881
2882 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2883echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2884 no_cache=0
2885
2886# Check whether --with-libtiff or --without-libtiff was given.
2887if test "${with_libtiff+set}" = set; then
2888 withval="$with_libtiff"
2889
2890 if test "$withval" = yes; then
2891 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2892 elif test "$withval" = no; then
2893 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2894 elif test "$withval" = sys; then
2895 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2896 elif test "$withval" = builtin; then
2897 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2898 else
2899 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2900echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2901 { (exit 1); exit 1; }; }
2902 fi
2903
2904else
2905
2906 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2907 if test "x$LINE" != x ; then
2908 eval "DEFAULT_$LINE"
2909 else
2910 no_cache=1
2911 fi
2912
2913 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2914
2915fi;
2916
2917 eval "$ac_cv_use_libtiff"
2918 if test "$no_cache" != 1; then
2919 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2920 fi
2921
2922 if test "$wxUSE_LIBTIFF" = yes; then
2923 echo "$as_me:$LINENO: result: yes" >&5
2924echo "${ECHO_T}yes" >&6
2925 elif test "$wxUSE_LIBTIFF" = no; then
2926 echo "$as_me:$LINENO: result: no" >&5
2927echo "${ECHO_T}no" >&6
2928 elif test "$wxUSE_LIBTIFF" = sys; then
2929 echo "$as_me:$LINENO: result: system version" >&5
2930echo "${ECHO_T}system version" >&6
2931 elif test "$wxUSE_LIBTIFF" = builtin; then
2932 echo "$as_me:$LINENO: result: builtin version" >&5
2933echo "${ECHO_T}builtin version" >&6
2934 else
2935 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2936echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2937 { (exit 1); exit 1; }; }
2938 fi
2939
2940
2941 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2942echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2943 no_cache=0
2944
2945# Check whether --with-libxpm or --without-libxpm was given.
2946if test "${with_libxpm+set}" = set; then
2947 withval="$with_libxpm"
2948
2949 if test "$withval" = yes; then
2950 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2951 elif test "$withval" = no; then
2952 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2953 elif test "$withval" = sys; then
2954 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2955 elif test "$withval" = builtin; then
2956 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2957 else
2958 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2959echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2960 { (exit 1); exit 1; }; }
2961 fi
2962
2963else
2964
2965 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2966 if test "x$LINE" != x ; then
2967 eval "DEFAULT_$LINE"
2968 else
2969 no_cache=1
2970 fi
2971
2972 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2973
2974fi;
2975
2976 eval "$ac_cv_use_libxpm"
2977 if test "$no_cache" != 1; then
2978 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2979 fi
2980
2981 if test "$wxUSE_LIBXPM" = yes; then
2982 echo "$as_me:$LINENO: result: yes" >&5
2983echo "${ECHO_T}yes" >&6
2984 elif test "$wxUSE_LIBXPM" = no; then
2985 echo "$as_me:$LINENO: result: no" >&5
2986echo "${ECHO_T}no" >&6
2987 elif test "$wxUSE_LIBXPM" = sys; then
2988 echo "$as_me:$LINENO: result: system version" >&5
2989echo "${ECHO_T}system version" >&6
2990 elif test "$wxUSE_LIBXPM" = builtin; then
2991 echo "$as_me:$LINENO: result: builtin version" >&5
2992echo "${ECHO_T}builtin version" >&6
2993 else
2994 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2995echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2996 { (exit 1); exit 1; }; }
2997 fi
2998
2999
3000 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
3001echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3002 no_cache=0
3003
3004# Check whether --with-libmspack or --without-libmspack was given.
3005if test "${with_libmspack+set}" = set; then
3006 withval="$with_libmspack"
3007
3008 if test "$withval" = yes; then
3009 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3010 else
3011 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3012 fi
3013
3014else
3015
3016 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3017 if test "x$LINE" != x ; then
3018 eval "DEFAULT_$LINE"
3019 else
3020 no_cache=1
3021 fi
3022
3023 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3024
3025fi;
3026
3027 eval "$ac_cv_use_libmspack"
3028 if test "$no_cache" != 1; then
3029 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3030 fi
3031
3032 if test "$wxUSE_LIBMSPACK" = yes; then
3033 echo "$as_me:$LINENO: result: yes" >&5
3034echo "${ECHO_T}yes" >&6
3035 else
3036 echo "$as_me:$LINENO: result: no" >&5
3037echo "${ECHO_T}no" >&6
3038 fi
3039
3040
3041 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3042echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3043 no_cache=0
3044
3045# Check whether --with-sdl or --without-sdl was given.
3046if test "${with_sdl+set}" = set; then
3047 withval="$with_sdl"
3048
3049 if test "$withval" = yes; then
3050 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3051 else
3052 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3053 fi
3054
3055else
3056
3057 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3058 if test "x$LINE" != x ; then
3059 eval "DEFAULT_$LINE"
3060 else
3061 no_cache=1
3062 fi
3063
3064 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3065
3066fi;
3067
3068 eval "$ac_cv_use_sdl"
3069 if test "$no_cache" != 1; then
3070 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3071 fi
3072
3073 if test "$wxUSE_LIBSDL" = yes; then
3074 echo "$as_me:$LINENO: result: yes" >&5
3075echo "${ECHO_T}yes" >&6
3076 else
3077 echo "$as_me:$LINENO: result: no" >&5
3078echo "${ECHO_T}no" >&6
3079 fi
3080
3081
d1c38808
VZ
3082 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3083echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3084 no_cache=0
3085
3086# Check whether --with-gnomeprint or --without-gnomeprint was given.
3087if test "${with_gnomeprint+set}" = set; then
3088 withval="$with_gnomeprint"
3089
3090 if test "$withval" = yes; then
3091 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3092 else
3093 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3094 fi
3095
3096else
3097
3098 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3099 if test "x$LINE" != x ; then
3100 eval "DEFAULT_$LINE"
3101 else
3102 no_cache=1
3103 fi
3104
3105 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3106
3107fi;
3108
3109 eval "$ac_cv_use_gnomeprint"
3110 if test "$no_cache" != 1; then
3111 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3112 fi
3113
3114 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3115 echo "$as_me:$LINENO: result: yes" >&5
3116echo "${ECHO_T}yes" >&6
3117 else
3118 echo "$as_me:$LINENO: result: no" >&5
3119echo "${ECHO_T}no" >&6
3120 fi
3121
3122
a848cd7e
SC
3123 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3124echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3125 no_cache=0
3126
3127# Check whether --with-opengl or --without-opengl was given.
3128if test "${with_opengl+set}" = set; then
3129 withval="$with_opengl"
3130
3131 if test "$withval" = yes; then
3132 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3133 else
3134 ac_cv_use_opengl='wxUSE_OPENGL=no'
3135 fi
3136
3137else
3138
3139 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3140 if test "x$LINE" != x ; then
3141 eval "DEFAULT_$LINE"
3142 else
3143 no_cache=1
3144 fi
3145
3146 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3147
3148fi;
3149
3150 eval "$ac_cv_use_opengl"
3151 if test "$no_cache" != 1; then
3152 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3153 fi
3154
3155 if test "$wxUSE_OPENGL" = yes; then
3156 echo "$as_me:$LINENO: result: yes" >&5
3157echo "${ECHO_T}yes" >&6
3158 else
3159 echo "$as_me:$LINENO: result: no" >&5
3160echo "${ECHO_T}no" >&6
3161 fi
3162
3163
3164fi
3165
3166
3167 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3168echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3169 no_cache=0
3170
3171# Check whether --with-dmalloc or --without-dmalloc was given.
3172if test "${with_dmalloc+set}" = set; then
3173 withval="$with_dmalloc"
3174
3175 if test "$withval" = yes; then
3176 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3177 else
3178 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3179 fi
3180
3181else
3182
3183 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3184 if test "x$LINE" != x ; then
3185 eval "DEFAULT_$LINE"
3186 else
3187 no_cache=1
3188 fi
3189
3190 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3191
3192fi;
3193
3194 eval "$ac_cv_use_dmalloc"
3195 if test "$no_cache" != 1; then
3196 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3197 fi
3198
3199 if test "$wxUSE_DMALLOC" = yes; then
3200 echo "$as_me:$LINENO: result: yes" >&5
3201echo "${ECHO_T}yes" >&6
3202 else
3203 echo "$as_me:$LINENO: result: no" >&5
3204echo "${ECHO_T}no" >&6
3205 fi
3206
3207
3208 echo "$as_me:$LINENO: checking for --with-regex" >&5
3209echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3210 no_cache=0
3211
3212# Check whether --with-regex or --without-regex was given.
3213if test "${with_regex+set}" = set; then
3214 withval="$with_regex"
3215
3216 if test "$withval" = yes; then
3217 ac_cv_use_regex='wxUSE_REGEX=yes'
3218 elif test "$withval" = no; then
3219 ac_cv_use_regex='wxUSE_REGEX=no'
3220 elif test "$withval" = sys; then
3221 ac_cv_use_regex='wxUSE_REGEX=sys'
3222 elif test "$withval" = builtin; then
3223 ac_cv_use_regex='wxUSE_REGEX=builtin'
3224 else
3225 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3226echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3227 { (exit 1); exit 1; }; }
3228 fi
3229
3230else
3231
3232 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3233 if test "x$LINE" != x ; then
3234 eval "DEFAULT_$LINE"
3235 else
3236 no_cache=1
3237 fi
3238
3239 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3240
3241fi;
3242
3243 eval "$ac_cv_use_regex"
3244 if test "$no_cache" != 1; then
3245 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3246 fi
3247
3248 if test "$wxUSE_REGEX" = yes; then
3249 echo "$as_me:$LINENO: result: yes" >&5
3250echo "${ECHO_T}yes" >&6
3251 elif test "$wxUSE_REGEX" = no; then
3252 echo "$as_me:$LINENO: result: no" >&5
3253echo "${ECHO_T}no" >&6
3254 elif test "$wxUSE_REGEX" = sys; then
3255 echo "$as_me:$LINENO: result: system version" >&5
3256echo "${ECHO_T}system version" >&6
3257 elif test "$wxUSE_REGEX" = builtin; then
3258 echo "$as_me:$LINENO: result: builtin version" >&5
3259echo "${ECHO_T}builtin version" >&6
3260 else
3261 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3262echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3263 { (exit 1); exit 1; }; }
3264 fi
3265
3266
3267 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3268echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3269 no_cache=0
3270
3271# Check whether --with-zlib or --without-zlib was given.
3272if test "${with_zlib+set}" = set; then
3273 withval="$with_zlib"
3274
3275 if test "$withval" = yes; then
3276 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3277 elif test "$withval" = no; then
3278 ac_cv_use_zlib='wxUSE_ZLIB=no'
3279 elif test "$withval" = sys; then
3280 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3281 elif test "$withval" = builtin; then
3282 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3283 else
3284 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3285echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3286 { (exit 1); exit 1; }; }
3287 fi
3288
3289else
3290
3291 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3292 if test "x$LINE" != x ; then
3293 eval "DEFAULT_$LINE"
3294 else
3295 no_cache=1
3296 fi
3297
3298 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3299
3300fi;
3301
3302 eval "$ac_cv_use_zlib"
3303 if test "$no_cache" != 1; then
3304 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3305 fi
3306
3307 if test "$wxUSE_ZLIB" = yes; then
3308 echo "$as_me:$LINENO: result: yes" >&5
3309echo "${ECHO_T}yes" >&6
3310 elif test "$wxUSE_ZLIB" = no; then
3311 echo "$as_me:$LINENO: result: no" >&5
3312echo "${ECHO_T}no" >&6
3313 elif test "$wxUSE_ZLIB" = sys; then
3314 echo "$as_me:$LINENO: result: system version" >&5
3315echo "${ECHO_T}system version" >&6
3316 elif test "$wxUSE_ZLIB" = builtin; then
3317 echo "$as_me:$LINENO: result: builtin version" >&5
3318echo "${ECHO_T}builtin version" >&6
3319 else
3320 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3321echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3322 { (exit 1); exit 1; }; }
3323 fi
3324
3325
3326 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3327echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3328 no_cache=0
3329
3330# Check whether --with-odbc or --without-odbc was given.
3331if test "${with_odbc+set}" = set; then
3332 withval="$with_odbc"
3333
3334 if test "$withval" = yes; then
3335 ac_cv_use_odbc='wxUSE_ODBC=yes'
3336 elif test "$withval" = no; then
3337 ac_cv_use_odbc='wxUSE_ODBC=no'
3338 elif test "$withval" = sys; then
3339 ac_cv_use_odbc='wxUSE_ODBC=sys'
3340 elif test "$withval" = builtin; then
3341 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3342 else
3343 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3344echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3345 { (exit 1); exit 1; }; }
3346 fi
3347
3348else
3349
3350 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3351 if test "x$LINE" != x ; then
3352 eval "DEFAULT_$LINE"
3353 else
3354 no_cache=1
3355 fi
3356
3357 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3358
3359fi;
3360
3361 eval "$ac_cv_use_odbc"
3362 if test "$no_cache" != 1; then
3363 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3364 fi
3365
3366 if test "$wxUSE_ODBC" = yes; then
3367 echo "$as_me:$LINENO: result: yes" >&5
3368echo "${ECHO_T}yes" >&6
3369 elif test "$wxUSE_ODBC" = no; then
3370 echo "$as_me:$LINENO: result: no" >&5
3371echo "${ECHO_T}no" >&6
3372 elif test "$wxUSE_ODBC" = sys; then
3373 echo "$as_me:$LINENO: result: system version" >&5
3374echo "${ECHO_T}system version" >&6
3375 elif test "$wxUSE_ODBC" = builtin; then
3376 echo "$as_me:$LINENO: result: builtin version" >&5
3377echo "${ECHO_T}builtin version" >&6
3378 else
3379 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3380echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3381 { (exit 1); exit 1; }; }
3382 fi
3383
3384
3385 echo "$as_me:$LINENO: checking for --with-expat" >&5
3386echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3387 no_cache=0
3388
3389# Check whether --with-expat or --without-expat was given.
3390if test "${with_expat+set}" = set; then
3391 withval="$with_expat"
3392
3393 if test "$withval" = yes; then
3394 ac_cv_use_expat='wxUSE_EXPAT=yes'
3395 elif test "$withval" = no; then
3396 ac_cv_use_expat='wxUSE_EXPAT=no'
3397 elif test "$withval" = sys; then
3398 ac_cv_use_expat='wxUSE_EXPAT=sys'
3399 elif test "$withval" = builtin; then
3400 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3401 else
3402 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3403echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3404 { (exit 1); exit 1; }; }
3405 fi
3406
3407else
3408
3409 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3410 if test "x$LINE" != x ; then
3411 eval "DEFAULT_$LINE"
3412 else
3413 no_cache=1
3414 fi
3415
3416 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3417
3418fi;
3419
3420 eval "$ac_cv_use_expat"
3421 if test "$no_cache" != 1; then
3422 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3423 fi
3424
3425 if test "$wxUSE_EXPAT" = yes; then
3426 echo "$as_me:$LINENO: result: yes" >&5
3427echo "${ECHO_T}yes" >&6
3428 elif test "$wxUSE_EXPAT" = no; then
3429 echo "$as_me:$LINENO: result: no" >&5
3430echo "${ECHO_T}no" >&6
3431 elif test "$wxUSE_EXPAT" = sys; then
3432 echo "$as_me:$LINENO: result: system version" >&5
3433echo "${ECHO_T}system version" >&6
3434 elif test "$wxUSE_EXPAT" = builtin; then
3435 echo "$as_me:$LINENO: result: builtin version" >&5
3436echo "${ECHO_T}builtin version" >&6
3437 else
3438 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3439echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3440 { (exit 1); exit 1; }; }
3441 fi
3442
3443
3444
3445
3446 enablestring=
3447 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3448echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3449 no_cache=0
3450 # Check whether --enable-shared or --disable-shared was given.
3451if test "${enable_shared+set}" = set; then
3452 enableval="$enable_shared"
3453
3454 if test "$enableval" = yes; then
3455 ac_cv_use_shared='wxUSE_SHARED=yes'
3456 else
3457 ac_cv_use_shared='wxUSE_SHARED=no'
3458 fi
3459
3460else
3461
3462 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3463 if test "x$LINE" != x ; then
3464 eval "DEFAULT_$LINE"
3465 else
3466 no_cache=1
3467 fi
3468
3469 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3470
3471fi;
3472
3473 eval "$ac_cv_use_shared"
3474 if test "$no_cache" != 1; then
3475 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3476 fi
3477
3478 if test "$wxUSE_SHARED" = yes; then
3479 echo "$as_me:$LINENO: result: yes" >&5
3480echo "${ECHO_T}yes" >&6
3481 else
3482 echo "$as_me:$LINENO: result: no" >&5
3483echo "${ECHO_T}no" >&6
3484 fi
3485
3486
3487 enablestring=
3488 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3489echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3490 no_cache=0
3491 # Check whether --enable-optimise or --disable-optimise was given.
3492if test "${enable_optimise+set}" = set; then
3493 enableval="$enable_optimise"
3494
3495 if test "$enableval" = yes; then
3496 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3497 else
3498 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3499 fi
3500
3501else
3502
3503 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3504 if test "x$LINE" != x ; then
3505 eval "DEFAULT_$LINE"
3506 else
3507 no_cache=1
3508 fi
3509
3510 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3511
3512fi;
3513
3514 eval "$ac_cv_use_optimise"
3515 if test "$no_cache" != 1; then
3516 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3517 fi
3518
3519 if test "$wxUSE_OPTIMISE" = yes; then
3520 echo "$as_me:$LINENO: result: yes" >&5
3521echo "${ECHO_T}yes" >&6
3522 else
3523 echo "$as_me:$LINENO: result: no" >&5
3524echo "${ECHO_T}no" >&6
3525 fi
3526
3527
3528 enablestring=
3529 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3530echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3531 no_cache=0
3532 # Check whether --enable-debug or --disable-debug was given.
3533if test "${enable_debug+set}" = set; then
3534 enableval="$enable_debug"
3535
3536 if test "$enableval" = yes; then
3537 ac_cv_use_debug='wxUSE_DEBUG=yes'
3538 else
3539 ac_cv_use_debug='wxUSE_DEBUG=no'
3540 fi
3541
3542else
3543
3544 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3545 if test "x$LINE" != x ; then
3546 eval "DEFAULT_$LINE"
3547 else
3548 no_cache=1
3549 fi
3550
3551 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3552
3553fi;
3554
3555 eval "$ac_cv_use_debug"
3556 if test "$no_cache" != 1; then
3557 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3558 fi
3559
3560 if test "$wxUSE_DEBUG" = yes; then
3561 echo "$as_me:$LINENO: result: yes" >&5
3562echo "${ECHO_T}yes" >&6
3563 else
3564 echo "$as_me:$LINENO: result: no" >&5
3565echo "${ECHO_T}no" >&6
3566 fi
3567
3568
3569 enablestring=
3570 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3571echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3572 no_cache=0
3573 # Check whether --enable-stl or --disable-stl was given.
3574if test "${enable_stl+set}" = set; then
3575 enableval="$enable_stl"
3576
3577 if test "$enableval" = yes; then
3578 ac_cv_use_stl='wxUSE_STL=yes'
3579 else
3580 ac_cv_use_stl='wxUSE_STL=no'
3581 fi
3582
3583else
3584
3585 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3586 if test "x$LINE" != x ; then
3587 eval "DEFAULT_$LINE"
3588 else
3589 no_cache=1
3590 fi
3591
3592 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3593
3594fi;
3595
3596 eval "$ac_cv_use_stl"
3597 if test "$no_cache" != 1; then
3598 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3599 fi
3600
3601 if test "$wxUSE_STL" = yes; then
3602 echo "$as_me:$LINENO: result: yes" >&5
3603echo "${ECHO_T}yes" >&6
3604 else
3605 echo "$as_me:$LINENO: result: no" >&5
3606echo "${ECHO_T}no" >&6
3607 fi
3608
3609if test "$USE_OS2" = "1"; then
69120ee4 3610 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3611
3612 enablestring=
3613 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3614echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3615 no_cache=0
3616 # Check whether --enable-omf or --disable-omf was given.
3617if test "${enable_omf+set}" = set; then
3618 enableval="$enable_omf"
3619
3620 if test "$enableval" = yes; then
3621 ac_cv_use_omf='wxUSE_OMF=yes'
3622 else
3623 ac_cv_use_omf='wxUSE_OMF=no'
3624 fi
3625
3626else
3627
3628 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3629 if test "x$LINE" != x ; then
3630 eval "DEFAULT_$LINE"
3631 else
3632 no_cache=1
3633 fi
3634
3635 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3636
3637fi;
3638
3639 eval "$ac_cv_use_omf"
3640 if test "$no_cache" != 1; then
3641 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3642 fi
3643
3644 if test "$wxUSE_OMF" = yes; then
3645 echo "$as_me:$LINENO: result: yes" >&5
3646echo "${ECHO_T}yes" >&6
3647 else
3648 echo "$as_me:$LINENO: result: no" >&5
3649echo "${ECHO_T}no" >&6
3650 fi
3651
3652fi
3653
3654if test "$wxUSE_DEBUG" = "yes"; then
3655 DEFAULT_wxUSE_DEBUG_FLAG=yes
3656 DEFAULT_wxUSE_DEBUG_INFO=yes
3657 BUILD=debug
3658elif test "$wxUSE_DEBUG" = "no"; then
3659 DEFAULT_wxUSE_DEBUG_FLAG=no
3660 DEFAULT_wxUSE_DEBUG_INFO=no
3661 BUILD=release
3662fi
3663
3664
3665 enablestring=
3666 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3667echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3668 no_cache=0
3669 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3670if test "${enable_debug_flag+set}" = set; then
3671 enableval="$enable_debug_flag"
3672
3673 if test "$enableval" = yes; then
3674 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3675 else
3676 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3677 fi
3678
3679else
3680
3681 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3682 if test "x$LINE" != x ; then
3683 eval "DEFAULT_$LINE"
3684 else
3685 no_cache=1
3686 fi
3687
3688 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3689
3690fi;
3691
3692 eval "$ac_cv_use_debug_flag"
3693 if test "$no_cache" != 1; then
3694 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3695 fi
3696
3697 if test "$wxUSE_DEBUG_FLAG" = yes; then
3698 echo "$as_me:$LINENO: result: yes" >&5
3699echo "${ECHO_T}yes" >&6
3700 else
3701 echo "$as_me:$LINENO: result: no" >&5
3702echo "${ECHO_T}no" >&6
3703 fi
3704
3705
3706 enablestring=
3707 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3708echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3709 no_cache=0
3710 # Check whether --enable-debug_info or --disable-debug_info was given.
3711if test "${enable_debug_info+set}" = set; then
3712 enableval="$enable_debug_info"
3713
3714 if test "$enableval" = yes; then
3715 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3716 else
3717 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3718 fi
3719
3720else
3721
3722 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3723 if test "x$LINE" != x ; then
3724 eval "DEFAULT_$LINE"
3725 else
3726 no_cache=1
3727 fi
3728
3729 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3730
3731fi;
3732
3733 eval "$ac_cv_use_debug_info"
3734 if test "$no_cache" != 1; then
3735 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3736 fi
3737
3738 if test "$wxUSE_DEBUG_INFO" = yes; then
3739 echo "$as_me:$LINENO: result: yes" >&5
3740echo "${ECHO_T}yes" >&6
3741 else
3742 echo "$as_me:$LINENO: result: no" >&5
3743echo "${ECHO_T}no" >&6
3744 fi
3745
3746
3747 enablestring=
3748 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3749echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3750 no_cache=0
3751 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3752if test "${enable_debug_gdb+set}" = set; then
3753 enableval="$enable_debug_gdb"
3754
3755 if test "$enableval" = yes; then
3756 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3757 else
3758 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3759 fi
3760
3761else
3762
3763 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3764 if test "x$LINE" != x ; then
3765 eval "DEFAULT_$LINE"
3766 else
3767 no_cache=1
3768 fi
3769
3770 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3771
3772fi;
3773
3774 eval "$ac_cv_use_debug_gdb"
3775 if test "$no_cache" != 1; then
3776 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3777 fi
3778
3779 if test "$wxUSE_DEBUG_GDB" = yes; then
3780 echo "$as_me:$LINENO: result: yes" >&5
3781echo "${ECHO_T}yes" >&6
3782 else
3783 echo "$as_me:$LINENO: result: no" >&5
3784echo "${ECHO_T}no" >&6
3785 fi
3786
3787
3788 enablestring=
3789 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3790echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3791 no_cache=0
3792 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3793if test "${enable_debug_cntxt+set}" = set; then
3794 enableval="$enable_debug_cntxt"
3795
3796 if test "$enableval" = yes; then
3797 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3798 else
3799 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3800 fi
3801
3802else
3803
3804 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3805 if test "x$LINE" != x ; then
3806 eval "DEFAULT_$LINE"
3807 else
3808 no_cache=1
3809 fi
3810
3811 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3812
3813fi;
3814
3815 eval "$ac_cv_use_debug_cntxt"
3816 if test "$no_cache" != 1; then
3817 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3818 fi
3819
3820 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3821 echo "$as_me:$LINENO: result: yes" >&5
3822echo "${ECHO_T}yes" >&6
3823 else
3824 echo "$as_me:$LINENO: result: no" >&5
3825echo "${ECHO_T}no" >&6
3826 fi
3827
3828
3829 enablestring=
3830 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3831echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3832 no_cache=0
3833 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3834if test "${enable_mem_tracing+set}" = set; then
3835 enableval="$enable_mem_tracing"
3836
3837 if test "$enableval" = yes; then
3838 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3839 else
3840 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3841 fi
3842
3843else
3844
3845 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3846 if test "x$LINE" != x ; then
3847 eval "DEFAULT_$LINE"
3848 else
3849 no_cache=1
3850 fi
3851
3852 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3853
3854fi;
3855
3856 eval "$ac_cv_use_mem_tracing"
3857 if test "$no_cache" != 1; then
3858 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3859 fi
3860
3861 if test "$wxUSE_MEM_TRACING" = yes; then
3862 echo "$as_me:$LINENO: result: yes" >&5
3863echo "${ECHO_T}yes" >&6
3864 else
3865 echo "$as_me:$LINENO: result: no" >&5
3866echo "${ECHO_T}no" >&6
3867 fi
3868
3869
3870 enablestring=
3871 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3872echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3873 no_cache=0
3874 # Check whether --enable-profile or --disable-profile was given.
3875if test "${enable_profile+set}" = set; then
3876 enableval="$enable_profile"
3877
3878 if test "$enableval" = yes; then
3879 ac_cv_use_profile='wxUSE_PROFILE=yes'
3880 else
3881 ac_cv_use_profile='wxUSE_PROFILE=no'
3882 fi
3883
3884else
3885
3886 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3887 if test "x$LINE" != x ; then
3888 eval "DEFAULT_$LINE"
3889 else
3890 no_cache=1
3891 fi
3892
3893 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3894
3895fi;
3896
3897 eval "$ac_cv_use_profile"
3898 if test "$no_cache" != 1; then
3899 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3900 fi
3901
3902 if test "$wxUSE_PROFILE" = yes; then
3903 echo "$as_me:$LINENO: result: yes" >&5
3904echo "${ECHO_T}yes" >&6
3905 else
3906 echo "$as_me:$LINENO: result: no" >&5
3907echo "${ECHO_T}no" >&6
3908 fi
3909
3910
3911 enablestring=
3912 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3913echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3914 no_cache=0
3915 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3916if test "${enable_no_rtti+set}" = set; then
3917 enableval="$enable_no_rtti"
3918
3919 if test "$enableval" = yes; then
3920 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3921 else
3922 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3923 fi
3924
3925else
3926
3927 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3928 if test "x$LINE" != x ; then
3929 eval "DEFAULT_$LINE"
3930 else
3931 no_cache=1
3932 fi
3933
3934 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3935
3936fi;
3937
3938 eval "$ac_cv_use_no_rtti"
3939 if test "$no_cache" != 1; then
3940 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3941 fi
3942
3943 if test "$wxUSE_NO_RTTI" = yes; then
3944 echo "$as_me:$LINENO: result: yes" >&5
3945echo "${ECHO_T}yes" >&6
3946 else
3947 echo "$as_me:$LINENO: result: no" >&5
3948echo "${ECHO_T}no" >&6
3949 fi
3950
3951
3952 enablestring=
3953 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3954echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3955 no_cache=0
3956 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3957if test "${enable_no_exceptions+set}" = set; then
3958 enableval="$enable_no_exceptions"
3959
3960 if test "$enableval" = yes; then
3961 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3962 else
3963 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3964 fi
3965
3966else
3967
3968 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3969 if test "x$LINE" != x ; then
3970 eval "DEFAULT_$LINE"
3971 else
3972 no_cache=1
3973 fi
3974
3975 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3976
3977fi;
3978
3979 eval "$ac_cv_use_no_exceptions"
3980 if test "$no_cache" != 1; then
3981 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3982 fi
3983
3984 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3985 echo "$as_me:$LINENO: result: yes" >&5
3986echo "${ECHO_T}yes" >&6
3987 else
3988 echo "$as_me:$LINENO: result: no" >&5
3989echo "${ECHO_T}no" >&6
3990 fi
3991
3992
3993 enablestring=
3994 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3995echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3996 no_cache=0
3997 # Check whether --enable-permissive or --disable-permissive was given.
3998if test "${enable_permissive+set}" = set; then
3999 enableval="$enable_permissive"
4000
4001 if test "$enableval" = yes; then
4002 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4003 else
4004 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4005 fi
4006
4007else
4008
4009 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4010 if test "x$LINE" != x ; then
4011 eval "DEFAULT_$LINE"
4012 else
4013 no_cache=1
4014 fi
4015
4016 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4017
4018fi;
4019
4020 eval "$ac_cv_use_permissive"
4021 if test "$no_cache" != 1; then
4022 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4023 fi
4024
4025 if test "$wxUSE_PERMISSIVE" = yes; then
4026 echo "$as_me:$LINENO: result: yes" >&5
4027echo "${ECHO_T}yes" >&6
4028 else
4029 echo "$as_me:$LINENO: result: no" >&5
4030echo "${ECHO_T}no" >&6
4031 fi
4032
4033
4034 enablestring=
4035 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4036echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4037 no_cache=0
4038 # Check whether --enable-no_deps or --disable-no_deps was given.
4039if test "${enable_no_deps+set}" = set; then
4040 enableval="$enable_no_deps"
4041
4042 if test "$enableval" = yes; then
4043 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4044 else
4045 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4046 fi
4047
4048else
4049
4050 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4051 if test "x$LINE" != x ; then
4052 eval "DEFAULT_$LINE"
4053 else
4054 no_cache=1
4055 fi
4056
4057 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4058
4059fi;
4060
4061 eval "$ac_cv_use_no_deps"
4062 if test "$no_cache" != 1; then
4063 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4064 fi
4065
4066 if test "$wxUSE_NO_DEPS" = yes; then
4067 echo "$as_me:$LINENO: result: yes" >&5
4068echo "${ECHO_T}yes" >&6
4069 else
4070 echo "$as_me:$LINENO: result: no" >&5
4071echo "${ECHO_T}no" >&6
4072 fi
4073
4074
4075
4076 enablestring=
4077 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4078echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4079 no_cache=0
4080 # Check whether --enable-compat22 or --disable-compat22 was given.
4081if test "${enable_compat22+set}" = set; then
4082 enableval="$enable_compat22"
4083
4084 if test "$enableval" = yes; then
4085 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4086 else
4087 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4088 fi
4089
4090else
4091
4092 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4093 if test "x$LINE" != x ; then
4094 eval "DEFAULT_$LINE"
4095 else
4096 no_cache=1
4097 fi
4098
4099 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4100
4101fi;
4102
4103 eval "$ac_cv_use_compat22"
4104 if test "$no_cache" != 1; then
4105 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4106 fi
4107
4108 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4109 echo "$as_me:$LINENO: result: yes" >&5
4110echo "${ECHO_T}yes" >&6
4111 else
4112 echo "$as_me:$LINENO: result: no" >&5
4113echo "${ECHO_T}no" >&6
4114 fi
4115
4116
4117 enablestring=disable
4118 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4119echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4120 no_cache=0
4121 # Check whether --enable-compat24 or --disable-compat24 was given.
4122if test "${enable_compat24+set}" = set; then
4123 enableval="$enable_compat24"
4124
4125 if test "$enableval" = yes; then
4126 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4127 else
4128 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4129 fi
4130
4131else
4132
4133 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4134 if test "x$LINE" != x ; then
4135 eval "DEFAULT_$LINE"
4136 else
4137 no_cache=1
4138 fi
4139
4140 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4141
4142fi;
4143
4144 eval "$ac_cv_use_compat24"
4145 if test "$no_cache" != 1; then
4146 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4147 fi
4148
4149 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4150 echo "$as_me:$LINENO: result: yes" >&5
4151echo "${ECHO_T}yes" >&6
4152 else
4153 echo "$as_me:$LINENO: result: no" >&5
4154echo "${ECHO_T}no" >&6
4155 fi
4156
4157
ffa0583f
RL
4158
4159 enablestring=
4160 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4161echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4162 no_cache=0
4163 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4164if test "${enable_rpath+set}" = set; then
4165 enableval="$enable_rpath"
ffa0583f
RL
4166
4167 if test "$enableval" = yes; then
4168 ac_cv_use_rpath='wxUSE_RPATH=yes'
4169 else
4170 ac_cv_use_rpath='wxUSE_RPATH=no'
4171 fi
4172
4173else
4174
4175 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4176 if test "x$LINE" != x ; then
4177 eval "DEFAULT_$LINE"
4178 else
4179 no_cache=1
4180 fi
4181
4182 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4183
a848cd7e
SC
4184fi;
4185
ffa0583f
RL
4186 eval "$ac_cv_use_rpath"
4187 if test "$no_cache" != 1; then
4188 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4189 fi
4190
4191 if test "$wxUSE_RPATH" = yes; then
4192 echo "$as_me:$LINENO: result: yes" >&5
4193echo "${ECHO_T}yes" >&6
4194 else
4195 echo "$as_me:$LINENO: result: no" >&5
4196echo "${ECHO_T}no" >&6
4197 fi
4198
a848cd7e
SC
4199
4200
4201
4202
4203 enablestring=
4204 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4205echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4206 no_cache=0
4207 # Check whether --enable-intl or --disable-intl was given.
4208if test "${enable_intl+set}" = set; then
4209 enableval="$enable_intl"
4210
4211 if test "$enableval" = yes; then
4212 ac_cv_use_intl='wxUSE_INTL=yes'
4213 else
4214 ac_cv_use_intl='wxUSE_INTL=no'
4215 fi
4216
4217else
4218
4219 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4220 if test "x$LINE" != x ; then
4221 eval "DEFAULT_$LINE"
4222 else
4223 no_cache=1
4224 fi
4225
4226 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4227
4228fi;
4229
4230 eval "$ac_cv_use_intl"
4231 if test "$no_cache" != 1; then
4232 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4233 fi
4234
4235 if test "$wxUSE_INTL" = yes; then
4236 echo "$as_me:$LINENO: result: yes" >&5
4237echo "${ECHO_T}yes" >&6
4238 else
4239 echo "$as_me:$LINENO: result: no" >&5
4240echo "${ECHO_T}no" >&6
4241 fi
4242
4243
4244 enablestring=
4245 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4246echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4247 no_cache=0
4248 # Check whether --enable-config or --disable-config was given.
4249if test "${enable_config+set}" = set; then
4250 enableval="$enable_config"
4251
4252 if test "$enableval" = yes; then
4253 ac_cv_use_config='wxUSE_CONFIG=yes'
4254 else
4255 ac_cv_use_config='wxUSE_CONFIG=no'
4256 fi
4257
4258else
4259
4260 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4261 if test "x$LINE" != x ; then
4262 eval "DEFAULT_$LINE"
4263 else
4264 no_cache=1
4265 fi
4266
4267 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4268
4269fi;
4270
4271 eval "$ac_cv_use_config"
4272 if test "$no_cache" != 1; then
4273 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4274 fi
4275
4276 if test "$wxUSE_CONFIG" = yes; then
4277 echo "$as_me:$LINENO: result: yes" >&5
4278echo "${ECHO_T}yes" >&6
4279 else
4280 echo "$as_me:$LINENO: result: no" >&5
4281echo "${ECHO_T}no" >&6
4282 fi
4283
4284
4285
4286 enablestring=
4287 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4288echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4289 no_cache=0
4290 # Check whether --enable-protocols or --disable-protocols was given.
4291if test "${enable_protocols+set}" = set; then
4292 enableval="$enable_protocols"
4293
4294 if test "$enableval" = yes; then
4295 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4296 else
4297 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4298 fi
4299
4300else
4301
4302 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4303 if test "x$LINE" != x ; then
4304 eval "DEFAULT_$LINE"
4305 else
4306 no_cache=1
4307 fi
4308
4309 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4310
4311fi;
4312
4313 eval "$ac_cv_use_protocols"
4314 if test "$no_cache" != 1; then
4315 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4316 fi
4317
4318 if test "$wxUSE_PROTOCOL" = yes; then
4319 echo "$as_me:$LINENO: result: yes" >&5
4320echo "${ECHO_T}yes" >&6
4321 else
4322 echo "$as_me:$LINENO: result: no" >&5
4323echo "${ECHO_T}no" >&6
4324 fi
4325
4326
4327 enablestring=
4328 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4329echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4330 no_cache=0
4331 # Check whether --enable-ftp or --disable-ftp was given.
4332if test "${enable_ftp+set}" = set; then
4333 enableval="$enable_ftp"
4334
4335 if test "$enableval" = yes; then
4336 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4337 else
4338 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4339 fi
4340
4341else
4342
4343 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4344 if test "x$LINE" != x ; then
4345 eval "DEFAULT_$LINE"
4346 else
4347 no_cache=1
4348 fi
4349
4350 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4351
4352fi;
4353
4354 eval "$ac_cv_use_ftp"
4355 if test "$no_cache" != 1; then
4356 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4357 fi
4358
4359 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4360 echo "$as_me:$LINENO: result: yes" >&5
4361echo "${ECHO_T}yes" >&6
4362 else
4363 echo "$as_me:$LINENO: result: no" >&5
4364echo "${ECHO_T}no" >&6
4365 fi
4366
4367
4368 enablestring=
4369 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4370echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4371 no_cache=0
4372 # Check whether --enable-http or --disable-http was given.
4373if test "${enable_http+set}" = set; then
4374 enableval="$enable_http"
4375
4376 if test "$enableval" = yes; then
4377 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4378 else
4379 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4380 fi
4381
4382else
4383
4384 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4385 if test "x$LINE" != x ; then
4386 eval "DEFAULT_$LINE"
4387 else
4388 no_cache=1
4389 fi
4390
4391 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4392
4393fi;
4394
4395 eval "$ac_cv_use_http"
4396 if test "$no_cache" != 1; then
4397 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4398 fi
4399
4400 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4401 echo "$as_me:$LINENO: result: yes" >&5
4402echo "${ECHO_T}yes" >&6
4403 else
4404 echo "$as_me:$LINENO: result: no" >&5
4405echo "${ECHO_T}no" >&6
4406 fi
4407
4408
4409 enablestring=
4410 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4411echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4412 no_cache=0
4413 # Check whether --enable-fileproto or --disable-fileproto was given.
4414if test "${enable_fileproto+set}" = set; then
4415 enableval="$enable_fileproto"
4416
4417 if test "$enableval" = yes; then
4418 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4419 else
4420 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4421 fi
4422
4423else
4424
4425 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4426 if test "x$LINE" != x ; then
4427 eval "DEFAULT_$LINE"
4428 else
4429 no_cache=1
4430 fi
4431
4432 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4433
4434fi;
4435
4436 eval "$ac_cv_use_fileproto"
4437 if test "$no_cache" != 1; then
4438 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4439 fi
4440
4441 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4442 echo "$as_me:$LINENO: result: yes" >&5
4443echo "${ECHO_T}yes" >&6
4444 else
4445 echo "$as_me:$LINENO: result: no" >&5
4446echo "${ECHO_T}no" >&6
4447 fi
4448
4449
4450 enablestring=
4451 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4452echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4453 no_cache=0
4454 # Check whether --enable-sockets or --disable-sockets was given.
4455if test "${enable_sockets+set}" = set; then
4456 enableval="$enable_sockets"
4457
4458 if test "$enableval" = yes; then
4459 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4460 else
4461 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4462 fi
4463
4464else
4465
4466 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4467 if test "x$LINE" != x ; then
4468 eval "DEFAULT_$LINE"
4469 else
4470 no_cache=1
4471 fi
4472
4473 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4474
4475fi;
4476
4477 eval "$ac_cv_use_sockets"
4478 if test "$no_cache" != 1; then
4479 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4480 fi
4481
4482 if test "$wxUSE_SOCKETS" = yes; then
4483 echo "$as_me:$LINENO: result: yes" >&5
4484echo "${ECHO_T}yes" >&6
4485 else
4486 echo "$as_me:$LINENO: result: no" >&5
4487echo "${ECHO_T}no" >&6
4488 fi
4489
4490
4491 enablestring=
4492 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4493echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4494 no_cache=0
4495 # Check whether --enable-ole or --disable-ole was given.
4496if test "${enable_ole+set}" = set; then
4497 enableval="$enable_ole"
4498
4499 if test "$enableval" = yes; then
4500 ac_cv_use_ole='wxUSE_OLE=yes'
4501 else
4502 ac_cv_use_ole='wxUSE_OLE=no'
4503 fi
4504
4505else
4506
4507 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4508 if test "x$LINE" != x ; then
4509 eval "DEFAULT_$LINE"
4510 else
4511 no_cache=1
4512 fi
4513
4514 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4515
4516fi;
4517
4518 eval "$ac_cv_use_ole"
4519 if test "$no_cache" != 1; then
4520 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4521 fi
4522
4523 if test "$wxUSE_OLE" = yes; then
4524 echo "$as_me:$LINENO: result: yes" >&5
4525echo "${ECHO_T}yes" >&6
4526 else
4527 echo "$as_me:$LINENO: result: no" >&5
4528echo "${ECHO_T}no" >&6
4529 fi
4530
4531
4532 enablestring=
4533 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4534echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4535 no_cache=0
4536 # Check whether --enable-dataobj or --disable-dataobj was given.
4537if test "${enable_dataobj+set}" = set; then
4538 enableval="$enable_dataobj"
4539
4540 if test "$enableval" = yes; then
4541 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4542 else
4543 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4544 fi
4545
4546else
4547
4548 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4549 if test "x$LINE" != x ; then
4550 eval "DEFAULT_$LINE"
4551 else
4552 no_cache=1
4553 fi
4554
4555 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4556
4557fi;
4558
4559 eval "$ac_cv_use_dataobj"
4560 if test "$no_cache" != 1; then
4561 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4562 fi
4563
4564 if test "$wxUSE_DATAOBJ" = yes; then
4565 echo "$as_me:$LINENO: result: yes" >&5
4566echo "${ECHO_T}yes" >&6
4567 else
4568 echo "$as_me:$LINENO: result: no" >&5
4569echo "${ECHO_T}no" >&6
4570 fi
4571
4572
4573
4574 enablestring=
4575 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4576echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4577 no_cache=0
4578 # Check whether --enable-ipc or --disable-ipc was given.
4579if test "${enable_ipc+set}" = set; then
4580 enableval="$enable_ipc"
4581
4582 if test "$enableval" = yes; then
4583 ac_cv_use_ipc='wxUSE_IPC=yes'
4584 else
4585 ac_cv_use_ipc='wxUSE_IPC=no'
4586 fi
4587
4588else
4589
4590 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4591 if test "x$LINE" != x ; then
4592 eval "DEFAULT_$LINE"
4593 else
4594 no_cache=1
4595 fi
4596
4597 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4598
4599fi;
4600
4601 eval "$ac_cv_use_ipc"
4602 if test "$no_cache" != 1; then
4603 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4604 fi
4605
4606 if test "$wxUSE_IPC" = yes; then
4607 echo "$as_me:$LINENO: result: yes" >&5
4608echo "${ECHO_T}yes" >&6
4609 else
4610 echo "$as_me:$LINENO: result: no" >&5
4611echo "${ECHO_T}no" >&6
4612 fi
4613
4614
4615
4616 enablestring=
4617 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4618echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4619 no_cache=0
4620 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4621if test "${enable_apple_ieee+set}" = set; then
4622 enableval="$enable_apple_ieee"
4623
4624 if test "$enableval" = yes; then
4625 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4626 else
4627 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4628 fi
4629
4630else
4631
4632 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4633 if test "x$LINE" != x ; then
4634 eval "DEFAULT_$LINE"
4635 else
4636 no_cache=1
4637 fi
4638
4639 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4640
4641fi;
4642
4643 eval "$ac_cv_use_apple_ieee"
4644 if test "$no_cache" != 1; then
4645 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4646 fi
4647
4648 if test "$wxUSE_APPLE_IEEE" = yes; then
4649 echo "$as_me:$LINENO: result: yes" >&5
4650echo "${ECHO_T}yes" >&6
4651 else
4652 echo "$as_me:$LINENO: result: no" >&5
4653echo "${ECHO_T}no" >&6
4654 fi
4655
4656
81f90336
MW
4657 enablestring=
4658 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4659echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4660 no_cache=0
4661 # Check whether --enable-arcstream or --disable-arcstream was given.
4662if test "${enable_arcstream+set}" = set; then
4663 enableval="$enable_arcstream"
4664
4665 if test "$enableval" = yes; then
9e8e867f 4666 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4667 else
9e8e867f 4668 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4669 fi
4670
4671else
4672
9e8e867f 4673 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4674 if test "x$LINE" != x ; then
4675 eval "DEFAULT_$LINE"
4676 else
4677 no_cache=1
4678 fi
4679
9e8e867f 4680 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4681
4682fi;
4683
4684 eval "$ac_cv_use_arcstream"
4685 if test "$no_cache" != 1; then
4686 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4687 fi
4688
9e8e867f 4689 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4690 echo "$as_me:$LINENO: result: yes" >&5
4691echo "${ECHO_T}yes" >&6
4692 else
4693 echo "$as_me:$LINENO: result: no" >&5
4694echo "${ECHO_T}no" >&6
4695 fi
4696
4697
a848cd7e 4698 enablestring=
36b6448c
VZ
4699 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4700echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4701 no_cache=0
36b6448c
VZ
4702 # Check whether --enable-backtrace or --disable-backtrace was given.
4703if test "${enable_backtrace+set}" = set; then
4704 enableval="$enable_backtrace"
a848cd7e
SC
4705
4706 if test "$enableval" = yes; then
36b6448c 4707 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4708 else
36b6448c 4709 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4710 fi
4711
4712else
4713
36b6448c 4714 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4715 if test "x$LINE" != x ; then
4716 eval "DEFAULT_$LINE"
4717 else
4718 no_cache=1
4719 fi
4720
36b6448c 4721 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4722
4723fi;
4724
36b6448c 4725 eval "$ac_cv_use_backtrace"
a848cd7e 4726 if test "$no_cache" != 1; then
36b6448c 4727 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4728 fi
4729
36b6448c 4730 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4731 echo "$as_me:$LINENO: result: yes" >&5
4732echo "${ECHO_T}yes" >&6
4733 else
4734 echo "$as_me:$LINENO: result: no" >&5
4735echo "${ECHO_T}no" >&6
4736 fi
4737
4738
eaff0f0d 4739 enablestring=
36b6448c
VZ
4740 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4741echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4742 no_cache=0
36b6448c
VZ
4743 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4744if test "${enable_catch_segvs+set}" = set; then
4745 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4746
4747 if test "$enableval" = yes; then
36b6448c 4748 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4749 else
36b6448c 4750 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4751 fi
4752
4753else
4754
36b6448c 4755 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4756 if test "x$LINE" != x ; then
4757 eval "DEFAULT_$LINE"
4758 else
4759 no_cache=1
4760 fi
4761
36b6448c 4762 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4763
4764fi;
4765
36b6448c 4766 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4767 if test "$no_cache" != 1; then
36b6448c 4768 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4769 fi
4770
36b6448c 4771 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4772 echo "$as_me:$LINENO: result: yes" >&5
4773echo "${ECHO_T}yes" >&6
4774 else
4775 echo "$as_me:$LINENO: result: no" >&5
4776echo "${ECHO_T}no" >&6
4777 fi
4778
4779
a848cd7e
SC
4780 enablestring=
4781 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4782echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4783 no_cache=0
4784 # Check whether --enable-cmdline or --disable-cmdline was given.
4785if test "${enable_cmdline+set}" = set; then
4786 enableval="$enable_cmdline"
4787
4788 if test "$enableval" = yes; then
4789 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4790 else
4791 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4792 fi
4793
4794else
4795
4796 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4797 if test "x$LINE" != x ; then
4798 eval "DEFAULT_$LINE"
4799 else
4800 no_cache=1
4801 fi
4802
4803 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4804
4805fi;
4806
4807 eval "$ac_cv_use_cmdline"
4808 if test "$no_cache" != 1; then
4809 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4810 fi
4811
4812 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4813 echo "$as_me:$LINENO: result: yes" >&5
4814echo "${ECHO_T}yes" >&6
4815 else
4816 echo "$as_me:$LINENO: result: no" >&5
4817echo "${ECHO_T}no" >&6
4818 fi
4819
4820
4821 enablestring=
4822 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4823echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4824 no_cache=0
4825 # Check whether --enable-datetime or --disable-datetime was given.
4826if test "${enable_datetime+set}" = set; then
4827 enableval="$enable_datetime"
4828
4829 if test "$enableval" = yes; then
4830 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4831 else
4832 ac_cv_use_datetime='wxUSE_DATETIME=no'
4833 fi
4834
4835else
4836
4837 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4838 if test "x$LINE" != x ; then
4839 eval "DEFAULT_$LINE"
4840 else
4841 no_cache=1
4842 fi
4843
4844 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4845
4846fi;
4847
4848 eval "$ac_cv_use_datetime"
4849 if test "$no_cache" != 1; then
4850 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4851 fi
4852
4853 if test "$wxUSE_DATETIME" = yes; then
4854 echo "$as_me:$LINENO: result: yes" >&5
4855echo "${ECHO_T}yes" >&6
4856 else
4857 echo "$as_me:$LINENO: result: no" >&5
4858echo "${ECHO_T}no" >&6
4859 fi
4860
4861
36b6448c
VZ
4862 enablestring=
4863 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4864echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4865 no_cache=0
4866 # Check whether --enable-debugreport or --disable-debugreport was given.
4867if test "${enable_debugreport+set}" = set; then
4868 enableval="$enable_debugreport"
4869
4870 if test "$enableval" = yes; then
4871 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4872 else
4873 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4874 fi
4875
4876else
4877
4878 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
4879 if test "x$LINE" != x ; then
4880 eval "DEFAULT_$LINE"
4881 else
4882 no_cache=1
4883 fi
4884
4885 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4886
4887fi;
4888
4889 eval "$ac_cv_use_debugreport"
4890 if test "$no_cache" != 1; then
4891 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4892 fi
4893
4894 if test "$wxUSE_DEBUGREPORT" = yes; then
4895 echo "$as_me:$LINENO: result: yes" >&5
4896echo "${ECHO_T}yes" >&6
4897 else
4898 echo "$as_me:$LINENO: result: no" >&5
4899echo "${ECHO_T}no" >&6
4900 fi
4901
4902
a848cd7e
SC
4903 enablestring=
4904 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4905echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4906 no_cache=0
4907 # Check whether --enable-dialupman or --disable-dialupman was given.
4908if test "${enable_dialupman+set}" = set; then
4909 enableval="$enable_dialupman"
4910
4911 if test "$enableval" = yes; then
4912 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4913 else
4914 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4915 fi
4916
4917else
4918
4919 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4920 if test "x$LINE" != x ; then
4921 eval "DEFAULT_$LINE"
4922 else
4923 no_cache=1
4924 fi
4925
4926 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4927
4928fi;
4929
4930 eval "$ac_cv_use_dialupman"
4931 if test "$no_cache" != 1; then
4932 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4933 fi
4934
4935 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4936 echo "$as_me:$LINENO: result: yes" >&5
4937echo "${ECHO_T}yes" >&6
4938 else
4939 echo "$as_me:$LINENO: result: no" >&5
4940echo "${ECHO_T}no" >&6
4941 fi
4942
4943
4944 enablestring=
4945 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4946echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4947 no_cache=0
4948 # Check whether --enable-dynlib or --disable-dynlib was given.
4949if test "${enable_dynlib+set}" = set; then
4950 enableval="$enable_dynlib"
4951
4952 if test "$enableval" = yes; then
4953 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4954 else
4955 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4956 fi
4957
4958else
4959
4960 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4961 if test "x$LINE" != x ; then
4962 eval "DEFAULT_$LINE"
4963 else
4964 no_cache=1
4965 fi
4966
4967 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4968
4969fi;
4970
4971 eval "$ac_cv_use_dynlib"
4972 if test "$no_cache" != 1; then
4973 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4974 fi
4975
4976 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4977 echo "$as_me:$LINENO: result: yes" >&5
4978echo "${ECHO_T}yes" >&6
4979 else
4980 echo "$as_me:$LINENO: result: no" >&5
4981echo "${ECHO_T}no" >&6
4982 fi
4983
4984
4985 enablestring=
4986 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4987echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4988 no_cache=0
4989 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4990if test "${enable_dynamicloader+set}" = set; then
4991 enableval="$enable_dynamicloader"
4992
4993 if test "$enableval" = yes; then
4994 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4995 else
4996 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4997 fi
4998
4999else
5000
5001 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5002 if test "x$LINE" != x ; then
5003 eval "DEFAULT_$LINE"
5004 else
5005 no_cache=1
5006 fi
5007
5008 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5009
5010fi;
5011
5012 eval "$ac_cv_use_dynamicloader"
5013 if test "$no_cache" != 1; then
5014 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5015 fi
5016
5017 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5018 echo "$as_me:$LINENO: result: yes" >&5
5019echo "${ECHO_T}yes" >&6
5020 else
5021 echo "$as_me:$LINENO: result: no" >&5
5022echo "${ECHO_T}no" >&6
5023 fi
5024
5025
5026 enablestring=
5027 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5028echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5029 no_cache=0
5030 # Check whether --enable-exceptions or --disable-exceptions was given.
5031if test "${enable_exceptions+set}" = set; then
5032 enableval="$enable_exceptions"
5033
5034 if test "$enableval" = yes; then
5035 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5036 else
5037 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5038 fi
5039
5040else
5041
5042 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5043 if test "x$LINE" != x ; then
5044 eval "DEFAULT_$LINE"
5045 else
5046 no_cache=1
5047 fi
5048
5049 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5050
5051fi;
5052
5053 eval "$ac_cv_use_exceptions"
5054 if test "$no_cache" != 1; then
5055 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5056 fi
5057
5058 if test "$wxUSE_EXCEPTIONS" = yes; then
5059 echo "$as_me:$LINENO: result: yes" >&5
5060echo "${ECHO_T}yes" >&6
5061 else
5062 echo "$as_me:$LINENO: result: no" >&5
5063echo "${ECHO_T}no" >&6
5064 fi
5065
5066
5067 enablestring=
5068 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5069echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5070 no_cache=0
5071 # Check whether --enable-ffile or --disable-ffile was given.
5072if test "${enable_ffile+set}" = set; then
5073 enableval="$enable_ffile"
5074
5075 if test "$enableval" = yes; then
5076 ac_cv_use_ffile='wxUSE_FFILE=yes'
5077 else
5078 ac_cv_use_ffile='wxUSE_FFILE=no'
5079 fi
5080
5081else
5082
5083 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5084 if test "x$LINE" != x ; then
5085 eval "DEFAULT_$LINE"
5086 else
5087 no_cache=1
5088 fi
5089
5090 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5091
5092fi;
5093
5094 eval "$ac_cv_use_ffile"
5095 if test "$no_cache" != 1; then
5096 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5097 fi
5098
5099 if test "$wxUSE_FFILE" = yes; then
5100 echo "$as_me:$LINENO: result: yes" >&5
5101echo "${ECHO_T}yes" >&6
5102 else
5103 echo "$as_me:$LINENO: result: no" >&5
5104echo "${ECHO_T}no" >&6
5105 fi
5106
5107
5108 enablestring=
5109 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5110echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5111 no_cache=0
5112 # Check whether --enable-file or --disable-file was given.
5113if test "${enable_file+set}" = set; then
5114 enableval="$enable_file"
5115
5116 if test "$enableval" = yes; then
5117 ac_cv_use_file='wxUSE_FILE=yes'
5118 else
5119 ac_cv_use_file='wxUSE_FILE=no'
5120 fi
5121
5122else
5123
5124 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5125 if test "x$LINE" != x ; then
5126 eval "DEFAULT_$LINE"
5127 else
5128 no_cache=1
5129 fi
5130
5131 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5132
5133fi;
5134
5135 eval "$ac_cv_use_file"
5136 if test "$no_cache" != 1; then
5137 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5138 fi
5139
5140 if test "$wxUSE_FILE" = yes; then
5141 echo "$as_me:$LINENO: result: yes" >&5
5142echo "${ECHO_T}yes" >&6
5143 else
5144 echo "$as_me:$LINENO: result: no" >&5
5145echo "${ECHO_T}no" >&6
5146 fi
5147
5148
5149 enablestring=
5150 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5151echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5152 no_cache=0
5153 # Check whether --enable-filesystem or --disable-filesystem was given.
5154if test "${enable_filesystem+set}" = set; then
5155 enableval="$enable_filesystem"
5156
5157 if test "$enableval" = yes; then
5158 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5159 else
5160 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5161 fi
5162
5163else
5164
5165 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5166 if test "x$LINE" != x ; then
5167 eval "DEFAULT_$LINE"
5168 else
5169 no_cache=1
5170 fi
5171
5172 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5173
5174fi;
5175
5176 eval "$ac_cv_use_filesystem"
5177 if test "$no_cache" != 1; then
5178 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5179 fi
5180
5181 if test "$wxUSE_FILESYSTEM" = yes; then
5182 echo "$as_me:$LINENO: result: yes" >&5
5183echo "${ECHO_T}yes" >&6
5184 else
5185 echo "$as_me:$LINENO: result: no" >&5
5186echo "${ECHO_T}no" >&6
5187 fi
5188
5189
5190 enablestring=
5191 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5192echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5193 no_cache=0
5194 # Check whether --enable-fontmap or --disable-fontmap was given.
5195if test "${enable_fontmap+set}" = set; then
5196 enableval="$enable_fontmap"
5197
5198 if test "$enableval" = yes; then
5199 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5200 else
5201 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5202 fi
5203
5204else
5205
5206 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5207 if test "x$LINE" != x ; then
5208 eval "DEFAULT_$LINE"
5209 else
5210 no_cache=1
5211 fi
5212
5213 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5214
5215fi;
5216
5217 eval "$ac_cv_use_fontmap"
5218 if test "$no_cache" != 1; then
5219 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5220 fi
5221
5222 if test "$wxUSE_FONTMAP" = yes; then
5223 echo "$as_me:$LINENO: result: yes" >&5
5224echo "${ECHO_T}yes" >&6
5225 else
5226 echo "$as_me:$LINENO: result: no" >&5
5227echo "${ECHO_T}no" >&6
5228 fi
5229
5230
5231 enablestring=
5232 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5233echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5234 no_cache=0
5235 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5236if test "${enable_fs_inet+set}" = set; then
5237 enableval="$enable_fs_inet"
5238
5239 if test "$enableval" = yes; then
5240 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5241 else
5242 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5243 fi
5244
5245else
5246
5247 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5248 if test "x$LINE" != x ; then
5249 eval "DEFAULT_$LINE"
5250 else
5251 no_cache=1
5252 fi
5253
5254 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5255
5256fi;
5257
5258 eval "$ac_cv_use_fs_inet"
5259 if test "$no_cache" != 1; then
5260 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5261 fi
5262
5263 if test "$wxUSE_FS_INET" = yes; then
5264 echo "$as_me:$LINENO: result: yes" >&5
5265echo "${ECHO_T}yes" >&6
5266 else
5267 echo "$as_me:$LINENO: result: no" >&5
5268echo "${ECHO_T}no" >&6
5269 fi
5270
5271
5272 enablestring=
5273 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5274echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5275 no_cache=0
5276 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5277if test "${enable_fs_zip+set}" = set; then
5278 enableval="$enable_fs_zip"
5279
5280 if test "$enableval" = yes; then
5281 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5282 else
5283 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5284 fi
5285
5286else
5287
5288 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5289 if test "x$LINE" != x ; then
5290 eval "DEFAULT_$LINE"
5291 else
5292 no_cache=1
5293 fi
5294
5295 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5296
5297fi;
5298
5299 eval "$ac_cv_use_fs_zip"
5300 if test "$no_cache" != 1; then
5301 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5302 fi
5303
5304 if test "$wxUSE_FS_ZIP" = yes; then
5305 echo "$as_me:$LINENO: result: yes" >&5
5306echo "${ECHO_T}yes" >&6
5307 else
5308 echo "$as_me:$LINENO: result: no" >&5
5309echo "${ECHO_T}no" >&6
5310 fi
5311
5312
5313 enablestring=
5314 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5315echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5316 no_cache=0
5317 # Check whether --enable-geometry or --disable-geometry was given.
5318if test "${enable_geometry+set}" = set; then
5319 enableval="$enable_geometry"
5320
5321 if test "$enableval" = yes; then
5322 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5323 else
5324 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5325 fi
5326
5327else
5328
5329 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5330 if test "x$LINE" != x ; then
5331 eval "DEFAULT_$LINE"
5332 else
5333 no_cache=1
5334 fi
5335
5336 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5337
5338fi;
5339
5340 eval "$ac_cv_use_geometry"
5341 if test "$no_cache" != 1; then
5342 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5343 fi
5344
5345 if test "$wxUSE_GEOMETRY" = yes; then
5346 echo "$as_me:$LINENO: result: yes" >&5
5347echo "${ECHO_T}yes" >&6
5348 else
5349 echo "$as_me:$LINENO: result: no" >&5
5350echo "${ECHO_T}no" >&6
5351 fi
5352
5353
5354 enablestring=
5355 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5356echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5357 no_cache=0
5358 # Check whether --enable-log or --disable-log was given.
5359if test "${enable_log+set}" = set; then
5360 enableval="$enable_log"
5361
5362 if test "$enableval" = yes; then
5363 ac_cv_use_log='wxUSE_LOG=yes'
5364 else
5365 ac_cv_use_log='wxUSE_LOG=no'
5366 fi
5367
5368else
5369
5370 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5371 if test "x$LINE" != x ; then
5372 eval "DEFAULT_$LINE"
5373 else
5374 no_cache=1
5375 fi
5376
5377 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5378
5379fi;
5380
5381 eval "$ac_cv_use_log"
5382 if test "$no_cache" != 1; then
5383 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5384 fi
5385
5386 if test "$wxUSE_LOG" = yes; then
5387 echo "$as_me:$LINENO: result: yes" >&5
5388echo "${ECHO_T}yes" >&6
5389 else
5390 echo "$as_me:$LINENO: result: no" >&5
5391echo "${ECHO_T}no" >&6
5392 fi
5393
5394
5395 enablestring=
5396 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5397echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5398 no_cache=0
5399 # Check whether --enable-longlong or --disable-longlong was given.
5400if test "${enable_longlong+set}" = set; then
5401 enableval="$enable_longlong"
5402
5403 if test "$enableval" = yes; then
5404 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5405 else
5406 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5407 fi
5408
5409else
5410
5411 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5412 if test "x$LINE" != x ; then
5413 eval "DEFAULT_$LINE"
5414 else
5415 no_cache=1
5416 fi
5417
5418 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5419
5420fi;
5421
5422 eval "$ac_cv_use_longlong"
5423 if test "$no_cache" != 1; then
5424 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5425 fi
5426
5427 if test "$wxUSE_LONGLONG" = yes; then
5428 echo "$as_me:$LINENO: result: yes" >&5
5429echo "${ECHO_T}yes" >&6
5430 else
5431 echo "$as_me:$LINENO: result: no" >&5
5432echo "${ECHO_T}no" >&6
5433 fi
5434
5435
5436 enablestring=
5437 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5438echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5439 no_cache=0
5440 # Check whether --enable-mimetype or --disable-mimetype was given.
5441if test "${enable_mimetype+set}" = set; then
5442 enableval="$enable_mimetype"
5443
5444 if test "$enableval" = yes; then
5445 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5446 else
5447 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5448 fi
5449
5450else
5451
5452 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5453 if test "x$LINE" != x ; then
5454 eval "DEFAULT_$LINE"
5455 else
5456 no_cache=1
5457 fi
5458
5459 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5460
5461fi;
5462
5463 eval "$ac_cv_use_mimetype"
5464 if test "$no_cache" != 1; then
5465 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5466 fi
5467
5468 if test "$wxUSE_MIMETYPE" = yes; then
5469 echo "$as_me:$LINENO: result: yes" >&5
5470echo "${ECHO_T}yes" >&6
5471 else
5472 echo "$as_me:$LINENO: result: no" >&5
5473echo "${ECHO_T}no" >&6
5474 fi
5475
5476
5477 enablestring=
5478 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5479echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5480 no_cache=0
5481 # Check whether --enable-mslu or --disable-mslu was given.
5482if test "${enable_mslu+set}" = set; then
5483 enableval="$enable_mslu"
5484
5485 if test "$enableval" = yes; then
5486 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5487 else
5488 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5489 fi
5490
5491else
5492
5493 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5494 if test "x$LINE" != x ; then
5495 eval "DEFAULT_$LINE"
5496 else
5497 no_cache=1
5498 fi
5499
5500 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5501
5502fi;
5503
5504 eval "$ac_cv_use_mslu"
5505 if test "$no_cache" != 1; then
5506 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5507 fi
5508
5509 if test "$wxUSE_UNICODE_MSLU" = yes; then
5510 echo "$as_me:$LINENO: result: yes" >&5
5511echo "${ECHO_T}yes" >&6
5512 else
5513 echo "$as_me:$LINENO: result: no" >&5
5514echo "${ECHO_T}no" >&6
5515 fi
5516
5517
5518 enablestring=
5519 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5520echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5521 no_cache=0
5522 # Check whether --enable-snglinst or --disable-snglinst was given.
5523if test "${enable_snglinst+set}" = set; then
5524 enableval="$enable_snglinst"
5525
5526 if test "$enableval" = yes; then
5527 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5528 else
5529 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5530 fi
5531
5532else
5533
5534 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5535 if test "x$LINE" != x ; then
5536 eval "DEFAULT_$LINE"
5537 else
5538 no_cache=1
5539 fi
5540
5541 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5542
5543fi;
5544
5545 eval "$ac_cv_use_snglinst"
5546 if test "$no_cache" != 1; then
5547 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5548 fi
5549
5550 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5551 echo "$as_me:$LINENO: result: yes" >&5
5552echo "${ECHO_T}yes" >&6
5553 else
5554 echo "$as_me:$LINENO: result: no" >&5
5555echo "${ECHO_T}no" >&6
5556 fi
5557
5558
5559 enablestring=
07158944
VZ
5560 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5561echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5562 no_cache=0
07158944
VZ
5563 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5564if test "${enable_std_iostreams+set}" = set; then
5565 enableval="$enable_std_iostreams"
a848cd7e
SC
5566
5567 if test "$enableval" = yes; then
07158944 5568 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5569 else
07158944 5570 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5571 fi
5572
5573else
5574
07158944 5575 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5576 if test "x$LINE" != x ; then
5577 eval "DEFAULT_$LINE"
5578 else
5579 no_cache=1
5580 fi
5581
07158944 5582 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5583
5584fi;
5585
07158944 5586 eval "$ac_cv_use_std_iostreams"
a848cd7e 5587 if test "$no_cache" != 1; then
07158944 5588 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5589 fi
5590
07158944 5591 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5592 echo "$as_me:$LINENO: result: yes" >&5
5593echo "${ECHO_T}yes" >&6
5594 else
5595 echo "$as_me:$LINENO: result: no" >&5
5596echo "${ECHO_T}no" >&6
5597 fi
5598
5599
59746b65
MW
5600 enablestring=
5601 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5602echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5603 no_cache=0
5604 # Check whether --enable-std_string or --disable-std_string was given.
5605if test "${enable_std_string+set}" = set; then
5606 enableval="$enable_std_string"
5607
5608 if test "$enableval" = yes; then
5609 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5610 else
5611 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5612 fi
5613
5614else
5615
5616 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5617 if test "x$LINE" != x ; then
5618 eval "DEFAULT_$LINE"
5619 else
5620 no_cache=1
5621 fi
5622
5623 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5624
5625fi;
5626
5627 eval "$ac_cv_use_std_string"
5628 if test "$no_cache" != 1; then
5629 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5630 fi
5631
5632 if test "$wxUSE_STD_STRING" = yes; then
5633 echo "$as_me:$LINENO: result: yes" >&5
5634echo "${ECHO_T}yes" >&6
5635 else
5636 echo "$as_me:$LINENO: result: no" >&5
5637echo "${ECHO_T}no" >&6
5638 fi
5639
5640
a848cd7e 5641 enablestring=
07158944
VZ
5642 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5643echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5644 no_cache=0
07158944
VZ
5645 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5646if test "${enable_stdpaths+set}" = set; then
5647 enableval="$enable_stdpaths"
a848cd7e
SC
5648
5649 if test "$enableval" = yes; then
07158944 5650 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5651 else
07158944 5652 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5653 fi
5654
5655else
5656
07158944 5657 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5658 if test "x$LINE" != x ; then
5659 eval "DEFAULT_$LINE"
5660 else
5661 no_cache=1
5662 fi
5663
07158944 5664 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5665
5666fi;
5667
07158944 5668 eval "$ac_cv_use_stdpaths"
a848cd7e 5669 if test "$no_cache" != 1; then
07158944 5670 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5671 fi
5672
07158944 5673 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5674 echo "$as_me:$LINENO: result: yes" >&5
5675echo "${ECHO_T}yes" >&6
5676 else
5677 echo "$as_me:$LINENO: result: no" >&5
5678echo "${ECHO_T}no" >&6
5679 fi
5680
5681
5682 enablestring=
5683 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5684echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5685 no_cache=0
5686 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5687if test "${enable_stopwatch+set}" = set; then
5688 enableval="$enable_stopwatch"
5689
5690 if test "$enableval" = yes; then
5691 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5692 else
5693 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5694 fi
5695
5696else
5697
5698 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5699 if test "x$LINE" != x ; then
5700 eval "DEFAULT_$LINE"
5701 else
5702 no_cache=1
5703 fi
5704
5705 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5706
5707fi;
5708
5709 eval "$ac_cv_use_stopwatch"
5710 if test "$no_cache" != 1; then
5711 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5712 fi
5713
5714 if test "$wxUSE_STOPWATCH" = yes; then
5715 echo "$as_me:$LINENO: result: yes" >&5
5716echo "${ECHO_T}yes" >&6
5717 else
5718 echo "$as_me:$LINENO: result: no" >&5
5719echo "${ECHO_T}no" >&6
5720 fi
5721
5722
07158944
VZ
5723 enablestring=
5724 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5725echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5726 no_cache=0
5727 # Check whether --enable-streams or --disable-streams was given.
5728if test "${enable_streams+set}" = set; then
5729 enableval="$enable_streams"
5730
5731 if test "$enableval" = yes; then
5732 ac_cv_use_streams='wxUSE_STREAMS=yes'
5733 else
5734 ac_cv_use_streams='wxUSE_STREAMS=no'
5735 fi
5736
5737else
5738
5739 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5740 if test "x$LINE" != x ; then
5741 eval "DEFAULT_$LINE"
5742 else
5743 no_cache=1
5744 fi
5745
5746 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5747
5748fi;
5749
5750 eval "$ac_cv_use_streams"
5751 if test "$no_cache" != 1; then
5752 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5753 fi
5754
5755 if test "$wxUSE_STREAMS" = yes; then
5756 echo "$as_me:$LINENO: result: yes" >&5
5757echo "${ECHO_T}yes" >&6
5758 else
5759 echo "$as_me:$LINENO: result: no" >&5
5760echo "${ECHO_T}no" >&6
5761 fi
5762
5763
a848cd7e
SC
5764 enablestring=
5765 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5766echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5767 no_cache=0
5768 # Check whether --enable-system_options or --disable-system_options was given.
5769if test "${enable_system_options+set}" = set; then
5770 enableval="$enable_system_options"
5771
5772 if test "$enableval" = yes; then
5773 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5774 else
5775 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5776 fi
5777
5778else
5779
5780 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5781 if test "x$LINE" != x ; then
5782 eval "DEFAULT_$LINE"
5783 else
5784 no_cache=1
5785 fi
5786
5787 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5788
5789fi;
5790
5791 eval "$ac_cv_use_system_options"
5792 if test "$no_cache" != 1; then
5793 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5794 fi
5795
5796 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5797 echo "$as_me:$LINENO: result: yes" >&5
5798echo "${ECHO_T}yes" >&6
5799 else
5800 echo "$as_me:$LINENO: result: no" >&5
5801echo "${ECHO_T}no" >&6
5802 fi
5803
5804
5805 enablestring=
5806 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5807echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5808 no_cache=0
5809 # Check whether --enable-textbuf or --disable-textbuf was given.
5810if test "${enable_textbuf+set}" = set; then
5811 enableval="$enable_textbuf"
5812
5813 if test "$enableval" = yes; then
5814 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5815 else
5816 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5817 fi
5818
5819else
5820
5821 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5822 if test "x$LINE" != x ; then
5823 eval "DEFAULT_$LINE"
5824 else
5825 no_cache=1
5826 fi
5827
5828 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5829
5830fi;
5831
5832 eval "$ac_cv_use_textbuf"
5833 if test "$no_cache" != 1; then
5834 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5835 fi
5836
5837 if test "$wxUSE_TEXTBUFFER" = yes; then
5838 echo "$as_me:$LINENO: result: yes" >&5
5839echo "${ECHO_T}yes" >&6
5840 else
5841 echo "$as_me:$LINENO: result: no" >&5
5842echo "${ECHO_T}no" >&6
5843 fi
5844
5845
5846 enablestring=
5847 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5848echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5849 no_cache=0
5850 # Check whether --enable-textfile or --disable-textfile was given.
5851if test "${enable_textfile+set}" = set; then
5852 enableval="$enable_textfile"
5853
5854 if test "$enableval" = yes; then
5855 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5856 else
5857 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5858 fi
5859
5860else
5861
5862 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5863 if test "x$LINE" != x ; then
5864 eval "DEFAULT_$LINE"
5865 else
5866 no_cache=1
5867 fi
5868
5869 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5870
5871fi;
5872
5873 eval "$ac_cv_use_textfile"
5874 if test "$no_cache" != 1; then
5875 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5876 fi
5877
5878 if test "$wxUSE_TEXTFILE" = yes; then
5879 echo "$as_me:$LINENO: result: yes" >&5
5880echo "${ECHO_T}yes" >&6
5881 else
5882 echo "$as_me:$LINENO: result: no" >&5
5883echo "${ECHO_T}no" >&6
5884 fi
5885
5886
5887 enablestring=
5888 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5889echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5890 no_cache=0
5891 # Check whether --enable-timer or --disable-timer was given.
5892if test "${enable_timer+set}" = set; then
5893 enableval="$enable_timer"
5894
5895 if test "$enableval" = yes; then
5896 ac_cv_use_timer='wxUSE_TIMER=yes'
5897 else
5898 ac_cv_use_timer='wxUSE_TIMER=no'
5899 fi
5900
5901else
5902
5903 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5904 if test "x$LINE" != x ; then
5905 eval "DEFAULT_$LINE"
5906 else
5907 no_cache=1
5908 fi
5909
5910 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5911
5912fi;
5913
5914 eval "$ac_cv_use_timer"
5915 if test "$no_cache" != 1; then
5916 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5917 fi
5918
5919 if test "$wxUSE_TIMER" = yes; then
5920 echo "$as_me:$LINENO: result: yes" >&5
5921echo "${ECHO_T}yes" >&6
5922 else
5923 echo "$as_me:$LINENO: result: no" >&5
5924echo "${ECHO_T}no" >&6
5925 fi
5926
5927
5928 enablestring=
5929 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5930echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5931 no_cache=0
5932 # Check whether --enable-unicode or --disable-unicode was given.
5933if test "${enable_unicode+set}" = set; then
5934 enableval="$enable_unicode"
5935
5936 if test "$enableval" = yes; then
5937 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5938 else
5939 ac_cv_use_unicode='wxUSE_UNICODE=no'
5940 fi
5941
5942else
5943
5944 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5945 if test "x$LINE" != x ; then
5946 eval "DEFAULT_$LINE"
5947 else
5948 no_cache=1
5949 fi
5950
5951 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5952
5953fi;
5954
5955 eval "$ac_cv_use_unicode"
5956 if test "$no_cache" != 1; then
5957 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5958 fi
5959
5960 if test "$wxUSE_UNICODE" = yes; then
5961 echo "$as_me:$LINENO: result: yes" >&5
5962echo "${ECHO_T}yes" >&6
5963 else
5964 echo "$as_me:$LINENO: result: no" >&5
5965echo "${ECHO_T}no" >&6
5966 fi
5967
5968
5969 enablestring=
5970 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5971echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5972 no_cache=0
5973 # Check whether --enable-sound or --disable-sound was given.
5974if test "${enable_sound+set}" = set; then
5975 enableval="$enable_sound"
5976
5977 if test "$enableval" = yes; then
5978 ac_cv_use_sound='wxUSE_SOUND=yes'
5979 else
5980 ac_cv_use_sound='wxUSE_SOUND=no'
5981 fi
5982
5983else
5984
5985 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5986 if test "x$LINE" != x ; then
5987 eval "DEFAULT_$LINE"
5988 else
5989 no_cache=1
5990 fi
5991
5992 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5993
5994fi;
5995
5996 eval "$ac_cv_use_sound"
5997 if test "$no_cache" != 1; then
5998 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5999 fi
6000
6001 if test "$wxUSE_SOUND" = yes; then
6002 echo "$as_me:$LINENO: result: yes" >&5
6003echo "${ECHO_T}yes" >&6
6004 else
6005 echo "$as_me:$LINENO: result: no" >&5
6006echo "${ECHO_T}no" >&6
6007 fi
6008
6009
3b57de8b
RL
6010 enablestring=
6011 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6012echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6013 no_cache=0
6014 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6015if test "${enable_mediactrl+set}" = set; then
6016 enableval="$enable_mediactrl"
6017
6018 if test "$enableval" = yes; then
6019 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6020 else
6021 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6022 fi
6023
6024else
6025
6026 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6027 if test "x$LINE" != x ; then
6028 eval "DEFAULT_$LINE"
6029 else
6030 no_cache=1
6031 fi
6032
6033 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6034
6035fi;
6036
6037 eval "$ac_cv_use_mediactrl"
6038 if test "$no_cache" != 1; then
6039 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6040 fi
6041
6042 if test "$wxUSE_MEDIACTRL" = yes; then
6043 echo "$as_me:$LINENO: result: yes" >&5
6044echo "${ECHO_T}yes" >&6
6045 else
6046 echo "$as_me:$LINENO: result: no" >&5
6047echo "${ECHO_T}no" >&6
6048 fi
6049
6050
a848cd7e
SC
6051 enablestring=
6052 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6053echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6054 no_cache=0
6055 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6056if test "${enable_wxprintfv+set}" = set; then
6057 enableval="$enable_wxprintfv"
6058
6059 if test "$enableval" = yes; then
6060 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6061 else
6062 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6063 fi
6064
6065else
6066
6067 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6068 if test "x$LINE" != x ; then
6069 eval "DEFAULT_$LINE"
6070 else
6071 no_cache=1
6072 fi
6073
6074 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6075
6076fi;
6077
6078 eval "$ac_cv_use_wxprintfv"
6079 if test "$no_cache" != 1; then
6080 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6081 fi
6082
6083 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6084 echo "$as_me:$LINENO: result: yes" >&5
6085echo "${ECHO_T}yes" >&6
6086 else
6087 echo "$as_me:$LINENO: result: no" >&5
6088echo "${ECHO_T}no" >&6
6089 fi
6090
6091
6092 enablestring=
6093 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6094echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6095 no_cache=0
6096 # Check whether --enable-zipstream or --disable-zipstream was given.
6097if test "${enable_zipstream+set}" = set; then
6098 enableval="$enable_zipstream"
6099
6100 if test "$enableval" = yes; then
6101 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6102 else
6103 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6104 fi
6105
6106else
6107
6108 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6109 if test "x$LINE" != x ; then
6110 eval "DEFAULT_$LINE"
6111 else
6112 no_cache=1
6113 fi
6114
6115 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6116
6117fi;
6118
6119 eval "$ac_cv_use_zipstream"
6120 if test "$no_cache" != 1; then
6121 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6122 fi
6123
6124 if test "$wxUSE_ZIPSTREAM" = yes; then
6125 echo "$as_me:$LINENO: result: yes" >&5
6126echo "${ECHO_T}yes" >&6
6127 else
6128 echo "$as_me:$LINENO: result: no" >&5
6129echo "${ECHO_T}no" >&6
6130 fi
6131
6132
a848cd7e
SC
6133
6134 enablestring=
6135 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6136echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6137 no_cache=0
6138 # Check whether --enable-url or --disable-url was given.
6139if test "${enable_url+set}" = set; then
6140 enableval="$enable_url"
6141
6142 if test "$enableval" = yes; then
6143 ac_cv_use_url='wxUSE_URL=yes'
6144 else
6145 ac_cv_use_url='wxUSE_URL=no'
6146 fi
6147
6148else
6149
6150 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6151 if test "x$LINE" != x ; then
6152 eval "DEFAULT_$LINE"
6153 else
6154 no_cache=1
6155 fi
6156
6157 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6158
6159fi;
6160
6161 eval "$ac_cv_use_url"
6162 if test "$no_cache" != 1; then
6163 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6164 fi
6165
6166 if test "$wxUSE_URL" = yes; then
6167 echo "$as_me:$LINENO: result: yes" >&5
6168echo "${ECHO_T}yes" >&6
6169 else
6170 echo "$as_me:$LINENO: result: no" >&5
6171echo "${ECHO_T}no" >&6
6172 fi
6173
6174
6175 enablestring=
6176 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6177echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6178 no_cache=0
6179 # Check whether --enable-protocol or --disable-protocol was given.
6180if test "${enable_protocol+set}" = set; then
6181 enableval="$enable_protocol"
6182
6183 if test "$enableval" = yes; then
6184 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6185 else
6186 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6187 fi
6188
6189else
6190
6191 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6192 if test "x$LINE" != x ; then
6193 eval "DEFAULT_$LINE"
6194 else
6195 no_cache=1
6196 fi
6197
6198 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6199
6200fi;
6201
6202 eval "$ac_cv_use_protocol"
6203 if test "$no_cache" != 1; then
6204 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6205 fi
6206
6207 if test "$wxUSE_PROTOCOL" = yes; then
6208 echo "$as_me:$LINENO: result: yes" >&5
6209echo "${ECHO_T}yes" >&6
6210 else
6211 echo "$as_me:$LINENO: result: no" >&5
6212echo "${ECHO_T}no" >&6
6213 fi
6214
6215
6216 enablestring=
6217 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6218echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6219 no_cache=0
6220 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6221if test "${enable_protocol_http+set}" = set; then
6222 enableval="$enable_protocol_http"
6223
6224 if test "$enableval" = yes; then
6225 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6226 else
6227 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6228 fi
6229
6230else
6231
6232 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6233 if test "x$LINE" != x ; then
6234 eval "DEFAULT_$LINE"
6235 else
6236 no_cache=1
6237 fi
6238
6239 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6240
6241fi;
6242
6243 eval "$ac_cv_use_protocol_http"
6244 if test "$no_cache" != 1; then
6245 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6246 fi
6247
6248 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6249 echo "$as_me:$LINENO: result: yes" >&5
6250echo "${ECHO_T}yes" >&6
6251 else
6252 echo "$as_me:$LINENO: result: no" >&5
6253echo "${ECHO_T}no" >&6
6254 fi
6255
6256
6257 enablestring=
6258 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6259echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6260 no_cache=0
6261 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6262if test "${enable_protocol_ftp+set}" = set; then
6263 enableval="$enable_protocol_ftp"
6264
6265 if test "$enableval" = yes; then
6266 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6267 else
6268 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6269 fi
6270
6271else
6272
6273 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6274 if test "x$LINE" != x ; then
6275 eval "DEFAULT_$LINE"
6276 else
6277 no_cache=1
6278 fi
6279
6280 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6281
6282fi;
6283
6284 eval "$ac_cv_use_protocol_ftp"
6285 if test "$no_cache" != 1; then
6286 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6287 fi
6288
6289 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6290 echo "$as_me:$LINENO: result: yes" >&5
6291echo "${ECHO_T}yes" >&6
6292 else
6293 echo "$as_me:$LINENO: result: no" >&5
6294echo "${ECHO_T}no" >&6
6295 fi
6296
6297
6298 enablestring=
6299 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6300echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6301 no_cache=0
6302 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6303if test "${enable_protocol_file+set}" = set; then
6304 enableval="$enable_protocol_file"
6305
6306 if test "$enableval" = yes; then
6307 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6308 else
6309 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6310 fi
6311
6312else
6313
6314 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6315 if test "x$LINE" != x ; then
6316 eval "DEFAULT_$LINE"
6317 else
6318 no_cache=1
6319 fi
6320
6321 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6322
6323fi;
6324
6325 eval "$ac_cv_use_protocol_file"
6326 if test "$no_cache" != 1; then
6327 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6328 fi
6329
6330 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6331 echo "$as_me:$LINENO: result: yes" >&5
6332echo "${ECHO_T}yes" >&6
6333 else
6334 echo "$as_me:$LINENO: result: no" >&5
6335echo "${ECHO_T}no" >&6
6336 fi
6337
6338
6339
6340
6341
6342 enablestring=
6343 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6344echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6345 no_cache=0
6346 # Check whether --enable-threads or --disable-threads was given.
6347if test "${enable_threads+set}" = set; then
6348 enableval="$enable_threads"
6349
6350 if test "$enableval" = yes; then
6351 ac_cv_use_threads='wxUSE_THREADS=yes'
6352 else
6353 ac_cv_use_threads='wxUSE_THREADS=no'
6354 fi
6355
6356else
6357
6358 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6359 if test "x$LINE" != x ; then
6360 eval "DEFAULT_$LINE"
6361 else
6362 no_cache=1
6363 fi
6364
6365 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6366
6367fi;
6368
6369 eval "$ac_cv_use_threads"
6370 if test "$no_cache" != 1; then
6371 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6372 fi
6373
6374 if test "$wxUSE_THREADS" = yes; then
6375 echo "$as_me:$LINENO: result: yes" >&5
6376echo "${ECHO_T}yes" >&6
6377 else
6378 echo "$as_me:$LINENO: result: no" >&5
6379echo "${ECHO_T}no" >&6
6380 fi
6381
6382
6383if test "$wxUSE_GUI" = "yes"; then
6384
6385
6386
6387 enablestring=
6388 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6389echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6390 no_cache=0
6391 # Check whether --enable-docview or --disable-docview was given.
6392if test "${enable_docview+set}" = set; then
6393 enableval="$enable_docview"
6394
6395 if test "$enableval" = yes; then
6396 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6397 else
6398 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6399 fi
6400
6401else
6402
6403 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6404 if test "x$LINE" != x ; then
6405 eval "DEFAULT_$LINE"
6406 else
6407 no_cache=1
6408 fi
6409
6410 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6411
6412fi;
6413
6414 eval "$ac_cv_use_docview"
6415 if test "$no_cache" != 1; then
6416 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6417 fi
6418
6419 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6420 echo "$as_me:$LINENO: result: yes" >&5
6421echo "${ECHO_T}yes" >&6
6422 else
6423 echo "$as_me:$LINENO: result: no" >&5
6424echo "${ECHO_T}no" >&6
6425 fi
6426
6427
6428 enablestring=
6429 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6430echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6431 no_cache=0
6432 # Check whether --enable-help or --disable-help was given.
6433if test "${enable_help+set}" = set; then
6434 enableval="$enable_help"
6435
6436 if test "$enableval" = yes; then
6437 ac_cv_use_help='wxUSE_HELP=yes'
6438 else
6439 ac_cv_use_help='wxUSE_HELP=no'
6440 fi
6441
6442else
6443
6444 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6445 if test "x$LINE" != x ; then
6446 eval "DEFAULT_$LINE"
6447 else
6448 no_cache=1
6449 fi
6450
6451 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6452
6453fi;
6454
6455 eval "$ac_cv_use_help"
6456 if test "$no_cache" != 1; then
6457 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6458 fi
6459
6460 if test "$wxUSE_HELP" = yes; then
6461 echo "$as_me:$LINENO: result: yes" >&5
6462echo "${ECHO_T}yes" >&6
6463 else
6464 echo "$as_me:$LINENO: result: no" >&5
6465echo "${ECHO_T}no" >&6
6466 fi
6467
6468
6469 enablestring=
6470 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6471echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6472 no_cache=0
6473 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6474if test "${enable_mshtmlhelp+set}" = set; then
6475 enableval="$enable_mshtmlhelp"
6476
6477 if test "$enableval" = yes; then
6478 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6479 else
6480 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6481 fi
6482
6483else
6484
6485 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6486 if test "x$LINE" != x ; then
6487 eval "DEFAULT_$LINE"
6488 else
6489 no_cache=1
6490 fi
6491
6492 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6493
6494fi;
6495
6496 eval "$ac_cv_use_mshtmlhelp"
6497 if test "$no_cache" != 1; then
6498 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6499 fi
6500
6501 if test "$wxUSE_MS_HTML_HELP" = yes; then
6502 echo "$as_me:$LINENO: result: yes" >&5
6503echo "${ECHO_T}yes" >&6
6504 else
6505 echo "$as_me:$LINENO: result: no" >&5
6506echo "${ECHO_T}no" >&6
6507 fi
6508
6509
6510 enablestring=
6511 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6512echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6513 no_cache=0
6514 # Check whether --enable-html or --disable-html was given.
6515if test "${enable_html+set}" = set; then
6516 enableval="$enable_html"
6517
6518 if test "$enableval" = yes; then
6519 ac_cv_use_html='wxUSE_HTML=yes'
6520 else
6521 ac_cv_use_html='wxUSE_HTML=no'
6522 fi
6523
6524else
6525
6526 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6527 if test "x$LINE" != x ; then
6528 eval "DEFAULT_$LINE"
6529 else
6530 no_cache=1
6531 fi
6532
6533 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6534
6535fi;
6536
6537 eval "$ac_cv_use_html"
6538 if test "$no_cache" != 1; then
6539 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6540 fi
6541
6542 if test "$wxUSE_HTML" = yes; then
6543 echo "$as_me:$LINENO: result: yes" >&5
6544echo "${ECHO_T}yes" >&6
6545 else
6546 echo "$as_me:$LINENO: result: no" >&5
6547echo "${ECHO_T}no" >&6
6548 fi
6549
6550
6551 enablestring=
6552 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6553echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6554 no_cache=0
6555 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6556if test "${enable_htmlhelp+set}" = set; then
6557 enableval="$enable_htmlhelp"
6558
6559 if test "$enableval" = yes; then
6560 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6561 else
6562 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6563 fi
6564
6565else
6566
6567 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6568 if test "x$LINE" != x ; then
6569 eval "DEFAULT_$LINE"
6570 else
6571 no_cache=1
6572 fi
6573
6574 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6575
6576fi;
6577
6578 eval "$ac_cv_use_htmlhelp"
6579 if test "$no_cache" != 1; then
6580 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6581 fi
6582
6583 if test "$wxUSE_WXHTML_HELP" = yes; then
6584 echo "$as_me:$LINENO: result: yes" >&5
6585echo "${ECHO_T}yes" >&6
6586 else
6587 echo "$as_me:$LINENO: result: no" >&5
6588echo "${ECHO_T}no" >&6
6589 fi
6590
6591
9a8f0513
VS
6592 enablestring=
6593 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6594echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6595 no_cache=0
6596 # Check whether --enable-xrc or --disable-xrc was given.
6597if test "${enable_xrc+set}" = set; then
6598 enableval="$enable_xrc"
6599
6600 if test "$enableval" = yes; then
6601 ac_cv_use_xrc='wxUSE_XRC=yes'
6602 else
6603 ac_cv_use_xrc='wxUSE_XRC=no'
6604 fi
6605
6606else
6607
6608 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6609 if test "x$LINE" != x ; then
6610 eval "DEFAULT_$LINE"
6611 else
6612 no_cache=1
6613 fi
6614
6615 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6616
6617fi;
6618
6619 eval "$ac_cv_use_xrc"
6620 if test "$no_cache" != 1; then
6621 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6622 fi
6623
6624 if test "$wxUSE_XRC" = yes; then
6625 echo "$as_me:$LINENO: result: yes" >&5
6626echo "${ECHO_T}yes" >&6
6627 else
6628 echo "$as_me:$LINENO: result: no" >&5
6629echo "${ECHO_T}no" >&6
6630 fi
6631
6632
a848cd7e
SC
6633 enablestring=
6634 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6635echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6636 no_cache=0
6637 # Check whether --enable-constraints or --disable-constraints was given.
6638if test "${enable_constraints+set}" = set; then
6639 enableval="$enable_constraints"
6640
6641 if test "$enableval" = yes; then
6642 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6643 else
6644 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6645 fi
6646
6647else
6648
6649 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6650 if test "x$LINE" != x ; then
6651 eval "DEFAULT_$LINE"
6652 else
6653 no_cache=1
6654 fi
6655
6656 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6657
6658fi;
6659
6660 eval "$ac_cv_use_constraints"
6661 if test "$no_cache" != 1; then
6662 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6663 fi
6664
6665 if test "$wxUSE_CONSTRAINTS" = yes; then
6666 echo "$as_me:$LINENO: result: yes" >&5
6667echo "${ECHO_T}yes" >&6
6668 else
6669 echo "$as_me:$LINENO: result: no" >&5
6670echo "${ECHO_T}no" >&6
6671 fi
6672
6673
6674 enablestring=
6675 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6676echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6677 no_cache=0
6678 # Check whether --enable-printarch or --disable-printarch was given.
6679if test "${enable_printarch+set}" = set; then
6680 enableval="$enable_printarch"
6681
6682 if test "$enableval" = yes; then
6683 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6684 else
6685 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6686 fi
6687
6688else
6689
6690 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6691 if test "x$LINE" != x ; then
6692 eval "DEFAULT_$LINE"
6693 else
6694 no_cache=1
6695 fi
6696
6697 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6698
6699fi;
6700
6701 eval "$ac_cv_use_printarch"
6702 if test "$no_cache" != 1; then
6703 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6704 fi
6705
6706 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6707 echo "$as_me:$LINENO: result: yes" >&5
6708echo "${ECHO_T}yes" >&6
6709 else
6710 echo "$as_me:$LINENO: result: no" >&5
6711echo "${ECHO_T}no" >&6
6712 fi
6713
6714
6715 enablestring=
6716 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6717echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6718 no_cache=0
6719 # Check whether --enable-mdi or --disable-mdi was given.
6720if test "${enable_mdi+set}" = set; then
6721 enableval="$enable_mdi"
6722
6723 if test "$enableval" = yes; then
8a7b1113 6724 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6725 else
8a7b1113 6726 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6727 fi
6728
6729else
6730
8a7b1113 6731 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6732 if test "x$LINE" != x ; then
6733 eval "DEFAULT_$LINE"
6734 else
6735 no_cache=1
6736 fi
6737
8a7b1113 6738 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6739
6740fi;
6741
6742 eval "$ac_cv_use_mdi"
6743 if test "$no_cache" != 1; then
6744 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6745 fi
6746
8a7b1113
VZ
6747 if test "$wxUSE_MDI" = yes; then
6748 echo "$as_me:$LINENO: result: yes" >&5
6749echo "${ECHO_T}yes" >&6
6750 else
6751 echo "$as_me:$LINENO: result: no" >&5
6752echo "${ECHO_T}no" >&6
6753 fi
6754
6755
6756 enablestring=
6757 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6758echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6759 no_cache=0
6760 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6761if test "${enable_mdidoc+set}" = set; then
6762 enableval="$enable_mdidoc"
6763
6764 if test "$enableval" = yes; then
6765 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6766 else
6767 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6768 fi
6769
6770else
6771
6772 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6773 if test "x$LINE" != x ; then
6774 eval "DEFAULT_$LINE"
6775 else
6776 no_cache=1
6777 fi
6778
6779 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6780
6781fi;
6782
6783 eval "$ac_cv_use_mdidoc"
6784 if test "$no_cache" != 1; then
6785 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6786 fi
6787
a848cd7e
SC
6788 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6789 echo "$as_me:$LINENO: result: yes" >&5
6790echo "${ECHO_T}yes" >&6
6791 else
6792 echo "$as_me:$LINENO: result: no" >&5
6793echo "${ECHO_T}no" >&6
6794 fi
6795
6796
6797 enablestring=
6798 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6799echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6800 no_cache=0
6801 # Check whether --enable-loggui or --disable-loggui was given.
6802if test "${enable_loggui+set}" = set; then
6803 enableval="$enable_loggui"
6804
6805 if test "$enableval" = yes; then
6806 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6807 else
6808 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6809 fi
6810
6811else
6812
6813 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6814 if test "x$LINE" != x ; then
6815 eval "DEFAULT_$LINE"
6816 else
6817 no_cache=1
6818 fi
6819
6820 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6821
6822fi;
6823
6824 eval "$ac_cv_use_loggui"
6825 if test "$no_cache" != 1; then
6826 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6827 fi
6828
6829 if test "$wxUSE_LOGGUI" = yes; then
6830 echo "$as_me:$LINENO: result: yes" >&5
6831echo "${ECHO_T}yes" >&6
6832 else
6833 echo "$as_me:$LINENO: result: no" >&5
6834echo "${ECHO_T}no" >&6
6835 fi
6836
6837
6838 enablestring=
6839 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6840echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6841 no_cache=0
6842 # Check whether --enable-logwin or --disable-logwin was given.
6843if test "${enable_logwin+set}" = set; then
6844 enableval="$enable_logwin"
6845
6846 if test "$enableval" = yes; then
6847 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6848 else
6849 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6850 fi
6851
6852else
6853
6854 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6855 if test "x$LINE" != x ; then
6856 eval "DEFAULT_$LINE"
6857 else
6858 no_cache=1
6859 fi
6860
6861 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6862
6863fi;
6864
6865 eval "$ac_cv_use_logwin"
6866 if test "$no_cache" != 1; then
6867 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6868 fi
6869
6870 if test "$wxUSE_LOGWINDOW" = yes; then
6871 echo "$as_me:$LINENO: result: yes" >&5
6872echo "${ECHO_T}yes" >&6
6873 else
6874 echo "$as_me:$LINENO: result: no" >&5
6875echo "${ECHO_T}no" >&6
6876 fi
6877
6878
6879 enablestring=
6880 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6881echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6882 no_cache=0
6883 # Check whether --enable-logdialog or --disable-logdialog was given.
6884if test "${enable_logdialog+set}" = set; then
6885 enableval="$enable_logdialog"
6886
6887 if test "$enableval" = yes; then
6888 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6889 else
6890 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6891 fi
6892
6893else
6894
6895 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6896 if test "x$LINE" != x ; then
6897 eval "DEFAULT_$LINE"
6898 else
6899 no_cache=1
6900 fi
6901
6902 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6903
6904fi;
6905
6906 eval "$ac_cv_use_logdialog"
6907 if test "$no_cache" != 1; then
6908 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6909 fi
6910
6911 if test "$wxUSE_LOGDIALOG" = yes; then
6912 echo "$as_me:$LINENO: result: yes" >&5
6913echo "${ECHO_T}yes" >&6
6914 else
6915 echo "$as_me:$LINENO: result: no" >&5
6916echo "${ECHO_T}no" >&6
6917 fi
6918
6919
646b6ec1
VS
6920 enablestring=
6921 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6922echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6923 no_cache=0
6924 # Check whether --enable-webkit or --disable-webkit was given.
6925if test "${enable_webkit+set}" = set; then
6926 enableval="$enable_webkit"
6927
6928 if test "$enableval" = yes; then
6929 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6930 else
6931 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6932 fi
6933
6934else
6935
6936 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6937 if test "x$LINE" != x ; then
6938 eval "DEFAULT_$LINE"
6939 else
6940 no_cache=1
6941 fi
6942
6943 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6944
6945fi;
6946
6947 eval "$ac_cv_use_webkit"
6948 if test "$no_cache" != 1; then
6949 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6950 fi
6951
6952 if test "$wxUSE_WEBKIT" = yes; then
6953 echo "$as_me:$LINENO: result: yes" >&5
6954echo "${ECHO_T}yes" >&6
6955 else
6956 echo "$as_me:$LINENO: result: no" >&5
6957echo "${ECHO_T}no" >&6
6958 fi
6959
6960
a848cd7e
SC
6961
6962 enablestring=
6963 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6964echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6965 no_cache=0
6966 # Check whether --enable-postscript or --disable-postscript was given.
6967if test "${enable_postscript+set}" = set; then
6968 enableval="$enable_postscript"
6969
6970 if test "$enableval" = yes; then
6971 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6972 else
6973 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6974 fi
6975
6976else
6977
6978 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6979 if test "x$LINE" != x ; then
6980 eval "DEFAULT_$LINE"
6981 else
6982 no_cache=1
6983 fi
6984
6985 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6986
6987fi;
6988
6989 eval "$ac_cv_use_postscript"
6990 if test "$no_cache" != 1; then
6991 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6992 fi
6993
6994 if test "$wxUSE_POSTSCRIPT" = yes; then
6995 echo "$as_me:$LINENO: result: yes" >&5
6996echo "${ECHO_T}yes" >&6
6997 else
6998 echo "$as_me:$LINENO: result: no" >&5
6999echo "${ECHO_T}no" >&6
7000 fi
7001
7002
7003
7004
7005
7006 enablestring=
7007 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7008echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7009 no_cache=0
7010 # Check whether --enable-prologio or --disable-prologio was given.
7011if test "${enable_prologio+set}" = set; then
7012 enableval="$enable_prologio"
7013
7014 if test "$enableval" = yes; then
7015 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7016 else
7017 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7018 fi
7019
7020else
7021
7022 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7023 if test "x$LINE" != x ; then
7024 eval "DEFAULT_$LINE"
7025 else
7026 no_cache=1
7027 fi
7028
7029 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7030
7031fi;
7032
7033 eval "$ac_cv_use_prologio"
7034 if test "$no_cache" != 1; then
7035 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7036 fi
7037
7038 if test "$wxUSE_PROLOGIO" = yes; then
7039 echo "$as_me:$LINENO: result: yes" >&5
7040echo "${ECHO_T}yes" >&6
7041 else
7042 echo "$as_me:$LINENO: result: no" >&5
7043echo "${ECHO_T}no" >&6
7044 fi
7045
7046
7047 enablestring=
7048 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7049echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7050 no_cache=0
7051 # Check whether --enable-resources or --disable-resources was given.
7052if test "${enable_resources+set}" = set; then
7053 enableval="$enable_resources"
7054
7055 if test "$enableval" = yes; then
7056 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7057 else
7058 ac_cv_use_resources='wxUSE_RESOURCES=no'
7059 fi
7060
7061else
7062
7063 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7064 if test "x$LINE" != x ; then
7065 eval "DEFAULT_$LINE"
7066 else
7067 no_cache=1
7068 fi
7069
7070 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7071
7072fi;
7073
7074 eval "$ac_cv_use_resources"
7075 if test "$no_cache" != 1; then
7076 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7077 fi
7078
7079 if test "$wxUSE_RESOURCES" = yes; then
7080 echo "$as_me:$LINENO: result: yes" >&5
7081echo "${ECHO_T}yes" >&6
7082 else
7083 echo "$as_me:$LINENO: result: no" >&5
7084echo "${ECHO_T}no" >&6
7085 fi
7086
7087
7088
7089
7090 enablestring=
7091 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7092echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7093 no_cache=0
7094 # Check whether --enable-clipboard or --disable-clipboard was given.
7095if test "${enable_clipboard+set}" = set; then
7096 enableval="$enable_clipboard"
7097
7098 if test "$enableval" = yes; then
7099 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7100 else
7101 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7102 fi
7103
7104else
7105
7106 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7107 if test "x$LINE" != x ; then
7108 eval "DEFAULT_$LINE"
7109 else
7110 no_cache=1
7111 fi
7112
7113 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7114
7115fi;
7116
7117 eval "$ac_cv_use_clipboard"
7118 if test "$no_cache" != 1; then
7119 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7120 fi
7121
7122 if test "$wxUSE_CLIPBOARD" = yes; then
7123 echo "$as_me:$LINENO: result: yes" >&5
7124echo "${ECHO_T}yes" >&6
7125 else
7126 echo "$as_me:$LINENO: result: no" >&5
7127echo "${ECHO_T}no" >&6
7128 fi
7129
7130
7131 enablestring=
7132 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7133echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7134 no_cache=0
7135 # Check whether --enable-dnd or --disable-dnd was given.
7136if test "${enable_dnd+set}" = set; then
7137 enableval="$enable_dnd"
7138
7139 if test "$enableval" = yes; then
7140 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7141 else
7142 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7143 fi
7144
7145else
7146
7147 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7148 if test "x$LINE" != x ; then
7149 eval "DEFAULT_$LINE"
7150 else
7151 no_cache=1
7152 fi
7153
7154 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7155
7156fi;
7157
7158 eval "$ac_cv_use_dnd"
7159 if test "$no_cache" != 1; then
7160 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7161 fi
7162
7163 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7164 echo "$as_me:$LINENO: result: yes" >&5
7165echo "${ECHO_T}yes" >&6
7166 else
7167 echo "$as_me:$LINENO: result: no" >&5
7168echo "${ECHO_T}no" >&6
7169 fi
7170
7171
7172 enablestring=
7173 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7174echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7175 no_cache=0
7176 # Check whether --enable-metafile or --disable-metafile was given.
7177if test "${enable_metafile+set}" = set; then
7178 enableval="$enable_metafile"
7179
7180 if test "$enableval" = yes; then
7181 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7182 else
7183 ac_cv_use_metafile='wxUSE_METAFILE=no'
7184 fi
7185
7186else
7187
7188 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7189 if test "x$LINE" != x ; then
7190 eval "DEFAULT_$LINE"
7191 else
7192 no_cache=1
7193 fi
7194
7195 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7196
7197fi;
7198
7199 eval "$ac_cv_use_metafile"
7200 if test "$no_cache" != 1; then
7201 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7202 fi
7203
7204 if test "$wxUSE_METAFILE" = yes; then
7205 echo "$as_me:$LINENO: result: yes" >&5
7206echo "${ECHO_T}yes" >&6
7207 else
7208 echo "$as_me:$LINENO: result: no" >&5
7209echo "${ECHO_T}no" >&6
7210 fi
7211
7212
7213
7214
7215
7216 enablestring=
7217 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7218echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7219 no_cache=0
7220 # Check whether --enable-controls or --disable-controls was given.
7221if test "${enable_controls+set}" = set; then
7222 enableval="$enable_controls"
7223
7224 if test "$enableval" = yes; then
7225 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7226 else
7227 ac_cv_use_controls='wxUSE_CONTROLS=no'
7228 fi
7229
7230else
7231
7232 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7233 if test "x$LINE" != x ; then
7234 eval "DEFAULT_$LINE"
7235 else
7236 no_cache=1
7237 fi
7238
7239 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7240
7241fi;
7242
7243 eval "$ac_cv_use_controls"
7244 if test "$no_cache" != 1; then
7245 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7246 fi
7247
7248 if test "$wxUSE_CONTROLS" = yes; then
7249 echo "$as_me:$LINENO: result: yes" >&5
7250echo "${ECHO_T}yes" >&6
7251 else
7252 echo "$as_me:$LINENO: result: no" >&5
7253echo "${ECHO_T}no" >&6
7254 fi
7255
7256
7257if test "$wxUSE_CONTROLS" = "yes"; then
7258 DEFAULT_wxUSE_ACCEL=yes
7259 DEFAULT_wxUSE_BMPBUTTON=yes
7260 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7261 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7262 DEFAULT_wxUSE_CARET=yes
7263 DEFAULT_wxUSE_COMBOBOX=yes
7264 DEFAULT_wxUSE_CHECKBOX=yes
7265 DEFAULT_wxUSE_CHECKLISTBOX=yes
7266 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7267 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7268 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7269 DEFAULT_wxUSE_GAUGE=yes
7270 DEFAULT_wxUSE_GRID=yes
7271 DEFAULT_wxUSE_IMAGLIST=yes
7272 DEFAULT_wxUSE_LISTBOOK=yes
7273 DEFAULT_wxUSE_LISTBOX=yes
7274 DEFAULT_wxUSE_LISTCTRL=yes
7275 DEFAULT_wxUSE_NOTEBOOK=yes
7276 DEFAULT_wxUSE_RADIOBOX=yes
7277 DEFAULT_wxUSE_RADIOBTN=yes
7278 DEFAULT_wxUSE_SASH=yes
7279 DEFAULT_wxUSE_SCROLLBAR=yes
7280 DEFAULT_wxUSE_SLIDER=yes
7281 DEFAULT_wxUSE_SPINBTN=yes
7282 DEFAULT_wxUSE_SPINCTRL=yes
7283 DEFAULT_wxUSE_SPLITTER=yes
7284 DEFAULT_wxUSE_STATBMP=yes
7285 DEFAULT_wxUSE_STATBOX=yes
7286 DEFAULT_wxUSE_STATLINE=yes
7287 DEFAULT_wxUSE_STATUSBAR=yes
7288 DEFAULT_wxUSE_TAB_DIALOG=yes
7289 DEFAULT_wxUSE_TOGGLEBTN=yes
7290 DEFAULT_wxUSE_TOOLBAR=yes
7291 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7292 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7293 DEFAULT_wxUSE_TOOLTIPS=yes
7294 DEFAULT_wxUSE_TREECTRL=yes
7295 DEFAULT_wxUSE_POPUPWIN=yes
7296 DEFAULT_wxUSE_TIPWINDOW=yes
7297elif test "$wxUSE_CONTROLS" = "no"; then
7298 DEFAULT_wxUSE_ACCEL=no
7299 DEFAULT_wxUSE_BMPBUTTON=no
7300 DEFAULT_wxUSE_BUTTON=no
7301 DEFAULT_wxUSE_CALCTRL=no
7302 DEFAULT_wxUSE_CARET=no
7303 DEFAULT_wxUSE_COMBOBOX=no
7304 DEFAULT_wxUSE_CHECKBOX=no
7305 DEFAULT_wxUSE_CHECKLISTBOX=no
7306 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7307 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7308 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7309 DEFAULT_wxUSE_GAUGE=no
7310 DEFAULT_wxUSE_GRID=no
7311 DEFAULT_wxUSE_IMAGLIST=no
7312 DEFAULT_wxUSE_LISTBOOK=no
7313 DEFAULT_wxUSE_LISTBOX=no
7314 DEFAULT_wxUSE_LISTCTRL=no
7315 DEFAULT_wxUSE_NOTEBOOK=no
7316 DEFAULT_wxUSE_RADIOBOX=no
7317 DEFAULT_wxUSE_RADIOBTN=no
7318 DEFAULT_wxUSE_SASH=no
7319 DEFAULT_wxUSE_SCROLLBAR=no
7320 DEFAULT_wxUSE_SLIDER=no
7321 DEFAULT_wxUSE_SPINBTN=no
7322 DEFAULT_wxUSE_SPINCTRL=no
7323 DEFAULT_wxUSE_SPLITTER=no
7324 DEFAULT_wxUSE_STATBMP=no
7325 DEFAULT_wxUSE_STATBOX=no
7326 DEFAULT_wxUSE_STATLINE=no
7327 DEFAULT_wxUSE_STATUSBAR=no
7328 DEFAULT_wxUSE_TAB_DIALOG=no
7329 DEFAULT_wxUSE_TOGGLEBTN=no
7330 DEFAULT_wxUSE_TOOLBAR=no
7331 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7332 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7333 DEFAULT_wxUSE_TOOLTIPS=no
7334 DEFAULT_wxUSE_TREECTRL=no
7335 DEFAULT_wxUSE_POPUPWIN=no
7336 DEFAULT_wxUSE_TIPWINDOW=no
7337fi
7338
a848cd7e
SC
7339
7340 enablestring=
7341 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7342echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7343 no_cache=0
7344 # Check whether --enable-accel or --disable-accel was given.
7345if test "${enable_accel+set}" = set; then
7346 enableval="$enable_accel"
7347
7348 if test "$enableval" = yes; then
7349 ac_cv_use_accel='wxUSE_ACCEL=yes'
7350 else
7351 ac_cv_use_accel='wxUSE_ACCEL=no'
7352 fi
7353
7354else
7355
7356 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7357 if test "x$LINE" != x ; then
7358 eval "DEFAULT_$LINE"
7359 else
7360 no_cache=1
7361 fi
7362
7363 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7364
7365fi;
7366
7367 eval "$ac_cv_use_accel"
7368 if test "$no_cache" != 1; then
7369 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7370 fi
7371
7372 if test "$wxUSE_ACCEL" = yes; then
7373 echo "$as_me:$LINENO: result: yes" >&5
7374echo "${ECHO_T}yes" >&6
7375 else
7376 echo "$as_me:$LINENO: result: no" >&5
7377echo "${ECHO_T}no" >&6
7378 fi
7379
7380
7381 enablestring=
7382 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7383echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7384 no_cache=0
7385 # Check whether --enable-button or --disable-button was given.
7386if test "${enable_button+set}" = set; then
7387 enableval="$enable_button"
7388
7389 if test "$enableval" = yes; then
7390 ac_cv_use_button='wxUSE_BUTTON=yes'
7391 else
7392 ac_cv_use_button='wxUSE_BUTTON=no'
7393 fi
7394
7395else
7396
7397 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7398 if test "x$LINE" != x ; then
7399 eval "DEFAULT_$LINE"
7400 else
7401 no_cache=1
7402 fi
7403
7404 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7405
7406fi;
7407
7408 eval "$ac_cv_use_button"
7409 if test "$no_cache" != 1; then
7410 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7411 fi
7412
7413 if test "$wxUSE_BUTTON" = yes; then
7414 echo "$as_me:$LINENO: result: yes" >&5
7415echo "${ECHO_T}yes" >&6
7416 else
7417 echo "$as_me:$LINENO: result: no" >&5
7418echo "${ECHO_T}no" >&6
7419 fi
7420
7421
7422 enablestring=
7423 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7424echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7425 no_cache=0
7426 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7427if test "${enable_bmpbutton+set}" = set; then
7428 enableval="$enable_bmpbutton"
7429
7430 if test "$enableval" = yes; then
7431 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7432 else
7433 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7434 fi
7435
7436else
7437
7438 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7439 if test "x$LINE" != x ; then
7440 eval "DEFAULT_$LINE"
7441 else
7442 no_cache=1
7443 fi
7444
7445 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7446
7447fi;
7448
7449 eval "$ac_cv_use_bmpbutton"
7450 if test "$no_cache" != 1; then
7451 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7452 fi
7453
7454 if test "$wxUSE_BMPBUTTON" = yes; then
7455 echo "$as_me:$LINENO: result: yes" >&5
7456echo "${ECHO_T}yes" >&6
7457 else
7458 echo "$as_me:$LINENO: result: no" >&5
7459echo "${ECHO_T}no" >&6
7460 fi
7461
7462
7463 enablestring=
7464 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7465echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7466 no_cache=0
7467 # Check whether --enable-calendar or --disable-calendar was given.
7468if test "${enable_calendar+set}" = set; then
7469 enableval="$enable_calendar"
7470
7471 if test "$enableval" = yes; then
7472 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7473 else
7474 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7475 fi
7476
7477else
7478
7479 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7480 if test "x$LINE" != x ; then
7481 eval "DEFAULT_$LINE"
7482 else
7483 no_cache=1
7484 fi
7485
7486 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7487
7488fi;
7489
7490 eval "$ac_cv_use_calendar"
7491 if test "$no_cache" != 1; then
7492 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7493 fi
7494
7495 if test "$wxUSE_CALCTRL" = yes; then
7496 echo "$as_me:$LINENO: result: yes" >&5
7497echo "${ECHO_T}yes" >&6
7498 else
7499 echo "$as_me:$LINENO: result: no" >&5
7500echo "${ECHO_T}no" >&6
7501 fi
7502
7503
7504 enablestring=
7505 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7506echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7507 no_cache=0
7508 # Check whether --enable-caret or --disable-caret was given.
7509if test "${enable_caret+set}" = set; then
7510 enableval="$enable_caret"
7511
7512 if test "$enableval" = yes; then
7513 ac_cv_use_caret='wxUSE_CARET=yes'
7514 else
7515 ac_cv_use_caret='wxUSE_CARET=no'
7516 fi
7517
7518else
7519
7520 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7521 if test "x$LINE" != x ; then
7522 eval "DEFAULT_$LINE"
7523 else
7524 no_cache=1
7525 fi
7526
7527 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7528
7529fi;
7530
7531 eval "$ac_cv_use_caret"
7532 if test "$no_cache" != 1; then
7533 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7534 fi
7535
7536 if test "$wxUSE_CARET" = yes; then
7537 echo "$as_me:$LINENO: result: yes" >&5
7538echo "${ECHO_T}yes" >&6
7539 else
7540 echo "$as_me:$LINENO: result: no" >&5
7541echo "${ECHO_T}no" >&6
7542 fi
7543
7544
7545 enablestring=
7546 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7547echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7548 no_cache=0
7549 # Check whether --enable-checkbox or --disable-checkbox was given.
7550if test "${enable_checkbox+set}" = set; then
7551 enableval="$enable_checkbox"
7552
7553 if test "$enableval" = yes; then
7554 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7555 else
7556 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7557 fi
7558
7559else
7560
7561 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7562 if test "x$LINE" != x ; then
7563 eval "DEFAULT_$LINE"
7564 else
7565 no_cache=1
7566 fi
7567
7568 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7569
7570fi;
7571
7572 eval "$ac_cv_use_checkbox"
7573 if test "$no_cache" != 1; then
7574 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7575 fi
7576
7577 if test "$wxUSE_CHECKBOX" = yes; then
7578 echo "$as_me:$LINENO: result: yes" >&5
7579echo "${ECHO_T}yes" >&6
7580 else
7581 echo "$as_me:$LINENO: result: no" >&5
7582echo "${ECHO_T}no" >&6
7583 fi
7584
7585
7586 enablestring=
7587 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7588echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7589 no_cache=0
7590 # Check whether --enable-checklst or --disable-checklst was given.
7591if test "${enable_checklst+set}" = set; then
7592 enableval="$enable_checklst"
7593
7594 if test "$enableval" = yes; then
7595 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7596 else
7597 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7598 fi
7599
7600else
7601
7602 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7603 if test "x$LINE" != x ; then
7604 eval "DEFAULT_$LINE"
7605 else
7606 no_cache=1
7607 fi
7608
7609 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7610
7611fi;
7612
7613 eval "$ac_cv_use_checklst"
7614 if test "$no_cache" != 1; then
7615 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7616 fi
7617
7618 if test "$wxUSE_CHECKLST" = yes; then
7619 echo "$as_me:$LINENO: result: yes" >&5
7620echo "${ECHO_T}yes" >&6
7621 else
7622 echo "$as_me:$LINENO: result: no" >&5
7623echo "${ECHO_T}no" >&6
7624 fi
7625
7626
7627 enablestring=
7628 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7629echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7630 no_cache=0
7631 # Check whether --enable-choice or --disable-choice was given.
7632if test "${enable_choice+set}" = set; then
7633 enableval="$enable_choice"
7634
7635 if test "$enableval" = yes; then
7636 ac_cv_use_choice='wxUSE_CHOICE=yes'
7637 else
7638 ac_cv_use_choice='wxUSE_CHOICE=no'
7639 fi
7640
7641else
7642
7643 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7644 if test "x$LINE" != x ; then
7645 eval "DEFAULT_$LINE"
7646 else
7647 no_cache=1
7648 fi
7649
7650 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7651
7652fi;
7653
7654 eval "$ac_cv_use_choice"
7655 if test "$no_cache" != 1; then
7656 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7657 fi
7658
7659 if test "$wxUSE_CHOICE" = yes; then
7660 echo "$as_me:$LINENO: result: yes" >&5
7661echo "${ECHO_T}yes" >&6
7662 else
7663 echo "$as_me:$LINENO: result: no" >&5
7664echo "${ECHO_T}no" >&6
7665 fi
7666
7667
92bbdbcd
WS
7668 enablestring=
7669 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7670echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7671 no_cache=0
7672 # Check whether --enable-choicebook or --disable-choicebook was given.
7673if test "${enable_choicebook+set}" = set; then
7674 enableval="$enable_choicebook"
7675
7676 if test "$enableval" = yes; then
7677 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7678 else
7679 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7680 fi
7681
7682else
7683
7684 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7685 if test "x$LINE" != x ; then
7686 eval "DEFAULT_$LINE"
7687 else
7688 no_cache=1
7689 fi
7690
7691 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7692
7693fi;
7694
7695 eval "$ac_cv_use_choicebook"
7696 if test "$no_cache" != 1; then
7697 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7698 fi
7699
7700 if test "$wxUSE_CHOICEBOOK" = yes; then
7701 echo "$as_me:$LINENO: result: yes" >&5
7702echo "${ECHO_T}yes" >&6
7703 else
7704 echo "$as_me:$LINENO: result: no" >&5
7705echo "${ECHO_T}no" >&6
7706 fi
7707
7708
a848cd7e
SC
7709 enablestring=
7710 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7711echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7712 no_cache=0
7713 # Check whether --enable-combobox or --disable-combobox was given.
7714if test "${enable_combobox+set}" = set; then
7715 enableval="$enable_combobox"
7716
7717 if test "$enableval" = yes; then
7718 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7719 else
7720 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7721 fi
7722
7723else
7724
7725 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7726 if test "x$LINE" != x ; then
7727 eval "DEFAULT_$LINE"
7728 else
7729 no_cache=1
7730 fi
7731
7732 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7733
7734fi;
7735
7736 eval "$ac_cv_use_combobox"
7737 if test "$no_cache" != 1; then
7738 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7739 fi
7740
7741 if test "$wxUSE_COMBOBOX" = yes; then
7742 echo "$as_me:$LINENO: result: yes" >&5
7743echo "${ECHO_T}yes" >&6
7744 else
7745 echo "$as_me:$LINENO: result: no" >&5
7746echo "${ECHO_T}no" >&6
7747 fi
7748
7749
da98e9be
VZ
7750 enablestring=
7751 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7752echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7753 no_cache=0
7754 # Check whether --enable-datepick or --disable-datepick was given.
7755if test "${enable_datepick+set}" = set; then
7756 enableval="$enable_datepick"
7757
7758 if test "$enableval" = yes; then
7759 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7760 else
7761 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7762 fi
7763
7764else
7765
7766 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7767 if test "x$LINE" != x ; then
7768 eval "DEFAULT_$LINE"
7769 else
7770 no_cache=1
7771 fi
7772
7773 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7774
7775fi;
7776
7777 eval "$ac_cv_use_datepick"
7778 if test "$no_cache" != 1; then
7779 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7780 fi
7781
7782 if test "$wxUSE_DATEPICKCTRL" = yes; then
7783 echo "$as_me:$LINENO: result: yes" >&5
7784echo "${ECHO_T}yes" >&6
7785 else
7786 echo "$as_me:$LINENO: result: no" >&5
7787echo "${ECHO_T}no" >&6
7788 fi
7789
7790
a848cd7e
SC
7791 enablestring=
7792 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7793echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7794 no_cache=0
7795 # Check whether --enable-display or --disable-display was given.
7796if test "${enable_display+set}" = set; then
7797 enableval="$enable_display"
7798
7799 if test "$enableval" = yes; then
7800 ac_cv_use_display='wxUSE_DISPLAY=yes'
7801 else
7802 ac_cv_use_display='wxUSE_DISPLAY=no'
7803 fi
7804
7805else
7806
7807 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7808 if test "x$LINE" != x ; then
7809 eval "DEFAULT_$LINE"
7810 else
7811 no_cache=1
7812 fi
7813
7814 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7815
7816fi;
7817
7818 eval "$ac_cv_use_display"
7819 if test "$no_cache" != 1; then
7820 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7821 fi
7822
7823 if test "$wxUSE_DISPLAY" = yes; then
7824 echo "$as_me:$LINENO: result: yes" >&5
7825echo "${ECHO_T}yes" >&6
7826 else
7827 echo "$as_me:$LINENO: result: no" >&5
7828echo "${ECHO_T}no" >&6
7829 fi
7830
7831
7832 enablestring=
7833 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7834echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7835 no_cache=0
7836 # Check whether --enable-gauge or --disable-gauge was given.
7837if test "${enable_gauge+set}" = set; then
7838 enableval="$enable_gauge"
7839
7840 if test "$enableval" = yes; then
7841 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7842 else
7843 ac_cv_use_gauge='wxUSE_GAUGE=no'
7844 fi
7845
7846else
7847
7848 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7849 if test "x$LINE" != x ; then
7850 eval "DEFAULT_$LINE"
7851 else
7852 no_cache=1
7853 fi
7854
7855 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7856
7857fi;
7858
7859 eval "$ac_cv_use_gauge"
7860 if test "$no_cache" != 1; then
7861 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7862 fi
7863
7864 if test "$wxUSE_GAUGE" = yes; then
7865 echo "$as_me:$LINENO: result: yes" >&5
7866echo "${ECHO_T}yes" >&6
7867 else
7868 echo "$as_me:$LINENO: result: no" >&5
7869echo "${ECHO_T}no" >&6
7870 fi
7871
7872
7873 enablestring=
7874 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7875echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7876 no_cache=0
7877 # Check whether --enable-grid or --disable-grid was given.
7878if test "${enable_grid+set}" = set; then
7879 enableval="$enable_grid"
7880
7881 if test "$enableval" = yes; then
7882 ac_cv_use_grid='wxUSE_GRID=yes'
7883 else
7884 ac_cv_use_grid='wxUSE_GRID=no'
7885 fi
7886
7887else
7888
7889 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7890 if test "x$LINE" != x ; then
7891 eval "DEFAULT_$LINE"
7892 else
7893 no_cache=1
7894 fi
7895
7896 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7897
7898fi;
7899
7900 eval "$ac_cv_use_grid"
7901 if test "$no_cache" != 1; then
7902 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7903 fi
7904
7905 if test "$wxUSE_GRID" = yes; then
7906 echo "$as_me:$LINENO: result: yes" >&5
7907echo "${ECHO_T}yes" >&6
7908 else
7909 echo "$as_me:$LINENO: result: no" >&5
7910echo "${ECHO_T}no" >&6
7911 fi
7912
7913
7914 enablestring=
7915 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7916echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7917 no_cache=0
7918 # Check whether --enable-imaglist or --disable-imaglist was given.
7919if test "${enable_imaglist+set}" = set; then
7920 enableval="$enable_imaglist"
7921
7922 if test "$enableval" = yes; then
7923 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7924 else
7925 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7926 fi
7927
7928else
7929
7930 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7931 if test "x$LINE" != x ; then
7932 eval "DEFAULT_$LINE"
7933 else
7934 no_cache=1
7935 fi
7936
7937 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7938
7939fi;
7940
7941 eval "$ac_cv_use_imaglist"
7942 if test "$no_cache" != 1; then
7943 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7944 fi
7945
7946 if test "$wxUSE_IMAGLIST" = yes; then
7947 echo "$as_me:$LINENO: result: yes" >&5
7948echo "${ECHO_T}yes" >&6
7949 else
7950 echo "$as_me:$LINENO: result: no" >&5
7951echo "${ECHO_T}no" >&6
7952 fi
7953
7954
7955 enablestring=
7956 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7957echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7958 no_cache=0
7959 # Check whether --enable-listbook or --disable-listbook was given.
7960if test "${enable_listbook+set}" = set; then
7961 enableval="$enable_listbook"
7962
7963 if test "$enableval" = yes; then
7964 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7965 else
7966 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7967 fi
7968
7969else
7970
7971 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7972 if test "x$LINE" != x ; then
7973 eval "DEFAULT_$LINE"
7974 else
7975 no_cache=1
7976 fi
7977
7978 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7979
7980fi;
7981
7982 eval "$ac_cv_use_listbook"
7983 if test "$no_cache" != 1; then
7984 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7985 fi
7986
7987 if test "$wxUSE_LISTBOOK" = yes; then
7988 echo "$as_me:$LINENO: result: yes" >&5
7989echo "${ECHO_T}yes" >&6
7990 else
7991 echo "$as_me:$LINENO: result: no" >&5
7992echo "${ECHO_T}no" >&6
7993 fi
7994
7995
7996 enablestring=
7997 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7998echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7999 no_cache=0
8000 # Check whether --enable-listbox or --disable-listbox was given.
8001if test "${enable_listbox+set}" = set; then
8002 enableval="$enable_listbox"
8003
8004 if test "$enableval" = yes; then
8005 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8006 else
8007 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8008 fi
8009
8010else
8011
8012 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8013 if test "x$LINE" != x ; then
8014 eval "DEFAULT_$LINE"
8015 else
8016 no_cache=1
8017 fi
8018
8019 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8020
8021fi;
8022
8023 eval "$ac_cv_use_listbox"
8024 if test "$no_cache" != 1; then
8025 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8026 fi
8027
8028 if test "$wxUSE_LISTBOX" = yes; then
8029 echo "$as_me:$LINENO: result: yes" >&5
8030echo "${ECHO_T}yes" >&6
8031 else
8032 echo "$as_me:$LINENO: result: no" >&5
8033echo "${ECHO_T}no" >&6
8034 fi
8035
8036
8037 enablestring=
8038 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8039echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8040 no_cache=0
8041 # Check whether --enable-listctrl or --disable-listctrl was given.
8042if test "${enable_listctrl+set}" = set; then
8043 enableval="$enable_listctrl"
8044
8045 if test "$enableval" = yes; then
8046 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8047 else
8048 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8049 fi
8050
8051else
8052
8053 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8054 if test "x$LINE" != x ; then
8055 eval "DEFAULT_$LINE"
8056 else
8057 no_cache=1
8058 fi
8059
8060 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8061
8062fi;
8063
8064 eval "$ac_cv_use_listctrl"
8065 if test "$no_cache" != 1; then
8066 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8067 fi
8068
8069 if test "$wxUSE_LISTCTRL" = yes; then
8070 echo "$as_me:$LINENO: result: yes" >&5
8071echo "${ECHO_T}yes" >&6
8072 else
8073 echo "$as_me:$LINENO: result: no" >&5
8074echo "${ECHO_T}no" >&6
8075 fi
8076
8077
8078 enablestring=
8079 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8080echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8081 no_cache=0
8082 # Check whether --enable-notebook or --disable-notebook was given.
8083if test "${enable_notebook+set}" = set; then
8084 enableval="$enable_notebook"
8085
8086 if test "$enableval" = yes; then
8087 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8088 else
8089 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8090 fi
8091
8092else
8093
8094 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8095 if test "x$LINE" != x ; then
8096 eval "DEFAULT_$LINE"
8097 else
8098 no_cache=1
8099 fi
8100
8101 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8102
8103fi;
8104
8105 eval "$ac_cv_use_notebook"
8106 if test "$no_cache" != 1; then
8107 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8108 fi
8109
8110 if test "$wxUSE_NOTEBOOK" = yes; then
8111 echo "$as_me:$LINENO: result: yes" >&5
8112echo "${ECHO_T}yes" >&6
8113 else
8114 echo "$as_me:$LINENO: result: no" >&5
8115echo "${ECHO_T}no" >&6
8116 fi
8117
8118
8119 enablestring=
8120 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8121echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8122 no_cache=0
8123 # Check whether --enable-radiobox or --disable-radiobox was given.
8124if test "${enable_radiobox+set}" = set; then
8125 enableval="$enable_radiobox"
8126
8127 if test "$enableval" = yes; then
8128 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8129 else
8130 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8131 fi
8132
8133else
8134
8135 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8136 if test "x$LINE" != x ; then
8137 eval "DEFAULT_$LINE"
8138 else
8139 no_cache=1
8140 fi
8141
8142 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8143
8144fi;
8145
8146 eval "$ac_cv_use_radiobox"
8147 if test "$no_cache" != 1; then
8148 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8149 fi
8150
8151 if test "$wxUSE_RADIOBOX" = yes; then
8152 echo "$as_me:$LINENO: result: yes" >&5
8153echo "${ECHO_T}yes" >&6
8154 else
8155 echo "$as_me:$LINENO: result: no" >&5
8156echo "${ECHO_T}no" >&6
8157 fi
8158
8159
8160 enablestring=
8161 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8162echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8163 no_cache=0
8164 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8165if test "${enable_radiobtn+set}" = set; then
8166 enableval="$enable_radiobtn"
8167
8168 if test "$enableval" = yes; then
8169 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8170 else
8171 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8172 fi
8173
8174else
8175
8176 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8177 if test "x$LINE" != x ; then
8178 eval "DEFAULT_$LINE"
8179 else
8180 no_cache=1
8181 fi
8182
8183 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8184
8185fi;
8186
8187 eval "$ac_cv_use_radiobtn"
8188 if test "$no_cache" != 1; then
8189 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8190 fi
8191
8192 if test "$wxUSE_RADIOBTN" = yes; then
8193 echo "$as_me:$LINENO: result: yes" >&5
8194echo "${ECHO_T}yes" >&6
8195 else
8196 echo "$as_me:$LINENO: result: no" >&5
8197echo "${ECHO_T}no" >&6
8198 fi
8199
8200
8201 enablestring=
8202 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8203echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8204 no_cache=0
8205 # Check whether --enable-sash or --disable-sash was given.
8206if test "${enable_sash+set}" = set; then
8207 enableval="$enable_sash"
8208
8209 if test "$enableval" = yes; then
8210 ac_cv_use_sash='wxUSE_SASH=yes'
8211 else
8212 ac_cv_use_sash='wxUSE_SASH=no'
8213 fi
8214
8215else
8216
8217 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8218 if test "x$LINE" != x ; then
8219 eval "DEFAULT_$LINE"
8220 else
8221 no_cache=1
8222 fi
8223
8224 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8225
8226fi;
8227
8228 eval "$ac_cv_use_sash"
8229 if test "$no_cache" != 1; then
8230 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8231 fi
8232
8233 if test "$wxUSE_SASH" = yes; then
8234 echo "$as_me:$LINENO: result: yes" >&5
8235echo "${ECHO_T}yes" >&6
8236 else
8237 echo "$as_me:$LINENO: result: no" >&5
8238echo "${ECHO_T}no" >&6
8239 fi
8240
8241
8242 enablestring=
8243 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8244echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8245 no_cache=0
8246 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8247if test "${enable_scrollbar+set}" = set; then
8248 enableval="$enable_scrollbar"
8249
8250 if test "$enableval" = yes; then
8251 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8252 else
8253 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8254 fi
8255
8256else
8257
8258 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8259 if test "x$LINE" != x ; then
8260 eval "DEFAULT_$LINE"
8261 else
8262 no_cache=1
8263 fi
8264
8265 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8266
8267fi;
8268
8269 eval "$ac_cv_use_scrollbar"
8270 if test "$no_cache" != 1; then
8271 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8272 fi
8273
8274 if test "$wxUSE_SCROLLBAR" = yes; then
8275 echo "$as_me:$LINENO: result: yes" >&5
8276echo "${ECHO_T}yes" >&6
8277 else
8278 echo "$as_me:$LINENO: result: no" >&5
8279echo "${ECHO_T}no" >&6
8280 fi
8281
8282
8283 enablestring=
8284 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8285echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8286 no_cache=0
8287 # Check whether --enable-slider or --disable-slider was given.
8288if test "${enable_slider+set}" = set; then
8289 enableval="$enable_slider"
8290
8291 if test "$enableval" = yes; then
8292 ac_cv_use_slider='wxUSE_SLIDER=yes'
8293 else
8294 ac_cv_use_slider='wxUSE_SLIDER=no'
8295 fi
8296
8297else
8298
8299 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8300 if test "x$LINE" != x ; then
8301 eval "DEFAULT_$LINE"
8302 else
8303 no_cache=1
8304 fi
8305
8306 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8307
8308fi;
8309
8310 eval "$ac_cv_use_slider"
8311 if test "$no_cache" != 1; then
8312 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8313 fi
8314
8315 if test "$wxUSE_SLIDER" = yes; then
8316 echo "$as_me:$LINENO: result: yes" >&5
8317echo "${ECHO_T}yes" >&6
8318 else
8319 echo "$as_me:$LINENO: result: no" >&5
8320echo "${ECHO_T}no" >&6
8321 fi
8322
8323
8324 enablestring=
8325 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8326echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8327 no_cache=0
8328 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8329if test "${enable_spinbtn+set}" = set; then
8330 enableval="$enable_spinbtn"
8331
8332 if test "$enableval" = yes; then
8333 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8334 else
8335 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8336 fi
8337
8338else
8339
8340 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8341 if test "x$LINE" != x ; then
8342 eval "DEFAULT_$LINE"
8343 else
8344 no_cache=1
8345 fi
8346
8347 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8348
8349fi;
8350
8351 eval "$ac_cv_use_spinbtn"
8352 if test "$no_cache" != 1; then
8353 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8354 fi
8355
8356 if test "$wxUSE_SPINBTN" = yes; then
8357 echo "$as_me:$LINENO: result: yes" >&5
8358echo "${ECHO_T}yes" >&6
8359 else
8360 echo "$as_me:$LINENO: result: no" >&5
8361echo "${ECHO_T}no" >&6
8362 fi
8363
8364
8365 enablestring=
8366 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8367echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8368 no_cache=0
8369 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8370if test "${enable_spinctrl+set}" = set; then
8371 enableval="$enable_spinctrl"
8372
8373 if test "$enableval" = yes; then
8374 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8375 else
8376 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8377 fi
8378
8379else
8380
8381 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8382 if test "x$LINE" != x ; then
8383 eval "DEFAULT_$LINE"
8384 else
8385 no_cache=1
8386 fi
8387
8388 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8389
8390fi;
8391
8392 eval "$ac_cv_use_spinctrl"
8393 if test "$no_cache" != 1; then
8394 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8395 fi
8396
8397 if test "$wxUSE_SPINCTRL" = yes; then
8398 echo "$as_me:$LINENO: result: yes" >&5
8399echo "${ECHO_T}yes" >&6
8400 else
8401 echo "$as_me:$LINENO: result: no" >&5
8402echo "${ECHO_T}no" >&6
8403 fi
8404
8405
8406 enablestring=
8407 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8408echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8409 no_cache=0
8410 # Check whether --enable-splitter or --disable-splitter was given.
8411if test "${enable_splitter+set}" = set; then
8412 enableval="$enable_splitter"
8413
8414 if test "$enableval" = yes; then
8415 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8416 else
8417 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8418 fi
8419
8420else
8421
8422 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8423 if test "x$LINE" != x ; then
8424 eval "DEFAULT_$LINE"
8425 else
8426 no_cache=1
8427 fi
8428
8429 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8430
8431fi;
8432
8433 eval "$ac_cv_use_splitter"
8434 if test "$no_cache" != 1; then
8435 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8436 fi
8437
8438 if test "$wxUSE_SPLITTER" = yes; then
8439 echo "$as_me:$LINENO: result: yes" >&5
8440echo "${ECHO_T}yes" >&6
8441 else
8442 echo "$as_me:$LINENO: result: no" >&5
8443echo "${ECHO_T}no" >&6
8444 fi
8445
8446
8447 enablestring=
8448 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8449echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8450 no_cache=0
8451 # Check whether --enable-statbmp or --disable-statbmp was given.
8452if test "${enable_statbmp+set}" = set; then
8453 enableval="$enable_statbmp"
8454
8455 if test "$enableval" = yes; then
8456 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8457 else
8458 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8459 fi
8460
8461else
8462
8463 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8464 if test "x$LINE" != x ; then
8465 eval "DEFAULT_$LINE"
8466 else
8467 no_cache=1
8468 fi
8469
8470 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8471
8472fi;
8473
8474 eval "$ac_cv_use_statbmp"
8475 if test "$no_cache" != 1; then
8476 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8477 fi
8478
8479 if test "$wxUSE_STATBMP" = yes; then
8480 echo "$as_me:$LINENO: result: yes" >&5
8481echo "${ECHO_T}yes" >&6
8482 else
8483 echo "$as_me:$LINENO: result: no" >&5
8484echo "${ECHO_T}no" >&6
8485 fi
8486
8487
8488 enablestring=
8489 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8490echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8491 no_cache=0
8492 # Check whether --enable-statbox or --disable-statbox was given.
8493if test "${enable_statbox+set}" = set; then
8494 enableval="$enable_statbox"
8495
8496 if test "$enableval" = yes; then
8497 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8498 else
8499 ac_cv_use_statbox='wxUSE_STATBOX=no'
8500 fi
8501
8502else
8503
8504 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8505 if test "x$LINE" != x ; then
8506 eval "DEFAULT_$LINE"
8507 else
8508 no_cache=1
8509 fi
8510
8511 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8512
8513fi;
8514
8515 eval "$ac_cv_use_statbox"
8516 if test "$no_cache" != 1; then
8517 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8518 fi
8519
8520 if test "$wxUSE_STATBOX" = yes; then
8521 echo "$as_me:$LINENO: result: yes" >&5
8522echo "${ECHO_T}yes" >&6
8523 else
8524 echo "$as_me:$LINENO: result: no" >&5
8525echo "${ECHO_T}no" >&6
8526 fi
8527
8528
8529 enablestring=
8530 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8531echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8532 no_cache=0
8533 # Check whether --enable-statline or --disable-statline was given.
8534if test "${enable_statline+set}" = set; then
8535 enableval="$enable_statline"
8536
8537 if test "$enableval" = yes; then
8538 ac_cv_use_statline='wxUSE_STATLINE=yes'
8539 else
8540 ac_cv_use_statline='wxUSE_STATLINE=no'
8541 fi
8542
8543else
8544
8545 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8546 if test "x$LINE" != x ; then
8547 eval "DEFAULT_$LINE"
8548 else
8549 no_cache=1
8550 fi
8551
8552 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8553
8554fi;
8555
8556 eval "$ac_cv_use_statline"
8557 if test "$no_cache" != 1; then
8558 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8559 fi
8560
8561 if test "$wxUSE_STATLINE" = yes; then
8562 echo "$as_me:$LINENO: result: yes" >&5
8563echo "${ECHO_T}yes" >&6
8564 else
8565 echo "$as_me:$LINENO: result: no" >&5
8566echo "${ECHO_T}no" >&6
8567 fi
8568
8569
8570 enablestring=
8571 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8572echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8573 no_cache=0
8574 # Check whether --enable-stattext or --disable-stattext was given.
8575if test "${enable_stattext+set}" = set; then
8576 enableval="$enable_stattext"
8577
8578 if test "$enableval" = yes; then
8579 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8580 else
8581 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8582 fi
8583
8584else
8585
8586 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8587 if test "x$LINE" != x ; then
8588 eval "DEFAULT_$LINE"
8589 else
8590 no_cache=1
8591 fi
8592
8593 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8594
8595fi;
8596
8597 eval "$ac_cv_use_stattext"
8598 if test "$no_cache" != 1; then
8599 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8600 fi
8601
8602 if test "$wxUSE_STATTEXT" = yes; then
8603 echo "$as_me:$LINENO: result: yes" >&5
8604echo "${ECHO_T}yes" >&6
8605 else
8606 echo "$as_me:$LINENO: result: no" >&5
8607echo "${ECHO_T}no" >&6
8608 fi
8609
8610
8611 enablestring=
8612 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8613echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8614 no_cache=0
8615 # Check whether --enable-statusbar or --disable-statusbar was given.
8616if test "${enable_statusbar+set}" = set; then
8617 enableval="$enable_statusbar"
8618
8619 if test "$enableval" = yes; then
8620 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8621 else
8622 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8623 fi
8624
8625else
8626
8627 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8628 if test "x$LINE" != x ; then
8629 eval "DEFAULT_$LINE"
8630 else
8631 no_cache=1
8632 fi
8633
8634 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8635
8636fi;
8637
8638 eval "$ac_cv_use_statusbar"
8639 if test "$no_cache" != 1; then
8640 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8641 fi
8642
8643 if test "$wxUSE_STATUSBAR" = yes; then
8644 echo "$as_me:$LINENO: result: yes" >&5
8645echo "${ECHO_T}yes" >&6
8646 else
8647 echo "$as_me:$LINENO: result: no" >&5
8648echo "${ECHO_T}no" >&6
8649 fi
8650
8651
8652 enablestring=
8653 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8654echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8655 no_cache=0
8656 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8657if test "${enable_tabdialog+set}" = set; then
8658 enableval="$enable_tabdialog"
8659
8660 if test "$enableval" = yes; then
8661 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8662 else
8663 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8664 fi
8665
8666else
8667
8668 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8669 if test "x$LINE" != x ; then
8670 eval "DEFAULT_$LINE"
8671 else
8672 no_cache=1
8673 fi
8674
8675 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8676
8677fi;
8678
8679 eval "$ac_cv_use_tabdialog"
8680 if test "$no_cache" != 1; then
8681 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8682 fi
8683
8684 if test "$wxUSE_TABDIALOG" = yes; then
8685 echo "$as_me:$LINENO: result: yes" >&5
8686echo "${ECHO_T}yes" >&6
8687 else
8688 echo "$as_me:$LINENO: result: no" >&5
8689echo "${ECHO_T}no" >&6
8690 fi
8691
8692
8693 enablestring=
8694 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8695echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8696 no_cache=0
8697 # Check whether --enable-textctrl or --disable-textctrl was given.
8698if test "${enable_textctrl+set}" = set; then
8699 enableval="$enable_textctrl"
8700
8701 if test "$enableval" = yes; then
8702 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8703 else
8704 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8705 fi
8706
8707else
8708
8709 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8710 if test "x$LINE" != x ; then
8711 eval "DEFAULT_$LINE"
8712 else
8713 no_cache=1
8714 fi
8715
8716 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8717
8718fi;
8719
8720 eval "$ac_cv_use_textctrl"
8721 if test "$no_cache" != 1; then
8722 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8723 fi
8724
8725 if test "$wxUSE_TEXTCTRL" = yes; then
8726 echo "$as_me:$LINENO: result: yes" >&5
8727echo "${ECHO_T}yes" >&6
8728 else
8729 echo "$as_me:$LINENO: result: no" >&5
8730echo "${ECHO_T}no" >&6
8731 fi
8732
8733
8734 enablestring=
8735 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8736echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8737 no_cache=0
8738 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8739if test "${enable_togglebtn+set}" = set; then
8740 enableval="$enable_togglebtn"
8741
8742 if test "$enableval" = yes; then
8743 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8744 else
8745 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8746 fi
8747
8748else
8749
8750 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8751 if test "x$LINE" != x ; then
8752 eval "DEFAULT_$LINE"
8753 else
8754 no_cache=1
8755 fi
8756
8757 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8758
8759fi;
8760
8761 eval "$ac_cv_use_togglebtn"
8762 if test "$no_cache" != 1; then
8763 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8764 fi
8765
8766 if test "$wxUSE_TOGGLEBTN" = yes; then
8767 echo "$as_me:$LINENO: result: yes" >&5
8768echo "${ECHO_T}yes" >&6
8769 else
8770 echo "$as_me:$LINENO: result: no" >&5
8771echo "${ECHO_T}no" >&6
8772 fi
8773
8774
8775 enablestring=
8776 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8777echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8778 no_cache=0
8779 # Check whether --enable-toolbar or --disable-toolbar was given.
8780if test "${enable_toolbar+set}" = set; then
8781 enableval="$enable_toolbar"
8782
8783 if test "$enableval" = yes; then
8784 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8785 else
8786 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8787 fi
8788
8789else
8790
8791 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8792 if test "x$LINE" != x ; then
8793 eval "DEFAULT_$LINE"
8794 else
8795 no_cache=1
8796 fi
8797
8798 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8799
8800fi;
8801
8802 eval "$ac_cv_use_toolbar"
8803 if test "$no_cache" != 1; then
8804 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8805 fi
8806
8807 if test "$wxUSE_TOOLBAR" = yes; then
8808 echo "$as_me:$LINENO: result: yes" >&5
8809echo "${ECHO_T}yes" >&6
8810 else
8811 echo "$as_me:$LINENO: result: no" >&5
8812echo "${ECHO_T}no" >&6
8813 fi
8814
8815
8816 enablestring=
8817 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8818echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8819 no_cache=0
8820 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8821if test "${enable_tbarnative+set}" = set; then
8822 enableval="$enable_tbarnative"
8823
8824 if test "$enableval" = yes; then
8825 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8826 else
8827 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8828 fi
8829
8830else
8831
8832 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8833 if test "x$LINE" != x ; then
8834 eval "DEFAULT_$LINE"
8835 else
8836 no_cache=1
8837 fi
8838
8839 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8840
8841fi;
8842
8843 eval "$ac_cv_use_tbarnative"
8844 if test "$no_cache" != 1; then
8845 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8846 fi
8847
8848 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8849 echo "$as_me:$LINENO: result: yes" >&5
8850echo "${ECHO_T}yes" >&6
8851 else
8852 echo "$as_me:$LINENO: result: no" >&5
8853echo "${ECHO_T}no" >&6
8854 fi
8855
8856
8857 enablestring=
8858 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8859echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8860 no_cache=0
8861 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8862if test "${enable_tbarsmpl+set}" = set; then
8863 enableval="$enable_tbarsmpl"
8864
8865 if test "$enableval" = yes; then
8866 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8867 else
8868 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8869 fi
8870
8871else
8872
8873 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8874 if test "x$LINE" != x ; then
8875 eval "DEFAULT_$LINE"
8876 else
8877 no_cache=1
8878 fi
8879
8880 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8881
8882fi;
8883
8884 eval "$ac_cv_use_tbarsmpl"
8885 if test "$no_cache" != 1; then
8886 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8887 fi
8888
8889 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8890 echo "$as_me:$LINENO: result: yes" >&5
8891echo "${ECHO_T}yes" >&6
8892 else
8893 echo "$as_me:$LINENO: result: no" >&5
8894echo "${ECHO_T}no" >&6
8895 fi
8896
8897
8898 enablestring=
8899 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8900echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8901 no_cache=0
8902 # Check whether --enable-treectrl or --disable-treectrl was given.
8903if test "${enable_treectrl+set}" = set; then
8904 enableval="$enable_treectrl"
8905
8906 if test "$enableval" = yes; then
8907 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8908 else
8909 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8910 fi
8911
8912else
8913
8914 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8915 if test "x$LINE" != x ; then
8916 eval "DEFAULT_$LINE"
8917 else
8918 no_cache=1
8919 fi
8920
8921 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8922
8923fi;
8924
8925 eval "$ac_cv_use_treectrl"
8926 if test "$no_cache" != 1; then
8927 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8928 fi
8929
8930 if test "$wxUSE_TREECTRL" = yes; then
8931 echo "$as_me:$LINENO: result: yes" >&5
8932echo "${ECHO_T}yes" >&6
8933 else
8934 echo "$as_me:$LINENO: result: no" >&5
8935echo "${ECHO_T}no" >&6
8936 fi
8937
8938
8939 enablestring=
8940 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8941echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8942 no_cache=0
8943 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8944if test "${enable_tipwindow+set}" = set; then
8945 enableval="$enable_tipwindow"
8946
8947 if test "$enableval" = yes; then
8948 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8949 else
8950 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8951 fi
8952
8953else
8954
8955 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8956 if test "x$LINE" != x ; then
8957 eval "DEFAULT_$LINE"
8958 else
8959 no_cache=1
8960 fi
8961
8962 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8963
8964fi;
8965
8966 eval "$ac_cv_use_tipwindow"
8967 if test "$no_cache" != 1; then
8968 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8969 fi
8970
8971 if test "$wxUSE_TIPWINDOW" = yes; then
8972 echo "$as_me:$LINENO: result: yes" >&5
8973echo "${ECHO_T}yes" >&6
8974 else
8975 echo "$as_me:$LINENO: result: no" >&5
8976echo "${ECHO_T}no" >&6
8977 fi
8978
8979
8980 enablestring=
8981 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8982echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8983 no_cache=0
8984 # Check whether --enable-popupwin or --disable-popupwin was given.
8985if test "${enable_popupwin+set}" = set; then
8986 enableval="$enable_popupwin"
8987
8988 if test "$enableval" = yes; then
8989 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8990 else
8991 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8992 fi
8993
8994else
8995
8996 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8997 if test "x$LINE" != x ; then
8998 eval "DEFAULT_$LINE"
8999 else
9000 no_cache=1
9001 fi
9002
9003 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9004
9005fi;
9006
9007 eval "$ac_cv_use_popupwin"
9008 if test "$no_cache" != 1; then
9009 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9010 fi
9011
9012 if test "$wxUSE_POPUPWIN" = yes; then
9013 echo "$as_me:$LINENO: result: yes" >&5
9014echo "${ECHO_T}yes" >&6
9015 else
9016 echo "$as_me:$LINENO: result: no" >&5
9017echo "${ECHO_T}no" >&6
9018 fi
9019
9020
9021
9022
9023 enablestring=
9024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9025echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9026 no_cache=0
9027 # Check whether --enable-commondlg or --disable-commondlg was given.
9028if test "${enable_commondlg+set}" = set; then
9029 enableval="$enable_commondlg"
9030
9031 if test "$enableval" = yes; then
9032 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9033 else
9034 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9035 fi
9036
9037else
9038
9039 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9040 if test "x$LINE" != x ; then
9041 eval "DEFAULT_$LINE"
9042 else
9043 no_cache=1
9044 fi
9045
9046 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9047
9048fi;
9049
9050 eval "$ac_cv_use_commondlg"
9051 if test "$no_cache" != 1; then
9052 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9053 fi
9054
9055 if test "$wxUSE_COMMONDLGS" = yes; then
9056 echo "$as_me:$LINENO: result: yes" >&5
9057echo "${ECHO_T}yes" >&6
9058 else
9059 echo "$as_me:$LINENO: result: no" >&5
9060echo "${ECHO_T}no" >&6
9061 fi
9062
9063
9064 enablestring=
9065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9066echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9067 no_cache=0
9068 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9069if test "${enable_choicedlg+set}" = set; then
9070 enableval="$enable_choicedlg"
9071
9072 if test "$enableval" = yes; then
9073 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9074 else
9075 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9076 fi
9077
9078else
9079
9080 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9081 if test "x$LINE" != x ; then
9082 eval "DEFAULT_$LINE"
9083 else
9084 no_cache=1
9085 fi
9086
9087 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9088
9089fi;
9090
9091 eval "$ac_cv_use_choicedlg"
9092 if test "$no_cache" != 1; then
9093 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9094 fi
9095
9096 if test "$wxUSE_CHOICEDLG" = yes; then
9097 echo "$as_me:$LINENO: result: yes" >&5
9098echo "${ECHO_T}yes" >&6
9099 else
9100 echo "$as_me:$LINENO: result: no" >&5
9101echo "${ECHO_T}no" >&6
9102 fi
9103
9104
9105 enablestring=
9106 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9107echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9108 no_cache=0
9109 # Check whether --enable-coldlg or --disable-coldlg was given.
9110if test "${enable_coldlg+set}" = set; then
9111 enableval="$enable_coldlg"
9112
9113 if test "$enableval" = yes; then
9114 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9115 else
9116 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9117 fi
9118
9119else
9120
9121 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9122 if test "x$LINE" != x ; then
9123 eval "DEFAULT_$LINE"
9124 else
9125 no_cache=1
9126 fi
9127
9128 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9129
9130fi;
9131
9132 eval "$ac_cv_use_coldlg"
9133 if test "$no_cache" != 1; then
9134 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9135 fi
9136
9137 if test "$wxUSE_COLOURDLG" = yes; then
9138 echo "$as_me:$LINENO: result: yes" >&5
9139echo "${ECHO_T}yes" >&6
9140 else
9141 echo "$as_me:$LINENO: result: no" >&5
9142echo "${ECHO_T}no" >&6
9143 fi
9144
9145
9146 enablestring=
9147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9148echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9149 no_cache=0
9150 # Check whether --enable-filedlg or --disable-filedlg was given.
9151if test "${enable_filedlg+set}" = set; then
9152 enableval="$enable_filedlg"
9153
9154 if test "$enableval" = yes; then
9155 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9156 else
9157 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9158 fi
9159
9160else
9161
9162 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9163 if test "x$LINE" != x ; then
9164 eval "DEFAULT_$LINE"
9165 else
9166 no_cache=1
9167 fi
9168
9169 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9170
9171fi;
9172
9173 eval "$ac_cv_use_filedlg"
9174 if test "$no_cache" != 1; then
9175 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9176 fi
9177
9178 if test "$wxUSE_FILEDLG" = yes; then
9179 echo "$as_me:$LINENO: result: yes" >&5
9180echo "${ECHO_T}yes" >&6
9181 else
9182 echo "$as_me:$LINENO: result: no" >&5
9183echo "${ECHO_T}no" >&6
9184 fi
9185
9186
9187 enablestring=
9188 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9189echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9190 no_cache=0
9191 # Check whether --enable-finddlg or --disable-finddlg was given.
9192if test "${enable_finddlg+set}" = set; then
9193 enableval="$enable_finddlg"
9194
9195 if test "$enableval" = yes; then
9196 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9197 else
9198 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9199 fi
9200
9201else
9202
9203 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9204 if test "x$LINE" != x ; then
9205 eval "DEFAULT_$LINE"
9206 else
9207 no_cache=1
9208 fi
9209
9210 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9211
9212fi;
9213
9214 eval "$ac_cv_use_finddlg"
9215 if test "$no_cache" != 1; then
9216 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9217 fi
9218
9219 if test "$wxUSE_FINDREPLDLG" = yes; then
9220 echo "$as_me:$LINENO: result: yes" >&5
9221echo "${ECHO_T}yes" >&6
9222 else
9223 echo "$as_me:$LINENO: result: no" >&5
9224echo "${ECHO_T}no" >&6
9225 fi
9226
9227
9228 enablestring=
9229 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9230echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9231 no_cache=0
9232 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9233if test "${enable_fontdlg+set}" = set; then
9234 enableval="$enable_fontdlg"
9235
9236 if test "$enableval" = yes; then
9237 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9238 else
9239 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9240 fi
9241
9242else
9243
9244 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9245 if test "x$LINE" != x ; then
9246 eval "DEFAULT_$LINE"
9247 else
9248 no_cache=1
9249 fi
9250
9251 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9252
9253fi;
9254
9255 eval "$ac_cv_use_fontdlg"
9256 if test "$no_cache" != 1; then
9257 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9258 fi
9259
9260 if test "$wxUSE_FONTDLG" = yes; then
9261 echo "$as_me:$LINENO: result: yes" >&5
9262echo "${ECHO_T}yes" >&6
9263 else
9264 echo "$as_me:$LINENO: result: no" >&5
9265echo "${ECHO_T}no" >&6
9266 fi
9267
9268
9269 enablestring=
9270 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9271echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9272 no_cache=0
9273 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9274if test "${enable_dirdlg+set}" = set; then
9275 enableval="$enable_dirdlg"
9276
9277 if test "$enableval" = yes; then
9278 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9279 else
9280 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9281 fi
9282
9283else
9284
9285 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9286 if test "x$LINE" != x ; then
9287 eval "DEFAULT_$LINE"
9288 else
9289 no_cache=1
9290 fi
9291
9292 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9293
9294fi;
9295
9296 eval "$ac_cv_use_dirdlg"
9297 if test "$no_cache" != 1; then
9298 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9299 fi
9300
9301 if test "$wxUSE_DIRDLG" = yes; then
9302 echo "$as_me:$LINENO: result: yes" >&5
9303echo "${ECHO_T}yes" >&6
9304 else
9305 echo "$as_me:$LINENO: result: no" >&5
9306echo "${ECHO_T}no" >&6
9307 fi
9308
9309
9310 enablestring=
9311 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9312echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9313 no_cache=0
9314 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9315if test "${enable_msgdlg+set}" = set; then
9316 enableval="$enable_msgdlg"
9317
9318 if test "$enableval" = yes; then
9319 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9320 else
9321 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9322 fi
9323
9324else
9325
9326 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9327 if test "x$LINE" != x ; then
9328 eval "DEFAULT_$LINE"
9329 else
9330 no_cache=1
9331 fi
9332
9333 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9334
9335fi;
9336
9337 eval "$ac_cv_use_msgdlg"
9338 if test "$no_cache" != 1; then
9339 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9340 fi
9341
9342 if test "$wxUSE_MSGDLG" = yes; then
9343 echo "$as_me:$LINENO: result: yes" >&5
9344echo "${ECHO_T}yes" >&6
9345 else
9346 echo "$as_me:$LINENO: result: no" >&5
9347echo "${ECHO_T}no" >&6
9348 fi
9349
9350
9351 enablestring=
9352 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9353echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9354 no_cache=0
9355 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9356if test "${enable_numberdlg+set}" = set; then
9357 enableval="$enable_numberdlg"
9358
9359 if test "$enableval" = yes; then
9360 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9361 else
9362 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9363 fi
9364
9365else
9366
9367 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9368 if test "x$LINE" != x ; then
9369 eval "DEFAULT_$LINE"
9370 else
9371 no_cache=1
9372 fi
9373
9374 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9375
9376fi;
9377
9378 eval "$ac_cv_use_numberdlg"
9379 if test "$no_cache" != 1; then
9380 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9381 fi
9382
9383 if test "$wxUSE_NUMBERDLG" = yes; then
9384 echo "$as_me:$LINENO: result: yes" >&5
9385echo "${ECHO_T}yes" >&6
9386 else
9387 echo "$as_me:$LINENO: result: no" >&5
9388echo "${ECHO_T}no" >&6
9389 fi
9390
9391
9392 enablestring=
9393 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9394echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9395 no_cache=0
9396 # Check whether --enable-splash or --disable-splash was given.
9397if test "${enable_splash+set}" = set; then
9398 enableval="$enable_splash"
9399
9400 if test "$enableval" = yes; then
9401 ac_cv_use_splash='wxUSE_SPLASH=yes'
9402 else
9403 ac_cv_use_splash='wxUSE_SPLASH=no'
9404 fi
9405
9406else
9407
9408 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9409 if test "x$LINE" != x ; then
9410 eval "DEFAULT_$LINE"
9411 else
9412 no_cache=1
9413 fi
9414
9415 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9416
9417fi;
9418
9419 eval "$ac_cv_use_splash"
9420 if test "$no_cache" != 1; then
9421 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9422 fi
9423
9424 if test "$wxUSE_SPLASH" = yes; then
9425 echo "$as_me:$LINENO: result: yes" >&5
9426echo "${ECHO_T}yes" >&6
9427 else
9428 echo "$as_me:$LINENO: result: no" >&5
9429echo "${ECHO_T}no" >&6
9430 fi
9431
9432
9433 enablestring=
9434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9435echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9436 no_cache=0
9437 # Check whether --enable-textdlg or --disable-textdlg was given.
9438if test "${enable_textdlg+set}" = set; then
9439 enableval="$enable_textdlg"
9440
9441 if test "$enableval" = yes; then
9442 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9443 else
9444 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9445 fi
9446
9447else
9448
9449 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9450 if test "x$LINE" != x ; then
9451 eval "DEFAULT_$LINE"
9452 else
9453 no_cache=1
9454 fi
9455
9456 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9457
9458fi;
9459
9460 eval "$ac_cv_use_textdlg"
9461 if test "$no_cache" != 1; then
9462 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9463 fi
9464
9465 if test "$wxUSE_TEXTDLG" = yes; then
9466 echo "$as_me:$LINENO: result: yes" >&5
9467echo "${ECHO_T}yes" >&6
9468 else
9469 echo "$as_me:$LINENO: result: no" >&5
9470echo "${ECHO_T}no" >&6
9471 fi
9472
9473
9474 enablestring=
9475 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9476echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9477 no_cache=0
9478 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9479if test "${enable_tipdlg+set}" = set; then
9480 enableval="$enable_tipdlg"
9481
9482 if test "$enableval" = yes; then
9483 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9484 else
9485 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9486 fi
9487
9488else
9489
9490 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9491 if test "x$LINE" != x ; then
9492 eval "DEFAULT_$LINE"
9493 else
9494 no_cache=1
9495 fi
9496
9497 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9498
9499fi;
9500
9501 eval "$ac_cv_use_tipdlg"
9502 if test "$no_cache" != 1; then
9503 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9504 fi
9505
9506 if test "$wxUSE_STARTUP_TIPS" = yes; then
9507 echo "$as_me:$LINENO: result: yes" >&5
9508echo "${ECHO_T}yes" >&6
9509 else
9510 echo "$as_me:$LINENO: result: no" >&5
9511echo "${ECHO_T}no" >&6
9512 fi
9513
9514
9515 enablestring=
9516 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9517echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9518 no_cache=0
9519 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9520if test "${enable_progressdlg+set}" = set; then
9521 enableval="$enable_progressdlg"
9522
9523 if test "$enableval" = yes; then
9524 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9525 else
9526 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9527 fi
9528
9529else
9530
9531 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9532 if test "x$LINE" != x ; then
9533 eval "DEFAULT_$LINE"
9534 else
9535 no_cache=1
9536 fi
9537
9538 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9539
9540fi;
9541
9542 eval "$ac_cv_use_progressdlg"
9543 if test "$no_cache" != 1; then
9544 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9545 fi
9546
9547 if test "$wxUSE_PROGRESSDLG" = yes; then
9548 echo "$as_me:$LINENO: result: yes" >&5
9549echo "${ECHO_T}yes" >&6
9550 else
9551 echo "$as_me:$LINENO: result: no" >&5
9552echo "${ECHO_T}no" >&6
9553 fi
9554
9555
9556 enablestring=
9557 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9558echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9559 no_cache=0
9560 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9561if test "${enable_wizarddlg+set}" = set; then
9562 enableval="$enable_wizarddlg"
9563
9564 if test "$enableval" = yes; then
9565 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9566 else
9567 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9568 fi
9569
9570else
9571
9572 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9573 if test "x$LINE" != x ; then
9574 eval "DEFAULT_$LINE"
9575 else
9576 no_cache=1
9577 fi
9578
9579 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9580
9581fi;
9582
9583 eval "$ac_cv_use_wizarddlg"
9584 if test "$no_cache" != 1; then
9585 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9586 fi
9587
9588 if test "$wxUSE_WIZARDDLG" = yes; then
9589 echo "$as_me:$LINENO: result: yes" >&5
9590echo "${ECHO_T}yes" >&6
9591 else
9592 echo "$as_me:$LINENO: result: no" >&5
9593echo "${ECHO_T}no" >&6
9594 fi
9595
9596
9597
9598
9599 enablestring=
9600 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9601echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9602 no_cache=0
9603 # Check whether --enable-menus or --disable-menus was given.
9604if test "${enable_menus+set}" = set; then
9605 enableval="$enable_menus"
9606
9607 if test "$enableval" = yes; then
9608 ac_cv_use_menus='wxUSE_MENUS=yes'
9609 else
9610 ac_cv_use_menus='wxUSE_MENUS=no'
9611 fi
9612
9613else
9614
9615 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9616 if test "x$LINE" != x ; then
9617 eval "DEFAULT_$LINE"
9618 else
9619 no_cache=1
9620 fi
9621
9622 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9623
9624fi;
9625
9626 eval "$ac_cv_use_menus"
9627 if test "$no_cache" != 1; then
9628 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9629 fi
9630
9631 if test "$wxUSE_MENUS" = yes; then
9632 echo "$as_me:$LINENO: result: yes" >&5
9633echo "${ECHO_T}yes" >&6
9634 else
9635 echo "$as_me:$LINENO: result: no" >&5
9636echo "${ECHO_T}no" >&6
9637 fi
9638
9639
9640 enablestring=
9641 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9642echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9643 no_cache=0
9644 # Check whether --enable-miniframe or --disable-miniframe was given.
9645if test "${enable_miniframe+set}" = set; then
9646 enableval="$enable_miniframe"
9647
9648 if test "$enableval" = yes; then
9649 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9650 else
9651 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9652 fi
9653
9654else
9655
9656 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9657 if test "x$LINE" != x ; then
9658 eval "DEFAULT_$LINE"
9659 else
9660 no_cache=1
9661 fi
9662
9663 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9664
9665fi;
9666
9667 eval "$ac_cv_use_miniframe"
9668 if test "$no_cache" != 1; then
9669 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9670 fi
9671
9672 if test "$wxUSE_MINIFRAME" = yes; then
9673 echo "$as_me:$LINENO: result: yes" >&5
9674echo "${ECHO_T}yes" >&6
9675 else
9676 echo "$as_me:$LINENO: result: no" >&5
9677echo "${ECHO_T}no" >&6
9678 fi
9679
9680
9681 enablestring=
9682 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9683echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9684 no_cache=0
9685 # Check whether --enable-tooltips or --disable-tooltips was given.
9686if test "${enable_tooltips+set}" = set; then
9687 enableval="$enable_tooltips"
9688
9689 if test "$enableval" = yes; then
9690 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9691 else
9692 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9693 fi
9694
9695else
9696
9697 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9698 if test "x$LINE" != x ; then
9699 eval "DEFAULT_$LINE"
9700 else
9701 no_cache=1
9702 fi
9703
9704 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9705
9706fi;
9707
9708 eval "$ac_cv_use_tooltips"
9709 if test "$no_cache" != 1; then
9710 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9711 fi
9712
9713 if test "$wxUSE_TOOLTIPS" = yes; then
9714 echo "$as_me:$LINENO: result: yes" >&5
9715echo "${ECHO_T}yes" >&6
9716 else
9717 echo "$as_me:$LINENO: result: no" >&5
9718echo "${ECHO_T}no" >&6
9719 fi
9720
9721
9722 enablestring=
9723 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9724echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9725 no_cache=0
9726 # Check whether --enable-splines or --disable-splines was given.
9727if test "${enable_splines+set}" = set; then
9728 enableval="$enable_splines"
9729
9730 if test "$enableval" = yes; then
9731 ac_cv_use_splines='wxUSE_SPLINES=yes'
9732 else
9733 ac_cv_use_splines='wxUSE_SPLINES=no'
9734 fi
9735
9736else
9737
9738 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9739 if test "x$LINE" != x ; then
9740 eval "DEFAULT_$LINE"
9741 else
9742 no_cache=1
9743 fi
9744
9745 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9746
9747fi;
9748
9749 eval "$ac_cv_use_splines"
9750 if test "$no_cache" != 1; then
9751 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9752 fi
9753
9754 if test "$wxUSE_SPLINES" = yes; then
9755 echo "$as_me:$LINENO: result: yes" >&5
9756echo "${ECHO_T}yes" >&6
9757 else
9758 echo "$as_me:$LINENO: result: no" >&5
9759echo "${ECHO_T}no" >&6
9760 fi
9761
9762
fbe2ca43
SN
9763 enablestring=
9764 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
9765echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
9766 no_cache=0
9767 # Check whether --enable-mousewheel or --disable-mousewheel was given.
9768if test "${enable_mousewheel+set}" = set; then
9769 enableval="$enable_mousewheel"
9770
9771 if test "$enableval" = yes; then
9772 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
9773 else
9774 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
9775 fi
9776
9777else
9778
9779 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
9780 if test "x$LINE" != x ; then
9781 eval "DEFAULT_$LINE"
9782 else
9783 no_cache=1
9784 fi
9785
9786 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
9787
9788fi;
9789
9790 eval "$ac_cv_use_mousewheel"
9791 if test "$no_cache" != 1; then
9792 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
9793 fi
9794
9795 if test "$wxUSE_MOUSEWHEEL" = yes; then
9796 echo "$as_me:$LINENO: result: yes" >&5
9797echo "${ECHO_T}yes" >&6
9798 else
9799 echo "$as_me:$LINENO: result: no" >&5
9800echo "${ECHO_T}no" >&6
9801 fi
9802
9803
a848cd7e
SC
9804 enablestring=
9805 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9806echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9807 no_cache=0
9808 # Check whether --enable-validators or --disable-validators was given.
9809if test "${enable_validators+set}" = set; then
9810 enableval="$enable_validators"
9811
9812 if test "$enableval" = yes; then
9813 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9814 else
9815 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9816 fi
9817
9818else
9819
9820 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9821 if test "x$LINE" != x ; then
9822 eval "DEFAULT_$LINE"
9823 else
9824 no_cache=1
9825 fi
9826
9827 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9828
9829fi;
9830
9831 eval "$ac_cv_use_validators"
9832 if test "$no_cache" != 1; then
9833 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9834 fi
9835
9836 if test "$wxUSE_VALIDATORS" = yes; then
9837 echo "$as_me:$LINENO: result: yes" >&5
9838echo "${ECHO_T}yes" >&6
9839 else
9840 echo "$as_me:$LINENO: result: no" >&5
9841echo "${ECHO_T}no" >&6
9842 fi
9843
9844
9845 enablestring=
9846 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9847echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9848 no_cache=0
9849 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9850if test "${enable_busyinfo+set}" = set; then
9851 enableval="$enable_busyinfo"
9852
9853 if test "$enableval" = yes; then
9854 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9855 else
9856 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9857 fi
9858
9859else
9860
9861 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9862 if test "x$LINE" != x ; then
9863 eval "DEFAULT_$LINE"
9864 else
9865 no_cache=1
9866 fi
9867
9868 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9869
9870fi;
9871
9872 eval "$ac_cv_use_busyinfo"
9873 if test "$no_cache" != 1; then
9874 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9875 fi
9876
9877 if test "$wxUSE_BUSYINFO" = yes; then
9878 echo "$as_me:$LINENO: result: yes" >&5
9879echo "${ECHO_T}yes" >&6
9880 else
9881 echo "$as_me:$LINENO: result: no" >&5
9882echo "${ECHO_T}no" >&6
9883 fi
9884
9885
9886 enablestring=
9887 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9888echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9889 no_cache=0
9890 # Check whether --enable-joystick or --disable-joystick was given.
9891if test "${enable_joystick+set}" = set; then
9892 enableval="$enable_joystick"
9893
9894 if test "$enableval" = yes; then
9895 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9896 else
9897 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9898 fi
9899
9900else
9901
9902 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9903 if test "x$LINE" != x ; then
9904 eval "DEFAULT_$LINE"
9905 else
9906 no_cache=1
9907 fi
9908
9909 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9910
9911fi;
9912
9913 eval "$ac_cv_use_joystick"
9914 if test "$no_cache" != 1; then
9915 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9916 fi
9917
9918 if test "$wxUSE_JOYSTICK" = yes; then
9919 echo "$as_me:$LINENO: result: yes" >&5
9920echo "${ECHO_T}yes" >&6
9921 else
9922 echo "$as_me:$LINENO: result: no" >&5
9923echo "${ECHO_T}no" >&6
9924 fi
9925
9926
9927 enablestring=
9928 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9929echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9930 no_cache=0
9931 # Check whether --enable-metafile or --disable-metafile was given.
9932if test "${enable_metafile+set}" = set; then
9933 enableval="$enable_metafile"
9934
9935 if test "$enableval" = yes; then
9936 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9937 else
9938 ac_cv_use_metafile='wxUSE_METAFILE=no'
9939 fi
9940
9941else
9942
9943 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9944 if test "x$LINE" != x ; then
9945 eval "DEFAULT_$LINE"
9946 else
9947 no_cache=1
9948 fi
9949
9950 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9951
9952fi;
9953
9954 eval "$ac_cv_use_metafile"
9955 if test "$no_cache" != 1; then
9956 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9957 fi
9958
9959 if test "$wxUSE_METAFILE" = yes; then
9960 echo "$as_me:$LINENO: result: yes" >&5
9961echo "${ECHO_T}yes" >&6
9962 else
9963 echo "$as_me:$LINENO: result: no" >&5
9964echo "${ECHO_T}no" >&6
9965 fi
9966
9967
9968 enablestring=
9969 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9970echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9971 no_cache=0
9972 # Check whether --enable-dragimage or --disable-dragimage was given.
9973if test "${enable_dragimage+set}" = set; then
9974 enableval="$enable_dragimage"
9975
9976 if test "$enableval" = yes; then
9977 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9978 else
9979 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9980 fi
9981
9982else
9983
9984 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9985 if test "x$LINE" != x ; then
9986 eval "DEFAULT_$LINE"
9987 else
9988 no_cache=1
9989 fi
9990
9991 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9992
9993fi;
9994
9995 eval "$ac_cv_use_dragimage"
9996 if test "$no_cache" != 1; then
9997 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9998 fi
9999
10000 if test "$wxUSE_DRAGIMAGE" = yes; then
10001 echo "$as_me:$LINENO: result: yes" >&5
10002echo "${ECHO_T}yes" >&6
10003 else
10004 echo "$as_me:$LINENO: result: no" >&5
10005echo "${ECHO_T}no" >&6
10006 fi
10007
10008
10009 enablestring=
10010 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10011echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10012 no_cache=0
10013 # Check whether --enable-accessibility or --disable-accessibility was given.
10014if test "${enable_accessibility+set}" = set; then
10015 enableval="$enable_accessibility"
10016
10017 if test "$enableval" = yes; then
10018 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10019 else
10020 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10021 fi
10022
10023else
10024
10025 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10026 if test "x$LINE" != x ; then
10027 eval "DEFAULT_$LINE"
10028 else
10029 no_cache=1
10030 fi
10031
10032 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10033
10034fi;
10035
10036 eval "$ac_cv_use_accessibility"
10037 if test "$no_cache" != 1; then
10038 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10039 fi
10040
10041 if test "$wxUSE_ACCESSIBILITY" = yes; then
10042 echo "$as_me:$LINENO: result: yes" >&5
10043echo "${ECHO_T}yes" >&6
10044 else
10045 echo "$as_me:$LINENO: result: no" >&5
10046echo "${ECHO_T}no" >&6
10047 fi
10048
10049
10050
10051
10052 enablestring=
10053 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10054echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10055 no_cache=0
10056 # Check whether --enable-palette or --disable-palette was given.
10057if test "${enable_palette+set}" = set; then
10058 enableval="$enable_palette"
10059
10060 if test "$enableval" = yes; then
10061 ac_cv_use_palette='wxUSE_PALETTE=yes'
10062 else
10063 ac_cv_use_palette='wxUSE_PALETTE=no'
10064 fi
10065
10066else
10067
10068 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10069 if test "x$LINE" != x ; then
10070 eval "DEFAULT_$LINE"
10071 else
10072 no_cache=1
10073 fi
10074
10075 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10076
10077fi;
10078
10079 eval "$ac_cv_use_palette"
10080 if test "$no_cache" != 1; then
10081 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10082 fi
10083
10084 if test "$wxUSE_PALETTE" = yes; then
10085 echo "$as_me:$LINENO: result: yes" >&5
10086echo "${ECHO_T}yes" >&6
10087 else
10088 echo "$as_me:$LINENO: result: no" >&5
10089echo "${ECHO_T}no" >&6
10090 fi
10091
10092
10093 enablestring=
10094 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10095echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10096 no_cache=0
10097 # Check whether --enable-image or --disable-image was given.
10098if test "${enable_image+set}" = set; then
10099 enableval="$enable_image"
10100
10101 if test "$enableval" = yes; then
10102 ac_cv_use_image='wxUSE_IMAGE=yes'
10103 else
10104 ac_cv_use_image='wxUSE_IMAGE=no'
10105 fi
10106
10107else
10108
10109 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10110 if test "x$LINE" != x ; then
10111 eval "DEFAULT_$LINE"
10112 else
10113 no_cache=1
10114 fi
10115
10116 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10117
10118fi;
10119
10120 eval "$ac_cv_use_image"
10121 if test "$no_cache" != 1; then
10122 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10123 fi
10124
10125 if test "$wxUSE_IMAGE" = yes; then
10126 echo "$as_me:$LINENO: result: yes" >&5
10127echo "${ECHO_T}yes" >&6
10128 else
10129 echo "$as_me:$LINENO: result: no" >&5
10130echo "${ECHO_T}no" >&6
10131 fi
10132
10133
10134 enablestring=
10135 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10136echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10137 no_cache=0
10138 # Check whether --enable-gif or --disable-gif was given.
10139if test "${enable_gif+set}" = set; then
10140 enableval="$enable_gif"
10141
10142 if test "$enableval" = yes; then
10143 ac_cv_use_gif='wxUSE_GIF=yes'
10144 else
10145 ac_cv_use_gif='wxUSE_GIF=no'
10146 fi
10147
10148else
10149
10150 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10151 if test "x$LINE" != x ; then
10152 eval "DEFAULT_$LINE"
10153 else
10154 no_cache=1
10155 fi
10156
10157 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10158
10159fi;
10160
10161 eval "$ac_cv_use_gif"
10162 if test "$no_cache" != 1; then
10163 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10164 fi
10165
10166 if test "$wxUSE_GIF" = yes; then
10167 echo "$as_me:$LINENO: result: yes" >&5
10168echo "${ECHO_T}yes" >&6
10169 else
10170 echo "$as_me:$LINENO: result: no" >&5
10171echo "${ECHO_T}no" >&6
10172 fi
10173
10174
10175 enablestring=
10176 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10177echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10178 no_cache=0
10179 # Check whether --enable-pcx or --disable-pcx was given.
10180if test "${enable_pcx+set}" = set; then
10181 enableval="$enable_pcx"
10182
10183 if test "$enableval" = yes; then
10184 ac_cv_use_pcx='wxUSE_PCX=yes'
10185 else
10186 ac_cv_use_pcx='wxUSE_PCX=no'
10187 fi
10188
10189else
10190
10191 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10192 if test "x$LINE" != x ; then
10193 eval "DEFAULT_$LINE"
10194 else
10195 no_cache=1
10196 fi
10197
10198 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10199
10200fi;
10201
10202 eval "$ac_cv_use_pcx"
10203 if test "$no_cache" != 1; then
10204 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10205 fi
10206
10207 if test "$wxUSE_PCX" = yes; then
10208 echo "$as_me:$LINENO: result: yes" >&5
10209echo "${ECHO_T}yes" >&6
10210 else
10211 echo "$as_me:$LINENO: result: no" >&5
10212echo "${ECHO_T}no" >&6
10213 fi
10214
10215
10216 enablestring=
10217 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10218echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10219 no_cache=0
10220 # Check whether --enable-iff or --disable-iff was given.
10221if test "${enable_iff+set}" = set; then
10222 enableval="$enable_iff"
10223
10224 if test "$enableval" = yes; then
10225 ac_cv_use_iff='wxUSE_IFF=yes'
10226 else
10227 ac_cv_use_iff='wxUSE_IFF=no'
10228 fi
10229
10230else
10231
10232 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10233 if test "x$LINE" != x ; then
10234 eval "DEFAULT_$LINE"
10235 else
10236 no_cache=1
10237 fi
10238
10239 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10240
10241fi;
10242
10243 eval "$ac_cv_use_iff"
10244 if test "$no_cache" != 1; then
10245 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10246 fi
10247
10248 if test "$wxUSE_IFF" = yes; then
10249 echo "$as_me:$LINENO: result: yes" >&5
10250echo "${ECHO_T}yes" >&6
10251 else
10252 echo "$as_me:$LINENO: result: no" >&5
10253echo "${ECHO_T}no" >&6
10254 fi
10255
10256
10257 enablestring=
10258 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10259echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10260 no_cache=0
10261 # Check whether --enable-pnm or --disable-pnm was given.
10262if test "${enable_pnm+set}" = set; then
10263 enableval="$enable_pnm"
10264
10265 if test "$enableval" = yes; then
10266 ac_cv_use_pnm='wxUSE_PNM=yes'
10267 else
10268 ac_cv_use_pnm='wxUSE_PNM=no'
10269 fi
10270
10271else
10272
10273 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10274 if test "x$LINE" != x ; then
10275 eval "DEFAULT_$LINE"
10276 else
10277 no_cache=1
10278 fi
10279
10280 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10281
10282fi;
10283
10284 eval "$ac_cv_use_pnm"
10285 if test "$no_cache" != 1; then
10286 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10287 fi
10288
10289 if test "$wxUSE_PNM" = yes; then
10290 echo "$as_me:$LINENO: result: yes" >&5
10291echo "${ECHO_T}yes" >&6
10292 else
10293 echo "$as_me:$LINENO: result: no" >&5
10294echo "${ECHO_T}no" >&6
10295 fi
10296
10297
10298 enablestring=
10299 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10300echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10301 no_cache=0
10302 # Check whether --enable-xpm or --disable-xpm was given.
10303if test "${enable_xpm+set}" = set; then
10304 enableval="$enable_xpm"
10305
10306 if test "$enableval" = yes; then
10307 ac_cv_use_xpm='wxUSE_XPM=yes'
10308 else
10309 ac_cv_use_xpm='wxUSE_XPM=no'
10310 fi
10311
10312else
10313
10314 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10315 if test "x$LINE" != x ; then
10316 eval "DEFAULT_$LINE"
10317 else
10318 no_cache=1
10319 fi
10320
10321 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10322
10323fi;
10324
10325 eval "$ac_cv_use_xpm"
10326 if test "$no_cache" != 1; then
10327 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10328 fi
10329
10330 if test "$wxUSE_XPM" = yes; then
10331 echo "$as_me:$LINENO: result: yes" >&5
10332echo "${ECHO_T}yes" >&6
10333 else
10334 echo "$as_me:$LINENO: result: no" >&5
10335echo "${ECHO_T}no" >&6
10336 fi
10337
10338
10339 enablestring=
10340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10341echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10342 no_cache=0
10343 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10344if test "${enable_ico_cur+set}" = set; then
10345 enableval="$enable_ico_cur"
10346
10347 if test "$enableval" = yes; then
10348 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10349 else
10350 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10351 fi
10352
10353else
10354
10355 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10356 if test "x$LINE" != x ; then
10357 eval "DEFAULT_$LINE"
10358 else
10359 no_cache=1
10360 fi
10361
10362 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10363
10364fi;
10365
10366 eval "$ac_cv_use_ico_cur"
10367 if test "$no_cache" != 1; then
10368 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10369 fi
10370
10371 if test "$wxUSE_ICO_CUR" = yes; then
10372 echo "$as_me:$LINENO: result: yes" >&5
10373echo "${ECHO_T}yes" >&6
10374 else
10375 echo "$as_me:$LINENO: result: no" >&5
10376echo "${ECHO_T}no" >&6
10377 fi
10378
10379
10380fi
10381
10382
10383
ceec2216
RL
10384# Check whether --with-flavour or --without-flavour was given.
10385if test "${with_flavour+set}" = set; then
10386 withval="$with_flavour"
10387 WX_FLAVOUR="$withval"
10388fi;
10389
10390
10391
a848cd7e
SC
10392 enablestring=
10393 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10394echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10395 no_cache=0
10396 # Check whether --enable-official_build or --disable-official_build was given.
10397if test "${enable_official_build+set}" = set; then
10398 enableval="$enable_official_build"
10399
10400 if test "$enableval" = yes; then
10401 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10402 else
10403 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10404 fi
10405
10406else
10407
10408 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10409 if test "x$LINE" != x ; then
10410 eval "DEFAULT_$LINE"
10411 else
10412 no_cache=1
10413 fi
10414
10415 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10416
10417fi;
10418
10419 eval "$ac_cv_use_official_build"
10420 if test "$no_cache" != 1; then
10421 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10422 fi
10423
10424 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10425 echo "$as_me:$LINENO: result: yes" >&5
10426echo "${ECHO_T}yes" >&6
10427 else
10428 echo "$as_me:$LINENO: result: no" >&5
10429echo "${ECHO_T}no" >&6
10430 fi
10431
10432# Check whether --enable-vendor or --disable-vendor was given.
10433if test "${enable_vendor+set}" = set; then
10434 enableval="$enable_vendor"
10435 VENDOR="$enableval"
10436fi;
10437if test "x$VENDOR" = "x"; then
10438 VENDOR="custom"
10439fi
10440
a848cd7e
SC
10441
10442
10443
10444 echo "saving argument cache $wx_arg_cache_file"
10445 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10446
10447
10448
10449echo "$as_me:$LINENO: checking for toolkit" >&5
10450echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10451
10452# In Wine, we need to default to MSW, not GTK or MOTIF
10453if test "$wxUSE_WINE" = "yes"; then
10454 DEFAULT_DEFAULT_wxUSE_GTK=0
10455 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10456 DEFAULT_DEFAULT_wxUSE_MSW=1
10457 wxUSE_SHARED=no
10458fi
10459
f597b41c 10460
a848cd7e
SC
10461if test "$wxUSE_GUI" = "yes"; then
10462
10463 if test "$USE_BEOS" = 1; then
10464 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10465echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10466 { (exit 1); exit 1; }; }
10467 fi
10468
10469 if test "$TOOLKIT_GIVEN" = 1; then
10470 for toolkit in `echo $ALL_TOOLKITS`; do
10471 var=wxUSE_$toolkit
10472 eval "value=\$${var}"
f34ca037
MW
10473 if test "x$value" = "xno"; then
10474 eval "$var=0"
10475 elif test "x$value" != "x"; then
10476 eval "$var=1"
10477 fi
10478
10479 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
10480 eval "wx${toolkit}_VERSION=$value"
10481 fi
a848cd7e
SC
10482 done
10483 else
10484 for toolkit in `echo $ALL_TOOLKITS`; do
10485 if test "$has_toolkit_in_cache" != 1; then
10486 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10487 else
10488 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
10489
10490 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
10491 if test "x$version" != "x"; then
10492 eval "wx${toolkit}_VERSION=$version"
10493 fi
a848cd7e
SC
10494 fi
10495 eval "wxUSE_$toolkit=\$${var}"
10496 done
10497 fi
10498
10499 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10500 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10501 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10502
10503 case "${host}" in
10504 *-pc-os2_emx | *-pc-os2-emx )
10505 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10506 esac
10507
10508 case "$NUM_TOOLKITS" in
10509 1)
10510 ;;
10511 0)
10512 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10513echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10514 { (exit 1); exit 1; }; }
10515 ;;
10516 *)
10517 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10518echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10519 { (exit 1); exit 1; }; }
10520 esac
10521
f34ca037
MW
10522 # to be removed when --disable-gtk2 isn't needed
10523 if test "x$wxUSE_GTK2" = "xyes"; then
10524 wxGTK_VERSION=2
10525 elif test "x$wxUSE_GTK2" = "xno"; then
10526 wxGTK_VERSION=1
10527 fi
10528
a848cd7e
SC
10529 for toolkit in `echo $ALL_TOOLKITS`; do
10530 var=wxUSE_$toolkit
10531 eval "value=\$${var}"
10532 if test "x$value" != x; then
10533 cache_var=CACHE_$toolkit
10534 eval "cache=\$${cache_var}"
10535 if test "$cache" = 1; then
10536 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
10537 eval "version=\$wx${toolkit}_VERSION"
10538 if test "x$version" != "x"; then
10539 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
10540 fi
a848cd7e
SC
10541 fi
10542 if test "$value" = 1; then
10543 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10544 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10545echo "${ECHO_T}$toolkit_echo" >&6
10546 fi
10547 fi
10548 done
10549else
10550 if test "x$host_alias" != "x"; then
10551 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10552echo "${ECHO_T}base ($host_alias hosted) only" >&6
10553 else
10554 echo "$as_me:$LINENO: result: base only" >&5
10555echo "${ECHO_T}base only" >&6
10556 fi
10557fi
10558
10559wants_win32=0
10560doesnt_want_win32=0
10561case "${host}" in
10562 *-*-cygwin*)
10563 if test "$wxUSE_MSW" = 1 ; then
10564 wants_win32=1
10565 else
10566 doesnt_want_win32=1
10567 fi
10568 ;;
10569 *-*-mingw*)
10570 wants_win32=1
10571 ;;
10572esac
10573
10574if test "$wxUSE_WINE" = "yes"; then
10575 wants_win32=1
10576 CC=winegcc
10577 CXX=wineg++
10578 RESCOMP=wrc
10579 LDFLAGS_GUI="-mwindows"
10580fi
10581
10582if test "$wants_win32" = 1 ; then
10583 USE_UNIX=0
10584 USE_WIN32=1
10585 cat >>confdefs.h <<\_ACEOF
10586#define __WIN32__ 1
10587_ACEOF
10588
10589 cat >>confdefs.h <<\_ACEOF
10590#define __WIN95__ 1
10591_ACEOF
10592
10593 cat >>confdefs.h <<\_ACEOF
10594#define __WINDOWS__ 1
10595_ACEOF
10596
10597 cat >>confdefs.h <<\_ACEOF
10598#define __GNUWIN32__ 1
10599_ACEOF
10600
10601 cat >>confdefs.h <<\_ACEOF
10602#define STRICT 1
10603_ACEOF
10604
10605 cat >>confdefs.h <<\_ACEOF
10606#define WINVER 0x0400
10607_ACEOF
10608
10609fi
10610if test "$doesnt_want_win32" = 1 ; then
10611 USE_UNIX=1
10612 USE_WIN32=0
10613fi
10614
10615if test "$USE_UNIX" = 1 ; then
10616 wxUSE_UNIX=yes
10617 cat >>confdefs.h <<\_ACEOF
10618#define __UNIX__ 1
10619_ACEOF
10620
10621fi
10622
10623
10624cat >confcache <<\_ACEOF
10625# This file is a shell script that caches the results of configure
10626# tests run on this system so they can be shared between configure
10627# scripts and configure runs, see configure's option --config-cache.
10628# It is not useful on other systems. If it contains results you don't
10629# want to keep, you may remove or edit it.
10630#
10631# config.status only pays attention to the cache file if you give it
10632# the --recheck option to rerun configure.
10633#
10634# `ac_cv_env_foo' variables (set or unset) will be overridden when
10635# loading this file, other *unset* `ac_cv_foo' will be assigned the
10636# following values.
10637
10638_ACEOF
10639
10640# The following way of writing the cache mishandles newlines in values,
10641# but we know of no workaround that is simple, portable, and efficient.
10642# So, don't put newlines in cache variables' values.
10643# Ultrix sh set writes to stderr and can't be redirected directly,
10644# and sets the high bit in the cache file unless we assign to the vars.
10645{
10646 (set) 2>&1 |
10647 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10648 *ac_space=\ *)
10649 # `set' does not quote correctly, so add quotes (double-quote
10650 # substitution turns \\\\ into \\, and sed turns \\ into \).
10651 sed -n \
ac1cb8d3
VS
10652 "s/'/'\\\\''/g;
10653 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10654 ;;
10655 *)
10656 # `set' quotes correctly as required by POSIX, so do not add quotes.
10657 sed -n \
ac1cb8d3 10658 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10659 ;;
10660 esac;
10661} |
10662 sed '
10663 t clear
10664 : clear
10665 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10666 t end
10667 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10668 : end' >>confcache
10669if diff $cache_file confcache >/dev/null 2>&1; then :; else
10670 if test -w $cache_file; then
10671 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10672 cat confcache >$cache_file
10673 else
10674 echo "not updating unwritable cache $cache_file"
10675 fi
10676fi
10677rm -f confcache
10678
10679if test "$build" != "$host" ; then
1e9e8aba 10680 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10681 CC=$host_alias-gcc
10682 CXX=$host_alias-c++
10683 AR=$host_alias-ar
10684 RANLIB=$host_alias-ranlib
10685 DLLTOOL=$host_alias-dlltool
10686 RESCOMP=$host_alias-windres
a848cd7e 10687 STRIP=$host_alias-strip
1e9e8aba
DE
10688 elif test "x$CC" '!=' "x"; then
10689 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10690 else
10691 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10692echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10693 { (exit 1); exit 1; }; }
10694 fi
10695fi
10696
10697CFLAGS=${CFLAGS:=}
6dcfc289
DE
10698
10699
10700 ac_ext=c
a848cd7e
SC
10701ac_cpp='$CPP $CPPFLAGS'
10702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10704ac_compiler_gnu=$ac_cv_c_compiler_gnu
10705if test -n "$ac_tool_prefix"; then
10706 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10707set dummy ${ac_tool_prefix}gcc; ac_word=$2
10708echo "$as_me:$LINENO: checking for $ac_word" >&5
10709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10710if test "${ac_cv_prog_CC+set}" = set; then
10711 echo $ECHO_N "(cached) $ECHO_C" >&6
10712else
10713 if test -n "$CC"; then
10714 ac_cv_prog_CC="$CC" # Let the user override the test.
10715else
10716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10717for as_dir in $PATH
10718do
10719 IFS=$as_save_IFS
10720 test -z "$as_dir" && as_dir=.
10721 for ac_exec_ext in '' $ac_executable_extensions; do
10722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10723 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10725 break 2
10726 fi
10727done
10728done
10729
10730fi
10731fi
10732CC=$ac_cv_prog_CC
10733if test -n "$CC"; then
10734 echo "$as_me:$LINENO: result: $CC" >&5
10735echo "${ECHO_T}$CC" >&6
10736else
10737 echo "$as_me:$LINENO: result: no" >&5
10738echo "${ECHO_T}no" >&6
10739fi
10740
10741fi
10742if test -z "$ac_cv_prog_CC"; then
10743 ac_ct_CC=$CC
10744 # Extract the first word of "gcc", so it can be a program name with args.
10745set dummy gcc; ac_word=$2
10746echo "$as_me:$LINENO: checking for $ac_word" >&5
10747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10748if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10749 echo $ECHO_N "(cached) $ECHO_C" >&6
10750else
10751 if test -n "$ac_ct_CC"; then
10752 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10753else
10754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10755for as_dir in $PATH
10756do
10757 IFS=$as_save_IFS
10758 test -z "$as_dir" && as_dir=.
10759 for ac_exec_ext in '' $ac_executable_extensions; do
10760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10761 ac_cv_prog_ac_ct_CC="gcc"
10762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10763 break 2
10764 fi
10765done
10766done
10767
10768fi
10769fi
10770ac_ct_CC=$ac_cv_prog_ac_ct_CC
10771if test -n "$ac_ct_CC"; then
10772 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10773echo "${ECHO_T}$ac_ct_CC" >&6
10774else
10775 echo "$as_me:$LINENO: result: no" >&5
10776echo "${ECHO_T}no" >&6
10777fi
10778
10779 CC=$ac_ct_CC
10780else
10781 CC="$ac_cv_prog_CC"
10782fi
10783
10784if test -z "$CC"; then
10785 if test -n "$ac_tool_prefix"; then
10786 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10787set dummy ${ac_tool_prefix}cc; ac_word=$2
10788echo "$as_me:$LINENO: checking for $ac_word" >&5
10789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10790if test "${ac_cv_prog_CC+set}" = set; then
10791 echo $ECHO_N "(cached) $ECHO_C" >&6
10792else
10793 if test -n "$CC"; then
10794 ac_cv_prog_CC="$CC" # Let the user override the test.
10795else
10796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10797for as_dir in $PATH
10798do
10799 IFS=$as_save_IFS
10800 test -z "$as_dir" && as_dir=.
10801 for ac_exec_ext in '' $ac_executable_extensions; do
10802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10803 ac_cv_prog_CC="${ac_tool_prefix}cc"
10804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10805 break 2
10806 fi
10807done
10808done
10809
10810fi
10811fi
10812CC=$ac_cv_prog_CC
10813if test -n "$CC"; then
10814 echo "$as_me:$LINENO: result: $CC" >&5
10815echo "${ECHO_T}$CC" >&6
10816else
10817 echo "$as_me:$LINENO: result: no" >&5
10818echo "${ECHO_T}no" >&6
10819fi
10820
10821fi
10822if test -z "$ac_cv_prog_CC"; then
10823 ac_ct_CC=$CC
10824 # Extract the first word of "cc", so it can be a program name with args.
10825set dummy cc; ac_word=$2
10826echo "$as_me:$LINENO: checking for $ac_word" >&5
10827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10828if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10830else
10831 if test -n "$ac_ct_CC"; then
10832 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10833else
10834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10835for as_dir in $PATH
10836do
10837 IFS=$as_save_IFS
10838 test -z "$as_dir" && as_dir=.
10839 for ac_exec_ext in '' $ac_executable_extensions; do
10840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10841 ac_cv_prog_ac_ct_CC="cc"
10842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10843 break 2
10844 fi
10845done
10846done
10847
10848fi
10849fi
10850ac_ct_CC=$ac_cv_prog_ac_ct_CC
10851if test -n "$ac_ct_CC"; then
10852 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10853echo "${ECHO_T}$ac_ct_CC" >&6
10854else
10855 echo "$as_me:$LINENO: result: no" >&5
10856echo "${ECHO_T}no" >&6
10857fi
10858
10859 CC=$ac_ct_CC
10860else
10861 CC="$ac_cv_prog_CC"
10862fi
10863
10864fi
10865if test -z "$CC"; then
10866 # Extract the first word of "cc", so it can be a program name with args.
10867set dummy cc; ac_word=$2
10868echo "$as_me:$LINENO: checking for $ac_word" >&5
10869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10870if test "${ac_cv_prog_CC+set}" = set; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10872else
10873 if test -n "$CC"; then
10874 ac_cv_prog_CC="$CC" # Let the user override the test.
10875else
10876 ac_prog_rejected=no
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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10885 ac_prog_rejected=yes
10886 continue
10887 fi
10888 ac_cv_prog_CC="cc"
10889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10890 break 2
10891 fi
10892done
10893done
10894
10895if test $ac_prog_rejected = yes; then
10896 # We found a bogon in the path, so make sure we never use it.
10897 set dummy $ac_cv_prog_CC
10898 shift
10899 if test $# != 0; then
10900 # We chose a different compiler from the bogus one.
10901 # However, it has the same basename, so the bogon will be chosen
10902 # first if we set CC to just the basename; use the full file name.
10903 shift
10904 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10905 fi
10906fi
10907fi
10908fi
10909CC=$ac_cv_prog_CC
10910if test -n "$CC"; then
10911 echo "$as_me:$LINENO: result: $CC" >&5
10912echo "${ECHO_T}$CC" >&6
10913else
10914 echo "$as_me:$LINENO: result: no" >&5
10915echo "${ECHO_T}no" >&6
10916fi
10917
10918fi
10919if test -z "$CC"; then
10920 if test -n "$ac_tool_prefix"; then
10921 for ac_prog in cl
10922 do
10923 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10924set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10925echo "$as_me:$LINENO: checking for $ac_word" >&5
10926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10927if test "${ac_cv_prog_CC+set}" = set; then
10928 echo $ECHO_N "(cached) $ECHO_C" >&6
10929else
10930 if test -n "$CC"; then
10931 ac_cv_prog_CC="$CC" # Let the user override the test.
10932else
10933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10934for as_dir in $PATH
10935do
10936 IFS=$as_save_IFS
10937 test -z "$as_dir" && as_dir=.
10938 for ac_exec_ext in '' $ac_executable_extensions; do
10939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10940 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10942 break 2
10943 fi
10944done
10945done
10946
10947fi
10948fi
10949CC=$ac_cv_prog_CC
10950if test -n "$CC"; then
10951 echo "$as_me:$LINENO: result: $CC" >&5
10952echo "${ECHO_T}$CC" >&6
10953else
10954 echo "$as_me:$LINENO: result: no" >&5
10955echo "${ECHO_T}no" >&6
10956fi
10957
10958 test -n "$CC" && break
10959 done
10960fi
10961if test -z "$CC"; then
10962 ac_ct_CC=$CC
10963 for ac_prog in cl
10964do
10965 # Extract the first word of "$ac_prog", so it can be a program name with args.
10966set dummy $ac_prog; ac_word=$2
10967echo "$as_me:$LINENO: checking for $ac_word" >&5
10968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10969if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10970 echo $ECHO_N "(cached) $ECHO_C" >&6
10971else
10972 if test -n "$ac_ct_CC"; then
10973 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10974else
10975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10976for as_dir in $PATH
10977do
10978 IFS=$as_save_IFS
10979 test -z "$as_dir" && as_dir=.
10980 for ac_exec_ext in '' $ac_executable_extensions; do
10981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10982 ac_cv_prog_ac_ct_CC="$ac_prog"
10983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10984 break 2
10985 fi
10986done
10987done
10988
10989fi
10990fi
10991ac_ct_CC=$ac_cv_prog_ac_ct_CC
10992if test -n "$ac_ct_CC"; then
10993 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10994echo "${ECHO_T}$ac_ct_CC" >&6
10995else
10996 echo "$as_me:$LINENO: result: no" >&5
10997echo "${ECHO_T}no" >&6
10998fi
10999
11000 test -n "$ac_ct_CC" && break
11001done
11002
11003 CC=$ac_ct_CC
11004fi
11005
11006fi
11007
11008
11009test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11010See \`config.log' for more details." >&5
11011echo "$as_me: error: no acceptable C compiler found in \$PATH
11012See \`config.log' for more details." >&2;}
11013 { (exit 1); exit 1; }; }
11014
11015# Provide some information about the compiler.
11016echo "$as_me:$LINENO:" \
11017 "checking for C compiler version" >&5
11018ac_compiler=`set X $ac_compile; echo $2`
11019{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11020 (eval $ac_compiler --version </dev/null >&5) 2>&5
11021 ac_status=$?
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); }
11024{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11025 (eval $ac_compiler -v </dev/null >&5) 2>&5
11026 ac_status=$?
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }
11029{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11030 (eval $ac_compiler -V </dev/null >&5) 2>&5
11031 ac_status=$?
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); }
11034
11035cat >conftest.$ac_ext <<_ACEOF
11036/* confdefs.h. */
11037_ACEOF
11038cat confdefs.h >>conftest.$ac_ext
11039cat >>conftest.$ac_ext <<_ACEOF
11040/* end confdefs.h. */
11041
11042int
11043main ()
11044{
11045
11046 ;
11047 return 0;
11048}
11049_ACEOF
11050ac_clean_files_save=$ac_clean_files
11051ac_clean_files="$ac_clean_files a.out a.exe b.out"
11052# Try to create an executable without -o first, disregard a.out.
11053# It will help us diagnose broken compilers, and finding out an intuition
11054# of exeext.
ac1cb8d3
VS
11055echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11056echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11057ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11058if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11059 (eval $ac_link_default) 2>&5
11060 ac_status=$?
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }; then
11063 # Find the output, starting from the most likely. This scheme is
11064# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11065# resort.
11066
11067# Be careful to initialize this variable, since it used to be cached.
11068# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11069ac_cv_exeext=
11070# b.out is created by i960 compilers.
11071for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11072do
11073 test -f "$ac_file" || continue
11074 case $ac_file in
11075 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11076 ;;
a848cd7e 11077 conftest.$ac_ext )
ac1cb8d3
VS
11078 # This is the source file.
11079 ;;
a848cd7e 11080 [ab].out )
ac1cb8d3
VS
11081 # We found the default executable, but exeext='' is most
11082 # certainly right.
11083 break;;
a848cd7e 11084 *.* )
ac1cb8d3
VS
11085 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11086 # FIXME: I believe we export ac_cv_exeext for Libtool,
11087 # but it would be cool to find out if it's true. Does anybody
11088 # maintain Libtool? --akim.
11089 export ac_cv_exeext
11090 break;;
a848cd7e 11091 * )
ac1cb8d3 11092 break;;
a848cd7e
SC
11093 esac
11094done
11095else
11096 echo "$as_me: failed program was:" >&5
11097sed 's/^/| /' conftest.$ac_ext >&5
11098
11099{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11100See \`config.log' for more details." >&5
11101echo "$as_me: error: C compiler cannot create executables
11102See \`config.log' for more details." >&2;}
11103 { (exit 77); exit 77; }; }
11104fi
11105
11106ac_exeext=$ac_cv_exeext
11107echo "$as_me:$LINENO: result: $ac_file" >&5
11108echo "${ECHO_T}$ac_file" >&6
11109
11110# Check the compiler produces executables we can run. If not, either
11111# the compiler is broken, or we cross compile.
11112echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11113echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11114# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11115# If not cross compiling, check that we can run a simple program.
11116if test "$cross_compiling" != yes; then
11117 if { ac_try='./$ac_file'
11118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11119 (eval $ac_try) 2>&5
11120 ac_status=$?
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); }; }; then
11123 cross_compiling=no
11124 else
11125 if test "$cross_compiling" = maybe; then
11126 cross_compiling=yes
11127 else
11128 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11129If you meant to cross compile, use \`--host'.
11130See \`config.log' for more details." >&5
11131echo "$as_me: error: cannot run C compiled programs.
11132If you meant to cross compile, use \`--host'.
11133See \`config.log' for more details." >&2;}
11134 { (exit 1); exit 1; }; }
11135 fi
11136 fi
11137fi
11138echo "$as_me:$LINENO: result: yes" >&5
11139echo "${ECHO_T}yes" >&6
11140
11141rm -f a.out a.exe conftest$ac_cv_exeext b.out
11142ac_clean_files=$ac_clean_files_save
11143# Check the compiler produces executables we can run. If not, either
11144# the compiler is broken, or we cross compile.
11145echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11146echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11147echo "$as_me:$LINENO: result: $cross_compiling" >&5
11148echo "${ECHO_T}$cross_compiling" >&6
11149
11150echo "$as_me:$LINENO: checking for suffix of executables" >&5
11151echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11153 (eval $ac_link) 2>&5
11154 ac_status=$?
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); }; then
11157 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11158# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11159# work properly (i.e., refer to `conftest.exe'), while it won't with
11160# `rm'.
11161for ac_file in conftest.exe conftest conftest.*; do
11162 test -f "$ac_file" || continue
11163 case $ac_file in
11164 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11165 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11166 export ac_cv_exeext
11167 break;;
a848cd7e
SC
11168 * ) break;;
11169 esac
11170done
11171else
11172 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11173See \`config.log' for more details." >&5
11174echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11175See \`config.log' for more details." >&2;}
11176 { (exit 1); exit 1; }; }
11177fi
11178
11179rm -f conftest$ac_cv_exeext
11180echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11181echo "${ECHO_T}$ac_cv_exeext" >&6
11182
11183rm -f conftest.$ac_ext
11184EXEEXT=$ac_cv_exeext
11185ac_exeext=$EXEEXT
11186echo "$as_me:$LINENO: checking for suffix of object files" >&5
11187echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11188if test "${ac_cv_objext+set}" = set; then
11189 echo $ECHO_N "(cached) $ECHO_C" >&6
11190else
11191 cat >conftest.$ac_ext <<_ACEOF
11192/* confdefs.h. */
11193_ACEOF
11194cat confdefs.h >>conftest.$ac_ext
11195cat >>conftest.$ac_ext <<_ACEOF
11196/* end confdefs.h. */
11197
11198int
11199main ()
11200{
11201
11202 ;
11203 return 0;
11204}
11205_ACEOF
11206rm -f conftest.o conftest.obj
11207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11208 (eval $ac_compile) 2>&5
11209 ac_status=$?
11210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211 (exit $ac_status); }; then
11212 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11213 case $ac_file in
11214 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11215 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11216 break;;
11217 esac
11218done
11219else
11220 echo "$as_me: failed program was:" >&5
11221sed 's/^/| /' conftest.$ac_ext >&5
11222
11223{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11224See \`config.log' for more details." >&5
11225echo "$as_me: error: cannot compute suffix of object files: cannot compile
11226See \`config.log' for more details." >&2;}
11227 { (exit 1); exit 1; }; }
11228fi
11229
11230rm -f conftest.$ac_cv_objext conftest.$ac_ext
11231fi
11232echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11233echo "${ECHO_T}$ac_cv_objext" >&6
11234OBJEXT=$ac_cv_objext
11235ac_objext=$OBJEXT
11236echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11237echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11238if test "${ac_cv_c_compiler_gnu+set}" = set; then
11239 echo $ECHO_N "(cached) $ECHO_C" >&6
11240else
11241 cat >conftest.$ac_ext <<_ACEOF
11242/* confdefs.h. */
11243_ACEOF
11244cat confdefs.h >>conftest.$ac_ext
11245cat >>conftest.$ac_ext <<_ACEOF
11246/* end confdefs.h. */
11247
11248int
11249main ()
11250{
11251#ifndef __GNUC__
11252 choke me
11253#endif
11254
11255 ;
11256 return 0;
11257}
11258_ACEOF
11259rm -f conftest.$ac_objext
11260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11261 (eval $ac_compile) 2>conftest.er1
a848cd7e 11262 ac_status=$?
ac1cb8d3
VS
11263 grep -v '^ *+' conftest.er1 >conftest.err
11264 rm -f conftest.er1
11265 cat conftest.err >&5
a848cd7e
SC
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); } &&
fb00f58d
JS
11268 { ac_try='test -z "$ac_c_werror_flag"
11269 || test ! -s conftest.err'
ac1cb8d3
VS
11270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11271 (eval $ac_try) 2>&5
11272 ac_status=$?
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); }; } &&
11275 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11277 (eval $ac_try) 2>&5
11278 ac_status=$?
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); }; }; then
11281 ac_compiler_gnu=yes
11282else
11283 echo "$as_me: failed program was:" >&5
11284sed 's/^/| /' conftest.$ac_ext >&5
11285
11286ac_compiler_gnu=no
11287fi
ac1cb8d3 11288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11289ac_cv_c_compiler_gnu=$ac_compiler_gnu
11290
11291fi
11292echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11293echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11294GCC=`test $ac_compiler_gnu = yes && echo yes`
11295ac_test_CFLAGS=${CFLAGS+set}
11296ac_save_CFLAGS=$CFLAGS
52ada004 11297CFLAGS="-g"
a848cd7e
SC
11298echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11299echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11300if test "${ac_cv_prog_cc_g+set}" = set; then
11301 echo $ECHO_N "(cached) $ECHO_C" >&6
11302else
11303 cat >conftest.$ac_ext <<_ACEOF
11304/* confdefs.h. */
11305_ACEOF
11306cat confdefs.h >>conftest.$ac_ext
11307cat >>conftest.$ac_ext <<_ACEOF
11308/* end confdefs.h. */
11309
11310int
11311main ()
11312{
11313
11314 ;
11315 return 0;
11316}
11317_ACEOF
11318rm -f conftest.$ac_objext
11319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11320 (eval $ac_compile) 2>conftest.er1
a848cd7e 11321 ac_status=$?
ac1cb8d3
VS
11322 grep -v '^ *+' conftest.er1 >conftest.err
11323 rm -f conftest.er1
11324 cat conftest.err >&5
a848cd7e
SC
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); } &&
fb00f58d
JS
11327 { ac_try='test -z "$ac_c_werror_flag"
11328 || test ! -s conftest.err'
ac1cb8d3
VS
11329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11330 (eval $ac_try) 2>&5
11331 ac_status=$?
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); }; } &&
11334 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11336 (eval $ac_try) 2>&5
11337 ac_status=$?
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); }; }; then
11340 ac_cv_prog_cc_g=yes
11341else
11342 echo "$as_me: failed program was:" >&5
11343sed 's/^/| /' conftest.$ac_ext >&5
11344
11345ac_cv_prog_cc_g=no
11346fi
ac1cb8d3 11347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11348fi
11349echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11350echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11351if test "$ac_test_CFLAGS" = set; then
11352 CFLAGS=$ac_save_CFLAGS
11353elif test $ac_cv_prog_cc_g = yes; then
11354 if test "$GCC" = yes; then
11355 CFLAGS="-g -O2"
11356 else
11357 CFLAGS="-g"
11358 fi
11359else
11360 if test "$GCC" = yes; then
11361 CFLAGS="-O2"
11362 else
11363 CFLAGS=
11364 fi
11365fi
11366echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11367echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11368if test "${ac_cv_prog_cc_stdc+set}" = set; then
11369 echo $ECHO_N "(cached) $ECHO_C" >&6
11370else
11371 ac_cv_prog_cc_stdc=no
11372ac_save_CC=$CC
11373cat >conftest.$ac_ext <<_ACEOF
11374/* confdefs.h. */
11375_ACEOF
11376cat confdefs.h >>conftest.$ac_ext
11377cat >>conftest.$ac_ext <<_ACEOF
11378/* end confdefs.h. */
11379#include <stdarg.h>
11380#include <stdio.h>
11381#include <sys/types.h>
11382#include <sys/stat.h>
11383/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11384struct buf { int x; };
11385FILE * (*rcsopen) (struct buf *, struct stat *, int);
11386static char *e (p, i)
11387 char **p;
11388 int i;
11389{
11390 return p[i];
11391}
11392static char *f (char * (*g) (char **, int), char **p, ...)
11393{
11394 char *s;
11395 va_list v;
11396 va_start (v,p);
11397 s = g (p, va_arg (v,int));
11398 va_end (v);
11399 return s;
11400}
ac1cb8d3
VS
11401
11402/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11403 function prototypes and stuff, but not '\xHH' hex character constants.
11404 These don't provoke an error unfortunately, instead are silently treated
11405 as 'x'. The following induces an error, until -std1 is added to get
11406 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11407 array size at least. It's necessary to write '\x00'==0 to get something
11408 that's true only with -std1. */
11409int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11410
a848cd7e
SC
11411int test (int i, double x);
11412struct s1 {int (*f) (int a);};
11413struct s2 {int (*f) (double a);};
11414int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11415int argc;
11416char **argv;
11417int
11418main ()
11419{
11420return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11421 ;
11422 return 0;
11423}
11424_ACEOF
11425# Don't try gcc -ansi; that turns off useful extensions and
11426# breaks some systems' header files.
11427# AIX -qlanglvl=ansi
11428# Ultrix and OSF/1 -std1
11429# HP-UX 10.20 and later -Ae
11430# HP-UX older versions -Aa -D_HPUX_SOURCE
11431# SVR4 -Xc -D__EXTENSIONS__
11432for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11433do
11434 CC="$ac_save_CC $ac_arg"
11435 rm -f conftest.$ac_objext
11436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11437 (eval $ac_compile) 2>conftest.er1
a848cd7e 11438 ac_status=$?
ac1cb8d3
VS
11439 grep -v '^ *+' conftest.er1 >conftest.err
11440 rm -f conftest.er1
11441 cat conftest.err >&5
a848cd7e
SC
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); } &&
fb00f58d
JS
11444 { ac_try='test -z "$ac_c_werror_flag"
11445 || test ! -s conftest.err'
ac1cb8d3
VS
11446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11447 (eval $ac_try) 2>&5
11448 ac_status=$?
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); }; } &&
11451 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11453 (eval $ac_try) 2>&5
11454 ac_status=$?
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); }; }; then
11457 ac_cv_prog_cc_stdc=$ac_arg
11458break
11459else
11460 echo "$as_me: failed program was:" >&5
11461sed 's/^/| /' conftest.$ac_ext >&5
11462
11463fi
ac1cb8d3 11464rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11465done
11466rm -f conftest.$ac_ext conftest.$ac_objext
11467CC=$ac_save_CC
11468
11469fi
11470
11471case "x$ac_cv_prog_cc_stdc" in
11472 x|xno)
11473 echo "$as_me:$LINENO: result: none needed" >&5
11474echo "${ECHO_T}none needed" >&6 ;;
11475 *)
11476 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11477echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11478 CC="$CC $ac_cv_prog_cc_stdc" ;;
11479esac
11480
11481# Some people use a C++ compiler to compile C. Since we use `exit',
11482# in C++ we need to declare it. In case someone uses the same compiler
11483# for both compiling C and C++ we need to have the C++ compiler decide
11484# the declaration of exit, since it's the most demanding environment.
11485cat >conftest.$ac_ext <<_ACEOF
11486#ifndef __cplusplus
11487 choke me
11488#endif
11489_ACEOF
11490rm -f conftest.$ac_objext
11491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11492 (eval $ac_compile) 2>conftest.er1
a848cd7e 11493 ac_status=$?
ac1cb8d3
VS
11494 grep -v '^ *+' conftest.er1 >conftest.err
11495 rm -f conftest.er1
11496 cat conftest.err >&5
a848cd7e
SC
11497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498 (exit $ac_status); } &&
fb00f58d
JS
11499 { ac_try='test -z "$ac_c_werror_flag"
11500 || test ! -s conftest.err'
ac1cb8d3
VS
11501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11502 (eval $ac_try) 2>&5
11503 ac_status=$?
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); }; } &&
11506 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11508 (eval $ac_try) 2>&5
11509 ac_status=$?
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); }; }; then
11512 for ac_declaration in \
ac1cb8d3 11513 '' \
a848cd7e
SC
11514 'extern "C" void std::exit (int) throw (); using std::exit;' \
11515 'extern "C" void std::exit (int); using std::exit;' \
11516 'extern "C" void exit (int) throw ();' \
11517 'extern "C" void exit (int);' \
11518 'void exit (int);'
11519do
11520 cat >conftest.$ac_ext <<_ACEOF
11521/* confdefs.h. */
11522_ACEOF
11523cat confdefs.h >>conftest.$ac_ext
11524cat >>conftest.$ac_ext <<_ACEOF
11525/* end confdefs.h. */
de59c161 11526$ac_declaration
ac1cb8d3 11527#include <stdlib.h>
a848cd7e
SC
11528int
11529main ()
11530{
11531exit (42);
11532 ;
11533 return 0;
11534}
11535_ACEOF
11536rm -f conftest.$ac_objext
11537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11538 (eval $ac_compile) 2>conftest.er1
a848cd7e 11539 ac_status=$?
ac1cb8d3
VS
11540 grep -v '^ *+' conftest.er1 >conftest.err
11541 rm -f conftest.er1
11542 cat conftest.err >&5
a848cd7e
SC
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); } &&
fb00f58d
JS
11545 { ac_try='test -z "$ac_c_werror_flag"
11546 || test ! -s conftest.err'
ac1cb8d3
VS
11547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11548 (eval $ac_try) 2>&5
11549 ac_status=$?
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); }; } &&
11552 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11554 (eval $ac_try) 2>&5
11555 ac_status=$?
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); }; }; then
11558 :
11559else
11560 echo "$as_me: failed program was:" >&5
11561sed 's/^/| /' conftest.$ac_ext >&5
11562
11563continue
11564fi
ac1cb8d3 11565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11566 cat >conftest.$ac_ext <<_ACEOF
11567/* confdefs.h. */
11568_ACEOF
11569cat confdefs.h >>conftest.$ac_ext
11570cat >>conftest.$ac_ext <<_ACEOF
11571/* end confdefs.h. */
11572$ac_declaration
11573int
11574main ()
11575{
11576exit (42);
11577 ;
11578 return 0;
11579}
11580_ACEOF
11581rm -f conftest.$ac_objext
11582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11583 (eval $ac_compile) 2>conftest.er1
a848cd7e 11584 ac_status=$?
ac1cb8d3
VS
11585 grep -v '^ *+' conftest.er1 >conftest.err
11586 rm -f conftest.er1
11587 cat conftest.err >&5
a848cd7e
SC
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); } &&
fb00f58d
JS
11590 { ac_try='test -z "$ac_c_werror_flag"
11591 || test ! -s conftest.err'
ac1cb8d3
VS
11592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11593 (eval $ac_try) 2>&5
11594 ac_status=$?
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); }; } &&
11597 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11599 (eval $ac_try) 2>&5
11600 ac_status=$?
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); }; }; then
11603 break
11604else
11605 echo "$as_me: failed program was:" >&5
11606sed 's/^/| /' conftest.$ac_ext >&5
11607
11608fi
ac1cb8d3 11609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11610done
11611rm -f conftest*
11612if test -n "$ac_declaration"; then
11613 echo '#ifdef __cplusplus' >>confdefs.h
11614 echo $ac_declaration >>confdefs.h
11615 echo '#endif' >>confdefs.h
11616fi
11617
11618else
11619 echo "$as_me: failed program was:" >&5
11620sed 's/^/| /' conftest.$ac_ext >&5
11621
11622fi
ac1cb8d3 11623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11624ac_ext=c
11625ac_cpp='$CPP $CPPFLAGS'
11626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11628ac_compiler_gnu=$ac_cv_c_compiler_gnu
11629
6dcfc289 11630 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21
DE
11631echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
11632if test "${wx_cv_c_exto+set}" = set; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11634else
11635 cat >conftest.$ac_ext <<_ACEOF
11636/* confdefs.h. */
11637_ACEOF
11638cat confdefs.h >>conftest.$ac_ext
11639cat >>conftest.$ac_ext <<_ACEOF
11640/* end confdefs.h. */
11641
11642int
11643main ()
11644{
11645
11646 ;
11647 return 0;
11648}
11649_ACEOF
11650rm -f conftest.$ac_objext conftest.$ac_ext.o
11651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11652 (eval $ac_compile) 2>&5
11653 ac_status=$?
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); }; then
11656 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11657 case $ac_file in
11658 conftest.$ac_ext.o)
11659 wx_cv_c_exto="-ext o"
11660 ;;
11661 *)
11662 ;;
11663 esac
11664done
11665else
11666 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11667See \`config.log' for more details." >&5
11668echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11669See \`config.log' for more details." >&2;}
11670 { (exit 1); exit 1; }; }
11671
11672fi
11673
11674rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11675
11676fi
11677echo "$as_me:$LINENO: result: $wx_cv_c_exto" >&5
11678echo "${ECHO_T}$wx_cv_c_exto" >&6
11679if test "x$wx_cv_c_exto" '!=' "x"; then
11680 if test "c" = "c"; then
11681 CFLAGS="$wx_cv_c_exto $CFLAGS"
11682 fi
11683 if test "c" = "cxx"; then
11684 CXXFLAGS="$wx_cv_c_exto $CXXFLAGS"
11685 fi
11686fi
11687
6dcfc289
DE
11688 if test "x$wx_cv_c_exto" '!=' "x"; then
11689 unset ac_cv_prog_cc_g
11690 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 11691ac_save_CFLAGS=$CFLAGS
52ada004 11692CFLAGS="-g"
480ccd21
DE
11693echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11694echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11695if test "${ac_cv_prog_cc_g+set}" = set; then
11696 echo $ECHO_N "(cached) $ECHO_C" >&6
11697else
11698 cat >conftest.$ac_ext <<_ACEOF
11699/* confdefs.h. */
11700_ACEOF
11701cat confdefs.h >>conftest.$ac_ext
11702cat >>conftest.$ac_ext <<_ACEOF
11703/* end confdefs.h. */
11704
11705int
11706main ()
11707{
11708
11709 ;
11710 return 0;
11711}
11712_ACEOF
11713rm -f conftest.$ac_objext
11714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11715 (eval $ac_compile) 2>conftest.er1
11716 ac_status=$?
11717 grep -v '^ *+' conftest.er1 >conftest.err
11718 rm -f conftest.er1
11719 cat conftest.err >&5
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); } &&
fb00f58d
JS
11722 { ac_try='test -z "$ac_c_werror_flag"
11723 || test ! -s conftest.err'
480ccd21
DE
11724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725 (eval $ac_try) 2>&5
11726 ac_status=$?
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; } &&
11729 { ac_try='test -s conftest.$ac_objext'
11730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11731 (eval $ac_try) 2>&5
11732 ac_status=$?
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); }; }; then
11735 ac_cv_prog_cc_g=yes
11736else
11737 echo "$as_me: failed program was:" >&5
11738sed 's/^/| /' conftest.$ac_ext >&5
11739
11740ac_cv_prog_cc_g=no
11741fi
11742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11743fi
11744echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11745echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11746if test "$ac_test_CFLAGS" = set; then
11747 CFLAGS=$ac_save_CFLAGS
11748elif test $ac_cv_prog_cc_g = yes; then
11749 if test "$GCC" = yes; then
11750 CFLAGS="-g -O2"
11751 else
11752 CFLAGS="-g"
11753 fi
11754else
11755 if test "$GCC" = yes; then
11756 CFLAGS="-O2"
11757 else
11758 CFLAGS=
11759 fi
11760fi
6dcfc289
DE
11761 fi
11762 ac_ext=c
95986553
DE
11763ac_cpp='$CPP $CPPFLAGS'
11764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11766ac_compiler_gnu=$ac_cv_c_compiler_gnu
11767
11768echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
11769echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
11770if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
11771 echo $ECHO_N "(cached) $ECHO_C" >&6
11772else
11773 cat >conftest.$ac_ext <<_ACEOF
11774/* confdefs.h. */
11775_ACEOF
11776cat confdefs.h >>conftest.$ac_ext
11777cat >>conftest.$ac_ext <<_ACEOF
11778/* end confdefs.h. */
11779
11780int
11781main ()
11782{
11783#ifndef __MWERKS__
11784 choke me
11785#endif
11786
11787 ;
11788 return 0;
11789}
11790_ACEOF
11791rm -f conftest.$ac_objext
11792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11793 (eval $ac_compile) 2>conftest.er1
11794 ac_status=$?
11795 grep -v '^ *+' conftest.er1 >conftest.err
11796 rm -f conftest.er1
11797 cat conftest.err >&5
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); } &&
fb00f58d
JS
11800 { ac_try='test -z "$ac_c_werror_flag"
11801 || test ! -s conftest.err'
95986553
DE
11802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11803 (eval $ac_try) 2>&5
11804 ac_status=$?
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); }; } &&
11807 { ac_try='test -s conftest.$ac_objext'
11808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11809 (eval $ac_try) 2>&5
11810 ac_status=$?
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); }; }; then
11813 bakefile_compiler_mwerks=yes
11814else
11815 echo "$as_me: failed program was:" >&5
11816sed 's/^/| /' conftest.$ac_ext >&5
11817
11818bakefile_compiler_mwerks=no
11819fi
11820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11821 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
11822
11823fi
11824echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
11825echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
11826
0e6fa1d9 11827MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
11828ac_ext=c
11829ac_cpp='$CPP $CPPFLAGS'
11830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11832ac_compiler_gnu=$ac_cv_c_compiler_gnu
11833
11834
6dcfc289 11835 ac_ext=c
9273ffba
DE
11836ac_cpp='$CPP $CPPFLAGS'
11837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11839ac_compiler_gnu=$ac_cv_c_compiler_gnu
11840
11841echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
11842echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
11843if test "${wx_cv_c_compiler_xlc+set}" = set; then
11844 echo $ECHO_N "(cached) $ECHO_C" >&6
11845else
11846 cat >conftest.$ac_ext <<_ACEOF
11847/* confdefs.h. */
11848_ACEOF
11849cat confdefs.h >>conftest.$ac_ext
11850cat >>conftest.$ac_ext <<_ACEOF
11851/* end confdefs.h. */
11852
11853int
11854main ()
11855{
11856#ifndef __xlC__
11857 choke me
11858#endif
11859
11860 ;
11861 return 0;
11862}
11863_ACEOF
11864rm -f conftest.$ac_objext
11865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11866 (eval $ac_compile) 2>conftest.er1
11867 ac_status=$?
11868 grep -v '^ *+' conftest.er1 >conftest.err
11869 rm -f conftest.er1
11870 cat conftest.err >&5
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); } &&
fb00f58d
JS
11873 { ac_try='test -z "$ac_c_werror_flag"
11874 || test ! -s conftest.err'
9273ffba
DE
11875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11876 (eval $ac_try) 2>&5
11877 ac_status=$?
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); }; } &&
11880 { ac_try='test -s conftest.$ac_objext'
11881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11882 (eval $ac_try) 2>&5
11883 ac_status=$?
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); }; }; then
11886 wx_compiler_xlc=yes
11887else
11888 echo "$as_me: failed program was:" >&5
11889sed 's/^/| /' conftest.$ac_ext >&5
11890
11891wx_compiler_xlc=no
11892fi
11893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11894 wx_cv_c_compiler_xlc=$wx_compiler_xlc
11895
11896fi
11897echo "$as_me:$LINENO: result: $wx_cv_c_compiler_xlc" >&5
11898echo "${ECHO_T}$wx_cv_c_compiler_xlc" >&6
11899
0e6fa1d9 11900XLCC=`test $wx_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
11901ac_ext=c
11902ac_cpp='$CPP $CPPFLAGS'
11903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11905ac_compiler_gnu=$ac_cv_c_compiler_gnu
11906
11907
a848cd7e 11908
6dcfc289 11909
a9e5b1f0
MW
11910 ac_ext=c
11911ac_cpp='$CPP $CPPFLAGS'
11912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11914ac_compiler_gnu=$ac_cv_c_compiler_gnu
11915
11916 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
11917echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
11918if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11920else
11921 cat >conftest.$ac_ext <<_ACEOF
11922/* confdefs.h. */
11923_ACEOF
11924cat confdefs.h >>conftest.$ac_ext
11925cat >>conftest.$ac_ext <<_ACEOF
11926/* end confdefs.h. */
11927
11928int
11929main ()
11930{
11931
11932 #ifndef __SUNPRO_C
11933 choke me
11934 #endif
11935
11936 ;
11937 return 0;
11938}
11939_ACEOF
11940rm -f conftest.$ac_objext
11941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11942 (eval $ac_compile) 2>conftest.er1
11943 ac_status=$?
11944 grep -v '^ *+' conftest.er1 >conftest.err
11945 rm -f conftest.er1
11946 cat conftest.err >&5
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); } &&
11949 { ac_try='test -z "$ac_c_werror_flag"
11950 || test ! -s conftest.err'
11951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11952 (eval $ac_try) 2>&5
11953 ac_status=$?
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); }; } &&
11956 { ac_try='test -s conftest.$ac_objext'
11957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11958 (eval $ac_try) 2>&5
11959 ac_status=$?
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); }; }; then
11962 bakefile_cv_c_compiler___SUNPRO_C=yes
11963else
11964 echo "$as_me: failed program was:" >&5
11965sed 's/^/| /' conftest.$ac_ext >&5
11966
11967bakefile_cv_c_compiler___SUNPRO_C=no
11968
11969fi
11970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11971
11972
11973fi
11974echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
11975echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
11976 ac_ext=c
11977ac_cpp='$CPP $CPPFLAGS'
11978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11980ac_compiler_gnu=$ac_cv_c_compiler_gnu
11981
11982 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
11983 :; SUNCC=yes
11984 else
11985 :;
11986 fi
11987
11988
11989
11990
a848cd7e
SC
11991ac_ext=c
11992ac_cpp='$CPP $CPPFLAGS'
11993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11995ac_compiler_gnu=$ac_cv_c_compiler_gnu
11996echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11997echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11998# On Suns, sometimes $CPP names a directory.
11999if test -n "$CPP" && test -d "$CPP"; then
12000 CPP=
12001fi
12002if test -z "$CPP"; then
12003 if test "${ac_cv_prog_CPP+set}" = set; then
12004 echo $ECHO_N "(cached) $ECHO_C" >&6
12005else
12006 # Double quotes because CPP needs to be expanded
12007 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12008 do
12009 ac_preproc_ok=false
12010for ac_c_preproc_warn_flag in '' yes
12011do
12012 # Use a header file that comes with gcc, so configuring glibc
12013 # with a fresh cross-compiler works.
12014 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12015 # <limits.h> exists even on freestanding compilers.
12016 # On the NeXT, cc -E runs the code through the compiler's parser,
12017 # not just through cpp. "Syntax error" is here to catch this case.
12018 cat >conftest.$ac_ext <<_ACEOF
12019/* confdefs.h. */
12020_ACEOF
12021cat confdefs.h >>conftest.$ac_ext
12022cat >>conftest.$ac_ext <<_ACEOF
12023/* end confdefs.h. */
12024#ifdef __STDC__
12025# include <limits.h>
12026#else
12027# include <assert.h>
12028#endif
ac1cb8d3 12029 Syntax error
a848cd7e
SC
12030_ACEOF
12031if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12033 ac_status=$?
12034 grep -v '^ *+' conftest.er1 >conftest.err
12035 rm -f conftest.er1
12036 cat conftest.err >&5
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); } >/dev/null; then
12039 if test -s conftest.err; then
12040 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12041 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12042 else
12043 ac_cpp_err=
12044 fi
12045else
12046 ac_cpp_err=yes
12047fi
12048if test -z "$ac_cpp_err"; then
12049 :
12050else
12051 echo "$as_me: failed program was:" >&5
12052sed 's/^/| /' conftest.$ac_ext >&5
12053
12054 # Broken: fails on valid input.
12055continue
12056fi
12057rm -f conftest.err conftest.$ac_ext
12058
12059 # OK, works on sane cases. Now check whether non-existent headers
12060 # can be detected and how.
12061 cat >conftest.$ac_ext <<_ACEOF
12062/* confdefs.h. */
12063_ACEOF
12064cat confdefs.h >>conftest.$ac_ext
12065cat >>conftest.$ac_ext <<_ACEOF
12066/* end confdefs.h. */
12067#include <ac_nonexistent.h>
12068_ACEOF
12069if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12071 ac_status=$?
12072 grep -v '^ *+' conftest.er1 >conftest.err
12073 rm -f conftest.er1
12074 cat conftest.err >&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); } >/dev/null; then
12077 if test -s conftest.err; then
12078 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12079 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12080 else
12081 ac_cpp_err=
12082 fi
12083else
12084 ac_cpp_err=yes
12085fi
12086if test -z "$ac_cpp_err"; then
12087 # Broken: success on invalid input.
12088continue
12089else
12090 echo "$as_me: failed program was:" >&5
12091sed 's/^/| /' conftest.$ac_ext >&5
12092
12093 # Passes both tests.
12094ac_preproc_ok=:
12095break
12096fi
12097rm -f conftest.err conftest.$ac_ext
12098
12099done
12100# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12101rm -f conftest.err conftest.$ac_ext
12102if $ac_preproc_ok; then
12103 break
12104fi
12105
12106 done
12107 ac_cv_prog_CPP=$CPP
12108
12109fi
12110 CPP=$ac_cv_prog_CPP
12111else
12112 ac_cv_prog_CPP=$CPP
12113fi
12114echo "$as_me:$LINENO: result: $CPP" >&5
12115echo "${ECHO_T}$CPP" >&6
12116ac_preproc_ok=false
12117for ac_c_preproc_warn_flag in '' yes
12118do
12119 # Use a header file that comes with gcc, so configuring glibc
12120 # with a fresh cross-compiler works.
12121 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12122 # <limits.h> exists even on freestanding compilers.
12123 # On the NeXT, cc -E runs the code through the compiler's parser,
12124 # not just through cpp. "Syntax error" is here to catch this case.
12125 cat >conftest.$ac_ext <<_ACEOF
12126/* confdefs.h. */
12127_ACEOF
12128cat confdefs.h >>conftest.$ac_ext
12129cat >>conftest.$ac_ext <<_ACEOF
12130/* end confdefs.h. */
12131#ifdef __STDC__
12132# include <limits.h>
12133#else
12134# include <assert.h>
12135#endif
ac1cb8d3 12136 Syntax error
a848cd7e
SC
12137_ACEOF
12138if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12139 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12140 ac_status=$?
12141 grep -v '^ *+' conftest.er1 >conftest.err
12142 rm -f conftest.er1
12143 cat conftest.err >&5
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); } >/dev/null; then
12146 if test -s conftest.err; then
12147 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12148 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12149 else
12150 ac_cpp_err=
12151 fi
12152else
12153 ac_cpp_err=yes
12154fi
12155if test -z "$ac_cpp_err"; then
12156 :
12157else
12158 echo "$as_me: failed program was:" >&5
12159sed 's/^/| /' conftest.$ac_ext >&5
12160
12161 # Broken: fails on valid input.
12162continue
12163fi
12164rm -f conftest.err conftest.$ac_ext
12165
12166 # OK, works on sane cases. Now check whether non-existent headers
12167 # can be detected and how.
12168 cat >conftest.$ac_ext <<_ACEOF
12169/* confdefs.h. */
12170_ACEOF
12171cat confdefs.h >>conftest.$ac_ext
12172cat >>conftest.$ac_ext <<_ACEOF
12173/* end confdefs.h. */
12174#include <ac_nonexistent.h>
12175_ACEOF
12176if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12177 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12178 ac_status=$?
12179 grep -v '^ *+' conftest.er1 >conftest.err
12180 rm -f conftest.er1
12181 cat conftest.err >&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); } >/dev/null; then
12184 if test -s conftest.err; then
12185 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12186 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12187 else
12188 ac_cpp_err=
12189 fi
12190else
12191 ac_cpp_err=yes
12192fi
12193if test -z "$ac_cpp_err"; then
12194 # Broken: success on invalid input.
12195continue
12196else
12197 echo "$as_me: failed program was:" >&5
12198sed 's/^/| /' conftest.$ac_ext >&5
12199
12200 # Passes both tests.
12201ac_preproc_ok=:
12202break
12203fi
12204rm -f conftest.err conftest.$ac_ext
12205
12206done
12207# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12208rm -f conftest.err conftest.$ac_ext
12209if $ac_preproc_ok; then
12210 :
12211else
12212 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12213See \`config.log' for more details." >&5
12214echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12215See \`config.log' for more details." >&2;}
12216 { (exit 1); exit 1; }; }
12217fi
12218
12219ac_ext=c
12220ac_cpp='$CPP $CPPFLAGS'
12221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12223ac_compiler_gnu=$ac_cv_c_compiler_gnu
12224
12225
12226echo "$as_me:$LINENO: checking for egrep" >&5
12227echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12228if test "${ac_cv_prog_egrep+set}" = set; then
12229 echo $ECHO_N "(cached) $ECHO_C" >&6
12230else
12231 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12232 then ac_cv_prog_egrep='grep -E'
12233 else ac_cv_prog_egrep='egrep'
12234 fi
12235fi
12236echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12237echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12238 EGREP=$ac_cv_prog_egrep
12239
12240
12241if test $ac_cv_c_compiler_gnu = yes; then
12242 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12243echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12244if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12245 echo $ECHO_N "(cached) $ECHO_C" >&6
12246else
12247 ac_pattern="Autoconf.*'x'"
12248 cat >conftest.$ac_ext <<_ACEOF
12249/* confdefs.h. */
12250_ACEOF
12251cat confdefs.h >>conftest.$ac_ext
12252cat >>conftest.$ac_ext <<_ACEOF
12253/* end confdefs.h. */
12254#include <sgtty.h>
12255Autoconf TIOCGETP
12256_ACEOF
12257if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12258 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12259 ac_cv_prog_gcc_traditional=yes
12260else
12261 ac_cv_prog_gcc_traditional=no
12262fi
12263rm -f conftest*
12264
12265
12266 if test $ac_cv_prog_gcc_traditional = no; then
12267 cat >conftest.$ac_ext <<_ACEOF
12268/* confdefs.h. */
12269_ACEOF
12270cat confdefs.h >>conftest.$ac_ext
12271cat >>conftest.$ac_ext <<_ACEOF
12272/* end confdefs.h. */
12273#include <termio.h>
12274Autoconf TCGETA
12275_ACEOF
12276if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12277 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12278 ac_cv_prog_gcc_traditional=yes
12279fi
12280rm -f conftest*
12281
12282 fi
12283fi
12284echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12285echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12286 if test $ac_cv_prog_gcc_traditional = yes; then
12287 CC="$CC -traditional"
12288 fi
12289fi
12290
12291
12292
12293
12294ac_ext=cc
12295ac_cpp='$CXXCPP $CPPFLAGS'
12296ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12297ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12298ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12299
12300
12301CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
12302
12303
12304 ac_ext=cc
a848cd7e
SC
12305ac_cpp='$CXXCPP $CPPFLAGS'
12306ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12307ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12308ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12309if test -n "$ac_tool_prefix"; then
12310 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12311 do
12312 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12313set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12314echo "$as_me:$LINENO: checking for $ac_word" >&5
12315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12316if test "${ac_cv_prog_CXX+set}" = set; then
12317 echo $ECHO_N "(cached) $ECHO_C" >&6
12318else
12319 if test -n "$CXX"; then
12320 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12321else
12322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12323for as_dir in $PATH
12324do
12325 IFS=$as_save_IFS
12326 test -z "$as_dir" && as_dir=.
12327 for ac_exec_ext in '' $ac_executable_extensions; do
12328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12329 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12331 break 2
12332 fi
12333done
12334done
12335
12336fi
12337fi
12338CXX=$ac_cv_prog_CXX
12339if test -n "$CXX"; then
12340 echo "$as_me:$LINENO: result: $CXX" >&5
12341echo "${ECHO_T}$CXX" >&6
12342else
12343 echo "$as_me:$LINENO: result: no" >&5
12344echo "${ECHO_T}no" >&6
12345fi
12346
12347 test -n "$CXX" && break
12348 done
12349fi
12350if test -z "$CXX"; then
12351 ac_ct_CXX=$CXX
12352 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12353do
12354 # Extract the first word of "$ac_prog", so it can be a program name with args.
12355set dummy $ac_prog; ac_word=$2
12356echo "$as_me:$LINENO: checking for $ac_word" >&5
12357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12358if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12359 echo $ECHO_N "(cached) $ECHO_C" >&6
12360else
12361 if test -n "$ac_ct_CXX"; then
12362 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12363else
12364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12365for as_dir in $PATH
12366do
12367 IFS=$as_save_IFS
12368 test -z "$as_dir" && as_dir=.
12369 for ac_exec_ext in '' $ac_executable_extensions; do
12370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12371 ac_cv_prog_ac_ct_CXX="$ac_prog"
12372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12373 break 2
12374 fi
12375done
12376done
12377
12378fi
12379fi
12380ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12381if test -n "$ac_ct_CXX"; then
12382 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12383echo "${ECHO_T}$ac_ct_CXX" >&6
12384else
12385 echo "$as_me:$LINENO: result: no" >&5
12386echo "${ECHO_T}no" >&6
12387fi
12388
12389 test -n "$ac_ct_CXX" && break
12390done
12391test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12392
12393 CXX=$ac_ct_CXX
12394fi
12395
12396
12397# Provide some information about the compiler.
12398echo "$as_me:$LINENO:" \
12399 "checking for C++ compiler version" >&5
12400ac_compiler=`set X $ac_compile; echo $2`
12401{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12402 (eval $ac_compiler --version </dev/null >&5) 2>&5
12403 ac_status=$?
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); }
12406{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12407 (eval $ac_compiler -v </dev/null >&5) 2>&5
12408 ac_status=$?
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); }
12411{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12412 (eval $ac_compiler -V </dev/null >&5) 2>&5
12413 ac_status=$?
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); }
12416
12417echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12418echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12419if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12420 echo $ECHO_N "(cached) $ECHO_C" >&6
12421else
12422 cat >conftest.$ac_ext <<_ACEOF
12423/* confdefs.h. */
12424_ACEOF
12425cat confdefs.h >>conftest.$ac_ext
12426cat >>conftest.$ac_ext <<_ACEOF
12427/* end confdefs.h. */
12428
12429int
12430main ()
12431{
12432#ifndef __GNUC__
12433 choke me
12434#endif
12435
12436 ;
12437 return 0;
12438}
12439_ACEOF
12440rm -f conftest.$ac_objext
12441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12442 (eval $ac_compile) 2>conftest.er1
a848cd7e 12443 ac_status=$?
ac1cb8d3
VS
12444 grep -v '^ *+' conftest.er1 >conftest.err
12445 rm -f conftest.er1
12446 cat conftest.err >&5
a848cd7e
SC
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); } &&
fb00f58d
JS
12449 { ac_try='test -z "$ac_cxx_werror_flag"
12450 || test ! -s conftest.err'
ac1cb8d3
VS
12451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12452 (eval $ac_try) 2>&5
12453 ac_status=$?
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); }; } &&
12456 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12458 (eval $ac_try) 2>&5
12459 ac_status=$?
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); }; }; then
12462 ac_compiler_gnu=yes
12463else
12464 echo "$as_me: failed program was:" >&5
12465sed 's/^/| /' conftest.$ac_ext >&5
12466
12467ac_compiler_gnu=no
12468fi
ac1cb8d3 12469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12470ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12471
12472fi
12473echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12474echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
12475GXX=`test $ac_compiler_gnu = yes && echo yes`
12476ac_test_CXXFLAGS=${CXXFLAGS+set}
12477ac_save_CXXFLAGS=$CXXFLAGS
12478CXXFLAGS="-g"
12479echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12480echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12481if test "${ac_cv_prog_cxx_g+set}" = set; then
12482 echo $ECHO_N "(cached) $ECHO_C" >&6
12483else
12484 cat >conftest.$ac_ext <<_ACEOF
12485/* confdefs.h. */
12486_ACEOF
12487cat confdefs.h >>conftest.$ac_ext
12488cat >>conftest.$ac_ext <<_ACEOF
12489/* end confdefs.h. */
12490
12491int
12492main ()
12493{
12494
12495 ;
12496 return 0;
12497}
12498_ACEOF
12499rm -f conftest.$ac_objext
12500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12501 (eval $ac_compile) 2>conftest.er1
a848cd7e 12502 ac_status=$?
ac1cb8d3
VS
12503 grep -v '^ *+' conftest.er1 >conftest.err
12504 rm -f conftest.er1
12505 cat conftest.err >&5
a848cd7e
SC
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); } &&
fb00f58d
JS
12508 { ac_try='test -z "$ac_cxx_werror_flag"
12509 || test ! -s conftest.err'
ac1cb8d3
VS
12510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12511 (eval $ac_try) 2>&5
12512 ac_status=$?
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); }; } &&
12515 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517 (eval $ac_try) 2>&5
12518 ac_status=$?
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); }; }; then
12521 ac_cv_prog_cxx_g=yes
12522else
12523 echo "$as_me: failed program was:" >&5
12524sed 's/^/| /' conftest.$ac_ext >&5
12525
12526ac_cv_prog_cxx_g=no
12527fi
ac1cb8d3 12528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12529fi
12530echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12531echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12532if test "$ac_test_CXXFLAGS" = set; then
12533 CXXFLAGS=$ac_save_CXXFLAGS
12534elif test $ac_cv_prog_cxx_g = yes; then
12535 if test "$GXX" = yes; then
52ada004 12536 CXXFLAGS="-g -O2"
a848cd7e 12537 else
52ada004 12538 CXXFLAGS="-g"
a848cd7e
SC
12539 fi
12540else
12541 if test "$GXX" = yes; then
12542 CXXFLAGS="-O2"
12543 else
12544 CXXFLAGS=
12545 fi
12546fi
12547for ac_declaration in \
ac1cb8d3 12548 '' \
a848cd7e
SC
12549 'extern "C" void std::exit (int) throw (); using std::exit;' \
12550 'extern "C" void std::exit (int); using std::exit;' \
12551 'extern "C" void exit (int) throw ();' \
12552 'extern "C" void exit (int);' \
12553 'void exit (int);'
12554do
12555 cat >conftest.$ac_ext <<_ACEOF
12556/* confdefs.h. */
12557_ACEOF
12558cat confdefs.h >>conftest.$ac_ext
12559cat >>conftest.$ac_ext <<_ACEOF
12560/* end confdefs.h. */
de59c161 12561$ac_declaration
ac1cb8d3 12562#include <stdlib.h>
a848cd7e
SC
12563int
12564main ()
12565{
12566exit (42);
12567 ;
12568 return 0;
12569}
12570_ACEOF
12571rm -f conftest.$ac_objext
12572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12573 (eval $ac_compile) 2>conftest.er1
a848cd7e 12574 ac_status=$?
ac1cb8d3
VS
12575 grep -v '^ *+' conftest.er1 >conftest.err
12576 rm -f conftest.er1
12577 cat conftest.err >&5
a848cd7e
SC
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); } &&
fb00f58d
JS
12580 { ac_try='test -z "$ac_cxx_werror_flag"
12581 || test ! -s conftest.err'
ac1cb8d3
VS
12582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12583 (eval $ac_try) 2>&5
12584 ac_status=$?
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); }; } &&
12587 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12589 (eval $ac_try) 2>&5
12590 ac_status=$?
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); }; }; then
12593 :
12594else
12595 echo "$as_me: failed program was:" >&5
12596sed 's/^/| /' conftest.$ac_ext >&5
12597
12598continue
12599fi
ac1cb8d3 12600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12601 cat >conftest.$ac_ext <<_ACEOF
12602/* confdefs.h. */
12603_ACEOF
12604cat confdefs.h >>conftest.$ac_ext
12605cat >>conftest.$ac_ext <<_ACEOF
12606/* end confdefs.h. */
12607$ac_declaration
12608int
12609main ()
12610{
12611exit (42);
12612 ;
12613 return 0;
12614}
12615_ACEOF
12616rm -f conftest.$ac_objext
12617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12618 (eval $ac_compile) 2>conftest.er1
a848cd7e 12619 ac_status=$?
ac1cb8d3
VS
12620 grep -v '^ *+' conftest.er1 >conftest.err
12621 rm -f conftest.er1
12622 cat conftest.err >&5
a848cd7e
SC
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); } &&
fb00f58d
JS
12625 { ac_try='test -z "$ac_cxx_werror_flag"
12626 || test ! -s conftest.err'
ac1cb8d3
VS
12627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12628 (eval $ac_try) 2>&5
12629 ac_status=$?
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); }; } &&
12632 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634 (eval $ac_try) 2>&5
12635 ac_status=$?
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; }; then
12638 break
12639else
12640 echo "$as_me: failed program was:" >&5
12641sed 's/^/| /' conftest.$ac_ext >&5
12642
12643fi
ac1cb8d3 12644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12645done
12646rm -f conftest*
12647if test -n "$ac_declaration"; then
12648 echo '#ifdef __cplusplus' >>confdefs.h
12649 echo $ac_declaration >>confdefs.h
12650 echo '#endif' >>confdefs.h
12651fi
12652
12653ac_ext=cc
12654ac_cpp='$CXXCPP $CPPFLAGS'
12655ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12656ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12657ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12658
6dcfc289 12659 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21
DE
12660echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
12661if test "${wx_cv_cxx_exto+set}" = set; then
12662 echo $ECHO_N "(cached) $ECHO_C" >&6
12663else
12664 cat >conftest.$ac_ext <<_ACEOF
12665/* confdefs.h. */
12666_ACEOF
12667cat confdefs.h >>conftest.$ac_ext
12668cat >>conftest.$ac_ext <<_ACEOF
12669/* end confdefs.h. */
12670
12671int
12672main ()
12673{
12674
12675 ;
12676 return 0;
12677}
12678_ACEOF
12679rm -f conftest.$ac_objext conftest.$ac_ext.o
12680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12681 (eval $ac_compile) 2>&5
12682 ac_status=$?
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; then
12685 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12686 case $ac_file in
12687 conftest.$ac_ext.o)
12688 wx_cv_cxx_exto="-ext o"
12689 ;;
12690 *)
12691 ;;
12692 esac
12693done
12694else
12695 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12696See \`config.log' for more details." >&5
12697echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12698See \`config.log' for more details." >&2;}
12699 { (exit 1); exit 1; }; }
12700
12701fi
12702
12703rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12704
12705fi
12706echo "$as_me:$LINENO: result: $wx_cv_cxx_exto" >&5
12707echo "${ECHO_T}$wx_cv_cxx_exto" >&6
12708if test "x$wx_cv_cxx_exto" '!=' "x"; then
12709 if test "cxx" = "c"; then
12710 CFLAGS="$wx_cv_cxx_exto $CFLAGS"
12711 fi
12712 if test "cxx" = "cxx"; then
12713 CXXFLAGS="$wx_cv_cxx_exto $CXXFLAGS"
12714 fi
12715fi
12716
6dcfc289
DE
12717 if test "x$wx_cv_cxx_exto" '!=' "x"; then
12718 unset ac_cv_prog_cxx_g
12719 ac_test_CXXFLAGS=${CXXFLAGS+set}
480ccd21
DE
12720ac_save_CXXFLAGS=$CXXFLAGS
12721CXXFLAGS="-g"
12722echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12723echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
12724if test "${ac_cv_prog_cxx_g+set}" = set; then
12725 echo $ECHO_N "(cached) $ECHO_C" >&6
12726else
12727 cat >conftest.$ac_ext <<_ACEOF
12728/* confdefs.h. */
12729_ACEOF
12730cat confdefs.h >>conftest.$ac_ext
12731cat >>conftest.$ac_ext <<_ACEOF
12732/* end confdefs.h. */
12733
12734int
12735main ()
12736{
12737
12738 ;
12739 return 0;
12740}
12741_ACEOF
12742rm -f conftest.$ac_objext
12743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12744 (eval $ac_compile) 2>conftest.er1
12745 ac_status=$?
12746 grep -v '^ *+' conftest.er1 >conftest.err
12747 rm -f conftest.er1
12748 cat conftest.err >&5
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); } &&
fb00f58d
JS
12751 { ac_try='test -z "$ac_cxx_werror_flag"
12752 || test ! -s conftest.err'
480ccd21
DE
12753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12754 (eval $ac_try) 2>&5
12755 ac_status=$?
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); }; } &&
12758 { ac_try='test -s conftest.$ac_objext'
12759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12760 (eval $ac_try) 2>&5
12761 ac_status=$?
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); }; }; then
12764 ac_cv_prog_cxx_g=yes
12765else
12766 echo "$as_me: failed program was:" >&5
12767sed 's/^/| /' conftest.$ac_ext >&5
12768
12769ac_cv_prog_cxx_g=no
12770fi
12771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12772fi
12773echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12774echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
12775if test "$ac_test_CXXFLAGS" = set; then
12776 CXXFLAGS=$ac_save_CXXFLAGS
12777elif test $ac_cv_prog_cxx_g = yes; then
12778 if test "$GXX" = yes; then
52ada004 12779 CXXFLAGS="-g -O2"
480ccd21 12780 else
52ada004 12781 CXXFLAGS="-g"
480ccd21
DE
12782 fi
12783else
12784 if test "$GXX" = yes; then
12785 CXXFLAGS="-O2"
12786 else
12787 CXXFLAGS=
12788 fi
12789fi
6dcfc289
DE
12790 fi
12791 ac_ext=cc
95986553
DE
12792ac_cpp='$CXXCPP $CPPFLAGS'
12793ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12794ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12795ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12796
12797echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
12798echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
12799if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
12800 echo $ECHO_N "(cached) $ECHO_C" >&6
12801else
12802 cat >conftest.$ac_ext <<_ACEOF
12803/* confdefs.h. */
12804_ACEOF
12805cat confdefs.h >>conftest.$ac_ext
12806cat >>conftest.$ac_ext <<_ACEOF
12807/* end confdefs.h. */
12808
12809int
12810main ()
12811{
12812#ifndef __MWERKS__
12813 choke me
12814#endif
12815
12816 ;
12817 return 0;
12818}
12819_ACEOF
12820rm -f conftest.$ac_objext
12821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12822 (eval $ac_compile) 2>conftest.er1
12823 ac_status=$?
12824 grep -v '^ *+' conftest.er1 >conftest.err
12825 rm -f conftest.er1
12826 cat conftest.err >&5
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); } &&
fb00f58d
JS
12829 { ac_try='test -z "$ac_cxx_werror_flag"
12830 || test ! -s conftest.err'
95986553
DE
12831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12832 (eval $ac_try) 2>&5
12833 ac_status=$?
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); }; } &&
12836 { ac_try='test -s conftest.$ac_objext'
12837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12838 (eval $ac_try) 2>&5
12839 ac_status=$?
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); }; }; then
12842 bakefile_compiler_mwerks=yes
12843else
12844 echo "$as_me: failed program was:" >&5
12845sed 's/^/| /' conftest.$ac_ext >&5
12846
12847bakefile_compiler_mwerks=no
12848fi
12849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12850 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
12851
12852fi
12853echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
12854echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
12855
0e6fa1d9 12856MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
12857ac_ext=cc
12858ac_cpp='$CXXCPP $CPPFLAGS'
12859ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12860ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12861ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12862
12863
6dcfc289 12864 ac_ext=cc
9273ffba
DE
12865ac_cpp='$CXXCPP $CPPFLAGS'
12866ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12867ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12868ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12869
12870echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
12871echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
12872if test "${wx_cv_cxx_compiler_xlc+set}" = set; then
12873 echo $ECHO_N "(cached) $ECHO_C" >&6
12874else
12875 cat >conftest.$ac_ext <<_ACEOF
12876/* confdefs.h. */
12877_ACEOF
12878cat confdefs.h >>conftest.$ac_ext
12879cat >>conftest.$ac_ext <<_ACEOF
12880/* end confdefs.h. */
12881
12882int
12883main ()
12884{
12885#ifndef __xlC__
12886 choke me
12887#endif
12888
12889 ;
12890 return 0;
12891}
12892_ACEOF
12893rm -f conftest.$ac_objext
12894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12895 (eval $ac_compile) 2>conftest.er1
12896 ac_status=$?
12897 grep -v '^ *+' conftest.er1 >conftest.err
12898 rm -f conftest.er1
12899 cat conftest.err >&5
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); } &&
fb00f58d
JS
12902 { ac_try='test -z "$ac_cxx_werror_flag"
12903 || test ! -s conftest.err'
9273ffba
DE
12904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12905 (eval $ac_try) 2>&5
12906 ac_status=$?
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); }; } &&
12909 { ac_try='test -s conftest.$ac_objext'
12910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12911 (eval $ac_try) 2>&5
12912 ac_status=$?
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; }; then
12915 wx_compiler_xlc=yes
12916else
12917 echo "$as_me: failed program was:" >&5
12918sed 's/^/| /' conftest.$ac_ext >&5
12919
12920wx_compiler_xlc=no
12921fi
12922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12923 wx_cv_cxx_compiler_xlc=$wx_compiler_xlc
12924
12925fi
12926echo "$as_me:$LINENO: result: $wx_cv_cxx_compiler_xlc" >&5
12927echo "${ECHO_T}$wx_cv_cxx_compiler_xlc" >&6
12928
0e6fa1d9 12929XLCXX=`test $wx_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
12930ac_ext=cc
12931ac_cpp='$CXXCPP $CPPFLAGS'
12932ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12933ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12934ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12935
12936
95986553 12937
6dcfc289 12938
a9e5b1f0
MW
12939 ac_ext=cc
12940ac_cpp='$CXXCPP $CPPFLAGS'
12941ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12942ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12943ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12944
12945 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
12946echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
12947if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
12948 echo $ECHO_N "(cached) $ECHO_C" >&6
12949else
12950 cat >conftest.$ac_ext <<_ACEOF
12951/* confdefs.h. */
12952_ACEOF
12953cat confdefs.h >>conftest.$ac_ext
12954cat >>conftest.$ac_ext <<_ACEOF
12955/* end confdefs.h. */
12956
12957int
12958main ()
12959{
12960
12961 #ifndef __SUNPRO_CC
12962 choke me
12963 #endif
12964
12965 ;
12966 return 0;
12967}
12968_ACEOF
12969rm -f conftest.$ac_objext
12970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12971 (eval $ac_compile) 2>conftest.er1
12972 ac_status=$?
12973 grep -v '^ *+' conftest.er1 >conftest.err
12974 rm -f conftest.er1
12975 cat conftest.err >&5
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); } &&
12978 { ac_try='test -z "$ac_cxx_werror_flag"
12979 || test ! -s conftest.err'
12980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981 (eval $ac_try) 2>&5
12982 ac_status=$?
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; } &&
12985 { ac_try='test -s conftest.$ac_objext'
12986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987 (eval $ac_try) 2>&5
12988 ac_status=$?
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; }; then
12991 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
12992else
12993 echo "$as_me: failed program was:" >&5
12994sed 's/^/| /' conftest.$ac_ext >&5
12995
12996bakefile_cv_cxx_compiler___SUNPRO_CC=no
12997
12998fi
12999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13000
13001
13002fi
13003echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
13004echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
13005 ac_ext=cc
13006ac_cpp='$CXXCPP $CPPFLAGS'
13007ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13008ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13009ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13010
13011 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
13012 :; SUNCXX=yes
13013 else
13014 :;
13015 fi
13016
13017
13018
13019
a848cd7e
SC
13020ac_ext=c
13021ac_cpp='$CPP $CPPFLAGS'
13022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13024ac_compiler_gnu=$ac_cv_c_compiler_gnu
13025
13026
a848cd7e
SC
13027if test -n "$ac_tool_prefix"; then
13028 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13029set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13030echo "$as_me:$LINENO: checking for $ac_word" >&5
13031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13032if test "${ac_cv_prog_RANLIB+set}" = set; then
13033 echo $ECHO_N "(cached) $ECHO_C" >&6
13034else
13035 if test -n "$RANLIB"; then
13036 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13037else
13038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13039for as_dir in $PATH
13040do
13041 IFS=$as_save_IFS
13042 test -z "$as_dir" && as_dir=.
13043 for ac_exec_ext in '' $ac_executable_extensions; do
13044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13045 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13047 break 2
13048 fi
13049done
13050done
13051
13052fi
13053fi
13054RANLIB=$ac_cv_prog_RANLIB
13055if test -n "$RANLIB"; then
13056 echo "$as_me:$LINENO: result: $RANLIB" >&5
13057echo "${ECHO_T}$RANLIB" >&6
13058else
13059 echo "$as_me:$LINENO: result: no" >&5
13060echo "${ECHO_T}no" >&6
13061fi
13062
13063fi
13064if test -z "$ac_cv_prog_RANLIB"; then
13065 ac_ct_RANLIB=$RANLIB
13066 # Extract the first word of "ranlib", so it can be a program name with args.
13067set dummy ranlib; ac_word=$2
13068echo "$as_me:$LINENO: checking for $ac_word" >&5
13069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13070if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13071 echo $ECHO_N "(cached) $ECHO_C" >&6
13072else
13073 if test -n "$ac_ct_RANLIB"; then
13074 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13075else
13076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13077for as_dir in $PATH
13078do
13079 IFS=$as_save_IFS
13080 test -z "$as_dir" && as_dir=.
13081 for ac_exec_ext in '' $ac_executable_extensions; do
13082 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13083 ac_cv_prog_ac_ct_RANLIB="ranlib"
13084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13085 break 2
13086 fi
13087done
13088done
13089
13090 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
13091fi
13092fi
13093ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13094if test -n "$ac_ct_RANLIB"; then
13095 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13096echo "${ECHO_T}$ac_ct_RANLIB" >&6
13097else
13098 echo "$as_me:$LINENO: result: no" >&5
13099echo "${ECHO_T}no" >&6
13100fi
13101
13102 RANLIB=$ac_ct_RANLIB
13103else
13104 RANLIB="$ac_cv_prog_RANLIB"
13105fi
13106
13107
13108# Extract the first word of "ar", so it can be a program name with args.
13109set dummy ar; ac_word=$2
13110echo "$as_me:$LINENO: checking for $ac_word" >&5
13111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13112if test "${ac_cv_prog_AR+set}" = set; then
13113 echo $ECHO_N "(cached) $ECHO_C" >&6
13114else
13115 if test -n "$AR"; then
13116 ac_cv_prog_AR="$AR" # Let the user override the test.
13117else
13118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13119for as_dir in $PATH
13120do
13121 IFS=$as_save_IFS
13122 test -z "$as_dir" && as_dir=.
13123 for ac_exec_ext in '' $ac_executable_extensions; do
13124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13125 ac_cv_prog_AR="ar"
13126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13127 break 2
13128 fi
13129done
13130done
13131
13132fi
13133fi
13134AR=$ac_cv_prog_AR
13135if test -n "$AR"; then
13136 echo "$as_me:$LINENO: result: $AR" >&5
13137echo "${ECHO_T}$AR" >&6
13138else
13139 echo "$as_me:$LINENO: result: no" >&5
13140echo "${ECHO_T}no" >&6
13141fi
13142
13143if test "x$AR" = "x" ; then
77ffb593
JS
13144 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
13145echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
13146 { (exit 1); exit 1; }; }
13147fi
13148
13149# Find a good install program. We prefer a C program (faster),
13150# so one script is as good as another. But avoid the broken or
13151# incompatible versions:
13152# SysV /etc/install, /usr/sbin/install
13153# SunOS /usr/etc/install
13154# IRIX /sbin/install
13155# AIX /bin/install
13156# AmigaOS /C/install, which installs bootblocks on floppy discs
13157# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13158# AFS /usr/afsws/bin/install, which mishandles nonexistent args
13159# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 13160# OS/2's system install, which has a completely different semantic
a848cd7e
SC
13161# ./install, which can be erroneously created by make from ./install.sh.
13162echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
13163echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
13164if test -z "$INSTALL"; then
13165if test "${ac_cv_path_install+set}" = set; then
13166 echo $ECHO_N "(cached) $ECHO_C" >&6
13167else
13168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13169for as_dir in $PATH
13170do
13171 IFS=$as_save_IFS
13172 test -z "$as_dir" && as_dir=.
13173 # Account for people who put trailing slashes in PATH elements.
13174case $as_dir/ in
13175 ./ | .// | /cC/* | \
13176 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 13177 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
13178 /usr/ucb/* ) ;;
13179 *)
13180 # OSF1 and SCO ODT 3.0 have their own names for install.
13181 # Don't use installbsd from OSF since it installs stuff as root
13182 # by default.
13183 for ac_prog in ginstall scoinst install; do
13184 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
13185 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13186 if test $ac_prog = install &&
13187 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13188 # AIX install. It has an incompatible calling convention.
13189 :
13190 elif test $ac_prog = install &&
13191 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13192 # program-specific install script used by HP pwplus--don't use.
13193 :
13194 else
13195 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13196 break 3
13197 fi
13198 fi
a848cd7e
SC
13199 done
13200 done
13201 ;;
13202esac
13203done
13204
13205
13206fi
13207 if test "${ac_cv_path_install+set}" = set; then
13208 INSTALL=$ac_cv_path_install
13209 else
13210 # As a last resort, use the slow shell script. We don't cache a
13211 # path for INSTALL within a source directory, because that will
13212 # break other packages using the cache if that directory is
13213 # removed, or if the path is relative.
13214 INSTALL=$ac_install_sh
13215 fi
13216fi
13217echo "$as_me:$LINENO: result: $INSTALL" >&5
13218echo "${ECHO_T}$INSTALL" >&6
13219
13220# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13221# It thinks the first close brace ends the variable substitution.
13222test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13223
13224test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13225
13226test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13227
13228
13229case ${INSTALL} in
13230 /* ) # Absolute
13231 ;;
13232 ?:* ) # Drive letter, considered as absolute.
13233 ;;
13234 *)
13235 INSTALL=`pwd`/${INSTALL} ;;
13236esac
13237
a848cd7e
SC
13238
13239case "${host}" in
13240
13241 powerpc-*-darwin* )
13242 INSTALL_PROGRAM="cp -fp"
13243 INSTALL_DATA="cp -fp"
13244 ;;
13245 *)
13246 ;;
13247esac
13248
13249# Extract the first word of "strip", so it can be a program name with args.
13250set dummy strip; ac_word=$2
13251echo "$as_me:$LINENO: checking for $ac_word" >&5
13252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13253if test "${ac_cv_prog_STRIP+set}" = set; then
13254 echo $ECHO_N "(cached) $ECHO_C" >&6
13255else
13256 if test -n "$STRIP"; then
13257 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13258else
13259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13260for as_dir in $PATH
13261do
13262 IFS=$as_save_IFS
13263 test -z "$as_dir" && as_dir=.
13264 for ac_exec_ext in '' $ac_executable_extensions; do
13265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13266 ac_cv_prog_STRIP="strip"
13267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13268 break 2
13269 fi
13270done
13271done
13272
13273 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
13274fi
13275fi
13276STRIP=$ac_cv_prog_STRIP
13277if test -n "$STRIP"; then
13278 echo "$as_me:$LINENO: result: $STRIP" >&5
13279echo "${ECHO_T}$STRIP" >&6
13280else
13281 echo "$as_me:$LINENO: result: no" >&5
13282echo "${ECHO_T}no" >&6
13283fi
13284
13285
13286echo "$as_me:$LINENO: checking if make is GNU make" >&5
13287echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
13288if test "${wx_cv_prog_makeisgnu+set}" = set; then
13289 echo $ECHO_N "(cached) $ECHO_C" >&6
13290else
13291
13292 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
13293 egrep -s GNU > /dev/null); then
13294 wx_cv_prog_makeisgnu="yes"
13295 else
13296 wx_cv_prog_makeisgnu="no"
13297 fi
13298
13299fi
13300echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
13301echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
13302
13303if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
13304 IF_GNU_MAKE=""
13305else
13306 IF_GNU_MAKE="#"
13307fi
13308
13309
13310
13311if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
13312echo "$as_me:$LINENO: checking if make supports VPATH" >&5
13313echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
13314if test "${wx_cv_prog_makevpath+set}" = set; then
13315 echo $ECHO_N "(cached) $ECHO_C" >&6
13316else
13317
13318cat - << EOF > confMake
13319check : file
13320 cp \$? \$@
13321 cp \$? final_file
13322EOF
13323
13324if test ! -d sub ; then
13325 mkdir sub
13326fi
13327echo dummy > sub/file
13328${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
13329RESULT=$?
13330rm -f sub/file check final_file confMake
13331rmdir sub
13332if test "$RESULT" = 0; then
13333 wx_cv_prog_makevpath="yes"
13334else
13335 wx_cv_prog_makevpath="no"
13336fi
13337
13338fi
13339echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
13340echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
13341
13342if test "x$wx_cv_prog_makevpath" != "xyes"; then
13343{ { echo "$as_me:$LINENO: error:
13344You need a make-utility that is able to use the variable
13345VPATH correctly.
13346If your version of make does not support VPATH correctly,
13347please install GNU-make (possibly as gmake), and start
13348configure with the following command:
13349export MAKE=gmake; ./configure for sh-type shells
13350setenv MAKE gmake; ./configure for csh-type shells
13351Also please do remember to use gmake in this case every time
13352you are trying to compile.
13353" >&5
13354echo "$as_me: error:
13355You need a make-utility that is able to use the variable
13356VPATH correctly.
13357If your version of make does not support VPATH correctly,
13358please install GNU-make (possibly as gmake), and start
13359configure with the following command:
13360export MAKE=gmake; ./configure for sh-type shells
13361setenv MAKE gmake; ./configure for csh-type shells
13362Also please do remember to use gmake in this case every time
13363you are trying to compile.
13364" >&2;}
13365 { (exit 1); exit 1; }; }
13366fi fi
13367echo "$as_me:$LINENO: checking whether ln -s works" >&5
13368echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13369LN_S=$as_ln_s
13370if test "$LN_S" = "ln -s"; then
13371 echo "$as_me:$LINENO: result: yes" >&5
13372echo "${ECHO_T}yes" >&6
13373else
13374 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13375echo "${ECHO_T}no, using $LN_S" >&6
13376fi
13377
13378
13379
9273ffba
DE
13380if test "x$XLCXX" = "xyes"; then
13381 CXXFLAGS="$CXXFLAGS -qunique"
13382fi
13383
13384
4d7ec9f1
DE
13385case "${host}" in
13386 powerpc-*-darwin* )
13387 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
13388echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
13389 cat >conftest.$ac_ext <<_ACEOF
13390/* confdefs.h. */
13391_ACEOF
13392cat confdefs.h >>conftest.$ac_ext
13393cat >>conftest.$ac_ext <<_ACEOF
13394/* end confdefs.h. */
13395
13396int
13397main ()
13398{
13399#ifndef __POWERPC__
13400 choke me for lack of PowerPC
13401#endif
13402
13403 ;
13404 return 0;
13405}
13406_ACEOF
13407rm -f conftest.$ac_objext
13408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13409 (eval $ac_compile) 2>conftest.er1
13410 ac_status=$?
13411 grep -v '^ *+' conftest.er1 >conftest.err
13412 rm -f conftest.er1
13413 cat conftest.err >&5
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); } &&
fb00f58d
JS
13416 { ac_try='test -z "$ac_c_werror_flag"
13417 || test ! -s conftest.err'
4d7ec9f1
DE
13418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13419 (eval $ac_try) 2>&5
13420 ac_status=$?
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); }; } &&
13423 { ac_try='test -s conftest.$ac_objext'
13424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13425 (eval $ac_try) 2>&5
13426 ac_status=$?
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); }; }; then
13429 echo "$as_me:$LINENO: result: yes" >&5
13430echo "${ECHO_T}yes" >&6
13431else
13432 echo "$as_me: failed program was:" >&5
13433sed 's/^/| /' conftest.$ac_ext >&5
13434
13435echo "$as_me:$LINENO: result: no" >&5
13436echo "${ECHO_T}no" >&6
13437 cat >>confdefs.h <<\_ACEOF
13438#define __POWERPC__ 1
13439_ACEOF
13440
13441
13442fi
13443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13444 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
13445echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
13446 cat >conftest.$ac_ext <<_ACEOF
13447/* confdefs.h. */
13448_ACEOF
13449cat confdefs.h >>conftest.$ac_ext
13450cat >>conftest.$ac_ext <<_ACEOF
13451/* end confdefs.h. */
13452#include <CoreFoundation/CFBase.h>
13453
13454int
13455main ()
13456{
13457
13458 ;
13459 return 0;
13460}
13461_ACEOF
13462rm -f conftest.$ac_objext
13463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13464 (eval $ac_compile) 2>conftest.er1
13465 ac_status=$?
13466 grep -v '^ *+' conftest.er1 >conftest.err
13467 rm -f conftest.er1
13468 cat conftest.err >&5
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); } &&
fb00f58d
JS
13471 { ac_try='test -z "$ac_c_werror_flag"
13472 || test ! -s conftest.err'
4d7ec9f1
DE
13473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13474 (eval $ac_try) 2>&5
13475 ac_status=$?
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); }; } &&
13478 { ac_try='test -s conftest.$ac_objext'
13479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13480 (eval $ac_try) 2>&5
13481 ac_status=$?
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); }; }; then
13484 echo "$as_me:$LINENO: result: yes" >&5
13485echo "${ECHO_T}yes" >&6
13486else
13487 echo "$as_me: failed program was:" >&5
13488sed 's/^/| /' conftest.$ac_ext >&5
13489
13490echo "$as_me:$LINENO: result: no" >&5
13491echo "${ECHO_T}no" >&6
13492 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
13493echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
13494 cat >conftest.$ac_ext <<_ACEOF
13495/* confdefs.h. */
13496_ACEOF
13497cat confdefs.h >>conftest.$ac_ext
13498cat >>conftest.$ac_ext <<_ACEOF
13499/* end confdefs.h. */
13500#define __CF_USE_FRAMEWORK_INCLUDES__
13501#include <CoreFoundation/CFBase.h>
13502
13503int
13504main ()
13505{
13506
13507 ;
13508 return 0;
13509}
13510_ACEOF
13511rm -f conftest.$ac_objext
13512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13513 (eval $ac_compile) 2>conftest.er1
13514 ac_status=$?
13515 grep -v '^ *+' conftest.er1 >conftest.err
13516 rm -f conftest.er1
13517 cat conftest.err >&5
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); } &&
fb00f58d
JS
13520 { ac_try='test -z "$ac_c_werror_flag"
13521 || test ! -s conftest.err'
4d7ec9f1
DE
13522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13523 (eval $ac_try) 2>&5
13524 ac_status=$?
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }; } &&
13527 { ac_try='test -s conftest.$ac_objext'
13528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13529 (eval $ac_try) 2>&5
13530 ac_status=$?
13531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532 (exit $ac_status); }; }; then
13533 echo "$as_me:$LINENO: result: yes" >&5
13534echo "${ECHO_T}yes" >&6
13535 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
13536else
13537 echo "$as_me: failed program was:" >&5
13538sed 's/^/| /' conftest.$ac_ext >&5
13539
13540{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
13541See \`config.log' for more details." >&5
13542echo "$as_me: error: no. CoreFoundation not available.
13543See \`config.log' for more details." >&2;}
13544 { (exit 1); exit 1; }; }
13545
13546fi
13547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13548
13549
13550fi
13551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13552 ;;
13553esac
13554
a848cd7e
SC
13555case "${host}" in
13556 *-pc-os2_emx | *-pc-os2-emx )
13557 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
13558 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
13559echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
13560if test "${ac_cv_lib_cExt_drand48+set}" = set; then
13561 echo $ECHO_N "(cached) $ECHO_C" >&6
13562else
13563 ac_check_lib_save_LIBS=$LIBS
13564LIBS="-lcExt $LIBS"
13565cat >conftest.$ac_ext <<_ACEOF
13566/* confdefs.h. */
13567_ACEOF
13568cat confdefs.h >>conftest.$ac_ext
13569cat >>conftest.$ac_ext <<_ACEOF
13570/* end confdefs.h. */
13571
13572/* Override any gcc2 internal prototype to avoid an error. */
13573#ifdef __cplusplus
13574extern "C"
13575#endif
13576/* We use char because int might match the return type of a gcc2
13577 builtin and then its argument prototype would still apply. */
13578char drand48 ();
13579int
13580main ()
13581{
13582drand48 ();
13583 ;
13584 return 0;
13585}
13586_ACEOF
13587rm -f conftest.$ac_objext conftest$ac_exeext
13588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13589 (eval $ac_link) 2>conftest.er1
a848cd7e 13590 ac_status=$?
ac1cb8d3
VS
13591 grep -v '^ *+' conftest.er1 >conftest.err
13592 rm -f conftest.er1
13593 cat conftest.err >&5
a848cd7e
SC
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); } &&
fb00f58d
JS
13596 { ac_try='test -z "$ac_c_werror_flag"
13597 || test ! -s conftest.err'
ac1cb8d3
VS
13598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13599 (eval $ac_try) 2>&5
13600 ac_status=$?
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); }; } &&
13603 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13605 (eval $ac_try) 2>&5
13606 ac_status=$?
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); }; }; then
13609 ac_cv_lib_cExt_drand48=yes
13610else
13611 echo "$as_me: failed program was:" >&5
13612sed 's/^/| /' conftest.$ac_ext >&5
13613
13614ac_cv_lib_cExt_drand48=no
13615fi
ac1cb8d3
VS
13616rm -f conftest.err conftest.$ac_objext \
13617 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13618LIBS=$ac_check_lib_save_LIBS
13619fi
13620echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
13621echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
13622if test $ac_cv_lib_cExt_drand48 = yes; then
13623 LIBS="$LIBS -lcExt"
13624fi
13625
13626 else
13627 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
13628 fi
69120ee4
VZ
13629 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
13630echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
13631if test "${wx_cv_gccversion+set}" = set; then
13632 echo $ECHO_N "(cached) $ECHO_C" >&6
13633else
13634
391a765e
VS
13635 if test "$cross_compiling" = yes; then
13636 wx_cv_gccversion="EMX2"
13637
13638else
13639 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
13640/* confdefs.h. */
13641_ACEOF
13642cat confdefs.h >>conftest.$ac_ext
13643cat >>conftest.$ac_ext <<_ACEOF
13644/* end confdefs.h. */
13645
391a765e 13646 #include <stdio.h>
a848cd7e 13647
391a765e
VS
13648 int main()
13649 {
13650 FILE *f=fopen("conftestval", "w");
13651 if (!f) exit(1);
13652 fprintf(f,
a848cd7e 13653 #if (__GNUC__ < 3)
391a765e
VS
13654 "EMX2"
13655 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
13656 "EMX3"
13657 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
13658 "Innotek5"
13659 #else
13660 "Innotek6"
a848cd7e 13661 #endif
391a765e
VS
13662 );
13663 exit(0);
13664 }
a848cd7e 13665
a848cd7e 13666_ACEOF
391a765e
VS
13667rm -f conftest$ac_exeext
13668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13669 (eval $ac_link) 2>&5
ac1cb8d3
VS
13670 ac_status=$?
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 13672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
13673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13674 (eval $ac_try) 2>&5
13675 ac_status=$?
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); }; }; then
391a765e 13678 wx_cv_gccversion=`cat conftestval`
a848cd7e 13679else
391a765e
VS
13680 echo "$as_me: program exited with status $ac_status" >&5
13681echo "$as_me: failed program was:" >&5
a848cd7e
SC
13682sed 's/^/| /' conftest.$ac_ext >&5
13683
391a765e
VS
13684( exit $ac_status )
13685wx_cv_gccversion="EMX2"
a848cd7e 13686fi
391a765e 13687rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 13688fi
a848cd7e
SC
13689
13690fi
13691echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
13692echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 13693 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
13694 LIBS="$LIBS -lstdcpp"
13695 LDFLAGS="$LDFLAGS -Zsysv-signals"
13696 else
391a765e 13697 if test "$wx_cv_gccversion" = "EMX3"; then
a848cd7e
SC
13698 LIBS="$LIBS -lstdcxx"
13699 LDFLAGS="$LDFLAGS -Zsysv-signals"
13700 else
13701 LIBS="$LIBS -lstdc++"
13702 fi
13703 fi
94acd38e
DE
13704 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
13705 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
13706echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
13707 wxUSE_OMF=yes
2da0c077 13708 enable_omf=yes
a848cd7e
SC
13709 fi
13710 ;;
13711 *)
13712
13713
13714
13715 ac_ext=cc
13716ac_cpp='$CXXCPP $CPPFLAGS'
13717ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13718ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13719ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13720
13721
95986553 13722 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
13723echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
13724if test "${ac_cv_string_strcasecmp+set}" = set; then
13725 echo $ECHO_N "(cached) $ECHO_C" >&6
13726else
13727
13728 cat >conftest.$ac_ext <<_ACEOF
13729/* confdefs.h. */
13730_ACEOF
13731cat confdefs.h >>conftest.$ac_ext
13732cat >>conftest.$ac_ext <<_ACEOF
13733/* end confdefs.h. */
13734
13735 #include <string.h>
13736
13737int
13738main ()
13739{
13740
13741 strcasecmp("foo", "bar");
13742
13743 ;
13744 return 0;
13745}
13746_ACEOF
13747rm -f conftest.$ac_objext conftest$ac_exeext
13748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13749 (eval $ac_link) 2>conftest.er1
a848cd7e 13750 ac_status=$?
ac1cb8d3
VS
13751 grep -v '^ *+' conftest.er1 >conftest.err
13752 rm -f conftest.er1
13753 cat conftest.err >&5
a848cd7e
SC
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); } &&
fb00f58d
JS
13756 { ac_try='test -z "$ac_cxx_werror_flag"
13757 || test ! -s conftest.err'
ac1cb8d3
VS
13758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13759 (eval $ac_try) 2>&5
13760 ac_status=$?
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); }; } &&
13763 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13765 (eval $ac_try) 2>&5
13766 ac_status=$?
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); }; }; then
13769 ac_cv_string_strcasecmp=yes
13770else
13771 echo "$as_me: failed program was:" >&5
13772sed 's/^/| /' conftest.$ac_ext >&5
13773
13774ac_cv_string_strcasecmp=no
13775
13776fi
ac1cb8d3
VS
13777rm -f conftest.err conftest.$ac_objext \
13778 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13779
13780fi
13781echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
13782echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
13783
13784 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
13785 cat >>confdefs.h <<\_ACEOF
13786#define HAVE_STRCASECMP_IN_STRING_H 1
13787_ACEOF
13788
13789 else
13790 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
13791echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
13792if test "${ac_cv_strings_strcasecmp+set}" = set; then
13793 echo $ECHO_N "(cached) $ECHO_C" >&6
13794else
13795
13796 cat >conftest.$ac_ext <<_ACEOF
13797/* confdefs.h. */
13798_ACEOF
13799cat confdefs.h >>conftest.$ac_ext
13800cat >>conftest.$ac_ext <<_ACEOF
13801/* end confdefs.h. */
13802
13803 #include <strings.h>
13804
13805int
13806main ()
13807{
13808
13809 strcasecmp("foo", "bar");
13810
13811 ;
13812 return 0;
13813}
13814_ACEOF
13815rm -f conftest.$ac_objext conftest$ac_exeext
13816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13817 (eval $ac_link) 2>conftest.er1
a848cd7e 13818 ac_status=$?
ac1cb8d3
VS
13819 grep -v '^ *+' conftest.er1 >conftest.err
13820 rm -f conftest.er1
13821 cat conftest.err >&5
a848cd7e
SC
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); } &&
fb00f58d
JS
13824 { ac_try='test -z "$ac_cxx_werror_flag"
13825 || test ! -s conftest.err'
ac1cb8d3
VS
13826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13827 (eval $ac_try) 2>&5
13828 ac_status=$?
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); }; } &&
13831 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13833 (eval $ac_try) 2>&5
13834 ac_status=$?
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); }; }; then
13837 ac_cv_strings_strcasecmp=yes
13838else
13839 echo "$as_me: failed program was:" >&5
13840sed 's/^/| /' conftest.$ac_ext >&5
13841
13842ac_cv_strings_strcasecmp=no
13843
13844fi
ac1cb8d3
VS
13845rm -f conftest.err conftest.$ac_objext \
13846 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13847
13848fi
13849echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
13850echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
13851
0c3c69fc 13852 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
13853 cat >>confdefs.h <<\_ACEOF
13854#define HAVE_STRCASECMP_IN_STRINGS_H 1
13855_ACEOF
13856
13857 else
13858 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
13859echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
13860 { (exit 1); exit 1; }; }
13861 fi
13862 fi
13863
13864 ac_ext=c
13865ac_cpp='$CPP $CPPFLAGS'
13866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13868ac_compiler_gnu=$ac_cv_c_compiler_gnu
13869
13870 ;;
13871esac
13872
13873
13874echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13875echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13876if test "${ac_cv_header_stdc+set}" = set; then
13877 echo $ECHO_N "(cached) $ECHO_C" >&6
13878else
13879 cat >conftest.$ac_ext <<_ACEOF
13880/* confdefs.h. */
13881_ACEOF
13882cat confdefs.h >>conftest.$ac_ext
13883cat >>conftest.$ac_ext <<_ACEOF
13884/* end confdefs.h. */
13885#include <stdlib.h>
13886#include <stdarg.h>
13887#include <string.h>
13888#include <float.h>
13889
13890int
13891main ()
13892{
13893
13894 ;
13895 return 0;
13896}
13897_ACEOF
13898rm -f conftest.$ac_objext
13899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13900 (eval $ac_compile) 2>conftest.er1
a848cd7e 13901 ac_status=$?
ac1cb8d3
VS
13902 grep -v '^ *+' conftest.er1 >conftest.err
13903 rm -f conftest.er1
13904 cat conftest.err >&5
a848cd7e
SC
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); } &&
fb00f58d
JS
13907 { ac_try='test -z "$ac_c_werror_flag"
13908 || test ! -s conftest.err'
ac1cb8d3
VS
13909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13910 (eval $ac_try) 2>&5
13911 ac_status=$?
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); }; } &&
13914 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13916 (eval $ac_try) 2>&5
13917 ac_status=$?
13918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); }; }; then
13920 ac_cv_header_stdc=yes
13921else
13922 echo "$as_me: failed program was:" >&5
13923sed 's/^/| /' conftest.$ac_ext >&5
13924
13925ac_cv_header_stdc=no
13926fi
ac1cb8d3 13927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13928
13929if test $ac_cv_header_stdc = yes; then
13930 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13931 cat >conftest.$ac_ext <<_ACEOF
13932/* confdefs.h. */
13933_ACEOF
13934cat confdefs.h >>conftest.$ac_ext
13935cat >>conftest.$ac_ext <<_ACEOF
13936/* end confdefs.h. */
13937#include <string.h>
13938
13939_ACEOF
13940if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13941 $EGREP "memchr" >/dev/null 2>&1; then
13942 :
13943else
13944 ac_cv_header_stdc=no
13945fi
13946rm -f conftest*
13947
13948fi
13949
13950if test $ac_cv_header_stdc = yes; then
13951 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13952 cat >conftest.$ac_ext <<_ACEOF
13953/* confdefs.h. */
13954_ACEOF
13955cat confdefs.h >>conftest.$ac_ext
13956cat >>conftest.$ac_ext <<_ACEOF
13957/* end confdefs.h. */
13958#include <stdlib.h>
13959
13960_ACEOF
13961if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13962 $EGREP "free" >/dev/null 2>&1; then
13963 :
13964else
13965 ac_cv_header_stdc=no
13966fi
13967rm -f conftest*
13968
13969fi
13970
13971if test $ac_cv_header_stdc = yes; then
13972 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13973 if test "$cross_compiling" = yes; then
13974 :
13975else
13976 cat >conftest.$ac_ext <<_ACEOF
13977/* confdefs.h. */
13978_ACEOF
13979cat confdefs.h >>conftest.$ac_ext
13980cat >>conftest.$ac_ext <<_ACEOF
13981/* end confdefs.h. */
13982#include <ctype.h>
13983#if ((' ' & 0x0FF) == 0x020)
13984# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13985# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13986#else
13987# define ISLOWER(c) \
ac1cb8d3
VS
13988 (('a' <= (c) && (c) <= 'i') \
13989 || ('j' <= (c) && (c) <= 'r') \
13990 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
13991# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13992#endif
13993
13994#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13995int
13996main ()
13997{
13998 int i;
13999 for (i = 0; i < 256; i++)
14000 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 14001 || toupper (i) != TOUPPER (i))
a848cd7e
SC
14002 exit(2);
14003 exit (0);
14004}
14005_ACEOF
14006rm -f conftest$ac_exeext
14007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14008 (eval $ac_link) 2>&5
14009 ac_status=$?
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14013 (eval $ac_try) 2>&5
14014 ac_status=$?
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); }; }; then
14017 :
14018else
14019 echo "$as_me: program exited with status $ac_status" >&5
14020echo "$as_me: failed program was:" >&5
14021sed 's/^/| /' conftest.$ac_ext >&5
14022
14023( exit $ac_status )
14024ac_cv_header_stdc=no
14025fi
ac1cb8d3 14026rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14027fi
14028fi
14029fi
14030echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14031echo "${ECHO_T}$ac_cv_header_stdc" >&6
14032if test $ac_cv_header_stdc = yes; then
14033
14034cat >>confdefs.h <<\_ACEOF
14035#define STDC_HEADERS 1
14036_ACEOF
14037
14038fi
14039
14040# On IRIX 5.3, sys/types and inttypes.h are conflicting.
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 14051 inttypes.h stdint.h unistd.h
a848cd7e
SC
14052do
14053as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14054echo "$as_me:$LINENO: checking for $ac_header" >&5
14055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14056if eval "test \"\${$as_ac_Header+set}\" = set"; then
14057 echo $ECHO_N "(cached) $ECHO_C" >&6
14058else
14059 cat >conftest.$ac_ext <<_ACEOF
14060/* confdefs.h. */
14061_ACEOF
14062cat confdefs.h >>conftest.$ac_ext
14063cat >>conftest.$ac_ext <<_ACEOF
14064/* end confdefs.h. */
14065$ac_includes_default
14066
14067#include <$ac_header>
14068_ACEOF
14069rm -f conftest.$ac_objext
14070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14071 (eval $ac_compile) 2>conftest.er1
a848cd7e 14072 ac_status=$?
ac1cb8d3
VS
14073 grep -v '^ *+' conftest.er1 >conftest.err
14074 rm -f conftest.er1
14075 cat conftest.err >&5
a848cd7e
SC
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); } &&
fb00f58d
JS
14078 { ac_try='test -z "$ac_c_werror_flag"
14079 || test ! -s conftest.err'
ac1cb8d3
VS
14080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14081 (eval $ac_try) 2>&5
14082 ac_status=$?
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); }; } &&
14085 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14087 (eval $ac_try) 2>&5
14088 ac_status=$?
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); }; }; then
14091 eval "$as_ac_Header=yes"
14092else
14093 echo "$as_me: failed program was:" >&5
14094sed 's/^/| /' conftest.$ac_ext >&5
14095
14096eval "$as_ac_Header=no"
14097fi
ac1cb8d3 14098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14099fi
14100echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14101echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14102if test `eval echo '${'$as_ac_Header'}'` = yes; then
14103 cat >>confdefs.h <<_ACEOF
14104#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14105_ACEOF
14106
14107fi
14108
14109done
14110
14111
14112
14113for ac_header in stdlib.h
14114do
14115as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14116if eval "test \"\${$as_ac_Header+set}\" = set"; then
14117 echo "$as_me:$LINENO: checking for $ac_header" >&5
14118echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14119if eval "test \"\${$as_ac_Header+set}\" = set"; then
14120 echo $ECHO_N "(cached) $ECHO_C" >&6
14121fi
14122echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14123echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14124else
14125 # Is the header compilable?
14126echo "$as_me:$LINENO: checking $ac_header usability" >&5
14127echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14128cat >conftest.$ac_ext <<_ACEOF
14129/* confdefs.h. */
14130_ACEOF
14131cat confdefs.h >>conftest.$ac_ext
14132cat >>conftest.$ac_ext <<_ACEOF
14133/* end confdefs.h. */
14134$ac_includes_default
14135#include <$ac_header>
14136_ACEOF
14137rm -f conftest.$ac_objext
14138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14139 (eval $ac_compile) 2>conftest.er1
a848cd7e 14140 ac_status=$?
ac1cb8d3
VS
14141 grep -v '^ *+' conftest.er1 >conftest.err
14142 rm -f conftest.er1
14143 cat conftest.err >&5
a848cd7e
SC
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); } &&
fb00f58d
JS
14146 { ac_try='test -z "$ac_c_werror_flag"
14147 || test ! -s conftest.err'
ac1cb8d3
VS
14148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14149 (eval $ac_try) 2>&5
14150 ac_status=$?
14151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); }; } &&
14153 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14155 (eval $ac_try) 2>&5
14156 ac_status=$?
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); }; }; then
14159 ac_header_compiler=yes
14160else
14161 echo "$as_me: failed program was:" >&5
14162sed 's/^/| /' conftest.$ac_ext >&5
14163
14164ac_header_compiler=no
14165fi
ac1cb8d3 14166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14167echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14168echo "${ECHO_T}$ac_header_compiler" >&6
14169
14170# Is the header present?
14171echo "$as_me:$LINENO: checking $ac_header presence" >&5
14172echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14173cat >conftest.$ac_ext <<_ACEOF
14174/* confdefs.h. */
14175_ACEOF
14176cat confdefs.h >>conftest.$ac_ext
14177cat >>conftest.$ac_ext <<_ACEOF
14178/* end confdefs.h. */
14179#include <$ac_header>
14180_ACEOF
14181if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14183 ac_status=$?
14184 grep -v '^ *+' conftest.er1 >conftest.err
14185 rm -f conftest.er1
14186 cat conftest.err >&5
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); } >/dev/null; then
14189 if test -s conftest.err; then
14190 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14191 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14192 else
14193 ac_cpp_err=
14194 fi
14195else
14196 ac_cpp_err=yes
14197fi
14198if test -z "$ac_cpp_err"; then
14199 ac_header_preproc=yes
14200else
14201 echo "$as_me: failed program was:" >&5
14202sed 's/^/| /' conftest.$ac_ext >&5
14203
14204 ac_header_preproc=no
14205fi
14206rm -f conftest.err conftest.$ac_ext
14207echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14208echo "${ECHO_T}$ac_header_preproc" >&6
14209
14210# So? What about this header?
ac1cb8d3
VS
14211case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14212 yes:no: )
a848cd7e
SC
14213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14214echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14216echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14217 ac_header_preproc=yes
a848cd7e 14218 ;;
ac1cb8d3 14219 no:yes:* )
a848cd7e
SC
14220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14221echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14223echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14225echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14227echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14229echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14231echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14232 (
14233 cat <<\_ASBOX
ac1cb8d3
VS
14234## ----------------------------------------- ##
14235## Report this to wx-dev@lists.wxwidgets.org ##
14236## ----------------------------------------- ##
a848cd7e
SC
14237_ASBOX
14238 ) |
14239 sed "s/^/$as_me: WARNING: /" >&2
14240 ;;
14241esac
14242echo "$as_me:$LINENO: checking for $ac_header" >&5
14243echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14244if eval "test \"\${$as_ac_Header+set}\" = set"; then
14245 echo $ECHO_N "(cached) $ECHO_C" >&6
14246else
ac1cb8d3 14247 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14248fi
14249echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14250echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14251
14252fi
14253if test `eval echo '${'$as_ac_Header'}'` = yes; then
14254 cat >>confdefs.h <<_ACEOF
14255#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14256_ACEOF
14257
14258fi
14259
14260done
14261
14262
14263for ac_header in malloc.h
14264do
14265as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14266if eval "test \"\${$as_ac_Header+set}\" = set"; then
14267 echo "$as_me:$LINENO: checking for $ac_header" >&5
14268echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14269if eval "test \"\${$as_ac_Header+set}\" = set"; then
14270 echo $ECHO_N "(cached) $ECHO_C" >&6
14271fi
14272echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14273echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14274else
14275 # Is the header compilable?
14276echo "$as_me:$LINENO: checking $ac_header usability" >&5
14277echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14278cat >conftest.$ac_ext <<_ACEOF
14279/* confdefs.h. */
14280_ACEOF
14281cat confdefs.h >>conftest.$ac_ext
14282cat >>conftest.$ac_ext <<_ACEOF
14283/* end confdefs.h. */
14284$ac_includes_default
14285#include <$ac_header>
14286_ACEOF
14287rm -f conftest.$ac_objext
14288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14289 (eval $ac_compile) 2>conftest.er1
a848cd7e 14290 ac_status=$?
ac1cb8d3
VS
14291 grep -v '^ *+' conftest.er1 >conftest.err
14292 rm -f conftest.er1
14293 cat conftest.err >&5
a848cd7e
SC
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); } &&
fb00f58d
JS
14296 { ac_try='test -z "$ac_c_werror_flag"
14297 || test ! -s conftest.err'
ac1cb8d3
VS
14298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14299 (eval $ac_try) 2>&5
14300 ac_status=$?
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); }; } &&
14303 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14305 (eval $ac_try) 2>&5
14306 ac_status=$?
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); }; }; then
14309 ac_header_compiler=yes
14310else
14311 echo "$as_me: failed program was:" >&5
14312sed 's/^/| /' conftest.$ac_ext >&5
14313
14314ac_header_compiler=no
14315fi
ac1cb8d3 14316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14317echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14318echo "${ECHO_T}$ac_header_compiler" >&6
14319
14320# Is the header present?
14321echo "$as_me:$LINENO: checking $ac_header presence" >&5
14322echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14323cat >conftest.$ac_ext <<_ACEOF
14324/* confdefs.h. */
14325_ACEOF
14326cat confdefs.h >>conftest.$ac_ext
14327cat >>conftest.$ac_ext <<_ACEOF
14328/* end confdefs.h. */
14329#include <$ac_header>
14330_ACEOF
14331if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14332 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14333 ac_status=$?
14334 grep -v '^ *+' conftest.er1 >conftest.err
14335 rm -f conftest.er1
14336 cat conftest.err >&5
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); } >/dev/null; then
14339 if test -s conftest.err; then
14340 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14341 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14342 else
14343 ac_cpp_err=
14344 fi
14345else
14346 ac_cpp_err=yes
14347fi
14348if test -z "$ac_cpp_err"; then
14349 ac_header_preproc=yes
14350else
14351 echo "$as_me: failed program was:" >&5
14352sed 's/^/| /' conftest.$ac_ext >&5
14353
14354 ac_header_preproc=no
14355fi
14356rm -f conftest.err conftest.$ac_ext
14357echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14358echo "${ECHO_T}$ac_header_preproc" >&6
14359
14360# So? What about this header?
ac1cb8d3
VS
14361case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14362 yes:no: )
a848cd7e
SC
14363 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14364echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14366echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14367 ac_header_preproc=yes
a848cd7e 14368 ;;
ac1cb8d3 14369 no:yes:* )
a848cd7e
SC
14370 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14371echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14372 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14373echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14374 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14375echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14376 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14377echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14379echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14380 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14381echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14382 (
14383 cat <<\_ASBOX
ac1cb8d3
VS
14384## ----------------------------------------- ##
14385## Report this to wx-dev@lists.wxwidgets.org ##
14386## ----------------------------------------- ##
a848cd7e
SC
14387_ASBOX
14388 ) |
14389 sed "s/^/$as_me: WARNING: /" >&2
14390 ;;
14391esac
14392echo "$as_me:$LINENO: checking for $ac_header" >&5
14393echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14394if eval "test \"\${$as_ac_Header+set}\" = set"; then
14395 echo $ECHO_N "(cached) $ECHO_C" >&6
14396else
ac1cb8d3 14397 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14398fi
14399echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14400echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14401
14402fi
14403if test `eval echo '${'$as_ac_Header'}'` = yes; then
14404 cat >>confdefs.h <<_ACEOF
14405#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14406_ACEOF
14407
14408fi
14409
14410done
14411
14412
14413for ac_header in unistd.h
14414do
14415as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14416if eval "test \"\${$as_ac_Header+set}\" = set"; then
14417 echo "$as_me:$LINENO: checking for $ac_header" >&5
14418echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14419if eval "test \"\${$as_ac_Header+set}\" = set"; then
14420 echo $ECHO_N "(cached) $ECHO_C" >&6
14421fi
14422echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14423echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14424else
14425 # Is the header compilable?
14426echo "$as_me:$LINENO: checking $ac_header usability" >&5
14427echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14428cat >conftest.$ac_ext <<_ACEOF
14429/* confdefs.h. */
14430_ACEOF
14431cat confdefs.h >>conftest.$ac_ext
14432cat >>conftest.$ac_ext <<_ACEOF
14433/* end confdefs.h. */
14434$ac_includes_default
14435#include <$ac_header>
14436_ACEOF
14437rm -f conftest.$ac_objext
14438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14439 (eval $ac_compile) 2>conftest.er1
a848cd7e 14440 ac_status=$?
ac1cb8d3
VS
14441 grep -v '^ *+' conftest.er1 >conftest.err
14442 rm -f conftest.er1
14443 cat conftest.err >&5
a848cd7e
SC
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); } &&
fb00f58d
JS
14446 { ac_try='test -z "$ac_c_werror_flag"
14447 || test ! -s conftest.err'
ac1cb8d3
VS
14448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14449 (eval $ac_try) 2>&5
14450 ac_status=$?
14451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452 (exit $ac_status); }; } &&
14453 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14455 (eval $ac_try) 2>&5
14456 ac_status=$?
14457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); }; }; then
14459 ac_header_compiler=yes
14460else
14461 echo "$as_me: failed program was:" >&5
14462sed 's/^/| /' conftest.$ac_ext >&5
14463
14464ac_header_compiler=no
14465fi
ac1cb8d3 14466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14467echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14468echo "${ECHO_T}$ac_header_compiler" >&6
14469
14470# Is the header present?
14471echo "$as_me:$LINENO: checking $ac_header presence" >&5
14472echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14473cat >conftest.$ac_ext <<_ACEOF
14474/* confdefs.h. */
14475_ACEOF
14476cat confdefs.h >>conftest.$ac_ext
14477cat >>conftest.$ac_ext <<_ACEOF
14478/* end confdefs.h. */
14479#include <$ac_header>
14480_ACEOF
14481if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14482 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14483 ac_status=$?
14484 grep -v '^ *+' conftest.er1 >conftest.err
14485 rm -f conftest.er1
14486 cat conftest.err >&5
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 (exit $ac_status); } >/dev/null; then
14489 if test -s conftest.err; then
14490 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14492 else
14493 ac_cpp_err=
14494 fi
14495else
14496 ac_cpp_err=yes
14497fi
14498if test -z "$ac_cpp_err"; then
14499 ac_header_preproc=yes
14500else
14501 echo "$as_me: failed program was:" >&5
14502sed 's/^/| /' conftest.$ac_ext >&5
14503
14504 ac_header_preproc=no
14505fi
14506rm -f conftest.err conftest.$ac_ext
14507echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14508echo "${ECHO_T}$ac_header_preproc" >&6
14509
14510# So? What about this header?
ac1cb8d3
VS
14511case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14512 yes:no: )
a848cd7e
SC
14513 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14514echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14516echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14517 ac_header_preproc=yes
a848cd7e 14518 ;;
ac1cb8d3 14519 no:yes:* )
a848cd7e
SC
14520 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14521echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14522 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14523echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14524 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14525echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14526 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14527echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14529echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14530 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14531echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14532 (
14533 cat <<\_ASBOX
ac1cb8d3
VS
14534## ----------------------------------------- ##
14535## Report this to wx-dev@lists.wxwidgets.org ##
14536## ----------------------------------------- ##
a848cd7e
SC
14537_ASBOX
14538 ) |
14539 sed "s/^/$as_me: WARNING: /" >&2
14540 ;;
14541esac
14542echo "$as_me:$LINENO: checking for $ac_header" >&5
14543echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14544if eval "test \"\${$as_ac_Header+set}\" = set"; then
14545 echo $ECHO_N "(cached) $ECHO_C" >&6
14546else
ac1cb8d3 14547 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14548fi
14549echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14550echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14551
14552fi
14553if test `eval echo '${'$as_ac_Header'}'` = yes; then
14554 cat >>confdefs.h <<_ACEOF
14555#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14556_ACEOF
14557
14558fi
14559
14560done
14561
14562
14563for ac_header in wchar.h
14564do
14565as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14566if eval "test \"\${$as_ac_Header+set}\" = set"; then
14567 echo "$as_me:$LINENO: checking for $ac_header" >&5
14568echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14569if eval "test \"\${$as_ac_Header+set}\" = set"; then
14570 echo $ECHO_N "(cached) $ECHO_C" >&6
14571fi
14572echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14573echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14574else
14575 # Is the header compilable?
14576echo "$as_me:$LINENO: checking $ac_header usability" >&5
14577echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14578cat >conftest.$ac_ext <<_ACEOF
14579/* confdefs.h. */
14580_ACEOF
14581cat confdefs.h >>conftest.$ac_ext
14582cat >>conftest.$ac_ext <<_ACEOF
14583/* end confdefs.h. */
14584$ac_includes_default
14585#include <$ac_header>
14586_ACEOF
14587rm -f conftest.$ac_objext
14588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14589 (eval $ac_compile) 2>conftest.er1
a848cd7e 14590 ac_status=$?
ac1cb8d3
VS
14591 grep -v '^ *+' conftest.er1 >conftest.err
14592 rm -f conftest.er1
14593 cat conftest.err >&5
a848cd7e
SC
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); } &&
fb00f58d
JS
14596 { ac_try='test -z "$ac_c_werror_flag"
14597 || test ! -s conftest.err'
ac1cb8d3
VS
14598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14599 (eval $ac_try) 2>&5
14600 ac_status=$?
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); }; } &&
14603 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14605 (eval $ac_try) 2>&5
14606 ac_status=$?
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); }; }; then
14609 ac_header_compiler=yes
14610else
14611 echo "$as_me: failed program was:" >&5
14612sed 's/^/| /' conftest.$ac_ext >&5
14613
14614ac_header_compiler=no
14615fi
ac1cb8d3 14616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14617echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14618echo "${ECHO_T}$ac_header_compiler" >&6
14619
14620# Is the header present?
14621echo "$as_me:$LINENO: checking $ac_header presence" >&5
14622echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14623cat >conftest.$ac_ext <<_ACEOF
14624/* confdefs.h. */
14625_ACEOF
14626cat confdefs.h >>conftest.$ac_ext
14627cat >>conftest.$ac_ext <<_ACEOF
14628/* end confdefs.h. */
14629#include <$ac_header>
14630_ACEOF
14631if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14632 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14633 ac_status=$?
14634 grep -v '^ *+' conftest.er1 >conftest.err
14635 rm -f conftest.er1
14636 cat conftest.err >&5
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); } >/dev/null; then
14639 if test -s conftest.err; then
14640 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14642 else
14643 ac_cpp_err=
14644 fi
14645else
14646 ac_cpp_err=yes
14647fi
14648if test -z "$ac_cpp_err"; then
14649 ac_header_preproc=yes
14650else
14651 echo "$as_me: failed program was:" >&5
14652sed 's/^/| /' conftest.$ac_ext >&5
14653
14654 ac_header_preproc=no
14655fi
14656rm -f conftest.err conftest.$ac_ext
14657echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14658echo "${ECHO_T}$ac_header_preproc" >&6
14659
14660# So? What about this header?
ac1cb8d3
VS
14661case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14662 yes:no: )
a848cd7e
SC
14663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14664echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14666echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14667 ac_header_preproc=yes
a848cd7e 14668 ;;
ac1cb8d3 14669 no:yes:* )
a848cd7e
SC
14670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14671echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14673echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14675echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14677echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14679echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14681echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14682 (
14683 cat <<\_ASBOX
ac1cb8d3
VS
14684## ----------------------------------------- ##
14685## Report this to wx-dev@lists.wxwidgets.org ##
14686## ----------------------------------------- ##
a848cd7e
SC
14687_ASBOX
14688 ) |
14689 sed "s/^/$as_me: WARNING: /" >&2
14690 ;;
14691esac
14692echo "$as_me:$LINENO: checking for $ac_header" >&5
14693echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14694if eval "test \"\${$as_ac_Header+set}\" = set"; then
14695 echo $ECHO_N "(cached) $ECHO_C" >&6
14696else
ac1cb8d3 14697 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14698fi
14699echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14700echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14701
14702fi
14703if test `eval echo '${'$as_ac_Header'}'` = yes; then
14704 cat >>confdefs.h <<_ACEOF
14705#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14706_ACEOF
14707
14708fi
14709
14710done
14711
14712
14713if test "$ac_cv_header_wchar_h" != "yes"; then
14714
14715for ac_header in wcstr.h
14716do
14717as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14718if eval "test \"\${$as_ac_Header+set}\" = set"; then
14719 echo "$as_me:$LINENO: checking for $ac_header" >&5
14720echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14721if eval "test \"\${$as_ac_Header+set}\" = set"; then
14722 echo $ECHO_N "(cached) $ECHO_C" >&6
14723fi
14724echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14725echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14726else
14727 # Is the header compilable?
14728echo "$as_me:$LINENO: checking $ac_header usability" >&5
14729echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14730cat >conftest.$ac_ext <<_ACEOF
14731/* confdefs.h. */
14732_ACEOF
14733cat confdefs.h >>conftest.$ac_ext
14734cat >>conftest.$ac_ext <<_ACEOF
14735/* end confdefs.h. */
14736$ac_includes_default
14737#include <$ac_header>
14738_ACEOF
14739rm -f conftest.$ac_objext
14740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14741 (eval $ac_compile) 2>conftest.er1
a848cd7e 14742 ac_status=$?
ac1cb8d3
VS
14743 grep -v '^ *+' conftest.er1 >conftest.err
14744 rm -f conftest.er1
14745 cat conftest.err >&5
a848cd7e
SC
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); } &&
fb00f58d
JS
14748 { ac_try='test -z "$ac_c_werror_flag"
14749 || test ! -s conftest.err'
ac1cb8d3
VS
14750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14751 (eval $ac_try) 2>&5
14752 ac_status=$?
14753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754 (exit $ac_status); }; } &&
14755 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14757 (eval $ac_try) 2>&5
14758 ac_status=$?
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); }; }; then
14761 ac_header_compiler=yes
14762else
14763 echo "$as_me: failed program was:" >&5
14764sed 's/^/| /' conftest.$ac_ext >&5
14765
14766ac_header_compiler=no
14767fi
ac1cb8d3 14768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14769echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14770echo "${ECHO_T}$ac_header_compiler" >&6
14771
14772# Is the header present?
14773echo "$as_me:$LINENO: checking $ac_header presence" >&5
14774echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14775cat >conftest.$ac_ext <<_ACEOF
14776/* confdefs.h. */
14777_ACEOF
14778cat confdefs.h >>conftest.$ac_ext
14779cat >>conftest.$ac_ext <<_ACEOF
14780/* end confdefs.h. */
14781#include <$ac_header>
14782_ACEOF
14783if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14785 ac_status=$?
14786 grep -v '^ *+' conftest.er1 >conftest.err
14787 rm -f conftest.er1
14788 cat conftest.err >&5
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); } >/dev/null; then
14791 if test -s conftest.err; then
14792 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14793 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14794 else
14795 ac_cpp_err=
14796 fi
14797else
14798 ac_cpp_err=yes
14799fi
14800if test -z "$ac_cpp_err"; then
14801 ac_header_preproc=yes
14802else
14803 echo "$as_me: failed program was:" >&5
14804sed 's/^/| /' conftest.$ac_ext >&5
14805
14806 ac_header_preproc=no
14807fi
14808rm -f conftest.err conftest.$ac_ext
14809echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14810echo "${ECHO_T}$ac_header_preproc" >&6
14811
14812# So? What about this header?
ac1cb8d3
VS
14813case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14814 yes:no: )
a848cd7e
SC
14815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14816echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14818echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14819 ac_header_preproc=yes
a848cd7e 14820 ;;
ac1cb8d3 14821 no:yes:* )
a848cd7e
SC
14822 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14823echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14824 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14825echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14826 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14827echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14828 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14829echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14831echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14832 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14833echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14834 (
14835 cat <<\_ASBOX
ac1cb8d3
VS
14836## ----------------------------------------- ##
14837## Report this to wx-dev@lists.wxwidgets.org ##
14838## ----------------------------------------- ##
a848cd7e
SC
14839_ASBOX
14840 ) |
14841 sed "s/^/$as_me: WARNING: /" >&2
14842 ;;
14843esac
14844echo "$as_me:$LINENO: checking for $ac_header" >&5
14845echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14846if eval "test \"\${$as_ac_Header+set}\" = set"; then
14847 echo $ECHO_N "(cached) $ECHO_C" >&6
14848else
ac1cb8d3 14849 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14850fi
14851echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14852echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14853
14854fi
14855if test `eval echo '${'$as_ac_Header'}'` = yes; then
14856 cat >>confdefs.h <<_ACEOF
14857#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14858_ACEOF
14859
14860fi
14861
14862done
14863
14864fi
14865
14866
14867for ac_header in fnmatch.h
14868do
14869as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14870if eval "test \"\${$as_ac_Header+set}\" = set"; then
14871 echo "$as_me:$LINENO: checking for $ac_header" >&5
14872echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14873if eval "test \"\${$as_ac_Header+set}\" = set"; then
14874 echo $ECHO_N "(cached) $ECHO_C" >&6
14875fi
14876echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14877echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14878else
14879 # Is the header compilable?
14880echo "$as_me:$LINENO: checking $ac_header usability" >&5
14881echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14882cat >conftest.$ac_ext <<_ACEOF
14883/* confdefs.h. */
14884_ACEOF
14885cat confdefs.h >>conftest.$ac_ext
14886cat >>conftest.$ac_ext <<_ACEOF
14887/* end confdefs.h. */
14888$ac_includes_default
14889#include <$ac_header>
14890_ACEOF
14891rm -f conftest.$ac_objext
14892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14893 (eval $ac_compile) 2>conftest.er1
a848cd7e 14894 ac_status=$?
ac1cb8d3
VS
14895 grep -v '^ *+' conftest.er1 >conftest.err
14896 rm -f conftest.er1
14897 cat conftest.err >&5
a848cd7e
SC
14898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899 (exit $ac_status); } &&
fb00f58d
JS
14900 { ac_try='test -z "$ac_c_werror_flag"
14901 || test ! -s conftest.err'
ac1cb8d3
VS
14902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14903 (eval $ac_try) 2>&5
14904 ac_status=$?
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); }; } &&
14907 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14909 (eval $ac_try) 2>&5
14910 ac_status=$?
14911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912 (exit $ac_status); }; }; then
14913 ac_header_compiler=yes
14914else
14915 echo "$as_me: failed program was:" >&5
14916sed 's/^/| /' conftest.$ac_ext >&5
14917
14918ac_header_compiler=no
14919fi
ac1cb8d3 14920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14921echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14922echo "${ECHO_T}$ac_header_compiler" >&6
14923
14924# Is the header present?
14925echo "$as_me:$LINENO: checking $ac_header presence" >&5
14926echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14927cat >conftest.$ac_ext <<_ACEOF
14928/* confdefs.h. */
14929_ACEOF
14930cat confdefs.h >>conftest.$ac_ext
14931cat >>conftest.$ac_ext <<_ACEOF
14932/* end confdefs.h. */
14933#include <$ac_header>
14934_ACEOF
14935if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14936 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14937 ac_status=$?
14938 grep -v '^ *+' conftest.er1 >conftest.err
14939 rm -f conftest.er1
14940 cat conftest.err >&5
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); } >/dev/null; then
14943 if test -s conftest.err; then
14944 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14945 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14946 else
14947 ac_cpp_err=
14948 fi
14949else
14950 ac_cpp_err=yes
14951fi
14952if test -z "$ac_cpp_err"; then
14953 ac_header_preproc=yes
14954else
14955 echo "$as_me: failed program was:" >&5
14956sed 's/^/| /' conftest.$ac_ext >&5
14957
14958 ac_header_preproc=no
14959fi
14960rm -f conftest.err conftest.$ac_ext
14961echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14962echo "${ECHO_T}$ac_header_preproc" >&6
14963
14964# So? What about this header?
ac1cb8d3
VS
14965case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14966 yes:no: )
a848cd7e
SC
14967 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14968echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14970echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14971 ac_header_preproc=yes
a848cd7e 14972 ;;
ac1cb8d3 14973 no:yes:* )
a848cd7e
SC
14974 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14975echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14976 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14977echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14978 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14979echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14980 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14981echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14983echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14984 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14985echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14986 (
14987 cat <<\_ASBOX
ac1cb8d3
VS
14988## ----------------------------------------- ##
14989## Report this to wx-dev@lists.wxwidgets.org ##
14990## ----------------------------------------- ##
a848cd7e
SC
14991_ASBOX
14992 ) |
14993 sed "s/^/$as_me: WARNING: /" >&2
14994 ;;
14995esac
14996echo "$as_me:$LINENO: checking for $ac_header" >&5
14997echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14998if eval "test \"\${$as_ac_Header+set}\" = set"; then
14999 echo $ECHO_N "(cached) $ECHO_C" >&6
15000else
ac1cb8d3 15001 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15002fi
15003echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15004echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15005
15006fi
15007if test `eval echo '${'$as_ac_Header'}'` = yes; then
15008 cat >>confdefs.h <<_ACEOF
15009#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15010_ACEOF
15011
15012fi
15013
15014done
15015
15016
15017if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
15018
15019for ac_func in fnmatch
15020do
15021as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15022echo "$as_me:$LINENO: checking for $ac_func" >&5
15023echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15024if eval "test \"\${$as_ac_var+set}\" = set"; then
15025 echo $ECHO_N "(cached) $ECHO_C" >&6
15026else
15027 cat >conftest.$ac_ext <<_ACEOF
15028/* confdefs.h. */
15029_ACEOF
15030cat confdefs.h >>conftest.$ac_ext
15031cat >>conftest.$ac_ext <<_ACEOF
15032/* end confdefs.h. */
ac1cb8d3
VS
15033/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15035#define $ac_func innocuous_$ac_func
15036
a848cd7e
SC
15037/* System header to define __stub macros and hopefully few prototypes,
15038 which can conflict with char $ac_func (); below.
15039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15040 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 15041
a848cd7e
SC
15042#ifdef __STDC__
15043# include <limits.h>
15044#else
15045# include <assert.h>
15046#endif
ac1cb8d3
VS
15047
15048#undef $ac_func
15049
a848cd7e
SC
15050/* Override any gcc2 internal prototype to avoid an error. */
15051#ifdef __cplusplus
15052extern "C"
15053{
15054#endif
15055/* We use char because int might match the return type of a gcc2
15056 builtin and then its argument prototype would still apply. */
15057char $ac_func ();
15058/* The GNU C library defines this for functions which it implements
15059 to always fail with ENOSYS. Some functions are actually named
15060 something starting with __ and the normal name is an alias. */
15061#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15062choke me
15063#else
15064char (*f) () = $ac_func;
15065#endif
15066#ifdef __cplusplus
15067}
15068#endif
15069
15070int
15071main ()
15072{
15073return f != $ac_func;
15074 ;
15075 return 0;
15076}
15077_ACEOF
15078rm -f conftest.$ac_objext conftest$ac_exeext
15079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15080 (eval $ac_link) 2>conftest.er1
a848cd7e 15081 ac_status=$?
ac1cb8d3
VS
15082 grep -v '^ *+' conftest.er1 >conftest.err
15083 rm -f conftest.er1
15084 cat conftest.err >&5
a848cd7e
SC
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); } &&
fb00f58d
JS
15087 { ac_try='test -z "$ac_c_werror_flag"
15088 || test ! -s conftest.err'
ac1cb8d3
VS
15089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15090 (eval $ac_try) 2>&5
15091 ac_status=$?
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); }; } &&
15094 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15096 (eval $ac_try) 2>&5
15097 ac_status=$?
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; }; then
15100 eval "$as_ac_var=yes"
15101else
15102 echo "$as_me: failed program was:" >&5
15103sed 's/^/| /' conftest.$ac_ext >&5
15104
15105eval "$as_ac_var=no"
15106fi
ac1cb8d3
VS
15107rm -f conftest.err conftest.$ac_objext \
15108 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15109fi
15110echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15111echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15112if test `eval echo '${'$as_ac_var'}'` = yes; then
15113 cat >>confdefs.h <<_ACEOF
15114#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15115_ACEOF
15116
15117fi
15118done
15119
15120fi
15121
15122
15123for ac_header in langinfo.h
15124do
15125as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15126if eval "test \"\${$as_ac_Header+set}\" = set"; then
15127 echo "$as_me:$LINENO: checking for $ac_header" >&5
15128echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15129if eval "test \"\${$as_ac_Header+set}\" = set"; then
15130 echo $ECHO_N "(cached) $ECHO_C" >&6
15131fi
15132echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15133echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15134else
15135 # Is the header compilable?
15136echo "$as_me:$LINENO: checking $ac_header usability" >&5
15137echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15138cat >conftest.$ac_ext <<_ACEOF
15139/* confdefs.h. */
15140_ACEOF
15141cat confdefs.h >>conftest.$ac_ext
15142cat >>conftest.$ac_ext <<_ACEOF
15143/* end confdefs.h. */
15144$ac_includes_default
15145#include <$ac_header>
15146_ACEOF
15147rm -f conftest.$ac_objext
15148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15149 (eval $ac_compile) 2>conftest.er1
a848cd7e 15150 ac_status=$?
ac1cb8d3
VS
15151 grep -v '^ *+' conftest.er1 >conftest.err
15152 rm -f conftest.er1
15153 cat conftest.err >&5
a848cd7e
SC
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); } &&
fb00f58d
JS
15156 { ac_try='test -z "$ac_c_werror_flag"
15157 || test ! -s conftest.err'
ac1cb8d3
VS
15158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15159 (eval $ac_try) 2>&5
15160 ac_status=$?
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); }; } &&
15163 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15165 (eval $ac_try) 2>&5
15166 ac_status=$?
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); }; }; then
15169 ac_header_compiler=yes
15170else
15171 echo "$as_me: failed program was:" >&5
15172sed 's/^/| /' conftest.$ac_ext >&5
15173
15174ac_header_compiler=no
15175fi
ac1cb8d3 15176rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15177echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15178echo "${ECHO_T}$ac_header_compiler" >&6
15179
15180# Is the header present?
15181echo "$as_me:$LINENO: checking $ac_header presence" >&5
15182echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15183cat >conftest.$ac_ext <<_ACEOF
15184/* confdefs.h. */
15185_ACEOF
15186cat confdefs.h >>conftest.$ac_ext
15187cat >>conftest.$ac_ext <<_ACEOF
15188/* end confdefs.h. */
15189#include <$ac_header>
15190_ACEOF
15191if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15193 ac_status=$?
15194 grep -v '^ *+' conftest.er1 >conftest.err
15195 rm -f conftest.er1
15196 cat conftest.err >&5
15197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198 (exit $ac_status); } >/dev/null; then
15199 if test -s conftest.err; then
15200 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15202 else
15203 ac_cpp_err=
15204 fi
15205else
15206 ac_cpp_err=yes
15207fi
15208if test -z "$ac_cpp_err"; then
15209 ac_header_preproc=yes
15210else
15211 echo "$as_me: failed program was:" >&5
15212sed 's/^/| /' conftest.$ac_ext >&5
15213
15214 ac_header_preproc=no
15215fi
15216rm -f conftest.err conftest.$ac_ext
15217echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15218echo "${ECHO_T}$ac_header_preproc" >&6
15219
15220# So? What about this header?
ac1cb8d3
VS
15221case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15222 yes:no: )
a848cd7e
SC
15223 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15224echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15226echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15227 ac_header_preproc=yes
a848cd7e 15228 ;;
ac1cb8d3 15229 no:yes:* )
a848cd7e
SC
15230 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15231echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15232 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15233echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15234 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15235echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15236 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15237echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15239echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15240 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15241echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15242 (
15243 cat <<\_ASBOX
ac1cb8d3
VS
15244## ----------------------------------------- ##
15245## Report this to wx-dev@lists.wxwidgets.org ##
15246## ----------------------------------------- ##
a848cd7e
SC
15247_ASBOX
15248 ) |
15249 sed "s/^/$as_me: WARNING: /" >&2
15250 ;;
15251esac
15252echo "$as_me:$LINENO: checking for $ac_header" >&5
15253echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15254if eval "test \"\${$as_ac_Header+set}\" = set"; then
15255 echo $ECHO_N "(cached) $ECHO_C" >&6
15256else
ac1cb8d3 15257 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15258fi
15259echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15260echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15261
15262fi
15263if test `eval echo '${'$as_ac_Header'}'` = yes; then
15264 cat >>confdefs.h <<_ACEOF
15265#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15266_ACEOF
15267
15268fi
15269
15270done
15271
15272
15273case "${host}" in
15274 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
15275 if test $ac_cv_header_langinfo_h = "yes" \
15276 -a \( "$wx_cv_gccversion" = "EMX2" \
15277 -o "$wx_cv_gccversion" = "EMX3" \
15278 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
15279 LIBS="$LIBS -lintl"
15280 fi
15281 ;;
15282esac
15283
15284if test "$wxUSE_GUI" = "yes"; then
15285 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
15286
15287for ac_header in X11/Xlib.h
15288do
15289as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15290if eval "test \"\${$as_ac_Header+set}\" = set"; then
15291 echo "$as_me:$LINENO: checking for $ac_header" >&5
15292echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15293if eval "test \"\${$as_ac_Header+set}\" = set"; then
15294 echo $ECHO_N "(cached) $ECHO_C" >&6
15295fi
15296echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15297echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15298else
15299 # Is the header compilable?
15300echo "$as_me:$LINENO: checking $ac_header usability" >&5
15301echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15302cat >conftest.$ac_ext <<_ACEOF
15303/* confdefs.h. */
15304_ACEOF
15305cat confdefs.h >>conftest.$ac_ext
15306cat >>conftest.$ac_ext <<_ACEOF
15307/* end confdefs.h. */
15308$ac_includes_default
15309#include <$ac_header>
15310_ACEOF
15311rm -f conftest.$ac_objext
15312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15313 (eval $ac_compile) 2>conftest.er1
a848cd7e 15314 ac_status=$?
ac1cb8d3
VS
15315 grep -v '^ *+' conftest.er1 >conftest.err
15316 rm -f conftest.er1
15317 cat conftest.err >&5
a848cd7e
SC
15318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); } &&
fb00f58d
JS
15320 { ac_try='test -z "$ac_c_werror_flag"
15321 || test ! -s conftest.err'
ac1cb8d3
VS
15322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15323 (eval $ac_try) 2>&5
15324 ac_status=$?
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); }; } &&
15327 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15329 (eval $ac_try) 2>&5
15330 ac_status=$?
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); }; }; then
15333 ac_header_compiler=yes
15334else
15335 echo "$as_me: failed program was:" >&5
15336sed 's/^/| /' conftest.$ac_ext >&5
15337
15338ac_header_compiler=no
15339fi
ac1cb8d3 15340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15341echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15342echo "${ECHO_T}$ac_header_compiler" >&6
15343
15344# Is the header present?
15345echo "$as_me:$LINENO: checking $ac_header presence" >&5
15346echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15347cat >conftest.$ac_ext <<_ACEOF
15348/* confdefs.h. */
15349_ACEOF
15350cat confdefs.h >>conftest.$ac_ext
15351cat >>conftest.$ac_ext <<_ACEOF
15352/* end confdefs.h. */
15353#include <$ac_header>
15354_ACEOF
15355if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15356 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15357 ac_status=$?
15358 grep -v '^ *+' conftest.er1 >conftest.err
15359 rm -f conftest.er1
15360 cat conftest.err >&5
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); } >/dev/null; then
15363 if test -s conftest.err; then
15364 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15365 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15366 else
15367 ac_cpp_err=
15368 fi
15369else
15370 ac_cpp_err=yes
15371fi
15372if test -z "$ac_cpp_err"; then
15373 ac_header_preproc=yes
15374else
15375 echo "$as_me: failed program was:" >&5
15376sed 's/^/| /' conftest.$ac_ext >&5
15377
15378 ac_header_preproc=no
15379fi
15380rm -f conftest.err conftest.$ac_ext
15381echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15382echo "${ECHO_T}$ac_header_preproc" >&6
15383
15384# So? What about this header?
ac1cb8d3
VS
15385case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15386 yes:no: )
a848cd7e
SC
15387 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15388echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15390echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15391 ac_header_preproc=yes
a848cd7e 15392 ;;
ac1cb8d3 15393 no:yes:* )
a848cd7e
SC
15394 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15395echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15396 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15397echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15398 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15399echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15400 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15401echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15403echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15404 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15405echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15406 (
15407 cat <<\_ASBOX
ac1cb8d3
VS
15408## ----------------------------------------- ##
15409## Report this to wx-dev@lists.wxwidgets.org ##
15410## ----------------------------------------- ##
a848cd7e
SC
15411_ASBOX
15412 ) |
15413 sed "s/^/$as_me: WARNING: /" >&2
15414 ;;
15415esac
15416echo "$as_me:$LINENO: checking for $ac_header" >&5
15417echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15418if eval "test \"\${$as_ac_Header+set}\" = set"; then
15419 echo $ECHO_N "(cached) $ECHO_C" >&6
15420else
ac1cb8d3 15421 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15422fi
15423echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15424echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15425
15426fi
15427if test `eval echo '${'$as_ac_Header'}'` = yes; then
15428 cat >>confdefs.h <<_ACEOF
15429#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15430_ACEOF
15431
15432fi
15433
15434done
15435
15436
15437for ac_header in X11/XKBlib.h
15438do
15439as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15440echo "$as_me:$LINENO: checking for $ac_header" >&5
15441echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15442if eval "test \"\${$as_ac_Header+set}\" = set"; then
15443 echo $ECHO_N "(cached) $ECHO_C" >&6
15444else
15445 cat >conftest.$ac_ext <<_ACEOF
15446/* confdefs.h. */
15447_ACEOF
15448cat confdefs.h >>conftest.$ac_ext
15449cat >>conftest.$ac_ext <<_ACEOF
15450/* end confdefs.h. */
15451
15452 #if HAVE_X11_XLIB_H
15453 #include <X11/Xlib.h>
15454 #endif
15455
15456
15457#include <$ac_header>
15458_ACEOF
15459rm -f conftest.$ac_objext
15460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15461 (eval $ac_compile) 2>conftest.er1
a848cd7e 15462 ac_status=$?
ac1cb8d3
VS
15463 grep -v '^ *+' conftest.er1 >conftest.err
15464 rm -f conftest.er1
15465 cat conftest.err >&5
a848cd7e
SC
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); } &&
fb00f58d
JS
15468 { ac_try='test -z "$ac_c_werror_flag"
15469 || test ! -s conftest.err'
ac1cb8d3
VS
15470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15471 (eval $ac_try) 2>&5
15472 ac_status=$?
15473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); }; } &&
15475 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15477 (eval $ac_try) 2>&5
15478 ac_status=$?
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); }; }; then
15481 eval "$as_ac_Header=yes"
15482else
15483 echo "$as_me: failed program was:" >&5
15484sed 's/^/| /' conftest.$ac_ext >&5
15485
15486eval "$as_ac_Header=no"
15487fi
ac1cb8d3 15488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15489fi
15490echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15491echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15492if test `eval echo '${'$as_ac_Header'}'` = yes; then
15493 cat >>confdefs.h <<_ACEOF
15494#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15495_ACEOF
15496
15497fi
15498
15499done
15500
15501 fi
15502fi
15503
15504
15505echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15506echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15507if test "${ac_cv_c_const+set}" = set; then
15508 echo $ECHO_N "(cached) $ECHO_C" >&6
15509else
15510 cat >conftest.$ac_ext <<_ACEOF
15511/* confdefs.h. */
15512_ACEOF
15513cat confdefs.h >>conftest.$ac_ext
15514cat >>conftest.$ac_ext <<_ACEOF
15515/* end confdefs.h. */
15516
15517int
15518main ()
15519{
15520/* FIXME: Include the comments suggested by Paul. */
15521#ifndef __cplusplus
15522 /* Ultrix mips cc rejects this. */
15523 typedef int charset[2];
15524 const charset x;
15525 /* SunOS 4.1.1 cc rejects this. */
15526 char const *const *ccp;
15527 char **p;
15528 /* NEC SVR4.0.2 mips cc rejects this. */
15529 struct point {int x, y;};
15530 static struct point const zero = {0,0};
15531 /* AIX XL C 1.02.0.0 rejects this.
15532 It does not let you subtract one const X* pointer from another in
15533 an arm of an if-expression whose if-part is not a constant
15534 expression */
15535 const char *g = "string";
15536 ccp = &g + (g ? g-g : 0);
15537 /* HPUX 7.0 cc rejects these. */
15538 ++ccp;
15539 p = (char**) ccp;
15540 ccp = (char const *const *) p;
15541 { /* SCO 3.2v4 cc rejects this. */
15542 char *t;
15543 char const *s = 0 ? (char *) 0 : (char const *) 0;
15544
15545 *t++ = 0;
15546 }
15547 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15548 int x[] = {25, 17};
15549 const int *foo = &x[0];
15550 ++foo;
15551 }
15552 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15553 typedef const int *iptr;
15554 iptr p = 0;
15555 ++p;
15556 }
15557 { /* AIX XL C 1.02.0.0 rejects this saying
15558 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15559 struct s { int j; const int *ap[3]; };
15560 struct s *b; b->j = 5;
15561 }
15562 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15563 const int foo = 10;
15564 }
15565#endif
15566
15567 ;
15568 return 0;
15569}
15570_ACEOF
15571rm -f conftest.$ac_objext
15572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15573 (eval $ac_compile) 2>conftest.er1
a848cd7e 15574 ac_status=$?
ac1cb8d3
VS
15575 grep -v '^ *+' conftest.er1 >conftest.err
15576 rm -f conftest.er1
15577 cat conftest.err >&5
a848cd7e
SC
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); } &&
fb00f58d
JS
15580 { ac_try='test -z "$ac_c_werror_flag"
15581 || test ! -s conftest.err'
ac1cb8d3
VS
15582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15583 (eval $ac_try) 2>&5
15584 ac_status=$?
15585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586 (exit $ac_status); }; } &&
15587 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15589 (eval $ac_try) 2>&5
15590 ac_status=$?
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); }; }; then
15593 ac_cv_c_const=yes
15594else
15595 echo "$as_me: failed program was:" >&5
15596sed 's/^/| /' conftest.$ac_ext >&5
15597
15598ac_cv_c_const=no
15599fi
ac1cb8d3 15600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15601fi
15602echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15603echo "${ECHO_T}$ac_cv_c_const" >&6
15604if test $ac_cv_c_const = no; then
15605
15606cat >>confdefs.h <<\_ACEOF
15607#define const
15608_ACEOF
15609
15610fi
15611
15612echo "$as_me:$LINENO: checking for inline" >&5
15613echo $ECHO_N "checking for inline... $ECHO_C" >&6
15614if test "${ac_cv_c_inline+set}" = set; then
15615 echo $ECHO_N "(cached) $ECHO_C" >&6
15616else
15617 ac_cv_c_inline=no
15618for ac_kw in inline __inline__ __inline; do
15619 cat >conftest.$ac_ext <<_ACEOF
15620/* confdefs.h. */
15621_ACEOF
15622cat confdefs.h >>conftest.$ac_ext
15623cat >>conftest.$ac_ext <<_ACEOF
15624/* end confdefs.h. */
15625#ifndef __cplusplus
15626typedef int foo_t;
15627static $ac_kw foo_t static_foo () {return 0; }
15628$ac_kw foo_t foo () {return 0; }
15629#endif
15630
15631_ACEOF
15632rm -f conftest.$ac_objext
15633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15634 (eval $ac_compile) 2>conftest.er1
a848cd7e 15635 ac_status=$?
ac1cb8d3
VS
15636 grep -v '^ *+' conftest.er1 >conftest.err
15637 rm -f conftest.er1
15638 cat conftest.err >&5
a848cd7e
SC
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); } &&
fb00f58d
JS
15641 { ac_try='test -z "$ac_c_werror_flag"
15642 || test ! -s conftest.err'
ac1cb8d3
VS
15643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15644 (eval $ac_try) 2>&5
15645 ac_status=$?
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); }; } &&
15648 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15650 (eval $ac_try) 2>&5
15651 ac_status=$?
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); }; }; then
15654 ac_cv_c_inline=$ac_kw; break
15655else
15656 echo "$as_me: failed program was:" >&5
15657sed 's/^/| /' conftest.$ac_ext >&5
15658
15659fi
ac1cb8d3 15660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15661done
15662
15663fi
15664echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15665echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
15666
15667
a848cd7e
SC
15668case $ac_cv_c_inline in
15669 inline | yes) ;;
ac1cb8d3
VS
15670 *)
15671 case $ac_cv_c_inline in
15672 no) ac_val=;;
15673 *) ac_val=$ac_cv_c_inline;;
15674 esac
15675 cat >>confdefs.h <<_ACEOF
15676#ifndef __cplusplus
15677#define inline $ac_val
15678#endif
de59c161 15679_ACEOF
ac1cb8d3 15680 ;;
a848cd7e
SC
15681esac
15682
15683
15684echo "$as_me:$LINENO: checking for char" >&5
15685echo $ECHO_N "checking for char... $ECHO_C" >&6
15686if test "${ac_cv_type_char+set}" = set; then
15687 echo $ECHO_N "(cached) $ECHO_C" >&6
15688else
15689 cat >conftest.$ac_ext <<_ACEOF
15690/* confdefs.h. */
15691_ACEOF
15692cat confdefs.h >>conftest.$ac_ext
15693cat >>conftest.$ac_ext <<_ACEOF
15694/* end confdefs.h. */
15695$ac_includes_default
15696int
15697main ()
15698{
15699if ((char *) 0)
15700 return 0;
15701if (sizeof (char))
15702 return 0;
15703 ;
15704 return 0;
15705}
15706_ACEOF
15707rm -f conftest.$ac_objext
15708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15709 (eval $ac_compile) 2>conftest.er1
a848cd7e 15710 ac_status=$?
ac1cb8d3
VS
15711 grep -v '^ *+' conftest.er1 >conftest.err
15712 rm -f conftest.er1
15713 cat conftest.err >&5
a848cd7e
SC
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); } &&
fb00f58d
JS
15716 { ac_try='test -z "$ac_c_werror_flag"
15717 || test ! -s conftest.err'
ac1cb8d3
VS
15718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15719 (eval $ac_try) 2>&5
15720 ac_status=$?
15721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722 (exit $ac_status); }; } &&
15723 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15725 (eval $ac_try) 2>&5
15726 ac_status=$?
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); }; }; then
15729 ac_cv_type_char=yes
15730else
15731 echo "$as_me: failed program was:" >&5
15732sed 's/^/| /' conftest.$ac_ext >&5
15733
15734ac_cv_type_char=no
15735fi
ac1cb8d3 15736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15737fi
15738echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
15739echo "${ECHO_T}$ac_cv_type_char" >&6
15740
15741echo "$as_me:$LINENO: checking size of char" >&5
15742echo $ECHO_N "checking size of char... $ECHO_C" >&6
15743if test "${ac_cv_sizeof_char+set}" = set; then
15744 echo $ECHO_N "(cached) $ECHO_C" >&6
15745else
15746 if test "$ac_cv_type_char" = yes; then
15747 # The cast to unsigned long works around a bug in the HP C Compiler
15748 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15749 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15750 # This bug is HP SR number 8606223364.
15751 if test "$cross_compiling" = yes; then
15752 # Depending upon the size, compute the lo and hi bounds.
15753cat >conftest.$ac_ext <<_ACEOF
15754/* confdefs.h. */
15755_ACEOF
15756cat confdefs.h >>conftest.$ac_ext
15757cat >>conftest.$ac_ext <<_ACEOF
15758/* end confdefs.h. */
15759$ac_includes_default
15760int
15761main ()
15762{
15763static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
15764test_array [0] = 0
15765
15766 ;
15767 return 0;
15768}
15769_ACEOF
15770rm -f conftest.$ac_objext
15771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15772 (eval $ac_compile) 2>conftest.er1
a848cd7e 15773 ac_status=$?
ac1cb8d3
VS
15774 grep -v '^ *+' conftest.er1 >conftest.err
15775 rm -f conftest.er1
15776 cat conftest.err >&5
a848cd7e
SC
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); } &&
fb00f58d
JS
15779 { ac_try='test -z "$ac_c_werror_flag"
15780 || 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_lo=0 ac_mid=0
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); } &&
fb00f58d
JS
15820 { ac_try='test -z "$ac_c_werror_flag"
15821 || test ! -s conftest.err'
ac1cb8d3
VS
15822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15823 (eval $ac_try) 2>&5
15824 ac_status=$?
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); }; } &&
15827 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15829 (eval $ac_try) 2>&5
15830 ac_status=$?
15831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); }; }; then
15833 ac_hi=$ac_mid; break
15834else
15835 echo "$as_me: failed program was:" >&5
15836sed 's/^/| /' conftest.$ac_ext >&5
15837
15838ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15839 if test $ac_lo -le $ac_mid; then
15840 ac_lo= ac_hi=
15841 break
15842 fi
15843 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15844fi
ac1cb8d3 15845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15846 done
15847else
15848 echo "$as_me: failed program was:" >&5
15849sed 's/^/| /' conftest.$ac_ext >&5
15850
15851cat >conftest.$ac_ext <<_ACEOF
15852/* confdefs.h. */
15853_ACEOF
15854cat confdefs.h >>conftest.$ac_ext
15855cat >>conftest.$ac_ext <<_ACEOF
15856/* end confdefs.h. */
15857$ac_includes_default
15858int
15859main ()
15860{
15861static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
15862test_array [0] = 0
15863
15864 ;
15865 return 0;
15866}
15867_ACEOF
15868rm -f conftest.$ac_objext
15869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15870 (eval $ac_compile) 2>conftest.er1
a848cd7e 15871 ac_status=$?
ac1cb8d3
VS
15872 grep -v '^ *+' conftest.er1 >conftest.err
15873 rm -f conftest.er1
15874 cat conftest.err >&5
a848cd7e
SC
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); } &&
fb00f58d
JS
15877 { ac_try='test -z "$ac_c_werror_flag"
15878 || test ! -s conftest.err'
ac1cb8d3
VS
15879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15880 (eval $ac_try) 2>&5
15881 ac_status=$?
15882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883 (exit $ac_status); }; } &&
15884 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
15890 ac_hi=-1 ac_mid=-1
15891 while :; do
15892 cat >conftest.$ac_ext <<_ACEOF
15893/* confdefs.h. */
15894_ACEOF
15895cat confdefs.h >>conftest.$ac_ext
15896cat >>conftest.$ac_ext <<_ACEOF
15897/* end confdefs.h. */
15898$ac_includes_default
15899int
15900main ()
15901{
15902static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
15903test_array [0] = 0
15904
15905 ;
15906 return 0;
15907}
15908_ACEOF
15909rm -f conftest.$ac_objext
15910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15911 (eval $ac_compile) 2>conftest.er1
a848cd7e 15912 ac_status=$?
ac1cb8d3
VS
15913 grep -v '^ *+' conftest.er1 >conftest.err
15914 rm -f conftest.er1
15915 cat conftest.err >&5
a848cd7e
SC
15916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917 (exit $ac_status); } &&
fb00f58d
JS
15918 { ac_try='test -z "$ac_c_werror_flag"
15919 || test ! -s conftest.err'
ac1cb8d3
VS
15920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15921 (eval $ac_try) 2>&5
15922 ac_status=$?
15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); }; } &&
15925 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15927 (eval $ac_try) 2>&5
15928 ac_status=$?
15929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930 (exit $ac_status); }; }; then
15931 ac_lo=$ac_mid; break
15932else
15933 echo "$as_me: failed program was:" >&5
15934sed 's/^/| /' conftest.$ac_ext >&5
15935
15936ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15937 if test $ac_mid -le $ac_hi; then
15938 ac_lo= ac_hi=
15939 break
15940 fi
15941 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15942fi
ac1cb8d3 15943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15944 done
15945else
15946 echo "$as_me: failed program was:" >&5
15947sed 's/^/| /' conftest.$ac_ext >&5
15948
15949ac_lo= ac_hi=
15950fi
ac1cb8d3 15951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15952fi
ac1cb8d3 15953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15954# Binary search between lo and hi bounds.
15955while test "x$ac_lo" != "x$ac_hi"; do
15956 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15957 cat >conftest.$ac_ext <<_ACEOF
15958/* confdefs.h. */
15959_ACEOF
15960cat confdefs.h >>conftest.$ac_ext
15961cat >>conftest.$ac_ext <<_ACEOF
15962/* end confdefs.h. */
15963$ac_includes_default
15964int
15965main ()
15966{
15967static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
15968test_array [0] = 0
15969
15970 ;
15971 return 0;
15972}
15973_ACEOF
15974rm -f conftest.$ac_objext
15975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15976 (eval $ac_compile) 2>conftest.er1
a848cd7e 15977 ac_status=$?
ac1cb8d3
VS
15978 grep -v '^ *+' conftest.er1 >conftest.err
15979 rm -f conftest.er1
15980 cat conftest.err >&5
a848cd7e
SC
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); } &&
fb00f58d
JS
15983 { ac_try='test -z "$ac_c_werror_flag"
15984 || test ! -s conftest.err'
ac1cb8d3
VS
15985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15986 (eval $ac_try) 2>&5
15987 ac_status=$?
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); }; } &&
15990 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15992 (eval $ac_try) 2>&5
15993 ac_status=$?
15994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995 (exit $ac_status); }; }; then
15996 ac_hi=$ac_mid
15997else
15998 echo "$as_me: failed program was:" >&5
15999sed 's/^/| /' conftest.$ac_ext >&5
16000
16001ac_lo=`expr '(' $ac_mid ')' + 1`
16002fi
ac1cb8d3 16003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16004done
16005case $ac_lo in
16006?*) ac_cv_sizeof_char=$ac_lo;;
16007'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16008See \`config.log' for more details." >&5
16009echo "$as_me: error: cannot compute sizeof (char), 77
16010See \`config.log' for more details." >&2;}
16011 { (exit 1); exit 1; }; } ;;
16012esac
16013else
16014 if test "$cross_compiling" = yes; then
fb00f58d
JS
16015 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16016See \`config.log' for more details." >&5
16017echo "$as_me: error: cannot run test program while cross compiling
16018See \`config.log' for more details." >&2;}
a848cd7e
SC
16019 { (exit 1); exit 1; }; }
16020else
16021 cat >conftest.$ac_ext <<_ACEOF
16022/* confdefs.h. */
16023_ACEOF
16024cat confdefs.h >>conftest.$ac_ext
16025cat >>conftest.$ac_ext <<_ACEOF
16026/* end confdefs.h. */
16027$ac_includes_default
16028long longval () { return (long) (sizeof (char)); }
16029unsigned long ulongval () { return (long) (sizeof (char)); }
16030#include <stdio.h>
16031#include <stdlib.h>
16032int
16033main ()
16034{
16035
16036 FILE *f = fopen ("conftest.val", "w");
16037 if (! f)
16038 exit (1);
16039 if (((long) (sizeof (char))) < 0)
16040 {
16041 long i = longval ();
16042 if (i != ((long) (sizeof (char))))
16043 exit (1);
16044 fprintf (f, "%ld\n", i);
16045 }
16046 else
16047 {
16048 unsigned long i = ulongval ();
16049 if (i != ((long) (sizeof (char))))
16050 exit (1);
16051 fprintf (f, "%lu\n", i);
16052 }
16053 exit (ferror (f) || fclose (f) != 0);
16054
16055 ;
16056 return 0;
16057}
16058_ACEOF
16059rm -f conftest$ac_exeext
16060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16061 (eval $ac_link) 2>&5
16062 ac_status=$?
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16066 (eval $ac_try) 2>&5
16067 ac_status=$?
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); }; }; then
16070 ac_cv_sizeof_char=`cat conftest.val`
16071else
16072 echo "$as_me: program exited with status $ac_status" >&5
16073echo "$as_me: failed program was:" >&5
16074sed 's/^/| /' conftest.$ac_ext >&5
16075
16076( exit $ac_status )
16077{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16078See \`config.log' for more details." >&5
16079echo "$as_me: error: cannot compute sizeof (char), 77
16080See \`config.log' for more details." >&2;}
16081 { (exit 1); exit 1; }; }
16082fi
ac1cb8d3 16083rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16084fi
16085fi
16086rm -f conftest.val
16087else
16088 ac_cv_sizeof_char=0
16089fi
16090fi
16091echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16092echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16093cat >>confdefs.h <<_ACEOF
16094#define SIZEOF_CHAR $ac_cv_sizeof_char
16095_ACEOF
16096
16097
16098echo "$as_me:$LINENO: checking for short" >&5
16099echo $ECHO_N "checking for short... $ECHO_C" >&6
16100if test "${ac_cv_type_short+set}" = set; then
16101 echo $ECHO_N "(cached) $ECHO_C" >&6
16102else
16103 cat >conftest.$ac_ext <<_ACEOF
16104/* confdefs.h. */
16105_ACEOF
16106cat confdefs.h >>conftest.$ac_ext
16107cat >>conftest.$ac_ext <<_ACEOF
16108/* end confdefs.h. */
16109$ac_includes_default
16110int
16111main ()
16112{
16113if ((short *) 0)
16114 return 0;
16115if (sizeof (short))
16116 return 0;
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); } &&
fb00f58d
JS
16130 { ac_try='test -z "$ac_c_werror_flag"
16131 || test ! -s conftest.err'
ac1cb8d3
VS
16132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16133 (eval $ac_try) 2>&5
16134 ac_status=$?
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); }; } &&
16137 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16139 (eval $ac_try) 2>&5
16140 ac_status=$?
16141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142 (exit $ac_status); }; }; then
16143 ac_cv_type_short=yes
16144else
16145 echo "$as_me: failed program was:" >&5
16146sed 's/^/| /' conftest.$ac_ext >&5
16147
16148ac_cv_type_short=no
16149fi
ac1cb8d3 16150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16151fi
16152echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
16153echo "${ECHO_T}$ac_cv_type_short" >&6
16154
16155echo "$as_me:$LINENO: checking size of short" >&5
16156echo $ECHO_N "checking size of short... $ECHO_C" >&6
16157if test "${ac_cv_sizeof_short+set}" = set; then
16158 echo $ECHO_N "(cached) $ECHO_C" >&6
16159else
16160 if test "$ac_cv_type_short" = yes; then
16161 # The cast to unsigned long works around a bug in the HP C Compiler
16162 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16163 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16164 # This bug is HP SR number 8606223364.
16165 if test "$cross_compiling" = yes; then
16166 # Depending upon the size, compute the lo and hi bounds.
16167cat >conftest.$ac_ext <<_ACEOF
16168/* confdefs.h. */
16169_ACEOF
16170cat confdefs.h >>conftest.$ac_ext
16171cat >>conftest.$ac_ext <<_ACEOF
16172/* end confdefs.h. */
16173$ac_includes_default
16174int
16175main ()
16176{
16177static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
16178test_array [0] = 0
16179
16180 ;
16181 return 0;
16182}
16183_ACEOF
16184rm -f conftest.$ac_objext
16185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16186 (eval $ac_compile) 2>conftest.er1
a848cd7e 16187 ac_status=$?
ac1cb8d3
VS
16188 grep -v '^ *+' conftest.er1 >conftest.err
16189 rm -f conftest.er1
16190 cat conftest.err >&5
a848cd7e
SC
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); } &&
fb00f58d
JS
16193 { ac_try='test -z "$ac_c_werror_flag"
16194 || test ! -s conftest.err'
ac1cb8d3
VS
16195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16196 (eval $ac_try) 2>&5
16197 ac_status=$?
16198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); }; } &&
16200 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16202 (eval $ac_try) 2>&5
16203 ac_status=$?
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); }; }; then
16206 ac_lo=0 ac_mid=0
16207 while :; do
16208 cat >conftest.$ac_ext <<_ACEOF
16209/* confdefs.h. */
16210_ACEOF
16211cat confdefs.h >>conftest.$ac_ext
16212cat >>conftest.$ac_ext <<_ACEOF
16213/* end confdefs.h. */
16214$ac_includes_default
16215int
16216main ()
16217{
16218static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16219test_array [0] = 0
16220
16221 ;
16222 return 0;
16223}
16224_ACEOF
16225rm -f conftest.$ac_objext
16226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16227 (eval $ac_compile) 2>conftest.er1
a848cd7e 16228 ac_status=$?
ac1cb8d3
VS
16229 grep -v '^ *+' conftest.er1 >conftest.err
16230 rm -f conftest.er1
16231 cat conftest.err >&5
a848cd7e
SC
16232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233 (exit $ac_status); } &&
fb00f58d
JS
16234 { ac_try='test -z "$ac_c_werror_flag"
16235 || test ! -s conftest.err'
ac1cb8d3
VS
16236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16237 (eval $ac_try) 2>&5
16238 ac_status=$?
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); }; } &&
16241 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16243 (eval $ac_try) 2>&5
16244 ac_status=$?
16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); }; }; then
16247 ac_hi=$ac_mid; break
16248else
16249 echo "$as_me: failed program was:" >&5
16250sed 's/^/| /' conftest.$ac_ext >&5
16251
16252ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16253 if test $ac_lo -le $ac_mid; then
16254 ac_lo= ac_hi=
16255 break
16256 fi
16257 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16258fi
ac1cb8d3 16259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16260 done
16261else
16262 echo "$as_me: failed program was:" >&5
16263sed 's/^/| /' conftest.$ac_ext >&5
16264
16265cat >conftest.$ac_ext <<_ACEOF
16266/* confdefs.h. */
16267_ACEOF
16268cat confdefs.h >>conftest.$ac_ext
16269cat >>conftest.$ac_ext <<_ACEOF
16270/* end confdefs.h. */
16271$ac_includes_default
16272int
16273main ()
16274{
16275static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
16276test_array [0] = 0
16277
16278 ;
16279 return 0;
16280}
16281_ACEOF
16282rm -f conftest.$ac_objext
16283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16284 (eval $ac_compile) 2>conftest.er1
a848cd7e 16285 ac_status=$?
ac1cb8d3
VS
16286 grep -v '^ *+' conftest.er1 >conftest.err
16287 rm -f conftest.er1
16288 cat conftest.err >&5
a848cd7e
SC
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); } &&
fb00f58d
JS
16291 { ac_try='test -z "$ac_c_werror_flag"
16292 || test ! -s conftest.err'
ac1cb8d3
VS
16293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16294 (eval $ac_try) 2>&5
16295 ac_status=$?
16296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297 (exit $ac_status); }; } &&
16298 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16300 (eval $ac_try) 2>&5
16301 ac_status=$?
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); }; }; then
16304 ac_hi=-1 ac_mid=-1
16305 while :; do
16306 cat >conftest.$ac_ext <<_ACEOF
16307/* confdefs.h. */
16308_ACEOF
16309cat confdefs.h >>conftest.$ac_ext
16310cat >>conftest.$ac_ext <<_ACEOF
16311/* end confdefs.h. */
16312$ac_includes_default
16313int
16314main ()
16315{
16316static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
16317test_array [0] = 0
16318
16319 ;
16320 return 0;
16321}
16322_ACEOF
16323rm -f conftest.$ac_objext
16324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16325 (eval $ac_compile) 2>conftest.er1
a848cd7e 16326 ac_status=$?
ac1cb8d3
VS
16327 grep -v '^ *+' conftest.er1 >conftest.err
16328 rm -f conftest.er1
16329 cat conftest.err >&5
a848cd7e
SC
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); } &&
fb00f58d
JS
16332 { ac_try='test -z "$ac_c_werror_flag"
16333 || test ! -s conftest.err'
ac1cb8d3
VS
16334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16335 (eval $ac_try) 2>&5
16336 ac_status=$?
16337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338 (exit $ac_status); }; } &&
16339 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16341 (eval $ac_try) 2>&5
16342 ac_status=$?
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); }; }; then
16345 ac_lo=$ac_mid; break
16346else
16347 echo "$as_me: failed program was:" >&5
16348sed 's/^/| /' conftest.$ac_ext >&5
16349
16350ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16351 if test $ac_mid -le $ac_hi; then
16352 ac_lo= ac_hi=
16353 break
16354 fi
16355 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16356fi
ac1cb8d3 16357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16358 done
16359else
16360 echo "$as_me: failed program was:" >&5
16361sed 's/^/| /' conftest.$ac_ext >&5
16362
16363ac_lo= ac_hi=
16364fi
ac1cb8d3 16365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16366fi
ac1cb8d3 16367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16368# Binary search between lo and hi bounds.
16369while test "x$ac_lo" != "x$ac_hi"; do
16370 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16371 cat >conftest.$ac_ext <<_ACEOF
16372/* confdefs.h. */
16373_ACEOF
16374cat confdefs.h >>conftest.$ac_ext
16375cat >>conftest.$ac_ext <<_ACEOF
16376/* end confdefs.h. */
16377$ac_includes_default
16378int
16379main ()
16380{
16381static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
16382test_array [0] = 0
16383
16384 ;
16385 return 0;
16386}
16387_ACEOF
16388rm -f conftest.$ac_objext
16389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16390 (eval $ac_compile) 2>conftest.er1
a848cd7e 16391 ac_status=$?
ac1cb8d3
VS
16392 grep -v '^ *+' conftest.er1 >conftest.err
16393 rm -f conftest.er1
16394 cat conftest.err >&5
a848cd7e
SC
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); } &&
fb00f58d
JS
16397 { ac_try='test -z "$ac_c_werror_flag"
16398 || test ! -s conftest.err'
ac1cb8d3
VS
16399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16400 (eval $ac_try) 2>&5
16401 ac_status=$?
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); }; } &&
16404 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16406 (eval $ac_try) 2>&5
16407 ac_status=$?
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); }; }; then
16410 ac_hi=$ac_mid
16411else
16412 echo "$as_me: failed program was:" >&5
16413sed 's/^/| /' conftest.$ac_ext >&5
16414
16415ac_lo=`expr '(' $ac_mid ')' + 1`
16416fi
ac1cb8d3 16417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16418done
16419case $ac_lo in
16420?*) ac_cv_sizeof_short=$ac_lo;;
16421'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16422See \`config.log' for more details." >&5
16423echo "$as_me: error: cannot compute sizeof (short), 77
16424See \`config.log' for more details." >&2;}
16425 { (exit 1); exit 1; }; } ;;
16426esac
16427else
16428 if test "$cross_compiling" = yes; then
fb00f58d
JS
16429 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16430See \`config.log' for more details." >&5
16431echo "$as_me: error: cannot run test program while cross compiling
16432See \`config.log' for more details." >&2;}
a848cd7e
SC
16433 { (exit 1); exit 1; }; }
16434else
16435 cat >conftest.$ac_ext <<_ACEOF
16436/* confdefs.h. */
16437_ACEOF
16438cat confdefs.h >>conftest.$ac_ext
16439cat >>conftest.$ac_ext <<_ACEOF
16440/* end confdefs.h. */
16441$ac_includes_default
16442long longval () { return (long) (sizeof (short)); }
16443unsigned long ulongval () { return (long) (sizeof (short)); }
16444#include <stdio.h>
16445#include <stdlib.h>
16446int
16447main ()
16448{
16449
16450 FILE *f = fopen ("conftest.val", "w");
16451 if (! f)
16452 exit (1);
16453 if (((long) (sizeof (short))) < 0)
16454 {
16455 long i = longval ();
16456 if (i != ((long) (sizeof (short))))
16457 exit (1);
16458 fprintf (f, "%ld\n", i);
16459 }
16460 else
16461 {
16462 unsigned long i = ulongval ();
16463 if (i != ((long) (sizeof (short))))
16464 exit (1);
16465 fprintf (f, "%lu\n", i);
16466 }
16467 exit (ferror (f) || fclose (f) != 0);
16468
16469 ;
16470 return 0;
16471}
16472_ACEOF
16473rm -f conftest$ac_exeext
16474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16475 (eval $ac_link) 2>&5
16476 ac_status=$?
16477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16480 (eval $ac_try) 2>&5
16481 ac_status=$?
16482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); }; }; then
16484 ac_cv_sizeof_short=`cat conftest.val`
16485else
16486 echo "$as_me: program exited with status $ac_status" >&5
16487echo "$as_me: failed program was:" >&5
16488sed 's/^/| /' conftest.$ac_ext >&5
16489
16490( exit $ac_status )
16491{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
16492See \`config.log' for more details." >&5
16493echo "$as_me: error: cannot compute sizeof (short), 77
16494See \`config.log' for more details." >&2;}
16495 { (exit 1); exit 1; }; }
16496fi
ac1cb8d3 16497rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16498fi
16499fi
16500rm -f conftest.val
16501else
16502 ac_cv_sizeof_short=0
16503fi
16504fi
16505echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
16506echo "${ECHO_T}$ac_cv_sizeof_short" >&6
16507cat >>confdefs.h <<_ACEOF
16508#define SIZEOF_SHORT $ac_cv_sizeof_short
16509_ACEOF
16510
16511
16512echo "$as_me:$LINENO: checking for void *" >&5
16513echo $ECHO_N "checking for void *... $ECHO_C" >&6
16514if test "${ac_cv_type_void_p+set}" = set; then
16515 echo $ECHO_N "(cached) $ECHO_C" >&6
16516else
16517 cat >conftest.$ac_ext <<_ACEOF
16518/* confdefs.h. */
16519_ACEOF
16520cat confdefs.h >>conftest.$ac_ext
16521cat >>conftest.$ac_ext <<_ACEOF
16522/* end confdefs.h. */
16523$ac_includes_default
16524int
16525main ()
16526{
16527if ((void * *) 0)
16528 return 0;
16529if (sizeof (void *))
16530 return 0;
16531 ;
16532 return 0;
16533}
16534_ACEOF
16535rm -f conftest.$ac_objext
16536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16537 (eval $ac_compile) 2>conftest.er1
a848cd7e 16538 ac_status=$?
ac1cb8d3
VS
16539 grep -v '^ *+' conftest.er1 >conftest.err
16540 rm -f conftest.er1
16541 cat conftest.err >&5
a848cd7e
SC
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); } &&
fb00f58d
JS
16544 { ac_try='test -z "$ac_c_werror_flag"
16545 || test ! -s conftest.err'
ac1cb8d3
VS
16546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16547 (eval $ac_try) 2>&5
16548 ac_status=$?
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); }; } &&
16551 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16553 (eval $ac_try) 2>&5
16554 ac_status=$?
16555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16556 (exit $ac_status); }; }; then
16557 ac_cv_type_void_p=yes
16558else
16559 echo "$as_me: failed program was:" >&5
16560sed 's/^/| /' conftest.$ac_ext >&5
16561
16562ac_cv_type_void_p=no
16563fi
ac1cb8d3 16564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16565fi
16566echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16567echo "${ECHO_T}$ac_cv_type_void_p" >&6
16568
16569echo "$as_me:$LINENO: checking size of void *" >&5
16570echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16571if test "${ac_cv_sizeof_void_p+set}" = set; then
16572 echo $ECHO_N "(cached) $ECHO_C" >&6
16573else
16574 if test "$ac_cv_type_void_p" = yes; then
16575 # The cast to unsigned long works around a bug in the HP C Compiler
16576 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16577 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16578 # This bug is HP SR number 8606223364.
16579 if test "$cross_compiling" = yes; then
16580 # Depending upon the size, compute the lo and hi bounds.
16581cat >conftest.$ac_ext <<_ACEOF
16582/* confdefs.h. */
16583_ACEOF
16584cat confdefs.h >>conftest.$ac_ext
16585cat >>conftest.$ac_ext <<_ACEOF
16586/* end confdefs.h. */
16587$ac_includes_default
16588int
16589main ()
16590{
16591static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
16592test_array [0] = 0
16593
16594 ;
16595 return 0;
16596}
16597_ACEOF
16598rm -f conftest.$ac_objext
16599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16600 (eval $ac_compile) 2>conftest.er1
a848cd7e 16601 ac_status=$?
ac1cb8d3
VS
16602 grep -v '^ *+' conftest.er1 >conftest.err
16603 rm -f conftest.er1
16604 cat conftest.err >&5
a848cd7e
SC
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); } &&
fb00f58d
JS
16607 { ac_try='test -z "$ac_c_werror_flag"
16608 || test ! -s conftest.err'
ac1cb8d3
VS
16609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16610 (eval $ac_try) 2>&5
16611 ac_status=$?
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); }; } &&
16614 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16616 (eval $ac_try) 2>&5
16617 ac_status=$?
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); }; }; then
16620 ac_lo=0 ac_mid=0
16621 while :; do
16622 cat >conftest.$ac_ext <<_ACEOF
16623/* confdefs.h. */
16624_ACEOF
16625cat confdefs.h >>conftest.$ac_ext
16626cat >>conftest.$ac_ext <<_ACEOF
16627/* end confdefs.h. */
16628$ac_includes_default
16629int
16630main ()
16631{
16632static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16633test_array [0] = 0
16634
16635 ;
16636 return 0;
16637}
16638_ACEOF
16639rm -f conftest.$ac_objext
16640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16641 (eval $ac_compile) 2>conftest.er1
a848cd7e 16642 ac_status=$?
ac1cb8d3
VS
16643 grep -v '^ *+' conftest.er1 >conftest.err
16644 rm -f conftest.er1
16645 cat conftest.err >&5
a848cd7e
SC
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); } &&
fb00f58d
JS
16648 { ac_try='test -z "$ac_c_werror_flag"
16649 || test ! -s conftest.err'
ac1cb8d3
VS
16650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16651 (eval $ac_try) 2>&5
16652 ac_status=$?
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); }; } &&
16655 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16657 (eval $ac_try) 2>&5
16658 ac_status=$?
16659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); }; }; then
16661 ac_hi=$ac_mid; break
16662else
16663 echo "$as_me: failed program was:" >&5
16664sed 's/^/| /' conftest.$ac_ext >&5
16665
16666ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16667 if test $ac_lo -le $ac_mid; then
16668 ac_lo= ac_hi=
16669 break
16670 fi
16671 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16672fi
ac1cb8d3 16673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16674 done
16675else
16676 echo "$as_me: failed program was:" >&5
16677sed 's/^/| /' conftest.$ac_ext >&5
16678
16679cat >conftest.$ac_ext <<_ACEOF
16680/* confdefs.h. */
16681_ACEOF
16682cat confdefs.h >>conftest.$ac_ext
16683cat >>conftest.$ac_ext <<_ACEOF
16684/* end confdefs.h. */
16685$ac_includes_default
16686int
16687main ()
16688{
16689static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
16690test_array [0] = 0
16691
16692 ;
16693 return 0;
16694}
16695_ACEOF
16696rm -f conftest.$ac_objext
16697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16698 (eval $ac_compile) 2>conftest.er1
a848cd7e 16699 ac_status=$?
ac1cb8d3
VS
16700 grep -v '^ *+' conftest.er1 >conftest.err
16701 rm -f conftest.er1
16702 cat conftest.err >&5
a848cd7e
SC
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); } &&
fb00f58d
JS
16705 { ac_try='test -z "$ac_c_werror_flag"
16706 || test ! -s conftest.err'
ac1cb8d3
VS
16707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16708 (eval $ac_try) 2>&5
16709 ac_status=$?
16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); }; } &&
16712 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16714 (eval $ac_try) 2>&5
16715 ac_status=$?
16716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717 (exit $ac_status); }; }; then
16718 ac_hi=-1 ac_mid=-1
16719 while :; do
16720 cat >conftest.$ac_ext <<_ACEOF
16721/* confdefs.h. */
16722_ACEOF
16723cat confdefs.h >>conftest.$ac_ext
16724cat >>conftest.$ac_ext <<_ACEOF
16725/* end confdefs.h. */
16726$ac_includes_default
16727int
16728main ()
16729{
16730static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
16731test_array [0] = 0
16732
16733 ;
16734 return 0;
16735}
16736_ACEOF
16737rm -f conftest.$ac_objext
16738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16739 (eval $ac_compile) 2>conftest.er1
a848cd7e 16740 ac_status=$?
ac1cb8d3
VS
16741 grep -v '^ *+' conftest.er1 >conftest.err
16742 rm -f conftest.er1
16743 cat conftest.err >&5
a848cd7e
SC
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); } &&
fb00f58d
JS
16746 { ac_try='test -z "$ac_c_werror_flag"
16747 || test ! -s conftest.err'
ac1cb8d3
VS
16748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16749 (eval $ac_try) 2>&5
16750 ac_status=$?
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); }; } &&
16753 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16755 (eval $ac_try) 2>&5
16756 ac_status=$?
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); }; }; then
16759 ac_lo=$ac_mid; break
16760else
16761 echo "$as_me: failed program was:" >&5
16762sed 's/^/| /' conftest.$ac_ext >&5
16763
16764ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16765 if test $ac_mid -le $ac_hi; then
16766 ac_lo= ac_hi=
16767 break
16768 fi
16769 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16770fi
ac1cb8d3 16771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16772 done
16773else
16774 echo "$as_me: failed program was:" >&5
16775sed 's/^/| /' conftest.$ac_ext >&5
16776
16777ac_lo= ac_hi=
16778fi
ac1cb8d3 16779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16780fi
ac1cb8d3 16781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16782# Binary search between lo and hi bounds.
16783while test "x$ac_lo" != "x$ac_hi"; do
16784 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16785 cat >conftest.$ac_ext <<_ACEOF
16786/* confdefs.h. */
16787_ACEOF
16788cat confdefs.h >>conftest.$ac_ext
16789cat >>conftest.$ac_ext <<_ACEOF
16790/* end confdefs.h. */
16791$ac_includes_default
16792int
16793main ()
16794{
16795static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
16796test_array [0] = 0
16797
16798 ;
16799 return 0;
16800}
16801_ACEOF
16802rm -f conftest.$ac_objext
16803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16804 (eval $ac_compile) 2>conftest.er1
a848cd7e 16805 ac_status=$?
ac1cb8d3
VS
16806 grep -v '^ *+' conftest.er1 >conftest.err
16807 rm -f conftest.er1
16808 cat conftest.err >&5
a848cd7e
SC
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); } &&
fb00f58d
JS
16811 { ac_try='test -z "$ac_c_werror_flag"
16812 || test ! -s conftest.err'
ac1cb8d3
VS
16813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16814 (eval $ac_try) 2>&5
16815 ac_status=$?
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); }; } &&
16818 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16820 (eval $ac_try) 2>&5
16821 ac_status=$?
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); }; }; then
16824 ac_hi=$ac_mid
16825else
16826 echo "$as_me: failed program was:" >&5
16827sed 's/^/| /' conftest.$ac_ext >&5
16828
16829ac_lo=`expr '(' $ac_mid ')' + 1`
16830fi
ac1cb8d3 16831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16832done
16833case $ac_lo in
16834?*) ac_cv_sizeof_void_p=$ac_lo;;
16835'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16836See \`config.log' for more details." >&5
16837echo "$as_me: error: cannot compute sizeof (void *), 77
16838See \`config.log' for more details." >&2;}
16839 { (exit 1); exit 1; }; } ;;
16840esac
16841else
16842 if test "$cross_compiling" = yes; then
fb00f58d
JS
16843 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16844See \`config.log' for more details." >&5
16845echo "$as_me: error: cannot run test program while cross compiling
16846See \`config.log' for more details." >&2;}
a848cd7e
SC
16847 { (exit 1); exit 1; }; }
16848else
16849 cat >conftest.$ac_ext <<_ACEOF
16850/* confdefs.h. */
16851_ACEOF
16852cat confdefs.h >>conftest.$ac_ext
16853cat >>conftest.$ac_ext <<_ACEOF
16854/* end confdefs.h. */
16855$ac_includes_default
16856long longval () { return (long) (sizeof (void *)); }
16857unsigned long ulongval () { return (long) (sizeof (void *)); }
16858#include <stdio.h>
16859#include <stdlib.h>
16860int
16861main ()
16862{
16863
16864 FILE *f = fopen ("conftest.val", "w");
16865 if (! f)
16866 exit (1);
16867 if (((long) (sizeof (void *))) < 0)
16868 {
16869 long i = longval ();
16870 if (i != ((long) (sizeof (void *))))
16871 exit (1);
16872 fprintf (f, "%ld\n", i);
16873 }
16874 else
16875 {
16876 unsigned long i = ulongval ();
16877 if (i != ((long) (sizeof (void *))))
16878 exit (1);
16879 fprintf (f, "%lu\n", i);
16880 }
16881 exit (ferror (f) || fclose (f) != 0);
16882
16883 ;
16884 return 0;
16885}
16886_ACEOF
16887rm -f conftest$ac_exeext
16888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16889 (eval $ac_link) 2>&5
16890 ac_status=$?
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16894 (eval $ac_try) 2>&5
16895 ac_status=$?
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); }; }; then
16898 ac_cv_sizeof_void_p=`cat conftest.val`
16899else
16900 echo "$as_me: program exited with status $ac_status" >&5
16901echo "$as_me: failed program was:" >&5
16902sed 's/^/| /' conftest.$ac_ext >&5
16903
16904( exit $ac_status )
16905{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
16906See \`config.log' for more details." >&5
16907echo "$as_me: error: cannot compute sizeof (void *), 77
16908See \`config.log' for more details." >&2;}
16909 { (exit 1); exit 1; }; }
16910fi
ac1cb8d3 16911rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16912fi
16913fi
16914rm -f conftest.val
16915else
16916 ac_cv_sizeof_void_p=0
16917fi
16918fi
16919echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
16920echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
16921cat >>confdefs.h <<_ACEOF
16922#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16923_ACEOF
16924
16925
16926echo "$as_me:$LINENO: checking for int" >&5
16927echo $ECHO_N "checking for int... $ECHO_C" >&6
16928if test "${ac_cv_type_int+set}" = set; then
16929 echo $ECHO_N "(cached) $ECHO_C" >&6
16930else
16931 cat >conftest.$ac_ext <<_ACEOF
16932/* confdefs.h. */
16933_ACEOF
16934cat confdefs.h >>conftest.$ac_ext
16935cat >>conftest.$ac_ext <<_ACEOF
16936/* end confdefs.h. */
16937$ac_includes_default
16938int
16939main ()
16940{
16941if ((int *) 0)
16942 return 0;
16943if (sizeof (int))
16944 return 0;
16945 ;
16946 return 0;
16947}
16948_ACEOF
16949rm -f conftest.$ac_objext
16950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16951 (eval $ac_compile) 2>conftest.er1
a848cd7e 16952 ac_status=$?
ac1cb8d3
VS
16953 grep -v '^ *+' conftest.er1 >conftest.err
16954 rm -f conftest.er1
16955 cat conftest.err >&5
a848cd7e
SC
16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957 (exit $ac_status); } &&
fb00f58d
JS
16958 { ac_try='test -z "$ac_c_werror_flag"
16959 || test ! -s conftest.err'
ac1cb8d3
VS
16960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16961 (eval $ac_try) 2>&5
16962 ac_status=$?
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); }; } &&
16965 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16967 (eval $ac_try) 2>&5
16968 ac_status=$?
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); }; }; then
16971 ac_cv_type_int=yes
16972else
16973 echo "$as_me: failed program was:" >&5
16974sed 's/^/| /' conftest.$ac_ext >&5
16975
16976ac_cv_type_int=no
16977fi
ac1cb8d3 16978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16979fi
16980echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
16981echo "${ECHO_T}$ac_cv_type_int" >&6
16982
16983echo "$as_me:$LINENO: checking size of int" >&5
16984echo $ECHO_N "checking size of int... $ECHO_C" >&6
16985if test "${ac_cv_sizeof_int+set}" = set; then
16986 echo $ECHO_N "(cached) $ECHO_C" >&6
16987else
16988 if test "$ac_cv_type_int" = yes; then
16989 # The cast to unsigned long works around a bug in the HP C Compiler
16990 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16991 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16992 # This bug is HP SR number 8606223364.
16993 if test "$cross_compiling" = yes; then
16994 # Depending upon the size, compute the lo and hi bounds.
16995cat >conftest.$ac_ext <<_ACEOF
16996/* confdefs.h. */
16997_ACEOF
16998cat confdefs.h >>conftest.$ac_ext
16999cat >>conftest.$ac_ext <<_ACEOF
17000/* end confdefs.h. */
17001$ac_includes_default
17002int
17003main ()
17004{
17005static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
17006test_array [0] = 0
17007
17008 ;
17009 return 0;
17010}
17011_ACEOF
17012rm -f conftest.$ac_objext
17013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17014 (eval $ac_compile) 2>conftest.er1
a848cd7e 17015 ac_status=$?
ac1cb8d3
VS
17016 grep -v '^ *+' conftest.er1 >conftest.err
17017 rm -f conftest.er1
17018 cat conftest.err >&5
a848cd7e
SC
17019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); } &&
fb00f58d
JS
17021 { ac_try='test -z "$ac_c_werror_flag"
17022 || test ! -s conftest.err'
ac1cb8d3
VS
17023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17024 (eval $ac_try) 2>&5
17025 ac_status=$?
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); }; } &&
17028 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17030 (eval $ac_try) 2>&5
17031 ac_status=$?
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); }; }; then
17034 ac_lo=0 ac_mid=0
17035 while :; do
17036 cat >conftest.$ac_ext <<_ACEOF
17037/* confdefs.h. */
17038_ACEOF
17039cat confdefs.h >>conftest.$ac_ext
17040cat >>conftest.$ac_ext <<_ACEOF
17041/* end confdefs.h. */
17042$ac_includes_default
17043int
17044main ()
17045{
17046static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17047test_array [0] = 0
17048
17049 ;
17050 return 0;
17051}
17052_ACEOF
17053rm -f conftest.$ac_objext
17054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17055 (eval $ac_compile) 2>conftest.er1
a848cd7e 17056 ac_status=$?
ac1cb8d3
VS
17057 grep -v '^ *+' conftest.er1 >conftest.err
17058 rm -f conftest.er1
17059 cat conftest.err >&5
a848cd7e
SC
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); } &&
fb00f58d
JS
17062 { ac_try='test -z "$ac_c_werror_flag"
17063 || test ! -s conftest.err'
ac1cb8d3
VS
17064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17065 (eval $ac_try) 2>&5
17066 ac_status=$?
17067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068 (exit $ac_status); }; } &&
17069 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17071 (eval $ac_try) 2>&5
17072 ac_status=$?
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); }; }; then
17075 ac_hi=$ac_mid; break
17076else
17077 echo "$as_me: failed program was:" >&5
17078sed 's/^/| /' conftest.$ac_ext >&5
17079
17080ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17081 if test $ac_lo -le $ac_mid; then
17082 ac_lo= ac_hi=
17083 break
17084 fi
17085 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17086fi
ac1cb8d3 17087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17088 done
17089else
17090 echo "$as_me: failed program was:" >&5
17091sed 's/^/| /' conftest.$ac_ext >&5
17092
17093cat >conftest.$ac_ext <<_ACEOF
17094/* confdefs.h. */
17095_ACEOF
17096cat confdefs.h >>conftest.$ac_ext
17097cat >>conftest.$ac_ext <<_ACEOF
17098/* end confdefs.h. */
17099$ac_includes_default
17100int
17101main ()
17102{
17103static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
17104test_array [0] = 0
17105
17106 ;
17107 return 0;
17108}
17109_ACEOF
17110rm -f conftest.$ac_objext
17111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17112 (eval $ac_compile) 2>conftest.er1
a848cd7e 17113 ac_status=$?
ac1cb8d3
VS
17114 grep -v '^ *+' conftest.er1 >conftest.err
17115 rm -f conftest.er1
17116 cat conftest.err >&5
a848cd7e
SC
17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); } &&
fb00f58d
JS
17119 { ac_try='test -z "$ac_c_werror_flag"
17120 || test ! -s conftest.err'
ac1cb8d3
VS
17121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17122 (eval $ac_try) 2>&5
17123 ac_status=$?
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); }; } &&
17126 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17128 (eval $ac_try) 2>&5
17129 ac_status=$?
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); }; }; then
17132 ac_hi=-1 ac_mid=-1
17133 while :; do
17134 cat >conftest.$ac_ext <<_ACEOF
17135/* confdefs.h. */
17136_ACEOF
17137cat confdefs.h >>conftest.$ac_ext
17138cat >>conftest.$ac_ext <<_ACEOF
17139/* end confdefs.h. */
17140$ac_includes_default
17141int
17142main ()
17143{
17144static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
17145test_array [0] = 0
17146
17147 ;
17148 return 0;
17149}
17150_ACEOF
17151rm -f conftest.$ac_objext
17152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17153 (eval $ac_compile) 2>conftest.er1
a848cd7e 17154 ac_status=$?
ac1cb8d3
VS
17155 grep -v '^ *+' conftest.er1 >conftest.err
17156 rm -f conftest.er1
17157 cat conftest.err >&5
a848cd7e
SC
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); } &&
fb00f58d
JS
17160 { ac_try='test -z "$ac_c_werror_flag"
17161 || test ! -s conftest.err'
ac1cb8d3
VS
17162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17163 (eval $ac_try) 2>&5
17164 ac_status=$?
17165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166 (exit $ac_status); }; } &&
17167 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17169 (eval $ac_try) 2>&5
17170 ac_status=$?
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); }; }; then
17173 ac_lo=$ac_mid; break
17174else
17175 echo "$as_me: failed program was:" >&5
17176sed 's/^/| /' conftest.$ac_ext >&5
17177
17178ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17179 if test $ac_mid -le $ac_hi; then
17180 ac_lo= ac_hi=
17181 break
17182 fi
17183 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17184fi
ac1cb8d3 17185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17186 done
17187else
17188 echo "$as_me: failed program was:" >&5
17189sed 's/^/| /' conftest.$ac_ext >&5
17190
17191ac_lo= ac_hi=
17192fi
ac1cb8d3 17193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17194fi
ac1cb8d3 17195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17196# Binary search between lo and hi bounds.
17197while test "x$ac_lo" != "x$ac_hi"; do
17198 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17199 cat >conftest.$ac_ext <<_ACEOF
17200/* confdefs.h. */
17201_ACEOF
17202cat confdefs.h >>conftest.$ac_ext
17203cat >>conftest.$ac_ext <<_ACEOF
17204/* end confdefs.h. */
17205$ac_includes_default
17206int
17207main ()
17208{
17209static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17210test_array [0] = 0
17211
17212 ;
17213 return 0;
17214}
17215_ACEOF
17216rm -f conftest.$ac_objext
17217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17218 (eval $ac_compile) 2>conftest.er1
a848cd7e 17219 ac_status=$?
ac1cb8d3
VS
17220 grep -v '^ *+' conftest.er1 >conftest.err
17221 rm -f conftest.er1
17222 cat conftest.err >&5
a848cd7e
SC
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); } &&
fb00f58d
JS
17225 { ac_try='test -z "$ac_c_werror_flag"
17226 || test ! -s conftest.err'
ac1cb8d3
VS
17227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17228 (eval $ac_try) 2>&5
17229 ac_status=$?
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); }; } &&
17232 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17234 (eval $ac_try) 2>&5
17235 ac_status=$?
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); }; }; then
17238 ac_hi=$ac_mid
17239else
17240 echo "$as_me: failed program was:" >&5
17241sed 's/^/| /' conftest.$ac_ext >&5
17242
17243ac_lo=`expr '(' $ac_mid ')' + 1`
17244fi
ac1cb8d3 17245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17246done
17247case $ac_lo in
17248?*) ac_cv_sizeof_int=$ac_lo;;
17249'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17250See \`config.log' for more details." >&5
17251echo "$as_me: error: cannot compute sizeof (int), 77
17252See \`config.log' for more details." >&2;}
17253 { (exit 1); exit 1; }; } ;;
17254esac
17255else
17256 if test "$cross_compiling" = yes; then
fb00f58d
JS
17257 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17258See \`config.log' for more details." >&5
17259echo "$as_me: error: cannot run test program while cross compiling
17260See \`config.log' for more details." >&2;}
a848cd7e
SC
17261 { (exit 1); exit 1; }; }
17262else
17263 cat >conftest.$ac_ext <<_ACEOF
17264/* confdefs.h. */
17265_ACEOF
17266cat confdefs.h >>conftest.$ac_ext
17267cat >>conftest.$ac_ext <<_ACEOF
17268/* end confdefs.h. */
17269$ac_includes_default
17270long longval () { return (long) (sizeof (int)); }
17271unsigned long ulongval () { return (long) (sizeof (int)); }
17272#include <stdio.h>
17273#include <stdlib.h>
17274int
17275main ()
17276{
17277
17278 FILE *f = fopen ("conftest.val", "w");
17279 if (! f)
17280 exit (1);
17281 if (((long) (sizeof (int))) < 0)
17282 {
17283 long i = longval ();
17284 if (i != ((long) (sizeof (int))))
17285 exit (1);
17286 fprintf (f, "%ld\n", i);
17287 }
17288 else
17289 {
17290 unsigned long i = ulongval ();
17291 if (i != ((long) (sizeof (int))))
17292 exit (1);
17293 fprintf (f, "%lu\n", i);
17294 }
17295 exit (ferror (f) || fclose (f) != 0);
17296
17297 ;
17298 return 0;
17299}
17300_ACEOF
17301rm -f conftest$ac_exeext
17302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17303 (eval $ac_link) 2>&5
17304 ac_status=$?
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17308 (eval $ac_try) 2>&5
17309 ac_status=$?
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); }; }; then
17312 ac_cv_sizeof_int=`cat conftest.val`
17313else
17314 echo "$as_me: program exited with status $ac_status" >&5
17315echo "$as_me: failed program was:" >&5
17316sed 's/^/| /' conftest.$ac_ext >&5
17317
17318( exit $ac_status )
17319{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17320See \`config.log' for more details." >&5
17321echo "$as_me: error: cannot compute sizeof (int), 77
17322See \`config.log' for more details." >&2;}
17323 { (exit 1); exit 1; }; }
17324fi
ac1cb8d3 17325rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17326fi
17327fi
17328rm -f conftest.val
17329else
17330 ac_cv_sizeof_int=0
17331fi
17332fi
17333echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17334echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17335cat >>confdefs.h <<_ACEOF
17336#define SIZEOF_INT $ac_cv_sizeof_int
17337_ACEOF
17338
17339
17340echo "$as_me:$LINENO: checking for long" >&5
17341echo $ECHO_N "checking for long... $ECHO_C" >&6
17342if test "${ac_cv_type_long+set}" = set; then
17343 echo $ECHO_N "(cached) $ECHO_C" >&6
17344else
17345 cat >conftest.$ac_ext <<_ACEOF
17346/* confdefs.h. */
17347_ACEOF
17348cat confdefs.h >>conftest.$ac_ext
17349cat >>conftest.$ac_ext <<_ACEOF
17350/* end confdefs.h. */
17351$ac_includes_default
17352int
17353main ()
17354{
17355if ((long *) 0)
17356 return 0;
17357if (sizeof (long))
17358 return 0;
17359 ;
17360 return 0;
17361}
17362_ACEOF
17363rm -f conftest.$ac_objext
17364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17365 (eval $ac_compile) 2>conftest.er1
a848cd7e 17366 ac_status=$?
ac1cb8d3
VS
17367 grep -v '^ *+' conftest.er1 >conftest.err
17368 rm -f conftest.er1
17369 cat conftest.err >&5
a848cd7e
SC
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); } &&
fb00f58d
JS
17372 { ac_try='test -z "$ac_c_werror_flag"
17373 || test ! -s conftest.err'
ac1cb8d3
VS
17374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17375 (eval $ac_try) 2>&5
17376 ac_status=$?
17377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378 (exit $ac_status); }; } &&
17379 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17381 (eval $ac_try) 2>&5
17382 ac_status=$?
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); }; }; then
17385 ac_cv_type_long=yes
17386else
17387 echo "$as_me: failed program was:" >&5
17388sed 's/^/| /' conftest.$ac_ext >&5
17389
17390ac_cv_type_long=no
17391fi
ac1cb8d3 17392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17393fi
17394echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17395echo "${ECHO_T}$ac_cv_type_long" >&6
17396
17397echo "$as_me:$LINENO: checking size of long" >&5
17398echo $ECHO_N "checking size of long... $ECHO_C" >&6
17399if test "${ac_cv_sizeof_long+set}" = set; then
17400 echo $ECHO_N "(cached) $ECHO_C" >&6
17401else
17402 if test "$ac_cv_type_long" = yes; then
17403 # The cast to unsigned long works around a bug in the HP C Compiler
17404 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17405 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17406 # This bug is HP SR number 8606223364.
17407 if test "$cross_compiling" = yes; then
17408 # Depending upon the size, compute the lo and hi bounds.
17409cat >conftest.$ac_ext <<_ACEOF
17410/* confdefs.h. */
17411_ACEOF
17412cat confdefs.h >>conftest.$ac_ext
17413cat >>conftest.$ac_ext <<_ACEOF
17414/* end confdefs.h. */
17415$ac_includes_default
17416int
17417main ()
17418{
17419static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17420test_array [0] = 0
17421
17422 ;
17423 return 0;
17424}
17425_ACEOF
17426rm -f conftest.$ac_objext
17427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17428 (eval $ac_compile) 2>conftest.er1
a848cd7e 17429 ac_status=$?
ac1cb8d3
VS
17430 grep -v '^ *+' conftest.er1 >conftest.err
17431 rm -f conftest.er1
17432 cat conftest.err >&5
a848cd7e
SC
17433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434 (exit $ac_status); } &&
fb00f58d
JS
17435 { ac_try='test -z "$ac_c_werror_flag"
17436 || test ! -s conftest.err'
ac1cb8d3
VS
17437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17438 (eval $ac_try) 2>&5
17439 ac_status=$?
17440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441 (exit $ac_status); }; } &&
17442 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17444 (eval $ac_try) 2>&5
17445 ac_status=$?
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); }; }; then
17448 ac_lo=0 ac_mid=0
17449 while :; do
17450 cat >conftest.$ac_ext <<_ACEOF
17451/* confdefs.h. */
17452_ACEOF
17453cat confdefs.h >>conftest.$ac_ext
17454cat >>conftest.$ac_ext <<_ACEOF
17455/* end confdefs.h. */
17456$ac_includes_default
17457int
17458main ()
17459{
17460static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17461test_array [0] = 0
17462
17463 ;
17464 return 0;
17465}
17466_ACEOF
17467rm -f conftest.$ac_objext
17468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17469 (eval $ac_compile) 2>conftest.er1
a848cd7e 17470 ac_status=$?
ac1cb8d3
VS
17471 grep -v '^ *+' conftest.er1 >conftest.err
17472 rm -f conftest.er1
17473 cat conftest.err >&5
a848cd7e
SC
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); } &&
fb00f58d
JS
17476 { ac_try='test -z "$ac_c_werror_flag"
17477 || test ! -s conftest.err'
ac1cb8d3
VS
17478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17479 (eval $ac_try) 2>&5
17480 ac_status=$?
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); }; } &&
17483 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17485 (eval $ac_try) 2>&5
17486 ac_status=$?
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); }; }; then
17489 ac_hi=$ac_mid; break
17490else
17491 echo "$as_me: failed program was:" >&5
17492sed 's/^/| /' conftest.$ac_ext >&5
17493
17494ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17495 if test $ac_lo -le $ac_mid; then
17496 ac_lo= ac_hi=
17497 break
17498 fi
17499 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17500fi
ac1cb8d3 17501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17502 done
17503else
17504 echo "$as_me: failed program was:" >&5
17505sed 's/^/| /' conftest.$ac_ext >&5
17506
17507cat >conftest.$ac_ext <<_ACEOF
17508/* confdefs.h. */
17509_ACEOF
17510cat confdefs.h >>conftest.$ac_ext
17511cat >>conftest.$ac_ext <<_ACEOF
17512/* end confdefs.h. */
17513$ac_includes_default
17514int
17515main ()
17516{
17517static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17518test_array [0] = 0
17519
17520 ;
17521 return 0;
17522}
17523_ACEOF
17524rm -f conftest.$ac_objext
17525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17526 (eval $ac_compile) 2>conftest.er1
a848cd7e 17527 ac_status=$?
ac1cb8d3
VS
17528 grep -v '^ *+' conftest.er1 >conftest.err
17529 rm -f conftest.er1
17530 cat conftest.err >&5
a848cd7e
SC
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); } &&
fb00f58d
JS
17533 { ac_try='test -z "$ac_c_werror_flag"
17534 || test ! -s conftest.err'
ac1cb8d3
VS
17535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17536 (eval $ac_try) 2>&5
17537 ac_status=$?
17538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539 (exit $ac_status); }; } &&
17540 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17542 (eval $ac_try) 2>&5
17543 ac_status=$?
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); }; }; then
17546 ac_hi=-1 ac_mid=-1
17547 while :; do
17548 cat >conftest.$ac_ext <<_ACEOF
17549/* confdefs.h. */
17550_ACEOF
17551cat confdefs.h >>conftest.$ac_ext
17552cat >>conftest.$ac_ext <<_ACEOF
17553/* end confdefs.h. */
17554$ac_includes_default
17555int
17556main ()
17557{
17558static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17559test_array [0] = 0
17560
17561 ;
17562 return 0;
17563}
17564_ACEOF
17565rm -f conftest.$ac_objext
17566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17567 (eval $ac_compile) 2>conftest.er1
a848cd7e 17568 ac_status=$?
ac1cb8d3
VS
17569 grep -v '^ *+' conftest.er1 >conftest.err
17570 rm -f conftest.er1
17571 cat conftest.err >&5
a848cd7e
SC
17572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 (exit $ac_status); } &&
fb00f58d
JS
17574 { ac_try='test -z "$ac_c_werror_flag"
17575 || test ! -s conftest.err'
ac1cb8d3
VS
17576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17577 (eval $ac_try) 2>&5
17578 ac_status=$?
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); }; } &&
17581 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17583 (eval $ac_try) 2>&5
17584 ac_status=$?
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); }; }; then
17587 ac_lo=$ac_mid; break
17588else
17589 echo "$as_me: failed program was:" >&5
17590sed 's/^/| /' conftest.$ac_ext >&5
17591
17592ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17593 if test $ac_mid -le $ac_hi; then
17594 ac_lo= ac_hi=
17595 break
17596 fi
17597 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17598fi
ac1cb8d3 17599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17600 done
17601else
17602 echo "$as_me: failed program was:" >&5
17603sed 's/^/| /' conftest.$ac_ext >&5
17604
17605ac_lo= ac_hi=
17606fi
ac1cb8d3 17607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17608fi
ac1cb8d3 17609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17610# Binary search between lo and hi bounds.
17611while test "x$ac_lo" != "x$ac_hi"; do
17612 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17613 cat >conftest.$ac_ext <<_ACEOF
17614/* confdefs.h. */
17615_ACEOF
17616cat confdefs.h >>conftest.$ac_ext
17617cat >>conftest.$ac_ext <<_ACEOF
17618/* end confdefs.h. */
17619$ac_includes_default
17620int
17621main ()
17622{
17623static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17624test_array [0] = 0
17625
17626 ;
17627 return 0;
17628}
17629_ACEOF
17630rm -f conftest.$ac_objext
17631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17632 (eval $ac_compile) 2>conftest.er1
a848cd7e 17633 ac_status=$?
ac1cb8d3
VS
17634 grep -v '^ *+' conftest.er1 >conftest.err
17635 rm -f conftest.er1
17636 cat conftest.err >&5
a848cd7e
SC
17637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638 (exit $ac_status); } &&
fb00f58d
JS
17639 { ac_try='test -z "$ac_c_werror_flag"
17640 || test ! -s conftest.err'
ac1cb8d3
VS
17641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17642 (eval $ac_try) 2>&5
17643 ac_status=$?
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); }; } &&
17646 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17648 (eval $ac_try) 2>&5
17649 ac_status=$?
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); }; }; then
17652 ac_hi=$ac_mid
17653else
17654 echo "$as_me: failed program was:" >&5
17655sed 's/^/| /' conftest.$ac_ext >&5
17656
17657ac_lo=`expr '(' $ac_mid ')' + 1`
17658fi
ac1cb8d3 17659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17660done
17661case $ac_lo in
17662?*) ac_cv_sizeof_long=$ac_lo;;
17663'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17664See \`config.log' for more details." >&5
17665echo "$as_me: error: cannot compute sizeof (long), 77
17666See \`config.log' for more details." >&2;}
17667 { (exit 1); exit 1; }; } ;;
17668esac
17669else
17670 if test "$cross_compiling" = yes; then
fb00f58d
JS
17671 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17672See \`config.log' for more details." >&5
17673echo "$as_me: error: cannot run test program while cross compiling
17674See \`config.log' for more details." >&2;}
a848cd7e
SC
17675 { (exit 1); exit 1; }; }
17676else
17677 cat >conftest.$ac_ext <<_ACEOF
17678/* confdefs.h. */
17679_ACEOF
17680cat confdefs.h >>conftest.$ac_ext
17681cat >>conftest.$ac_ext <<_ACEOF
17682/* end confdefs.h. */
17683$ac_includes_default
17684long longval () { return (long) (sizeof (long)); }
17685unsigned long ulongval () { return (long) (sizeof (long)); }
17686#include <stdio.h>
17687#include <stdlib.h>
17688int
17689main ()
17690{
17691
17692 FILE *f = fopen ("conftest.val", "w");
17693 if (! f)
17694 exit (1);
17695 if (((long) (sizeof (long))) < 0)
17696 {
17697 long i = longval ();
17698 if (i != ((long) (sizeof (long))))
17699 exit (1);
17700 fprintf (f, "%ld\n", i);
17701 }
17702 else
17703 {
17704 unsigned long i = ulongval ();
17705 if (i != ((long) (sizeof (long))))
17706 exit (1);
17707 fprintf (f, "%lu\n", i);
17708 }
17709 exit (ferror (f) || fclose (f) != 0);
17710
17711 ;
17712 return 0;
17713}
17714_ACEOF
17715rm -f conftest$ac_exeext
17716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17717 (eval $ac_link) 2>&5
17718 ac_status=$?
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_long=`cat conftest.val`
17727else
17728 echo "$as_me: program exited with status $ac_status" >&5
17729echo "$as_me: failed program was:" >&5
17730sed 's/^/| /' conftest.$ac_ext >&5
17731
17732( exit $ac_status )
17733{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17734See \`config.log' for more details." >&5
17735echo "$as_me: error: cannot compute sizeof (long), 77
17736See \`config.log' for more details." >&2;}
17737 { (exit 1); exit 1; }; }
17738fi
ac1cb8d3 17739rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17740fi
17741fi
17742rm -f conftest.val
17743else
17744 ac_cv_sizeof_long=0
17745fi
17746fi
17747echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17748echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17749cat >>confdefs.h <<_ACEOF
17750#define SIZEOF_LONG $ac_cv_sizeof_long
17751_ACEOF
17752
17753
17754echo "$as_me:$LINENO: checking for size_t" >&5
17755echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17756if test "${ac_cv_type_size_t+set}" = set; then
17757 echo $ECHO_N "(cached) $ECHO_C" >&6
17758else
17759 cat >conftest.$ac_ext <<_ACEOF
17760/* confdefs.h. */
17761_ACEOF
17762cat confdefs.h >>conftest.$ac_ext
17763cat >>conftest.$ac_ext <<_ACEOF
17764/* end confdefs.h. */
17765$ac_includes_default
17766int
17767main ()
17768{
17769if ((size_t *) 0)
17770 return 0;
17771if (sizeof (size_t))
17772 return 0;
17773 ;
17774 return 0;
17775}
17776_ACEOF
17777rm -f conftest.$ac_objext
17778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17779 (eval $ac_compile) 2>conftest.er1
a848cd7e 17780 ac_status=$?
ac1cb8d3
VS
17781 grep -v '^ *+' conftest.er1 >conftest.err
17782 rm -f conftest.er1
17783 cat conftest.err >&5
a848cd7e
SC
17784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785 (exit $ac_status); } &&
fb00f58d
JS
17786 { ac_try='test -z "$ac_c_werror_flag"
17787 || test ! -s conftest.err'
ac1cb8d3
VS
17788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17789 (eval $ac_try) 2>&5
17790 ac_status=$?
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); }; } &&
17793 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17795 (eval $ac_try) 2>&5
17796 ac_status=$?
17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798 (exit $ac_status); }; }; then
17799 ac_cv_type_size_t=yes
17800else
17801 echo "$as_me: failed program was:" >&5
17802sed 's/^/| /' conftest.$ac_ext >&5
17803
17804ac_cv_type_size_t=no
17805fi
ac1cb8d3 17806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17807fi
17808echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17809echo "${ECHO_T}$ac_cv_type_size_t" >&6
17810
17811echo "$as_me:$LINENO: checking size of size_t" >&5
17812echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
17813if test "${ac_cv_sizeof_size_t+set}" = set; then
17814 echo $ECHO_N "(cached) $ECHO_C" >&6
17815else
17816 if test "$ac_cv_type_size_t" = yes; then
17817 # The cast to unsigned long works around a bug in the HP C Compiler
17818 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17819 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17820 # This bug is HP SR number 8606223364.
17821 if test "$cross_compiling" = yes; then
17822 # Depending upon the size, compute the lo and hi bounds.
17823cat >conftest.$ac_ext <<_ACEOF
17824/* confdefs.h. */
17825_ACEOF
17826cat confdefs.h >>conftest.$ac_ext
17827cat >>conftest.$ac_ext <<_ACEOF
17828/* end confdefs.h. */
17829$ac_includes_default
17830int
17831main ()
17832{
17833static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
17834test_array [0] = 0
17835
17836 ;
17837 return 0;
17838}
17839_ACEOF
17840rm -f conftest.$ac_objext
17841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17842 (eval $ac_compile) 2>conftest.er1
a848cd7e 17843 ac_status=$?
ac1cb8d3
VS
17844 grep -v '^ *+' conftest.er1 >conftest.err
17845 rm -f conftest.er1
17846 cat conftest.err >&5
a848cd7e
SC
17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); } &&
fb00f58d
JS
17849 { ac_try='test -z "$ac_c_werror_flag"
17850 || 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=0 ac_mid=0
17863 while :; do
17864 cat >conftest.$ac_ext <<_ACEOF
17865/* confdefs.h. */
17866_ACEOF
17867cat confdefs.h >>conftest.$ac_ext
17868cat >>conftest.$ac_ext <<_ACEOF
17869/* end confdefs.h. */
17870$ac_includes_default
17871int
17872main ()
17873{
17874static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
17875test_array [0] = 0
17876
17877 ;
17878 return 0;
17879}
17880_ACEOF
17881rm -f conftest.$ac_objext
17882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17883 (eval $ac_compile) 2>conftest.er1
a848cd7e 17884 ac_status=$?
ac1cb8d3
VS
17885 grep -v '^ *+' conftest.er1 >conftest.err
17886 rm -f conftest.er1
17887 cat conftest.err >&5
a848cd7e
SC
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); } &&
fb00f58d
JS
17890 { ac_try='test -z "$ac_c_werror_flag"
17891 || test ! -s conftest.err'
ac1cb8d3
VS
17892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17893 (eval $ac_try) 2>&5
17894 ac_status=$?
17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896 (exit $ac_status); }; } &&
17897 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17899 (eval $ac_try) 2>&5
17900 ac_status=$?
17901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902 (exit $ac_status); }; }; then
17903 ac_hi=$ac_mid; break
17904else
17905 echo "$as_me: failed program was:" >&5
17906sed 's/^/| /' conftest.$ac_ext >&5
17907
17908ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17909 if test $ac_lo -le $ac_mid; then
17910 ac_lo= ac_hi=
17911 break
17912 fi
17913 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17914fi
ac1cb8d3 17915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17916 done
17917else
17918 echo "$as_me: failed program was:" >&5
17919sed 's/^/| /' conftest.$ac_ext >&5
17920
17921cat >conftest.$ac_ext <<_ACEOF
17922/* confdefs.h. */
17923_ACEOF
17924cat confdefs.h >>conftest.$ac_ext
17925cat >>conftest.$ac_ext <<_ACEOF
17926/* end confdefs.h. */
17927$ac_includes_default
17928int
17929main ()
17930{
17931static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
17932test_array [0] = 0
17933
17934 ;
17935 return 0;
17936}
17937_ACEOF
17938rm -f conftest.$ac_objext
17939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17940 (eval $ac_compile) 2>conftest.er1
a848cd7e 17941 ac_status=$?
ac1cb8d3
VS
17942 grep -v '^ *+' conftest.er1 >conftest.err
17943 rm -f conftest.er1
17944 cat conftest.err >&5
a848cd7e
SC
17945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946 (exit $ac_status); } &&
fb00f58d
JS
17947 { ac_try='test -z "$ac_c_werror_flag"
17948 || test ! -s conftest.err'
ac1cb8d3
VS
17949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17950 (eval $ac_try) 2>&5
17951 ac_status=$?
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); }; } &&
17954 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17956 (eval $ac_try) 2>&5
17957 ac_status=$?
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); }; }; then
17960 ac_hi=-1 ac_mid=-1
17961 while :; do
17962 cat >conftest.$ac_ext <<_ACEOF
17963/* confdefs.h. */
17964_ACEOF
17965cat confdefs.h >>conftest.$ac_ext
17966cat >>conftest.$ac_ext <<_ACEOF
17967/* end confdefs.h. */
17968$ac_includes_default
17969int
17970main ()
17971{
17972static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
17973test_array [0] = 0
17974
17975 ;
17976 return 0;
17977}
17978_ACEOF
17979rm -f conftest.$ac_objext
17980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17981 (eval $ac_compile) 2>conftest.er1
a848cd7e 17982 ac_status=$?
ac1cb8d3
VS
17983 grep -v '^ *+' conftest.er1 >conftest.err
17984 rm -f conftest.er1
17985 cat conftest.err >&5
a848cd7e
SC
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); } &&
fb00f58d
JS
17988 { ac_try='test -z "$ac_c_werror_flag"
17989 || test ! -s conftest.err'
ac1cb8d3
VS
17990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17991 (eval $ac_try) 2>&5
17992 ac_status=$?
17993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994 (exit $ac_status); }; } &&
17995 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17997 (eval $ac_try) 2>&5
17998 ac_status=$?
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); }; }; then
18001 ac_lo=$ac_mid; break
18002else
18003 echo "$as_me: failed program was:" >&5
18004sed 's/^/| /' conftest.$ac_ext >&5
18005
18006ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18007 if test $ac_mid -le $ac_hi; then
18008 ac_lo= ac_hi=
18009 break
18010 fi
18011 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18012fi
ac1cb8d3 18013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18014 done
18015else
18016 echo "$as_me: failed program was:" >&5
18017sed 's/^/| /' conftest.$ac_ext >&5
18018
18019ac_lo= ac_hi=
18020fi
ac1cb8d3 18021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18022fi
ac1cb8d3 18023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18024# Binary search between lo and hi bounds.
18025while test "x$ac_lo" != "x$ac_hi"; do
18026 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18027 cat >conftest.$ac_ext <<_ACEOF
18028/* confdefs.h. */
18029_ACEOF
18030cat confdefs.h >>conftest.$ac_ext
18031cat >>conftest.$ac_ext <<_ACEOF
18032/* end confdefs.h. */
18033$ac_includes_default
18034int
18035main ()
18036{
18037static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18038test_array [0] = 0
18039
18040 ;
18041 return 0;
18042}
18043_ACEOF
18044rm -f conftest.$ac_objext
18045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18046 (eval $ac_compile) 2>conftest.er1
a848cd7e 18047 ac_status=$?
ac1cb8d3
VS
18048 grep -v '^ *+' conftest.er1 >conftest.err
18049 rm -f conftest.er1
18050 cat conftest.err >&5
a848cd7e
SC
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); } &&
fb00f58d
JS
18053 { ac_try='test -z "$ac_c_werror_flag"
18054 || test ! -s conftest.err'
ac1cb8d3
VS
18055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18056 (eval $ac_try) 2>&5
18057 ac_status=$?
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); }; } &&
18060 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18062 (eval $ac_try) 2>&5
18063 ac_status=$?
18064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065 (exit $ac_status); }; }; then
18066 ac_hi=$ac_mid
18067else
18068 echo "$as_me: failed program was:" >&5
18069sed 's/^/| /' conftest.$ac_ext >&5
18070
18071ac_lo=`expr '(' $ac_mid ')' + 1`
18072fi
ac1cb8d3 18073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18074done
18075case $ac_lo in
18076?*) ac_cv_sizeof_size_t=$ac_lo;;
18077'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18078See \`config.log' for more details." >&5
18079echo "$as_me: error: cannot compute sizeof (size_t), 77
18080See \`config.log' for more details." >&2;}
18081 { (exit 1); exit 1; }; } ;;
18082esac
18083else
18084 if test "$cross_compiling" = yes; then
fb00f58d
JS
18085 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18086See \`config.log' for more details." >&5
18087echo "$as_me: error: cannot run test program while cross compiling
18088See \`config.log' for more details." >&2;}
a848cd7e
SC
18089 { (exit 1); exit 1; }; }
18090else
18091 cat >conftest.$ac_ext <<_ACEOF
18092/* confdefs.h. */
18093_ACEOF
18094cat confdefs.h >>conftest.$ac_ext
18095cat >>conftest.$ac_ext <<_ACEOF
18096/* end confdefs.h. */
18097$ac_includes_default
18098long longval () { return (long) (sizeof (size_t)); }
18099unsigned long ulongval () { return (long) (sizeof (size_t)); }
18100#include <stdio.h>
18101#include <stdlib.h>
18102int
18103main ()
18104{
18105
18106 FILE *f = fopen ("conftest.val", "w");
18107 if (! f)
18108 exit (1);
18109 if (((long) (sizeof (size_t))) < 0)
18110 {
18111 long i = longval ();
18112 if (i != ((long) (sizeof (size_t))))
18113 exit (1);
18114 fprintf (f, "%ld\n", i);
18115 }
18116 else
18117 {
18118 unsigned long i = ulongval ();
18119 if (i != ((long) (sizeof (size_t))))
18120 exit (1);
18121 fprintf (f, "%lu\n", i);
18122 }
18123 exit (ferror (f) || fclose (f) != 0);
18124
18125 ;
18126 return 0;
18127}
18128_ACEOF
18129rm -f conftest$ac_exeext
18130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18131 (eval $ac_link) 2>&5
18132 ac_status=$?
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18136 (eval $ac_try) 2>&5
18137 ac_status=$?
18138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139 (exit $ac_status); }; }; then
18140 ac_cv_sizeof_size_t=`cat conftest.val`
18141else
18142 echo "$as_me: program exited with status $ac_status" >&5
18143echo "$as_me: failed program was:" >&5
18144sed 's/^/| /' conftest.$ac_ext >&5
18145
18146( exit $ac_status )
18147{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
18148See \`config.log' for more details." >&5
18149echo "$as_me: error: cannot compute sizeof (size_t), 77
18150See \`config.log' for more details." >&2;}
18151 { (exit 1); exit 1; }; }
18152fi
ac1cb8d3 18153rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18154fi
18155fi
18156rm -f conftest.val
18157else
18158 ac_cv_sizeof_size_t=0
18159fi
18160fi
18161echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
18162echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
18163cat >>confdefs.h <<_ACEOF
18164#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
18165_ACEOF
18166
18167
18168
18169case "${host}" in
18170 arm-*-linux* )
18171 echo "$as_me:$LINENO: checking for long long" >&5
18172echo $ECHO_N "checking for long long... $ECHO_C" >&6
18173if test "${ac_cv_type_long_long+set}" = set; then
18174 echo $ECHO_N "(cached) $ECHO_C" >&6
18175else
18176 cat >conftest.$ac_ext <<_ACEOF
18177/* confdefs.h. */
18178_ACEOF
18179cat confdefs.h >>conftest.$ac_ext
18180cat >>conftest.$ac_ext <<_ACEOF
18181/* end confdefs.h. */
18182$ac_includes_default
18183int
18184main ()
18185{
18186if ((long long *) 0)
18187 return 0;
18188if (sizeof (long long))
18189 return 0;
18190 ;
18191 return 0;
18192}
18193_ACEOF
18194rm -f conftest.$ac_objext
18195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18196 (eval $ac_compile) 2>conftest.er1
a848cd7e 18197 ac_status=$?
ac1cb8d3
VS
18198 grep -v '^ *+' conftest.er1 >conftest.err
18199 rm -f conftest.er1
18200 cat conftest.err >&5
a848cd7e
SC
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); } &&
fb00f58d
JS
18203 { ac_try='test -z "$ac_c_werror_flag"
18204 || test ! -s conftest.err'
ac1cb8d3
VS
18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206 (eval $ac_try) 2>&5
18207 ac_status=$?
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; } &&
18210 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18212 (eval $ac_try) 2>&5
18213 ac_status=$?
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); }; }; then
18216 ac_cv_type_long_long=yes
18217else
18218 echo "$as_me: failed program was:" >&5
18219sed 's/^/| /' conftest.$ac_ext >&5
18220
18221ac_cv_type_long_long=no
18222fi
ac1cb8d3 18223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18224fi
18225echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18226echo "${ECHO_T}$ac_cv_type_long_long" >&6
18227
18228echo "$as_me:$LINENO: checking size of long long" >&5
18229echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18230if test "${ac_cv_sizeof_long_long+set}" = set; then
18231 echo $ECHO_N "(cached) $ECHO_C" >&6
18232else
18233 if test "$ac_cv_type_long_long" = yes; then
18234 # The cast to unsigned long works around a bug in the HP C Compiler
18235 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18236 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18237 # This bug is HP SR number 8606223364.
18238 if test "$cross_compiling" = yes; then
18239 # Depending upon the size, compute the lo and hi bounds.
18240cat >conftest.$ac_ext <<_ACEOF
18241/* confdefs.h. */
18242_ACEOF
18243cat confdefs.h >>conftest.$ac_ext
18244cat >>conftest.$ac_ext <<_ACEOF
18245/* end confdefs.h. */
18246$ac_includes_default
18247int
18248main ()
18249{
18250static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18251test_array [0] = 0
18252
18253 ;
18254 return 0;
18255}
18256_ACEOF
18257rm -f conftest.$ac_objext
18258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18259 (eval $ac_compile) 2>conftest.er1
a848cd7e 18260 ac_status=$?
ac1cb8d3
VS
18261 grep -v '^ *+' conftest.er1 >conftest.err
18262 rm -f conftest.er1
18263 cat conftest.err >&5
a848cd7e
SC
18264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); } &&
fb00f58d
JS
18266 { ac_try='test -z "$ac_c_werror_flag"
18267 || test ! -s conftest.err'
ac1cb8d3
VS
18268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18269 (eval $ac_try) 2>&5
18270 ac_status=$?
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); }; } &&
18273 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18275 (eval $ac_try) 2>&5
18276 ac_status=$?
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); }; }; then
18279 ac_lo=0 ac_mid=0
18280 while :; do
18281 cat >conftest.$ac_ext <<_ACEOF
18282/* confdefs.h. */
18283_ACEOF
18284cat confdefs.h >>conftest.$ac_ext
18285cat >>conftest.$ac_ext <<_ACEOF
18286/* end confdefs.h. */
18287$ac_includes_default
18288int
18289main ()
18290{
18291static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18292test_array [0] = 0
18293
18294 ;
18295 return 0;
18296}
18297_ACEOF
18298rm -f conftest.$ac_objext
18299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18300 (eval $ac_compile) 2>conftest.er1
a848cd7e 18301 ac_status=$?
ac1cb8d3
VS
18302 grep -v '^ *+' conftest.er1 >conftest.err
18303 rm -f conftest.er1
18304 cat conftest.err >&5
a848cd7e
SC
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); } &&
fb00f58d
JS
18307 { ac_try='test -z "$ac_c_werror_flag"
18308 || test ! -s conftest.err'
ac1cb8d3
VS
18309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18310 (eval $ac_try) 2>&5
18311 ac_status=$?
18312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313 (exit $ac_status); }; } &&
18314 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18316 (eval $ac_try) 2>&5
18317 ac_status=$?
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); }; }; then
18320 ac_hi=$ac_mid; break
18321else
18322 echo "$as_me: failed program was:" >&5
18323sed 's/^/| /' conftest.$ac_ext >&5
18324
18325ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18326 if test $ac_lo -le $ac_mid; then
18327 ac_lo= ac_hi=
18328 break
18329 fi
18330 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18331fi
ac1cb8d3 18332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18333 done
18334else
18335 echo "$as_me: failed program was:" >&5
18336sed 's/^/| /' conftest.$ac_ext >&5
18337
18338cat >conftest.$ac_ext <<_ACEOF
18339/* confdefs.h. */
18340_ACEOF
18341cat confdefs.h >>conftest.$ac_ext
18342cat >>conftest.$ac_ext <<_ACEOF
18343/* end confdefs.h. */
18344$ac_includes_default
18345int
18346main ()
18347{
18348static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18349test_array [0] = 0
18350
18351 ;
18352 return 0;
18353}
18354_ACEOF
18355rm -f conftest.$ac_objext
18356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18357 (eval $ac_compile) 2>conftest.er1
a848cd7e 18358 ac_status=$?
ac1cb8d3
VS
18359 grep -v '^ *+' conftest.er1 >conftest.err
18360 rm -f conftest.er1
18361 cat conftest.err >&5
a848cd7e
SC
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); } &&
fb00f58d
JS
18364 { ac_try='test -z "$ac_c_werror_flag"
18365 || test ! -s conftest.err'
ac1cb8d3
VS
18366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18367 (eval $ac_try) 2>&5
18368 ac_status=$?
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); }; } &&
18371 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18373 (eval $ac_try) 2>&5
18374 ac_status=$?
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); }; }; then
18377 ac_hi=-1 ac_mid=-1
18378 while :; do
18379 cat >conftest.$ac_ext <<_ACEOF
18380/* confdefs.h. */
18381_ACEOF
18382cat confdefs.h >>conftest.$ac_ext
18383cat >>conftest.$ac_ext <<_ACEOF
18384/* end confdefs.h. */
18385$ac_includes_default
18386int
18387main ()
18388{
18389static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18390test_array [0] = 0
18391
18392 ;
18393 return 0;
18394}
18395_ACEOF
18396rm -f conftest.$ac_objext
18397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18398 (eval $ac_compile) 2>conftest.er1
a848cd7e 18399 ac_status=$?
ac1cb8d3
VS
18400 grep -v '^ *+' conftest.er1 >conftest.err
18401 rm -f conftest.er1
18402 cat conftest.err >&5
a848cd7e
SC
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); } &&
fb00f58d
JS
18405 { ac_try='test -z "$ac_c_werror_flag"
18406 || test ! -s conftest.err'
ac1cb8d3
VS
18407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18408 (eval $ac_try) 2>&5
18409 ac_status=$?
18410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411 (exit $ac_status); }; } &&
18412 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18414 (eval $ac_try) 2>&5
18415 ac_status=$?
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); }; }; then
18418 ac_lo=$ac_mid; break
18419else
18420 echo "$as_me: failed program was:" >&5
18421sed 's/^/| /' conftest.$ac_ext >&5
18422
18423ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18424 if test $ac_mid -le $ac_hi; then
18425 ac_lo= ac_hi=
18426 break
18427 fi
18428 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18429fi
ac1cb8d3 18430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18431 done
18432else
18433 echo "$as_me: failed program was:" >&5
18434sed 's/^/| /' conftest.$ac_ext >&5
18435
18436ac_lo= ac_hi=
18437fi
ac1cb8d3 18438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18439fi
ac1cb8d3 18440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18441# Binary search between lo and hi bounds.
18442while test "x$ac_lo" != "x$ac_hi"; do
18443 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18444 cat >conftest.$ac_ext <<_ACEOF
18445/* confdefs.h. */
18446_ACEOF
18447cat confdefs.h >>conftest.$ac_ext
18448cat >>conftest.$ac_ext <<_ACEOF
18449/* end confdefs.h. */
18450$ac_includes_default
18451int
18452main ()
18453{
18454static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18455test_array [0] = 0
18456
18457 ;
18458 return 0;
18459}
18460_ACEOF
18461rm -f conftest.$ac_objext
18462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18463 (eval $ac_compile) 2>conftest.er1
a848cd7e 18464 ac_status=$?
ac1cb8d3
VS
18465 grep -v '^ *+' conftest.er1 >conftest.err
18466 rm -f conftest.er1
18467 cat conftest.err >&5
a848cd7e
SC
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); } &&
fb00f58d
JS
18470 { ac_try='test -z "$ac_c_werror_flag"
18471 || test ! -s conftest.err'
ac1cb8d3
VS
18472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18473 (eval $ac_try) 2>&5
18474 ac_status=$?
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); }; } &&
18477 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18479 (eval $ac_try) 2>&5
18480 ac_status=$?
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); }; }; then
18483 ac_hi=$ac_mid
18484else
18485 echo "$as_me: failed program was:" >&5
18486sed 's/^/| /' conftest.$ac_ext >&5
18487
18488ac_lo=`expr '(' $ac_mid ')' + 1`
18489fi
ac1cb8d3 18490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18491done
18492case $ac_lo in
18493?*) ac_cv_sizeof_long_long=$ac_lo;;
18494'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18495See \`config.log' for more details." >&5
18496echo "$as_me: error: cannot compute sizeof (long long), 77
18497See \`config.log' for more details." >&2;}
18498 { (exit 1); exit 1; }; } ;;
18499esac
18500else
18501 if test "$cross_compiling" = yes; then
fb00f58d
JS
18502 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18503See \`config.log' for more details." >&5
18504echo "$as_me: error: cannot run test program while cross compiling
18505See \`config.log' for more details." >&2;}
a848cd7e
SC
18506 { (exit 1); exit 1; }; }
18507else
18508 cat >conftest.$ac_ext <<_ACEOF
18509/* confdefs.h. */
18510_ACEOF
18511cat confdefs.h >>conftest.$ac_ext
18512cat >>conftest.$ac_ext <<_ACEOF
18513/* end confdefs.h. */
18514$ac_includes_default
18515long longval () { return (long) (sizeof (long long)); }
18516unsigned long ulongval () { return (long) (sizeof (long long)); }
18517#include <stdio.h>
18518#include <stdlib.h>
18519int
18520main ()
18521{
18522
18523 FILE *f = fopen ("conftest.val", "w");
18524 if (! f)
18525 exit (1);
18526 if (((long) (sizeof (long long))) < 0)
18527 {
18528 long i = longval ();
18529 if (i != ((long) (sizeof (long long))))
18530 exit (1);
18531 fprintf (f, "%ld\n", i);
18532 }
18533 else
18534 {
18535 unsigned long i = ulongval ();
18536 if (i != ((long) (sizeof (long long))))
18537 exit (1);
18538 fprintf (f, "%lu\n", i);
18539 }
18540 exit (ferror (f) || fclose (f) != 0);
18541
18542 ;
18543 return 0;
18544}
18545_ACEOF
18546rm -f conftest$ac_exeext
18547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18548 (eval $ac_link) 2>&5
18549 ac_status=$?
18550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18553 (eval $ac_try) 2>&5
18554 ac_status=$?
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); }; }; then
18557 ac_cv_sizeof_long_long=`cat conftest.val`
18558else
18559 echo "$as_me: program exited with status $ac_status" >&5
18560echo "$as_me: failed program was:" >&5
18561sed 's/^/| /' conftest.$ac_ext >&5
18562
18563( exit $ac_status )
18564{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18565See \`config.log' for more details." >&5
18566echo "$as_me: error: cannot compute sizeof (long long), 77
18567See \`config.log' for more details." >&2;}
18568 { (exit 1); exit 1; }; }
18569fi
ac1cb8d3 18570rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18571fi
18572fi
18573rm -f conftest.val
18574else
18575 ac_cv_sizeof_long_long=0
18576fi
18577fi
18578echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18579echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18580cat >>confdefs.h <<_ACEOF
18581#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18582_ACEOF
18583
18584
18585 ;;
18586 *-hp-hpux* )
18587 echo "$as_me:$LINENO: checking for long long" >&5
18588echo $ECHO_N "checking for long long... $ECHO_C" >&6
18589if test "${ac_cv_type_long_long+set}" = set; then
18590 echo $ECHO_N "(cached) $ECHO_C" >&6
18591else
18592 cat >conftest.$ac_ext <<_ACEOF
18593/* confdefs.h. */
18594_ACEOF
18595cat confdefs.h >>conftest.$ac_ext
18596cat >>conftest.$ac_ext <<_ACEOF
18597/* end confdefs.h. */
18598$ac_includes_default
18599int
18600main ()
18601{
18602if ((long long *) 0)
18603 return 0;
18604if (sizeof (long long))
18605 return 0;
18606 ;
18607 return 0;
18608}
18609_ACEOF
18610rm -f conftest.$ac_objext
18611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18612 (eval $ac_compile) 2>conftest.er1
a848cd7e 18613 ac_status=$?
ac1cb8d3
VS
18614 grep -v '^ *+' conftest.er1 >conftest.err
18615 rm -f conftest.er1
18616 cat conftest.err >&5
a848cd7e
SC
18617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618 (exit $ac_status); } &&
fb00f58d
JS
18619 { ac_try='test -z "$ac_c_werror_flag"
18620 || test ! -s conftest.err'
ac1cb8d3
VS
18621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18622 (eval $ac_try) 2>&5
18623 ac_status=$?
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); }; } &&
18626 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18628 (eval $ac_try) 2>&5
18629 ac_status=$?
18630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631 (exit $ac_status); }; }; then
18632 ac_cv_type_long_long=yes
18633else
18634 echo "$as_me: failed program was:" >&5
18635sed 's/^/| /' conftest.$ac_ext >&5
18636
18637ac_cv_type_long_long=no
18638fi
ac1cb8d3 18639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18640fi
18641echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
18642echo "${ECHO_T}$ac_cv_type_long_long" >&6
18643
18644echo "$as_me:$LINENO: checking size of long long" >&5
18645echo $ECHO_N "checking size of long long... $ECHO_C" >&6
18646if test "${ac_cv_sizeof_long_long+set}" = set; then
18647 echo $ECHO_N "(cached) $ECHO_C" >&6
18648else
18649 if test "$ac_cv_type_long_long" = yes; then
18650 # The cast to unsigned long works around a bug in the HP C Compiler
18651 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18652 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18653 # This bug is HP SR number 8606223364.
18654 if test "$cross_compiling" = yes; then
18655 # Depending upon the size, compute the lo and hi bounds.
18656cat >conftest.$ac_ext <<_ACEOF
18657/* confdefs.h. */
18658_ACEOF
18659cat confdefs.h >>conftest.$ac_ext
18660cat >>conftest.$ac_ext <<_ACEOF
18661/* end confdefs.h. */
18662$ac_includes_default
18663int
18664main ()
18665{
18666static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
18667test_array [0] = 0
18668
18669 ;
18670 return 0;
18671}
18672_ACEOF
18673rm -f conftest.$ac_objext
18674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18675 (eval $ac_compile) 2>conftest.er1
a848cd7e 18676 ac_status=$?
ac1cb8d3
VS
18677 grep -v '^ *+' conftest.er1 >conftest.err
18678 rm -f conftest.er1
18679 cat conftest.err >&5
a848cd7e
SC
18680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681 (exit $ac_status); } &&
fb00f58d
JS
18682 { ac_try='test -z "$ac_c_werror_flag"
18683 || test ! -s conftest.err'
ac1cb8d3
VS
18684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18685 (eval $ac_try) 2>&5
18686 ac_status=$?
18687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688 (exit $ac_status); }; } &&
18689 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18691 (eval $ac_try) 2>&5
18692 ac_status=$?
18693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694 (exit $ac_status); }; }; then
18695 ac_lo=0 ac_mid=0
18696 while :; do
18697 cat >conftest.$ac_ext <<_ACEOF
18698/* confdefs.h. */
18699_ACEOF
18700cat confdefs.h >>conftest.$ac_ext
18701cat >>conftest.$ac_ext <<_ACEOF
18702/* end confdefs.h. */
18703$ac_includes_default
18704int
18705main ()
18706{
18707static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18708test_array [0] = 0
18709
18710 ;
18711 return 0;
18712}
18713_ACEOF
18714rm -f conftest.$ac_objext
18715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18716 (eval $ac_compile) 2>conftest.er1
a848cd7e 18717 ac_status=$?
ac1cb8d3
VS
18718 grep -v '^ *+' conftest.er1 >conftest.err
18719 rm -f conftest.er1
18720 cat conftest.err >&5
a848cd7e
SC
18721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722 (exit $ac_status); } &&
fb00f58d
JS
18723 { ac_try='test -z "$ac_c_werror_flag"
18724 || test ! -s conftest.err'
ac1cb8d3
VS
18725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18726 (eval $ac_try) 2>&5
18727 ac_status=$?
18728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729 (exit $ac_status); }; } &&
18730 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18732 (eval $ac_try) 2>&5
18733 ac_status=$?
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); }; }; then
18736 ac_hi=$ac_mid; break
18737else
18738 echo "$as_me: failed program was:" >&5
18739sed 's/^/| /' conftest.$ac_ext >&5
18740
18741ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18742 if test $ac_lo -le $ac_mid; then
18743 ac_lo= ac_hi=
18744 break
18745 fi
18746 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18747fi
ac1cb8d3 18748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18749 done
18750else
18751 echo "$as_me: failed program was:" >&5
18752sed 's/^/| /' conftest.$ac_ext >&5
18753
18754cat >conftest.$ac_ext <<_ACEOF
18755/* confdefs.h. */
18756_ACEOF
18757cat confdefs.h >>conftest.$ac_ext
18758cat >>conftest.$ac_ext <<_ACEOF
18759/* end confdefs.h. */
18760$ac_includes_default
18761int
18762main ()
18763{
18764static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18765test_array [0] = 0
18766
18767 ;
18768 return 0;
18769}
18770_ACEOF
18771rm -f conftest.$ac_objext
18772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18773 (eval $ac_compile) 2>conftest.er1
a848cd7e 18774 ac_status=$?
ac1cb8d3
VS
18775 grep -v '^ *+' conftest.er1 >conftest.err
18776 rm -f conftest.er1
18777 cat conftest.err >&5
a848cd7e
SC
18778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779 (exit $ac_status); } &&
fb00f58d
JS
18780 { ac_try='test -z "$ac_c_werror_flag"
18781 || test ! -s conftest.err'
ac1cb8d3
VS
18782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18783 (eval $ac_try) 2>&5
18784 ac_status=$?
18785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786 (exit $ac_status); }; } &&
18787 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18789 (eval $ac_try) 2>&5
18790 ac_status=$?
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); }; }; then
18793 ac_hi=-1 ac_mid=-1
18794 while :; do
18795 cat >conftest.$ac_ext <<_ACEOF
18796/* confdefs.h. */
18797_ACEOF
18798cat confdefs.h >>conftest.$ac_ext
18799cat >>conftest.$ac_ext <<_ACEOF
18800/* end confdefs.h. */
18801$ac_includes_default
18802int
18803main ()
18804{
18805static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18806test_array [0] = 0
18807
18808 ;
18809 return 0;
18810}
18811_ACEOF
18812rm -f conftest.$ac_objext
18813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18814 (eval $ac_compile) 2>conftest.er1
a848cd7e 18815 ac_status=$?
ac1cb8d3
VS
18816 grep -v '^ *+' conftest.er1 >conftest.err
18817 rm -f conftest.er1
18818 cat conftest.err >&5
a848cd7e
SC
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); } &&
fb00f58d
JS
18821 { ac_try='test -z "$ac_c_werror_flag"
18822 || test ! -s conftest.err'
ac1cb8d3
VS
18823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18824 (eval $ac_try) 2>&5
18825 ac_status=$?
18826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18827 (exit $ac_status); }; } &&
18828 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18830 (eval $ac_try) 2>&5
18831 ac_status=$?
18832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 (exit $ac_status); }; }; then
18834 ac_lo=$ac_mid; break
18835else
18836 echo "$as_me: failed program was:" >&5
18837sed 's/^/| /' conftest.$ac_ext >&5
18838
18839ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18840 if test $ac_mid -le $ac_hi; then
18841 ac_lo= ac_hi=
18842 break
18843 fi
18844 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18845fi
ac1cb8d3 18846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18847 done
18848else
18849 echo "$as_me: failed program was:" >&5
18850sed 's/^/| /' conftest.$ac_ext >&5
18851
18852ac_lo= ac_hi=
18853fi
ac1cb8d3 18854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18855fi
ac1cb8d3 18856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18857# Binary search between lo and hi bounds.
18858while test "x$ac_lo" != "x$ac_hi"; do
18859 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18860 cat >conftest.$ac_ext <<_ACEOF
18861/* confdefs.h. */
18862_ACEOF
18863cat confdefs.h >>conftest.$ac_ext
18864cat >>conftest.$ac_ext <<_ACEOF
18865/* end confdefs.h. */
18866$ac_includes_default
18867int
18868main ()
18869{
18870static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18871test_array [0] = 0
18872
18873 ;
18874 return 0;
18875}
18876_ACEOF
18877rm -f conftest.$ac_objext
18878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18879 (eval $ac_compile) 2>conftest.er1
a848cd7e 18880 ac_status=$?
ac1cb8d3
VS
18881 grep -v '^ *+' conftest.er1 >conftest.err
18882 rm -f conftest.er1
18883 cat conftest.err >&5
a848cd7e
SC
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); } &&
fb00f58d
JS
18886 { ac_try='test -z "$ac_c_werror_flag"
18887 || test ! -s conftest.err'
ac1cb8d3
VS
18888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18889 (eval $ac_try) 2>&5
18890 ac_status=$?
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); }; } &&
18893 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18895 (eval $ac_try) 2>&5
18896 ac_status=$?
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; }; then
18899 ac_hi=$ac_mid
18900else
18901 echo "$as_me: failed program was:" >&5
18902sed 's/^/| /' conftest.$ac_ext >&5
18903
18904ac_lo=`expr '(' $ac_mid ')' + 1`
18905fi
ac1cb8d3 18906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18907done
18908case $ac_lo in
18909?*) ac_cv_sizeof_long_long=$ac_lo;;
18910'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18911See \`config.log' for more details." >&5
18912echo "$as_me: error: cannot compute sizeof (long long), 77
18913See \`config.log' for more details." >&2;}
18914 { (exit 1); exit 1; }; } ;;
18915esac
18916else
18917 if test "$cross_compiling" = yes; then
fb00f58d
JS
18918 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18919See \`config.log' for more details." >&5
18920echo "$as_me: error: cannot run test program while cross compiling
18921See \`config.log' for more details." >&2;}
a848cd7e
SC
18922 { (exit 1); exit 1; }; }
18923else
18924 cat >conftest.$ac_ext <<_ACEOF
18925/* confdefs.h. */
18926_ACEOF
18927cat confdefs.h >>conftest.$ac_ext
18928cat >>conftest.$ac_ext <<_ACEOF
18929/* end confdefs.h. */
18930$ac_includes_default
18931long longval () { return (long) (sizeof (long long)); }
18932unsigned long ulongval () { return (long) (sizeof (long long)); }
18933#include <stdio.h>
18934#include <stdlib.h>
18935int
18936main ()
18937{
18938
18939 FILE *f = fopen ("conftest.val", "w");
18940 if (! f)
18941 exit (1);
18942 if (((long) (sizeof (long long))) < 0)
18943 {
18944 long i = longval ();
18945 if (i != ((long) (sizeof (long long))))
18946 exit (1);
18947 fprintf (f, "%ld\n", i);
18948 }
18949 else
18950 {
18951 unsigned long i = ulongval ();
18952 if (i != ((long) (sizeof (long long))))
18953 exit (1);
18954 fprintf (f, "%lu\n", i);
18955 }
18956 exit (ferror (f) || fclose (f) != 0);
18957
18958 ;
18959 return 0;
18960}
18961_ACEOF
18962rm -f conftest$ac_exeext
18963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18964 (eval $ac_link) 2>&5
18965 ac_status=$?
18966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18969 (eval $ac_try) 2>&5
18970 ac_status=$?
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); }; }; then
18973 ac_cv_sizeof_long_long=`cat conftest.val`
18974else
18975 echo "$as_me: program exited with status $ac_status" >&5
18976echo "$as_me: failed program was:" >&5
18977sed 's/^/| /' conftest.$ac_ext >&5
18978
18979( exit $ac_status )
18980{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18981See \`config.log' for more details." >&5
18982echo "$as_me: error: cannot compute sizeof (long long), 77
18983See \`config.log' for more details." >&2;}
18984 { (exit 1); exit 1; }; }
18985fi
ac1cb8d3 18986rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18987fi
18988fi
18989rm -f conftest.val
18990else
18991 ac_cv_sizeof_long_long=0
18992fi
18993fi
18994echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18995echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18996cat >>confdefs.h <<_ACEOF
18997#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18998_ACEOF
18999
19000
19001 if test "$ac_cv_sizeof_long_long" != "0"; then
19002 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
19003 fi
19004 ;;
19005 * )
19006 echo "$as_me:$LINENO: checking for long long" >&5
19007echo $ECHO_N "checking for long long... $ECHO_C" >&6
19008if test "${ac_cv_type_long_long+set}" = set; then
19009 echo $ECHO_N "(cached) $ECHO_C" >&6
19010else
19011 cat >conftest.$ac_ext <<_ACEOF
19012/* confdefs.h. */
19013_ACEOF
19014cat confdefs.h >>conftest.$ac_ext
19015cat >>conftest.$ac_ext <<_ACEOF
19016/* end confdefs.h. */
19017$ac_includes_default
19018int
19019main ()
19020{
19021if ((long long *) 0)
19022 return 0;
19023if (sizeof (long long))
19024 return 0;
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); } &&
fb00f58d
JS
19038 { ac_try='test -z "$ac_c_werror_flag"
19039 || test ! -s conftest.err'
ac1cb8d3
VS
19040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19041 (eval $ac_try) 2>&5
19042 ac_status=$?
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); }; } &&
19045 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19047 (eval $ac_try) 2>&5
19048 ac_status=$?
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); }; }; then
19051 ac_cv_type_long_long=yes
19052else
19053 echo "$as_me: failed program was:" >&5
19054sed 's/^/| /' conftest.$ac_ext >&5
19055
19056ac_cv_type_long_long=no
19057fi
ac1cb8d3 19058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19059fi
19060echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19061echo "${ECHO_T}$ac_cv_type_long_long" >&6
19062
19063echo "$as_me:$LINENO: checking size of long long" >&5
19064echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19065if test "${ac_cv_sizeof_long_long+set}" = set; then
19066 echo $ECHO_N "(cached) $ECHO_C" >&6
19067else
19068 if test "$ac_cv_type_long_long" = yes; then
19069 # The cast to unsigned long works around a bug in the HP C Compiler
19070 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19071 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19072 # This bug is HP SR number 8606223364.
19073 if test "$cross_compiling" = yes; then
19074 # Depending upon the size, compute the lo and hi bounds.
19075cat >conftest.$ac_ext <<_ACEOF
19076/* confdefs.h. */
19077_ACEOF
19078cat confdefs.h >>conftest.$ac_ext
19079cat >>conftest.$ac_ext <<_ACEOF
19080/* end confdefs.h. */
19081$ac_includes_default
19082int
19083main ()
19084{
19085static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19086test_array [0] = 0
19087
19088 ;
19089 return 0;
19090}
19091_ACEOF
19092rm -f conftest.$ac_objext
19093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19094 (eval $ac_compile) 2>conftest.er1
a848cd7e 19095 ac_status=$?
ac1cb8d3
VS
19096 grep -v '^ *+' conftest.er1 >conftest.err
19097 rm -f conftest.er1
19098 cat conftest.err >&5
a848cd7e
SC
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); } &&
fb00f58d
JS
19101 { ac_try='test -z "$ac_c_werror_flag"
19102 || test ! -s conftest.err'
ac1cb8d3
VS
19103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19104 (eval $ac_try) 2>&5
19105 ac_status=$?
19106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107 (exit $ac_status); }; } &&
19108 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19110 (eval $ac_try) 2>&5
19111 ac_status=$?
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); }; }; then
19114 ac_lo=0 ac_mid=0
19115 while :; do
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); } &&
fb00f58d
JS
19142 { ac_try='test -z "$ac_c_werror_flag"
19143 || test ! -s conftest.err'
ac1cb8d3
VS
19144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19145 (eval $ac_try) 2>&5
19146 ac_status=$?
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); }; } &&
19149 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19151 (eval $ac_try) 2>&5
19152 ac_status=$?
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); }; }; then
19155 ac_hi=$ac_mid; break
19156else
19157 echo "$as_me: failed program was:" >&5
19158sed 's/^/| /' conftest.$ac_ext >&5
19159
19160ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19161 if test $ac_lo -le $ac_mid; then
19162 ac_lo= ac_hi=
19163 break
19164 fi
19165 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19166fi
ac1cb8d3 19167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19168 done
19169else
19170 echo "$as_me: failed program was:" >&5
19171sed 's/^/| /' conftest.$ac_ext >&5
19172
19173cat >conftest.$ac_ext <<_ACEOF
19174/* confdefs.h. */
19175_ACEOF
19176cat confdefs.h >>conftest.$ac_ext
19177cat >>conftest.$ac_ext <<_ACEOF
19178/* end confdefs.h. */
19179$ac_includes_default
19180int
19181main ()
19182{
19183static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19184test_array [0] = 0
19185
19186 ;
19187 return 0;
19188}
19189_ACEOF
19190rm -f conftest.$ac_objext
19191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19192 (eval $ac_compile) 2>conftest.er1
a848cd7e 19193 ac_status=$?
ac1cb8d3
VS
19194 grep -v '^ *+' conftest.er1 >conftest.err
19195 rm -f conftest.er1
19196 cat conftest.err >&5
a848cd7e
SC
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); } &&
fb00f58d
JS
19199 { ac_try='test -z "$ac_c_werror_flag"
19200 || test ! -s conftest.err'
ac1cb8d3
VS
19201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19202 (eval $ac_try) 2>&5
19203 ac_status=$?
19204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205 (exit $ac_status); }; } &&
19206 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19208 (eval $ac_try) 2>&5
19209 ac_status=$?
19210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211 (exit $ac_status); }; }; then
19212 ac_hi=-1 ac_mid=-1
19213 while :; do
19214 cat >conftest.$ac_ext <<_ACEOF
19215/* confdefs.h. */
19216_ACEOF
19217cat confdefs.h >>conftest.$ac_ext
19218cat >>conftest.$ac_ext <<_ACEOF
19219/* end confdefs.h. */
19220$ac_includes_default
19221int
19222main ()
19223{
19224static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19225test_array [0] = 0
19226
19227 ;
19228 return 0;
19229}
19230_ACEOF
19231rm -f conftest.$ac_objext
19232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19233 (eval $ac_compile) 2>conftest.er1
a848cd7e 19234 ac_status=$?
ac1cb8d3
VS
19235 grep -v '^ *+' conftest.er1 >conftest.err
19236 rm -f conftest.er1
19237 cat conftest.err >&5
a848cd7e
SC
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); } &&
fb00f58d
JS
19240 { ac_try='test -z "$ac_c_werror_flag"
19241 || test ! -s conftest.err'
ac1cb8d3
VS
19242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19243 (eval $ac_try) 2>&5
19244 ac_status=$?
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); }; } &&
19247 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19249 (eval $ac_try) 2>&5
19250 ac_status=$?
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); }; }; then
19253 ac_lo=$ac_mid; break
19254else
19255 echo "$as_me: failed program was:" >&5
19256sed 's/^/| /' conftest.$ac_ext >&5
19257
19258ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19259 if test $ac_mid -le $ac_hi; then
19260 ac_lo= ac_hi=
19261 break
19262 fi
19263 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19264fi
ac1cb8d3 19265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19266 done
19267else
19268 echo "$as_me: failed program was:" >&5
19269sed 's/^/| /' conftest.$ac_ext >&5
19270
19271ac_lo= ac_hi=
19272fi
ac1cb8d3 19273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19274fi
ac1cb8d3 19275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19276# Binary search between lo and hi bounds.
19277while test "x$ac_lo" != "x$ac_hi"; do
19278 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19279 cat >conftest.$ac_ext <<_ACEOF
19280/* confdefs.h. */
19281_ACEOF
19282cat confdefs.h >>conftest.$ac_ext
19283cat >>conftest.$ac_ext <<_ACEOF
19284/* end confdefs.h. */
19285$ac_includes_default
19286int
19287main ()
19288{
19289static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19290test_array [0] = 0
19291
19292 ;
19293 return 0;
19294}
19295_ACEOF
19296rm -f conftest.$ac_objext
19297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19298 (eval $ac_compile) 2>conftest.er1
a848cd7e 19299 ac_status=$?
ac1cb8d3
VS
19300 grep -v '^ *+' conftest.er1 >conftest.err
19301 rm -f conftest.er1
19302 cat conftest.err >&5
a848cd7e
SC
19303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); } &&
fb00f58d
JS
19305 { ac_try='test -z "$ac_c_werror_flag"
19306 || test ! -s conftest.err'
ac1cb8d3
VS
19307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19308 (eval $ac_try) 2>&5
19309 ac_status=$?
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); }; } &&
19312 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19314 (eval $ac_try) 2>&5
19315 ac_status=$?
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); }; }; then
19318 ac_hi=$ac_mid
19319else
19320 echo "$as_me: failed program was:" >&5
19321sed 's/^/| /' conftest.$ac_ext >&5
19322
19323ac_lo=`expr '(' $ac_mid ')' + 1`
19324fi
ac1cb8d3 19325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19326done
19327case $ac_lo in
19328?*) ac_cv_sizeof_long_long=$ac_lo;;
19329'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19330See \`config.log' for more details." >&5
19331echo "$as_me: error: cannot compute sizeof (long long), 77
19332See \`config.log' for more details." >&2;}
19333 { (exit 1); exit 1; }; } ;;
19334esac
19335else
19336 if test "$cross_compiling" = yes; then
fb00f58d
JS
19337 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19338See \`config.log' for more details." >&5
19339echo "$as_me: error: cannot run test program while cross compiling
19340See \`config.log' for more details." >&2;}
a848cd7e
SC
19341 { (exit 1); exit 1; }; }
19342else
19343 cat >conftest.$ac_ext <<_ACEOF
19344/* confdefs.h. */
19345_ACEOF
19346cat confdefs.h >>conftest.$ac_ext
19347cat >>conftest.$ac_ext <<_ACEOF
19348/* end confdefs.h. */
19349$ac_includes_default
19350long longval () { return (long) (sizeof (long long)); }
19351unsigned long ulongval () { return (long) (sizeof (long long)); }
19352#include <stdio.h>
19353#include <stdlib.h>
19354int
19355main ()
19356{
19357
19358 FILE *f = fopen ("conftest.val", "w");
19359 if (! f)
19360 exit (1);
19361 if (((long) (sizeof (long long))) < 0)
19362 {
19363 long i = longval ();
19364 if (i != ((long) (sizeof (long long))))
19365 exit (1);
19366 fprintf (f, "%ld\n", i);
19367 }
19368 else
19369 {
19370 unsigned long i = ulongval ();
19371 if (i != ((long) (sizeof (long long))))
19372 exit (1);
19373 fprintf (f, "%lu\n", i);
19374 }
19375 exit (ferror (f) || fclose (f) != 0);
19376
19377 ;
19378 return 0;
19379}
19380_ACEOF
19381rm -f conftest$ac_exeext
19382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19383 (eval $ac_link) 2>&5
19384 ac_status=$?
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19388 (eval $ac_try) 2>&5
19389 ac_status=$?
19390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19391 (exit $ac_status); }; }; then
19392 ac_cv_sizeof_long_long=`cat conftest.val`
19393else
19394 echo "$as_me: program exited with status $ac_status" >&5
19395echo "$as_me: failed program was:" >&5
19396sed 's/^/| /' conftest.$ac_ext >&5
19397
19398( exit $ac_status )
19399{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19400See \`config.log' for more details." >&5
19401echo "$as_me: error: cannot compute sizeof (long long), 77
19402See \`config.log' for more details." >&2;}
19403 { (exit 1); exit 1; }; }
19404fi
ac1cb8d3 19405rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19406fi
19407fi
19408rm -f conftest.val
19409else
19410 ac_cv_sizeof_long_long=0
19411fi
19412fi
19413echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19414echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19415cat >>confdefs.h <<_ACEOF
19416#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19417_ACEOF
19418
19419
19420esac
19421
238ecede
MW
19422echo "$as_me:$LINENO: checking for wchar_t" >&5
19423echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
19424if test "${ac_cv_type_wchar_t+set}" = set; then
19425 echo $ECHO_N "(cached) $ECHO_C" >&6
19426else
19427 cat >conftest.$ac_ext <<_ACEOF
19428/* confdefs.h. */
19429_ACEOF
19430cat confdefs.h >>conftest.$ac_ext
19431cat >>conftest.$ac_ext <<_ACEOF
19432/* end confdefs.h. */
19433
83d8eb47
MW
19434 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19435 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19436 # error "fake wchar_t"
19437 #endif
19438 #ifdef HAVE_WCHAR_H
19439 # ifdef __CYGWIN__
19440 # include <stddef.h>
19441 # endif
19442 # include <wchar.h>
19443 #endif
19444 #ifdef HAVE_STDLIB_H
19445 # include <stdlib.h>
19446 #endif
19447 #include <stdio.h>
19448
19449
19450
19451int
19452main ()
19453{
19454if ((wchar_t *) 0)
19455 return 0;
19456if (sizeof (wchar_t))
19457 return 0;
19458 ;
19459 return 0;
19460}
19461_ACEOF
19462rm -f conftest.$ac_objext
19463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19464 (eval $ac_compile) 2>conftest.er1
19465 ac_status=$?
19466 grep -v '^ *+' conftest.er1 >conftest.err
19467 rm -f conftest.er1
19468 cat conftest.err >&5
19469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470 (exit $ac_status); } &&
fb00f58d
JS
19471 { ac_try='test -z "$ac_c_werror_flag"
19472 || test ! -s conftest.err'
238ecede
MW
19473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19474 (eval $ac_try) 2>&5
19475 ac_status=$?
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); }; } &&
19478 { ac_try='test -s conftest.$ac_objext'
19479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19480 (eval $ac_try) 2>&5
19481 ac_status=$?
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); }; }; then
19484 ac_cv_type_wchar_t=yes
19485else
19486 echo "$as_me: failed program was:" >&5
19487sed 's/^/| /' conftest.$ac_ext >&5
19488
19489ac_cv_type_wchar_t=no
19490fi
19491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19492fi
19493echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
19494echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
19495
a848cd7e
SC
19496echo "$as_me:$LINENO: checking size of wchar_t" >&5
19497echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 19498if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
19499 echo $ECHO_N "(cached) $ECHO_C" >&6
19500else
238ecede
MW
19501 if test "$ac_cv_type_wchar_t" = yes; then
19502 # The cast to unsigned long works around a bug in the HP C Compiler
19503 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19504 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19505 # This bug is HP SR number 8606223364.
19506 if test "$cross_compiling" = yes; then
19507 # Depending upon the size, compute the lo and hi bounds.
19508cat >conftest.$ac_ext <<_ACEOF
19509/* confdefs.h. */
19510_ACEOF
19511cat confdefs.h >>conftest.$ac_ext
19512cat >>conftest.$ac_ext <<_ACEOF
19513/* end confdefs.h. */
19514
83d8eb47
MW
19515 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19516 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19517 # error "fake wchar_t"
19518 #endif
19519 #ifdef HAVE_WCHAR_H
19520 # ifdef __CYGWIN__
19521 # include <stddef.h>
19522 # endif
19523 # include <wchar.h>
19524 #endif
19525 #ifdef HAVE_STDLIB_H
19526 # include <stdlib.h>
19527 #endif
19528 #include <stdio.h>
19529
19530
19531
19532int
19533main ()
19534{
19535static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
19536test_array [0] = 0
19537
19538 ;
19539 return 0;
19540}
19541_ACEOF
19542rm -f conftest.$ac_objext
19543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19544 (eval $ac_compile) 2>conftest.er1
19545 ac_status=$?
19546 grep -v '^ *+' conftest.er1 >conftest.err
19547 rm -f conftest.er1
19548 cat conftest.err >&5
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); } &&
fb00f58d
JS
19551 { ac_try='test -z "$ac_c_werror_flag"
19552 || test ! -s conftest.err'
238ecede
MW
19553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19554 (eval $ac_try) 2>&5
19555 ac_status=$?
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; } &&
19558 { ac_try='test -s conftest.$ac_objext'
19559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560 (eval $ac_try) 2>&5
19561 ac_status=$?
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); }; }; then
19564 ac_lo=0 ac_mid=0
19565 while :; do
19566 cat >conftest.$ac_ext <<_ACEOF
19567/* confdefs.h. */
19568_ACEOF
19569cat confdefs.h >>conftest.$ac_ext
19570cat >>conftest.$ac_ext <<_ACEOF
19571/* end confdefs.h. */
19572
83d8eb47
MW
19573 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19574 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19575 # error "fake wchar_t"
19576 #endif
19577 #ifdef HAVE_WCHAR_H
19578 # ifdef __CYGWIN__
19579 # include <stddef.h>
19580 # endif
19581 # include <wchar.h>
19582 #endif
19583 #ifdef HAVE_STDLIB_H
19584 # include <stdlib.h>
19585 #endif
19586 #include <stdio.h>
19587
19588
19589
19590int
19591main ()
19592{
19593static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19594test_array [0] = 0
19595
19596 ;
19597 return 0;
19598}
19599_ACEOF
19600rm -f conftest.$ac_objext
19601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19602 (eval $ac_compile) 2>conftest.er1
19603 ac_status=$?
19604 grep -v '^ *+' conftest.er1 >conftest.err
19605 rm -f conftest.er1
19606 cat conftest.err >&5
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); } &&
fb00f58d
JS
19609 { ac_try='test -z "$ac_c_werror_flag"
19610 || test ! -s conftest.err'
238ecede
MW
19611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19612 (eval $ac_try) 2>&5
19613 ac_status=$?
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); }; } &&
19616 { ac_try='test -s conftest.$ac_objext'
19617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19618 (eval $ac_try) 2>&5
19619 ac_status=$?
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); }; }; then
19622 ac_hi=$ac_mid; break
19623else
19624 echo "$as_me: failed program was:" >&5
19625sed 's/^/| /' conftest.$ac_ext >&5
19626
19627ac_lo=`expr $ac_mid + 1`
19628 if test $ac_lo -le $ac_mid; then
19629 ac_lo= ac_hi=
19630 break
19631 fi
19632 ac_mid=`expr 2 '*' $ac_mid + 1`
19633fi
19634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19635 done
19636else
19637 echo "$as_me: failed program was:" >&5
19638sed 's/^/| /' conftest.$ac_ext >&5
19639
19640cat >conftest.$ac_ext <<_ACEOF
19641/* confdefs.h. */
19642_ACEOF
19643cat confdefs.h >>conftest.$ac_ext
19644cat >>conftest.$ac_ext <<_ACEOF
19645/* end confdefs.h. */
19646
83d8eb47
MW
19647 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19648 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19649 # error "fake wchar_t"
19650 #endif
19651 #ifdef HAVE_WCHAR_H
19652 # ifdef __CYGWIN__
19653 # include <stddef.h>
19654 # endif
19655 # include <wchar.h>
19656 #endif
19657 #ifdef HAVE_STDLIB_H
19658 # include <stdlib.h>
19659 #endif
19660 #include <stdio.h>
19661
19662
19663
19664int
19665main ()
19666{
19667static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
19668test_array [0] = 0
19669
19670 ;
19671 return 0;
19672}
19673_ACEOF
19674rm -f conftest.$ac_objext
19675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19676 (eval $ac_compile) 2>conftest.er1
19677 ac_status=$?
19678 grep -v '^ *+' conftest.er1 >conftest.err
19679 rm -f conftest.er1
19680 cat conftest.err >&5
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); } &&
fb00f58d
JS
19683 { ac_try='test -z "$ac_c_werror_flag"
19684 || test ! -s conftest.err'
238ecede
MW
19685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19686 (eval $ac_try) 2>&5
19687 ac_status=$?
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); }; } &&
19690 { ac_try='test -s conftest.$ac_objext'
19691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19692 (eval $ac_try) 2>&5
19693 ac_status=$?
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); }; }; then
19696 ac_hi=-1 ac_mid=-1
19697 while :; do
19698 cat >conftest.$ac_ext <<_ACEOF
19699/* confdefs.h. */
19700_ACEOF
19701cat confdefs.h >>conftest.$ac_ext
19702cat >>conftest.$ac_ext <<_ACEOF
19703/* end confdefs.h. */
19704
83d8eb47
MW
19705 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19706 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19707 # error "fake wchar_t"
19708 #endif
19709 #ifdef HAVE_WCHAR_H
19710 # ifdef __CYGWIN__
19711 # include <stddef.h>
19712 # endif
19713 # include <wchar.h>
19714 #endif
19715 #ifdef HAVE_STDLIB_H
19716 # include <stdlib.h>
19717 #endif
19718 #include <stdio.h>
19719
19720
19721
19722int
19723main ()
19724{
19725static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
19726test_array [0] = 0
19727
19728 ;
19729 return 0;
19730}
19731_ACEOF
19732rm -f conftest.$ac_objext
19733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19734 (eval $ac_compile) 2>conftest.er1
19735 ac_status=$?
19736 grep -v '^ *+' conftest.er1 >conftest.err
19737 rm -f conftest.er1
19738 cat conftest.err >&5
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); } &&
fb00f58d
JS
19741 { ac_try='test -z "$ac_c_werror_flag"
19742 || test ! -s conftest.err'
238ecede
MW
19743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19744 (eval $ac_try) 2>&5
19745 ac_status=$?
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); }; } &&
19748 { ac_try='test -s conftest.$ac_objext'
19749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19750 (eval $ac_try) 2>&5
19751 ac_status=$?
19752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753 (exit $ac_status); }; }; then
19754 ac_lo=$ac_mid; break
19755else
19756 echo "$as_me: failed program was:" >&5
19757sed 's/^/| /' conftest.$ac_ext >&5
19758
19759ac_hi=`expr '(' $ac_mid ')' - 1`
19760 if test $ac_mid -le $ac_hi; then
19761 ac_lo= ac_hi=
19762 break
19763 fi
19764 ac_mid=`expr 2 '*' $ac_mid`
19765fi
19766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19767 done
19768else
19769 echo "$as_me: failed program was:" >&5
19770sed 's/^/| /' conftest.$ac_ext >&5
19771
19772ac_lo= ac_hi=
19773fi
19774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19775fi
19776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19777# Binary search between lo and hi bounds.
19778while test "x$ac_lo" != "x$ac_hi"; do
19779 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19780 cat >conftest.$ac_ext <<_ACEOF
19781/* confdefs.h. */
19782_ACEOF
19783cat confdefs.h >>conftest.$ac_ext
19784cat >>conftest.$ac_ext <<_ACEOF
19785/* end confdefs.h. */
19786
83d8eb47
MW
19787 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19788 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19789 # error "fake wchar_t"
19790 #endif
19791 #ifdef HAVE_WCHAR_H
19792 # ifdef __CYGWIN__
19793 # include <stddef.h>
19794 # endif
19795 # include <wchar.h>
19796 #endif
19797 #ifdef HAVE_STDLIB_H
19798 # include <stdlib.h>
19799 #endif
19800 #include <stdio.h>
a848cd7e 19801
a848cd7e 19802
a848cd7e 19803
238ecede
MW
19804int
19805main ()
19806{
19807static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
19808test_array [0] = 0
a848cd7e 19809
238ecede
MW
19810 ;
19811 return 0;
19812}
19813_ACEOF
19814rm -f conftest.$ac_objext
19815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19816 (eval $ac_compile) 2>conftest.er1
19817 ac_status=$?
19818 grep -v '^ *+' conftest.er1 >conftest.err
19819 rm -f conftest.er1
19820 cat conftest.err >&5
19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); } &&
fb00f58d
JS
19823 { ac_try='test -z "$ac_c_werror_flag"
19824 || test ! -s conftest.err'
238ecede
MW
19825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19826 (eval $ac_try) 2>&5
19827 ac_status=$?
19828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); }; } &&
19830 { ac_try='test -s conftest.$ac_objext'
19831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19832 (eval $ac_try) 2>&5
19833 ac_status=$?
19834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); }; }; then
19836 ac_hi=$ac_mid
19837else
19838 echo "$as_me: failed program was:" >&5
19839sed 's/^/| /' conftest.$ac_ext >&5
19840
19841ac_lo=`expr '(' $ac_mid ')' + 1`
19842fi
19843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19844done
19845case $ac_lo in
19846?*) ac_cv_sizeof_wchar_t=$ac_lo;;
19847'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19848See \`config.log' for more details." >&5
19849echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19850See \`config.log' for more details." >&2;}
19851 { (exit 1); exit 1; }; } ;;
19852esac
19853else
19854 if test "$cross_compiling" = yes; then
fb00f58d
JS
19855 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19856See \`config.log' for more details." >&5
19857echo "$as_me: error: cannot run test program while cross compiling
19858See \`config.log' for more details." >&2;}
238ecede 19859 { (exit 1); exit 1; }; }
a848cd7e
SC
19860else
19861 cat >conftest.$ac_ext <<_ACEOF
19862/* confdefs.h. */
19863_ACEOF
19864cat confdefs.h >>conftest.$ac_ext
19865cat >>conftest.$ac_ext <<_ACEOF
19866/* end confdefs.h. */
19867
83d8eb47
MW
19868 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
19869 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
19870 # error "fake wchar_t"
19871 #endif
19872 #ifdef HAVE_WCHAR_H
19873 # ifdef __CYGWIN__
19874 # include <stddef.h>
19875 # endif
19876 # include <wchar.h>
19877 #endif
19878 #ifdef HAVE_STDLIB_H
19879 # include <stdlib.h>
19880 #endif
19881 #include <stdio.h>
19882
19883
19884
19885long longval () { return (long) (sizeof (wchar_t)); }
19886unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
19887#include <stdio.h>
19888#include <stdlib.h>
19889int
19890main ()
19891{
a848cd7e 19892
238ecede
MW
19893 FILE *f = fopen ("conftest.val", "w");
19894 if (! f)
19895 exit (1);
19896 if (((long) (sizeof (wchar_t))) < 0)
19897 {
19898 long i = longval ();
19899 if (i != ((long) (sizeof (wchar_t))))
19900 exit (1);
19901 fprintf (f, "%ld\n", i);
19902 }
19903 else
19904 {
19905 unsigned long i = ulongval ();
19906 if (i != ((long) (sizeof (wchar_t))))
19907 exit (1);
19908 fprintf (f, "%lu\n", i);
19909 }
19910 exit (ferror (f) || fclose (f) != 0);
19911
19912 ;
19913 return 0;
19914}
a848cd7e
SC
19915_ACEOF
19916rm -f conftest$ac_exeext
19917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19918 (eval $ac_link) 2>&5
19919 ac_status=$?
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19923 (eval $ac_try) 2>&5
19924 ac_status=$?
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); }; }; then
238ecede 19927 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
19928else
19929 echo "$as_me: program exited with status $ac_status" >&5
19930echo "$as_me: failed program was:" >&5
19931sed 's/^/| /' conftest.$ac_ext >&5
19932
19933( exit $ac_status )
238ecede
MW
19934{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
19935See \`config.log' for more details." >&5
19936echo "$as_me: error: cannot compute sizeof (wchar_t), 77
19937See \`config.log' for more details." >&2;}
19938 { (exit 1); exit 1; }; }
a848cd7e 19939fi
ac1cb8d3 19940rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 19941fi
a848cd7e 19942fi
238ecede
MW
19943rm -f conftest.val
19944else
19945 ac_cv_sizeof_wchar_t=0
19946fi
19947fi
19948echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
19949echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 19950cat >>confdefs.h <<_ACEOF
238ecede 19951#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
19952_ACEOF
19953
19954
47a7e797
MW
19955if test "$ac_cv_sizeof_wchar_t" != "0"; then
19956 wxUSE_WCHAR_T=yes
19957else
19958 wxUSE_WCHAR_T=no
19959fi
238ecede 19960
ba3d13e1
VZ
19961echo "$as_me:$LINENO: checking for va_copy" >&5
19962echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
19963if test "${wx_cv_func_va_copy+set}" = set; then
19964 echo $ECHO_N "(cached) $ECHO_C" >&6
19965else
19966
19967 cat >conftest.$ac_ext <<_ACEOF
19968
19969 #include <stdarg.h>
19970 void foo(char *f, ...)
19971 {
19972 va_list ap1, ap2;
19973 va_start(ap1, f);
19974 va_copy(ap2, ap1);
19975 va_end(ap2);
19976 va_end(ap1);
19977 }
5886b072
VZ
19978 int main()
19979 {
b902e639
VZ
19980 foo("hi", 17);
19981 return 0;
5886b072 19982 }
ba3d13e1
VZ
19983_ACEOF
19984rm -f conftest.$ac_objext conftest$ac_exeext
19985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19986 (eval $ac_link) 2>conftest.er1
19987 ac_status=$?
19988 grep -v '^ *+' conftest.er1 >conftest.err
19989 rm -f conftest.er1
19990 cat conftest.err >&5
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); } &&
fb00f58d
JS
19993 { ac_try='test -z "$ac_c_werror_flag"
19994 || test ! -s conftest.err'
ba3d13e1
VZ
19995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19996 (eval $ac_try) 2>&5
19997 ac_status=$?
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }; } &&
20000 { ac_try='test -s conftest$ac_exeext'
20001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20002 (eval $ac_try) 2>&5
20003 ac_status=$?
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); }; }; then
20006 wx_cv_func_va_copy=yes
20007else
20008 echo "$as_me: failed program was:" >&5
20009sed 's/^/| /' conftest.$ac_ext >&5
20010
20011wx_cv_func_va_copy=no
20012
20013fi
20014rm -f conftest.err conftest.$ac_objext \
20015 conftest$ac_exeext conftest.$ac_ext
20016
20017
20018fi
20019echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
20020echo "${ECHO_T}$wx_cv_func_va_copy" >&6
20021
20022if test $wx_cv_func_va_copy = "yes"; then
20023 cat >>confdefs.h <<\_ACEOF
20024#define HAVE_VA_COPY 1
20025_ACEOF
20026
20027else
20028 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
20029echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
20030if test "${wx_cv_type_va_list_lvalue+set}" = set; then
20031 echo $ECHO_N "(cached) $ECHO_C" >&6
20032else
20033
20034 if test "$cross_compiling" = yes; then
20035 wx_cv_type_va_list_lvalue=yes
20036
20037else
20038 cat >conftest.$ac_ext <<_ACEOF
20039
20040 #include <stdarg.h>
20041 int foo(char *f, ...)
20042 {
20043 va_list ap1, ap2;
20044 va_start(ap1, f);
20045 ap2 = ap1;
20046 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
20047 return 1;
20048 va_end(ap2);
20049 va_end(ap1);
20050 return 0;
20051 }
20052 int main()
20053 {
20054 return foo("hi", 17);
20055 }
20056_ACEOF
20057rm -f conftest$ac_exeext
20058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20059 (eval $ac_link) 2>&5
20060 ac_status=$?
20061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20064 (eval $ac_try) 2>&5
20065 ac_status=$?
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); }; }; then
20068 wx_cv_type_va_list_lvalue=yes
20069else
20070 echo "$as_me: program exited with status $ac_status" >&5
20071echo "$as_me: failed program was:" >&5
20072sed 's/^/| /' conftest.$ac_ext >&5
20073
20074( exit $ac_status )
20075wx_cv_type_va_list_lvalue=no
20076fi
20077rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20078fi
20079
20080
20081fi
20082echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
20083echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
20084
20085 if test $wx_cv_type_va_list_lvalue != "yes"; then
20086 cat >>confdefs.h <<\_ACEOF
20087#define VA_LIST_IS_ARRAY 1
20088_ACEOF
20089
20090 fi
20091fi
20092
a848cd7e
SC
20093# Check whether --enable-largefile or --disable-largefile was given.
20094if test "${enable_largefile+set}" = set; then
20095 enableval="$enable_largefile"
20096
20097fi;
20098if test "$enable_largefile" != no; then
20099 wx_largefile=no
20100
20101 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
20102echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
20103if test "${ac_cv_sys_file_offset_bits+set}" = set; then
20104 echo $ECHO_N "(cached) $ECHO_C" >&6
20105else
20106
20107 cat >conftest.$ac_ext <<_ACEOF
20108/* confdefs.h. */
20109_ACEOF
20110cat confdefs.h >>conftest.$ac_ext
20111cat >>conftest.$ac_ext <<_ACEOF
20112/* end confdefs.h. */
20113#define _FILE_OFFSET_BITS 64
20114 #include <sys/types.h>
20115int
20116main ()
20117{
20118typedef struct {
20119 unsigned int field: sizeof(off_t) == 8;
20120} wxlf;
20121
20122 ;
20123 return 0;
20124}
20125_ACEOF
20126rm -f conftest.$ac_objext
20127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20128 (eval $ac_compile) 2>conftest.er1
a848cd7e 20129 ac_status=$?
ac1cb8d3
VS
20130 grep -v '^ *+' conftest.er1 >conftest.err
20131 rm -f conftest.er1
20132 cat conftest.err >&5
a848cd7e
SC
20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); } &&
fb00f58d
JS
20135 { ac_try='test -z "$ac_c_werror_flag"
20136 || test ! -s conftest.err'
ac1cb8d3
VS
20137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20138 (eval $ac_try) 2>&5
20139 ac_status=$?
20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141 (exit $ac_status); }; } &&
20142 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20144 (eval $ac_try) 2>&5
20145 ac_status=$?
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); }; }; then
20148 ac_cv_sys_file_offset_bits=64
20149else
20150 echo "$as_me: failed program was:" >&5
20151sed 's/^/| /' conftest.$ac_ext >&5
20152
20153ac_cv_sys_file_offset_bits=no
20154fi
ac1cb8d3 20155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20156
20157
20158fi
20159echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
20160echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
20161
20162 if test "$ac_cv_sys_file_offset_bits" != no; then
20163 wx_largefile=yes
20164 cat >>confdefs.h <<_ACEOF
20165#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
20166_ACEOF
20167
20168 fi
20169
20170 if test "x$wx_largefile" != "xyes"; then
20171
20172 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
20173echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
20174if test "${ac_cv_sys_large_files+set}" = set; then
20175 echo $ECHO_N "(cached) $ECHO_C" >&6
20176else
20177
20178 cat >conftest.$ac_ext <<_ACEOF
20179/* confdefs.h. */
20180_ACEOF
20181cat confdefs.h >>conftest.$ac_ext
20182cat >>conftest.$ac_ext <<_ACEOF
20183/* end confdefs.h. */
20184#define _LARGE_FILES 1
20185 #include <sys/types.h>
20186int
20187main ()
20188{
20189typedef struct {
20190 unsigned int field: sizeof(off_t) == 8;
20191} wxlf;
20192
20193 ;
20194 return 0;
20195}
20196_ACEOF
20197rm -f conftest.$ac_objext
20198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20199 (eval $ac_compile) 2>conftest.er1
a848cd7e 20200 ac_status=$?
ac1cb8d3
VS
20201 grep -v '^ *+' conftest.er1 >conftest.err
20202 rm -f conftest.er1
20203 cat conftest.err >&5
a848cd7e
SC
20204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205 (exit $ac_status); } &&
fb00f58d
JS
20206 { ac_try='test -z "$ac_c_werror_flag"
20207 || test ! -s conftest.err'
ac1cb8d3
VS
20208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20209 (eval $ac_try) 2>&5
20210 ac_status=$?
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); }; } &&
20213 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20215 (eval $ac_try) 2>&5
20216 ac_status=$?
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); }; }; then
20219 ac_cv_sys_large_files=1
20220else
20221 echo "$as_me: failed program was:" >&5
20222sed 's/^/| /' conftest.$ac_ext >&5
20223
20224ac_cv_sys_large_files=no
20225fi
ac1cb8d3 20226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20227
20228
20229fi
20230echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
20231echo "${ECHO_T}$ac_cv_sys_large_files" >&6
20232
20233 if test "$ac_cv_sys_large_files" != no; then
20234 wx_largefile=yes
20235 cat >>confdefs.h <<_ACEOF
20236#define _LARGE_FILES $ac_cv_sys_large_files
20237_ACEOF
20238
20239 fi
20240
20241 fi
20242
20243 echo "$as_me:$LINENO: checking if large file support is available" >&5
20244echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
20245 if test "x$wx_largefile" = "xyes"; then
20246 cat >>confdefs.h <<\_ACEOF
20247#define HAVE_LARGEFILE_SUPPORT 1
20248_ACEOF
20249
20250 fi
20251 echo "$as_me:$LINENO: result: $wx_largefile" >&5
20252echo "${ECHO_T}$wx_largefile" >&6
20253fi
20254
5b674b9d
DE
20255
20256if test "x$wx_largefile" = "xyes"; then
20257 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
20258 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
20259 else
20260 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
20261 fi
20262 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
20263echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
20264if test "${ac_cv_sys_largefile_source+set}" = set; then
20265 echo $ECHO_N "(cached) $ECHO_C" >&6
20266else
20267 while :; do
20268 ac_cv_sys_largefile_source=no
20269 cat >conftest.$ac_ext <<_ACEOF
20270/* confdefs.h. */
20271_ACEOF
20272cat confdefs.h >>conftest.$ac_ext
20273cat >>conftest.$ac_ext <<_ACEOF
20274/* end confdefs.h. */
20275#include <stdio.h>
20276int
20277main ()
20278{
20279return !fseeko;
20280 ;
20281 return 0;
20282}
20283_ACEOF
20284rm -f conftest.$ac_objext
20285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20286 (eval $ac_compile) 2>conftest.er1
20287 ac_status=$?
20288 grep -v '^ *+' conftest.er1 >conftest.err
20289 rm -f conftest.er1
20290 cat conftest.err >&5
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); } &&
fb00f58d
JS
20293 { ac_try='test -z "$ac_c_werror_flag"
20294 || test ! -s conftest.err'
5294a27e
VZ
20295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20296 (eval $ac_try) 2>&5
20297 ac_status=$?
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); }; } &&
20300 { ac_try='test -s conftest.$ac_objext'
20301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20302 (eval $ac_try) 2>&5
20303 ac_status=$?
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); }; }; then
20306 break
20307else
20308 echo "$as_me: failed program was:" >&5
20309sed 's/^/| /' conftest.$ac_ext >&5
20310
20311fi
20312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20313 cat >conftest.$ac_ext <<_ACEOF
20314/* confdefs.h. */
20315_ACEOF
20316cat confdefs.h >>conftest.$ac_ext
20317cat >>conftest.$ac_ext <<_ACEOF
20318/* end confdefs.h. */
20319#define _LARGEFILE_SOURCE 1
20320#include <stdio.h>
20321int
20322main ()
20323{
20324return !fseeko;
20325 ;
20326 return 0;
20327}
20328_ACEOF
20329rm -f conftest.$ac_objext
20330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20331 (eval $ac_compile) 2>conftest.er1
20332 ac_status=$?
20333 grep -v '^ *+' conftest.er1 >conftest.err
20334 rm -f conftest.er1
20335 cat conftest.err >&5
20336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); } &&
fb00f58d
JS
20338 { ac_try='test -z "$ac_c_werror_flag"
20339 || test ! -s conftest.err'
5294a27e
VZ
20340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20341 (eval $ac_try) 2>&5
20342 ac_status=$?
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); }; } &&
20345 { ac_try='test -s conftest.$ac_objext'
20346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20347 (eval $ac_try) 2>&5
20348 ac_status=$?
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); }; }; then
20351 ac_cv_sys_largefile_source=1; break
20352else
20353 echo "$as_me: failed program was:" >&5
20354sed 's/^/| /' conftest.$ac_ext >&5
20355
20356fi
20357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20358 break
20359done
20360fi
20361echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20362echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
20363if test "$ac_cv_sys_largefile_source" != no; then
20364
20365cat >>confdefs.h <<_ACEOF
20366#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20367_ACEOF
20368
20369fi
20370rm -f conftest*
20371
20372# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20373# in glibc 2.1.3, but that breaks too many other things.
20374# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20375echo "$as_me:$LINENO: checking for fseeko" >&5
20376echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
20377if test "${ac_cv_func_fseeko+set}" = set; then
20378 echo $ECHO_N "(cached) $ECHO_C" >&6
20379else
20380 cat >conftest.$ac_ext <<_ACEOF
20381/* confdefs.h. */
20382_ACEOF
20383cat confdefs.h >>conftest.$ac_ext
20384cat >>conftest.$ac_ext <<_ACEOF
20385/* end confdefs.h. */
20386#include <stdio.h>
20387int
20388main ()
20389{
20390return fseeko && fseeko (stdin, 0, 0);
20391 ;
20392 return 0;
20393}
20394_ACEOF
20395rm -f conftest.$ac_objext conftest$ac_exeext
20396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20397 (eval $ac_link) 2>conftest.er1
20398 ac_status=$?
20399 grep -v '^ *+' conftest.er1 >conftest.err
20400 rm -f conftest.er1
20401 cat conftest.err >&5
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); } &&
fb00f58d
JS
20404 { ac_try='test -z "$ac_c_werror_flag"
20405 || test ! -s conftest.err'
5294a27e
VZ
20406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20407 (eval $ac_try) 2>&5
20408 ac_status=$?
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); }; } &&
20411 { ac_try='test -s conftest$ac_exeext'
20412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20413 (eval $ac_try) 2>&5
20414 ac_status=$?
20415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416 (exit $ac_status); }; }; then
20417 ac_cv_func_fseeko=yes
20418else
20419 echo "$as_me: failed program was:" >&5
20420sed 's/^/| /' conftest.$ac_ext >&5
20421
20422ac_cv_func_fseeko=no
20423fi
20424rm -f conftest.err conftest.$ac_objext \
20425 conftest$ac_exeext conftest.$ac_ext
20426fi
20427echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
20428echo "${ECHO_T}$ac_cv_func_fseeko" >&6
20429if test $ac_cv_func_fseeko = yes; then
20430
20431cat >>confdefs.h <<\_ACEOF
20432#define HAVE_FSEEKO 1
20433_ACEOF
20434
20435fi
20436
5b674b9d
DE
20437 if test "$ac_cv_sys_largefile_source" != no; then
20438 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
20439 fi
20440 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
20441fi
20442
20443echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20444echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20445if test "${ac_cv_c_bigendian+set}" = set; then
20446 echo $ECHO_N "(cached) $ECHO_C" >&6
20447else
20448 ac_cv_c_bigendian=unknown
20449# See if sys/param.h defines the BYTE_ORDER macro.
20450cat >conftest.$ac_ext <<_ACEOF
20451/* confdefs.h. */
20452_ACEOF
20453cat confdefs.h >>conftest.$ac_ext
20454cat >>conftest.$ac_ext <<_ACEOF
20455/* end confdefs.h. */
20456#include <sys/types.h>
20457#include <sys/param.h>
20458int
20459main ()
20460{
20461
20462#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20463 bogus endian macros
20464#endif
20465 ;
20466 return 0;
20467}
20468_ACEOF
20469rm -f conftest.$ac_objext
20470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20471 (eval $ac_compile) 2>conftest.er1
a848cd7e 20472 ac_status=$?
ac1cb8d3
VS
20473 grep -v '^ *+' conftest.er1 >conftest.err
20474 rm -f conftest.er1
20475 cat conftest.err >&5
a848cd7e
SC
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); } &&
fb00f58d
JS
20478 { ac_try='test -z "$ac_c_werror_flag"
20479 || test ! -s conftest.err'
ac1cb8d3
VS
20480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20481 (eval $ac_try) 2>&5
20482 ac_status=$?
20483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484 (exit $ac_status); }; } &&
20485 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20487 (eval $ac_try) 2>&5
20488 ac_status=$?
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); }; }; then
20491 # It does; now see whether it defined to BIG_ENDIAN or not.
20492cat >conftest.$ac_ext <<_ACEOF
20493/* confdefs.h. */
20494_ACEOF
20495cat confdefs.h >>conftest.$ac_ext
20496cat >>conftest.$ac_ext <<_ACEOF
20497/* end confdefs.h. */
20498#include <sys/types.h>
20499#include <sys/param.h>
20500int
20501main ()
20502{
20503
20504#if BYTE_ORDER != BIG_ENDIAN
20505 not big endian
20506#endif
20507 ;
20508 return 0;
20509}
20510_ACEOF
20511rm -f conftest.$ac_objext
20512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20513 (eval $ac_compile) 2>conftest.er1
a848cd7e 20514 ac_status=$?
ac1cb8d3
VS
20515 grep -v '^ *+' conftest.er1 >conftest.err
20516 rm -f conftest.er1
20517 cat conftest.err >&5
a848cd7e
SC
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); } &&
fb00f58d
JS
20520 { ac_try='test -z "$ac_c_werror_flag"
20521 || test ! -s conftest.err'
ac1cb8d3
VS
20522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20523 (eval $ac_try) 2>&5
20524 ac_status=$?
20525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526 (exit $ac_status); }; } &&
20527 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20529 (eval $ac_try) 2>&5
20530 ac_status=$?
20531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532 (exit $ac_status); }; }; then
20533 ac_cv_c_bigendian=yes
20534else
20535 echo "$as_me: failed program was:" >&5
20536sed 's/^/| /' conftest.$ac_ext >&5
20537
20538ac_cv_c_bigendian=no
20539fi
ac1cb8d3 20540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20541else
20542 echo "$as_me: failed program was:" >&5
20543sed 's/^/| /' conftest.$ac_ext >&5
20544
20545fi
ac1cb8d3 20546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20547if test $ac_cv_c_bigendian = unknown; then
20548if test "$cross_compiling" = yes; then
20549 ac_cv_c_bigendian=unknown
20550else
20551 cat >conftest.$ac_ext <<_ACEOF
20552/* confdefs.h. */
20553_ACEOF
20554cat confdefs.h >>conftest.$ac_ext
20555cat >>conftest.$ac_ext <<_ACEOF
20556/* end confdefs.h. */
20557main () {
20558 /* Are we little or big endian? From Harbison&Steele. */
20559 union
20560 {
20561 long l;
20562 char c[sizeof (long)];
20563 } u;
20564 u.l = 1;
20565 exit (u.c[sizeof (long) - 1] == 1);
20566}
20567_ACEOF
20568rm -f conftest$ac_exeext
20569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20570 (eval $ac_link) 2>&5
20571 ac_status=$?
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20575 (eval $ac_try) 2>&5
20576 ac_status=$?
20577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578 (exit $ac_status); }; }; then
20579 ac_cv_c_bigendian=no
20580else
20581 echo "$as_me: program exited with status $ac_status" >&5
20582echo "$as_me: failed program was:" >&5
20583sed 's/^/| /' conftest.$ac_ext >&5
20584
20585( exit $ac_status )
20586ac_cv_c_bigendian=yes
20587fi
ac1cb8d3 20588rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20589fi
20590fi
20591fi
20592echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20593echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20594if test $ac_cv_c_bigendian = unknown; then
20595 { 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
20596echo "$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;}
20597fi
20598if test $ac_cv_c_bigendian = yes; then
20599 cat >>confdefs.h <<\_ACEOF
20600#define WORDS_BIGENDIAN 1
20601_ACEOF
20602
20603fi
20604
20605
20606ac_ext=cc
20607ac_cpp='$CXXCPP $CPPFLAGS'
20608ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20609ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20610ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20611echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
20612echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20613if test -z "$CXXCPP"; then
20614 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20615 echo $ECHO_N "(cached) $ECHO_C" >&6
20616else
20617 # Double quotes because CXXCPP needs to be expanded
20618 for CXXCPP in "$CXX -E" "/lib/cpp"
20619 do
20620 ac_preproc_ok=false
20621for ac_cxx_preproc_warn_flag in '' yes
20622do
20623 # Use a header file that comes with gcc, so configuring glibc
20624 # with a fresh cross-compiler works.
20625 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20626 # <limits.h> exists even on freestanding compilers.
20627 # On the NeXT, cc -E runs the code through the compiler's parser,
20628 # not just through cpp. "Syntax error" is here to catch this case.
20629 cat >conftest.$ac_ext <<_ACEOF
20630/* confdefs.h. */
20631_ACEOF
20632cat confdefs.h >>conftest.$ac_ext
20633cat >>conftest.$ac_ext <<_ACEOF
20634/* end confdefs.h. */
20635#ifdef __STDC__
20636# include <limits.h>
20637#else
20638# include <assert.h>
20639#endif
ac1cb8d3 20640 Syntax error
a848cd7e
SC
20641_ACEOF
20642if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20644 ac_status=$?
20645 grep -v '^ *+' conftest.er1 >conftest.err
20646 rm -f conftest.er1
20647 cat conftest.err >&5
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); } >/dev/null; then
20650 if test -s conftest.err; then
20651 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20652 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20653 else
20654 ac_cpp_err=
20655 fi
20656else
20657 ac_cpp_err=yes
20658fi
20659if test -z "$ac_cpp_err"; then
20660 :
20661else
20662 echo "$as_me: failed program was:" >&5
20663sed 's/^/| /' conftest.$ac_ext >&5
20664
20665 # Broken: fails on valid input.
20666continue
20667fi
20668rm -f conftest.err conftest.$ac_ext
20669
20670 # OK, works on sane cases. Now check whether non-existent headers
20671 # can be detected and how.
20672 cat >conftest.$ac_ext <<_ACEOF
20673/* confdefs.h. */
20674_ACEOF
20675cat confdefs.h >>conftest.$ac_ext
20676cat >>conftest.$ac_ext <<_ACEOF
20677/* end confdefs.h. */
20678#include <ac_nonexistent.h>
20679_ACEOF
20680if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20682 ac_status=$?
20683 grep -v '^ *+' conftest.er1 >conftest.err
20684 rm -f conftest.er1
20685 cat conftest.err >&5
20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); } >/dev/null; then
20688 if test -s conftest.err; then
20689 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20690 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20691 else
20692 ac_cpp_err=
20693 fi
20694else
20695 ac_cpp_err=yes
20696fi
20697if test -z "$ac_cpp_err"; then
20698 # Broken: success on invalid input.
20699continue
20700else
20701 echo "$as_me: failed program was:" >&5
20702sed 's/^/| /' conftest.$ac_ext >&5
20703
20704 # Passes both tests.
20705ac_preproc_ok=:
20706break
20707fi
20708rm -f conftest.err conftest.$ac_ext
20709
20710done
20711# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20712rm -f conftest.err conftest.$ac_ext
20713if $ac_preproc_ok; then
20714 break
20715fi
20716
20717 done
20718 ac_cv_prog_CXXCPP=$CXXCPP
20719
20720fi
20721 CXXCPP=$ac_cv_prog_CXXCPP
20722else
20723 ac_cv_prog_CXXCPP=$CXXCPP
20724fi
20725echo "$as_me:$LINENO: result: $CXXCPP" >&5
20726echo "${ECHO_T}$CXXCPP" >&6
20727ac_preproc_ok=false
20728for ac_cxx_preproc_warn_flag in '' yes
20729do
20730 # Use a header file that comes with gcc, so configuring glibc
20731 # with a fresh cross-compiler works.
20732 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20733 # <limits.h> exists even on freestanding compilers.
20734 # On the NeXT, cc -E runs the code through the compiler's parser,
20735 # not just through cpp. "Syntax error" is here to catch this case.
20736 cat >conftest.$ac_ext <<_ACEOF
20737/* confdefs.h. */
20738_ACEOF
20739cat confdefs.h >>conftest.$ac_ext
20740cat >>conftest.$ac_ext <<_ACEOF
20741/* end confdefs.h. */
20742#ifdef __STDC__
20743# include <limits.h>
20744#else
20745# include <assert.h>
20746#endif
ac1cb8d3 20747 Syntax error
a848cd7e
SC
20748_ACEOF
20749if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20750 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20751 ac_status=$?
20752 grep -v '^ *+' conftest.er1 >conftest.err
20753 rm -f conftest.er1
20754 cat conftest.err >&5
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); } >/dev/null; then
20757 if test -s conftest.err; then
20758 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20759 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20760 else
20761 ac_cpp_err=
20762 fi
20763else
20764 ac_cpp_err=yes
20765fi
20766if test -z "$ac_cpp_err"; then
20767 :
20768else
20769 echo "$as_me: failed program was:" >&5
20770sed 's/^/| /' conftest.$ac_ext >&5
20771
20772 # Broken: fails on valid input.
20773continue
20774fi
20775rm -f conftest.err conftest.$ac_ext
20776
20777 # OK, works on sane cases. Now check whether non-existent headers
20778 # can be detected and how.
20779 cat >conftest.$ac_ext <<_ACEOF
20780/* confdefs.h. */
20781_ACEOF
20782cat confdefs.h >>conftest.$ac_ext
20783cat >>conftest.$ac_ext <<_ACEOF
20784/* end confdefs.h. */
20785#include <ac_nonexistent.h>
20786_ACEOF
20787if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20789 ac_status=$?
20790 grep -v '^ *+' conftest.er1 >conftest.err
20791 rm -f conftest.er1
20792 cat conftest.err >&5
20793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794 (exit $ac_status); } >/dev/null; then
20795 if test -s conftest.err; then
20796 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20797 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20798 else
20799 ac_cpp_err=
20800 fi
20801else
20802 ac_cpp_err=yes
20803fi
20804if test -z "$ac_cpp_err"; then
20805 # Broken: success on invalid input.
20806continue
20807else
20808 echo "$as_me: failed program was:" >&5
20809sed 's/^/| /' conftest.$ac_ext >&5
20810
20811 # Passes both tests.
20812ac_preproc_ok=:
20813break
20814fi
20815rm -f conftest.err conftest.$ac_ext
20816
20817done
20818# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20819rm -f conftest.err conftest.$ac_ext
20820if $ac_preproc_ok; then
20821 :
20822else
20823 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20824See \`config.log' for more details." >&5
20825echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
20826See \`config.log' for more details." >&2;}
20827 { (exit 1); exit 1; }; }
20828fi
20829
20830ac_ext=cc
20831ac_cpp='$CXXCPP $CPPFLAGS'
20832ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20833ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20834ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20835
20836
20837
20838
20839
20840 ac_ext=cc
20841ac_cpp='$CXXCPP $CPPFLAGS'
20842ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20843ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20844ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20845
20846
20847
20848for ac_header in iostream
20849do
20850as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20851if eval "test \"\${$as_ac_Header+set}\" = set"; then
20852 echo "$as_me:$LINENO: checking for $ac_header" >&5
20853echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20854if eval "test \"\${$as_ac_Header+set}\" = set"; then
20855 echo $ECHO_N "(cached) $ECHO_C" >&6
20856fi
20857echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20858echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20859else
20860 # Is the header compilable?
20861echo "$as_me:$LINENO: checking $ac_header usability" >&5
20862echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20863cat >conftest.$ac_ext <<_ACEOF
20864/* confdefs.h. */
20865_ACEOF
20866cat confdefs.h >>conftest.$ac_ext
20867cat >>conftest.$ac_ext <<_ACEOF
20868/* end confdefs.h. */
20869$ac_includes_default
20870#include <$ac_header>
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); } &&
fb00f58d
JS
20881 { ac_try='test -z "$ac_cxx_werror_flag"
20882 || test ! -s conftest.err'
ac1cb8d3
VS
20883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20884 (eval $ac_try) 2>&5
20885 ac_status=$?
20886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887 (exit $ac_status); }; } &&
20888 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20890 (eval $ac_try) 2>&5
20891 ac_status=$?
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); }; }; then
20894 ac_header_compiler=yes
20895else
20896 echo "$as_me: failed program was:" >&5
20897sed 's/^/| /' conftest.$ac_ext >&5
20898
20899ac_header_compiler=no
20900fi
ac1cb8d3 20901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20902echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20903echo "${ECHO_T}$ac_header_compiler" >&6
20904
20905# Is the header present?
20906echo "$as_me:$LINENO: checking $ac_header presence" >&5
20907echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20908cat >conftest.$ac_ext <<_ACEOF
20909/* confdefs.h. */
20910_ACEOF
20911cat confdefs.h >>conftest.$ac_ext
20912cat >>conftest.$ac_ext <<_ACEOF
20913/* end confdefs.h. */
20914#include <$ac_header>
20915_ACEOF
20916if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20918 ac_status=$?
20919 grep -v '^ *+' conftest.er1 >conftest.err
20920 rm -f conftest.er1
20921 cat conftest.err >&5
20922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923 (exit $ac_status); } >/dev/null; then
20924 if test -s conftest.err; then
20925 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20926 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
20927 else
20928 ac_cpp_err=
20929 fi
20930else
20931 ac_cpp_err=yes
20932fi
20933if test -z "$ac_cpp_err"; then
20934 ac_header_preproc=yes
20935else
20936 echo "$as_me: failed program was:" >&5
20937sed 's/^/| /' conftest.$ac_ext >&5
20938
20939 ac_header_preproc=no
20940fi
20941rm -f conftest.err conftest.$ac_ext
20942echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20943echo "${ECHO_T}$ac_header_preproc" >&6
20944
20945# So? What about this header?
ac1cb8d3
VS
20946case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20947 yes:no: )
a848cd7e
SC
20948 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20949echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20951echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20952 ac_header_preproc=yes
a848cd7e 20953 ;;
ac1cb8d3 20954 no:yes:* )
a848cd7e
SC
20955 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20956echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20957 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20958echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20959 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20960echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20961 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20962echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20964echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20965 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20966echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20967 (
20968 cat <<\_ASBOX
ac1cb8d3
VS
20969## ----------------------------------------- ##
20970## Report this to wx-dev@lists.wxwidgets.org ##
20971## ----------------------------------------- ##
a848cd7e
SC
20972_ASBOX
20973 ) |
20974 sed "s/^/$as_me: WARNING: /" >&2
20975 ;;
20976esac
20977echo "$as_me:$LINENO: checking for $ac_header" >&5
20978echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20979if eval "test \"\${$as_ac_Header+set}\" = set"; then
20980 echo $ECHO_N "(cached) $ECHO_C" >&6
20981else
ac1cb8d3 20982 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
20983fi
20984echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20985echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20986
20987fi
20988if test `eval echo '${'$as_ac_Header'}'` = yes; then
20989 cat >>confdefs.h <<_ACEOF
20990#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20991_ACEOF
20992
20993fi
20994
20995done
20996
20997
20998 if test "$ac_cv_header_iostream" = "yes" ; then
20999 :
21000 else
21001 cat >>confdefs.h <<\_ACEOF
21002#define wxUSE_IOSTREAMH 1
21003_ACEOF
21004
21005 fi
21006
21007 ac_ext=c
21008ac_cpp='$CPP $CPPFLAGS'
21009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21011ac_compiler_gnu=$ac_cv_c_compiler_gnu
21012
21013
21014
21015
21016 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
21017echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
21018if test "${wx_cv_cpp_bool+set}" = set; then
21019 echo $ECHO_N "(cached) $ECHO_C" >&6
21020else
21021
21022
21023
21024 ac_ext=cc
21025ac_cpp='$CXXCPP $CPPFLAGS'
21026ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21027ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21028ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21029
21030
21031 cat >conftest.$ac_ext <<_ACEOF
21032/* confdefs.h. */
21033_ACEOF
21034cat confdefs.h >>conftest.$ac_ext
21035cat >>conftest.$ac_ext <<_ACEOF
21036/* end confdefs.h. */
21037
21038
21039int
21040main ()
21041{
21042
21043 bool b = true;
21044
21045 return 0;
21046
21047 ;
21048 return 0;
21049}
21050_ACEOF
21051rm -f conftest.$ac_objext
21052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21053 (eval $ac_compile) 2>conftest.er1
a848cd7e 21054 ac_status=$?
ac1cb8d3
VS
21055 grep -v '^ *+' conftest.er1 >conftest.err
21056 rm -f conftest.er1
21057 cat conftest.err >&5
a848cd7e
SC
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); } &&
fb00f58d
JS
21060 { ac_try='test -z "$ac_cxx_werror_flag"
21061 || test ! -s conftest.err'
ac1cb8d3
VS
21062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21063 (eval $ac_try) 2>&5
21064 ac_status=$?
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); }; } &&
21067 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21069 (eval $ac_try) 2>&5
21070 ac_status=$?
21071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072 (exit $ac_status); }; }; then
21073
21074 wx_cv_cpp_bool=yes
21075
21076else
21077 echo "$as_me: failed program was:" >&5
21078sed 's/^/| /' conftest.$ac_ext >&5
21079
21080
21081 wx_cv_cpp_bool=no
21082
21083
21084fi
ac1cb8d3 21085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21086
21087 ac_ext=c
21088ac_cpp='$CPP $CPPFLAGS'
21089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21091ac_compiler_gnu=$ac_cv_c_compiler_gnu
21092
21093
21094fi
21095echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
21096echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21097
21098 if test "$wx_cv_cpp_bool" = "yes"; then
21099 cat >>confdefs.h <<\_ACEOF
21100#define HAVE_BOOL 1
21101_ACEOF
21102
21103 fi
21104
21105
21106
21107 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
21108echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
21109if test "${wx_cv_explicit+set}" = set; then
21110 echo $ECHO_N "(cached) $ECHO_C" >&6
21111else
21112
21113
21114
21115 ac_ext=cc
21116ac_cpp='$CXXCPP $CPPFLAGS'
21117ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21118ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21119ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21120
21121
21122 cat >conftest.$ac_ext <<_ACEOF
21123/* confdefs.h. */
21124_ACEOF
21125cat confdefs.h >>conftest.$ac_ext
21126cat >>conftest.$ac_ext <<_ACEOF
21127/* end confdefs.h. */
21128
21129 class Foo { public: explicit Foo(int) {} };
21130
21131int
21132main ()
21133{
21134
21135 return 0;
21136
21137 ;
21138 return 0;
21139}
21140_ACEOF
21141rm -f conftest.$ac_objext
21142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21143 (eval $ac_compile) 2>conftest.er1
a848cd7e 21144 ac_status=$?
ac1cb8d3
VS
21145 grep -v '^ *+' conftest.er1 >conftest.err
21146 rm -f conftest.er1
21147 cat conftest.err >&5
a848cd7e
SC
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); } &&
fb00f58d
JS
21150 { ac_try='test -z "$ac_cxx_werror_flag"
21151 || test ! -s conftest.err'
ac1cb8d3
VS
21152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21153 (eval $ac_try) 2>&5
21154 ac_status=$?
21155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156 (exit $ac_status); }; } &&
21157 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21159 (eval $ac_try) 2>&5
21160 ac_status=$?
21161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162 (exit $ac_status); }; }; then
21163
21164 cat >conftest.$ac_ext <<_ACEOF
21165/* confdefs.h. */
21166_ACEOF
21167cat confdefs.h >>conftest.$ac_ext
21168cat >>conftest.$ac_ext <<_ACEOF
21169/* end confdefs.h. */
21170
21171 class Foo { public: explicit Foo(int) {} };
21172 static void TakeFoo(const Foo& foo) { }
21173
21174int
21175main ()
21176{
21177
21178 TakeFoo(17);
21179 return 0;
21180
21181 ;
21182 return 0;
21183}
21184_ACEOF
21185rm -f conftest.$ac_objext
21186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21187 (eval $ac_compile) 2>conftest.er1
a848cd7e 21188 ac_status=$?
ac1cb8d3
VS
21189 grep -v '^ *+' conftest.er1 >conftest.err
21190 rm -f conftest.er1
21191 cat conftest.err >&5
a848cd7e
SC
21192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193 (exit $ac_status); } &&
fb00f58d
JS
21194 { ac_try='test -z "$ac_cxx_werror_flag"
21195 || test ! -s conftest.err'
ac1cb8d3
VS
21196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21197 (eval $ac_try) 2>&5
21198 ac_status=$?
21199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200 (exit $ac_status); }; } &&
21201 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21203 (eval $ac_try) 2>&5
21204 ac_status=$?
21205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); }; }; then
21207 wx_cv_explicit=no
21208else
21209 echo "$as_me: failed program was:" >&5
21210sed 's/^/| /' conftest.$ac_ext >&5
21211
21212wx_cv_explicit=yes
21213
21214fi
ac1cb8d3 21215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21216
21217else
21218 echo "$as_me: failed program was:" >&5
21219sed 's/^/| /' conftest.$ac_ext >&5
21220
21221wx_cv_explicit=no
21222
21223fi
ac1cb8d3 21224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21225
21226 ac_ext=c
21227ac_cpp='$CPP $CPPFLAGS'
21228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21230ac_compiler_gnu=$ac_cv_c_compiler_gnu
21231
21232
21233fi
21234echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
21235echo "${ECHO_T}$wx_cv_explicit" >&6
21236
21237 if test "$wx_cv_explicit" = "yes"; then
21238 cat >>confdefs.h <<\_ACEOF
21239#define HAVE_EXPLICIT 1
21240_ACEOF
21241
21242 fi
21243
21244
21245echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
21246echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
21247if test "${ac_cv_cxx_const_cast+set}" = set; then
21248 echo $ECHO_N "(cached) $ECHO_C" >&6
21249else
21250
21251
21252 ac_ext=cc
21253ac_cpp='$CXXCPP $CPPFLAGS'
21254ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21255ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21256ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21257
21258 cat >conftest.$ac_ext <<_ACEOF
21259/* confdefs.h. */
21260_ACEOF
21261cat confdefs.h >>conftest.$ac_ext
21262cat >>conftest.$ac_ext <<_ACEOF
21263/* end confdefs.h. */
21264
21265int
21266main ()
21267{
21268int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
21269 ;
21270 return 0;
21271}
21272_ACEOF
21273rm -f conftest.$ac_objext
21274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21275 (eval $ac_compile) 2>conftest.er1
a848cd7e 21276 ac_status=$?
ac1cb8d3
VS
21277 grep -v '^ *+' conftest.er1 >conftest.err
21278 rm -f conftest.er1
21279 cat conftest.err >&5
a848cd7e
SC
21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281 (exit $ac_status); } &&
fb00f58d
JS
21282 { ac_try='test -z "$ac_cxx_werror_flag"
21283 || test ! -s conftest.err'
ac1cb8d3
VS
21284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21285 (eval $ac_try) 2>&5
21286 ac_status=$?
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); }; } &&
21289 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21291 (eval $ac_try) 2>&5
21292 ac_status=$?
21293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294 (exit $ac_status); }; }; then
21295 ac_cv_cxx_const_cast=yes
21296else
21297 echo "$as_me: failed program was:" >&5
21298sed 's/^/| /' conftest.$ac_ext >&5
21299
21300ac_cv_cxx_const_cast=no
21301fi
ac1cb8d3 21302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21303 ac_ext=c
21304ac_cpp='$CPP $CPPFLAGS'
21305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21307ac_compiler_gnu=$ac_cv_c_compiler_gnu
21308
21309
21310fi
21311echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
21312echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
21313if test "$ac_cv_cxx_const_cast" = yes; then
21314
21315cat >>confdefs.h <<\_ACEOF
21316#define HAVE_CONST_CAST
21317_ACEOF
21318
21319fi
21320
7714864e
RL
21321echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
21322echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
21323if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
21324 echo $ECHO_N "(cached) $ECHO_C" >&6
21325else
21326
21327
21328 ac_ext=cc
21329ac_cpp='$CXXCPP $CPPFLAGS'
21330ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21331ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21332ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21333
21334 cat >conftest.$ac_ext <<_ACEOF
21335/* confdefs.h. */
21336_ACEOF
21337cat confdefs.h >>conftest.$ac_ext
21338cat >>conftest.$ac_ext <<_ACEOF
21339/* end confdefs.h. */
21340#include <typeinfo>
21341class Base { public : Base () {} virtual void f () = 0;};
21342class Derived : public Base { public : Derived () {} virtual void f () {} };
21343class Unrelated { public : Unrelated () {} };
21344int g (Unrelated&) { return 0; }
21345int
21346main ()
21347{
21348
21349Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
21350 ;
21351 return 0;
21352}
21353_ACEOF
21354rm -f conftest.$ac_objext
21355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21356 (eval $ac_compile) 2>conftest.er1
21357 ac_status=$?
21358 grep -v '^ *+' conftest.er1 >conftest.err
21359 rm -f conftest.er1
21360 cat conftest.err >&5
21361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362 (exit $ac_status); } &&
fb00f58d
JS
21363 { ac_try='test -z "$ac_cxx_werror_flag"
21364 || test ! -s conftest.err'
7714864e
RL
21365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21366 (eval $ac_try) 2>&5
21367 ac_status=$?
21368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21369 (exit $ac_status); }; } &&
21370 { ac_try='test -s conftest.$ac_objext'
21371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21372 (eval $ac_try) 2>&5
21373 ac_status=$?
21374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375 (exit $ac_status); }; }; then
21376 ac_cv_cxx_reinterpret_cast=yes
21377else
21378 echo "$as_me: failed program was:" >&5
21379sed 's/^/| /' conftest.$ac_ext >&5
21380
21381ac_cv_cxx_reinterpret_cast=no
21382fi
21383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21384 ac_ext=c
21385ac_cpp='$CPP $CPPFLAGS'
21386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21388ac_compiler_gnu=$ac_cv_c_compiler_gnu
21389
21390
21391fi
21392echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
21393echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
21394if test "$ac_cv_cxx_reinterpret_cast" = yes; then
21395
21396cat >>confdefs.h <<\_ACEOF
21397#define HAVE_REINTERPRET_CAST
21398_ACEOF
21399
21400fi
21401
a848cd7e
SC
21402echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
21403echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
21404if test "${ac_cv_cxx_static_cast+set}" = set; then
21405 echo $ECHO_N "(cached) $ECHO_C" >&6
21406else
21407
21408
21409 ac_ext=cc
21410ac_cpp='$CXXCPP $CPPFLAGS'
21411ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21412ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21413ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21414
21415 cat >conftest.$ac_ext <<_ACEOF
21416/* confdefs.h. */
21417_ACEOF
21418cat confdefs.h >>conftest.$ac_ext
21419cat >>conftest.$ac_ext <<_ACEOF
21420/* end confdefs.h. */
21421#include <typeinfo>
21422class Base { public : Base () {} virtual void f () = 0; };
21423class Derived : public Base { public : Derived () {} virtual void f () {} };
21424int g (Derived&) { return 0; }
21425int
21426main ()
21427{
21428
21429Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
21430 ;
21431 return 0;
21432}
21433_ACEOF
21434rm -f conftest.$ac_objext
21435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21436 (eval $ac_compile) 2>conftest.er1
a848cd7e 21437 ac_status=$?
ac1cb8d3
VS
21438 grep -v '^ *+' conftest.er1 >conftest.err
21439 rm -f conftest.er1
21440 cat conftest.err >&5
a848cd7e
SC
21441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); } &&
fb00f58d
JS
21443 { ac_try='test -z "$ac_cxx_werror_flag"
21444 || test ! -s conftest.err'
ac1cb8d3
VS
21445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21446 (eval $ac_try) 2>&5
21447 ac_status=$?
21448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); }; } &&
21450 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21452 (eval $ac_try) 2>&5
21453 ac_status=$?
21454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455 (exit $ac_status); }; }; then
21456 ac_cv_cxx_static_cast=yes
21457else
21458 echo "$as_me: failed program was:" >&5
21459sed 's/^/| /' conftest.$ac_ext >&5
21460
21461ac_cv_cxx_static_cast=no
21462fi
ac1cb8d3 21463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21464 ac_ext=c
21465ac_cpp='$CPP $CPPFLAGS'
21466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21468ac_compiler_gnu=$ac_cv_c_compiler_gnu
21469
21470
21471fi
21472echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
21473echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
21474if test "$ac_cv_cxx_static_cast" = yes; then
21475
21476cat >>confdefs.h <<\_ACEOF
21477#define HAVE_STATIC_CAST
21478_ACEOF
21479
21480fi
21481
21482
f56c22b4 21483if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
a848cd7e
SC
21484 ac_ext=cc
21485ac_cpp='$CXXCPP $CPPFLAGS'
21486ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21487ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21488ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21489
21490
f56c22b4
MW
21491 if test "$wxUSE_UNICODE" = "yes"; then
21492 std_string="std::wstring"
21493 char_type="wchar_t"
21494 else
21495 std_string="std::string"
21496 char_type="char"
21497 fi
21498
21499 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
21500echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
21501 cat >conftest.$ac_ext <<_ACEOF
21502/* confdefs.h. */
21503_ACEOF
21504cat confdefs.h >>conftest.$ac_ext
21505cat >>conftest.$ac_ext <<_ACEOF
21506/* end confdefs.h. */
21507#include <string>
a848cd7e
SC
21508int
21509main ()
21510{
f56c22b4 21511$std_string foo;
a848cd7e
SC
21512 ;
21513 return 0;
21514}
21515_ACEOF
21516rm -f conftest.$ac_objext
21517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21518 (eval $ac_compile) 2>conftest.er1
a848cd7e 21519 ac_status=$?
ac1cb8d3
VS
21520 grep -v '^ *+' conftest.er1 >conftest.err
21521 rm -f conftest.er1
21522 cat conftest.err >&5
a848cd7e
SC
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); } &&
fb00f58d
JS
21525 { ac_try='test -z "$ac_cxx_werror_flag"
21526 || test ! -s conftest.err'
ac1cb8d3
VS
21527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21528 (eval $ac_try) 2>&5
21529 ac_status=$?
21530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21531 (exit $ac_status); }; } &&
21532 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21534 (eval $ac_try) 2>&5
21535 ac_status=$?
21536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); }; }; then
21538 echo "$as_me:$LINENO: result: yes" >&5
21539echo "${ECHO_T}yes" >&6
0a08f02a
MB
21540 cat >>confdefs.h <<\_ACEOF
21541#define HAVE_STD_WSTRING 1
21542_ACEOF
21543
a848cd7e
SC
21544else
21545 echo "$as_me: failed program was:" >&5
21546sed 's/^/| /' conftest.$ac_ext >&5
21547
21548echo "$as_me:$LINENO: result: no" >&5
21549echo "${ECHO_T}no" >&6
f56c22b4
MW
21550 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
21551echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
21552 cat >conftest.$ac_ext <<_ACEOF
21553/* confdefs.h. */
21554_ACEOF
21555cat confdefs.h >>conftest.$ac_ext
21556cat >>conftest.$ac_ext <<_ACEOF
21557/* end confdefs.h. */
21558
21559 #ifdef HAVE_WCHAR_H
21560 # ifdef __CYGWIN__
21561 # include <stddef.h>
21562 # endif
21563 # include <wchar.h>
21564 #endif
21565 #ifdef HAVE_STDLIB_H
21566 # include <stdlib.h>
21567 #endif
21568 #include <stdio.h>
21569 #include <string>
21570
21571int
21572main ()
21573{
f56c22b4
MW
21574std::basic_string<$char_type> foo;
21575 const $char_type* dummy = foo.c_str();
0a08f02a
MB
21576 ;
21577 return 0;
21578}
21579_ACEOF
21580rm -f conftest.$ac_objext
21581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21582 (eval $ac_compile) 2>conftest.er1
21583 ac_status=$?
21584 grep -v '^ *+' conftest.er1 >conftest.err
21585 rm -f conftest.er1
21586 cat conftest.err >&5
21587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588 (exit $ac_status); } &&
fb00f58d
JS
21589 { ac_try='test -z "$ac_cxx_werror_flag"
21590 || test ! -s conftest.err'
0a08f02a
MB
21591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21592 (eval $ac_try) 2>&5
21593 ac_status=$?
21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); }; } &&
21596 { ac_try='test -s conftest.$ac_objext'
21597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21598 (eval $ac_try) 2>&5
21599 ac_status=$?
21600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601 (exit $ac_status); }; }; then
21602 echo "$as_me:$LINENO: result: yes" >&5
21603echo "${ECHO_T}yes" >&6
21604else
21605 echo "$as_me: failed program was:" >&5
21606sed 's/^/| /' conftest.$ac_ext >&5
21607
21608echo "$as_me:$LINENO: result: no" >&5
21609echo "${ECHO_T}no" >&6
f56c22b4 21610 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
21611 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
21612echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
21613 { (exit 1); exit 1; }; }
21614 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
21615 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
21616echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 21617 { (exit 1); exit 1; }; }
f56c22b4
MW
21618 else
21619 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
21620echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
21621 wxUSE_STD_STRING=no
21622 fi
21623
0a08f02a 21624
a848cd7e 21625fi
ac1cb8d3 21626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21627
0a08f02a
MB
21628fi
21629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21630
21631 ac_ext=c
21632ac_cpp='$CPP $CPPFLAGS'
21633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
f56c22b4
MW
21635ac_compiler_gnu=$ac_cv_c_compiler_gnu
21636
21637fi
21638
21639if test "$wxUSE_STD_IOSTREAM" = "yes"; then
21640 ac_ext=cc
21641ac_cpp='$CXXCPP $CPPFLAGS'
21642ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21643ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21644ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21645
21646
21647 echo "$as_me:$LINENO: checking for std::istream" >&5
21648echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
21649if test "${ac_cv_type_std__istream+set}" = set; then
21650 echo $ECHO_N "(cached) $ECHO_C" >&6
21651else
21652 cat >conftest.$ac_ext <<_ACEOF
21653/* confdefs.h. */
21654_ACEOF
21655cat confdefs.h >>conftest.$ac_ext
21656cat >>conftest.$ac_ext <<_ACEOF
21657/* end confdefs.h. */
21658#include <iostream>
21659
21660int
21661main ()
21662{
21663if ((std::istream *) 0)
21664 return 0;
21665if (sizeof (std::istream))
21666 return 0;
21667 ;
21668 return 0;
21669}
21670_ACEOF
21671rm -f conftest.$ac_objext
21672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21673 (eval $ac_compile) 2>conftest.er1
21674 ac_status=$?
21675 grep -v '^ *+' conftest.er1 >conftest.err
21676 rm -f conftest.er1
21677 cat conftest.err >&5
21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); } &&
fb00f58d
JS
21680 { ac_try='test -z "$ac_cxx_werror_flag"
21681 || test ! -s conftest.err'
f56c22b4
MW
21682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21683 (eval $ac_try) 2>&5
21684 ac_status=$?
21685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686 (exit $ac_status); }; } &&
21687 { ac_try='test -s conftest.$ac_objext'
21688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21689 (eval $ac_try) 2>&5
21690 ac_status=$?
21691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692 (exit $ac_status); }; }; then
21693 ac_cv_type_std__istream=yes
21694else
21695 echo "$as_me: failed program was:" >&5
21696sed 's/^/| /' conftest.$ac_ext >&5
21697
21698ac_cv_type_std__istream=no
21699fi
21700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21701fi
21702echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
21703echo "${ECHO_T}$ac_cv_type_std__istream" >&6
21704if test $ac_cv_type_std__istream = yes; then
21705
21706cat >>confdefs.h <<_ACEOF
21707#define HAVE_STD__ISTREAM 1
21708_ACEOF
21709
21710
21711else
21712 wxUSE_STD_IOSTREAM=no
21713fi
21714echo "$as_me:$LINENO: checking for std::ostream" >&5
21715echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
21716if test "${ac_cv_type_std__ostream+set}" = set; then
21717 echo $ECHO_N "(cached) $ECHO_C" >&6
21718else
21719 cat >conftest.$ac_ext <<_ACEOF
21720/* confdefs.h. */
21721_ACEOF
21722cat confdefs.h >>conftest.$ac_ext
21723cat >>conftest.$ac_ext <<_ACEOF
21724/* end confdefs.h. */
21725#include <iostream>
21726
21727int
21728main ()
21729{
21730if ((std::ostream *) 0)
21731 return 0;
21732if (sizeof (std::ostream))
21733 return 0;
21734 ;
21735 return 0;
21736}
21737_ACEOF
21738rm -f conftest.$ac_objext
21739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21740 (eval $ac_compile) 2>conftest.er1
21741 ac_status=$?
21742 grep -v '^ *+' conftest.er1 >conftest.err
21743 rm -f conftest.er1
21744 cat conftest.err >&5
21745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746 (exit $ac_status); } &&
fb00f58d
JS
21747 { ac_try='test -z "$ac_cxx_werror_flag"
21748 || test ! -s conftest.err'
f56c22b4
MW
21749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21750 (eval $ac_try) 2>&5
21751 ac_status=$?
21752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753 (exit $ac_status); }; } &&
21754 { ac_try='test -s conftest.$ac_objext'
21755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21756 (eval $ac_try) 2>&5
21757 ac_status=$?
21758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759 (exit $ac_status); }; }; then
21760 ac_cv_type_std__ostream=yes
21761else
21762 echo "$as_me: failed program was:" >&5
21763sed 's/^/| /' conftest.$ac_ext >&5
21764
21765ac_cv_type_std__ostream=no
21766fi
21767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21768fi
21769echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
21770echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
21771if test $ac_cv_type_std__ostream = yes; then
21772
21773cat >>confdefs.h <<_ACEOF
21774#define HAVE_STD__OSTREAM 1
21775_ACEOF
21776
21777
21778else
21779 wxUSE_STD_IOSTREAM=no
21780fi
21781
21782
21783 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
21784 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
21785 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
21786echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
21787 { (exit 1); exit 1; }; }
21788 else
21789 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 21790echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 21791 fi
f56c22b4
MW
21792 fi
21793
21794 ac_ext=c
21795ac_cpp='$CPP $CPPFLAGS'
21796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
0a08f02a
MB
21798ac_compiler_gnu=$ac_cv_c_compiler_gnu
21799
21800fi
21801
21802if test "$wxUSE_STL" = "yes"; then
21803 ac_ext=cc
21804ac_cpp='$CXXCPP $CPPFLAGS'
21805ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21806ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21807ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21808
21809
21810 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
21811echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
21812 cat >conftest.$ac_ext <<_ACEOF
21813/* confdefs.h. */
21814_ACEOF
21815cat confdefs.h >>conftest.$ac_ext
21816cat >>conftest.$ac_ext <<_ACEOF
21817/* end confdefs.h. */
21818#include <string>
0a08f02a
MB
21819 #include <functional>
21820 #include <algorithm>
21821 #include <vector>
21822 #include <list>
a848cd7e
SC
21823int
21824main ()
21825{
0a08f02a
MB
21826std::vector<int> moo;
21827 std::list<int> foo;
21828 std::vector<int>::iterator it =
21829 std::find_if(moo.begin(), moo.end(),
21830 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
21831 ;
21832 return 0;
21833}
21834_ACEOF
21835rm -f conftest.$ac_objext
21836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21837 (eval $ac_compile) 2>conftest.er1
a848cd7e 21838 ac_status=$?
ac1cb8d3
VS
21839 grep -v '^ *+' conftest.er1 >conftest.err
21840 rm -f conftest.er1
21841 cat conftest.err >&5
a848cd7e
SC
21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); } &&
fb00f58d
JS
21844 { ac_try='test -z "$ac_cxx_werror_flag"
21845 || test ! -s conftest.err'
ac1cb8d3
VS
21846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21847 (eval $ac_try) 2>&5
21848 ac_status=$?
21849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850 (exit $ac_status); }; } &&
21851 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21853 (eval $ac_try) 2>&5
21854 ac_status=$?
21855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21856 (exit $ac_status); }; }; then
21857 echo "$as_me:$LINENO: result: yes" >&5
21858echo "${ECHO_T}yes" >&6
a848cd7e
SC
21859else
21860 echo "$as_me: failed program was:" >&5
21861sed 's/^/| /' conftest.$ac_ext >&5
21862
21863echo "$as_me:$LINENO: result: no" >&5
21864echo "${ECHO_T}no" >&6
0a08f02a
MB
21865 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
21866echo "$as_me: error: Basic STL functionality missing" >&2;}
21867 { (exit 1); exit 1; }; }
a848cd7e 21868fi
ac1cb8d3 21869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21870
21871 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
21872echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
21873 cat >conftest.$ac_ext <<_ACEOF
21874/* confdefs.h. */
21875_ACEOF
21876cat confdefs.h >>conftest.$ac_ext
21877cat >>conftest.$ac_ext <<_ACEOF
21878/* end confdefs.h. */
21879#include <string>
21880int
21881main ()
21882{
21883std::string foo, bar;
21884 foo.compare(bar);
21885 foo.compare(1, 1, bar);
21886 foo.compare(1, 1, bar, 1, 1);
21887 foo.compare("");
21888 foo.compare(1, 1, "");
21889 foo.compare(1, 1, "", 2);
21890 ;
21891 return 0;
21892}
21893_ACEOF
21894rm -f conftest.$ac_objext
21895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21896 (eval $ac_compile) 2>conftest.er1
a848cd7e 21897 ac_status=$?
ac1cb8d3
VS
21898 grep -v '^ *+' conftest.er1 >conftest.err
21899 rm -f conftest.er1
21900 cat conftest.err >&5
a848cd7e
SC
21901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902 (exit $ac_status); } &&
fb00f58d
JS
21903 { ac_try='test -z "$ac_cxx_werror_flag"
21904 || test ! -s conftest.err'
ac1cb8d3
VS
21905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21906 (eval $ac_try) 2>&5
21907 ac_status=$?
21908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909 (exit $ac_status); }; } &&
21910 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21912 (eval $ac_try) 2>&5
21913 ac_status=$?
21914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915 (exit $ac_status); }; }; then
21916 echo "$as_me:$LINENO: result: yes" >&5
21917echo "${ECHO_T}yes" >&6
21918 cat >>confdefs.h <<\_ACEOF
21919#define HAVE_STD_STRING_COMPARE 1
21920_ACEOF
21921
21922else
21923 echo "$as_me: failed program was:" >&5
21924sed 's/^/| /' conftest.$ac_ext >&5
21925
21926echo "$as_me:$LINENO: result: no" >&5
21927echo "${ECHO_T}no" >&6
21928fi
ac1cb8d3 21929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21930
21931 if test "${ac_cv_header_hash_map+set}" = set; then
21932 echo "$as_me:$LINENO: checking for hash_map" >&5
21933echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
21934if test "${ac_cv_header_hash_map+set}" = set; then
21935 echo $ECHO_N "(cached) $ECHO_C" >&6
21936fi
21937echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
21938echo "${ECHO_T}$ac_cv_header_hash_map" >&6
21939else
21940 # Is the header compilable?
21941echo "$as_me:$LINENO: checking hash_map usability" >&5
21942echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
21943cat >conftest.$ac_ext <<_ACEOF
21944/* confdefs.h. */
21945_ACEOF
21946cat confdefs.h >>conftest.$ac_ext
21947cat >>conftest.$ac_ext <<_ACEOF
21948/* end confdefs.h. */
21949$ac_includes_default
21950#include <hash_map>
21951_ACEOF
21952rm -f conftest.$ac_objext
21953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21954 (eval $ac_compile) 2>conftest.er1
bdcade0a 21955 ac_status=$?
ac1cb8d3
VS
21956 grep -v '^ *+' conftest.er1 >conftest.err
21957 rm -f conftest.er1
21958 cat conftest.err >&5
bdcade0a
MB
21959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); } &&
fb00f58d
JS
21961 { ac_try='test -z "$ac_cxx_werror_flag"
21962 || test ! -s conftest.err'
ac1cb8d3
VS
21963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21964 (eval $ac_try) 2>&5
21965 ac_status=$?
21966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967 (exit $ac_status); }; } &&
21968 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
21969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21970 (eval $ac_try) 2>&5
21971 ac_status=$?
21972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973 (exit $ac_status); }; }; then
21974 ac_header_compiler=yes
21975else
21976 echo "$as_me: failed program was:" >&5
21977sed 's/^/| /' conftest.$ac_ext >&5
21978
21979ac_header_compiler=no
21980fi
ac1cb8d3 21981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
21982echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21983echo "${ECHO_T}$ac_header_compiler" >&6
21984
21985# Is the header present?
21986echo "$as_me:$LINENO: checking hash_map presence" >&5
21987echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
21988cat >conftest.$ac_ext <<_ACEOF
21989/* confdefs.h. */
21990_ACEOF
21991cat confdefs.h >>conftest.$ac_ext
21992cat >>conftest.$ac_ext <<_ACEOF
21993/* end confdefs.h. */
21994#include <hash_map>
21995_ACEOF
21996if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21997 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21998 ac_status=$?
21999 grep -v '^ *+' conftest.er1 >conftest.err
22000 rm -f conftest.er1
22001 cat conftest.err >&5
22002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003 (exit $ac_status); } >/dev/null; then
22004 if test -s conftest.err; then
22005 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22006 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
22007 else
22008 ac_cpp_err=
22009 fi
22010else
22011 ac_cpp_err=yes
22012fi
22013if test -z "$ac_cpp_err"; then
22014 ac_header_preproc=yes
22015else
22016 echo "$as_me: failed program was:" >&5
22017sed 's/^/| /' conftest.$ac_ext >&5
22018
22019 ac_header_preproc=no
22020fi
22021rm -f conftest.err conftest.$ac_ext
22022echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22023echo "${ECHO_T}$ac_header_preproc" >&6
22024
22025# So? What about this header?
ac1cb8d3
VS
22026case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22027 yes:no: )
bdcade0a
MB
22028 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
22029echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22030 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
22031echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
22032 ac_header_preproc=yes
bdcade0a 22033 ;;
ac1cb8d3 22034 no:yes:* )
bdcade0a
MB
22035 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
22036echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22037 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
22038echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
22039 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
22040echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
22041 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
22042echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
22043 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
22044echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22045 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
22046echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
22047 (
22048 cat <<\_ASBOX
ac1cb8d3
VS
22049## ----------------------------------------- ##
22050## Report this to wx-dev@lists.wxwidgets.org ##
22051## ----------------------------------------- ##
bdcade0a
MB
22052_ASBOX
22053 ) |
22054 sed "s/^/$as_me: WARNING: /" >&2
22055 ;;
22056esac
22057echo "$as_me:$LINENO: checking for hash_map" >&5
22058echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
22059if test "${ac_cv_header_hash_map+set}" = set; then
22060 echo $ECHO_N "(cached) $ECHO_C" >&6
22061else
22062 ac_cv_header_hash_map=$ac_header_preproc
22063fi
22064echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
22065echo "${ECHO_T}$ac_cv_header_hash_map" >&6
22066
22067fi
22068if test $ac_cv_header_hash_map = yes; then
22069 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
22070echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
22071 cat >conftest.$ac_ext <<_ACEOF
22072/* confdefs.h. */
22073_ACEOF
22074cat confdefs.h >>conftest.$ac_ext
22075cat >>conftest.$ac_ext <<_ACEOF
22076/* end confdefs.h. */
22077#include <hash_map>
22078 #include <hash_set>
22079int
22080main ()
22081{
22082std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
22083 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
22084 ;
22085 return 0;
22086}
22087_ACEOF
22088rm -f conftest.$ac_objext
22089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22090 (eval $ac_compile) 2>conftest.er1
bdcade0a 22091 ac_status=$?
ac1cb8d3
VS
22092 grep -v '^ *+' conftest.er1 >conftest.err
22093 rm -f conftest.er1
22094 cat conftest.err >&5
bdcade0a
MB
22095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096 (exit $ac_status); } &&
fb00f58d
JS
22097 { ac_try='test -z "$ac_cxx_werror_flag"
22098 || test ! -s conftest.err'
ac1cb8d3
VS
22099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22100 (eval $ac_try) 2>&5
22101 ac_status=$?
22102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103 (exit $ac_status); }; } &&
22104 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22106 (eval $ac_try) 2>&5
22107 ac_status=$?
22108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109 (exit $ac_status); }; }; then
22110 echo "$as_me:$LINENO: result: yes" >&5
22111echo "${ECHO_T}yes" >&6
22112 cat >>confdefs.h <<\_ACEOF
22113#define HAVE_HASH_MAP 1
22114_ACEOF
22115
22116 cat >>confdefs.h <<\_ACEOF
22117#define HAVE_STD_HASH_MAP 1
22118_ACEOF
22119
22120else
22121 echo "$as_me: failed program was:" >&5
22122sed 's/^/| /' conftest.$ac_ext >&5
22123
22124echo "$as_me:$LINENO: result: no" >&5
22125echo "${ECHO_T}no" >&6
22126fi
ac1cb8d3 22127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22128
22129fi
22130
22131
22132
22133 if test "${ac_cv_header_ext_hash_map+set}" = set; then
22134 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
22135echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
22136if test "${ac_cv_header_ext_hash_map+set}" = set; then
22137 echo $ECHO_N "(cached) $ECHO_C" >&6
22138fi
22139echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
22140echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
22141else
22142 # Is the header compilable?
22143echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
22144echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
22145cat >conftest.$ac_ext <<_ACEOF
22146/* confdefs.h. */
22147_ACEOF
22148cat confdefs.h >>conftest.$ac_ext
22149cat >>conftest.$ac_ext <<_ACEOF
22150/* end confdefs.h. */
22151$ac_includes_default
22152#include <ext/hash_map>
22153_ACEOF
22154rm -f conftest.$ac_objext
22155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22156 (eval $ac_compile) 2>conftest.er1
bdcade0a 22157 ac_status=$?
ac1cb8d3
VS
22158 grep -v '^ *+' conftest.er1 >conftest.err
22159 rm -f conftest.er1
22160 cat conftest.err >&5
bdcade0a
MB
22161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162 (exit $ac_status); } &&
fb00f58d
JS
22163 { ac_try='test -z "$ac_cxx_werror_flag"
22164 || test ! -s conftest.err'
ac1cb8d3
VS
22165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22166 (eval $ac_try) 2>&5
22167 ac_status=$?
22168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169 (exit $ac_status); }; } &&
22170 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22172 (eval $ac_try) 2>&5
22173 ac_status=$?
22174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22175 (exit $ac_status); }; }; then
22176 ac_header_compiler=yes
22177else
22178 echo "$as_me: failed program was:" >&5
22179sed 's/^/| /' conftest.$ac_ext >&5
22180
22181ac_header_compiler=no
22182fi
ac1cb8d3 22183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22184echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22185echo "${ECHO_T}$ac_header_compiler" >&6
22186
22187# Is the header present?
22188echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
22189echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
22190cat >conftest.$ac_ext <<_ACEOF
22191/* confdefs.h. */
22192_ACEOF
22193cat confdefs.h >>conftest.$ac_ext
22194cat >>conftest.$ac_ext <<_ACEOF
22195/* end confdefs.h. */
22196#include <ext/hash_map>
22197_ACEOF
22198if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22200 ac_status=$?
22201 grep -v '^ *+' conftest.er1 >conftest.err
22202 rm -f conftest.er1
22203 cat conftest.err >&5
22204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205 (exit $ac_status); } >/dev/null; then
22206 if test -s conftest.err; then
22207 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22208 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
22209 else
22210 ac_cpp_err=
22211 fi
22212else
22213 ac_cpp_err=yes
22214fi
22215if test -z "$ac_cpp_err"; then
22216 ac_header_preproc=yes
22217else
22218 echo "$as_me: failed program was:" >&5
22219sed 's/^/| /' conftest.$ac_ext >&5
22220
22221 ac_header_preproc=no
22222fi
22223rm -f conftest.err conftest.$ac_ext
22224echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22225echo "${ECHO_T}$ac_header_preproc" >&6
22226
22227# So? What about this header?
ac1cb8d3
VS
22228case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22229 yes:no: )
bdcade0a
MB
22230 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
22231echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22232 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
22233echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
22234 ac_header_preproc=yes
bdcade0a 22235 ;;
ac1cb8d3 22236 no:yes:* )
bdcade0a
MB
22237 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
22238echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22239 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
22240echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
22241 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
22242echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
22243 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
22244echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
22245 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
22246echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22247 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
22248echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
22249 (
22250 cat <<\_ASBOX
ac1cb8d3
VS
22251## ----------------------------------------- ##
22252## Report this to wx-dev@lists.wxwidgets.org ##
22253## ----------------------------------------- ##
bdcade0a
MB
22254_ASBOX
22255 ) |
22256 sed "s/^/$as_me: WARNING: /" >&2
22257 ;;
22258esac
22259echo "$as_me:$LINENO: checking for ext/hash_map" >&5
22260echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
22261if test "${ac_cv_header_ext_hash_map+set}" = set; then
22262 echo $ECHO_N "(cached) $ECHO_C" >&6
22263else
22264 ac_cv_header_ext_hash_map=$ac_header_preproc
22265fi
22266echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
22267echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
22268
22269fi
22270if test $ac_cv_header_ext_hash_map = yes; then
22271 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
22272echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
22273 cat >conftest.$ac_ext <<_ACEOF
22274/* confdefs.h. */
22275_ACEOF
22276cat confdefs.h >>conftest.$ac_ext
22277cat >>conftest.$ac_ext <<_ACEOF
22278/* end confdefs.h. */
22279#include <ext/hash_map>
22280 #include <ext/hash_set>
22281int
22282main ()
22283{
22284__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
22285 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
22286 ;
22287 return 0;
22288}
22289_ACEOF
22290rm -f conftest.$ac_objext
22291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22292 (eval $ac_compile) 2>conftest.er1
bdcade0a 22293 ac_status=$?
ac1cb8d3
VS
22294 grep -v '^ *+' conftest.er1 >conftest.err
22295 rm -f conftest.er1
22296 cat conftest.err >&5
bdcade0a
MB
22297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298 (exit $ac_status); } &&
fb00f58d
JS
22299 { ac_try='test -z "$ac_cxx_werror_flag"
22300 || test ! -s conftest.err'
ac1cb8d3
VS
22301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22302 (eval $ac_try) 2>&5
22303 ac_status=$?
22304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22305 (exit $ac_status); }; } &&
22306 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22308 (eval $ac_try) 2>&5
22309 ac_status=$?
22310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 (exit $ac_status); }; }; then
22312 echo "$as_me:$LINENO: result: yes" >&5
22313echo "${ECHO_T}yes" >&6
22314 cat >>confdefs.h <<\_ACEOF
22315#define HAVE_EXT_HASH_MAP 1
22316_ACEOF
22317
22318 cat >>confdefs.h <<\_ACEOF
22319#define HAVE_GNU_CXX_HASH_MAP 1
22320_ACEOF
22321
22322else
22323 echo "$as_me: failed program was:" >&5
22324sed 's/^/| /' conftest.$ac_ext >&5
22325
22326echo "$as_me:$LINENO: result: no" >&5
22327echo "${ECHO_T}no" >&6
22328fi
ac1cb8d3 22329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22330
22331fi
22332
22333
a848cd7e
SC
22334
22335 ac_ext=c
22336ac_cpp='$CPP $CPPFLAGS'
22337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22339ac_compiler_gnu=$ac_cv_c_compiler_gnu
22340
22341fi
22342
22343
22344SEARCH_INCLUDE="\
22345 /usr/local/include \
22346 \
22347 /usr/Motif-2.1/include \
22348 /usr/Motif-1.2/include \
22349 /usr/include/Motif1.2 \
22350 /opt/xpm/include/X11 \
22351 /opt/GBxpm/include/ \
22352 /opt/GBxpm/X11/include/ \
22353 \
22354 /usr/dt/include \
22355 /usr/openwin/include \
22356 \
22357 /usr/include/Xm \
22358 \
22359 /usr/X11R6/include \
22360 /usr/X11R6.4/include \
22361 /usr/X11R5/include \
22362 /usr/X11R4/include \
22363 \
22364 /usr/include/X11R6 \
22365 /usr/include/X11R5 \
22366 /usr/include/X11R4 \
22367 \
22368 /usr/local/X11R6/include \
22369 /usr/local/X11R5/include \
22370 /usr/local/X11R4/include \
22371 \
22372 /usr/local/include/X11R6 \
22373 /usr/local/include/X11R5 \
22374 /usr/local/include/X11R4 \
22375 \
22376 /usr/X11/include \
22377 /usr/include/X11 \
22378 /usr/local/X11/include \
22379 /usr/local/include/X11 \
22380 \
22381 /usr/X386/include \
22382 /usr/x386/include \
22383 /usr/XFree86/include/X11 \
22384 \
22385 X:/XFree86/include \
22386 X:/XFree86/include/X11 \
22387 \
22388 /usr/include/gtk \
22389 /usr/local/include/gtk \
22390 /usr/include/glib \
22391 /usr/local/include/glib \
22392 \
22393 /usr/include/qt \
22394 /usr/local/include/qt \
22395 \
22396 /usr/local/arm/3.3.2/include \
22397 \
22398 /usr/include/windows \
22399 /usr/include/wine \
22400 /usr/local/include/wine \
22401 \
22402 /usr/unsupported/include \
22403 /usr/athena/include \
22404 /usr/local/x11r5/include \
22405 /usr/lpp/Xamples/include \
22406 \
22407 /usr/openwin/share/include"
22408
07158944 22409SEARCH_LIB="/usr/lib /usr/lib32 /usr/lib64 /usr/X11R6/lib64 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g`"
a848cd7e
SC
22410
22411
22412cat >confcache <<\_ACEOF
22413# This file is a shell script that caches the results of configure
22414# tests run on this system so they can be shared between configure
22415# scripts and configure runs, see configure's option --config-cache.
22416# It is not useful on other systems. If it contains results you don't
22417# want to keep, you may remove or edit it.
22418#
22419# config.status only pays attention to the cache file if you give it
22420# the --recheck option to rerun configure.
22421#
22422# `ac_cv_env_foo' variables (set or unset) will be overridden when
22423# loading this file, other *unset* `ac_cv_foo' will be assigned the
22424# following values.
22425
22426_ACEOF
22427
22428# The following way of writing the cache mishandles newlines in values,
22429# but we know of no workaround that is simple, portable, and efficient.
22430# So, don't put newlines in cache variables' values.
22431# Ultrix sh set writes to stderr and can't be redirected directly,
22432# and sets the high bit in the cache file unless we assign to the vars.
22433{
22434 (set) 2>&1 |
22435 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22436 *ac_space=\ *)
22437 # `set' does not quote correctly, so add quotes (double-quote
22438 # substitution turns \\\\ into \\, and sed turns \\ into \).
22439 sed -n \
ac1cb8d3
VS
22440 "s/'/'\\\\''/g;
22441 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
22442 ;;
22443 *)
22444 # `set' quotes correctly as required by POSIX, so do not add quotes.
22445 sed -n \
ac1cb8d3 22446 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
22447 ;;
22448 esac;
22449} |
22450 sed '
22451 t clear
22452 : clear
22453 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22454 t end
22455 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22456 : end' >>confcache
22457if diff $cache_file confcache >/dev/null 2>&1; then :; else
22458 if test -w $cache_file; then
22459 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22460 cat confcache >$cache_file
22461 else
22462 echo "not updating unwritable cache $cache_file"
22463 fi
22464fi
22465rm -f confcache
22466
22467if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
22468 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
22469echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
22470if test "${wx_cv_lib_glibc21+set}" = set; then
22471 echo $ECHO_N "(cached) $ECHO_C" >&6
22472else
22473
22474 cat >conftest.$ac_ext <<_ACEOF
22475/* confdefs.h. */
22476_ACEOF
22477cat confdefs.h >>conftest.$ac_ext
22478cat >>conftest.$ac_ext <<_ACEOF
22479/* end confdefs.h. */
22480#include <features.h>
22481int
22482main ()
22483{
22484
22485 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
22486 #error not glibc2.1
22487 #endif
22488
22489 ;
22490 return 0;
22491}
22492_ACEOF
22493rm -f conftest.$ac_objext
22494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22495 (eval $ac_compile) 2>conftest.er1
a848cd7e 22496 ac_status=$?
ac1cb8d3
VS
22497 grep -v '^ *+' conftest.er1 >conftest.err
22498 rm -f conftest.er1
22499 cat conftest.err >&5
a848cd7e
SC
22500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501 (exit $ac_status); } &&
fb00f58d
JS
22502 { ac_try='test -z "$ac_c_werror_flag"
22503 || test ! -s conftest.err'
ac1cb8d3
VS
22504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22505 (eval $ac_try) 2>&5
22506 ac_status=$?
22507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22508 (exit $ac_status); }; } &&
22509 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22511 (eval $ac_try) 2>&5
22512 ac_status=$?
22513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514 (exit $ac_status); }; }; then
22515
22516 wx_cv_lib_glibc21=yes
22517
22518else
22519 echo "$as_me: failed program was:" >&5
22520sed 's/^/| /' conftest.$ac_ext >&5
22521
22522
22523 wx_cv_lib_glibc21=no
22524
22525
22526fi
ac1cb8d3 22527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22528
22529fi
22530echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
22531echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
22532 if test "$wx_cv_lib_glibc21" = "yes"; then
22533 cat >>confdefs.h <<\_ACEOF
22534#define wxHAVE_GLIBC2 1
22535_ACEOF
22536
22537 fi
22538fi
22539
22540if test "x$wx_cv_lib_glibc21" = "xyes"; then
22541 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
22542 cat >>confdefs.h <<\_ACEOF
22543#define _GNU_SOURCE 1
22544_ACEOF
22545
22546 fi
22547fi
22548
22549
22550
22551if test "$wxUSE_REGEX" != "no"; then
22552 cat >>confdefs.h <<\_ACEOF
22553#define wxUSE_REGEX 1
22554_ACEOF
22555
22556
22557 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
22558 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
22559echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
22560 wxUSE_REGEX=builtin
22561 fi
22562
22563 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
22564 if test "${ac_cv_header_regex_h+set}" = set; then
22565 echo "$as_me:$LINENO: checking for regex.h" >&5
22566echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22567if test "${ac_cv_header_regex_h+set}" = set; then
22568 echo $ECHO_N "(cached) $ECHO_C" >&6
22569fi
22570echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22571echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22572else
22573 # Is the header compilable?
22574echo "$as_me:$LINENO: checking regex.h usability" >&5
22575echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
22576cat >conftest.$ac_ext <<_ACEOF
22577/* confdefs.h. */
22578_ACEOF
22579cat confdefs.h >>conftest.$ac_ext
22580cat >>conftest.$ac_ext <<_ACEOF
22581/* end confdefs.h. */
22582$ac_includes_default
22583#include <regex.h>
22584_ACEOF
22585rm -f conftest.$ac_objext
22586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22587 (eval $ac_compile) 2>conftest.er1
a848cd7e 22588 ac_status=$?
ac1cb8d3
VS
22589 grep -v '^ *+' conftest.er1 >conftest.err
22590 rm -f conftest.er1
22591 cat conftest.err >&5
a848cd7e
SC
22592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22593 (exit $ac_status); } &&
fb00f58d
JS
22594 { ac_try='test -z "$ac_c_werror_flag"
22595 || test ! -s conftest.err'
ac1cb8d3
VS
22596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22597 (eval $ac_try) 2>&5
22598 ac_status=$?
22599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22600 (exit $ac_status); }; } &&
22601 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22603 (eval $ac_try) 2>&5
22604 ac_status=$?
22605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606 (exit $ac_status); }; }; then
22607 ac_header_compiler=yes
22608else
22609 echo "$as_me: failed program was:" >&5
22610sed 's/^/| /' conftest.$ac_ext >&5
22611
22612ac_header_compiler=no
22613fi
ac1cb8d3 22614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22615echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22616echo "${ECHO_T}$ac_header_compiler" >&6
22617
22618# Is the header present?
22619echo "$as_me:$LINENO: checking regex.h presence" >&5
22620echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
22621cat >conftest.$ac_ext <<_ACEOF
22622/* confdefs.h. */
22623_ACEOF
22624cat confdefs.h >>conftest.$ac_ext
22625cat >>conftest.$ac_ext <<_ACEOF
22626/* end confdefs.h. */
22627#include <regex.h>
22628_ACEOF
22629if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22630 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22631 ac_status=$?
22632 grep -v '^ *+' conftest.er1 >conftest.err
22633 rm -f conftest.er1
22634 cat conftest.err >&5
22635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636 (exit $ac_status); } >/dev/null; then
22637 if test -s conftest.err; then
22638 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22639 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22640 else
22641 ac_cpp_err=
22642 fi
22643else
22644 ac_cpp_err=yes
22645fi
22646if test -z "$ac_cpp_err"; then
22647 ac_header_preproc=yes
22648else
22649 echo "$as_me: failed program was:" >&5
22650sed 's/^/| /' conftest.$ac_ext >&5
22651
22652 ac_header_preproc=no
22653fi
22654rm -f conftest.err conftest.$ac_ext
22655echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22656echo "${ECHO_T}$ac_header_preproc" >&6
22657
22658# So? What about this header?
ac1cb8d3
VS
22659case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22660 yes:no: )
a848cd7e
SC
22661 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
22662echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22663 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
22664echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
22665 ac_header_preproc=yes
a848cd7e 22666 ;;
ac1cb8d3 22667 no:yes:* )
a848cd7e
SC
22668 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
22669echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22670 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
22671echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
22672 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
22673echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
22674 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
22675echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22676 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
22677echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22678 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
22679echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22680 (
22681 cat <<\_ASBOX
ac1cb8d3
VS
22682## ----------------------------------------- ##
22683## Report this to wx-dev@lists.wxwidgets.org ##
22684## ----------------------------------------- ##
a848cd7e
SC
22685_ASBOX
22686 ) |
22687 sed "s/^/$as_me: WARNING: /" >&2
22688 ;;
22689esac
22690echo "$as_me:$LINENO: checking for regex.h" >&5
22691echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
22692if test "${ac_cv_header_regex_h+set}" = set; then
22693 echo $ECHO_N "(cached) $ECHO_C" >&6
22694else
22695 ac_cv_header_regex_h=$ac_header_preproc
22696fi
22697echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
22698echo "${ECHO_T}$ac_cv_header_regex_h" >&6
22699
22700fi
22701if test $ac_cv_header_regex_h = yes; then
22702
22703for ac_func in regcomp
22704do
22705as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22706echo "$as_me:$LINENO: checking for $ac_func" >&5
22707echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22708if eval "test \"\${$as_ac_var+set}\" = set"; then
22709 echo $ECHO_N "(cached) $ECHO_C" >&6
22710else
22711 cat >conftest.$ac_ext <<_ACEOF
22712/* confdefs.h. */
22713_ACEOF
22714cat confdefs.h >>conftest.$ac_ext
22715cat >>conftest.$ac_ext <<_ACEOF
22716/* end confdefs.h. */
ac1cb8d3
VS
22717/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22719#define $ac_func innocuous_$ac_func
22720
a848cd7e
SC
22721/* System header to define __stub macros and hopefully few prototypes,
22722 which can conflict with char $ac_func (); below.
22723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22724 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 22725
a848cd7e
SC
22726#ifdef __STDC__
22727# include <limits.h>
22728#else
22729# include <assert.h>
22730#endif
ac1cb8d3
VS
22731
22732#undef $ac_func
22733
a848cd7e
SC
22734/* Override any gcc2 internal prototype to avoid an error. */
22735#ifdef __cplusplus
22736extern "C"
22737{
22738#endif
22739/* We use char because int might match the return type of a gcc2
22740 builtin and then its argument prototype would still apply. */
22741char $ac_func ();
22742/* The GNU C library defines this for functions which it implements
22743 to always fail with ENOSYS. Some functions are actually named
22744 something starting with __ and the normal name is an alias. */
22745#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22746choke me
22747#else
22748char (*f) () = $ac_func;
22749#endif
22750#ifdef __cplusplus
22751}
22752#endif
22753
22754int
22755main ()
22756{
22757return f != $ac_func;
22758 ;
22759 return 0;
22760}
22761_ACEOF
22762rm -f conftest.$ac_objext conftest$ac_exeext
22763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22764 (eval $ac_link) 2>conftest.er1
a848cd7e 22765 ac_status=$?
ac1cb8d3
VS
22766 grep -v '^ *+' conftest.er1 >conftest.err
22767 rm -f conftest.er1
22768 cat conftest.err >&5
a848cd7e
SC
22769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22770 (exit $ac_status); } &&
fb00f58d
JS
22771 { ac_try='test -z "$ac_c_werror_flag"
22772 || test ! -s conftest.err'
ac1cb8d3
VS
22773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22774 (eval $ac_try) 2>&5
22775 ac_status=$?
22776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22777 (exit $ac_status); }; } &&
22778 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
22784 eval "$as_ac_var=yes"
22785else
22786 echo "$as_me: failed program was:" >&5
22787sed 's/^/| /' conftest.$ac_ext >&5
22788
22789eval "$as_ac_var=no"
22790fi
ac1cb8d3
VS
22791rm -f conftest.err conftest.$ac_objext \
22792 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22793fi
22794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22795echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22796if test `eval echo '${'$as_ac_var'}'` = yes; then
22797 cat >>confdefs.h <<_ACEOF
22798#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22799_ACEOF
22800
22801fi
22802done
22803
22804fi
22805
22806
22807
22808 if test "x$ac_cv_func_regcomp" != "xyes"; then
22809 if test "$wxUSE_REGEX" = "sys" ; then
22810 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
22811echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
22812 { (exit 1); exit 1; }; }
22813 else
22814 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
22815echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
22816 wxUSE_REGEX=builtin
22817 fi
22818 else
22819 wxUSE_REGEX=sys
22820 cat >>confdefs.h <<\_ACEOF
22821#define WX_NO_REGEX_ADVANCED 1
22822_ACEOF
22823
22824 fi
22825 fi
22826fi
22827
22828
22829ZLIB_LINK=
22830if test "$wxUSE_ZLIB" != "no" ; then
22831 cat >>confdefs.h <<\_ACEOF
22832#define wxUSE_ZLIB 1
22833_ACEOF
22834
22835
22836 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
22837 if test "$USE_DARWIN" = 1; then
22838 system_zlib_h_ok="yes"
22839 else
22840 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
22841echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
22842if test "${ac_cv_header_zlib_h+set}" = set; then
22843 echo $ECHO_N "(cached) $ECHO_C" >&6
22844else
22845 if test "$cross_compiling" = yes; then
22846 unset ac_cv_header_zlib_h
22847
22848else
22849 cat >conftest.$ac_ext <<_ACEOF
22850/* confdefs.h. */
22851_ACEOF
22852cat confdefs.h >>conftest.$ac_ext
22853cat >>conftest.$ac_ext <<_ACEOF
22854/* end confdefs.h. */
22855
22856 #include <zlib.h>
22857 #include <stdio.h>
22858
22859 int main()
22860 {
22861 FILE *f=fopen("conftestval", "w");
22862 if (!f) exit(1);
22863 fprintf(f, "%s",
22864 ZLIB_VERSION[0] == '1' &&
22865 (ZLIB_VERSION[2] > '1' ||
22866 (ZLIB_VERSION[2] == '1' &&
22867 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
22868 exit(0);
22869 }
22870
22871_ACEOF
22872rm -f conftest$ac_exeext
22873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22874 (eval $ac_link) 2>&5
22875 ac_status=$?
22876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22879 (eval $ac_try) 2>&5
22880 ac_status=$?
22881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882 (exit $ac_status); }; }; then
22883 ac_cv_header_zlib_h=`cat conftestval`
22884else
22885 echo "$as_me: program exited with status $ac_status" >&5
22886echo "$as_me: failed program was:" >&5
22887sed 's/^/| /' conftest.$ac_ext >&5
22888
22889( exit $ac_status )
22890ac_cv_header_zlib_h=no
22891fi
ac1cb8d3 22892rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22893fi
22894
22895fi
22896echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22897echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22898 if test "${ac_cv_header_zlib_h+set}" = set; then
22899 echo "$as_me:$LINENO: checking for zlib.h" >&5
22900echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22901if test "${ac_cv_header_zlib_h+set}" = set; then
22902 echo $ECHO_N "(cached) $ECHO_C" >&6
22903fi
22904echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22905echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22906else
22907 # Is the header compilable?
22908echo "$as_me:$LINENO: checking zlib.h usability" >&5
22909echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
22910cat >conftest.$ac_ext <<_ACEOF
22911/* confdefs.h. */
22912_ACEOF
22913cat confdefs.h >>conftest.$ac_ext
22914cat >>conftest.$ac_ext <<_ACEOF
22915/* end confdefs.h. */
22916$ac_includes_default
22917#include <zlib.h>
22918_ACEOF
22919rm -f conftest.$ac_objext
22920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22921 (eval $ac_compile) 2>conftest.er1
a848cd7e 22922 ac_status=$?
ac1cb8d3
VS
22923 grep -v '^ *+' conftest.er1 >conftest.err
22924 rm -f conftest.er1
22925 cat conftest.err >&5
a848cd7e
SC
22926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22927 (exit $ac_status); } &&
fb00f58d
JS
22928 { ac_try='test -z "$ac_c_werror_flag"
22929 || 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_objext'
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_header_compiler=yes
22942else
22943 echo "$as_me: failed program was:" >&5
22944sed 's/^/| /' conftest.$ac_ext >&5
22945
22946ac_header_compiler=no
22947fi
ac1cb8d3 22948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22949echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22950echo "${ECHO_T}$ac_header_compiler" >&6
22951
22952# Is the header present?
22953echo "$as_me:$LINENO: checking zlib.h presence" >&5
22954echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
22955cat >conftest.$ac_ext <<_ACEOF
22956/* confdefs.h. */
22957_ACEOF
22958cat confdefs.h >>conftest.$ac_ext
22959cat >>conftest.$ac_ext <<_ACEOF
22960/* end confdefs.h. */
22961#include <zlib.h>
22962_ACEOF
22963if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22964 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22965 ac_status=$?
22966 grep -v '^ *+' conftest.er1 >conftest.err
22967 rm -f conftest.er1
22968 cat conftest.err >&5
22969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970 (exit $ac_status); } >/dev/null; then
22971 if test -s conftest.err; then
22972 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22973 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22974 else
22975 ac_cpp_err=
22976 fi
22977else
22978 ac_cpp_err=yes
22979fi
22980if test -z "$ac_cpp_err"; then
22981 ac_header_preproc=yes
22982else
22983 echo "$as_me: failed program was:" >&5
22984sed 's/^/| /' conftest.$ac_ext >&5
22985
22986 ac_header_preproc=no
22987fi
22988rm -f conftest.err conftest.$ac_ext
22989echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22990echo "${ECHO_T}$ac_header_preproc" >&6
22991
22992# So? What about this header?
ac1cb8d3
VS
22993case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22994 yes:no: )
a848cd7e
SC
22995 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22996echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22997 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22998echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22999 ac_header_preproc=yes
a848cd7e 23000 ;;
ac1cb8d3 23001 no:yes:* )
a848cd7e
SC
23002 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
23003echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23004 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
23005echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
23006 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
23007echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
23008 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
23009echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23010 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
23011echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23012 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
23013echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23014 (
23015 cat <<\_ASBOX
ac1cb8d3
VS
23016## ----------------------------------------- ##
23017## Report this to wx-dev@lists.wxwidgets.org ##
23018## ----------------------------------------- ##
a848cd7e
SC
23019_ASBOX
23020 ) |
23021 sed "s/^/$as_me: WARNING: /" >&2
23022 ;;
23023esac
23024echo "$as_me:$LINENO: checking for zlib.h" >&5
23025echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
23026if test "${ac_cv_header_zlib_h+set}" = set; then
23027 echo $ECHO_N "(cached) $ECHO_C" >&6
23028else
23029 ac_cv_header_zlib_h=$ac_header_preproc
23030fi
23031echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
23032echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
23033
23034fi
23035
23036
23037
23038 system_zlib_h_ok=$ac_cv_header_zlib_h
23039 fi
23040
23041 if test "$system_zlib_h_ok" = "yes"; then
23042 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
23043echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
23044if test "${ac_cv_lib_z_deflate+set}" = set; then
23045 echo $ECHO_N "(cached) $ECHO_C" >&6
23046else
23047 ac_check_lib_save_LIBS=$LIBS
23048LIBS="-lz $LIBS"
23049cat >conftest.$ac_ext <<_ACEOF
23050/* confdefs.h. */
23051_ACEOF
23052cat confdefs.h >>conftest.$ac_ext
23053cat >>conftest.$ac_ext <<_ACEOF
23054/* end confdefs.h. */
23055
23056/* Override any gcc2 internal prototype to avoid an error. */
23057#ifdef __cplusplus
23058extern "C"
23059#endif
23060/* We use char because int might match the return type of a gcc2
23061 builtin and then its argument prototype would still apply. */
23062char deflate ();
23063int
23064main ()
23065{
23066deflate ();
23067 ;
23068 return 0;
23069}
23070_ACEOF
23071rm -f conftest.$ac_objext conftest$ac_exeext
23072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23073 (eval $ac_link) 2>conftest.er1
a848cd7e 23074 ac_status=$?
ac1cb8d3
VS
23075 grep -v '^ *+' conftest.er1 >conftest.err
23076 rm -f conftest.er1
23077 cat conftest.err >&5
a848cd7e
SC
23078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079 (exit $ac_status); } &&
fb00f58d
JS
23080 { ac_try='test -z "$ac_c_werror_flag"
23081 || test ! -s conftest.err'
ac1cb8d3
VS
23082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23083 (eval $ac_try) 2>&5
23084 ac_status=$?
23085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086 (exit $ac_status); }; } &&
23087 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23089 (eval $ac_try) 2>&5
23090 ac_status=$?
23091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092 (exit $ac_status); }; }; then
23093 ac_cv_lib_z_deflate=yes
23094else
23095 echo "$as_me: failed program was:" >&5
23096sed 's/^/| /' conftest.$ac_ext >&5
23097
23098ac_cv_lib_z_deflate=no
23099fi
ac1cb8d3
VS
23100rm -f conftest.err conftest.$ac_objext \
23101 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23102LIBS=$ac_check_lib_save_LIBS
23103fi
23104echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
23105echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
23106if test $ac_cv_lib_z_deflate = yes; then
23107 ZLIB_LINK=" -lz"
23108fi
23109
23110 fi
23111
23112 if test "x$ZLIB_LINK" = "x" ; then
23113 if test "$wxUSE_ZLIB" = "sys" ; then
23114 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
23115echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
23116 { (exit 1); exit 1; }; }
23117 else
23118 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
23119echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
23120 wxUSE_ZLIB=builtin
23121 fi
23122 else
23123 wxUSE_ZLIB=sys
23124 fi
23125 fi
23126fi
23127
23128
23129PNG_LINK=
23130if test "$wxUSE_LIBPNG" != "no" ; then
23131 cat >>confdefs.h <<\_ACEOF
23132#define wxUSE_LIBPNG 1
23133_ACEOF
23134
23135
23136 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
23137 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
23138echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
23139 wxUSE_LIBPNG=sys
23140 fi
23141
23142 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
23143 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
23144echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
23145 wxUSE_LIBPNG=builtin
23146 fi
23147
23148 if test "$wxUSE_MGL" != 1 ; then
23149 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
23150 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
23151echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
23152if test "${ac_cv_header_png_h+set}" = set; then
23153 echo $ECHO_N "(cached) $ECHO_C" >&6
23154else
23155 if test "$cross_compiling" = yes; then
23156 unset ac_cv_header_png_h
23157
23158else
23159 cat >conftest.$ac_ext <<_ACEOF
23160/* confdefs.h. */
23161_ACEOF
23162cat confdefs.h >>conftest.$ac_ext
23163cat >>conftest.$ac_ext <<_ACEOF
23164/* end confdefs.h. */
23165
23166 #include <png.h>
23167 #include <stdio.h>
23168
23169 int main()
23170 {
23171 FILE *f=fopen("conftestval", "w");
23172 if (!f) exit(1);
23173 fprintf(f, "%s",
23174 PNG_LIBPNG_VER > 90 ? "yes" : "no");
23175 exit(0);
23176 }
23177
23178_ACEOF
23179rm -f conftest$ac_exeext
23180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23181 (eval $ac_link) 2>&5
23182 ac_status=$?
23183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23186 (eval $ac_try) 2>&5
23187 ac_status=$?
23188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189 (exit $ac_status); }; }; then
23190 ac_cv_header_png_h=`cat conftestval`
23191else
23192 echo "$as_me: program exited with status $ac_status" >&5
23193echo "$as_me: failed program was:" >&5
23194sed 's/^/| /' conftest.$ac_ext >&5
23195
23196( exit $ac_status )
23197ac_cv_header_png_h=no
23198fi
ac1cb8d3 23199rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23200fi
23201
23202fi
23203echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23204echo "${ECHO_T}$ac_cv_header_png_h" >&6
23205 if test "${ac_cv_header_png_h+set}" = set; then
23206 echo "$as_me:$LINENO: checking for png.h" >&5
23207echo $ECHO_N "checking for png.h... $ECHO_C" >&6
23208if test "${ac_cv_header_png_h+set}" = set; then
23209 echo $ECHO_N "(cached) $ECHO_C" >&6
23210fi
23211echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23212echo "${ECHO_T}$ac_cv_header_png_h" >&6
23213else
23214 # Is the header compilable?
23215echo "$as_me:$LINENO: checking png.h usability" >&5
23216echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
23217cat >conftest.$ac_ext <<_ACEOF
23218/* confdefs.h. */
23219_ACEOF
23220cat confdefs.h >>conftest.$ac_ext
23221cat >>conftest.$ac_ext <<_ACEOF
23222/* end confdefs.h. */
23223$ac_includes_default
23224#include <png.h>
23225_ACEOF
23226rm -f conftest.$ac_objext
23227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23228 (eval $ac_compile) 2>conftest.er1
a848cd7e 23229 ac_status=$?
ac1cb8d3
VS
23230 grep -v '^ *+' conftest.er1 >conftest.err
23231 rm -f conftest.er1
23232 cat conftest.err >&5
a848cd7e
SC
23233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234 (exit $ac_status); } &&
fb00f58d
JS
23235 { ac_try='test -z "$ac_c_werror_flag"
23236 || test ! -s conftest.err'
ac1cb8d3
VS
23237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23238 (eval $ac_try) 2>&5
23239 ac_status=$?
23240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); }; } &&
23242 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23244 (eval $ac_try) 2>&5
23245 ac_status=$?
23246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247 (exit $ac_status); }; }; then
23248 ac_header_compiler=yes
23249else
23250 echo "$as_me: failed program was:" >&5
23251sed 's/^/| /' conftest.$ac_ext >&5
23252
23253ac_header_compiler=no
23254fi
ac1cb8d3 23255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23256echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23257echo "${ECHO_T}$ac_header_compiler" >&6
23258
23259# Is the header present?
23260echo "$as_me:$LINENO: checking png.h presence" >&5
23261echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
23262cat >conftest.$ac_ext <<_ACEOF
23263/* confdefs.h. */
23264_ACEOF
23265cat confdefs.h >>conftest.$ac_ext
23266cat >>conftest.$ac_ext <<_ACEOF
23267/* end confdefs.h. */
23268#include <png.h>
23269_ACEOF
23270if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23272 ac_status=$?
23273 grep -v '^ *+' conftest.er1 >conftest.err
23274 rm -f conftest.er1
23275 cat conftest.err >&5
23276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277 (exit $ac_status); } >/dev/null; then
23278 if test -s conftest.err; then
23279 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23280 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23281 else
23282 ac_cpp_err=
23283 fi
23284else
23285 ac_cpp_err=yes
23286fi
23287if test -z "$ac_cpp_err"; then
23288 ac_header_preproc=yes
23289else
23290 echo "$as_me: failed program was:" >&5
23291sed 's/^/| /' conftest.$ac_ext >&5
23292
23293 ac_header_preproc=no
23294fi
23295rm -f conftest.err conftest.$ac_ext
23296echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23297echo "${ECHO_T}$ac_header_preproc" >&6
23298
23299# So? What about this header?
ac1cb8d3
VS
23300case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23301 yes:no: )
a848cd7e
SC
23302 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
23303echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23304 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
23305echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
23306 ac_header_preproc=yes
a848cd7e 23307 ;;
ac1cb8d3 23308 no:yes:* )
a848cd7e
SC
23309 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
23310echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23311 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
23312echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
23313 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
23314echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
23315 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
23316echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23317 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
23318echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23319 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
23320echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23321 (
23322 cat <<\_ASBOX
ac1cb8d3
VS
23323## ----------------------------------------- ##
23324## Report this to wx-dev@lists.wxwidgets.org ##
23325## ----------------------------------------- ##
a848cd7e
SC
23326_ASBOX
23327 ) |
23328 sed "s/^/$as_me: WARNING: /" >&2
23329 ;;
23330esac
23331echo "$as_me:$LINENO: checking for png.h" >&5
23332echo $ECHO_N "checking for png.h... $ECHO_C" >&6
23333if test "${ac_cv_header_png_h+set}" = set; then
23334 echo $ECHO_N "(cached) $ECHO_C" >&6
23335else
23336 ac_cv_header_png_h=$ac_header_preproc
23337fi
23338echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
23339echo "${ECHO_T}$ac_cv_header_png_h" >&6
23340
23341fi
23342
23343
23344
23345 if test "$ac_cv_header_png_h" = "yes"; then
23346 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
23347echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
23348if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
23349 echo $ECHO_N "(cached) $ECHO_C" >&6
23350else
23351 ac_check_lib_save_LIBS=$LIBS
23352LIBS="-lpng -lz -lm $LIBS"
23353cat >conftest.$ac_ext <<_ACEOF
23354/* confdefs.h. */
23355_ACEOF
23356cat confdefs.h >>conftest.$ac_ext
23357cat >>conftest.$ac_ext <<_ACEOF
23358/* end confdefs.h. */
23359
23360/* Override any gcc2 internal prototype to avoid an error. */
23361#ifdef __cplusplus
23362extern "C"
23363#endif
23364/* We use char because int might match the return type of a gcc2
23365 builtin and then its argument prototype would still apply. */
23366char png_check_sig ();
23367int
23368main ()
23369{
23370png_check_sig ();
23371 ;
23372 return 0;
23373}
23374_ACEOF
23375rm -f conftest.$ac_objext conftest$ac_exeext
23376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23377 (eval $ac_link) 2>conftest.er1
a848cd7e 23378 ac_status=$?
ac1cb8d3
VS
23379 grep -v '^ *+' conftest.er1 >conftest.err
23380 rm -f conftest.er1
23381 cat conftest.err >&5
a848cd7e
SC
23382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383 (exit $ac_status); } &&
fb00f58d
JS
23384 { ac_try='test -z "$ac_c_werror_flag"
23385 || test ! -s conftest.err'
ac1cb8d3
VS
23386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23387 (eval $ac_try) 2>&5
23388 ac_status=$?
23389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390 (exit $ac_status); }; } &&
23391 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23393 (eval $ac_try) 2>&5
23394 ac_status=$?
23395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23396 (exit $ac_status); }; }; then
23397 ac_cv_lib_png_png_check_sig=yes
23398else
23399 echo "$as_me: failed program was:" >&5
23400sed 's/^/| /' conftest.$ac_ext >&5
23401
23402ac_cv_lib_png_png_check_sig=no
23403fi
ac1cb8d3
VS
23404rm -f conftest.err conftest.$ac_objext \
23405 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23406LIBS=$ac_check_lib_save_LIBS
23407fi
23408echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
23409echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
23410if test $ac_cv_lib_png_png_check_sig = yes; then
23411 PNG_LINK=" -lpng -lz"
23412fi
23413
23414 fi
23415
23416 if test "x$PNG_LINK" = "x" ; then
23417 if test "$wxUSE_LIBPNG" = "sys" ; then
23418 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
23419echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
23420 { (exit 1); exit 1; }; }
23421 else
23422 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
23423echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
23424 wxUSE_LIBPNG=builtin
23425 fi
23426 else
23427 wxUSE_LIBPNG=sys
23428 fi
23429 fi
23430 fi
23431
23432 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
23433fi
23434
23435
23436JPEG_LINK=
23437if test "$wxUSE_LIBJPEG" != "no" ; then
23438 cat >>confdefs.h <<\_ACEOF
23439#define wxUSE_LIBJPEG 1
23440_ACEOF
23441
23442
23443 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
23444 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
23445echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
23446 wxUSE_LIBJPEG=sys
23447 fi
23448
23449 if test "$wxUSE_MGL" != 1 ; then
23450 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
23451 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
23452echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
23453 if test "${ac_cv_header_jpeglib_h+set}" = set; then
23454 echo $ECHO_N "(cached) $ECHO_C" >&6
23455else
23456 cat >conftest.$ac_ext <<_ACEOF
23457/* confdefs.h. */
23458_ACEOF
23459cat confdefs.h >>conftest.$ac_ext
23460cat >>conftest.$ac_ext <<_ACEOF
23461/* end confdefs.h. */
23462
23463 #undef HAVE_STDLIB_H
23464 #include <stdio.h>
23465 #include <jpeglib.h>
23466
23467int
23468main ()
23469{
23470
23471
23472 ;
23473 return 0;
23474}
23475_ACEOF
23476rm -f conftest.$ac_objext
23477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23478 (eval $ac_compile) 2>conftest.er1
a848cd7e 23479 ac_status=$?
ac1cb8d3
VS
23480 grep -v '^ *+' conftest.er1 >conftest.err
23481 rm -f conftest.er1
23482 cat conftest.err >&5
a848cd7e
SC
23483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484 (exit $ac_status); } &&
fb00f58d
JS
23485 { ac_try='test -z "$ac_c_werror_flag"
23486 || test ! -s conftest.err'
ac1cb8d3
VS
23487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23488 (eval $ac_try) 2>&5
23489 ac_status=$?
23490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23491 (exit $ac_status); }; } &&
23492 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23494 (eval $ac_try) 2>&5
23495 ac_status=$?
23496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497 (exit $ac_status); }; }; then
23498 ac_cv_header_jpeglib_h=yes
23499else
23500 echo "$as_me: failed program was:" >&5
23501sed 's/^/| /' conftest.$ac_ext >&5
23502
23503ac_cv_header_jpeglib_h=no
23504
23505fi
ac1cb8d3 23506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23507
23508fi
23509
23510 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
23511echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
23512
23513 if test "$ac_cv_header_jpeglib_h" = "yes"; then
23514 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
23515echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
23516if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
23517 echo $ECHO_N "(cached) $ECHO_C" >&6
23518else
23519 ac_check_lib_save_LIBS=$LIBS
23520LIBS="-ljpeg $LIBS"
23521cat >conftest.$ac_ext <<_ACEOF
23522/* confdefs.h. */
23523_ACEOF
23524cat confdefs.h >>conftest.$ac_ext
23525cat >>conftest.$ac_ext <<_ACEOF
23526/* end confdefs.h. */
23527
23528/* Override any gcc2 internal prototype to avoid an error. */
23529#ifdef __cplusplus
23530extern "C"
23531#endif
23532/* We use char because int might match the return type of a gcc2
23533 builtin and then its argument prototype would still apply. */
23534char jpeg_read_header ();
23535int
23536main ()
23537{
23538jpeg_read_header ();
23539 ;
23540 return 0;
23541}
23542_ACEOF
23543rm -f conftest.$ac_objext conftest$ac_exeext
23544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23545 (eval $ac_link) 2>conftest.er1
a848cd7e 23546 ac_status=$?
ac1cb8d3
VS
23547 grep -v '^ *+' conftest.er1 >conftest.err
23548 rm -f conftest.er1
23549 cat conftest.err >&5
a848cd7e
SC
23550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23551 (exit $ac_status); } &&
fb00f58d
JS
23552 { ac_try='test -z "$ac_c_werror_flag"
23553 || test ! -s conftest.err'
ac1cb8d3
VS
23554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23555 (eval $ac_try) 2>&5
23556 ac_status=$?
23557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558 (exit $ac_status); }; } &&
23559 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23561 (eval $ac_try) 2>&5
23562 ac_status=$?
23563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564 (exit $ac_status); }; }; then
23565 ac_cv_lib_jpeg_jpeg_read_header=yes
23566else
23567 echo "$as_me: failed program was:" >&5
23568sed 's/^/| /' conftest.$ac_ext >&5
23569
23570ac_cv_lib_jpeg_jpeg_read_header=no
23571fi
ac1cb8d3
VS
23572rm -f conftest.err conftest.$ac_objext \
23573 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23574LIBS=$ac_check_lib_save_LIBS
23575fi
23576echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
23577echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
23578if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
23579 JPEG_LINK=" -ljpeg"
23580fi
23581
23582 fi
23583
23584 if test "x$JPEG_LINK" = "x" ; then
23585 if test "$wxUSE_LIBJPEG" = "sys" ; then
23586 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
23587echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
23588 { (exit 1); exit 1; }; }
23589 else
23590 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
23591echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
23592 wxUSE_LIBJPEG=builtin
23593 fi
23594 else
23595 wxUSE_LIBJPEG=sys
23596 fi
23597 fi
23598 fi
23599fi
23600
23601
23602TIFF_LINK=
23603TIFF_PREREQ_LINKS=-lm
23604if test "$wxUSE_LIBTIFF" != "no" ; then
23605 cat >>confdefs.h <<\_ACEOF
23606#define wxUSE_LIBTIFF 1
23607_ACEOF
23608
23609
23610 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
23611 if test "$wxUSE_LIBJPEG" = "sys"; then
23612 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
23613 fi
23614 if test "$wxUSE_ZLIB" = "sys"; then
23615 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
23616 fi
23617 if test "${ac_cv_header_tiffio_h+set}" = set; then
23618 echo "$as_me:$LINENO: checking for tiffio.h" >&5
23619echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23620if test "${ac_cv_header_tiffio_h+set}" = set; then
23621 echo $ECHO_N "(cached) $ECHO_C" >&6
23622fi
23623echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23624echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23625else
23626 # Is the header compilable?
23627echo "$as_me:$LINENO: checking tiffio.h usability" >&5
23628echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
23629cat >conftest.$ac_ext <<_ACEOF
23630/* confdefs.h. */
23631_ACEOF
23632cat confdefs.h >>conftest.$ac_ext
23633cat >>conftest.$ac_ext <<_ACEOF
23634/* end confdefs.h. */
23635$ac_includes_default
23636#include <tiffio.h>
23637_ACEOF
23638rm -f conftest.$ac_objext
23639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23640 (eval $ac_compile) 2>conftest.er1
a848cd7e 23641 ac_status=$?
ac1cb8d3
VS
23642 grep -v '^ *+' conftest.er1 >conftest.err
23643 rm -f conftest.er1
23644 cat conftest.err >&5
a848cd7e
SC
23645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646 (exit $ac_status); } &&
fb00f58d
JS
23647 { ac_try='test -z "$ac_c_werror_flag"
23648 || test ! -s conftest.err'
ac1cb8d3
VS
23649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23650 (eval $ac_try) 2>&5
23651 ac_status=$?
23652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653 (exit $ac_status); }; } &&
23654 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23656 (eval $ac_try) 2>&5
23657 ac_status=$?
23658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659 (exit $ac_status); }; }; then
23660 ac_header_compiler=yes
23661else
23662 echo "$as_me: failed program was:" >&5
23663sed 's/^/| /' conftest.$ac_ext >&5
23664
23665ac_header_compiler=no
23666fi
ac1cb8d3 23667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23668echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23669echo "${ECHO_T}$ac_header_compiler" >&6
23670
23671# Is the header present?
23672echo "$as_me:$LINENO: checking tiffio.h presence" >&5
23673echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
23674cat >conftest.$ac_ext <<_ACEOF
23675/* confdefs.h. */
23676_ACEOF
23677cat confdefs.h >>conftest.$ac_ext
23678cat >>conftest.$ac_ext <<_ACEOF
23679/* end confdefs.h. */
23680#include <tiffio.h>
23681_ACEOF
23682if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23683 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23684 ac_status=$?
23685 grep -v '^ *+' conftest.er1 >conftest.err
23686 rm -f conftest.er1
23687 cat conftest.err >&5
23688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689 (exit $ac_status); } >/dev/null; then
23690 if test -s conftest.err; then
23691 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23693 else
23694 ac_cpp_err=
23695 fi
23696else
23697 ac_cpp_err=yes
23698fi
23699if test -z "$ac_cpp_err"; then
23700 ac_header_preproc=yes
23701else
23702 echo "$as_me: failed program was:" >&5
23703sed 's/^/| /' conftest.$ac_ext >&5
23704
23705 ac_header_preproc=no
23706fi
23707rm -f conftest.err conftest.$ac_ext
23708echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23709echo "${ECHO_T}$ac_header_preproc" >&6
23710
23711# So? What about this header?
ac1cb8d3
VS
23712case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23713 yes:no: )
a848cd7e
SC
23714 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
23715echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23716 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
23717echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
23718 ac_header_preproc=yes
a848cd7e 23719 ;;
ac1cb8d3 23720 no:yes:* )
a848cd7e
SC
23721 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
23722echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23723 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
23724echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
23725 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
23726echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
23727 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
23728echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23729 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
23730echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23731 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
23732echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23733 (
23734 cat <<\_ASBOX
ac1cb8d3
VS
23735## ----------------------------------------- ##
23736## Report this to wx-dev@lists.wxwidgets.org ##
23737## ----------------------------------------- ##
a848cd7e
SC
23738_ASBOX
23739 ) |
23740 sed "s/^/$as_me: WARNING: /" >&2
23741 ;;
23742esac
23743echo "$as_me:$LINENO: checking for tiffio.h" >&5
23744echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
23745if test "${ac_cv_header_tiffio_h+set}" = set; then
23746 echo $ECHO_N "(cached) $ECHO_C" >&6
23747else
23748 ac_cv_header_tiffio_h=$ac_header_preproc
23749fi
23750echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
23751echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
23752
23753fi
23754if test $ac_cv_header_tiffio_h = yes; then
23755
23756 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
23757echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
23758if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
23759 echo $ECHO_N "(cached) $ECHO_C" >&6
23760else
23761 ac_check_lib_save_LIBS=$LIBS
23762LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
23763cat >conftest.$ac_ext <<_ACEOF
23764/* confdefs.h. */
23765_ACEOF
23766cat confdefs.h >>conftest.$ac_ext
23767cat >>conftest.$ac_ext <<_ACEOF
23768/* end confdefs.h. */
23769
23770/* Override any gcc2 internal prototype to avoid an error. */
23771#ifdef __cplusplus
23772extern "C"
23773#endif
23774/* We use char because int might match the return type of a gcc2
23775 builtin and then its argument prototype would still apply. */
23776char TIFFError ();
23777int
23778main ()
23779{
23780TIFFError ();
23781 ;
23782 return 0;
23783}
23784_ACEOF
23785rm -f conftest.$ac_objext conftest$ac_exeext
23786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23787 (eval $ac_link) 2>conftest.er1
a848cd7e 23788 ac_status=$?
ac1cb8d3
VS
23789 grep -v '^ *+' conftest.er1 >conftest.err
23790 rm -f conftest.er1
23791 cat conftest.err >&5
a848cd7e
SC
23792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23793 (exit $ac_status); } &&
fb00f58d
JS
23794 { ac_try='test -z "$ac_c_werror_flag"
23795 || test ! -s conftest.err'
ac1cb8d3
VS
23796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23797 (eval $ac_try) 2>&5
23798 ac_status=$?
23799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23800 (exit $ac_status); }; } &&
23801 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23803 (eval $ac_try) 2>&5
23804 ac_status=$?
23805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23806 (exit $ac_status); }; }; then
23807 ac_cv_lib_tiff_TIFFError=yes
23808else
23809 echo "$as_me: failed program was:" >&5
23810sed 's/^/| /' conftest.$ac_ext >&5
23811
23812ac_cv_lib_tiff_TIFFError=no
23813fi
ac1cb8d3
VS
23814rm -f conftest.err conftest.$ac_objext \
23815 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23816LIBS=$ac_check_lib_save_LIBS
23817fi
23818echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
23819echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
23820if test $ac_cv_lib_tiff_TIFFError = yes; then
23821 TIFF_LINK=" -ltiff"
23822fi
23823
23824
23825
23826fi
23827
23828
23829
23830 if test "x$TIFF_LINK" = "x" ; then
23831 if test "$wxUSE_LIBTIFF" = "sys" ; then
23832 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
23833echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
23834 { (exit 1); exit 1; }; }
23835 else
23836 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
23837echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
23838 wxUSE_LIBTIFF=builtin
23839 fi
23840 else
23841 wxUSE_LIBTIFF=sys
23842 fi
23843 fi
23844fi
23845
23846
47a7e797
MW
23847if test "$wxUSE_WCHAR_T" != "yes"; then
23848 if test "$wxUSE_EXPAT" != "no"; then
23849 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
23850echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
23851 wxUSE_EXPAT=no
23852 fi
23853 if test "$wxUSE_XML" != "no"; then
23854 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
23855echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
23856 wxUSE_XML=no
23857 fi
23858fi
23859
a848cd7e
SC
23860if test "$wxUSE_EXPAT" != "no"; then
23861 wxUSE_XML=yes
23862 cat >>confdefs.h <<\_ACEOF
23863#define wxUSE_EXPAT 1
23864_ACEOF
23865
23866 cat >>confdefs.h <<\_ACEOF
23867#define wxUSE_XML 1
23868_ACEOF
23869
23870
23871 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
23872 if test "${ac_cv_header_expat_h+set}" = set; then
23873 echo "$as_me:$LINENO: checking for expat.h" >&5
23874echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
23875if test "${ac_cv_header_expat_h+set}" = set; then
23876 echo $ECHO_N "(cached) $ECHO_C" >&6
23877fi
23878echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
23879echo "${ECHO_T}$ac_cv_header_expat_h" >&6
23880else
23881 # Is the header compilable?
23882echo "$as_me:$LINENO: checking expat.h usability" >&5
23883echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
23884cat >conftest.$ac_ext <<_ACEOF
23885/* confdefs.h. */
23886_ACEOF
23887cat confdefs.h >>conftest.$ac_ext
23888cat >>conftest.$ac_ext <<_ACEOF
23889/* end confdefs.h. */
23890$ac_includes_default
23891#include <expat.h>
23892_ACEOF
23893rm -f conftest.$ac_objext
23894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23895 (eval $ac_compile) 2>conftest.er1
a848cd7e 23896 ac_status=$?
ac1cb8d3
VS
23897 grep -v '^ *+' conftest.er1 >conftest.err
23898 rm -f conftest.er1
23899 cat conftest.err >&5
a848cd7e
SC
23900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23901 (exit $ac_status); } &&
fb00f58d
JS
23902 { ac_try='test -z "$ac_c_werror_flag"
23903 || test ! -s conftest.err'
ac1cb8d3
VS
23904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23905 (eval $ac_try) 2>&5
23906 ac_status=$?
23907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23908 (exit $ac_status); }; } &&
23909 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23911 (eval $ac_try) 2>&5
23912 ac_status=$?
23913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914 (exit $ac_status); }; }; then
23915 ac_header_compiler=yes
23916else
23917 echo "$as_me: failed program was:" >&5
23918sed 's/^/| /' conftest.$ac_ext >&5
23919
23920ac_header_compiler=no
23921fi
ac1cb8d3 23922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23923echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23924echo "${ECHO_T}$ac_header_compiler" >&6
23925
23926# Is the header present?
23927echo "$as_me:$LINENO: checking expat.h presence" >&5
23928echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
23929cat >conftest.$ac_ext <<_ACEOF
23930/* confdefs.h. */
23931_ACEOF
23932cat confdefs.h >>conftest.$ac_ext
23933cat >>conftest.$ac_ext <<_ACEOF
23934/* end confdefs.h. */
23935#include <expat.h>
23936_ACEOF
23937if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23939 ac_status=$?
23940 grep -v '^ *+' conftest.er1 >conftest.err
23941 rm -f conftest.er1
23942 cat conftest.err >&5
23943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23944 (exit $ac_status); } >/dev/null; then
23945 if test -s conftest.err; then
23946 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23948 else
23949 ac_cpp_err=
23950 fi
23951else
23952 ac_cpp_err=yes
23953fi
23954if test -z "$ac_cpp_err"; then
23955 ac_header_preproc=yes
23956else
23957 echo "$as_me: failed program was:" >&5
23958sed 's/^/| /' conftest.$ac_ext >&5
23959
23960 ac_header_preproc=no
23961fi
23962rm -f conftest.err conftest.$ac_ext
23963echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23964echo "${ECHO_T}$ac_header_preproc" >&6
23965
23966# So? What about this header?
ac1cb8d3
VS
23967case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23968 yes:no: )
a848cd7e
SC
23969 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
23970echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23971 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
23972echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
23973 ac_header_preproc=yes
a848cd7e 23974 ;;
ac1cb8d3 23975 no:yes:* )
a848cd7e
SC
23976 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
23977echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23978 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
23979echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
23980 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
23981echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
23982 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
23983echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23984 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
23985echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23986 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
23987echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23988 (
23989 cat <<\_ASBOX
ac1cb8d3
VS
23990## ----------------------------------------- ##
23991## Report this to wx-dev@lists.wxwidgets.org ##
23992## ----------------------------------------- ##
a848cd7e
SC
23993_ASBOX
23994 ) |
23995 sed "s/^/$as_me: WARNING: /" >&2
23996 ;;
23997esac
23998echo "$as_me:$LINENO: checking for expat.h" >&5
23999echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
24000if test "${ac_cv_header_expat_h+set}" = set; then
24001 echo $ECHO_N "(cached) $ECHO_C" >&6
24002else
24003 ac_cv_header_expat_h=$ac_header_preproc
24004fi
24005echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
24006echo "${ECHO_T}$ac_cv_header_expat_h" >&6
24007
24008fi
24009if test $ac_cv_header_expat_h = yes; then
24010 found_expat_h=1
24011fi
24012
24013
24014 if test "x$found_expat_h" = "x1"; then
24015 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
24016echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
24017if test "${wx_cv_expat_is_not_broken+set}" = set; then
24018 echo $ECHO_N "(cached) $ECHO_C" >&6
24019else
24020
24021
24022
24023 ac_ext=cc
24024ac_cpp='$CXXCPP $CPPFLAGS'
24025ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24026ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24027ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24028
24029 cat >conftest.$ac_ext <<_ACEOF
24030/* confdefs.h. */
24031_ACEOF
24032cat confdefs.h >>conftest.$ac_ext
24033cat >>conftest.$ac_ext <<_ACEOF
24034/* end confdefs.h. */
24035#include <expat.h>
24036int
24037main ()
24038{
24039
24040 ;
24041 return 0;
24042}
24043_ACEOF
24044rm -f conftest.$ac_objext
24045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24046 (eval $ac_compile) 2>conftest.er1
a848cd7e 24047 ac_status=$?
ac1cb8d3
VS
24048 grep -v '^ *+' conftest.er1 >conftest.err
24049 rm -f conftest.er1
24050 cat conftest.err >&5
a848cd7e
SC
24051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24052 (exit $ac_status); } &&
fb00f58d
JS
24053 { ac_try='test -z "$ac_cxx_werror_flag"
24054 || test ! -s conftest.err'
ac1cb8d3
VS
24055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24056 (eval $ac_try) 2>&5
24057 ac_status=$?
24058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24059 (exit $ac_status); }; } &&
24060 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24062 (eval $ac_try) 2>&5
24063 ac_status=$?
24064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24065 (exit $ac_status); }; }; then
24066 wx_cv_expat_is_not_broken=yes
24067else
24068 echo "$as_me: failed program was:" >&5
24069sed 's/^/| /' conftest.$ac_ext >&5
24070
24071wx_cv_expat_is_not_broken=no
24072
24073fi
ac1cb8d3 24074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24075 ac_ext=c
24076ac_cpp='$CPP $CPPFLAGS'
24077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24079ac_compiler_gnu=$ac_cv_c_compiler_gnu
24080
24081
24082
24083fi
24084echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
24085echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
24086 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
24087 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
24088echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
24089if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
24090 echo $ECHO_N "(cached) $ECHO_C" >&6
24091else
24092 ac_check_lib_save_LIBS=$LIBS
24093LIBS="-lexpat $LIBS"
24094cat >conftest.$ac_ext <<_ACEOF
24095/* confdefs.h. */
24096_ACEOF
24097cat confdefs.h >>conftest.$ac_ext
24098cat >>conftest.$ac_ext <<_ACEOF
24099/* end confdefs.h. */
24100
24101/* Override any gcc2 internal prototype to avoid an error. */
24102#ifdef __cplusplus
24103extern "C"
24104#endif
24105/* We use char because int might match the return type of a gcc2
24106 builtin and then its argument prototype would still apply. */
24107char XML_ParserCreate ();
24108int
24109main ()
24110{
24111XML_ParserCreate ();
24112 ;
24113 return 0;
24114}
24115_ACEOF
24116rm -f conftest.$ac_objext conftest$ac_exeext
24117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24118 (eval $ac_link) 2>conftest.er1
a848cd7e 24119 ac_status=$?
ac1cb8d3
VS
24120 grep -v '^ *+' conftest.er1 >conftest.err
24121 rm -f conftest.er1
24122 cat conftest.err >&5
a848cd7e
SC
24123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24124 (exit $ac_status); } &&
fb00f58d
JS
24125 { ac_try='test -z "$ac_c_werror_flag"
24126 || test ! -s conftest.err'
ac1cb8d3
VS
24127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24128 (eval $ac_try) 2>&5
24129 ac_status=$?
24130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24131 (exit $ac_status); }; } &&
24132 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24134 (eval $ac_try) 2>&5
24135 ac_status=$?
24136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24137 (exit $ac_status); }; }; then
24138 ac_cv_lib_expat_XML_ParserCreate=yes
24139else
24140 echo "$as_me: failed program was:" >&5
24141sed 's/^/| /' conftest.$ac_ext >&5
24142
24143ac_cv_lib_expat_XML_ParserCreate=no
24144fi
ac1cb8d3
VS
24145rm -f conftest.err conftest.$ac_objext \
24146 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24147LIBS=$ac_check_lib_save_LIBS
24148fi
24149echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
24150echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
24151if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
24152 EXPAT_LINK=" -lexpat"
24153fi
24154
24155 fi
24156 fi
24157 if test "x$EXPAT_LINK" = "x" ; then
24158 if test "$wxUSE_EXPAT" = "sys" ; then
24159 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
24160echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
24161 { (exit 1); exit 1; }; }
24162 else
24163 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
24164echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
24165 wxUSE_EXPAT=builtin
24166 fi
24167 else
24168 wxUSE_EXPAT=sys
24169 fi
24170 fi
24171 if test "$wxUSE_EXPAT" = "builtin" ; then
24172
24173
24174subdirs="$subdirs src/expat"
24175
24176 fi
24177fi
24178
24179
24180
24181if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
24182 if test "${ac_cv_header_mspack_h+set}" = set; then
24183 echo "$as_me:$LINENO: checking for mspack.h" >&5
24184echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
24185if test "${ac_cv_header_mspack_h+set}" = set; then
24186 echo $ECHO_N "(cached) $ECHO_C" >&6
24187fi
24188echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
24189echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
24190else
24191 # Is the header compilable?
24192echo "$as_me:$LINENO: checking mspack.h usability" >&5
24193echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
24194cat >conftest.$ac_ext <<_ACEOF
24195/* confdefs.h. */
24196_ACEOF
24197cat confdefs.h >>conftest.$ac_ext
24198cat >>conftest.$ac_ext <<_ACEOF
24199/* end confdefs.h. */
24200$ac_includes_default
24201#include <mspack.h>
24202_ACEOF
24203rm -f conftest.$ac_objext
24204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24205 (eval $ac_compile) 2>conftest.er1
a848cd7e 24206 ac_status=$?
ac1cb8d3
VS
24207 grep -v '^ *+' conftest.er1 >conftest.err
24208 rm -f conftest.er1
24209 cat conftest.err >&5
a848cd7e
SC
24210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24211 (exit $ac_status); } &&
fb00f58d
JS
24212 { ac_try='test -z "$ac_c_werror_flag"
24213 || test ! -s conftest.err'
ac1cb8d3
VS
24214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24215 (eval $ac_try) 2>&5
24216 ac_status=$?
24217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24218 (exit $ac_status); }; } &&
24219 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24221 (eval $ac_try) 2>&5
24222 ac_status=$?
24223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24224 (exit $ac_status); }; }; then
24225 ac_header_compiler=yes
24226else
24227 echo "$as_me: failed program was:" >&5
24228sed 's/^/| /' conftest.$ac_ext >&5
24229
24230ac_header_compiler=no
24231fi
ac1cb8d3 24232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24233echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24234echo "${ECHO_T}$ac_header_compiler" >&6
24235
24236# Is the header present?
24237echo "$as_me:$LINENO: checking mspack.h presence" >&5
24238echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
24239cat >conftest.$ac_ext <<_ACEOF
24240/* confdefs.h. */
24241_ACEOF
24242cat confdefs.h >>conftest.$ac_ext
24243cat >>conftest.$ac_ext <<_ACEOF
24244/* end confdefs.h. */
24245#include <mspack.h>
24246_ACEOF
24247if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24249 ac_status=$?
24250 grep -v '^ *+' conftest.er1 >conftest.err
24251 rm -f conftest.er1
24252 cat conftest.err >&5
24253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254 (exit $ac_status); } >/dev/null; then
24255 if test -s conftest.err; then
24256 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24258 else
24259 ac_cpp_err=
24260 fi
24261else
24262 ac_cpp_err=yes
24263fi
24264if test -z "$ac_cpp_err"; then
24265 ac_header_preproc=yes
24266else
24267 echo "$as_me: failed program was:" >&5
24268sed 's/^/| /' conftest.$ac_ext >&5
24269
24270 ac_header_preproc=no
24271fi
24272rm -f conftest.err conftest.$ac_ext
24273echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24274echo "${ECHO_T}$ac_header_preproc" >&6
24275
24276# So? What about this header?
ac1cb8d3
VS
24277case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24278 yes:no: )
a848cd7e
SC
24279 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
24280echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24281 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
24282echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
24283 ac_header_preproc=yes
a848cd7e 24284 ;;
ac1cb8d3 24285 no:yes:* )
a848cd7e
SC
24286 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
24287echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24288 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
24289echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
24290 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
24291echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
24292 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
24293echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24294 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
24295echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24296 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
24297echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24298 (
24299 cat <<\_ASBOX
ac1cb8d3
VS
24300## ----------------------------------------- ##
24301## Report this to wx-dev@lists.wxwidgets.org ##
24302## ----------------------------------------- ##
a848cd7e
SC
24303_ASBOX
24304 ) |
24305 sed "s/^/$as_me: WARNING: /" >&2
24306 ;;
24307esac
24308echo "$as_me:$LINENO: checking for mspack.h" >&5
24309echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
24310if test "${ac_cv_header_mspack_h+set}" = set; then
24311 echo $ECHO_N "(cached) $ECHO_C" >&6
24312else
24313 ac_cv_header_mspack_h=$ac_header_preproc
24314fi
24315echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
24316echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
24317
24318fi
24319if test $ac_cv_header_mspack_h = yes; then
24320 found_mspack_h=1
24321fi
24322
24323
24324 if test "x$found_mspack_h" = "x1"; then
24325 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
24326echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
24327if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
24328 echo $ECHO_N "(cached) $ECHO_C" >&6
24329else
24330 ac_check_lib_save_LIBS=$LIBS
24331LIBS="-lmspack $LIBS"
24332cat >conftest.$ac_ext <<_ACEOF
24333/* confdefs.h. */
24334_ACEOF
24335cat confdefs.h >>conftest.$ac_ext
24336cat >>conftest.$ac_ext <<_ACEOF
24337/* end confdefs.h. */
24338
24339/* Override any gcc2 internal prototype to avoid an error. */
24340#ifdef __cplusplus
24341extern "C"
24342#endif
24343/* We use char because int might match the return type of a gcc2
24344 builtin and then its argument prototype would still apply. */
24345char mspack_create_chm_decompressor ();
24346int
24347main ()
24348{
24349mspack_create_chm_decompressor ();
24350 ;
24351 return 0;
24352}
24353_ACEOF
24354rm -f conftest.$ac_objext conftest$ac_exeext
24355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24356 (eval $ac_link) 2>conftest.er1
a848cd7e 24357 ac_status=$?
ac1cb8d3
VS
24358 grep -v '^ *+' conftest.er1 >conftest.err
24359 rm -f conftest.er1
24360 cat conftest.err >&5
a848cd7e
SC
24361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24362 (exit $ac_status); } &&
fb00f58d
JS
24363 { ac_try='test -z "$ac_c_werror_flag"
24364 || test ! -s conftest.err'
ac1cb8d3
VS
24365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24366 (eval $ac_try) 2>&5
24367 ac_status=$?
24368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24369 (exit $ac_status); }; } &&
24370 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24372 (eval $ac_try) 2>&5
24373 ac_status=$?
24374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24375 (exit $ac_status); }; }; then
24376 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
24377else
24378 echo "$as_me: failed program was:" >&5
24379sed 's/^/| /' conftest.$ac_ext >&5
24380
24381ac_cv_lib_mspack_mspack_create_chm_decompressor=no
24382fi
ac1cb8d3
VS
24383rm -f conftest.err conftest.$ac_objext \
24384 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24385LIBS=$ac_check_lib_save_LIBS
24386fi
24387echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
24388echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
24389if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
24390 MSPACK_LINK=" -lmspack"
24391fi
24392
24393 fi
24394 if test "x$MSPACK_LINK" = "x" ; then
24395 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
24396 fi
24397fi
24398
24399if test "$wxUSE_LIBMSPACK" != "no"; then
24400 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
24401#define wxUSE_LIBMSPACK 1
24402_ACEOF
24403
a848cd7e
SC
24404fi
24405
24406
24407
24408AFMINSTALL=
24409WIN32INSTALL=
24410
24411TOOLKIT=
24412TOOLKIT_INCLUDE=
24413WIDGET_SET=
24414
24415if test "$USE_WIN32" = 1 ; then
24416
24417for ac_header in w32api.h
24418do
24419as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24420if eval "test \"\${$as_ac_Header+set}\" = set"; then
24421 echo "$as_me:$LINENO: checking for $ac_header" >&5
24422echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24423if eval "test \"\${$as_ac_Header+set}\" = set"; then
24424 echo $ECHO_N "(cached) $ECHO_C" >&6
24425fi
24426echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24427echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24428else
24429 # Is the header compilable?
24430echo "$as_me:$LINENO: checking $ac_header usability" >&5
24431echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24432cat >conftest.$ac_ext <<_ACEOF
24433/* confdefs.h. */
24434_ACEOF
24435cat confdefs.h >>conftest.$ac_ext
24436cat >>conftest.$ac_ext <<_ACEOF
24437/* end confdefs.h. */
24438$ac_includes_default
24439#include <$ac_header>
24440_ACEOF
24441rm -f conftest.$ac_objext
24442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24443 (eval $ac_compile) 2>conftest.er1
a848cd7e 24444 ac_status=$?
ac1cb8d3
VS
24445 grep -v '^ *+' conftest.er1 >conftest.err
24446 rm -f conftest.er1
24447 cat conftest.err >&5
a848cd7e
SC
24448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449 (exit $ac_status); } &&
fb00f58d
JS
24450 { ac_try='test -z "$ac_c_werror_flag"
24451 || test ! -s conftest.err'
ac1cb8d3
VS
24452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24453 (eval $ac_try) 2>&5
24454 ac_status=$?
24455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24456 (exit $ac_status); }; } &&
24457 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24459 (eval $ac_try) 2>&5
24460 ac_status=$?
24461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24462 (exit $ac_status); }; }; then
24463 ac_header_compiler=yes
24464else
24465 echo "$as_me: failed program was:" >&5
24466sed 's/^/| /' conftest.$ac_ext >&5
24467
24468ac_header_compiler=no
24469fi
ac1cb8d3 24470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24471echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24472echo "${ECHO_T}$ac_header_compiler" >&6
24473
24474# Is the header present?
24475echo "$as_me:$LINENO: checking $ac_header presence" >&5
24476echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24477cat >conftest.$ac_ext <<_ACEOF
24478/* confdefs.h. */
24479_ACEOF
24480cat confdefs.h >>conftest.$ac_ext
24481cat >>conftest.$ac_ext <<_ACEOF
24482/* end confdefs.h. */
24483#include <$ac_header>
24484_ACEOF
24485if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24487 ac_status=$?
24488 grep -v '^ *+' conftest.er1 >conftest.err
24489 rm -f conftest.er1
24490 cat conftest.err >&5
24491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492 (exit $ac_status); } >/dev/null; then
24493 if test -s conftest.err; then
24494 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24496 else
24497 ac_cpp_err=
24498 fi
24499else
24500 ac_cpp_err=yes
24501fi
24502if test -z "$ac_cpp_err"; then
24503 ac_header_preproc=yes
24504else
24505 echo "$as_me: failed program was:" >&5
24506sed 's/^/| /' conftest.$ac_ext >&5
24507
24508 ac_header_preproc=no
24509fi
24510rm -f conftest.err conftest.$ac_ext
24511echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24512echo "${ECHO_T}$ac_header_preproc" >&6
24513
24514# So? What about this header?
ac1cb8d3
VS
24515case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24516 yes:no: )
a848cd7e
SC
24517 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24518echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24520echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24521 ac_header_preproc=yes
a848cd7e 24522 ;;
ac1cb8d3 24523 no:yes:* )
a848cd7e
SC
24524 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24525echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24526 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24527echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24528 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24529echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24530 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24531echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24533echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24534 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24535echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24536 (
24537 cat <<\_ASBOX
ac1cb8d3
VS
24538## ----------------------------------------- ##
24539## Report this to wx-dev@lists.wxwidgets.org ##
24540## ----------------------------------------- ##
a848cd7e
SC
24541_ASBOX
24542 ) |
24543 sed "s/^/$as_me: WARNING: /" >&2
24544 ;;
24545esac
24546echo "$as_me:$LINENO: checking for $ac_header" >&5
24547echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24548if eval "test \"\${$as_ac_Header+set}\" = set"; then
24549 echo $ECHO_N "(cached) $ECHO_C" >&6
24550else
ac1cb8d3 24551 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
24552fi
24553echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24554echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24555
24556fi
24557if test `eval echo '${'$as_ac_Header'}'` = yes; then
24558 cat >>confdefs.h <<_ACEOF
24559#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24560_ACEOF
24561
24562fi
24563
24564done
24565
24566 if test "${ac_cv_header_windows_h+set}" = set; then
24567 echo "$as_me:$LINENO: checking for windows.h" >&5
24568echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24569if test "${ac_cv_header_windows_h+set}" = set; then
24570 echo $ECHO_N "(cached) $ECHO_C" >&6
24571fi
24572echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24573echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24574else
24575 # Is the header compilable?
24576echo "$as_me:$LINENO: checking windows.h usability" >&5
24577echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
24578cat >conftest.$ac_ext <<_ACEOF
24579/* confdefs.h. */
24580_ACEOF
24581cat confdefs.h >>conftest.$ac_ext
24582cat >>conftest.$ac_ext <<_ACEOF
24583/* end confdefs.h. */
24584$ac_includes_default
24585#include <windows.h>
24586_ACEOF
24587rm -f conftest.$ac_objext
24588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24589 (eval $ac_compile) 2>conftest.er1
a848cd7e 24590 ac_status=$?
ac1cb8d3
VS
24591 grep -v '^ *+' conftest.er1 >conftest.err
24592 rm -f conftest.er1
24593 cat conftest.err >&5
a848cd7e
SC
24594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595 (exit $ac_status); } &&
fb00f58d
JS
24596 { ac_try='test -z "$ac_c_werror_flag"
24597 || test ! -s conftest.err'
ac1cb8d3
VS
24598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24599 (eval $ac_try) 2>&5
24600 ac_status=$?
24601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24602 (exit $ac_status); }; } &&
24603 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24605 (eval $ac_try) 2>&5
24606 ac_status=$?
24607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608 (exit $ac_status); }; }; then
24609 ac_header_compiler=yes
24610else
24611 echo "$as_me: failed program was:" >&5
24612sed 's/^/| /' conftest.$ac_ext >&5
24613
24614ac_header_compiler=no
24615fi
ac1cb8d3 24616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24617echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24618echo "${ECHO_T}$ac_header_compiler" >&6
24619
24620# Is the header present?
24621echo "$as_me:$LINENO: checking windows.h presence" >&5
24622echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
24623cat >conftest.$ac_ext <<_ACEOF
24624/* confdefs.h. */
24625_ACEOF
24626cat confdefs.h >>conftest.$ac_ext
24627cat >>conftest.$ac_ext <<_ACEOF
24628/* end confdefs.h. */
24629#include <windows.h>
24630_ACEOF
24631if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24632 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24633 ac_status=$?
24634 grep -v '^ *+' conftest.er1 >conftest.err
24635 rm -f conftest.er1
24636 cat conftest.err >&5
24637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24638 (exit $ac_status); } >/dev/null; then
24639 if test -s conftest.err; then
24640 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24642 else
24643 ac_cpp_err=
24644 fi
24645else
24646 ac_cpp_err=yes
24647fi
24648if test -z "$ac_cpp_err"; then
24649 ac_header_preproc=yes
24650else
24651 echo "$as_me: failed program was:" >&5
24652sed 's/^/| /' conftest.$ac_ext >&5
24653
24654 ac_header_preproc=no
24655fi
24656rm -f conftest.err conftest.$ac_ext
24657echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24658echo "${ECHO_T}$ac_header_preproc" >&6
24659
24660# So? What about this header?
ac1cb8d3
VS
24661case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24662 yes:no: )
a848cd7e
SC
24663 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
24664echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24665 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
24666echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
24667 ac_header_preproc=yes
a848cd7e 24668 ;;
ac1cb8d3 24669 no:yes:* )
a848cd7e
SC
24670 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
24671echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24672 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
24673echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
24674 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
24675echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
24676 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
24677echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24678 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
24679echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24680 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
24681echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24682 (
24683 cat <<\_ASBOX
ac1cb8d3
VS
24684## ----------------------------------------- ##
24685## Report this to wx-dev@lists.wxwidgets.org ##
24686## ----------------------------------------- ##
a848cd7e
SC
24687_ASBOX
24688 ) |
24689 sed "s/^/$as_me: WARNING: /" >&2
24690 ;;
24691esac
24692echo "$as_me:$LINENO: checking for windows.h" >&5
24693echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
24694if test "${ac_cv_header_windows_h+set}" = set; then
24695 echo $ECHO_N "(cached) $ECHO_C" >&6
24696else
24697 ac_cv_header_windows_h=$ac_header_preproc
24698fi
24699echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
24700echo "${ECHO_T}$ac_cv_header_windows_h" >&6
24701
24702fi
24703if test $ac_cv_header_windows_h = yes; then
24704 :
24705else
24706
24707 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
24708echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
24709 { (exit 1); exit 1; }; }
24710
24711fi
24712
24713
24714
24715 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
24716
24717 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
24718 LIBS="$LIBS -loleacc"
24719 fi
24720
24721 case "${host}" in
24722 *-*-cygwin* )
24723 LIBS="$LIBS -lkernel32 -luser32"
24724 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
24725 esac
24726
24727 if test "$wxUSE_ODBC" = "sys" ; then
24728 wxUSE_ODBC = "yes"
24729 fi
24730 if test "$wxUSE_ODBC" = "yes" ; then
24731 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
24732 cat >>confdefs.h <<\_ACEOF
24733#define wxUSE_ODBC 1
24734_ACEOF
24735
24736 fi
24737
24738 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
24739 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
24740
24741 WIN32INSTALL=win32install
24742fi
24743
24744if test "$wxUSE_GUI" = "yes"; then
24745 USE_GUI=1
24746
24747 GUI_TK_LIBRARY=
24748
24749 WXGTK12=
24750 WXGTK127=
24751 WXGTK20=
24752 WXGPE=
24753
207bc66c
RN
24754 if test "$wxUSE_COCOA" = 1 ; then
24755 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
24756 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
24757echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
24758 wxUSE_PRINTING_ARCHITECTURE=no
24759 fi
24760 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
24761 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
24762echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
24763 wxUSE_DRAG_AND_DROP=no
24764 fi
24765 if test "$wxUSE_DRAGIMAGE" = "yes"; then
24766 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
24767echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
24768 wxUSE_DRAGIMAGE=no
24769 fi
24770 fi
24771
a848cd7e
SC
24772 if test "$wxUSE_MSW" = 1 ; then
24773 TOOLKIT=MSW
24774 GUIDIST=MSW_DIST
24775
ceec2216 24776 case "${host}" in
a848cd7e
SC
24777 *-*-mingw32* )
24778 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
24779 esac
24780 fi
24781
24782 if test "$wxUSE_GTK" = 1; then
24783 echo "$as_me:$LINENO: checking for GTK+ version" >&5
24784echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
24785
24786 gtk_version_cached=1
24787 if test "${wx_cv_lib_gtk+set}" = set; then
24788 echo $ECHO_N "(cached) $ECHO_C" >&6
24789else
24790
24791 gtk_version_cached=0
24792 echo "$as_me:$LINENO: result: " >&5
24793echo "${ECHO_T}" >&6
24794
24795 GTK_MODULES=
24796 if test "$wxUSE_THREADS" = "yes"; then
24797 GTK_MODULES=gthread
24798 fi
24799
f597b41c 24800 wx_cv_lib_gtk=
f34ca037 24801 if test "x$wxGTK_VERSION" != "x1"; then
a848cd7e
SC
24802 # Check whether --enable-gtktest or --disable-gtktest was given.
24803if test "${enable_gtktest+set}" = set; then
24804 enableval="$enable_gtktest"
24805
24806else
24807 enable_gtktest=yes
24808fi;
24809
24810 pkg_config_args=gtk+-2.0
24811 for module in . $GTK_MODULES
24812 do
24813 case "$module" in
24814 gthread)
24815 pkg_config_args="$pkg_config_args gthread-2.0"
24816 ;;
24817 esac
24818 done
24819
24820 no_gtk=""
24821
24822 # Extract the first word of "pkg-config", so it can be a program name with args.
24823set dummy pkg-config; ac_word=$2
24824echo "$as_me:$LINENO: checking for $ac_word" >&5
24825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24826if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24827 echo $ECHO_N "(cached) $ECHO_C" >&6
24828else
24829 case $PKG_CONFIG in
24830 [\\/]* | ?:[\\/]*)
24831 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24832 ;;
24833 *)
24834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24835for as_dir in $PATH
24836do
24837 IFS=$as_save_IFS
24838 test -z "$as_dir" && as_dir=.
24839 for ac_exec_ext in '' $ac_executable_extensions; do
24840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24841 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24843 break 2
24844 fi
24845done
24846done
24847
24848 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24849 ;;
24850esac
24851fi
24852PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24853
24854if test -n "$PKG_CONFIG"; then
24855 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24856echo "${ECHO_T}$PKG_CONFIG" >&6
24857else
24858 echo "$as_me:$LINENO: result: no" >&5
24859echo "${ECHO_T}no" >&6
24860fi
24861
24862
24863 if test x$PKG_CONFIG != xno ; then
24864 if pkg-config --atleast-pkgconfig-version 0.7 ; then
24865 :
24866 else
c2218763 24867 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
24868 no_gtk=yes
24869 PKG_CONFIG=no
24870 fi
24871 else
24872 no_gtk=yes
24873 fi
24874
24875 min_gtk_version=2.0.0
24876 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
24877echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
24878
24879 if test x$PKG_CONFIG != xno ; then
24880 ## don't try to run the test against uninstalled libtool libs
24881 if $PKG_CONFIG --uninstalled $pkg_config_args; then
24882 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
24883 enable_gtktest=no
24884 fi
24885
24886 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
24887 :
24888 else
24889 no_gtk=yes
24890 fi
24891 fi
24892
24893 if test x"$no_gtk" = x ; then
24894 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
24895 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
24896 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24897 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
24898 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24899 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
24900 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
24901 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
24902 if test "x$enable_gtktest" = "xyes" ; then
24903 ac_save_CFLAGS="$CFLAGS"
24904 ac_save_LIBS="$LIBS"
24905 CFLAGS="$CFLAGS $GTK_CFLAGS"
24906 LIBS="$GTK_LIBS $LIBS"
24907 rm -f conf.gtktest
24908 if test "$cross_compiling" = yes; then
24909 echo $ac_n "cross compiling; assumed OK... $ac_c"
24910else
24911 cat >conftest.$ac_ext <<_ACEOF
24912/* confdefs.h. */
24913_ACEOF
24914cat confdefs.h >>conftest.$ac_ext
24915cat >>conftest.$ac_ext <<_ACEOF
24916/* end confdefs.h. */
24917
24918#include <gtk/gtk.h>
24919#include <stdio.h>
24920#include <stdlib.h>
24921
24922int
24923main ()
24924{
24925 int major, minor, micro;
24926 char *tmp_version;
24927
24928 system ("touch conf.gtktest");
24929
24930 /* HP/UX 9 (%@#!) writes to sscanf strings */
24931 tmp_version = g_strdup("$min_gtk_version");
24932 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
24933 printf("%s, bad version string\n", "$min_gtk_version");
24934 exit(1);
24935 }
24936
24937 if ((gtk_major_version != $gtk_config_major_version) ||
24938 (gtk_minor_version != $gtk_config_minor_version) ||
24939 (gtk_micro_version != $gtk_config_micro_version))
24940 {
24941 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
24942 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
24943 gtk_major_version, gtk_minor_version, gtk_micro_version);
24944 printf ("*** was found! If pkg-config was correct, then it is best\n");
24945 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
24946 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
24947 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
24948 printf("*** required on your system.\n");
24949 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
24950 printf("*** to point to the correct configuration files\n");
24951 }
24952 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
24953 (gtk_minor_version != GTK_MINOR_VERSION) ||
24954 (gtk_micro_version != GTK_MICRO_VERSION))
24955 {
24956 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
24957 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
24958 printf("*** library (version %d.%d.%d)\n",
24959 gtk_major_version, gtk_minor_version, gtk_micro_version);
24960 }
24961 else
24962 {
24963 if ((gtk_major_version > major) ||
24964 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
24965 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
24966 {
24967 return 0;
24968 }
24969 else
24970 {
24971 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
24972 gtk_major_version, gtk_minor_version, gtk_micro_version);
24973 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
24974 major, minor, micro);
24975 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
24976 printf("***\n");
24977 printf("*** If you have already installed a sufficiently new version, this error\n");
24978 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
24979 printf("*** being found. The easiest way to fix this is to remove the old version\n");
24980 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
24981 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
24982 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
24983 printf("*** so that the correct libraries are found at run-time))\n");
24984 }
24985 }
24986 return 1;
24987}
24988
24989_ACEOF
24990rm -f conftest$ac_exeext
24991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24992 (eval $ac_link) 2>&5
24993 ac_status=$?
24994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24997 (eval $ac_try) 2>&5
24998 ac_status=$?
24999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25000 (exit $ac_status); }; }; then
25001 :
25002else
25003 echo "$as_me: program exited with status $ac_status" >&5
25004echo "$as_me: failed program was:" >&5
25005sed 's/^/| /' conftest.$ac_ext >&5
25006
25007( exit $ac_status )
25008no_gtk=yes
25009fi
ac1cb8d3 25010rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25011fi
25012 CFLAGS="$ac_save_CFLAGS"
25013 LIBS="$ac_save_LIBS"
25014 fi
25015 fi
25016 if test "x$no_gtk" = x ; then
25017 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
25018echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
25019 wx_cv_lib_gtk=2.0
25020 else
25021 echo "$as_me:$LINENO: result: no" >&5
25022echo "${ECHO_T}no" >&6
25023 if test "$PKG_CONFIG" = "no" ; then
25024 echo "*** A new enough version of pkg-config was not found."
25025 echo "*** See http://pkgconfig.sourceforge.net"
25026 else
25027 if test -f conf.gtktest ; then
25028 :
25029 else
25030 echo "*** Could not run GTK+ test program, checking why..."
25031 ac_save_CFLAGS="$CFLAGS"
25032 ac_save_LIBS="$LIBS"
25033 CFLAGS="$CFLAGS $GTK_CFLAGS"
25034 LIBS="$LIBS $GTK_LIBS"
25035 cat >conftest.$ac_ext <<_ACEOF
25036/* confdefs.h. */
25037_ACEOF
25038cat confdefs.h >>conftest.$ac_ext
25039cat >>conftest.$ac_ext <<_ACEOF
25040/* end confdefs.h. */
25041
25042#include <gtk/gtk.h>
25043#include <stdio.h>
25044
25045int
25046main ()
25047{
25048 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25049 ;
25050 return 0;
25051}
25052_ACEOF
25053rm -f conftest.$ac_objext conftest$ac_exeext
25054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25055 (eval $ac_link) 2>conftest.er1
a848cd7e 25056 ac_status=$?
ac1cb8d3
VS
25057 grep -v '^ *+' conftest.er1 >conftest.err
25058 rm -f conftest.er1
25059 cat conftest.err >&5
a848cd7e
SC
25060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25061 (exit $ac_status); } &&
fb00f58d
JS
25062 { ac_try='test -z "$ac_c_werror_flag"
25063 || test ! -s conftest.err'
ac1cb8d3
VS
25064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25065 (eval $ac_try) 2>&5
25066 ac_status=$?
25067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25068 (exit $ac_status); }; } &&
25069 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25071 (eval $ac_try) 2>&5
25072 ac_status=$?
25073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25074 (exit $ac_status); }; }; then
25075 echo "*** The test program compiled, but did not run. This usually means"
25076 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
25077 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
25078 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25079 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25080 echo "*** is required on your system"
25081 echo "***"
25082 echo "*** If you have an old version installed, it is best to remove it, although"
25083 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25084else
25085 echo "$as_me: failed program was:" >&5
25086sed 's/^/| /' conftest.$ac_ext >&5
25087
25088 echo "*** The test program failed to compile or link. See the file config.log for the"
25089 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
25090fi
ac1cb8d3
VS
25091rm -f conftest.err conftest.$ac_objext \
25092 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25093 CFLAGS="$ac_save_CFLAGS"
25094 LIBS="$ac_save_LIBS"
25095 fi
25096 fi
25097 GTK_CFLAGS=""
25098 GTK_LIBS=""
25099 :
25100 fi
25101
25102
25103 rm -f conf.gtktest
25104
f597b41c
MW
25105 fi
25106
f34ca037
MW
25107 if test -z "$wx_cv_lib_gtk"; then
25108 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
25109
25110# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
25111if test "${with_gtk_prefix+set}" = set; then
25112 withval="$with_gtk_prefix"
25113 gtk_config_prefix="$withval"
25114else
25115 gtk_config_prefix=""
25116fi;
25117
25118# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
25119if test "${with_gtk_exec_prefix+set}" = set; then
25120 withval="$with_gtk_exec_prefix"
25121 gtk_config_exec_prefix="$withval"
25122else
25123 gtk_config_exec_prefix=""
25124fi;
25125# Check whether --enable-gtktest or --disable-gtktest was given.
25126if test "${enable_gtktest+set}" = set; then
25127 enableval="$enable_gtktest"
25128
25129else
25130 enable_gtktest=yes
25131fi;
25132
25133 for module in . $GTK_MODULES
25134 do
25135 case "$module" in
25136 gthread)
25137 gtk_config_args="$gtk_config_args gthread"
25138 ;;
25139 esac
25140 done
25141
25142 if test x$gtk_config_exec_prefix != x ; then
25143 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
25144 if test x${GTK_CONFIG+set} != xset ; then
25145 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
25146 fi
25147 fi
25148 if test x$gtk_config_prefix != x ; then
25149 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
25150 if test x${GTK_CONFIG+set} != xset ; then
25151 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
25152 fi
25153 fi
25154
25155 # Extract the first word of "gtk-config", so it can be a program name with args.
25156set dummy gtk-config; ac_word=$2
25157echo "$as_me:$LINENO: checking for $ac_word" >&5
25158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25159if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
25160 echo $ECHO_N "(cached) $ECHO_C" >&6
25161else
25162 case $GTK_CONFIG in
25163 [\\/]* | ?:[\\/]*)
25164 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
25165 ;;
25166 *)
25167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25168for as_dir in $PATH
25169do
25170 IFS=$as_save_IFS
25171 test -z "$as_dir" && as_dir=.
25172 for ac_exec_ext in '' $ac_executable_extensions; do
25173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25174 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25176 break 2
25177 fi
25178done
25179done
25180
25181 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
25182 ;;
25183esac
25184fi
25185GTK_CONFIG=$ac_cv_path_GTK_CONFIG
25186
25187if test -n "$GTK_CONFIG"; then
25188 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
25189echo "${ECHO_T}$GTK_CONFIG" >&6
25190else
25191 echo "$as_me:$LINENO: result: no" >&5
25192echo "${ECHO_T}no" >&6
25193fi
25194
25195 min_gtk_version=1.2.7
25196 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
25197echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
25198 no_gtk=""
25199 if test "$GTK_CONFIG" = "no" ; then
25200 no_gtk=yes
25201 else
25202 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
25203 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
25204 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25205 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25206 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25207 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25208 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25209 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25210 if test "x$enable_gtktest" = "xyes" ; then
25211 ac_save_CFLAGS="$CFLAGS"
25212 ac_save_LIBS="$LIBS"
25213 CFLAGS="$CFLAGS $GTK_CFLAGS"
25214 LIBS="$GTK_LIBS $LIBS"
25215 rm -f conf.gtktest
25216 if test "$cross_compiling" = yes; then
25217 echo $ac_n "cross compiling; assumed OK... $ac_c"
25218else
25219 cat >conftest.$ac_ext <<_ACEOF
25220/* confdefs.h. */
25221_ACEOF
25222cat confdefs.h >>conftest.$ac_ext
25223cat >>conftest.$ac_ext <<_ACEOF
25224/* end confdefs.h. */
25225
25226#include <gtk/gtk.h>
25227#include <stdio.h>
25228#include <stdlib.h>
25229
25230int
25231main ()
25232{
25233 int major, minor, micro;
25234 char *tmp_version;
25235
25236 system ("touch conf.gtktest");
25237
25238 /* HP/UX 9 (%@#!) writes to sscanf strings */
25239 tmp_version = g_strdup("$min_gtk_version");
25240 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25241 printf("%s, bad version string\n", "$min_gtk_version");
25242 exit(1);
25243 }
25244
25245 if ((gtk_major_version != $gtk_config_major_version) ||
25246 (gtk_minor_version != $gtk_config_minor_version) ||
25247 (gtk_micro_version != $gtk_config_micro_version))
25248 {
25249 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25250 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25251 gtk_major_version, gtk_minor_version, gtk_micro_version);
25252 printf ("*** was found! If gtk-config was correct, then it is best\n");
25253 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25254 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25255 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25256 printf("*** required on your system.\n");
25257 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25258 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25259 printf("*** before re-running configure\n");
25260 }
25261#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25262 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25263 (gtk_minor_version != GTK_MINOR_VERSION) ||
25264 (gtk_micro_version != GTK_MICRO_VERSION))
25265 {
25266 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25267 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25268 printf("*** library (version %d.%d.%d)\n",
25269 gtk_major_version, gtk_minor_version, gtk_micro_version);
25270 }
25271#endif /* defined (GTK_MAJOR_VERSION) ... */
25272 else
25273 {
25274 if ((gtk_major_version > major) ||
25275 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25276 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25277 {
25278 return 0;
25279 }
25280 else
25281 {
25282 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25283 gtk_major_version, gtk_minor_version, gtk_micro_version);
25284 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25285 major, minor, micro);
25286 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25287 printf("***\n");
25288 printf("*** If you have already installed a sufficiently new version, this error\n");
25289 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25290 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25291 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25292 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25293 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25294 printf("*** so that the correct libraries are found at run-time))\n");
25295 }
25296 }
25297 return 1;
25298}
25299
25300_ACEOF
25301rm -f conftest$ac_exeext
25302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25303 (eval $ac_link) 2>&5
25304 ac_status=$?
25305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25308 (eval $ac_try) 2>&5
25309 ac_status=$?
25310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25311 (exit $ac_status); }; }; then
25312 :
25313else
25314 echo "$as_me: program exited with status $ac_status" >&5
25315echo "$as_me: failed program was:" >&5
25316sed 's/^/| /' conftest.$ac_ext >&5
25317
25318( exit $ac_status )
25319no_gtk=yes
25320fi
ac1cb8d3 25321rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25322fi
25323 CFLAGS="$ac_save_CFLAGS"
25324 LIBS="$ac_save_LIBS"
25325 fi
25326 fi
25327 if test "x$no_gtk" = x ; then
25328 echo "$as_me:$LINENO: result: yes" >&5
25329echo "${ECHO_T}yes" >&6
25330 wx_cv_lib_gtk=1.2.7
25331 else
25332 echo "$as_me:$LINENO: result: no" >&5
25333echo "${ECHO_T}no" >&6
25334 if test "$GTK_CONFIG" = "no" ; then
25335 echo "*** The gtk-config script installed by GTK could not be found"
25336 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25337 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25338 echo "*** full path to gtk-config."
25339 else
25340 if test -f conf.gtktest ; then
25341 :
25342 else
25343 echo "*** Could not run GTK test program, checking why..."
25344 CFLAGS="$CFLAGS $GTK_CFLAGS"
25345 LIBS="$LIBS $GTK_LIBS"
25346 cat >conftest.$ac_ext <<_ACEOF
25347/* confdefs.h. */
25348_ACEOF
25349cat confdefs.h >>conftest.$ac_ext
25350cat >>conftest.$ac_ext <<_ACEOF
25351/* end confdefs.h. */
25352
25353#include <gtk/gtk.h>
25354#include <stdio.h>
25355
25356int
25357main ()
25358{
25359 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25360 ;
25361 return 0;
25362}
25363_ACEOF
25364rm -f conftest.$ac_objext conftest$ac_exeext
25365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25366 (eval $ac_link) 2>conftest.er1
a848cd7e 25367 ac_status=$?
ac1cb8d3
VS
25368 grep -v '^ *+' conftest.er1 >conftest.err
25369 rm -f conftest.er1
25370 cat conftest.err >&5
a848cd7e
SC
25371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25372 (exit $ac_status); } &&
fb00f58d
JS
25373 { ac_try='test -z "$ac_c_werror_flag"
25374 || test ! -s conftest.err'
ac1cb8d3
VS
25375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25376 (eval $ac_try) 2>&5
25377 ac_status=$?
25378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25379 (exit $ac_status); }; } &&
25380 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25382 (eval $ac_try) 2>&5
25383 ac_status=$?
25384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25385 (exit $ac_status); }; }; then
25386 echo "*** The test program compiled, but did not run. This usually means"
25387 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25388 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25389 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25390 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25391 echo "*** is required on your system"
25392 echo "***"
25393 echo "*** If you have an old version installed, it is best to remove it, although"
25394 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25395 echo "***"
25396 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25397 echo "*** came with the system with the command"
25398 echo "***"
25399 echo "*** rpm --erase --nodeps gtk gtk-devel"
25400else
25401 echo "$as_me: failed program was:" >&5
25402sed 's/^/| /' conftest.$ac_ext >&5
25403
25404 echo "*** The test program failed to compile or link. See the file config.log for the"
25405 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25406 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25407 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25408fi
ac1cb8d3
VS
25409rm -f conftest.err conftest.$ac_objext \
25410 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25411 CFLAGS="$ac_save_CFLAGS"
25412 LIBS="$ac_save_LIBS"
25413 fi
25414 fi
25415 GTK_CFLAGS=""
25416 GTK_LIBS=""
25417 :
25418 fi
25419
25420
25421 rm -f conf.gtktest
25422
25423
f34ca037 25424 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
25425
25426# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
25427if test "${with_gtk_prefix+set}" = set; then
25428 withval="$with_gtk_prefix"
25429 gtk_config_prefix="$withval"
25430else
25431 gtk_config_prefix=""
25432fi;
25433
25434# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
25435if test "${with_gtk_exec_prefix+set}" = set; then
25436 withval="$with_gtk_exec_prefix"
25437 gtk_config_exec_prefix="$withval"
25438else
25439 gtk_config_exec_prefix=""
25440fi;
25441# Check whether --enable-gtktest or --disable-gtktest was given.
25442if test "${enable_gtktest+set}" = set; then
25443 enableval="$enable_gtktest"
25444
25445else
25446 enable_gtktest=yes
25447fi;
25448
25449 for module in . $GTK_MODULES
25450 do
25451 case "$module" in
25452 gthread)
25453 gtk_config_args="$gtk_config_args gthread"
25454 ;;
25455 esac
25456 done
25457
25458 if test x$gtk_config_exec_prefix != x ; then
25459 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
25460 if test x${GTK_CONFIG+set} != xset ; then
25461 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
25462 fi
25463 fi
25464 if test x$gtk_config_prefix != x ; then
25465 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
25466 if test x${GTK_CONFIG+set} != xset ; then
25467 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
25468 fi
25469 fi
25470
25471 # Extract the first word of "gtk-config", so it can be a program name with args.
25472set dummy gtk-config; ac_word=$2
25473echo "$as_me:$LINENO: checking for $ac_word" >&5
25474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25475if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
25476 echo $ECHO_N "(cached) $ECHO_C" >&6
25477else
25478 case $GTK_CONFIG in
25479 [\\/]* | ?:[\\/]*)
25480 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
25481 ;;
25482 *)
25483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25484for as_dir in $PATH
25485do
25486 IFS=$as_save_IFS
25487 test -z "$as_dir" && as_dir=.
25488 for ac_exec_ext in '' $ac_executable_extensions; do
25489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25490 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25492 break 2
25493 fi
25494done
25495done
25496
25497 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
25498 ;;
25499esac
25500fi
25501GTK_CONFIG=$ac_cv_path_GTK_CONFIG
25502
25503if test -n "$GTK_CONFIG"; then
25504 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
25505echo "${ECHO_T}$GTK_CONFIG" >&6
25506else
25507 echo "$as_me:$LINENO: result: no" >&5
25508echo "${ECHO_T}no" >&6
25509fi
25510
25511 min_gtk_version=1.2.3
25512 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
25513echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
25514 no_gtk=""
25515 if test "$GTK_CONFIG" = "no" ; then
25516 no_gtk=yes
25517 else
25518 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
25519 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
25520 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
25521 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25522 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
25523 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25524 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
25525 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25526 if test "x$enable_gtktest" = "xyes" ; then
25527 ac_save_CFLAGS="$CFLAGS"
25528 ac_save_LIBS="$LIBS"
25529 CFLAGS="$CFLAGS $GTK_CFLAGS"
25530 LIBS="$GTK_LIBS $LIBS"
25531 rm -f conf.gtktest
25532 if test "$cross_compiling" = yes; then
25533 echo $ac_n "cross compiling; assumed OK... $ac_c"
25534else
25535 cat >conftest.$ac_ext <<_ACEOF
25536/* confdefs.h. */
25537_ACEOF
25538cat confdefs.h >>conftest.$ac_ext
25539cat >>conftest.$ac_ext <<_ACEOF
25540/* end confdefs.h. */
25541
25542#include <gtk/gtk.h>
25543#include <stdio.h>
25544#include <stdlib.h>
25545
25546int
25547main ()
25548{
25549 int major, minor, micro;
25550 char *tmp_version;
25551
25552 system ("touch conf.gtktest");
25553
25554 /* HP/UX 9 (%@#!) writes to sscanf strings */
25555 tmp_version = g_strdup("$min_gtk_version");
25556 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
25557 printf("%s, bad version string\n", "$min_gtk_version");
25558 exit(1);
25559 }
25560
25561 if ((gtk_major_version != $gtk_config_major_version) ||
25562 (gtk_minor_version != $gtk_config_minor_version) ||
25563 (gtk_micro_version != $gtk_config_micro_version))
25564 {
25565 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
25566 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
25567 gtk_major_version, gtk_minor_version, gtk_micro_version);
25568 printf ("*** was found! If gtk-config was correct, then it is best\n");
25569 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
25570 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25571 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25572 printf("*** required on your system.\n");
25573 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
25574 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
25575 printf("*** before re-running configure\n");
25576 }
25577#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
25578 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
25579 (gtk_minor_version != GTK_MINOR_VERSION) ||
25580 (gtk_micro_version != GTK_MICRO_VERSION))
25581 {
25582 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
25583 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
25584 printf("*** library (version %d.%d.%d)\n",
25585 gtk_major_version, gtk_minor_version, gtk_micro_version);
25586 }
25587#endif /* defined (GTK_MAJOR_VERSION) ... */
25588 else
25589 {
25590 if ((gtk_major_version > major) ||
25591 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
25592 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
25593 {
25594 return 0;
25595 }
25596 else
25597 {
25598 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
25599 gtk_major_version, gtk_minor_version, gtk_micro_version);
25600 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
25601 major, minor, micro);
25602 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
25603 printf("***\n");
25604 printf("*** If you have already installed a sufficiently new version, this error\n");
25605 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
25606 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25607 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
25608 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
25609 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25610 printf("*** so that the correct libraries are found at run-time))\n");
25611 }
25612 }
25613 return 1;
25614}
25615
25616_ACEOF
25617rm -f conftest$ac_exeext
25618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25619 (eval $ac_link) 2>&5
25620 ac_status=$?
25621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25624 (eval $ac_try) 2>&5
25625 ac_status=$?
25626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25627 (exit $ac_status); }; }; then
25628 :
25629else
25630 echo "$as_me: program exited with status $ac_status" >&5
25631echo "$as_me: failed program was:" >&5
25632sed 's/^/| /' conftest.$ac_ext >&5
25633
25634( exit $ac_status )
25635no_gtk=yes
25636fi
ac1cb8d3 25637rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25638fi
25639 CFLAGS="$ac_save_CFLAGS"
25640 LIBS="$ac_save_LIBS"
25641 fi
25642 fi
25643 if test "x$no_gtk" = x ; then
25644 echo "$as_me:$LINENO: result: yes" >&5
25645echo "${ECHO_T}yes" >&6
25646 wx_cv_lib_gtk=1.2.3
25647 else
25648 echo "$as_me:$LINENO: result: no" >&5
25649echo "${ECHO_T}no" >&6
25650 if test "$GTK_CONFIG" = "no" ; then
25651 echo "*** The gtk-config script installed by GTK could not be found"
25652 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
25653 echo "*** your path, or set the GTK_CONFIG environment variable to the"
25654 echo "*** full path to gtk-config."
25655 else
25656 if test -f conf.gtktest ; then
25657 :
25658 else
25659 echo "*** Could not run GTK test program, checking why..."
25660 CFLAGS="$CFLAGS $GTK_CFLAGS"
25661 LIBS="$LIBS $GTK_LIBS"
25662 cat >conftest.$ac_ext <<_ACEOF
25663/* confdefs.h. */
25664_ACEOF
25665cat confdefs.h >>conftest.$ac_ext
25666cat >>conftest.$ac_ext <<_ACEOF
25667/* end confdefs.h. */
25668
25669#include <gtk/gtk.h>
25670#include <stdio.h>
25671
25672int
25673main ()
25674{
25675 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
25676 ;
25677 return 0;
25678}
25679_ACEOF
25680rm -f conftest.$ac_objext conftest$ac_exeext
25681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25682 (eval $ac_link) 2>conftest.er1
a848cd7e 25683 ac_status=$?
ac1cb8d3
VS
25684 grep -v '^ *+' conftest.er1 >conftest.err
25685 rm -f conftest.er1
25686 cat conftest.err >&5
a848cd7e
SC
25687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25688 (exit $ac_status); } &&
fb00f58d
JS
25689 { ac_try='test -z "$ac_c_werror_flag"
25690 || test ! -s conftest.err'
ac1cb8d3
VS
25691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25692 (eval $ac_try) 2>&5
25693 ac_status=$?
25694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25695 (exit $ac_status); }; } &&
25696 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25698 (eval $ac_try) 2>&5
25699 ac_status=$?
25700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25701 (exit $ac_status); }; }; then
25702 echo "*** The test program compiled, but did not run. This usually means"
25703 echo "*** that the run-time linker is not finding GTK or finding the wrong"
25704 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
25705 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25706 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25707 echo "*** is required on your system"
25708 echo "***"
25709 echo "*** If you have an old version installed, it is best to remove it, although"
25710 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25711 echo "***"
25712 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
25713 echo "*** came with the system with the command"
25714 echo "***"
25715 echo "*** rpm --erase --nodeps gtk gtk-devel"
25716else
25717 echo "$as_me: failed program was:" >&5
25718sed 's/^/| /' conftest.$ac_ext >&5
25719
25720 echo "*** The test program failed to compile or link. See the file config.log for the"
25721 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
25722 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
25723 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
25724fi
ac1cb8d3
VS
25725rm -f conftest.err conftest.$ac_objext \
25726 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25727 CFLAGS="$ac_save_CFLAGS"
25728 LIBS="$ac_save_LIBS"
25729 fi
25730 fi
25731 GTK_CFLAGS=""
25732 GTK_LIBS=""
25733 :
25734 fi
25735
25736
25737 rm -f conf.gtktest
25738
f34ca037 25739 fi
a848cd7e
SC
25740 fi
25741 fi
25742
25743 if test -z "$wx_cv_lib_gtk"; then
25744 wx_cv_lib_gtk=none
25745 else
25746 wx_cv_cflags_gtk=$GTK_CFLAGS
25747 wx_cv_libs_gtk=$GTK_LIBS
25748 fi
25749
25750
25751fi
25752
25753
25754 if test "$gtk_version_cached" = 1; then
25755 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
25756echo "${ECHO_T}$wx_cv_lib_gtk" >&6
25757 fi
25758
25759 case "$wx_cv_lib_gtk" in
25760 2.0) WXGTK20=1
25761 TOOLKIT_VERSION=2
25762 ;;
25763 1.2.7) WXGTK127=1
25764 WXGTK12=1
25765 ;;
25766 1.2.3) WXGTK12=1
25767 ;;
25768 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
25769The development files for GTK+ were not found. For GTK+ 2, please
25770ensure that pkg-config is in the path and that gtk+-2.0.pc is
25771installed. For GTK+ 1.2 please check that gtk-config is in the path,
25772and that the version is 1.2.3 or above. Also check that the
25773libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25774--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
25775 " >&5
25776echo "$as_me: error:
f597b41c
MW
25777The development files for GTK+ were not found. For GTK+ 2, please
25778ensure that pkg-config is in the path and that gtk+-2.0.pc is
25779installed. For GTK+ 1.2 please check that gtk-config is in the path,
25780and that the version is 1.2.3 or above. Also check that the
25781libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
25782--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
25783 " >&2;}
25784 { (exit 1); exit 1; }; }
25785 ;;
25786 esac
25787
25788 if test "$WXGTK20" = 1; then
304205f1
VS
25789 save_CFLAGS="$CFLAGS"
25790 save_LIBS="$LIBS"
9d271838 25791 CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
abc736fd 25792 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 25793
9755e73b 25794
304205f1
VS
25795for ac_func in pango_font_family_is_monospace
25796do
25797as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25798echo "$as_me:$LINENO: checking for $ac_func" >&5
25799echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25800if eval "test \"\${$as_ac_var+set}\" = set"; then
25801 echo $ECHO_N "(cached) $ECHO_C" >&6
25802else
25803 cat >conftest.$ac_ext <<_ACEOF
25804/* confdefs.h. */
25805_ACEOF
25806cat confdefs.h >>conftest.$ac_ext
25807cat >>conftest.$ac_ext <<_ACEOF
25808/* end confdefs.h. */
25809/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25811#define $ac_func innocuous_$ac_func
25812
25813/* System header to define __stub macros and hopefully few prototypes,
25814 which can conflict with char $ac_func (); below.
25815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25816 <limits.h> exists even on freestanding compilers. */
25817
25818#ifdef __STDC__
25819# include <limits.h>
25820#else
25821# include <assert.h>
25822#endif
25823
25824#undef $ac_func
25825
25826/* Override any gcc2 internal prototype to avoid an error. */
25827#ifdef __cplusplus
25828extern "C"
25829{
25830#endif
25831/* We use char because int might match the return type of a gcc2
25832 builtin and then its argument prototype would still apply. */
25833char $ac_func ();
25834/* The GNU C library defines this for functions which it implements
25835 to always fail with ENOSYS. Some functions are actually named
25836 something starting with __ and the normal name is an alias. */
25837#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25838choke me
25839#else
25840char (*f) () = $ac_func;
25841#endif
25842#ifdef __cplusplus
25843}
25844#endif
25845
25846int
25847main ()
25848{
25849return f != $ac_func;
25850 ;
25851 return 0;
25852}
25853_ACEOF
25854rm -f conftest.$ac_objext conftest$ac_exeext
25855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25856 (eval $ac_link) 2>conftest.er1
25857 ac_status=$?
25858 grep -v '^ *+' conftest.er1 >conftest.err
25859 rm -f conftest.er1
25860 cat conftest.err >&5
25861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25862 (exit $ac_status); } &&
fb00f58d
JS
25863 { ac_try='test -z "$ac_c_werror_flag"
25864 || test ! -s conftest.err'
304205f1
VS
25865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25866 (eval $ac_try) 2>&5
25867 ac_status=$?
25868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25869 (exit $ac_status); }; } &&
25870 { ac_try='test -s conftest$ac_exeext'
25871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25872 (eval $ac_try) 2>&5
25873 ac_status=$?
25874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875 (exit $ac_status); }; }; then
25876 eval "$as_ac_var=yes"
25877else
25878 echo "$as_me: failed program was:" >&5
25879sed 's/^/| /' conftest.$ac_ext >&5
25880
25881eval "$as_ac_var=no"
25882fi
25883rm -f conftest.err conftest.$ac_objext \
25884 conftest$ac_exeext conftest.$ac_ext
25885fi
25886echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25887echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25888if test `eval echo '${'$as_ac_var'}'` = yes; then
25889 cat >>confdefs.h <<_ACEOF
25890#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25891_ACEOF
25892
25893fi
25894done
25895
9755e73b 25896
abc736fd
MW
25897 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
25898echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
25899 cat >conftest.$ac_ext <<_ACEOF
25900/* confdefs.h. */
25901_ACEOF
25902cat confdefs.h >>conftest.$ac_ext
25903cat >>conftest.$ac_ext <<_ACEOF
25904/* end confdefs.h. */
25905
25906 #include <gtk/gtk.h>
25907
25908int
25909main ()
25910{
25911
25912 void *f = gtk_icon_size_lookup;
25913
25914 ;
25915 return 0;
25916}
25917_ACEOF
25918rm -f conftest.$ac_objext
25919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25920 (eval $ac_compile) 2>conftest.er1
25921 ac_status=$?
25922 grep -v '^ *+' conftest.er1 >conftest.err
25923 rm -f conftest.er1
25924 cat conftest.err >&5
25925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25926 (exit $ac_status); } &&
25927 { ac_try='test -z "$ac_c_werror_flag"
25928 || test ! -s conftest.err'
25929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25930 (eval $ac_try) 2>&5
25931 ac_status=$?
25932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25933 (exit $ac_status); }; } &&
25934 { ac_try='test -s conftest.$ac_objext'
25935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25936 (eval $ac_try) 2>&5
25937 ac_status=$?
25938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25939 (exit $ac_status); }; }; then
25940
25941 echo "$as_me:$LINENO: result: no" >&5
25942echo "${ECHO_T}no" >&6
25943
25944else
25945 echo "$as_me: failed program was:" >&5
25946sed 's/^/| /' conftest.$ac_ext >&5
25947
25948
25949 cat >>confdefs.h <<\_ACEOF
25950#define NEED_GTK_ICON_SIZE_LOOKUP 1
25951_ACEOF
25952
25953 echo "$as_me:$LINENO: result: yes" >&5
25954echo "${ECHO_T}yes" >&6
25955
25956fi
25957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25958
9755e73b
VS
25959 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
25960echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
25961 cat >conftest.$ac_ext <<_ACEOF
25962/* confdefs.h. */
25963_ACEOF
25964cat confdefs.h >>conftest.$ac_ext
25965cat >>conftest.$ac_ext <<_ACEOF
25966/* end confdefs.h. */
25967
25968 #include <gtk/gtk.h>
25969
25970int
25971main ()
25972{
25973
25974 #if !GTK_CHECK_VERSION(2,4,0)
25975 #error "Not GTK+ 2.4"
25976 #endif
25977
25978 ;
25979 return 0;
25980}
25981_ACEOF
25982rm -f conftest.$ac_objext
25983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25984 (eval $ac_compile) 2>conftest.er1
25985 ac_status=$?
25986 grep -v '^ *+' conftest.er1 >conftest.err
25987 rm -f conftest.er1
25988 cat conftest.err >&5
25989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25990 (exit $ac_status); } &&
fb00f58d
JS
25991 { ac_try='test -z "$ac_c_werror_flag"
25992 || test ! -s conftest.err'
9755e73b
VS
25993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25994 (eval $ac_try) 2>&5
25995 ac_status=$?
25996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25997 (exit $ac_status); }; } &&
25998 { ac_try='test -s conftest.$ac_objext'
25999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26000 (eval $ac_try) 2>&5
26001 ac_status=$?
26002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26003 (exit $ac_status); }; }; then
26004
26005 cat >>confdefs.h <<\_ACEOF
26006#define __WXGTK24__ 1
26007_ACEOF
26008
26009 echo "$as_me:$LINENO: result: yes" >&5
26010echo "${ECHO_T}yes" >&6
26011
26012else
26013 echo "$as_me: failed program was:" >&5
26014sed 's/^/| /' conftest.$ac_ext >&5
26015
26016
26017 echo "$as_me:$LINENO: result: no" >&5
26018echo "${ECHO_T}no" >&6
26019
26020fi
26021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26022
304205f1
VS
26023 CFLAGS="$save_CFLAGS"
26024 LIBS="$save_LIBS"
a848cd7e
SC
26025 else
26026 if test "$wxUSE_UNICODE" = "yes"; then
26027 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
26028echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
26029 wxUSE_UNICODE=no
26030 fi
26031 fi
26032
26033 if test "$USE_DARWIN" != 1; then
26034
26035for ac_func in poll
26036do
26037as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26038echo "$as_me:$LINENO: checking for $ac_func" >&5
26039echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26040if eval "test \"\${$as_ac_var+set}\" = set"; then
26041 echo $ECHO_N "(cached) $ECHO_C" >&6
26042else
26043 cat >conftest.$ac_ext <<_ACEOF
26044/* confdefs.h. */
26045_ACEOF
26046cat confdefs.h >>conftest.$ac_ext
26047cat >>conftest.$ac_ext <<_ACEOF
26048/* end confdefs.h. */
ac1cb8d3
VS
26049/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26051#define $ac_func innocuous_$ac_func
26052
a848cd7e
SC
26053/* System header to define __stub macros and hopefully few prototypes,
26054 which can conflict with char $ac_func (); below.
26055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26056 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26057
a848cd7e
SC
26058#ifdef __STDC__
26059# include <limits.h>
26060#else
26061# include <assert.h>
26062#endif
ac1cb8d3
VS
26063
26064#undef $ac_func
26065
a848cd7e
SC
26066/* Override any gcc2 internal prototype to avoid an error. */
26067#ifdef __cplusplus
26068extern "C"
26069{
26070#endif
26071/* We use char because int might match the return type of a gcc2
26072 builtin and then its argument prototype would still apply. */
26073char $ac_func ();
26074/* The GNU C library defines this for functions which it implements
26075 to always fail with ENOSYS. Some functions are actually named
26076 something starting with __ and the normal name is an alias. */
26077#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26078choke me
26079#else
26080char (*f) () = $ac_func;
26081#endif
26082#ifdef __cplusplus
26083}
26084#endif
26085
26086int
26087main ()
26088{
26089return f != $ac_func;
26090 ;
26091 return 0;
26092}
26093_ACEOF
26094rm -f conftest.$ac_objext conftest$ac_exeext
26095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26096 (eval $ac_link) 2>conftest.er1
a848cd7e 26097 ac_status=$?
ac1cb8d3
VS
26098 grep -v '^ *+' conftest.er1 >conftest.err
26099 rm -f conftest.er1
26100 cat conftest.err >&5
a848cd7e
SC
26101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102 (exit $ac_status); } &&
fb00f58d
JS
26103 { ac_try='test -z "$ac_c_werror_flag"
26104 || test ! -s conftest.err'
ac1cb8d3
VS
26105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26106 (eval $ac_try) 2>&5
26107 ac_status=$?
26108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26109 (exit $ac_status); }; } &&
26110 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26112 (eval $ac_try) 2>&5
26113 ac_status=$?
26114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26115 (exit $ac_status); }; }; then
26116 eval "$as_ac_var=yes"
26117else
26118 echo "$as_me: failed program was:" >&5
26119sed 's/^/| /' conftest.$ac_ext >&5
26120
26121eval "$as_ac_var=no"
26122fi
ac1cb8d3
VS
26123rm -f conftest.err conftest.$ac_objext \
26124 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26125fi
26126echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26127echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26128if test `eval echo '${'$as_ac_var'}'` = yes; then
26129 cat >>confdefs.h <<_ACEOF
26130#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26131_ACEOF
26132
26133fi
26134done
26135
26136 fi
26137
26138 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
26139 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
26140
26141 AFMINSTALL=afminstall
26142 TOOLKIT=GTK
26143 GUIDIST=GTK_DIST
26144
26145 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
26146echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
26147if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
26148 echo $ECHO_N "(cached) $ECHO_C" >&6
26149else
26150 ac_check_lib_save_LIBS=$LIBS
26151LIBS="-lgdk $LIBS"
26152cat >conftest.$ac_ext <<_ACEOF
26153/* confdefs.h. */
26154_ACEOF
26155cat confdefs.h >>conftest.$ac_ext
26156cat >>conftest.$ac_ext <<_ACEOF
26157/* end confdefs.h. */
26158
26159/* Override any gcc2 internal prototype to avoid an error. */
26160#ifdef __cplusplus
26161extern "C"
26162#endif
26163/* We use char because int might match the return type of a gcc2
26164 builtin and then its argument prototype would still apply. */
26165char gdk_im_open ();
26166int
26167main ()
26168{
26169gdk_im_open ();
26170 ;
26171 return 0;
26172}
26173_ACEOF
26174rm -f conftest.$ac_objext conftest$ac_exeext
26175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26176 (eval $ac_link) 2>conftest.er1
a848cd7e 26177 ac_status=$?
ac1cb8d3
VS
26178 grep -v '^ *+' conftest.er1 >conftest.err
26179 rm -f conftest.er1
26180 cat conftest.err >&5
a848cd7e
SC
26181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26182 (exit $ac_status); } &&
fb00f58d
JS
26183 { ac_try='test -z "$ac_c_werror_flag"
26184 || test ! -s conftest.err'
ac1cb8d3
VS
26185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26186 (eval $ac_try) 2>&5
26187 ac_status=$?
26188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26189 (exit $ac_status); }; } &&
26190 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26192 (eval $ac_try) 2>&5
26193 ac_status=$?
26194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26195 (exit $ac_status); }; }; then
26196 ac_cv_lib_gdk_gdk_im_open=yes
26197else
26198 echo "$as_me: failed program was:" >&5
26199sed 's/^/| /' conftest.$ac_ext >&5
26200
26201ac_cv_lib_gdk_gdk_im_open=no
26202fi
ac1cb8d3
VS
26203rm -f conftest.err conftest.$ac_objext \
26204 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26205LIBS=$ac_check_lib_save_LIBS
26206fi
26207echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
26208echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
26209if test $ac_cv_lib_gdk_gdk_im_open = yes; then
26210 cat >>confdefs.h <<\_ACEOF
26211#define HAVE_XIM 1
26212_ACEOF
26213
26214fi
26215
26216
26217
26218 if test "$wxUSE_GPE" = "yes"; then
26219 echo "$as_me:$LINENO: checking for gpewidget library" >&5
26220echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
26221
26222ac_find_libraries=
26223for ac_dir in $SEARCH_LIB /usr/lib;
26224 do
26225 for ac_extension in a so sl dylib; do
26226 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
26227 ac_find_libraries=$ac_dir
26228 break 2
26229 fi
26230 done
26231 done
26232
26233 if test "$ac_find_libraries" != "" ; then
26234
26235 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26236 result=$?
26237 if test $result = 0; then
26238 ac_path_to_link=""
26239 else
26240 ac_path_to_link=" -L$ac_find_libraries"
26241 fi
26242
26243 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
26244 WXGPE=1
26245 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26246echo "${ECHO_T}found at $ac_find_libraries" >&6
26247 else
26248 echo "$as_me:$LINENO: result: not found" >&5
26249echo "${ECHO_T}not found" >&6
26250 fi
26251
26252 fi
26253 fi
26254
26255 if test "$wxUSE_MGL" = 1; then
26256 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
26257echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
26258 if test "x$MGL_ROOT" = x ; then
26259 echo "$as_me:$LINENO: result: not found" >&5
26260echo "${ECHO_T}not found" >&6
26261 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
26262echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
26263 { (exit 1); exit 1; }; }
26264 else
26265 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
26266echo "${ECHO_T}$MGL_ROOT" >&6
26267 fi
26268
26269 echo "$as_me:$LINENO: checking for libmgl location" >&5
26270echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
26271 case "${host}" in
26272 *-*-linux* )
26273 if test "x$wxUSE_SHARED" = xyes ; then
26274 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
26275 else
26276 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
26277 fi
26278 ;;
26279 *-pc-msdosdjgpp )
26280 mgl_os_candidates="dos32/dj2"
26281 ;;
26282 *)
26283 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
26284echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
26285 { (exit 1); exit 1; }; }
26286 esac
26287
26288 mgl_lib_type=""
26289 mgl_os=""
26290
26291 for mgl_os_i in $mgl_os_candidates ; do
26292 if test "x$mgl_os" = x ; then
26293 if test "$wxUSE_DEBUG_FLAG" = yes ; then
26294 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
26295 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
26296 mgl_lib_type=debug
26297 mgl_os=$mgl_os_i
26298 fi
26299 fi
26300 if test "x$mgl_lib_type" = x ; then
26301 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
26302 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
26303 mgl_lib_type=release
26304 mgl_os=$mgl_os_i
26305 fi
26306 fi
26307 fi
26308 done
26309
26310 if test "x$mgl_os" = x ; then
26311 echo "$as_me:$LINENO: result: not found" >&5
26312echo "${ECHO_T}not found" >&6
26313 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
26314echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
26315 { (exit 1); exit 1; }; }
26316 fi
26317 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
26318echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
26319
26320 wxUSE_UNIVERSAL="yes"
26321
26322 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
26323 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
26324
26325 AFMINSTALL=afminstall
26326 TOOLKIT=MGL
26327 GUIDIST=MGL_DIST
26328 fi
26329
26330 if test "$wxUSE_MICROWIN" = 1; then
26331 echo "$as_me:$LINENO: checking for MicroWindows" >&5
26332echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
26333 if test "x$MICROWINDOWS" = x ; then
26334 echo "$as_me:$LINENO: result: not found" >&5
26335echo "${ECHO_T}not found" >&6
26336 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
26337echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
26338 { (exit 1); exit 1; }; }
26339 else
26340 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
26341echo "${ECHO_T}$MICROWINDOWS" >&6
26342 fi
26343
26344 if test -f $MICROWINDOWS/lib/libmwin.a; then
26345 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
26346echo "${ECHO_T}MicroWindows' libraries found." >&6
26347 else
26348 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
26349echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
26350 { (exit 1); exit 1; }; }
26351 fi
26352
26353 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
26354 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
26355
26356 wxUSE_UNIVERSAL="yes"
26357
26358 AFMINSTALL=afminstall
26359 TOOLKIT=MICROWIN
26360 GUIDIST=MICROWIN_DIST
26361
26362 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
26363 fi
26364
74b84332 26365 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
fb00f58d 26366 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
26367echo $ECHO_N "checking for X... $ECHO_C" >&6
26368
26369
26370# Check whether --with-x or --without-x was given.
26371if test "${with_x+set}" = set; then
26372 withval="$with_x"
26373
26374fi;
26375# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26376if test "x$with_x" = xno; then
26377 # The user explicitly disabled X.
26378 have_x=disabled
26379else
26380 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
26381 # Both variables are already set.
26382 have_x=yes
26383 else
26384 if test "${ac_cv_have_x+set}" = set; then
26385 echo $ECHO_N "(cached) $ECHO_C" >&6
26386else
26387 # One or both of the vars are not set, and there is no cached value.
26388ac_x_includes=no ac_x_libraries=no
26389rm -fr conftest.dir
26390if mkdir conftest.dir; then
26391 cd conftest.dir
26392 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
26393 cat >Imakefile <<'_ACEOF'
26394acfindx:
26395 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
26396_ACEOF
26397 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
26398 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
26399 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
26400 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26401 for ac_extension in a so sl; do
26402 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
26403 test -f $ac_im_libdir/libX11.$ac_extension; then
26404 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
26405 fi
26406 done
26407 # Screen out bogus values from the imake configuration. They are
26408 # bogus both because they are the default anyway, and because
26409 # using them would break gcc on systems where it needs fixed includes.
26410 case $ac_im_incroot in
26411 /usr/include) ;;
26412 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26413 esac
26414 case $ac_im_usrlibdir in
26415 /usr/lib | /lib) ;;
26416 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26417 esac
26418 fi
26419 cd ..
26420 rm -fr conftest.dir
26421fi
26422
26423# Standard set of common directories for X headers.
26424# Check X11 before X11Rn because it is often a symlink to the current release.
26425ac_x_header_dirs='
26426/usr/X11/include
26427/usr/X11R6/include
26428/usr/X11R5/include
26429/usr/X11R4/include
26430
26431/usr/include/X11
26432/usr/include/X11R6
26433/usr/include/X11R5
26434/usr/include/X11R4
26435
26436/usr/local/X11/include
26437/usr/local/X11R6/include
26438/usr/local/X11R5/include
26439/usr/local/X11R4/include
26440
26441/usr/local/include/X11
26442/usr/local/include/X11R6
26443/usr/local/include/X11R5
26444/usr/local/include/X11R4
26445
26446/usr/X386/include
26447/usr/x386/include
26448/usr/XFree86/include/X11
26449
26450/usr/include
26451/usr/local/include
26452/usr/unsupported/include
26453/usr/athena/include
26454/usr/local/x11r5/include
26455/usr/lpp/Xamples/include
26456
26457/usr/openwin/include
26458/usr/openwin/share/include'
26459
26460if test "$ac_x_includes" = no; then
fb00f58d 26461 # Guess where to find include files, by looking for Intrinsic.h.
a848cd7e
SC
26462 # First, try using that file with no special directory specified.
26463 cat >conftest.$ac_ext <<_ACEOF
26464/* confdefs.h. */
26465_ACEOF
26466cat confdefs.h >>conftest.$ac_ext
26467cat >>conftest.$ac_ext <<_ACEOF
26468/* end confdefs.h. */
26469#include <X11/Intrinsic.h>
26470_ACEOF
26471if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26473 ac_status=$?
26474 grep -v '^ *+' conftest.er1 >conftest.err
26475 rm -f conftest.er1
26476 cat conftest.err >&5
26477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478 (exit $ac_status); } >/dev/null; then
26479 if test -s conftest.err; then
26480 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26482 else
26483 ac_cpp_err=
26484 fi
26485else
26486 ac_cpp_err=yes
26487fi
26488if test -z "$ac_cpp_err"; then
26489 # We can compile using X headers with no special include directory.
26490ac_x_includes=
26491else
26492 echo "$as_me: failed program was:" >&5
26493sed 's/^/| /' conftest.$ac_ext >&5
26494
26495 for ac_dir in $ac_x_header_dirs; do
26496 if test -r "$ac_dir/X11/Intrinsic.h"; then
26497 ac_x_includes=$ac_dir
26498 break
26499 fi
26500done
26501fi
26502rm -f conftest.err conftest.$ac_ext
26503fi # $ac_x_includes = no
26504
26505if test "$ac_x_libraries" = no; then
26506 # Check for the libraries.
26507 # See if we find them without any special options.
26508 # Don't add to $LIBS permanently.
26509 ac_save_LIBS=$LIBS
26510 LIBS="-lXt $LIBS"
26511 cat >conftest.$ac_ext <<_ACEOF
26512/* confdefs.h. */
26513_ACEOF
26514cat confdefs.h >>conftest.$ac_ext
26515cat >>conftest.$ac_ext <<_ACEOF
26516/* end confdefs.h. */
26517#include <X11/Intrinsic.h>
26518int
26519main ()
26520{
26521XtMalloc (0)
26522 ;
26523 return 0;
26524}
26525_ACEOF
26526rm -f conftest.$ac_objext conftest$ac_exeext
26527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26528 (eval $ac_link) 2>conftest.er1
a848cd7e 26529 ac_status=$?
ac1cb8d3
VS
26530 grep -v '^ *+' conftest.er1 >conftest.err
26531 rm -f conftest.er1
26532 cat conftest.err >&5
a848cd7e
SC
26533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26534 (exit $ac_status); } &&
fb00f58d
JS
26535 { ac_try='test -z "$ac_c_werror_flag"
26536 || test ! -s conftest.err'
ac1cb8d3
VS
26537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26538 (eval $ac_try) 2>&5
26539 ac_status=$?
26540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26541 (exit $ac_status); }; } &&
26542 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26544 (eval $ac_try) 2>&5
26545 ac_status=$?
26546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26547 (exit $ac_status); }; }; then
26548 LIBS=$ac_save_LIBS
26549# We can link X programs with no special library path.
26550ac_x_libraries=
26551else
26552 echo "$as_me: failed program was:" >&5
26553sed 's/^/| /' conftest.$ac_ext >&5
26554
26555LIBS=$ac_save_LIBS
26556for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26557do
26558 # Don't even attempt the hair of trying to link an X program!
26559 for ac_extension in a so sl; do
26560 if test -r $ac_dir/libXt.$ac_extension; then
26561 ac_x_libraries=$ac_dir
26562 break 2
26563 fi
26564 done
26565done
26566fi
ac1cb8d3
VS
26567rm -f conftest.err conftest.$ac_objext \
26568 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26569fi # $ac_x_libraries = no
26570
26571if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
26572 # Didn't find X anywhere. Cache the known absence of X.
26573 ac_cv_have_x="have_x=no"
26574else
26575 # Record where we found X for the cache.
26576 ac_cv_have_x="have_x=yes \
ac1cb8d3 26577 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
26578fi
26579fi
26580
26581 fi
26582 eval "$ac_cv_have_x"
26583fi # $with_x != no
26584
26585if test "$have_x" != yes; then
26586 echo "$as_me:$LINENO: result: $have_x" >&5
26587echo "${ECHO_T}$have_x" >&6
26588 no_x=yes
26589else
26590 # If each of the values was on the command line, it overrides each guess.
26591 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26592 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26593 # Update the cache value to reflect the command line values.
26594 ac_cv_have_x="have_x=yes \
26595 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
fb00f58d
JS
26596 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
26597echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
a848cd7e
SC
26598fi
26599
26600if test "$no_x" = yes; then
26601 # Not all programs may use this symbol, but it does not hurt to define it.
26602
26603cat >>confdefs.h <<\_ACEOF
26604#define X_DISPLAY_MISSING 1
26605_ACEOF
26606
26607 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26608else
26609 if test -n "$x_includes"; then
26610 X_CFLAGS="$X_CFLAGS -I$x_includes"
26611 fi
26612
26613 # It would also be nice to do this for all -L options, not just this one.
26614 if test -n "$x_libraries"; then
26615 X_LIBS="$X_LIBS -L$x_libraries"
26616 # For Solaris; some versions of Sun CC require a space after -R and
26617 # others require no space. Words are not sufficient . . . .
26618 case `(uname -sr) 2>/dev/null` in
26619 "SunOS 5"*)
26620 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
26621echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
26622 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26623 cat >conftest.$ac_ext <<_ACEOF
26624/* confdefs.h. */
26625_ACEOF
26626cat confdefs.h >>conftest.$ac_ext
26627cat >>conftest.$ac_ext <<_ACEOF
26628/* end confdefs.h. */
26629
26630int
26631main ()
26632{
26633
26634 ;
26635 return 0;
26636}
26637_ACEOF
26638rm -f conftest.$ac_objext conftest$ac_exeext
26639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26640 (eval $ac_link) 2>conftest.er1
a848cd7e 26641 ac_status=$?
ac1cb8d3
VS
26642 grep -v '^ *+' conftest.er1 >conftest.err
26643 rm -f conftest.er1
26644 cat conftest.err >&5
a848cd7e
SC
26645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26646 (exit $ac_status); } &&
fb00f58d
JS
26647 { ac_try='test -z "$ac_c_werror_flag"
26648 || test ! -s conftest.err'
ac1cb8d3
VS
26649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26650 (eval $ac_try) 2>&5
26651 ac_status=$?
26652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26653 (exit $ac_status); }; } &&
26654 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26656 (eval $ac_try) 2>&5
26657 ac_status=$?
26658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26659 (exit $ac_status); }; }; then
26660 ac_R_nospace=yes
26661else
26662 echo "$as_me: failed program was:" >&5
26663sed 's/^/| /' conftest.$ac_ext >&5
26664
26665ac_R_nospace=no
26666fi
ac1cb8d3
VS
26667rm -f conftest.err conftest.$ac_objext \
26668 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26669 if test $ac_R_nospace = yes; then
26670 echo "$as_me:$LINENO: result: no" >&5
26671echo "${ECHO_T}no" >&6
26672 X_LIBS="$X_LIBS -R$x_libraries"
26673 else
26674 LIBS="$ac_xsave_LIBS -R $x_libraries"
26675 cat >conftest.$ac_ext <<_ACEOF
26676/* confdefs.h. */
26677_ACEOF
26678cat confdefs.h >>conftest.$ac_ext
26679cat >>conftest.$ac_ext <<_ACEOF
26680/* end confdefs.h. */
26681
26682int
26683main ()
26684{
26685
26686 ;
26687 return 0;
26688}
26689_ACEOF
26690rm -f conftest.$ac_objext conftest$ac_exeext
26691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26692 (eval $ac_link) 2>conftest.er1
a848cd7e 26693 ac_status=$?
ac1cb8d3
VS
26694 grep -v '^ *+' conftest.er1 >conftest.err
26695 rm -f conftest.er1
26696 cat conftest.err >&5
a848cd7e
SC
26697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26698 (exit $ac_status); } &&
fb00f58d
JS
26699 { ac_try='test -z "$ac_c_werror_flag"
26700 || test ! -s conftest.err'
ac1cb8d3
VS
26701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26702 (eval $ac_try) 2>&5
26703 ac_status=$?
26704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26705 (exit $ac_status); }; } &&
26706 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26708 (eval $ac_try) 2>&5
26709 ac_status=$?
26710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26711 (exit $ac_status); }; }; then
26712 ac_R_space=yes
26713else
26714 echo "$as_me: failed program was:" >&5
26715sed 's/^/| /' conftest.$ac_ext >&5
26716
26717ac_R_space=no
26718fi
ac1cb8d3
VS
26719rm -f conftest.err conftest.$ac_objext \
26720 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26721 if test $ac_R_space = yes; then
26722 echo "$as_me:$LINENO: result: yes" >&5
26723echo "${ECHO_T}yes" >&6
26724 X_LIBS="$X_LIBS -R $x_libraries"
26725 else
26726 echo "$as_me:$LINENO: result: neither works" >&5
26727echo "${ECHO_T}neither works" >&6
26728 fi
26729 fi
26730 LIBS=$ac_xsave_LIBS
26731 esac
26732 fi
26733
26734 # Check for system-dependent libraries X programs must link with.
26735 # Do this before checking for the system-independent R6 libraries
26736 # (-lICE), since we may need -lsocket or whatever for X linking.
26737
26738 if test "$ISC" = yes; then
26739 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26740 else
26741 # Martyn Johnson says this is needed for Ultrix, if the X
26742 # libraries were built with DECnet support. And Karl Berry says
26743 # the Alpha needs dnet_stub (dnet does not exist).
26744 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
26745 cat >conftest.$ac_ext <<_ACEOF
26746/* confdefs.h. */
26747_ACEOF
26748cat confdefs.h >>conftest.$ac_ext
26749cat >>conftest.$ac_ext <<_ACEOF
26750/* end confdefs.h. */
26751
26752/* Override any gcc2 internal prototype to avoid an error. */
26753#ifdef __cplusplus
26754extern "C"
26755#endif
26756/* We use char because int might match the return type of a gcc2
26757 builtin and then its argument prototype would still apply. */
26758char XOpenDisplay ();
26759int
26760main ()
26761{
26762XOpenDisplay ();
26763 ;
26764 return 0;
26765}
26766_ACEOF
26767rm -f conftest.$ac_objext conftest$ac_exeext
26768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26769 (eval $ac_link) 2>conftest.er1
a848cd7e 26770 ac_status=$?
ac1cb8d3
VS
26771 grep -v '^ *+' conftest.er1 >conftest.err
26772 rm -f conftest.er1
26773 cat conftest.err >&5
a848cd7e
SC
26774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26775 (exit $ac_status); } &&
fb00f58d
JS
26776 { ac_try='test -z "$ac_c_werror_flag"
26777 || test ! -s conftest.err'
ac1cb8d3
VS
26778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26779 (eval $ac_try) 2>&5
26780 ac_status=$?
26781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26782 (exit $ac_status); }; } &&
26783 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26785 (eval $ac_try) 2>&5
26786 ac_status=$?
26787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26788 (exit $ac_status); }; }; then
26789 :
26790else
26791 echo "$as_me: failed program was:" >&5
26792sed 's/^/| /' conftest.$ac_ext >&5
26793
26794echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
26795echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
26796if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
26797 echo $ECHO_N "(cached) $ECHO_C" >&6
26798else
26799 ac_check_lib_save_LIBS=$LIBS
26800LIBS="-ldnet $LIBS"
26801cat >conftest.$ac_ext <<_ACEOF
26802/* confdefs.h. */
26803_ACEOF
26804cat confdefs.h >>conftest.$ac_ext
26805cat >>conftest.$ac_ext <<_ACEOF
26806/* end confdefs.h. */
26807
26808/* Override any gcc2 internal prototype to avoid an error. */
26809#ifdef __cplusplus
26810extern "C"
26811#endif
26812/* We use char because int might match the return type of a gcc2
26813 builtin and then its argument prototype would still apply. */
26814char dnet_ntoa ();
26815int
26816main ()
26817{
26818dnet_ntoa ();
26819 ;
26820 return 0;
26821}
26822_ACEOF
26823rm -f conftest.$ac_objext conftest$ac_exeext
26824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26825 (eval $ac_link) 2>conftest.er1
a848cd7e 26826 ac_status=$?
ac1cb8d3
VS
26827 grep -v '^ *+' conftest.er1 >conftest.err
26828 rm -f conftest.er1
26829 cat conftest.err >&5
a848cd7e
SC
26830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26831 (exit $ac_status); } &&
fb00f58d
JS
26832 { ac_try='test -z "$ac_c_werror_flag"
26833 || test ! -s conftest.err'
ac1cb8d3
VS
26834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26835 (eval $ac_try) 2>&5
26836 ac_status=$?
26837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26838 (exit $ac_status); }; } &&
26839 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
26845 ac_cv_lib_dnet_dnet_ntoa=yes
26846else
26847 echo "$as_me: failed program was:" >&5
26848sed 's/^/| /' conftest.$ac_ext >&5
26849
26850ac_cv_lib_dnet_dnet_ntoa=no
26851fi
ac1cb8d3
VS
26852rm -f conftest.err conftest.$ac_objext \
26853 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26854LIBS=$ac_check_lib_save_LIBS
26855fi
26856echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26857echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
26858if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
26859 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26860fi
26861
26862 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26863 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
26864echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
26865if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
26866 echo $ECHO_N "(cached) $ECHO_C" >&6
26867else
26868 ac_check_lib_save_LIBS=$LIBS
26869LIBS="-ldnet_stub $LIBS"
26870cat >conftest.$ac_ext <<_ACEOF
26871/* confdefs.h. */
26872_ACEOF
26873cat confdefs.h >>conftest.$ac_ext
26874cat >>conftest.$ac_ext <<_ACEOF
26875/* end confdefs.h. */
26876
26877/* Override any gcc2 internal prototype to avoid an error. */
26878#ifdef __cplusplus
26879extern "C"
26880#endif
26881/* We use char because int might match the return type of a gcc2
26882 builtin and then its argument prototype would still apply. */
26883char dnet_ntoa ();
26884int
26885main ()
26886{
26887dnet_ntoa ();
26888 ;
26889 return 0;
26890}
26891_ACEOF
26892rm -f conftest.$ac_objext conftest$ac_exeext
26893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26894 (eval $ac_link) 2>conftest.er1
a848cd7e 26895 ac_status=$?
ac1cb8d3
VS
26896 grep -v '^ *+' conftest.er1 >conftest.err
26897 rm -f conftest.er1
26898 cat conftest.err >&5
a848cd7e
SC
26899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26900 (exit $ac_status); } &&
fb00f58d
JS
26901 { ac_try='test -z "$ac_c_werror_flag"
26902 || test ! -s conftest.err'
ac1cb8d3
VS
26903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26904 (eval $ac_try) 2>&5
26905 ac_status=$?
26906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26907 (exit $ac_status); }; } &&
26908 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26910 (eval $ac_try) 2>&5
26911 ac_status=$?
26912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913 (exit $ac_status); }; }; then
26914 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26915else
26916 echo "$as_me: failed program was:" >&5
26917sed 's/^/| /' conftest.$ac_ext >&5
26918
26919ac_cv_lib_dnet_stub_dnet_ntoa=no
26920fi
ac1cb8d3
VS
26921rm -f conftest.err conftest.$ac_objext \
26922 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26923LIBS=$ac_check_lib_save_LIBS
26924fi
26925echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26926echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
26927if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
26928 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26929fi
26930
26931 fi
26932fi
ac1cb8d3
VS
26933rm -f conftest.err conftest.$ac_objext \
26934 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26935 LIBS="$ac_xsave_LIBS"
26936
26937 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26938 # to get the SysV transport functions.
26939 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26940 # needs -lnsl.
26941 # The nsl library prevents programs from opening the X display
26942 # on Irix 5.2, according to T.E. Dickey.
26943 # The functions gethostbyname, getservbyname, and inet_addr are
26944 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26945 echo "$as_me:$LINENO: checking for gethostbyname" >&5
26946echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
26947if test "${ac_cv_func_gethostbyname+set}" = set; then
26948 echo $ECHO_N "(cached) $ECHO_C" >&6
26949else
26950 cat >conftest.$ac_ext <<_ACEOF
26951/* confdefs.h. */
26952_ACEOF
26953cat confdefs.h >>conftest.$ac_ext
26954cat >>conftest.$ac_ext <<_ACEOF
26955/* end confdefs.h. */
ac1cb8d3
VS
26956/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
26957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26958#define gethostbyname innocuous_gethostbyname
26959
a848cd7e
SC
26960/* System header to define __stub macros and hopefully few prototypes,
26961 which can conflict with char gethostbyname (); below.
26962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26963 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 26964
a848cd7e
SC
26965#ifdef __STDC__
26966# include <limits.h>
26967#else
26968# include <assert.h>
26969#endif
ac1cb8d3
VS
26970
26971#undef gethostbyname
26972
a848cd7e
SC
26973/* Override any gcc2 internal prototype to avoid an error. */
26974#ifdef __cplusplus
26975extern "C"
26976{
26977#endif
26978/* We use char because int might match the return type of a gcc2
26979 builtin and then its argument prototype would still apply. */
26980char gethostbyname ();
26981/* The GNU C library defines this for functions which it implements
26982 to always fail with ENOSYS. Some functions are actually named
26983 something starting with __ and the normal name is an alias. */
26984#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
26985choke me
26986#else
26987char (*f) () = gethostbyname;
26988#endif
26989#ifdef __cplusplus
26990}
26991#endif
26992
26993int
26994main ()
26995{
26996return f != gethostbyname;
26997 ;
26998 return 0;
26999}
27000_ACEOF
27001rm -f conftest.$ac_objext conftest$ac_exeext
27002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27003 (eval $ac_link) 2>conftest.er1
a848cd7e 27004 ac_status=$?
ac1cb8d3
VS
27005 grep -v '^ *+' conftest.er1 >conftest.err
27006 rm -f conftest.er1
27007 cat conftest.err >&5
a848cd7e
SC
27008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27009 (exit $ac_status); } &&
fb00f58d
JS
27010 { ac_try='test -z "$ac_c_werror_flag"
27011 || test ! -s conftest.err'
ac1cb8d3
VS
27012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27013 (eval $ac_try) 2>&5
27014 ac_status=$?
27015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27016 (exit $ac_status); }; } &&
27017 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27019 (eval $ac_try) 2>&5
27020 ac_status=$?
27021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27022 (exit $ac_status); }; }; then
27023 ac_cv_func_gethostbyname=yes
27024else
27025 echo "$as_me: failed program was:" >&5
27026sed 's/^/| /' conftest.$ac_ext >&5
27027
27028ac_cv_func_gethostbyname=no
27029fi
ac1cb8d3
VS
27030rm -f conftest.err conftest.$ac_objext \
27031 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27032fi
27033echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
27034echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
27035
27036 if test $ac_cv_func_gethostbyname = no; then
27037 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
27038echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
27039if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
27040 echo $ECHO_N "(cached) $ECHO_C" >&6
27041else
27042 ac_check_lib_save_LIBS=$LIBS
27043LIBS="-lnsl $LIBS"
27044cat >conftest.$ac_ext <<_ACEOF
27045/* confdefs.h. */
27046_ACEOF
27047cat confdefs.h >>conftest.$ac_ext
27048cat >>conftest.$ac_ext <<_ACEOF
27049/* end confdefs.h. */
27050
27051/* Override any gcc2 internal prototype to avoid an error. */
27052#ifdef __cplusplus
27053extern "C"
27054#endif
27055/* We use char because int might match the return type of a gcc2
27056 builtin and then its argument prototype would still apply. */
27057char gethostbyname ();
27058int
27059main ()
27060{
27061gethostbyname ();
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
VS
27068 (eval $ac_link) 2>conftest.er1
27069 ac_status=$?
27070 grep -v '^ *+' conftest.er1 >conftest.err
27071 rm -f conftest.er1
27072 cat conftest.err >&5
27073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27074 (exit $ac_status); } &&
fb00f58d
JS
27075 { ac_try='test -z "$ac_c_werror_flag"
27076 || test ! -s conftest.err'
ac1cb8d3
VS
27077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27078 (eval $ac_try) 2>&5
27079 ac_status=$?
27080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27081 (exit $ac_status); }; } &&
27082 { ac_try='test -s conftest$ac_exeext'
27083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27084 (eval $ac_try) 2>&5
27085 ac_status=$?
27086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27087 (exit $ac_status); }; }; then
27088 ac_cv_lib_nsl_gethostbyname=yes
27089else
27090 echo "$as_me: failed program was:" >&5
27091sed 's/^/| /' conftest.$ac_ext >&5
27092
27093ac_cv_lib_nsl_gethostbyname=no
27094fi
27095rm -f conftest.err conftest.$ac_objext \
27096 conftest$ac_exeext conftest.$ac_ext
27097LIBS=$ac_check_lib_save_LIBS
27098fi
27099echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
27100echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
27101if test $ac_cv_lib_nsl_gethostbyname = yes; then
27102 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27103fi
27104
27105 if test $ac_cv_lib_nsl_gethostbyname = no; then
27106 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
27107echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
27108if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
27109 echo $ECHO_N "(cached) $ECHO_C" >&6
27110else
27111 ac_check_lib_save_LIBS=$LIBS
27112LIBS="-lbsd $LIBS"
27113cat >conftest.$ac_ext <<_ACEOF
27114/* confdefs.h. */
27115_ACEOF
27116cat confdefs.h >>conftest.$ac_ext
27117cat >>conftest.$ac_ext <<_ACEOF
27118/* end confdefs.h. */
27119
27120/* Override any gcc2 internal prototype to avoid an error. */
27121#ifdef __cplusplus
27122extern "C"
27123#endif
27124/* We use char because int might match the return type of a gcc2
27125 builtin and then its argument prototype would still apply. */
27126char gethostbyname ();
27127int
27128main ()
27129{
27130gethostbyname ();
27131 ;
27132 return 0;
27133}
27134_ACEOF
27135rm -f conftest.$ac_objext conftest$ac_exeext
27136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27137 (eval $ac_link) 2>conftest.er1
a848cd7e 27138 ac_status=$?
ac1cb8d3
VS
27139 grep -v '^ *+' conftest.er1 >conftest.err
27140 rm -f conftest.er1
27141 cat conftest.err >&5
a848cd7e
SC
27142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27143 (exit $ac_status); } &&
fb00f58d
JS
27144 { ac_try='test -z "$ac_c_werror_flag"
27145 || test ! -s conftest.err'
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
ac1cb8d3
VS
27150 (exit $ac_status); }; } &&
27151 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27153 (eval $ac_try) 2>&5
27154 ac_status=$?
27155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27156 (exit $ac_status); }; }; then
27157 ac_cv_lib_bsd_gethostbyname=yes
27158else
27159 echo "$as_me: failed program was:" >&5
27160sed 's/^/| /' conftest.$ac_ext >&5
27161
27162ac_cv_lib_bsd_gethostbyname=no
27163fi
ac1cb8d3
VS
27164rm -f conftest.err conftest.$ac_objext \
27165 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27166LIBS=$ac_check_lib_save_LIBS
27167fi
27168echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
27169echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
27170if test $ac_cv_lib_bsd_gethostbyname = yes; then
27171 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27172fi
27173
27174 fi
27175 fi
27176
27177 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27178 # socket/setsockopt and other routines are undefined under SCO ODT
27179 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27180 # on later versions), says Simon Leinen: it contains gethostby*
27181 # variants that don't use the name server (or something). -lsocket
27182 # must be given before -lnsl if both are needed. We assume that
27183 # if connect needs -lnsl, so does gethostbyname.
27184 echo "$as_me:$LINENO: checking for connect" >&5
27185echo $ECHO_N "checking for connect... $ECHO_C" >&6
27186if test "${ac_cv_func_connect+set}" = set; then
27187 echo $ECHO_N "(cached) $ECHO_C" >&6
27188else
27189 cat >conftest.$ac_ext <<_ACEOF
27190/* confdefs.h. */
27191_ACEOF
27192cat confdefs.h >>conftest.$ac_ext
27193cat >>conftest.$ac_ext <<_ACEOF
27194/* end confdefs.h. */
ac1cb8d3
VS
27195/* Define connect to an innocuous variant, in case <limits.h> declares connect.
27196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27197#define connect innocuous_connect
27198
a848cd7e
SC
27199/* System header to define __stub macros and hopefully few prototypes,
27200 which can conflict with char connect (); below.
27201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27202 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27203
a848cd7e
SC
27204#ifdef __STDC__
27205# include <limits.h>
27206#else
27207# include <assert.h>
27208#endif
ac1cb8d3
VS
27209
27210#undef connect
27211
a848cd7e
SC
27212/* Override any gcc2 internal prototype to avoid an error. */
27213#ifdef __cplusplus
27214extern "C"
27215{
27216#endif
27217/* We use char because int might match the return type of a gcc2
27218 builtin and then its argument prototype would still apply. */
27219char connect ();
27220/* The GNU C library defines this for functions which it implements
27221 to always fail with ENOSYS. Some functions are actually named
27222 something starting with __ and the normal name is an alias. */
27223#if defined (__stub_connect) || defined (__stub___connect)
27224choke me
27225#else
27226char (*f) () = connect;
27227#endif
27228#ifdef __cplusplus
27229}
27230#endif
27231
27232int
27233main ()
27234{
27235return f != connect;
27236 ;
27237 return 0;
27238}
27239_ACEOF
27240rm -f conftest.$ac_objext conftest$ac_exeext
27241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27242 (eval $ac_link) 2>conftest.er1
a848cd7e 27243 ac_status=$?
ac1cb8d3
VS
27244 grep -v '^ *+' conftest.er1 >conftest.err
27245 rm -f conftest.er1
27246 cat conftest.err >&5
a848cd7e
SC
27247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27248 (exit $ac_status); } &&
fb00f58d
JS
27249 { ac_try='test -z "$ac_c_werror_flag"
27250 || test ! -s conftest.err'
ac1cb8d3
VS
27251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27252 (eval $ac_try) 2>&5
27253 ac_status=$?
27254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27255 (exit $ac_status); }; } &&
27256 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27258 (eval $ac_try) 2>&5
27259 ac_status=$?
27260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27261 (exit $ac_status); }; }; then
27262 ac_cv_func_connect=yes
27263else
27264 echo "$as_me: failed program was:" >&5
27265sed 's/^/| /' conftest.$ac_ext >&5
27266
27267ac_cv_func_connect=no
27268fi
ac1cb8d3
VS
27269rm -f conftest.err conftest.$ac_objext \
27270 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27271fi
27272echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
27273echo "${ECHO_T}$ac_cv_func_connect" >&6
27274
27275 if test $ac_cv_func_connect = no; then
27276 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
27277echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
27278if test "${ac_cv_lib_socket_connect+set}" = set; then
27279 echo $ECHO_N "(cached) $ECHO_C" >&6
27280else
27281 ac_check_lib_save_LIBS=$LIBS
27282LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
27283cat >conftest.$ac_ext <<_ACEOF
27284/* confdefs.h. */
27285_ACEOF
27286cat confdefs.h >>conftest.$ac_ext
27287cat >>conftest.$ac_ext <<_ACEOF
27288/* end confdefs.h. */
27289
27290/* Override any gcc2 internal prototype to avoid an error. */
27291#ifdef __cplusplus
27292extern "C"
27293#endif
27294/* We use char because int might match the return type of a gcc2
27295 builtin and then its argument prototype would still apply. */
27296char connect ();
27297int
27298main ()
27299{
27300connect ();
27301 ;
27302 return 0;
27303}
27304_ACEOF
27305rm -f conftest.$ac_objext conftest$ac_exeext
27306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27307 (eval $ac_link) 2>conftest.er1
a848cd7e 27308 ac_status=$?
ac1cb8d3
VS
27309 grep -v '^ *+' conftest.er1 >conftest.err
27310 rm -f conftest.er1
27311 cat conftest.err >&5
a848cd7e
SC
27312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27313 (exit $ac_status); } &&
fb00f58d
JS
27314 { ac_try='test -z "$ac_c_werror_flag"
27315 || test ! -s conftest.err'
ac1cb8d3
VS
27316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27317 (eval $ac_try) 2>&5
27318 ac_status=$?
27319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27320 (exit $ac_status); }; } &&
27321 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27323 (eval $ac_try) 2>&5
27324 ac_status=$?
27325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27326 (exit $ac_status); }; }; then
27327 ac_cv_lib_socket_connect=yes
27328else
27329 echo "$as_me: failed program was:" >&5
27330sed 's/^/| /' conftest.$ac_ext >&5
27331
27332ac_cv_lib_socket_connect=no
27333fi
ac1cb8d3
VS
27334rm -f conftest.err conftest.$ac_objext \
27335 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27336LIBS=$ac_check_lib_save_LIBS
27337fi
27338echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
27339echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
27340if test $ac_cv_lib_socket_connect = yes; then
27341 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27342fi
27343
27344 fi
27345
27346 # Guillermo Gomez says -lposix is necessary on A/UX.
27347 echo "$as_me:$LINENO: checking for remove" >&5
27348echo $ECHO_N "checking for remove... $ECHO_C" >&6
27349if test "${ac_cv_func_remove+set}" = set; then
27350 echo $ECHO_N "(cached) $ECHO_C" >&6
27351else
27352 cat >conftest.$ac_ext <<_ACEOF
27353/* confdefs.h. */
27354_ACEOF
27355cat confdefs.h >>conftest.$ac_ext
27356cat >>conftest.$ac_ext <<_ACEOF
27357/* end confdefs.h. */
ac1cb8d3
VS
27358/* Define remove to an innocuous variant, in case <limits.h> declares remove.
27359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27360#define remove innocuous_remove
27361
a848cd7e
SC
27362/* System header to define __stub macros and hopefully few prototypes,
27363 which can conflict with char remove (); below.
27364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27365 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27366
a848cd7e
SC
27367#ifdef __STDC__
27368# include <limits.h>
27369#else
27370# include <assert.h>
27371#endif
ac1cb8d3
VS
27372
27373#undef remove
27374
a848cd7e
SC
27375/* Override any gcc2 internal prototype to avoid an error. */
27376#ifdef __cplusplus
27377extern "C"
27378{
27379#endif
27380/* We use char because int might match the return type of a gcc2
27381 builtin and then its argument prototype would still apply. */
27382char remove ();
27383/* The GNU C library defines this for functions which it implements
27384 to always fail with ENOSYS. Some functions are actually named
27385 something starting with __ and the normal name is an alias. */
27386#if defined (__stub_remove) || defined (__stub___remove)
27387choke me
27388#else
27389char (*f) () = remove;
27390#endif
27391#ifdef __cplusplus
27392}
27393#endif
27394
27395int
27396main ()
27397{
27398return f != remove;
27399 ;
27400 return 0;
27401}
27402_ACEOF
27403rm -f conftest.$ac_objext conftest$ac_exeext
27404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27405 (eval $ac_link) 2>conftest.er1
a848cd7e 27406 ac_status=$?
ac1cb8d3
VS
27407 grep -v '^ *+' conftest.er1 >conftest.err
27408 rm -f conftest.er1
27409 cat conftest.err >&5
a848cd7e
SC
27410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27411 (exit $ac_status); } &&
fb00f58d
JS
27412 { ac_try='test -z "$ac_c_werror_flag"
27413 || test ! -s conftest.err'
ac1cb8d3
VS
27414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27415 (eval $ac_try) 2>&5
27416 ac_status=$?
27417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27418 (exit $ac_status); }; } &&
27419 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27421 (eval $ac_try) 2>&5
27422 ac_status=$?
27423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27424 (exit $ac_status); }; }; then
27425 ac_cv_func_remove=yes
27426else
27427 echo "$as_me: failed program was:" >&5
27428sed 's/^/| /' conftest.$ac_ext >&5
27429
27430ac_cv_func_remove=no
27431fi
ac1cb8d3
VS
27432rm -f conftest.err conftest.$ac_objext \
27433 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27434fi
27435echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
27436echo "${ECHO_T}$ac_cv_func_remove" >&6
27437
27438 if test $ac_cv_func_remove = no; then
27439 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
27440echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
27441if test "${ac_cv_lib_posix_remove+set}" = set; then
27442 echo $ECHO_N "(cached) $ECHO_C" >&6
27443else
27444 ac_check_lib_save_LIBS=$LIBS
27445LIBS="-lposix $LIBS"
27446cat >conftest.$ac_ext <<_ACEOF
27447/* confdefs.h. */
27448_ACEOF
27449cat confdefs.h >>conftest.$ac_ext
27450cat >>conftest.$ac_ext <<_ACEOF
27451/* end confdefs.h. */
27452
27453/* Override any gcc2 internal prototype to avoid an error. */
27454#ifdef __cplusplus
27455extern "C"
27456#endif
27457/* We use char because int might match the return type of a gcc2
27458 builtin and then its argument prototype would still apply. */
27459char remove ();
27460int
27461main ()
27462{
27463remove ();
27464 ;
27465 return 0;
27466}
27467_ACEOF
27468rm -f conftest.$ac_objext conftest$ac_exeext
27469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27470 (eval $ac_link) 2>conftest.er1
a848cd7e 27471 ac_status=$?
ac1cb8d3
VS
27472 grep -v '^ *+' conftest.er1 >conftest.err
27473 rm -f conftest.er1
27474 cat conftest.err >&5
a848cd7e
SC
27475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27476 (exit $ac_status); } &&
fb00f58d
JS
27477 { ac_try='test -z "$ac_c_werror_flag"
27478 || test ! -s conftest.err'
ac1cb8d3
VS
27479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27480 (eval $ac_try) 2>&5
27481 ac_status=$?
27482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27483 (exit $ac_status); }; } &&
27484 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27486 (eval $ac_try) 2>&5
27487 ac_status=$?
27488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27489 (exit $ac_status); }; }; then
27490 ac_cv_lib_posix_remove=yes
27491else
27492 echo "$as_me: failed program was:" >&5
27493sed 's/^/| /' conftest.$ac_ext >&5
27494
27495ac_cv_lib_posix_remove=no
27496fi
ac1cb8d3
VS
27497rm -f conftest.err conftest.$ac_objext \
27498 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27499LIBS=$ac_check_lib_save_LIBS
27500fi
27501echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
27502echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
27503if test $ac_cv_lib_posix_remove = yes; then
27504 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27505fi
27506
27507 fi
27508
27509 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
27510 echo "$as_me:$LINENO: checking for shmat" >&5
27511echo $ECHO_N "checking for shmat... $ECHO_C" >&6
27512if test "${ac_cv_func_shmat+set}" = set; then
27513 echo $ECHO_N "(cached) $ECHO_C" >&6
27514else
27515 cat >conftest.$ac_ext <<_ACEOF
27516/* confdefs.h. */
27517_ACEOF
27518cat confdefs.h >>conftest.$ac_ext
27519cat >>conftest.$ac_ext <<_ACEOF
27520/* end confdefs.h. */
ac1cb8d3
VS
27521/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
27522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27523#define shmat innocuous_shmat
27524
a848cd7e
SC
27525/* System header to define __stub macros and hopefully few prototypes,
27526 which can conflict with char shmat (); below.
27527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27528 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27529
a848cd7e
SC
27530#ifdef __STDC__
27531# include <limits.h>
27532#else
27533# include <assert.h>
27534#endif
ac1cb8d3
VS
27535
27536#undef shmat
27537
a848cd7e
SC
27538/* Override any gcc2 internal prototype to avoid an error. */
27539#ifdef __cplusplus
27540extern "C"
27541{
27542#endif
27543/* We use char because int might match the return type of a gcc2
27544 builtin and then its argument prototype would still apply. */
27545char shmat ();
27546/* The GNU C library defines this for functions which it implements
27547 to always fail with ENOSYS. Some functions are actually named
27548 something starting with __ and the normal name is an alias. */
27549#if defined (__stub_shmat) || defined (__stub___shmat)
27550choke me
27551#else
27552char (*f) () = shmat;
27553#endif
27554#ifdef __cplusplus
27555}
27556#endif
27557
27558int
27559main ()
27560{
27561return f != shmat;
27562 ;
27563 return 0;
27564}
27565_ACEOF
27566rm -f conftest.$ac_objext conftest$ac_exeext
27567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27568 (eval $ac_link) 2>conftest.er1
a848cd7e 27569 ac_status=$?
ac1cb8d3
VS
27570 grep -v '^ *+' conftest.er1 >conftest.err
27571 rm -f conftest.er1
27572 cat conftest.err >&5
a848cd7e
SC
27573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27574 (exit $ac_status); } &&
fb00f58d
JS
27575 { ac_try='test -z "$ac_c_werror_flag"
27576 || test ! -s conftest.err'
ac1cb8d3
VS
27577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27578 (eval $ac_try) 2>&5
27579 ac_status=$?
27580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581 (exit $ac_status); }; } &&
27582 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27584 (eval $ac_try) 2>&5
27585 ac_status=$?
27586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27587 (exit $ac_status); }; }; then
27588 ac_cv_func_shmat=yes
27589else
27590 echo "$as_me: failed program was:" >&5
27591sed 's/^/| /' conftest.$ac_ext >&5
27592
27593ac_cv_func_shmat=no
27594fi
ac1cb8d3
VS
27595rm -f conftest.err conftest.$ac_objext \
27596 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27597fi
27598echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
27599echo "${ECHO_T}$ac_cv_func_shmat" >&6
27600
27601 if test $ac_cv_func_shmat = no; then
27602 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
27603echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
27604if test "${ac_cv_lib_ipc_shmat+set}" = set; then
27605 echo $ECHO_N "(cached) $ECHO_C" >&6
27606else
27607 ac_check_lib_save_LIBS=$LIBS
27608LIBS="-lipc $LIBS"
27609cat >conftest.$ac_ext <<_ACEOF
27610/* confdefs.h. */
27611_ACEOF
27612cat confdefs.h >>conftest.$ac_ext
27613cat >>conftest.$ac_ext <<_ACEOF
27614/* end confdefs.h. */
27615
27616/* Override any gcc2 internal prototype to avoid an error. */
27617#ifdef __cplusplus
27618extern "C"
27619#endif
27620/* We use char because int might match the return type of a gcc2
27621 builtin and then its argument prototype would still apply. */
27622char shmat ();
27623int
27624main ()
27625{
27626shmat ();
27627 ;
27628 return 0;
27629}
27630_ACEOF
27631rm -f conftest.$ac_objext conftest$ac_exeext
27632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27633 (eval $ac_link) 2>conftest.er1
a848cd7e 27634 ac_status=$?
ac1cb8d3
VS
27635 grep -v '^ *+' conftest.er1 >conftest.err
27636 rm -f conftest.er1
27637 cat conftest.err >&5
a848cd7e
SC
27638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27639 (exit $ac_status); } &&
fb00f58d
JS
27640 { ac_try='test -z "$ac_c_werror_flag"
27641 || test ! -s conftest.err'
ac1cb8d3
VS
27642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27643 (eval $ac_try) 2>&5
27644 ac_status=$?
27645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27646 (exit $ac_status); }; } &&
27647 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27649 (eval $ac_try) 2>&5
27650 ac_status=$?
27651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27652 (exit $ac_status); }; }; then
27653 ac_cv_lib_ipc_shmat=yes
27654else
27655 echo "$as_me: failed program was:" >&5
27656sed 's/^/| /' conftest.$ac_ext >&5
27657
27658ac_cv_lib_ipc_shmat=no
27659fi
ac1cb8d3
VS
27660rm -f conftest.err conftest.$ac_objext \
27661 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27662LIBS=$ac_check_lib_save_LIBS
27663fi
27664echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
27665echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
27666if test $ac_cv_lib_ipc_shmat = yes; then
27667 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27668fi
27669
27670 fi
27671 fi
27672
27673 # Check for libraries that X11R6 Xt/Xaw programs need.
27674 ac_save_LDFLAGS=$LDFLAGS
27675 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27676 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27677 # check for ICE first), but we must link in the order -lSM -lICE or
27678 # we get undefined symbols. So assume we have SM if we have ICE.
27679 # These have to be linked with before -lX11, unlike the other
27680 # libraries we check for below, so use a different variable.
27681 # John Interrante, Karl Berry
27682 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
27683echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
27684if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
27685 echo $ECHO_N "(cached) $ECHO_C" >&6
27686else
27687 ac_check_lib_save_LIBS=$LIBS
27688LIBS="-lICE $X_EXTRA_LIBS $LIBS"
27689cat >conftest.$ac_ext <<_ACEOF
27690/* confdefs.h. */
27691_ACEOF
27692cat confdefs.h >>conftest.$ac_ext
27693cat >>conftest.$ac_ext <<_ACEOF
27694/* end confdefs.h. */
27695
27696/* Override any gcc2 internal prototype to avoid an error. */
27697#ifdef __cplusplus
27698extern "C"
27699#endif
27700/* We use char because int might match the return type of a gcc2
27701 builtin and then its argument prototype would still apply. */
27702char IceConnectionNumber ();
27703int
27704main ()
27705{
27706IceConnectionNumber ();
27707 ;
27708 return 0;
27709}
27710_ACEOF
27711rm -f conftest.$ac_objext conftest$ac_exeext
27712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27713 (eval $ac_link) 2>conftest.er1
a848cd7e 27714 ac_status=$?
ac1cb8d3
VS
27715 grep -v '^ *+' conftest.er1 >conftest.err
27716 rm -f conftest.er1
27717 cat conftest.err >&5
a848cd7e
SC
27718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27719 (exit $ac_status); } &&
fb00f58d
JS
27720 { ac_try='test -z "$ac_c_werror_flag"
27721 || test ! -s conftest.err'
ac1cb8d3
VS
27722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27723 (eval $ac_try) 2>&5
27724 ac_status=$?
27725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27726 (exit $ac_status); }; } &&
27727 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27729 (eval $ac_try) 2>&5
27730 ac_status=$?
27731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27732 (exit $ac_status); }; }; then
27733 ac_cv_lib_ICE_IceConnectionNumber=yes
27734else
27735 echo "$as_me: failed program was:" >&5
27736sed 's/^/| /' conftest.$ac_ext >&5
27737
27738ac_cv_lib_ICE_IceConnectionNumber=no
27739fi
ac1cb8d3
VS
27740rm -f conftest.err conftest.$ac_objext \
27741 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27742LIBS=$ac_check_lib_save_LIBS
27743fi
27744echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
27745echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
27746if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
27747 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27748fi
27749
27750 LDFLAGS=$ac_save_LDFLAGS
27751
27752fi
27753
27754
27755 if test "$no_x" = "yes"; then
27756 { { echo "$as_me:$LINENO: error: X11 not found" >&5
27757echo "$as_me: error: X11 not found" >&2;}
27758 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
27759 fi
27760
74b84332
VS
27761 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
27762 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
27763 AFMINSTALL=afminstall
27764 COMPILED_X_PROGRAM=0
27765
74b84332
VS
27766 fi
27767
27768 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
27769 if test "$wxUSE_NANOX" = "yes"; then
27770 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
27771echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
27772 if test "x$MICROWIN" = x ; then
27773 echo "$as_me:$LINENO: result: not found" >&5
27774echo "${ECHO_T}not found" >&6
27775 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
27776echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
27777 { (exit 1); exit 1; }; }
27778 else
27779 echo "$as_me:$LINENO: result: $MICROWIN" >&5
27780echo "${ECHO_T}$MICROWIN" >&6
27781 cat >>confdefs.h <<\_ACEOF
27782#define wxUSE_NANOX 1
27783_ACEOF
27784
27785 fi
27786 fi
27787
27788 if test "$wxUSE_UNICODE" = "yes"; then
27789
27790 succeeded=no
27791
27792 if test -z "$PKG_CONFIG"; then
27793 # Extract the first word of "pkg-config", so it can be a program name with args.
27794set dummy pkg-config; ac_word=$2
27795echo "$as_me:$LINENO: checking for $ac_word" >&5
27796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27797if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27798 echo $ECHO_N "(cached) $ECHO_C" >&6
27799else
27800 case $PKG_CONFIG in
27801 [\\/]* | ?:[\\/]*)
27802 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27803 ;;
27804 *)
27805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27806for as_dir in $PATH
27807do
27808 IFS=$as_save_IFS
27809 test -z "$as_dir" && as_dir=.
27810 for ac_exec_ext in '' $ac_executable_extensions; do
27811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27812 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27814 break 2
27815 fi
27816done
27817done
27818
27819 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27820 ;;
27821esac
27822fi
27823PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27824
27825if test -n "$PKG_CONFIG"; then
27826 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27827echo "${ECHO_T}$PKG_CONFIG" >&6
27828else
27829 echo "$as_me:$LINENO: result: no" >&5
27830echo "${ECHO_T}no" >&6
27831fi
27832
27833 fi
27834
27835 if test "$PKG_CONFIG" = "no" ; then
27836 echo "*** The pkg-config script could not be found. Make sure it is"
27837 echo "*** in your path, or set the PKG_CONFIG environment variable"
27838 echo "*** to the full path to pkg-config."
27839 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27840 else
27841 PKG_CONFIG_MIN_VERSION=0.9.0
27842 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27843 echo "$as_me:$LINENO: checking for pangox" >&5
27844echo $ECHO_N "checking for pangox... $ECHO_C" >&6
27845
27846 if $PKG_CONFIG --exists "pangox" ; then
27847 echo "$as_me:$LINENO: result: yes" >&5
27848echo "${ECHO_T}yes" >&6
27849 succeeded=yes
27850
27851 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
27852echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
27853 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
27854 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
27855echo "${ECHO_T}$PANGOX_CFLAGS" >&6
27856
27857 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
27858echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
27859 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
27860 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
27861echo "${ECHO_T}$PANGOX_LIBS" >&6
27862 else
27863 PANGOX_CFLAGS=""
27864 PANGOX_LIBS=""
27865 ## If we have a custom action on failure, don't print errors, but
27866 ## do set a variable so people can do so.
27867 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
27868
27869 fi
27870
27871
27872
27873 else
27874 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27875 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27876 fi
27877 fi
27878
27879 if test $succeeded = yes; then
27880
27881 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
27882 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
27883
27884 else
27885
27886 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
27887echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
27888 { (exit 1); exit 1; }; }
27889
27890
27891 fi
27892
27893
27894 succeeded=no
27895
27896 if test -z "$PKG_CONFIG"; then
27897 # Extract the first word of "pkg-config", so it can be a program name with args.
27898set dummy pkg-config; ac_word=$2
27899echo "$as_me:$LINENO: checking for $ac_word" >&5
27900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27901if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27902 echo $ECHO_N "(cached) $ECHO_C" >&6
27903else
27904 case $PKG_CONFIG in
27905 [\\/]* | ?:[\\/]*)
27906 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27907 ;;
27908 *)
27909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27910for as_dir in $PATH
27911do
27912 IFS=$as_save_IFS
27913 test -z "$as_dir" && as_dir=.
27914 for ac_exec_ext in '' $ac_executable_extensions; do
27915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27916 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27918 break 2
27919 fi
27920done
27921done
27922
27923 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27924 ;;
27925esac
27926fi
27927PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27928
27929if test -n "$PKG_CONFIG"; then
27930 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27931echo "${ECHO_T}$PKG_CONFIG" >&6
27932else
27933 echo "$as_me:$LINENO: result: no" >&5
27934echo "${ECHO_T}no" >&6
27935fi
27936
27937 fi
27938
27939 if test "$PKG_CONFIG" = "no" ; then
27940 echo "*** The pkg-config script could not be found. Make sure it is"
27941 echo "*** in your path, or set the PKG_CONFIG environment variable"
27942 echo "*** to the full path to pkg-config."
27943 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27944 else
27945 PKG_CONFIG_MIN_VERSION=0.9.0
27946 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27947 echo "$as_me:$LINENO: checking for pangoft2" >&5
27948echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
27949
27950 if $PKG_CONFIG --exists "pangoft2" ; then
27951 echo "$as_me:$LINENO: result: yes" >&5
27952echo "${ECHO_T}yes" >&6
27953 succeeded=yes
27954
27955 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
27956echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
27957 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
27958 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
27959echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
27960
27961 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
27962echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
27963 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
27964 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
27965echo "${ECHO_T}$PANGOFT2_LIBS" >&6
27966 else
27967 PANGOFT2_CFLAGS=""
27968 PANGOFT2_LIBS=""
27969 ## If we have a custom action on failure, don't print errors, but
27970 ## do set a variable so people can do so.
27971 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
27972
27973 fi
27974
27975
27976
27977 else
27978 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27979 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27980 fi
27981 fi
27982
27983 if test $succeeded = yes; then
27984
27985 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
27986 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
27987
27988 else
27989
27990 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
27991echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
27992 wxUSE_PRINTING_ARCHITECTURE="no"
27993
27994
27995 fi
27996
27997
27998 succeeded=no
27999
28000 if test -z "$PKG_CONFIG"; then
28001 # Extract the first word of "pkg-config", so it can be a program name with args.
28002set dummy pkg-config; ac_word=$2
28003echo "$as_me:$LINENO: checking for $ac_word" >&5
28004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28005if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28006 echo $ECHO_N "(cached) $ECHO_C" >&6
28007else
28008 case $PKG_CONFIG in
28009 [\\/]* | ?:[\\/]*)
28010 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28011 ;;
28012 *)
28013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28014for as_dir in $PATH
28015do
28016 IFS=$as_save_IFS
28017 test -z "$as_dir" && as_dir=.
28018 for ac_exec_ext in '' $ac_executable_extensions; do
28019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28020 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28022 break 2
28023 fi
28024done
28025done
28026
28027 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28028 ;;
28029esac
28030fi
28031PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28032
28033if test -n "$PKG_CONFIG"; then
28034 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28035echo "${ECHO_T}$PKG_CONFIG" >&6
28036else
28037 echo "$as_me:$LINENO: result: no" >&5
28038echo "${ECHO_T}no" >&6
28039fi
28040
28041 fi
28042
28043 if test "$PKG_CONFIG" = "no" ; then
28044 echo "*** The pkg-config script could not be found. Make sure it is"
28045 echo "*** in your path, or set the PKG_CONFIG environment variable"
28046 echo "*** to the full path to pkg-config."
28047 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28048 else
28049 PKG_CONFIG_MIN_VERSION=0.9.0
28050 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28051 echo "$as_me:$LINENO: checking for pangoxft" >&5
28052echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
28053
28054 if $PKG_CONFIG --exists "pangoxft" ; then
28055 echo "$as_me:$LINENO: result: yes" >&5
28056echo "${ECHO_T}yes" >&6
28057 succeeded=yes
28058
28059 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
28060echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
28061 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
28062 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
28063echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
28064
28065 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
28066echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
28067 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
28068 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
28069echo "${ECHO_T}$PANGOXFT_LIBS" >&6
28070 else
28071 PANGOXFT_CFLAGS=""
28072 PANGOXFT_LIBS=""
28073 ## If we have a custom action on failure, don't print errors, but
28074 ## do set a variable so people can do so.
28075 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
28076
28077 fi
28078
28079
28080
28081 else
28082 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28083 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28084 fi
28085 fi
28086
28087 if test $succeeded = yes; then
28088
4ae1af05
MB
28089 cat >>confdefs.h <<\_ACEOF
28090#define HAVE_PANGO_XFT 1
28091_ACEOF
28092
a848cd7e
SC
28093 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
28094 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
28095
28096 else
28097
28098 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
28099echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
28100
28101
28102 fi
28103
304205f1
VS
28104 save_CFLAGS="$CFLAGS"
28105 save_LIBS="$LIBS"
28106 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
28107 LIBS="$LIBS $PANGOX_LIBS"
28108
28109for ac_func in pango_font_family_is_monospace
28110do
28111as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28112echo "$as_me:$LINENO: checking for $ac_func" >&5
28113echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28114if eval "test \"\${$as_ac_var+set}\" = set"; then
28115 echo $ECHO_N "(cached) $ECHO_C" >&6
28116else
28117 cat >conftest.$ac_ext <<_ACEOF
28118/* confdefs.h. */
28119_ACEOF
28120cat confdefs.h >>conftest.$ac_ext
28121cat >>conftest.$ac_ext <<_ACEOF
28122/* end confdefs.h. */
28123/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28125#define $ac_func innocuous_$ac_func
28126
28127/* System header to define __stub macros and hopefully few prototypes,
28128 which can conflict with char $ac_func (); below.
28129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28130 <limits.h> exists even on freestanding compilers. */
28131
28132#ifdef __STDC__
28133# include <limits.h>
28134#else
28135# include <assert.h>
28136#endif
28137
28138#undef $ac_func
28139
28140/* Override any gcc2 internal prototype to avoid an error. */
28141#ifdef __cplusplus
28142extern "C"
28143{
28144#endif
28145/* We use char because int might match the return type of a gcc2
28146 builtin and then its argument prototype would still apply. */
28147char $ac_func ();
28148/* The GNU C library defines this for functions which it implements
28149 to always fail with ENOSYS. Some functions are actually named
28150 something starting with __ and the normal name is an alias. */
28151#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28152choke me
28153#else
28154char (*f) () = $ac_func;
28155#endif
28156#ifdef __cplusplus
28157}
28158#endif
28159
28160int
28161main ()
28162{
28163return f != $ac_func;
28164 ;
28165 return 0;
28166}
28167_ACEOF
28168rm -f conftest.$ac_objext conftest$ac_exeext
28169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28170 (eval $ac_link) 2>conftest.er1
28171 ac_status=$?
28172 grep -v '^ *+' conftest.er1 >conftest.err
28173 rm -f conftest.er1
28174 cat conftest.err >&5
28175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28176 (exit $ac_status); } &&
fb00f58d
JS
28177 { ac_try='test -z "$ac_c_werror_flag"
28178 || test ! -s conftest.err'
304205f1
VS
28179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28180 (eval $ac_try) 2>&5
28181 ac_status=$?
28182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183 (exit $ac_status); }; } &&
28184 { ac_try='test -s conftest$ac_exeext'
28185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28186 (eval $ac_try) 2>&5
28187 ac_status=$?
28188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28189 (exit $ac_status); }; }; then
28190 eval "$as_ac_var=yes"
28191else
28192 echo "$as_me: failed program was:" >&5
28193sed 's/^/| /' conftest.$ac_ext >&5
28194
28195eval "$as_ac_var=no"
28196fi
28197rm -f conftest.err conftest.$ac_objext \
28198 conftest$ac_exeext conftest.$ac_ext
28199fi
28200echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28201echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28202if test `eval echo '${'$as_ac_var'}'` = yes; then
28203 cat >>confdefs.h <<_ACEOF
28204#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28205_ACEOF
28206
28207fi
28208done
28209
28210 CFLAGS="$save_CFLAGS"
28211 LIBS="$save_LIBS"
a848cd7e
SC
28212 fi
28213
28214 wxUSE_UNIVERSAL="yes"
28215
28216 if test "$wxUSE_NANOX" = "yes"; then
28217 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
28218 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"
28219 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
28220 else
28221 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
28222 fi
28223
a848cd7e
SC
28224 TOOLKIT=X11
28225 GUIDIST=X11_DIST
28226 fi
28227
28228 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
28229 if test "$wxUSE_UNICODE" = "yes"; then
28230 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
28231echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
28232 { (exit 1); exit 1; }; }
28233 fi
28234
74b84332
VS
28235 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
28236echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 28237
74b84332
VS
28238ac_find_includes=
28239for ac_dir in $SEARCH_INCLUDE /usr/include;
28240 do
28241 if test -f "$ac_dir/Xm/Xm.h"; then
28242 ac_find_includes=$ac_dir
28243 break
28244 fi
28245 done
a848cd7e 28246
74b84332
VS
28247 if test "$ac_find_includes" != "" ; then
28248 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
28249echo "${ECHO_T}found in $ac_find_includes" >&6
28250
28251 if test "x$ac_find_includes" = "x/usr/include"; then
28252 ac_path_to_include=""
28253 else
28254 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
28255 result=$?
28256 if test $result = 0; then
28257 ac_path_to_include=""
28258 else
28259 ac_path_to_include=" -I$ac_find_includes"
28260 fi
a848cd7e
SC
28261 fi
28262
74b84332
VS
28263 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
28264 else
28265 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28266/* confdefs.h. */
28267_ACEOF
28268cat confdefs.h >>conftest.$ac_ext
28269cat >>conftest.$ac_ext <<_ACEOF
28270/* end confdefs.h. */
28271
74b84332
VS
28272 #include <Xm/Xm.h>
28273
a848cd7e
SC
28274int
28275main ()
28276{
28277
74b84332
VS
28278 int version;
28279 version = xmUseVersion;
28280
a848cd7e
SC
28281 ;
28282 return 0;
28283}
28284_ACEOF
74b84332
VS
28285rm -f conftest.$ac_objext
28286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28287 (eval $ac_compile) 2>conftest.er1
a848cd7e 28288 ac_status=$?
ac1cb8d3
VS
28289 grep -v '^ *+' conftest.er1 >conftest.err
28290 rm -f conftest.er1
28291 cat conftest.err >&5
a848cd7e
SC
28292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28293 (exit $ac_status); } &&
fb00f58d
JS
28294 { ac_try='test -z "$ac_c_werror_flag"
28295 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
74b84332 28301 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28303 (eval $ac_try) 2>&5
28304 ac_status=$?
28305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28306 (exit $ac_status); }; }; then
74b84332
VS
28307
28308 echo "$as_me:$LINENO: result: found in default search path" >&5
28309echo "${ECHO_T}found in default search path" >&6
28310 COMPILED_X_PROGRAM=1
28311
a848cd7e
SC
28312else
28313 echo "$as_me: failed program was:" >&5
28314sed 's/^/| /' conftest.$ac_ext >&5
28315
a848cd7e 28316
74b84332
VS
28317 echo "$as_me:$LINENO: result: no" >&5
28318echo "${ECHO_T}no" >&6
28319 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
28320echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
28321 { (exit 1); exit 1; }; }
a848cd7e 28322
a848cd7e 28323
a848cd7e 28324fi
74b84332
VS
28325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28326 fi
28327
28328 if test "$COMPILED_X_PROGRAM" = 0; then
28329 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
28330echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
28331
28332ac_find_libraries=
28333for ac_dir in $SEARCH_LIB /usr/lib;
28334 do
28335 for ac_extension in a so sl dylib; do
28336 if test -f "$ac_dir/libXm.$ac_extension"; then
28337 ac_find_libraries=$ac_dir
28338 break 2
a848cd7e 28339 fi
74b84332
VS
28340 done
28341 done
a848cd7e 28342
74b84332
VS
28343 if test "$ac_find_libraries" != "" ; then
28344 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
28345echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 28346
74b84332
VS
28347
28348 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28349 result=$?
28350 if test $result = 0; then
28351 ac_path_to_link=""
a848cd7e 28352 else
74b84332
VS
28353 ac_path_to_link=" -L$ac_find_libraries"
28354 fi
28355
28356 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
28357 else
28358 save_CFLAGS=$CFLAGS
28359 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28360
28361 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28362/* confdefs.h. */
28363_ACEOF
28364cat confdefs.h >>conftest.$ac_ext
28365cat >>conftest.$ac_ext <<_ACEOF
28366/* end confdefs.h. */
28367
74b84332
VS
28368 #include <Xm/Xm.h>
28369
a848cd7e
SC
28370int
28371main ()
28372{
74b84332
VS
28373
28374 int version;
28375 version = xmUseVersion;
28376
a848cd7e
SC
28377 ;
28378 return 0;
28379}
28380_ACEOF
74b84332
VS
28381rm -f conftest.$ac_objext
28382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28383 (eval $ac_compile) 2>conftest.er1
a848cd7e 28384 ac_status=$?
ac1cb8d3
VS
28385 grep -v '^ *+' conftest.er1 >conftest.err
28386 rm -f conftest.er1
28387 cat conftest.err >&5
a848cd7e
SC
28388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28389 (exit $ac_status); } &&
fb00f58d
JS
28390 { ac_try='test -z "$ac_c_werror_flag"
28391 || test ! -s conftest.err'
ac1cb8d3
VS
28392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28393 (eval $ac_try) 2>&5
28394 ac_status=$?
28395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28396 (exit $ac_status); }; } &&
74b84332 28397 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28399 (eval $ac_try) 2>&5
28400 ac_status=$?
28401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28402 (exit $ac_status); }; }; then
74b84332
VS
28403
28404 echo "$as_me:$LINENO: result: found in default search path" >&5
28405echo "${ECHO_T}found in default search path" >&6
28406 COMPILED_X_PROGRAM=1
28407
a848cd7e
SC
28408else
28409 echo "$as_me: failed program was:" >&5
28410sed 's/^/| /' conftest.$ac_ext >&5
28411
74b84332
VS
28412
28413 echo "$as_me:$LINENO: result: no" >&5
28414echo "${ECHO_T}no" >&6
28415 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
28416echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
28417 { (exit 1); exit 1; }; }
28418
28419
28420fi
28421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28422
28423 CFLAGS=$save_CFLAGS
28424 fi
28425 fi
28426
28427 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
28428echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
28429 libp_link=""
28430 libsm_ice_link=""
28431 libs_found=0
28432 for libp in "" " -lXp"; do
28433 if test "$libs_found" = "0"; then
28434 for libsm_ice in "" " -lSM -lICE"; do
28435 if test "$libs_found" = "0"; then
28436 save_LIBS="$LIBS"
28437 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
28438 save_CFLAGS=$CFLAGS
28439 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28440
28441 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
28442/* confdefs.h. */
28443_ACEOF
28444cat confdefs.h >>conftest.$ac_ext
28445cat >>conftest.$ac_ext <<_ACEOF
28446/* end confdefs.h. */
28447
74b84332
VS
28448 #include <Xm/Xm.h>
28449 #include <Xm/List.h>
28450
a848cd7e
SC
28451int
28452main ()
28453{
74b84332
VS
28454
28455 XmString string = NULL;
28456 Widget w = NULL;
28457 int position = 0;
28458 XmListAddItem(w, string, position);
28459
a848cd7e
SC
28460 ;
28461 return 0;
28462}
28463_ACEOF
28464rm -f conftest.$ac_objext conftest$ac_exeext
28465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28466 (eval $ac_link) 2>conftest.er1
a848cd7e 28467 ac_status=$?
ac1cb8d3
VS
28468 grep -v '^ *+' conftest.er1 >conftest.err
28469 rm -f conftest.er1
28470 cat conftest.err >&5
a848cd7e
SC
28471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28472 (exit $ac_status); } &&
fb00f58d
JS
28473 { ac_try='test -z "$ac_c_werror_flag"
28474 || test ! -s conftest.err'
ac1cb8d3
VS
28475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28476 (eval $ac_try) 2>&5
28477 ac_status=$?
28478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28479 (exit $ac_status); }; } &&
28480 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28482 (eval $ac_try) 2>&5
28483 ac_status=$?
28484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28485 (exit $ac_status); }; }; then
28486
28487 libp_link="$libp"
28488 libsm_ice_link="$libsm_ice"
28489 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
28490echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
28491 libs_found=1
28492
28493else
28494 echo "$as_me: failed program was:" >&5
28495sed 's/^/| /' conftest.$ac_ext >&5
28496
28497
28498
28499fi
ac1cb8d3
VS
28500rm -f conftest.err conftest.$ac_objext \
28501 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28502
28503 LIBS="$save_LIBS"
28504 CFLAGS=$save_CFLAGS
28505 fi
28506 done
28507 fi
28508 done
28509
28510 if test "$libs_found" = "0"; then
28511 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
28512echo "${ECHO_T}can't find the right libraries" >&6
28513 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
28514echo "$as_me: error: can't link a simple motif program" >&2;}
28515 { (exit 1); exit 1; }; }
28516 fi
28517
28518 save_CFLAGS=$CFLAGS
28519 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28520 echo "$as_me:$LINENO: checking for Motif 2" >&5
28521echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
28522 cat >conftest.$ac_ext <<_ACEOF
28523/* confdefs.h. */
28524_ACEOF
28525cat confdefs.h >>conftest.$ac_ext
28526cat >>conftest.$ac_ext <<_ACEOF
28527/* end confdefs.h. */
28528
28529 #include <Xm/Xm.h>
28530
28531int
28532main ()
28533{
28534
28535 #if XmVersion < 2000
28536 #error "Not Motif 2"
28537 #endif
28538
28539 ;
28540 return 0;
28541}
28542_ACEOF
28543rm -f conftest.$ac_objext
28544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28545 (eval $ac_compile) 2>conftest.er1
a848cd7e 28546 ac_status=$?
ac1cb8d3
VS
28547 grep -v '^ *+' conftest.er1 >conftest.err
28548 rm -f conftest.er1
28549 cat conftest.err >&5
a848cd7e
SC
28550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28551 (exit $ac_status); } &&
fb00f58d
JS
28552 { ac_try='test -z "$ac_c_werror_flag"
28553 || test ! -s conftest.err'
ac1cb8d3
VS
28554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28555 (eval $ac_try) 2>&5
28556 ac_status=$?
28557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28558 (exit $ac_status); }; } &&
28559 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28561 (eval $ac_try) 2>&5
28562 ac_status=$?
28563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28564 (exit $ac_status); }; }; then
28565
28566 cat >>confdefs.h <<\_ACEOF
28567#define __WXMOTIF20__ 1
28568_ACEOF
28569
28570 echo "$as_me:$LINENO: result: found" >&5
28571echo "${ECHO_T}found" >&6
28572
28573else
28574 echo "$as_me: failed program was:" >&5
28575sed 's/^/| /' conftest.$ac_ext >&5
28576
28577
28578 cat >>confdefs.h <<\_ACEOF
28579#define __WXMOTIF20__ 0
28580_ACEOF
28581
28582 echo "$as_me:$LINENO: result: not found" >&5
28583echo "${ECHO_T}not found" >&6
28584
28585fi
ac1cb8d3 28586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28587 CFLAGS=$save_CFLAGS
28588
28589 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
28590 TOOLKIT=MOTIF
28591 GUIDIST=MOTIF_DIST
28592 fi
28593
74b84332 28594 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
28595 if test "$wxUSE_LIBXPM" = "sys"; then
28596 echo "$as_me:$LINENO: checking for Xpm library" >&5
28597echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
28598
28599ac_find_libraries=
28600for ac_dir in $SEARCH_LIB /usr/lib;
28601 do
28602 for ac_extension in a so sl dylib; do
28603 if test -f "$ac_dir/libXpm.$ac_extension"; then
28604 ac_find_libraries=$ac_dir
28605 break 2
28606 fi
28607 done
28608 done
28609
28610 if test "$ac_find_libraries" != "" ; then
28611
28612 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28613 result=$?
28614 if test $result = 0; then
28615 ac_path_to_link=""
28616 else
28617 ac_path_to_link=" -L$ac_find_libraries"
28618 fi
28619
28620 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
28621 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
28622echo "${ECHO_T}found at $ac_find_libraries" >&6
28623
28624 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
28625echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
28626if test "${wx_cv_x11_xpm_h+set}" = set; then
28627 echo $ECHO_N "(cached) $ECHO_C" >&6
28628else
28629
28630 save_CFLAGS=$CFLAGS
28631 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28632
28633 cat >conftest.$ac_ext <<_ACEOF
28634/* confdefs.h. */
28635_ACEOF
28636cat confdefs.h >>conftest.$ac_ext
28637cat >>conftest.$ac_ext <<_ACEOF
28638/* end confdefs.h. */
28639
28640 #include <X11/xpm.h>
28641
28642int
28643main ()
28644{
28645
28646 int version;
28647 version = XpmLibraryVersion();
28648
28649 ;
28650 return 0;
28651}
28652_ACEOF
28653rm -f conftest.$ac_objext
28654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28655 (eval $ac_compile) 2>conftest.er1
a848cd7e 28656 ac_status=$?
ac1cb8d3
VS
28657 grep -v '^ *+' conftest.er1 >conftest.err
28658 rm -f conftest.er1
28659 cat conftest.err >&5
a848cd7e
SC
28660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28661 (exit $ac_status); } &&
fb00f58d
JS
28662 { ac_try='test -z "$ac_c_werror_flag"
28663 || test ! -s conftest.err'
ac1cb8d3
VS
28664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28665 (eval $ac_try) 2>&5
28666 ac_status=$?
28667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28668 (exit $ac_status); }; } &&
28669 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28671 (eval $ac_try) 2>&5
28672 ac_status=$?
28673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28674 (exit $ac_status); }; }; then
28675 wx_cv_x11_xpm_h=yes
28676else
28677 echo "$as_me: failed program was:" >&5
28678sed 's/^/| /' conftest.$ac_ext >&5
28679
28680wx_cv_x11_xpm_h=no
28681
28682fi
ac1cb8d3 28683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28684
28685 CFLAGS=$save_CFLAGS
28686
28687
28688fi
28689echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
28690echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
28691
28692 if test $wx_cv_x11_xpm_h = "yes"; then
28693 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
28694 cat >>confdefs.h <<\_ACEOF
28695#define wxHAVE_LIB_XPM 1
28696_ACEOF
28697
28698 else
28699 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
28700echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
28701 fi
28702 fi
28703
28704 fi
28705
28706 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
28707echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
28708if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
28709 echo $ECHO_N "(cached) $ECHO_C" >&6
28710else
28711 ac_check_lib_save_LIBS=$LIBS
28712LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
28713cat >conftest.$ac_ext <<_ACEOF
28714/* confdefs.h. */
28715_ACEOF
28716cat confdefs.h >>conftest.$ac_ext
28717cat >>conftest.$ac_ext <<_ACEOF
28718/* end confdefs.h. */
28719
28720/* Override any gcc2 internal prototype to avoid an error. */
28721#ifdef __cplusplus
28722extern "C"
28723#endif
28724/* We use char because int might match the return type of a gcc2
28725 builtin and then its argument prototype would still apply. */
28726char XShapeQueryExtension ();
28727int
28728main ()
28729{
28730XShapeQueryExtension ();
28731 ;
28732 return 0;
28733}
28734_ACEOF
28735rm -f conftest.$ac_objext conftest$ac_exeext
28736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28737 (eval $ac_link) 2>conftest.er1
a848cd7e 28738 ac_status=$?
ac1cb8d3
VS
28739 grep -v '^ *+' conftest.er1 >conftest.err
28740 rm -f conftest.er1
28741 cat conftest.err >&5
a848cd7e
SC
28742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28743 (exit $ac_status); } &&
fb00f58d
JS
28744 { ac_try='test -z "$ac_c_werror_flag"
28745 || test ! -s conftest.err'
ac1cb8d3
VS
28746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28747 (eval $ac_try) 2>&5
28748 ac_status=$?
28749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28750 (exit $ac_status); }; } &&
28751 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28753 (eval $ac_try) 2>&5
28754 ac_status=$?
28755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28756 (exit $ac_status); }; }; then
28757 ac_cv_lib_Xext_XShapeQueryExtension=yes
28758else
28759 echo "$as_me: failed program was:" >&5
28760sed 's/^/| /' conftest.$ac_ext >&5
28761
28762ac_cv_lib_Xext_XShapeQueryExtension=no
28763fi
ac1cb8d3
VS
28764rm -f conftest.err conftest.$ac_objext \
28765 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28766LIBS=$ac_check_lib_save_LIBS
28767fi
28768echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
28769echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
28770if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
28771
28772 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
28773 wxHAVE_XEXT_LIB=1
28774
28775fi
28776
28777
28778 if test "$wxHAVE_XEXT_LIB" = 1; then
28779 save_CFLAGS="$CFLAGS"
28780 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
28781
28782 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
28783echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
28784 cat >conftest.$ac_ext <<_ACEOF
28785/* confdefs.h. */
28786_ACEOF
28787cat confdefs.h >>conftest.$ac_ext
28788cat >>conftest.$ac_ext <<_ACEOF
28789/* end confdefs.h. */
28790
28791 #include <X11/Xlib.h>
28792 #include <X11/extensions/shape.h>
28793
28794int
28795main ()
28796{
28797
28798 int dummy1, dummy2;
28799 XShapeQueryExtension((Display*)NULL,
28800 (int*)NULL, (int*)NULL);
28801
28802 ;
28803 return 0;
28804}
28805_ACEOF
28806rm -f conftest.$ac_objext
28807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28808 (eval $ac_compile) 2>conftest.er1
a848cd7e 28809 ac_status=$?
ac1cb8d3
VS
28810 grep -v '^ *+' conftest.er1 >conftest.err
28811 rm -f conftest.er1
28812 cat conftest.err >&5
a848cd7e
SC
28813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28814 (exit $ac_status); } &&
fb00f58d
JS
28815 { ac_try='test -z "$ac_c_werror_flag"
28816 || test ! -s conftest.err'
ac1cb8d3
VS
28817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28818 (eval $ac_try) 2>&5
28819 ac_status=$?
28820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28821 (exit $ac_status); }; } &&
28822 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28824 (eval $ac_try) 2>&5
28825 ac_status=$?
28826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28827 (exit $ac_status); }; }; then
28828
28829 cat >>confdefs.h <<\_ACEOF
28830#define HAVE_XSHAPE 1
28831_ACEOF
28832
28833 echo "$as_me:$LINENO: result: found" >&5
28834echo "${ECHO_T}found" >&6
28835
28836else
28837 echo "$as_me: failed program was:" >&5
28838sed 's/^/| /' conftest.$ac_ext >&5
28839
28840
28841 echo "$as_me:$LINENO: result: not found" >&5
28842echo "${ECHO_T}not found" >&6
28843
28844fi
ac1cb8d3 28845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28846 CFLAGS="$save_CFLAGS"
28847
28848 fi
28849 fi
28850
28851 if test "$wxUSE_MAC" = 1; then
28852 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
28853echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
28854 if test "$GCC" = yes; then
28855 echo "$as_me:$LINENO: result: gcc" >&5
28856echo "${ECHO_T}gcc" >&6
28857 CPPFLAGS_PASCAL="-fpascal-strings"
28858 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
28859 echo "$as_me:$LINENO: result: xlc" >&5
28860echo "${ECHO_T}xlc" >&6
28861 CPPFLAGS_PASCAL="-qmacpstr"
28862 else
28863 echo "$as_me:$LINENO: result: none" >&5
28864echo "${ECHO_T}none" >&6
28865 fi
28866
1e9e8aba
DE
28867 if test "x$wxUSE_UNIX" = "xyes"; then
28868 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
28869 else
28870 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
28871 fi
a848cd7e 28872
a848cd7e
SC
28873 TOOLKIT=MAC
28874 GUIDIST=MACX_DIST
dd21ced8 28875 WXBASEPORT="_carbon"
a848cd7e
SC
28876 fi
28877
28878 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
28879 TOOLKIT=COCOA
28880 GUIDIST=COCOA_DIST
28881 fi
28882
28883 if test "$wxUSE_PM" = 1; then
28884 TOOLKIT=PM
de59c161
RD
28885 GUIDIST=PM_DIST
28886 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
28887echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
28888if test "${wx_cv_spbcdata+set}" = set; then
28889 echo $ECHO_N "(cached) $ECHO_C" >&6
28890else
28891
28892 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
28893/* confdefs.h. */
28894_ACEOF
28895cat confdefs.h >>conftest.$ac_ext
28896cat >>conftest.$ac_ext <<_ACEOF
28897/* end confdefs.h. */
28898
28899 #define INCL_PM
28900 #include <os2.h>
28901
28902int
28903main ()
28904{
28905
28906 SPBCDATA test;
28907
28908 ;
28909 return 0;
28910}
28911_ACEOF
28912rm -f conftest.$ac_objext
28913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28914 (eval $ac_compile) 2>conftest.er1
de59c161 28915 ac_status=$?
ac1cb8d3
VS
28916 grep -v '^ *+' conftest.er1 >conftest.err
28917 rm -f conftest.er1
28918 cat conftest.err >&5
de59c161
RD
28919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28920 (exit $ac_status); } &&
fb00f58d
JS
28921 { ac_try='test -z "$ac_c_werror_flag"
28922 || test ! -s conftest.err'
ac1cb8d3
VS
28923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28924 (eval $ac_try) 2>&5
28925 ac_status=$?
28926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28927 (exit $ac_status); }; } &&
28928 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
28929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28930 (eval $ac_try) 2>&5
28931 ac_status=$?
28932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28933 (exit $ac_status); }; }; then
28934 wx_cv_spbcdata=yes
28935else
28936 echo "$as_me: failed program was:" >&5
28937sed 's/^/| /' conftest.$ac_ext >&5
28938
28939wx_cv_spbcdata=no
28940
28941fi
ac1cb8d3 28942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
28943
28944
28945fi
28946echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
28947echo "${ECHO_T}$wx_cv_spbcdata" >&6
28948
28949 if test $wx_cv_spbcdata = "yes"; then
28950 cat >>confdefs.h <<\_ACEOF
28951#define HAVE_SPBCDATA 1
28952_ACEOF
28953
28954 fi
a848cd7e
SC
28955 fi
28956
28957 if test "$TOOLKIT" = "PM" ; then
28958 TOOLKIT_DIR="os2"
28959 else
28960 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
28961 fi
28962
a848cd7e 28963 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
28964 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
28965 WIDGET_SET=univ
a848cd7e
SC
28966 fi
28967
28968 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
28969 DISTDIR="wx\$(TOOLKIT)"
28970else
28971 USE_GUI=0
28972
28973 TOOLKIT_DIR="base"
28974
28975 if test "$USE_WIN32" = 1 ; then
a848cd7e 28976 TOOLKIT="MSW"
a848cd7e
SC
28977 fi
28978
a848cd7e
SC
28979 GUIDIST="BASE_DIST"
28980 DISTDIR="wxBase"
28981fi
28982
28983
28984
28985
28986IODBC_C_SRC=""
28987
28988
28989if test "$TOOLKIT" != "MSW" ; then
28990
28991 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
28992
28993 if test "${ac_cv_header_sql_h+set}" = set; then
28994 echo "$as_me:$LINENO: checking for sql.h" >&5
28995echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
28996if test "${ac_cv_header_sql_h+set}" = set; then
28997 echo $ECHO_N "(cached) $ECHO_C" >&6
28998fi
28999echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
29000echo "${ECHO_T}$ac_cv_header_sql_h" >&6
29001else
29002 # Is the header compilable?
29003echo "$as_me:$LINENO: checking sql.h usability" >&5
29004echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
29005cat >conftest.$ac_ext <<_ACEOF
29006/* confdefs.h. */
29007_ACEOF
29008cat confdefs.h >>conftest.$ac_ext
29009cat >>conftest.$ac_ext <<_ACEOF
29010/* end confdefs.h. */
29011$ac_includes_default
29012#include <sql.h>
29013_ACEOF
29014rm -f conftest.$ac_objext
29015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29016 (eval $ac_compile) 2>conftest.er1
a848cd7e 29017 ac_status=$?
ac1cb8d3
VS
29018 grep -v '^ *+' conftest.er1 >conftest.err
29019 rm -f conftest.er1
29020 cat conftest.err >&5
a848cd7e
SC
29021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29022 (exit $ac_status); } &&
fb00f58d
JS
29023 { ac_try='test -z "$ac_c_werror_flag"
29024 || test ! -s conftest.err'
ac1cb8d3
VS
29025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29026 (eval $ac_try) 2>&5
29027 ac_status=$?
29028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29029 (exit $ac_status); }; } &&
29030 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29032 (eval $ac_try) 2>&5
29033 ac_status=$?
29034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29035 (exit $ac_status); }; }; then
29036 ac_header_compiler=yes
29037else
29038 echo "$as_me: failed program was:" >&5
29039sed 's/^/| /' conftest.$ac_ext >&5
29040
29041ac_header_compiler=no
29042fi
ac1cb8d3 29043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29044echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29045echo "${ECHO_T}$ac_header_compiler" >&6
29046
29047# Is the header present?
29048echo "$as_me:$LINENO: checking sql.h presence" >&5
29049echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
29050cat >conftest.$ac_ext <<_ACEOF
29051/* confdefs.h. */
29052_ACEOF
29053cat confdefs.h >>conftest.$ac_ext
29054cat >>conftest.$ac_ext <<_ACEOF
29055/* end confdefs.h. */
29056#include <sql.h>
29057_ACEOF
29058if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29060 ac_status=$?
29061 grep -v '^ *+' conftest.er1 >conftest.err
29062 rm -f conftest.er1
29063 cat conftest.err >&5
29064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29065 (exit $ac_status); } >/dev/null; then
29066 if test -s conftest.err; then
29067 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 29068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
29069 else
29070 ac_cpp_err=
29071 fi
29072else
29073 ac_cpp_err=yes
29074fi
29075if test -z "$ac_cpp_err"; then
29076 ac_header_preproc=yes
29077else
29078 echo "$as_me: failed program was:" >&5
29079sed 's/^/| /' conftest.$ac_ext >&5
29080
29081 ac_header_preproc=no
29082fi
29083rm -f conftest.err conftest.$ac_ext
29084echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29085echo "${ECHO_T}$ac_header_preproc" >&6
29086
29087# So? What about this header?
ac1cb8d3
VS
29088case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29089 yes:no: )
a848cd7e
SC
29090 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
29091echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
29092 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
29093echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
29094 ac_header_preproc=yes
a848cd7e 29095 ;;
ac1cb8d3 29096 no:yes:* )
a848cd7e
SC
29097 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
29098echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
29099 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
29100echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
29101 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
29102echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
29103 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
29104echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
29105 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
29106echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
29107 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
29108echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
29109 (
29110 cat <<\_ASBOX
ac1cb8d3
VS
29111## ----------------------------------------- ##
29112## Report this to wx-dev@lists.wxwidgets.org ##
29113## ----------------------------------------- ##
a848cd7e
SC
29114_ASBOX
29115 ) |
29116 sed "s/^/$as_me: WARNING: /" >&2
29117 ;;
29118esac
29119echo "$as_me:$LINENO: checking for sql.h" >&5
29120echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
29121if test "${ac_cv_header_sql_h+set}" = set; then
29122 echo $ECHO_N "(cached) $ECHO_C" >&6
29123else
29124 ac_cv_header_sql_h=$ac_header_preproc
29125fi
29126echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
29127echo "${ECHO_T}$ac_cv_header_sql_h" >&6
29128
29129fi
29130if test $ac_cv_header_sql_h = yes; then
29131 found_sql_h=1
29132fi
29133
29134
29135 if test "x$found_sql_h" = "x1" ; then
29136 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
29137echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
29138if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
29139 echo $ECHO_N "(cached) $ECHO_C" >&6
29140else
29141 ac_check_lib_save_LIBS=$LIBS
29142LIBS="-liodbc $LIBS"
29143cat >conftest.$ac_ext <<_ACEOF
29144/* confdefs.h. */
29145_ACEOF
29146cat confdefs.h >>conftest.$ac_ext
29147cat >>conftest.$ac_ext <<_ACEOF
29148/* end confdefs.h. */
29149
29150/* Override any gcc2 internal prototype to avoid an error. */
29151#ifdef __cplusplus
29152extern "C"
29153#endif
29154/* We use char because int might match the return type of a gcc2
29155 builtin and then its argument prototype would still apply. */
29156char SQLAllocEnv ();
29157int
29158main ()
29159{
29160SQLAllocEnv ();
29161 ;
29162 return 0;
29163}
29164_ACEOF
29165rm -f conftest.$ac_objext conftest$ac_exeext
29166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29167 (eval $ac_link) 2>conftest.er1
a848cd7e 29168 ac_status=$?
ac1cb8d3
VS
29169 grep -v '^ *+' conftest.er1 >conftest.err
29170 rm -f conftest.er1
29171 cat conftest.err >&5
a848cd7e
SC
29172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29173 (exit $ac_status); } &&
fb00f58d
JS
29174 { ac_try='test -z "$ac_c_werror_flag"
29175 || test ! -s conftest.err'
ac1cb8d3
VS
29176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29177 (eval $ac_try) 2>&5
29178 ac_status=$?
29179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29180 (exit $ac_status); }; } &&
29181 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29183 (eval $ac_try) 2>&5
29184 ac_status=$?
29185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29186 (exit $ac_status); }; }; then
29187 ac_cv_lib_iodbc_SQLAllocEnv=yes
29188else
29189 echo "$as_me: failed program was:" >&5
29190sed 's/^/| /' conftest.$ac_ext >&5
29191
29192ac_cv_lib_iodbc_SQLAllocEnv=no
29193fi
ac1cb8d3
VS
29194rm -f conftest.err conftest.$ac_objext \
29195 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29196LIBS=$ac_check_lib_save_LIBS
29197fi
29198echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
29199echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
29200if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
29201 ODBC_LINK=" -liodbc"
29202else
29203
29204 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
29205echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
29206if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
29207 echo $ECHO_N "(cached) $ECHO_C" >&6
29208else
29209 ac_check_lib_save_LIBS=$LIBS
29210LIBS="-lunixodbc $LIBS"
29211cat >conftest.$ac_ext <<_ACEOF
29212/* confdefs.h. */
29213_ACEOF
29214cat confdefs.h >>conftest.$ac_ext
29215cat >>conftest.$ac_ext <<_ACEOF
29216/* end confdefs.h. */
29217
29218/* Override any gcc2 internal prototype to avoid an error. */
29219#ifdef __cplusplus
29220extern "C"
29221#endif
29222/* We use char because int might match the return type of a gcc2
29223 builtin and then its argument prototype would still apply. */
29224char SQLAllocEnv ();
29225int
29226main ()
29227{
29228SQLAllocEnv ();
29229 ;
29230 return 0;
29231}
29232_ACEOF
29233rm -f conftest.$ac_objext conftest$ac_exeext
29234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29235 (eval $ac_link) 2>conftest.er1
a848cd7e 29236 ac_status=$?
ac1cb8d3
VS
29237 grep -v '^ *+' conftest.er1 >conftest.err
29238 rm -f conftest.er1
29239 cat conftest.err >&5
a848cd7e
SC
29240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29241 (exit $ac_status); } &&
fb00f58d
JS
29242 { ac_try='test -z "$ac_c_werror_flag"
29243 || test ! -s conftest.err'
ac1cb8d3
VS
29244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29245 (eval $ac_try) 2>&5
29246 ac_status=$?
29247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29248 (exit $ac_status); }; } &&
29249 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29251 (eval $ac_try) 2>&5
29252 ac_status=$?
29253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29254 (exit $ac_status); }; }; then
29255 ac_cv_lib_unixodbc_SQLAllocEnv=yes
29256else
29257 echo "$as_me: failed program was:" >&5
29258sed 's/^/| /' conftest.$ac_ext >&5
29259
29260ac_cv_lib_unixodbc_SQLAllocEnv=no
29261fi
ac1cb8d3
VS
29262rm -f conftest.err conftest.$ac_objext \
29263 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29264LIBS=$ac_check_lib_save_LIBS
29265fi
29266echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
29267echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
29268if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
29269 ODBC_LINK=" -lunixodbc"
29270else
29271
29272 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
29273echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
29274if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
29275 echo $ECHO_N "(cached) $ECHO_C" >&6
29276else
29277 ac_check_lib_save_LIBS=$LIBS
29278LIBS="-lodbc $LIBS"
29279cat >conftest.$ac_ext <<_ACEOF
29280/* confdefs.h. */
29281_ACEOF
29282cat confdefs.h >>conftest.$ac_ext
29283cat >>conftest.$ac_ext <<_ACEOF
29284/* end confdefs.h. */
29285
29286/* Override any gcc2 internal prototype to avoid an error. */
29287#ifdef __cplusplus
29288extern "C"
29289#endif
29290/* We use char because int might match the return type of a gcc2
29291 builtin and then its argument prototype would still apply. */
29292char SQLAllocEnv ();
29293int
29294main ()
29295{
29296SQLAllocEnv ();
29297 ;
29298 return 0;
29299}
29300_ACEOF
29301rm -f conftest.$ac_objext conftest$ac_exeext
29302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29303 (eval $ac_link) 2>conftest.er1
a848cd7e 29304 ac_status=$?
ac1cb8d3
VS
29305 grep -v '^ *+' conftest.er1 >conftest.err
29306 rm -f conftest.er1
29307 cat conftest.err >&5
a848cd7e
SC
29308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29309 (exit $ac_status); } &&
fb00f58d
JS
29310 { ac_try='test -z "$ac_c_werror_flag"
29311 || test ! -s conftest.err'
ac1cb8d3
VS
29312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29313 (eval $ac_try) 2>&5
29314 ac_status=$?
29315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29316 (exit $ac_status); }; } &&
29317 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29319 (eval $ac_try) 2>&5
29320 ac_status=$?
29321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29322 (exit $ac_status); }; }; then
29323 ac_cv_lib_odbc_SQLAllocEnv=yes
29324else
29325 echo "$as_me: failed program was:" >&5
29326sed 's/^/| /' conftest.$ac_ext >&5
29327
29328ac_cv_lib_odbc_SQLAllocEnv=no
29329fi
ac1cb8d3
VS
29330rm -f conftest.err conftest.$ac_objext \
29331 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29332LIBS=$ac_check_lib_save_LIBS
29333fi
29334echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
29335echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
29336if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
29337 ODBC_LINK=" -lodbc"
29338fi
29339
29340
29341fi
29342
29343
29344fi
29345
29346 fi
29347 if test "x$ODBC_LINK" = "x" ; then
29348 if test "$wxUSE_ODBC" = "sys" ; then
29349 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
29350echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
29351 { (exit 1); exit 1; }; }
29352 else
29353 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
29354echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
29355 wxUSE_ODBC=builtin
29356 fi
29357 else
29358 wxUSE_ODBC=sys
29359 fi
29360 fi
a848cd7e 29361
2da0c077
RD
29362 if test "$wxUSE_ODBC" = "builtin" ; then
29363 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
29364#define wxUSE_BUILTIN_IODBC 1
29365_ACEOF
29366
a848cd7e
SC
29367 fi
29368fi
29369
2da0c077
RD
29370if test "$wxUSE_ODBC" != "no" ; then
29371 cat >>confdefs.h <<\_ACEOF
29372#define wxUSE_ODBC 1
29373_ACEOF
29374
29375 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
29376
29377 WXODBCFLAG="-D_IODBC_"
29378fi
a848cd7e 29379
01cb68df 29380
a848cd7e 29381if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 29382 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
29383 echo "$as_me:$LINENO: checking for Xinerama" >&5
29384echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
29385
29386ac_find_libraries=
29387for ac_dir in $SEARCH_LIB /usr/lib;
29388 do
29389 for ac_extension in a so sl dylib; do
29390 if test -f "$ac_dir/libXinerama.$ac_extension"; then
29391 ac_find_libraries=$ac_dir
29392 break 2
29393 fi
29394 done
29395 done
29396
29397 if test "$ac_find_libraries" != "" ; then
29398
29399 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29400 result=$?
29401 if test $result = 0; then
29402 ac_path_to_link=""
29403 else
29404 ac_path_to_link=" -L$ac_find_libraries"
29405 fi
29406
29407 if test "$ac_path_to_link" != " -L/usr/lib" ; then
29408 LDFLAGS="$LDFLAGS $ac_path_to_link"
29409 fi
29410 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
29411 echo "$as_me:$LINENO: result: yes" >&5
29412echo "${ECHO_T}yes" >&6
29413
29414 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
29415echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
29416
29417ac_find_libraries=
29418for ac_dir in $SEARCH_LIB /usr/lib;
29419 do
29420 for ac_extension in a so sl dylib; do
29421 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
29422 ac_find_libraries=$ac_dir
29423 break 2
29424 fi
29425 done
29426 done
29427
29428 if test "$ac_find_libraries" != "" ; then
29429 echo "$as_me:$LINENO: result: yes" >&5
29430echo "${ECHO_T}yes" >&6
29431
29432for ac_header in X11/extensions/xf86vmode.h
29433do
29434as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29435echo "$as_me:$LINENO: checking for $ac_header" >&5
29436echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29437if eval "test \"\${$as_ac_Header+set}\" = set"; then
29438 echo $ECHO_N "(cached) $ECHO_C" >&6
29439else
29440 cat >conftest.$ac_ext <<_ACEOF
29441/* confdefs.h. */
29442_ACEOF
29443cat confdefs.h >>conftest.$ac_ext
29444cat >>conftest.$ac_ext <<_ACEOF
29445/* end confdefs.h. */
29446
29447 #if HAVE_X11_XLIB_H
29448 #include <X11/Xlib.h>
29449 #endif
29450
29451
29452#include <$ac_header>
29453_ACEOF
29454rm -f conftest.$ac_objext
29455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29456 (eval $ac_compile) 2>conftest.er1
a848cd7e 29457 ac_status=$?
ac1cb8d3
VS
29458 grep -v '^ *+' conftest.er1 >conftest.err
29459 rm -f conftest.er1
29460 cat conftest.err >&5
a848cd7e
SC
29461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29462 (exit $ac_status); } &&
fb00f58d
JS
29463 { ac_try='test -z "$ac_c_werror_flag"
29464 || test ! -s conftest.err'
ac1cb8d3
VS
29465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29466 (eval $ac_try) 2>&5
29467 ac_status=$?
29468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29469 (exit $ac_status); }; } &&
29470 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29472 (eval $ac_try) 2>&5
29473 ac_status=$?
29474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29475 (exit $ac_status); }; }; then
29476 eval "$as_ac_Header=yes"
29477else
29478 echo "$as_me: failed program was:" >&5
29479sed 's/^/| /' conftest.$ac_ext >&5
29480
29481eval "$as_ac_Header=no"
29482fi
ac1cb8d3 29483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29484fi
29485echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29486echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29487if test `eval echo '${'$as_ac_Header'}'` = yes; then
29488 cat >>confdefs.h <<_ACEOF
29489#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29490_ACEOF
29491
29492 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
29493
29494fi
29495
29496done
29497
29498 else
29499 echo "$as_me:$LINENO: result: no" >&5
29500echo "${ECHO_T}no" >&6
29501 fi
29502
29503 else
29504 echo "$as_me:$LINENO: result: no" >&5
29505echo "${ECHO_T}no" >&6
dcc1b6ad
VS
29506 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
29507echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
29508 wxUSE_DISPLAY="no"
29509 fi
01cb68df
RG
29510 elif test "$wxUSE_MSW" = 1; then
29511
29512
29513for ac_header in multimon.h ddraw.h
29514do
29515as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 29516echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
29517echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29518if eval "test \"\${$as_ac_Header+set}\" = set"; then
29519 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 29520else
5294a27e 29521 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
29522/* confdefs.h. */
29523_ACEOF
29524cat confdefs.h >>conftest.$ac_ext
29525cat >>conftest.$ac_ext <<_ACEOF
29526/* end confdefs.h. */
5294a27e
VZ
29527#include <windows.h>
29528
01cb68df
RG
29529#include <$ac_header>
29530_ACEOF
29531rm -f conftest.$ac_objext
29532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29533 (eval $ac_compile) 2>conftest.er1
01cb68df 29534 ac_status=$?
ac1cb8d3
VS
29535 grep -v '^ *+' conftest.er1 >conftest.err
29536 rm -f conftest.er1
29537 cat conftest.err >&5
01cb68df
RG
29538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29539 (exit $ac_status); } &&
fb00f58d
JS
29540 { ac_try='test -z "$ac_c_werror_flag"
29541 || test ! -s conftest.err'
ac1cb8d3
VS
29542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29543 (eval $ac_try) 2>&5
29544 ac_status=$?
29545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29546 (exit $ac_status); }; } &&
29547 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
29548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29549 (eval $ac_try) 2>&5
29550 ac_status=$?
29551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29552 (exit $ac_status); }; }; then
5294a27e 29553 eval "$as_ac_Header=yes"
01cb68df
RG
29554else
29555 echo "$as_me: failed program was:" >&5
29556sed 's/^/| /' conftest.$ac_ext >&5
29557
5294a27e 29558eval "$as_ac_Header=no"
01cb68df 29559fi
ac1cb8d3 29560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
29561fi
29562echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29563echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
29564if test `eval echo '${'$as_ac_Header'}'` = yes; then
29565 cat >>confdefs.h <<_ACEOF
29566#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29567_ACEOF
29568
29569else
29570
5294a27e
VZ
29571 wxUSE_DISPLAY="no"
29572 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 29573echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
29574
29575fi
29576
29577done
29578
a848cd7e
SC
29579 fi
29580fi
29581
29582
29583USE_OPENGL=0
29584if test "$wxUSE_OPENGL" = "yes"; then
29585 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
29586 OPENGL_LIBS="-framework OpenGL -framework AGL"
29587 elif test "$wxUSE_MSW" = 1; then
29588 OPENGL_LIBS="-lopengl32 -lglu32"
29589 else
29590
29591
29592ac_find_includes=
29593for ac_dir in $SEARCH_INCLUDE /usr/include;
29594 do
29595 if test -f "$ac_dir/GL/gl.h"; then
29596 ac_find_includes=$ac_dir
29597 break
29598 fi
29599 done
29600
29601 if test "$ac_find_includes" != "" ; then
29602 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29603echo "${ECHO_T}found in $ac_find_includes" >&6
29604
29605 if test "x$ac_find_includes" = "x/usr/include"; then
29606 ac_path_to_include=""
29607 else
29608 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
29609 result=$?
29610 if test $result = 0; then
29611 ac_path_to_include=""
29612 else
29613 ac_path_to_include=" -I$ac_find_includes"
29614 fi
29615 fi
29616
29617 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
29618 fi
29619
29620 if test "${ac_cv_header_GL_gl_h+set}" = set; then
29621 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29622echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29623if test "${ac_cv_header_GL_gl_h+set}" = set; then
29624 echo $ECHO_N "(cached) $ECHO_C" >&6
29625fi
29626echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29627echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29628else
29629 # Is the header compilable?
29630echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
29631echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
29632cat >conftest.$ac_ext <<_ACEOF
29633/* confdefs.h. */
29634_ACEOF
29635cat confdefs.h >>conftest.$ac_ext
29636cat >>conftest.$ac_ext <<_ACEOF
29637/* end confdefs.h. */
29638$ac_includes_default
29639#include <GL/gl.h>
29640_ACEOF
29641rm -f conftest.$ac_objext
29642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29643 (eval $ac_compile) 2>conftest.er1
a848cd7e 29644 ac_status=$?
ac1cb8d3
VS
29645 grep -v '^ *+' conftest.er1 >conftest.err
29646 rm -f conftest.er1
29647 cat conftest.err >&5
a848cd7e
SC
29648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29649 (exit $ac_status); } &&
fb00f58d
JS
29650 { ac_try='test -z "$ac_c_werror_flag"
29651 || test ! -s conftest.err'
ac1cb8d3
VS
29652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29653 (eval $ac_try) 2>&5
29654 ac_status=$?
29655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29656 (exit $ac_status); }; } &&
29657 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29659 (eval $ac_try) 2>&5
29660 ac_status=$?
29661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29662 (exit $ac_status); }; }; then
29663 ac_header_compiler=yes
29664else
29665 echo "$as_me: failed program was:" >&5
29666sed 's/^/| /' conftest.$ac_ext >&5
29667
29668ac_header_compiler=no
29669fi
ac1cb8d3 29670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29671echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29672echo "${ECHO_T}$ac_header_compiler" >&6
29673
29674# Is the header present?
29675echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
29676echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
29677cat >conftest.$ac_ext <<_ACEOF
29678/* confdefs.h. */
29679_ACEOF
29680cat confdefs.h >>conftest.$ac_ext
29681cat >>conftest.$ac_ext <<_ACEOF
29682/* end confdefs.h. */
29683#include <GL/gl.h>
29684_ACEOF
29685if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29687 ac_status=$?
29688 grep -v '^ *+' conftest.er1 >conftest.err
29689 rm -f conftest.er1
29690 cat conftest.err >&5
29691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29692 (exit $ac_status); } >/dev/null; then
29693 if test -s conftest.err; then
29694 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 29695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
29696 else
29697 ac_cpp_err=
29698 fi
29699else
29700 ac_cpp_err=yes
29701fi
29702if test -z "$ac_cpp_err"; then
29703 ac_header_preproc=yes
29704else
29705 echo "$as_me: failed program was:" >&5
29706sed 's/^/| /' conftest.$ac_ext >&5
29707
29708 ac_header_preproc=no
29709fi
29710rm -f conftest.err conftest.$ac_ext
29711echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29712echo "${ECHO_T}$ac_header_preproc" >&6
29713
29714# So? What about this header?
ac1cb8d3
VS
29715case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29716 yes:no: )
a848cd7e
SC
29717 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29718echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
29719 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
29720echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
29721 ac_header_preproc=yes
a848cd7e 29722 ;;
ac1cb8d3 29723 no:yes:* )
a848cd7e
SC
29724 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
29725echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
29726 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
29727echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
29728 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
29729echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
29730 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
29731echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
29732 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
29733echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
29734 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
29735echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
29736 (
29737 cat <<\_ASBOX
ac1cb8d3
VS
29738## ----------------------------------------- ##
29739## Report this to wx-dev@lists.wxwidgets.org ##
29740## ----------------------------------------- ##
a848cd7e
SC
29741_ASBOX
29742 ) |
29743 sed "s/^/$as_me: WARNING: /" >&2
29744 ;;
29745esac
29746echo "$as_me:$LINENO: checking for GL/gl.h" >&5
29747echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
29748if test "${ac_cv_header_GL_gl_h+set}" = set; then
29749 echo $ECHO_N "(cached) $ECHO_C" >&6
29750else
29751 ac_cv_header_GL_gl_h=$ac_header_preproc
29752fi
29753echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
29754echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
29755
29756fi
29757if test $ac_cv_header_GL_gl_h = yes; then
29758
29759 found_gl=0
29760
29761 echo "$as_me:$LINENO: checking for -lGL" >&5
29762echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
29763
29764ac_find_libraries=
29765for ac_dir in $SEARCH_LIB /usr/lib;
29766 do
29767 for ac_extension in a so sl dylib; do
29768 if test -f "$ac_dir/libGL.$ac_extension"; then
29769 ac_find_libraries=$ac_dir
29770 break 2
29771 fi
29772 done
29773 done
29774
29775 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
29776 echo "$as_me:$LINENO: result: yes" >&5
29777echo "${ECHO_T}yes" >&6
29778
a848cd7e
SC
29779
29780 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29781 result=$?
29782 if test $result = 0; then
29783 ac_path_to_link=""
29784 else
29785 ac_path_to_link=" -L$ac_find_libraries"
29786 fi
29787
29788 if test "$ac_path_to_link" != " -L/usr/lib" ; then
29789 LDFLAGS_GL="$ac_path_to_link"
29790 fi
29791
69120ee4
VZ
29792 echo "$as_me:$LINENO: checking for -lGLU" >&5
29793echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e
SC
29794
29795ac_find_libraries=
29796for ac_dir in $SEARCH_LIB /usr/lib;
29797 do
29798 for ac_extension in a so sl dylib; do
29799 if test -f "$ac_dir/libGLU.$ac_extension"; then
29800 ac_find_libraries=$ac_dir
29801 break 2
29802 fi
29803 done
29804 done
29805
29806 if test "$ac_find_libraries" != "" ; then
29807
29808 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29809 result=$?
29810 if test $result = 0; then
29811 ac_path_to_link=""
29812 else
29813 ac_path_to_link=" -L$ac_find_libraries"
29814 fi
29815
29816 if test "$ac_path_to_link" != " -L/usr/lib" -a \
29817 "$ac_path_to_link" != "$LDFLAGS_GL"; then
29818 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
29819 fi
29820
29821 found_gl=1
29822 OPENGL_LIBS="-lGL -lGLU"
29823 echo "$as_me:$LINENO: result: yes" >&5
29824echo "${ECHO_T}yes" >&6
69120ee4
VZ
29825 else
29826 echo "$as_me:$LINENO: result: no" >&5
29827echo "${ECHO_T}no" >&6
a848cd7e 29828 fi
69120ee4
VZ
29829 else
29830 echo "$as_me:$LINENO: result: no" >&5
29831echo "${ECHO_T}no" >&6
a848cd7e
SC
29832 fi
29833
29834 if test "$found_gl" != 1; then
a848cd7e
SC
29835 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
29836echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
29837
29838ac_find_libraries=
29839for ac_dir in $SEARCH_LIB /usr/lib;
29840 do
29841 for ac_extension in a so sl dylib; do
29842 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
29843 ac_find_libraries=$ac_dir
29844 break 2
29845 fi
29846 done
29847 done
29848
29849 if test "$ac_find_libraries" != "" ; then
29850
29851 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
29852 result=$?
29853 if test $result = 0; then
29854 ac_path_to_link=""
29855 else
29856 ac_path_to_link=" -L$ac_find_libraries"
29857 fi
29858
29859 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
29860 OPENGL_LIBS="-lMesaGL -lMesaGLU"
29861 echo "$as_me:$LINENO: result: yes" >&5
29862echo "${ECHO_T}yes" >&6
29863 else
29864 echo "$as_me:$LINENO: result: no" >&5
29865echo "${ECHO_T}no" >&6
29866 fi
29867 fi
29868
29869fi
29870
29871
29872
29873 if test "x$OPENGL_LIBS" = "x"; then
29874 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
29875echo "$as_me: error: OpenGL libraries not available" >&2;}
29876 { (exit 1); exit 1; }; }
29877 fi
29878 fi
29879
29880 if test "$wxUSE_OPENGL" = "yes"; then
29881 USE_OPENGL=1
29882 cat >>confdefs.h <<\_ACEOF
29883#define wxUSE_OPENGL 1
29884_ACEOF
29885
29886 cat >>confdefs.h <<\_ACEOF
29887#define wxUSE_GLCANVAS 1
29888_ACEOF
29889
29890 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
29891 fi
29892fi
29893
a848cd7e
SC
29894
29895if test -n "$TOOLKIT" ; then
29896 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
29897fi
29898
a848cd7e
SC
29899
29900
29901if test "$wxUSE_SHARED" = "yes"; then
29902 case "${host}" in
29903 *-pc-msdosdjgpp )
29904 wxUSE_SHARED=no
29905 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
29906echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
29907 ;;
29908 esac
29909fi
29910
a848cd7e 29911if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
29912
29913
29914 found_versioning=no
29915
29916
29917 if test $found_versioning = no ; then
29918 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
29919echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
29920if test "${wx_cv_version_script+set}" = set; then
29921 echo $ECHO_N "(cached) $ECHO_C" >&6
29922else
29923
29924 echo "VER_1 { *; };" >conftest.sym
29925 echo "int main() { return 0; }" >conftest.cpp
29926
29927 if { ac_try='
29928 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29929 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
29930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29931 (eval $ac_try) 2>&5
29932 ac_status=$?
29933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29934 (exit $ac_status); }; } ; then
29935 if test -s conftest.stderr ; then
29936 wx_cv_version_script=no
29937 else
29938 wx_cv_version_script=yes
29939 fi
29940 else
29941 wx_cv_version_script=no
29942 fi
e5d4b470
MW
29943
29944 if test $wx_cv_version_script = yes
29945 then
29946 echo "struct B { virtual ~B() { } }; \
29947 struct D : public B { }; \
29948 void F() { D d; }" > conftest.cpp
29949
29950 if { ac_try='
29951 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29952 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
29953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29954 (eval $ac_try) 2>&5
29955 ac_status=$?
29956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29957 (exit $ac_status); }; } &&
29958 { ac_try='
29959 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29960 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
29961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29962 (eval $ac_try) 2>&5
29963 ac_status=$?
29964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29965 (exit $ac_status); }; }
29966 then
29967 if { ac_try='
29968 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
29969 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
29970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29971 (eval $ac_try) 2>&5
29972 ac_status=$?
29973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29974 (exit $ac_status); }; }
29975 then
29976 wx_cv_version_script=yes
29977 else
29978 wx_cv_version_script=no
29979 fi
29980 fi
29981 fi
29982
a848cd7e 29983 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 29984 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
29985
29986fi
29987echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
29988echo "${ECHO_T}$wx_cv_version_script" >&6
29989 if test $wx_cv_version_script = yes ; then
29990 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
29991 fi
29992 fi
29993
29994
29995 case "${host}" in
29996 *-*-linux* | *-*-gnu* )
29997 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 29998 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
29999 ;;
30000
30001 *-*-solaris2* )
30002 if test "$GCC" = yes ; then
30003 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
30004
30005 saveLdflags="$LDFLAGS"
30006 LDFLAGS="$saveLdflags -Wl,-rpath,/"
30007 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
30008echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
30009 cat >conftest.$ac_ext <<_ACEOF
30010/* confdefs.h. */
30011_ACEOF
30012cat confdefs.h >>conftest.$ac_ext
30013cat >>conftest.$ac_ext <<_ACEOF
30014/* end confdefs.h. */
30015
30016int
30017main ()
30018{
30019
30020 ;
30021 return 0;
30022}
30023_ACEOF
30024rm -f conftest.$ac_objext conftest$ac_exeext
30025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30026 (eval $ac_link) 2>conftest.er1
a848cd7e 30027 ac_status=$?
ac1cb8d3
VS
30028 grep -v '^ *+' conftest.er1 >conftest.err
30029 rm -f conftest.er1
30030 cat conftest.err >&5
a848cd7e
SC
30031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30032 (exit $ac_status); } &&
fb00f58d
JS
30033 { ac_try='test -z "$ac_c_werror_flag"
30034 || test ! -s conftest.err'
ac1cb8d3
VS
30035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30036 (eval $ac_try) 2>&5
30037 ac_status=$?
30038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30039 (exit $ac_status); }; } &&
30040 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30042 (eval $ac_try) 2>&5
30043 ac_status=$?
30044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30045 (exit $ac_status); }; }; then
30046
30047 echo "$as_me:$LINENO: result: yes" >&5
30048echo "${ECHO_T}yes" >&6
30049 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 30050 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
30051
30052else
30053 echo "$as_me: failed program was:" >&5
30054sed 's/^/| /' conftest.$ac_ext >&5
30055
30056
30057 echo "$as_me:$LINENO: result: no" >&5
30058echo "${ECHO_T}no" >&6
30059 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
30060echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
30061 LDFLAGS="$saveLdflags -Wl,-R,/"
30062 cat >conftest.$ac_ext <<_ACEOF
30063/* confdefs.h. */
30064_ACEOF
30065cat confdefs.h >>conftest.$ac_ext
30066cat >>conftest.$ac_ext <<_ACEOF
30067/* end confdefs.h. */
30068
30069int
30070main ()
30071{
30072
30073 ;
30074 return 0;
30075}
30076_ACEOF
30077rm -f conftest.$ac_objext conftest$ac_exeext
30078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30079 (eval $ac_link) 2>conftest.er1
a848cd7e 30080 ac_status=$?
ac1cb8d3
VS
30081 grep -v '^ *+' conftest.er1 >conftest.err
30082 rm -f conftest.er1
30083 cat conftest.err >&5
a848cd7e
SC
30084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30085 (exit $ac_status); } &&
fb00f58d
JS
30086 { ac_try='test -z "$ac_c_werror_flag"
30087 || test ! -s conftest.err'
ac1cb8d3
VS
30088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30089 (eval $ac_try) 2>&5
30090 ac_status=$?
30091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30092 (exit $ac_status); }; } &&
30093 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30095 (eval $ac_try) 2>&5
30096 ac_status=$?
30097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30098 (exit $ac_status); }; }; then
30099
ffa0583f 30100 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 30101echo "${ECHO_T}yes" >&6
ffa0583f
RL
30102 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
30103 WXCONFIG_RPATH="-Wl,-R,\$libdir"
30104
a848cd7e
SC
30105else
30106 echo "$as_me: failed program was:" >&5
30107sed 's/^/| /' conftest.$ac_ext >&5
30108
30109
30110 echo "$as_me:$LINENO: result: no" >&5
30111echo "${ECHO_T}no" >&6
30112
30113fi
ac1cb8d3
VS
30114rm -f conftest.err conftest.$ac_objext \
30115 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30116
30117fi
ac1cb8d3
VS
30118rm -f conftest.err conftest.$ac_objext \
30119 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30120 LDFLAGS="$saveLdflags"
30121 else
a848cd7e 30122 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 30123 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
30124 fi
30125 ;;
30126
30127 powerpc-*-darwin* )
0caebc27
MW
30128 install_name_tool=`which install_name_tool`
30129 if test "$install_name_tool" -a -x "$install_name_tool"; then
30130 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
30131 cat <<EOF >change-install-names
a848cd7e
SC
30132#!/bin/sh
30133libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
30134inst_cmd="install_name_tool "
30135for i in \${libnames} ; do
30136 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
30137done
30138\${inst_cmd} \${3}
30139EOF
0caebc27
MW
30140 chmod +x change-install-names
30141 fi
a848cd7e
SC
30142 ;;
30143
30144 *-*-cygwin* | *-*-mingw32* )
30145 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
30146 ;;
30147
81f90336
MW
30148 *-*-hpux* )
30149 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
30150 WXCONFIG_RPATH="-Wl,+b,\$libdir"
30151 ;;
30152
a848cd7e 30153 esac
ceec2216 30154
ffa0583f
RL
30155 if test $wxUSE_RPATH = "no"; then
30156 SAMPLES_RPATH_FLAG=''
30157 SAMPLES_RPATH_POSTLINK=''
30158 WXCONFIG_RPATH=''
30159 fi
30160
30161 SHARED=1
30162
30163else
30164
ceec2216
RL
30165 config_linkage_component="-static"
30166 SHARED=0
ffa0583f 30167
ceec2216 30168fi
a848cd7e 30169
a848cd7e 30170
ceec2216
RL
30171UNICODE=0
30172lib_unicode_suffix=
30173WX_CHARTYPE="ansi"
30174if test "$wxUSE_UNICODE" = "yes"; then
30175 lib_unicode_suffix=u
30176 WX_CHARTYPE="unicode"
30177 UNICODE=1
a848cd7e
SC
30178fi
30179
ceec2216
RL
30180lib_debug_suffix=
30181WX_DEBUGTYPE="release"
30182DEBUG_FLAG=0
30183if test "$wxUSE_DEBUG_FLAG" = "yes"; then
30184 lib_debug_suffix=d
30185 WX_DEBUGTYPE="debug"
30186 DEBUG_FLAG=1
30187fi
a848cd7e 30188
ceec2216
RL
30189WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
30190WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 30191
ceec2216
RL
30192DEBUG_INFO=0
30193if test "$wxUSE_DEBUG_INFO" = "yes"; then
30194 DEBUG_INFO=1
30195fi
a848cd7e 30196
ceec2216 30197WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 30198
ceec2216 30199TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 30200
ceec2216 30201TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 30202
ceec2216
RL
30203if test "$cross_compiling" = "yes"; then
30204 HOST_SUFFIX="-$host_alias"
30205 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
30206 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
30207fi
30208
dd21ced8 30209WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
30210if test "${TOOLKIT_DIR}" = "os2"; then
30211 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
30212else
30213 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
30214fi
ceec2216
RL
30215
30216
30217
1d1af5ea
DE
30218if test "$wxUSE_COCOA" = 1; then
30219
30220
30221 ac_ext=c
30222ac_cpp='$CPP $CPPFLAGS'
30223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30225ac_compiler_gnu=$ac_cv_c_compiler_gnu
30226
30227ac_ext=m
30228
30229 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
30230echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
30231 cat >conftest.$ac_ext <<_ACEOF
30232/* confdefs.h. */
30233_ACEOF
30234cat confdefs.h >>conftest.$ac_ext
30235cat >>conftest.$ac_ext <<_ACEOF
30236/* end confdefs.h. */
30237#include <AppKit/NSEvent.h>
30238#include <CoreFoundation/CoreFoundation.h>
30239
30240int
30241main ()
30242{
30243
30244 ;
30245 return 0;
30246}
30247_ACEOF
30248rm -f conftest.$ac_objext
30249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30250 (eval $ac_compile) 2>conftest.er1
30251 ac_status=$?
30252 grep -v '^ *+' conftest.er1 >conftest.err
30253 rm -f conftest.er1
30254 cat conftest.err >&5
30255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30256 (exit $ac_status); } &&
fb00f58d
JS
30257 { ac_try='test -z "$ac_c_werror_flag"
30258 || test ! -s conftest.err'
1d1af5ea
DE
30259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30260 (eval $ac_try) 2>&5
30261 ac_status=$?
30262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30263 (exit $ac_status); }; } &&
30264 { ac_try='test -s conftest.$ac_objext'
30265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30266 (eval $ac_try) 2>&5
30267 ac_status=$?
30268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30269 (exit $ac_status); }; }; then
30270 echo "$as_me:$LINENO: result: no" >&5
30271echo "${ECHO_T}no" >&6
30272else
30273 echo "$as_me: failed program was:" >&5
30274sed 's/^/| /' conftest.$ac_ext >&5
30275
30276echo "$as_me:$LINENO: result: yes" >&5
30277echo "${ECHO_T}yes" >&6
30278 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
30279echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
30280 cat >conftest.$ac_ext <<_ACEOF
30281/* confdefs.h. */
30282_ACEOF
30283cat confdefs.h >>conftest.$ac_ext
30284cat >>conftest.$ac_ext <<_ACEOF
30285/* end confdefs.h. */
30286#define __Point__ 1
30287#include <AppKit/NSEvent.h>
30288#include <CoreFoundation/CoreFoundation.h>
30289
30290int
30291main ()
30292{
30293
30294 ;
30295 return 0;
30296}
30297_ACEOF
30298rm -f conftest.$ac_objext
30299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30300 (eval $ac_compile) 2>conftest.er1
30301 ac_status=$?
30302 grep -v '^ *+' conftest.er1 >conftest.err
30303 rm -f conftest.er1
30304 cat conftest.err >&5
30305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30306 (exit $ac_status); } &&
fb00f58d
JS
30307 { ac_try='test -z "$ac_c_werror_flag"
30308 || test ! -s conftest.err'
1d1af5ea
DE
30309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30310 (eval $ac_try) 2>&5
30311 ac_status=$?
30312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30313 (exit $ac_status); }; } &&
30314 { ac_try='test -s conftest.$ac_objext'
30315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30316 (eval $ac_try) 2>&5
30317 ac_status=$?
30318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30319 (exit $ac_status); }; }; then
30320 echo "$as_me:$LINENO: result: yes" >&5
30321echo "${ECHO_T}yes" >&6
30322 cat >>confdefs.h <<\_ACEOF
30323#define __Point__ 1
30324_ACEOF
30325
30326
30327else
30328 echo "$as_me: failed program was:" >&5
30329sed 's/^/| /' conftest.$ac_ext >&5
30330
30331{ { echo "$as_me:$LINENO: error: no
30332See \`config.log' for more details." >&5
30333echo "$as_me: error: no
30334See \`config.log' for more details." >&2;}
30335 { (exit 1); exit 1; }; }
30336
30337fi
30338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30339
30340fi
30341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30342 ac_ext=c
30343ac_cpp='$CPP $CPPFLAGS'
30344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30346ac_compiler_gnu=$ac_cv_c_compiler_gnu
30347
30348fi
30349
a848cd7e 30350if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
30351 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
30352 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 30353
a848cd7e 30354 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
30355
30356 # Extract the first word of "Rez", so it can be a program name with args.
30357set dummy Rez; ac_word=$2
30358echo "$as_me:$LINENO: checking for $ac_word" >&5
30359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30360if test "${ac_cv_prog_RESCOMP+set}" = set; then
30361 echo $ECHO_N "(cached) $ECHO_C" >&6
30362else
30363 if test -n "$RESCOMP"; then
30364 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
30365else
30366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30367for as_dir in $PATH
30368do
30369 IFS=$as_save_IFS
30370 test -z "$as_dir" && as_dir=.
30371 for ac_exec_ext in '' $ac_executable_extensions; do
30372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30373 ac_cv_prog_RESCOMP="Rez"
30374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30375 break 2
30376 fi
30377done
30378done
30379
30380 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
30381fi
30382fi
30383RESCOMP=$ac_cv_prog_RESCOMP
30384if test -n "$RESCOMP"; then
30385 echo "$as_me:$LINENO: result: $RESCOMP" >&5
30386echo "${ECHO_T}$RESCOMP" >&6
30387else
30388 echo "$as_me:$LINENO: result: no" >&5
30389echo "${ECHO_T}no" >&6
30390fi
30391
30392 # Extract the first word of "DeRez", so it can be a program name with args.
30393set dummy DeRez; ac_word=$2
30394echo "$as_me:$LINENO: checking for $ac_word" >&5
30395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30396if test "${ac_cv_prog_DEREZ+set}" = set; then
30397 echo $ECHO_N "(cached) $ECHO_C" >&6
30398else
30399 if test -n "$DEREZ"; then
30400 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
30401else
30402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30403for as_dir in $PATH
30404do
30405 IFS=$as_save_IFS
30406 test -z "$as_dir" && as_dir=.
30407 for ac_exec_ext in '' $ac_executable_extensions; do
30408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30409 ac_cv_prog_DEREZ="DeRez"
30410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30411 break 2
30412 fi
30413done
30414done
30415
30416 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
30417fi
30418fi
30419DEREZ=$ac_cv_prog_DEREZ
30420if test -n "$DEREZ"; then
30421 echo "$as_me:$LINENO: result: $DEREZ" >&5
30422echo "${ECHO_T}$DEREZ" >&6
30423else
30424 echo "$as_me:$LINENO: result: no" >&5
30425echo "${ECHO_T}no" >&6
30426fi
30427
30428 # Extract the first word of "SetFile", so it can be a program name with args.
30429set dummy SetFile; ac_word=$2
30430echo "$as_me:$LINENO: checking for $ac_word" >&5
30431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30432if test "${ac_cv_prog_SETFILE+set}" = set; then
30433 echo $ECHO_N "(cached) $ECHO_C" >&6
30434else
30435 if test -n "$SETFILE"; then
30436 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
30437else
30438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30439for as_dir in $PATH
30440do
30441 IFS=$as_save_IFS
30442 test -z "$as_dir" && as_dir=.
30443 for ac_exec_ext in '' $ac_executable_extensions; do
30444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30445 ac_cv_prog_SETFILE="SetFile"
30446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30447 break 2
30448 fi
30449done
30450done
30451
30452 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
30453fi
30454fi
30455SETFILE=$ac_cv_prog_SETFILE
30456if test -n "$SETFILE"; then
30457 echo "$as_me:$LINENO: result: $SETFILE" >&5
30458echo "${ECHO_T}$SETFILE" >&6
30459else
30460 echo "$as_me:$LINENO: result: no" >&5
30461echo "${ECHO_T}no" >&6
30462fi
30463
30464
30465 MACSETFILE="\$(SETFILE)"
30466
30467 if test "$wxUSE_MAC" = 1; then
1a79f136 30468 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 30469
1a79f136 30470 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e
SC
30471 else
30472 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
30473 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
30474 fi
30475else
ffa0583f
RL
30476 MACSETFILE="@true"
30477 MACRESWXCONFIG="@true"
a848cd7e
SC
30478
30479 if test "$wxUSE_PM" = 1; then
30480 MACRESCOMP="emxbind -ep"
30481 else
ffa0583f 30482 MACRESCOMP="@true"
a848cd7e
SC
30483 fi
30484fi
30485
30486
30487
30488echo "$as_me:$LINENO: checking for mode_t" >&5
30489echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
30490if test "${ac_cv_type_mode_t+set}" = set; then
30491 echo $ECHO_N "(cached) $ECHO_C" >&6
30492else
30493 cat >conftest.$ac_ext <<_ACEOF
30494/* confdefs.h. */
30495_ACEOF
30496cat confdefs.h >>conftest.$ac_ext
30497cat >>conftest.$ac_ext <<_ACEOF
30498/* end confdefs.h. */
30499$ac_includes_default
30500int
30501main ()
30502{
30503if ((mode_t *) 0)
30504 return 0;
30505if (sizeof (mode_t))
30506 return 0;
30507 ;
30508 return 0;
30509}
30510_ACEOF
30511rm -f conftest.$ac_objext
30512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30513 (eval $ac_compile) 2>conftest.er1
a848cd7e 30514 ac_status=$?
ac1cb8d3
VS
30515 grep -v '^ *+' conftest.er1 >conftest.err
30516 rm -f conftest.er1
30517 cat conftest.err >&5
a848cd7e
SC
30518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30519 (exit $ac_status); } &&
fb00f58d
JS
30520 { ac_try='test -z "$ac_c_werror_flag"
30521 || test ! -s conftest.err'
ac1cb8d3
VS
30522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30523 (eval $ac_try) 2>&5
30524 ac_status=$?
30525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30526 (exit $ac_status); }; } &&
30527 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30529 (eval $ac_try) 2>&5
30530 ac_status=$?
30531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30532 (exit $ac_status); }; }; then
30533 ac_cv_type_mode_t=yes
30534else
30535 echo "$as_me: failed program was:" >&5
30536sed 's/^/| /' conftest.$ac_ext >&5
30537
30538ac_cv_type_mode_t=no
30539fi
ac1cb8d3 30540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30541fi
30542echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
30543echo "${ECHO_T}$ac_cv_type_mode_t" >&6
30544if test $ac_cv_type_mode_t = yes; then
30545 :
30546else
30547
30548cat >>confdefs.h <<_ACEOF
30549#define mode_t int
30550_ACEOF
30551
30552fi
30553
30554echo "$as_me:$LINENO: checking for off_t" >&5
30555echo $ECHO_N "checking for off_t... $ECHO_C" >&6
30556if test "${ac_cv_type_off_t+set}" = set; then
30557 echo $ECHO_N "(cached) $ECHO_C" >&6
30558else
30559 cat >conftest.$ac_ext <<_ACEOF
30560/* confdefs.h. */
30561_ACEOF
30562cat confdefs.h >>conftest.$ac_ext
30563cat >>conftest.$ac_ext <<_ACEOF
30564/* end confdefs.h. */
30565$ac_includes_default
30566int
30567main ()
30568{
30569if ((off_t *) 0)
30570 return 0;
30571if (sizeof (off_t))
30572 return 0;
30573 ;
30574 return 0;
30575}
30576_ACEOF
30577rm -f conftest.$ac_objext
30578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30579 (eval $ac_compile) 2>conftest.er1
a848cd7e 30580 ac_status=$?
ac1cb8d3
VS
30581 grep -v '^ *+' conftest.er1 >conftest.err
30582 rm -f conftest.er1
30583 cat conftest.err >&5
a848cd7e
SC
30584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30585 (exit $ac_status); } &&
fb00f58d
JS
30586 { ac_try='test -z "$ac_c_werror_flag"
30587 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
30593 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30595 (eval $ac_try) 2>&5
30596 ac_status=$?
30597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30598 (exit $ac_status); }; }; then
30599 ac_cv_type_off_t=yes
30600else
30601 echo "$as_me: failed program was:" >&5
30602sed 's/^/| /' conftest.$ac_ext >&5
30603
30604ac_cv_type_off_t=no
30605fi
ac1cb8d3 30606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30607fi
30608echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
30609echo "${ECHO_T}$ac_cv_type_off_t" >&6
30610if test $ac_cv_type_off_t = yes; then
30611 :
30612else
30613
30614cat >>confdefs.h <<_ACEOF
30615#define off_t long
30616_ACEOF
30617
30618fi
30619
30620echo "$as_me:$LINENO: checking for pid_t" >&5
30621echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
30622if test "${ac_cv_type_pid_t+set}" = set; then
30623 echo $ECHO_N "(cached) $ECHO_C" >&6
30624else
30625 cat >conftest.$ac_ext <<_ACEOF
30626/* confdefs.h. */
30627_ACEOF
30628cat confdefs.h >>conftest.$ac_ext
30629cat >>conftest.$ac_ext <<_ACEOF
30630/* end confdefs.h. */
30631$ac_includes_default
30632int
30633main ()
30634{
30635if ((pid_t *) 0)
30636 return 0;
30637if (sizeof (pid_t))
30638 return 0;
30639 ;
30640 return 0;
30641}
30642_ACEOF
30643rm -f conftest.$ac_objext
30644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30645 (eval $ac_compile) 2>conftest.er1
a848cd7e 30646 ac_status=$?
ac1cb8d3
VS
30647 grep -v '^ *+' conftest.er1 >conftest.err
30648 rm -f conftest.er1
30649 cat conftest.err >&5
a848cd7e
SC
30650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30651 (exit $ac_status); } &&
fb00f58d
JS
30652 { ac_try='test -z "$ac_c_werror_flag"
30653 || test ! -s conftest.err'
ac1cb8d3
VS
30654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30655 (eval $ac_try) 2>&5
30656 ac_status=$?
30657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30658 (exit $ac_status); }; } &&
30659 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30661 (eval $ac_try) 2>&5
30662 ac_status=$?
30663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30664 (exit $ac_status); }; }; then
30665 ac_cv_type_pid_t=yes
30666else
30667 echo "$as_me: failed program was:" >&5
30668sed 's/^/| /' conftest.$ac_ext >&5
30669
30670ac_cv_type_pid_t=no
30671fi
ac1cb8d3 30672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30673fi
30674echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30675echo "${ECHO_T}$ac_cv_type_pid_t" >&6
30676if test $ac_cv_type_pid_t = yes; then
30677 :
30678else
30679
30680cat >>confdefs.h <<_ACEOF
30681#define pid_t int
30682_ACEOF
30683
30684fi
30685
30686echo "$as_me:$LINENO: checking for size_t" >&5
30687echo $ECHO_N "checking for size_t... $ECHO_C" >&6
30688if test "${ac_cv_type_size_t+set}" = set; then
30689 echo $ECHO_N "(cached) $ECHO_C" >&6
30690else
30691 cat >conftest.$ac_ext <<_ACEOF
30692/* confdefs.h. */
30693_ACEOF
30694cat confdefs.h >>conftest.$ac_ext
30695cat >>conftest.$ac_ext <<_ACEOF
30696/* end confdefs.h. */
30697$ac_includes_default
30698int
30699main ()
30700{
30701if ((size_t *) 0)
30702 return 0;
30703if (sizeof (size_t))
30704 return 0;
30705 ;
30706 return 0;
30707}
30708_ACEOF
30709rm -f conftest.$ac_objext
30710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30711 (eval $ac_compile) 2>conftest.er1
a848cd7e 30712 ac_status=$?
ac1cb8d3
VS
30713 grep -v '^ *+' conftest.er1 >conftest.err
30714 rm -f conftest.er1
30715 cat conftest.err >&5
a848cd7e
SC
30716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30717 (exit $ac_status); } &&
fb00f58d
JS
30718 { ac_try='test -z "$ac_c_werror_flag"
30719 || test ! -s conftest.err'
ac1cb8d3
VS
30720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30721 (eval $ac_try) 2>&5
30722 ac_status=$?
30723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30724 (exit $ac_status); }; } &&
30725 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30727 (eval $ac_try) 2>&5
30728 ac_status=$?
30729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30730 (exit $ac_status); }; }; then
30731 ac_cv_type_size_t=yes
30732else
30733 echo "$as_me: failed program was:" >&5
30734sed 's/^/| /' conftest.$ac_ext >&5
30735
30736ac_cv_type_size_t=no
30737fi
ac1cb8d3 30738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30739fi
30740echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30741echo "${ECHO_T}$ac_cv_type_size_t" >&6
30742if test $ac_cv_type_size_t = yes; then
30743 :
30744else
30745
30746cat >>confdefs.h <<_ACEOF
30747#define size_t unsigned
30748_ACEOF
30749
30750fi
30751
30752echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
30753echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
30754if test "${ac_cv_type_uid_t+set}" = set; then
30755 echo $ECHO_N "(cached) $ECHO_C" >&6
30756else
30757 cat >conftest.$ac_ext <<_ACEOF
30758/* confdefs.h. */
30759_ACEOF
30760cat confdefs.h >>conftest.$ac_ext
30761cat >>conftest.$ac_ext <<_ACEOF
30762/* end confdefs.h. */
30763#include <sys/types.h>
30764
30765_ACEOF
30766if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30767 $EGREP "uid_t" >/dev/null 2>&1; then
30768 ac_cv_type_uid_t=yes
30769else
30770 ac_cv_type_uid_t=no
30771fi
30772rm -f conftest*
30773
30774fi
30775echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
30776echo "${ECHO_T}$ac_cv_type_uid_t" >&6
30777if test $ac_cv_type_uid_t = no; then
30778
30779cat >>confdefs.h <<\_ACEOF
30780#define uid_t int
30781_ACEOF
30782
30783
30784cat >>confdefs.h <<\_ACEOF
30785#define gid_t int
30786_ACEOF
30787
30788fi
30789
30790
d51253e8
RL
30791echo "$as_me:$LINENO: checking for ssize_t" >&5
30792echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
30793if test "${ac_cv_type_ssize_t+set}" = set; then
30794 echo $ECHO_N "(cached) $ECHO_C" >&6
30795else
30796 cat >conftest.$ac_ext <<_ACEOF
30797/* confdefs.h. */
30798_ACEOF
30799cat confdefs.h >>conftest.$ac_ext
30800cat >>conftest.$ac_ext <<_ACEOF
30801/* end confdefs.h. */
30802$ac_includes_default
30803int
30804main ()
30805{
30806if ((ssize_t *) 0)
30807 return 0;
30808if (sizeof (ssize_t))
30809 return 0;
30810 ;
30811 return 0;
30812}
30813_ACEOF
30814rm -f conftest.$ac_objext
30815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30816 (eval $ac_compile) 2>conftest.er1
30817 ac_status=$?
30818 grep -v '^ *+' conftest.er1 >conftest.err
30819 rm -f conftest.er1
30820 cat conftest.err >&5
30821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30822 (exit $ac_status); } &&
fb00f58d
JS
30823 { ac_try='test -z "$ac_c_werror_flag"
30824 || test ! -s conftest.err'
d51253e8
RL
30825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30826 (eval $ac_try) 2>&5
30827 ac_status=$?
30828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30829 (exit $ac_status); }; } &&
30830 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
30836 ac_cv_type_ssize_t=yes
30837else
30838 echo "$as_me: failed program was:" >&5
30839sed 's/^/| /' conftest.$ac_ext >&5
30840
30841ac_cv_type_ssize_t=no
30842fi
30843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30844fi
30845echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
30846echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
30847if test $ac_cv_type_ssize_t = yes; then
30848
30849cat >>confdefs.h <<_ACEOF
30850#define HAVE_SSIZE_T 1
30851_ACEOF
30852
30853
30854fi
30855
30856
a848cd7e
SC
30857
30858
30859ac_ext=cc
30860ac_cpp='$CXXCPP $CPPFLAGS'
30861ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30862ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30863ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30864
30865echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
30866echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
30867if test "${wx_cv_size_t_is_uint+set}" = set; then
30868 echo $ECHO_N "(cached) $ECHO_C" >&6
30869else
30870
30871 cat >conftest.$ac_ext <<_ACEOF
30872/* confdefs.h. */
30873_ACEOF
30874cat confdefs.h >>conftest.$ac_ext
30875cat >>conftest.$ac_ext <<_ACEOF
30876/* end confdefs.h. */
30877#include <stddef.h>
30878int
30879main ()
30880{
30881
30882 return 0; }
30883
30884 struct Foo { void foo(size_t); void foo(unsigned int); };
30885
30886 int bar() {
30887
30888 ;
30889 return 0;
30890}
30891_ACEOF
30892rm -f conftest.$ac_objext
30893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30894 (eval $ac_compile) 2>conftest.er1
a848cd7e 30895 ac_status=$?
ac1cb8d3
VS
30896 grep -v '^ *+' conftest.er1 >conftest.err
30897 rm -f conftest.er1
30898 cat conftest.err >&5
a848cd7e
SC
30899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30900 (exit $ac_status); } &&
fb00f58d
JS
30901 { ac_try='test -z "$ac_cxx_werror_flag"
30902 || test ! -s conftest.err'
ac1cb8d3
VS
30903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30904 (eval $ac_try) 2>&5
30905 ac_status=$?
30906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30907 (exit $ac_status); }; } &&
30908 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30910 (eval $ac_try) 2>&5
30911 ac_status=$?
30912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30913 (exit $ac_status); }; }; then
30914 wx_cv_size_t_is_uint=no
30915else
30916 echo "$as_me: failed program was:" >&5
30917sed 's/^/| /' conftest.$ac_ext >&5
30918
30919wx_cv_size_t_is_uint=yes
30920
30921fi
ac1cb8d3 30922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30923
30924
30925fi
30926echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
30927echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
30928
30929if test "$wx_cv_size_t_is_uint" = "yes"; then
30930 cat >>confdefs.h <<\_ACEOF
30931#define wxSIZE_T_IS_UINT 1
30932_ACEOF
30933
30934else
30935 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
30936echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
30937if test "${wx_cv_size_t_is_ulong+set}" = set; then
30938 echo $ECHO_N "(cached) $ECHO_C" >&6
30939else
30940 cat >conftest.$ac_ext <<_ACEOF
30941/* confdefs.h. */
30942_ACEOF
30943cat confdefs.h >>conftest.$ac_ext
30944cat >>conftest.$ac_ext <<_ACEOF
30945/* end confdefs.h. */
30946#include <stddef.h>
30947int
30948main ()
30949{
30950
30951 return 0; }
30952
30953 struct Foo { void foo(size_t); void foo(unsigned long); };
30954
30955 int bar() {
30956
30957 ;
30958 return 0;
30959}
30960_ACEOF
30961rm -f conftest.$ac_objext
30962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30963 (eval $ac_compile) 2>conftest.er1
a848cd7e 30964 ac_status=$?
ac1cb8d3
VS
30965 grep -v '^ *+' conftest.er1 >conftest.err
30966 rm -f conftest.er1
30967 cat conftest.err >&5
a848cd7e
SC
30968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30969 (exit $ac_status); } &&
fb00f58d
JS
30970 { ac_try='test -z "$ac_cxx_werror_flag"
30971 || test ! -s conftest.err'
ac1cb8d3
VS
30972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30973 (eval $ac_try) 2>&5
30974 ac_status=$?
30975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30976 (exit $ac_status); }; } &&
30977 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30979 (eval $ac_try) 2>&5
30980 ac_status=$?
30981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30982 (exit $ac_status); }; }; then
30983 wx_cv_size_t_is_ulong=no
30984else
30985 echo "$as_me: failed program was:" >&5
30986sed 's/^/| /' conftest.$ac_ext >&5
30987
30988wx_cv_size_t_is_ulong=yes
30989
30990fi
ac1cb8d3 30991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30992
30993fi
30994echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
30995echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
30996
30997 if test "$wx_cv_size_t_is_ulong" = "yes"; then
30998 cat >>confdefs.h <<\_ACEOF
30999#define wxSIZE_T_IS_ULONG 1
31000_ACEOF
31001
31002 fi
31003fi
31004
31005ac_ext=c
31006ac_cpp='$CPP $CPPFLAGS'
31007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31009ac_compiler_gnu=$ac_cv_c_compiler_gnu
31010
31011
31012
31013echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
31014echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
31015if test "${wx_cv_struct_pw_gecos+set}" = set; then
31016 echo $ECHO_N "(cached) $ECHO_C" >&6
31017else
31018
31019 cat >conftest.$ac_ext <<_ACEOF
31020/* confdefs.h. */
31021_ACEOF
31022cat confdefs.h >>conftest.$ac_ext
31023cat >>conftest.$ac_ext <<_ACEOF
31024/* end confdefs.h. */
31025#include <pwd.h>
31026int
31027main ()
31028{
31029
31030 char *p;
31031 struct passwd *pw;
31032 p = pw->pw_gecos;
31033
31034 ;
31035 return 0;
31036}
31037_ACEOF
31038rm -f conftest.$ac_objext
31039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31040 (eval $ac_compile) 2>conftest.er1
a848cd7e 31041 ac_status=$?
ac1cb8d3
VS
31042 grep -v '^ *+' conftest.er1 >conftest.err
31043 rm -f conftest.er1
31044 cat conftest.err >&5
a848cd7e
SC
31045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31046 (exit $ac_status); } &&
fb00f58d
JS
31047 { ac_try='test -z "$ac_c_werror_flag"
31048 || test ! -s conftest.err'
ac1cb8d3
VS
31049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31050 (eval $ac_try) 2>&5
31051 ac_status=$?
31052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31053 (exit $ac_status); }; } &&
31054 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31056 (eval $ac_try) 2>&5
31057 ac_status=$?
31058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31059 (exit $ac_status); }; }; then
31060
31061 wx_cv_struct_pw_gecos=yes
31062
31063else
31064 echo "$as_me: failed program was:" >&5
31065sed 's/^/| /' conftest.$ac_ext >&5
31066
31067
31068 wx_cv_struct_pw_gecos=no
31069
31070
31071fi
ac1cb8d3 31072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31073
31074
31075fi
31076echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
31077echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
31078
31079if test "$wx_cv_struct_pw_gecos" = "yes"; then
31080 cat >>confdefs.h <<\_ACEOF
31081#define HAVE_PW_GECOS 1
31082_ACEOF
31083
31084fi
31085
31086
47a7e797 31087if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
31088 cat >>confdefs.h <<\_ACEOF
31089#define wxUSE_WCHAR_T 1
31090_ACEOF
31091
31092
31093 WCSLEN_FOUND=0
31094 WCHAR_LINK=
31095
31096for ac_func in wcslen
31097do
31098as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31099echo "$as_me:$LINENO: checking for $ac_func" >&5
31100echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31101if eval "test \"\${$as_ac_var+set}\" = set"; then
31102 echo $ECHO_N "(cached) $ECHO_C" >&6
31103else
31104 cat >conftest.$ac_ext <<_ACEOF
31105/* confdefs.h. */
31106_ACEOF
31107cat confdefs.h >>conftest.$ac_ext
31108cat >>conftest.$ac_ext <<_ACEOF
31109/* end confdefs.h. */
ac1cb8d3
VS
31110/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31112#define $ac_func innocuous_$ac_func
31113
a848cd7e
SC
31114/* System header to define __stub macros and hopefully few prototypes,
31115 which can conflict with char $ac_func (); below.
31116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31117 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31118
a848cd7e
SC
31119#ifdef __STDC__
31120# include <limits.h>
31121#else
31122# include <assert.h>
31123#endif
ac1cb8d3
VS
31124
31125#undef $ac_func
31126
a848cd7e
SC
31127/* Override any gcc2 internal prototype to avoid an error. */
31128#ifdef __cplusplus
31129extern "C"
31130{
31131#endif
31132/* We use char because int might match the return type of a gcc2
31133 builtin and then its argument prototype would still apply. */
31134char $ac_func ();
31135/* The GNU C library defines this for functions which it implements
31136 to always fail with ENOSYS. Some functions are actually named
31137 something starting with __ and the normal name is an alias. */
31138#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31139choke me
31140#else
31141char (*f) () = $ac_func;
31142#endif
31143#ifdef __cplusplus
31144}
31145#endif
31146
31147int
31148main ()
31149{
31150return f != $ac_func;
31151 ;
31152 return 0;
31153}
31154_ACEOF
31155rm -f conftest.$ac_objext conftest$ac_exeext
31156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31157 (eval $ac_link) 2>conftest.er1
a848cd7e 31158 ac_status=$?
ac1cb8d3
VS
31159 grep -v '^ *+' conftest.er1 >conftest.err
31160 rm -f conftest.er1
31161 cat conftest.err >&5
a848cd7e
SC
31162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31163 (exit $ac_status); } &&
fb00f58d
JS
31164 { ac_try='test -z "$ac_c_werror_flag"
31165 || test ! -s conftest.err'
ac1cb8d3
VS
31166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31167 (eval $ac_try) 2>&5
31168 ac_status=$?
31169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31170 (exit $ac_status); }; } &&
31171 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31173 (eval $ac_try) 2>&5
31174 ac_status=$?
31175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31176 (exit $ac_status); }; }; then
31177 eval "$as_ac_var=yes"
31178else
31179 echo "$as_me: failed program was:" >&5
31180sed 's/^/| /' conftest.$ac_ext >&5
31181
31182eval "$as_ac_var=no"
31183fi
ac1cb8d3
VS
31184rm -f conftest.err conftest.$ac_objext \
31185 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31186fi
31187echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31188echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31189if test `eval echo '${'$as_ac_var'}'` = yes; then
31190 cat >>confdefs.h <<_ACEOF
31191#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31192_ACEOF
31193 WCSLEN_FOUND=1
31194fi
31195done
31196
31197
31198 if test "$WCSLEN_FOUND" = 0; then
31199 if test "$TOOLKIT" = "MSW"; then
31200 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
31201echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
31202if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
31203 echo $ECHO_N "(cached) $ECHO_C" >&6
31204else
31205 ac_check_lib_save_LIBS=$LIBS
31206LIBS="-lmsvcrt $LIBS"
31207cat >conftest.$ac_ext <<_ACEOF
31208/* confdefs.h. */
31209_ACEOF
31210cat confdefs.h >>conftest.$ac_ext
31211cat >>conftest.$ac_ext <<_ACEOF
31212/* end confdefs.h. */
31213
31214/* Override any gcc2 internal prototype to avoid an error. */
31215#ifdef __cplusplus
31216extern "C"
31217#endif
31218/* We use char because int might match the return type of a gcc2
31219 builtin and then its argument prototype would still apply. */
31220char wcslen ();
31221int
31222main ()
31223{
31224wcslen ();
31225 ;
31226 return 0;
31227}
31228_ACEOF
31229rm -f conftest.$ac_objext conftest$ac_exeext
31230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31231 (eval $ac_link) 2>conftest.er1
a848cd7e 31232 ac_status=$?
ac1cb8d3
VS
31233 grep -v '^ *+' conftest.er1 >conftest.err
31234 rm -f conftest.er1
31235 cat conftest.err >&5
a848cd7e
SC
31236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31237 (exit $ac_status); } &&
fb00f58d
JS
31238 { ac_try='test -z "$ac_c_werror_flag"
31239 || test ! -s conftest.err'
ac1cb8d3
VS
31240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31241 (eval $ac_try) 2>&5
31242 ac_status=$?
31243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31244 (exit $ac_status); }; } &&
31245 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31247 (eval $ac_try) 2>&5
31248 ac_status=$?
31249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31250 (exit $ac_status); }; }; then
31251 ac_cv_lib_msvcrt_wcslen=yes
31252else
31253 echo "$as_me: failed program was:" >&5
31254sed 's/^/| /' conftest.$ac_ext >&5
31255
31256ac_cv_lib_msvcrt_wcslen=no
31257fi
ac1cb8d3
VS
31258rm -f conftest.err conftest.$ac_objext \
31259 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31260LIBS=$ac_check_lib_save_LIBS
31261fi
31262echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
31263echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
31264if test $ac_cv_lib_msvcrt_wcslen = yes; then
31265 WCHAR_OK=1
31266fi
31267
31268 else
31269 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
31270echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
31271if test "${ac_cv_lib_w_wcslen+set}" = set; then
31272 echo $ECHO_N "(cached) $ECHO_C" >&6
31273else
31274 ac_check_lib_save_LIBS=$LIBS
31275LIBS="-lw $LIBS"
31276cat >conftest.$ac_ext <<_ACEOF
31277/* confdefs.h. */
31278_ACEOF
31279cat confdefs.h >>conftest.$ac_ext
31280cat >>conftest.$ac_ext <<_ACEOF
31281/* end confdefs.h. */
31282
31283/* Override any gcc2 internal prototype to avoid an error. */
31284#ifdef __cplusplus
31285extern "C"
31286#endif
31287/* We use char because int might match the return type of a gcc2
31288 builtin and then its argument prototype would still apply. */
31289char wcslen ();
31290int
31291main ()
31292{
31293wcslen ();
31294 ;
31295 return 0;
31296}
31297_ACEOF
31298rm -f conftest.$ac_objext conftest$ac_exeext
31299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31300 (eval $ac_link) 2>conftest.er1
a848cd7e 31301 ac_status=$?
ac1cb8d3
VS
31302 grep -v '^ *+' conftest.er1 >conftest.err
31303 rm -f conftest.er1
31304 cat conftest.err >&5
a848cd7e
SC
31305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31306 (exit $ac_status); } &&
fb00f58d
JS
31307 { ac_try='test -z "$ac_c_werror_flag"
31308 || test ! -s conftest.err'
ac1cb8d3
VS
31309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31310 (eval $ac_try) 2>&5
31311 ac_status=$?
31312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31313 (exit $ac_status); }; } &&
31314 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31316 (eval $ac_try) 2>&5
31317 ac_status=$?
31318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31319 (exit $ac_status); }; }; then
31320 ac_cv_lib_w_wcslen=yes
31321else
31322 echo "$as_me: failed program was:" >&5
31323sed 's/^/| /' conftest.$ac_ext >&5
31324
31325ac_cv_lib_w_wcslen=no
31326fi
ac1cb8d3
VS
31327rm -f conftest.err conftest.$ac_objext \
31328 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31329LIBS=$ac_check_lib_save_LIBS
31330fi
31331echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
31332echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
31333if test $ac_cv_lib_w_wcslen = yes; then
31334
31335 WCHAR_LINK=" -lw"
31336 WCSLEN_FOUND=1
31337
31338fi
31339
31340 fi
31341 fi
31342
31343 if test "$WCSLEN_FOUND" = 1; then
31344 cat >>confdefs.h <<\_ACEOF
31345#define HAVE_WCSLEN 1
31346_ACEOF
31347
31348 fi
31349
81f90336 31350 if test "$USE_HPUX" = 1; then
473276a9
VS
31351 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
31352 fi
31353
a848cd7e
SC
31354
31355for ac_func in wcsrtombs
31356do
31357as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31358echo "$as_me:$LINENO: checking for $ac_func" >&5
31359echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31360if eval "test \"\${$as_ac_var+set}\" = set"; then
31361 echo $ECHO_N "(cached) $ECHO_C" >&6
31362else
31363 cat >conftest.$ac_ext <<_ACEOF
31364/* confdefs.h. */
31365_ACEOF
31366cat confdefs.h >>conftest.$ac_ext
31367cat >>conftest.$ac_ext <<_ACEOF
31368/* end confdefs.h. */
ac1cb8d3
VS
31369/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31371#define $ac_func innocuous_$ac_func
31372
a848cd7e
SC
31373/* System header to define __stub macros and hopefully few prototypes,
31374 which can conflict with char $ac_func (); below.
31375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31376 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31377
a848cd7e
SC
31378#ifdef __STDC__
31379# include <limits.h>
31380#else
31381# include <assert.h>
31382#endif
ac1cb8d3
VS
31383
31384#undef $ac_func
31385
a848cd7e
SC
31386/* Override any gcc2 internal prototype to avoid an error. */
31387#ifdef __cplusplus
31388extern "C"
31389{
31390#endif
31391/* We use char because int might match the return type of a gcc2
31392 builtin and then its argument prototype would still apply. */
31393char $ac_func ();
31394/* The GNU C library defines this for functions which it implements
31395 to always fail with ENOSYS. Some functions are actually named
31396 something starting with __ and the normal name is an alias. */
31397#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31398choke me
31399#else
31400char (*f) () = $ac_func;
31401#endif
31402#ifdef __cplusplus
31403}
31404#endif
31405
31406int
31407main ()
31408{
31409return f != $ac_func;
31410 ;
31411 return 0;
31412}
31413_ACEOF
31414rm -f conftest.$ac_objext conftest$ac_exeext
31415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31416 (eval $ac_link) 2>conftest.er1
a848cd7e 31417 ac_status=$?
ac1cb8d3
VS
31418 grep -v '^ *+' conftest.er1 >conftest.err
31419 rm -f conftest.er1
31420 cat conftest.err >&5
a848cd7e
SC
31421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31422 (exit $ac_status); } &&
fb00f58d
JS
31423 { ac_try='test -z "$ac_c_werror_flag"
31424 || test ! -s conftest.err'
ac1cb8d3
VS
31425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31426 (eval $ac_try) 2>&5
31427 ac_status=$?
31428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31429 (exit $ac_status); }; } &&
31430 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31432 (eval $ac_try) 2>&5
31433 ac_status=$?
31434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31435 (exit $ac_status); }; }; then
31436 eval "$as_ac_var=yes"
31437else
31438 echo "$as_me: failed program was:" >&5
31439sed 's/^/| /' conftest.$ac_ext >&5
31440
31441eval "$as_ac_var=no"
31442fi
ac1cb8d3
VS
31443rm -f conftest.err conftest.$ac_objext \
31444 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31445fi
31446echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31447echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31448if test `eval echo '${'$as_ac_var'}'` = yes; then
31449 cat >>confdefs.h <<_ACEOF
31450#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31451_ACEOF
31452
31453fi
31454done
31455
31456else
31457 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
31458echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
31459fi
31460
31461
31462
31463ac_ext=cc
31464ac_cpp='$CXXCPP $CPPFLAGS'
31465ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31466ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31467ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31468
31469
31470
31471for ac_func in vsnprintf
31472do
31473as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31474echo "$as_me:$LINENO: checking for $ac_func" >&5
31475echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31476if eval "test \"\${$as_ac_var+set}\" = set"; then
31477 echo $ECHO_N "(cached) $ECHO_C" >&6
31478else
31479 cat >conftest.$ac_ext <<_ACEOF
31480/* confdefs.h. */
31481_ACEOF
31482cat confdefs.h >>conftest.$ac_ext
31483cat >>conftest.$ac_ext <<_ACEOF
31484/* end confdefs.h. */
ac1cb8d3
VS
31485/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31487#define $ac_func innocuous_$ac_func
31488
a848cd7e
SC
31489/* System header to define __stub macros and hopefully few prototypes,
31490 which can conflict with char $ac_func (); below.
31491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31492 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31493
a848cd7e
SC
31494#ifdef __STDC__
31495# include <limits.h>
31496#else
31497# include <assert.h>
31498#endif
ac1cb8d3
VS
31499
31500#undef $ac_func
31501
a848cd7e
SC
31502/* Override any gcc2 internal prototype to avoid an error. */
31503#ifdef __cplusplus
31504extern "C"
31505{
31506#endif
31507/* We use char because int might match the return type of a gcc2
31508 builtin and then its argument prototype would still apply. */
31509char $ac_func ();
31510/* The GNU C library defines this for functions which it implements
31511 to always fail with ENOSYS. Some functions are actually named
31512 something starting with __ and the normal name is an alias. */
31513#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31514choke me
31515#else
31516char (*f) () = $ac_func;
31517#endif
31518#ifdef __cplusplus
31519}
31520#endif
31521
31522int
31523main ()
31524{
31525return f != $ac_func;
31526 ;
31527 return 0;
31528}
31529_ACEOF
31530rm -f conftest.$ac_objext conftest$ac_exeext
31531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31532 (eval $ac_link) 2>conftest.er1
a848cd7e 31533 ac_status=$?
ac1cb8d3
VS
31534 grep -v '^ *+' conftest.er1 >conftest.err
31535 rm -f conftest.er1
31536 cat conftest.err >&5
a848cd7e
SC
31537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31538 (exit $ac_status); } &&
fb00f58d
JS
31539 { ac_try='test -z "$ac_cxx_werror_flag"
31540 || test ! -s conftest.err'
ac1cb8d3
VS
31541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31542 (eval $ac_try) 2>&5
31543 ac_status=$?
31544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31545 (exit $ac_status); }; } &&
31546 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31548 (eval $ac_try) 2>&5
31549 ac_status=$?
31550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31551 (exit $ac_status); }; }; then
31552 eval "$as_ac_var=yes"
31553else
31554 echo "$as_me: failed program was:" >&5
31555sed 's/^/| /' conftest.$ac_ext >&5
31556
31557eval "$as_ac_var=no"
31558fi
ac1cb8d3
VS
31559rm -f conftest.err conftest.$ac_objext \
31560 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31561fi
31562echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31563echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31564if test `eval echo '${'$as_ac_var'}'` = yes; then
31565 cat >>confdefs.h <<_ACEOF
31566#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31567_ACEOF
31568
31569fi
31570done
31571
31572
31573if test "$ac_cv_func_vsnprintf" = "yes"; then
31574 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
31575echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
31576if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
31577 echo $ECHO_N "(cached) $ECHO_C" >&6
31578else
31579
31580 cat >conftest.$ac_ext <<_ACEOF
31581/* confdefs.h. */
31582_ACEOF
31583cat confdefs.h >>conftest.$ac_ext
31584cat >>conftest.$ac_ext <<_ACEOF
31585/* end confdefs.h. */
31586
31587 #include <stdio.h>
31588 #include <stdarg.h>
31589
31590int
31591main ()
31592{
31593
31594 char *buf;
31595 va_list ap;
31596 vsnprintf(buf, 10u, "%s", ap);
31597
31598 ;
31599 return 0;
31600}
31601_ACEOF
31602rm -f conftest.$ac_objext
31603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31604 (eval $ac_compile) 2>conftest.er1
a848cd7e 31605 ac_status=$?
ac1cb8d3
VS
31606 grep -v '^ *+' conftest.er1 >conftest.err
31607 rm -f conftest.er1
31608 cat conftest.err >&5
a848cd7e
SC
31609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31610 (exit $ac_status); } &&
fb00f58d
JS
31611 { ac_try='test -z "$ac_cxx_werror_flag"
31612 || test ! -s conftest.err'
ac1cb8d3
VS
31613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31614 (eval $ac_try) 2>&5
31615 ac_status=$?
31616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31617 (exit $ac_status); }; } &&
31618 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31620 (eval $ac_try) 2>&5
31621 ac_status=$?
31622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31623 (exit $ac_status); }; }; then
31624 wx_cv_func_vsnprintf_decl=yes
31625else
31626 echo "$as_me: failed program was:" >&5
31627sed 's/^/| /' conftest.$ac_ext >&5
31628
c122b164
DE
31629
31630 cat >conftest.$ac_ext <<_ACEOF
31631/* confdefs.h. */
31632_ACEOF
31633cat confdefs.h >>conftest.$ac_ext
31634cat >>conftest.$ac_ext <<_ACEOF
31635/* end confdefs.h. */
31636
31637 #include <stdio.h>
31638 #include <stdarg.h>
31639 using namespace std;
31640
31641int
31642main ()
31643{
31644
31645 char *buf;
31646 va_list ap;
31647 vsnprintf(buf, 10u, "%s", ap);
31648
31649 ;
31650 return 0;
31651}
31652_ACEOF
31653rm -f conftest.$ac_objext
31654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31655 (eval $ac_compile) 2>conftest.er1
31656 ac_status=$?
31657 grep -v '^ *+' conftest.er1 >conftest.err
31658 rm -f conftest.er1
31659 cat conftest.err >&5
31660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31661 (exit $ac_status); } &&
fb00f58d
JS
31662 { ac_try='test -z "$ac_cxx_werror_flag"
31663 || test ! -s conftest.err'
c122b164
DE
31664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31665 (eval $ac_try) 2>&5
31666 ac_status=$?
31667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31668 (exit $ac_status); }; } &&
31669 { ac_try='test -s conftest.$ac_objext'
31670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31671 (eval $ac_try) 2>&5
31672 ac_status=$?
31673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31674 (exit $ac_status); }; }; then
31675 wx_cv_func_vsnprintf_decl=yes
31676else
31677 echo "$as_me: failed program was:" >&5
31678sed 's/^/| /' conftest.$ac_ext >&5
31679
a848cd7e
SC
31680wx_cv_func_vsnprintf_decl=no
31681
31682fi
ac1cb8d3 31683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31684
31685
c122b164
DE
31686fi
31687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31688
31689
a848cd7e
SC
31690fi
31691echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
31692echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
31693
31694 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
31695 cat >>confdefs.h <<\_ACEOF
31696#define HAVE_VSNPRINTF_DECL 1
31697_ACEOF
31698
31699 fi
31700fi
31701
31702if test "$wxUSE_UNICODE" = yes; then
31703
31704
31705
fbe47c7b
VS
31706
31707
31708
31709for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
31710do
31711as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31712echo "$as_me:$LINENO: checking for $ac_func" >&5
31713echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31714if eval "test \"\${$as_ac_var+set}\" = set"; then
31715 echo $ECHO_N "(cached) $ECHO_C" >&6
31716else
31717 cat >conftest.$ac_ext <<_ACEOF
31718/* confdefs.h. */
31719_ACEOF
31720cat confdefs.h >>conftest.$ac_ext
31721cat >>conftest.$ac_ext <<_ACEOF
31722/* end confdefs.h. */
ac1cb8d3
VS
31723/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31725#define $ac_func innocuous_$ac_func
31726
a848cd7e
SC
31727/* System header to define __stub macros and hopefully few prototypes,
31728 which can conflict with char $ac_func (); below.
31729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31730 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31731
a848cd7e
SC
31732#ifdef __STDC__
31733# include <limits.h>
31734#else
31735# include <assert.h>
31736#endif
ac1cb8d3
VS
31737
31738#undef $ac_func
31739
a848cd7e
SC
31740/* Override any gcc2 internal prototype to avoid an error. */
31741#ifdef __cplusplus
31742extern "C"
31743{
31744#endif
31745/* We use char because int might match the return type of a gcc2
31746 builtin and then its argument prototype would still apply. */
31747char $ac_func ();
31748/* The GNU C library defines this for functions which it implements
31749 to always fail with ENOSYS. Some functions are actually named
31750 something starting with __ and the normal name is an alias. */
31751#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31752choke me
31753#else
31754char (*f) () = $ac_func;
31755#endif
31756#ifdef __cplusplus
31757}
31758#endif
31759
31760int
31761main ()
31762{
31763return f != $ac_func;
31764 ;
31765 return 0;
31766}
31767_ACEOF
31768rm -f conftest.$ac_objext conftest$ac_exeext
31769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31770 (eval $ac_link) 2>conftest.er1
a848cd7e 31771 ac_status=$?
ac1cb8d3
VS
31772 grep -v '^ *+' conftest.er1 >conftest.err
31773 rm -f conftest.er1
31774 cat conftest.err >&5
a848cd7e
SC
31775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31776 (exit $ac_status); } &&
fb00f58d
JS
31777 { ac_try='test -z "$ac_cxx_werror_flag"
31778 || test ! -s conftest.err'
ac1cb8d3
VS
31779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31780 (eval $ac_try) 2>&5
31781 ac_status=$?
31782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31783 (exit $ac_status); }; } &&
31784 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31786 (eval $ac_try) 2>&5
31787 ac_status=$?
31788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31789 (exit $ac_status); }; }; then
31790 eval "$as_ac_var=yes"
31791else
31792 echo "$as_me: failed program was:" >&5
31793sed 's/^/| /' conftest.$ac_ext >&5
31794
31795eval "$as_ac_var=no"
31796fi
ac1cb8d3
VS
31797rm -f conftest.err conftest.$ac_objext \
31798 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31799fi
31800echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31801echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31802if test `eval echo '${'$as_ac_var'}'` = yes; then
31803 cat >>confdefs.h <<_ACEOF
31804#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31805_ACEOF
31806
31807fi
31808done
31809
31810
31811 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
31812echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
31813 cat >conftest.$ac_ext <<_ACEOF
31814/* confdefs.h. */
31815_ACEOF
31816cat confdefs.h >>conftest.$ac_ext
31817cat >>conftest.$ac_ext <<_ACEOF
31818/* end confdefs.h. */
31819#include <wchar.h>
31820int
31821main ()
31822{
31823&_vsnwprintf;
31824 ;
31825 return 0;
31826}
31827_ACEOF
31828rm -f conftest.$ac_objext
31829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31830 (eval $ac_compile) 2>conftest.er1
a848cd7e 31831 ac_status=$?
ac1cb8d3
VS
31832 grep -v '^ *+' conftest.er1 >conftest.err
31833 rm -f conftest.er1
31834 cat conftest.err >&5
a848cd7e
SC
31835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31836 (exit $ac_status); } &&
fb00f58d
JS
31837 { ac_try='test -z "$ac_cxx_werror_flag"
31838 || test ! -s conftest.err'
ac1cb8d3
VS
31839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31840 (eval $ac_try) 2>&5
31841 ac_status=$?
31842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31843 (exit $ac_status); }; } &&
31844 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31846 (eval $ac_try) 2>&5
31847 ac_status=$?
31848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31849 (exit $ac_status); }; }; then
31850 echo "$as_me:$LINENO: result: yes" >&5
31851echo "${ECHO_T}yes" >&6
31852 cat >>confdefs.h <<\_ACEOF
31853#define HAVE__VSNWPRINTF 1
31854_ACEOF
31855
31856else
31857 echo "$as_me: failed program was:" >&5
31858sed 's/^/| /' conftest.$ac_ext >&5
31859
31860echo "$as_me:$LINENO: result: no" >&5
31861echo "${ECHO_T}no" >&6
31862fi
ac1cb8d3 31863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
31864fi
31865
31866ac_ext=c
31867ac_cpp='$CPP $CPPFLAGS'
31868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31870ac_compiler_gnu=$ac_cv_c_compiler_gnu
31871
31872
31873
31874
31875if test "$TOOLKIT" != "MSW"; then
31876
31877
31878
31879
31880ac_ext=cc
31881ac_cpp='$CXXCPP $CPPFLAGS'
31882ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31883ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31884ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31885
31886
31887
31888
31889# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
31890if test "${with_libiconv_prefix+set}" = set; then
31891 withval="$with_libiconv_prefix"
31892
31893 for dir in `echo "$withval" | tr : ' '`; do
31894 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
31895 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
31896 done
31897
31898fi;
31899
31900 echo "$as_me:$LINENO: checking for iconv" >&5
31901echo $ECHO_N "checking for iconv... $ECHO_C" >&6
31902if test "${am_cv_func_iconv+set}" = set; then
31903 echo $ECHO_N "(cached) $ECHO_C" >&6
31904else
31905
31906 am_cv_func_iconv="no, consider installing GNU libiconv"
31907 am_cv_lib_iconv=no
31908 cat >conftest.$ac_ext <<_ACEOF
31909/* confdefs.h. */
31910_ACEOF
31911cat confdefs.h >>conftest.$ac_ext
31912cat >>conftest.$ac_ext <<_ACEOF
31913/* end confdefs.h. */
31914#include <stdlib.h>
31915#include <iconv.h>
31916int
31917main ()
31918{
31919iconv_t cd = iconv_open("","");
31920 iconv(cd,NULL,NULL,NULL,NULL);
31921 iconv_close(cd);
31922 ;
31923 return 0;
31924}
31925_ACEOF
31926rm -f conftest.$ac_objext conftest$ac_exeext
31927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31928 (eval $ac_link) 2>conftest.er1
a848cd7e 31929 ac_status=$?
ac1cb8d3
VS
31930 grep -v '^ *+' conftest.er1 >conftest.err
31931 rm -f conftest.er1
31932 cat conftest.err >&5
a848cd7e
SC
31933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31934 (exit $ac_status); } &&
fb00f58d
JS
31935 { ac_try='test -z "$ac_cxx_werror_flag"
31936 || test ! -s conftest.err'
ac1cb8d3
VS
31937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31938 (eval $ac_try) 2>&5
31939 ac_status=$?
31940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31941 (exit $ac_status); }; } &&
31942 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31944 (eval $ac_try) 2>&5
31945 ac_status=$?
31946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31947 (exit $ac_status); }; }; then
31948 am_cv_func_iconv=yes
31949else
31950 echo "$as_me: failed program was:" >&5
31951sed 's/^/| /' conftest.$ac_ext >&5
31952
31953fi
ac1cb8d3
VS
31954rm -f conftest.err conftest.$ac_objext \
31955 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31956 if test "$am_cv_func_iconv" != yes; then
31957 am_save_LIBS="$LIBS"
31958 LIBS="$LIBS -liconv"
31959 cat >conftest.$ac_ext <<_ACEOF
31960/* confdefs.h. */
31961_ACEOF
31962cat confdefs.h >>conftest.$ac_ext
31963cat >>conftest.$ac_ext <<_ACEOF
31964/* end confdefs.h. */
31965#include <stdlib.h>
31966#include <iconv.h>
31967int
31968main ()
31969{
31970iconv_t cd = iconv_open("","");
31971 iconv(cd,NULL,NULL,NULL,NULL);
31972 iconv_close(cd);
31973 ;
31974 return 0;
31975}
31976_ACEOF
31977rm -f conftest.$ac_objext conftest$ac_exeext
31978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31979 (eval $ac_link) 2>conftest.er1
a848cd7e 31980 ac_status=$?
ac1cb8d3
VS
31981 grep -v '^ *+' conftest.er1 >conftest.err
31982 rm -f conftest.er1
31983 cat conftest.err >&5
a848cd7e
SC
31984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31985 (exit $ac_status); } &&
fb00f58d
JS
31986 { ac_try='test -z "$ac_cxx_werror_flag"
31987 || test ! -s conftest.err'
ac1cb8d3
VS
31988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31989 (eval $ac_try) 2>&5
31990 ac_status=$?
31991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31992 (exit $ac_status); }; } &&
31993 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31995 (eval $ac_try) 2>&5
31996 ac_status=$?
31997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31998 (exit $ac_status); }; }; then
31999 am_cv_lib_iconv=yes
32000 am_cv_func_iconv=yes
32001else
32002 echo "$as_me: failed program was:" >&5
32003sed 's/^/| /' conftest.$ac_ext >&5
32004
32005fi
ac1cb8d3
VS
32006rm -f conftest.err conftest.$ac_objext \
32007 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32008 LIBS="$am_save_LIBS"
32009 fi
32010
32011fi
32012echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
32013echo "${ECHO_T}$am_cv_func_iconv" >&6
32014 if test "$am_cv_func_iconv" = yes; then
32015
32016cat >>confdefs.h <<\_ACEOF
32017#define HAVE_ICONV 1
32018_ACEOF
32019
32020 echo "$as_me:$LINENO: checking if iconv needs const" >&5
32021echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
32022if test "${wx_cv_func_iconv_const+set}" = set; then
32023 echo $ECHO_N "(cached) $ECHO_C" >&6
32024else
32025 cat >conftest.$ac_ext <<_ACEOF
32026/* confdefs.h. */
32027_ACEOF
32028cat confdefs.h >>conftest.$ac_ext
32029cat >>conftest.$ac_ext <<_ACEOF
32030/* end confdefs.h. */
32031
32032#include <stdlib.h>
32033#include <iconv.h>
32034extern
32035#ifdef __cplusplus
32036"C"
32037#endif
32038#if defined(__STDC__) || defined(__cplusplus)
32039size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
32040#else
32041size_t iconv();
32042#endif
32043
32044int
32045main ()
32046{
32047
32048 ;
32049 return 0;
32050}
32051_ACEOF
32052rm -f conftest.$ac_objext
32053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32054 (eval $ac_compile) 2>conftest.er1
a848cd7e 32055 ac_status=$?
ac1cb8d3
VS
32056 grep -v '^ *+' conftest.er1 >conftest.err
32057 rm -f conftest.er1
32058 cat conftest.err >&5
a848cd7e
SC
32059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32060 (exit $ac_status); } &&
fb00f58d
JS
32061 { ac_try='test -z "$ac_cxx_werror_flag"
32062 || test ! -s conftest.err'
ac1cb8d3
VS
32063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32064 (eval $ac_try) 2>&5
32065 ac_status=$?
32066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32067 (exit $ac_status); }; } &&
32068 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32070 (eval $ac_try) 2>&5
32071 ac_status=$?
32072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32073 (exit $ac_status); }; }; then
32074 wx_cv_func_iconv_const="no"
32075else
32076 echo "$as_me: failed program was:" >&5
32077sed 's/^/| /' conftest.$ac_ext >&5
32078
32079wx_cv_func_iconv_const="yes"
32080
32081fi
ac1cb8d3 32082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32083
32084fi
32085echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
32086echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
32087
32088 iconv_const=
32089 if test "x$wx_cv_func_iconv_const" = "xyes"; then
32090 iconv_const="const"
32091 fi
32092
32093
32094cat >>confdefs.h <<_ACEOF
32095#define ICONV_CONST $iconv_const
32096_ACEOF
32097
32098 fi
32099 LIBICONV=
32100 if test "$am_cv_lib_iconv" = yes; then
32101 LIBICONV="-liconv"
32102 fi
32103
32104
32105LIBS="$LIBICONV $LIBS"
32106ac_ext=c
32107ac_cpp='$CPP $CPPFLAGS'
32108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32110ac_compiler_gnu=$ac_cv_c_compiler_gnu
32111
32112
32113if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
32114
32115for ac_func in sigaction
32116do
32117as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32118echo "$as_me:$LINENO: checking for $ac_func" >&5
32119echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32120if eval "test \"\${$as_ac_var+set}\" = set"; then
32121 echo $ECHO_N "(cached) $ECHO_C" >&6
32122else
32123 cat >conftest.$ac_ext <<_ACEOF
32124/* confdefs.h. */
32125_ACEOF
32126cat confdefs.h >>conftest.$ac_ext
32127cat >>conftest.$ac_ext <<_ACEOF
32128/* end confdefs.h. */
ac1cb8d3
VS
32129/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32131#define $ac_func innocuous_$ac_func
32132
a848cd7e
SC
32133/* System header to define __stub macros and hopefully few prototypes,
32134 which can conflict with char $ac_func (); below.
32135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32136 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32137
a848cd7e
SC
32138#ifdef __STDC__
32139# include <limits.h>
32140#else
32141# include <assert.h>
32142#endif
ac1cb8d3
VS
32143
32144#undef $ac_func
32145
a848cd7e
SC
32146/* Override any gcc2 internal prototype to avoid an error. */
32147#ifdef __cplusplus
32148extern "C"
32149{
32150#endif
32151/* We use char because int might match the return type of a gcc2
32152 builtin and then its argument prototype would still apply. */
32153char $ac_func ();
32154/* The GNU C library defines this for functions which it implements
32155 to always fail with ENOSYS. Some functions are actually named
32156 something starting with __ and the normal name is an alias. */
32157#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32158choke me
32159#else
32160char (*f) () = $ac_func;
32161#endif
32162#ifdef __cplusplus
32163}
32164#endif
32165
32166int
32167main ()
32168{
32169return f != $ac_func;
32170 ;
32171 return 0;
32172}
32173_ACEOF
32174rm -f conftest.$ac_objext conftest$ac_exeext
32175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32176 (eval $ac_link) 2>conftest.er1
a848cd7e 32177 ac_status=$?
ac1cb8d3
VS
32178 grep -v '^ *+' conftest.er1 >conftest.err
32179 rm -f conftest.er1
32180 cat conftest.err >&5
a848cd7e
SC
32181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32182 (exit $ac_status); } &&
fb00f58d
JS
32183 { ac_try='test -z "$ac_c_werror_flag"
32184 || test ! -s conftest.err'
ac1cb8d3
VS
32185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32186 (eval $ac_try) 2>&5
32187 ac_status=$?
32188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32189 (exit $ac_status); }; } &&
32190 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32192 (eval $ac_try) 2>&5
32193 ac_status=$?
32194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32195 (exit $ac_status); }; }; then
32196 eval "$as_ac_var=yes"
32197else
32198 echo "$as_me: failed program was:" >&5
32199sed 's/^/| /' conftest.$ac_ext >&5
32200
32201eval "$as_ac_var=no"
32202fi
ac1cb8d3
VS
32203rm -f conftest.err conftest.$ac_objext \
32204 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32205fi
32206echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32207echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32208if test `eval echo '${'$as_ac_var'}'` = yes; then
32209 cat >>confdefs.h <<_ACEOF
32210#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32211_ACEOF
32212
32213fi
32214done
32215
32216
32217 if test "$ac_cv_func_sigaction" = "no"; then
32218 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
32219echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
32220 wxUSE_ON_FATAL_EXCEPTION=no
32221 fi
32222
32223 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
32224
32225
32226 ac_ext=cc
32227ac_cpp='$CXXCPP $CPPFLAGS'
32228ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32229ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32230ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32231
32232
32233 echo "$as_me:$LINENO: checking for sa_handler type" >&5
32234echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
32235if test "${wx_cv_type_sa_handler+set}" = set; then
32236 echo $ECHO_N "(cached) $ECHO_C" >&6
32237else
32238
32239 cat >conftest.$ac_ext <<_ACEOF
32240/* confdefs.h. */
32241_ACEOF
32242cat confdefs.h >>conftest.$ac_ext
32243cat >>conftest.$ac_ext <<_ACEOF
32244/* end confdefs.h. */
32245#include <signal.h>
32246int
32247main ()
32248{
32249
32250 extern void testSigHandler(int);
32251
32252 struct sigaction sa;
32253 sa.sa_handler = testSigHandler;
32254
32255 ;
32256 return 0;
32257}
32258_ACEOF
32259rm -f conftest.$ac_objext
32260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32261 (eval $ac_compile) 2>conftest.er1
a848cd7e 32262 ac_status=$?
ac1cb8d3
VS
32263 grep -v '^ *+' conftest.er1 >conftest.err
32264 rm -f conftest.er1
32265 cat conftest.err >&5
a848cd7e
SC
32266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32267 (exit $ac_status); } &&
fb00f58d
JS
32268 { ac_try='test -z "$ac_cxx_werror_flag"
32269 || test ! -s conftest.err'
ac1cb8d3
VS
32270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32271 (eval $ac_try) 2>&5
32272 ac_status=$?
32273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32274 (exit $ac_status); }; } &&
32275 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32277 (eval $ac_try) 2>&5
32278 ac_status=$?
32279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32280 (exit $ac_status); }; }; then
32281
32282 wx_cv_type_sa_handler=int
32283
32284else
32285 echo "$as_me: failed program was:" >&5
32286sed 's/^/| /' conftest.$ac_ext >&5
32287
32288
32289 wx_cv_type_sa_handler=void
32290
32291fi
ac1cb8d3 32292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32293
32294fi
32295echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
32296echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
32297
32298 ac_ext=c
32299ac_cpp='$CPP $CPPFLAGS'
32300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32302ac_compiler_gnu=$ac_cv_c_compiler_gnu
32303
32304
32305 cat >>confdefs.h <<_ACEOF
32306#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
32307_ACEOF
32308
32309 fi
32310fi
32311
eaff0f0d
VZ
32312if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
32313
32314
32315 ac_ext=cc
32316ac_cpp='$CXXCPP $CPPFLAGS'
32317ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32318ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32319ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32320
32321
32322 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
32323echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
32324if test "${wx_cv_func_backtrace+set}" = set; then
32325 echo $ECHO_N "(cached) $ECHO_C" >&6
32326else
32327
32328 cat >conftest.$ac_ext <<_ACEOF
32329/* confdefs.h. */
32330_ACEOF
32331cat confdefs.h >>conftest.$ac_ext
32332cat >>conftest.$ac_ext <<_ACEOF
32333/* end confdefs.h. */
32334#include <execinfo.h>
32335int
32336main ()
32337{
32338
32339 void *trace[1];
32340 char **messages;
32341
32342 backtrace(trace, 1);
32343 messages = backtrace_symbols(trace, 1);
32344
32345 ;
32346 return 0;
32347}
32348_ACEOF
32349rm -f conftest.$ac_objext
32350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32351 (eval $ac_compile) 2>conftest.er1
32352 ac_status=$?
32353 grep -v '^ *+' conftest.er1 >conftest.err
32354 rm -f conftest.er1
32355 cat conftest.err >&5
32356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32357 (exit $ac_status); } &&
fb00f58d
JS
32358 { ac_try='test -z "$ac_cxx_werror_flag"
32359 || test ! -s conftest.err'
eaff0f0d
VZ
32360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32361 (eval $ac_try) 2>&5
32362 ac_status=$?
32363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32364 (exit $ac_status); }; } &&
32365 { ac_try='test -s conftest.$ac_objext'
32366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32367 (eval $ac_try) 2>&5
32368 ac_status=$?
32369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32370 (exit $ac_status); }; }; then
32371 wx_cv_func_backtrace=yes
32372else
32373 echo "$as_me: failed program was:" >&5
32374sed 's/^/| /' conftest.$ac_ext >&5
32375
32376wx_cv_func_backtrace=no
32377
32378fi
32379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32380
32381
32382fi
32383echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
32384echo "${ECHO_T}$wx_cv_func_backtrace" >&6
32385
32386
32387 if test "$wx_cv_func_backtrace" = "no"; then
32388 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
32389echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
32390 wxUSE_STACKWALKER=no
32391 else
32392 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
32393echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
32394if test "${wx_cv_func_cxa_demangle+set}" = set; then
32395 echo $ECHO_N "(cached) $ECHO_C" >&6
32396else
32397
32398 cat >conftest.$ac_ext <<_ACEOF
32399/* confdefs.h. */
32400_ACEOF
32401cat confdefs.h >>conftest.$ac_ext
32402cat >>conftest.$ac_ext <<_ACEOF
32403/* end confdefs.h. */
32404#include <cxxabi.h>
32405int
32406main ()
32407{
32408
32409 int rc;
32410 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
32411
32412 ;
32413 return 0;
32414}
32415_ACEOF
dfe0c803
JS
32416rm -f conftest.$ac_objext conftest$ac_exeext
32417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32418 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
32419 ac_status=$?
32420 grep -v '^ *+' conftest.er1 >conftest.err
32421 rm -f conftest.er1
32422 cat conftest.err >&5
32423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32424 (exit $ac_status); } &&
fb00f58d
JS
32425 { ac_try='test -z "$ac_cxx_werror_flag"
32426 || 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); }; } &&
dfe0c803 32432 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
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_cxa_demangle=yes
32439else
32440 echo "$as_me: failed program was:" >&5
32441sed 's/^/| /' conftest.$ac_ext >&5
32442
32443wx_cv_func_cxa_demangle=no
32444
32445fi
dfe0c803
JS
32446rm -f conftest.err conftest.$ac_objext \
32447 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
32448
32449
32450fi
32451echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
32452echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
32453
32454 if test "$wx_cv_func_cxa_demangle" = "yes"; then
32455 cat >>confdefs.h <<\_ACEOF
32456#define HAVE_CXA_DEMANGLE 1
32457_ACEOF
32458
32459 fi
32460 fi
32461
32462 ac_ext=c
32463ac_cpp='$CPP $CPPFLAGS'
32464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32466ac_compiler_gnu=$ac_cv_c_compiler_gnu
32467
32468fi
32469
898beab1
DE
32470if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
32471 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
32472echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
32473 wxUSE_STACKWALKER=no
32474fi
32475
32476
a848cd7e
SC
32477
32478
32479for ac_func in mkstemp mktemp
32480do
32481as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32482echo "$as_me:$LINENO: checking for $ac_func" >&5
32483echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32484if eval "test \"\${$as_ac_var+set}\" = set"; then
32485 echo $ECHO_N "(cached) $ECHO_C" >&6
32486else
32487 cat >conftest.$ac_ext <<_ACEOF
32488/* confdefs.h. */
32489_ACEOF
32490cat confdefs.h >>conftest.$ac_ext
32491cat >>conftest.$ac_ext <<_ACEOF
32492/* end confdefs.h. */
ac1cb8d3
VS
32493/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32495#define $ac_func innocuous_$ac_func
32496
a848cd7e
SC
32497/* System header to define __stub macros and hopefully few prototypes,
32498 which can conflict with char $ac_func (); below.
32499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32500 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32501
a848cd7e
SC
32502#ifdef __STDC__
32503# include <limits.h>
32504#else
32505# include <assert.h>
32506#endif
ac1cb8d3
VS
32507
32508#undef $ac_func
32509
a848cd7e
SC
32510/* Override any gcc2 internal prototype to avoid an error. */
32511#ifdef __cplusplus
32512extern "C"
32513{
32514#endif
32515/* We use char because int might match the return type of a gcc2
32516 builtin and then its argument prototype would still apply. */
32517char $ac_func ();
32518/* The GNU C library defines this for functions which it implements
32519 to always fail with ENOSYS. Some functions are actually named
32520 something starting with __ and the normal name is an alias. */
32521#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32522choke me
32523#else
32524char (*f) () = $ac_func;
32525#endif
32526#ifdef __cplusplus
32527}
32528#endif
32529
32530int
32531main ()
32532{
32533return f != $ac_func;
32534 ;
32535 return 0;
32536}
32537_ACEOF
32538rm -f conftest.$ac_objext conftest$ac_exeext
32539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32540 (eval $ac_link) 2>conftest.er1
a848cd7e 32541 ac_status=$?
ac1cb8d3
VS
32542 grep -v '^ *+' conftest.er1 >conftest.err
32543 rm -f conftest.er1
32544 cat conftest.err >&5
a848cd7e
SC
32545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32546 (exit $ac_status); } &&
fb00f58d
JS
32547 { ac_try='test -z "$ac_c_werror_flag"
32548 || test ! -s conftest.err'
ac1cb8d3
VS
32549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32550 (eval $ac_try) 2>&5
32551 ac_status=$?
32552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32553 (exit $ac_status); }; } &&
32554 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32556 (eval $ac_try) 2>&5
32557 ac_status=$?
32558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32559 (exit $ac_status); }; }; then
32560 eval "$as_ac_var=yes"
32561else
32562 echo "$as_me: failed program was:" >&5
32563sed 's/^/| /' conftest.$ac_ext >&5
32564
32565eval "$as_ac_var=no"
32566fi
ac1cb8d3
VS
32567rm -f conftest.err conftest.$ac_objext \
32568 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32569fi
32570echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32571echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32572if test `eval echo '${'$as_ac_var'}'` = yes; then
32573 cat >>confdefs.h <<_ACEOF
32574#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32575_ACEOF
32576 break
32577fi
32578done
32579
32580
32581echo "$as_me:$LINENO: checking for statfs" >&5
32582echo $ECHO_N "checking for statfs... $ECHO_C" >&6
32583if test "${wx_cv_func_statfs+set}" = set; then
32584 echo $ECHO_N "(cached) $ECHO_C" >&6
32585else
32586 cat >conftest.$ac_ext <<_ACEOF
32587/* confdefs.h. */
32588_ACEOF
32589cat confdefs.h >>conftest.$ac_ext
32590cat >>conftest.$ac_ext <<_ACEOF
32591/* end confdefs.h. */
32592
32593 #if defined(__BSD__)
32594 #include <sys/param.h>
32595 #include <sys/mount.h>
32596 #else
32597 #include <sys/vfs.h>
32598 #endif
32599
32600int
32601main ()
32602{
32603
32604 long l;
32605 struct statfs fs;
32606 statfs("/", &fs);
32607 l = fs.f_bsize;
32608 l += fs.f_blocks;
32609 l += fs.f_bavail;
32610
32611 ;
32612 return 0;
32613}
32614_ACEOF
32615rm -f conftest.$ac_objext
32616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32617 (eval $ac_compile) 2>conftest.er1
a848cd7e 32618 ac_status=$?
ac1cb8d3
VS
32619 grep -v '^ *+' conftest.er1 >conftest.err
32620 rm -f conftest.er1
32621 cat conftest.err >&5
a848cd7e
SC
32622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32623 (exit $ac_status); } &&
fb00f58d
JS
32624 { ac_try='test -z "$ac_c_werror_flag"
32625 || test ! -s conftest.err'
ac1cb8d3
VS
32626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32627 (eval $ac_try) 2>&5
32628 ac_status=$?
32629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32630 (exit $ac_status); }; } &&
32631 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32633 (eval $ac_try) 2>&5
32634 ac_status=$?
32635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32636 (exit $ac_status); }; }; then
32637
32638 wx_cv_func_statfs=yes
32639
32640else
32641 echo "$as_me: failed program was:" >&5
32642sed 's/^/| /' conftest.$ac_ext >&5
32643
32644
32645 wx_cv_func_statfs=no
32646
32647
32648fi
ac1cb8d3 32649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32650
32651fi
32652echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
32653echo "${ECHO_T}$wx_cv_func_statfs" >&6
32654
32655if test "$wx_cv_func_statfs" = "yes"; then
32656 wx_cv_type_statvfs_t="struct statfs"
32657 cat >>confdefs.h <<\_ACEOF
32658#define HAVE_STATFS 1
32659_ACEOF
32660
32661else
32662 echo "$as_me:$LINENO: checking for statvfs" >&5
32663echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
32664if test "${wx_cv_func_statvfs+set}" = set; then
32665 echo $ECHO_N "(cached) $ECHO_C" >&6
32666else
32667 cat >conftest.$ac_ext <<_ACEOF
32668/* confdefs.h. */
32669_ACEOF
32670cat confdefs.h >>conftest.$ac_ext
32671cat >>conftest.$ac_ext <<_ACEOF
32672/* end confdefs.h. */
32673
32674 #include <stddef.h>
32675 #include <sys/statvfs.h>
32676
32677int
32678main ()
32679{
32680
32681 statvfs("/", NULL);
32682
32683 ;
32684 return 0;
32685}
32686_ACEOF
32687rm -f conftest.$ac_objext
32688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32689 (eval $ac_compile) 2>conftest.er1
a848cd7e 32690 ac_status=$?
ac1cb8d3
VS
32691 grep -v '^ *+' conftest.er1 >conftest.err
32692 rm -f conftest.er1
32693 cat conftest.err >&5
a848cd7e
SC
32694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32695 (exit $ac_status); } &&
fb00f58d
JS
32696 { ac_try='test -z "$ac_c_werror_flag"
32697 || test ! -s conftest.err'
ac1cb8d3
VS
32698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32699 (eval $ac_try) 2>&5
32700 ac_status=$?
32701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32702 (exit $ac_status); }; } &&
32703 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32705 (eval $ac_try) 2>&5
32706 ac_status=$?
32707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32708 (exit $ac_status); }; }; then
32709 wx_cv_func_statvfs=yes
32710else
32711 echo "$as_me: failed program was:" >&5
32712sed 's/^/| /' conftest.$ac_ext >&5
32713
32714wx_cv_func_statvfs=no
32715
32716fi
ac1cb8d3 32717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32718
32719fi
32720echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
32721echo "${ECHO_T}$wx_cv_func_statvfs" >&6
32722
32723 if test "$wx_cv_func_statvfs" = "yes"; then
32724
32725
32726 ac_ext=cc
32727ac_cpp='$CXXCPP $CPPFLAGS'
32728ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32729ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32730ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32731
32732
32733 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
32734echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
32735if test "${wx_cv_type_statvfs_t+set}" = set; then
32736 echo $ECHO_N "(cached) $ECHO_C" >&6
32737else
32738 cat >conftest.$ac_ext <<_ACEOF
32739/* confdefs.h. */
32740_ACEOF
32741cat confdefs.h >>conftest.$ac_ext
32742cat >>conftest.$ac_ext <<_ACEOF
32743/* end confdefs.h. */
32744
32745 #include <sys/statvfs.h>
32746
32747int
32748main ()
32749{
32750
32751 long l;
32752 statvfs_t fs;
32753 statvfs("/", &fs);
32754 l = fs.f_bsize;
32755 l += fs.f_blocks;
32756 l += fs.f_bavail;
32757
32758 ;
32759 return 0;
32760}
32761_ACEOF
32762rm -f conftest.$ac_objext
32763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32764 (eval $ac_compile) 2>conftest.er1
a848cd7e 32765 ac_status=$?
ac1cb8d3
VS
32766 grep -v '^ *+' conftest.er1 >conftest.err
32767 rm -f conftest.er1
32768 cat conftest.err >&5
a848cd7e
SC
32769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32770 (exit $ac_status); } &&
fb00f58d
JS
32771 { ac_try='test -z "$ac_cxx_werror_flag"
32772 || test ! -s conftest.err'
ac1cb8d3
VS
32773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32774 (eval $ac_try) 2>&5
32775 ac_status=$?
32776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32777 (exit $ac_status); }; } &&
32778 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32780 (eval $ac_try) 2>&5
32781 ac_status=$?
32782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32783 (exit $ac_status); }; }; then
32784 wx_cv_type_statvfs_t=statvfs_t
32785else
32786 echo "$as_me: failed program was:" >&5
32787sed 's/^/| /' conftest.$ac_ext >&5
32788
32789
32790 cat >conftest.$ac_ext <<_ACEOF
32791/* confdefs.h. */
32792_ACEOF
32793cat confdefs.h >>conftest.$ac_ext
32794cat >>conftest.$ac_ext <<_ACEOF
32795/* end confdefs.h. */
32796
32797 #include <sys/statvfs.h>
32798
32799int
32800main ()
32801{
32802
32803 long l;
32804 struct statvfs fs;
32805 statvfs("/", &fs);
32806 l = fs.f_bsize;
32807 l += fs.f_blocks;
32808 l += fs.f_bavail;
32809
32810 ;
32811 return 0;
32812}
32813_ACEOF
32814rm -f conftest.$ac_objext
32815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32816 (eval $ac_compile) 2>conftest.er1
a848cd7e 32817 ac_status=$?
ac1cb8d3
VS
32818 grep -v '^ *+' conftest.er1 >conftest.err
32819 rm -f conftest.er1
32820 cat conftest.err >&5
a848cd7e
SC
32821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32822 (exit $ac_status); } &&
fb00f58d
JS
32823 { ac_try='test -z "$ac_cxx_werror_flag"
32824 || test ! -s conftest.err'
ac1cb8d3
VS
32825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32826 (eval $ac_try) 2>&5
32827 ac_status=$?
32828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32829 (exit $ac_status); }; } &&
32830 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32832 (eval $ac_try) 2>&5
32833 ac_status=$?
32834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32835 (exit $ac_status); }; }; then
32836 wx_cv_type_statvfs_t="struct statvfs"
32837else
32838 echo "$as_me: failed program was:" >&5
32839sed 's/^/| /' conftest.$ac_ext >&5
32840
32841wx_cv_type_statvfs_t="unknown"
32842
32843fi
ac1cb8d3 32844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32845
32846
32847fi
ac1cb8d3 32848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32849
32850fi
32851echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
32852echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
32853
32854 ac_ext=c
32855ac_cpp='$CPP $CPPFLAGS'
32856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32858ac_compiler_gnu=$ac_cv_c_compiler_gnu
32859
32860
32861 if test "$wx_cv_type_statvfs_t" != "unknown"; then
32862 cat >>confdefs.h <<\_ACEOF
32863#define HAVE_STATVFS 1
32864_ACEOF
32865
32866 fi
32867 else
32868 wx_cv_type_statvfs_t="unknown"
32869 fi
32870fi
32871
32872if test "$wx_cv_type_statvfs_t" != "unknown"; then
32873 cat >>confdefs.h <<_ACEOF
32874#define WX_STATFS_T $wx_cv_type_statvfs_t
32875_ACEOF
32876
32877else
32878 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
32879echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
32880fi
32881
32882if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
32883
32884
32885for ac_func in fcntl flock
32886do
32887as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32888echo "$as_me:$LINENO: checking for $ac_func" >&5
32889echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32890if eval "test \"\${$as_ac_var+set}\" = set"; then
32891 echo $ECHO_N "(cached) $ECHO_C" >&6
32892else
32893 cat >conftest.$ac_ext <<_ACEOF
32894/* confdefs.h. */
32895_ACEOF
32896cat confdefs.h >>conftest.$ac_ext
32897cat >>conftest.$ac_ext <<_ACEOF
32898/* end confdefs.h. */
ac1cb8d3
VS
32899/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32901#define $ac_func innocuous_$ac_func
32902
a848cd7e
SC
32903/* System header to define __stub macros and hopefully few prototypes,
32904 which can conflict with char $ac_func (); below.
32905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32906 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32907
a848cd7e
SC
32908#ifdef __STDC__
32909# include <limits.h>
32910#else
32911# include <assert.h>
32912#endif
ac1cb8d3
VS
32913
32914#undef $ac_func
32915
a848cd7e
SC
32916/* Override any gcc2 internal prototype to avoid an error. */
32917#ifdef __cplusplus
32918extern "C"
32919{
32920#endif
32921/* We use char because int might match the return type of a gcc2
32922 builtin and then its argument prototype would still apply. */
32923char $ac_func ();
32924/* The GNU C library defines this for functions which it implements
32925 to always fail with ENOSYS. Some functions are actually named
32926 something starting with __ and the normal name is an alias. */
32927#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32928choke me
32929#else
32930char (*f) () = $ac_func;
32931#endif
32932#ifdef __cplusplus
32933}
32934#endif
32935
32936int
32937main ()
32938{
32939return f != $ac_func;
32940 ;
32941 return 0;
32942}
32943_ACEOF
32944rm -f conftest.$ac_objext conftest$ac_exeext
32945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32946 (eval $ac_link) 2>conftest.er1
a848cd7e 32947 ac_status=$?
ac1cb8d3
VS
32948 grep -v '^ *+' conftest.er1 >conftest.err
32949 rm -f conftest.er1
32950 cat conftest.err >&5
a848cd7e
SC
32951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32952 (exit $ac_status); } &&
fb00f58d
JS
32953 { ac_try='test -z "$ac_c_werror_flag"
32954 || test ! -s conftest.err'
ac1cb8d3
VS
32955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32956 (eval $ac_try) 2>&5
32957 ac_status=$?
32958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32959 (exit $ac_status); }; } &&
32960 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32962 (eval $ac_try) 2>&5
32963 ac_status=$?
32964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32965 (exit $ac_status); }; }; then
32966 eval "$as_ac_var=yes"
32967else
32968 echo "$as_me: failed program was:" >&5
32969sed 's/^/| /' conftest.$ac_ext >&5
32970
32971eval "$as_ac_var=no"
32972fi
ac1cb8d3
VS
32973rm -f conftest.err conftest.$ac_objext \
32974 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32975fi
32976echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32977echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32978if test `eval echo '${'$as_ac_var'}'` = yes; then
32979 cat >>confdefs.h <<_ACEOF
32980#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32981_ACEOF
32982 break
32983fi
32984done
32985
32986
32987 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
32988 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
32989echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
32990 wxUSE_SNGLINST_CHECKER=no
32991 fi
32992fi
32993
32994
32995for ac_func in timegm
32996do
32997as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32998echo "$as_me:$LINENO: checking for $ac_func" >&5
32999echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33000if eval "test \"\${$as_ac_var+set}\" = set"; then
33001 echo $ECHO_N "(cached) $ECHO_C" >&6
33002else
33003 cat >conftest.$ac_ext <<_ACEOF
33004/* confdefs.h. */
33005_ACEOF
33006cat confdefs.h >>conftest.$ac_ext
33007cat >>conftest.$ac_ext <<_ACEOF
33008/* end confdefs.h. */
ac1cb8d3
VS
33009/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33011#define $ac_func innocuous_$ac_func
33012
a848cd7e
SC
33013/* System header to define __stub macros and hopefully few prototypes,
33014 which can conflict with char $ac_func (); below.
33015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33016 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33017
a848cd7e
SC
33018#ifdef __STDC__
33019# include <limits.h>
33020#else
33021# include <assert.h>
33022#endif
ac1cb8d3
VS
33023
33024#undef $ac_func
33025
a848cd7e
SC
33026/* Override any gcc2 internal prototype to avoid an error. */
33027#ifdef __cplusplus
33028extern "C"
33029{
33030#endif
33031/* We use char because int might match the return type of a gcc2
33032 builtin and then its argument prototype would still apply. */
33033char $ac_func ();
33034/* The GNU C library defines this for functions which it implements
33035 to always fail with ENOSYS. Some functions are actually named
33036 something starting with __ and the normal name is an alias. */
33037#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33038choke me
33039#else
33040char (*f) () = $ac_func;
33041#endif
33042#ifdef __cplusplus
33043}
33044#endif
33045
33046int
33047main ()
33048{
33049return f != $ac_func;
33050 ;
33051 return 0;
33052}
33053_ACEOF
33054rm -f conftest.$ac_objext conftest$ac_exeext
33055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33056 (eval $ac_link) 2>conftest.er1
a848cd7e 33057 ac_status=$?
ac1cb8d3
VS
33058 grep -v '^ *+' conftest.er1 >conftest.err
33059 rm -f conftest.er1
33060 cat conftest.err >&5
a848cd7e
SC
33061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33062 (exit $ac_status); } &&
fb00f58d
JS
33063 { ac_try='test -z "$ac_c_werror_flag"
33064 || test ! -s conftest.err'
ac1cb8d3
VS
33065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33066 (eval $ac_try) 2>&5
33067 ac_status=$?
33068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33069 (exit $ac_status); }; } &&
33070 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33072 (eval $ac_try) 2>&5
33073 ac_status=$?
33074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33075 (exit $ac_status); }; }; then
33076 eval "$as_ac_var=yes"
33077else
33078 echo "$as_me: failed program was:" >&5
33079sed 's/^/| /' conftest.$ac_ext >&5
33080
33081eval "$as_ac_var=no"
33082fi
ac1cb8d3
VS
33083rm -f conftest.err conftest.$ac_objext \
33084 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33085fi
33086echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33087echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33088if test `eval echo '${'$as_ac_var'}'` = yes; then
33089 cat >>confdefs.h <<_ACEOF
33090#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33091_ACEOF
33092
33093fi
33094done
33095
33096
33097
33098
33099for ac_func in putenv setenv
33100do
33101as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33102echo "$as_me:$LINENO: checking for $ac_func" >&5
33103echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33104if eval "test \"\${$as_ac_var+set}\" = set"; then
33105 echo $ECHO_N "(cached) $ECHO_C" >&6
33106else
33107 cat >conftest.$ac_ext <<_ACEOF
33108/* confdefs.h. */
33109_ACEOF
33110cat confdefs.h >>conftest.$ac_ext
33111cat >>conftest.$ac_ext <<_ACEOF
33112/* end confdefs.h. */
ac1cb8d3
VS
33113/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33115#define $ac_func innocuous_$ac_func
33116
a848cd7e
SC
33117/* System header to define __stub macros and hopefully few prototypes,
33118 which can conflict with char $ac_func (); below.
33119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33120 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33121
a848cd7e
SC
33122#ifdef __STDC__
33123# include <limits.h>
33124#else
33125# include <assert.h>
33126#endif
ac1cb8d3
VS
33127
33128#undef $ac_func
33129
a848cd7e
SC
33130/* Override any gcc2 internal prototype to avoid an error. */
33131#ifdef __cplusplus
33132extern "C"
33133{
33134#endif
33135/* We use char because int might match the return type of a gcc2
33136 builtin and then its argument prototype would still apply. */
33137char $ac_func ();
33138/* The GNU C library defines this for functions which it implements
33139 to always fail with ENOSYS. Some functions are actually named
33140 something starting with __ and the normal name is an alias. */
33141#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33142choke me
33143#else
33144char (*f) () = $ac_func;
33145#endif
33146#ifdef __cplusplus
33147}
33148#endif
33149
33150int
33151main ()
33152{
33153return f != $ac_func;
33154 ;
33155 return 0;
33156}
33157_ACEOF
33158rm -f conftest.$ac_objext conftest$ac_exeext
33159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33160 (eval $ac_link) 2>conftest.er1
a848cd7e 33161 ac_status=$?
ac1cb8d3
VS
33162 grep -v '^ *+' conftest.er1 >conftest.err
33163 rm -f conftest.er1
33164 cat conftest.err >&5
a848cd7e
SC
33165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33166 (exit $ac_status); } &&
fb00f58d
JS
33167 { ac_try='test -z "$ac_c_werror_flag"
33168 || test ! -s conftest.err'
ac1cb8d3
VS
33169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33170 (eval $ac_try) 2>&5
33171 ac_status=$?
33172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33173 (exit $ac_status); }; } &&
33174 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33176 (eval $ac_try) 2>&5
33177 ac_status=$?
33178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33179 (exit $ac_status); }; }; then
33180 eval "$as_ac_var=yes"
33181else
33182 echo "$as_me: failed program was:" >&5
33183sed 's/^/| /' conftest.$ac_ext >&5
33184
33185eval "$as_ac_var=no"
33186fi
ac1cb8d3
VS
33187rm -f conftest.err conftest.$ac_objext \
33188 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33189fi
33190echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33191echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33192if test `eval echo '${'$as_ac_var'}'` = yes; then
33193 cat >>confdefs.h <<_ACEOF
33194#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33195_ACEOF
33196 break
33197fi
33198done
33199
33200
33201HAVE_SOME_SLEEP_FUNC=0
33202if test "$USE_BEOS" = 1; then
33203 cat >>confdefs.h <<\_ACEOF
33204#define HAVE_SLEEP 1
33205_ACEOF
33206
33207 HAVE_SOME_SLEEP_FUNC=1
33208fi
33209
33210if test "$USE_DARWIN" = 1; then
33211 cat >>confdefs.h <<\_ACEOF
33212#define HAVE_USLEEP 1
33213_ACEOF
33214
33215 HAVE_SOME_SLEEP_FUNC=1
33216fi
33217
33218if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
33219 POSIX4_LINK=
33220
33221for ac_func in nanosleep
33222do
33223as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33224echo "$as_me:$LINENO: checking for $ac_func" >&5
33225echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33226if eval "test \"\${$as_ac_var+set}\" = set"; then
33227 echo $ECHO_N "(cached) $ECHO_C" >&6
33228else
33229 cat >conftest.$ac_ext <<_ACEOF
33230/* confdefs.h. */
33231_ACEOF
33232cat confdefs.h >>conftest.$ac_ext
33233cat >>conftest.$ac_ext <<_ACEOF
33234/* end confdefs.h. */
ac1cb8d3
VS
33235/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33237#define $ac_func innocuous_$ac_func
33238
a848cd7e
SC
33239/* System header to define __stub macros and hopefully few prototypes,
33240 which can conflict with char $ac_func (); below.
33241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33242 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33243
a848cd7e
SC
33244#ifdef __STDC__
33245# include <limits.h>
33246#else
33247# include <assert.h>
33248#endif
ac1cb8d3
VS
33249
33250#undef $ac_func
33251
a848cd7e
SC
33252/* Override any gcc2 internal prototype to avoid an error. */
33253#ifdef __cplusplus
33254extern "C"
33255{
33256#endif
33257/* We use char because int might match the return type of a gcc2
33258 builtin and then its argument prototype would still apply. */
33259char $ac_func ();
33260/* The GNU C library defines this for functions which it implements
33261 to always fail with ENOSYS. Some functions are actually named
33262 something starting with __ and the normal name is an alias. */
33263#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33264choke me
33265#else
33266char (*f) () = $ac_func;
33267#endif
33268#ifdef __cplusplus
33269}
33270#endif
33271
33272int
33273main ()
33274{
33275return f != $ac_func;
33276 ;
33277 return 0;
33278}
33279_ACEOF
33280rm -f conftest.$ac_objext conftest$ac_exeext
33281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33282 (eval $ac_link) 2>conftest.er1
a848cd7e 33283 ac_status=$?
ac1cb8d3
VS
33284 grep -v '^ *+' conftest.er1 >conftest.err
33285 rm -f conftest.er1
33286 cat conftest.err >&5
a848cd7e
SC
33287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33288 (exit $ac_status); } &&
fb00f58d
JS
33289 { ac_try='test -z "$ac_c_werror_flag"
33290 || test ! -s conftest.err'
ac1cb8d3
VS
33291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33292 (eval $ac_try) 2>&5
33293 ac_status=$?
33294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33295 (exit $ac_status); }; } &&
33296 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33298 (eval $ac_try) 2>&5
33299 ac_status=$?
33300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33301 (exit $ac_status); }; }; then
33302 eval "$as_ac_var=yes"
33303else
33304 echo "$as_me: failed program was:" >&5
33305sed 's/^/| /' conftest.$ac_ext >&5
33306
33307eval "$as_ac_var=no"
33308fi
ac1cb8d3
VS
33309rm -f conftest.err conftest.$ac_objext \
33310 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33311fi
33312echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33313echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33314if test `eval echo '${'$as_ac_var'}'` = yes; then
33315 cat >>confdefs.h <<_ACEOF
33316#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33317_ACEOF
33318 cat >>confdefs.h <<\_ACEOF
33319#define HAVE_NANOSLEEP 1
33320_ACEOF
33321
33322else
33323
33324 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
33325echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
33326if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
33327 echo $ECHO_N "(cached) $ECHO_C" >&6
33328else
33329 ac_check_lib_save_LIBS=$LIBS
33330LIBS="-lposix4 $LIBS"
33331cat >conftest.$ac_ext <<_ACEOF
33332/* confdefs.h. */
33333_ACEOF
33334cat confdefs.h >>conftest.$ac_ext
33335cat >>conftest.$ac_ext <<_ACEOF
33336/* end confdefs.h. */
33337
33338/* Override any gcc2 internal prototype to avoid an error. */
33339#ifdef __cplusplus
33340extern "C"
33341#endif
33342/* We use char because int might match the return type of a gcc2
33343 builtin and then its argument prototype would still apply. */
33344char nanosleep ();
33345int
33346main ()
33347{
33348nanosleep ();
33349 ;
33350 return 0;
33351}
33352_ACEOF
33353rm -f conftest.$ac_objext conftest$ac_exeext
33354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33355 (eval $ac_link) 2>conftest.er1
a848cd7e 33356 ac_status=$?
ac1cb8d3
VS
33357 grep -v '^ *+' conftest.er1 >conftest.err
33358 rm -f conftest.er1
33359 cat conftest.err >&5
a848cd7e
SC
33360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33361 (exit $ac_status); } &&
fb00f58d
JS
33362 { ac_try='test -z "$ac_c_werror_flag"
33363 || test ! -s conftest.err'
ac1cb8d3
VS
33364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33365 (eval $ac_try) 2>&5
33366 ac_status=$?
33367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33368 (exit $ac_status); }; } &&
33369 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33371 (eval $ac_try) 2>&5
33372 ac_status=$?
33373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33374 (exit $ac_status); }; }; then
33375 ac_cv_lib_posix4_nanosleep=yes
33376else
33377 echo "$as_me: failed program was:" >&5
33378sed 's/^/| /' conftest.$ac_ext >&5
33379
33380ac_cv_lib_posix4_nanosleep=no
33381fi
ac1cb8d3
VS
33382rm -f conftest.err conftest.$ac_objext \
33383 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33384LIBS=$ac_check_lib_save_LIBS
33385fi
33386echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
33387echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
33388if test $ac_cv_lib_posix4_nanosleep = yes; then
33389
33390 cat >>confdefs.h <<\_ACEOF
33391#define HAVE_NANOSLEEP 1
33392_ACEOF
33393
33394 POSIX4_LINK=" -lposix4"
33395
33396else
33397
33398
33399for ac_func in usleep
33400do
33401as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33402echo "$as_me:$LINENO: checking for $ac_func" >&5
33403echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33404if eval "test \"\${$as_ac_var+set}\" = set"; then
33405 echo $ECHO_N "(cached) $ECHO_C" >&6
33406else
33407 cat >conftest.$ac_ext <<_ACEOF
33408/* confdefs.h. */
33409_ACEOF
33410cat confdefs.h >>conftest.$ac_ext
33411cat >>conftest.$ac_ext <<_ACEOF
33412/* end confdefs.h. */
ac1cb8d3
VS
33413/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33415#define $ac_func innocuous_$ac_func
33416
a848cd7e
SC
33417/* System header to define __stub macros and hopefully few prototypes,
33418 which can conflict with char $ac_func (); below.
33419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33420 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33421
a848cd7e
SC
33422#ifdef __STDC__
33423# include <limits.h>
33424#else
33425# include <assert.h>
33426#endif
ac1cb8d3
VS
33427
33428#undef $ac_func
33429
a848cd7e
SC
33430/* Override any gcc2 internal prototype to avoid an error. */
33431#ifdef __cplusplus
33432extern "C"
33433{
33434#endif
33435/* We use char because int might match the return type of a gcc2
33436 builtin and then its argument prototype would still apply. */
33437char $ac_func ();
33438/* The GNU C library defines this for functions which it implements
33439 to always fail with ENOSYS. Some functions are actually named
33440 something starting with __ and the normal name is an alias. */
33441#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33442choke me
33443#else
33444char (*f) () = $ac_func;
33445#endif
33446#ifdef __cplusplus
33447}
33448#endif
33449
33450int
33451main ()
33452{
33453return f != $ac_func;
33454 ;
33455 return 0;
33456}
33457_ACEOF
33458rm -f conftest.$ac_objext conftest$ac_exeext
33459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33460 (eval $ac_link) 2>conftest.er1
a848cd7e 33461 ac_status=$?
ac1cb8d3
VS
33462 grep -v '^ *+' conftest.er1 >conftest.err
33463 rm -f conftest.er1
33464 cat conftest.err >&5
a848cd7e
SC
33465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33466 (exit $ac_status); } &&
fb00f58d
JS
33467 { ac_try='test -z "$ac_c_werror_flag"
33468 || test ! -s conftest.err'
ac1cb8d3
VS
33469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33470 (eval $ac_try) 2>&5
33471 ac_status=$?
33472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33473 (exit $ac_status); }; } &&
33474 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33476 (eval $ac_try) 2>&5
33477 ac_status=$?
33478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33479 (exit $ac_status); }; }; then
33480 eval "$as_ac_var=yes"
33481else
33482 echo "$as_me: failed program was:" >&5
33483sed 's/^/| /' conftest.$ac_ext >&5
33484
33485eval "$as_ac_var=no"
33486fi
ac1cb8d3
VS
33487rm -f conftest.err conftest.$ac_objext \
33488 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33489fi
33490echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33491echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33492if test `eval echo '${'$as_ac_var'}'` = yes; then
33493 cat >>confdefs.h <<_ACEOF
33494#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33495_ACEOF
33496 cat >>confdefs.h <<\_ACEOF
33497#define HAVE_USLEEP 1
33498_ACEOF
33499
33500else
33501 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
33502echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
33503
33504fi
33505done
33506
33507
33508
33509fi
33510
33511
33512
33513fi
33514done
33515
33516fi
33517
33518
33519
33520for ac_func in uname gethostname
33521do
33522as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33523echo "$as_me:$LINENO: checking for $ac_func" >&5
33524echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33525if eval "test \"\${$as_ac_var+set}\" = set"; then
33526 echo $ECHO_N "(cached) $ECHO_C" >&6
33527else
33528 cat >conftest.$ac_ext <<_ACEOF
33529/* confdefs.h. */
33530_ACEOF
33531cat confdefs.h >>conftest.$ac_ext
33532cat >>conftest.$ac_ext <<_ACEOF
33533/* end confdefs.h. */
ac1cb8d3
VS
33534/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33536#define $ac_func innocuous_$ac_func
33537
a848cd7e
SC
33538/* System header to define __stub macros and hopefully few prototypes,
33539 which can conflict with char $ac_func (); below.
33540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33541 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33542
a848cd7e
SC
33543#ifdef __STDC__
33544# include <limits.h>
33545#else
33546# include <assert.h>
33547#endif
ac1cb8d3
VS
33548
33549#undef $ac_func
33550
a848cd7e
SC
33551/* Override any gcc2 internal prototype to avoid an error. */
33552#ifdef __cplusplus
33553extern "C"
33554{
33555#endif
33556/* We use char because int might match the return type of a gcc2
33557 builtin and then its argument prototype would still apply. */
33558char $ac_func ();
33559/* The GNU C library defines this for functions which it implements
33560 to always fail with ENOSYS. Some functions are actually named
33561 something starting with __ and the normal name is an alias. */
33562#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33563choke me
33564#else
33565char (*f) () = $ac_func;
33566#endif
33567#ifdef __cplusplus
33568}
33569#endif
33570
33571int
33572main ()
33573{
33574return f != $ac_func;
33575 ;
33576 return 0;
33577}
33578_ACEOF
33579rm -f conftest.$ac_objext conftest$ac_exeext
33580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33581 (eval $ac_link) 2>conftest.er1
a848cd7e 33582 ac_status=$?
ac1cb8d3
VS
33583 grep -v '^ *+' conftest.er1 >conftest.err
33584 rm -f conftest.er1
33585 cat conftest.err >&5
a848cd7e
SC
33586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33587 (exit $ac_status); } &&
fb00f58d
JS
33588 { ac_try='test -z "$ac_c_werror_flag"
33589 || test ! -s conftest.err'
ac1cb8d3
VS
33590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33591 (eval $ac_try) 2>&5
33592 ac_status=$?
33593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33594 (exit $ac_status); }; } &&
33595 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33597 (eval $ac_try) 2>&5
33598 ac_status=$?
33599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33600 (exit $ac_status); }; }; then
33601 eval "$as_ac_var=yes"
33602else
33603 echo "$as_me: failed program was:" >&5
33604sed 's/^/| /' conftest.$ac_ext >&5
33605
33606eval "$as_ac_var=no"
33607fi
ac1cb8d3
VS
33608rm -f conftest.err conftest.$ac_objext \
33609 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33610fi
33611echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33612echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33613if test `eval echo '${'$as_ac_var'}'` = yes; then
33614 cat >>confdefs.h <<_ACEOF
33615#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33616_ACEOF
33617 break
33618fi
33619done
33620
33621
33622
33623
33624ac_ext=cc
33625ac_cpp='$CXXCPP $CPPFLAGS'
33626ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33627ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33628ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33629
33630
33631
33632for ac_func in strtok_r
33633do
33634as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33635echo "$as_me:$LINENO: checking for $ac_func" >&5
33636echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33637if eval "test \"\${$as_ac_var+set}\" = set"; then
33638 echo $ECHO_N "(cached) $ECHO_C" >&6
33639else
33640 cat >conftest.$ac_ext <<_ACEOF
33641/* confdefs.h. */
33642_ACEOF
33643cat confdefs.h >>conftest.$ac_ext
33644cat >>conftest.$ac_ext <<_ACEOF
33645/* end confdefs.h. */
ac1cb8d3
VS
33646/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33648#define $ac_func innocuous_$ac_func
33649
a848cd7e
SC
33650/* System header to define __stub macros and hopefully few prototypes,
33651 which can conflict with char $ac_func (); below.
33652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33653 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33654
a848cd7e
SC
33655#ifdef __STDC__
33656# include <limits.h>
33657#else
33658# include <assert.h>
33659#endif
ac1cb8d3
VS
33660
33661#undef $ac_func
33662
a848cd7e
SC
33663/* Override any gcc2 internal prototype to avoid an error. */
33664#ifdef __cplusplus
33665extern "C"
33666{
33667#endif
33668/* We use char because int might match the return type of a gcc2
33669 builtin and then its argument prototype would still apply. */
33670char $ac_func ();
33671/* The GNU C library defines this for functions which it implements
33672 to always fail with ENOSYS. Some functions are actually named
33673 something starting with __ and the normal name is an alias. */
33674#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33675choke me
33676#else
33677char (*f) () = $ac_func;
33678#endif
33679#ifdef __cplusplus
33680}
33681#endif
33682
33683int
33684main ()
33685{
33686return f != $ac_func;
33687 ;
33688 return 0;
33689}
33690_ACEOF
33691rm -f conftest.$ac_objext conftest$ac_exeext
33692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33693 (eval $ac_link) 2>conftest.er1
a848cd7e 33694 ac_status=$?
ac1cb8d3
VS
33695 grep -v '^ *+' conftest.er1 >conftest.err
33696 rm -f conftest.er1
33697 cat conftest.err >&5
a848cd7e
SC
33698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33699 (exit $ac_status); } &&
fb00f58d
JS
33700 { ac_try='test -z "$ac_cxx_werror_flag"
33701 || test ! -s conftest.err'
ac1cb8d3
VS
33702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33703 (eval $ac_try) 2>&5
33704 ac_status=$?
33705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33706 (exit $ac_status); }; } &&
33707 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33709 (eval $ac_try) 2>&5
33710 ac_status=$?
33711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33712 (exit $ac_status); }; }; then
33713 eval "$as_ac_var=yes"
33714else
33715 echo "$as_me: failed program was:" >&5
33716sed 's/^/| /' conftest.$ac_ext >&5
33717
33718eval "$as_ac_var=no"
33719fi
ac1cb8d3
VS
33720rm -f conftest.err conftest.$ac_objext \
33721 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33722fi
33723echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33724echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33725if test `eval echo '${'$as_ac_var'}'` = yes; then
33726 cat >>confdefs.h <<_ACEOF
33727#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33728_ACEOF
33729
33730fi
33731done
33732
33733
33734ac_ext=c
33735ac_cpp='$CPP $CPPFLAGS'
33736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33738ac_compiler_gnu=$ac_cv_c_compiler_gnu
33739
33740
33741INET_LINK=
33742
33743for ac_func in inet_addr
33744do
33745as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33746echo "$as_me:$LINENO: checking for $ac_func" >&5
33747echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33748if eval "test \"\${$as_ac_var+set}\" = set"; then
33749 echo $ECHO_N "(cached) $ECHO_C" >&6
33750else
33751 cat >conftest.$ac_ext <<_ACEOF
33752/* confdefs.h. */
33753_ACEOF
33754cat confdefs.h >>conftest.$ac_ext
33755cat >>conftest.$ac_ext <<_ACEOF
33756/* end confdefs.h. */
ac1cb8d3
VS
33757/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33759#define $ac_func innocuous_$ac_func
33760
a848cd7e
SC
33761/* System header to define __stub macros and hopefully few prototypes,
33762 which can conflict with char $ac_func (); below.
33763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33764 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33765
a848cd7e
SC
33766#ifdef __STDC__
33767# include <limits.h>
33768#else
33769# include <assert.h>
33770#endif
ac1cb8d3
VS
33771
33772#undef $ac_func
33773
a848cd7e
SC
33774/* Override any gcc2 internal prototype to avoid an error. */
33775#ifdef __cplusplus
33776extern "C"
33777{
33778#endif
33779/* We use char because int might match the return type of a gcc2
33780 builtin and then its argument prototype would still apply. */
33781char $ac_func ();
33782/* The GNU C library defines this for functions which it implements
33783 to always fail with ENOSYS. Some functions are actually named
33784 something starting with __ and the normal name is an alias. */
33785#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33786choke me
33787#else
33788char (*f) () = $ac_func;
33789#endif
33790#ifdef __cplusplus
33791}
33792#endif
33793
33794int
33795main ()
33796{
33797return f != $ac_func;
33798 ;
33799 return 0;
33800}
33801_ACEOF
33802rm -f conftest.$ac_objext conftest$ac_exeext
33803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33804 (eval $ac_link) 2>conftest.er1
a848cd7e 33805 ac_status=$?
ac1cb8d3
VS
33806 grep -v '^ *+' conftest.er1 >conftest.err
33807 rm -f conftest.er1
33808 cat conftest.err >&5
a848cd7e
SC
33809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33810 (exit $ac_status); } &&
fb00f58d
JS
33811 { ac_try='test -z "$ac_c_werror_flag"
33812 || test ! -s conftest.err'
ac1cb8d3
VS
33813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33814 (eval $ac_try) 2>&5
33815 ac_status=$?
33816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33817 (exit $ac_status); }; } &&
33818 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33820 (eval $ac_try) 2>&5
33821 ac_status=$?
33822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33823 (exit $ac_status); }; }; then
33824 eval "$as_ac_var=yes"
33825else
33826 echo "$as_me: failed program was:" >&5
33827sed 's/^/| /' conftest.$ac_ext >&5
33828
33829eval "$as_ac_var=no"
33830fi
ac1cb8d3
VS
33831rm -f conftest.err conftest.$ac_objext \
33832 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33833fi
33834echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33835echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33836if test `eval echo '${'$as_ac_var'}'` = yes; then
33837 cat >>confdefs.h <<_ACEOF
33838#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33839_ACEOF
33840 cat >>confdefs.h <<\_ACEOF
33841#define HAVE_INET_ADDR 1
33842_ACEOF
33843
33844else
33845
33846 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
33847echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
33848if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
33849 echo $ECHO_N "(cached) $ECHO_C" >&6
33850else
33851 ac_check_lib_save_LIBS=$LIBS
33852LIBS="-lnsl $LIBS"
33853cat >conftest.$ac_ext <<_ACEOF
33854/* confdefs.h. */
33855_ACEOF
33856cat confdefs.h >>conftest.$ac_ext
33857cat >>conftest.$ac_ext <<_ACEOF
33858/* end confdefs.h. */
33859
33860/* Override any gcc2 internal prototype to avoid an error. */
33861#ifdef __cplusplus
33862extern "C"
33863#endif
33864/* We use char because int might match the return type of a gcc2
33865 builtin and then its argument prototype would still apply. */
33866char inet_addr ();
33867int
33868main ()
33869{
33870inet_addr ();
33871 ;
33872 return 0;
33873}
33874_ACEOF
33875rm -f conftest.$ac_objext conftest$ac_exeext
33876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33877 (eval $ac_link) 2>conftest.er1
a848cd7e 33878 ac_status=$?
ac1cb8d3
VS
33879 grep -v '^ *+' conftest.er1 >conftest.err
33880 rm -f conftest.er1
33881 cat conftest.err >&5
a848cd7e
SC
33882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33883 (exit $ac_status); } &&
fb00f58d
JS
33884 { ac_try='test -z "$ac_c_werror_flag"
33885 || test ! -s conftest.err'
ac1cb8d3
VS
33886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33887 (eval $ac_try) 2>&5
33888 ac_status=$?
33889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33890 (exit $ac_status); }; } &&
33891 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33893 (eval $ac_try) 2>&5
33894 ac_status=$?
33895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33896 (exit $ac_status); }; }; then
33897 ac_cv_lib_nsl_inet_addr=yes
33898else
33899 echo "$as_me: failed program was:" >&5
33900sed 's/^/| /' conftest.$ac_ext >&5
33901
33902ac_cv_lib_nsl_inet_addr=no
33903fi
ac1cb8d3
VS
33904rm -f conftest.err conftest.$ac_objext \
33905 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33906LIBS=$ac_check_lib_save_LIBS
33907fi
33908echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
33909echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
33910if test $ac_cv_lib_nsl_inet_addr = yes; then
33911 INET_LINK="nsl"
33912else
33913
33914 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
33915echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
33916if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
33917 echo $ECHO_N "(cached) $ECHO_C" >&6
33918else
33919 ac_check_lib_save_LIBS=$LIBS
33920LIBS="-lresolv $LIBS"
33921cat >conftest.$ac_ext <<_ACEOF
33922/* confdefs.h. */
33923_ACEOF
33924cat confdefs.h >>conftest.$ac_ext
33925cat >>conftest.$ac_ext <<_ACEOF
33926/* end confdefs.h. */
33927
33928/* Override any gcc2 internal prototype to avoid an error. */
33929#ifdef __cplusplus
33930extern "C"
33931#endif
33932/* We use char because int might match the return type of a gcc2
33933 builtin and then its argument prototype would still apply. */
33934char inet_addr ();
33935int
33936main ()
33937{
33938inet_addr ();
33939 ;
33940 return 0;
33941}
33942_ACEOF
33943rm -f conftest.$ac_objext conftest$ac_exeext
33944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33945 (eval $ac_link) 2>conftest.er1
a848cd7e 33946 ac_status=$?
ac1cb8d3
VS
33947 grep -v '^ *+' conftest.er1 >conftest.err
33948 rm -f conftest.er1
33949 cat conftest.err >&5
a848cd7e
SC
33950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33951 (exit $ac_status); } &&
fb00f58d
JS
33952 { ac_try='test -z "$ac_c_werror_flag"
33953 || test ! -s conftest.err'
ac1cb8d3
VS
33954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33955 (eval $ac_try) 2>&5
33956 ac_status=$?
33957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33958 (exit $ac_status); }; } &&
33959 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33961 (eval $ac_try) 2>&5
33962 ac_status=$?
33963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33964 (exit $ac_status); }; }; then
33965 ac_cv_lib_resolv_inet_addr=yes
33966else
33967 echo "$as_me: failed program was:" >&5
33968sed 's/^/| /' conftest.$ac_ext >&5
33969
33970ac_cv_lib_resolv_inet_addr=no
33971fi
ac1cb8d3
VS
33972rm -f conftest.err conftest.$ac_objext \
33973 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33974LIBS=$ac_check_lib_save_LIBS
33975fi
33976echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
33977echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
33978if test $ac_cv_lib_resolv_inet_addr = yes; then
33979 INET_LINK="resolv"
33980else
33981
33982 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
33983echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
33984if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
33985 echo $ECHO_N "(cached) $ECHO_C" >&6
33986else
33987 ac_check_lib_save_LIBS=$LIBS
33988LIBS="-lsocket $LIBS"
33989cat >conftest.$ac_ext <<_ACEOF
33990/* confdefs.h. */
33991_ACEOF
33992cat confdefs.h >>conftest.$ac_ext
33993cat >>conftest.$ac_ext <<_ACEOF
33994/* end confdefs.h. */
33995
33996/* Override any gcc2 internal prototype to avoid an error. */
33997#ifdef __cplusplus
33998extern "C"
33999#endif
34000/* We use char because int might match the return type of a gcc2
34001 builtin and then its argument prototype would still apply. */
34002char inet_addr ();
34003int
34004main ()
34005{
34006inet_addr ();
34007 ;
34008 return 0;
34009}
34010_ACEOF
34011rm -f conftest.$ac_objext conftest$ac_exeext
34012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34013 (eval $ac_link) 2>conftest.er1
a848cd7e 34014 ac_status=$?
ac1cb8d3
VS
34015 grep -v '^ *+' conftest.er1 >conftest.err
34016 rm -f conftest.er1
34017 cat conftest.err >&5
a848cd7e
SC
34018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34019 (exit $ac_status); } &&
fb00f58d
JS
34020 { ac_try='test -z "$ac_c_werror_flag"
34021 || test ! -s conftest.err'
ac1cb8d3
VS
34022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34023 (eval $ac_try) 2>&5
34024 ac_status=$?
34025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34026 (exit $ac_status); }; } &&
34027 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34029 (eval $ac_try) 2>&5
34030 ac_status=$?
34031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34032 (exit $ac_status); }; }; then
34033 ac_cv_lib_socket_inet_addr=yes
34034else
34035 echo "$as_me: failed program was:" >&5
34036sed 's/^/| /' conftest.$ac_ext >&5
34037
34038ac_cv_lib_socket_inet_addr=no
34039fi
ac1cb8d3
VS
34040rm -f conftest.err conftest.$ac_objext \
34041 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34042LIBS=$ac_check_lib_save_LIBS
34043fi
34044echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
34045echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
34046if test $ac_cv_lib_socket_inet_addr = yes; then
34047 INET_LINK="socket"
34048
34049fi
34050
34051
34052
34053fi
34054
34055
34056
34057fi
34058
34059
34060
34061fi
34062done
34063
34064
34065
34066for ac_func in inet_aton
34067do
34068as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34069echo "$as_me:$LINENO: checking for $ac_func" >&5
34070echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34071if eval "test \"\${$as_ac_var+set}\" = set"; then
34072 echo $ECHO_N "(cached) $ECHO_C" >&6
34073else
34074 cat >conftest.$ac_ext <<_ACEOF
34075/* confdefs.h. */
34076_ACEOF
34077cat confdefs.h >>conftest.$ac_ext
34078cat >>conftest.$ac_ext <<_ACEOF
34079/* end confdefs.h. */
ac1cb8d3
VS
34080/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34082#define $ac_func innocuous_$ac_func
34083
a848cd7e
SC
34084/* System header to define __stub macros and hopefully few prototypes,
34085 which can conflict with char $ac_func (); below.
34086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34087 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34088
a848cd7e
SC
34089#ifdef __STDC__
34090# include <limits.h>
34091#else
34092# include <assert.h>
34093#endif
ac1cb8d3
VS
34094
34095#undef $ac_func
34096
a848cd7e
SC
34097/* Override any gcc2 internal prototype to avoid an error. */
34098#ifdef __cplusplus
34099extern "C"
34100{
34101#endif
34102/* We use char because int might match the return type of a gcc2
34103 builtin and then its argument prototype would still apply. */
34104char $ac_func ();
34105/* The GNU C library defines this for functions which it implements
34106 to always fail with ENOSYS. Some functions are actually named
34107 something starting with __ and the normal name is an alias. */
34108#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34109choke me
34110#else
34111char (*f) () = $ac_func;
34112#endif
34113#ifdef __cplusplus
34114}
34115#endif
34116
34117int
34118main ()
34119{
34120return f != $ac_func;
34121 ;
34122 return 0;
34123}
34124_ACEOF
34125rm -f conftest.$ac_objext conftest$ac_exeext
34126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34127 (eval $ac_link) 2>conftest.er1
a848cd7e 34128 ac_status=$?
ac1cb8d3
VS
34129 grep -v '^ *+' conftest.er1 >conftest.err
34130 rm -f conftest.er1
34131 cat conftest.err >&5
a848cd7e
SC
34132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34133 (exit $ac_status); } &&
fb00f58d
JS
34134 { ac_try='test -z "$ac_c_werror_flag"
34135 || test ! -s conftest.err'
ac1cb8d3
VS
34136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34137 (eval $ac_try) 2>&5
34138 ac_status=$?
34139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34140 (exit $ac_status); }; } &&
34141 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34143 (eval $ac_try) 2>&5
34144 ac_status=$?
34145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34146 (exit $ac_status); }; }; then
34147 eval "$as_ac_var=yes"
34148else
34149 echo "$as_me: failed program was:" >&5
34150sed 's/^/| /' conftest.$ac_ext >&5
34151
34152eval "$as_ac_var=no"
34153fi
ac1cb8d3
VS
34154rm -f conftest.err conftest.$ac_objext \
34155 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34156fi
34157echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34158echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34159if test `eval echo '${'$as_ac_var'}'` = yes; then
34160 cat >>confdefs.h <<_ACEOF
34161#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34162_ACEOF
34163 cat >>confdefs.h <<\_ACEOF
34164#define HAVE_INET_ATON 1
34165_ACEOF
34166
34167else
34168
34169 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
34170echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
34171echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
34172if eval "test \"\${$as_ac_Lib+set}\" = set"; then
34173 echo $ECHO_N "(cached) $ECHO_C" >&6
34174else
34175 ac_check_lib_save_LIBS=$LIBS
34176LIBS="-l$INET_LINK $LIBS"
34177cat >conftest.$ac_ext <<_ACEOF
34178/* confdefs.h. */
34179_ACEOF
34180cat confdefs.h >>conftest.$ac_ext
34181cat >>conftest.$ac_ext <<_ACEOF
34182/* end confdefs.h. */
34183
34184/* Override any gcc2 internal prototype to avoid an error. */
34185#ifdef __cplusplus
34186extern "C"
34187#endif
34188/* We use char because int might match the return type of a gcc2
34189 builtin and then its argument prototype would still apply. */
34190char inet_aton ();
34191int
34192main ()
34193{
34194inet_aton ();
34195 ;
34196 return 0;
34197}
34198_ACEOF
34199rm -f conftest.$ac_objext conftest$ac_exeext
34200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34201 (eval $ac_link) 2>conftest.er1
a848cd7e 34202 ac_status=$?
ac1cb8d3
VS
34203 grep -v '^ *+' conftest.er1 >conftest.err
34204 rm -f conftest.er1
34205 cat conftest.err >&5
a848cd7e
SC
34206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34207 (exit $ac_status); } &&
fb00f58d
JS
34208 { ac_try='test -z "$ac_c_werror_flag"
34209 || test ! -s conftest.err'
ac1cb8d3
VS
34210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34211 (eval $ac_try) 2>&5
34212 ac_status=$?
34213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34214 (exit $ac_status); }; } &&
34215 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34217 (eval $ac_try) 2>&5
34218 ac_status=$?
34219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34220 (exit $ac_status); }; }; then
34221 eval "$as_ac_Lib=yes"
34222else
34223 echo "$as_me: failed program was:" >&5
34224sed 's/^/| /' conftest.$ac_ext >&5
34225
34226eval "$as_ac_Lib=no"
34227fi
ac1cb8d3
VS
34228rm -f conftest.err conftest.$ac_objext \
34229 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34230LIBS=$ac_check_lib_save_LIBS
34231fi
34232echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
34233echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
34234if test `eval echo '${'$as_ac_Lib'}'` = yes; then
34235 cat >>confdefs.h <<\_ACEOF
34236#define HAVE_INET_ATON 1
34237_ACEOF
34238
34239fi
34240
34241
34242fi
34243done
34244
34245
34246if test "x$INET_LINK" != "x"; then
34247 cat >>confdefs.h <<\_ACEOF
34248#define HAVE_INET_ADDR 1
34249_ACEOF
34250
34251 INET_LINK=" -l$INET_LINK"
34252fi
34253
34254fi
34255
34256
34257
34258EXTRALIBS_ESD=
34259echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
34260echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
34261if test "${ac_cv_lib_esd_esd_close+set}" = set; then
34262 echo $ECHO_N "(cached) $ECHO_C" >&6
34263else
34264 ac_check_lib_save_LIBS=$LIBS
34265LIBS="-lesd $LIBS"
34266cat >conftest.$ac_ext <<_ACEOF
34267/* confdefs.h. */
34268_ACEOF
34269cat confdefs.h >>conftest.$ac_ext
34270cat >>conftest.$ac_ext <<_ACEOF
34271/* end confdefs.h. */
34272
34273/* Override any gcc2 internal prototype to avoid an error. */
34274#ifdef __cplusplus
34275extern "C"
34276#endif
34277/* We use char because int might match the return type of a gcc2
34278 builtin and then its argument prototype would still apply. */
34279char esd_close ();
34280int
34281main ()
34282{
34283esd_close ();
34284 ;
34285 return 0;
34286}
34287_ACEOF
34288rm -f conftest.$ac_objext conftest$ac_exeext
34289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34290 (eval $ac_link) 2>conftest.er1
a848cd7e 34291 ac_status=$?
ac1cb8d3
VS
34292 grep -v '^ *+' conftest.er1 >conftest.err
34293 rm -f conftest.er1
34294 cat conftest.err >&5
a848cd7e
SC
34295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34296 (exit $ac_status); } &&
fb00f58d
JS
34297 { ac_try='test -z "$ac_c_werror_flag"
34298 || test ! -s conftest.err'
ac1cb8d3
VS
34299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34300 (eval $ac_try) 2>&5
34301 ac_status=$?
34302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34303 (exit $ac_status); }; } &&
34304 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34306 (eval $ac_try) 2>&5
34307 ac_status=$?
34308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34309 (exit $ac_status); }; }; then
34310 ac_cv_lib_esd_esd_close=yes
34311else
34312 echo "$as_me: failed program was:" >&5
34313sed 's/^/| /' conftest.$ac_ext >&5
34314
34315ac_cv_lib_esd_esd_close=no
34316fi
ac1cb8d3
VS
34317rm -f conftest.err conftest.$ac_objext \
34318 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34319LIBS=$ac_check_lib_save_LIBS
34320fi
34321echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
34322echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
34323if test $ac_cv_lib_esd_esd_close = yes; then
34324
34325
34326for ac_header in esd.h
34327do
34328as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34329if eval "test \"\${$as_ac_Header+set}\" = set"; then
34330 echo "$as_me:$LINENO: checking for $ac_header" >&5
34331echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34332if eval "test \"\${$as_ac_Header+set}\" = set"; then
34333 echo $ECHO_N "(cached) $ECHO_C" >&6
34334fi
34335echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34336echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34337else
34338 # Is the header compilable?
34339echo "$as_me:$LINENO: checking $ac_header usability" >&5
34340echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34341cat >conftest.$ac_ext <<_ACEOF
34342/* confdefs.h. */
34343_ACEOF
34344cat confdefs.h >>conftest.$ac_ext
34345cat >>conftest.$ac_ext <<_ACEOF
34346/* end confdefs.h. */
34347$ac_includes_default
34348#include <$ac_header>
34349_ACEOF
34350rm -f conftest.$ac_objext
34351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34352 (eval $ac_compile) 2>conftest.er1
a848cd7e 34353 ac_status=$?
ac1cb8d3
VS
34354 grep -v '^ *+' conftest.er1 >conftest.err
34355 rm -f conftest.er1
34356 cat conftest.err >&5
a848cd7e
SC
34357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34358 (exit $ac_status); } &&
fb00f58d
JS
34359 { ac_try='test -z "$ac_c_werror_flag"
34360 || test ! -s conftest.err'
ac1cb8d3
VS
34361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34362 (eval $ac_try) 2>&5
34363 ac_status=$?
34364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34365 (exit $ac_status); }; } &&
34366 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34368 (eval $ac_try) 2>&5
34369 ac_status=$?
34370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34371 (exit $ac_status); }; }; then
34372 ac_header_compiler=yes
34373else
34374 echo "$as_me: failed program was:" >&5
34375sed 's/^/| /' conftest.$ac_ext >&5
34376
34377ac_header_compiler=no
34378fi
ac1cb8d3 34379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34380echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34381echo "${ECHO_T}$ac_header_compiler" >&6
34382
34383# Is the header present?
34384echo "$as_me:$LINENO: checking $ac_header presence" >&5
34385echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34386cat >conftest.$ac_ext <<_ACEOF
34387/* confdefs.h. */
34388_ACEOF
34389cat confdefs.h >>conftest.$ac_ext
34390cat >>conftest.$ac_ext <<_ACEOF
34391/* end confdefs.h. */
34392#include <$ac_header>
34393_ACEOF
34394if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34395 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34396 ac_status=$?
34397 grep -v '^ *+' conftest.er1 >conftest.err
34398 rm -f conftest.er1
34399 cat conftest.err >&5
34400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34401 (exit $ac_status); } >/dev/null; then
34402 if test -s conftest.err; then
34403 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34405 else
34406 ac_cpp_err=
34407 fi
34408else
34409 ac_cpp_err=yes
34410fi
34411if test -z "$ac_cpp_err"; then
34412 ac_header_preproc=yes
34413else
34414 echo "$as_me: failed program was:" >&5
34415sed 's/^/| /' conftest.$ac_ext >&5
34416
34417 ac_header_preproc=no
34418fi
34419rm -f conftest.err conftest.$ac_ext
34420echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34421echo "${ECHO_T}$ac_header_preproc" >&6
34422
34423# So? What about this header?
ac1cb8d3
VS
34424case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34425 yes:no: )
a848cd7e
SC
34426 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34427echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34429echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34430 ac_header_preproc=yes
a848cd7e 34431 ;;
ac1cb8d3 34432 no:yes:* )
a848cd7e
SC
34433 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34434echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34435 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34436echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34437 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34438echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34439 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34440echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34442echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34443 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34444echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34445 (
34446 cat <<\_ASBOX
ac1cb8d3
VS
34447## ----------------------------------------- ##
34448## Report this to wx-dev@lists.wxwidgets.org ##
34449## ----------------------------------------- ##
a848cd7e
SC
34450_ASBOX
34451 ) |
34452 sed "s/^/$as_me: WARNING: /" >&2
34453 ;;
34454esac
34455echo "$as_me:$LINENO: checking for $ac_header" >&5
34456echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34457if eval "test \"\${$as_ac_Header+set}\" = set"; then
34458 echo $ECHO_N "(cached) $ECHO_C" >&6
34459else
ac1cb8d3 34460 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34461fi
34462echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34463echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34464
34465fi
34466if test `eval echo '${'$as_ac_Header'}'` = yes; then
34467 cat >>confdefs.h <<_ACEOF
34468#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34469_ACEOF
34470
34471 EXTRALIBS_ESD="-lesd"
34472
34473fi
34474
34475done
34476
34477
34478fi
34479
34480
34481
34482echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
34483echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
34484cat >conftest.$ac_ext <<_ACEOF
34485/* confdefs.h. */
34486_ACEOF
34487cat confdefs.h >>conftest.$ac_ext
34488cat >>conftest.$ac_ext <<_ACEOF
34489/* end confdefs.h. */
34490#ifdef __linux__
34491 #include <linux/cdrom.h>
34492 #else
34493 /* For Solaris */
34494 #include <sys/cdio.h>
34495 #endif
34496
34497int
34498main ()
34499{
34500struct cdrom_tocentry entry, old_entry;
34501 ;
34502 return 0;
34503}
34504_ACEOF
34505rm -f conftest.$ac_objext
34506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34507 (eval $ac_compile) 2>conftest.er1
a848cd7e 34508 ac_status=$?
ac1cb8d3
VS
34509 grep -v '^ *+' conftest.er1 >conftest.err
34510 rm -f conftest.er1
34511 cat conftest.err >&5
a848cd7e
SC
34512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34513 (exit $ac_status); } &&
fb00f58d
JS
34514 { ac_try='test -z "$ac_c_werror_flag"
34515 || test ! -s conftest.err'
ac1cb8d3
VS
34516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34517 (eval $ac_try) 2>&5
34518 ac_status=$?
34519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34520 (exit $ac_status); }; } &&
34521 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34523 (eval $ac_try) 2>&5
34524 ac_status=$?
34525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34526 (exit $ac_status); }; }; then
34527 echo "$as_me:$LINENO: result: yes" >&5
34528echo "${ECHO_T}yes" >&6
34529 cat >>confdefs.h <<\_ACEOF
34530#define HAVE_KNOWN_CDROM_INTERFACE 1
34531_ACEOF
34532
34533else
34534 echo "$as_me: failed program was:" >&5
34535sed 's/^/| /' conftest.$ac_ext >&5
34536
34537echo "$as_me:$LINENO: result: no" >&5
34538echo "${ECHO_T}no" >&6
34539fi
ac1cb8d3 34540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34541
34542
34543cat >confcache <<\_ACEOF
34544# This file is a shell script that caches the results of configure
34545# tests run on this system so they can be shared between configure
34546# scripts and configure runs, see configure's option --config-cache.
34547# It is not useful on other systems. If it contains results you don't
34548# want to keep, you may remove or edit it.
34549#
34550# config.status only pays attention to the cache file if you give it
34551# the --recheck option to rerun configure.
34552#
34553# `ac_cv_env_foo' variables (set or unset) will be overridden when
34554# loading this file, other *unset* `ac_cv_foo' will be assigned the
34555# following values.
34556
34557_ACEOF
34558
34559# The following way of writing the cache mishandles newlines in values,
34560# but we know of no workaround that is simple, portable, and efficient.
34561# So, don't put newlines in cache variables' values.
34562# Ultrix sh set writes to stderr and can't be redirected directly,
34563# and sets the high bit in the cache file unless we assign to the vars.
34564{
34565 (set) 2>&1 |
34566 case `(ac_space=' '; set | grep ac_space) 2>&1` in
34567 *ac_space=\ *)
34568 # `set' does not quote correctly, so add quotes (double-quote
34569 # substitution turns \\\\ into \\, and sed turns \\ into \).
34570 sed -n \
ac1cb8d3
VS
34571 "s/'/'\\\\''/g;
34572 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
34573 ;;
34574 *)
34575 # `set' quotes correctly as required by POSIX, so do not add quotes.
34576 sed -n \
ac1cb8d3 34577 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
34578 ;;
34579 esac;
34580} |
34581 sed '
34582 t clear
34583 : clear
34584 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34585 t end
34586 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34587 : end' >>confcache
34588if diff $cache_file confcache >/dev/null 2>&1; then :; else
34589 if test -w $cache_file; then
34590 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
34591 cat confcache >$cache_file
34592 else
34593 echo "not updating unwritable cache $cache_file"
34594 fi
34595fi
34596rm -f confcache
34597
34598
34599CPP_MT_FLAG=
34600if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
34601
34602
34603 THREADS_LINK=
34604 THREADS_CFLAGS=
34605
34606 if test "$wxUSE_THREADS" = "yes" ; then
34607 if test "$USE_BEOS" = 1; then
34608 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
34609echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
34610 wxUSE_THREADS="no"
34611 fi
34612 fi
34613
34614 if test "$wxUSE_THREADS" = "yes" ; then
34615
34616
34617 THREAD_OPTS="-pthread"
34618 case "${host}" in
34619 *-*-solaris2* | *-*-sunos4* )
34620 if test "x$GCC" = "xyes"; then
34621 THREAD_OPTS="-pthreads $THREAD_OPTS"
34622 else
34623 THREAD_OPTS="-mt $THREAD_OPTS"
34624 fi
34625 ;;
34626 *-*-freebsd*)
34627 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
34628 ;;
34629 *-*-darwin* | *-*-cygwin* )
34630 THREAD_OPTS=""
34631 ;;
34632 *-*-aix*)
34633 THREAD_OPTS="pthreads"
34634 ;;
34635 *-hp-hpux* )
34636 if test "x$GCC" != "xyes"; then
34637 THREAD_OPTS=""
34638 fi
34639 ;;
34640
34641 *-*-irix* )
34642 if test "x$GCC" = "xyes"; then
34643 THREAD_OPTS=""
34644 fi
34645 ;;
34646
34647 *-*-*UnixWare*)
34648 if test "x$GCC" != "xyes"; then
34649 THREAD_OPTS="-Ethread"
34650 fi
34651 ;;
34652 esac
34653
34654 THREAD_OPTS="$THREAD_OPTS pthread none"
34655
34656 THREADS_OK=no
34657 for flag in $THREAD_OPTS; do
34658 case $flag in
34659 none)
34660 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
34661echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
34662 ;;
34663
34664 -*)
34665 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
34666echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
34667 THREADS_CFLAGS="$flag"
34668 ;;
34669
34670 *)
34671 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
34672echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
34673 THREADS_LINK="-l$flag"
34674 ;;
34675 esac
34676
34677 save_LIBS="$LIBS"
34678 save_CFLAGS="$CFLAGS"
34679 LIBS="$THREADS_LINK $LIBS"
34680 CFLAGS="$THREADS_CFLAGS $CFLAGS"
34681
34682 cat >conftest.$ac_ext <<_ACEOF
34683/* confdefs.h. */
34684_ACEOF
34685cat confdefs.h >>conftest.$ac_ext
34686cat >>conftest.$ac_ext <<_ACEOF
34687/* end confdefs.h. */
34688#include <pthread.h>
34689int
34690main ()
34691{
34692pthread_create(0,0,0,0);
34693 ;
34694 return 0;
34695}
34696_ACEOF
34697rm -f conftest.$ac_objext conftest$ac_exeext
34698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34699 (eval $ac_link) 2>conftest.er1
a848cd7e 34700 ac_status=$?
ac1cb8d3
VS
34701 grep -v '^ *+' conftest.er1 >conftest.err
34702 rm -f conftest.er1
34703 cat conftest.err >&5
a848cd7e
SC
34704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34705 (exit $ac_status); } &&
fb00f58d
JS
34706 { ac_try='test -z "$ac_c_werror_flag"
34707 || test ! -s conftest.err'
ac1cb8d3
VS
34708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34709 (eval $ac_try) 2>&5
34710 ac_status=$?
34711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34712 (exit $ac_status); }; } &&
34713 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34715 (eval $ac_try) 2>&5
34716 ac_status=$?
34717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34718 (exit $ac_status); }; }; then
34719 THREADS_OK=yes
34720else
34721 echo "$as_me: failed program was:" >&5
34722sed 's/^/| /' conftest.$ac_ext >&5
34723
34724fi
ac1cb8d3
VS
34725rm -f conftest.err conftest.$ac_objext \
34726 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34727
34728 LIBS="$save_LIBS"
34729 CFLAGS="$save_CFLAGS"
34730
34731 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
34732echo "${ECHO_T}$THREADS_OK" >&6
34733 if test "x$THREADS_OK" = "xyes"; then
34734 break;
34735 fi
34736
34737 THREADS_LINK=""
34738 THREADS_CFLAGS=""
34739 done
34740
34741 if test "x$THREADS_OK" != "xyes"; then
34742 wxUSE_THREADS=no
34743 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
34744echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
34745 else
34746 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
34747 LIBS="$THREADS_LINK $LIBS"
34748
34749 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
34750echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
34751 flag=no
34752 case "${host}" in
34753 *-aix*)
34754 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
34755 flag="-D_THREAD_SAFE"
34756 ;;
34757 *-freebsd*)
34758 flag="-D_THREAD_SAFE"
34759 ;;
34760 *-hp-hpux* )
34761 flag="-D_REENTRANT"
34762 if test "x$GCC" != "xyes"; then
34763 flag="$flag -D_RWSTD_MULTI_THREAD"
34764 fi
34765 ;;
34766 *solaris* | alpha*-osf*)
34767 flag="-D_REENTRANT"
34768 ;;
34769 esac
34770 echo "$as_me:$LINENO: result: ${flag}" >&5
34771echo "${ECHO_T}${flag}" >&6
34772 if test "x$flag" != xno; then
34773 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
34774 fi
34775
34776 if test "x$THREADS_CFLAGS" != "x"; then
34777 CFLAGS="$CFLAGS $THREADS_CFLAGS"
34778 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
34779 fi
34780 fi
34781 fi
34782
34783 if test "$wxUSE_THREADS" = "yes" ; then
34784
34785for ac_func in thr_setconcurrency
34786do
34787as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34788echo "$as_me:$LINENO: checking for $ac_func" >&5
34789echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34790if eval "test \"\${$as_ac_var+set}\" = set"; then
34791 echo $ECHO_N "(cached) $ECHO_C" >&6
34792else
34793 cat >conftest.$ac_ext <<_ACEOF
34794/* confdefs.h. */
34795_ACEOF
34796cat confdefs.h >>conftest.$ac_ext
34797cat >>conftest.$ac_ext <<_ACEOF
34798/* end confdefs.h. */
ac1cb8d3
VS
34799/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34801#define $ac_func innocuous_$ac_func
34802
a848cd7e
SC
34803/* System header to define __stub macros and hopefully few prototypes,
34804 which can conflict with char $ac_func (); below.
34805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34806 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34807
a848cd7e
SC
34808#ifdef __STDC__
34809# include <limits.h>
34810#else
34811# include <assert.h>
34812#endif
ac1cb8d3
VS
34813
34814#undef $ac_func
34815
a848cd7e
SC
34816/* Override any gcc2 internal prototype to avoid an error. */
34817#ifdef __cplusplus
34818extern "C"
34819{
34820#endif
34821/* We use char because int might match the return type of a gcc2
34822 builtin and then its argument prototype would still apply. */
34823char $ac_func ();
34824/* The GNU C library defines this for functions which it implements
34825 to always fail with ENOSYS. Some functions are actually named
34826 something starting with __ and the normal name is an alias. */
34827#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34828choke me
34829#else
34830char (*f) () = $ac_func;
34831#endif
34832#ifdef __cplusplus
34833}
34834#endif
34835
34836int
34837main ()
34838{
34839return f != $ac_func;
34840 ;
34841 return 0;
34842}
34843_ACEOF
34844rm -f conftest.$ac_objext conftest$ac_exeext
34845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34846 (eval $ac_link) 2>conftest.er1
a848cd7e 34847 ac_status=$?
ac1cb8d3
VS
34848 grep -v '^ *+' conftest.er1 >conftest.err
34849 rm -f conftest.er1
34850 cat conftest.err >&5
a848cd7e
SC
34851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34852 (exit $ac_status); } &&
fb00f58d
JS
34853 { ac_try='test -z "$ac_c_werror_flag"
34854 || test ! -s conftest.err'
ac1cb8d3
VS
34855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34856 (eval $ac_try) 2>&5
34857 ac_status=$?
34858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34859 (exit $ac_status); }; } &&
34860 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34862 (eval $ac_try) 2>&5
34863 ac_status=$?
34864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34865 (exit $ac_status); }; }; then
34866 eval "$as_ac_var=yes"
34867else
34868 echo "$as_me: failed program was:" >&5
34869sed 's/^/| /' conftest.$ac_ext >&5
34870
34871eval "$as_ac_var=no"
34872fi
ac1cb8d3
VS
34873rm -f conftest.err conftest.$ac_objext \
34874 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34875fi
34876echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34877echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34878if test `eval echo '${'$as_ac_var'}'` = yes; then
34879 cat >>confdefs.h <<_ACEOF
34880#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34881_ACEOF
34882
34883fi
34884done
34885
34886
34887
34888for ac_header in sched.h
34889do
34890as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34891if eval "test \"\${$as_ac_Header+set}\" = set"; then
34892 echo "$as_me:$LINENO: checking for $ac_header" >&5
34893echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34894if eval "test \"\${$as_ac_Header+set}\" = set"; then
34895 echo $ECHO_N "(cached) $ECHO_C" >&6
34896fi
34897echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34898echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34899else
34900 # Is the header compilable?
34901echo "$as_me:$LINENO: checking $ac_header usability" >&5
34902echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34903cat >conftest.$ac_ext <<_ACEOF
34904/* confdefs.h. */
34905_ACEOF
34906cat confdefs.h >>conftest.$ac_ext
34907cat >>conftest.$ac_ext <<_ACEOF
34908/* end confdefs.h. */
34909$ac_includes_default
34910#include <$ac_header>
34911_ACEOF
34912rm -f conftest.$ac_objext
34913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34914 (eval $ac_compile) 2>conftest.er1
a848cd7e 34915 ac_status=$?
ac1cb8d3
VS
34916 grep -v '^ *+' conftest.er1 >conftest.err
34917 rm -f conftest.er1
34918 cat conftest.err >&5
a848cd7e
SC
34919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34920 (exit $ac_status); } &&
fb00f58d
JS
34921 { ac_try='test -z "$ac_c_werror_flag"
34922 || test ! -s conftest.err'
ac1cb8d3
VS
34923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34924 (eval $ac_try) 2>&5
34925 ac_status=$?
34926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34927 (exit $ac_status); }; } &&
34928 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34930 (eval $ac_try) 2>&5
34931 ac_status=$?
34932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34933 (exit $ac_status); }; }; then
34934 ac_header_compiler=yes
34935else
34936 echo "$as_me: failed program was:" >&5
34937sed 's/^/| /' conftest.$ac_ext >&5
34938
34939ac_header_compiler=no
34940fi
ac1cb8d3 34941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34942echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34943echo "${ECHO_T}$ac_header_compiler" >&6
34944
34945# Is the header present?
34946echo "$as_me:$LINENO: checking $ac_header presence" >&5
34947echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34948cat >conftest.$ac_ext <<_ACEOF
34949/* confdefs.h. */
34950_ACEOF
34951cat confdefs.h >>conftest.$ac_ext
34952cat >>conftest.$ac_ext <<_ACEOF
34953/* end confdefs.h. */
34954#include <$ac_header>
34955_ACEOF
34956if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34958 ac_status=$?
34959 grep -v '^ *+' conftest.er1 >conftest.err
34960 rm -f conftest.er1
34961 cat conftest.err >&5
34962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34963 (exit $ac_status); } >/dev/null; then
34964 if test -s conftest.err; then
34965 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34967 else
34968 ac_cpp_err=
34969 fi
34970else
34971 ac_cpp_err=yes
34972fi
34973if test -z "$ac_cpp_err"; then
34974 ac_header_preproc=yes
34975else
34976 echo "$as_me: failed program was:" >&5
34977sed 's/^/| /' conftest.$ac_ext >&5
34978
34979 ac_header_preproc=no
34980fi
34981rm -f conftest.err conftest.$ac_ext
34982echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34983echo "${ECHO_T}$ac_header_preproc" >&6
34984
34985# So? What about this header?
ac1cb8d3
VS
34986case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34987 yes:no: )
a848cd7e
SC
34988 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34989echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34991echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34992 ac_header_preproc=yes
a848cd7e 34993 ;;
ac1cb8d3 34994 no:yes:* )
a848cd7e
SC
34995 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34996echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34997 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34998echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34999 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35000echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35001 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35002echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35004echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35005 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35006echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35007 (
35008 cat <<\_ASBOX
ac1cb8d3
VS
35009## ----------------------------------------- ##
35010## Report this to wx-dev@lists.wxwidgets.org ##
35011## ----------------------------------------- ##
a848cd7e
SC
35012_ASBOX
35013 ) |
35014 sed "s/^/$as_me: WARNING: /" >&2
35015 ;;
35016esac
35017echo "$as_me:$LINENO: checking for $ac_header" >&5
35018echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35019if eval "test \"\${$as_ac_Header+set}\" = set"; then
35020 echo $ECHO_N "(cached) $ECHO_C" >&6
35021else
ac1cb8d3 35022 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35023fi
35024echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35025echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35026
35027fi
35028if test `eval echo '${'$as_ac_Header'}'` = yes; then
35029 cat >>confdefs.h <<_ACEOF
35030#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35031_ACEOF
35032
35033fi
35034
35035done
35036
35037 if test "$ac_cv_header_sched_h" = "yes"; then
35038 echo "$as_me:$LINENO: checking for sched_yield" >&5
35039echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
35040if test "${ac_cv_func_sched_yield+set}" = set; then
35041 echo $ECHO_N "(cached) $ECHO_C" >&6
35042else
35043 cat >conftest.$ac_ext <<_ACEOF
35044/* confdefs.h. */
35045_ACEOF
35046cat confdefs.h >>conftest.$ac_ext
35047cat >>conftest.$ac_ext <<_ACEOF
35048/* end confdefs.h. */
ac1cb8d3
VS
35049/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
35050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35051#define sched_yield innocuous_sched_yield
35052
a848cd7e
SC
35053/* System header to define __stub macros and hopefully few prototypes,
35054 which can conflict with char sched_yield (); below.
35055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35056 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35057
a848cd7e
SC
35058#ifdef __STDC__
35059# include <limits.h>
35060#else
35061# include <assert.h>
35062#endif
ac1cb8d3
VS
35063
35064#undef sched_yield
35065
a848cd7e
SC
35066/* Override any gcc2 internal prototype to avoid an error. */
35067#ifdef __cplusplus
35068extern "C"
35069{
35070#endif
35071/* We use char because int might match the return type of a gcc2
35072 builtin and then its argument prototype would still apply. */
35073char sched_yield ();
35074/* The GNU C library defines this for functions which it implements
35075 to always fail with ENOSYS. Some functions are actually named
35076 something starting with __ and the normal name is an alias. */
35077#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
35078choke me
35079#else
35080char (*f) () = sched_yield;
35081#endif
35082#ifdef __cplusplus
35083}
35084#endif
35085
35086int
35087main ()
35088{
35089return f != sched_yield;
35090 ;
35091 return 0;
35092}
35093_ACEOF
35094rm -f conftest.$ac_objext conftest$ac_exeext
35095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35096 (eval $ac_link) 2>conftest.er1
a848cd7e 35097 ac_status=$?
ac1cb8d3
VS
35098 grep -v '^ *+' conftest.er1 >conftest.err
35099 rm -f conftest.er1
35100 cat conftest.err >&5
a848cd7e
SC
35101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35102 (exit $ac_status); } &&
fb00f58d
JS
35103 { ac_try='test -z "$ac_c_werror_flag"
35104 || test ! -s conftest.err'
ac1cb8d3
VS
35105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35106 (eval $ac_try) 2>&5
35107 ac_status=$?
35108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35109 (exit $ac_status); }; } &&
35110 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35112 (eval $ac_try) 2>&5
35113 ac_status=$?
35114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35115 (exit $ac_status); }; }; then
35116 ac_cv_func_sched_yield=yes
35117else
35118 echo "$as_me: failed program was:" >&5
35119sed 's/^/| /' conftest.$ac_ext >&5
35120
35121ac_cv_func_sched_yield=no
35122fi
ac1cb8d3
VS
35123rm -f conftest.err conftest.$ac_objext \
35124 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35125fi
35126echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
35127echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
35128if test $ac_cv_func_sched_yield = yes; then
35129 cat >>confdefs.h <<\_ACEOF
35130#define HAVE_SCHED_YIELD 1
35131_ACEOF
35132
35133else
35134
35135 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
35136echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
35137if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
35138 echo $ECHO_N "(cached) $ECHO_C" >&6
35139else
35140 ac_check_lib_save_LIBS=$LIBS
35141LIBS="-lposix4 $LIBS"
35142cat >conftest.$ac_ext <<_ACEOF
35143/* confdefs.h. */
35144_ACEOF
35145cat confdefs.h >>conftest.$ac_ext
35146cat >>conftest.$ac_ext <<_ACEOF
35147/* end confdefs.h. */
35148
35149/* Override any gcc2 internal prototype to avoid an error. */
35150#ifdef __cplusplus
35151extern "C"
35152#endif
35153/* We use char because int might match the return type of a gcc2
35154 builtin and then its argument prototype would still apply. */
35155char sched_yield ();
35156int
35157main ()
35158{
35159sched_yield ();
35160 ;
35161 return 0;
35162}
35163_ACEOF
35164rm -f conftest.$ac_objext conftest$ac_exeext
35165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35166 (eval $ac_link) 2>conftest.er1
a848cd7e 35167 ac_status=$?
ac1cb8d3
VS
35168 grep -v '^ *+' conftest.er1 >conftest.err
35169 rm -f conftest.er1
35170 cat conftest.err >&5
a848cd7e
SC
35171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35172 (exit $ac_status); } &&
fb00f58d
JS
35173 { ac_try='test -z "$ac_c_werror_flag"
35174 || test ! -s conftest.err'
ac1cb8d3
VS
35175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35176 (eval $ac_try) 2>&5
35177 ac_status=$?
35178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35179 (exit $ac_status); }; } &&
35180 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35182 (eval $ac_try) 2>&5
35183 ac_status=$?
35184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35185 (exit $ac_status); }; }; then
35186 ac_cv_lib_posix4_sched_yield=yes
35187else
35188 echo "$as_me: failed program was:" >&5
35189sed 's/^/| /' conftest.$ac_ext >&5
35190
35191ac_cv_lib_posix4_sched_yield=no
35192fi
ac1cb8d3
VS
35193rm -f conftest.err conftest.$ac_objext \
35194 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35195LIBS=$ac_check_lib_save_LIBS
35196fi
35197echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
35198echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
35199if test $ac_cv_lib_posix4_sched_yield = yes; then
35200 cat >>confdefs.h <<\_ACEOF
35201#define HAVE_SCHED_YIELD 1
35202_ACEOF
35203 POSIX4_LINK=" -lposix4"
35204else
35205 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
35206echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
35207
35208fi
35209
35210
35211
35212fi
35213
35214 fi
35215
35216 HAVE_PRIOR_FUNCS=0
35217 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
35218echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
35219if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
35220 echo $ECHO_N "(cached) $ECHO_C" >&6
35221else
35222 cat >conftest.$ac_ext <<_ACEOF
35223/* confdefs.h. */
35224_ACEOF
35225cat confdefs.h >>conftest.$ac_ext
35226cat >>conftest.$ac_ext <<_ACEOF
35227/* end confdefs.h. */
ac1cb8d3
VS
35228/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
35229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35230#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
35231
a848cd7e
SC
35232/* System header to define __stub macros and hopefully few prototypes,
35233 which can conflict with char pthread_attr_getschedpolicy (); below.
35234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35235 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35236
a848cd7e
SC
35237#ifdef __STDC__
35238# include <limits.h>
35239#else
35240# include <assert.h>
35241#endif
ac1cb8d3
VS
35242
35243#undef pthread_attr_getschedpolicy
35244
a848cd7e
SC
35245/* Override any gcc2 internal prototype to avoid an error. */
35246#ifdef __cplusplus
35247extern "C"
35248{
35249#endif
35250/* We use char because int might match the return type of a gcc2
35251 builtin and then its argument prototype would still apply. */
35252char pthread_attr_getschedpolicy ();
35253/* The GNU C library defines this for functions which it implements
35254 to always fail with ENOSYS. Some functions are actually named
35255 something starting with __ and the normal name is an alias. */
35256#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
35257choke me
35258#else
35259char (*f) () = pthread_attr_getschedpolicy;
35260#endif
35261#ifdef __cplusplus
35262}
35263#endif
35264
35265int
35266main ()
35267{
35268return f != pthread_attr_getschedpolicy;
35269 ;
35270 return 0;
35271}
35272_ACEOF
35273rm -f conftest.$ac_objext conftest$ac_exeext
35274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35275 (eval $ac_link) 2>conftest.er1
a848cd7e 35276 ac_status=$?
ac1cb8d3
VS
35277 grep -v '^ *+' conftest.er1 >conftest.err
35278 rm -f conftest.er1
35279 cat conftest.err >&5
a848cd7e
SC
35280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35281 (exit $ac_status); } &&
fb00f58d
JS
35282 { ac_try='test -z "$ac_c_werror_flag"
35283 || test ! -s conftest.err'
ac1cb8d3
VS
35284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35285 (eval $ac_try) 2>&5
35286 ac_status=$?
35287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35288 (exit $ac_status); }; } &&
35289 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35291 (eval $ac_try) 2>&5
35292 ac_status=$?
35293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35294 (exit $ac_status); }; }; then
35295 ac_cv_func_pthread_attr_getschedpolicy=yes
35296else
35297 echo "$as_me: failed program was:" >&5
35298sed 's/^/| /' conftest.$ac_ext >&5
35299
35300ac_cv_func_pthread_attr_getschedpolicy=no
35301fi
ac1cb8d3
VS
35302rm -f conftest.err conftest.$ac_objext \
35303 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35304fi
35305echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
35306echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
35307if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
35308 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
35309echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
35310if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
35311 echo $ECHO_N "(cached) $ECHO_C" >&6
35312else
35313 cat >conftest.$ac_ext <<_ACEOF
35314/* confdefs.h. */
35315_ACEOF
35316cat confdefs.h >>conftest.$ac_ext
35317cat >>conftest.$ac_ext <<_ACEOF
35318/* end confdefs.h. */
ac1cb8d3
VS
35319/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
35320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35321#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
35322
a848cd7e
SC
35323/* System header to define __stub macros and hopefully few prototypes,
35324 which can conflict with char pthread_attr_setschedparam (); below.
35325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35326 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35327
a848cd7e
SC
35328#ifdef __STDC__
35329# include <limits.h>
35330#else
35331# include <assert.h>
35332#endif
ac1cb8d3
VS
35333
35334#undef pthread_attr_setschedparam
35335
a848cd7e
SC
35336/* Override any gcc2 internal prototype to avoid an error. */
35337#ifdef __cplusplus
35338extern "C"
35339{
35340#endif
35341/* We use char because int might match the return type of a gcc2
35342 builtin and then its argument prototype would still apply. */
35343char pthread_attr_setschedparam ();
35344/* The GNU C library defines this for functions which it implements
35345 to always fail with ENOSYS. Some functions are actually named
35346 something starting with __ and the normal name is an alias. */
35347#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
35348choke me
35349#else
35350char (*f) () = pthread_attr_setschedparam;
35351#endif
35352#ifdef __cplusplus
35353}
35354#endif
35355
35356int
35357main ()
35358{
35359return f != pthread_attr_setschedparam;
35360 ;
35361 return 0;
35362}
35363_ACEOF
35364rm -f conftest.$ac_objext conftest$ac_exeext
35365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35366 (eval $ac_link) 2>conftest.er1
a848cd7e 35367 ac_status=$?
ac1cb8d3
VS
35368 grep -v '^ *+' conftest.er1 >conftest.err
35369 rm -f conftest.er1
35370 cat conftest.err >&5
a848cd7e
SC
35371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35372 (exit $ac_status); } &&
fb00f58d
JS
35373 { ac_try='test -z "$ac_c_werror_flag"
35374 || test ! -s conftest.err'
ac1cb8d3
VS
35375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35376 (eval $ac_try) 2>&5
35377 ac_status=$?
35378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35379 (exit $ac_status); }; } &&
35380 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35382 (eval $ac_try) 2>&5
35383 ac_status=$?
35384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35385 (exit $ac_status); }; }; then
35386 ac_cv_func_pthread_attr_setschedparam=yes
35387else
35388 echo "$as_me: failed program was:" >&5
35389sed 's/^/| /' conftest.$ac_ext >&5
35390
35391ac_cv_func_pthread_attr_setschedparam=no
35392fi
ac1cb8d3
VS
35393rm -f conftest.err conftest.$ac_objext \
35394 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35395fi
35396echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
35397echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
35398if test $ac_cv_func_pthread_attr_setschedparam = yes; then
35399 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
35400echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
35401if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
35402 echo $ECHO_N "(cached) $ECHO_C" >&6
35403else
35404 cat >conftest.$ac_ext <<_ACEOF
35405/* confdefs.h. */
35406_ACEOF
35407cat confdefs.h >>conftest.$ac_ext
35408cat >>conftest.$ac_ext <<_ACEOF
35409/* end confdefs.h. */
ac1cb8d3
VS
35410/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
35411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35412#define sched_get_priority_max innocuous_sched_get_priority_max
35413
a848cd7e
SC
35414/* System header to define __stub macros and hopefully few prototypes,
35415 which can conflict with char sched_get_priority_max (); below.
35416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35417 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35418
a848cd7e
SC
35419#ifdef __STDC__
35420# include <limits.h>
35421#else
35422# include <assert.h>
35423#endif
ac1cb8d3
VS
35424
35425#undef sched_get_priority_max
35426
a848cd7e
SC
35427/* Override any gcc2 internal prototype to avoid an error. */
35428#ifdef __cplusplus
35429extern "C"
35430{
35431#endif
35432/* We use char because int might match the return type of a gcc2
35433 builtin and then its argument prototype would still apply. */
35434char sched_get_priority_max ();
35435/* The GNU C library defines this for functions which it implements
35436 to always fail with ENOSYS. Some functions are actually named
35437 something starting with __ and the normal name is an alias. */
35438#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
35439choke me
35440#else
35441char (*f) () = sched_get_priority_max;
35442#endif
35443#ifdef __cplusplus
35444}
35445#endif
35446
35447int
35448main ()
35449{
35450return f != sched_get_priority_max;
35451 ;
35452 return 0;
35453}
35454_ACEOF
35455rm -f conftest.$ac_objext conftest$ac_exeext
35456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35457 (eval $ac_link) 2>conftest.er1
a848cd7e 35458 ac_status=$?
ac1cb8d3
VS
35459 grep -v '^ *+' conftest.er1 >conftest.err
35460 rm -f conftest.er1
35461 cat conftest.err >&5
a848cd7e
SC
35462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35463 (exit $ac_status); } &&
fb00f58d
JS
35464 { ac_try='test -z "$ac_c_werror_flag"
35465 || test ! -s conftest.err'
ac1cb8d3
VS
35466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35467 (eval $ac_try) 2>&5
35468 ac_status=$?
35469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35470 (exit $ac_status); }; } &&
35471 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35473 (eval $ac_try) 2>&5
35474 ac_status=$?
35475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35476 (exit $ac_status); }; }; then
35477 ac_cv_func_sched_get_priority_max=yes
35478else
35479 echo "$as_me: failed program was:" >&5
35480sed 's/^/| /' conftest.$ac_ext >&5
35481
35482ac_cv_func_sched_get_priority_max=no
35483fi
ac1cb8d3
VS
35484rm -f conftest.err conftest.$ac_objext \
35485 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35486fi
35487echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
35488echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
35489if test $ac_cv_func_sched_get_priority_max = yes; then
35490 HAVE_PRIOR_FUNCS=1
35491else
35492 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
35493echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
35494if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
35495 echo $ECHO_N "(cached) $ECHO_C" >&6
35496else
35497 ac_check_lib_save_LIBS=$LIBS
35498LIBS="-lposix4 $LIBS"
35499cat >conftest.$ac_ext <<_ACEOF
35500/* confdefs.h. */
35501_ACEOF
35502cat confdefs.h >>conftest.$ac_ext
35503cat >>conftest.$ac_ext <<_ACEOF
35504/* end confdefs.h. */
35505
35506/* Override any gcc2 internal prototype to avoid an error. */
35507#ifdef __cplusplus
35508extern "C"
35509#endif
35510/* We use char because int might match the return type of a gcc2
35511 builtin and then its argument prototype would still apply. */
35512char sched_get_priority_max ();
35513int
35514main ()
35515{
35516sched_get_priority_max ();
35517 ;
35518 return 0;
35519}
35520_ACEOF
35521rm -f conftest.$ac_objext conftest$ac_exeext
35522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35523 (eval $ac_link) 2>conftest.er1
a848cd7e 35524 ac_status=$?
ac1cb8d3
VS
35525 grep -v '^ *+' conftest.er1 >conftest.err
35526 rm -f conftest.er1
35527 cat conftest.err >&5
a848cd7e
SC
35528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35529 (exit $ac_status); } &&
fb00f58d
JS
35530 { ac_try='test -z "$ac_c_werror_flag"
35531 || test ! -s conftest.err'
ac1cb8d3
VS
35532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35533 (eval $ac_try) 2>&5
35534 ac_status=$?
35535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35536 (exit $ac_status); }; } &&
35537 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35539 (eval $ac_try) 2>&5
35540 ac_status=$?
35541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35542 (exit $ac_status); }; }; then
35543 ac_cv_lib_posix4_sched_get_priority_max=yes
35544else
35545 echo "$as_me: failed program was:" >&5
35546sed 's/^/| /' conftest.$ac_ext >&5
35547
35548ac_cv_lib_posix4_sched_get_priority_max=no
35549fi
ac1cb8d3
VS
35550rm -f conftest.err conftest.$ac_objext \
35551 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35552LIBS=$ac_check_lib_save_LIBS
35553fi
35554echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
35555echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
35556if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
35557
35558 HAVE_PRIOR_FUNCS=1
35559 POSIX4_LINK=" -lposix4"
35560
35561fi
35562
35563
35564fi
35565
35566
35567fi
35568
35569
35570fi
35571
35572
35573 if test "$HAVE_PRIOR_FUNCS" = 1; then
35574 cat >>confdefs.h <<\_ACEOF
35575#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
35576_ACEOF
35577
35578 else
35579 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
35580echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
35581 fi
35582
35583 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
35584echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
35585if test "${ac_cv_func_pthread_cancel+set}" = set; then
35586 echo $ECHO_N "(cached) $ECHO_C" >&6
35587else
35588 cat >conftest.$ac_ext <<_ACEOF
35589/* confdefs.h. */
35590_ACEOF
35591cat confdefs.h >>conftest.$ac_ext
35592cat >>conftest.$ac_ext <<_ACEOF
35593/* end confdefs.h. */
ac1cb8d3
VS
35594/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
35595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35596#define pthread_cancel innocuous_pthread_cancel
35597
a848cd7e
SC
35598/* System header to define __stub macros and hopefully few prototypes,
35599 which can conflict with char pthread_cancel (); below.
35600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35601 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35602
a848cd7e
SC
35603#ifdef __STDC__
35604# include <limits.h>
35605#else
35606# include <assert.h>
35607#endif
ac1cb8d3
VS
35608
35609#undef pthread_cancel
35610
a848cd7e
SC
35611/* Override any gcc2 internal prototype to avoid an error. */
35612#ifdef __cplusplus
35613extern "C"
35614{
35615#endif
35616/* We use char because int might match the return type of a gcc2
35617 builtin and then its argument prototype would still apply. */
35618char pthread_cancel ();
35619/* The GNU C library defines this for functions which it implements
35620 to always fail with ENOSYS. Some functions are actually named
35621 something starting with __ and the normal name is an alias. */
35622#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
35623choke me
35624#else
35625char (*f) () = pthread_cancel;
35626#endif
35627#ifdef __cplusplus
35628}
35629#endif
35630
35631int
35632main ()
35633{
35634return f != pthread_cancel;
35635 ;
35636 return 0;
35637}
35638_ACEOF
35639rm -f conftest.$ac_objext conftest$ac_exeext
35640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35641 (eval $ac_link) 2>conftest.er1
a848cd7e 35642 ac_status=$?
ac1cb8d3
VS
35643 grep -v '^ *+' conftest.er1 >conftest.err
35644 rm -f conftest.er1
35645 cat conftest.err >&5
a848cd7e
SC
35646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35647 (exit $ac_status); } &&
fb00f58d
JS
35648 { ac_try='test -z "$ac_c_werror_flag"
35649 || test ! -s conftest.err'
ac1cb8d3
VS
35650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35651 (eval $ac_try) 2>&5
35652 ac_status=$?
35653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35654 (exit $ac_status); }; } &&
35655 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35657 (eval $ac_try) 2>&5
35658 ac_status=$?
35659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35660 (exit $ac_status); }; }; then
35661 ac_cv_func_pthread_cancel=yes
35662else
35663 echo "$as_me: failed program was:" >&5
35664sed 's/^/| /' conftest.$ac_ext >&5
35665
35666ac_cv_func_pthread_cancel=no
35667fi
ac1cb8d3
VS
35668rm -f conftest.err conftest.$ac_objext \
35669 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35670fi
35671echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
35672echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
35673if test $ac_cv_func_pthread_cancel = yes; then
35674 cat >>confdefs.h <<\_ACEOF
35675#define HAVE_PTHREAD_CANCEL 1
35676_ACEOF
35677
35678else
35679 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
35680echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
35681fi
35682
35683
abc736fd
MW
35684 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
35685echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
35686if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
35687 echo $ECHO_N "(cached) $ECHO_C" >&6
35688else
35689 cat >conftest.$ac_ext <<_ACEOF
35690/* confdefs.h. */
35691_ACEOF
35692cat confdefs.h >>conftest.$ac_ext
35693cat >>conftest.$ac_ext <<_ACEOF
35694/* end confdefs.h. */
35695/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
35696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35697#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
35698
35699/* System header to define __stub macros and hopefully few prototypes,
35700 which can conflict with char pthread_attr_setstacksize (); below.
35701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35702 <limits.h> exists even on freestanding compilers. */
35703
35704#ifdef __STDC__
35705# include <limits.h>
35706#else
35707# include <assert.h>
35708#endif
35709
35710#undef pthread_attr_setstacksize
35711
35712/* Override any gcc2 internal prototype to avoid an error. */
35713#ifdef __cplusplus
35714extern "C"
35715{
35716#endif
35717/* We use char because int might match the return type of a gcc2
35718 builtin and then its argument prototype would still apply. */
35719char pthread_attr_setstacksize ();
35720/* The GNU C library defines this for functions which it implements
35721 to always fail with ENOSYS. Some functions are actually named
35722 something starting with __ and the normal name is an alias. */
35723#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
35724choke me
35725#else
35726char (*f) () = pthread_attr_setstacksize;
35727#endif
35728#ifdef __cplusplus
35729}
35730#endif
35731
35732int
35733main ()
35734{
35735return f != pthread_attr_setstacksize;
35736 ;
35737 return 0;
35738}
35739_ACEOF
35740rm -f conftest.$ac_objext conftest$ac_exeext
35741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35742 (eval $ac_link) 2>conftest.er1
35743 ac_status=$?
35744 grep -v '^ *+' conftest.er1 >conftest.err
35745 rm -f conftest.er1
35746 cat conftest.err >&5
35747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35748 (exit $ac_status); } &&
35749 { ac_try='test -z "$ac_c_werror_flag"
35750 || test ! -s conftest.err'
35751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35752 (eval $ac_try) 2>&5
35753 ac_status=$?
35754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35755 (exit $ac_status); }; } &&
35756 { ac_try='test -s conftest$ac_exeext'
35757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35758 (eval $ac_try) 2>&5
35759 ac_status=$?
35760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35761 (exit $ac_status); }; }; then
35762 ac_cv_func_pthread_attr_setstacksize=yes
35763else
35764 echo "$as_me: failed program was:" >&5
35765sed 's/^/| /' conftest.$ac_ext >&5
35766
35767ac_cv_func_pthread_attr_setstacksize=no
35768fi
35769rm -f conftest.err conftest.$ac_objext \
35770 conftest$ac_exeext conftest.$ac_ext
35771fi
35772echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
35773echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
35774if test $ac_cv_func_pthread_attr_setstacksize = yes; then
35775 cat >>confdefs.h <<\_ACEOF
35776#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
35777_ACEOF
35778
35779fi
35780
a848cd7e
SC
35781
35782
35783 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
35784echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
35785if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
35786 echo $ECHO_N "(cached) $ECHO_C" >&6
35787else
35788
35789 cat >conftest.$ac_ext <<_ACEOF
35790/* confdefs.h. */
35791_ACEOF
35792cat confdefs.h >>conftest.$ac_ext
35793cat >>conftest.$ac_ext <<_ACEOF
35794/* end confdefs.h. */
35795#include <pthread.h>
35796int
35797main ()
35798{
35799
35800 pthread_mutexattr_t attr;
35801 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
35802
35803 ;
35804 return 0;
35805}
35806_ACEOF
35807rm -f conftest.$ac_objext
35808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35809 (eval $ac_compile) 2>conftest.er1
a848cd7e 35810 ac_status=$?
ac1cb8d3
VS
35811 grep -v '^ *+' conftest.er1 >conftest.err
35812 rm -f conftest.er1
35813 cat conftest.err >&5
a848cd7e
SC
35814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35815 (exit $ac_status); } &&
fb00f58d
JS
35816 { ac_try='test -z "$ac_c_werror_flag"
35817 || test ! -s conftest.err'
ac1cb8d3
VS
35818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35819 (eval $ac_try) 2>&5
35820 ac_status=$?
35821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35822 (exit $ac_status); }; } &&
35823 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35825 (eval $ac_try) 2>&5
35826 ac_status=$?
35827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35828 (exit $ac_status); }; }; then
35829
35830 wx_cv_type_pthread_mutexattr_t=yes
35831
35832else
35833 echo "$as_me: failed program was:" >&5
35834sed 's/^/| /' conftest.$ac_ext >&5
35835
35836
35837 wx_cv_type_pthread_mutexattr_t=no
35838
35839
35840fi
ac1cb8d3 35841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35842
35843fi
35844echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
35845echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
35846
35847 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
35848 cat >>confdefs.h <<\_ACEOF
35849#define HAVE_PTHREAD_MUTEXATTR_T 1
35850_ACEOF
35851
35852 else
35853 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
35854echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
35855if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
35856 echo $ECHO_N "(cached) $ECHO_C" >&6
35857else
35858
35859 cat >conftest.$ac_ext <<_ACEOF
35860/* confdefs.h. */
35861_ACEOF
35862cat confdefs.h >>conftest.$ac_ext
35863cat >>conftest.$ac_ext <<_ACEOF
35864/* end confdefs.h. */
35865#include <pthread.h>
35866int
35867main ()
35868{
35869
35870 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
35871
35872 ;
35873 return 0;
35874}
35875_ACEOF
35876rm -f conftest.$ac_objext
35877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35878 (eval $ac_compile) 2>conftest.er1
a848cd7e 35879 ac_status=$?
ac1cb8d3
VS
35880 grep -v '^ *+' conftest.er1 >conftest.err
35881 rm -f conftest.er1
35882 cat conftest.err >&5
a848cd7e
SC
35883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35884 (exit $ac_status); } &&
fb00f58d
JS
35885 { ac_try='test -z "$ac_c_werror_flag"
35886 || test ! -s conftest.err'
ac1cb8d3
VS
35887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35888 (eval $ac_try) 2>&5
35889 ac_status=$?
35890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35891 (exit $ac_status); }; } &&
35892 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35894 (eval $ac_try) 2>&5
35895 ac_status=$?
35896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35897 (exit $ac_status); }; }; then
35898
35899 wx_cv_type_pthread_rec_mutex_init=yes
35900
35901else
35902 echo "$as_me: failed program was:" >&5
35903sed 's/^/| /' conftest.$ac_ext >&5
35904
35905
35906 wx_cv_type_pthread_rec_mutex_init=no
35907
35908
35909fi
ac1cb8d3 35910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35911
35912fi
35913echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
35914echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
35915 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
35916 cat >>confdefs.h <<\_ACEOF
35917#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
35918_ACEOF
35919
35920 else
35921 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
35922echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
35923 fi
35924 fi
35925 fi
35926
35927else
35928 if test "$wxUSE_THREADS" = "yes" ; then
35929 case "${host}" in
35930 *-*-mingw32* )
35931 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
35932echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
35933if test "${wx_cv_cflags_mthread+set}" = set; then
35934 echo $ECHO_N "(cached) $ECHO_C" >&6
35935else
35936
35937 CFLAGS_OLD="$CFLAGS"
35938 CFLAGS="$CFLAGS -mthreads"
35939 cat >conftest.$ac_ext <<_ACEOF
35940/* confdefs.h. */
35941_ACEOF
35942cat confdefs.h >>conftest.$ac_ext
35943cat >>conftest.$ac_ext <<_ACEOF
35944/* end confdefs.h. */
35945
35946int
35947main ()
35948{
35949
35950 ;
35951 return 0;
35952}
35953_ACEOF
35954rm -f conftest.$ac_objext
35955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35956 (eval $ac_compile) 2>conftest.er1
a848cd7e 35957 ac_status=$?
ac1cb8d3
VS
35958 grep -v '^ *+' conftest.er1 >conftest.err
35959 rm -f conftest.er1
35960 cat conftest.err >&5
a848cd7e
SC
35961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35962 (exit $ac_status); } &&
fb00f58d
JS
35963 { ac_try='test -z "$ac_c_werror_flag"
35964 || test ! -s conftest.err'
ac1cb8d3
VS
35965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35966 (eval $ac_try) 2>&5
35967 ac_status=$?
35968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35969 (exit $ac_status); }; } &&
35970 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35972 (eval $ac_try) 2>&5
35973 ac_status=$?
35974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35975 (exit $ac_status); }; }; then
35976 wx_cv_cflags_mthread=yes
35977else
35978 echo "$as_me: failed program was:" >&5
35979sed 's/^/| /' conftest.$ac_ext >&5
35980
35981wx_cv_cflags_mthread=no
35982
35983fi
ac1cb8d3 35984rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35985
35986
35987fi
35988echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
35989echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
35990
35991 if test "$wx_cv_cflags_mthread" = "yes"; then
35992 CXXFLAGS="$CXXFLAGS -mthreads"
35993 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
35994 LDFLAGS="$LDFLAGS -mthreads"
35995 else
35996 CFLAGS="$CFLAGS_OLD"
35997 fi
35998 ;;
35999 *-pc-os2*emx )
36000 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
36001 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
36002 LDFLAGS="$LDFLAGS -Zmt"
36003 ;;
36004 esac
36005 fi
36006fi
36007
36008if test "$wxUSE_THREADS" = "yes"; then
36009 cat >>confdefs.h <<\_ACEOF
36010#define wxUSE_THREADS 1
36011_ACEOF
36012
36013
36014 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
36015else
36016 if test "$ac_cv_func_strtok_r" = "yes"; then
36017 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
36018echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
36019 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
36020 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
36021 echo "$as_me:$LINENO: result: yes" >&5
36022echo "${ECHO_T}yes" >&6
36023 else
36024 echo "$as_me:$LINENO: result: no" >&5
36025echo "${ECHO_T}no" >&6
36026 fi
36027 fi
36028fi
36029
36030if test "$WXGTK20" = 1 ; then
36031 cat >>confdefs.h <<_ACEOF
36032#define __WXGTK20__ $WXGTK20
36033_ACEOF
36034
36035 WXGTK12=1
36036fi
36037
36038if test "$WXGTK12" = 1 ; then
36039 cat >>confdefs.h <<_ACEOF
36040#define __WXGTK12__ $WXGTK12
36041_ACEOF
36042
36043fi
36044
36045if test "$WXGTK127" = 1 ; then
36046 cat >>confdefs.h <<_ACEOF
36047#define __WXGTK127__ $WXGTK127
36048_ACEOF
36049
36050fi
36051
36052if test "$WXGPE" = 1 ; then
36053 cat >>confdefs.h <<_ACEOF
36054#define __WXGPE__ $WXGPE
36055_ACEOF
36056
36057fi
36058
36059WXDEBUG=
36060
36061if test "$wxUSE_DEBUG_INFO" = "yes" ; then
36062 WXDEBUG="-g"
36063 wxUSE_OPTIMISE=no
36064fi
36065
36066if test "$wxUSE_DEBUG_GDB" = "yes" ; then
36067 wxUSE_DEBUG_INFO=yes
18228ab4
MW
36068 if test "$GCC" = yes; then
36069 WXDEBUG="-ggdb"
36070 fi
a848cd7e
SC
36071fi
36072
36073if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
36074 cat >>confdefs.h <<\_ACEOF
36075#define WXDEBUG 1
36076_ACEOF
36077
36078 WXDEBUG_DEFINE="-D__WXDEBUG__"
36079else
36080 if test "$wxUSE_GTK" = 1 ; then
36081 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
36082 fi
36083fi
36084
36085if test "$wxUSE_MEM_TRACING" = "yes" ; then
36086 cat >>confdefs.h <<\_ACEOF
36087#define wxUSE_MEMORY_TRACING 1
36088_ACEOF
36089
36090 cat >>confdefs.h <<\_ACEOF
36091#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
36092_ACEOF
36093
36094 cat >>confdefs.h <<\_ACEOF
36095#define wxUSE_DEBUG_NEW_ALWAYS 1
36096_ACEOF
36097
36098 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
36099fi
36100
36101if test "$wxUSE_DMALLOC" = "yes" ; then
df1b269d 36102 DMALLOC_LIBS="-ldmallocthcxx"
a848cd7e
SC
36103fi
36104
36105PROFILE=
36106if test "$wxUSE_PROFILE" = "yes" ; then
36107 PROFILE=" -pg"
36108fi
36109
36110CODE_GEN_FLAGS=
36111CODE_GEN_FLAGS_CXX=
36112if test "$GCC" = "yes" ; then
36113 if test "$wxUSE_NO_RTTI" = "yes" ; then
36114 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
36115 fi
36116 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
36117 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
36118 fi
36119 if test "$wxUSE_PERMISSIVE" = "yes" ; then
36120 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
36121 fi
36122
36123 case "${host}" in
36124 powerpc*-*-aix* )
36125 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
36126 ;;
36127 *-hppa* )
36128 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
36129 ;;
36130 esac
36131fi
36132
36133OPTIMISE=
36134if test "$wxUSE_OPTIMISE" = "no" ; then
36135 if test "$GCC" = yes ; then
36136 OPTIMISE="-O0"
36137 fi
36138else
36139 if test "$GCC" = yes ; then
36140 OPTIMISE="-O2"
36141
36142 case "${host}" in
36143 i586-*-*|i686-*-* )
36144 OPTIMISE="${OPTIMISE} "
36145 ;;
36146 esac
36147 else
36148 OPTIMISE="-O"
36149 fi
36150fi
36151
36152
36153if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
36154 cat >>confdefs.h <<\_ACEOF
36155#define WXWIN_COMPATIBILITY_2_2 1
36156_ACEOF
36157
36158
36159 WXWIN_COMPATIBILITY_2_4="yes"
36160fi
36161
36162if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
36163 cat >>confdefs.h <<\_ACEOF
36164#define WXWIN_COMPATIBILITY_2_4 1
36165_ACEOF
36166
36167fi
36168
36169
36170if test "$wxUSE_GUI" = "yes"; then
881bfcd6 36171 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36172#define wxUSE_GUI 1
36173_ACEOF
36174
36175
370fd4c2 36176 fi
a848cd7e
SC
36177
36178
36179if test "$wxUSE_UNIX" = "yes"; then
36180 cat >>confdefs.h <<\_ACEOF
36181#define wxUSE_UNIX 1
36182_ACEOF
36183
36184fi
36185
36186
36187if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
36188
36189 HAVE_DL_FUNCS=0
36190 HAVE_SHL_FUNCS=0
36191 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
36192 if test "$USE_DARWIN" = 1; then
36193 HAVE_DL_FUNCS=1
47a7e797
MW
36194 elif test "$USE_DOS" = 1; then
36195 HAVE_DL_FUNCS=0
a848cd7e
SC
36196 else
36197
36198for ac_func in dlopen
36199do
36200as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36201echo "$as_me:$LINENO: checking for $ac_func" >&5
36202echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36203if eval "test \"\${$as_ac_var+set}\" = set"; then
36204 echo $ECHO_N "(cached) $ECHO_C" >&6
36205else
36206 cat >conftest.$ac_ext <<_ACEOF
36207/* confdefs.h. */
36208_ACEOF
36209cat confdefs.h >>conftest.$ac_ext
36210cat >>conftest.$ac_ext <<_ACEOF
36211/* end confdefs.h. */
ac1cb8d3
VS
36212/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36214#define $ac_func innocuous_$ac_func
36215
a848cd7e
SC
36216/* System header to define __stub macros and hopefully few prototypes,
36217 which can conflict with char $ac_func (); below.
36218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36219 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36220
a848cd7e
SC
36221#ifdef __STDC__
36222# include <limits.h>
36223#else
36224# include <assert.h>
36225#endif
ac1cb8d3
VS
36226
36227#undef $ac_func
36228
a848cd7e
SC
36229/* Override any gcc2 internal prototype to avoid an error. */
36230#ifdef __cplusplus
36231extern "C"
36232{
36233#endif
36234/* We use char because int might match the return type of a gcc2
36235 builtin and then its argument prototype would still apply. */
36236char $ac_func ();
36237/* The GNU C library defines this for functions which it implements
36238 to always fail with ENOSYS. Some functions are actually named
36239 something starting with __ and the normal name is an alias. */
36240#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36241choke me
36242#else
36243char (*f) () = $ac_func;
36244#endif
36245#ifdef __cplusplus
36246}
36247#endif
36248
36249int
36250main ()
36251{
36252return f != $ac_func;
36253 ;
36254 return 0;
36255}
36256_ACEOF
36257rm -f conftest.$ac_objext conftest$ac_exeext
36258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36259 (eval $ac_link) 2>conftest.er1
a848cd7e 36260 ac_status=$?
ac1cb8d3
VS
36261 grep -v '^ *+' conftest.er1 >conftest.err
36262 rm -f conftest.er1
36263 cat conftest.err >&5
a848cd7e
SC
36264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36265 (exit $ac_status); } &&
fb00f58d
JS
36266 { ac_try='test -z "$ac_c_werror_flag"
36267 || test ! -s conftest.err'
ac1cb8d3
VS
36268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36269 (eval $ac_try) 2>&5
36270 ac_status=$?
36271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36272 (exit $ac_status); }; } &&
36273 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36275 (eval $ac_try) 2>&5
36276 ac_status=$?
36277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36278 (exit $ac_status); }; }; then
36279 eval "$as_ac_var=yes"
36280else
36281 echo "$as_me: failed program was:" >&5
36282sed 's/^/| /' conftest.$ac_ext >&5
36283
36284eval "$as_ac_var=no"
36285fi
ac1cb8d3
VS
36286rm -f conftest.err conftest.$ac_objext \
36287 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36288fi
36289echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36290echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36291if test `eval echo '${'$as_ac_var'}'` = yes; then
36292 cat >>confdefs.h <<_ACEOF
36293#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36294_ACEOF
36295
36296 cat >>confdefs.h <<\_ACEOF
36297#define HAVE_DLOPEN 1
36298_ACEOF
36299
36300 HAVE_DL_FUNCS=1
36301
36302else
36303
36304 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
36305echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
36306if test "${ac_cv_lib_dl_dlopen+set}" = set; then
36307 echo $ECHO_N "(cached) $ECHO_C" >&6
36308else
36309 ac_check_lib_save_LIBS=$LIBS
36310LIBS="-ldl $LIBS"
36311cat >conftest.$ac_ext <<_ACEOF
36312/* confdefs.h. */
36313_ACEOF
36314cat confdefs.h >>conftest.$ac_ext
36315cat >>conftest.$ac_ext <<_ACEOF
36316/* end confdefs.h. */
36317
36318/* Override any gcc2 internal prototype to avoid an error. */
36319#ifdef __cplusplus
36320extern "C"
36321#endif
36322/* We use char because int might match the return type of a gcc2
36323 builtin and then its argument prototype would still apply. */
36324char dlopen ();
36325int
36326main ()
36327{
36328dlopen ();
36329 ;
36330 return 0;
36331}
36332_ACEOF
36333rm -f conftest.$ac_objext conftest$ac_exeext
36334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36335 (eval $ac_link) 2>conftest.er1
a848cd7e 36336 ac_status=$?
ac1cb8d3
VS
36337 grep -v '^ *+' conftest.er1 >conftest.err
36338 rm -f conftest.er1
36339 cat conftest.err >&5
a848cd7e
SC
36340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36341 (exit $ac_status); } &&
fb00f58d
JS
36342 { ac_try='test -z "$ac_c_werror_flag"
36343 || test ! -s conftest.err'
ac1cb8d3
VS
36344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36345 (eval $ac_try) 2>&5
36346 ac_status=$?
36347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36348 (exit $ac_status); }; } &&
36349 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36351 (eval $ac_try) 2>&5
36352 ac_status=$?
36353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36354 (exit $ac_status); }; }; then
36355 ac_cv_lib_dl_dlopen=yes
36356else
36357 echo "$as_me: failed program was:" >&5
36358sed 's/^/| /' conftest.$ac_ext >&5
36359
36360ac_cv_lib_dl_dlopen=no
36361fi
ac1cb8d3
VS
36362rm -f conftest.err conftest.$ac_objext \
36363 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36364LIBS=$ac_check_lib_save_LIBS
36365fi
36366echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
36367echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
36368if test $ac_cv_lib_dl_dlopen = yes; then
36369
36370 cat >>confdefs.h <<\_ACEOF
36371#define HAVE_DLOPEN 1
36372_ACEOF
36373
36374 HAVE_DL_FUNCS=1
36375 DL_LINK=" -ldl$DL_LINK"
36376
36377else
36378
36379
36380for ac_func in shl_load
36381do
36382as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36383echo "$as_me:$LINENO: checking for $ac_func" >&5
36384echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36385if eval "test \"\${$as_ac_var+set}\" = set"; then
36386 echo $ECHO_N "(cached) $ECHO_C" >&6
36387else
36388 cat >conftest.$ac_ext <<_ACEOF
36389/* confdefs.h. */
36390_ACEOF
36391cat confdefs.h >>conftest.$ac_ext
36392cat >>conftest.$ac_ext <<_ACEOF
36393/* end confdefs.h. */
ac1cb8d3
VS
36394/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36396#define $ac_func innocuous_$ac_func
36397
a848cd7e
SC
36398/* System header to define __stub macros and hopefully few prototypes,
36399 which can conflict with char $ac_func (); below.
36400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36401 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36402
a848cd7e
SC
36403#ifdef __STDC__
36404# include <limits.h>
36405#else
36406# include <assert.h>
36407#endif
ac1cb8d3
VS
36408
36409#undef $ac_func
36410
a848cd7e
SC
36411/* Override any gcc2 internal prototype to avoid an error. */
36412#ifdef __cplusplus
36413extern "C"
36414{
36415#endif
36416/* We use char because int might match the return type of a gcc2
36417 builtin and then its argument prototype would still apply. */
36418char $ac_func ();
36419/* The GNU C library defines this for functions which it implements
36420 to always fail with ENOSYS. Some functions are actually named
36421 something starting with __ and the normal name is an alias. */
36422#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36423choke me
36424#else
36425char (*f) () = $ac_func;
36426#endif
36427#ifdef __cplusplus
36428}
36429#endif
36430
36431int
36432main ()
36433{
36434return f != $ac_func;
36435 ;
36436 return 0;
36437}
36438_ACEOF
36439rm -f conftest.$ac_objext conftest$ac_exeext
36440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36441 (eval $ac_link) 2>conftest.er1
a848cd7e 36442 ac_status=$?
ac1cb8d3
VS
36443 grep -v '^ *+' conftest.er1 >conftest.err
36444 rm -f conftest.er1
36445 cat conftest.err >&5
a848cd7e
SC
36446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36447 (exit $ac_status); } &&
fb00f58d
JS
36448 { ac_try='test -z "$ac_c_werror_flag"
36449 || test ! -s conftest.err'
ac1cb8d3
VS
36450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36451 (eval $ac_try) 2>&5
36452 ac_status=$?
36453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36454 (exit $ac_status); }; } &&
36455 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36457 (eval $ac_try) 2>&5
36458 ac_status=$?
36459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36460 (exit $ac_status); }; }; then
36461 eval "$as_ac_var=yes"
36462else
36463 echo "$as_me: failed program was:" >&5
36464sed 's/^/| /' conftest.$ac_ext >&5
36465
36466eval "$as_ac_var=no"
36467fi
ac1cb8d3
VS
36468rm -f conftest.err conftest.$ac_objext \
36469 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36470fi
36471echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36472echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36473if test `eval echo '${'$as_ac_var'}'` = yes; then
36474 cat >>confdefs.h <<_ACEOF
36475#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36476_ACEOF
36477
36478 cat >>confdefs.h <<\_ACEOF
36479#define HAVE_SHL_LOAD 1
36480_ACEOF
36481
36482 HAVE_SHL_FUNCS=1
36483
36484else
36485
36486 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
36487echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
36488if test "${ac_cv_lib_shl_load_dld+set}" = set; then
36489 echo $ECHO_N "(cached) $ECHO_C" >&6
36490else
36491 ac_check_lib_save_LIBS=$LIBS
36492LIBS="-lshl_load $LIBS"
36493cat >conftest.$ac_ext <<_ACEOF
36494/* confdefs.h. */
36495_ACEOF
36496cat confdefs.h >>conftest.$ac_ext
36497cat >>conftest.$ac_ext <<_ACEOF
36498/* end confdefs.h. */
36499
36500/* Override any gcc2 internal prototype to avoid an error. */
36501#ifdef __cplusplus
36502extern "C"
36503#endif
36504/* We use char because int might match the return type of a gcc2
36505 builtin and then its argument prototype would still apply. */
36506char dld ();
36507int
36508main ()
36509{
36510dld ();
36511 ;
36512 return 0;
36513}
36514_ACEOF
36515rm -f conftest.$ac_objext conftest$ac_exeext
36516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36517 (eval $ac_link) 2>conftest.er1
a848cd7e 36518 ac_status=$?
ac1cb8d3
VS
36519 grep -v '^ *+' conftest.er1 >conftest.err
36520 rm -f conftest.er1
36521 cat conftest.err >&5
a848cd7e
SC
36522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36523 (exit $ac_status); } &&
fb00f58d
JS
36524 { ac_try='test -z "$ac_c_werror_flag"
36525 || test ! -s conftest.err'
ac1cb8d3
VS
36526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36527 (eval $ac_try) 2>&5
36528 ac_status=$?
36529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36530 (exit $ac_status); }; } &&
36531 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36533 (eval $ac_try) 2>&5
36534 ac_status=$?
36535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36536 (exit $ac_status); }; }; then
36537 ac_cv_lib_shl_load_dld=yes
36538else
36539 echo "$as_me: failed program was:" >&5
36540sed 's/^/| /' conftest.$ac_ext >&5
36541
36542ac_cv_lib_shl_load_dld=no
36543fi
ac1cb8d3
VS
36544rm -f conftest.err conftest.$ac_objext \
36545 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36546LIBS=$ac_check_lib_save_LIBS
36547fi
36548echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
36549echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
36550if test $ac_cv_lib_shl_load_dld = yes; then
36551
36552 HAVE_SHL_FUNCS=1
36553 DL_LINK=" -ldld$DL_LINK"
36554
36555fi
36556
36557
36558fi
36559done
36560
36561
36562fi
36563
36564
36565fi
36566done
36567
36568
36569 if test "$HAVE_DL_FUNCS" = 1; then
36570
36571for ac_func in dlerror
36572do
36573as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36574echo "$as_me:$LINENO: checking for $ac_func" >&5
36575echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36576if eval "test \"\${$as_ac_var+set}\" = set"; then
36577 echo $ECHO_N "(cached) $ECHO_C" >&6
36578else
36579 cat >conftest.$ac_ext <<_ACEOF
36580/* confdefs.h. */
36581_ACEOF
36582cat confdefs.h >>conftest.$ac_ext
36583cat >>conftest.$ac_ext <<_ACEOF
36584/* end confdefs.h. */
ac1cb8d3
VS
36585/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36587#define $ac_func innocuous_$ac_func
36588
a848cd7e
SC
36589/* System header to define __stub macros and hopefully few prototypes,
36590 which can conflict with char $ac_func (); below.
36591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36592 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36593
a848cd7e
SC
36594#ifdef __STDC__
36595# include <limits.h>
36596#else
36597# include <assert.h>
36598#endif
ac1cb8d3
VS
36599
36600#undef $ac_func
36601
a848cd7e
SC
36602/* Override any gcc2 internal prototype to avoid an error. */
36603#ifdef __cplusplus
36604extern "C"
36605{
36606#endif
36607/* We use char because int might match the return type of a gcc2
36608 builtin and then its argument prototype would still apply. */
36609char $ac_func ();
36610/* The GNU C library defines this for functions which it implements
36611 to always fail with ENOSYS. Some functions are actually named
36612 something starting with __ and the normal name is an alias. */
36613#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36614choke me
36615#else
36616char (*f) () = $ac_func;
36617#endif
36618#ifdef __cplusplus
36619}
36620#endif
36621
36622int
36623main ()
36624{
36625return f != $ac_func;
36626 ;
36627 return 0;
36628}
36629_ACEOF
36630rm -f conftest.$ac_objext conftest$ac_exeext
36631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36632 (eval $ac_link) 2>conftest.er1
a848cd7e 36633 ac_status=$?
ac1cb8d3
VS
36634 grep -v '^ *+' conftest.er1 >conftest.err
36635 rm -f conftest.er1
36636 cat conftest.err >&5
a848cd7e
SC
36637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36638 (exit $ac_status); } &&
fb00f58d
JS
36639 { ac_try='test -z "$ac_c_werror_flag"
36640 || test ! -s conftest.err'
ac1cb8d3
VS
36641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36642 (eval $ac_try) 2>&5
36643 ac_status=$?
36644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36645 (exit $ac_status); }; } &&
36646 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36648 (eval $ac_try) 2>&5
36649 ac_status=$?
36650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36651 (exit $ac_status); }; }; then
36652 eval "$as_ac_var=yes"
36653else
36654 echo "$as_me: failed program was:" >&5
36655sed 's/^/| /' conftest.$ac_ext >&5
36656
36657eval "$as_ac_var=no"
36658fi
ac1cb8d3
VS
36659rm -f conftest.err conftest.$ac_objext \
36660 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36661fi
36662echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36663echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36664if test `eval echo '${'$as_ac_var'}'` = yes; then
36665 cat >>confdefs.h <<_ACEOF
36666#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36667_ACEOF
36668 cat >>confdefs.h <<\_ACEOF
36669#define HAVE_DLERROR 1
36670_ACEOF
36671
36672else
36673
36674 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
36675echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
36676if test "${ac_cv_lib_dl_dlerror+set}" = set; then
36677 echo $ECHO_N "(cached) $ECHO_C" >&6
36678else
36679 ac_check_lib_save_LIBS=$LIBS
36680LIBS="-ldl $LIBS"
36681cat >conftest.$ac_ext <<_ACEOF
36682/* confdefs.h. */
36683_ACEOF
36684cat confdefs.h >>conftest.$ac_ext
36685cat >>conftest.$ac_ext <<_ACEOF
36686/* end confdefs.h. */
36687
36688/* Override any gcc2 internal prototype to avoid an error. */
36689#ifdef __cplusplus
36690extern "C"
36691#endif
36692/* We use char because int might match the return type of a gcc2
36693 builtin and then its argument prototype would still apply. */
36694char dlerror ();
36695int
36696main ()
36697{
36698dlerror ();
36699 ;
36700 return 0;
36701}
36702_ACEOF
36703rm -f conftest.$ac_objext conftest$ac_exeext
36704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36705 (eval $ac_link) 2>conftest.er1
a848cd7e 36706 ac_status=$?
ac1cb8d3
VS
36707 grep -v '^ *+' conftest.er1 >conftest.err
36708 rm -f conftest.er1
36709 cat conftest.err >&5
a848cd7e
SC
36710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36711 (exit $ac_status); } &&
fb00f58d
JS
36712 { ac_try='test -z "$ac_c_werror_flag"
36713 || test ! -s conftest.err'
ac1cb8d3
VS
36714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36715 (eval $ac_try) 2>&5
36716 ac_status=$?
36717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36718 (exit $ac_status); }; } &&
36719 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36721 (eval $ac_try) 2>&5
36722 ac_status=$?
36723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36724 (exit $ac_status); }; }; then
36725 ac_cv_lib_dl_dlerror=yes
36726else
36727 echo "$as_me: failed program was:" >&5
36728sed 's/^/| /' conftest.$ac_ext >&5
36729
36730ac_cv_lib_dl_dlerror=no
36731fi
ac1cb8d3
VS
36732rm -f conftest.err conftest.$ac_objext \
36733 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36734LIBS=$ac_check_lib_save_LIBS
36735fi
36736echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
36737echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
36738if test $ac_cv_lib_dl_dlerror = yes; then
36739 cat >>confdefs.h <<\_ACEOF
36740#define HAVE_DLERROR 1
36741_ACEOF
36742
36743fi
36744
36745
36746
36747fi
36748done
36749
36750 fi
36751 fi
36752
36753 if test "$HAVE_DL_FUNCS" = 0; then
36754 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 36755 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
36756 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
36757echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
36758 wxUSE_DYNAMIC_LOADER=no
36759 wxUSE_DYNLIB_CLASS=no
36760 else
36761 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
36762echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
36763 fi
36764 fi
36765 fi
36766 fi
36767fi
36768
36769if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
36770 cat >>confdefs.h <<\_ACEOF
36771#define wxUSE_DYNAMIC_LOADER 1
36772_ACEOF
36773
36774fi
36775if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
36776 cat >>confdefs.h <<\_ACEOF
36777#define wxUSE_DYNLIB_CLASS 1
36778_ACEOF
36779
36780fi
36781
36782
36783
36784if test "$wxUSE_PLUGINS" = "yes" ; then
36785 if test "$wxUSE_SHARED" = "no" ; then
36786 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
36787echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
36788 wxUSE_PLUGINS=no
36789 fi
36790 if test "$wxUSE_MONOLITHIC" = "yes" ; then
36791 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
36792echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
36793 wxUSE_PLUGINS=no
36794 fi
36795 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
36796 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
36797echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
36798 wxUSE_PLUGINS=no
36799 fi
36800 if test "$wxUSE_PLUGINS" = "yes" ; then
36801 cat >>confdefs.h <<\_ACEOF
36802#define wxUSE_PLUGINS 1
36803_ACEOF
36804
36805 fi
36806fi
36807
36808
36809if test "$wxUSE_STL" = "yes"; then
36810 cat >>confdefs.h <<\_ACEOF
36811#define wxUSE_STL 1
36812_ACEOF
36813
36814fi
36815
36816if test "$wxUSE_APPLE_IEEE" = "yes"; then
36817 cat >>confdefs.h <<\_ACEOF
36818#define wxUSE_APPLE_IEEE 1
36819_ACEOF
36820
36821fi
36822
36823if test "$wxUSE_TIMER" = "yes"; then
36824 cat >>confdefs.h <<\_ACEOF
36825#define wxUSE_TIMER 1
36826_ACEOF
36827
36828fi
36829
9c112555 36830if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
36831
36832for ac_header in sys/soundcard.h
36833do
36834as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36835if eval "test \"\${$as_ac_Header+set}\" = set"; then
36836 echo "$as_me:$LINENO: checking for $ac_header" >&5
36837echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36838if eval "test \"\${$as_ac_Header+set}\" = set"; then
36839 echo $ECHO_N "(cached) $ECHO_C" >&6
36840fi
36841echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36842echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36843else
36844 # Is the header compilable?
36845echo "$as_me:$LINENO: checking $ac_header usability" >&5
36846echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36847cat >conftest.$ac_ext <<_ACEOF
36848/* confdefs.h. */
36849_ACEOF
36850cat confdefs.h >>conftest.$ac_ext
36851cat >>conftest.$ac_ext <<_ACEOF
36852/* end confdefs.h. */
36853$ac_includes_default
36854#include <$ac_header>
36855_ACEOF
36856rm -f conftest.$ac_objext
36857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36858 (eval $ac_compile) 2>conftest.er1
a848cd7e 36859 ac_status=$?
ac1cb8d3
VS
36860 grep -v '^ *+' conftest.er1 >conftest.err
36861 rm -f conftest.er1
36862 cat conftest.err >&5
a848cd7e
SC
36863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36864 (exit $ac_status); } &&
fb00f58d
JS
36865 { ac_try='test -z "$ac_c_werror_flag"
36866 || test ! -s conftest.err'
ac1cb8d3
VS
36867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36868 (eval $ac_try) 2>&5
36869 ac_status=$?
36870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36871 (exit $ac_status); }; } &&
36872 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36874 (eval $ac_try) 2>&5
36875 ac_status=$?
36876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36877 (exit $ac_status); }; }; then
36878 ac_header_compiler=yes
36879else
36880 echo "$as_me: failed program was:" >&5
36881sed 's/^/| /' conftest.$ac_ext >&5
36882
36883ac_header_compiler=no
36884fi
ac1cb8d3 36885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36886echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36887echo "${ECHO_T}$ac_header_compiler" >&6
36888
36889# Is the header present?
36890echo "$as_me:$LINENO: checking $ac_header presence" >&5
36891echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36892cat >conftest.$ac_ext <<_ACEOF
36893/* confdefs.h. */
36894_ACEOF
36895cat confdefs.h >>conftest.$ac_ext
36896cat >>conftest.$ac_ext <<_ACEOF
36897/* end confdefs.h. */
36898#include <$ac_header>
36899_ACEOF
36900if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36902 ac_status=$?
36903 grep -v '^ *+' conftest.er1 >conftest.err
36904 rm -f conftest.er1
36905 cat conftest.err >&5
36906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36907 (exit $ac_status); } >/dev/null; then
36908 if test -s conftest.err; then
36909 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36911 else
36912 ac_cpp_err=
36913 fi
36914else
36915 ac_cpp_err=yes
36916fi
36917if test -z "$ac_cpp_err"; then
36918 ac_header_preproc=yes
36919else
36920 echo "$as_me: failed program was:" >&5
36921sed 's/^/| /' conftest.$ac_ext >&5
36922
36923 ac_header_preproc=no
36924fi
36925rm -f conftest.err conftest.$ac_ext
36926echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36927echo "${ECHO_T}$ac_header_preproc" >&6
36928
36929# So? What about this header?
ac1cb8d3
VS
36930case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36931 yes:no: )
a848cd7e
SC
36932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36933echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36935echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36936 ac_header_preproc=yes
a848cd7e 36937 ;;
ac1cb8d3 36938 no:yes:* )
a848cd7e
SC
36939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36940echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36942echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36944echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36946echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36948echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36950echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36951 (
36952 cat <<\_ASBOX
ac1cb8d3
VS
36953## ----------------------------------------- ##
36954## Report this to wx-dev@lists.wxwidgets.org ##
36955## ----------------------------------------- ##
a848cd7e
SC
36956_ASBOX
36957 ) |
36958 sed "s/^/$as_me: WARNING: /" >&2
36959 ;;
36960esac
36961echo "$as_me:$LINENO: checking for $ac_header" >&5
36962echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36963if eval "test \"\${$as_ac_Header+set}\" = set"; then
36964 echo $ECHO_N "(cached) $ECHO_C" >&6
36965else
ac1cb8d3 36966 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36967fi
36968echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36969echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36970
36971fi
36972if test `eval echo '${'$as_ac_Header'}'` = yes; then
36973 cat >>confdefs.h <<_ACEOF
36974#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36975_ACEOF
36976
9c112555
MW
36977else
36978 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
a848cd7e
SC
36979fi
36980
36981done
36982
9c112555
MW
36983fi
36984WITH_PLUGIN_SDL=0
36985if test "$wxUSE_SOUND" = "yes"; then
36986 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
36987 if test "$wxUSE_LIBSDL" != "no"; then
36988
36989# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
36990if test "${with_sdl_prefix+set}" = set; then
36991 withval="$with_sdl_prefix"
36992 sdl_prefix="$withval"
36993else
36994 sdl_prefix=""
36995fi;
36996
36997# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
36998if test "${with_sdl_exec_prefix+set}" = set; then
36999 withval="$with_sdl_exec_prefix"
37000 sdl_exec_prefix="$withval"
37001else
37002 sdl_exec_prefix=""
37003fi;
37004# Check whether --enable-sdltest or --disable-sdltest was given.
37005if test "${enable_sdltest+set}" = set; then
37006 enableval="$enable_sdltest"
37007
37008else
37009 enable_sdltest=yes
37010fi;
37011
37012 if test x$sdl_exec_prefix != x ; then
37013 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
37014 if test x${SDL_CONFIG+set} != xset ; then
37015 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
37016 fi
37017 fi
37018 if test x$sdl_prefix != x ; then
37019 sdl_args="$sdl_args --prefix=$sdl_prefix"
37020 if test x${SDL_CONFIG+set} != xset ; then
37021 SDL_CONFIG=$sdl_prefix/bin/sdl-config
37022 fi
37023 fi
37024
37025
37026 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
37027 # Extract the first word of "sdl-config", so it can be a program name with args.
37028set dummy sdl-config; ac_word=$2
37029echo "$as_me:$LINENO: checking for $ac_word" >&5
37030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37031if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
37032 echo $ECHO_N "(cached) $ECHO_C" >&6
37033else
37034 case $SDL_CONFIG in
37035 [\\/]* | ?:[\\/]*)
37036 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
37037 ;;
37038 *)
37039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37040for as_dir in $PATH
37041do
37042 IFS=$as_save_IFS
37043 test -z "$as_dir" && as_dir=.
37044 for ac_exec_ext in '' $ac_executable_extensions; do
37045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37046 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37048 break 2
37049 fi
37050done
37051done
37052
37053 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
37054 ;;
37055esac
37056fi
37057SDL_CONFIG=$ac_cv_path_SDL_CONFIG
37058
37059if test -n "$SDL_CONFIG"; then
37060 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
37061echo "${ECHO_T}$SDL_CONFIG" >&6
37062else
37063 echo "$as_me:$LINENO: result: no" >&5
37064echo "${ECHO_T}no" >&6
37065fi
37066
37067 min_sdl_version=1.2.0
37068 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
37069echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
37070 no_sdl=""
37071 if test "$SDL_CONFIG" = "no" ; then
37072 no_sdl=yes
37073 else
37074 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
37075 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
37076
37077 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
37078 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
37079 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
37080 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
37081 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
37082 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
37083 if test "x$enable_sdltest" = "xyes" ; then
37084 ac_save_CFLAGS="$CFLAGS"
94acd38e 37085 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
37086 ac_save_LIBS="$LIBS"
37087 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 37088 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
37089 LIBS="$LIBS $SDL_LIBS"
37090 rm -f conf.sdltest
37091 if test "$cross_compiling" = yes; then
37092 echo $ac_n "cross compiling; assumed OK... $ac_c"
37093else
37094 cat >conftest.$ac_ext <<_ACEOF
37095/* confdefs.h. */
37096_ACEOF
37097cat confdefs.h >>conftest.$ac_ext
37098cat >>conftest.$ac_ext <<_ACEOF
37099/* end confdefs.h. */
37100
37101#include <stdio.h>
37102#include <stdlib.h>
37103#include <string.h>
37104#include "SDL.h"
37105
37106char*
37107my_strdup (char *str)
37108{
37109 char *new_str;
37110
37111 if (str)
37112 {
37113 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
37114 strcpy (new_str, str);
37115 }
37116 else
37117 new_str = NULL;
37118
37119 return new_str;
37120}
37121
37122int main (int argc, char *argv[])
37123{
37124 int major, minor, micro;
37125 char *tmp_version;
37126
37127 /* This hangs on some systems (?)
37128 system ("touch conf.sdltest");
37129 */
37130 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
37131
37132 /* HP/UX 9 (%@#!) writes to sscanf strings */
37133 tmp_version = my_strdup("$min_sdl_version");
37134 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
37135 printf("%s, bad version string\n", "$min_sdl_version");
37136 exit(1);
37137 }
37138
37139 if (($sdl_major_version > major) ||
37140 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
37141 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
37142 {
37143 return 0;
37144 }
37145 else
37146 {
37147 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
37148 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
37149 printf("*** best to upgrade to the required version.\n");
37150 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
37151 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
37152 printf("*** config.cache before re-running configure\n");
37153 return 1;
37154 }
37155}
37156
37157
37158_ACEOF
37159rm -f conftest$ac_exeext
37160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37161 (eval $ac_link) 2>&5
37162 ac_status=$?
37163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37164 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37166 (eval $ac_try) 2>&5
37167 ac_status=$?
37168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37169 (exit $ac_status); }; }; then
37170 :
37171else
37172 echo "$as_me: program exited with status $ac_status" >&5
37173echo "$as_me: failed program was:" >&5
37174sed 's/^/| /' conftest.$ac_ext >&5
37175
37176( exit $ac_status )
37177no_sdl=yes
37178fi
ac1cb8d3 37179rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37180fi
37181 CFLAGS="$ac_save_CFLAGS"
94acd38e 37182 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
37183 LIBS="$ac_save_LIBS"
37184 fi
37185 fi
37186 if test "x$no_sdl" = x ; then
37187 echo "$as_me:$LINENO: result: yes" >&5
37188echo "${ECHO_T}yes" >&6
37189
37190 EXTRALIBS_SDL="$SDL_LIBS"
37191 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
37192 cat >>confdefs.h <<\_ACEOF
37193#define wxUSE_LIBSDL 1
37194_ACEOF
37195
37196
37197 else
37198 echo "$as_me:$LINENO: result: no" >&5
37199echo "${ECHO_T}no" >&6
37200 if test "$SDL_CONFIG" = "no" ; then
37201 echo "*** The sdl-config script installed by SDL could not be found"
37202 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
37203 echo "*** your path, or set the SDL_CONFIG environment variable to the"
37204 echo "*** full path to sdl-config."
37205 else
37206 if test -f conf.sdltest ; then
37207 :
37208 else
37209 echo "*** Could not run SDL test program, checking why..."
37210 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 37211 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
37212 LIBS="$LIBS $SDL_LIBS"
37213 cat >conftest.$ac_ext <<_ACEOF
37214/* confdefs.h. */
37215_ACEOF
37216cat confdefs.h >>conftest.$ac_ext
37217cat >>conftest.$ac_ext <<_ACEOF
37218/* end confdefs.h. */
37219
37220#include <stdio.h>
37221#include "SDL.h"
37222
37223int main(int argc, char *argv[])
37224{ return 0; }
37225#undef main
37226#define main K_and_R_C_main
37227
37228int
37229main ()
37230{
37231 return 0;
37232 ;
37233 return 0;
37234}
37235_ACEOF
37236rm -f conftest.$ac_objext conftest$ac_exeext
37237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37238 (eval $ac_link) 2>conftest.er1
a848cd7e 37239 ac_status=$?
ac1cb8d3
VS
37240 grep -v '^ *+' conftest.er1 >conftest.err
37241 rm -f conftest.er1
37242 cat conftest.err >&5
a848cd7e
SC
37243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37244 (exit $ac_status); } &&
fb00f58d
JS
37245 { ac_try='test -z "$ac_c_werror_flag"
37246 || test ! -s conftest.err'
ac1cb8d3
VS
37247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37248 (eval $ac_try) 2>&5
37249 ac_status=$?
37250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37251 (exit $ac_status); }; } &&
37252 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37254 (eval $ac_try) 2>&5
37255 ac_status=$?
37256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37257 (exit $ac_status); }; }; then
37258 echo "*** The test program compiled, but did not run. This usually means"
37259 echo "*** that the run-time linker is not finding SDL or finding the wrong"
37260 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
37261 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
37262 echo "*** to the installed location Also, make sure you have run ldconfig if that"
37263 echo "*** is required on your system"
37264 echo "***"
37265 echo "*** If you have an old version installed, it is best to remove it, although"
37266 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
37267else
37268 echo "$as_me: failed program was:" >&5
37269sed 's/^/| /' conftest.$ac_ext >&5
37270
37271 echo "*** The test program failed to compile or link. See the file config.log for the"
37272 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
37273 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
37274 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
37275fi
ac1cb8d3
VS
37276rm -f conftest.err conftest.$ac_objext \
37277 conftest$ac_exeext conftest.$ac_ext
a848cd7e 37278 CFLAGS="$ac_save_CFLAGS"
94acd38e 37279 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
37280 LIBS="$ac_save_LIBS"
37281 fi
37282 fi
37283 SDL_CFLAGS=""
37284 SDL_LIBS=""
37285 wxUSE_LIBSDL="no"
37286 fi
37287
37288
37289 rm -f conf.sdltest
37290
37291 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
37292 WITH_PLUGIN_SDL=1
37293 fi
37294 fi
37295 fi
37296
37297 cat >>confdefs.h <<\_ACEOF
37298#define wxUSE_SOUND 1
37299_ACEOF
37300
37301 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
37302fi
37303
d1c38808
VZ
37304if test "$WXGTK20" = 1; then
37305 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
37306 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
37307
37308
37309 succeeded=no
37310
37311 if test -z "$PKG_CONFIG"; then
37312 # Extract the first word of "pkg-config", so it can be a program name with args.
37313set dummy pkg-config; ac_word=$2
37314echo "$as_me:$LINENO: checking for $ac_word" >&5
37315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37316if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
37317 echo $ECHO_N "(cached) $ECHO_C" >&6
37318else
37319 case $PKG_CONFIG in
37320 [\\/]* | ?:[\\/]*)
37321 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
37322 ;;
37323 *)
37324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37325for as_dir in $PATH
37326do
37327 IFS=$as_save_IFS
37328 test -z "$as_dir" && as_dir=.
37329 for ac_exec_ext in '' $ac_executable_extensions; do
37330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37331 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
37332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37333 break 2
37334 fi
37335done
37336done
37337
37338 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
37339 ;;
37340esac
37341fi
37342PKG_CONFIG=$ac_cv_path_PKG_CONFIG
37343
37344if test -n "$PKG_CONFIG"; then
37345 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
37346echo "${ECHO_T}$PKG_CONFIG" >&6
37347else
37348 echo "$as_me:$LINENO: result: no" >&5
37349echo "${ECHO_T}no" >&6
37350fi
37351
37352 fi
37353
37354 if test "$PKG_CONFIG" = "no" ; then
37355 echo "*** The pkg-config script could not be found. Make sure it is"
37356 echo "*** in your path, or set the PKG_CONFIG environment variable"
37357 echo "*** to the full path to pkg-config."
37358 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
37359 else
37360 PKG_CONFIG_MIN_VERSION=0.9.0
37361 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
37362 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
37363echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 37364
ffa762ff 37365 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
37366 echo "$as_me:$LINENO: result: yes" >&5
37367echo "${ECHO_T}yes" >&6
37368 succeeded=yes
37369
37370 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
37371echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 37372 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
37373 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
37374echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
37375
37376 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
37377echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 37378 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
37379 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
37380echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
37381 else
37382 LIBGNOMEPRINTUI_CFLAGS=""
37383 LIBGNOMEPRINTUI_LIBS=""
37384 ## If we have a custom action on failure, don't print errors, but
37385 ## do set a variable so people can do so.
ffa762ff 37386 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
37387
37388 fi
37389
37390
37391
37392 else
37393 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
37394 echo "*** See http://www.freedesktop.org/software/pkgconfig"
37395 fi
37396 fi
37397
37398 if test $succeeded = yes; then
37399
d1c38808
VZ
37400 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
37401 cat >>confdefs.h <<\_ACEOF
37402#define wxUSE_LIBGNOMEPRINT 1
37403_ACEOF
37404
37405
37406 else
37407
37408 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
37409echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
37410 wxUSE_LIBGNOMEPRINT="no"
37411
37412
37413 fi
37414
37415 fi
37416 fi
37417fi
37418
37419
a848cd7e
SC
37420if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
37421 cat >>confdefs.h <<\_ACEOF
37422#define wxUSE_CMDLINE_PARSER 1
37423_ACEOF
37424
37425fi
37426
37427if test "$wxUSE_STOPWATCH" = "yes"; then
37428 cat >>confdefs.h <<\_ACEOF
37429#define wxUSE_STOPWATCH 1
37430_ACEOF
37431
37432fi
37433
37434if test "$wxUSE_DATETIME" = "yes"; then
37435 cat >>confdefs.h <<\_ACEOF
37436#define wxUSE_DATETIME 1
37437_ACEOF
37438
37439fi
37440
37441if test "$wxUSE_FILE" = "yes"; then
37442 cat >>confdefs.h <<\_ACEOF
37443#define wxUSE_FILE 1
37444_ACEOF
37445
37446fi
37447
37448if test "$wxUSE_FFILE" = "yes"; then
37449 cat >>confdefs.h <<\_ACEOF
37450#define wxUSE_FFILE 1
37451_ACEOF
37452
37453fi
37454
37455if test "$wxUSE_FILESYSTEM" = "yes"; then
37456 cat >>confdefs.h <<\_ACEOF
37457#define wxUSE_FILESYSTEM 1
37458_ACEOF
37459
37460fi
37461
37462if test "$wxUSE_FS_ZIP" = "yes"; then
37463 cat >>confdefs.h <<\_ACEOF
37464#define wxUSE_FS_ZIP 1
37465_ACEOF
37466
37467fi
37468
9e8e867f 37469if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 37470 cat >>confdefs.h <<\_ACEOF
9e8e867f 37471#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
37472_ACEOF
37473
37474fi
37475
37476if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 37477 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
37478 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
37479echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
37480 elif test "$wxUSE_ZLIB" = "no"; then
37481 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
37482echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
37483 else
37484 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37485#define wxUSE_ZIPSTREAM 1
37486_ACEOF
37487
81f90336 37488 fi
a848cd7e
SC
37489fi
37490
a848cd7e 37491if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
37492 if test "$USE_UNIX" != 1; then
37493 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
37494echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
37495 wxUSE_ON_FATAL_EXCEPTION=no
37496 else
37497 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37498#define wxUSE_ON_FATAL_EXCEPTION 1
37499_ACEOF
37500
18228ab4 37501 fi
a848cd7e
SC
37502fi
37503
eaff0f0d
VZ
37504if test "$wxUSE_STACKWALKER" = "yes"; then
37505 cat >>confdefs.h <<\_ACEOF
37506#define wxUSE_STACKWALKER 1
37507_ACEOF
37508
37509fi
37510
36b6448c 37511if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
37512 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
37513 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
37514echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
37515 wxUSE_DEBUGREPORT=no
37516 else
37517 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
37518#define wxUSE_DEBUGREPORT 1
37519_ACEOF
37520
21dfc162
MW
37521 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
37522 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
37523 fi
dfe0c803 37524 fi
36b6448c
VZ
37525fi
37526
a848cd7e
SC
37527if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37528 cat >>confdefs.h <<\_ACEOF
37529#define wxUSE_SNGLINST_CHECKER 1
37530_ACEOF
37531
37532fi
37533
37534if test "$wxUSE_BUSYINFO" = "yes"; then
37535 cat >>confdefs.h <<\_ACEOF
37536#define wxUSE_BUSYINFO 1
37537_ACEOF
37538
37539fi
37540
37541if test "$wxUSE_STD_IOSTREAM" = "yes"; then
37542 cat >>confdefs.h <<\_ACEOF
37543#define wxUSE_STD_IOSTREAM 1
37544_ACEOF
37545
37546fi
37547
59746b65
MW
37548if test "$wxUSE_STD_STRING" = "yes"; then
37549 cat >>confdefs.h <<\_ACEOF
37550#define wxUSE_STD_STRING 1
37551_ACEOF
37552
37553fi
37554
07158944
VZ
37555if test "$wxUSE_STDPATHS" = "yes"; then
37556 cat >>confdefs.h <<\_ACEOF
37557#define wxUSE_STDPATHS 1
37558_ACEOF
37559
37560fi
37561
a848cd7e
SC
37562if test "$wxUSE_TEXTBUFFER" = "yes"; then
37563 cat >>confdefs.h <<\_ACEOF
37564#define wxUSE_TEXTBUFFER 1
37565_ACEOF
37566
37567fi
37568
37569if test "$wxUSE_TEXTFILE" = "yes"; then
37570 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
37571 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
37572echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
37573 else
37574 cat >>confdefs.h <<\_ACEOF
37575#define wxUSE_TEXTFILE 1
37576_ACEOF
37577
37578 fi
37579fi
37580
37581if test "$wxUSE_CONFIG" = "yes" ; then
37582 if test "$wxUSE_TEXTFILE" != "yes"; then
37583 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
37584echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
37585 else
37586 cat >>confdefs.h <<\_ACEOF
37587#define wxUSE_CONFIG 1
89be85c2
VS
37588_ACEOF
37589
37590 cat >>confdefs.h <<\_ACEOF
37591#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
37592_ACEOF
37593
37594 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
37595 fi
37596fi
37597
37598if test "$wxUSE_INTL" = "yes" ; then
37599 if test "$wxUSE_FILE" != "yes"; then
37600 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
37601echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
37602 else
37603 cat >>confdefs.h <<\_ACEOF
37604#define wxUSE_INTL 1
37605_ACEOF
37606
37607 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
37608 GUIDIST="$GUIDIST INTL_DIST"
37609 fi
37610fi
37611
37612if test "$wxUSE_LOG" = "yes"; then
37613 cat >>confdefs.h <<\_ACEOF
37614#define wxUSE_LOG 1
37615_ACEOF
37616
37617
37618 if test "$wxUSE_LOGGUI" = "yes"; then
37619 cat >>confdefs.h <<\_ACEOF
37620#define wxUSE_LOGGUI 1
37621_ACEOF
37622
37623 fi
37624
37625 if test "$wxUSE_LOGWINDOW" = "yes"; then
37626 cat >>confdefs.h <<\_ACEOF
37627#define wxUSE_LOGWINDOW 1
37628_ACEOF
37629
37630 fi
37631
37632 if test "$wxUSE_LOGDIALOG" = "yes"; then
37633 cat >>confdefs.h <<\_ACEOF
37634#define wxUSE_LOG_DIALOG 1
37635_ACEOF
37636
37637 fi
0b78747f
MW
37638
37639 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
37640fi
37641
37642if test "$wxUSE_LONGLONG" = "yes"; then
37643 cat >>confdefs.h <<\_ACEOF
37644#define wxUSE_LONGLONG 1
37645_ACEOF
37646
37647fi
37648
37649if test "$wxUSE_GEOMETRY" = "yes"; then
37650 cat >>confdefs.h <<\_ACEOF
37651#define wxUSE_GEOMETRY 1
37652_ACEOF
37653
37654fi
37655
a848cd7e
SC
37656if test "$wxUSE_STREAMS" = "yes" ; then
37657 cat >>confdefs.h <<\_ACEOF
37658#define wxUSE_STREAMS 1
37659_ACEOF
37660
37661fi
37662
37663
37664if test "$wxUSE_DATETIME" = "yes"; then
37665
37666for ac_func in strptime
37667do
37668as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37669echo "$as_me:$LINENO: checking for $ac_func" >&5
37670echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37671if eval "test \"\${$as_ac_var+set}\" = set"; then
37672 echo $ECHO_N "(cached) $ECHO_C" >&6
37673else
37674 cat >conftest.$ac_ext <<_ACEOF
37675/* confdefs.h. */
37676_ACEOF
37677cat confdefs.h >>conftest.$ac_ext
37678cat >>conftest.$ac_ext <<_ACEOF
37679/* end confdefs.h. */
ac1cb8d3
VS
37680/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37682#define $ac_func innocuous_$ac_func
37683
a848cd7e
SC
37684/* System header to define __stub macros and hopefully few prototypes,
37685 which can conflict with char $ac_func (); below.
37686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37687 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37688
a848cd7e
SC
37689#ifdef __STDC__
37690# include <limits.h>
37691#else
37692# include <assert.h>
37693#endif
ac1cb8d3
VS
37694
37695#undef $ac_func
37696
a848cd7e
SC
37697/* Override any gcc2 internal prototype to avoid an error. */
37698#ifdef __cplusplus
37699extern "C"
37700{
37701#endif
37702/* We use char because int might match the return type of a gcc2
37703 builtin and then its argument prototype would still apply. */
37704char $ac_func ();
37705/* The GNU C library defines this for functions which it implements
37706 to always fail with ENOSYS. Some functions are actually named
37707 something starting with __ and the normal name is an alias. */
37708#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37709choke me
37710#else
37711char (*f) () = $ac_func;
37712#endif
37713#ifdef __cplusplus
37714}
37715#endif
37716
37717int
37718main ()
37719{
37720return f != $ac_func;
37721 ;
37722 return 0;
37723}
37724_ACEOF
37725rm -f conftest.$ac_objext conftest$ac_exeext
37726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37727 (eval $ac_link) 2>conftest.er1
a848cd7e 37728 ac_status=$?
ac1cb8d3
VS
37729 grep -v '^ *+' conftest.er1 >conftest.err
37730 rm -f conftest.er1
37731 cat conftest.err >&5
a848cd7e
SC
37732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37733 (exit $ac_status); } &&
fb00f58d
JS
37734 { ac_try='test -z "$ac_c_werror_flag"
37735 || test ! -s conftest.err'
ac1cb8d3
VS
37736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37737 (eval $ac_try) 2>&5
37738 ac_status=$?
37739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37740 (exit $ac_status); }; } &&
37741 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37743 (eval $ac_try) 2>&5
37744 ac_status=$?
37745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37746 (exit $ac_status); }; }; then
37747 eval "$as_ac_var=yes"
37748else
37749 echo "$as_me: failed program was:" >&5
37750sed 's/^/| /' conftest.$ac_ext >&5
37751
37752eval "$as_ac_var=no"
37753fi
ac1cb8d3
VS
37754rm -f conftest.err conftest.$ac_objext \
37755 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37756fi
37757echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37758echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37759if test `eval echo '${'$as_ac_var'}'` = yes; then
37760 cat >>confdefs.h <<_ACEOF
37761#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37762_ACEOF
37763
37764fi
37765done
37766
37767
37768 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
37769echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
37770if test "${wx_cv_var_timezone+set}" = set; then
37771 echo $ECHO_N "(cached) $ECHO_C" >&6
37772else
37773
37774 cat >conftest.$ac_ext <<_ACEOF
37775/* confdefs.h. */
37776_ACEOF
37777cat confdefs.h >>conftest.$ac_ext
37778cat >>conftest.$ac_ext <<_ACEOF
37779/* end confdefs.h. */
37780
37781 #include <time.h>
37782
37783int
37784main ()
37785{
37786
37787 int tz;
37788 tz = timezone;
37789
37790 ;
37791 return 0;
37792}
37793_ACEOF
37794rm -f conftest.$ac_objext
37795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37796 (eval $ac_compile) 2>conftest.er1
a848cd7e 37797 ac_status=$?
ac1cb8d3
VS
37798 grep -v '^ *+' conftest.er1 >conftest.err
37799 rm -f conftest.er1
37800 cat conftest.err >&5
a848cd7e
SC
37801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37802 (exit $ac_status); } &&
fb00f58d
JS
37803 { ac_try='test -z "$ac_c_werror_flag"
37804 || test ! -s conftest.err'
ac1cb8d3
VS
37805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37806 (eval $ac_try) 2>&5
37807 ac_status=$?
37808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37809 (exit $ac_status); }; } &&
37810 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37812 (eval $ac_try) 2>&5
37813 ac_status=$?
37814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37815 (exit $ac_status); }; }; then
37816
37817 wx_cv_var_timezone=timezone
37818
37819else
37820 echo "$as_me: failed program was:" >&5
37821sed 's/^/| /' conftest.$ac_ext >&5
37822
37823
37824 cat >conftest.$ac_ext <<_ACEOF
37825/* confdefs.h. */
37826_ACEOF
37827cat confdefs.h >>conftest.$ac_ext
37828cat >>conftest.$ac_ext <<_ACEOF
37829/* end confdefs.h. */
37830
37831 #include <time.h>
37832
37833int
37834main ()
37835{
37836
37837 int tz;
37838 tz = _timezone;
37839
37840 ;
37841 return 0;
37842}
37843_ACEOF
37844rm -f conftest.$ac_objext
37845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37846 (eval $ac_compile) 2>conftest.er1
a848cd7e 37847 ac_status=$?
ac1cb8d3
VS
37848 grep -v '^ *+' conftest.er1 >conftest.err
37849 rm -f conftest.er1
37850 cat conftest.err >&5
a848cd7e
SC
37851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37852 (exit $ac_status); } &&
fb00f58d
JS
37853 { ac_try='test -z "$ac_c_werror_flag"
37854 || test ! -s conftest.err'
ac1cb8d3
VS
37855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37856 (eval $ac_try) 2>&5
37857 ac_status=$?
37858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37859 (exit $ac_status); }; } &&
37860 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37862 (eval $ac_try) 2>&5
37863 ac_status=$?
37864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37865 (exit $ac_status); }; }; then
37866
37867 wx_cv_var_timezone=_timezone
37868
37869else
37870 echo "$as_me: failed program was:" >&5
37871sed 's/^/| /' conftest.$ac_ext >&5
37872
37873
37874 cat >conftest.$ac_ext <<_ACEOF
37875/* confdefs.h. */
37876_ACEOF
37877cat confdefs.h >>conftest.$ac_ext
37878cat >>conftest.$ac_ext <<_ACEOF
37879/* end confdefs.h. */
37880
37881 #include <time.h>
37882
37883int
37884main ()
37885{
37886
37887 int tz;
37888 tz = __timezone;
37889
37890 ;
37891 return 0;
37892}
37893_ACEOF
37894rm -f conftest.$ac_objext
37895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37896 (eval $ac_compile) 2>conftest.er1
a848cd7e 37897 ac_status=$?
ac1cb8d3
VS
37898 grep -v '^ *+' conftest.er1 >conftest.err
37899 rm -f conftest.er1
37900 cat conftest.err >&5
a848cd7e
SC
37901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37902 (exit $ac_status); } &&
fb00f58d
JS
37903 { ac_try='test -z "$ac_c_werror_flag"
37904 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
37910 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37912 (eval $ac_try) 2>&5
37913 ac_status=$?
37914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37915 (exit $ac_status); }; }; then
37916
37917 wx_cv_var_timezone=__timezone
37918
37919else
37920 echo "$as_me: failed program was:" >&5
37921sed 's/^/| /' conftest.$ac_ext >&5
37922
37923
37924 if test "$USE_DOS" = 0 ; then
37925 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
37926echo "$as_me: WARNING: no timezone variable" >&2;}
37927 fi
37928
37929
37930fi
ac1cb8d3 37931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37932
37933
37934fi
ac1cb8d3 37935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37936
37937
37938fi
ac1cb8d3 37939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37940
37941
37942fi
37943echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
37944echo "${ECHO_T}$wx_cv_var_timezone" >&6
37945
37946 if test "x$wx_cv_var_timezone" != x ; then
37947 cat >>confdefs.h <<_ACEOF
37948#define WX_TIMEZONE $wx_cv_var_timezone
37949_ACEOF
37950
37951 fi
37952
37953
37954for ac_func in localtime
37955do
37956as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37957echo "$as_me:$LINENO: checking for $ac_func" >&5
37958echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37959if eval "test \"\${$as_ac_var+set}\" = set"; then
37960 echo $ECHO_N "(cached) $ECHO_C" >&6
37961else
37962 cat >conftest.$ac_ext <<_ACEOF
37963/* confdefs.h. */
37964_ACEOF
37965cat confdefs.h >>conftest.$ac_ext
37966cat >>conftest.$ac_ext <<_ACEOF
37967/* end confdefs.h. */
ac1cb8d3
VS
37968/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37970#define $ac_func innocuous_$ac_func
37971
a848cd7e
SC
37972/* System header to define __stub macros and hopefully few prototypes,
37973 which can conflict with char $ac_func (); below.
37974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37975 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37976
a848cd7e
SC
37977#ifdef __STDC__
37978# include <limits.h>
37979#else
37980# include <assert.h>
37981#endif
ac1cb8d3
VS
37982
37983#undef $ac_func
37984
a848cd7e
SC
37985/* Override any gcc2 internal prototype to avoid an error. */
37986#ifdef __cplusplus
37987extern "C"
37988{
37989#endif
37990/* We use char because int might match the return type of a gcc2
37991 builtin and then its argument prototype would still apply. */
37992char $ac_func ();
37993/* The GNU C library defines this for functions which it implements
37994 to always fail with ENOSYS. Some functions are actually named
37995 something starting with __ and the normal name is an alias. */
37996#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37997choke me
37998#else
37999char (*f) () = $ac_func;
38000#endif
38001#ifdef __cplusplus
38002}
38003#endif
38004
38005int
38006main ()
38007{
38008return f != $ac_func;
38009 ;
38010 return 0;
38011}
38012_ACEOF
38013rm -f conftest.$ac_objext conftest$ac_exeext
38014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38015 (eval $ac_link) 2>conftest.er1
a848cd7e 38016 ac_status=$?
ac1cb8d3
VS
38017 grep -v '^ *+' conftest.er1 >conftest.err
38018 rm -f conftest.er1
38019 cat conftest.err >&5
a848cd7e
SC
38020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38021 (exit $ac_status); } &&
fb00f58d
JS
38022 { ac_try='test -z "$ac_c_werror_flag"
38023 || test ! -s conftest.err'
ac1cb8d3
VS
38024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38025 (eval $ac_try) 2>&5
38026 ac_status=$?
38027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38028 (exit $ac_status); }; } &&
38029 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38031 (eval $ac_try) 2>&5
38032 ac_status=$?
38033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38034 (exit $ac_status); }; }; then
38035 eval "$as_ac_var=yes"
38036else
38037 echo "$as_me: failed program was:" >&5
38038sed 's/^/| /' conftest.$ac_ext >&5
38039
38040eval "$as_ac_var=no"
38041fi
ac1cb8d3
VS
38042rm -f conftest.err conftest.$ac_objext \
38043 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38044fi
38045echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38046echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38047if test `eval echo '${'$as_ac_var'}'` = yes; then
38048 cat >>confdefs.h <<_ACEOF
38049#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38050_ACEOF
38051
38052fi
38053done
38054
38055
38056 if test "$ac_cv_func_localtime" = "yes"; then
38057 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
38058echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
38059if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
38060 echo $ECHO_N "(cached) $ECHO_C" >&6
38061else
38062
38063 cat >conftest.$ac_ext <<_ACEOF
38064/* confdefs.h. */
38065_ACEOF
38066cat confdefs.h >>conftest.$ac_ext
38067cat >>conftest.$ac_ext <<_ACEOF
38068/* end confdefs.h. */
38069
38070 #include <time.h>
38071
38072int
38073main ()
38074{
38075
38076 struct tm tm;
38077 tm.tm_gmtoff++;
38078
38079 ;
38080 return 0;
38081}
38082_ACEOF
38083rm -f conftest.$ac_objext
38084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38085 (eval $ac_compile) 2>conftest.er1
a848cd7e 38086 ac_status=$?
ac1cb8d3
VS
38087 grep -v '^ *+' conftest.er1 >conftest.err
38088 rm -f conftest.er1
38089 cat conftest.err >&5
a848cd7e
SC
38090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38091 (exit $ac_status); } &&
fb00f58d
JS
38092 { ac_try='test -z "$ac_c_werror_flag"
38093 || test ! -s conftest.err'
ac1cb8d3
VS
38094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38095 (eval $ac_try) 2>&5
38096 ac_status=$?
38097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38098 (exit $ac_status); }; } &&
38099 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38101 (eval $ac_try) 2>&5
38102 ac_status=$?
38103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38104 (exit $ac_status); }; }; then
38105
38106 wx_cv_struct_tm_has_gmtoff=yes
38107
38108else
38109 echo "$as_me: failed program was:" >&5
38110sed 's/^/| /' conftest.$ac_ext >&5
38111
38112wx_cv_struct_tm_has_gmtoff=no
38113
38114fi
ac1cb8d3 38115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38116
38117fi
38118echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
38119echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
38120 fi
38121
38122 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
38123 cat >>confdefs.h <<\_ACEOF
38124#define WX_GMTOFF_IN_TM 1
38125_ACEOF
38126
38127 fi
38128
38129
38130
38131for ac_func in gettimeofday ftime
38132do
38133as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38134echo "$as_me:$LINENO: checking for $ac_func" >&5
38135echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38136if eval "test \"\${$as_ac_var+set}\" = set"; then
38137 echo $ECHO_N "(cached) $ECHO_C" >&6
38138else
38139 cat >conftest.$ac_ext <<_ACEOF
38140/* confdefs.h. */
38141_ACEOF
38142cat confdefs.h >>conftest.$ac_ext
38143cat >>conftest.$ac_ext <<_ACEOF
38144/* end confdefs.h. */
ac1cb8d3
VS
38145/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38147#define $ac_func innocuous_$ac_func
38148
a848cd7e
SC
38149/* System header to define __stub macros and hopefully few prototypes,
38150 which can conflict with char $ac_func (); below.
38151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38152 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38153
a848cd7e
SC
38154#ifdef __STDC__
38155# include <limits.h>
38156#else
38157# include <assert.h>
38158#endif
ac1cb8d3
VS
38159
38160#undef $ac_func
38161
a848cd7e
SC
38162/* Override any gcc2 internal prototype to avoid an error. */
38163#ifdef __cplusplus
38164extern "C"
38165{
38166#endif
38167/* We use char because int might match the return type of a gcc2
38168 builtin and then its argument prototype would still apply. */
38169char $ac_func ();
38170/* The GNU C library defines this for functions which it implements
38171 to always fail with ENOSYS. Some functions are actually named
38172 something starting with __ and the normal name is an alias. */
38173#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38174choke me
38175#else
38176char (*f) () = $ac_func;
38177#endif
38178#ifdef __cplusplus
38179}
38180#endif
38181
38182int
38183main ()
38184{
38185return f != $ac_func;
38186 ;
38187 return 0;
38188}
38189_ACEOF
38190rm -f conftest.$ac_objext conftest$ac_exeext
38191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38192 (eval $ac_link) 2>conftest.er1
a848cd7e 38193 ac_status=$?
ac1cb8d3
VS
38194 grep -v '^ *+' conftest.er1 >conftest.err
38195 rm -f conftest.er1
38196 cat conftest.err >&5
a848cd7e
SC
38197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38198 (exit $ac_status); } &&
fb00f58d
JS
38199 { ac_try='test -z "$ac_c_werror_flag"
38200 || test ! -s conftest.err'
ac1cb8d3
VS
38201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38202 (eval $ac_try) 2>&5
38203 ac_status=$?
38204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38205 (exit $ac_status); }; } &&
38206 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38208 (eval $ac_try) 2>&5
38209 ac_status=$?
38210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38211 (exit $ac_status); }; }; then
38212 eval "$as_ac_var=yes"
38213else
38214 echo "$as_me: failed program was:" >&5
38215sed 's/^/| /' conftest.$ac_ext >&5
38216
38217eval "$as_ac_var=no"
38218fi
ac1cb8d3
VS
38219rm -f conftest.err conftest.$ac_objext \
38220 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38221fi
38222echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38223echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38224if test `eval echo '${'$as_ac_var'}'` = yes; then
38225 cat >>confdefs.h <<_ACEOF
38226#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38227_ACEOF
38228 break
38229fi
38230done
38231
38232
38233 if test "$ac_cv_func_gettimeofday" = "yes"; then
38234 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
38235echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
38236if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
38237 echo $ECHO_N "(cached) $ECHO_C" >&6
38238else
38239
38240
38241
38242 ac_ext=cc
38243ac_cpp='$CXXCPP $CPPFLAGS'
38244ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38245ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38246ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38247
38248
38249 cat >conftest.$ac_ext <<_ACEOF
38250/* confdefs.h. */
38251_ACEOF
38252cat confdefs.h >>conftest.$ac_ext
38253cat >>conftest.$ac_ext <<_ACEOF
38254/* end confdefs.h. */
38255
38256 #include <sys/time.h>
38257 #include <unistd.h>
38258
38259int
38260main ()
38261{
38262
38263 struct timeval tv;
38264 gettimeofday(&tv, NULL);
38265
38266 ;
38267 return 0;
38268}
38269_ACEOF
38270rm -f conftest.$ac_objext
38271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38272 (eval $ac_compile) 2>conftest.er1
a848cd7e 38273 ac_status=$?
ac1cb8d3
VS
38274 grep -v '^ *+' conftest.er1 >conftest.err
38275 rm -f conftest.er1
38276 cat conftest.err >&5
a848cd7e
SC
38277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38278 (exit $ac_status); } &&
fb00f58d
JS
38279 { ac_try='test -z "$ac_cxx_werror_flag"
38280 || test ! -s conftest.err'
ac1cb8d3
VS
38281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38282 (eval $ac_try) 2>&5
38283 ac_status=$?
38284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38285 (exit $ac_status); }; } &&
38286 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38288 (eval $ac_try) 2>&5
38289 ac_status=$?
38290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38291 (exit $ac_status); }; }; then
38292 wx_cv_func_gettimeofday_has_2_args=yes
38293else
38294 echo "$as_me: failed program was:" >&5
38295sed 's/^/| /' conftest.$ac_ext >&5
38296
38297cat >conftest.$ac_ext <<_ACEOF
38298/* confdefs.h. */
38299_ACEOF
38300cat confdefs.h >>conftest.$ac_ext
38301cat >>conftest.$ac_ext <<_ACEOF
38302/* end confdefs.h. */
38303
38304 #include <sys/time.h>
38305 #include <unistd.h>
38306
38307int
38308main ()
38309{
38310
38311 struct timeval tv;
38312 gettimeofday(&tv);
38313
38314 ;
38315 return 0;
38316}
38317_ACEOF
38318rm -f conftest.$ac_objext
38319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38320 (eval $ac_compile) 2>conftest.er1
a848cd7e 38321 ac_status=$?
ac1cb8d3
VS
38322 grep -v '^ *+' conftest.er1 >conftest.err
38323 rm -f conftest.er1
38324 cat conftest.err >&5
a848cd7e
SC
38325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38326 (exit $ac_status); } &&
fb00f58d
JS
38327 { ac_try='test -z "$ac_cxx_werror_flag"
38328 || test ! -s conftest.err'
ac1cb8d3
VS
38329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38330 (eval $ac_try) 2>&5
38331 ac_status=$?
38332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38333 (exit $ac_status); }; } &&
38334 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38336 (eval $ac_try) 2>&5
38337 ac_status=$?
38338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38339 (exit $ac_status); }; }; then
38340 wx_cv_func_gettimeofday_has_2_args=no
38341else
38342 echo "$as_me: failed program was:" >&5
38343sed 's/^/| /' conftest.$ac_ext >&5
38344
38345
38346 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
38347echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
38348 wx_cv_func_gettimeofday_has_2_args=unknown
38349
38350
38351fi
ac1cb8d3 38352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38353
38354fi
ac1cb8d3 38355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38356 ac_ext=c
38357ac_cpp='$CPP $CPPFLAGS'
38358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38360ac_compiler_gnu=$ac_cv_c_compiler_gnu
38361
38362
38363fi
38364echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
38365echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
38366
38367 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
38368 cat >>confdefs.h <<\_ACEOF
38369#define WX_GETTIMEOFDAY_NO_TZ 1
38370_ACEOF
38371
38372 fi
38373 fi
38374
38375 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
38376fi
38377
38378
38379if test "$wxUSE_SOCKETS" = "yes"; then
38380 if test "$wxUSE_MGL" = "1"; then
38381 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
38382echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
38383 wxUSE_SOCKETS="no"
38384 fi
38385fi
38386
38387if test "$wxUSE_SOCKETS" = "yes"; then
38388 if test "$TOOLKIT" != "MSW"; then
38389 echo "$as_me:$LINENO: checking for socket" >&5
38390echo $ECHO_N "checking for socket... $ECHO_C" >&6
38391if test "${ac_cv_func_socket+set}" = set; then
38392 echo $ECHO_N "(cached) $ECHO_C" >&6
38393else
38394 cat >conftest.$ac_ext <<_ACEOF
38395/* confdefs.h. */
38396_ACEOF
38397cat confdefs.h >>conftest.$ac_ext
38398cat >>conftest.$ac_ext <<_ACEOF
38399/* end confdefs.h. */
ac1cb8d3
VS
38400/* Define socket to an innocuous variant, in case <limits.h> declares socket.
38401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38402#define socket innocuous_socket
38403
a848cd7e
SC
38404/* System header to define __stub macros and hopefully few prototypes,
38405 which can conflict with char socket (); below.
38406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38407 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38408
a848cd7e
SC
38409#ifdef __STDC__
38410# include <limits.h>
38411#else
38412# include <assert.h>
38413#endif
ac1cb8d3
VS
38414
38415#undef socket
38416
a848cd7e
SC
38417/* Override any gcc2 internal prototype to avoid an error. */
38418#ifdef __cplusplus
38419extern "C"
38420{
38421#endif
38422/* We use char because int might match the return type of a gcc2
38423 builtin and then its argument prototype would still apply. */
38424char socket ();
38425/* The GNU C library defines this for functions which it implements
38426 to always fail with ENOSYS. Some functions are actually named
38427 something starting with __ and the normal name is an alias. */
38428#if defined (__stub_socket) || defined (__stub___socket)
38429choke me
38430#else
38431char (*f) () = socket;
38432#endif
38433#ifdef __cplusplus
38434}
38435#endif
38436
38437int
38438main ()
38439{
38440return f != socket;
38441 ;
38442 return 0;
38443}
38444_ACEOF
38445rm -f conftest.$ac_objext conftest$ac_exeext
38446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38447 (eval $ac_link) 2>conftest.er1
a848cd7e 38448 ac_status=$?
ac1cb8d3
VS
38449 grep -v '^ *+' conftest.er1 >conftest.err
38450 rm -f conftest.er1
38451 cat conftest.err >&5
a848cd7e
SC
38452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38453 (exit $ac_status); } &&
fb00f58d
JS
38454 { ac_try='test -z "$ac_c_werror_flag"
38455 || test ! -s conftest.err'
ac1cb8d3
VS
38456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38457 (eval $ac_try) 2>&5
38458 ac_status=$?
38459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38460 (exit $ac_status); }; } &&
38461 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38463 (eval $ac_try) 2>&5
38464 ac_status=$?
38465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38466 (exit $ac_status); }; }; then
38467 ac_cv_func_socket=yes
38468else
38469 echo "$as_me: failed program was:" >&5
38470sed 's/^/| /' conftest.$ac_ext >&5
38471
38472ac_cv_func_socket=no
38473fi
ac1cb8d3
VS
38474rm -f conftest.err conftest.$ac_objext \
38475 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38476fi
38477echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
38478echo "${ECHO_T}$ac_cv_func_socket" >&6
38479if test $ac_cv_func_socket = yes; then
38480 :
38481else
38482
38483 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
38484echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
38485if test "${ac_cv_lib_socket_socket+set}" = set; then
38486 echo $ECHO_N "(cached) $ECHO_C" >&6
38487else
38488 ac_check_lib_save_LIBS=$LIBS
38489LIBS="-lsocket $LIBS"
38490cat >conftest.$ac_ext <<_ACEOF
38491/* confdefs.h. */
38492_ACEOF
38493cat confdefs.h >>conftest.$ac_ext
38494cat >>conftest.$ac_ext <<_ACEOF
38495/* end confdefs.h. */
38496
38497/* Override any gcc2 internal prototype to avoid an error. */
38498#ifdef __cplusplus
38499extern "C"
38500#endif
38501/* We use char because int might match the return type of a gcc2
38502 builtin and then its argument prototype would still apply. */
38503char socket ();
38504int
38505main ()
38506{
38507socket ();
38508 ;
38509 return 0;
38510}
38511_ACEOF
38512rm -f conftest.$ac_objext conftest$ac_exeext
38513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38514 (eval $ac_link) 2>conftest.er1
a848cd7e 38515 ac_status=$?
ac1cb8d3
VS
38516 grep -v '^ *+' conftest.er1 >conftest.err
38517 rm -f conftest.er1
38518 cat conftest.err >&5
a848cd7e
SC
38519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38520 (exit $ac_status); } &&
fb00f58d
JS
38521 { ac_try='test -z "$ac_c_werror_flag"
38522 || test ! -s conftest.err'
ac1cb8d3
VS
38523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38524 (eval $ac_try) 2>&5
38525 ac_status=$?
38526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38527 (exit $ac_status); }; } &&
38528 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38530 (eval $ac_try) 2>&5
38531 ac_status=$?
38532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38533 (exit $ac_status); }; }; then
38534 ac_cv_lib_socket_socket=yes
38535else
38536 echo "$as_me: failed program was:" >&5
38537sed 's/^/| /' conftest.$ac_ext >&5
38538
38539ac_cv_lib_socket_socket=no
38540fi
ac1cb8d3
VS
38541rm -f conftest.err conftest.$ac_objext \
38542 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38543LIBS=$ac_check_lib_save_LIBS
38544fi
38545echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
38546echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
38547if test $ac_cv_lib_socket_socket = yes; then
38548 if test "$INET_LINK" != " -lsocket"; then
38549 INET_LINK="$INET_LINK -lsocket"
38550 fi
38551else
38552
38553 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
38554echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
38555 wxUSE_SOCKETS=no
38556
38557
38558fi
38559
38560
38561
38562fi
38563
38564 fi
38565fi
38566
38567if test "$wxUSE_SOCKETS" = "yes" ; then
38568 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
38569 ac_ext=cc
38570ac_cpp='$CXXCPP $CPPFLAGS'
38571ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38572ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38573ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38574
38575 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
38576echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
38577if test "${wx_cv_type_getsockname3+set}" = set; then
38578 echo $ECHO_N "(cached) $ECHO_C" >&6
38579else
38580
38581 cat >conftest.$ac_ext <<_ACEOF
38582/* confdefs.h. */
38583_ACEOF
38584cat confdefs.h >>conftest.$ac_ext
38585cat >>conftest.$ac_ext <<_ACEOF
38586/* end confdefs.h. */
38587
38588 #include <sys/types.h>
38589 #include <sys/socket.h>
38590
38591int
38592main ()
38593{
38594
38595 socklen_t len;
38596 getsockname(0, 0, &len);
38597
38598 ;
38599 return 0;
38600}
38601_ACEOF
38602rm -f conftest.$ac_objext
38603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38604 (eval $ac_compile) 2>conftest.er1
a848cd7e 38605 ac_status=$?
ac1cb8d3
VS
38606 grep -v '^ *+' conftest.er1 >conftest.err
38607 rm -f conftest.er1
38608 cat conftest.err >&5
a848cd7e
SC
38609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38610 (exit $ac_status); } &&
fb00f58d
JS
38611 { ac_try='test -z "$ac_cxx_werror_flag"
38612 || test ! -s conftest.err'
ac1cb8d3
VS
38613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38614 (eval $ac_try) 2>&5
38615 ac_status=$?
38616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38617 (exit $ac_status); }; } &&
38618 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38620 (eval $ac_try) 2>&5
38621 ac_status=$?
38622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38623 (exit $ac_status); }; }; then
38624 wx_cv_type_getsockname3=socklen_t
38625else
38626 echo "$as_me: failed program was:" >&5
38627sed 's/^/| /' conftest.$ac_ext >&5
38628
38629
38630 CFLAGS_OLD="$CFLAGS"
38631 if test "$GCC" = yes ; then
38632 CFLAGS="$CFLAGS -Werror"
38633 fi
38634
38635 cat >conftest.$ac_ext <<_ACEOF
38636/* confdefs.h. */
38637_ACEOF
38638cat confdefs.h >>conftest.$ac_ext
38639cat >>conftest.$ac_ext <<_ACEOF
38640/* end confdefs.h. */
38641
38642 #include <sys/types.h>
38643 #include <sys/socket.h>
38644
38645int
38646main ()
38647{
38648
38649 size_t len;
38650 getsockname(0, 0, &len);
38651
38652 ;
38653 return 0;
38654}
38655_ACEOF
38656rm -f conftest.$ac_objext
38657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38658 (eval $ac_compile) 2>conftest.er1
a848cd7e 38659 ac_status=$?
ac1cb8d3
VS
38660 grep -v '^ *+' conftest.er1 >conftest.err
38661 rm -f conftest.er1
38662 cat conftest.err >&5
a848cd7e
SC
38663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38664 (exit $ac_status); } &&
fb00f58d
JS
38665 { ac_try='test -z "$ac_cxx_werror_flag"
38666 || test ! -s conftest.err'
ac1cb8d3
VS
38667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38668 (eval $ac_try) 2>&5
38669 ac_status=$?
38670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38671 (exit $ac_status); }; } &&
38672 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38674 (eval $ac_try) 2>&5
38675 ac_status=$?
38676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38677 (exit $ac_status); }; }; then
38678 wx_cv_type_getsockname3=size_t
38679else
38680 echo "$as_me: failed program was:" >&5
38681sed 's/^/| /' conftest.$ac_ext >&5
38682
38683cat >conftest.$ac_ext <<_ACEOF
38684/* confdefs.h. */
38685_ACEOF
38686cat confdefs.h >>conftest.$ac_ext
38687cat >>conftest.$ac_ext <<_ACEOF
38688/* end confdefs.h. */
38689
38690 #include <sys/types.h>
38691 #include <sys/socket.h>
38692
38693int
38694main ()
38695{
38696
38697 int len;
38698 getsockname(0, 0, &len);
38699
38700 ;
38701 return 0;
38702}
38703_ACEOF
38704rm -f conftest.$ac_objext
38705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38706 (eval $ac_compile) 2>conftest.er1
a848cd7e 38707 ac_status=$?
ac1cb8d3
VS
38708 grep -v '^ *+' conftest.er1 >conftest.err
38709 rm -f conftest.er1
38710 cat conftest.err >&5
a848cd7e
SC
38711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38712 (exit $ac_status); } &&
fb00f58d
JS
38713 { ac_try='test -z "$ac_cxx_werror_flag"
38714 || test ! -s conftest.err'
ac1cb8d3
VS
38715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38716 (eval $ac_try) 2>&5
38717 ac_status=$?
38718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38719 (exit $ac_status); }; } &&
38720 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38722 (eval $ac_try) 2>&5
38723 ac_status=$?
38724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38725 (exit $ac_status); }; }; then
38726 wx_cv_type_getsockname3=int
38727else
38728 echo "$as_me: failed program was:" >&5
38729sed 's/^/| /' conftest.$ac_ext >&5
38730
38731wx_cv_type_getsockname3=unknown
38732
38733fi
ac1cb8d3 38734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38735
38736fi
ac1cb8d3 38737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38738
38739 CFLAGS="$CFLAGS_OLD"
38740
38741
38742fi
ac1cb8d3 38743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38744
38745fi
38746echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
38747echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
38748
38749 if test "$wx_cv_type_getsockname3" = "unknown"; then
38750 wxUSE_SOCKETS=no
38751 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
38752echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
38753 else
38754 cat >>confdefs.h <<_ACEOF
38755#define SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
38756_ACEOF
38757
38758 fi
38759 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
38760echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
38761if test "${wx_cv_type_getsockopt5+set}" = set; then
38762 echo $ECHO_N "(cached) $ECHO_C" >&6
38763else
38764
38765 cat >conftest.$ac_ext <<_ACEOF
38766/* confdefs.h. */
38767_ACEOF
38768cat confdefs.h >>conftest.$ac_ext
38769cat >>conftest.$ac_ext <<_ACEOF
38770/* end confdefs.h. */
38771
38772 #include <sys/types.h>
38773 #include <sys/socket.h>
38774
38775int
38776main ()
38777{
38778
38779 socklen_t len;
38780 getsockopt(0, 0, 0, 0, &len);
38781
38782 ;
38783 return 0;
38784}
38785_ACEOF
38786rm -f conftest.$ac_objext
38787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38788 (eval $ac_compile) 2>conftest.er1
38789 ac_status=$?
38790 grep -v '^ *+' conftest.er1 >conftest.err
38791 rm -f conftest.er1
38792 cat conftest.err >&5
38793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38794 (exit $ac_status); } &&
fb00f58d
JS
38795 { ac_try='test -z "$ac_cxx_werror_flag"
38796 || test ! -s conftest.err'
5b674b9d
DE
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'
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_getsockopt5=socklen_t
38809else
38810 echo "$as_me: failed program was:" >&5
38811sed 's/^/| /' conftest.$ac_ext >&5
38812
38813
38814 CFLAGS_OLD="$CFLAGS"
38815 if test "$GCC" = yes ; then
38816 CFLAGS="$CFLAGS -Werror"
38817 fi
38818
38819 cat >conftest.$ac_ext <<_ACEOF
38820/* confdefs.h. */
38821_ACEOF
38822cat confdefs.h >>conftest.$ac_ext
38823cat >>conftest.$ac_ext <<_ACEOF
38824/* end confdefs.h. */
38825
38826 #include <sys/types.h>
38827 #include <sys/socket.h>
38828
38829int
38830main ()
38831{
38832
38833 size_t len;
38834 getsockopt(0, 0, 0, 0, &len);
38835
38836 ;
38837 return 0;
38838}
38839_ACEOF
38840rm -f conftest.$ac_objext
38841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38842 (eval $ac_compile) 2>conftest.er1
38843 ac_status=$?
38844 grep -v '^ *+' conftest.er1 >conftest.err
38845 rm -f conftest.er1
38846 cat conftest.err >&5
38847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38848 (exit $ac_status); } &&
fb00f58d
JS
38849 { ac_try='test -z "$ac_cxx_werror_flag"
38850 || test ! -s conftest.err'
5b674b9d
DE
38851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38852 (eval $ac_try) 2>&5
38853 ac_status=$?
38854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38855 (exit $ac_status); }; } &&
38856 { ac_try='test -s conftest.$ac_objext'
38857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38858 (eval $ac_try) 2>&5
38859 ac_status=$?
38860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38861 (exit $ac_status); }; }; then
38862 wx_cv_type_getsockopt5=size_t
38863else
38864 echo "$as_me: failed program was:" >&5
38865sed 's/^/| /' conftest.$ac_ext >&5
38866
38867cat >conftest.$ac_ext <<_ACEOF
38868/* confdefs.h. */
38869_ACEOF
38870cat confdefs.h >>conftest.$ac_ext
38871cat >>conftest.$ac_ext <<_ACEOF
38872/* end confdefs.h. */
38873
38874 #include <sys/types.h>
38875 #include <sys/socket.h>
38876
38877int
38878main ()
38879{
38880
38881 int len;
38882 getsockopt(0, 0, 0, 0, &len);
38883
38884 ;
38885 return 0;
38886}
38887_ACEOF
38888rm -f conftest.$ac_objext
38889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38890 (eval $ac_compile) 2>conftest.er1
38891 ac_status=$?
38892 grep -v '^ *+' conftest.er1 >conftest.err
38893 rm -f conftest.er1
38894 cat conftest.err >&5
38895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38896 (exit $ac_status); } &&
fb00f58d
JS
38897 { ac_try='test -z "$ac_cxx_werror_flag"
38898 || test ! -s conftest.err'
5b674b9d
DE
38899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38900 (eval $ac_try) 2>&5
38901 ac_status=$?
38902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38903 (exit $ac_status); }; } &&
38904 { ac_try='test -s conftest.$ac_objext'
38905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38906 (eval $ac_try) 2>&5
38907 ac_status=$?
38908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38909 (exit $ac_status); }; }; then
38910 wx_cv_type_getsockopt5=int
38911else
38912 echo "$as_me: failed program was:" >&5
38913sed 's/^/| /' conftest.$ac_ext >&5
38914
38915wx_cv_type_getsockopt5=unknown
38916
38917fi
38918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38919
38920fi
38921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38922
38923 CFLAGS="$CFLAGS_OLD"
38924
38925
38926fi
38927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38928
38929fi
38930echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
38931echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
38932
38933 if test "$wx_cv_type_getsockopt5" = "unknown"; then
38934 wxUSE_SOCKETS=no
38935 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
38936echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
38937 else
38938 cat >>confdefs.h <<_ACEOF
38939#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
38940_ACEOF
38941
38942 fi
4d4ff94c
VZ
38943 ac_ext=c
38944ac_cpp='$CPP $CPPFLAGS'
38945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38947ac_compiler_gnu=$ac_cv_c_compiler_gnu
38948
a848cd7e
SC
38949 fi
38950fi
38951
38952if test "$wxUSE_SOCKETS" = "yes" ; then
38953 cat >>confdefs.h <<\_ACEOF
38954#define wxUSE_SOCKETS 1
38955_ACEOF
38956
38957 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
38958fi
38959
38960if test "$wxUSE_PROTOCOL" = "yes"; then
38961 if test "$wxUSE_SOCKETS" != "yes"; then
38962 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
38963echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
38964 wxUSE_PROTOCOL=no
38965 fi
38966fi
38967
38968if test "$wxUSE_PROTOCOL" = "yes"; then
38969 cat >>confdefs.h <<\_ACEOF
38970#define wxUSE_PROTOCOL 1
38971_ACEOF
38972
38973
38974 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
38975 cat >>confdefs.h <<\_ACEOF
38976#define wxUSE_PROTOCOL_HTTP 1
38977_ACEOF
38978
38979 fi
38980 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
38981 cat >>confdefs.h <<\_ACEOF
38982#define wxUSE_PROTOCOL_FTP 1
38983_ACEOF
38984
38985 fi
38986 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
38987 cat >>confdefs.h <<\_ACEOF
38988#define wxUSE_PROTOCOL_FILE 1
38989_ACEOF
38990
38991 fi
38992else
38993 if test "$wxUSE_FS_INET" = "yes"; then
38994 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
38995echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
38996 wxUSE_FS_INET="no"
38997 fi
38998fi
38999
39000if test "$wxUSE_URL" = "yes"; then
39001 if test "$wxUSE_PROTOCOL" != "yes"; then
39002 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
39003echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
39004 wxUSE_URL=no
39005 fi
39006 if test "$wxUSE_URL" = "yes"; then
39007 cat >>confdefs.h <<\_ACEOF
39008#define wxUSE_URL 1
39009_ACEOF
39010
39011 fi
39012fi
39013
39014if test "$wxUSE_FS_INET" = "yes"; then
39015 cat >>confdefs.h <<\_ACEOF
39016#define wxUSE_FS_INET 1
39017_ACEOF
39018
39019fi
39020
39021
ee45c548
MW
39022if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
39023 wxUSE_JOYSTICK=no
39024
39025 if test "$TOOLKIT" = "MSW"; then
39026 wxUSE_JOYSTICK=yes
39027
39028 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
39029 if test "$USE_DARWIN" = 1; then
39030 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
39031echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
39032 ac_ext=cc
39033ac_cpp='$CXXCPP $CPPFLAGS'
39034ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39035ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39036ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39037
39038 cat >conftest.$ac_ext <<_ACEOF
39039/* confdefs.h. */
39040_ACEOF
39041cat confdefs.h >>conftest.$ac_ext
39042cat >>conftest.$ac_ext <<_ACEOF
39043/* end confdefs.h. */
39044 #include <IOKit/hid/IOHIDLib.h>
39045int
39046main ()
39047{
39048 IOHIDQueueInterface *qi = NULL;
39049 IOHIDCallbackFunction cb = NULL;
39050 qi->setEventCallout(NULL, cb, NULL, NULL);
39051 ;
39052 return 0;
39053}
39054_ACEOF
39055rm -f conftest.$ac_objext
39056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39057 (eval $ac_compile) 2>conftest.er1
39058 ac_status=$?
39059 grep -v '^ *+' conftest.er1 >conftest.err
39060 rm -f conftest.er1
39061 cat conftest.err >&5
39062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39063 (exit $ac_status); } &&
39064 { ac_try='test -z "$ac_cxx_werror_flag"
39065 || test ! -s conftest.err'
39066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39067 (eval $ac_try) 2>&5
39068 ac_status=$?
39069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39070 (exit $ac_status); }; } &&
39071 { ac_try='test -s conftest.$ac_objext'
39072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39073 (eval $ac_try) 2>&5
39074 ac_status=$?
39075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39076 (exit $ac_status); }; }; then
39077 wxUSE_JOYSTICK=yes
a848cd7e 39078
ee45c548
MW
39079else
39080 echo "$as_me: failed program was:" >&5
39081sed 's/^/| /' conftest.$ac_ext >&5
39082
39083fi
39084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39085 ac_ext=c
39086ac_cpp='$CPP $CPPFLAGS'
39087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39089ac_compiler_gnu=$ac_cv_c_compiler_gnu
39090
39091 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
39092echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
39093 fi
39094
39095 else
a848cd7e
SC
39096
39097for ac_header in linux/joystick.h
39098do
39099as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39100if eval "test \"\${$as_ac_Header+set}\" = set"; then
39101 echo "$as_me:$LINENO: checking for $ac_header" >&5
39102echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39103if eval "test \"\${$as_ac_Header+set}\" = set"; then
39104 echo $ECHO_N "(cached) $ECHO_C" >&6
39105fi
39106echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39107echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39108else
39109 # Is the header compilable?
39110echo "$as_me:$LINENO: checking $ac_header usability" >&5
39111echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39112cat >conftest.$ac_ext <<_ACEOF
39113/* confdefs.h. */
39114_ACEOF
39115cat confdefs.h >>conftest.$ac_ext
39116cat >>conftest.$ac_ext <<_ACEOF
39117/* end confdefs.h. */
39118$ac_includes_default
39119#include <$ac_header>
39120_ACEOF
39121rm -f conftest.$ac_objext
39122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39123 (eval $ac_compile) 2>conftest.er1
a848cd7e 39124 ac_status=$?
ac1cb8d3
VS
39125 grep -v '^ *+' conftest.er1 >conftest.err
39126 rm -f conftest.er1
39127 cat conftest.err >&5
a848cd7e
SC
39128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39129 (exit $ac_status); } &&
fb00f58d
JS
39130 { ac_try='test -z "$ac_c_werror_flag"
39131 || test ! -s conftest.err'
ac1cb8d3
VS
39132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39133 (eval $ac_try) 2>&5
39134 ac_status=$?
39135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39136 (exit $ac_status); }; } &&
39137 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39139 (eval $ac_try) 2>&5
39140 ac_status=$?
39141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39142 (exit $ac_status); }; }; then
39143 ac_header_compiler=yes
39144else
39145 echo "$as_me: failed program was:" >&5
39146sed 's/^/| /' conftest.$ac_ext >&5
39147
39148ac_header_compiler=no
39149fi
ac1cb8d3 39150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39151echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39152echo "${ECHO_T}$ac_header_compiler" >&6
39153
39154# Is the header present?
39155echo "$as_me:$LINENO: checking $ac_header presence" >&5
39156echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39157cat >conftest.$ac_ext <<_ACEOF
39158/* confdefs.h. */
39159_ACEOF
39160cat confdefs.h >>conftest.$ac_ext
39161cat >>conftest.$ac_ext <<_ACEOF
39162/* end confdefs.h. */
39163#include <$ac_header>
39164_ACEOF
39165if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39167 ac_status=$?
39168 grep -v '^ *+' conftest.er1 >conftest.err
39169 rm -f conftest.er1
39170 cat conftest.err >&5
39171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39172 (exit $ac_status); } >/dev/null; then
39173 if test -s conftest.err; then
39174 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 39175 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
39176 else
39177 ac_cpp_err=
39178 fi
39179else
39180 ac_cpp_err=yes
39181fi
39182if test -z "$ac_cpp_err"; then
39183 ac_header_preproc=yes
39184else
39185 echo "$as_me: failed program was:" >&5
39186sed 's/^/| /' conftest.$ac_ext >&5
39187
39188 ac_header_preproc=no
39189fi
39190rm -f conftest.err conftest.$ac_ext
39191echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39192echo "${ECHO_T}$ac_header_preproc" >&6
39193
39194# So? What about this header?
ac1cb8d3
VS
39195case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39196 yes:no: )
a848cd7e
SC
39197 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39198echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39200echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39201 ac_header_preproc=yes
a848cd7e 39202 ;;
ac1cb8d3 39203 no:yes:* )
a848cd7e
SC
39204 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39205echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39206 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39207echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39208 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39209echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39210 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39211echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39213echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39214 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39215echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39216 (
39217 cat <<\_ASBOX
ac1cb8d3
VS
39218## ----------------------------------------- ##
39219## Report this to wx-dev@lists.wxwidgets.org ##
39220## ----------------------------------------- ##
a848cd7e
SC
39221_ASBOX
39222 ) |
39223 sed "s/^/$as_me: WARNING: /" >&2
39224 ;;
39225esac
39226echo "$as_me:$LINENO: checking for $ac_header" >&5
39227echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39228if eval "test \"\${$as_ac_Header+set}\" = set"; then
39229 echo $ECHO_N "(cached) $ECHO_C" >&6
39230else
ac1cb8d3 39231 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39232fi
39233echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39234echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39235
39236fi
39237if test `eval echo '${'$as_ac_Header'}'` = yes; then
39238 cat >>confdefs.h <<_ACEOF
39239#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39240_ACEOF
ee45c548 39241 wxUSE_JOYSTICK=yes
a848cd7e
SC
39242fi
39243
39244done
39245
ee45c548 39246 fi
4cb1d3da 39247
ee45c548
MW
39248 if test "$wxUSE_JOYSTICK" = "yes"; then
39249 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39250#define wxUSE_JOYSTICK 1
39251_ACEOF
39252
ee45c548
MW
39253 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
39254 else
39255 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
39256echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
39257 fi
39258fi
39259
39260
39261
39262if test "$wxUSE_FONTMAP" = "yes" ; then
39263 cat >>confdefs.h <<\_ACEOF
39264#define wxUSE_FONTMAP 1
39265_ACEOF
39266
39267fi
39268
39269if test "$wxUSE_UNICODE" = "yes" ; then
39270 cat >>confdefs.h <<\_ACEOF
39271#define wxUSE_UNICODE 1
39272_ACEOF
39273
39274
39275 if test "$USE_WIN32" != 1; then
39276 wxUSE_UNICODE_MSLU=no
39277 fi
39278
39279 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
39280 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
39281echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
39282if test "${ac_cv_lib_unicows_main+set}" = set; then
39283 echo $ECHO_N "(cached) $ECHO_C" >&6
39284else
39285 ac_check_lib_save_LIBS=$LIBS
39286LIBS="-lunicows $LIBS"
39287cat >conftest.$ac_ext <<_ACEOF
39288/* confdefs.h. */
39289_ACEOF
39290cat confdefs.h >>conftest.$ac_ext
39291cat >>conftest.$ac_ext <<_ACEOF
39292/* end confdefs.h. */
39293
39294
39295int
39296main ()
39297{
39298main ();
39299 ;
39300 return 0;
39301}
39302_ACEOF
39303rm -f conftest.$ac_objext conftest$ac_exeext
39304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39305 (eval $ac_link) 2>conftest.er1
a848cd7e 39306 ac_status=$?
ac1cb8d3
VS
39307 grep -v '^ *+' conftest.er1 >conftest.err
39308 rm -f conftest.er1
39309 cat conftest.err >&5
a848cd7e
SC
39310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39311 (exit $ac_status); } &&
fb00f58d
JS
39312 { ac_try='test -z "$ac_c_werror_flag"
39313 || test ! -s conftest.err'
ac1cb8d3
VS
39314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39315 (eval $ac_try) 2>&5
39316 ac_status=$?
39317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39318 (exit $ac_status); }; } &&
39319 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39321 (eval $ac_try) 2>&5
39322 ac_status=$?
39323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39324 (exit $ac_status); }; }; then
39325 ac_cv_lib_unicows_main=yes
39326else
39327 echo "$as_me: failed program was:" >&5
39328sed 's/^/| /' conftest.$ac_ext >&5
39329
39330ac_cv_lib_unicows_main=no
39331fi
ac1cb8d3
VS
39332rm -f conftest.err conftest.$ac_objext \
39333 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39334LIBS=$ac_check_lib_save_LIBS
39335fi
39336echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
39337echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
39338if test $ac_cv_lib_unicows_main = yes; then
39339
39340 cat >>confdefs.h <<\_ACEOF
39341#define wxUSE_UNICODE_MSLU 1
39342_ACEOF
39343
39344
39345else
39346
39347 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
39348 Applications will only run on Windows NT/2000/XP!" >&5
39349echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
39350 Applications will only run on Windows NT/2000/XP!" >&2;}
39351 wxUSE_UNICODE_MSLU=no
39352
39353fi
39354
39355 fi
39356fi
39357
39358if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
39359 cat >>confdefs.h <<\_ACEOF
39360#define wxUSE_EXPERIMENTAL_PRINTF 1
39361_ACEOF
39362
39363fi
39364
39365
39366if test "$wxUSE_POSTSCRIPT" = "yes" ; then
39367 cat >>confdefs.h <<\_ACEOF
39368#define wxUSE_POSTSCRIPT 1
39369_ACEOF
39370
39371fi
39372
39373cat >>confdefs.h <<\_ACEOF
39374#define wxUSE_AFM_FOR_POSTSCRIPT 1
39375_ACEOF
39376
39377
39378cat >>confdefs.h <<\_ACEOF
39379#define wxUSE_NORMALIZED_PS_FONTS 1
39380_ACEOF
39381
39382
39383
39384if test "$wxUSE_CONSTRAINTS" = "yes"; then
39385 cat >>confdefs.h <<\_ACEOF
39386#define wxUSE_CONSTRAINTS 1
39387_ACEOF
39388
39389 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
39390fi
39391
8a7b1113
VZ
39392if test "$wxUSE_MDI" = "yes"; then
39393 cat >>confdefs.h <<\_ACEOF
39394#define wxUSE_MDI 1
39395_ACEOF
39396
39397
39398 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
39399 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39400#define wxUSE_MDI_ARCHITECTURE 1
39401_ACEOF
39402
8a7b1113
VZ
39403 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
39404 fi
a848cd7e
SC
39405fi
39406
39407if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
39408 cat >>confdefs.h <<\_ACEOF
39409#define wxUSE_DOC_VIEW_ARCHITECTURE 1
39410_ACEOF
39411
39412 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
39413 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
39414 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
39415 fi
39416fi
39417
39418if test "$wxUSE_HELP" = "yes"; then
39419 cat >>confdefs.h <<\_ACEOF
39420#define wxUSE_HELP 1
39421_ACEOF
39422
39423 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
39424
39425 if test "$wxUSE_MSW" = 1; then
39426 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
39427 cat >>confdefs.h <<\_ACEOF
39428#define wxUSE_MS_HTML_HELP 1
39429_ACEOF
39430
39431 fi
39432 fi
39433
39434 if test "$wxUSE_WXHTML_HELP" = "yes"; then
39435 if test "$wxUSE_HTML" = "yes"; then
39436 cat >>confdefs.h <<\_ACEOF
39437#define wxUSE_WXHTML_HELP 1
39438_ACEOF
39439
39440 else
39441 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
39442echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
39443 wxUSE_WXHTML_HELP=no
39444 fi
39445 fi
39446fi
39447
39448if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
39449 if test "$wxUSE_CONSTRAINTS" != "yes"; then
39450 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
39451echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
39452 else
39453 cat >>confdefs.h <<\_ACEOF
39454#define wxUSE_PRINTING_ARCHITECTURE 1
39455_ACEOF
39456
39457 fi
39458 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
39459fi
39460
39461if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
39462 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
39463echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
39464 { (exit 1); exit 1; }; }
39465fi
39466
39467
39468if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
39469 -o "$wxUSE_CLIPBOARD" = "yes" \
39470 -o "$wxUSE_OLE" = "yes" \
39471 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
39472
39473for ac_header in ole2.h
39474do
39475as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39476if eval "test \"\${$as_ac_Header+set}\" = set"; then
39477 echo "$as_me:$LINENO: checking for $ac_header" >&5
39478echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39479if eval "test \"\${$as_ac_Header+set}\" = set"; then
39480 echo $ECHO_N "(cached) $ECHO_C" >&6
39481fi
39482echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39483echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39484else
39485 # Is the header compilable?
39486echo "$as_me:$LINENO: checking $ac_header usability" >&5
39487echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39488cat >conftest.$ac_ext <<_ACEOF
39489/* confdefs.h. */
39490_ACEOF
39491cat confdefs.h >>conftest.$ac_ext
39492cat >>conftest.$ac_ext <<_ACEOF
39493/* end confdefs.h. */
39494$ac_includes_default
39495#include <$ac_header>
39496_ACEOF
39497rm -f conftest.$ac_objext
39498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39499 (eval $ac_compile) 2>conftest.er1
a848cd7e 39500 ac_status=$?
ac1cb8d3
VS
39501 grep -v '^ *+' conftest.er1 >conftest.err
39502 rm -f conftest.er1
39503 cat conftest.err >&5
a848cd7e
SC
39504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39505 (exit $ac_status); } &&
fb00f58d
JS
39506 { ac_try='test -z "$ac_c_werror_flag"
39507 || test ! -s conftest.err'
ac1cb8d3
VS
39508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39509 (eval $ac_try) 2>&5
39510 ac_status=$?
39511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39512 (exit $ac_status); }; } &&
39513 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39515 (eval $ac_try) 2>&5
39516 ac_status=$?
39517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39518 (exit $ac_status); }; }; then
39519 ac_header_compiler=yes
39520else
39521 echo "$as_me: failed program was:" >&5
39522sed 's/^/| /' conftest.$ac_ext >&5
39523
39524ac_header_compiler=no
39525fi
ac1cb8d3 39526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39527echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39528echo "${ECHO_T}$ac_header_compiler" >&6
39529
39530# Is the header present?
39531echo "$as_me:$LINENO: checking $ac_header presence" >&5
39532echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39533cat >conftest.$ac_ext <<_ACEOF
39534/* confdefs.h. */
39535_ACEOF
39536cat confdefs.h >>conftest.$ac_ext
39537cat >>conftest.$ac_ext <<_ACEOF
39538/* end confdefs.h. */
39539#include <$ac_header>
39540_ACEOF
39541if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39542 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39543 ac_status=$?
39544 grep -v '^ *+' conftest.er1 >conftest.err
39545 rm -f conftest.er1
39546 cat conftest.err >&5
39547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39548 (exit $ac_status); } >/dev/null; then
39549 if test -s conftest.err; then
39550 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 39551 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
39552 else
39553 ac_cpp_err=
39554 fi
39555else
39556 ac_cpp_err=yes
39557fi
39558if test -z "$ac_cpp_err"; then
39559 ac_header_preproc=yes
39560else
39561 echo "$as_me: failed program was:" >&5
39562sed 's/^/| /' conftest.$ac_ext >&5
39563
39564 ac_header_preproc=no
39565fi
39566rm -f conftest.err conftest.$ac_ext
39567echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39568echo "${ECHO_T}$ac_header_preproc" >&6
39569
39570# So? What about this header?
ac1cb8d3
VS
39571case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39572 yes:no: )
a848cd7e
SC
39573 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39574echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39576echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39577 ac_header_preproc=yes
a848cd7e 39578 ;;
ac1cb8d3 39579 no:yes:* )
a848cd7e
SC
39580 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39581echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39582 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39583echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39584 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39585echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39586 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39587echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39589echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39590 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39591echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39592 (
39593 cat <<\_ASBOX
ac1cb8d3
VS
39594## ----------------------------------------- ##
39595## Report this to wx-dev@lists.wxwidgets.org ##
39596## ----------------------------------------- ##
a848cd7e
SC
39597_ASBOX
39598 ) |
39599 sed "s/^/$as_me: WARNING: /" >&2
39600 ;;
39601esac
39602echo "$as_me:$LINENO: checking for $ac_header" >&5
39603echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39604if eval "test \"\${$as_ac_Header+set}\" = set"; then
39605 echo $ECHO_N "(cached) $ECHO_C" >&6
39606else
ac1cb8d3 39607 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39608fi
39609echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39610echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39611
39612fi
39613if test `eval echo '${'$as_ac_Header'}'` = yes; then
39614 cat >>confdefs.h <<_ACEOF
39615#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39616_ACEOF
39617
39618fi
39619
39620done
39621
39622
39623 if test "$ac_cv_header_ole2_h" = "yes" ; then
39624 if test "$GCC" = yes ; then
39625
39626
39627 ac_ext=cc
39628ac_cpp='$CXXCPP $CPPFLAGS'
39629ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39630ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39631ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39632
39633
39634 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
39635echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
39636 cat >conftest.$ac_ext <<_ACEOF
39637/* confdefs.h. */
39638_ACEOF
39639cat confdefs.h >>conftest.$ac_ext
39640cat >>conftest.$ac_ext <<_ACEOF
39641/* end confdefs.h. */
39642#include <windows.h>
39643 #include <ole2.h>
39644int
39645main ()
39646{
39647
39648 ;
39649 return 0;
39650}
39651_ACEOF
39652rm -f conftest.$ac_objext
39653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39654 (eval $ac_compile) 2>conftest.er1
a848cd7e 39655 ac_status=$?
ac1cb8d3
VS
39656 grep -v '^ *+' conftest.er1 >conftest.err
39657 rm -f conftest.er1
39658 cat conftest.err >&5
a848cd7e
SC
39659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39660 (exit $ac_status); } &&
fb00f58d
JS
39661 { ac_try='test -z "$ac_cxx_werror_flag"
39662 || test ! -s conftest.err'
ac1cb8d3
VS
39663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39664 (eval $ac_try) 2>&5
39665 ac_status=$?
39666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39667 (exit $ac_status); }; } &&
39668 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39670 (eval $ac_try) 2>&5
39671 ac_status=$?
39672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39673 (exit $ac_status); }; }; then
39674 echo "$as_me:$LINENO: result: no" >&5
39675echo "${ECHO_T}no" >&6
39676else
39677 echo "$as_me: failed program was:" >&5
39678sed 's/^/| /' conftest.$ac_ext >&5
39679
39680echo "$as_me:$LINENO: result: yes" >&5
39681echo "${ECHO_T}yes" >&6
39682 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
39683fi
ac1cb8d3 39684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39685 ac_ext=c
39686ac_cpp='$CPP $CPPFLAGS'
39687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39689ac_compiler_gnu=$ac_cv_c_compiler_gnu
39690
a848cd7e
SC
39691 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
39692 if test "$wxUSE_OLE" = "yes" ; then
39693 cat >>confdefs.h <<\_ACEOF
39694#define wxUSE_OLE 1
39695_ACEOF
39696
0b78747f 39697 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
39698 fi
39699 fi
39700
39701 if test "$wxUSE_DATAOBJ" = "yes" ; then
39702 cat >>confdefs.h <<\_ACEOF
39703#define wxUSE_DATAOBJ 1
39704_ACEOF
39705
39706 fi
39707 else
39708 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
39709echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
39710
39711 wxUSE_CLIPBOARD=no
39712 wxUSE_DRAG_AND_DROP=no
39713 wxUSE_DATAOBJ=no
39714 wxUSE_OLE=no
39715 fi
39716
39717 if test "$wxUSE_METAFILE" = "yes"; then
39718 cat >>confdefs.h <<\_ACEOF
39719#define wxUSE_METAFILE 1
39720_ACEOF
39721
39722
39723 cat >>confdefs.h <<\_ACEOF
39724#define wxUSE_ENH_METAFILE 1
39725_ACEOF
39726
39727 fi
39728fi
39729
39730if test "$wxUSE_IPC" = "yes"; then
0b78747f 39731 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
39732 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
39733echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 39734 wxUSE_IPC=no
a848cd7e
SC
39735 fi
39736
0b78747f
MW
39737 if test "$wxUSE_IPC" = "yes"; then
39738 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39739#define wxUSE_IPC 1
39740_ACEOF
39741
0b78747f
MW
39742 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
39743 fi
a848cd7e
SC
39744fi
39745
39746if test "$wxUSE_CLIPBOARD" = "yes"; then
39747 if test "$wxUSE_MGL" = 1; then
39748 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
39749echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
39750 wxUSE_CLIPBOARD=no
39751 fi
39752
39753 if test "$wxUSE_CLIPBOARD" = "yes"; then
39754 cat >>confdefs.h <<\_ACEOF
39755#define wxUSE_CLIPBOARD 1
39756_ACEOF
39757
39758
39759 cat >>confdefs.h <<\_ACEOF
39760#define wxUSE_DATAOBJ 1
39761_ACEOF
39762
39763 fi
39764fi
39765
39766if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
39767 if test "$wxUSE_GTK" = 1; then
39768 if test "$WXGTK12" != 1; then
39769 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
39770echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
39771 wxUSE_DRAG_AND_DROP=no
39772 fi
39773 fi
39774
39775 if test "$wxUSE_MOTIF" = 1; then
39776 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
39777echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
39778 wxUSE_DRAG_AND_DROP=no
39779 fi
39780
39781 if test "$wxUSE_X11" = 1; then
39782 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
39783echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
39784 wxUSE_DRAG_AND_DROP=no
39785 fi
39786
39787 if test "$wxUSE_MGL" = 1; then
39788 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
39789echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
39790 wxUSE_DRAG_AND_DROP=no
39791 fi
39792
39793 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
39794 cat >>confdefs.h <<\_ACEOF
39795#define wxUSE_DRAG_AND_DROP 1
39796_ACEOF
39797
39798 fi
39799
39800fi
39801
39802if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
39803 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
39804fi
39805
39806if test "$wxUSE_SPLINES" = "yes" ; then
39807 cat >>confdefs.h <<\_ACEOF
39808#define wxUSE_SPLINES 1
39809_ACEOF
39810
39811fi
39812
fbe2ca43
SN
39813if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
39814 cat >>confdefs.h <<\_ACEOF
39815#define wxUSE_MOUSEWHEEL 1
39816_ACEOF
39817
39818fi
39819
a848cd7e
SC
39820
39821USES_CONTROLS=0
39822if test "$wxUSE_CONTROLS" = "yes"; then
39823 USES_CONTROLS=1
39824fi
39825
39826if test "$wxUSE_ACCEL" = "yes"; then
39827 cat >>confdefs.h <<\_ACEOF
39828#define wxUSE_ACCEL 1
39829_ACEOF
39830
39831 USES_CONTROLS=1
39832fi
39833
39834if test "$wxUSE_BUTTON" = "yes"; then
39835 cat >>confdefs.h <<\_ACEOF
39836#define wxUSE_BUTTON 1
39837_ACEOF
39838
39839 USES_CONTROLS=1
39840fi
39841
39842if test "$wxUSE_BMPBUTTON" = "yes"; then
39843 cat >>confdefs.h <<\_ACEOF
39844#define wxUSE_BMPBUTTON 1
39845_ACEOF
39846
39847 USES_CONTROLS=1
39848fi
39849
39850if test "$wxUSE_CALCTRL" = "yes"; then
39851 cat >>confdefs.h <<\_ACEOF
39852#define wxUSE_CALENDARCTRL 1
39853_ACEOF
39854
39855 USES_CONTROLS=1
39856 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
39857fi
39858
39859if test "$wxUSE_CARET" = "yes"; then
39860 cat >>confdefs.h <<\_ACEOF
39861#define wxUSE_CARET 1
39862_ACEOF
39863
39864 USES_CONTROLS=1
39865 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
39866fi
39867
39868if test "$wxUSE_COMBOBOX" = "yes"; then
39869 cat >>confdefs.h <<\_ACEOF
39870#define wxUSE_COMBOBOX 1
39871_ACEOF
39872
39873 USES_CONTROLS=1
39874fi
39875
39876if test "$wxUSE_CHOICE" = "yes"; then
39877 cat >>confdefs.h <<\_ACEOF
39878#define wxUSE_CHOICE 1
39879_ACEOF
39880
39881 USES_CONTROLS=1
39882fi
39883
92bbdbcd
WS
39884if test "$wxUSE_CHOICEBOOK" = "yes"; then
39885 cat >>confdefs.h <<\_ACEOF
39886#define wxUSE_CHOICEBOOK 1
39887_ACEOF
39888
39889 USES_CONTROLS=1
39890fi
39891
a848cd7e
SC
39892if test "$wxUSE_CHECKBOX" = "yes"; then
39893 cat >>confdefs.h <<\_ACEOF
39894#define wxUSE_CHECKBOX 1
39895_ACEOF
39896
39897 USES_CONTROLS=1
39898fi
39899
39900if test "$wxUSE_CHECKLST" = "yes"; then
39901 cat >>confdefs.h <<\_ACEOF
39902#define wxUSE_CHECKLISTBOX 1
39903_ACEOF
39904
39905 USES_CONTROLS=1
39906 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
39907fi
39908
da98e9be
VZ
39909if test "$wxUSE_DATEPICKCTRL" = "yes"; then
39910 cat >>confdefs.h <<\_ACEOF
39911#define wxUSE_DATEPICKCTRL 1
39912_ACEOF
39913
39914 USES_CONTROLS=1
39915fi
39916
a848cd7e
SC
39917if test "$wxUSE_DISPLAY" = "yes"; then
39918 cat >>confdefs.h <<\_ACEOF
39919#define wxUSE_DISPLAY 1
39920_ACEOF
39921
0b78747f 39922 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
39923fi
39924
39925if test "$wxUSE_GAUGE" = "yes"; then
39926 cat >>confdefs.h <<\_ACEOF
39927#define wxUSE_GAUGE 1
39928_ACEOF
39929
39930 USES_CONTROLS=1
39931fi
39932
39933if test "$wxUSE_GRID" = "yes"; then
39934 cat >>confdefs.h <<\_ACEOF
39935#define wxUSE_GRID 1
39936_ACEOF
39937
39938 USES_CONTROLS=1
39939 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
39940fi
39941
39942if test "$wxUSE_IMAGLIST" = "yes"; then
39943 cat >>confdefs.h <<\_ACEOF
39944#define wxUSE_IMAGLIST 1
39945_ACEOF
39946
39947fi
39948
39949if test "$wxUSE_LISTBOOK" = "yes"; then
39950 cat >>confdefs.h <<\_ACEOF
39951#define wxUSE_LISTBOOK 1
39952_ACEOF
39953
39954 USES_CONTROLS=1
39955fi
39956
39957if test "$wxUSE_LISTBOX" = "yes"; then
39958 cat >>confdefs.h <<\_ACEOF
39959#define wxUSE_LISTBOX 1
39960_ACEOF
39961
39962 USES_CONTROLS=1
0b78747f 39963 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
39964fi
39965
39966if test "$wxUSE_LISTCTRL" = "yes"; then
39967 if test "$wxUSE_IMAGLIST" = "yes"; then
39968 cat >>confdefs.h <<\_ACEOF
39969#define wxUSE_LISTCTRL 1
39970_ACEOF
39971
39972 USES_CONTROLS=1
39973 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
39974 else
39975 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
39976echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
39977 fi
39978fi
39979
39980if test "$wxUSE_NOTEBOOK" = "yes"; then
39981 cat >>confdefs.h <<\_ACEOF
39982#define wxUSE_NOTEBOOK 1
39983_ACEOF
39984
39985 USES_CONTROLS=1
39986 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
39987fi
39988
39989
39990if test "$wxUSE_RADIOBOX" = "yes"; then
39991 cat >>confdefs.h <<\_ACEOF
39992#define wxUSE_RADIOBOX 1
39993_ACEOF
39994
39995 USES_CONTROLS=1
39996fi
39997
39998if test "$wxUSE_RADIOBTN" = "yes"; then
39999 cat >>confdefs.h <<\_ACEOF
40000#define wxUSE_RADIOBTN 1
40001_ACEOF
40002
40003 USES_CONTROLS=1
40004fi
40005
40006if test "$wxUSE_SASH" = "yes"; then
40007 cat >>confdefs.h <<\_ACEOF
40008#define wxUSE_SASH 1
40009_ACEOF
40010
40011 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
40012fi
40013
40014if test "$wxUSE_SCROLLBAR" = "yes"; then
40015 cat >>confdefs.h <<\_ACEOF
40016#define wxUSE_SCROLLBAR 1
40017_ACEOF
40018
40019 USES_CONTROLS=1
40020 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
40021fi
40022
40023if test "$wxUSE_SLIDER" = "yes"; then
40024 cat >>confdefs.h <<\_ACEOF
40025#define wxUSE_SLIDER 1
40026_ACEOF
40027
40028 USES_CONTROLS=1
40029fi
40030
40031if test "$wxUSE_SPINBTN" = "yes"; then
40032 cat >>confdefs.h <<\_ACEOF
40033#define wxUSE_SPINBTN 1
40034_ACEOF
40035
40036 USES_CONTROLS=1
40037fi
40038
40039if test "$wxUSE_SPINCTRL" = "yes"; then
40040 cat >>confdefs.h <<\_ACEOF
40041#define wxUSE_SPINCTRL 1
40042_ACEOF
40043
40044 USES_CONTROLS=1
40045fi
40046
40047if test "$wxUSE_SPLITTER" = "yes"; then
40048 cat >>confdefs.h <<\_ACEOF
40049#define wxUSE_SPLITTER 1
40050_ACEOF
40051
40052 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
40053fi
40054
40055if test "$wxUSE_STATBMP" = "yes"; then
40056 cat >>confdefs.h <<\_ACEOF
40057#define wxUSE_STATBMP 1
40058_ACEOF
40059
40060 USES_CONTROLS=1
40061fi
40062
40063if test "$wxUSE_STATBOX" = "yes"; then
40064 cat >>confdefs.h <<\_ACEOF
40065#define wxUSE_STATBOX 1
40066_ACEOF
40067
40068 USES_CONTROLS=1
40069fi
40070
40071if test "$wxUSE_STATTEXT" = "yes"; then
40072 cat >>confdefs.h <<\_ACEOF
40073#define wxUSE_STATTEXT 1
40074_ACEOF
40075
40076 USES_CONTROLS=1
40077fi
40078
40079if test "$wxUSE_STATLINE" = "yes"; then
40080 cat >>confdefs.h <<\_ACEOF
40081#define wxUSE_STATLINE 1
40082_ACEOF
40083
40084 USES_CONTROLS=1
40085fi
40086
40087if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
40088 cat >>confdefs.h <<\_ACEOF
40089#define wxUSE_NATIVE_STATUSBAR 1
40090_ACEOF
40091
a848cd7e
SC
40092 cat >>confdefs.h <<\_ACEOF
40093#define wxUSE_STATUSBAR 1
40094_ACEOF
40095
40096 USES_CONTROLS=1
40097
40098 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
40099fi
40100
40101if test "$wxUSE_TABDIALOG" = "yes"; then
40102 cat >>confdefs.h <<\_ACEOF
40103#define wxUSE_TAB_DIALOG 1
40104_ACEOF
40105
a848cd7e
SC
40106fi
40107
40108if test "$wxUSE_TEXTCTRL" = "yes"; then
40109 cat >>confdefs.h <<\_ACEOF
40110#define wxUSE_TEXTCTRL 1
40111_ACEOF
40112
40113 USES_CONTROLS=1
40114 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
40115fi
40116
40117if test "$wxUSE_TOGGLEBTN" = "yes"; then
40118 if test "$wxUSE_COCOA" = 1 ; then
40119 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
40120echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
40121 wxUSE_TOGGLEBTN=no
40122 fi
40123 if test "$wxUSE_UNIVERSAL" = "yes"; then
40124 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
40125echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
40126 wxUSE_TOGGLEBTN=no
40127 fi
40128
40129 if test "$wxUSE_TOGGLEBTN" = "yes"; then
40130 cat >>confdefs.h <<\_ACEOF
40131#define wxUSE_TOGGLEBTN 1
40132_ACEOF
40133
40134 USES_CONTROLS=1
40135 fi
40136fi
40137
40138if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
40139 cat >>confdefs.h <<\_ACEOF
40140#define wxUSE_TOOLBAR_SIMPLE 1
40141_ACEOF
40142
40143 wxUSE_TOOLBAR="yes"
40144 USES_CONTROLS=1
40145fi
40146
40147if test "$wxUSE_TOOLBAR" = "yes"; then
40148 cat >>confdefs.h <<\_ACEOF
40149#define wxUSE_TOOLBAR 1
40150_ACEOF
40151
40152 USES_CONTROLS=1
40153
40154 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
40155 wxUSE_TOOLBAR_NATIVE="yes"
40156 fi
40157
40158 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
40159 cat >>confdefs.h <<\_ACEOF
40160#define wxUSE_TOOLBAR_NATIVE 1
40161_ACEOF
40162
40163 USES_CONTROLS=1
40164 fi
40165
40166 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
40167fi
40168
40169if test "$wxUSE_TOOLTIPS" = "yes"; then
40170 if test "$wxUSE_MOTIF" = 1; then
40171 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
40172echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
40173 else
40174 if test "$wxUSE_UNIVERSAL" = "yes"; then
40175 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
40176echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
40177 else
40178 cat >>confdefs.h <<\_ACEOF
40179#define wxUSE_TOOLTIPS 1
40180_ACEOF
40181
40182 fi
40183 fi
40184fi
40185
40186if test "$wxUSE_TREECTRL" = "yes"; then
40187 if test "$wxUSE_IMAGLIST" = "yes"; then
40188 cat >>confdefs.h <<\_ACEOF
40189#define wxUSE_TREECTRL 1
40190_ACEOF
40191
40192 USES_CONTROLS=1
40193 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
40194 else
40195 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
40196echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
40197 fi
40198fi
40199
40200if test "$wxUSE_POPUPWIN" = "yes"; then
40201 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
40202 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
40203echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
40204 else
40205 if test "$wxUSE_PM" = 1; then
40206 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
40207echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
40208 else
40209 cat >>confdefs.h <<\_ACEOF
40210#define wxUSE_POPUPWIN 1
40211_ACEOF
40212
0b78747f 40213 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
40214
40215 USES_CONTROLS=1
40216 fi
40217 fi
40218fi
40219
0dcd06dd 40220if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
40221 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
40222 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
40223echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
40224 else
40225 cat >>confdefs.h <<\_ACEOF
40226#define wxUSE_DIALUP_MANAGER 1
40227_ACEOF
40228
40229 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
40230 fi
40231fi
40232
a848cd7e
SC
40233if test "$wxUSE_TIPWINDOW" = "yes"; then
40234 if test "$wxUSE_PM" = 1; then
40235 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
40236echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
40237 else
40238 cat >>confdefs.h <<\_ACEOF
40239#define wxUSE_TIPWINDOW 1
40240_ACEOF
40241
40242 fi
40243fi
40244
40245if test "$USES_CONTROLS" = 1; then
40246 cat >>confdefs.h <<\_ACEOF
40247#define wxUSE_CONTROLS 1
40248_ACEOF
40249
40250fi
40251
40252
40253if test "$wxUSE_ACCESSIBILITY" = "yes"; then
40254 cat >>confdefs.h <<\_ACEOF
40255#define wxUSE_ACCESSIBILITY 1
40256_ACEOF
40257
40258 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
40259fi
40260
40261if test "$wxUSE_DRAGIMAGE" = "yes"; then
40262 cat >>confdefs.h <<\_ACEOF
40263#define wxUSE_DRAGIMAGE 1
40264_ACEOF
40265
40266 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
40267fi
40268
40269if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
40270 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
40271 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
40272echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
40273 else
40274 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
40275#define wxUSE_EXCEPTIONS 1
40276_ACEOF
40277
07bea8f0
VS
40278 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
40279 fi
a848cd7e
SC
40280fi
40281
40282USE_HTML=0
40283if test "$wxUSE_HTML" = "yes"; then
40284 cat >>confdefs.h <<\_ACEOF
40285#define wxUSE_HTML 1
40286_ACEOF
40287
40288 USE_HTML=1
40289 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
40290 if test "$wxUSE_MAC" = 1; then
40291 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
40292 fi
a848cd7e 40293fi
646b6ec1 40294if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 40295 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
40296 old_CPPFLAGS="$CPPFLAGS"
40297 CPPFLAGS="$CPPFLAGS -x objective-c++"
40298 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
40299echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
40300if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
40301 echo $ECHO_N "(cached) $ECHO_C" >&6
40302else
40303 cat >conftest.$ac_ext <<_ACEOF
40304/* confdefs.h. */
40305_ACEOF
40306cat confdefs.h >>conftest.$ac_ext
40307cat >>conftest.$ac_ext <<_ACEOF
40308/* end confdefs.h. */
40309#include <Carbon/Carbon.h>
40310
40311#include <WebKit/HIWebView.h>
40312_ACEOF
40313rm -f conftest.$ac_objext
40314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40315 (eval $ac_compile) 2>conftest.er1
40316 ac_status=$?
40317 grep -v '^ *+' conftest.er1 >conftest.err
40318 rm -f conftest.er1
40319 cat conftest.err >&5
40320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40321 (exit $ac_status); } &&
fb00f58d
JS
40322 { ac_try='test -z "$ac_c_werror_flag"
40323 || test ! -s conftest.err'
07bea8f0
VS
40324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40325 (eval $ac_try) 2>&5
40326 ac_status=$?
40327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40328 (exit $ac_status); }; } &&
40329 { ac_try='test -s conftest.$ac_objext'
40330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40331 (eval $ac_try) 2>&5
40332 ac_status=$?
40333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40334 (exit $ac_status); }; }; then
40335 ac_cv_header_WebKit_HIWebView_h=yes
40336else
40337 echo "$as_me: failed program was:" >&5
40338sed 's/^/| /' conftest.$ac_ext >&5
40339
40340ac_cv_header_WebKit_HIWebView_h=no
40341fi
40342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40343fi
40344echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
40345echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
40346if test $ac_cv_header_WebKit_HIWebView_h = yes; then
40347
40348 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
40349#define wxUSE_WEBKIT 1
40350_ACEOF
40351
07bea8f0
VS
40352 WEBKIT_LINK="-framework WebKit"
40353
40354else
40355
40356 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
40357echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
40358 wxUSE_WEBKIT=no
40359
646b6ec1
VS
40360fi
40361
07bea8f0
VS
40362
40363 CPPFLAGS="$old_CPPFLAGS"
40364 elif test "$wxUSE_COCOA" = 1; then
40365 cat >>confdefs.h <<\_ACEOF
40366#define wxUSE_WEBKIT 1
40367_ACEOF
40368
40369 else
40370 wxUSE_WEBKIT=no
40371 fi
40372fi
40373
9a8f0513
VS
40374USE_XRC=0
40375if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
40376 if test "$wxUSE_XML" != "yes"; then
40377 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
40378echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
40379 wxUSE_XRC=no
40380 else
40381 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
40382#define wxUSE_XRC 1
40383_ACEOF
40384
d2ebf0b7
VS
40385 USE_XRC=1
40386 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
40387 fi
9a8f0513 40388fi
07bea8f0 40389
a848cd7e
SC
40390if test "$wxUSE_MENUS" = "yes"; then
40391 cat >>confdefs.h <<\_ACEOF
40392#define wxUSE_MENUS 1
40393_ACEOF
40394
40395 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
40396fi
40397
40398if test "$wxUSE_METAFILE" = "yes"; then
40399 cat >>confdefs.h <<\_ACEOF
40400#define wxUSE_METAFILE 1
40401_ACEOF
40402
40403fi
40404
40405if test "$wxUSE_MIMETYPE" = "yes"; then
40406 cat >>confdefs.h <<\_ACEOF
40407#define wxUSE_MIMETYPE 1
40408_ACEOF
40409
40410fi
40411
40412if test "$wxUSE_MINIFRAME" = "yes"; then
40413 cat >>confdefs.h <<\_ACEOF
40414#define wxUSE_MINIFRAME 1
40415_ACEOF
40416
40417 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
40418fi
40419
40420if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
40421 cat >>confdefs.h <<\_ACEOF
40422#define wxUSE_SYSTEM_OPTIONS 1
40423_ACEOF
40424
40425 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 40426 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
40427 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
40428 fi
40429fi
40430
40431
40432if test "$wxUSE_VALIDATORS" = "yes"; then
40433 cat >>confdefs.h <<\_ACEOF
40434#define wxUSE_VALIDATORS 1
40435_ACEOF
40436
40437 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
40438fi
40439
40440if test "$wxUSE_PALETTE" = "yes" ; then
40441 cat >>confdefs.h <<\_ACEOF
40442#define wxUSE_PALETTE 1
40443_ACEOF
40444
40445fi
40446
40447if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
40448 LIBS=" -lunicows $LIBS"
40449fi
40450
40451
40452if test "$wxUSE_IMAGE" = "yes" ; then
40453 cat >>confdefs.h <<\_ACEOF
40454#define wxUSE_IMAGE 1
40455_ACEOF
40456
40457
40458 if test "$wxUSE_GIF" = "yes" ; then
40459 cat >>confdefs.h <<\_ACEOF
40460#define wxUSE_GIF 1
40461_ACEOF
40462
40463 fi
40464
40465 if test "$wxUSE_PCX" = "yes" ; then
40466 cat >>confdefs.h <<\_ACEOF
40467#define wxUSE_PCX 1
40468_ACEOF
40469
40470 fi
40471
40472 if test "$wxUSE_IFF" = "yes" ; then
40473 cat >>confdefs.h <<\_ACEOF
40474#define wxUSE_IFF 1
40475_ACEOF
40476
40477 fi
40478
40479 if test "$wxUSE_PNM" = "yes" ; then
40480 cat >>confdefs.h <<\_ACEOF
40481#define wxUSE_PNM 1
40482_ACEOF
40483
40484 fi
40485
40486 if test "$wxUSE_XPM" = "yes" ; then
40487 cat >>confdefs.h <<\_ACEOF
40488#define wxUSE_XPM 1
40489_ACEOF
40490
40491 fi
40492
40493 if test "$wxUSE_ICO_CUR" = "yes" ; then
40494 cat >>confdefs.h <<\_ACEOF
40495#define wxUSE_ICO_CUR 1
40496_ACEOF
40497
40498 fi
40499fi
40500
40501
40502if test "$wxUSE_CHOICEDLG" = "yes"; then
40503 cat >>confdefs.h <<\_ACEOF
40504#define wxUSE_CHOICEDLG 1
40505_ACEOF
40506
40507fi
40508
40509if test "$wxUSE_COLOURDLG" = "yes"; then
40510 cat >>confdefs.h <<\_ACEOF
40511#define wxUSE_COLOURDLG 1
40512_ACEOF
40513
40514fi
40515
40516if test "$wxUSE_FILEDLG" = "yes"; then
40517 cat >>confdefs.h <<\_ACEOF
40518#define wxUSE_FILEDLG 1
40519_ACEOF
40520
40521fi
40522
40523if test "$wxUSE_FINDREPLDLG" = "yes"; then
40524 cat >>confdefs.h <<\_ACEOF
40525#define wxUSE_FINDREPLDLG 1
40526_ACEOF
40527
40528fi
40529
40530if test "$wxUSE_FONTDLG" = "yes"; then
40531 cat >>confdefs.h <<\_ACEOF
40532#define wxUSE_FONTDLG 1
40533_ACEOF
40534
40535fi
40536
40537if test "$wxUSE_DIRDLG" = "yes"; then
40538 if test "$wxUSE_TREECTRL" != "yes"; then
40539 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
40540echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
40541 else
40542 cat >>confdefs.h <<\_ACEOF
40543#define wxUSE_DIRDLG 1
40544_ACEOF
40545
40546 fi
40547fi
40548
40549if test "$wxUSE_MSGDLG" = "yes"; then
40550 cat >>confdefs.h <<\_ACEOF
40551#define wxUSE_MSGDLG 1
40552_ACEOF
40553
40554fi
40555
40556if test "$wxUSE_NUMBERDLG" = "yes"; then
40557 cat >>confdefs.h <<\_ACEOF
40558#define wxUSE_NUMBERDLG 1
40559_ACEOF
40560
40561fi
40562
40563if test "$wxUSE_PROGRESSDLG" = "yes"; then
40564 if test "$wxUSE_CONSTRAINTS" != "yes"; then
40565 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
40566echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
40567 else
40568 cat >>confdefs.h <<\_ACEOF
40569#define wxUSE_PROGRESSDLG 1
40570_ACEOF
40571
40572 fi
40573fi
40574
40575if test "$wxUSE_SPLASH" = "yes"; then
40576 cat >>confdefs.h <<\_ACEOF
40577#define wxUSE_SPLASH 1
40578_ACEOF
40579
2057db16 40580 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
40581fi
40582
40583if test "$wxUSE_STARTUP_TIPS" = "yes"; then
40584 if test "$wxUSE_CONSTRAINTS" != "yes"; then
40585 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
40586echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
40587 else
40588 cat >>confdefs.h <<\_ACEOF
40589#define wxUSE_STARTUP_TIPS 1
40590_ACEOF
40591
40592 fi
40593fi
40594
40595if test "$wxUSE_TEXTDLG" = "yes"; then
40596 cat >>confdefs.h <<\_ACEOF
40597#define wxUSE_TEXTDLG 1
40598_ACEOF
40599
40600fi
40601
40602if test "$wxUSE_WIZARDDLG" = "yes"; then
40603 cat >>confdefs.h <<\_ACEOF
40604#define wxUSE_WIZARDDLG 1
40605_ACEOF
40606
40607 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
40608fi
40609
40610
ce756cb0 40611if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
40612 if test "$wxUSE_GTK" = 1; then
40613 wxUSE_GSTREAMER="yes"
40614
ce756cb0 40615
dae87f93 40616 succeeded=no
ce756cb0 40617
dae87f93
RN
40618 if test -z "$PKG_CONFIG"; then
40619 # Extract the first word of "pkg-config", so it can be a program name with args.
40620set dummy pkg-config; ac_word=$2
40621echo "$as_me:$LINENO: checking for $ac_word" >&5
40622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40623if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
40624 echo $ECHO_N "(cached) $ECHO_C" >&6
40625else
40626 case $PKG_CONFIG in
40627 [\\/]* | ?:[\\/]*)
40628 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
40629 ;;
40630 *)
40631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40632for as_dir in $PATH
40633do
40634 IFS=$as_save_IFS
40635 test -z "$as_dir" && as_dir=.
40636 for ac_exec_ext in '' $ac_executable_extensions; do
40637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40638 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40640 break 2
40641 fi
40642done
40643done
40644
40645 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
40646 ;;
40647esac
40648fi
40649PKG_CONFIG=$ac_cv_path_PKG_CONFIG
40650
40651if test -n "$PKG_CONFIG"; then
40652 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
40653echo "${ECHO_T}$PKG_CONFIG" >&6
40654else
40655 echo "$as_me:$LINENO: result: no" >&5
40656echo "${ECHO_T}no" >&6
40657fi
40658
40659 fi
40660
40661 if test "$PKG_CONFIG" = "no" ; then
40662 echo "*** The pkg-config script could not be found. Make sure it is"
40663 echo "*** in your path, or set the PKG_CONFIG environment variable"
40664 echo "*** to the full path to pkg-config."
40665 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
40666 else
40667 PKG_CONFIG_MIN_VERSION=0.9.0
40668 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
40669 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
40670echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
40671
40672 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
40673 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 40674echo "${ECHO_T}yes" >&6
dae87f93 40675 succeeded=yes
ce756cb0 40676
dae87f93
RN
40677 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
40678echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
40679 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
40680 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
40681echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
40682
40683 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
40684echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
40685 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
40686 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
40687echo "${ECHO_T}$GSTREAMER_LIBS" >&6
40688 else
40689 GSTREAMER_CFLAGS=""
40690 GSTREAMER_LIBS=""
40691 ## If we have a custom action on failure, don't print errors, but
40692 ## do set a variable so people can do so.
40693 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 40694
dae87f93
RN
40695 fi
40696
40697
40698
40699 else
40700 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
40701 echo "*** See http://www.freedesktop.org/software/pkgconfig"
40702 fi
40703 fi
40704
40705 if test $succeeded = yes; then
40706
40707 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
40708 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 40709
ce756cb0 40710 else
dae87f93
RN
40711
40712 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
40713echo "$as_me: WARNING: GStreamer installation not found" >&2;}
40714 wxUSE_GSTREAMER="no"
40715
40716 fi
40717
40718
40719
40720
40721
40722 if test "x$GST_INSPECT" == "x"; then
40723 # Extract the first word of "gst-inspect", so it can be a program name with args.
40724set dummy gst-inspect; ac_word=$2
40725echo "$as_me:$LINENO: checking for $ac_word" >&5
40726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40727if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
40728 echo $ECHO_N "(cached) $ECHO_C" >&6
40729else
40730 if test -n "$GST_INSPECT"; then
40731 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
40732else
40733as_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_prog_GST_INSPECT="gst-inspect"
40741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40742 break 2
ce756cb0 40743 fi
dae87f93
RN
40744done
40745done
40746
40747fi
40748fi
40749GST_INSPECT=$ac_cv_prog_GST_INSPECT
40750if test -n "$GST_INSPECT"; then
40751 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
40752echo "${ECHO_T}$GST_INSPECT" >&6
40753else
40754 echo "$as_me:$LINENO: result: no" >&5
40755echo "${ECHO_T}no" >&6
40756fi
40757
40758 fi
40759
40760 if test "x$GST_INSPECT" != "x"; then
40761 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
40762echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
40763 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
40764 echo "$as_me:$LINENO: result: found." >&5
40765echo "${ECHO_T}found." >&6
ce756cb0 40766
ce756cb0 40767 else
dae87f93
RN
40768 echo "$as_me:$LINENO: result: not found." >&5
40769echo "${ECHO_T}not found." >&6
40770
40771 wxUSE_GSTREAMER="no"
40772 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
40773echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
40774
40775 fi
40776 fi
40777
40778
40779 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
40780echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
40781if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
40782 echo $ECHO_N "(cached) $ECHO_C" >&6
40783else
40784 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
40785/* confdefs.h. */
40786_ACEOF
40787cat confdefs.h >>conftest.$ac_ext
40788cat >>conftest.$ac_ext <<_ACEOF
40789/* end confdefs.h. */
dae87f93 40790#include <gst/gst.h>
ce756cb0 40791
dae87f93 40792#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
40793_ACEOF
40794rm -f conftest.$ac_objext
40795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40796 (eval $ac_compile) 2>conftest.er1
40797 ac_status=$?
40798 grep -v '^ *+' conftest.er1 >conftest.err
40799 rm -f conftest.er1
40800 cat conftest.err >&5
40801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40802 (exit $ac_status); } &&
fb00f58d
JS
40803 { ac_try='test -z "$ac_c_werror_flag"
40804 || test ! -s conftest.err'
ce756cb0
RN
40805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40806 (eval $ac_try) 2>&5
40807 ac_status=$?
40808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40809 (exit $ac_status); }; } &&
40810 { ac_try='test -s conftest.$ac_objext'
40811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40812 (eval $ac_try) 2>&5
40813 ac_status=$?
40814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40815 (exit $ac_status); }; }; then
dae87f93 40816 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
40817else
40818 echo "$as_me: failed program was:" >&5
40819sed 's/^/| /' conftest.$ac_ext >&5
40820
dae87f93 40821ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
40822fi
40823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
40824fi
40825echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
40826echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
40827if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
40828 :
40829else
ce756cb0 40830
dae87f93
RN
40831 wxUSE_GSTREAMER="no"
40832 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
40833echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 40834
dae87f93 40835fi
ce756cb0 40836
dae87f93
RN
40837
40838
40839 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
40840echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
40841
40842ac_find_libraries=
40843for ac_dir in $SEARCH_LIB /usr/lib;
40844 do
40845 for ac_extension in a so sl dylib; do
40846 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
40847 ac_find_libraries=$ac_dir
40848 break 2
40849 fi
40850 done
40851 done
40852
ce756cb0 40853
dae87f93
RN
40854 if test "$ac_find_libraries" = "" ; then
40855 echo "$as_me:$LINENO: result: no" >&5
40856echo "${ECHO_T}no" >&6
40857 wxUSE_GSTREAMER="no"
40858 else
40859 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 40860echo "${ECHO_T}yes" >&6
dae87f93 40861 fi
ce756cb0 40862
dae87f93
RN
40863 if test "$wxUSE_GSTREAMER" = "yes"; then
40864 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
40865#define wxUSE_GSTREAMER 1
40866_ACEOF
40867
dae87f93
RN
40868 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
40869echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
40870 fi
40871 fi
40872 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
40873 cat >>confdefs.h <<\_ACEOF
40874#define wxUSE_MEDIACTRL 1
40875_ACEOF
40876
40877fi
40878
40879
a848cd7e
SC
40880if test "$cross_compiling" = "yes"; then
40881 OSINFO="\"$host\""
40882else
40883 OSINFO=`uname -s -r -m`
40884 OSINFO="\"$OSINFO\""
40885fi
40886
40887cat >>confdefs.h <<_ACEOF
40888#define WXWIN_OS_DESCRIPTION $OSINFO
40889_ACEOF
40890
40891
40892
40893if test "x$prefix" != "xNONE"; then
40894 wxPREFIX=$prefix
40895else
40896 wxPREFIX=$ac_default_prefix
40897fi
40898
40899cat >>confdefs.h <<_ACEOF
40900#define wxINSTALL_PREFIX "$wxPREFIX"
40901_ACEOF
40902
40903
a848cd7e
SC
40904
40905
40906CORE_BASE_LIBS="net base"
40907CORE_GUI_LIBS="adv core"
40908
40909if test "$wxUSE_XML" = "yes" ; then
40910 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
40911fi
40912if test "$wxUSE_ODBC" != "no" ; then
40913 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
40914 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
40915fi
40916if test "$wxUSE_HTML" = "yes" ; then
40917 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
40918fi
61639efb
VZ
40919if test "$wxUSE_DEBUGREPORT" = "yes" ; then
40920 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
40921fi
9a8f0513
VS
40922if test "$wxUSE_XRC" = "yes" ; then
40923 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
40924fi
a848cd7e
SC
40925
40926if test "$wxUSE_GUI" != "yes"; then
40927 CORE_GUI_LIBS=""
40928fi
40929
40930
40931
40932
40933
40934
40935
40936
40937if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 40938 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
40939 if test "$USE_DARWIN" = 1; then
40940 LDFLAGS="$LDFLAGS -framework QuickTime"
40941 else
40942 LDFLAGS="$LDFLAGS -lQuickTimeLib"
40943 fi
07bea8f0 40944 fi
5dcf30a0 40945 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
40946 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
40947 else
40948 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 40949 fi
a848cd7e
SC
40950fi
40951if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 40952 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
40953 if test "$wxUSE_MEDIACTRL" = "yes"; then
40954 LDFLAGS="$LDFLAGS -framework QuickTime"
40955 fi
a848cd7e 40956fi
19b27e78
MW
40957if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
40958 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
40959fi
a848cd7e
SC
40960
40961
40962LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
40963
40964have_cos=0
40965have_floor=0
40966
40967for ac_func in cos
40968do
40969as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40970echo "$as_me:$LINENO: checking for $ac_func" >&5
40971echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40972if eval "test \"\${$as_ac_var+set}\" = set"; then
40973 echo $ECHO_N "(cached) $ECHO_C" >&6
40974else
40975 cat >conftest.$ac_ext <<_ACEOF
40976/* confdefs.h. */
40977_ACEOF
40978cat confdefs.h >>conftest.$ac_ext
40979cat >>conftest.$ac_ext <<_ACEOF
40980/* end confdefs.h. */
ac1cb8d3
VS
40981/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40983#define $ac_func innocuous_$ac_func
40984
a848cd7e
SC
40985/* System header to define __stub macros and hopefully few prototypes,
40986 which can conflict with char $ac_func (); below.
40987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40988 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40989
a848cd7e
SC
40990#ifdef __STDC__
40991# include <limits.h>
40992#else
40993# include <assert.h>
40994#endif
ac1cb8d3
VS
40995
40996#undef $ac_func
40997
a848cd7e
SC
40998/* Override any gcc2 internal prototype to avoid an error. */
40999#ifdef __cplusplus
41000extern "C"
41001{
41002#endif
41003/* We use char because int might match the return type of a gcc2
41004 builtin and then its argument prototype would still apply. */
41005char $ac_func ();
41006/* The GNU C library defines this for functions which it implements
41007 to always fail with ENOSYS. Some functions are actually named
41008 something starting with __ and the normal name is an alias. */
41009#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41010choke me
41011#else
41012char (*f) () = $ac_func;
41013#endif
41014#ifdef __cplusplus
41015}
41016#endif
41017
41018int
41019main ()
41020{
41021return f != $ac_func;
41022 ;
41023 return 0;
41024}
41025_ACEOF
41026rm -f conftest.$ac_objext conftest$ac_exeext
41027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41028 (eval $ac_link) 2>conftest.er1
a848cd7e 41029 ac_status=$?
ac1cb8d3
VS
41030 grep -v '^ *+' conftest.er1 >conftest.err
41031 rm -f conftest.er1
41032 cat conftest.err >&5
a848cd7e
SC
41033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41034 (exit $ac_status); } &&
fb00f58d
JS
41035 { ac_try='test -z "$ac_c_werror_flag"
41036 || test ! -s conftest.err'
ac1cb8d3
VS
41037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41038 (eval $ac_try) 2>&5
41039 ac_status=$?
41040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41041 (exit $ac_status); }; } &&
41042 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41044 (eval $ac_try) 2>&5
41045 ac_status=$?
41046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41047 (exit $ac_status); }; }; then
41048 eval "$as_ac_var=yes"
41049else
41050 echo "$as_me: failed program was:" >&5
41051sed 's/^/| /' conftest.$ac_ext >&5
41052
41053eval "$as_ac_var=no"
41054fi
ac1cb8d3
VS
41055rm -f conftest.err conftest.$ac_objext \
41056 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41057fi
41058echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41059echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41060if test `eval echo '${'$as_ac_var'}'` = yes; then
41061 cat >>confdefs.h <<_ACEOF
41062#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41063_ACEOF
41064 have_cos=1
41065fi
41066done
41067
41068
41069for ac_func in floor
41070do
41071as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41072echo "$as_me:$LINENO: checking for $ac_func" >&5
41073echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41074if eval "test \"\${$as_ac_var+set}\" = set"; then
41075 echo $ECHO_N "(cached) $ECHO_C" >&6
41076else
41077 cat >conftest.$ac_ext <<_ACEOF
41078/* confdefs.h. */
41079_ACEOF
41080cat confdefs.h >>conftest.$ac_ext
41081cat >>conftest.$ac_ext <<_ACEOF
41082/* end confdefs.h. */
ac1cb8d3
VS
41083/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41085#define $ac_func innocuous_$ac_func
41086
a848cd7e
SC
41087/* System header to define __stub macros and hopefully few prototypes,
41088 which can conflict with char $ac_func (); below.
41089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41090 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41091
a848cd7e
SC
41092#ifdef __STDC__
41093# include <limits.h>
41094#else
41095# include <assert.h>
41096#endif
ac1cb8d3
VS
41097
41098#undef $ac_func
41099
a848cd7e
SC
41100/* Override any gcc2 internal prototype to avoid an error. */
41101#ifdef __cplusplus
41102extern "C"
41103{
41104#endif
41105/* We use char because int might match the return type of a gcc2
41106 builtin and then its argument prototype would still apply. */
41107char $ac_func ();
41108/* The GNU C library defines this for functions which it implements
41109 to always fail with ENOSYS. Some functions are actually named
41110 something starting with __ and the normal name is an alias. */
41111#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41112choke me
41113#else
41114char (*f) () = $ac_func;
41115#endif
41116#ifdef __cplusplus
41117}
41118#endif
41119
41120int
41121main ()
41122{
41123return f != $ac_func;
41124 ;
41125 return 0;
41126}
41127_ACEOF
41128rm -f conftest.$ac_objext conftest$ac_exeext
41129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41130 (eval $ac_link) 2>conftest.er1
a848cd7e 41131 ac_status=$?
ac1cb8d3
VS
41132 grep -v '^ *+' conftest.er1 >conftest.err
41133 rm -f conftest.er1
41134 cat conftest.err >&5
a848cd7e
SC
41135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41136 (exit $ac_status); } &&
fb00f58d
JS
41137 { ac_try='test -z "$ac_c_werror_flag"
41138 || test ! -s conftest.err'
ac1cb8d3
VS
41139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41140 (eval $ac_try) 2>&5
41141 ac_status=$?
41142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41143 (exit $ac_status); }; } &&
41144 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41146 (eval $ac_try) 2>&5
41147 ac_status=$?
41148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41149 (exit $ac_status); }; }; then
41150 eval "$as_ac_var=yes"
41151else
41152 echo "$as_me: failed program was:" >&5
41153sed 's/^/| /' conftest.$ac_ext >&5
41154
41155eval "$as_ac_var=no"
41156fi
ac1cb8d3
VS
41157rm -f conftest.err conftest.$ac_objext \
41158 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41159fi
41160echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41161echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41162if test `eval echo '${'$as_ac_var'}'` = yes; then
41163 cat >>confdefs.h <<_ACEOF
41164#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41165_ACEOF
41166 have_floor=1
41167fi
41168done
41169
41170echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
41171echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
41172if test "$have_cos" = 1 -a "$have_floor" = 1; then
41173 echo "$as_me:$LINENO: result: yes" >&5
41174echo "${ECHO_T}yes" >&6
41175else
41176 echo "$as_me:$LINENO: result: no" >&5
41177echo "${ECHO_T}no" >&6
41178 LIBS="$LIBS -lm"
41179 # use different functions to avoid configure caching
41180 have_sin=0
41181 have_ceil=0
41182
41183for ac_func in sin
41184do
41185as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41186echo "$as_me:$LINENO: checking for $ac_func" >&5
41187echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41188if eval "test \"\${$as_ac_var+set}\" = set"; then
41189 echo $ECHO_N "(cached) $ECHO_C" >&6
41190else
41191 cat >conftest.$ac_ext <<_ACEOF
41192/* confdefs.h. */
41193_ACEOF
41194cat confdefs.h >>conftest.$ac_ext
41195cat >>conftest.$ac_ext <<_ACEOF
41196/* end confdefs.h. */
ac1cb8d3
VS
41197/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41199#define $ac_func innocuous_$ac_func
41200
a848cd7e
SC
41201/* System header to define __stub macros and hopefully few prototypes,
41202 which can conflict with char $ac_func (); below.
41203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41204 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41205
a848cd7e
SC
41206#ifdef __STDC__
41207# include <limits.h>
41208#else
41209# include <assert.h>
41210#endif
ac1cb8d3
VS
41211
41212#undef $ac_func
41213
a848cd7e
SC
41214/* Override any gcc2 internal prototype to avoid an error. */
41215#ifdef __cplusplus
41216extern "C"
41217{
41218#endif
41219/* We use char because int might match the return type of a gcc2
41220 builtin and then its argument prototype would still apply. */
41221char $ac_func ();
41222/* The GNU C library defines this for functions which it implements
41223 to always fail with ENOSYS. Some functions are actually named
41224 something starting with __ and the normal name is an alias. */
41225#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41226choke me
41227#else
41228char (*f) () = $ac_func;
41229#endif
41230#ifdef __cplusplus
41231}
41232#endif
41233
41234int
41235main ()
41236{
41237return f != $ac_func;
41238 ;
41239 return 0;
41240}
41241_ACEOF
41242rm -f conftest.$ac_objext conftest$ac_exeext
41243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41244 (eval $ac_link) 2>conftest.er1
a848cd7e 41245 ac_status=$?
ac1cb8d3
VS
41246 grep -v '^ *+' conftest.er1 >conftest.err
41247 rm -f conftest.er1
41248 cat conftest.err >&5
a848cd7e
SC
41249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41250 (exit $ac_status); } &&
fb00f58d
JS
41251 { ac_try='test -z "$ac_c_werror_flag"
41252 || test ! -s conftest.err'
ac1cb8d3
VS
41253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41254 (eval $ac_try) 2>&5
41255 ac_status=$?
41256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41257 (exit $ac_status); }; } &&
41258 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41260 (eval $ac_try) 2>&5
41261 ac_status=$?
41262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41263 (exit $ac_status); }; }; then
41264 eval "$as_ac_var=yes"
41265else
41266 echo "$as_me: failed program was:" >&5
41267sed 's/^/| /' conftest.$ac_ext >&5
41268
41269eval "$as_ac_var=no"
41270fi
ac1cb8d3
VS
41271rm -f conftest.err conftest.$ac_objext \
41272 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41273fi
41274echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41275echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41276if test `eval echo '${'$as_ac_var'}'` = yes; then
41277 cat >>confdefs.h <<_ACEOF
41278#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41279_ACEOF
41280 have_sin=1
41281fi
41282done
41283
41284
41285for ac_func in ceil
41286do
41287as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41288echo "$as_me:$LINENO: checking for $ac_func" >&5
41289echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41290if eval "test \"\${$as_ac_var+set}\" = set"; then
41291 echo $ECHO_N "(cached) $ECHO_C" >&6
41292else
41293 cat >conftest.$ac_ext <<_ACEOF
41294/* confdefs.h. */
41295_ACEOF
41296cat confdefs.h >>conftest.$ac_ext
41297cat >>conftest.$ac_ext <<_ACEOF
41298/* end confdefs.h. */
ac1cb8d3
VS
41299/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41301#define $ac_func innocuous_$ac_func
41302
a848cd7e
SC
41303/* System header to define __stub macros and hopefully few prototypes,
41304 which can conflict with char $ac_func (); below.
41305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41306 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41307
a848cd7e
SC
41308#ifdef __STDC__
41309# include <limits.h>
41310#else
41311# include <assert.h>
41312#endif
ac1cb8d3
VS
41313
41314#undef $ac_func
41315
a848cd7e
SC
41316/* Override any gcc2 internal prototype to avoid an error. */
41317#ifdef __cplusplus
41318extern "C"
41319{
41320#endif
41321/* We use char because int might match the return type of a gcc2
41322 builtin and then its argument prototype would still apply. */
41323char $ac_func ();
41324/* The GNU C library defines this for functions which it implements
41325 to always fail with ENOSYS. Some functions are actually named
41326 something starting with __ and the normal name is an alias. */
41327#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41328choke me
41329#else
41330char (*f) () = $ac_func;
41331#endif
41332#ifdef __cplusplus
41333}
41334#endif
41335
41336int
41337main ()
41338{
41339return f != $ac_func;
41340 ;
41341 return 0;
41342}
41343_ACEOF
41344rm -f conftest.$ac_objext conftest$ac_exeext
41345if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41346 (eval $ac_link) 2>conftest.er1
a848cd7e 41347 ac_status=$?
ac1cb8d3
VS
41348 grep -v '^ *+' conftest.er1 >conftest.err
41349 rm -f conftest.er1
41350 cat conftest.err >&5
a848cd7e
SC
41351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41352 (exit $ac_status); } &&
fb00f58d
JS
41353 { ac_try='test -z "$ac_c_werror_flag"
41354 || test ! -s conftest.err'
ac1cb8d3
VS
41355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41356 (eval $ac_try) 2>&5
41357 ac_status=$?
41358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41359 (exit $ac_status); }; } &&
41360 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41362 (eval $ac_try) 2>&5
41363 ac_status=$?
41364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41365 (exit $ac_status); }; }; then
41366 eval "$as_ac_var=yes"
41367else
41368 echo "$as_me: failed program was:" >&5
41369sed 's/^/| /' conftest.$ac_ext >&5
41370
41371eval "$as_ac_var=no"
41372fi
ac1cb8d3
VS
41373rm -f conftest.err conftest.$ac_objext \
41374 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41375fi
41376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41377echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41378if test `eval echo '${'$as_ac_var'}'` = yes; then
41379 cat >>confdefs.h <<_ACEOF
41380#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41381_ACEOF
41382 have_ceil=1
41383fi
41384done
41385
41386 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
41387echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
41388 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
41389 echo "$as_me:$LINENO: result: yes" >&5
41390echo "${ECHO_T}yes" >&6
41391 else
41392 echo "$as_me:$LINENO: result: no" >&5
41393echo "${ECHO_T}no" >&6
41394 # not sure we should warn the user, crash, etc.
41395 fi
41396fi
41397
41398if test "$wxUSE_GUI" = "yes"; then
41399
41400
8bce5cda
MW
41401 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
41402 dynamic erase event exec font image minimal mobile \
41403 mobile/wxedit mobile/styles propsize render \
41404 richedit rotate shaped vscroll widgets"
a848cd7e
SC
41405
41406 if test "$wxUSE_MONOLITHIC" != "yes"; then
41407 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
41408 fi
0b78747f 41409 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
41410 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
41411 if test "$wxUSE_UNIVERSAL" != "yes"; then
41412 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
41413 fi
41414 fi
41415 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
41416 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 41417 fi
a848cd7e
SC
41418else
41419 SAMPLES_SUBDIRS="console"
41420fi
41421
41422
ceec2216 41423INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
41424-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
41425
41426if test "$GXX" = yes ; then
5294a27e
VZ
41427 CWARNINGS="-Wall"
41428 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
a848cd7e
SC
41429 fi
41430
41431EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
41432
0c3c69fc 41433CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 41434CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 41435CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e 41436
95986553
DE
41437if test "x$MWCC" = "xyes"; then
41438
41439 CC="$CC -cwd source -I-"
41440 CXX="$CXX -cwd source -I-"
41441fi
41442
a848cd7e 41443
0c3c69fc 41444LIBS=`echo $LIBS`
a848cd7e
SC
41445EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
41446EXTRALIBS_XML="$EXPAT_LINK"
41447EXTRALIBS_HTML="$MSPACK_LINK"
41448EXTRALIBS_ODBC="$ODBC_LINK"
41449if test "$wxUSE_GUI" = "yes"; then
2e350179 41450 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
41451fi
41452if test "$wxUSE_OPENGL" = "yes"; then
41453 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
41454fi
41455
41456LDFLAGS="$LDFLAGS $PROFILE"
41457
41458if test "$wxUSE_GTK" = 1; then
41459 WXCONFIG_INCLUDE=
41460else
41461 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
41462fi
41463
41464WXCONFIG_EXTRALIBS="$LIBS"
41465
41466if test "$wxUSE_REGEX" = "builtin" ; then
74802184 41467 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
41468fi
41469if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 41470 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
41471fi
41472if test "$wxUSE_ODBC" = "builtin" ; then
74802184 41473 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
41474fi
41475if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 41476 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
41477fi
41478if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 41479 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
41480fi
41481if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 41482 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
41483fi
41484if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 41485 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
41486fi
41487
41488for i in $wxconfig_3rdparty ; do
74802184 41489 WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS"
a848cd7e
SC
41490done
41491
41492
41493if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
41494 WXUNIV=1
41495else
41496 WXUNIV=0
41497fi
41498
41499
41500
41501
41502
41503
41504
41505
41506
41507if test $wxUSE_MONOLITHIC = "yes" ; then
41508 MONOLITHIC=1
41509else
41510 MONOLITHIC=0
41511fi
41512
41513if test $wxUSE_PLUGINS = "yes" ; then
41514 USE_PLUGINS=1
41515else
41516 USE_PLUGINS=0
41517fi
41518
41519if test $wxUSE_ODBC != "no" ; then
41520 USE_ODBC=1
41521else
41522 USE_ODBC=0
41523fi
41524
16358932
VZ
41525if test "$wxUSE_DEBUGREPORT" = "yes" ; then
41526 USE_QA=1
41527else
41528 USE_QA=0
41529fi
41530
a848cd7e
SC
41531if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
41532 OFFICIAL_BUILD=1
41533else
41534 OFFICIAL_BUILD=0
41535fi
41536
41537
41538
41539
41540
41541
41542
41543
41544
41545
41546
41547
41548
41549
41550
41551
41552
41553
41554
ceec2216 41555
d1c38808 41556
a848cd7e
SC
41557
41558
41559TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
41560
41561
41562
41563
41564
41565
41566
41567
4d4ff94c
VZ
41568case "$TOOLKIT" in
41569 GTK)
41570 TOOLKIT_USER="GTK+"
41571 if test "$WXGTK20" = 1; then
41572 TOOLKIT_USER="$TOOLKIT_USER 2"
41573 fi
9a8f0513 41574 ;;
4d4ff94c
VZ
41575
41576 *)
41577 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 41578 ;;
4d4ff94c 41579esac
a848cd7e 41580
fb00f58d
JS
41581if test "$wxUSE_WINE" = "yes"; then
41582 BAKEFILE_FORCE_PLATFORM=win32
41583fi
41584
9a8f0513 41585
1e9e8aba
DE
41586
41587
a848cd7e
SC
41588 if test "x$BAKEFILE_HOST" = "x"; then
41589 BAKEFILE_HOST="${host}"
41590 fi
41591
41592 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
41593
41594 if test -n "$ac_tool_prefix"; then
41595 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
41596set dummy ${ac_tool_prefix}ranlib; ac_word=$2
41597echo "$as_me:$LINENO: checking for $ac_word" >&5
41598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41599if test "${ac_cv_prog_RANLIB+set}" = set; then
41600 echo $ECHO_N "(cached) $ECHO_C" >&6
41601else
41602 if test -n "$RANLIB"; then
41603 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
41604else
41605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41606for as_dir in $PATH
41607do
41608 IFS=$as_save_IFS
41609 test -z "$as_dir" && as_dir=.
41610 for ac_exec_ext in '' $ac_executable_extensions; do
41611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41612 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
41613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41614 break 2
41615 fi
41616done
41617done
41618
41619fi
41620fi
41621RANLIB=$ac_cv_prog_RANLIB
41622if test -n "$RANLIB"; then
41623 echo "$as_me:$LINENO: result: $RANLIB" >&5
41624echo "${ECHO_T}$RANLIB" >&6
41625else
41626 echo "$as_me:$LINENO: result: no" >&5
41627echo "${ECHO_T}no" >&6
41628fi
41629
41630fi
41631if test -z "$ac_cv_prog_RANLIB"; then
41632 ac_ct_RANLIB=$RANLIB
41633 # Extract the first word of "ranlib", so it can be a program name with args.
41634set dummy ranlib; ac_word=$2
41635echo "$as_me:$LINENO: checking for $ac_word" >&5
41636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41637if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
41638 echo $ECHO_N "(cached) $ECHO_C" >&6
41639else
41640 if test -n "$ac_ct_RANLIB"; then
41641 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
41642else
41643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41644for as_dir in $PATH
41645do
41646 IFS=$as_save_IFS
41647 test -z "$as_dir" && as_dir=.
41648 for ac_exec_ext in '' $ac_executable_extensions; do
41649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41650 ac_cv_prog_ac_ct_RANLIB="ranlib"
41651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41652 break 2
41653 fi
41654done
41655done
41656
41657 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
41658fi
41659fi
41660ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
41661if test -n "$ac_ct_RANLIB"; then
41662 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
41663echo "${ECHO_T}$ac_ct_RANLIB" >&6
41664else
41665 echo "$as_me:$LINENO: result: no" >&5
41666echo "${ECHO_T}no" >&6
41667fi
41668
41669 RANLIB=$ac_ct_RANLIB
41670else
41671 RANLIB="$ac_cv_prog_RANLIB"
41672fi
41673
41674 # Find a good install program. We prefer a C program (faster),
41675# so one script is as good as another. But avoid the broken or
41676# incompatible versions:
41677# SysV /etc/install, /usr/sbin/install
41678# SunOS /usr/etc/install
41679# IRIX /sbin/install
41680# AIX /bin/install
41681# AmigaOS /C/install, which installs bootblocks on floppy discs
41682# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
41683# AFS /usr/afsws/bin/install, which mishandles nonexistent args
41684# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 41685# OS/2's system install, which has a completely different semantic
a848cd7e
SC
41686# ./install, which can be erroneously created by make from ./install.sh.
41687echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
41688echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
41689if test -z "$INSTALL"; then
41690if test "${ac_cv_path_install+set}" = set; then
41691 echo $ECHO_N "(cached) $ECHO_C" >&6
41692else
41693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41694for as_dir in $PATH
41695do
41696 IFS=$as_save_IFS
41697 test -z "$as_dir" && as_dir=.
41698 # Account for people who put trailing slashes in PATH elements.
41699case $as_dir/ in
41700 ./ | .// | /cC/* | \
41701 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 41702 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
41703 /usr/ucb/* ) ;;
41704 *)
41705 # OSF1 and SCO ODT 3.0 have their own names for install.
41706 # Don't use installbsd from OSF since it installs stuff as root
41707 # by default.
41708 for ac_prog in ginstall scoinst install; do
41709 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
41710 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
41711 if test $ac_prog = install &&
41712 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
41713 # AIX install. It has an incompatible calling convention.
41714 :
41715 elif test $ac_prog = install &&
41716 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
41717 # program-specific install script used by HP pwplus--don't use.
41718 :
41719 else
41720 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
41721 break 3
41722 fi
41723 fi
a848cd7e
SC
41724 done
41725 done
41726 ;;
41727esac
41728done
41729
41730
41731fi
41732 if test "${ac_cv_path_install+set}" = set; then
41733 INSTALL=$ac_cv_path_install
41734 else
41735 # As a last resort, use the slow shell script. We don't cache a
41736 # path for INSTALL within a source directory, because that will
41737 # break other packages using the cache if that directory is
41738 # removed, or if the path is relative.
41739 INSTALL=$ac_install_sh
41740 fi
41741fi
41742echo "$as_me:$LINENO: result: $INSTALL" >&5
41743echo "${ECHO_T}$INSTALL" >&6
41744
41745# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
41746# It thinks the first close brace ends the variable substitution.
41747test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
41748
41749test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
41750
41751test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
41752
41753 echo "$as_me:$LINENO: checking whether ln -s works" >&5
41754echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
41755LN_S=$as_ln_s
41756if test "$LN_S" = "ln -s"; then
41757 echo "$as_me:$LINENO: result: yes" >&5
41758echo "${ECHO_T}yes" >&6
41759else
41760 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
41761echo "${ECHO_T}no, using $LN_S" >&6
41762fi
41763
41764
41765 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41766echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 41767set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
41768if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41769 echo $ECHO_N "(cached) $ECHO_C" >&6
41770else
41771 cat >conftest.make <<\_ACEOF
41772all:
41773 @echo 'ac_maketemp="$(MAKE)"'
41774_ACEOF
41775# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41776eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41777if test -n "$ac_maketemp"; then
41778 eval ac_cv_prog_make_${ac_make}_set=yes
41779else
41780 eval ac_cv_prog_make_${ac_make}_set=no
41781fi
41782rm -f conftest.make
41783fi
41784if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41785 echo "$as_me:$LINENO: result: yes" >&5
41786echo "${ECHO_T}yes" >&6
41787 SET_MAKE=
41788else
41789 echo "$as_me:$LINENO: result: no" >&5
41790echo "${ECHO_T}no" >&6
41791 SET_MAKE="MAKE=${MAKE-make}"
41792fi
41793
41794
41795
41796 if test -n "$ac_tool_prefix"; then
41797 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
41798set dummy ${ac_tool_prefix}ar; ac_word=$2
41799echo "$as_me:$LINENO: checking for $ac_word" >&5
41800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41801if test "${ac_cv_prog_AR+set}" = set; then
41802 echo $ECHO_N "(cached) $ECHO_C" >&6
41803else
41804 if test -n "$AR"; then
41805 ac_cv_prog_AR="$AR" # Let the user override the test.
41806else
41807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41808for as_dir in $PATH
41809do
41810 IFS=$as_save_IFS
41811 test -z "$as_dir" && as_dir=.
41812 for ac_exec_ext in '' $ac_executable_extensions; do
41813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41814 ac_cv_prog_AR="${ac_tool_prefix}ar"
41815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41816 break 2
41817 fi
41818done
41819done
41820
41821fi
41822fi
41823AR=$ac_cv_prog_AR
41824if test -n "$AR"; then
41825 echo "$as_me:$LINENO: result: $AR" >&5
41826echo "${ECHO_T}$AR" >&6
41827else
41828 echo "$as_me:$LINENO: result: no" >&5
41829echo "${ECHO_T}no" >&6
41830fi
41831
41832fi
41833if test -z "$ac_cv_prog_AR"; then
41834 ac_ct_AR=$AR
41835 # Extract the first word of "ar", so it can be a program name with args.
41836set dummy ar; ac_word=$2
41837echo "$as_me:$LINENO: checking for $ac_word" >&5
41838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41839if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
41840 echo $ECHO_N "(cached) $ECHO_C" >&6
41841else
41842 if test -n "$ac_ct_AR"; then
41843 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
41844else
41845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41846for as_dir in $PATH
41847do
41848 IFS=$as_save_IFS
41849 test -z "$as_dir" && as_dir=.
41850 for ac_exec_ext in '' $ac_executable_extensions; do
41851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41852 ac_cv_prog_ac_ct_AR="ar"
41853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41854 break 2
41855 fi
41856done
41857done
41858
41859 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
41860fi
41861fi
41862ac_ct_AR=$ac_cv_prog_ac_ct_AR
41863if test -n "$ac_ct_AR"; then
41864 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
41865echo "${ECHO_T}$ac_ct_AR" >&6
41866else
41867 echo "$as_me:$LINENO: result: no" >&5
41868echo "${ECHO_T}no" >&6
41869fi
41870
41871 AR=$ac_ct_AR
41872else
41873 AR="$ac_cv_prog_AR"
41874fi
41875
41876 if test -n "$ac_tool_prefix"; then
41877 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
41878set dummy ${ac_tool_prefix}strip; ac_word=$2
41879echo "$as_me:$LINENO: checking for $ac_word" >&5
41880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41881if test "${ac_cv_prog_STRIP+set}" = set; then
41882 echo $ECHO_N "(cached) $ECHO_C" >&6
41883else
41884 if test -n "$STRIP"; then
41885 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
41886else
41887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41888for as_dir in $PATH
41889do
41890 IFS=$as_save_IFS
41891 test -z "$as_dir" && as_dir=.
41892 for ac_exec_ext in '' $ac_executable_extensions; do
41893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41894 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
41895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41896 break 2
41897 fi
41898done
41899done
41900
41901fi
41902fi
41903STRIP=$ac_cv_prog_STRIP
41904if test -n "$STRIP"; then
41905 echo "$as_me:$LINENO: result: $STRIP" >&5
41906echo "${ECHO_T}$STRIP" >&6
41907else
41908 echo "$as_me:$LINENO: result: no" >&5
41909echo "${ECHO_T}no" >&6
41910fi
41911
41912fi
41913if test -z "$ac_cv_prog_STRIP"; then
41914 ac_ct_STRIP=$STRIP
41915 # Extract the first word of "strip", so it can be a program name with args.
41916set dummy strip; ac_word=$2
41917echo "$as_me:$LINENO: checking for $ac_word" >&5
41918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41919if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
41920 echo $ECHO_N "(cached) $ECHO_C" >&6
41921else
41922 if test -n "$ac_ct_STRIP"; then
41923 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
41924else
41925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41926for as_dir in $PATH
41927do
41928 IFS=$as_save_IFS
41929 test -z "$as_dir" && as_dir=.
41930 for ac_exec_ext in '' $ac_executable_extensions; do
41931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41932 ac_cv_prog_ac_ct_STRIP="strip"
41933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41934 break 2
41935 fi
41936done
41937done
41938
41939 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
41940fi
41941fi
41942ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
41943if test -n "$ac_ct_STRIP"; then
41944 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
41945echo "${ECHO_T}$ac_ct_STRIP" >&6
41946else
41947 echo "$as_me:$LINENO: result: no" >&5
41948echo "${ECHO_T}no" >&6
41949fi
41950
41951 STRIP=$ac_ct_STRIP
41952else
41953 STRIP="$ac_cv_prog_STRIP"
41954fi
41955
41956 if test -n "$ac_tool_prefix"; then
41957 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
41958set dummy ${ac_tool_prefix}nm; ac_word=$2
41959echo "$as_me:$LINENO: checking for $ac_word" >&5
41960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41961if test "${ac_cv_prog_NM+set}" = set; then
41962 echo $ECHO_N "(cached) $ECHO_C" >&6
41963else
41964 if test -n "$NM"; then
41965 ac_cv_prog_NM="$NM" # Let the user override the test.
41966else
41967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41968for as_dir in $PATH
41969do
41970 IFS=$as_save_IFS
41971 test -z "$as_dir" && as_dir=.
41972 for ac_exec_ext in '' $ac_executable_extensions; do
41973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41974 ac_cv_prog_NM="${ac_tool_prefix}nm"
41975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41976 break 2
41977 fi
41978done
41979done
41980
41981fi
41982fi
41983NM=$ac_cv_prog_NM
41984if test -n "$NM"; then
41985 echo "$as_me:$LINENO: result: $NM" >&5
41986echo "${ECHO_T}$NM" >&6
41987else
41988 echo "$as_me:$LINENO: result: no" >&5
41989echo "${ECHO_T}no" >&6
41990fi
41991
41992fi
41993if test -z "$ac_cv_prog_NM"; then
41994 ac_ct_NM=$NM
41995 # Extract the first word of "nm", so it can be a program name with args.
41996set dummy nm; ac_word=$2
41997echo "$as_me:$LINENO: checking for $ac_word" >&5
41998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41999if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
42000 echo $ECHO_N "(cached) $ECHO_C" >&6
42001else
42002 if test -n "$ac_ct_NM"; then
42003 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
42004else
42005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42006for as_dir in $PATH
42007do
42008 IFS=$as_save_IFS
42009 test -z "$as_dir" && as_dir=.
42010 for ac_exec_ext in '' $ac_executable_extensions; do
42011 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42012 ac_cv_prog_ac_ct_NM="nm"
42013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42014 break 2
42015 fi
42016done
42017done
42018
42019 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
42020fi
42021fi
42022ac_ct_NM=$ac_cv_prog_ac_ct_NM
42023if test -n "$ac_ct_NM"; then
42024 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
42025echo "${ECHO_T}$ac_ct_NM" >&6
42026else
42027 echo "$as_me:$LINENO: result: no" >&5
42028echo "${ECHO_T}no" >&6
42029fi
42030
42031 NM=$ac_ct_NM
42032else
42033 NM="$ac_cv_prog_NM"
42034fi
42035
42036
42037 case ${BAKEFILE_HOST} in
42038 *-hp-hpux* )
1e9e8aba 42039 INSTALL_DIR="mkdir -p"
a848cd7e
SC
42040 ;;
42041 *) INSTALL_DIR="$INSTALL -d"
42042 ;;
42043 esac
42044
42045
42046 LDFLAGS_GUI=
42047 case ${BAKEFILE_HOST} in
42048 *-*-cygwin* | *-*-mingw32* )
42049 LDFLAGS_GUI="-mwindows"
42050 esac
42051
42052
42053 fi
42054
42055 echo "$as_me:$LINENO: checking if make is GNU make" >&5
42056echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
42057if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
42058 echo $ECHO_N "(cached) $ECHO_C" >&6
42059else
42060
42061 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
42062 egrep -s GNU > /dev/null); then
42063 bakefile_cv_prog_makeisgnu="yes"
42064 else
42065 bakefile_cv_prog_makeisgnu="no"
42066 fi
42067
42068fi
42069echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
42070echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
42071
42072 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
42073 IF_GNU_MAKE=""
42074 else
42075 IF_GNU_MAKE="#"
42076 fi
42077
42078
42079
42080 PLATFORM_UNIX=0
42081 PLATFORM_WIN32=0
42082 PLATFORM_MSDOS=0
42083 PLATFORM_MAC=0
1e9e8aba 42084 PLATFORM_MACOS=0
a848cd7e
SC
42085 PLATFORM_MACOSX=0
42086 PLATFORM_OS2=0
1e9e8aba 42087 PLATFORM_BEOS=0
a848cd7e
SC
42088
42089 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
42090 case "${BAKEFILE_HOST}" in
42091 *-*-cygwin* | *-*-mingw32* )
42092 PLATFORM_WIN32=1
42093 ;;
42094 *-pc-msdosdjgpp )
42095 PLATFORM_MSDOS=1
42096 ;;
42097 *-pc-os2_emx | *-pc-os2-emx )
42098 PLATFORM_OS2=1
42099 ;;
42100 powerpc-*-darwin* )
42101 PLATFORM_MAC=1
42102 PLATFORM_MACOSX=1
42103 ;;
1e9e8aba
DE
42104 *-*-beos* )
42105 PLATFORM_BEOS=1
42106 ;;
42107 powerpc-apple-macos* )
42108 PLATFORM_MAC=1
42109 PLATFORM_MACOS=1
42110 ;;
a848cd7e
SC
42111 * )
42112 PLATFORM_UNIX=1
42113 ;;
42114 esac
42115 else
42116 case "$BAKEFILE_FORCE_PLATFORM" in
42117 win32 )
42118 PLATFORM_WIN32=1
42119 ;;
42120 msdos )
42121 PLATFORM_MSDOS=1
42122 ;;
42123 os2 )
42124 PLATFORM_OS2=1
42125 ;;
42126 darwin )
42127 PLATFORM_MAC=1
42128 PLATFORM_MACOSX=1
42129 ;;
42130 unix )
42131 PLATFORM_UNIX=1
42132 ;;
1e9e8aba
DE
42133 beos )
42134 PLATFORM_BEOS=1
42135 ;;
a848cd7e
SC
42136 * )
42137 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
42138echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
42139 { (exit 1); exit 1; }; }
42140 ;;
42141 esac
42142 fi
42143
42144
42145
42146
42147
42148
42149
42150
42151
1e9e8aba
DE
42152
42153
a848cd7e
SC
42154 # Check whether --enable-omf or --disable-omf was given.
42155if test "${enable_omf+set}" = set; then
42156 enableval="$enable_omf"
42157 bk_os2_use_omf="$enableval"
42158fi;
42159
42160 case "${BAKEFILE_HOST}" in
42161 *-*-darwin* )
42162 CFLAGS="$CFLAGS -fno-common"
42163 CXXFLAGS="$CXXFLAGS -fno-common"
42164 ;;
42165
42166 *-pc-os2_emx | *-pc-os2-emx )
42167 if test "x$bk_os2_use_omf" = "xyes" ; then
42168 AR=emxomfar
42169 RANLIB=:
42170 LDFLAGS="-Zomf $LDFLAGS"
42171 CFLAGS="-Zomf $CFLAGS"
42172 CXXFLAGS="-Zomf $CXXFLAGS"
42173 OS2_LIBEXT="lib"
42174 else
42175 OS2_LIBEXT="a"
42176 fi
42177 ;;
1e9e8aba
DE
42178
42179 i*86-*-beos* )
42180 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
42181 ;;
a848cd7e
SC
42182 esac
42183
42184
42185 SO_SUFFIX="so"
42186 SO_SUFFIX_MODULE="so"
42187 EXEEXT=""
42188 LIBPREFIX="lib"
42189 LIBEXT=".a"
42190 DLLPREFIX="lib"
42191 DLLPREFIX_MODULE=""
42192 DLLIMP_SUFFIX=""
42193
42194 case "${BAKEFILE_HOST}" in
42195 *-hp-hpux* )
42196 SO_SUFFIX="sl"
42197 SO_SUFFIX_MODULE="sl"
42198 ;;
42199 *-*-aix* )
42200 SO_SUFFIX="a"
42201 SO_SUFFIX_MODULE="a"
42202 ;;
42203 *-*-cygwin* | *-*-mingw32* )
42204 SO_SUFFIX="dll"
42205 SO_SUFFIX_MODULE="dll"
42206 DLLIMP_SUFFIX="dll.a"
42207 EXEEXT=".exe"
42208 DLLPREFIX=""
42209 ;;
42210 *-pc-msdosdjgpp )
42211 EXEEXT=".exe"
42212 DLLPREFIX=""
42213 ;;
42214 *-pc-os2_emx | *-pc-os2-emx )
42215 SO_SUFFIX="dll"
42216 SO_SUFFIX_MODULE="dll"
42217 DLLIMP_SUFFIX=$OS2_LIBEXT
42218 EXEEXT=".exe"
42219 DLLPREFIX=""
42220 LIBPREFIX=""
42221 LIBEXT=".$OS2_LIBEXT"
42222 ;;
42223 powerpc-*-darwin* )
42224 SO_SUFFIX="dylib"
42225 SO_SUFFIX_MODULE="bundle"
42226 ;;
42227 esac
42228
42229 if test "x$DLLIMP_SUFFIX" = "x" ; then
42230 DLLIMP_SUFFIX="$SO_SUFFIX"
42231 fi
42232
42233
42234
42235
42236
42237
42238
42239
42240
42241
42242
1e9e8aba
DE
42243 PIC_FLAG=""
42244 if test "x$GCC" = "xyes"; then
a848cd7e
SC
42245 PIC_FLAG="-fPIC"
42246 fi
42247
1e9e8aba
DE
42248 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
42249 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
42250
a848cd7e
SC
42251 case "${BAKEFILE_HOST}" in
42252 *-hp-hpux* )
1e9e8aba 42253 if test "x$GCC" != "xyes"; then
a848cd7e
SC
42254 LDFLAGS="$LDFLAGS -L/usr/lib"
42255
42256 SHARED_LD_CC="${CC} -b -o"
42257 SHARED_LD_CXX="${CXX} -b -o"
42258 PIC_FLAG="+Z"
42259 fi
42260 ;;
42261
42262 *-*-linux* )
42263 if test "x$GCC" != "xyes"; then
42264 echo "$as_me:$LINENO: checking for Intel compiler" >&5
42265echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
42266if test "${bakefile_cv_prog_icc+set}" = set; then
42267 echo $ECHO_N "(cached) $ECHO_C" >&6
42268else
42269
42270 cat >conftest.$ac_ext <<_ACEOF
42271/* confdefs.h. */
42272_ACEOF
42273cat confdefs.h >>conftest.$ac_ext
42274cat >>conftest.$ac_ext <<_ACEOF
42275/* end confdefs.h. */
42276
42277int
42278main ()
42279{
42280
42281 #ifndef __INTEL_COMPILER
42282 #error Not icc
42283 #endif
42284
42285 ;
42286 return 0;
42287}
42288_ACEOF
42289rm -f conftest.$ac_objext
42290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42291 (eval $ac_compile) 2>conftest.er1
a848cd7e 42292 ac_status=$?
ac1cb8d3
VS
42293 grep -v '^ *+' conftest.er1 >conftest.err
42294 rm -f conftest.er1
42295 cat conftest.err >&5
a848cd7e
SC
42296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42297 (exit $ac_status); } &&
fb00f58d
JS
42298 { ac_try='test -z "$ac_c_werror_flag"
42299 || test ! -s conftest.err'
ac1cb8d3
VS
42300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42301 (eval $ac_try) 2>&5
42302 ac_status=$?
42303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42304 (exit $ac_status); }; } &&
42305 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42307 (eval $ac_try) 2>&5
42308 ac_status=$?
42309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42310 (exit $ac_status); }; }; then
42311 bakefile_cv_prog_icc=yes
42312else
42313 echo "$as_me: failed program was:" >&5
42314sed 's/^/| /' conftest.$ac_ext >&5
42315
42316bakefile_cv_prog_icc=no
42317
42318fi
ac1cb8d3 42319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42320
42321fi
42322echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
42323echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
42324 if test "$bakefile_cv_prog_icc" = "yes"; then
42325 PIC_FLAG="-KPIC"
42326 fi
42327 fi
42328 ;;
42329
42330 *-*-solaris2* )
42331 if test "x$GCC" != xyes ; then
42332 SHARED_LD_CC="${CC} -G -o"
42333 SHARED_LD_CXX="${CXX} -G -o"
42334 PIC_FLAG="-KPIC"
42335 fi
42336 ;;
42337
42338 *-*-darwin* )
42339
42340 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
42341echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
42342if test "${wx_cv_gcc31+set}" = set; then
42343 echo $ECHO_N "(cached) $ECHO_C" >&6
42344else
42345
42346 cat >conftest.$ac_ext <<_ACEOF
42347/* confdefs.h. */
42348_ACEOF
42349cat confdefs.h >>conftest.$ac_ext
42350cat >>conftest.$ac_ext <<_ACEOF
42351/* end confdefs.h. */
42352
42353int
42354main ()
42355{
42356
42357 #if (__GNUC__ < 3) || \
42358 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
42359 #error old gcc
42360 #endif
42361
42362 ;
42363 return 0;
42364}
42365_ACEOF
42366rm -f conftest.$ac_objext
42367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42368 (eval $ac_compile) 2>conftest.er1
a848cd7e 42369 ac_status=$?
ac1cb8d3
VS
42370 grep -v '^ *+' conftest.er1 >conftest.err
42371 rm -f conftest.er1
42372 cat conftest.err >&5
a848cd7e
SC
42373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42374 (exit $ac_status); } &&
fb00f58d
JS
42375 { ac_try='test -z "$ac_c_werror_flag"
42376 || test ! -s conftest.err'
ac1cb8d3
VS
42377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42378 (eval $ac_try) 2>&5
42379 ac_status=$?
42380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42381 (exit $ac_status); }; } &&
42382 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42384 (eval $ac_try) 2>&5
42385 ac_status=$?
42386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42387 (exit $ac_status); }; }; then
42388
42389 wx_cv_gcc31=yes
42390
42391else
42392 echo "$as_me: failed program was:" >&5
42393sed 's/^/| /' conftest.$ac_ext >&5
42394
42395
42396 wx_cv_gcc31=no
42397
42398
42399fi
ac1cb8d3 42400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42401
42402fi
42403echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
42404echo "${ECHO_T}$wx_cv_gcc31" >&6
42405 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
42406
42407D='$'
42408cat <<EOF >shared-ld-sh
a848cd7e
SC
42409#!/bin/sh
42410#-----------------------------------------------------------------------------
42411#-- Name: distrib/mac/shared-ld-sh
42412#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
42413#-- Author: Gilles Depeyrot
42414#-- Copyright: (c) 2002 Gilles Depeyrot
42415#-- Licence: any use permitted
42416#-----------------------------------------------------------------------------
42417
42418verbose=0
42419args=""
42420objects=""
42421linking_flag="-dynamiclib"
42422
473276a9
VS
42423while test ${D}# -gt 0; do
42424 case ${D}1 in
a848cd7e
SC
42425
42426 -v)
42427 verbose=1
42428 ;;
42429
42430 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
42431 # collect these options and values
473276a9 42432 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
42433 shift
42434 ;;
42435
df1b269d 42436 -l*|-L*|-Wl,*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 42437 # collect these options
473276a9 42438 args="${D}{args} ${D}1"
a848cd7e
SC
42439 ;;
42440
42441 -dynamiclib|-bundle)
473276a9 42442 linking_flag="${D}1"
a848cd7e
SC
42443 ;;
42444
42445 -*)
473276a9 42446 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
42447 exit 1
42448 ;;
42449
42450 *.o | *.a | *.dylib)
42451 # collect object files
473276a9 42452 objects="${D}{objects} ${D}1"
a848cd7e
SC
42453 ;;
42454
42455 *)
473276a9 42456 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
42457 exit 1
42458 ;;
42459
42460 esac
42461 shift
42462done
42463
42464#
42465# Link one module containing all the others
42466#
473276a9
VS
42467if test ${D}{verbose} = 1; then
42468 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 42469fi
473276a9
VS
42470c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
42471status=${D}?
42472if test ${D}{status} != 0; then
42473 exit ${D}{status}
a848cd7e
SC
42474fi
42475
42476#
42477# Link the shared library from the single module created
42478#
473276a9
VS
42479if test ${D}{verbose} = 1; then
42480 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 42481fi
473276a9
VS
42482c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
42483status=${D}?
42484if test ${D}{status} != 0; then
42485 exit ${D}{status}
a848cd7e
SC
42486fi
42487
42488#
42489# Remove intermediate module
42490#
473276a9 42491rm -f master.${D}${D}.o
a848cd7e
SC
42492
42493exit 0
42494EOF
473276a9 42495
a848cd7e
SC
42496 chmod +x shared-ld-sh
42497
42498 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
42499 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
42500 SHARED_LD_CXX="$SHARED_LD_CC"
42501 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
42502 else
42503 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
42504 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
42505 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
42506 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
42507 fi
42508
42509 PIC_FLAG="-dynamic -fPIC"
42510 ;;
42511
42512 *-*-aix* )
42513 if test "x$GCC" != "xyes"; then
42514 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
42515set dummy makeC++SharedLib; ac_word=$2
42516echo "$as_me:$LINENO: checking for $ac_word" >&5
42517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42518if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
42519 echo $ECHO_N "(cached) $ECHO_C" >&6
42520else
42521 if test -n "$AIX_CXX_LD"; then
42522 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
42523else
42524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42525for as_dir in $PATH
42526do
42527 IFS=$as_save_IFS
42528 test -z "$as_dir" && as_dir=.
42529 for ac_exec_ext in '' $ac_executable_extensions; do
42530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42531 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
42532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42533 break 2
42534 fi
42535done
42536done
42537
42538 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
42539fi
42540fi
42541AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
42542if test -n "$AIX_CXX_LD"; then
42543 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
42544echo "${ECHO_T}$AIX_CXX_LD" >&6
42545else
42546 echo "$as_me:$LINENO: result: no" >&5
42547echo "${ECHO_T}no" >&6
42548fi
42549
42550 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
42551 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
42552 fi
42553 ;;
42554
42555 *-*-beos* )
1e9e8aba
DE
42556 SHARED_LD_CC="${LD} -nostart -o"
42557 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
42558 ;;
42559
42560 *-*-irix* )
42561 if test "x$GCC" != "xyes"; then
42562 PIC_FLAG="-KPIC"
42563 fi
42564 ;;
42565
42566 *-*-cygwin* | *-*-mingw32* )
42567 PIC_FLAG=""
1e9e8aba
DE
42568 SHARED_LD_CC="\$(CC) -shared -o"
42569 SHARED_LD_CXX="\$(CXX) -shared -o"
a848cd7e
SC
42570 ;;
42571
42572 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
42573 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
42574 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 42575 PIC_FLAG=""
473276a9
VS
42576
42577D='$'
42578cat <<EOF >dllar.sh
42579#!/bin/sh
42580#
42581# dllar - a tool to build both a .dll and an .a file
42582# from a set of object (.o) files for EMX/OS2.
42583#
42584# Written by Andrew Zabolotny, bit@freya.etu.ru
42585# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
42586#
42587# This script will accept a set of files on the command line.
42588# All the public symbols from the .o files will be exported into
42589# a .DEF file, then linker will be run (through gcc) against them to
42590# build a shared library consisting of all given .o files. All libraries
42591# (.a) will be first decompressed into component .o files then act as
42592# described above. You can optionally give a description (-d "description")
42593# which will be put into .DLL. To see the list of accepted options (as well
42594# as command-line format) simply run this program without options. The .DLL
42595# is built to be imported by name (there is no guarantee that new versions
42596# of the library you build will have same ordinals for same symbols).
42597#
42598# dllar is free software; you can redistribute it and/or modify
42599# it under the terms of the GNU General Public License as published by
42600# the Free Software Foundation; either version 2, or (at your option)
42601# any later version.
42602#
42603# dllar is distributed in the hope that it will be useful,
42604# but WITHOUT ANY WARRANTY; without even the implied warranty of
42605# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
42606# GNU General Public License for more details.
42607#
42608# You should have received a copy of the GNU General Public License
42609# along with dllar; see the file COPYING. If not, write to the Free
42610# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
42611# 02111-1307, USA.
42612
42613# To successfuly run this program you will need:
42614# - Current drive should have LFN support (HPFS, ext2, network, etc)
42615# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
42616# - gcc
42617# (used to build the .dll)
42618# - emxexp
42619# (used to create .def file from .o files)
42620# - emximp
42621# (used to create .a file from .def file)
42622# - GNU text utilites (cat, sort, uniq)
42623# used to process emxexp output
42624# - GNU file utilities (mv, rm)
42625# - GNU sed
42626# - lxlite (optional, see flag below)
42627# (used for general .dll cleanup)
42628#
42629
42630flag_USE_LXLITE=1;
42631
42632#
42633# helper functions
42634# basnam, variant of basename, which does _not_ remove the path, _iff_
42635# second argument (suffix to remove) is given
42636basnam(){
42637 case ${D}# in
42638 1)
1e9e8aba 42639 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
42640 ;;
42641 2)
42642 echo ${D}1 | sed 's/'${D}2'${D}//'
42643 ;;
42644 *)
42645 echo "error in basnam ${D}*"
42646 exit 8
42647 ;;
42648 esac
42649}
42650
42651# Cleanup temporary files and output
42652CleanUp() {
42653 cd ${D}curDir
42654 for i in ${D}inputFiles ; do
42655 case ${D}i in
42656 *!)
42657 rm -rf \`basnam ${D}i !\`
42658 ;;
42659 *)
42660 ;;
42661 esac
42662 done
42663
42664 # Kill result in case of failure as there is just to many stupid make/nmake
42665 # things out there which doesn't do this.
1e9e8aba 42666 if [ ${D}# -eq 0 ]; then
473276a9
VS
42667 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
42668 fi
42669}
42670
42671# Print usage and exit script with rc=1.
42672PrintHelp() {
b1d22ded
DE
42673 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
42674 echo ' [-name-mangler-script script.sh]'
42675 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
42676 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
42677 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 42678 echo ' [*.o] [*.a]'
473276a9
VS
42679 echo '*> "output_file" should have no extension.'
42680 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
42681 echo ' The import library name is derived from this and is set to "name".a,'
42682 echo ' unless overridden by -import'
42683 echo '*> "importlib_name" should have no extension.'
42684 echo ' If it has the .o, or .a extension, it is automatically removed.'
42685 echo ' This name is used as the import library name and may be longer and'
42686 echo ' more descriptive than the DLL name which has to follow the old '
42687 echo ' 8.3 convention of FAT.'
b1d22ded
DE
42688 echo '*> "script.sh may be given to override the output_file name by a'
42689 echo ' different name. It is mainly useful if the regular make process'
42690 echo ' of some package does not take into account OS/2 restriction of'
42691 echo ' DLL name lengths. It takes the importlib name as input and is'
42692 echo ' supposed to procude a shorter name as output. The script should'
42693 echo ' expect to get importlib_name without extension and should produce'
42694 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
42695 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
42696 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
42697 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
42698 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
42699 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
42700 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
42701 echo ' If the last character of a symbol is "*", all symbols beginning'
42702 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 42703 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 42704 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 42705 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 42706 echo ' C runtime DLLs.'
b1d22ded 42707 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
42708 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
42709 echo ' unchanged to GCC at the end of command line.'
42710 echo '*> If you create a DLL from a library and you do not specify -o,'
42711 echo ' the basename for DLL and import library will be set to library name,'
42712 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
42713 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
42714 echo ' library will be renamed into gcc_s.a.'
42715 echo '--------'
42716 echo 'Example:'
42717 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
42718 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
42719 CleanUp
42720 exit 1
42721}
42722
42723# Execute a command.
42724# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
42725# @Uses Whatever CleanUp() uses.
42726doCommand() {
42727 echo "${D}*"
42728 eval ${D}*
42729 rcCmd=${D}?
42730
1e9e8aba 42731 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
42732 echo "command failed, exit code="${D}rcCmd
42733 CleanUp
42734 exit ${D}rcCmd
42735 fi
42736}
42737
42738# main routine
42739# setup globals
42740cmdLine=${D}*
42741outFile=""
42742outimpFile=""
42743inputFiles=""
b1d22ded 42744renameScript=""
473276a9
VS
42745description=""
42746CC=gcc.exe
42747CFLAGS="-s -Zcrtdll"
42748EXTRA_CFLAGS=""
42749EXPORT_BY_ORDINALS=0
42750exclude_symbols=""
42751library_flags=""
42752curDir=\`pwd\`
42753curDirS=curDir
42754case ${D}curDirS in
42755*/)
42756 ;;
42757*)
42758 curDirS=${D}{curDirS}"/"
42759 ;;
42760esac
42761# Parse commandline
42762libsToLink=0
b1d22ded 42763omfLinking=0
1e9e8aba 42764while [ ${D}1 ]; do
473276a9
VS
42765 case ${D}1 in
42766 -ord*)
42767 EXPORT_BY_ORDINALS=1;
42768 ;;
42769 -o*)
42770 shift
42771 outFile=${D}1
42772 ;;
42773 -i*)
42774 shift
42775 outimpFile=${D}1
42776 ;;
b1d22ded
DE
42777 -name-mangler-script)
42778 shift
42779 renameScript=${D}1
42780 ;;
473276a9
VS
42781 -d*)
42782 shift
42783 description=${D}1
42784 ;;
42785 -f*)
42786 shift
42787 CFLAGS=${D}1
42788 ;;
42789 -c*)
42790 shift
42791 CC=${D}1
42792 ;;
42793 -h*)
42794 PrintHelp
42795 ;;
42796 -ex*)
42797 shift
42798 exclude_symbols=${D}{exclude_symbols}${D}1" "
42799 ;;
42800 -libf*)
42801 shift
42802 library_flags=${D}{library_flags}${D}1" "
42803 ;;
42804 -nocrt*)
42805 CFLAGS="-s"
42806 ;;
42807 -nolxl*)
42808 flag_USE_LXLITE=0
42809 ;;
42810 -* | /*)
42811 case ${D}1 in
42812 -L* | -l*)
42813 libsToLink=1
42814 ;;
b1d22ded
DE
42815 -Zomf)
42816 omfLinking=1
42817 ;;
473276a9
VS
42818 *)
42819 ;;
42820 esac
42821 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
42822 ;;
b1d22ded
DE
42823 *.dll)
42824 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
42825 if [ ${D}omfLinking -eq 1 ]; then
42826 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
42827 else
42828 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
42829 fi
42830 ;;
473276a9
VS
42831 *)
42832 found=0;
1e9e8aba 42833 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
42834 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
42835 else
42836 for file in ${D}1 ; do
1e9e8aba 42837 if [ -f ${D}file ]; then
473276a9
VS
42838 inputFiles="${D}{inputFiles} ${D}file"
42839 found=1
42840 fi
42841 done
1e9e8aba 42842 if [ ${D}found -eq 0 ]; then
473276a9
VS
42843 echo "ERROR: No file(s) found: "${D}1
42844 exit 8
42845 fi
42846 fi
42847 ;;
42848 esac
42849 shift
42850done # iterate cmdline words
42851
42852#
1e9e8aba 42853if [ -z "${D}inputFiles" ]; then
473276a9
VS
42854 echo "dllar: no input files"
42855 PrintHelp
42856fi
42857
42858# Now extract all .o files from .a files
42859newInputFiles=""
42860for file in ${D}inputFiles ; do
42861 case ${D}file in
42862 *.a | *.lib)
42863 case ${D}file in
42864 *.a)
42865 suffix=".a"
42866 AR="ar"
42867 ;;
42868 *.lib)
42869 suffix=".lib"
42870 AR="emxomfar"
42871 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
42872 ;;
42873 *)
42874 ;;
42875 esac
42876 dirname=\`basnam ${D}file ${D}suffix\`"_%"
42877 mkdir ${D}dirname
1e9e8aba 42878 if [ ${D}? -ne 0 ]; then
473276a9
VS
42879 echo "Failed to create subdirectory ./${D}dirname"
42880 CleanUp
42881 exit 8;
42882 fi
42883 # Append '!' to indicate archive
42884 newInputFiles="${D}newInputFiles ${D}{dirname}!"
42885 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
42886 cd ${D}curDir
42887 found=0;
42888 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 42889 if [ -f ${D}subfile ]; then
473276a9 42890 found=1
1e9e8aba 42891 if [ -s ${D}subfile ]; then
473276a9
VS
42892 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
42893 newInputFiles="${D}newInputFiles ${D}subfile"
42894 fi
42895 fi
42896 done
1e9e8aba
DE
42897 if [ ${D}found -eq 0 ]; then
42898 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
42899 fi
42900 ;;
42901 *)
42902 newInputFiles="${D}{newInputFiles} ${D}file"
42903 ;;
42904 esac
42905done
42906inputFiles="${D}newInputFiles"
42907
42908# Output filename(s).
42909do_backup=0;
1e9e8aba 42910if [ -z ${D}outFile ]; then
473276a9
VS
42911 do_backup=1;
42912 set outFile ${D}inputFiles; outFile=${D}2
42913fi
42914
42915# If it is an archive, remove the '!' and the '_%' suffixes
42916case ${D}outFile in
42917*_%!)
42918 outFile=\`basnam ${D}outFile _%!\`
42919 ;;
42920*)
42921 ;;
42922esac
42923case ${D}outFile in
42924*.dll)
42925 outFile=\`basnam ${D}outFile .dll\`
42926 ;;
42927*.DLL)
42928 outFile=\`basnam ${D}outFile .DLL\`
42929 ;;
42930*.o)
42931 outFile=\`basnam ${D}outFile .o\`
42932 ;;
42933*.obj)
42934 outFile=\`basnam ${D}outFile .obj\`
42935 ;;
42936*.a)
42937 outFile=\`basnam ${D}outFile .a\`
42938 ;;
42939*.lib)
42940 outFile=\`basnam ${D}outFile .lib\`
42941 ;;
42942*)
42943 ;;
42944esac
42945case ${D}outimpFile in
42946*.a)
42947 outimpFile=\`basnam ${D}outimpFile .a\`
42948 ;;
42949*.lib)
42950 outimpFile=\`basnam ${D}outimpFile .lib\`
42951 ;;
42952*)
42953 ;;
42954esac
1e9e8aba 42955if [ -z ${D}outimpFile ]; then
473276a9
VS
42956 outimpFile=${D}outFile
42957fi
42958defFile="${D}{outFile}.def"
42959arcFile="${D}{outimpFile}.a"
42960arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
42961
42962#create ${D}dllFile as something matching 8.3 restrictions,
42963if [ -z ${D}renameScript ] ; then
42964 dllFile="${D}outFile"
42965else
42966 dllFile=\`${D}renameScript ${D}outimpFile\`
42967fi
473276a9 42968
1e9e8aba
DE
42969if [ ${D}do_backup -ne 0 ] ; then
42970 if [ -f ${D}arcFile ] ; then
473276a9
VS
42971 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
42972 fi
1e9e8aba 42973 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
42974 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
42975 fi
42976fi
42977
42978# Extract public symbols from all the object files.
42979tmpdefFile=${D}{defFile}_%
42980rm -f ${D}tmpdefFile
42981for file in ${D}inputFiles ; do
42982 case ${D}file in
42983 *!)
42984 ;;
42985 *)
42986 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
42987 ;;
42988 esac
42989done
42990
42991# Create the def file.
42992rm -f ${D}defFile
42993echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
42994dllFile="${D}{dllFile}.dll"
42995if [ ! -z ${D}description ]; then
1e9e8aba 42996 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
42997fi
42998echo "EXPORTS" >> ${D}defFile
42999
43000doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
43001grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
43002
43003# Checks if the export is ok or not.
43004for word in ${D}exclude_symbols; do
43005 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
43006 mv ${D}{tmpdefFile}% ${D}tmpdefFile
43007done
43008
43009
1e9e8aba
DE
43010if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
43011 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
43012 sed '
43013 N
43014 : loop
1e9e8aba 43015 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
43016 t loop
43017 ' > ${D}{tmpdefFile}%
43018 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
43019else
43020 rm -f ${D}{tmpdefFile}%
43021fi
43022cat ${D}tmpdefFile >> ${D}defFile
43023rm -f ${D}tmpdefFile
43024
43025# Do linking, create implib, and apply lxlite.
43026gccCmdl="";
43027for file in ${D}inputFiles ; do
43028 case ${D}file in
43029 *!)
43030 ;;
43031 *)
43032 gccCmdl="${D}gccCmdl ${D}file"
43033 ;;
43034 esac
43035done
43036doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
43037touch "${D}{outFile}.dll"
43038
43039doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 43040if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 43041 add_flags="";
1e9e8aba 43042 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
43043 add_flags="-ynd"
43044 fi
43045 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
43046fi
43047doCommand "emxomf -s -l ${D}arcFile"
43048
43049# Successful exit.
43050CleanUp 1
43051exit 0
43052EOF
43053
43054 chmod +x dllar.sh
a848cd7e
SC
43055 ;;
43056
1e9e8aba 43057 powerpc-apple-macos* | \
a848cd7e
SC
43058 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
43059 *-*-sunos4* | \
43060 *-*-osf* | \
43061 *-*-dgux5* | \
47a7e797
MW
43062 *-*-sysv5* | \
43063 *-pc-msdosdjgpp )
a848cd7e
SC
43064 ;;
43065
43066 *)
43067 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
43068echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
43069 { (exit 1); exit 1; }; }
43070 esac
43071
2057db16
VS
43072 if test "x$PIC_FLAG" != "x" ; then
43073 PIC_FLAG="$PIC_FLAG -DPIC"
43074 fi
43075
a848cd7e
SC
43076 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
43077 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
43078 fi
43079 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
43080 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
43081 fi
43082
43083
43084
43085
43086
43087
43088
43089
43090 USE_SOVERSION=0
43091 USE_SOVERLINUX=0
43092 USE_SOVERSOLARIS=0
43093 USE_SOSYMLINKS=0
43094 USE_MACVERSION=0
43095 SONAME_FLAG=
43096
43097 case "${BAKEFILE_HOST}" in
b1d22ded 43098 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
43099 SONAME_FLAG="-Wl,-soname,"
43100 USE_SOVERSION=1
43101 USE_SOVERLINUX=1
43102 USE_SOSYMLINKS=1
43103 ;;
43104
a848cd7e
SC
43105 *-*-solaris2* )
43106 SONAME_FLAG="-h "
43107 USE_SOVERSION=1
43108 USE_SOVERSOLARIS=1
43109 USE_SOSYMLINKS=1
43110 ;;
43111
43112 *-*-darwin* )
43113 USE_MACVERSION=1
43114 USE_SOVERSION=1
43115 USE_SOSYMLINKS=1
43116 ;;
43117 esac
43118
43119
43120
43121
43122
43123
43124
43125
43126
43127 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
43128echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
43129 DEPS_TRACKING=0
43130
43131 if test "x$GCC" = "xyes"; then
43132 DEPSMODE=gcc
43133 DEPS_TRACKING=1
43134 case "${BAKEFILE_HOST}" in
43135 powerpc-*-darwin* )
43136 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
43137 ;;
43138 * )
43139 DEPSFLAG_GCC="-MMD"
43140 ;;
43141 esac
43142 echo "$as_me:$LINENO: result: gcc" >&5
43143echo "${ECHO_T}gcc" >&6
b1d22ded 43144 elif test "x$MWCC" = "xyes"; then
81f90336 43145 DEPSMODE=mwcc
b1d22ded 43146 DEPS_TRACKING=1
81f90336 43147 DEPSFLAG_MWCC="-MM"
b1d22ded
DE
43148 echo "$as_me:$LINENO: result: mwcc" >&5
43149echo "${ECHO_T}mwcc" >&6
a9e5b1f0
MW
43150 elif test "x$SUNCC" = "xyes"; then
43151 DEPSMODE=suncc
43152 DEPS_TRACKING=1
43153 DEPSFLAG_SUNCC="-xM1"
43154 echo "$as_me:$LINENO: result: suncc" >&5
43155echo "${ECHO_T}suncc" >&6
a848cd7e
SC
43156 else
43157 echo "$as_me:$LINENO: result: none" >&5
43158echo "${ECHO_T}none" >&6
43159 fi
43160
43161 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
43162
43163D='$'
43164cat <<EOF >bk-deps
a848cd7e
SC
43165#!/bin/sh
43166
43167# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
43168# script. It is used to track C/C++ files dependencies in portable way.
43169#
43170# Permission is given to use this file in any way.
43171
473276a9 43172DEPSMODE=${DEPSMODE}
a848cd7e 43173DEPSDIR=.deps
473276a9 43174DEPSFLAG_GCC="${DEPSFLAG_GCC}"
81f90336 43175DEPSFLAG_MWCC="${DEPSFLAG_MWCC}"
a9e5b1f0 43176DEPSFLAG_SUNCC="${DEPSFLAG_SUNCC}"
a848cd7e 43177
473276a9 43178mkdir -p ${D}DEPSDIR
a848cd7e 43179
473276a9
VS
43180if test ${D}DEPSMODE = gcc ; then
43181 ${D}* ${D}{DEPSFLAG_GCC}
43182 status=${D}?
43183 if test ${D}{status} != 0 ; then
43184 exit ${D}{status}
a848cd7e
SC
43185 fi
43186 # move created file to the location we want it in:
473276a9
VS
43187 while test ${D}# -gt 0; do
43188 case "${D}1" in
a848cd7e
SC
43189 -o )
43190 shift
473276a9 43191 objfile=${D}1
a848cd7e
SC
43192 ;;
43193 -* )
43194 ;;
43195 * )
473276a9 43196 srcfile=${D}1
a848cd7e
SC
43197 ;;
43198 esac
43199 shift
43200 done
1e9e8aba
DE
43201 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
43202 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
43203 if test -f ${D}depfile ; then
43204 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
43205 rm -f ${D}depfile
a848cd7e 43206 else
1e9e8aba 43207 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
43208 if test -f ${D}depfile ; then
43209 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
43210 rm -f ${D}depfile
a848cd7e
SC
43211 fi
43212 fi
43213 exit 0
81f90336
MW
43214elif test ${D}DEPSMODE = mwcc ; then
43215 ${D}*
43216 status=${D}?
43217 if test ${D}{status} != 0 ; then
43218 exit ${D}{status}
43219 fi
43220 # Run mwcc again with -MM and redirect into the dep file we want
43221 # NOTE: We can't use shift here because we need ${D}* to be valid
43222 prevarg=
43223 for arg in ${D}* ; do
43224 if test "${D}prevarg" = "-o"; then
43225 objfile=${D}arg
43226 else
43227 case "${D}arg" in
43228 -* )
43229 ;;
43230 * )
43231 srcfile=${D}arg
43232 ;;
43233 esac
43234 fi
43235 prevarg="${D}arg"
43236 done
43237 ${D}* ${D}DEPSFLAG_MWCC >${D}{DEPSDIR}/${D}{objfile}.d
43238 exit 0
a9e5b1f0
MW
43239elif test ${D}DEPSMODE = suncc; then
43240 ${D}* || exit
43241 # Run compiler again with deps flag and redirect into the dep file.
43242 # It doesn't work if the '-o FILE' option is used, but without it the
43243 # dependency file will contain the wrong name for the object. So it is
43244 # removed from the command line, and the dep file is fixed with sed.
43245 cmd=""
43246 while test ${D}# -gt 0; do
43247 case "${D}1" in
43248 -o )
43249 shift
43250 objfile=${D}1
43251 ;;
43252 * )
43253 eval arg${D}#=\\${D}1
43254 cmd="${D}cmd \\${D}arg${D}#"
43255 ;;
43256 esac
43257 shift
43258 done
43259 eval "${D}cmd ${D}DEPSFLAG_SUNCC" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
43260 exit 0
a848cd7e 43261else
473276a9
VS
43262 ${D}*
43263 exit ${D}?
a848cd7e
SC
43264fi
43265EOF
473276a9 43266
a848cd7e
SC
43267 chmod +x bk-deps
43268 fi
43269
43270
43271
43272
43273 RESCOMP=
43274 SETFILE=
43275
43276 case ${BAKEFILE_HOST} in
43277 *-*-cygwin* | *-*-mingw32* )
43278 if test "$build" != "$host" ; then
43279 RESCOMP=$host_alias-windres
43280 else
43281 # Extract the first word of "windres", so it can be a program name with args.
43282set dummy windres; ac_word=$2
43283echo "$as_me:$LINENO: checking for $ac_word" >&5
43284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43285if test "${ac_cv_prog_RESCOMP+set}" = set; then
43286 echo $ECHO_N "(cached) $ECHO_C" >&6
43287else
43288 if test -n "$RESCOMP"; then
43289 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
43290else
43291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43292for as_dir in $PATH
43293do
43294 IFS=$as_save_IFS
43295 test -z "$as_dir" && as_dir=.
43296 for ac_exec_ext in '' $ac_executable_extensions; do
43297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43298 ac_cv_prog_RESCOMP="windres"
43299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43300 break 2
43301 fi
43302done
43303done
43304
43305 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
43306fi
43307fi
43308RESCOMP=$ac_cv_prog_RESCOMP
43309if test -n "$RESCOMP"; then
43310 echo "$as_me:$LINENO: result: $RESCOMP" >&5
43311echo "${ECHO_T}$RESCOMP" >&6
43312else
43313 echo "$as_me:$LINENO: result: no" >&5
43314echo "${ECHO_T}no" >&6
43315fi
43316
43317 fi
43318 ;;
43319
1e9e8aba 43320 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
43321 # Extract the first word of "Rez", so it can be a program name with args.
43322set dummy Rez; ac_word=$2
43323echo "$as_me:$LINENO: checking for $ac_word" >&5
43324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43325if test "${ac_cv_prog_RESCOMP+set}" = set; then
43326 echo $ECHO_N "(cached) $ECHO_C" >&6
43327else
43328 if test -n "$RESCOMP"; then
43329 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
43330else
43331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43332for as_dir in $PATH
43333do
43334 IFS=$as_save_IFS
43335 test -z "$as_dir" && as_dir=.
43336 for ac_exec_ext in '' $ac_executable_extensions; do
43337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43338 ac_cv_prog_RESCOMP="Rez"
43339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43340 break 2
43341 fi
43342done
43343done
43344
43345 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
43346fi
43347fi
43348RESCOMP=$ac_cv_prog_RESCOMP
43349if test -n "$RESCOMP"; then
43350 echo "$as_me:$LINENO: result: $RESCOMP" >&5
43351echo "${ECHO_T}$RESCOMP" >&6
43352else
43353 echo "$as_me:$LINENO: result: no" >&5
43354echo "${ECHO_T}no" >&6
43355fi
43356
43357 # Extract the first word of "SetFile", so it can be a program name with args.
43358set dummy SetFile; ac_word=$2
43359echo "$as_me:$LINENO: checking for $ac_word" >&5
43360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43361if test "${ac_cv_prog_SETFILE+set}" = set; then
43362 echo $ECHO_N "(cached) $ECHO_C" >&6
43363else
43364 if test -n "$SETFILE"; then
43365 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
43366else
43367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43368for as_dir in $PATH
43369do
43370 IFS=$as_save_IFS
43371 test -z "$as_dir" && as_dir=.
43372 for ac_exec_ext in '' $ac_executable_extensions; do
43373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43374 ac_cv_prog_SETFILE="SetFile"
43375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43376 break 2
43377 fi
43378done
43379done
43380
43381 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
43382fi
43383fi
43384SETFILE=$ac_cv_prog_SETFILE
43385if test -n "$SETFILE"; then
43386 echo "$as_me:$LINENO: result: $SETFILE" >&5
43387echo "${ECHO_T}$SETFILE" >&6
43388else
43389 echo "$as_me:$LINENO: result: no" >&5
43390echo "${ECHO_T}no" >&6
43391fi
43392
43393 ;;
43394 esac
43395
43396
43397
43398
43399
fbb7dfff 43400 BAKEFILE_BAKEFILE_M4_VERSION="0.1.8"
a848cd7e 43401
dcc1b6ad 43402
fbb7dfff 43403BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.8"
a848cd7e 43404
646b6ec1 43405
74b84332 43406
a848cd7e
SC
43407 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
43408if test "${enable_precomp_headers+set}" = set; then
43409 enableval="$enable_precomp_headers"
43410 bk_use_pch="$enableval"
43411fi;
43412
43413 GCC_PCH=0
43414
43415 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
43416 if test "x$GCC" = "xyes"; then
43417 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
43418echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
43419 cat >conftest.$ac_ext <<_ACEOF
43420/* confdefs.h. */
43421_ACEOF
43422cat confdefs.h >>conftest.$ac_ext
43423cat >>conftest.$ac_ext <<_ACEOF
43424/* end confdefs.h. */
43425
43426int
43427main ()
43428{
43429
43430 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
43431 #error "no pch support"
43432 #endif
43433 #if (__GNUC__ < 3)
43434 #error "no pch support"
43435 #endif
43436 #if (__GNUC__ == 3) && \
43437 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
43438 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
43439 #error "no pch support"
43440 #endif
43441
43442 ;
43443 return 0;
43444}
43445_ACEOF
43446rm -f conftest.$ac_objext
43447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43448 (eval $ac_compile) 2>conftest.er1
a848cd7e 43449 ac_status=$?
ac1cb8d3
VS
43450 grep -v '^ *+' conftest.er1 >conftest.err
43451 rm -f conftest.er1
43452 cat conftest.err >&5
a848cd7e
SC
43453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43454 (exit $ac_status); } &&
fb00f58d
JS
43455 { ac_try='test -z "$ac_c_werror_flag"
43456 || test ! -s conftest.err'
ac1cb8d3
VS
43457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43458 (eval $ac_try) 2>&5
43459 ac_status=$?
43460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43461 (exit $ac_status); }; } &&
43462 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43464 (eval $ac_try) 2>&5
43465 ac_status=$?
43466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43467 (exit $ac_status); }; }; then
43468
43469 echo "$as_me:$LINENO: result: yes" >&5
43470echo "${ECHO_T}yes" >&6
a848cd7e
SC
43471 GCC_PCH=1
43472
43473else
43474 echo "$as_me: failed program was:" >&5
43475sed 's/^/| /' conftest.$ac_ext >&5
43476
43477
43478 echo "$as_me:$LINENO: result: no" >&5
43479echo "${ECHO_T}no" >&6
43480
43481fi
ac1cb8d3 43482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 43483 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
43484
43485D='$'
43486cat <<EOF >bk-make-pch
a848cd7e
SC
43487#!/bin/sh
43488
43489# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
43490# script. It is used to generated precompiled headers.
43491#
43492# Permission is given to use this file in any way.
43493
1e9e8aba
DE
43494outfile="${D}{1}"
43495header="${D}{2}"
a848cd7e
SC
43496shift
43497shift
43498
43499compiler=
43500headerfile=
1e9e8aba
DE
43501while test ${D}{#} -gt 0; do
43502 case "${D}{1}" in
a848cd7e 43503 -I* )
1e9e8aba
DE
43504 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
43505 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
43506 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
43507 fi
43508 ;;
43509 esac
1e9e8aba 43510 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
43511 shift
43512done
43513
1e9e8aba
DE
43514if test "x${D}{headerfile}" = "x" ; then
43515 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 43516else
1e9e8aba
DE
43517 if test -f ${D}{outfile} ; then
43518 rm -f ${D}{outfile}
a848cd7e 43519 else
1e9e8aba 43520 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 43521 fi
1e9e8aba 43522 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
43523 mkdir -p .deps
43524 # can do this because gcc is >= 3.4:
1e9e8aba
DE
43525 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
43526 exit ${D}{?}
a848cd7e
SC
43527fi
43528EOF
1e9e8aba 43529
a848cd7e
SC
43530 chmod +x bk-make-pch
43531 fi
43532 fi
43533 fi
43534
43535
43536
a848cd7e
SC
43537 COND_BUILD_DEBUG="#"
43538 if test "x$BUILD" = "xdebug" ; then
43539 COND_BUILD_DEBUG=""
43540 fi
43541
43542 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
43543 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
43544 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
43545 fi
43546
43547 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
43548 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
43549 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
43550 fi
43551
43552 COND_BUILD_DEBUG_UNICODE_0="#"
43553 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
43554 COND_BUILD_DEBUG_UNICODE_0=""
43555 fi
43556
43557 COND_BUILD_DEBUG_UNICODE_1="#"
43558 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
43559 COND_BUILD_DEBUG_UNICODE_1=""
43560 fi
43561
43562 COND_BUILD_RELEASE="#"
43563 if test "x$BUILD" = "xrelease" ; then
43564 COND_BUILD_RELEASE=""
43565 fi
43566
43567 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
43568 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
43569 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
43570 fi
43571
43572 COND_BUILD_RELEASE_UNICODE_0="#"
43573 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
43574 COND_BUILD_RELEASE_UNICODE_0=""
43575 fi
43576
43577 COND_BUILD_RELEASE_UNICODE_1="#"
43578 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
43579 COND_BUILD_RELEASE_UNICODE_1=""
43580 fi
43581
43582 COND_DEBUG_FLAG_1="#"
43583 if test "x$DEBUG_FLAG" = "x1" ; then
43584 COND_DEBUG_FLAG_1=""
43585 fi
43586
43587 COND_DEBUG_INFO_0="#"
43588 if test "x$DEBUG_INFO" = "x0" ; then
43589 COND_DEBUG_INFO_0=""
43590 fi
43591
43592 COND_DEBUG_INFO_1="#"
43593 if test "x$DEBUG_INFO" = "x1" ; then
43594 COND_DEBUG_INFO_1=""
43595 fi
43596
43597 COND_DEPS_TRACKING_0="#"
43598 if test "x$DEPS_TRACKING" = "x0" ; then
43599 COND_DEPS_TRACKING_0=""
43600 fi
43601
43602 COND_DEPS_TRACKING_1="#"
43603 if test "x$DEPS_TRACKING" = "x1" ; then
43604 COND_DEPS_TRACKING_1=""
43605 fi
43606
43607 COND_GCC_PCH_1="#"
43608 if test "x$GCC_PCH" = "x1" ; then
43609 COND_GCC_PCH_1=""
43610 fi
43611
43612 COND_MONOLITHIC_0="#"
43613 if test "x$MONOLITHIC" = "x0" ; then
43614 COND_MONOLITHIC_0=""
43615 fi
43616
43617 COND_MONOLITHIC_0_SHARED_0="#"
43618 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
43619 COND_MONOLITHIC_0_SHARED_0=""
43620 fi
43621
43622 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
43623 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
43624 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
43625 fi
43626
90970d69
DE
43627 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
43628 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
43629 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
43630 fi
43631
a848cd7e
SC
43632 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
43633 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
43634 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
43635 fi
43636
6671c68b
VZ
43637 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
43638 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
43639 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
43640 fi
43641
a848cd7e
SC
43642 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
43643 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
43644 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
43645 fi
43646
ceec2216
RL
43647 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
43648 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
43649 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
43650 fi
43651
a848cd7e
SC
43652 COND_MONOLITHIC_0_SHARED_1="#"
43653 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
43654 COND_MONOLITHIC_0_SHARED_1=""
43655 fi
43656
43657 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
43658 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
43659 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
43660 fi
43661
90970d69
DE
43662 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
43663 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
43664 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
43665 fi
43666
a848cd7e
SC
43667 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
43668 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
43669 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
43670 fi
43671
6671c68b
VZ
43672 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
43673 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
43674 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
43675 fi
43676
a848cd7e
SC
43677 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
43678 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
43679 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
43680 fi
43681
ceec2216
RL
43682 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
43683 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
43684 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
43685 fi
43686
a848cd7e
SC
43687 COND_MONOLITHIC_0_USE_ODBC_1="#"
43688 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
43689 COND_MONOLITHIC_0_USE_ODBC_1=""
43690 fi
43691
43692 COND_MONOLITHIC_1="#"
43693 if test "x$MONOLITHIC" = "x1" ; then
43694 COND_MONOLITHIC_1=""
43695 fi
43696
43697 COND_MONOLITHIC_1_SHARED_0="#"
43698 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
43699 COND_MONOLITHIC_1_SHARED_0=""
43700 fi
43701
43702 COND_MONOLITHIC_1_SHARED_1="#"
43703 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
43704 COND_MONOLITHIC_1_SHARED_1=""
43705 fi
43706
43707 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
43708 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
43709 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
43710 fi
43711
43712 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
43713 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
43714 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
43715 fi
43716
43717 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
43718 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
43719 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
43720 fi
43721
43722 COND_PLATFORM_MACOSX_1="#"
43723 if test "x$PLATFORM_MACOSX" = "x1" ; then
43724 COND_PLATFORM_MACOSX_1=""
43725 fi
43726
a30f955f
VS
43727 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
43728 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
43729 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
43730 fi
43731
a848cd7e
SC
43732 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
43733 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
43734 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
43735 fi
43736
43737 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
43738 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
43739 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
43740 fi
43741
43742 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
43743 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
43744 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
43745 fi
43746
fc480dc1
DE
43747 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
43748 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
43749 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
43750 fi
43751
1e9e8aba
DE
43752 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
43753 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43754 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
43755 fi
43756
ebee3cd0
VS
43757 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
43758 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
43759 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
43760 fi
43761
43762 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
43763 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
43764 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
43765 fi
43766
a848cd7e
SC
43767 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
43768 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
43769 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
43770 fi
43771
43772 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
43773 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
43774 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
43775 fi
43776
b48a2016
DE
43777 COND_PLATFORM_MACOS_1="#"
43778 if test "x$PLATFORM_MACOS" = "x1" ; then
43779 COND_PLATFORM_MACOS_1=""
43780 fi
43781
a848cd7e
SC
43782 COND_PLATFORM_MAC_1="#"
43783 if test "x$PLATFORM_MAC" = "x1" ; then
43784 COND_PLATFORM_MAC_1=""
43785 fi
43786
83d8eb47
MW
43787 COND_PLATFORM_MSDOS_1="#"
43788 if test "x$PLATFORM_MSDOS" = "x1" ; then
43789 COND_PLATFORM_MSDOS_1=""
43790 fi
43791
a848cd7e
SC
43792 COND_PLATFORM_OS2_1="#"
43793 if test "x$PLATFORM_OS2" = "x1" ; then
43794 COND_PLATFORM_OS2_1=""
43795 fi
43796
43797 COND_PLATFORM_UNIX_0="#"
43798 if test "x$PLATFORM_UNIX" = "x0" ; then
43799 COND_PLATFORM_UNIX_0=""
43800 fi
43801
43802 COND_PLATFORM_UNIX_1="#"
43803 if test "x$PLATFORM_UNIX" = "x1" ; then
43804 COND_PLATFORM_UNIX_1=""
43805 fi
43806
43807 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
43808 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
43809 COND_PLATFORM_UNIX_1_USE_GUI_1=""
43810 fi
43811
43812 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
43813 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
43814 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
43815 fi
43816
43817 COND_PLATFORM_WIN32_0="#"
43818 if test "x$PLATFORM_WIN32" = "x0" ; then
43819 COND_PLATFORM_WIN32_0=""
43820 fi
43821
43822 COND_PLATFORM_WIN32_1="#"
43823 if test "x$PLATFORM_WIN32" = "x1" ; then
43824 COND_PLATFORM_WIN32_1=""
43825 fi
43826
43827 COND_SHARED_0="#"
43828 if test "x$SHARED" = "x0" ; then
43829 COND_SHARED_0=""
43830 fi
43831
ceec2216
RL
43832 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
43833 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
43834 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
43835 fi
43836
43837 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
43838 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
43839 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
43840 fi
43841
43842 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
43843 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
43844 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
43845 fi
43846
a848cd7e
SC
43847 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
43848 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
43849 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
43850 fi
43851
43852 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
43853 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
43854 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
43855 fi
43856
43857 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
43858 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
43859 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
43860 fi
43861
43862 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
43863 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
43864 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
43865 fi
43866
52ada004
RL
43867 COND_SHARED_0_USE_XRC_1="#"
43868 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
43869 COND_SHARED_0_USE_XRC_1=""
43870 fi
43871
a848cd7e
SC
43872 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
43873 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
43874 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
43875 fi
43876
43877 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
43878 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
43879 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
43880 fi
43881
43882 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
43883 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
43884 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
43885 fi
43886
43887 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
43888 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
43889 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
43890 fi
43891
43892 COND_SHARED_1="#"
43893 if test "x$SHARED" = "x1" ; then
43894 COND_SHARED_1=""
43895 fi
43896
43897 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
43898 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
43899 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
43900 fi
43901
52ada004
RL
43902 COND_SHARED_1_USE_XRC_1="#"
43903 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
43904 COND_SHARED_1_USE_XRC_1=""
43905 fi
43906
a30f955f
VS
43907 COND_TOOLKIT_="#"
43908 if test "x$TOOLKIT" = "x" ; then
43909 COND_TOOLKIT_=""
43910 fi
43911
a848cd7e
SC
43912 COND_TOOLKIT_COCOA="#"
43913 if test "x$TOOLKIT" = "xCOCOA" ; then
43914 COND_TOOLKIT_COCOA=""
43915 fi
43916
a49baeab
DE
43917 COND_TOOLKIT_COCOA_USE_GUI_1="#"
43918 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
43919 COND_TOOLKIT_COCOA_USE_GUI_1=""
43920 fi
43921
a848cd7e
SC
43922 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
43923 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43924 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
43925 fi
43926
43927 COND_TOOLKIT_GTK="#"
43928 if test "x$TOOLKIT" = "xGTK" ; then
43929 COND_TOOLKIT_GTK=""
43930 fi
43931
43932 COND_TOOLKIT_GTK_USE_GUI_1="#"
43933 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
43934 COND_TOOLKIT_GTK_USE_GUI_1=""
43935 fi
43936
43937 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
43938 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43939 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
43940 fi
43941
43942 COND_TOOLKIT_MAC="#"
43943 if test "x$TOOLKIT" = "xMAC" ; then
43944 COND_TOOLKIT_MAC=""
43945 fi
43946
43947 COND_TOOLKIT_MAC_USE_GUI_1="#"
43948 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
43949 COND_TOOLKIT_MAC_USE_GUI_1=""
43950 fi
43951
43952 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
43953 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43954 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
43955 fi
43956
43957 COND_TOOLKIT_MGL="#"
43958 if test "x$TOOLKIT" = "xMGL" ; then
43959 COND_TOOLKIT_MGL=""
43960 fi
43961
43962 COND_TOOLKIT_MGL_USE_GUI_1="#"
43963 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
43964 COND_TOOLKIT_MGL_USE_GUI_1=""
43965 fi
43966
43967 COND_TOOLKIT_MOTIF="#"
43968 if test "x$TOOLKIT" = "xMOTIF" ; then
43969 COND_TOOLKIT_MOTIF=""
43970 fi
43971
43972 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
43973 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
43974 COND_TOOLKIT_MOTIF_USE_GUI_1=""
43975 fi
43976
43977 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
43978 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43979 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
43980 fi
43981
43982 COND_TOOLKIT_MSW="#"
43983 if test "x$TOOLKIT" = "xMSW" ; then
43984 COND_TOOLKIT_MSW=""
43985 fi
43986
43987 COND_TOOLKIT_MSW_USE_GUI_1="#"
43988 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
43989 COND_TOOLKIT_MSW_USE_GUI_1=""
43990 fi
43991
43992 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
43993 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
43994 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
43995 fi
43996
43997 COND_TOOLKIT_PM="#"
43998 if test "x$TOOLKIT" = "xPM" ; then
43999 COND_TOOLKIT_PM=""
44000 fi
44001
44002 COND_TOOLKIT_PM_USE_GUI_1="#"
44003 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
44004 COND_TOOLKIT_PM_USE_GUI_1=""
44005 fi
44006
44007 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
44008 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44009 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
44010 fi
44011
3fd9c298
DE
44012 COND_TOOLKIT_WINCE="#"
44013 if test "x$TOOLKIT" = "xWINCE" ; then
44014 COND_TOOLKIT_WINCE=""
44015 fi
44016
44017 COND_TOOLKIT_WINCE_USE_GUI_1="#"
44018 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
44019 COND_TOOLKIT_WINCE_USE_GUI_1=""
44020 fi
44021
44022 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
44023 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44024 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
44025 fi
44026
a848cd7e
SC
44027 COND_TOOLKIT_X11="#"
44028 if test "x$TOOLKIT" = "xX11" ; then
44029 COND_TOOLKIT_X11=""
44030 fi
44031
44032 COND_TOOLKIT_X11_USE_GUI_1="#"
44033 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
44034 COND_TOOLKIT_X11_USE_GUI_1=""
44035 fi
44036
44037 COND_UNICODE_1="#"
44038 if test "x$UNICODE" = "x1" ; then
44039 COND_UNICODE_1=""
44040 fi
44041
44042 COND_USE_EXCEPTIONS_0="#"
44043 if test "x$USE_EXCEPTIONS" = "x0" ; then
44044 COND_USE_EXCEPTIONS_0=""
44045 fi
44046
44047 COND_USE_EXCEPTIONS_1="#"
44048 if test "x$USE_EXCEPTIONS" = "x1" ; then
44049 COND_USE_EXCEPTIONS_1=""
44050 fi
44051
44052 COND_USE_GUI_0="#"
44053 if test "x$USE_GUI" = "x0" ; then
44054 COND_USE_GUI_0=""
44055 fi
44056
44057 COND_USE_GUI_1="#"
44058 if test "x$USE_GUI" = "x1" ; then
44059 COND_USE_GUI_1=""
44060 fi
44061
44062 COND_USE_GUI_1_WXUNIV_0="#"
44063 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
44064 COND_USE_GUI_1_WXUNIV_0=""
44065 fi
44066
44067 COND_USE_GUI_1_WXUNIV_1="#"
44068 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
44069 COND_USE_GUI_1_WXUNIV_1=""
44070 fi
44071
44072 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
44073 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
44074 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
44075 fi
44076
44077 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
44078 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
44079 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
44080 fi
44081
44082 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
44083 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
44084 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
44085 fi
44086
ceec2216
RL
44087 COND_USE_ODBC_1="#"
44088 if test "x$USE_ODBC" = "x1" ; then
44089 COND_USE_ODBC_1=""
44090 fi
44091
ffa0583f
RL
44092 COND_USE_OPENGL_1="#"
44093 if test "x$USE_OPENGL" = "x1" ; then
44094 COND_USE_OPENGL_1=""
44095 fi
44096
a848cd7e
SC
44097 COND_USE_PLUGINS_0="#"
44098 if test "x$USE_PLUGINS" = "x0" ; then
44099 COND_USE_PLUGINS_0=""
44100 fi
44101
0b78747f
MW
44102 COND_USE_RTTI_0="#"
44103 if test "x$USE_RTTI" = "x0" ; then
44104 COND_USE_RTTI_0=""
44105 fi
44106
44107 COND_USE_RTTI_1="#"
44108 if test "x$USE_RTTI" = "x1" ; then
44109 COND_USE_RTTI_1=""
44110 fi
44111
a848cd7e
SC
44112 COND_USE_SOSYMLINKS_1="#"
44113 if test "x$USE_SOSYMLINKS" = "x1" ; then
44114 COND_USE_SOSYMLINKS_1=""
44115 fi
44116
44117 COND_USE_SOVERLINUX_1="#"
44118 if test "x$USE_SOVERLINUX" = "x1" ; then
44119 COND_USE_SOVERLINUX_1=""
44120 fi
44121
44122 COND_USE_SOVERSION_0="#"
44123 if test "x$USE_SOVERSION" = "x0" ; then
44124 COND_USE_SOVERSION_0=""
44125 fi
44126
44127 COND_USE_SOVERSOLARIS_1="#"
44128 if test "x$USE_SOVERSOLARIS" = "x1" ; then
44129 COND_USE_SOVERSOLARIS_1=""
44130 fi
44131
0b78747f
MW
44132 COND_USE_THREADS_0="#"
44133 if test "x$USE_THREADS" = "x0" ; then
44134 COND_USE_THREADS_0=""
44135 fi
44136
44137 COND_USE_THREADS_1="#"
44138 if test "x$USE_THREADS" = "x1" ; then
44139 COND_USE_THREADS_1=""
44140 fi
44141
a13a7f89
RL
44142 COND_USE_XRC_1="#"
44143 if test "x$USE_XRC" = "x1" ; then
44144 COND_USE_XRC_1=""
44145 fi
44146
a848cd7e
SC
44147 COND_WITH_PLUGIN_SDL_1="#"
44148 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
44149 COND_WITH_PLUGIN_SDL_1=""
44150 fi
44151
1e6eb025
VZ
44152 COND_WXUNIV_0="#"
44153 if test "x$WXUNIV" = "x0" ; then
44154 COND_WXUNIV_0=""
44155 fi
44156
a848cd7e
SC
44157 COND_WXUNIV_1="#"
44158 if test "x$WXUNIV" = "x1" ; then
44159 COND_WXUNIV_1=""
44160 fi
44161
44162 COND_WXUSE_EXPAT_BUILTIN="#"
44163 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
44164 COND_WXUSE_EXPAT_BUILTIN=""
44165 fi
44166
44167 COND_WXUSE_LIBJPEG_BUILTIN="#"
44168 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
44169 COND_WXUSE_LIBJPEG_BUILTIN=""
44170 fi
44171
44172 COND_WXUSE_LIBPNG_BUILTIN="#"
44173 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
44174 COND_WXUSE_LIBPNG_BUILTIN=""
44175 fi
44176
44177 COND_WXUSE_LIBTIFF_BUILTIN="#"
44178 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
44179 COND_WXUSE_LIBTIFF_BUILTIN=""
44180 fi
44181
44182 COND_WXUSE_ODBC_BUILTIN="#"
44183 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
44184 COND_WXUSE_ODBC_BUILTIN=""
44185 fi
44186
44187 COND_WXUSE_REGEX_BUILTIN="#"
44188 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
44189 COND_WXUSE_REGEX_BUILTIN=""
44190 fi
44191
44192 COND_WXUSE_ZLIB_BUILTIN="#"
44193 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
44194 COND_WXUSE_ZLIB_BUILTIN=""
44195 fi
44196
44197
44198
2057db16
VS
44199 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
44200 { { 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
44201echo "$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;}
44202 { (exit 1); exit 1; }; }
44203 fi
44204
a848cd7e 44205
fb00f58d
JS
44206if test "$wxUSE_WINE" = "yes"; then
44207 RESCOMP=wrc
44208fi
44209
ceec2216
RL
44210if test "$wxUSE_SHARED" = "yes"; then
44211
44212 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
44213 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
44214
5b674b9d
DE
44215 case "${host}" in
44216 *-pc-os2_emx | *-pc-os2-emx )
44217 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
44218 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
44219 cp -p ${srcdir}/src/os2/dllnames.sh .
44220 cp -p ${srcdir}/src/os2/dllar.sh .
44221 ;;
44222 esac
ceec2216
RL
44223else
44224
44225 EXE_LINKER="$CXX -o"
44226
44227fi
69120ee4
VZ
44228if test "$wxUSE_OMF" = "yes"; then
44229 case "${host}" in
44230 *-pc-os2_emx | *-pc-os2-emx )
44231 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
44232 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
44233 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
44234 ;;
44235 esac
44236fi
a848cd7e 44237
74b84332 44238GCC_PRAGMA_FLAGS=""
c08ebc62
DE
44239PCH_FLAGS=""
44240if test $GCC_PCH = 1 ; then
44241 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
44242 PCH_FLAGS="-DWX_PRECOMP"
44243else
a848cd7e
SC
44244 case "${host}" in
44245 powerpc-*-darwin* )
74b84332 44246 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 44247 ;;
bea8e651 44248 *-*-mingw32* )
1f344abf
VS
44249 if test "$wxUSE_STL" = "yes" -o \
44250 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
44251 "$wxUSE_NO_RTTI" != "yes"; then
44252 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
44253echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
44254 cat >conftest.$ac_ext <<_ACEOF
44255/* confdefs.h. */
44256_ACEOF
44257cat confdefs.h >>conftest.$ac_ext
44258cat >>conftest.$ac_ext <<_ACEOF
44259/* end confdefs.h. */
44260
3314e67b
RR
44261int
44262main ()
44263{
44264#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
44265 #error "Not GCC 3.2 or greater"
44266 #endif
44267
44268 ;
44269 return 0;
44270}
44271_ACEOF
44272rm -f conftest.$ac_objext
44273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44274 (eval $ac_compile) 2>conftest.er1
44275 ac_status=$?
44276 grep -v '^ *+' conftest.er1 >conftest.err
44277 rm -f conftest.er1
44278 cat conftest.err >&5
44279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44280 (exit $ac_status); } &&
fb00f58d
JS
44281 { ac_try='test -z "$ac_c_werror_flag"
44282 || test ! -s conftest.err'
3314e67b
RR
44283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44284 (eval $ac_try) 2>&5
44285 ac_status=$?
44286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44287 (exit $ac_status); }; } &&
44288 { ac_try='test -s conftest.$ac_objext'
44289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44290 (eval $ac_try) 2>&5
44291 ac_status=$?
44292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44293 (exit $ac_status); }; }; then
44294 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
44295 echo "$as_me:$LINENO: result: yes" >&5
44296echo "${ECHO_T}yes" >&6
44297else
44298 echo "$as_me: failed program was:" >&5
44299sed 's/^/| /' conftest.$ac_ext >&5
44300
44301echo "$as_me:$LINENO: result: no" >&5
44302echo "${ECHO_T}no" >&6
44303fi
44304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44305 fi
44306 ;;
44307 *-pc-os2_emx | *-pc-os2-emx )
44308 if test "$wxUSE_STL" = "yes"; then
44309 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
44310echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
44311 cat >conftest.$ac_ext <<_ACEOF
44312/* confdefs.h. */
44313_ACEOF
44314cat confdefs.h >>conftest.$ac_ext
44315cat >>conftest.$ac_ext <<_ACEOF
44316/* end confdefs.h. */
44317
bea8e651
MB
44318int
44319main ()
44320{
1f344abf 44321#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
44322 #error "Not GCC 3.2 or greater"
44323 #endif
44324
44325 ;
44326 return 0;
44327}
44328_ACEOF
44329rm -f conftest.$ac_objext
44330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44331 (eval $ac_compile) 2>conftest.er1
bea8e651 44332 ac_status=$?
ac1cb8d3
VS
44333 grep -v '^ *+' conftest.er1 >conftest.err
44334 rm -f conftest.er1
44335 cat conftest.err >&5
bea8e651
MB
44336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44337 (exit $ac_status); } &&
fb00f58d
JS
44338 { ac_try='test -z "$ac_c_werror_flag"
44339 || test ! -s conftest.err'
ac1cb8d3
VS
44340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44341 (eval $ac_try) 2>&5
44342 ac_status=$?
44343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44344 (exit $ac_status); }; } &&
44345 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
44346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44347 (eval $ac_try) 2>&5
44348 ac_status=$?
44349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44350 (exit $ac_status); }; }; then
74b84332 44351 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
44352 echo "$as_me:$LINENO: result: yes" >&5
44353echo "${ECHO_T}yes" >&6
44354else
44355 echo "$as_me: failed program was:" >&5
44356sed 's/^/| /' conftest.$ac_ext >&5
44357
44358echo "$as_me:$LINENO: result: no" >&5
44359echo "${ECHO_T}no" >&6
44360fi
ac1cb8d3 44361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
44362 fi
44363 ;;
a848cd7e
SC
44364 esac
44365fi
d2083416 44366CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
44367
44368
44369SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
44370
44371
44372
44373
44374
44375
44376
44377
44378
44379
44380
44381
44382
44383
44384
44385
44386
44387
44388
44389
44390
44391
44392
44393
44394
44395
44396
44397
44398
44399
44400
44401
44402
44403
44404
44405
44406
44407
44408
44409
44410
44411
a848cd7e
SC
44412
44413
44414
44415
44416
44417
44418
44419
44420
44421
44422
44423
44424
44425
44426
44427
44428
44429
74b84332 44430
a848cd7e
SC
44431
44432
44433echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
44434echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 44435set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
44436if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
44437 echo $ECHO_N "(cached) $ECHO_C" >&6
44438else
44439 cat >conftest.make <<\_ACEOF
44440all:
44441 @echo 'ac_maketemp="$(MAKE)"'
44442_ACEOF
44443# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
44444eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
44445if test -n "$ac_maketemp"; then
44446 eval ac_cv_prog_make_${ac_make}_set=yes
44447else
44448 eval ac_cv_prog_make_${ac_make}_set=no
44449fi
44450rm -f conftest.make
44451fi
44452if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
44453 echo "$as_me:$LINENO: result: yes" >&5
44454echo "${ECHO_T}yes" >&6
44455 SET_MAKE=
44456else
44457 echo "$as_me:$LINENO: result: no" >&5
44458echo "${ECHO_T}no" >&6
44459 SET_MAKE="MAKE=${MAKE-make}"
44460fi
44461
44462
a848cd7e 44463
ceec2216
RL
44464 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
44465
a848cd7e 44466
ceec2216 44467 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 44468
a848cd7e 44469
ceec2216 44470 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 44471
ceec2216
RL
44472
44473 ac_config_files="$ac_config_files version-script Makefile"
44474
44475
44476 ac_config_commands="$ac_config_commands wx-config
44477 "
a848cd7e
SC
44478
44479
9103d280
RL
44480
44481
a848cd7e
SC
44482if test "$wxUSE_GUI" = "yes"; then
44483 SUBDIRS="samples demos utils contrib"
44484else SUBDIRS="samples utils"
44485fi
44486
44487
44488
44489# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
44490if test "${with_cppunit_prefix+set}" = set; then
44491 withval="$with_cppunit_prefix"
44492 cppunit_config_prefix="$withval"
44493else
44494 cppunit_config_prefix=""
44495fi;
44496
44497# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
44498if test "${with_cppunit_exec_prefix+set}" = set; then
44499 withval="$with_cppunit_exec_prefix"
44500 cppunit_config_exec_prefix="$withval"
44501else
44502 cppunit_config_exec_prefix=""
44503fi;
44504
44505 if test x$cppunit_config_exec_prefix != x ; then
44506 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
44507 if test x${CPPUNIT_CONFIG+set} != xset ; then
44508 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
44509 fi
44510 fi
44511 if test x$cppunit_config_prefix != x ; then
44512 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
44513 if test x${CPPUNIT_CONFIG+set} != xset ; then
44514 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
44515 fi
44516 fi
44517
44518 # Extract the first word of "cppunit-config", so it can be a program name with args.
44519set dummy cppunit-config; ac_word=$2
44520echo "$as_me:$LINENO: checking for $ac_word" >&5
44521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44522if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
44523 echo $ECHO_N "(cached) $ECHO_C" >&6
44524else
44525 case $CPPUNIT_CONFIG in
44526 [\\/]* | ?:[\\/]*)
44527 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
44528 ;;
44529 *)
44530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44531for as_dir in $PATH
44532do
44533 IFS=$as_save_IFS
44534 test -z "$as_dir" && as_dir=.
44535 for ac_exec_ext in '' $ac_executable_extensions; do
44536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44537 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44539 break 2
44540 fi
44541done
44542done
44543
44544 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
44545 ;;
44546esac
44547fi
44548CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
44549
44550if test -n "$CPPUNIT_CONFIG"; then
44551 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
44552echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
44553else
44554 echo "$as_me:$LINENO: result: no" >&5
44555echo "${ECHO_T}no" >&6
44556fi
44557
44558 cppunit_version_min=1.8.0
44559
44560 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
44561echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
44562 no_cppunit=""
44563 if test "$CPPUNIT_CONFIG" = "no" ; then
44564 no_cppunit=yes
44565 else
44566 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
44567 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
44568 cppunit_version=`$CPPUNIT_CONFIG --version`
44569
44570 cppunit_major_version=`echo $cppunit_version | \
44571 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
44572 cppunit_minor_version=`echo $cppunit_version | \
44573 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
44574 cppunit_micro_version=`echo $cppunit_version | \
44575 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
44576
44577 cppunit_major_min=`echo $cppunit_version_min | \
44578 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
44579 cppunit_minor_min=`echo $cppunit_version_min | \
44580 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
44581 cppunit_micro_min=`echo $cppunit_version_min | \
44582 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
44583
44584 cppunit_version_proper=`expr \
44585 $cppunit_major_version \> $cppunit_major_min \| \
44586 $cppunit_major_version \= $cppunit_major_min \& \
44587 $cppunit_minor_version \> $cppunit_minor_min \| \
44588 $cppunit_major_version \= $cppunit_major_min \& \
44589 $cppunit_minor_version \= $cppunit_minor_min \& \
44590 $cppunit_micro_version \>= $cppunit_micro_min `
44591
44592 if test "$cppunit_version_proper" = "1" ; then
44593 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
44594echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
44595 else
44596 echo "$as_me:$LINENO: result: no" >&5
44597echo "${ECHO_T}no" >&6
44598 no_cppunit=yes
44599 fi
44600 fi
44601
44602 if test "x$no_cppunit" = x ; then
c2218763 44603 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
44604 else
44605 CPPUNIT_CFLAGS=""
44606 CPPUNIT_LIBS=""
c2218763 44607 :
a848cd7e
SC
44608 fi
44609
44610
44611
44612
44613
44614for subdir in `echo $SUBDIRS`; do
44615 if test -d ${srcdir}/${subdir} ; then
44616 if test "$wxUSE_GUI" = "yes"; then
44617 if test ${subdir} = "samples"; then
44618 makefiles="samples/Makefile.in $makefiles"
44619 for sample in `echo $SAMPLES_SUBDIRS`; do
44620 if test -d $srcdir/samples/$sample; then
44621 makefiles="samples/$sample/Makefile.in $makefiles"
44622 fi
44623 done
9c112555
MW
44624 else
44625 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
44626 eval "disabled=\$$disabled_var"
44627 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
44628 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
44629 fi
44630 else if test ${subdir} = "samples"; then
44631 makefiles="samples/Makefile.in samples/console/Makefile.in"
44632 elif test ${subdir} = "utils"; then
6537ccf8
VS
44633 makefiles=""
44634 for util in HelpGen tex2rtf ; do
44635 if test -d $srcdir/utils/$util ; then
44636 makefiles="utils/$util/Makefile.in \
44637 utils/$util/src/Makefile.in \
44638 $makefiles"
44639 fi
44640 done
a848cd7e
SC
44641 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
44642 fi
44643 fi
44644
44645 for mkin in $makefiles ; do
44646 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
44647 ac_config_files="$ac_config_files $mk"
44648
44649 done
44650 fi
44651done
44652
44653
44654cat >confcache <<\_ACEOF
44655# This file is a shell script that caches the results of configure
44656# tests run on this system so they can be shared between configure
44657# scripts and configure runs, see configure's option --config-cache.
44658# It is not useful on other systems. If it contains results you don't
44659# want to keep, you may remove or edit it.
44660#
44661# config.status only pays attention to the cache file if you give it
44662# the --recheck option to rerun configure.
44663#
44664# `ac_cv_env_foo' variables (set or unset) will be overridden when
44665# loading this file, other *unset* `ac_cv_foo' will be assigned the
44666# following values.
44667
44668_ACEOF
44669
44670# The following way of writing the cache mishandles newlines in values,
44671# but we know of no workaround that is simple, portable, and efficient.
44672# So, don't put newlines in cache variables' values.
44673# Ultrix sh set writes to stderr and can't be redirected directly,
44674# and sets the high bit in the cache file unless we assign to the vars.
44675{
44676 (set) 2>&1 |
44677 case `(ac_space=' '; set | grep ac_space) 2>&1` in
44678 *ac_space=\ *)
44679 # `set' does not quote correctly, so add quotes (double-quote
44680 # substitution turns \\\\ into \\, and sed turns \\ into \).
44681 sed -n \
ac1cb8d3
VS
44682 "s/'/'\\\\''/g;
44683 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
44684 ;;
44685 *)
44686 # `set' quotes correctly as required by POSIX, so do not add quotes.
44687 sed -n \
ac1cb8d3 44688 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
44689 ;;
44690 esac;
44691} |
44692 sed '
44693 t clear
44694 : clear
44695 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
44696 t end
44697 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
44698 : end' >>confcache
44699if diff $cache_file confcache >/dev/null 2>&1; then :; else
44700 if test -w $cache_file; then
44701 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
44702 cat confcache >$cache_file
44703 else
44704 echo "not updating unwritable cache $cache_file"
44705 fi
44706fi
44707rm -f confcache
44708
44709test "x$prefix" = xNONE && prefix=$ac_default_prefix
44710# Let make expand exec_prefix.
44711test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44712
44713# VPATH may cause trouble with some makes, so we remove $(srcdir),
44714# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44715# trailing colons and then remove the whole line if VPATH becomes empty
44716# (actually we leave an empty line to preserve line numbers).
44717if test "x$srcdir" = x.; then
ac1cb8d3 44718 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
44719s/:*\$(srcdir):*/:/;
44720s/:*\${srcdir}:*/:/;
44721s/:*@srcdir@:*/:/;
ac1cb8d3 44722s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 44723s/:*$//;
ac1cb8d3 44724s/^[^=]*=[ ]*$//;
a848cd7e
SC
44725}'
44726fi
44727
44728DEFS=-DHAVE_CONFIG_H
44729
44730ac_libobjs=
44731ac_ltlibobjs=
44732for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44733 # 1. Remove the extension, and $U if already installed.
44734 ac_i=`echo "$ac_i" |
ac1cb8d3 44735 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
44736 # 2. Add them.
44737 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
44738 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
44739done
44740LIBOBJS=$ac_libobjs
44741
44742LTLIBOBJS=$ac_ltlibobjs
44743
44744
44745
44746: ${CONFIG_STATUS=./config.status}
44747ac_clean_files_save=$ac_clean_files
44748ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44749{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44750echo "$as_me: creating $CONFIG_STATUS" >&6;}
44751cat >$CONFIG_STATUS <<_ACEOF
44752#! $SHELL
44753# Generated by $as_me.
44754# Run this file to recreate the current configuration.
44755# Compiler output produced by configure, useful for debugging
44756# configure, is in config.log if it exists.
44757
44758debug=false
44759ac_cs_recheck=false
44760ac_cs_silent=false
44761SHELL=\${CONFIG_SHELL-$SHELL}
44762_ACEOF
44763
44764cat >>$CONFIG_STATUS <<\_ACEOF
44765## --------------------- ##
44766## M4sh Initialization. ##
44767## --------------------- ##
44768
44769# Be Bourne compatible
44770if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44771 emulate sh
44772 NULLCMD=:
44773 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44774 # is contrary to our usage. Disable this feature.
44775 alias -g '${1+"$@"}'='"$@"'
44776elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
44777 set -o posix
44778fi
ac1cb8d3 44779DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
44780
44781# Support unset when possible.
ac1cb8d3 44782if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
44783 as_unset=unset
44784else
44785 as_unset=false
44786fi
44787
44788
44789# Work around bugs in pre-3.0 UWIN ksh.
44790$as_unset ENV MAIL MAILPATH
44791PS1='$ '
44792PS2='> '
44793PS4='+ '
44794
44795# NLS nuisances.
44796for as_var in \
44797 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44798 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44799 LC_TELEPHONE LC_TIME
44800do
ac1cb8d3 44801 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
44802 eval $as_var=C; export $as_var
44803 else
44804 $as_unset $as_var
44805 fi
44806done
44807
44808# Required to use basename.
44809if expr a : '\(a\)' >/dev/null 2>&1; then
44810 as_expr=expr
44811else
44812 as_expr=false
44813fi
44814
44815if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
44816 as_basename=basename
44817else
44818 as_basename=false
44819fi
44820
44821
44822# Name of the executable.
44823as_me=`$as_basename "$0" ||
44824$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44825 X"$0" : 'X\(//\)$' \| \
44826 X"$0" : 'X\(/\)$' \| \
44827 . : '\(.\)' 2>/dev/null ||
44828echo X/"$0" |
44829 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
44830 /^X\/\(\/\/\)$/{ s//\1/; q; }
44831 /^X\/\(\/\).*/{ s//\1/; q; }
44832 s/.*/./; q'`
44833
44834
44835# PATH needs CR, and LINENO needs CR and PATH.
44836# Avoid depending upon Character Ranges.
44837as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44838as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44839as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44840as_cr_digits='0123456789'
44841as_cr_alnum=$as_cr_Letters$as_cr_digits
44842
44843# The user is always right.
44844if test "${PATH_SEPARATOR+set}" != set; then
44845 echo "#! /bin/sh" >conf$$.sh
44846 echo "exit 0" >>conf$$.sh
44847 chmod +x conf$$.sh
44848 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44849 PATH_SEPARATOR=';'
44850 else
44851 PATH_SEPARATOR=:
44852 fi
44853 rm -f conf$$.sh
44854fi
44855
44856
44857 as_lineno_1=$LINENO
44858 as_lineno_2=$LINENO
44859 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
44860 test "x$as_lineno_1" != "x$as_lineno_2" &&
44861 test "x$as_lineno_3" = "x$as_lineno_2" || {
44862 # Find who we are. Look in the path if we contain no path at all
44863 # relative or not.
44864 case $0 in
44865 *[\\/]* ) as_myself=$0 ;;
44866 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44867for as_dir in $PATH
44868do
44869 IFS=$as_save_IFS
44870 test -z "$as_dir" && as_dir=.
44871 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44872done
44873
44874 ;;
44875 esac
44876 # We did not find ourselves, most probably we were run as `sh COMMAND'
44877 # in which case we are not to be found in the path.
44878 if test "x$as_myself" = x; then
44879 as_myself=$0
44880 fi
44881 if test ! -f "$as_myself"; then
44882 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
44883echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
44884 { (exit 1); exit 1; }; }
44885 fi
44886 case $CONFIG_SHELL in
44887 '')
44888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44889for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
44890do
44891 IFS=$as_save_IFS
44892 test -z "$as_dir" && as_dir=.
44893 for as_base in sh bash ksh sh5; do
44894 case $as_dir in
44895 /*)
44896 if ("$as_dir/$as_base" -c '
44897 as_lineno_1=$LINENO
44898 as_lineno_2=$LINENO
44899 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
44900 test "x$as_lineno_1" != "x$as_lineno_2" &&
44901 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
44902 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
44903 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
44904 CONFIG_SHELL=$as_dir/$as_base
44905 export CONFIG_SHELL
44906 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
44907 fi;;
44908 esac
44909 done
44910done
44911;;
44912 esac
44913
44914 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44915 # uniformly replaced by the line number. The first 'sed' inserts a
44916 # line-number line before each line; the second 'sed' does the real
44917 # work. The second script uses 'N' to pair each line-number line
44918 # with the numbered line, and appends trailing '-' during
44919 # substitution so that $LINENO is not a special case at line end.
44920 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44921 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
44922 sed '=' <$as_myself |
44923 sed '
44924 N
44925 s,$,-,
44926 : loop
44927 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
44928 t loop
44929 s,-$,,
44930 s,^['$as_cr_digits']*\n,,
44931 ' >$as_me.lineno &&
44932 chmod +x $as_me.lineno ||
44933 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
44934echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
44935 { (exit 1); exit 1; }; }
44936
44937 # Don't try to exec as it changes $[0], causing all sort of problems
44938 # (the dirname of $[0] is not the place where we might find the
44939 # original and so on. Autoconf is especially sensible to this).
44940 . ./$as_me.lineno
44941 # Exit status is that of the last command.
44942 exit
44943}
44944
44945
44946case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
44947 *c*,-n*) ECHO_N= ECHO_C='
44948' ECHO_T=' ' ;;
44949 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
44950 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
44951esac
44952
44953if expr a : '\(a\)' >/dev/null 2>&1; then
44954 as_expr=expr
44955else
44956 as_expr=false
44957fi
44958
44959rm -f conf$$ conf$$.exe conf$$.file
44960echo >conf$$.file
44961if ln -s conf$$.file conf$$ 2>/dev/null; then
44962 # We could just check for DJGPP; but this test a) works b) is more generic
44963 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
44964 if test -f conf$$.exe; then
44965 # Don't use ln at all; we don't have any links
44966 as_ln_s='cp -p'
44967 else
44968 as_ln_s='ln -s'
44969 fi
44970elif ln conf$$.file conf$$ 2>/dev/null; then
44971 as_ln_s=ln
44972else
44973 as_ln_s='cp -p'
44974fi
44975rm -f conf$$ conf$$.exe conf$$.file
44976
44977if mkdir -p . 2>/dev/null; then
44978 as_mkdir_p=:
44979else
ac1cb8d3 44980 test -d ./-p && rmdir ./-p
a848cd7e
SC
44981 as_mkdir_p=false
44982fi
44983
44984as_executable_p="test -f"
44985
44986# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 44987as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
44988
44989# Sed expression to map a string onto a valid variable name.
ac1cb8d3 44990as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
44991
44992
44993# IFS
44994# We need space, tab and new line, in precisely that order.
44995as_nl='
44996'
44997IFS=" $as_nl"
44998
44999# CDPATH.
45000$as_unset CDPATH
45001
45002exec 6>&1
45003
45004# Open the log real soon, to keep \$[0] and so on meaningful, and to
45005# report actual input values of CONFIG_FILES etc. instead of their
45006# values after options handling. Logging --version etc. is OK.
45007exec 5>>config.log
45008{
45009 echo
45010 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45011## Running $as_me. ##
45012_ASBOX
45013} >&5
45014cat >&5 <<_CSEOF
45015
d230c01b 45016This file was extended by wxWidgets $as_me 2.6.1, which was
ac1cb8d3 45017generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
45018
45019 CONFIG_FILES = $CONFIG_FILES
45020 CONFIG_HEADERS = $CONFIG_HEADERS
45021 CONFIG_LINKS = $CONFIG_LINKS
45022 CONFIG_COMMANDS = $CONFIG_COMMANDS
45023 $ $0 $@
45024
45025_CSEOF
45026echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
45027echo >&5
45028_ACEOF
45029
45030# Files that config.status was made for.
45031if test -n "$ac_config_files"; then
45032 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
45033fi
45034
45035if test -n "$ac_config_headers"; then
45036 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
45037fi
45038
45039if test -n "$ac_config_links"; then
45040 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
45041fi
45042
45043if test -n "$ac_config_commands"; then
45044 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
45045fi
45046
45047cat >>$CONFIG_STATUS <<\_ACEOF
45048
45049ac_cs_usage="\
45050\`$as_me' instantiates files from templates according to the
45051current configuration.
45052
45053Usage: $0 [OPTIONS] [FILE]...
45054
45055 -h, --help print this help, then exit
45056 -V, --version print version number, then exit
45057 -q, --quiet do not print progress messages
45058 -d, --debug don't remove temporary files
45059 --recheck update $as_me by reconfiguring in the same conditions
45060 --file=FILE[:TEMPLATE]
ac1cb8d3 45061 instantiate the configuration file FILE
a848cd7e 45062 --header=FILE[:TEMPLATE]
ac1cb8d3 45063 instantiate the configuration header FILE
a848cd7e
SC
45064
45065Configuration files:
45066$config_files
45067
45068Configuration headers:
45069$config_headers
45070
45071Configuration commands:
45072$config_commands
45073
45074Report bugs to <bug-autoconf@gnu.org>."
45075_ACEOF
45076
45077cat >>$CONFIG_STATUS <<_ACEOF
45078ac_cs_version="\\
d230c01b 45079wxWidgets config.status 2.6.1
ac1cb8d3 45080configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
45081 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
45082
ac1cb8d3 45083Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
45084This config.status script is free software; the Free Software Foundation
45085gives unlimited permission to copy, distribute and modify it."
45086srcdir=$srcdir
45087INSTALL="$INSTALL"
45088_ACEOF
45089
45090cat >>$CONFIG_STATUS <<\_ACEOF
45091# If no file are specified by the user, then we need to provide default
45092# value. By we need to know if files were specified by the user.
45093ac_need_defaults=:
45094while test $# != 0
45095do
45096 case $1 in
45097 --*=*)
45098 ac_option=`expr "x$1" : 'x\([^=]*\)='`
45099 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
45100 ac_shift=:
45101 ;;
45102 -*)
45103 ac_option=$1
45104 ac_optarg=$2
45105 ac_shift=shift
45106 ;;
45107 *) # This is not an option, so the user has probably given explicit
45108 # arguments.
45109 ac_option=$1
45110 ac_need_defaults=false;;
45111 esac
45112
45113 case $ac_option in
45114 # Handling of the options.
45115_ACEOF
45116cat >>$CONFIG_STATUS <<\_ACEOF
45117 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45118 ac_cs_recheck=: ;;
45119 --version | --vers* | -V )
45120 echo "$ac_cs_version"; exit 0 ;;
45121 --he | --h)
45122 # Conflict between --help and --header
45123 { { echo "$as_me:$LINENO: error: ambiguous option: $1
45124Try \`$0 --help' for more information." >&5
45125echo "$as_me: error: ambiguous option: $1
45126Try \`$0 --help' for more information." >&2;}
45127 { (exit 1); exit 1; }; };;
45128 --help | --hel | -h )
45129 echo "$ac_cs_usage"; exit 0 ;;
45130 --debug | --d* | -d )
45131 debug=: ;;
45132 --file | --fil | --fi | --f )
45133 $ac_shift
45134 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
45135 ac_need_defaults=false;;
45136 --header | --heade | --head | --hea )
45137 $ac_shift
45138 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
45139 ac_need_defaults=false;;
45140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45141 | -silent | --silent | --silen | --sile | --sil | --si | --s)
45142 ac_cs_silent=: ;;
45143
45144 # This is an error.
45145 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
45146Try \`$0 --help' for more information." >&5
45147echo "$as_me: error: unrecognized option: $1
45148Try \`$0 --help' for more information." >&2;}
45149 { (exit 1); exit 1; }; } ;;
45150
45151 *) ac_config_targets="$ac_config_targets $1" ;;
45152
45153 esac
45154 shift
45155done
45156
45157ac_configure_extra_args=
45158
45159if $ac_cs_silent; then
45160 exec 6>/dev/null
45161 ac_configure_extra_args="$ac_configure_extra_args --silent"
45162fi
45163
45164_ACEOF
45165cat >>$CONFIG_STATUS <<_ACEOF
45166if \$ac_cs_recheck; then
45167 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
45168 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45169fi
45170
45171_ACEOF
45172
45173cat >>$CONFIG_STATUS <<_ACEOF
45174#
45175# INIT-COMMANDS section.
45176#
45177
ceec2216
RL
45178 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
45179 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
45180 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
45181 LN_S="${LN_S}"
a848cd7e
SC
45182
45183
45184_ACEOF
45185
45186
45187
45188cat >>$CONFIG_STATUS <<\_ACEOF
45189for ac_config_target in $ac_config_targets
45190do
45191 case "$ac_config_target" in
45192 # Handling of arguments.
ceec2216
RL
45193 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
45194 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
45195 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
45196 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
45197 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
45198 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
45199 "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
45200 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45201echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45202 { (exit 1); exit 1; }; };;
45203 esac
45204done
45205
45206# If the user did not use the arguments to specify the items to instantiate,
45207# then the envvar interface is used. Set only those that are not.
45208# We use the long form for the default assignment because of an extremely
45209# bizarre bug on SunOS 4.1.3.
45210if $ac_need_defaults; then
45211 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45212 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45213 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45214fi
45215
45216# Have a temporary directory for convenience. Make it in the build tree
45217# simply because there is no reason to put it here, and in addition,
45218# creating and moving files from /tmp can sometimes cause problems.
45219# Create a temporary directory, and hook for its removal unless debugging.
45220$debug ||
45221{
45222 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
45223 trap '{ (exit 1); exit 1; }' 1 2 13 15
45224}
45225
45226# Create a (secure) tmp directory for tmp files.
45227
45228{
45229 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
45230 test -n "$tmp" && test -d "$tmp"
45231} ||
45232{
45233 tmp=./confstat$$-$RANDOM
45234 (umask 077 && mkdir $tmp)
45235} ||
45236{
45237 echo "$me: cannot create a temporary directory in ." >&2
45238 { (exit 1); exit 1; }
45239}
45240
45241_ACEOF
45242
45243cat >>$CONFIG_STATUS <<_ACEOF
45244
45245#
45246# CONFIG_FILES section.
45247#
45248
45249# No need to generate the scripts if there are no CONFIG_FILES.
45250# This happens for instance when ./config.status config.h
45251if test -n "\$CONFIG_FILES"; then
45252 # Protect against being on the right side of a sed subst in config.status.
45253 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
45254 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
45255s,@SHELL@,$SHELL,;t t
45256s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
45257s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
45258s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
45259s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
45260s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
45261s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
45262s,@exec_prefix@,$exec_prefix,;t t
45263s,@prefix@,$prefix,;t t
45264s,@program_transform_name@,$program_transform_name,;t t
45265s,@bindir@,$bindir,;t t
45266s,@sbindir@,$sbindir,;t t
45267s,@libexecdir@,$libexecdir,;t t
45268s,@datadir@,$datadir,;t t
45269s,@sysconfdir@,$sysconfdir,;t t
45270s,@sharedstatedir@,$sharedstatedir,;t t
45271s,@localstatedir@,$localstatedir,;t t
45272s,@libdir@,$libdir,;t t
45273s,@includedir@,$includedir,;t t
45274s,@oldincludedir@,$oldincludedir,;t t
45275s,@infodir@,$infodir,;t t
45276s,@mandir@,$mandir,;t t
45277s,@build_alias@,$build_alias,;t t
45278s,@host_alias@,$host_alias,;t t
45279s,@target_alias@,$target_alias,;t t
45280s,@DEFS@,$DEFS,;t t
45281s,@ECHO_C@,$ECHO_C,;t t
45282s,@ECHO_N@,$ECHO_N,;t t
45283s,@ECHO_T@,$ECHO_T,;t t
45284s,@LIBS@,$LIBS,;t t
45285s,@build@,$build,;t t
45286s,@build_cpu@,$build_cpu,;t t
45287s,@build_vendor@,$build_vendor,;t t
45288s,@build_os@,$build_os,;t t
45289s,@host@,$host,;t t
45290s,@host_cpu@,$host_cpu,;t t
45291s,@host_vendor@,$host_vendor,;t t
45292s,@host_os@,$host_os,;t t
45293s,@target@,$target,;t t
45294s,@target_cpu@,$target_cpu,;t t
45295s,@target_vendor@,$target_vendor,;t t
45296s,@target_os@,$target_os,;t t
45297s,@CC@,$CC,;t t
45298s,@CFLAGS@,$CFLAGS,;t t
45299s,@LDFLAGS@,$LDFLAGS,;t t
45300s,@CPPFLAGS@,$CPPFLAGS,;t t
45301s,@ac_ct_CC@,$ac_ct_CC,;t t
45302s,@EXEEXT@,$EXEEXT,;t t
45303s,@OBJEXT@,$OBJEXT,;t t
45304s,@CPP@,$CPP,;t t
45305s,@EGREP@,$EGREP,;t t
45306s,@CXX@,$CXX,;t t
45307s,@CXXFLAGS@,$CXXFLAGS,;t t
45308s,@ac_ct_CXX@,$ac_ct_CXX,;t t
45309s,@RANLIB@,$RANLIB,;t t
45310s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
45311s,@AR@,$AR,;t t
45312s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
45313s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
45314s,@INSTALL_DATA@,$INSTALL_DATA,;t t
45315s,@STRIP@,$STRIP,;t t
45316s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
45317s,@LN_S@,$LN_S,;t t
45318s,@CXXCPP@,$CXXCPP,;t t
45319s,@subdirs@,$subdirs,;t t
45320s,@PKG_CONFIG@,$PKG_CONFIG,;t t
45321s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
45322s,@GTK_LIBS@,$GTK_LIBS,;t t
45323s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
45324s,@X_CFLAGS@,$X_CFLAGS,;t t
45325s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
45326s,@X_LIBS@,$X_LIBS,;t t
45327s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
45328s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
45329s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
45330s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
45331s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
45332s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
45333s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
45334s,@RESCOMP@,$RESCOMP,;t t
45335s,@DEREZ@,$DEREZ,;t t
45336s,@SETFILE@,$SETFILE,;t t
45337s,@LIBICONV@,$LIBICONV,;t t
45338s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
45339s,@SDL_CONFIG@,$SDL_CONFIG,;t t
45340s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
45341s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
45342s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
45343s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
45344s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
45345s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
45346s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
45347s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
45348s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
45349s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
45350s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
45351s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
45352s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
45353s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
45354s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
45355s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
45356s,@VENDOR@,$VENDOR,;t t
45357s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
45358s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
45359s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
45360s,@WXUNIV@,$WXUNIV,;t t
45361s,@MONOLITHIC@,$MONOLITHIC,;t t
45362s,@USE_PLUGINS@,$USE_PLUGINS,;t t
45363s,@EXTRALIBS@,$EXTRALIBS,;t t
45364s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
45365s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
45366s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
45367s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
45368s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
45369s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
45370s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 45371s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
45372s,@UNICODE@,$UNICODE,;t t
45373s,@BUILD@,$BUILD,;t t
45374s,@DEBUG_INFO@,$DEBUG_INFO,;t t
45375s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
45376s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
45377s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
45378s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
45379s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
45380s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
45381s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
45382s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
45383s,@SET_MAKE@,$SET_MAKE,;t t
45384s,@MAKE_SET@,$MAKE_SET,;t t
45385s,@ac_ct_AR@,$ac_ct_AR,;t t
45386s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
45387s,@NM@,$NM,;t t
45388s,@ac_ct_NM@,$ac_ct_NM,;t t
45389s,@INSTALL_DIR@,$INSTALL_DIR,;t t
45390s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
45391s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
45392s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
45393s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
45394s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 45395s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
45396s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
45397s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 45398s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
45399s,@SO_SUFFIX@,$SO_SUFFIX,;t t
45400s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
45401s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
45402s,@LIBPREFIX@,$LIBPREFIX,;t t
45403s,@LIBEXT@,$LIBEXT,;t t
45404s,@DLLPREFIX@,$DLLPREFIX,;t t
45405s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
45406s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
45407s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
45408s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
45409s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
45410s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
45411s,@PIC_FLAG@,$PIC_FLAG,;t t
45412s,@USE_SOVERSION@,$USE_SOVERSION,;t t
45413s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
45414s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
45415s,@USE_MACVERSION@,$USE_MACVERSION,;t t
45416s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
45417s,@SONAME_FLAG@,$SONAME_FLAG,;t t
45418s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
45419s,@GCC_PCH@,$GCC_PCH,;t t
45420s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
45421s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
45422s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
45423s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
45424s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
45425s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
45426s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
45427s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
45428s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
45429s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
45430s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
45431s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
45432s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
45433s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
45434s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
45435s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
45436s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
45437s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 45438s,@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 45439s,@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 45440s,@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 45441s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 45442s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
45443s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
45444s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 45445s,@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 45446s,@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 45447s,@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 45448s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 45449s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
45450s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
45451s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
45452s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
45453s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
45454s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
45455s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
45456s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
45457s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 45458s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
45459s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
45460s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
45461s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 45462s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 45463s,@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
45464s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
45465s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
45466s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
45467s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 45468s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
a848cd7e 45469s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
83d8eb47 45470s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
45471s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
45472s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
45473s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
45474s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
45475s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
45476s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
45477s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
45478s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
45479s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
45480s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
45481s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
45482s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
45483s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
45484s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
45485s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
52ada004 45486s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
45487s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
45488s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
45489s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
45490s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
45491s,@COND_SHARED_1@,$COND_SHARED_1,;t t
45492s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
52ada004 45493s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 45494s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 45495s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 45496s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
45497s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
45498s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
45499s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
45500s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
45501s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
45502s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
45503s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
45504s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
45505s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
45506s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
45507s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
45508s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
45509s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
45510s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
45511s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
45512s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
45513s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
45514s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
45515s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
45516s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
45517s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
45518s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
45519s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
45520s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
45521s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
45522s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
45523s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
45524s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
45525s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
45526s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
45527s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
45528s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
45529s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 45530s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 45531s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 45532s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
45533s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
45534s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e
SC
45535s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
45536s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
45537s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
45538s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
45539s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
45540s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 45541s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 45542s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 45543s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
45544s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
45545s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
45546s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
45547s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
45548s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
45549s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
45550s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
45551s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 45552s,@SHARED@,$SHARED,;t t
a848cd7e
SC
45553s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
45554s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
45555s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
45556s,@USE_GUI@,$USE_GUI,;t t
45557s,@AFMINSTALL@,$AFMINSTALL,;t t
45558s,@WIN32INSTALL@,$WIN32INSTALL,;t t
45559s,@TOOLKIT@,$TOOLKIT,;t t
45560s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 45561s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 45562s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
45563s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
45564s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 45565s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
45566s,@WIDGET_SET@,$WIDGET_SET,;t t
45567s,@WX_RELEASE@,$WX_RELEASE,;t t
45568s,@WX_VERSION@,$WX_VERSION,;t t
45569s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
45570s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
45571s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 45572s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
45573s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
45574s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
45575s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
45576s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 45577s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
45578s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
45579s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 45580s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 45581s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
45582s,@DISTDIR@,$DISTDIR,;t t
45583s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
45584s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
45585s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
45586s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
45587s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
45588s,@RESFLAGS@,$RESFLAGS,;t t
45589s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
45590s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
45591s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
45592s,@LIBWXMACRES@,$LIBWXMACRES,;t t
45593s,@MACRESCOMP@,$MACRESCOMP,;t t
45594s,@MACSETFILE@,$MACSETFILE,;t t
45595s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
45596s,@GCC@,$GCC,;t t
a848cd7e 45597s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
45598s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
45599s,@LIBOBJS@,$LIBOBJS,;t t
45600s,@LTLIBOBJS@,$LTLIBOBJS,;t t
45601CEOF
45602
45603_ACEOF
45604
45605 cat >>$CONFIG_STATUS <<\_ACEOF
45606 # Split the substitutions into bite-sized pieces for seds with
45607 # small command number limits, like on Digital OSF/1 and HP-UX.
45608 ac_max_sed_lines=48
45609 ac_sed_frag=1 # Number of current file.
45610 ac_beg=1 # First line for current file.
45611 ac_end=$ac_max_sed_lines # Line after last line for current file.
45612 ac_more_lines=:
45613 ac_sed_cmds=
45614 while $ac_more_lines; do
45615 if test $ac_beg -gt 1; then
45616 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45617 else
45618 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45619 fi
45620 if test ! -s $tmp/subs.frag; then
45621 ac_more_lines=false
45622 else
45623 # The purpose of the label and of the branching condition is to
45624 # speed up the sed processing (if there are no `@' at all, there
45625 # is no need to browse any of the substitutions).
45626 # These are the two extra sed commands mentioned above.
45627 (echo ':t
45628 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
45629 if test -z "$ac_sed_cmds"; then
ac1cb8d3 45630 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 45631 else
ac1cb8d3 45632 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
45633 fi
45634 ac_sed_frag=`expr $ac_sed_frag + 1`
45635 ac_beg=$ac_end
45636 ac_end=`expr $ac_end + $ac_max_sed_lines`
45637 fi
45638 done
45639 if test -z "$ac_sed_cmds"; then
45640 ac_sed_cmds=cat
45641 fi
45642fi # test -n "$CONFIG_FILES"
45643
45644_ACEOF
45645cat >>$CONFIG_STATUS <<\_ACEOF
45646for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
45647 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45648 case $ac_file in
45649 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
45650 cat >$tmp/stdin
45651 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45652 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 45653 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 45654 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
45655 * ) ac_file_in=$ac_file.in ;;
45656 esac
45657
45658 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
45659 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45660$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45661 X"$ac_file" : 'X\(//\)[^/]' \| \
45662 X"$ac_file" : 'X\(//\)$' \| \
45663 X"$ac_file" : 'X\(/\)' \| \
45664 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45665echo X"$ac_file" |
45666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45667 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45668 /^X\(\/\/\)$/{ s//\1/; q; }
45669 /^X\(\/\).*/{ s//\1/; q; }
45670 s/.*/./; q'`
45671 { if $as_mkdir_p; then
45672 mkdir -p "$ac_dir"
45673 else
45674 as_dir="$ac_dir"
45675 as_dirs=
45676 while test ! -d "$as_dir"; do
45677 as_dirs="$as_dir $as_dirs"
45678 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45679$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
45680 X"$as_dir" : 'X\(//\)[^/]' \| \
45681 X"$as_dir" : 'X\(//\)$' \| \
45682 X"$as_dir" : 'X\(/\)' \| \
45683 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
45684echo X"$as_dir" |
45685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45686 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45687 /^X\(\/\/\)$/{ s//\1/; q; }
45688 /^X\(\/\).*/{ s//\1/; q; }
45689 s/.*/./; q'`
45690 done
45691 test ! -n "$as_dirs" || mkdir $as_dirs
45692 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45693echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45694 { (exit 1); exit 1; }; }; }
45695
45696 ac_builddir=.
45697
45698if test "$ac_dir" != .; then
45699 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45700 # A "../" for each directory in $ac_dir_suffix.
45701 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45702else
45703 ac_dir_suffix= ac_top_builddir=
45704fi
45705
45706case $srcdir in
45707 .) # No --srcdir option. We are building in place.
45708 ac_srcdir=.
45709 if test -z "$ac_top_builddir"; then
45710 ac_top_srcdir=.
45711 else
45712 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45713 fi ;;
45714 [\\/]* | ?:[\\/]* ) # Absolute path.
45715 ac_srcdir=$srcdir$ac_dir_suffix;
45716 ac_top_srcdir=$srcdir ;;
45717 *) # Relative path.
45718 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45719 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45720esac
ac1cb8d3
VS
45721
45722# Do not use `cd foo && pwd` to compute absolute paths, because
45723# the directories may not exist.
45724case `pwd` in
45725.) ac_abs_builddir="$ac_dir";;
45726*)
45727 case "$ac_dir" in
45728 .) ac_abs_builddir=`pwd`;;
45729 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45730 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45731 esac;;
45732esac
45733case $ac_abs_builddir in
45734.) ac_abs_top_builddir=${ac_top_builddir}.;;
45735*)
45736 case ${ac_top_builddir}. in
45737 .) ac_abs_top_builddir=$ac_abs_builddir;;
45738 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45739 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45740 esac;;
45741esac
45742case $ac_abs_builddir in
45743.) ac_abs_srcdir=$ac_srcdir;;
45744*)
45745 case $ac_srcdir in
45746 .) ac_abs_srcdir=$ac_abs_builddir;;
45747 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45748 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45749 esac;;
45750esac
45751case $ac_abs_builddir in
45752.) ac_abs_top_srcdir=$ac_top_srcdir;;
45753*)
45754 case $ac_top_srcdir in
45755 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45756 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45757 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45758 esac;;
45759esac
a848cd7e
SC
45760
45761
45762 case $INSTALL in
45763 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45764 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
45765 esac
45766
fb00f58d
JS
45767 if test x"$ac_file" != x-; then
45768 { echo "$as_me:$LINENO: creating $ac_file" >&5
45769echo "$as_me: creating $ac_file" >&6;}
45770 rm -f "$ac_file"
45771 fi
a848cd7e
SC
45772 # Let's still pretend it is `configure' which instantiates (i.e., don't
45773 # use $as_me), people would be surprised to read:
45774 # /* config.h. Generated by config.status. */
45775 if test x"$ac_file" = x-; then
45776 configure_input=
45777 else
45778 configure_input="$ac_file. "
45779 fi
45780 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 45781 sed 's,.*/,,'` by configure."
a848cd7e
SC
45782
45783 # First look for the input files in the build tree, otherwise in the
45784 # src tree.
45785 ac_file_inputs=`IFS=:
45786 for f in $ac_file_in; do
45787 case $f in
45788 -) echo $tmp/stdin ;;
45789 [\\/$]*)
ac1cb8d3
VS
45790 # Absolute (can't be DOS-style, as IFS=:)
45791 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
45792echo "$as_me: error: cannot find input file: $f" >&2;}
45793 { (exit 1); exit 1; }; }
ac1cb8d3 45794 echo "$f";;
a848cd7e 45795 *) # Relative
ac1cb8d3
VS
45796 if test -f "$f"; then
45797 # Build tree
45798 echo "$f"
45799 elif test -f "$srcdir/$f"; then
45800 # Source tree
45801 echo "$srcdir/$f"
45802 else
45803 # /dev/null tree
45804 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
45805echo "$as_me: error: cannot find input file: $f" >&2;}
45806 { (exit 1); exit 1; }; }
ac1cb8d3 45807 fi;;
a848cd7e
SC
45808 esac
45809 done` || { (exit 1); exit 1; }
45810_ACEOF
45811cat >>$CONFIG_STATUS <<_ACEOF
45812 sed "$ac_vpsub
45813$extrasub
45814_ACEOF
45815cat >>$CONFIG_STATUS <<\_ACEOF
45816:t
45817/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45818s,@configure_input@,$configure_input,;t t
45819s,@srcdir@,$ac_srcdir,;t t
45820s,@abs_srcdir@,$ac_abs_srcdir,;t t
45821s,@top_srcdir@,$ac_top_srcdir,;t t
45822s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
45823s,@builddir@,$ac_builddir,;t t
45824s,@abs_builddir@,$ac_abs_builddir,;t t
45825s,@top_builddir@,$ac_top_builddir,;t t
45826s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
45827s,@INSTALL@,$ac_INSTALL,;t t
45828" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
45829 rm -f $tmp/stdin
45830 if test x"$ac_file" != x-; then
45831 mv $tmp/out $ac_file
45832 else
45833 cat $tmp/out
45834 rm -f $tmp/out
45835 fi
45836
ceec2216
RL
45837 # Run the commands associated with the file.
45838 case $ac_file in
45839 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
45840 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
45841 esac
a848cd7e
SC
45842done
45843_ACEOF
45844cat >>$CONFIG_STATUS <<\_ACEOF
45845
45846#
45847# CONFIG_HEADER section.
45848#
45849
45850# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
45851# NAME is the cpp macro being defined and VALUE is the value it is being given.
45852#
45853# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
45854ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
45855ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
45856ac_dC=' '
45857ac_dD=',;t'
45858# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 45859ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
45860ac_uB='$,\1#\2define\3'
45861ac_uC=' '
45862ac_uD=',;t'
45863
45864for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
45865 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45866 case $ac_file in
45867 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
45868 cat >$tmp/stdin
45869 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45870 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 45871 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 45872 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
45873 * ) ac_file_in=$ac_file.in ;;
45874 esac
45875
45876 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
45877echo "$as_me: creating $ac_file" >&6;}
45878
45879 # First look for the input files in the build tree, otherwise in the
45880 # src tree.
45881 ac_file_inputs=`IFS=:
45882 for f in $ac_file_in; do
45883 case $f in
45884 -) echo $tmp/stdin ;;
45885 [\\/$]*)
ac1cb8d3
VS
45886 # Absolute (can't be DOS-style, as IFS=:)
45887 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
45888echo "$as_me: error: cannot find input file: $f" >&2;}
45889 { (exit 1); exit 1; }; }
ac1cb8d3
VS
45890 # Do quote $f, to prevent DOS paths from being IFS'd.
45891 echo "$f";;
a848cd7e 45892 *) # Relative
ac1cb8d3
VS
45893 if test -f "$f"; then
45894 # Build tree
45895 echo "$f"
45896 elif test -f "$srcdir/$f"; then
45897 # Source tree
45898 echo "$srcdir/$f"
45899 else
45900 # /dev/null tree
45901 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
45902echo "$as_me: error: cannot find input file: $f" >&2;}
45903 { (exit 1); exit 1; }; }
ac1cb8d3 45904 fi;;
a848cd7e
SC
45905 esac
45906 done` || { (exit 1); exit 1; }
45907 # Remove the trailing spaces.
ac1cb8d3 45908 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
45909
45910_ACEOF
45911
45912# Transform confdefs.h into two sed scripts, `conftest.defines' and
45913# `conftest.undefs', that substitutes the proper values into
45914# config.h.in to produce config.h. The first handles `#define'
45915# templates, and the second `#undef' templates.
45916# And first: Protect against being on the right side of a sed subst in
45917# config.status. Protect against being in an unquoted here document
45918# in config.status.
45919rm -f conftest.defines conftest.undefs
45920# Using a here document instead of a string reduces the quoting nightmare.
45921# Putting comments in sed scripts is not portable.
45922#
45923# `end' is used to avoid that the second main sed command (meant for
45924# 0-ary CPP macros) applies to n-ary macro definitions.
45925# See the Autoconf documentation for `clear'.
45926cat >confdef2sed.sed <<\_ACEOF
45927s/[\\&,]/\\&/g
45928s,[\\$`],\\&,g
45929t clear
45930: clear
ac1cb8d3 45931s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 45932t end
ac1cb8d3 45933s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
45934: end
45935_ACEOF
45936# If some macros were called several times there might be several times
45937# the same #defines, which is useless. Nevertheless, we may not want to
45938# sort them, since we want the *last* AC-DEFINE to be honored.
45939uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
45940sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
45941rm -f confdef2sed.sed
45942
45943# This sed command replaces #undef with comments. This is necessary, for
45944# example, in the case of _POSIX_SOURCE, which is predefined and required
45945# on some systems where configure will not decide to define it.
45946cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 45947s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
45948_ACEOF
45949
45950# Break up conftest.defines because some shells have a limit on the size
45951# of here documents, and old seds have small limits too (100 cmds).
45952echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 45953echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
45954echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
45955echo ' :' >>$CONFIG_STATUS
45956rm -f conftest.tail
45957while grep . conftest.defines >/dev/null
45958do
45959 # Write a limited-size here document to $tmp/defines.sed.
45960 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
45961 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 45962 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
45963 # Work around the forget-to-reset-the-flag bug.
45964 echo 't clr' >>$CONFIG_STATUS
45965 echo ': clr' >>$CONFIG_STATUS
45966 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
45967 echo 'CEOF
45968 sed -f $tmp/defines.sed $tmp/in >$tmp/out
45969 rm -f $tmp/in
45970 mv $tmp/out $tmp/in
45971' >>$CONFIG_STATUS
45972 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
45973 rm -f conftest.defines
45974 mv conftest.tail conftest.defines
45975done
45976rm -f conftest.defines
45977echo ' fi # grep' >>$CONFIG_STATUS
45978echo >>$CONFIG_STATUS
45979
45980# Break up conftest.undefs because some shells have a limit on the size
45981# of here documents, and old seds have small limits too (100 cmds).
45982echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
45983rm -f conftest.tail
45984while grep . conftest.undefs >/dev/null
45985do
45986 # Write a limited-size here document to $tmp/undefs.sed.
45987 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
45988 # Speed up: don't consider the non `#undef'
ac1cb8d3 45989 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
45990 # Work around the forget-to-reset-the-flag bug.
45991 echo 't clr' >>$CONFIG_STATUS
45992 echo ': clr' >>$CONFIG_STATUS
45993 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
45994 echo 'CEOF
45995 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
45996 rm -f $tmp/in
45997 mv $tmp/out $tmp/in
45998' >>$CONFIG_STATUS
45999 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
46000 rm -f conftest.undefs
46001 mv conftest.tail conftest.undefs
46002done
46003rm -f conftest.undefs
46004
46005cat >>$CONFIG_STATUS <<\_ACEOF
46006 # Let's still pretend it is `configure' which instantiates (i.e., don't
46007 # use $as_me), people would be surprised to read:
46008 # /* config.h. Generated by config.status. */
46009 if test x"$ac_file" = x-; then
46010 echo "/* Generated by configure. */" >$tmp/config.h
46011 else
46012 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
46013 fi
46014 cat $tmp/in >>$tmp/config.h
46015 rm -f $tmp/in
46016 if test x"$ac_file" != x-; then
46017 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
46018 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
46019echo "$as_me: $ac_file is unchanged" >&6;}
46020 else
46021 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
46022$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46023 X"$ac_file" : 'X\(//\)[^/]' \| \
46024 X"$ac_file" : 'X\(//\)$' \| \
46025 X"$ac_file" : 'X\(/\)' \| \
46026 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46027echo X"$ac_file" |
46028 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46029 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46030 /^X\(\/\/\)$/{ s//\1/; q; }
46031 /^X\(\/\).*/{ s//\1/; q; }
46032 s/.*/./; q'`
46033 { if $as_mkdir_p; then
46034 mkdir -p "$ac_dir"
46035 else
46036 as_dir="$ac_dir"
46037 as_dirs=
46038 while test ! -d "$as_dir"; do
46039 as_dirs="$as_dir $as_dirs"
46040 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46041$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46042 X"$as_dir" : 'X\(//\)[^/]' \| \
46043 X"$as_dir" : 'X\(//\)$' \| \
46044 X"$as_dir" : 'X\(/\)' \| \
46045 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46046echo X"$as_dir" |
46047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46048 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46049 /^X\(\/\/\)$/{ s//\1/; q; }
46050 /^X\(\/\).*/{ s//\1/; q; }
46051 s/.*/./; q'`
46052 done
46053 test ! -n "$as_dirs" || mkdir $as_dirs
46054 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46055echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46056 { (exit 1); exit 1; }; }; }
46057
46058 rm -f $ac_file
46059 mv $tmp/config.h $ac_file
46060 fi
46061 else
46062 cat $tmp/config.h
46063 rm -f $tmp/config.h
46064 fi
46065done
46066_ACEOF
46067cat >>$CONFIG_STATUS <<\_ACEOF
46068
46069#
46070# CONFIG_COMMANDS section.
46071#
46072for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
46073 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
46074 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
46075 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
46076$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46077 X"$ac_dest" : 'X\(//\)[^/]' \| \
46078 X"$ac_dest" : 'X\(//\)$' \| \
46079 X"$ac_dest" : 'X\(/\)' \| \
46080 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46081echo X"$ac_dest" |
46082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46083 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46084 /^X\(\/\/\)$/{ s//\1/; q; }
46085 /^X\(\/\).*/{ s//\1/; q; }
46086 s/.*/./; q'`
ac1cb8d3
VS
46087 { if $as_mkdir_p; then
46088 mkdir -p "$ac_dir"
46089 else
46090 as_dir="$ac_dir"
46091 as_dirs=
46092 while test ! -d "$as_dir"; do
46093 as_dirs="$as_dir $as_dirs"
46094 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46095$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46096 X"$as_dir" : 'X\(//\)[^/]' \| \
46097 X"$as_dir" : 'X\(//\)$' \| \
46098 X"$as_dir" : 'X\(/\)' \| \
46099 . : '\(.\)' 2>/dev/null ||
46100echo X"$as_dir" |
46101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46102 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46103 /^X\(\/\/\)$/{ s//\1/; q; }
46104 /^X\(\/\).*/{ s//\1/; q; }
46105 s/.*/./; q'`
46106 done
46107 test ! -n "$as_dirs" || mkdir $as_dirs
46108 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46109echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46110 { (exit 1); exit 1; }; }; }
46111
a848cd7e
SC
46112 ac_builddir=.
46113
46114if test "$ac_dir" != .; then
46115 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46116 # A "../" for each directory in $ac_dir_suffix.
46117 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46118else
46119 ac_dir_suffix= ac_top_builddir=
46120fi
46121
46122case $srcdir in
46123 .) # No --srcdir option. We are building in place.
46124 ac_srcdir=.
46125 if test -z "$ac_top_builddir"; then
46126 ac_top_srcdir=.
46127 else
46128 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46129 fi ;;
46130 [\\/]* | ?:[\\/]* ) # Absolute path.
46131 ac_srcdir=$srcdir$ac_dir_suffix;
46132 ac_top_srcdir=$srcdir ;;
46133 *) # Relative path.
46134 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46135 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46136esac
ac1cb8d3
VS
46137
46138# Do not use `cd foo && pwd` to compute absolute paths, because
46139# the directories may not exist.
46140case `pwd` in
46141.) ac_abs_builddir="$ac_dir";;
46142*)
46143 case "$ac_dir" in
46144 .) ac_abs_builddir=`pwd`;;
46145 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46146 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46147 esac;;
46148esac
46149case $ac_abs_builddir in
46150.) ac_abs_top_builddir=${ac_top_builddir}.;;
46151*)
46152 case ${ac_top_builddir}. in
46153 .) ac_abs_top_builddir=$ac_abs_builddir;;
46154 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46155 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46156 esac;;
46157esac
46158case $ac_abs_builddir in
46159.) ac_abs_srcdir=$ac_srcdir;;
46160*)
46161 case $ac_srcdir in
46162 .) ac_abs_srcdir=$ac_abs_builddir;;
46163 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46164 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46165 esac;;
46166esac
46167case $ac_abs_builddir in
46168.) ac_abs_top_srcdir=$ac_top_srcdir;;
46169*)
46170 case $ac_top_srcdir in
46171 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46172 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46173 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46174 esac;;
46175esac
a848cd7e
SC
46176
46177
46178 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
46179echo "$as_me: executing $ac_dest commands" >&6;}
46180 case $ac_dest in
ceec2216
RL
46181 wx-config ) rm -f wx-config
46182 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
46183 ;;
a848cd7e
SC
46184 esac
46185done
46186_ACEOF
46187
46188cat >>$CONFIG_STATUS <<\_ACEOF
46189
46190{ (exit 0); exit 0; }
46191_ACEOF
46192chmod +x $CONFIG_STATUS
46193ac_clean_files=$ac_clean_files_save
46194
46195
46196# configure is writing to config.log, and then calls config.status.
46197# config.status does its own redirection, appending to config.log.
46198# Unfortunately, on DOS this fails, as config.log is still kept open
46199# by configure, so config.status won't be able to write to it; its
46200# output is simply discarded. So we exec the FD to /dev/null,
46201# effectively closing config.log, so it can be properly (re)opened and
46202# appended to by config.status. When coming back to configure, we
46203# need to make the FD available again.
46204if test "$no_create" != yes; then
46205 ac_cs_success=:
46206 ac_config_status_args=
46207 test "$silent" = yes &&
46208 ac_config_status_args="$ac_config_status_args --quiet"
46209 exec 5>/dev/null
46210 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46211 exec 5>>config.log
46212 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46213 # would make configure fail if this is the last instruction.
46214 $ac_cs_success || { (exit 1); exit 1; }
46215fi
46216
46217#
46218# CONFIG_SUBDIRS section.
46219#
46220if test "$no_recursion" != yes; then
46221
46222 # Remove --cache-file and --srcdir arguments so they do not pile up.
46223 ac_sub_configure_args=
46224 ac_prev=
46225 for ac_arg in $ac_configure_args; do
46226 if test -n "$ac_prev"; then
46227 ac_prev=
46228 continue
46229 fi
46230 case $ac_arg in
46231 -cache-file | --cache-file | --cache-fil | --cache-fi \
46232 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
46233 ac_prev=cache_file ;;
46234 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
46235 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
46236 | --c=*)
46237 ;;
46238 --config-cache | -C)
46239 ;;
46240 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
46241 ac_prev=srcdir ;;
46242 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
46243 ;;
46244 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
46245 ac_prev=prefix ;;
46246 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
46247 ;;
46248 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
46249 esac
46250 done
46251
46252 # Always prepend --prefix to ensure using the same prefix
46253 # in subdir configurations.
46254 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
46255
46256 ac_popdir=`pwd`
46257 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
46258
46259 # Do not complain, so a configure script can configure whichever
46260 # parts of a large source tree are present.
46261 test -d $srcdir/$ac_dir || continue
46262
46263 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
46264echo "$as_me: configuring in $ac_dir" >&6;}
46265 { if $as_mkdir_p; then
46266 mkdir -p "$ac_dir"
46267 else
46268 as_dir="$ac_dir"
46269 as_dirs=
46270 while test ! -d "$as_dir"; do
46271 as_dirs="$as_dir $as_dirs"
46272 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46273$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
46274 X"$as_dir" : 'X\(//\)[^/]' \| \
46275 X"$as_dir" : 'X\(//\)$' \| \
46276 X"$as_dir" : 'X\(/\)' \| \
46277 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
46278echo X"$as_dir" |
46279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46280 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46281 /^X\(\/\/\)$/{ s//\1/; q; }
46282 /^X\(\/\).*/{ s//\1/; q; }
46283 s/.*/./; q'`
46284 done
46285 test ! -n "$as_dirs" || mkdir $as_dirs
46286 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46287echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46288 { (exit 1); exit 1; }; }; }
46289
46290 ac_builddir=.
46291
46292if test "$ac_dir" != .; then
46293 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46294 # A "../" for each directory in $ac_dir_suffix.
46295 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46296else
46297 ac_dir_suffix= ac_top_builddir=
46298fi
46299
46300case $srcdir in
46301 .) # No --srcdir option. We are building in place.
46302 ac_srcdir=.
46303 if test -z "$ac_top_builddir"; then
46304 ac_top_srcdir=.
46305 else
46306 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46307 fi ;;
46308 [\\/]* | ?:[\\/]* ) # Absolute path.
46309 ac_srcdir=$srcdir$ac_dir_suffix;
46310 ac_top_srcdir=$srcdir ;;
46311 *) # Relative path.
46312 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46313 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46314esac
ac1cb8d3
VS
46315
46316# Do not use `cd foo && pwd` to compute absolute paths, because
46317# the directories may not exist.
46318case `pwd` in
46319.) ac_abs_builddir="$ac_dir";;
46320*)
46321 case "$ac_dir" in
46322 .) ac_abs_builddir=`pwd`;;
46323 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46324 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46325 esac;;
46326esac
46327case $ac_abs_builddir in
46328.) ac_abs_top_builddir=${ac_top_builddir}.;;
46329*)
46330 case ${ac_top_builddir}. in
46331 .) ac_abs_top_builddir=$ac_abs_builddir;;
46332 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46333 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46334 esac;;
46335esac
46336case $ac_abs_builddir in
46337.) ac_abs_srcdir=$ac_srcdir;;
46338*)
46339 case $ac_srcdir in
46340 .) ac_abs_srcdir=$ac_abs_builddir;;
46341 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46342 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46343 esac;;
46344esac
46345case $ac_abs_builddir in
46346.) ac_abs_top_srcdir=$ac_top_srcdir;;
46347*)
46348 case $ac_top_srcdir in
46349 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46350 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46351 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46352 esac;;
46353esac
a848cd7e
SC
46354
46355
46356 cd $ac_dir
46357
46358 # Check for guested configure; otherwise get Cygnus style configure.
46359 if test -f $ac_srcdir/configure.gnu; then
46360 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
46361 elif test -f $ac_srcdir/configure; then
46362 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
46363 elif test -f $ac_srcdir/configure.in; then
46364 ac_sub_configure=$ac_configure
46365 else
46366 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
46367echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
46368 ac_sub_configure=
46369 fi
46370
46371 # The recursion is here.
46372 if test -n "$ac_sub_configure"; then
46373 # Make the cache file name correct relative to the subdirectory.
46374 case $cache_file in
46375 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
46376 *) # Relative path.
ac1cb8d3 46377 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
46378 esac
46379
46380 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
46381echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
46382 # The eval makes quoting arguments work.
46383 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
46384 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
46385 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
46386echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
46387 { (exit 1); exit 1; }; }
46388 fi
46389
fb00f58d 46390 cd $ac_popdir
a848cd7e
SC
46391 done
46392fi
46393
46394
46395echo
77ffb593 46396echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 46397echo ""
4d4ff94c 46398echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 46399echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 46400
77ffb593
JS
46401echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
46402echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
46403echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 46404
77ffb593
JS
46405echo " What level of wxWidgets compatibility should be enabled?"
46406echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
46407echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 46408
77ffb593 46409echo " Which libraries should wxWidgets use?"
a848cd7e
SC
46410echo " jpeg ${wxUSE_LIBJPEG-none}"
46411echo " png ${wxUSE_LIBPNG-none}"
46412echo " regex ${wxUSE_REGEX}"
46413echo " tiff ${wxUSE_LIBTIFF-none}"
46414if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
46415echo " xpm ${wxUSE_LIBXPM-none}"
46416fi
46417echo " zlib ${wxUSE_ZLIB}"
46418echo " odbc ${wxUSE_ODBC}"
46419echo " expat ${wxUSE_EXPAT}"
46420echo " libmspack ${wxUSE_LIBMSPACK}"
46421echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 46422echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
46423
46424echo ""
46425